const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B9nE_vjK.js","./repositories-BV1ecVUi.js","./index-Caljaa-S.js","./index-BeyWqGOP.js"])))=>i.map(i=>d[i]);
function nDt(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var tx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function oK(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?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(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var kne={exports:{}},dE={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Lne,ZTe;function aK(){if(ZTe)return Lne;ZTe=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Lne=i()?Object.assign:function(o,a){for(var s,l=r(o),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var p=0;p<c.length;p++)n.call(s,c[p])&&(l[c[p]]=s[c[p]])}}return l},Lne}var _ne={exports:{}},ca={};/** @license React v17.0.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var JTe;function rDt(){if(JTe)return ca;JTe=1;var e=aK(),t=60103,n=60106;ca.Fragment=60107,ca.StrictMode=60108,ca.Profiler=60114;var r=60109,i=60110,o=60112;ca.Suspense=60113;var a=60115,s=60116;if(typeof Symbol=="function"&&Symbol.for){var l=Symbol.for;t=l("react.element"),n=l("react.portal"),ca.Fragment=l("react.fragment"),ca.StrictMode=l("react.strict_mode"),ca.Profiler=l("react.profiler"),r=l("react.provider"),i=l("react.context"),o=l("react.forward_ref"),ca.Suspense=l("react.suspense"),a=l("react.memo"),s=l("react.lazy")}var c=typeof Symbol=="function"&&Symbol.iterator;function u(H){return H===null||typeof H!="object"?null:(H=c&&H[c]||H["@@iterator"],typeof H=="function"?H:null)}function d(H){for(var j="https://reactjs.org/docs/error-decoder.html?invariant="+H,G=1;G<arguments.length;G++)j+="&args[]="+encodeURIComponent(arguments[G]);return"Minified React error #"+H+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function g(H,j,G){this.props=H,this.context=j,this.refs=h,this.updater=G||p}g.prototype.isReactComponent={},g.prototype.setState=function(H,j){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error(d(85));this.updater.enqueueSetState(this,H,j,"setState")},g.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function m(){}m.prototype=g.prototype;function v(H,j,G){this.props=H,this.context=j,this.refs=h,this.updater=G||p}var y=v.prototype=new m;y.constructor=v,e(y,g.prototype),y.isPureReactComponent=!0;var M={current:null},C=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function w(H,j,G){var q,$={},U=null,X=null;if(j!=null)for(q in j.ref!==void 0&&(X=j.ref),j.key!==void 0&&(U=""+j.key),j)C.call(j,q)&&!x.hasOwnProperty(q)&&($[q]=j[q]);var Q=arguments.length-2;if(Q===1)$.children=G;else if(1<Q){for(var re=Array(Q),ee=0;ee<Q;ee++)re[ee]=arguments[ee+2];$.children=re}if(H&&H.defaultProps)for(q in Q=H.defaultProps,Q)$[q]===void 0&&($[q]=Q[q]);return{$$typeof:t,type:H,key:U,ref:X,props:$,_owner:M.current}}function S(H,j){return{$$typeof:t,type:H.type,key:j,ref:H.ref,props:H.props,_owner:H._owner}}function A(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function z(H){var j={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(G){return j[G]})}var O=/\/+/g;function T(H,j){return typeof H=="object"&&H!==null&&H.key!=null?z(""+H.key):j.toString(36)}function I(H,j,G,q,$){var U=typeof H;(U==="undefined"||U==="boolean")&&(H=null);var X=!1;if(H===null)X=!0;else switch(U){case"string":case"number":X=!0;break;case"object":switch(H.$$typeof){case t:case n:X=!0}}if(X)return X=H,$=$(X),H=q===""?"."+T(X,0):q,Array.isArray($)?(G="",H!=null&&(G=H.replace(O,"$&/")+"/"),I($,j,G,"",function(ee){return ee})):$!=null&&(A($)&&($=S($,G+(!$.key||X&&X.key===$.key?"":(""+$.key).replace(O,"$&/")+"/")+H)),j.push($)),1;if(X=0,q=q===""?".":q+":",Array.isArray(H))for(var Q=0;Q<H.length;Q++){U=H[Q];var re=q+T(U,Q);X+=I(U,j,G,re,$)}else if(re=u(H),typeof re=="function")for(H=re.call(H),Q=0;!(U=H.next()).done;)U=U.value,re=q+T(U,Q++),X+=I(U,j,G,re,$);else if(U==="object")throw j=""+H,Error(d(31,j==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":j));return X}function P(H,j,G){if(H==null)return H;var q=[],$=0;return I(H,q,"","",function(U){return j.call(G,U,$++)}),q}function N(H){if(H._status===-1){var j=H._result;j=j(),H._status=0,H._result=j,j.then(function(G){H._status===0&&(G=G.default,H._status=1,H._result=G)},function(G){H._status===0&&(H._status=2,H._result=G)})}if(H._status===1)return H._result;throw H._result}var F={current:null};function L(){var H=F.current;if(H===null)throw Error(d(321));return H}var W={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:M,IsSomeRendererActing:{current:!1},assign:e};return ca.Children={map:P,forEach:function(H,j,G){P(H,function(){j.apply(this,arguments)},G)},count:function(H){var j=0;return P(H,function(){j++}),j},toArray:function(H){return P(H,function(j){return j})||[]},only:function(H){if(!A(H))throw Error(d(143));return H}},ca.Component=g,ca.PureComponent=v,ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,ca.cloneElement=function(H,j,G){if(H==null)throw Error(d(267,H));var q=e({},H.props),$=H.key,U=H.ref,X=H._owner;if(j!=null){if(j.ref!==void 0&&(U=j.ref,X=M.current),j.key!==void 0&&($=""+j.key),H.type&&H.type.defaultProps)var Q=H.type.defaultProps;for(re in j)C.call(j,re)&&!x.hasOwnProperty(re)&&(q[re]=j[re]===void 0&&Q!==void 0?Q[re]:j[re])}var re=arguments.length-2;if(re===1)q.children=G;else if(1<re){Q=Array(re);for(var ee=0;ee<re;ee++)Q[ee]=arguments[ee+2];q.children=Q}return{$$typeof:t,type:H.type,key:$,ref:U,props:q,_owner:X}},ca.createContext=function(H,j){return j===void 0&&(j=null),H={$$typeof:i,_calculateChangedBits:j,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null},H.Provider={$$typeof:r,_context:H},H.Consumer=H},ca.createElement=w,ca.createFactory=function(H){var j=w.bind(null,H);return j.type=H,j},ca.createRef=function(){return{current:null}},ca.forwardRef=function(H){return{$$typeof:o,render:H}},ca.isValidElement=A,ca.lazy=function(H){return{$$typeof:s,_payload:{_status:-1,_result:H},_init:N}},ca.memo=function(H,j){return{$$typeof:a,type:H,compare:j===void 0?null:j}},ca.useCallback=function(H,j){return L().useCallback(H,j)},ca.useContext=function(H,j){return L().useContext(H,j)},ca.useDebugValue=function(){},ca.useEffect=function(H,j){return L().useEffect(H,j)},ca.useImperativeHandle=function(H,j,G){return L().useImperativeHandle(H,j,G)},ca.useLayoutEffect=function(H,j){return L().useLayoutEffect(H,j)},ca.useMemo=function(H,j){return L().useMemo(H,j)},ca.useReducer=function(H,j,G){return L().useReducer(H,j,G)},ca.useRef=function(H){return L().useRef(H)},ca.useState=function(H){return L().useState(H)},ca.version="17.0.2",ca}var eEe;function Wr(){return eEe||(eEe=1,_ne.exports=rDt()),_ne.exports}/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var tEe;function iDt(){if(tEe)return dE;tEe=1,aK();var e=Wr(),t=60103;if(dE.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;t=n("react.element"),dE.Fragment=n("react.fragment")}var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},p=null,h=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)i.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:p,ref:h,props:d,_owner:r.current}}return dE.jsx=a,dE.jsxs=a,dE}var nEe;function oDt(){return nEe||(nEe=1,kne.exports=iDt()),kne.exports}var f=oDt();class IO extends Error{constructor(t,n){const r=new.target.prototype;super(`${t}: Status code '${n}'`),this.statusCode=n,this.__proto__=r}}class L2e extends Error{constructor(t="A timeout occurred."){const n=new.target.prototype;super(t),this.__proto__=n}}class Zg extends Error{constructor(t="An abort occurred."){const n=new.target.prototype;super(t),this.__proto__=n}}class aDt extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="UnsupportedTransportError",this.__proto__=r}}class sDt extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="DisabledTransportError",this.__proto__=r}}class lDt extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="FailedToStartTransportError",this.__proto__=r}}class rEe extends Error{constructor(t){const n=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=n}}class cDt extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.innerErrors=n,this.__proto__=r}}class DJe{constructor(t,n,r){this.statusCode=t,this.statusText=n,this.content=r}}class sK{get(t,n){return this.send({...n,method:"GET",url:t})}post(t,n){return this.send({...n,method:"POST",url:t})}delete(t,n){return this.send({...n,method:"DELETE",url:t})}getCookieString(t){return""}}var on;(function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"})(on||(on={}));class oW{constructor(){}log(t,n){}}oW.instance=new oW;const uDt="8.0.17";class Yc{static isRequired(t,n){if(t==null)throw new Error(`The '${n}' argument is required.`)}static isNotEmpty(t,n){if(!t||t.match(/^\s*$/))throw new Error(`The '${n}' argument should not be empty.`)}static isIn(t,n,r){if(!(t in n))throw new Error(`Unknown ${r} value: ${t}.`)}}class kl{static get isBrowser(){return!kl.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!kl.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!kl.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function aW(e,t){let n="";return hz(e)?(n=`Binary data of length ${e.byteLength}`,t&&(n+=`. Content: '${dDt(e)}'`)):typeof e=="string"&&(n=`String data of length ${e.length}`,t&&(n+=`. Content: '${e}'`)),n}function dDt(e){const t=new Uint8Array(e);let n="";return t.forEach(r=>{const i=r<16?"0":"";n+=`0x${i}${r.toString(16)} `}),n.substr(0,n.length-1)}function hz(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor&&e.constructor.name==="ArrayBuffer")}async function kJe(e,t,n,r,i,o){const a={},[s,l]=YI();a[s]=l,e.log(on.Trace,`(${t} transport) sending data. ${aW(i,o.logMessageContent)}.`);const c=hz(i)?"arraybuffer":"text",u=await n.post(r,{content:i,headers:{...a,...o.headers},responseType:c,timeout:o.timeout,withCredentials:o.withCredentials});e.log(on.Trace,`(${t} transport) request complete. Response status: ${u.statusCode}.`)}function pDt(e){return e===void 0?new d$(on.Information):e===null?oW.instance:e.log!==void 0?e:new d$(e)}class hDt{constructor(t,n){this._subject=t,this._observer=n}dispose(){const t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(n=>{})}}class d${constructor(t){this._minLevel=t,this.out=console}log(t,n){if(t>=this._minLevel){const r=`[${new Date().toISOString()}] ${on[t]}: ${n}`;switch(t){case on.Critical:case on.Error:this.out.error(r);break;case on.Warning:this.out.warn(r);break;case on.Information:this.out.info(r);break;default:this.out.log(r);break}}}}function YI(){let e="X-SignalR-User-Agent";return kl.isNode&&(e="User-Agent"),[e,fDt(uDt,gDt(),vDt(),mDt())]}function fDt(e,t,n,r){let i="Microsoft SignalR/";const o=e.split(".");return i+=`${o[0]}.${o[1]}`,i+=` (${e}; `,t&&t!==""?i+=`${t}; `:i+="Unknown OS; ",i+=`${n}`,r?i+=`; ${r}`:i+="; Unknown Runtime Version",i+=")",i}function gDt(){if(kl.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function mDt(){if(kl.isNode)return process.versions.node}function vDt(){return kl.isNode?"NodeJS":"Browser"}function Nne(e){return e.stack?e.stack:e.message?e.message:`${e}`}function bDt(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class yDt extends sK{constructor(t){if(super(),this._logger=t,typeof fetch>"u"||kl.isNode){const n=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(n("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=n("node-fetch"):this._fetchType=fetch,this._fetchType=n("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(bDt());if(typeof AbortController>"u"){const n=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=n("abort-controller")}else this._abortControllerType=AbortController}async send(t){if(t.abortSignal&&t.abortSignal.aborted)throw new Zg;if(!t.method)throw new Error("No method defined.");if(!t.url)throw new Error("No url defined.");const n=new this._abortControllerType;let r;t.abortSignal&&(t.abortSignal.onabort=()=>{n.abort(),r=new Zg});let i=null;if(t.timeout){const l=t.timeout;i=setTimeout(()=>{n.abort(),this._logger.log(on.Warning,"Timeout from HTTP request."),r=new L2e},l)}t.content===""&&(t.content=void 0),t.content&&(t.headers=t.headers||{},hz(t.content)?t.headers["Content-Type"]="application/octet-stream":t.headers["Content-Type"]="text/plain;charset=UTF-8");let o;try{o=await this._fetchType(t.url,{body:t.content,cache:"no-cache",credentials:t.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...t.headers},method:t.method,mode:"cors",redirect:"follow",signal:n.signal})}catch(l){throw r||(this._logger.log(on.Warning,`Error from HTTP request. ${l}.`),l)}finally{i&&clearTimeout(i),t.abortSignal&&(t.abortSignal.onabort=null)}if(!o.ok){const l=await iEe(o,"text");throw new IO(l||o.statusText,o.status)}const s=await iEe(o,t.responseType);return new DJe(o.status,o.statusText,s)}getCookieString(t){let n="";return kl.isNode&&this._jar&&this._jar.getCookies(t,(r,i)=>n=i.join("; ")),n}}function iEe(e,t){let n;switch(t){case"arraybuffer":n=e.arrayBuffer();break;case"text":n=e.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`);default:n=e.text();break}return n}class MDt extends sK{constructor(t){super(),this._logger=t}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new Zg):t.method?t.url?new Promise((n,r)=>{const i=new XMLHttpRequest;i.open(t.method,t.url,!0),i.withCredentials=t.withCredentials===void 0?!0:t.withCredentials,i.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.content===""&&(t.content=void 0),t.content&&(hz(t.content)?i.setRequestHeader("Content-Type","application/octet-stream"):i.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const o=t.headers;o&&Object.keys(o).forEach(a=>{i.setRequestHeader(a,o[a])}),t.responseType&&(i.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=()=>{i.abort(),r(new Zg)}),t.timeout&&(i.timeout=t.timeout),i.onload=()=>{t.abortSignal&&(t.abortSignal.onabort=null),i.status>=200&&i.status<300?n(new DJe(i.status,i.statusText,i.response||i.responseText)):r(new IO(i.response||i.responseText||i.statusText,i.status))},i.onerror=()=>{this._logger.log(on.Warning,`Error from HTTP request. ${i.status}: ${i.statusText}.`),r(new IO(i.statusText,i.status))},i.ontimeout=()=>{this._logger.log(on.Warning,"Timeout from HTTP request."),r(new L2e)},i.send(t.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class CDt extends sK{constructor(t){if(super(),typeof fetch<"u"||kl.isNode)this._httpClient=new yDt(t);else if(typeof XMLHttpRequest<"u")this._httpClient=new MDt(t);else throw new Error("No usable HttpClient found.")}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new Zg):t.method?t.url?this._httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(t){return this._httpClient.getCookieString(t)}}class Yp{static write(t){return`${t}${Yp.RecordSeparator}`}static parse(t){if(t[t.length-1]!==Yp.RecordSeparator)throw new Error("Message is incomplete.");const n=t.split(Yp.RecordSeparator);return n.pop(),n}}Yp.RecordSeparatorCode=30;Yp.RecordSeparator=String.fromCharCode(Yp.RecordSeparatorCode);class xDt{writeHandshakeRequest(t){return Yp.write(JSON.stringify(t))}parseHandshakeResponse(t){let n,r;if(hz(t)){const s=new Uint8Array(t),l=s.indexOf(Yp.RecordSeparatorCode);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;n=String.fromCharCode.apply(null,Array.prototype.slice.call(s.slice(0,c))),r=s.byteLength>c?s.slice(c).buffer:null}else{const s=t,l=s.indexOf(Yp.RecordSeparator);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;n=s.substring(0,c),r=s.length>c?s.substring(c):null}const i=Yp.parse(n),o=JSON.parse(i[0]);if(o.type)throw new Error("Expected a handshake response from the server.");return[r,o]}}var no;(function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close",e[e.Ack=8]="Ack",e[e.Sequence=9]="Sequence"})(no||(no={}));class wDt{constructor(){this.observers=[]}next(t){for(const n of this.observers)n.next(t)}error(t){for(const n of this.observers)n.error&&n.error(t)}complete(){for(const t of this.observers)t.complete&&t.complete()}subscribe(t){return this.observers.push(t),new hDt(this,t)}}class SDt{constructor(t,n,r){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=t,this._connection=n,this._bufferSize=r}async _send(t){const n=this._protocol.writeMessage(t);let r=Promise.resolve();if(this._isInvocationMessage(t)){this._totalMessageCount++;let i=()=>{},o=()=>{};hz(n)?this._bufferedByteCount+=n.byteLength:this._bufferedByteCount+=n.length,this._bufferedByteCount>=this._bufferSize&&(r=new Promise((a,s)=>{i=a,o=s})),this._messages.push(new ADt(n,this._totalMessageCount,i,o))}try{this._reconnectInProgress||await this._connection.send(n)}catch{this._disconnected()}await r}_ack(t){let n=-1;for(let r=0;r<this._messages.length;r++){const i=this._messages[r];if(i._id<=t.sequenceId)n=r,hz(i._message)?this._bufferedByteCount-=i._message.byteLength:this._bufferedByteCount-=i._message.length,i._resolver();else if(this._bufferedByteCount<this._bufferSize)i._resolver();else break}n!==-1&&(this._messages=this._messages.slice(n+1))}_shouldProcessMessage(t){if(this._waitForSequenceMessage)return t.type!==no.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(t))return!0;const n=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,n<=this._latestReceivedSequenceId?(n===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=n,this._ackTimer(),!0)}_resetSequence(t){if(t.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=t.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const t=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:no.Sequence,sequenceId:t}));const n=this._messages;for(const r of n)await this._connection.send(r._message);this._reconnectInProgress=!1}_dispose(t){t??(t=new Error("Unable to reconnect to server."));for(const n of this._messages)n._rejector(t)}_isInvocationMessage(t){switch(t.type){case no.Invocation:case no.StreamItem:case no.Completion:case no.StreamInvocation:case no.CancelInvocation:return!0;case no.Close:case no.Sequence:case no.Ping:case no.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:no.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class ADt{constructor(t,n,r,i){this._message=t,this._id=n,this._resolver=r,this._rejector=i}}const ODt=30*1e3,zDt=15*1e3,TDt=1e5;var fl;(function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"})(fl||(fl={}));class _2e{static create(t,n,r,i,o,a,s){return new _2e(t,n,r,i,o,a,s)}constructor(t,n,r,i,o,a,s){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(on.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Yc.isRequired(t,"connection"),Yc.isRequired(n,"logger"),Yc.isRequired(r,"protocol"),this.serverTimeoutInMilliseconds=o??ODt,this.keepAliveIntervalInMilliseconds=a??zDt,this._statefulReconnectBufferSize=s??TDt,this._logger=n,this._protocol=r,this.connection=t,this._reconnectPolicy=i,this._handshakeProtocol=new xDt,this.connection.onreceive=l=>this._processIncomingData(l),this.connection.onclose=l=>this._connectionClosed(l),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=fl.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:no.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(t){if(this._connectionState!==fl.Disconnected&&this._connectionState!==fl.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==fl.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=fl.Connecting,this._logger.log(on.Debug,"Starting HubConnection.");try{await this._startInternal(),kl.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=fl.Connected,this._connectionStarted=!0,this._logger.log(on.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=fl.Disconnected,this._logger.log(on.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const t=new Promise((n,r)=>{this._handshakeResolver=n,this._handshakeRejecter=r});await this.connection.start(this._protocol.transferFormat);try{let n=this._protocol.version;this.connection.features.reconnect||(n=1);const r={protocol:this._protocol.name,version:n};if(this._logger.log(on.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(r)),this._logger.log(on.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await t,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new SDt(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(n){throw this._logger.log(on.Debug,`Hub handshake failed with error '${n}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(n),n}}async stop(){const t=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await t}catch{}}_stopInternal(t){if(this._connectionState===fl.Disconnected)return this._logger.log(on.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===fl.Disconnecting)return this._logger.log(on.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const n=this._connectionState;return this._connectionState=fl.Disconnecting,this._logger.log(on.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(on.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(n===fl.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new Zg("The connection was stopped before the hub handshake could complete."),this.connection.stop(t))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._createStreamInvocation(t,n,i);let a;const s=new wDt;return s.cancelCallback=()=>{const l=this._createCancelInvocation(o.invocationId);return delete this._callbacks[o.invocationId],a.then(()=>this._sendWithProtocol(l))},this._callbacks[o.invocationId]=(l,c)=>{if(c){s.error(c);return}else l&&(l.type===no.Completion?l.error?s.error(new Error(l.error)):s.complete():s.next(l.item))},a=this._sendWithProtocol(o).catch(l=>{s.error(l),delete this._callbacks[o.invocationId]}),this._launchStreams(r,a),s}_sendMessage(t){return this._resetKeepAliveInterval(),this.connection.send(t)}_sendWithProtocol(t){return this._messageBuffer?this._messageBuffer._send(t):this._sendMessage(this._protocol.writeMessage(t))}send(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._sendWithProtocol(this._createInvocation(t,n,!0,i));return this._launchStreams(r,o),o}invoke(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._createInvocation(t,n,!1,i);return new Promise((s,l)=>{this._callbacks[o.invocationId]=(u,d)=>{if(d){l(d);return}else u&&(u.type===no.Completion?u.error?l(new Error(u.error)):s(u.result):l(new Error(`Unexpected message type: ${u.type}`)))};const c=this._sendWithProtocol(o).catch(u=>{l(u),delete this._callbacks[o.invocationId]});this._launchStreams(r,c)})}on(t,n){!t||!n||(t=t.toLowerCase(),this._methods[t]||(this._methods[t]=[]),this._methods[t].indexOf(n)===-1&&this._methods[t].push(n))}off(t,n){if(!t)return;t=t.toLowerCase();const r=this._methods[t];if(r)if(n){const i=r.indexOf(n);i!==-1&&(r.splice(i,1),r.length===0&&delete this._methods[t])}else delete this._methods[t]}onclose(t){t&&this._closedCallbacks.push(t)}onreconnecting(t){t&&this._reconnectingCallbacks.push(t)}onreconnected(t){t&&this._reconnectedCallbacks.push(t)}_processIncomingData(t){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(t=this._processHandshakeResponse(t),this._receivedHandshakeResponse=!0),t){const n=this._protocol.parseMessages(t,this._logger);for(const r of n)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(r)))switch(r.type){case no.Invocation:this._invokeClientMethod(r).catch(i=>{this._logger.log(on.Error,`Invoke client method threw error: ${Nne(i)}`)});break;case no.StreamItem:case no.Completion:{const i=this._callbacks[r.invocationId];if(i){r.type===no.Completion&&delete this._callbacks[r.invocationId];try{i(r)}catch(o){this._logger.log(on.Error,`Stream callback threw error: ${Nne(o)}`)}}break}case no.Ping:break;case no.Close:{this._logger.log(on.Information,"Close message received from server.");const i=r.error?new Error("Server returned an error on close: "+r.error):void 0;r.allowReconnect===!0?this.connection.stop(i):this._stopPromise=this._stopInternal(i);break}case no.Ack:this._messageBuffer&&this._messageBuffer._ack(r);break;case no.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(r);break;default:this._logger.log(on.Warning,`Invalid message type: ${r.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let n,r;try{[r,n]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(i){const o="Error parsing handshake response: "+i;this._logger.log(on.Error,o);const a=new Error(o);throw this._handshakeRejecter(a),a}if(n.error){const i="Server returned handshake error: "+n.error;this._logger.log(on.Error,i);const o=new Error(i);throw this._handshakeRejecter(o),o}else this._logger.log(on.Debug,"Server handshake complete.");return this._handshakeResolver(),r}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let t=this._nextKeepAlive-new Date().getTime();t<0&&(t=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===fl.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},t)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(t){const n=t.target.toLowerCase(),r=this._methods[n];if(!r){this._logger.log(on.Warning,`No client method with the name '${n}' found.`),t.invocationId&&(this._logger.log(on.Warning,`No result given for '${n}' method and invocation ID '${t.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)));return}const i=r.slice(),o=!!t.invocationId;let a,s,l;for(const c of i)try{const u=a;a=await c.apply(this,t.arguments),o&&a&&u&&(this._logger.log(on.Error,`Multiple results provided for '${n}'. Sending error to server.`),l=this._createCompletionMessage(t.invocationId,"Client provided multiple results.",null)),s=void 0}catch(u){s=u,this._logger.log(on.Error,`A callback for the method '${n}' threw error '${u}'.`)}l?await this._sendWithProtocol(l):o?(s?l=this._createCompletionMessage(t.invocationId,`${s}`,null):a!==void 0?l=this._createCompletionMessage(t.invocationId,null,a):(this._logger.log(on.Warning,`No result given for '${n}' method and invocation ID '${t.invocationId}'.`),l=this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(l)):a&&this._logger.log(on.Error,`Result given for '${n}' method but server is not expecting a result.`)}_connectionClosed(t){this._logger.log(on.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||t||new Zg("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===fl.Disconnecting?this._completeClose(t):this._connectionState===fl.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===fl.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=fl.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(t??new Error("Connection closed.")),this._messageBuffer=void 0),kl.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(n=>n.apply(this,[t]))}catch(n){this._logger.log(on.Error,`An onclose callback called with error '${t}' threw error '${n}'.`)}}}async _reconnect(t){const n=Date.now();let r=0,i=t!==void 0?t:new Error("Attempting to reconnect due to a unknown error."),o=this._getNextRetryDelay(r++,0,i);if(o===null){this._logger.log(on.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(t);return}if(this._connectionState=fl.Reconnecting,t?this._logger.log(on.Information,`Connection reconnecting because of error '${t}'.`):this._logger.log(on.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(a=>a.apply(this,[t]))}catch(a){this._logger.log(on.Error,`An onreconnecting callback called with error '${t}' threw error '${a}'.`)}if(this._connectionState!==fl.Reconnecting){this._logger.log(on.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;o!==null;){if(this._logger.log(on.Information,`Reconnect attempt number ${r} will start in ${o} ms.`),await new Promise(a=>{this._reconnectDelayHandle=setTimeout(a,o)}),this._reconnectDelayHandle=void 0,this._connectionState!==fl.Reconnecting){this._logger.log(on.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=fl.Connected,this._logger.log(on.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(a=>a.apply(this,[this.connection.connectionId]))}catch(a){this._logger.log(on.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(this._logger.log(on.Information,`Reconnect attempt failed because of error '${a}'.`),this._connectionState!==fl.Reconnecting){this._logger.log(on.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===fl.Disconnecting&&this._completeClose();return}i=a instanceof Error?a:new Error(a.toString()),o=this._getNextRetryDelay(r++,Date.now()-n,i)}}this._logger.log(on.Information,`Reconnect retries have been exhausted after ${Date.now()-n} ms and ${r} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(t,n,r){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:t,retryReason:r})}catch(i){return this._logger.log(on.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${n}) threw error '${i}'.`),null}}_cancelCallbacksWithError(t){const n=this._callbacks;this._callbacks={},Object.keys(n).forEach(r=>{const i=n[r];try{i(null,t)}catch(o){this._logger.log(on.Error,`Stream 'error' callback called with '${t}' threw error: ${Nne(o)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(t,n,r,i){if(r)return i.length!==0?{arguments:n,streamIds:i,target:t,type:no.Invocation}:{arguments:n,target:t,type:no.Invocation};{const o=this._invocationId;return this._invocationId++,i.length!==0?{arguments:n,invocationId:o.toString(),streamIds:i,target:t,type:no.Invocation}:{arguments:n,invocationId:o.toString(),target:t,type:no.Invocation}}}_launchStreams(t,n){if(t.length!==0){n||(n=Promise.resolve());for(const r in t)t[r].subscribe({complete:()=>{n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r)))},error:i=>{let o;i instanceof Error?o=i.message:i&&i.toString?o=i.toString():o="Unknown error",n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r,o)))},next:i=>{n=n.then(()=>this._sendWithProtocol(this._createStreamItemMessage(r,i)))}})}}_replaceStreamingParams(t){const n=[],r=[];for(let i=0;i<t.length;i++){const o=t[i];if(this._isObservable(o)){const a=this._invocationId;this._invocationId++,n[a]=o,r.push(a.toString()),t.splice(i,1)}}return[n,r]}_isObservable(t){return t&&t.subscribe&&typeof t.subscribe=="function"}_createStreamInvocation(t,n,r){const i=this._invocationId;return this._invocationId++,r.length!==0?{arguments:n,invocationId:i.toString(),streamIds:r,target:t,type:no.StreamInvocation}:{arguments:n,invocationId:i.toString(),target:t,type:no.StreamInvocation}}_createCancelInvocation(t){return{invocationId:t,type:no.CancelInvocation}}_createStreamItemMessage(t,n){return{invocationId:t,item:n,type:no.StreamItem}}_createCompletionMessage(t,n,r){return n?{error:n,invocationId:t,type:no.Completion}:{invocationId:t,result:r,type:no.Completion}}_createCloseMessage(){return{type:no.Close}}}const EDt=[0,2e3,1e4,3e4,null];class oEe{constructor(t){this._retryDelays=t!==void 0?[...t,null]:EDt}nextRetryDelayInMilliseconds(t){return this._retryDelays[t.previousRetryCount]}}let PO=class{};PO.Authorization="Authorization";PO.Cookie="Cookie";class RDt extends sK{constructor(t,n){super(),this._innerClient=t,this._accessTokenFactory=n}async send(t){let n=!0;this._accessTokenFactory&&(!this._accessToken||t.url&&t.url.indexOf("/negotiate?")>0)&&(n=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(t);const r=await this._innerClient.send(t);return n&&r.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(t),await this._innerClient.send(t)):r}_setAuthorizationHeader(t){t.headers||(t.headers={}),this._accessToken?t.headers[PO.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&t.headers[PO.Authorization]&&delete t.headers[PO.Authorization]}getCookieString(t){return this._innerClient.getCookieString(t)}}var pu;(function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"})(pu||(pu={}));var s0;(function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"})(s0||(s0={}));let IDt=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class aEe{get pollAborted(){return this._pollAbort.aborted}constructor(t,n,r){this._httpClient=t,this._logger=n,this._pollAbort=new IDt,this._options=r,this._running=!1,this.onreceive=null,this.onclose=null}async connect(t,n){if(Yc.isRequired(t,"url"),Yc.isRequired(n,"transferFormat"),Yc.isIn(n,s0,"transferFormat"),this._url=t,this._logger.log(on.Trace,"(LongPolling transport) Connecting."),n===s0.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[r,i]=YI(),o={[r]:i,...this._options.headers},a={abortSignal:this._pollAbort.signal,headers:o,timeout:1e5,withCredentials:this._options.withCredentials};n===s0.Binary&&(a.responseType="arraybuffer");const s=`${t}&_=${Date.now()}`;this._logger.log(on.Trace,`(LongPolling transport) polling: ${s}.`);const l=await this._httpClient.get(s,a);l.statusCode!==200?(this._logger.log(on.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new IO(l.statusText||"",l.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,a)}async _poll(t,n){try{for(;this._running;)try{const r=`${t}&_=${Date.now()}`;this._logger.log(on.Trace,`(LongPolling transport) polling: ${r}.`);const i=await this._httpClient.get(r,n);i.statusCode===204?(this._logger.log(on.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):i.statusCode!==200?(this._logger.log(on.Error,`(LongPolling transport) Unexpected response code: ${i.statusCode}.`),this._closeError=new IO(i.statusText||"",i.statusCode),this._running=!1):i.content?(this._logger.log(on.Trace,`(LongPolling transport) data received. ${aW(i.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(i.content)):this._logger.log(on.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(r){this._running?r instanceof L2e?this._logger.log(on.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=r,this._running=!1):this._logger.log(on.Trace,`(LongPolling transport) Poll errored after shutdown: ${r.message}`)}}finally{this._logger.log(on.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(t){return this._running?kJe(this._logger,"LongPolling",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(on.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(on.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const t={},[n,r]=YI();t[n]=r;const i={headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let o;try{await this._httpClient.delete(this._url,i)}catch(a){o=a}o?o instanceof IO&&(o.statusCode===404?this._logger.log(on.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(on.Trace,`(LongPolling transport) Error sending a DELETE request: ${o}`)):this._logger.log(on.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(on.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let t="(LongPolling transport) Firing onclose event.";this._closeError&&(t+=" Error: "+this._closeError),this._logger.log(on.Trace,t),this.onclose(this._closeError)}}}class PDt{constructor(t,n,r,i){this._httpClient=t,this._accessToken=n,this._logger=r,this._options=i,this.onreceive=null,this.onclose=null}async connect(t,n){return Yc.isRequired(t,"url"),Yc.isRequired(n,"transferFormat"),Yc.isIn(n,s0,"transferFormat"),this._logger.log(on.Trace,"(SSE transport) Connecting."),this._url=t,this._accessToken&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((r,i)=>{let o=!1;if(n!==s0.Text){i(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let a;if(kl.isBrowser||kl.isWebWorker)a=new this._options.EventSource(t,{withCredentials:this._options.withCredentials});else{const s=this._httpClient.getCookieString(t),l={};l.Cookie=s;const[c,u]=YI();l[c]=u,a=new this._options.EventSource(t,{withCredentials:this._options.withCredentials,headers:{...l,...this._options.headers}})}try{a.onmessage=s=>{if(this.onreceive)try{this._logger.log(on.Trace,`(SSE transport) data received. ${aW(s.data,this._options.logMessageContent)}.`),this.onreceive(s.data)}catch(l){this._close(l);return}},a.onerror=s=>{o?this._close():i(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},a.onopen=()=>{this._logger.log(on.Information,`SSE connected to ${this._url}`),this._eventSource=a,o=!0,r()}}catch(s){i(s);return}})}async send(t){return this._eventSource?kJe(this._logger,"SSE",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(t){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(t))}}class DDt{constructor(t,n,r,i,o,a){this._logger=r,this._accessTokenFactory=n,this._logMessageContent=i,this._webSocketConstructor=o,this._httpClient=t,this.onreceive=null,this.onclose=null,this._headers=a}async connect(t,n){Yc.isRequired(t,"url"),Yc.isRequired(n,"transferFormat"),Yc.isIn(n,s0,"transferFormat"),this._logger.log(on.Trace,"(WebSockets transport) Connecting.");let r;return this._accessTokenFactory&&(r=await this._accessTokenFactory()),new Promise((i,o)=>{t=t.replace(/^http/,"ws");let a;const s=this._httpClient.getCookieString(t);let l=!1;if(kl.isNode||kl.isReactNative){const c={},[u,d]=YI();c[u]=d,r&&(c[PO.Authorization]=`Bearer ${r}`),s&&(c[PO.Cookie]=s),a=new this._webSocketConstructor(t,void 0,{headers:{...c,...this._headers}})}else r&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(r)}`);a||(a=new this._webSocketConstructor(t)),n===s0.Binary&&(a.binaryType="arraybuffer"),a.onopen=c=>{this._logger.log(on.Information,`WebSocket connected to ${t}.`),this._webSocket=a,l=!0,i()},a.onerror=c=>{let u=null;typeof ErrorEvent<"u"&&c instanceof ErrorEvent?u=c.error:u="There was an error with the transport",this._logger.log(on.Information,`(WebSockets transport) ${u}.`)},a.onmessage=c=>{if(this._logger.log(on.Trace,`(WebSockets transport) data received. ${aW(c.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(c.data)}catch(u){this._close(u);return}},a.onclose=c=>{if(l)this._close(c);else{let u=null;typeof ErrorEvent<"u"&&c instanceof ErrorEvent?u=c.error:u="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",o(new Error(u))}}})}send(t){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(on.Trace,`(WebSockets transport) sending data. ${aW(t,this._logMessageContent)}.`),this._webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(t){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(on.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(t)&&(t.wasClean===!1||t.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${t.code} (${t.reason||"no reason given"}).`)):t instanceof Error?this.onclose(t):this.onclose())}_isCloseEvent(t){return t&&typeof t.wasClean=="boolean"&&typeof t.code=="number"}}const sEe=100;class kDt{constructor(t,n={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Yc.isRequired(t,"url"),this._logger=pDt(n.logger),this.baseUrl=this._resolveUrl(t),n=n||{},n.logMessageContent=n.logMessageContent===void 0?!1:n.logMessageContent,typeof n.withCredentials=="boolean"||n.withCredentials===void 0)n.withCredentials=n.withCredentials===void 0?!0:n.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");n.timeout=n.timeout===void 0?100*1e3:n.timeout;let r=null,i=null;if(kl.isNode&&typeof require<"u"){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;r=o("ws"),i=o("eventsource")}!kl.isNode&&typeof WebSocket<"u"&&!n.WebSocket?n.WebSocket=WebSocket:kl.isNode&&!n.WebSocket&&r&&(n.WebSocket=r),!kl.isNode&&typeof EventSource<"u"&&!n.EventSource?n.EventSource=EventSource:kl.isNode&&!n.EventSource&&typeof i<"u"&&(n.EventSource=i),this._httpClient=new RDt(n.httpClient||new CDt(this._logger),n.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=n,this.onreceive=null,this.onclose=null}async start(t){if(t=t||s0.Binary,Yc.isIn(t,s0,"transferFormat"),this._logger.log(on.Debug,`Starting connection with transfer format '${s0[t]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(t),await this._startInternalPromise,this._connectionState==="Disconnecting"){const n="Failed to start the HttpConnection before stop() was called.";return this._logger.log(on.Error,n),await this._stopPromise,Promise.reject(new Zg(n))}else if(this._connectionState!=="Connected"){const n="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(on.Error,n),Promise.reject(new Zg(n))}this._connectionStarted=!0}send(t){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new N2e(this.transport)),this._sendQueue.send(t))}async stop(t){if(this._connectionState==="Disconnected")return this._logger.log(on.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(on.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(n=>{this._stopPromiseResolver=n}),await this._stopInternal(t),await this._stopPromise}async _stopInternal(t){this._stopError=t;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(n){this._logger.log(on.Error,`HttpConnection.transport.stop() threw error '${n}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(on.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(t){let n=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===pu.WebSockets)this.transport=this._constructTransport(pu.WebSockets),await this._startTransport(n,t);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let r=null,i=0;do{if(r=await this._getNegotiationResponse(n),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new Zg("The connection was stopped during negotiation.");if(r.error)throw new Error(r.error);if(r.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(r.url&&(n=r.url),r.accessToken){const o=r.accessToken;this._accessTokenFactory=()=>o,this._httpClient._accessToken=o,this._httpClient._accessTokenFactory=void 0}i++}while(r.url&&i<sEe);if(i===sEe&&r.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(n,this._options.transport,r,t)}this.transport instanceof aEe&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(on.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(r){return this._logger.log(on.Error,"Failed to start the connection: "+r),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(r)}}async _getNegotiationResponse(t){const n={},[r,i]=YI();n[r]=i;const o=this._resolveNegotiateUrl(t);this._logger.log(on.Debug,`Sending negotiation request: ${o}.`);try{const a=await this._httpClient.post(o,{content:"",headers:{...n,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(a.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${a.statusCode}'`));const s=JSON.parse(a.content);return(!s.negotiateVersion||s.negotiateVersion<1)&&(s.connectionToken=s.connectionId),s.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new rEe("Client didn't negotiate Stateful Reconnect but the server did.")):s}catch(a){let s="Failed to complete negotiation with the server: "+a;return a instanceof IO&&a.statusCode===404&&(s=s+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(on.Error,s),Promise.reject(new rEe(s))}}_createConnectUrl(t,n){return n?t+(t.indexOf("?")===-1?"?":"&")+`id=${n}`:t}async _createTransport(t,n,r,i){let o=this._createConnectUrl(t,r.connectionToken);if(this._isITransport(n)){this._logger.log(on.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=n,await this._startTransport(o,i),this.connectionId=r.connectionId;return}const a=[],s=r.availableTransports||[];let l=r;for(const c of s){const u=this._resolveTransportOrError(c,n,i,l?.useStatefulReconnect===!0);if(u instanceof Error)a.push(`${c.transport} failed:`),a.push(u);else if(this._isITransport(u)){if(this.transport=u,!l){try{l=await this._getNegotiationResponse(t)}catch(d){return Promise.reject(d)}o=this._createConnectUrl(t,l.connectionToken)}try{await this._startTransport(o,i),this.connectionId=l.connectionId;return}catch(d){if(this._logger.log(on.Error,`Failed to start the transport '${c.transport}': ${d}`),l=void 0,a.push(new lDt(`${c.transport} failed: ${d}`,pu[c.transport])),this._connectionState!=="Connecting"){const p="Failed to select transport before stop() was called.";return this._logger.log(on.Debug,p),Promise.reject(new Zg(p))}}}}return a.length>0?Promise.reject(new cDt(`Unable to connect to the server with any of the available transports. ${a.join(" ")}`,a)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(t){switch(t){case pu.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new DDt(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case pu.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new PDt(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case pu.LongPolling:return new aEe(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${t}.`)}}_startTransport(t,n){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async r=>{let i=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(t,n),await this.features.resend()}catch{i=!0}else{this._stopConnection(r);return}i&&this._stopConnection(r)}:this.transport.onclose=r=>this._stopConnection(r),this.transport.connect(t,n)}_resolveTransportOrError(t,n,r,i){const o=pu[t.transport];if(o==null)return this._logger.log(on.Debug,`Skipping transport '${t.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${t.transport}' because it is not supported by this client.`);if(LDt(n,o))if(t.transferFormats.map(s=>s0[s]).indexOf(r)>=0){if(o===pu.WebSockets&&!this._options.WebSocket||o===pu.ServerSentEvents&&!this._options.EventSource)return this._logger.log(on.Debug,`Skipping transport '${pu[o]}' because it is not supported in your environment.'`),new aDt(`'${pu[o]}' is not supported in your environment.`,o);this._logger.log(on.Debug,`Selecting transport '${pu[o]}'.`);try{return this.features.reconnect=o===pu.WebSockets?i:void 0,this._constructTransport(o)}catch(s){return s}}else return this._logger.log(on.Debug,`Skipping transport '${pu[o]}' because it does not support the requested transfer format '${s0[r]}'.`),new Error(`'${pu[o]}' does not support ${s0[r]}.`);else return this._logger.log(on.Debug,`Skipping transport '${pu[o]}' because it was disabled by the client.`),new sDt(`'${pu[o]}' is disabled by the client.`,o)}_isITransport(t){return t&&typeof t=="object"&&"connect"in t}_stopConnection(t){if(this._logger.log(on.Debug,`HttpConnection.stopConnection(${t}) called while in state ${this._connectionState}.`),this.transport=void 0,t=this._stopError||t,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(on.Debug,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(on.Warning,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${t}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),t?this._logger.log(on.Error,`Connection disconnected with error '${t}'.`):this._logger.log(on.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(n=>{this._logger.log(on.Error,`TransportSendQueue.stop() threw error '${n}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(n){this._logger.log(on.Error,`HttpConnection.onclose(${t}) threw error '${n}'.`)}}}_resolveUrl(t){if(t.lastIndexOf("https://",0)===0||t.lastIndexOf("http://",0)===0)return t;if(!kl.isBrowser)throw new Error(`Cannot resolve '${t}'.`);const n=window.document.createElement("a");return n.href=t,this._logger.log(on.Information,`Normalizing '${t}' to '${n.href}'.`),n.href}_resolveNegotiateUrl(t){const n=new URL(t);n.pathname.endsWith("/")?n.pathname+="negotiate":n.pathname+="/negotiate";const r=new URLSearchParams(n.searchParams);return r.has("negotiateVersion")||r.append("negotiateVersion",this._negotiateVersion.toString()),r.has("useStatefulReconnect")?r.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&r.append("useStatefulReconnect","true"),n.search=r.toString(),n.toString()}}function LDt(e,t){return!e||(t&e)!==0}class N2e{constructor(t){this._transport=t,this._buffer=[],this._executing=!0,this._sendBufferedData=new _H,this._transportResult=new _H,this._sendLoopPromise=this._sendLoop()}send(t){return this._bufferData(t),this._transportResult||(this._transportResult=new _H),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(t){if(this._buffer.length&&typeof this._buffer[0]!=typeof t)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof t}`);this._buffer.push(t),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new _H;const t=this._transportResult;this._transportResult=void 0;const n=typeof this._buffer[0]=="string"?this._buffer.join(""):N2e._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(n),t.resolve()}catch(r){t.reject(r)}}}static _concatBuffers(t){const n=t.map(o=>o.byteLength).reduce((o,a)=>o+a),r=new Uint8Array(n);let i=0;for(const o of t)r.set(new Uint8Array(o),i),i+=o.byteLength;return r.buffer}}class _H{constructor(){this.promise=new Promise((t,n)=>[this._resolver,this._rejecter]=[t,n])}resolve(){this._resolver()}reject(t){this._rejecter(t)}}const _Dt="json";class NDt{constructor(){this.name=_Dt,this.version=2,this.transferFormat=s0.Text}parseMessages(t,n){if(typeof t!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];n===null&&(n=oW.instance);const r=Yp.parse(t),i=[];for(const o of r){const a=JSON.parse(o);if(typeof a.type!="number")throw new Error("Invalid payload.");switch(a.type){case no.Invocation:this._isInvocationMessage(a);break;case no.StreamItem:this._isStreamItemMessage(a);break;case no.Completion:this._isCompletionMessage(a);break;case no.Ping:break;case no.Close:break;case no.Ack:this._isAckMessage(a);break;case no.Sequence:this._isSequenceMessage(a);break;default:n.log(on.Information,"Unknown message type '"+a.type+"' ignored.");continue}i.push(a)}return i}writeMessage(t){return Yp.write(JSON.stringify(t))}_isInvocationMessage(t){this._assertNotEmptyString(t.target,"Invalid payload for Invocation message."),t.invocationId!==void 0&&this._assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(t){if(this._assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),t.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this._assertNotEmptyString(t.error,"Invalid payload for Completion message."),this._assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")}_isAckMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(t,n){if(typeof t!="string"||t==="")throw new Error(n)}}const FDt={trace:on.Trace,debug:on.Debug,info:on.Information,information:on.Information,warn:on.Warning,warning:on.Warning,error:on.Error,critical:on.Critical,none:on.None};function WDt(e){const t=FDt[e.toLowerCase()];if(typeof t<"u")return t;throw new Error(`Unknown log level: ${e}`)}class LJe{configureLogging(t){if(Yc.isRequired(t,"logging"),qDt(t))this.logger=t;else if(typeof t=="string"){const n=WDt(t);this.logger=new d$(n)}else this.logger=new d$(t);return this}withUrl(t,n){return Yc.isRequired(t,"url"),Yc.isNotEmpty(t,"url"),this.url=t,typeof n=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...n}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:n},this}withHubProtocol(t){return Yc.isRequired(t,"protocol"),this.protocol=t,this}withAutomaticReconnect(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return t?Array.isArray(t)?this.reconnectPolicy=new oEe(t):this.reconnectPolicy=t:this.reconnectPolicy=new oEe,this}withServerTimeout(t){return Yc.isRequired(t,"milliseconds"),this._serverTimeoutInMilliseconds=t,this}withKeepAliveInterval(t){return Yc.isRequired(t,"milliseconds"),this._keepAliveIntervalInMilliseconds=t,this}withStatefulReconnect(t){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=t?.bufferSize,this}build(){const t=this.httpConnectionOptions||{};if(t.logger===void 0&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const n=new kDt(this.url,t);return _2e.create(n,this.logger||oW.instance,this.protocol||new NDt,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function qDt(e){return e.log!==void 0}var Wy=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,n){const r=t?this.allAsyncListeners:this.allSyncListeners;let i=r.get(e);return!i&&n&&(i=new Set,r.set(e,i)),i}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,n=!1){this.getListeners(e,n,!0).add(t)}removeEventListener(e,t,n=!1){const r=this.getListeners(e,n,!1);r&&(r.delete(t),r.size===0&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const n=e.type;if(t&&"event"in e){const s=e.event;s instanceof Event&&(e.eventPath=s.composedPath())}const{frameworkOverrides:r}=this,i=s=>{const l=r?()=>r.wrapIncoming(s):s;t?this.dispatchAsync(l):l()},o=this.getListeners(n,t,!1);if((o?.size??0)>0){const s=new Set(o);for(const l of s)o?.has(l)&&i(()=>l(e))}const a=this.getGlobalListeners(t);if(a.size>0){const s=new Set(a);for(const l of s)i(()=>l(n,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function BDt(e,t){return t}function F2e(e){return e?.getLocaleTextFunc()??BDt}function fh(e,t,n){n==null||typeof n=="string"&&n==""?W2e(e,t):gh(e,t,n)}function gh(e,t,n){e.setAttribute(_Je(t),n.toString())}function W2e(e,t){e.removeAttribute(_Je(t))}function _Je(e){return`aria-${e}`}function C0(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function jDt(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function HDt(e){return parseInt(e.getAttribute("aria-posinset"),10)}function VDt(e){return e.getAttribute("aria-label")}function Es(e,t){fh(e,"label",t)}function Hx(e,t){fh(e,"labelledby",t)}function lK(e,t){fh(e,"describedby",t)}function NJe(e,t){fh(e,"live",t)}function GDt(e,t){fh(e,"atomic",t)}function $Dt(e,t){fh(e,"relevant",t)}function cK(e,t){fh(e,"level",t)}function p$(e,t){fh(e,"disabled",t)}function q2e(e,t){fh(e,"hidden",t)}function FJe(e,t){fh(e,"activedescendant",t)}function d1(e,t){gh(e,"expanded",t)}function WJe(e){W2e(e,"expanded")}function uK(e,t){gh(e,"setsize",t)}function dK(e,t){gh(e,"posinset",t)}function UDt(e,t){gh(e,"multiselectable",t)}function qJe(e,t){gh(e,"rowcount",t)}function pK(e,t){gh(e,"rowindex",t)}function XDt(e,t){gh(e,"rowspan",t)}function BJe(e,t){gh(e,"colcount",t)}function B2e(e,t){gh(e,"colindex",t)}function jJe(e,t){gh(e,"colspan",t)}function HJe(e,t){gh(e,"sort",t)}function VJe(e){W2e(e,"sort")}function sW(e,t){fh(e,"selected",t)}function GJe(e,t){gh(e,"checked",t===void 0?"mixed":t)}function j2e(e,t){fh(e,"controls",t.id),Hx(t,e.id)}function YDt(e,t){fh(e,"haspopup",t===!1?null:t)}function H2e(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var Fne,Wne,qne,Bne,Zpe,Jpe,jne;function yw(){return Fne===void 0&&(Fne=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Fne}function V2e(){return Wne===void 0&&(Wne=/(firefox)/i.test(navigator.userAgent)),Wne}function $Je(){return qne===void 0&&(qne=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),qne}function Cx(){return Bne===void 0&&(Bne=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),Bne}function ehe(e){if(!e)return null;const t=e.tabIndex,n=e.getAttribute("tabIndex");return t===-1&&(n===null||n===""&&!V2e())?null:t.toString()}function KDt(){if(jne!==void 0)return jne;if(!document.body)return-1;let e=1e6;const t=V2e()?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){const r=e*2;if(n.style.height=r+"px",r>t||n.clientHeight!==r)break;e=r}return document.body.removeChild(n),jne=e,e}function QDt(){return Jpe==null&&UJe(),Jpe}function UJe(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let n=t.offsetWidth-t.clientWidth;n===0&&t.clientWidth===0&&(n=null),t.parentNode&&t.parentNode.removeChild(t),n!=null&&(Jpe=n,Zpe=n===0)}function XJe(){return Zpe==null&&UJe(),Zpe}function h$(e,t,n){const r=e.parentElement;let i=r&&r.firstChild;for(;i;)t&&i.classList.toggle(t,i===e),n&&i.classList.toggle(n,i!==e),i=i.nextSibling}var ZDt="[tabindex], input, select, button, textarea, [href]",YJe="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function G2e(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,r=t.call(e,"input, select, button, textarea"),i=t.call(e,YJe),o=x0(e);return r&&!i&&o}function Nn(e,t,n={}){const{skipAriaHidden:r}=n;e.classList.toggle("ag-hidden",!t),r||q2e(e,!t)}function KJe(e,t,n={}){const{skipAriaHidden:r}=n;e.classList.toggle("ag-invisible",!t),r||q2e(e,!t)}function nf(e,t){const n="disabled",r=t?o=>o.setAttribute(n,""):o=>o.removeAttribute(n);r(e);const i=e.querySelectorAll("input")??[];for(const o of i)r(o)}function DO(e,t,n){let r=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof n=="number"){if(++r>n)break}else if(e===n)break}return!1}function p3(e){const{height:t,width:n,borderTopWidth:r,borderRightWidth:i,borderBottomWidth:o,borderLeftWidth:a,paddingTop:s,paddingRight:l,paddingBottom:c,paddingLeft:u,marginTop:d,marginRight:p,marginBottom:h,marginLeft:g,boxSizing:m}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(n||"0"),borderTopWidth:parseFloat(r||"0"),borderRightWidth:parseFloat(i||"0"),borderBottomWidth:parseFloat(o||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(s||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(u||"0"),marginTop:parseFloat(d||"0"),marginRight:parseFloat(p||"0"),marginBottom:parseFloat(h||"0"),marginLeft:parseFloat(g||"0"),boxSizing:m}}function hK(e){const t=p3(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function KI(e){const t=p3(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function fK(e){const{height:t,marginBottom:n,marginTop:r}=p3(e);return Math.floor(t+n+r)}function fz(e){const{width:t,marginLeft:n,marginRight:r}=p3(e);return Math.floor(t+n+r)}function QJe(e){const t=e.getBoundingClientRect(),{borderTopWidth:n,borderLeftWidth:r,borderRightWidth:i,borderBottomWidth:o}=p3(e);return{top:t.top+(n||0),left:t.left+(r||0),right:t.right+(i||0),bottom:t.bottom+(o||0)}}function f$(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n)),n}function g$(e,t,n){n&&(t*=-1),e.scrollLeft=t}function Xi(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function Rs(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ZJe(e){return!!e.offsetParent}function x0(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!ZJe(e)||window.getComputedStyle(e).visibility!=="visible")}function $2e(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function JJe(e,t,n){n&&n.nextSibling===t||(e.firstChild?n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function eet(e,t){for(let n=0;n<t.length;n++){const r=t[n],i=e.children[n];i!==r&&e.insertBefore(r,i)}}function JDt(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function p6(e,t){if(t)for(const n of Object.keys(t)){const r=t[n];if(!n||!n.length||r==null)continue;const i=JDt(n),o=r.toString(),a=o.replace(/\s*!important/g,""),s=a.length!=o.length?"important":void 0;e.style.setProperty(i,a,s)}}function ekt(e){return e.clientWidth<e.scrollWidth}function tkt(e){return e.clientHeight<e.scrollHeight}function m$(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):am(e,t)}function am(e,t){t=U2e(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function EN(e,t){t=U2e(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function U2e(e){return typeof e=="number"?`${e}px`:e}function gK(e){return e instanceof Node||e instanceof HTMLElement}function Af(e,t,n){n==null||n===""?e.removeAttribute(t):e.setAttribute(t,n.toString())}function Hf(e,t,n){const i=het(e).ResizeObserver,o=i?new i(n):null;return o?.observe(t),()=>o?.disconnect()}function nkt(e){const t=vz(e),n="getSelection"in t?t.getSelection():null,r=[];for(let i=0;i<(n?.rangeCount??0);i++){const o=n?.getRangeAt(i);o&&r.push(o)}return{selection:n,ranges:r}}function mK(e,t){if(!e.gos.get("enableCellTextSelection")||!V2e()&&!yw())return t();const{selection:r,ranges:i}=nkt(e);t(),r?.removeAllRanges();for(const o of i)r?.addRange(o)}function sh(e,t){const n=het(e);n.requestAnimationFrame?n.requestAnimationFrame(t):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame(t):n.setTimeout(t,0)}var tet="data-ref",Hne;function lEe(){return Hne??(Hne=document.createTextNode(" ")),Hne.cloneNode()}function Nr(e){const{attrs:t,children:n,cls:r,ref:i,role:o,tag:a}=e,s=document.createElement(a);if(r&&(s.className=r),i&&s.setAttribute(tet,i),o&&s.setAttribute("role",o),t)for(const l of Object.keys(t))s.setAttribute(l,t[l]);if(n)if(typeof n=="string")s.textContent=n;else{let l=!0;for(const c of n)c&&(typeof c=="string"?(s.appendChild(document.createTextNode(c)),l=!1):(l&&(s.appendChild(lEe()),l=!1),s.append(Nr(c)),s.appendChild(lEe())))}return s}var cEe={};function vK(e,t){cEe[t]||(e(),cEe[t]=!0)}function Vx(e,t,...n){e.get("debug")&&console.log("AG Grid: "+t,...n)}function ab(e,...t){vK(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function eI(e,...t){vK(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var rkt={pending:!1,funcs:[]},ikt={pending:!1,funcs:[]};function v$(e,t="setTimeout",n){const r=t==="raf"?ikt:rkt;if(r.funcs.push(e),r.pending)return;r.pending=!0;const i=()=>{const o=r.funcs.slice();r.funcs.length=0,r.pending=!1,o.forEach(a=>a())};t==="raf"?sh(n,i):window.setTimeout(i,0)}function Ml(e,t,n){let r;return function(...i){const o=this;window.clearTimeout(r),r=window.setTimeout(function(){e.isAlive()&&t.apply(o,i)},n)}}function uEe(e,t){let n=0;return function(...r){const i=this,o=Date.now();o-n<t||(n=o,e.apply(i,r))}}function net(e,t,n=100,r){const i=Date.now();let o=null,a=!1;const s=()=>{const l=Date.now()-i>n;(e()||l)&&(t(),a=!0,o!=null&&(window.clearInterval(o),o=null))};s(),a||(o=window.setInterval(s,10))}function zc(e){return e==null||e===""?null:e}function Ut(e){return e!=null&&e!==""}function Yi(e){return!Ut(e)}function ap(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function gz(e,t){const n=e?JSON.stringify(e):null,r=t?JSON.stringify(t):null;return n===r}function BG(e,t,n=!1){const r=e==null,i=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&i)return 0;if(r)return-1;if(i)return 1;function o(a,s){return a>s?1:a<s?-1:0}if(typeof e!="string"||!n)return o(e,t);try{return e.localeCompare(t)}catch{return o(e,t)}}var ret="https://www.ag-grid.com",Jn="33.3.2",dEe=2e3,pEe=100,iet="_version_",oet=null,tI=`${ret}/javascript-data-grid`;function okt(e){oet=e}function akt(e){tI=e}function aet(e,t,n){return oet?.getConsoleMessage(e,t)??[ukt(e,t,n)]}function X2e(e,t,n,r){e(`error #${t}`,...aet(t,n,r))}function skt(e){if(!e)return String(e);const t={};for(const n of Object.keys(e))typeof e[n]!="object"&&typeof e[n]!="function"&&(t[n]=e[n]);return JSON.stringify(t)}function lkt(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=skt(e)),t}function b$(e){return e===void 0?"undefined":e===null?"null":e}function the(e,t){return`${e}?${t.toString()}`}function ckt(e,t,n){const r=Array.from(t.entries()).sort((o,a)=>a[1].length-o[1].length);let i=the(e,t);for(const[o,a]of r){if(o===iet)continue;const s=i.length-n;if(s<=0)break;const l="...",c=s+l.length,u=a.length-c>pEe?a.slice(0,a.length-c)+l:a.slice(0,pEe)+l;t.set(o,u),i=the(e,t)}return i}function set(e,t){const n=new URLSearchParams;if(n.append(iet,Jn),t)for(const o of Object.keys(t))n.append(o,lkt(t[o]));const r=`${tI}/errors/${e}`,i=the(r,n);return i.length<=dEe?i:ckt(r,n,dEe)}var ukt=(e,t,n)=>{const r=set(e,t);return`${n?n+` 
`:""}Visit ${r}${n?"":` 
  Alternatively register the ValidationModule to see the full message in the console.`}`};function ut(...e){X2e(ab,e[0],e[1])}function pi(...e){X2e(eI,e[0],e[1])}function B5(e,t,n){X2e(eI,e,t,n)}function cet(e,t){const n=t[0];return`error #${n} `+aet(n,t[1],e).join(" ")}function Of(...e){return cet(void 0,e)}function uet(...e){return cet(`
`,e)}function det(e,t){return e.get("rowModelType")===t}function oa(e,t){return det(e,"clientSide")}function Au(e,t){return det(e,"serverSide")}function Uu(e,t){return e.get("domLayout")===t}function Kp(e){return ZI(e)!==void 0}function Y2e(e){return typeof e.get("getRowHeight")=="function"}function dkt(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function vd(e,t,n=!1,r){const{gos:i,environment:o}=e;if(r==null&&(r=o.getDefaultRowHeight()),Y2e(i)){if(n)return{height:r,estimated:!0};const l={node:t,data:t.data},c=i.getCallback("getRowHeight")(l);if(nhe(c))return c===0&&ut(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&i.get("masterDetail"))return pkt(i);const a=i.get("rowHeight");return{height:a&&nhe(a)?a:r,estimated:!1}}function pkt(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return nhe(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function sp(e){const{environment:t,gos:n}=e,r=n.get("rowHeight");if(!r||Yi(r))return t.getDefaultRowHeight();const i=t.refreshRowHeightVariable();return i!==-1?i:(ut(24),t.getDefaultRowHeight())}function nhe(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function pet(e,t,n){const r=t[e.getDomDataKey()];return r?r[n]:void 0}function mz(e,t,n,r){const i=e.getDomDataKey();let o=t[i];Yi(o)&&(o={},t[i]=o),o[n]=r}function bl(e){const{gos:t,eGridDiv:n}=e;let r=null;const i=t.get("getDocument");return i&&Ut(i)?r=i():n&&(r=n.ownerDocument),r&&Ut(r)?r:document}function het(e){return bl(e).defaultView||window}function vz(e){return e.eGridDiv.getRootNode()}function Gi(e){return vz(e).activeElement}function bK(e){let t=null,n=null;try{t=bl(e).fullscreenElement}catch{}finally{t||(t=vz(e));const r=t.querySelector("body");r?n=r:t instanceof ShadowRoot?n=t:t instanceof Document?n=t?.documentElement:n=t}return n}function hkt(e){return bK(e)?.clientWidth??(window.innerHeight||-1)}function fkt(e){return bK(e)?.clientHeight??(window.innerHeight||-1)}function rhe(e,t,n){const i=e.getBoundingClientRect().height,o=hkt(n)-2,a=fkt(n)-2;if(!e.offsetParent)return;const l=QJe(e.offsetParent),{clientY:c,clientX:u}=t;let d=c-l.top-i/2,p=u-l.left-10;const h=bl(n),g=h.defaultView||window,m=g.pageYOffset||h.documentElement.scrollTop,v=g.pageXOffset||h.documentElement.scrollLeft;o>0&&p+e.clientWidth>o+v&&(p=o+v-e.clientWidth),p<0&&(p=0),a>0&&d+e.clientHeight>a+m&&(d=a+m-e.clientHeight),d<0&&(d=0),e.style.left=`${p}px`,e.style.top=`${d}px`}function Gx(e){const t=Gi(e);return t===null||t===bl(e).body}function nI(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function yK(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Uu(e,"print"))}function Yg(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function lW(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function K2e(e){return e.get("grandTotalRow")}function QI(e){const t=e.get("groupTotalRow");return typeof t=="function"?e.getCallback("groupTotalRow"):()=>t??void 0}function Q2e(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function Z2e(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function J2e(e,t,n){return!!t.group&&!t.footer&&Z2e(e,n)}function qy(e){const t=e.getCallback("getRowId");return t===void 0?t:n=>{let r=t(n);return typeof r!="string"&&(vK(()=>ut(25,{id:r}),"getRowIdString"),r=String(r)),r}}function gkt(e,t){const n=e.get("groupHideParentOfSingleChild");return!!(n===!0||n==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function fet(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function get(e,t){const n=e.get("suppressGroupChangesColumnVisibility");if(n===!0||t&&n==="suppressHideOnGroup"||!t&&n==="suppressShowOnUngroup")return!1;const r=e.get("suppressRowGroupHidesColumns");if(t&&r===!0)return!1;const i=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&i===!0)}function kO(e){return e?.checkboxes??!0}function jG(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function cW(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function Vne(e){return e?.hideDisabledCheckboxes??!1}function eye(e){return typeof e.get("rowSelection")!="string"}function mkt(e){return e.get("cellSelection")!==void 0}function NH(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t?.suppressMultiRanges??!1:!1:e.get("suppressMultiRangeSelection")}function r1(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function Gne(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"&&t.handle?.mode==="fill"?t.handle:void 0:{mode:"fill",setFillValue:e.get("fillOperation"),direction:e.get("fillHandleDirection"),suppressClearOnFillReduction:e.get("suppressClearOnFillReduction")}}function met(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const n=e.get("suppressRowClickSelection"),r=e.get("suppressRowDeselection");return n&&r?!1:n?"enableDeselection":r?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function vkt(e){const t=met(e);return t===!0||t==="enableSelection"}function bkt(e){const t=met(e);return t===!0||t==="enableDeselection"}function ihe(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function ZI(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function By(e){return ZI(e)==="multiRow"}function ykt(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function y$(e){const t=e.get("rowSelection");if(typeof t=="string"){const n=e.get("groupSelectsChildren"),r=e.get("groupSelectsFiltered");return n&&r?"filteredDescendants":n?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function vet(e,t=!0){const n=e.get("rowSelection");return typeof n!="object"?t?"all":void 0:n.mode==="multiRow"?n.selectAll:"all"}function bz(e){const t=y$(e);return t==="descendants"||t==="filteredDescendants"}function hEe(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function $ne(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function Gu(e){return e.get("columnMenu")==="legacy"}function bet(e){return!Gu(e)}function yet(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function Mkt(e,t,n){typeof e!="object"&&(e={});const r={...e};return n.forEach(i=>{const o=t[i];typeof o<"u"&&(r[i]=o)}),r}function Ckt(e,t){if(!e)return;const n={};let r=!1;if(Object.keys(e).forEach(a=>{n[a]=e[a],r=!0}),!r)return;const i={type:"gridOptionsChanged",options:n};t.dispatchEvent(i);const o={type:"componentStateChanged",...n};t.dispatchEvent(o)}function Vn(e,t){return e.addGridCommonParams(t)}function Met(e){return e.get("treeData")?e.get("treeDataParentIdField")?"treeSelfRef":e.get("treeDataChildrenField")?"treeNested":"treePath":"group"}var Cet="__ag_Grid_Stop_Propagation",xkt=["touchstart","touchend","touchmove","touchcancel","scroll"],wkt=["wheel"],Une={};function Cl(e){e[Cet]=!0}function rh(e){return e[Cet]===!0}var xet=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n=>{if(typeof Une[n]=="boolean")return Une[n];const r=document.createElement(e[n]||"div");return n="on"+n,Une[n]=n in r}})();function wet(e,t,n){let r=t;for(;r;){const i=pet(e,r,n);if(i)return i;r=r.parentElement}return null}function ohe(e,t){return!t||!e?!1:Akt(t).indexOf(e)>=0}function Skt(e){const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}function Akt(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():Skt(t)}function Okt(e,t,n,r){const i=Aet(n);let o;i!=null&&(o={passive:i}),e&&e.addEventListener&&e.addEventListener(t,n,r,o)}var Aet=e=>{const t=xkt.includes(e),n=wkt.includes(e);if(t)return!0;if(n)return!1},dt=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,n){this.localEventService||(this.localEventService=new Wy),this.localEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.localEventService?.removeEventListener(e,t,n)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const n=[];for(const r of Object.keys(t)){const i=t[r];i&&n.push(this._setupListener(e,r,i))}return n}_setupListener(e,t,n){if(this.destroyed)return()=>null;let r;return zkt(e)?(e.__addEventListener(t,n),r=()=>(e.__removeEventListener(t,n),null)):(e instanceof HTMLElement?Okt(this.beans.frameworkOverrides,e,t,n):e.addEventListener(t,n),r=()=>(e.removeEventListener(t,n),null)),this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==r),null)}setupGridOptionListener(e,t){const{gos:n}=this;n.addPropertyEventListener(e,t);const r=()=>(n.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==r),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const n=e.join("-")+this.propertyListenerId++,r=i=>{if(i.changeSet){if(i.changeSet&&i.changeSet.id===this.lastChangeSetIdLookup[n])return;this.lastChangeSetIdLookup[n]=i.changeSet.id}const o={type:"gridPropertyChanged",changeSet:i.changeSet,source:i.source};t(o)};e.forEach(i=>this.setupGridOptionListener(i,r))}getLocaleTextFunc(){return F2e(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n}createBean(e,t,n){return(t||this.stubContext).createBean(e,n)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function zkt(e){return e.__addEventListener!==void 0}var Oet=new Set(["__proto__","constructor","prototype"]);function Tkt(e,t){if(e!=null){if(Array.isArray(e)){for(let n=0;n<e.length;n++)t(n.toString(),e[n]);return}for(const n of Object.keys(e))t(n,e[n])}}function eu(e,t,n=!0,r=!1){Ut(t)&&Tkt(t,(i,o)=>{if(Oet.has(i))return;let a=e[i];a!==o&&(r&&a==null&&o!=null&&typeof o=="object"&&o.constructor===Object&&(a={},e[i]=a),fEe(o)&&fEe(a)&&!Array.isArray(a)?eu(a,o,n,r):(n||o!==void 0)&&(e[i]=o))})}function RN(e,t,n){if(!t||!e)return;if(!n)return e[t];const r=t.split(".");let i=e;for(let o=0;o<r.length;o++){if(i==null)return;i=i[r[o]]}return i}function fEe(e){return typeof e=="object"&&e!==null}var Ekt=/[&<>"']/g,Rkt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Df(e){return e?.toString().toString()??null}function sm(e){return Df(e)?.replace(Ekt,t=>Rkt[t])??null}var Ikt={resizable:!0,sortable:!0},Pkt=0;function zet(){return Pkt++}function vm(e){return e instanceof h3}var h3=class extends dt{constructor(e,t,n,r){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.isColumn=!0,this.instanceId=zet(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new Wy,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=sm(n)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:n,colFlex:r}}=this;t?.initCol(this);const i=e.hide;i!==void 0?this.visible=!i:this.visible=!e.initialHide,n?.initCol(this),r?.initCol(this)}setColDef(e,t,n){const r=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),r&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",n)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:n}}=this,r=e.get("suppressFieldDotNotation");this.fieldContainsDots=Ut(t)&&t.indexOf(".")>=0&&!r,this.tooltipFieldContainsDots=Ut(n)&&n.indexOf(".")>=0&&!r}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const n=e.width,r=e.initialWidth;return n!=null?t=n:r!=null?t=r:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const n=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,n)}removeEventListener(e,t){const n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,n)}createColumnFunctionCallbackParams(e){return Vn(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable(this,e)??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??Ikt[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const n=this.createColumnFunctionCallbackParams(e);return t(n)}return!1}createColumnEvent(e,t){return Vn(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return Yi(this.sort)}isSorting(){return Ut(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return ut(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const n=e===!0;this.visible!==n&&(this.visible=n,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let n=!0;for(;e;){if(!e.isPadding()){n=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:n}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return Vn(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Yi(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)}getRowSpan(e){if(Yi(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)}setActualWidth(e,t,n=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,n){const r=this.createColumnEvent(e,t);n&&eu(r,n),this.colEventSvc.dispatchEvent(r)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function zs(e){return e instanceof rI}var rI=class extends dt{constructor(e,t,n,r){super(),this.colGroupDef=e,this.groupId=t,this.padding=n,this.level=r,this.isColumn=!1,this.expandable=!1,this.instanceId=zet(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(const t of this.children)vm(t)?e(t):zs(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){this.children&&this.children.forEach(t=>{vm(t)?e.push(t):zs(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.__addEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.__removeEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,n=!1;const r=this.findChildrenRemovingPadding();for(let o=0,a=r.length;o<a;o++){const s=r[o];if(!s.isVisible())continue;const l=s.getColumnGroupShow();l==="open"?(e=!0,n=!0):l==="closed"?(t=!0,n=!0):(e=!0,t=!0)}const i=e&&t&&n;this.expandable!==i&&(this.expandable=i,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=n=>{n.forEach(r=>{zs(r)&&r.isPadding()?t(r.children):e.push(r)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},Dkt={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function ahe(e,t,n){const r={},i=e.gos;return Object.assign(r,i.get("defaultColGroupDef")),Object.assign(r,t),i.validateColDef(r,n),r}var kkt=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=ap(e);let n=0;for(;;){let r=e??t;if(r?n!==0&&(r+="_"+n):r=n,!this.existingKeys[r]){const i=String(r);return e&&n>0&&ut(273,{providedId:e,usedId:i}),this.existingKeys[i]=!0,i}n++}}},my=Object.freeze([]);function zr(e){if(e?.length)return e[e.length-1]}function yd(e,t,n){return e==null&&t==null?!0:e!=null&&t!=null&&e.length===t.length&&e.every((r,i)=>n?n(r,t[i]):t[i]===r)}function FH(e,t){if(e)for(const n of e)t(n)}function Ou(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function gEe(e,t,n){for(let r=0;r<t.length;r++)Ou(e,t[r]);for(let r=t.length-1;r>=0;r--)e.splice(n,0,t[r])}function Tet(e){return[].concat.apply([],e)}var jy="ag-Grid-AutoColumn",Eet="ag-Grid-SelectionColumn",tye="ag-Grid-RowNumbersColumn";function nye(e){const t=[],n=r=>{for(let i=0;i<r.length;i++){const o=r[i];vm(o)?t.push(o):zs(o)&&n(o.getChildren())}};return n(e),t}function ay(e){return e.reduce((t,n)=>t+n.getActualWidth(),0)}function zb(e,t,n){const r={};if(!t)return;sb(null,t,o=>{r[o.getInstanceId()]=o}),n&&sb(null,n,o=>{r[o.getInstanceId()]=null});const i=Object.values(r).filter(o=>o!=null);e.context.destroyBeans(i)}function MK(e){return e.getId().startsWith(jy)}function f3(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(Eet)??!1}function p0(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(tye)??!1}function M$(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function rye(e,t){return yd(e,t,(n,r)=>n.getColId()===r.getColId())}function iye(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function xx(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}function oye(e,t){const n=e===t,r=e.getColDef()===t,i=e.getColId()==t;return n||r||i}var Lkt=(e,t)=>(n,r)=>{const i={value1:void 0,value2:void 0};let o=!1;return e&&(e[n]!==void 0&&(i.value1=e[n],o=!0),Ut(r)&&e[r]!==void 0&&(i.value2=e[r],o=!0)),!o&&t&&(t[n]!==void 0&&(i.value1=t[n]),Ut(r)&&t[r]!==void 0&&(i.value2=t[r])),i};function _kt(e,t=null,n,r,i){const{existingCols:o,existingGroups:a}=Iet(r),s=new Map(o.map(v=>[v.getId(),v])),l=new Map(a.map(v=>[v.getId(),v]));let c=0;const u=(v,y)=>{if(c=Math.max(c,y),Let(v)){if(!e.colGroupSvc)return null;const x=v.groupId,w=l.get(x),S=ahe(e,v,x),A=new rI(S,x,!1,y);return e.context.createBean(A),w&&A.setExpanded(w.isExpanded()),A.setChildren(v.children.map(z=>u(z,y+1))),A}const M=v.colId;let C=s.get(M);if(C){const x=JI(e,v,C.getColId());C.setColDef(x,v,i),ket(e,C,x,i)}else{const x=JI(e,v,M);C=new h3(x,v,M,n),e.context.createBean(C)}return e.dataTypeSvc?.addColumnListeners(C),C},d=t?.map(v=>u(v,0))??[];let p=0;const h={getUniqueKey:(v,y)=>String(++p)},g=e.colGroupSvc?e.colGroupSvc.balanceColumnTree(d,0,c,h):d;return sb(null,g,(v,y)=>{zs(v)&&v.setupExpandable(),v.originalParent=y}),{columnTree:g,treeDepth:c}}function Ret(e,t=null,n,r,i){const o=new kkt,{existingCols:a,existingGroups:s,existingColKeys:l}=Iet(r);o.addExistingKeys(l);const c=Pet(e,t,0,n,a,o,s,i),{colGroupSvc:u}=e,d=u?.findMaxDepth(c,0)??0,p=u?u.balanceColumnTree(c,0,d,o):c;return sb(null,p,(g,m)=>{zs(g)&&g.setupExpandable(),g.originalParent=m}),{columnTree:p,treeDepth:d}}function Iet(e){const t=[],n=[],r=[];return e&&sb(null,e,i=>{if(zs(i)){const o=i;n.push(o)}else{const o=i;r.push(o.getId()),t.push(o)}}),{existingCols:t,existingGroups:n,existingColKeys:r}}function Pet(e,t,n,r,i,o,a,s){if(!t)return[];const{colGroupSvc:l}=e,c=new Array(t.length);for(let u=0;u<c.length;u++){const d=t[u];l&&Let(d)?c[u]=l.createProvidedColumnGroup(r,d,n,i,o,a,s):c[u]=Nkt(e,r,d,i,o,s)}return c}function Nkt(e,t,n,r,i,o){const a=Fkt(n,r);a&&r?.splice(a.idx,1);let s=a?.column;if(s){const l=JI(e,n,s.getColId());s.setColDef(l,n,o),ket(e,s,l,o)}else{const l=i.getUniqueKey(n.colId,n.field),c=JI(e,n,l);s=new h3(c,n,l,t),e.context.createBean(s)}return e.dataTypeSvc?.addColumnListeners(s),s}function Det(e,t,n,r,i,o,a,s){const{sortSvc:l,pinnedCols:c,colFlex:u}=e;n!==void 0&&t.setVisible(!n,s),l&&(l.updateColSort(t,r,s),i!==void 0&&l.setColSortIndex(t,i)),o!==void 0&&c?.setColPinned(t,o),a!==void 0&&u?.setColFlex(t,a)}function ket(e,t,n,r){Det(e,t,n.hide,n.sort,n.sortIndex,n.pinned,n.flex,r);const i=t.getFlex();if(!(i!=null&&i>0))if(n.width!=null)t.setActualWidth(n.width,r);else{const o=t.getActualWidth();t.setActualWidth(o,r)}}function Fkt(e,t){if(t)for(let n=0;n<t.length;n++){const r=t[n].getUserProvidedColDef();if(!r)continue;if(e.colId!=null){if(t[n].getId()===e.colId)return{idx:n,column:t[n]};continue}if(e.field!=null){if(r.field===e.field)return{idx:n,column:t[n]};continue}if(r===e)return{idx:n,column:t[n]}}}function JI(e,t,n,r){const{gos:i,dataTypeSvc:o}=e,a={},s=i.get("defaultColDef");eu(a,s,!1,!0);const l=Wkt(e,a,t,n);l&&qkt(e,l,a),eu(a,t,!1,!0);const c=i.get("autoGroupColumnDef"),u=Yg(i);return t.rowGroup&&c&&u&&eu(a,{sort:c.sort,initialSort:c.initialSort},!1,!0),o?.validateColDef(a),i.validateColDef(a,n,r),a}function Wkt(e,t,n,r){const i=e.dataTypeSvc?.updateColDefAndGetColumnType(t,n,r),o=n.type??i??t.type;return t.type=o,o?M$(o):void 0}function qkt(e,t,n){if(!t.length)return;const r=Object.assign({},Dkt),i=e.gos.get("columnTypes")||{};for(const o of Object.keys(i)){const a=i[o];o in r?ut(34,{key:o}):(a.type&&ut(35),r[o]=a)}t.forEach(o=>{const a=r[o.trim()];a?eu(n,a,!1,!0):ut(36,{t:o})})}function Let(e){return e.children!==void 0}function sb(e,t,n){if(t)for(let r=0;r<t.length;r++){const i=t[r];zs(i)&&sb(i,i.getChildren(),n),n(i,e)}}function _et(e,t){const n=[],r=[],i=[];return e.forEach(a=>{const s=a.getColDef().lockPosition;s==="right"?i.push(a):s==="left"||s===!0?n.push(a):r.push(a)}),t.get("enableRtl")?[...i,...r,...n]:[...n,...r,...i]}function Net(e,t){let n=!0;return sb(null,t,r=>{if(!zs(r))return;const i=r,o=i.getColGroupDef();if(!(o&&o.marryChildren))return;const s=[];i.getLeafColumns().forEach(p=>{const h=e.indexOf(p);s.push(h)});const l=Math.max.apply(Math,s),c=Math.min.apply(Math,s),u=l-c,d=i.getLeafColumns().length-1;u>d&&(n=!1)}),n}function Fet(e,t){if(!e||e.length==0)return;const n=t(e[0]);for(let r=1;r<e.length;r++)if(n!==t(e[r]))return;return n}function Wet(e,t,n){if(!t.length)return;const r=t.length===1?t[0]:null,i=Fet(t,o=>o.getPinned());e.dispatchEvent({type:"columnPinned",pinned:i??null,columns:t,column:r,source:n})}function Bkt(e,t,n){if(!t.length)return;const r=t.length===1?t[0]:null,i=Fet(t,o=>o.isVisible());e.dispatchEvent({type:"columnVisible",visible:i,columns:t,column:r,source:n})}function qet(e,t,n,r){e.dispatchEvent({type:t,columns:n,column:n&&n.length==1?n[0]:null,source:r})}function eP(e,t,n,r,i=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:i,finished:n,source:r})}function m0(e,t,n){const{colModel:r,rowGroupColsSvc:i,pivotColsSvc:o,autoColSvc:a,selectionColSvc:s,colAnimation:l,visibleCols:c,pivotResultCols:u,environment:d,valueColsSvc:p,eventSvc:h,gos:g}=e,m=r.getColDefCols()??[],v=s?.getColumns();if(!m?.length&&!v?.length)return!1;if(t?.state&&!t.state.forEach)return ut(32),!1;const y=(w,S,A,z,O)=>{if(!w)return;const T=Lkt(S,t.defaultState),I=T("flex").value1;if(Det(e,w,T("hide").value1,T("sort").value1,T("sortIndex").value1,T("pinned").value1,I,n),I==null){const P=T("width").value1;if(P!=null){const N=w.getColDef().minWidth??d.getDefaultColumnMinWidth();N!=null&&P>=N&&w.setActualWidth(P,n)}}O||!w.isPrimary()||(p?.syncColumnWithState(w,n,T),i?.syncColumnWithState(w,n,T,A),o?.syncColumnWithState(w,n,T,z))},M=(w,S,A)=>{const z=jet(e,n),O=S.slice(),T={},I={},P=[],N=[],F=[];let L=0;const W=i?.columns.slice()??[],H=o?.columns.slice()??[];w.forEach(q=>{const $=q.colId;if($.startsWith(jy)){P.push(q),F.push(q);return}if(f3($)){N.push(q),F.push(q);return}const X=A($);X?(y(X,q,T,I,!1),Ou(O,X)):(F.push(q),L+=1)});const j=q=>y(q,null,T,I,!1);O.forEach(j),i?.sortColumns(mEe.bind(i,T,W)),o?.sortColumns(mEe.bind(o,I,H)),r.refreshCols(!1);const G=(q,$,U=[])=>{$.forEach(X=>{const Q=q(X.colId);Ou(U,Q),y(Q,X,null,null,!0)}),U.forEach(j)};return G(q=>a?.getColumn(q)??null,P,a?.getColumns()?.slice()),G(q=>s?.getColumn(q)??null,N,s?.getColumns()?.slice()),jkt(t,r,g),c.refresh(n),h.dispatchEvent({type:"columnEverythingChanged",source:n}),z(),{unmatchedAndAutoStates:F,unmatchedCount:L}};l?.start();let{unmatchedAndAutoStates:C,unmatchedCount:x}=M(t.state||[],m,w=>r.getColDefCol(w));if(C.length>0||Ut(t.defaultState)){const w=u?.getPivotResultCols()?.list??[];x=M(C,w,S=>u?.getPivotResultCol(S)??null).unmatchedCount}return l?.finish(),x===0}function Bet(e,t){const{colModel:n,autoColSvc:r,selectionColSvc:i}=e,o=n.getColDefCols();if(!o?.length)return;const a=n.getColDefColTree(),s=nye(a),l=[];let c=1e3,u=1e3;const d=v=>{const y=Het(v);Yi(y.rowGroupIndex)&&y.rowGroup&&(y.rowGroupIndex=c++),Yi(y.pivotIndex)&&y.pivot&&(y.pivotIndex=u++),l.push(y)};r?.getColumns()?.forEach(d),i?.getColumns()?.forEach(d),s?.forEach(d),m0(e,{state:l},t);const p=r?.getColumns()??[],m=[...i?.getColumns()??[],...p,...o].map(v=>({colId:v.colId}));m0(e,{state:m,applyOrder:!0},t)}function jet(e,t){const{rowGroupColsSvc:n,pivotColsSvc:r,valueColsSvc:i,colModel:o,sortSvc:a,eventSvc:s}=e,l={rowGroupColumns:n?.columns.slice()??[],pivotColumns:r?.columns.slice()??[],valueColumns:i?.columns.slice()??[]},c=C$(e),u={};return c.forEach(d=>{u[d.colId]=d}),()=>{const d=(S,A,z,O)=>{const T=A.map(O),I=z.map(O);if(yd(T,I))return;const N=new Set(A);z.forEach(L=>{N.delete(L)||N.add(L)});const F=[...N];s.dispatchEvent({type:S,columns:F,column:F.length===1?F[0]:null,source:t})},p=S=>{const A=[];return o.forAllCols(z=>{const O=u[z.getColId()];O&&S(O,z)&&A.push(z)}),A},h=S=>S.getColId();d("columnRowGroupChanged",l.rowGroupColumns,n?.columns??[],h),d("columnPivotChanged",l.pivotColumns,r?.columns??[],h);const m=p((S,A)=>{const z=S.aggFunc!=null,O=z!=A.isValueActive(),T=z&&S.aggFunc!=A.getAggFunc();return O||T});m.length>0&&qet(s,"columnValueChanged",m,t),eP(s,p((S,A)=>S.width!=A.getActualWidth()),!0,t),Wet(s,p((S,A)=>S.pinned!=A.getPinned()),t),Bkt(s,p((S,A)=>S.hide==A.isVisible()),t);const x=p((S,A)=>S.sort!=A.getSort()||S.sortIndex!=A.getSortIndex());x.length>0&&a?.dispatchSortChangedEvents(t,x);const w=C$(e);Vkt(c,w,t,o,s)}}function C$(e){const{colModel:t,rowGroupColsSvc:n,pivotColsSvc:r}=e,i=t.getColDefCols();if(Yi(i)||!t.isAlive())return[];const o=n?.columns,a=r?.columns,s=[],l=u=>{const d=u.isRowGroupActive()&&o?o.indexOf(u):null,p=u.isPivotActive()&&a?a.indexOf(u):null,h=u.isValueActive()?u.getAggFunc():null,g=u.getSort()!=null?u.getSort():null,m=u.getSortIndex()!=null?u.getSortIndex():null;s.push({colId:u.getColId(),width:u.getActualWidth(),hide:!u.isVisible(),pinned:u.getPinned(),sort:g,sortIndex:m,aggFunc:h,rowGroup:u.isRowGroupActive(),rowGroupIndex:d,pivot:u.isPivotActive(),pivotIndex:p,flex:u.getFlex()??null})};t.forAllCols(u=>l(u));const c=new Map(t.getCols().map((u,d)=>[u.getColId(),d]));return s.sort((u,d)=>{const p=c.has(u.colId)?c.get(u.colId):-1,h=c.has(d.colId)?c.get(d.colId):-1;return p-h}),s}function Het(e){const t=(g,m)=>g??m??null,n=e.getColDef(),r=t(n.sort,n.initialSort),i=t(n.sortIndex,n.initialSortIndex),o=t(n.hide,n.initialHide),a=t(n.pinned,n.initialPinned),s=t(n.width,n.initialWidth),l=t(n.flex,n.initialFlex);let c=t(n.rowGroupIndex,n.initialRowGroupIndex),u=t(n.rowGroup,n.initialRowGroup);c==null&&(u==null||u==!1)&&(c=null,u=null);let d=t(n.pivotIndex,n.initialPivotIndex),p=t(n.pivot,n.initialPivot);d==null&&(p==null||p==!1)&&(d=null,p=null);const h=t(n.aggFunc,n.initialAggFunc);return{colId:e.getColId(),sort:r,sortIndex:i,hide:o,pinned:a,width:s,flex:l,rowGroup:u,rowGroupIndex:c,pivot:p,pivotIndex:d,aggFunc:h}}function jkt(e,t,n){if(!e.applyOrder||!e.state)return;const r=[];e.state.forEach(i=>{i.colId!=null&&r.push(i.colId)}),Hkt(t.cols,r,t,n)}function Hkt(e,t,n,r){if(e==null)return;let i=[];const o={};t.forEach(s=>{if(o[s])return;const l=e.map[s];l&&(i.push(l),o[s]=!0)});let a=0;if(e.list.forEach(s=>{const l=s.getColId();if(o[l]!=null)return;l.startsWith(jy)?i.splice(a++,0,s):i.push(s)}),i=_et(i,r),!Net(i,n.getColTree())){ut(39);return}e.list=i}function Vkt(e,t,n,r,i){const o={};t.forEach(u=>o[u.colId]=u);const a={};e.forEach(u=>{o[u.colId]&&(a[u.colId]=!0)});const s=e.filter(u=>a[u.colId]),l=t.filter(u=>a[u.colId]),c=[];l.forEach((u,d)=>{const p=s&&s[d];if(p&&p.colId!==u.colId){const h=r.getCol(p.colId);h&&c.push(h)}}),c.length&&i.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,finished:!0,source:n})}var mEe=(e,t,n,r)=>{const i=e[n.getId()],o=e[r.getId()],a=i!=null,s=o!=null;if(a&&s)return i-o;if(a)return-1;if(s)return 1;const l=t.indexOf(n),c=t.indexOf(r),u=l>=0,d=c>=0;return u&&d?l-c:u?-1:1},Gkt=class extends dt{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],e=>this.refreshAll(xx(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),xx(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:n,colAutosize:r,rowGroupColsSvc:i,pivotColsSvc:o,valueColsSvc:a,visibleCols:s,colViewport:l,eventSvc:c}=t,u=this.colDefs?jet(t,e):void 0;n?.expire();const d=this.colDefCols?.list,p=this.colDefCols?.tree,h=Ret(t,this.colDefs,!0,p,e);zb(t,this.colDefCols?.tree,h.columnTree);const g=h.columnTree,m=h.treeDepth,v=nye(g),y={};v.forEach(M=>y[M.getId()]=M),this.colDefCols={tree:g,treeDepth:m,list:v,map:y},i?.extractCols(e,d),o?.extractCols(e,d),a?.extractCols(e,d),this.ready=!0,this.refreshCols(!0),s.refresh(e),l.checkViewportColumns(),c.dispatchEvent({type:"columnEverythingChanged",source:e}),u&&(this.changeEventsDispatching=!0,u(),this.changeEventsDispatching=!1),c.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&r?.applyAutosizeStrategy()}refreshCols(e){if(!this.colDefCols)return;const t=this.cols?.tree;this.saveColOrder();const{autoColSvc:n,selectionColSvc:r,rowNumbersSvc:i,quickFilter:o,pivotResultCols:a,showRowGroupCols:s,rowAutoHeight:l,visibleCols:c,colViewport:u,eventSvc:d}=this.beans,p=this.selectCols(a,this.colDefCols);this.createColumnsForService([n,r,i],p);const h=dkt(this.gos,this.showingPivotResult);(!e||h)&&this.restoreColOrder(p),this.positionLockedCols(p),s?.refresh(),o?.refreshCols(),this.setColSpanActive(),l?.setAutoHeightActive(p),c.clear(),u.clear(),!yd(t,this.cols.tree)&&d.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t){for(const n of e)n&&(n.createColumns(t,r=>{this.lastOrder=r(this.lastOrder),this.lastPivotOrder=r(this.lastPivotOrder)}),n.addColumns(t))}selectCols(e,t){const n=e?.getPivotResultCols()??null;this.showingPivotResult=n!=null;const{map:r,list:i,tree:o,treeDepth:a}=n??t;return this.cols={list:i.slice(),map:{...r},tree:o.slice(),treeDepth:a},n&&(n.list.some(l=>this.cols?.map[l.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const e=this.isPivotMode()&&!this.showingPivotResult,t=this.beans.valueColsSvc?.columns;return this.cols.list.filter(r=>{const i=MK(r);if(e){const o=t?.includes(r);return i||o}else return i||r.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,n){m0(this.beans,{state:e.map(r=>({colId:typeof r=="string"?r:r.getColId(),hide:!t}))},n)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const n=t.filter(d=>e.map[d.getId()]!=null);if(n.length===0)return;if(n.length===e.list.length){e.list=n;return}const r=d=>{const p=d.getOriginalParent();return p?p.getChildren().length>1?!0:r(p):!1};if(!n.some(d=>r(d))){const d=new Set(n);for(const p of e.list)d.has(p)||n.push(p);e.list=n;return}const i=new Map;for(let d=0;d<n.length;d++){const p=n[d];i.set(p,d)}const o=e.list.filter(d=>!i.has(d));if(o.length===0){e.list=n;return}const a=(d,p)=>{const h=p?p.getOriginalParent():d.getOriginalParent();if(!h)return null;let g=null,m=null;for(const v of h.getChildren())if(!(v===p||v===d)){if(v instanceof h3){const y=i.get(v);if(y==null)continue;(g==null||g<y)&&(g=y,m=v);continue}v.forEachLeafColumn(y=>{const M=i.get(y);M!=null&&(g==null||g<M)&&(g=M,m=y)})}return m??a(d,h)},s=[],l=new Map;for(const d of o){const p=a(d,null);if(p==null){s.push(d);continue}const h=l.get(p);h===void 0?l.set(p,d):Array.isArray(h)?h.push(d):l.set(p,[h,d])}const c=new Array(e.list.length);let u=c.length-1;for(let d=s.length-1;d>=0;d--)c[u--]=s[d];for(let d=n.length-1;d>=0;d--){const p=n[d],h=l.get(p);if(h)if(Array.isArray(h))for(let g=h.length-1;g>=0;g--){const m=h[g];c[u--]=m}else c[u--]=h;c[u--]=p}e.list=c}positionLockedCols(e){e.list=_et(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(){return this.colDefCols?this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[]):void 0}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>e.getColDef().colSpan!=null)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1);const{visibleCols:n,eventSvc:r}=this.beans;n.refresh(t),r.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=xx(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){zb(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:n,selectionColSvc:r}=this.beans;FH(this.colDefCols?.list,e),FH(n?.columns?.list,e),FH(r?.columns?.list,e),FH(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(t==null)return null;const{map:n,list:r}=t;if(typeof e=="string"&&n[e])return n[e];for(let i=0;i<r.length;i++)if(oye(r[i],e))return r[i];return this.beans.autoColSvc?.getColumn(e)??this.beans.selectionColSvc?.getColumn(e)??null}},aye=class extends dt{constructor(){super(...arguments),this.dispatchColumnChangedEvent=qet,this.columns=[],this.columnIndexMap={},this.updateIndexMap=()=>{this.columnIndexMap={},this.columns.forEach((e,t)=>this.columnIndexMap[e.getId()]=t)}}wireBeans(e){this.colModel=e.colModel,this.aggFuncSvc=e.aggFuncSvc,this.visibleCols=e.visibleCols}sortColumns(e){this.columns.sort(e),this.updateIndexMap()}setColumns(e,t){this.setColList(e,this.columns,this.eventName,!0,!0,this.columnProcessors.set,t)}addColumns(e,t){this.updateColList(e,this.columns,!0,!0,this.columnProcessors.add,this.eventName,t)}removeColumns(e,t){this.updateColList(e,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,t)}getColumnIndex(e){return this.columnIndexMap[e]}setColList(e=[],t,n,r,i,o,a){const s=this.colModel.getCols();if(!s||s.length===0)return;const l=new Map;t.forEach((u,d)=>l.set(u,d)),t.length=0,Ut(e)&&e.forEach(u=>{const d=this.colModel.getColDefCol(u);d&&t.push(d)}),t.forEach((u,d)=>{const p=l.get(u);if(p===void 0){l.set(u,0);return}r&&p!==d||l.delete(u)}),this.updateIndexMap(),(this.colModel.getColDefCols()||[]).forEach(u=>{const d=t.indexOf(u)>=0;o(u,d,a)}),i&&this.colModel.refreshCols(!1),this.visibleCols.refresh(a),this.dispatchColumnChangedEvent(this.eventSvc,n,[...l.keys()],a)}updateColList(e=[],t,n,r,i,o,a){if(!e||e.length===0)return;let s=!1;const l=new Set;if(e.forEach(u=>{if(!u)return;const d=this.colModel.getColDefCol(u);if(d){if(l.add(d),n){if(t.indexOf(d)>=0)return;t.push(d)}else{const p=t.indexOf(d);if(p<0)return;for(let h=p+1;h<t.length;h++)l.add(t[h]);Ou(t,d)}i(d,n,a),s=!0}}),!s)return;this.updateIndexMap(),r&&this.colModel.refreshCols(!1),this.visibleCols.refresh(a);const c=Array.from(l);this.eventSvc.dispatchEvent({type:o,columns:c,column:c.length===1?c[0]:null,source:a})}extractCols(e,t=[]){const n=this.columns,r=[],i=[],{setFlagFunc:o,getIndexFunc:a,getInitialIndexFunc:s,getValueFunc:l,getInitialValueFunc:c}=this.columnExtractors;(this.colModel.getColDefCols()||[]).forEach(h=>{const g=t.indexOf(h)<0,m=h.getColDef(),v=l(m),y=c(m),M=a(m),C=s(m);let x;v!==void 0?x=v:M!==void 0?M===null?x=!1:x=M>=0:g?y!==void 0?x=y:C!==void 0?x=C!=null&&C>=0:x=!1:x=n.indexOf(h)>=0,x&&((g?M!=null||C!=null:M!=null)?r.push(h):i.push(h))});const d=h=>{const g=a(h.getColDef()),m=s(h.getColDef());return g??m};r.sort((h,g)=>{const m=d(h),v=d(g);return m===v?0:m<v?-1:1});const p=[].concat(r);return n.forEach(h=>{i.indexOf(h)>=0&&p.push(h)}),i.forEach(h=>{p.indexOf(h)<0&&p.push(h)}),n.forEach(h=>{p.indexOf(h)<0&&o(h,!1,e)}),p.forEach(h=>{n.indexOf(h)<0&&o(h,!0,e)}),this.columns=p,this.updateIndexMap(),this.columns}restoreColumnOrder(e,t){const n=this.columns,r=this.colModel.getColDefCols();if(!n.length||!r)return e;const i=Object.keys(t),o=new Set(i),a=new Set(i),s=new Set(n.map(C=>{const x=C.getColId();return a.delete(x),x}).concat(i)),l=[],c={};let u=0;for(let C=0;C<r.length;C++){const x=r[C].getColId();s.has(x)&&(l.push(x),c[x]=u++)}let d=1e3,p=!1,h=0;const g=this.columnOrdering.enableProp,m=this.columnOrdering.initialEnableProp,v=this.columnOrdering.indexProp,y=this.columnOrdering.initialIndexProp,M=C=>{const x=c[C];for(let w=h;w<x;w++){const S=l[w];a.has(S)&&(t[S][v]=d++,a.delete(S))}h=x};return n.forEach(C=>{const x=C.getColId();if(o.has(x))M(x),t[x][v]=d++;else{const w=C.getColDef();(w[v]===null||w[v]===void 0&&w[y]==null)&&(p||(w[g]||w[g]===void 0&&w[m]?M(x):(a.forEach(z=>{t[z][v]=d+c[z]}),d+=l.length,p=!0)),e[x]||(e[x]={colId:x}),e[x][v]=d++)}}),e}},Vet=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let n;return typeof t!="number"?n=0:n=t+1,this.existingIds[e]=n,n}},uD=class extends dt{};function h6(e,t,n){return n&&e.addDestroyFunc(()=>t.destroyBean(n)),n??e}var dD=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.indexOf(" ")>=0){const r=(e||"").split(" ");if(r.length>1){r.forEach(i=>this.toggleCss(i,t));return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},$kt=0,at=null,Gt=class extends dt{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=$kt++,this.cssManager=new dD(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(n=>[n.selector,n])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;this.css?.forEach(t=>this.beans.environment.addGlobalCSS(t,e))}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(tet):null}applyElementsToComponent(e,t,n,r=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const i=this[t];if(i===at)this[t]=r??e;else{const o=n&&n[t];if(!this.suppressDataRefValidation&&!o)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${i}`)}}}createChildComponentsFromTags(e,t){const n=[];for(const r of e.childNodes??[])n.push(r);n.forEach(r=>{if(!(r instanceof HTMLElement))return;const i=this.createComponentFromElement(r,o=>{const a=o.getGui();if(a)for(const s of r.attributes??[])a.setAttribute(s.name,s.value)},t);if(i){if(i.addItems&&r.children.length){this.createChildComponentsFromTags(r,t);const o=Array.prototype.slice.call(r.children);i.addItems(o)}this.swapComponentForNode(i,e,r)}else r.childNodes&&this.createChildComponentsFromTags(r,t)})}createComponentFromElement(e,t,n){const r=e.nodeName,i=this.getDataRefAttribute(e),o=r.indexOf("AG-")===0,a=o?this.componentSelectors.get(r):null;let s=null;if(a){const l=n&&i?n[i]:void 0;s=new a.component(l),s.setParentComponent(this),this.createBean(s,null,t)}else if(o)throw new Error(`selector: ${r}`);return this.applyElementsToComponent(e,i,n,s),s}swapComponentForNode(e,t,n){const r=e.getGui();t.replaceChild(r,n),t.insertBefore(document.createComment(n.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(n=>n.setAttribute("tabindex",t.toString()))}setTemplate(e,t,n){let r;typeof e=="string"||e==null?r=$2e(e):r=Nr(e),this.setTemplateFromElement(r,t,n)}setTemplateFromElement(e,t,n,r=!1){if(this.eGui=e,this.suppressDataRefValidation=r,t)for(let i=0;i<t.length;i++){const o=t[i];this.componentSelectors.set(o.selector,o)}this.wireTemplate(e,n)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let n=t;return e==null?null:(n||(n=this.eGui),gK(e)?{element:e,parent:n}:{element:e.getGui(),parent:n})}prependChild(e,t){const{element:n,parent:r}=this.getContainerAndElement(e,t)||{};!n||!r||r.insertAdjacentElement("afterbegin",n)}appendChild(e,t){const{element:n,parent:r}=this.getContainerAndElement(e,t)||{};!n||!r||r.appendChild(n)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:n}=t;KJe(this.eGui,e,{skipAriaHidden:n})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:n}=t;Nn(this.eGui,e,{skipAriaHidden:n});const r={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(r)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,n){this.eGui.addEventListener(e,t,n),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}};function Ukt(e){return typeof e.then=="function"}var Dr=class j5{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(n=>this.onDone(n),n=>this.onReject(n))}static all(t){return t.length?new j5(n=>{let r=t.length;const i=new Array(r);t.forEach((o,a)=>{o.then(s=>{i[a]=s,r--,r===0&&n(i)})})}):j5.resolve()}static resolve(t=null){return new j5(n=>n(t))}then(t){return new j5(n=>{this.status===1?n(t(this.resolution)):this.waiters.push(r=>n(t(r)))})}onDone(t){this.status=1,this.resolution=t,this.waiters.forEach(n=>n(t))}onReject(t){}};function Xkt(e){return e?e.prototype&&"getGui"in e.prototype:!1}function Get(e,t,n,r){const{name:i}=n;let o,a,s,l,c,u;if(t){const d=t,p=d[i+"Selector"],h=p?p(r):null,g=m=>{typeof m=="string"?o=m:m!=null&&m!==!0&&(e.isFrameworkComponent(m)?s=m:a=m)};h?(g(h.component),l=h.params,c=h.popup,u=h.popupPosition):g(d[i])}return{compName:o,jsComp:a,fwComp:s,paramsFromSelector:l,popupFromSelector:c,popupPositionFromSelector:u}}var Ykt=class extends dt{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,n,r=!1){return this.getCompDetails(this.gridOptions,e,t,n,r)}getCompDetails(e,t,n,r,i=!1){const{name:o,cellRenderer:a}=t;let{compName:s,jsComp:l,fwComp:c,paramsFromSelector:u,popupFromSelector:d,popupPositionFromSelector:p}=Get(this.beans.frameworkOverrides,e,t,r),h;const g=M=>{const C=this.registry.getUserComponent(o,M);C&&(l=C.componentFromFramework?void 0:C.component,c=C.componentFromFramework?C.component:void 0,h=C.params)};if(s!=null&&g(s),l==null&&c==null&&n!=null&&g(n),l&&a&&!Xkt(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!c){const{validation:M}=this.beans;i&&(s!==n||!n)?s?M?.isProvidedUserComp(s)||pi(50,{compName:s}):n?M||pi(260,{...this.gos.getModuleErrorParams(),propName:o,compName:n}):pi(216,{name:o}):n&&!M&&pi(146,{comp:n});return}const m=this.mergeParams(e,t,r,u,h),v=l==null,y=l??c;return{componentFromFramework:v,componentClass:y,params:m,type:t,popupFromSelector:d,popupPositionFromSelector:p,newAgStackInstance:()=>this.newAgStackInstance(y,v,m,t)}}newAgStackInstance(e,t,n,r){const i=!t;let o;i?o=new e:o=this.frameworkCompWrapper.wrap(e,r.mandatoryMethods,r.optionalMethods,r),this.createBean(o);const a=o.init?.(n);return a==null?Dr.resolve(o):a.then(()=>o)}mergeParams(e,t,n,r=null,i){const o={...n,...i},a=e,s=a&&a[t.name+"Params"];if(typeof s=="function"){const l=s(n);eu(o,l)}else typeof s=="object"&&eu(o,s);return eu(o,r),o}},Kkt={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},Qkt={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},Zkt={name:"headerComponent",optionalMethods:["refresh"]},Jkt={name:"innerHeaderComponent"},eLt={name:"innerHeaderGroupComponent"},tLt={name:"headerGroupComponent"},nLt={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},rLt={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},iLt={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"]},oLt={name:"loadingCellRenderer",cellRenderer:!0},aLt={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},sLt={name:"loadingOverlayComponent",optionalMethods:["refresh"]},lLt={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},cLt={name:"tooltipComponent"},sye={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},uLt={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},dLt={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},pLt={name:"loadingCellRenderer",cellRenderer:!0},hLt={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},fLt={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function gLt(e,t){return e.getCompDetailsFromGridOptions(Qkt,"agDragAndDropImage",t,!0)}function WH(e,t,n){return e.getCompDetails(t,nLt,void 0,n)}function mLt(e,t,n){return e.getCompDetails(t,Zkt,"agColumnHeader",n)}function vLt(e,t,n){return e.getCompDetails(t,Jkt,void 0,n)}function bLt(e,t){const n=t.columnGroup.getColGroupDef();return e.getCompDetails(n,tLt,"agColumnGroupHeader",t)}function yLt(e,t,n){return e.getCompDetails(t,eLt,void 0,n)}function MLt(e,t){return e.getCompDetailsFromGridOptions(dLt,void 0,t,!0)}function CLt(e,t){return e.getCompDetailsFromGridOptions(pLt,"agLoadingCellRenderer",t,!0)}function xLt(e,t){return e.getCompDetailsFromGridOptions(hLt,"agGroupRowRenderer",t,!0)}function wLt(e,t){return e.getCompDetailsFromGridOptions(fLt,"agDetailCellRenderer",t,!0)}function tP(e,t,n){return e.getCompDetails(t,rLt,void 0,n)}function $et(e,t,n){return e.getCompDetails(t,iLt,void 0,n)}function SLt(e,t,n){return e.getCompDetails(t,oLt,"agSkeletonCellRenderer",n,!0)}function vEe(e,t,n){return e.getCompDetails(t,aLt,"agCellEditor",n,!0)}function Uet(e,t,n,r){return e.getCompDetails(t,sye,r,n,!0)}function ALt(e,t,n){return e.getCompDetails(t,Kkt,"agDateInput",n,!0)}function OLt(e,t){return e.getCompDetailsFromGridOptions(sLt,"agLoadingOverlay",t,!0)}function zLt(e,t){return e.getCompDetailsFromGridOptions(lLt,"agNoRowsOverlay",t,!0)}function TLt(e,t){return e.getCompDetails(t.colDef,cLt,"agTooltipComponent",t,!0)}function Xet(e,t,n,r){return e.getCompDetails(t,uLt,r,n)}function ELt(e,t){return Get(e,t,sye)}function RLt(e,t,n){return e.mergeParams(t,sye,n)}function yz(e){const t=e;return t!=null&&t.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var Yet=new Set,x$={},LO={},HG,Ket=!1,Qet=!1,ILt=!1;function PLt(e){const[t,n]=e.version.split(".")||[],[r,i]=HG.split(".")||[];return t===r&&n===i}function DLt(e){HG||(HG=e.version);const t=n=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${n} Please update all modules to the same version.`;if(e.version?PLt(e)||eI(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${HG}.`)):eI(t(`'${e.moduleName}' is incompatible.`)),e.validate){const n=e.validate();n.isValid||eI(`${n.message}`)}}function uW(e,t,n=!1){n||(Ket=!0),DLt(e);const r=e.rowModels??["all"];Yet.add(e);let i;t!==void 0?(Qet=!0,LO[t]===void 0&&(LO[t]={}),i=LO[t]):i=x$,r.forEach(o=>{i[o]===void 0&&(i[o]={}),i[o][e.moduleName]=e}),e.dependsOn&&e.dependsOn.forEach(o=>uW(o,t,n))}function kLt(e){delete LO[e]}function she(e,t,n){const r=i=>!!x$[i]?.[e]||!!LO[t]?.[i]?.[e];return r(n)||r("all")}function lye(){return Qet}function LLt(e,t){const n=LO[e]??{};return[...Object.values(x$.all??{}),...Object.values(n.all??{}),...Object.values(x$[t]??{}),...Object.values(n[t]??{})]}function _Lt(){return new Set(Yet)}function Zet(e,t){const n=LO[e]??{};return[...Object.values(n.all??{}),...Object.values(n[t]??{})]}function NLt(){return Ket}function FLt(){return ILt}var WLt=class{static register(e){uW(e,void 0)}static registerModules(e){e.forEach(t=>uW(t,void 0))}},qLt=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,!(!e||!e.beanClasses)&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];e.beanClasses.forEach(t=>{const n=new t;n.beanName?this.beans[n.beanName]=n:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(n)}),e.derivedBeans?.forEach(t=>{const{beanName:n,bean:r}=t(this);this.beans[n]=r,this.createdBeans.push(r)}),e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){if(!e)throw Error("null bean");return this.initBeans([e],t),e}initBeans(e,t){e.forEach(n=>{n.preWireBeans?.(this.beans),n.wireBeans?.(this.beans)}),e.forEach(n=>n.preConstruct?.()),t&&e.forEach(t),e.forEach(n=>n.postConstruct?.())}getBeans(){return this.beans}getBean(e){return this.beans[e]}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[]}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}},BLt=class extends qLt{init(t){this.gridId=t.gridId,this.beans.context=this,this.destroyCallback=t.destroyCallback,super.init(t)}destroy(){super.destroy(),kLt(this.gridId),this.destroyCallback?.()}getGridId(){return this.gridId}},jLt="ag-column-first",HLt="ag-column-last";function cye(e,t,n,r){return Yi(e)?[]:ttt(e.headerClass,e,t,n,r)}function Jet(e,t,n,r){return Yi(e)?[]:ttt(e.toolPanelClass,e,t,n,r)}function ett(e,t,n){e.toggleCss(jLt,n.isColAtEdge(t,"first")),e.toggleCss(HLt,n.isColAtEdge(t,"last"))}function VLt(e,t,n,r){return Vn(t,{colDef:e,column:n,columnGroup:r})}function ttt(e,t,n,r,i){if(Yi(e))return[];let o;if(typeof e=="function"){const a=VLt(t,n,r,i);o=e(a)}else o=e;return typeof o=="string"?[o]:Array.isArray(o)?[...o]:[]}function f6(e){return!!(e.rowPinned&&e.pinnedSibling)}function Vh(e,t,n,r){const i=t==="top";if(!n)return Vh(e,t,i?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),r);if(!r){const l=i?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return Vh(e,t,n,i?e.getPinnedTopRow(l-1):e.getPinnedBottomRow(l-1))}let o=!1,a=!1;const s=[];return e.forEachPinnedRow(t,l=>{if(l===n&&!o){o=!0,s.push(l);return}if(o&&l===r){a=!0,s.push(l);return}o&&!a&&s.push(l)}),s}var Qe={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},lhe=!1,w$=0;function GLt(e){w$>0||(e.addEventListener("keydown",S$),e.addEventListener("mousedown",S$))}function $Lt(e){w$>0||(e.removeEventListener("keydown",S$),e.removeEventListener("mousedown",S$))}function S$(e){const t=lhe,n=e.type==="keydown";n&&(e.ctrlKey||e.metaKey||e.altKey)||t!==n&&(lhe=n)}function ULt(e){const t=bl(e);return GLt(t),w$++,()=>{w$--,$Lt(t)}}function CK(){return lhe}function ntt(e,t,n){t.addManagedElementListeners(n,{keydown:r=>{if(!r.defaultPrevented&&r.key===Qe.TAB){const i=r.shiftKey;Md(e,n,!1,i)||Tb(e,i)&&r.preventDefault()}}})}function lm(e,t,n=!1){const r=ZDt;let i=YJe;t&&(i+=", "+t),n&&(i+=', [tabindex="-1"]');const o=Array.prototype.slice.apply(e.querySelectorAll(r)).filter(l=>x0(l)),a=Array.prototype.slice.apply(e.querySelectorAll(i));return a.length?((l,c)=>l.filter(u=>c.indexOf(u)===-1))(o,a):o}function zu(e,t=!1,n=!1,r=!1){const i=lm(e,r?".ag-tab-guard":null,n),o=t?zr(i):i[0];return o?(o.focus({preventScroll:!0}),!0):!1}function Md(e,t,n,r){const i=lm(t,n?':not([tabindex="-1"])':null),o=Gi(e);let a;n?a=i.findIndex(l=>l.contains(o)):a=i.indexOf(o);const s=a+(r?-1:1);return s<0||s>=i.length?null:i[s]}function uye(e,t=5){let n=0;for(;e&&ehe(e)===null&&++n<=t;)e=e.parentElement;return ehe(e)===null?null:e}function rtt(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function _O(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.isExclusive()}function xK(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.isExclusive()}function Tb(e,t,n=!1){const r=e.ctrlsSvc.get("gridCtrl");return!n&&r.focusNextInnerContainer(t)?!0:((n||!t&&!r.isDetailGrid())&&r.forceFocusOutOfContainer(t),!1)}function XLt(e,t=!1){return e===Qe.DELETE?!0:!t&&e===Qe.BACKSPACE?$Je():!1}var YLt=class extends dt{constructor(e,t,n,r){super(),this.cellCtrl=e,this.rowNode=n,this.rowCtrl=r,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;switch(t){case Qe.ENTER:this.onEnterKeyDown(e);break;case Qe.F2:this.onF2KeyDown(e);break;case Qe.ESCAPE:this.onEscapeKeyDown(e);break;case Qe.TAB:this.onTabKeyDown(e);break;case Qe.BACKSPACE:case Qe.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case Qe.DOWN:case Qe.UP:case Qe.RIGHT:case Qe.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){if(!this.cellCtrl.editing){if(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const n=this.cellCtrl.getFocusedCellPosition();this.beans.navigation?.navigateToNextCell(e,t,n,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:n}=this.beans;if(!t)return;const r=t.extendLatestRangeInDirection(e);r&&n?.ensureCellVisible(r)}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:n,beans:r,rowNode:i}=this,{gos:o,rangeSvc:a,eventSvc:s}=r;if(!n.editing){if(s.dispatchEvent({type:"keyShortcutChangedCellStart"}),XLt(e,o.get("enableCellEditingOnBackspace"))){if(a&&r1(o))a.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(n.isCellEditable()){const{column:l}=n,c=this.beans.valueSvc.getDeleteValue(l,i);i.setDataValue(l,c,"cellClear")}}else r.editSvc?.startRowOrCellEdit(n,e,t);s.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(e){const{cellCtrl:t,beans:n}=this;if(t.editing||this.rowCtrl.editing)this.beans.editSvc?.stopRowOrCellEdit(t,!1,!1,e.shiftKey);else if(n.gos.get("enterNavigatesVertically")){const r=e.shiftKey?Qe.UP:Qe.DOWN;n.navigation?.navigateToNextCell(null,r,t.cellPosition,!1)}else n.editSvc?.startRowOrCellEdit(t,Qe.ENTER,e),t.editing&&e.preventDefault()}onF2KeyDown(e){const{cellCtrl:t,beans:n}=this;t.editing||n.editSvc?.startRowOrCellEdit(t,Qe.F2,e)}onEscapeKeyDown(e){const{cellCtrl:t,beans:n}=this;t.editing&&n.editSvc?.stopRowOrCellEdit(t,!0)}processCharacter(e){if(e.target!==this.eGui||this.cellCtrl.editing)return;const r=e.key;r===Qe.SPACE?this.onSpaceKeyDown(e):this.beans.editSvc?.startRowOrCellEdit(this.cellCtrl,r,e)&&e.preventDefault()}onSpaceKeyDown(e){const{gos:t}=this.beans;!this.cellCtrl.editing&&Kp(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,this.rowNode,"spaceKey"),e.preventDefault()}destroy(){super.destroy()}},KLt=class extends dt{constructor(e,t,n){super(),this.cellCtrl=e,this.column=n,this.beans=t}onMouseEvent(e,t){if(!rh(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:n,gos:r,editSvc:i}=this.beans,o=e.ctrlKey||e.metaKey;n&&o&&n.getCellRangeCount(this.cellCtrl.cellPosition)>1&&n.intersectLastRange(!0);const a=this.cellCtrl.createEvent(e,"cellClicked");t.dispatchEvent(a);const s=this.column.getColDef();s.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{s.onCellClicked(a)})},0),(r.get("singleClickEdit")||s.singleClickEdit)&&!r.get("suppressClickEdit")&&!(e.shiftKey&&n?.getCellRanges().length!=0)&&i?.startRowOrCellEdit(this.cellCtrl,void 0,e)}onCellDoubleClicked(e){const{column:t,beans:n,cellCtrl:r}=this,{eventSvc:i,frameworkOverrides:o,gos:a,editSvc:s}=n,l=t.getColDef(),c=r.createEvent(e,"cellDoubleClicked");i.dispatchEvent(c),typeof l.onCellDoubleClicked=="function"&&window.setTimeout(()=>{o.wrapOutgoing(()=>{l.onCellDoubleClicked(c)})},0),!a.get("singleClickEdit")&&!a.get("suppressClickEdit")&&s?.startRowOrCellEdit(r,null,e)}onMouseDown(e){const{ctrlKey:t,metaKey:n,shiftKey:r}=e,i=e.target,{cellCtrl:o,beans:a}=this,{eventSvc:s,rangeSvc:l,rowNumbersSvc:c,focusSvc:u,gos:d}=a;if(this.isRightClickInExistingRange(e))return;const p=l&&!l.isEmpty(),h=this.containsWidget(i),{cellPosition:g}=o,m=p0(g.column);if(c&&m&&!c.handleMouseDownOnCell(g,e)){l&&e.preventDefault(),e.stopImmediatePropagation();return}if(!r||!p){const y=d.get("enableCellTextSelection")&&e.defaultPrevented,M=(yw()||y)&&!o.editing&&!G2e(i)&&!h;o.focusCell(M)}if(r&&p&&!u.isCellFocused(g)){e.preventDefault();const v=u.getFocusedCell();if(v){const{column:y,rowIndex:M,rowPinned:C}=v,w=a.rowRenderer.getRowByPosition({rowIndex:M,rowPinned:C})?.getCellCtrl(y);w?.editing&&w.stopEditing(),u.setFocusedCell({column:y,rowIndex:M,rowPinned:C,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!h){if(l)if(m&&e.preventDefault(),r)l.extendLatestRangeToCell(g);else{const v=t||n;l.setRangeToCell(g,v)}s.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const n=t.isCellInAnyRange(this.cellCtrl.cellPosition),r=e.button===2||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(n&&r)return!0}return!1}containsWidget(e){return DO(e,"ag-selection-checkbox",3)||DO(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:n}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),n?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:n}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),n?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,n=t.contains(e.target),r=t.contains(e.relatedTarget);return n&&r}destroy(){super.destroy()}},QLt=class extends dt{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();if(e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e){const t=this.refreshSpanHeight.bind(this,e);t(),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:t,recalculateRowBounds:t,pinnedHeightChanged:t})}}refreshSpanHeight(e){const t=e.getCellHeight();t!=null&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();yd(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,n=e.getColSpan(t),r=[];if(n===1)r.push(e);else{let i=e;const o=e.getPinned();for(let a=0;i&&a<n&&(r.push(i),i=this.beans.visibleCols.getColAfter(i),!(!i||Yi(i)||o!==i.getPinned()));a++);}return r}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=zr(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return e;const{visibleCols:t}=this.beans,n=t.getColsLeftWidth();if(this.column.getPinned()==="right"){const r=t.bodyWidth;return n+r+(e||0)}return n+(e||0)}_legacyApplyRowSpan(e){if(this.rowSpan===1&&!e)return;const n=sp(this.beans)*this.rowSpan;this.eContent.style.height=`${n}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},ZLt="ag-cell",JLt="ag-cell-auto-height",e4t="ag-cell-normal-height",t4t="ag-cell-focus",n4t="ag-cell-first-right-pinned",r4t="ag-cell-last-left-pinned",i4t="ag-cell-not-inline-editing",o4t="ag-cell-wrap-text",A$="cellCtrl";function dye(e,t){return wet(e,t,A$)}var a4t=0,IN=class extends dt{constructor(e,t,n,r){super(),this.column=e,this.rowNode=t,this.rowCtrl=r,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.tooltipFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.beans=n;const{colId:i}=e;this.instanceId=i+"-"+a4t++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new QLt(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this,e),this.mouseListener=new KLt(this,e,this.column),this.keyboardListener=new YLt(this,e,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature();const{rangeSvc:t}=e;t&&r1(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(e,this)),p0(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(e,this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(e,t,n,r,i,o,a){this.comp=e,this.eGui=t,this.printLayout=i,a??(a=this),this.addDomData(a),this.addFeatures(),a.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(r,a),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer(),o&&this.isCellEditable()?this.beans.editSvc?.startEditing(this):this.showValue(!1,!0),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(s=>s()),this.onCompAttachedFuncs=[])}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}showValue(e,t){const{beans:n,column:r,rowNode:i,rangeFeature:o}=this,{userCompFactory:a}=n,s=this.getValueToDisplay();let l;const c=i.stub&&i.groupData?.[r.getId()]==null,u=r.getColDef();if(c||this.isCellRenderer()){const d=this.createCellRendererParams();!c||p0(r)?l=tP(a,u,d):l=SLt(a,u,d)}if(!l&&!c&&n.findSvc?.isMatch(i,r)){const d=this.createCellRendererParams();l=tP(a,{...r.getColDef(),cellRenderer:"agFindCellRenderer"},d)}this.comp.setRenderDetails(l,s,e),!t&&o&&sh(n,()=>o?.refreshHandle()),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(e,t=!1){return(this.rowNode.rowPinned==null||t&&f6(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:n}=this.beans.gridOptions,r=cW(t),i=f3(this.column);return n==="custom"&&r!=="selectionColumn"&&i?!1:e.checkboxSelection||i&&typeof t=="object"&&kO(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource),i=this.isAutoHeight!=this.column.isAutoHeight();return t||n||r||i}onPopupEditorClosed(){this.editing&&this.beans.editSvc?.stopRowOrCellEdit(this)}stopEditing(e=!1){return this.beans.editSvc?.stopEditing(this,e)??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:n,rowNode:r,comp:i,eGui:o,beans:{valueSvc:a,gos:s}}=this;return Vn(s,{value:e,valueFormatted:t,getValue:()=>a.getValueForDisplay(n,r).value,setValue:c=>a.setValue(r,n,c),formatValue:this.formatValue.bind(this),data:r.data,node:r,pinned:n.getPinned(),colDef:n.getColDef(),column:n,refreshCell:this.refreshCell.bind(this),eGridCell:o,eParentOfValue:i.getParentOfValue(),registerRowDragger:(c,u,d,p)=>this.registerRowDragger(c,u,p),setTooltip:(c,u)=>{s.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(c,u),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e)}refreshCell(e){if(this.suppressRefreshCell||this.editing)return;const t=this.column.getColDef(),n=e!=null&&!!e.newData,r=e!=null&&!!e.suppressFlash,i=t.field==null&&t.valueGetter==null&&t.showRowGroup==null,o=e&&e.forceRefresh||i||n,a=!!this.comp,s=this.updateAndFormatValue(a),l=o||s;if(a){if(l){this.showValue(n,!1);const c=this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering();!r&&!c&&t.enableCellChangeFlash&&this.beans.cellFlashSvc?.flashCell(this),this.customStyleFeature?.applyUserStyles(),this.customStyleFeature?.applyClassesFromColDef()}this.tooltipFeature?.refreshTooltip(),this.customStyleFeature?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,n=this.valueFormatted,{value:r,valueFormatted:i}=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode,!0);return this.value=r,this.valueFormatted=i,e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n:!0}valuesAreEqual(e,t){const n=this.column.getColDef();return n.equals?n.equals(e,t):e===t}addDomData(e){const t=this.eGui;mz(this.beans.gos,t,A$,this),e.addDestroyFunc(()=>mz(this.beans.gos,t,A$,null))}createEvent(e,t){const{rowNode:n,column:r,value:i,beans:o}=this;return Vn(o.gos,{type:t,node:n,data:n.data,value:i,column:r,colDef:r.getColDef(),rowPinned:n.rowPinned,event:e,rowIndex:n.rowIndex})}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:n}=this;ett(e,t,n.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);B2e(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e=!1){this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e})}restoreFocus(e=!1){if(!this.comp||this.editing||!this.isCellFocused()||!this.beans.focusSvc.shouldTakeFocus())return;const t=()=>{if(!this.isAlive())return;const n=this.comp.getFocusableElement();this.isCellFocused()&&n.focus({preventScroll:!0})};if(e){setTimeout(t,0);return}t()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&(p0(this.column)&&(e=!0),Af(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss(n4t,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss(r4t,e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){const{beans:t}=this;if(xK(t))return;if(!this.comp){e&&(this.focusEventWhileNotReady=e);return}const n=this.isCellFocused();if(this.comp.toggleCss(t4t,n),n&&e&&e.forceBrowserFocus){let i=this.comp.getFocusableElement();if(this.editing){const o=lm(i,null,!0);o.length&&(i=o[0])}i.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}const r=t.gos.get("editType")==="fullRow";!n&&!r&&this.editing&&t.editSvc?.stopRowOrCellEdit(this),n&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:zc(t),column:this.column}}setInlineEditingCss(){this.beans.editSvc?.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss(ZLt,!0),e.toggleCss(i4t,!0);const t=this.column.isAutoHeight()==!0;e.toggleCss(JLt,t),e.toggleCss(e4t,!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?this.beans.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.getColDef().wrapText==!0;this.comp.toggleCss(o4t,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),n=this.createEvent(e,"cellContextMenu"),{beans:r}=this;r.eventSvc.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout(()=>{r.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(n)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(Gi(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,n){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const r=this.createRowDragComp(e,t,n);r&&(this.customRowDragComp=r,this.addDestroyFunc(()=>{this.beans.context.destroyBean(r),this.customRowDragComp=null}))}createRowDragComp(e,t,n){const r=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,n);if(r)return this.beans.context.createBean(r),r}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(e=>e()),this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}},itt="__ag_grid_instance";function ott(e,t){t[itt]=e.gridInstanceId}function dW(e,t){return att(e,t.target)}function att(e,t){let n=t;for(;n;){const r=n[itt];if(Ut(r))return r===e.gridInstanceId;n=n.parentElement}return!1}function stt(e,t){return dye(e,t.target)?.getFocusedCellPosition()??null}function O$(e,t){const n=Uu(e.gos,"normal"),r=t;let i,o;r.clientX!=null||r.clientY!=null?(i=r.clientX,o=r.clientY):(i=r.x,o=r.y);const{pageFirstPixel:a}=e.pageBounds.getCurrentPagePixelRange();if(o+=a,n){const s=e.ctrlsSvc.getScrollFeature(),l=s.getVScrollPosition(),c=s.getHScrollPosition();i+=c.left,o+=l.top}return{x:i,y:o}}var bm=(e=>(e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",e))(bm||{}),s4t=class extends dt{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.dragSvc=e.dragSvc,this.environment=e.environment,this.userCompFactory=e.userCompFactory}addDragSource(e,t=!1){const n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragSvc.addDragSource(n)}getDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;return!e||!e.comp?null:e.comp}removeDragSource(e){const{dragSourceAndParamsList:t,dragSvc:n}=this,r=t.find(i=>i.dragSource===e);r&&(n.removeDragSource(r.params),Ou(t,r))}destroy(){const{dragSourceAndParamsList:e,dragSvc:t,dropTargets:n}=this;e.forEach(r=>t.removeDragSource(r.params)),e.length=0,n.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=e.getDragItem(),e.onDragStarted?.(),this.createDragAndDropImageComponent()}onDragStop(e){this.dragSource?.onDragStopped?.();const{lastDropTarget:t}=this;if(t?.onDragStop){const n=this.createDropTargetEvent(t,e,null,null,!1);t.onDragStop(n)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t}=this;e?.onDragCancelled?.(),t?.onDragCancel&&t.onDragCancel(this.createDropTargetEvent(t,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(e,t=!1){const n=this.getHorizontalDirection(e),r=this.getVerticalDirection(e);this.eventLastTime=e,this.positionDragAndDropImageComp(e);const i=this.dropTargets.filter(u=>this.isMouseOnDropTarget(e,u)),o=this.findCurrentDropTarget(e,i),{lastDropTarget:a,dragSource:s,dragAndDropImageComp:l,dragItem:c}=this;if(o!==a){if(this.leaveLastTargetIfExists(e,n,r,t),a!==null&&o===null&&s?.onGridExit?.(c),a===null&&o!==null&&s?.onGridEnter?.(c),this.enterDragTargetIfExists(o,e,n,r,t),o&&l){const{comp:u,promise:d}=l;u?u.setIcon(o.getIconName?o.getIconName():null,!1):d.then(p=>{p&&p.setIcon(o.getIconName?o.getIconName():null,!1)})}this.lastDropTarget=o}else if(o&&o.onDragging){const u=this.createDropTargetEvent(o,e,n,r,t);o.onDragging(u)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n}isMouseOnDropTarget(e,t){const n=this.getAllContainersFromDropTarget(t);let r=!1;const i=(s,l)=>{for(const c of l){const{width:u,height:d,left:p,right:h,top:g,bottom:m}=c.getBoundingClientRect();if(u===0||d===0)return!1;const v=s.clientX>=p&&s.clientX<h,y=s.clientY>=g&&s.clientY<m;if(!v||!y)return!1}return!0};for(const s of n)if(i(e,s)){r=!0;break}const{eElement:o,type:a}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(o)?!1:r&&t.isInterestedIn(a,o)}findCurrentDropTarget(e,t){const n=t.length;if(n===0)return null;if(n===1)return t[0];const i=vz(this.beans).elementsFromPoint(e.clientX,e.clientY);for(const o of i)for(const a of t)if(this.getAllContainersFromDropTarget(a).flatMap(l=>l).indexOf(o)!==-1)return a;return null}enterDragTargetIfExists(e,t,n,r,i){if(e&&e.onDragEnter){const o=this.createDropTargetEvent(e,t,n,r,i);e.onDragEnter(o)}}leaveLastTargetIfExists(e,t,n,r){const{lastDropTarget:i}=this;if(!i)return;if(i.onDragLeave){const a=this.createDropTargetEvent(i,e,t,n,r);i.onDragLeave(a)}const o=this.getDragAndDropImageComponent();o&&o.setIcon(null,!1)}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter(t=>t.getContainer()!==e.getContainer())}hasExternalDropZones(){return this.dropTargets.some(e=>e.external)}findExternalZone(e){return this.dropTargets.filter(n=>n.external).find(n=>n.getContainer()===e.getContainer())||null}isDropZoneWithinThisGrid(e){const n=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:r}=e;return n.contains(r)}getHorizontalDirection(e){const t=this.eventLastTime?.clientX,n=e.clientX;return t===n?null:t>n?"left":"right"}getVerticalDirection(e){const t=this.eventLastTime?.clientY,n=e.clientY;return t===n?null:t>n?"up":"down"}createDropTargetEvent(e,t,n,r,i){const o=e.getContainer(),a=o.getBoundingClientRect(),{dragItem:s,dragSource:l,gos:c}=this,u=t.clientX-a.left,d=t.clientY-a.top;return Vn(c,{event:t,x:u,y:d,vDirection:r,hDirection:n,dragSource:l,fromNudge:i,dragItem:s,dropZoneTarget:o})}positionDragAndDropImageComp(e){const t=this.getDragAndDropImageComponent();t&&rhe(t.getGui(),e,this.beans)}removeDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;if(e){const{comp:t}=e;if(t){const n=t.getGui();this.dragAndDropImageParent?.removeChild(n),this.destroyBean(t)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){const{dragSource:e,gos:t,userCompFactory:n}=this;if(!e)return;const r=gLt(n,Vn(t,{dragSource:e}));if(!r)return;const i=r.newAgStackInstance();this.dragAndDropImageComp={promise:i},i.then(o=>{!o||!this.isAlive()||(this.processDragAndDropImageComponent(o),this.dragAndDropImageComp.comp=o)})}processDragAndDropImageComponent(e){const{dragSource:t,environment:n}=this;if(!t)return;const r=e.getGui();r.style.setProperty("position","absolute"),r.style.setProperty("z-index","9999"),ott(this.gos,r),n.applyThemeClasses(r),e.setIcon(null,!1);let{dragItemName:i}=t;typeof i=="function"&&(i=i()),e.setLabel(i||""),r.style.top="20px",r.style.left="20px";const o=bK(this.beans);this.dragAndDropImageParent=o,o?o.appendChild(r):ut(54)}registerGridDropTarget(e,t){const n={getContainer:e,isInterestedIn:r=>r===1||r===0,getIconName:()=>"notAllowed"};this.addDropTarget(n),t.addDestroyFunc(()=>this.removeDropTarget(n))}},pye=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.indexOf("x")!==-1,this.scrollVertically=e.scrollAxis.indexOf("y")!==-1,this.scrollByTick=e.scrollByTick!=null?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const n=t||this.shouldSkipVerticalScroll();if(n&&this.shouldSkipHorizontalScroll())return;const r=this.scrollContainer.getBoundingClientRect(),i=this.scrollByTick;this.tickLeft=e.clientX<r.left+i,this.tickRight=e.clientX>r.right-i,this.tickUp=e.clientY<r.top+i&&!n,this.tickDown=e.clientY>r.bottom-i&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}};function EC(e){const{rowIndex:t,rowPinned:n,column:r}=e;return`${t}.${n??"null"}.${r.getId()}`}function g6(e,t){const n=e.column===t.column,r=e.rowPinned===t.rowPinned,i=e.rowIndex===t.rowIndex;return n&&r&&i}function t0(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(Ut(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function $c(e,t){return!e&&!t?!0:e&&!t||!e&&t?!1:e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}function l4t(e){let t=0,n;const{pinnedRowModel:r,rowModel:i,pageBounds:o}=e;return r?.getPinnedTopRowCount()?n="top":i.getRowCount()?(n=null,t=o.getFirstRow()):r?.getPinnedBottomRowCount()&&(n="bottom"),n===void 0?null:{rowIndex:t,rowPinned:n}}function c4t(e){let t,n=null;const{pinnedRowModel:r,pageBounds:i}=e,o=r?.getPinnedBottomRowCount(),a=r?.getPinnedTopRowCount();return o?(n="bottom",t=o-1):e.rowModel.getRowCount()?(n=null,t=i.getLastRow()):a&&(n="top",t=a-1),t===void 0?null:{rowIndex:t,rowPinned:n}}function lp(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function Kv(e,t){const n=e.spannedRowRenderer?.getCellByPosition(t);if(n)return n;const r=e.rowRenderer.getRowByPosition(t);return r?r.getCellCtrl(t.column):null}function Sx(e,t){const{rowIndex:n,rowPinned:r}=t,{pageBounds:i,pinnedRowModel:o,rowModel:a}=e;if(n===0)return r==="top"?null:r==="bottom"&&a.isRowsToRender()?{rowIndex:i.getLastRow(),rowPinned:null}:o?.isRowsToRender("top")?{rowIndex:o.getPinnedTopRowCount()-1,rowPinned:"top"}:null;const s=r?void 0:a.getRow(n);return ltt(e,s,!0)??{rowIndex:n-1,rowPinned:r}}function Gp(e,t){const{rowIndex:n,rowPinned:r}=t,{pageBounds:i,pinnedRowModel:o,rowModel:a}=e;if(u4t(e,t))return r==="bottom"?null:r==="top"&&a.isRowsToRender()?{rowIndex:i.getFirstRow(),rowPinned:null}:o?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;const s=r?void 0:a.getRow(n);return ltt(e,s)??{rowIndex:n+1,rowPinned:r}}function ltt(e,t,n){const{gos:r,rowRenderer:i}=e;if(!t?.sticky||!yK(r))return;const o=n?i.getStickyTopRowCtrls():i.getStickyBottomRowCtrls();let a;for(let s=0;s<o.length;s++)if(o[s].rowNode.rowIndex===t.rowIndex){a=o[s+(n?-1:1)];break}return a?{rowIndex:a.rowNode.rowIndex,rowPinned:null}:void 0}function u4t(e,t){const{rowPinned:n,rowIndex:r}=t,{pinnedRowModel:i,pageBounds:o}=e;return n==="top"?(i?.getPinnedTopRowCount()??0)-1<=r:n==="bottom"?(i?.getPinnedBottomRowCount()??0)-1<=r:o.getLastRow()<=r}var Mz=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}depthFirstSearchChangedPath(e,t){const{rowNode:n,children:r}=e;if(r)for(let i=0;i<r.length;++i)this.depthFirstSearchChangedPath(r[i],t);t(n)}depthFirstSearchEverything(e,t,n){const r=e.childrenAfterGroup;if(r)for(let i=0,o=r.length;i<o;++i){const a=r[i];a.childrenAfterGroup?this.depthFirstSearchEverything(a,t,n):n&&t(a)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,n=!1){this.active&&!n?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,n=0;for(;!this.mapToItems[t.id];){const r={rowNode:t,children:null};this.mapToItems[t.id]=r,n++,t=t.parent}return n}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let n=e;for(;n;)this.nodeIdsToColumns[n.id]||(this.nodeIdsToColumns[n.id]={}),t.forEach(r=>this.nodeIdsToColumns[n.id][r.getId()]=!0),n=n.parent}linkPathItems(e,t){let n=e;for(let r=0;r<t;r++){const i=this.mapToItems[n.id],o=this.mapToItems[n.parent.id];o.children||(o.children=[]),o.children.push(i),n=n.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;const n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;const n=this.nodeIdsToColumns[e.id];return t.filter(i=>n[i.getId()])}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;const n=this.nodeIdsToColumns[e.id];return t.filter(i=>!n[i.getId()])}},d4t=class extends dt{constructor(e){super(),this.eContainer=e}postConstruct(){const{rowModel:e,gos:t,ctrlsSvc:n}=this.beans;oa(t)&&(this.clientSideRowModel=e),n.whenReady(this,r=>{const i=r.gridBodyCtrl;this.autoScrollService=new pye({scrollContainer:i.eBodyViewport,scrollAxis:"y",getVerticalPosition:()=>i.scrollFeature.getVScrollPosition().top,setVerticalPosition:o=>i.scrollFeature.setVerticalScrollPosition(o),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})})}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){const{rowGroupColsSvc:e,filterManager:t,sortSvc:n}=this.beans;return!!((e?.columns??[]).length||t?.isAnyFilterPresent()||n?.isSortActive())}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const r=[...this.beans.selectionSvc?.getSelectedNodes()??[]].sort((i,o)=>i.rowIndex==null||o.rowIndex==null?0:this.getRowIndexNumber(i)-this.getRowIndexNumber(o));if(r.indexOf(t)!==-1)return r}return[t]}onDragEnter(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent("rowDragEnter",e),this.getRowNodes(e).forEach(t=>{this.setRowNodeDragging(t,!0)}),this.onEnterOrDragging(e)}onDragging(e){this.onEnterOrDragging(e)}isFromThisGrid(e){const{dragSourceDomDataKey:t}=e.dragSource;return t===this.gos.getDomDataKey()}onEnterOrDragging(e){this.dispatchGridEvent("rowDragMove",e),this.lastDraggingEvent=e,this.gos.get("rowDragManaged")&&this.doManagedDrag(e),this.autoScrollService.check(e.event)}doManagedDrag(e){const{dragAndDrop:t,gos:n}=this.beans,r=this.isFromThisGrid(e);if(!(n.get("rowDragManaged")&&this.shouldPreventRowMove()))if(n.get("suppressMoveWhenRowDragging")||!r){if(t.isDropZoneWithinThisGrid(e)){const o=this.clientSideRowModel,a=this.getRowsDrop(e),s=a?.target;s?o.highlightRow(s,a.delta<0?"Above":"Below"):o.clearHighlight()}}else{const o=this.getRowsDrop(e);o&&this.dropRows(o)}}getRowIndexNumber(e){const t=e.getRowIndexString();return parseInt(zr(t.split("-")),10)}getRowsDrop(e){const{rowNode:t,rowNodes:n}=e.dragItem,r=n?.length,i=this.isFromThisGrid(e),o=r&&(t??n[0]),a=O$(this.beans,e).y,s=this.clientSideRowModel,l=s.getRowIndexAtPixel(a);let c=s.getRow(l),u=0;if(!o)return null;if(i){if(!c||c===o)return null;u=l-o.rowIndex,n.includes(c)&&(c=(u<0?this.getPrevOrNext(-1,n[0]):this.getPrevOrNext(1,zr(n)))??c)}return c&&(!i||u<-1||u>1)&&(u=a-c.rowTop-c.rowHeight/2),{sameGrid:i,delta:u,target:c,rows:n}}getPrevOrNext(e,t){const n=this.clientSideRowModel,r=n.getRowCount();let i=t.rowIndex+e;for(;i>=0&&i<r;){const o=n.getRow(i);if(o.sourceRowIndex>=0)return o;i+=e}}addRowDropZone(e){if(!e.getContainer()){ut(55);return}const t=this.beans.dragAndDrop;if(t.findExternalZone(e)){ut(56);return}let n={getContainer:e.getContainer};e.fromGrid?n=e:(e.onDragEnter&&(n.onDragEnter=i=>{e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",i))}),e.onDragLeave&&(n.onDragLeave=i=>{e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",i))}),e.onDragging&&(n.onDragging=i=>{e.onDragging(this.draggingToRowDragEvent("rowDragMove",i))}),e.onDragStop&&(n.onDragStop=i=>{e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",i))}),e.onDragCancel&&(n.onDragCancel=i=>{e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",i))}));const r={isInterestedIn:i=>i===2,getIconName:()=>"move",external:!0,...n};t.addDropTarget(r),this.addDestroyFunc(()=>t.removeDropTarget(r))}getRowDropZone(e){const t=this.getContainer.bind(this),n=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),o=this.onDragStop.bind(this),a=this.onDragCancel.bind(this);let s;return e?s={getContainer:t,onDragEnter:e.onDragEnter?l=>{n(l),e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",l))}:n,onDragLeave:e.onDragLeave?l=>{r(l),e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",l))}:r,onDragging:e.onDragging?l=>{i(l),e.onDragging(this.draggingToRowDragEvent("rowDragMove",l))}:i,onDragStop:e.onDragStop?l=>{o(l),e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",l))}:o,onDragCancel:e.onDragCancel?l=>{a(l),e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",l))}:a,fromGrid:!0}:s={getContainer:t,onDragEnter:n,onDragLeave:r,onDragging:i,onDragStop:o,onDragCancel:a,fromGrid:!0},s}draggingToRowDragEvent(e,t){const n=this.beans,{pageBounds:r,rowModel:i,gos:o}=n,a=O$(this.beans,t).y,s=a>r.getCurrentPagePixelRange().pageLastPixel;let l=-1,c;return s||(l=i.getRowIndexAtPixel(a),c=i.getRow(l)),Vn(o,{type:e,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:l,overNode:c,y:a,vDirection:t.vDirection})}dispatchGridEvent(e,t){const n=this.draggingToRowDragEvent(e,t);this.eventSvc.dispatchEvent(n)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&this.clientSideRowModel.clearHighlight()}onDragStop(e){this.dispatchGridEvent("rowDragEnd",e),this.stopDragging(e);const{dragAndDrop:t,gos:n}=this.beans;if(n.get("rowDragManaged")&&(n.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&t.isDropZoneWithinThisGrid(e)){const r=this.getRowsDrop(e);r&&this.dropRows(r),this.clientSideRowModel.clearHighlight()}}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e);const{dragAndDrop:t,gos:n}=this.beans;n.get("rowDragManaged")&&(n.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&t.isDropZoneWithinThisGrid(e)&&this.clientSideRowModel.clearHighlight()}stopDragging(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(t=>{this.setRowNodeDragging(t,!1)})}setRowNodeDragging(e,t){e.dragging!==t&&(e.dragging=t,e.dispatchRowEvent("draggingChanged"))}dropRows(e){return e.sameGrid?this.moveRows(e):this.addRows(e)}addRows({delta:e,target:t,rows:n}){const r=qy(this.gos),i=this.clientSideRowModel,o=n.filter(({data:s,rowPinned:l})=>!i.getRowNode(r?.({data:s,level:0,rowPinned:l})??s.id)).map(({data:s})=>s);if(o.length===0)return!1;const a=t&&t.sourceRowIndex+(e<0?0:1);return i.updateRowData({add:o,addIndex:a}),!0}moveRows({delta:e,target:t,rows:n}){const r=this.getValidRowsToMove(n),i=this.beans.focusSvc,o=i.getFocusedCell(),a=o&&Kv(this.beans,o);return this.reorderLeafChildren(r,...this.getMoveRowsBounds(r,t,e))?(this.clientSideRowModel.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedPath:new Mz(!1,this.clientSideRowModel.rootNode),rowNodesOrderChanged:!0}),a?a.focusCell():i.clearFocusedCell(),!0):!1}getValidRowsToMove(e){const t=this.clientSideRowModel,n=new Set;for(const r of e)r.sourceRowIndex>=0&&(r.rowTop!==null||r===t.getRowNode(r.id))&&n.add(r);return n}getMoveRowsBounds(e,t,n){const r=this.clientSideRowModel.rootNode?.allLeafChildren.length??0;let i=t?.sourceRowIndex??-1;i<0||i>=r?i=r:n>=0&&++i;let o=i,a=Math.min(i,r-1);for(const{sourceRowIndex:s}of e)s<o&&(o=s),s>a&&(a=s);return[o,i,a]}reorderLeafChildren(e,t,n,r){let i=!1;const o=this.clientSideRowModel.rootNode?.allLeafChildren;if(!e.size||!o)return!1;let a=t;for(let l=t;l<n;++l){const c=o[l];e.has(c)||(c.sourceRowIndex!==a&&(c.sourceRowIndex=a,o[a]=c,i=!0),++a)}let s=r;for(let l=r;l>=n;--l){const c=o[l];e.has(c)||(c.sourceRowIndex!==s&&(c.sourceRowIndex=s,o[s]=c,i=!0),--s)}for(const l of e)l.sourceRowIndex!==a&&(l.sourceRowIndex=a,o[a]=l,i=!0),++a;return i}};function ctt(e,t,n){if(n===0)return!1;const r=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(r,i)<=n}var p4t=class extends dt{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){const{dragSources:e}=this;e.forEach(this.removeListener.bind(this)),e.length=0,super.destroy()}removeListener(e){const t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){const r=e.touchStartListener;t.removeEventListener("touchstart",r,{passive:!0})}}removeDragSource(e){const{dragSources:t}=this,n=t.find(r=>r.dragSource===e);n&&(this.removeListener(n),Ou(t,n))}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:n,includeTouch:r,stopPropagationForTouch:i}=e;n.addEventListener("mousedown",t);let o=null;const a=this.gos.get("suppressTouch");r&&!a&&(o=s=>{G2e(s.target)||(i&&s.stopPropagation(),this.onTouchStart(e,s))},n.addEventListener("touchstart",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:o,touchEnabled:!!r})}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const n=t.touches[0];this.touchLastTime=n,this.touchStart=n;const r=l=>this.onTouchMove(l,e.eElement),i=l=>this.onTouchUp(l,e.eElement),o=l=>{l.cancelable&&l.preventDefault()},a=t.target,s=[{target:vz(this.beans),type:"touchmove",listener:o,options:{passive:!1}},{target:a,type:"touchmove",listener:r,options:{passive:!0}},{target:a,type:"touchend",listener:i,options:{passive:!0}},{target:a,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(s),e.dragStartPixels===0&&this.onCommonMove(n,this.touchStart,e.eElement)}onMouseDown(e,t){const n=t;if(e.skipMouseEvent&&e.skipMouseEvent(t)||n._alreadyProcessedByDragService||(n._alreadyProcessedByDragService=!0,t.button!==0))return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const r=c=>this.onMouseMove(c,e.eElement),i=c=>this.onMouseUp(c,e.eElement),o=c=>c.preventDefault(),a=c=>{c.key===Qe.ESCAPE&&this.cancelDrag(e.eElement)},s=vz(this.beans),l=[{target:s,type:"mousemove",listener:r},{target:s,type:"mouseup",listener:i},{target:s,type:"contextmenu",listener:o},{target:s,type:"keydown",listener:a}];this.addTemporaryEvents(l),e.dragStartPixels===0&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach(t=>{const{target:n,type:r,listener:i,options:o}=t;n.addEventListener(r,i,o)}),this.dragEndFunctions.push(()=>{e.forEach(t=>{const{target:n,type:r,listener:i,options:o}=t;n.removeEventListener(r,i,o)})})}isEventNearStartEvent(e,t){const{dragStartPixels:n}=this.currentDragParams,r=Ut(n)?n:4;return ctt(e,t,r)}getFirstActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}onCommonMove(e,t,n){if(!this.dragging){if(this.isEventNearStartEvent(e,t))return;if(this.dragging=!0,this.eventSvc.dispatchEvent({type:"dragStarted",target:n}),this.currentDragParams.onDragStart(t),!this.currentDragParams){this.dragging=!1;return}this.currentDragParams.onDragging(t)}this.currentDragParams?.onDragging(e)}onTouchMove(e,t){const n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)}onMouseMove(e,t){yw()&&bl(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)}shouldPreventMouseEvent(e){const{gos:t}=this,n=t.get("enableCellTextSelection"),r=e.type==="mousemove",i=o=>!!o.target?.tagName.toLocaleLowerCase()?.match("^a$|textarea|input|select|button");return n&&r&&e.cancelable&&dW(t,e)&&!i(e)}onTouchUp(e,t){let n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t})),this.resetDragProperties()}cancelDrag(e){this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),this.currentDragParams?.onDragCancel?.(),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;const{dragEndFunctions:e}=this;e.forEach(t=>t()),e.length=0}};function utt(e,t){return e+"_"+t}function Pl(e){return e instanceof dtt}var dtt=class extends dt{constructor(e,t,n,r){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=n,this.pinned=r,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return utt(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){if(this.displayedChildren.forEach(e=>{Pl(e)&&e.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=zr(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;return this.displayedChildren?.forEach(t=>{e+=t.getActualWidth()}),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach(t=>{t.isResizable()&&(e=!0)}),e}getMinWidth(){let e=0;return this.displayedChildren.forEach(t=>{e+=t.getMinWidth()}),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){this.displayedChildren.forEach(t=>{vm(t)?e.push(t):Pl(t)&&t.addDisplayedLeafColumns(e)})}addLeafColumns(e){this.children.forEach(t=>{vm(t)?e.push(t):Pl(t)&&t.addLeafColumns(e)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e||!e.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e!=null&&e.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(n=>{if(Pl(n)&&(!n.displayedChildren||!n.displayedChildren.length))return;switch(n.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(n);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(n);break;default:this.displayedChildren.push(n);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},pW="row-group-",hye="t-",fye="b-",h4t=0,vp=class{constructor(e){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=h4t++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:n,selectionSvc:r,eventSvc:i}=this.beans,o=this.data;this.data=e,n?.onDataChanged(),this.updateDataOnDetailNode(),r?.updateRowSelectable(this),this.resetQuickFilterAggregateText();const a=this.createDataChangedEvent(e,o,t);if(this.__localEventService?.dispatchEvent(a),this.sibling){this.sibling.data=e;const l=this.sibling.createDataChangedEvent(e,o,t);this.sibling.__localEventService?.dispatchEvent(l)}i.dispatchEvent({type:"rowNodeDataChanged",node:this});const s=this.pinnedSibling;s&&(s.data=e,s.__localEventService?.dispatchEvent(s.createDataChangedEvent(e,o,t)),i.dispatchEvent({type:"rowNodeDataChanged",node:s}))}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(e,t,n){return{type:"dataChanged",node:this,oldData:t,newData:e,update:n}}getRowIndexString(){return this.rowIndex==null?(pi(13),null):this.rowPinned==="top"?hye+this.rowIndex:this.rowPinned==="bottom"?fye+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:n}=this.beans,r=n?.createDaemonNode?.(this),i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),n&&(n.updateRowSelectable(this),n.syncInRowNode(this,r));const o=this.createDataChangedEvent(e,i,!1);this.__localEventService?.dispatchEvent(o)}setId(e){const t=qy(this.beans.gos);if(t)if(this.data){const n=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:n.length>0?n:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(pW)&&pi(14,{groupPrefix:pW})}else this.id=void 0;else this.id=e}setRowTop(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.dispatchRowEvent("topChanged"),this.setDisplayed(e!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,n){this.beans.expansionSvc?.setExpanded(this,e,t,n)}setDataValue(e,t,n){const{colModel:r,valueSvc:i,gos:o,selectionSvc:a}=this.beans,s=typeof e!="string"?e:r.getCol(e)??r.getColDefCol(e);if(!s)return!1;const l=i.getValueForDisplay(s,this).value;if(o.get("readOnlyEdit")){const{beans:{eventSvc:p},data:h,rowIndex:g,rowPinned:m}=this;return p.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:g,rowPinned:m,column:s,colDef:s.colDef,data:h,node:this,oldValue:l,newValue:t,value:t,source:n}),!1}const c=i.setValue(this,s,t,n);this.dispatchCellChangedEvent(s,t,l);const u=a?.updateRowSelectable(this),d=this.pinnedSibling;return d&&(c&&d.dispatchCellChangedEvent(s,t,l),d.selectable=u??!0),c}updateHasChildren(){let e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,n){const r={type:"cellChanged",node:this,column:e,newValue:t,oldValue:n};this.__localEventService?.dispatchEvent(r)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){return this.footer?this.sibling.isSelected():this.rowPinned&&this.pinnedSibling?this.pinnedSibling.isSelected():this.__selected}depthFirstSearch(e){this.childrenAfterGroup?.forEach(t=>t.depthFirstSearch(e)),e(this)}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,n="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:n})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){this.__localEventService||(this.__localEventService=new Wy),this.__localEventService.addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e),this.__localEventService||(this.__localEventService=new Wy),this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.__localEventService);const n=this.frameworkEventListenerService?.wrap(e,t)??t;this.__localEventService.addEventListener(e,n)}removeEventListener(e,t){const n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,n)}removeLocalListener(e,t){this.__localEventService?.removeEventListener(e,t),this.__localEventService?.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(ut(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t&&t.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setFirstChild(e){this.firstChild!==e&&(this.firstChild=e,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(e){this.displayed!==e&&(this.displayed=e,this.dispatchRowEvent("displayedChanged"))}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}getFirstChild(){return this.childStore?this.childStore.getFirstNode():this.childrenAfterSort?.[0]??null}};function ptt(e,t,n){return Vn(t,{type:n,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var f4t=new Set(["__localEventService","__objectId","sticky","__autoHeights","__checkAutoHeightsDebounced","childStore"]);function htt(e,t){const n=new vp(t);return Object.keys(e).forEach(r=>{f4t.has(r)||(n[r]=e[r])}),n.oldRowTop=null,n}var g4t={tag:"div",cls:"ag-filter"},wK=class extends Gt{constructor(e,t){super(g4t),this.column=e,this.source=t,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){return this.filterWrapper?.filterPromise??null}afterInit(){return this.filterWrapper?.filterPromise?.then(()=>{})??Dr.resolve()}afterGuiAttached(e){this.filterWrapper?.filterPromise?.then(t=>{t?.afterGuiAttached?.(e)})}afterGuiDetached(){this.filterWrapper?.filterPromise?.then(e=>{e?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:n}=this;this.filterWrapper=this.beans.filterManager?.getOrCreateFilterWrapper(t)??null,this.filterWrapper?.filterPromise&&this.filterWrapper.filterPromise.then(r=>{const i=r.getGui();Ut(i)||ut(69,{guiFromFilter:i}),this.appendChild(i),e&&this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:n,eGui:this.getGui()})})}onFilterDestroyed(e){(e.source==="api"||e.source==="paramsUpdated")&&e.column.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Xi(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},ftt="ag-resizer-wrapper",JM=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),m4t={tag:"div",cls:ftt,children:[JM("eTopLeft","topLeft"),JM("eTop","top"),JM("eTopRight","topRight"),JM("eRight","right"),JM("eBottomRight","bottomRight"),JM("eBottom","bottom"),JM("eBottomLeft","bottomLeft"),JM("eLeft","left")]},SK=class extends dt{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,n=t/2-this.getWidth()/2,r=e/2-this.getHeight()/2;this.offsetElement(n,r)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:n,width:r,minHeight:i,height:o,x:a,y:s}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0;const u=x0(this.element);if(u){const d=this.findBoundaryElement(),p=window.getComputedStyle(d);if(p.minWidth!=null){const h=d.offsetWidth-this.element.offsetWidth;c=parseInt(p.minWidth,10)-h}if(p.minHeight!=null){const h=d.offsetHeight-this.element.offsetHeight;l=parseInt(p.minHeight,10)-h}}if(this.minHeight=i||l,this.minWidth=n||c,r&&this.setWidth(r),o&&this.setHeight(o),(!r||!o)&&this.refreshSize(),e)this.center();else if(a||s)this.offsetElement(a,s);else if(u&&t){let d=this.boundaryEl,p=!0;if(d||(d=this.findBoundaryElement(),p=!1),d){const h=parseFloat(d.style.top),g=parseFloat(d.style.left);p?this.offsetElement(isNaN(g)?0:g,isNaN(h)?0:h):this.setPosition(g,h)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(n),this.moveElementDragListener=n):(this.dragSvc?.removeDragSource(n),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(t=>{const r=!!e[t],i=this.getResizerElement(t),o={dragStartPixels:0,eElement:i,onDragStart:a=>this.onResizeStart(a,t),onDragging:this.onResize.bind(this),onDragStop:a=>this.onResizeEnd(a,t)};(r||!this.isAlive()&&!r)&&(r?(this.dragSvc?.addDragSource(o),this.resizeListeners.push(o),i.style.pointerEvents="all"):i.style.pointerEvents="none",this.resizable[t]=r)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,n=this.element;let r=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)EN(n,e),e=fK(n),r=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const i=this.getAvailableHeight();i&&e>i&&(e=i)}this.getHeight()!==e&&(r?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?EN(n,e):(n.style.height=`${e}px`,n.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:n}=this.offsetParent;if(!n)return null;const r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),o=e?this.position.y:r.top,a=e?0:i.top;let s=0;if(t){const c=this.element.parentElement;if(c){const{bottom:u}=c.getBoundingClientRect();s=u-r.bottom}}return n+a-o-s}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:n}=this.config;let r=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)am(t,e),e=fz(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:i}=this.offsetParent,o=n?this.position.x:this.element.getBoundingClientRect().left;i&&e+o>i&&(e=i-o)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?am(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))}offsetElement(e=0,t=0){const{forcePopupParentAsOffsetParent:n}=this.config,r=n?this.boundaryEl:this.element;r&&(this.popupSvc?.positionPopup({ePopup:r,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(r.style.left),parseFloat(r.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const n=this.getAvailableHeight();this.element.style.setProperty("max-height",`${n}px`)};e&&this.popupSvc?this.resizeObserverSubscriber=Hf(this.beans,this.popupSvc?.getPopupParent(),t):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:n,isTop:r,anywhereWithin:i,topBuffer:o}=e,a=t.clientX-this.dragStartPosition.x,s=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!n,!!i,a)?0:a,c=this.shouldSkipY(t,!!r,o,s)?0:s;return{movementX:l,movementY:c}}shouldSkipX(e,t,n,r){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.x:i.left;let l=s<=0&&o.left>=e.clientX||o.right<=e.clientX&&o.right<=a.right;return l?!0:(t?l=r<0&&e.clientX>s+o.left||r>0&&e.clientX<s+o.left:n?l=r<0&&e.clientX>a.right||r>0&&e.clientX<s+o.left:l=r<0&&e.clientX>a.right||r>0&&e.clientX<a.right,l)}shouldSkipY(e,t,n=0,r){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.y:i.top;let l=s<=0&&o.top>=e.clientY||o.bottom<=e.clientY&&o.bottom<=a.bottom;return l?!0:(t?l=r<0&&e.clientY>s+o.top+n||r>0&&e.clientY<s+o.top:l=r<0&&e.clientY>a.bottom||r>0&&e.clientY<a.bottom,l)}createResizeMap(){const e=t=>({element:this.element.querySelector(`[data-ref=${t}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(Nr(m4t)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0;const e=this.element.querySelector(`.${ftt}`);e&&this.element.removeChild(e),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:n,forcePopupParentAsOffsetParent:r}=this.config;!n&&!r&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(n=>!n.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,n=0;for(let r=0;r<e.length;r++){const i=e[r],o=!!i.style.flex&&i.style.flex!=="0 0 auto";if(i===this.element)continue;let a=this.minHeight||0,s=this.minWidth||0;if(o){const l=window.getComputedStyle(i);l.minHeight&&(a=parseInt(l.minHeight,10)),l.minWidth&&(s=parseInt(l.minWidth,10))}else a=i.offsetHeight,s=i.offsetWidth;t+=a,n+=s}return{height:t,width:n}}applySizeToSiblings(e){let t=null;const n=this.getSiblings();if(n){for(let r=0;r<n.length;r++){const i=n[r];i!==t&&(e?i.style.height=`${i.offsetHeight}px`:i.style.width=`${i.offsetWidth}px`,i.style.flex="0 0 auto",i===this.element&&(t=n[r+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:n}=this.config,{isTop:r,isRight:i,isBottom:o,isLeft:a}=this.currentResizer,s=i||a,l=o||r,{movementX:c,movementY:u}=this.calculateMouseMovement({e,isLeft:a,isTop:r}),d=this.position.x,p=this.position.y;let h=0,g=0;if(s&&c){const m=a?-1:1,v=this.getWidth(),y=v+c*m;let M=!1;a&&(h=v-y,(d+h<=0||y<=this.minWidth)&&(M=!0,h=0)),M||this.setWidth(y)}if(l&&u){const m=r?-1:1,v=this.getHeight(),y=v+u*m;let M=!1;r?(g=v-y,(p+g<=0||y<=this.minHeight)&&(M=!0,g=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&v<y&&this.getMinSizeOfSiblings().height+y>this.element.parentElement.offsetHeight&&(M=!0),M||this.setHeight(y)}this.updateDragStartPosition(e.clientX,e.clientY),((t||n)&&h||g)&&this.offsetElement(d+h,p+g)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:n}=this.position;let r;this.config.calculateTopBuffer&&(r=this.config.calculateTopBuffer());const{movementX:i,movementY:o}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:r});this.offsetElement(t+i,n+o),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},gtt="ag-focus-managed",Mw=class extends dt{constructor(e,t={}){super(),this.eFocusable=e,this.callbacks=t,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:n=>{if(n.defaultPrevented)return;const r=Md(this.beans,this.eFocusable,!1,n.shiftKey);r&&(r.focus(),n.preventDefault())},...t}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:n}}=this;e.classList.add(gtt),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),n&&this.addManagedElementListeners(e,{focusout:n})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||rh(t))return;const{callbacks:n}=this;if(n.shouldStopEventPropagation(t)){Cl(t);return}t.key===Qe.TAB?n.onTabKeyDown(t):n.handleKeyDown&&n.handleKeyDown(t)}})}},mtt={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"};function gye(e,t){const{debounceMs:n}=e;return z$(e)?(n!=null&&ut(71),0):n??t}function z$(e){return(e.buttons?.indexOf("apply")??-1)>=0}var AK=class extends Gt{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=at,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new Mw(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new SK(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t?.removeEventListener("submit",this.onFormSubmit);const n={tag:"form",cls:"ag-filter-wrapper",children:[{tag:"div",ref:"eFilterBody",cls:`ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper`,children:[this.createBodyTemplate()]}]};this.setTemplate(n,this.getAgComponents(),e),t=this.getGui(),t?.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(e){this.params=e,this.applyActive=z$(e),this.resetButtonsPanel(e)}updateParams(e){this.params=e,this.applyActive=z$(e),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(e,t){const{buttons:n,readOnly:r}=t??{},{buttons:i,readOnly:o}=e;if(r===o&&gz(n,i))return;const a=i&&i.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Xi(this.eButtonsPanel),this.buttonListeners.forEach(c=>c()),this.buttonListeners=[]):a&&(this.eButtonsPanel=Nr({tag:"div",cls:"ag-filter-apply-panel"})),!a){this.eButtonsPanel&&Rs(this.eButtonsPanel);return}const s=document.createDocumentFragment(),l=c=>{let u;const d=c?this.translate(`${c}Filter`):void 0;switch(c){case"apply":u=g=>this.onBtApply(!1,!1,g);break;case"clear":u=()=>this.onBtClear();break;case"reset":u=()=>this.onBtReset();break;case"cancel":u=g=>{this.onBtCancel(g)};break;default:ut(75);return}const h=Nr({tag:"button",attrs:{type:c==="apply"?"submit":"button"},ref:`${c}FilterButton`,cls:"ag-button ag-standard-button ag-filter-apply-panel-button",children:d});this.buttonListeners.push(...this.addManagedElementListeners(h,{click:u})),s.append(h)};i.forEach(c=>l(c)),this.eButtonsPanel.append(s),this.getGui().appendChild(this.eButtonsPanel)}setupOnBtApplyDebounce(){const e=gye(this.params,this.defaultDebounceMs),t=Ml(this,this.checkApplyDebounce.bind(this),e);this.onBtApplyDebounce=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){return this.appliedModel??null}setModel(e){return(e!=null?this.setModelIntoUi(e):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(e){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(e)})}handleCancelEnd(e){this.params.closeOnApply&&this.close(e)}resetUiToActiveModel(e,t){const n=()=>{this.onUiChanged(!1,"prevent"),t?.()};e!=null?this.setModelIntoUi(e).then(n):this.resetUiToDefaults().then(n)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(e="api"){const t=this.getModelFromUi();if(!this.isModelValid(t))return!1;const n=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(n,t)}isModelValid(e){return!0}onFormSubmit(e){e.preventDefault()}onBtApply(e=!1,t=!1,n){n&&n.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")&&this.params.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t,source:"columnFilter"});const{closeOnApply:r}=this.params;r&&this.applyActive&&!e&&!t&&this.close(n)}onNewRowsLoaded(){}close(e){if(!this.hidePopup)return;const t=e,n=t&&t.key;let r;(n==="Enter"||n==="Space")&&(r={keyboardEvent:t}),this.hidePopup(r),this.hidePopup=null}onUiChanged(e=!1,t){if(this.updateUiVisibility(),this.params.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){const n=this.isModelValid(this.getModelFromUi()),r=this.queryForHtmlElement('[data-ref="applyFilterButton"]');r&&nf(r,!n)}e&&!t||t==="immediately"?this.onBtApply(e):(!this.applyActive&&!t||t==="debounce")&&this.onBtApplyDebounce()}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:n}=this;if(!t||e==="toolPanel")return;e==="floatingFilter"||e==="columnFilter"?(t.restoreLastSize(),t.setResizable(n.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}refresh(e){const t=this.params;return this.params=e,this.resetButtonsPanel(e,t),!0}destroy(){const e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(e){return this.getLocaleTextFunc()(e,mtt[e])}getCellValue(e){return this.params.getValue(e)}getPositionableElement(){return this.eFilterBody}};function vtt(e,t,n){if(t==null)return null;let r=null;const{compName:i,jsComp:o,fwComp:a}=ELt(e,t);return i?r={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[i]:o==null&&a==null&&t.filter===!0&&(r=n()),r}var Vg={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},mye=class extends dt{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},n=t.autoHeight?Vg.AUTO_HEIGHT:t.print?Vg.PRINT:Vg.NORMAL;this.view.updateLayoutClasses(n,t)}},eC="Viewport",bEe="fakeVScrollComp",yEe=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],MEe=100,Xne=150,v4t=class extends dt{constructor(e){super(),this.clearRetryListenerFncs=[],this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.lastIsHorizontalScrollShowing=!1,this.scrollTimer=0,this.isVerticalPositionInvalidated=!0,this.isHorizontalPositionInvalidated=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=Ml(this,()=>this.lastScrollSource[1]=null,Xne),this.resetLastVScrollDebounced=Ml(this,()=>this.lastScrollSource[0]=null,Xne)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),this.clearRetryListenerFncs=[],window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const e=this.invalidateVerticalScroll.bind(this),t=this.invalidateHorizontalScroll.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),gridSizeChanged:e,scrollGapChanged:t}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,n=>{this.centerRowsCtrl=n.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,eC)});for(const e of yEe){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.ctrlsSvc.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),n=t?Ml(this,this.onVScroll.bind(this,eC),MEe):this.onVScroll.bind(this,eC),r=t?Ml(this,this.onVScroll.bind(this,bEe),MEe):this.onVScroll.bind(this,bEe);this.addManagedElementListeners(this.eBodyViewport,{scroll:n}),this.registerScrollPartner(e,r)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.centerRowsCtrl!=null&&(e===void 0&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...yEe,eC]){if(this.lastScrollSource[1]===t)continue;const n=this.getViewportForSource(t);g$(n,e,this.enableRtl)}}getViewportForSource(e){return e===eC?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return this.lastScrollSource[t]==null?(t===0?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:n}=t;if(this.shouldBlockScrollUpdate(1,n,!0))return;const r=f$(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(r),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;if(e===eC?t=this.eBodyViewport.scrollTop:t=this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0))return;const{animationFrameSvc:n}=this;n?.setScrollTop(t),this.nextScrollTop=t,e===eC?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,n?.active?n.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(e){const t={type:"bodyScroll",direction:e===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},Xne)}shouldBlockScrollUpdate(e,t,n=!1){return n&&!Cx()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=hK(this.eBodyViewport),{scrollHeight:n}=this.eBodyViewport;return e<0||e+t>n}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:n}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>n}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll(eC)}scrollGridIfNeeded(e=!1){const t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,e&&this.invalidateVerticalScroll(),this.redrawRowsAfterScroll()),t}setHorizontalScrollPosition(e,t=!1){const r=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl?e=e>0?0:r:e=Math.min(Math.max(e,0),r)),g$(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.invalidateVerticalScroll(),this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){const{lastOffsetHeight:n,lastScrollTop:r}=this;return{top:r,bottom:r+n}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const{rowModel:n}=this.beans,r=n.getRowCount();let i=-1;for(let o=0;o<r;o++){const a=n.getRow(o);if(typeof e=="function"){if(a&&e(a)){i=o;break}}else if(e===a||e===a.data){i=o;break}}i>=0&&this.ensureIndexVisible(i,t)}ensureIndexVisible(e,t,n=0){if(Uu(this.gos,"print"))return;const{rowModel:r}=this.beans,i=r.getRowCount();if(typeof e!="number"||e<0||e>=i){ut(88,{index:e});return}this.clearRetryListeners();const{frameworkOverrides:o,pageBounds:a,rowContainerHeight:s,rowRenderer:l}=this.beans;o.wrapIncoming(()=>{const c=this.ctrlsSvc.getGridBodyCtrl(),u=r.getRow(e);let d,p,h=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:g,stickyBottomHeight:m}=c,v=u.rowTop,y=u.rowHeight,M=a.getPixelOffset(),C=u.rowTop-M,x=C+u.rowHeight,w=this.getVScrollPosition(),S=s.divStretchOffset,A=w.top+S,z=w.bottom+S,O=z-A,T=s.getScrollPositionForPixel(C),I=s.getScrollPositionForPixel(x-O),P=Math.min((T+I)/2,C),N=A+g>C,F=z-m<x;let L=null;t==="top"?L=T-g:t==="bottom"?L=I+m:t==="middle"?L=P:N?L=T-g:F&&(L=I+m),L!==null&&(this.setVerticalScrollPosition(L),l.redraw({afterScroll:!0})),d=v!==u.rowTop||y!==u.rowHeight,p=g!==c.stickyTopHeight||m!==c.stickyBottomHeight,h++}while((d||p)&&h<10);if(this.animationFrameSvc?.flushAllFrames(),n<10&&(u?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const g=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const m=this.getVScrollPosition().top;g!==m&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),!(e>=r.getRowCount())&&this.ensureIndexVisible(e,t,n+1)}})}})}clearRetryListeners(){this.clearRetryListenerFncs.forEach(e=>e()),this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:n,frameworkOverrides:r}=this.beans,i=n.getCol(e);if(!i||i.isPinned()||!this.visibleCols.isColDisplayed(i))return;const o=this.getPositionedHorizontalScroll(i,t);r.wrapIncoming(()=>{o!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(o),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:n,columnAfterEnd:r}=this.isColumnOutsideViewport(e),i=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),o=this.centerRowsCtrl.getCenterWidth(),a=this.enableRtl;let s=(a?n:r)||i,l=a?r:n;t!=="auto"&&(s=t==="start",l=t==="end");const c=t==="middle";if(s||l||c){const{colLeft:u,colMiddle:d,colRight:p}=this.getColumnBounds(e);return c?d-o/2:s?a?p:u:a?u-o:p-o}return null}isColumnOutsideViewport(e){const{start:t,end:n}=this.getViewportBounds(),{colLeft:r,colRight:i}=this.getColumnBounds(e),o=this.enableRtl,a=o?t>i:n<i,s=o?n<r:t>r;return{columnBeforeStart:a,columnAfterEnd:s}}getColumnBounds(e){const t=this.enableRtl,n=this.visibleCols.bodyWidth,r=e.getActualWidth(),i=e.getLeft(),o=t?-1:1,a=t?n-i:i,s=a+r*o,l=a+r/2*o;return{colLeft:a,colMiddle:l,colRight:s}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),n=t,r=e+t;return{start:n,end:r,width:e}}},vye=class extends dt{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=Uu(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:n}=this.beans,r=t.bodyWidth,i=t.getColsLeftWidth(),o=t.getDisplayedColumnsRightWidth();let a;e?a=r+i+o:(a=r,this.addSpacer&&(this.gos.get("enableRtl")?i:o)===0&&n.verticalScrollShowing&&(a+=n.getScrollbarWidth())),this.callback(a)}},b4t=class extends dt{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:n}=this,r=()=>{sh(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(r),n.registerBodyViewportResizeListener(r)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const n=this.centerContainerCtrl.getCenterWidth();n!==this.centerWidth&&(this.centerWidth=n,t?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=this.gridBodyCtrl.eBodyViewport,t=hK(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(e,t)}};function bye(e,t,n,r,i,o){if(n==null&&t==null)return;const a={},s={},l=(c,u)=>{c.split(" ").forEach(d=>{d.trim()!=""&&u(d)})};if(n){const c=Object.keys(n);for(let u=0;u<c.length;u++){const d=c[u],p=n[d];let h;typeof p=="string"?h=e?e.evaluate(p,r):!0:typeof p=="function"&&(h=p(r)),l(d,g=>{h?a[g]=!0:s[g]=!0})}}t&&o&&Object.keys(t).forEach(c=>l(c,u=>{a[u]||(s[u]=!0)})),o&&Object.keys(s).forEach(o),Object.keys(a).forEach(i)}function CEe(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var y4t=class extends dt{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const n=this.gos,r=a=>{typeof a=="string"?e.push(a):Array.isArray(a)&&a.forEach(s=>e.push(s))},i=n.get("rowClass");i&&r(i);const o=n.getCallback("getRowClass");if(o){const a={data:t.data,node:t,rowIndex:t.rowIndex},s=o(a);r(s)}}preProcessRowClassRules(e,t){this.processRowClassRules(t,n=>{e.push(n)},()=>{})}processRowClassRules(e,t,n){const{gos:r,expressionSvc:i}=this.beans,o=Vn(r,{data:e.data,node:e,rowIndex:e.rowIndex});bye(i,void 0,r.get("rowClassRules"),o,t,n)}processStylesFromGridOptions(e){const t=this.gos,n=t.get("rowStyle"),r=t.getCallback("getRowStyle");let i;if(r){const o={data:e.data,node:e,rowIndex:e.rowIndex};i=r(o)}if(i||n)return Object.assign({},n,i)}},M4t=0,T$="renderedRow",E$=class extends dt{constructor(e,t,n,r,i){super(),this.rowNode=e,this.useAnimationFrameForCreate=r,this.printLayout=i,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+M4t++,this.rowId=sm(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=CEe(this.rowNode),this.setRowType(),this.setAnimateFlags(n),this.rowStyles=this.processStylesFromGridOptions(),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=sm(e)}updateGui(e,t){e==="left"?this.leftGui=t:e==="right"?this.rightGui=t:e==="fullWidth"?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,n,r){const{context:i,focusSvc:o}=this.beans;r=h6(this,i,r);const a={rowComp:e,element:t,containerType:n,compBean:r};this.allRowGuis.push(a),this.updateGui(n,a),this.initialiseRowComp(a);const s=this.rowNode,l=this.rowType==="FullWidthLoading"||s.stub,c=!s.data&&this.beans.rowModel.getType()==="infinite";!l&&!c&&!s.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent();const u=this.fullWidthGui?.element;u&&!this.editing&&o.isRowFocused(s.rowIndex,s.rowPinned)&&o.shouldTakeFocus()&&setTimeout(()=>u.focus({preventScroll:!0}),0)}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";this.allRowGuis.forEach(n=>n.element.style.display=t)}initialiseRowComp(e){const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),Kp(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const n=e.rowComp;this.getInitialRowClasses(e.containerType).forEach(i=>n.toggleCss(i,!0)),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&d1(e.element,this.rowNode.expanded==!0),this.setRowCompRowId(n),this.setRowCompRowBusinessKey(n),mz(t,e.element,T$,this),e.compBean.addDestroyFunc(()=>mz(t,e.element,T$,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.toggleCss("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){this.businessKey!=null&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=sm(this.rowNode.id);this.rowId=t,t!=null&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(v$(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(v$(()=>{e.rowComp.toggleCss("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){const t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const n=this.createBean(t,this.beans.context);this.rowDragComps.push(n),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(r=>r!==n),this.destroyBean(n,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),n=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(n)}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(e=>e?.rowComp?.getFullWidthCellRenderer()):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;const t={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(t)}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:n,beans:{visibleCols:r}}=this,i=!!e||!r.isPinningLeft(),o=!!t,a=!!n||!r.isPinningRight();return i&&o&&a}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this.rowNode}):!1}setRowType(){const e=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),t=this.isNodeFullWidthCell(),n=this.gos.get("masterDetail")&&this.rowNode.detail,r=this.beans.colModel.isPivotMode(),i=J2e(this.gos,this.rowNode,r);e?this.rowType="FullWidthLoading":n?this.rowType="FullWidthDetail":t?this.rowType="FullWidth":i?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:n}=this.beans;if(!n?.active||e||this.printLayout){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(n.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}getNewCellCtrl(e){if(!this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode))return new IN(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,n=null){const r={list:[],map:{}},i=(c,u,d)=>{d!=null?r.list.splice(d,0,u):r.list.push(u),r.map[c]=u},o=[];for(const c of t){const u=c.getInstanceId();let d=e.map[u];d&&!this.isCorrectCtrlForSpan(d)&&(d.destroy(),d=void 0),d||(d=this.getNewCellCtrl(c)),d&&i(u,d)}for(const c of e.list){const u=c.column.getInstanceId();if(r.map[u]!=null)continue;!this.isCellEligibleToBeRemoved(c,n)?o.push([u,c]):c.destroy()}if(o.length)for(const[c,u]of o){const d=r.list.findIndex(h=>h.column.getLeft()>u.column.getLeft()),p=d===-1?void 0:Math.max(d-1,0);i(c,u,p)}const{focusSvc:a,visibleCols:s}=this.beans,l=a.getFocusedCell();if(l&&l.column.getPinned()==n){const c=l.column.getInstanceId();if(!r.map[c]&&s.allCols.includes(l.column)){const d=this.createFocusedCellCtrl();if(d){const p=r.list.findIndex(g=>g.column.getLeft()>d.column.getLeft()),h=p===-1?void 0:Math.max(p-1,0);i(c,d,h)}}}return r}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,n=e.getFocusedCell();if(!n)return;const r=t?.getCellSpan(n.column,this.rowNode);if(r){if(r.firstNode!==this.rowNode||!r.doesSpanContain(n))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(n.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){this.allRowGuis.forEach(t=>{const n=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(n,e)})}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const n=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);const r=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");const i=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,"right")}}isCellEligibleToBeRemoved(e,t){const{column:i}=e;if(i.getPinned()!=t||!this.isCorrectCtrlForSpan(e))return!0;const{editing:o}=e,{visibleCols:a}=this.beans,s=e.isCellFocused();return o||s?!(a.allCols.indexOf(i)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||Uu(this.gos,"print")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],t)}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;const t=Ut(this.rowNode.oldRowTop),{visibleCols:n}=this.beans,r=n.isPinningLeft(),i=n.isPinningRight();if(t){const{slideInAnimation:o}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){o.fullWidth=!0;return}o.center=!0,o.left=r,o.right=i}else{const{fadeInAnimation:o}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){o.fullWidth=!0;return}o.center=!0,o.left=r,o.right=i}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const e=(a,s)=>a?a.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(a.element,s).params):!0,t=e(this.fullWidthGui,null),n=e(this.centerGui,null),r=e(this.leftGui,"left"),i=e(this.rightGui,"right");return t&&n&&r&&i}addListeners(){this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...this.beans.expansionSvc?.getRowExpandedListeners(this)??{}}),this.rowNode.detail&&this.addManagedListeners(this.rowNode.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(this.rowNode,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}),this.addManagedListeners(this.beans.eventSvc,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),this.beans.rowSpanSvc&&this.addManagedListeners(this.beans.rowSpanSvc,{spannedCellsUpdated:({pinned:e})=>{e&&!this.rowNode.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(this.gos.get("rowDragEntireRow")){this.allRowGuis.forEach(t=>{this.addRowDraggerToRow(t)});return}this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onRowIndexChanged())},cellChanged:e=>{this.getAllCellCtrls().forEach(t=>t.onCellChanged(e))}})}onRowPinned(){for(const e of this.allRowGuis)e.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(n=>n.refreshCell({suppressFlash:!e.update,newData:!e.update})),this.allRowGuis.forEach(n=>{this.setRowCompRowId(n.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(n.rowComp)}),this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.rowNode.highlighted;this.allRowGuis.forEach(t=>{const n=e==="Above",r=e==="Below";t.rowComp.toggleCss("ag-row-highlight-above",n),t.rowComp.toggleCss("ag-row-highlight-below",r)})}postProcessRowDragging(){const e=this.rowNode.dragging;this.allRowGuis.forEach(t=>t.rowComp.toggleCss("ag-row-dragging",e))}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.rowAutoHeight?.requestCheckAutoHeight()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:zc(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:n,column:r}=t;if(!(n.element===e.target))return;const a=this.rowNode,{focusSvc:s,navigation:l}=this.beans,c=s.getFocusedCell(),u={rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:c?.column??r};l?.navigateToNextCell(e,e.key,u,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||rh(e))return;const t=this.allRowGuis.find(s=>s.element.contains(e.target)),n=t?t.element:null,r=n===e.target,i=Gi(this.beans);let o=!1;n&&i&&(o=n.contains(i)&&i.classList.contains("ag-cell"));let a=null;!r&&!o&&(a=Md(this.beans,n,!1,e.shiftKey)),(this.isFullWidth()&&r||!a)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find(t=>x0(t.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:-1;this.allRowGuis.forEach(n=>{Af(n.element,"tabindex",t)})}onFullWidthRowFocused(e){const t=this.rowNode,n=e?this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned:!1;let r;if(this.fullWidthGui)r=this.fullWidthGui.element;else{const o=this.beans.colModel.getCol(e?.column)?.pinned;o?r=o==="right"?this.rightGui?.element:this.leftGui?.element:r=this.centerGui?.element}r&&(r.classList.toggle("ag-full-width-focus",n),n&&e?.forceBrowserFocus&&r.focus({preventScroll:!0}))}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const n={list:[],map:{}};return e.list.forEach(r=>{r!==t&&(n.list.push(r),n.map[r.column.getInstanceId()]=r)}),n}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:n}=this;return Vn(this.gos,{type:e,node:n,data:n.data,rowIndex:n.rowIndex,rowPinned:n.rowPinned,event:t})}createRowEventWithSource(e,t){const n=this.createRowEvent(e,t);return n.source=this,n}onRowDblClick(e){rh(e)||this.beans.eventSvc.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",e))}findFullWidthInfoForEvent(e){if(!e)return;const t=this.findFullWidthRowGui(e.target),n=this.getColumnForFullWidth(t);if(!(!t||!n))return{rowGui:t,column:n}}findFullWidthRowGui(e){return this.allRowGuis.find(t=>t.element.contains(e))}getColumnForFullWidth(e){const{visibleCols:t}=this.beans;switch(e?.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}onRowMouseDown(e){if(this.lastMouseDownOnDragger=DO(e.target,"ag-row-drag",3),!this.isFullWidth())return;const t=this.rowNode,{rangeSvc:n,focusSvc:r}=this.beans;n?.removeAllCellRanges();const i=this.findFullWidthInfoForEvent(e);if(!i)return;const{rowGui:o,column:a}=i,s=o.element,l=e.target;let c=e.defaultPrevented||yw();s&&s.contains(l)&&G2e(l)&&(c=!1),r.setFocusedCell({rowIndex:t.rowIndex,column:a,rowPinned:t.rowPinned,forceBrowserFocus:c})}onRowClick(e){if(rh(e)||this.lastMouseDownOnDragger)return;const{eventSvc:n,selectionSvc:r}=this.beans;n.dispatchEvent(this.createRowEventWithSource("rowClicked",e)),r?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){this.rowType==="FullWidthDetail"&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:n,rowNode:r}=this,i=Vn(n,{fullWidth:!0,data:r.data,node:r,value:r.key,valueFormatted:r.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(a,s,l,c)=>this.addFullWidthRowDragging(a,s,l,c),setTooltip:(a,s)=>{n.assertModuleRegistered("Tooltip",3),this.refreshRowTooltip(a,s)}}),o=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return wLt(o,i);case"FullWidthGroup":{const{value:a,valueFormatted:s}=this.beans.valueSvc.getValueForDisplay(void 0,this.rowNode,!0);return i.value=a,i.valueFormatted=s,xLt(o,i)}case"FullWidthLoading":return CLt(o,i);default:return MLt(o,i)}}refreshRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.refreshRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,n="",r){const{rowDragSvc:i,context:o}=this.beans;if(!i||!this.isFullWidth())return;const a=i.createRowDragComp(()=>n,this.rowNode,void 0,e,t,r);this.createBean(a,o),this.addDestroyFunc(()=>{this.destroyBean(a,o)})}onUiLevelChanged(){const e=CEe(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(r=>{r.rowComp.toggleCss(t,!0),r.rowComp.toggleCss(n,!1)})}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(n=>n.rowComp.toggleCss("ag-row-first",e))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach(n=>n.rowComp.toggleCss("ag-row-last",t)))}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const e=[];this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),e.length&&e.forEach(t=>{this.allRowGuis.forEach(n=>n.rowComp.toggleCss(t,!0))})}postProcessRowClassRules(){this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,e=>{this.allRowGuis.forEach(t=>t.rowComp.toggleCss(e,!0))},e=>{this.allRowGuis.forEach(t=>t.rowComp.toggleCss(e,!1))})}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,n=>n.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return e==="left"||e==="right"?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),n=this.isFullWidth(),{rowNode:r,beans:i}=this,o=[];o.push("ag-row"),o.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&o.push("ag-opacity-zero"),o.push(r.rowIndex%2===0?"ag-row-even":"ag-row-odd"),r.isRowPinned()&&(o.push("ag-row-pinned"),i.pinnedRowModel?.isManual()&&o.push("ag-row-pinned-manual")),!r.isRowPinned()&&r.pinnedSibling&&o.push("ag-row-pinned-source"),r.isSelected()&&o.push("ag-row-selected"),r.footer&&o.push("ag-row-footer"),o.push("ag-row-level-"+this.rowLevel),r.stub&&o.push("ag-row-loading"),n&&o.push("ag-full-width-row"),i.expansionSvc?.addExpandedCss(o,r),r.dragging&&o.push("ag-row-dragging");const{rowStyleSvc:a}=i;return a&&(a.processClassesFromGridOptions(o,r),a.preProcessRowClassRules(o,r)),o.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&o.push("ag-row-first"),this.isLastRowOnPage()&&o.push("ag-row-last"),n&&(t==="left"&&o.push("ag-cell-last-left-pinned"),t==="right"&&o.push("ag-cell-first-right-pinned")),o}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(e){this.beans.selectionSvc?.onRowCtrlSelected(this,t=>{(t===this.centerGui||t===this.fullWidthGui)&&this.announceDescription()},e)}announceDescription(){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:n}=e,{rowNode:r,beans:i,gos:o}=this;n.addManagedListeners(t,{mouseenter:()=>r.dispatchRowEvent("mouseEnter"),mouseleave:()=>r.dispatchRowEvent("mouseLeave")}),n.addManagedListeners(r,{mouseEnter:()=>{!i.dragSvc?.dragging&&!o.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),r.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map(n=>n.element);for(const n of t)n.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),r)}forEachGui(e,t){e?t(e):this.allRowGuis.forEach(t)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(this.rowNode.rowHeight==null)return;const t=this.rowNode.rowHeight,n=this.beans.environment.getDefaultRowHeight(),i=Y2e(this.gos)?vd(this.beans,this.rowNode).height:void 0,o=i?`${Math.min(n,i)-2}px`:void 0;this.forEachGui(e,a=>{a.element.style.height=`${t}px`,o&&a.element.style.setProperty("--ag-line-height",o)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&nI(this.gos)&&!t.sticky)if(t.rowTop!=null){const i=this.roundRowTopToBounds(t.rowTop);this.setRowTop(i)}else this.allRowGuis.forEach(i=>i.rowComp.toggleCss("ag-opacity-zero",!0));this.fullWidthGui?.element.contains(Gi(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const n=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(n),this.beans.eventSvc.dispatchEvent(n),super.destroy()}destroySecondPass(){this.allRowGuis.length=0,this.beans.editSvc?.stopRowEditing(this);const e=t=>(t.list.forEach(n=>n.destroy()),{list:[],map:{}});this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,t=>{t.rowComp.toggleCss("ag-row-focus",this.rowFocused),t.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const{focusSvc:e,editSvc:t}=this.beans,n=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);n!==this.rowFocused&&(this.rowFocused=n,this.setFocusedClasses()),!n&&this.editing&&t?.stopRowEditing(this,!1)}onPaginationChanged(){const e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;const n=this.beans.pageBounds.getPixelOffset();return e+n*(t?1:-1)}setRowTop(e){if(!this.printLayout&&Ut(e)){const t=this.applyPaginationOffset(e),i=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(i)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let n;if(t.sticky)n=t.stickyRowTop;else{const r=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,i=this.applyPaginationOffset(r);n=t.isRowPinned()?i:this.beans.rowContainerHeight.getRealPixelPosition(i)}return n+"px"}setRowTopStyle(e){this.allRowGuis.forEach(t=>this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`))}getCellCtrl(e,t=!1){let n=null;return this.getAllCellCtrls().forEach(r=>{r.column==e&&(n=r)}),n!=null||t||this.getAllCellCtrls().forEach(r=>{r.getColSpanningList().indexOf(e)>=0&&(n=r)}),n}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(t===null)return;const n=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),r=this.rowNode.rowIndex%2===0,i=n+this.rowNode.rowIndex+1;this.forEachGui(e,o=>{o.rowComp.setRowIndex(t),o.rowComp.toggleCss("ag-row-even",r),o.rowComp.toggleCss("ag-row-odd",!r),pK(o.element,i)})}};function yye(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}function che(e,t,n,r,i){const o=r?r.getColDef().suppressKeyboardEvent:void 0;if(!o)return!1;const a=Vn(e,{event:t,editing:i,column:r,node:n,data:n.data,colDef:r.getColDef()});return!!(o&&o(a))}function uhe(e){const{pinnedRowModel:t,rowModel:n}=e,[r,i]=[t?.isEmpty("top")??!0,t?.isEmpty("bottom")??!0],o=r?null:"top";let a,s;i?(a=null,s=n.getRowCount()-1):(a="bottom",s=t?.getPinnedBottomRowCount()??-1);const{visibleCols:l,rangeSvc:c}=e,u=l.allCols;!c||!u?.length||c.setCellRange({rowStartIndex:0,rowStartPinned:o,rowEndIndex:s,rowEndPinned:a})}var C4t=65,x4t=67,w4t=86,S4t=68,A4t=90,O4t=89;function z4t(e){const{keyCode:t}=e;let n;switch(t){case C4t:n=Qe.A;break;case x4t:n=Qe.C;break;case w4t:n=Qe.V;break;case S4t:n=Qe.D;break;case A4t:n=Qe.Z;break;case O4t:n=Qe.Y;break;default:n=e.code}return n}var T4t=class extends dt{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this)}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",xet("touchstart")?"touchstart":"mousedown"].forEach(n=>{const r=this.processMouseEvent.bind(this,n);this.addManagedElementListeners(this.element,{[n]:r})})}processMouseEvent(e,t){if(!dW(this.gos,t)||rh(t))return;const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);e==="contextmenu"?(n?.column&&n.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,r,n)):(n&&n.onMouseEvent(e,t),r&&r.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:dye(t,e),rowCtrl:wet(t,e,T$)}}processKeyboardEvent(e,t){const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))}processCellKeyboardEvent(e,t,n){const{rowNode:r,column:i,editing:o}=e;!che(this.gos,n,r,i,o)&&t==="keydown"&&(!o&&this.beans.navigation?.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.editing),yye(n)&&e.processCharacter(n)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(n,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,n){const{rowNode:r}=e,{focusSvc:i,navigation:o}=this.beans,a=i.getFocusedCell(),s=a&&a.column;if(!che(this.gos,n,r,s,!1)){const c=n.key;if(t==="keydown")switch(c){case Qe.PAGE_HOME:case Qe.PAGE_END:case Qe.PAGE_UP:case Qe.PAGE_DOWN:o?.handlePageScrollingKey(n,!0);break;case Qe.LEFT:case Qe.RIGHT:if(!this.gos.get("embedFullWidthRows"))break;case Qe.UP:case Qe.DOWN:e.onKeyboardNavigate(n);break;case Qe.TAB:e.onTabKeyDown(n);break}}t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",n))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!dW(this.gos,e))return;const n=z4t(e),{clipboardSvc:r,undoRedo:i}=this.beans;if(n===Qe.A)return this.onCtrlAndA(e);if(n===Qe.C)return this.onCtrlAndC(r,e);if(n===Qe.D)return this.onCtrlAndD(r,e);if(n===Qe.V)return this.onCtrlAndV(r,e);if(n===Qe.X)return this.onCtrlAndX(r,e);if(n===Qe.Y)return this.onCtrlAndY(i);if(n===Qe.Z)return this.onCtrlAndZ(i,e)}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:n,selectionSvc:r},gos:i}=this;n&&r1(i)&&t.isRowsToRender()?uhe(this.beans):r&&r?.selectAllRowNodes({source:"keyboardSelectAll",selectAll:vet(i)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);n?.editing||r?.editing||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);n?.editing||r?.editing||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);n?.editing||r?.editing||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){!this.gos.get("undoRedoCellEditing")||!e||(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e?.redo("ui")}},btt=class extends dt{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,n=t!=null?`${t}px`:"";this.eContainer.style.height=n,this.eViewport&&(this.eViewport.style.height=n)}},qH=e=>e.topRowCtrls,BH=e=>e.getStickyTopRowCtrls(),jH=e=>e.getStickyBottomRowCtrls(),HH=e=>e.bottomRowCtrls,VH=e=>e.allRowCtrls,Yne=e=>e.getCtrls("top"),Kne=e=>e.getCtrls("center"),Qne=e=>e.getCtrls("bottom"),E4t={center:{type:"center",name:"center-cols",getRowCtrls:VH,getSpannedRowCtrls:Kne},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:VH,getSpannedRowCtrls:Kne},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:VH,getSpannedRowCtrls:Kne},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:VH},topCenter:{type:"center",name:"floating-top",getRowCtrls:qH,getSpannedRowCtrls:Yne},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:qH,getSpannedRowCtrls:Yne},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:qH,getSpannedRowCtrls:Yne},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:qH},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:BH},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:BH},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:BH},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:BH},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:jH},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:jH},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:jH},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:jH},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:HH,getSpannedRowCtrls:Qne},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:HH,getSpannedRowCtrls:Qne},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:HH,getSpannedRowCtrls:Qne},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:HH}};function Mye(e){return`ag-${pD(e).name}-viewport`}function PN(e){const t=pD(e);return t.container??`ag-${t.name}-container`}function ytt(e){return`ag-${pD(e).name}-spanned-cells-container`}function pD(e){return E4t[e]}var R4t=["topCenter","topLeft","topRight"],I4t=["bottomCenter","bottomLeft","bottomRight"],P4t=["center","left","right"],D4t=["center","left","right","fullWidth"],k4t=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],L4t=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],_4t=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],Mtt=["stickyTopCenter","stickyTopLeft","stickyTopRight"],Ctt=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],N4t=[...Mtt,"stickyTopFullWidth",...Ctt,"stickyBottomFullWidth"],F4t=[...R4t,...I4t,...P4t,...Mtt,...Ctt],xtt=class extends dt{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=pD(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new b4t(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,n,r){this.comp=e,this.eContainer=t,this.eSpannedContainer=n,this.eViewport=r,this.createManagedBean(new T4t(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:i,rangeSvc:o}=this.beans,a=()=>this.onPinnedWidthChanged();this.forContainers(L4t,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(i?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:a})}),this.forContainers(_4t,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(i?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:a})}),this.forContainers(D4t,()=>this.createManagedBean(new btt(this.eContainer,this.name==="center"?r:void 0))),o&&this.forContainers(F4t,()=>this.createManagedBean(o.createDragListenerFeature(this.eContainer))),this.forContainers(k4t,()=>this.createManagedBean(new vye(s=>this.comp.setContainerWidth(`${s}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,n=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:n,displayedColumnsWidthChanged:n,displayedRowsChanged:r=>this.onDisplayedRowsChanged(r.afterScroll)}),n(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const r=this.options.getSpannedRowCtrls(e);r&&this.comp.setSpannedRowCtrls(r,!1)}})}listenOnDomOrder(){if(N4t.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const n=this.gos.get("ensureDomOrder"),r=Uu(this.gos,"print");this.comp.setDomOrder(n||r)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=n=>{e.dragging&&n.cancelable&&n.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),n=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,n,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return KI(this.eViewport)}getCenterViewportScrollLeft(){return f$(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=Hf(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return ZJe(this.eViewport)}getViewportScrollLeft(){return f$(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||ekt(this.eViewport)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){g$(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||t.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}const n=Uu(this.gos,"print"),i=this.gos.get("embedFullWidthRows")||n,o=t.filter(a=>{const s=a.isFullWidth();return this.options.fullWidth?!i&&s:i||!s});this.comp.setRowCtrls({rowCtrls:o,useFlushSync:e})}},wtt="ag-force-vertical-scroll",W4t="ag-selectable",q4t="ag-column-moving",Stt=class extends dt{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,n,r,i,o,a){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=r,this.eBottom=i,this.eStickyTop=o,this.eStickyBottom=a,this.eCenterColsViewport=n.querySelector(`.${Mye("center")}`),this.eFullWidthContainer=n.querySelector(`.${PN("fullWidth")}`),this.eStickyTopFullWidthContainer=o.querySelector(`.${PN("stickyTopFullWidth")}`),this.eStickyBottomFullWidthContainer=a.querySelector(`.${PN("stickyBottomFullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",s=>this.setCellTextSelection(s.currentValue)),this.createManagedBean(new mye(this.comp)),this.scrollFeature=this.createManagedBean(new v4t(n)),this.beans.rowDragSvc?.setupRowDrag(n,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,i,o,a]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(r),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),n=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t,rowResizeStarted:n,rowResizeEnded:n}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){const t=e.type==="rowResizeStarted";this.eBodyViewport.classList.toggle("ag-prevent-animation",t)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const n=t&&e.getScrollbarWidth()||0,r=XJe()?16:0,i=`calc(100% + ${n+r}px)`;sh(this.beans,()=>this.comp.setBodyViewportWidth(i)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t}=this;let n=this.gos.get("treeData");if(!n){const r=t.isPivotMode();n=(e?e.columns.length:0)>=(r?2:1)}this.comp.setGridRootRole(n?"treegrid":"grid")}addFocusListeners(e){e.forEach(t=>{this.addManagedElementListeners(t,{focusin:n=>{const{target:r}=n,i=DO(r,"ag-root",t);t.classList.toggle("ag-has-focus",!i)},focusout:n=>{const{target:r,relatedTarget:i}=n,o=t.contains(i),a=DO(i,"ag-root",t);DO(r,"ag-root",t)||(!o||a)&&t.classList.remove("ag-has-focus")}})})}setColumnMovingCss(e){this.comp.setColumnMovingCss(q4t,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(W4t,e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){const e=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0),{rowModel:t}=this.beans,n=t.isLastRowIndexKnown()?t.getRowCount():-1,r=n===-1?-1:e+n;this.comp.setRowCount(r)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?wtt:null,n=Uu(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||n&&tkt(this.eBodyViewport)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let n=t.sizesMeasured;const r=()=>{const i=n&&nI(this.gos)&&!e.stretching,o=i?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(o,i)};r(),this.addManagedEventListeners({heightScaleChanged:r}),this.addManagedPropertyListener("animateRows",r),this.addManagedEventListeners({gridStylesChanged:()=>{!n&&t.sizesMeasured&&(n=!0,r())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:n,eTop:r,eBottom:i,beans:{popupSvc:o,touchSvc:a}}=this,s=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:s}),a?.mockBodyContextMenu(this,s),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,o)});const l=this.onStickyWheel.bind(this);for(const u of[t,n,r,i])this.addManagedElementListeners(u,{wheel:l});const c=this.onHorizontalWheel.bind(this);for(const u of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(u).eContainer,{wheel:c});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:n,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(n))&&dW(this.gos,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e;e.preventDefault(),this.scrollVertically(t)}onHorizontalWheel(e){const{deltaX:t,deltaY:n,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(n))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:n}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||n})}onBodyViewportContextMenu(e,t,n){if(!e&&!n)return;this.gos.get("preventDefaultOnContextMenu")&&(e||n).preventDefault();const{target:r}=e||t;(r===this.eBodyViewport||r===this.ctrlsSvc.get("center").eViewport)&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:n,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e,beans:{environment:t}}=this,n=e?.getPinnedTopTotalHeight(),r=e?.getPinnedBottomTotalHeight(),i=t.getPinnedRowBorderWidth(),o=t.getRowBorderWidth(),a=i-o,s=n?a+n:0,l=r?a+r:0;this.comp.setTopHeight(s),this.comp.setBottomHeight(l),this.comp.setTopInvisible(s<=0),this.comp.setBottomInvisible(l<=0),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(!e)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{const t=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}setStickyTopOffsetTop(){const t=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(this.filterManager?.getHeaderHeight()??0),n=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let r=0;t>0&&(r+=t),n>0&&(r+=n),r>0&&(r+=1),this.comp.setStickyTopTop(`${r}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:n}=this,r=e?.getPinnedBottomTotalHeight()??0,o=t.horizontalScrollShowing&&t.getScrollbarWidth()||0,a=r+o;n.setStickyBottomBottom(`${a}px`)}},Att=class extends Gt{constructor(e,t){super(),this.direction=t,this.eViewport=at,this.eContainer=at,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",$Je()||Cx())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=XJe(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),n=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:n,touchend:n})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),sh(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.toggleCss("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.toggleCss("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(e){const t=this.eViewport;net(()=>x0(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},B4t={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eLeftSpacer",cls:"ag-horizontal-left-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eRightSpacer",cls:"ag-horizontal-right-spacer"}]},Ott=class extends Att{constructor(){super(B4t,"horizontal"),this.eLeftSpacer=at,this.eRightSpacer=at,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new vye(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const n=!this.enableRtl&&e,r=this.scrollVisibleSvc.getScrollbarWidth();n&&(t+=r),am(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);let i=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(i+=r),am(this.eLeftSpacer,i),this.eLeftSpacer.classList.toggle("ag-scroller-corner",i<=r)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,n=this.gos.get("suppressHorizontalScroll"),r=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,o=n?0:r===0&&t?16:r,a=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),EN(this.getGui(),o),EN(this.eViewport,o),EN(this.eContainer,o),o||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(a,100):a()}getScrollPosition(){return f$(this.eViewport,this.enableRtl)}setScrollPosition(e){x0(this.eViewport)||this.attemptSettingScrollPosition(e),g$(this.eViewport,e,this.enableRtl)}},j4t={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:Ott},H4t={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]},ztt=class extends Att{constructor(){super(H4t,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new btt(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,n=this.invisibleScrollbar,r=t&&e.getScrollbarWidth()||0,i=r===0&&n?16:r;this.toggleCss("ag-scrollbar-invisible",n),am(this.getGui(),i),am(this.eViewport,i),am(this.eContainer,i),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const n=e.getGridBodyCtrl().eBodyViewport,r=this.getScrollPosition(),i=n.scrollTop;r!=i&&this.setScrollPosition(i,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!x0(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},V4t={selector:"AG-FAKE-VERTICAL-SCROLL",component:ztt};function Ttt(e){return e.cols?e.cols.treeDepth+1:-1}function Qv(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function Cye(e){const t=[],n=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const r of n){if(!r)continue;const i=r.getGroupRowCount()||0;for(let o=0;o<i;o++){const a=r.getGroupRowCtrlAtIndex(o),s=t[o];if(a){const l=G4t(e,a);(s==null||l>s)&&(t[o]=l)}}}return t}function G4t(e,t){let r=e.colModel.isPivotMode()?U4t(e):Ett(e);const i=t.getHeaderCellCtrls();for(const o of i){const{column:a}=o,s=a.getAutoHeaderHeight();s!=null&&s>r&&a.isAutoHeaderHeight()&&(r=s)}return r}function xye(e){let n=e.colModel.isPivotMode()?$4t(e):m6(e);return e.colModel.forAllCols(r=>{const i=r.getAutoHeaderHeight();i!=null&&i>n&&r.isAutoHeaderHeight()&&(n=i)}),n}function m6(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function wye(e){return e.gos.get("floatingFiltersHeight")??m6(e)}function Ett(e){return e.gos.get("groupHeaderHeight")??m6(e)}function $4t(e){return e.gos.get("pivotHeaderHeight")??m6(e)}function U4t(e){return e.gos.get("pivotGroupHeaderHeight")??Ett(e)}var Rtt=class extends dt{setComp(e,t,n){this.comp=e,this.eGui=t;const{beans:r}=this,{headerNavigation:i,touchSvc:o,ctrlsSvc:a}=r;i&&this.createManagedBean(new Mw(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,r),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,r)}),this.onPivotModeChanged(r),this.setupHeaderHeight();const s=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:s}),o?.mockHeaderContextMenu(this,s),a.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({displayedColumnsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>sh(this.beans,()=>e()),gridStylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const n=Cye(e).reduce((o,a)=>o+a,0),r=xye(e);if(e.filterManager?.hasFloatingFilters()&&(t+=wye(e)),t+=n,t+=r,this.headerHeight===t)return;this.headerHeight=t;const i=`${t+1}px`;this.comp.setHeightAndMinHeight(i),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const n=e.visibleCols.allCols.some(r=>r.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",n)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),n=e.shiftKey,r=n!==t?"LEFT":"RIGHT",{beans:i}=this,{headerNavigation:o,focusSvc:a}=i;(o.navigateHorizontally(r,!0,e)||!n&&a.focusOverlay(!1)||Tb(i,n,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:n}=this.beans;switch(e.key){case Qe.LEFT:t="LEFT";case Qe.RIGHT:{Ut(t)||(t="RIGHT"),n.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case Qe.UP:t="UP";case Qe.DOWN:{Ut(t)||(t="DOWN"),n.navigateVertically(t,null,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:n,beans:r}=this;!t&&n.contains(Gi(r))||n.contains(t)||(r.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,n){const{menuSvc:r,ctrlsSvc:i}=this.beans;if(!e&&!n||!r?.isHeaderContextMenuEnabled())return;const{target:o}=e??t;(o===this.eGui||o===i.getHeaderRowContainerCtrl()?.eViewport)&&r.showHeaderContextMenu(void 0,e,n)}},Sye=class extends Gt{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},X4t={tag:"div",cls:"ag-header-cell",role:"columnheader",children:[{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"},{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"}]},Y4t=class extends Sye{constructor(t){super(X4t,t),this.eResize=at,this.eHeaderCompWrapper=at,this.headerCompVersion=0}postConstruct(){const t=this.getGui();((o,a)=>{a!=null&&a!=""?t.setAttribute(o,a):t.removeAttribute(o)})("col-id",this.ctrl.column.getColId());const r={setWidth:o=>t.style.width=o,toggleCss:(o,a)=>this.toggleCss(o,a),setUserStyles:o=>p6(t,o),setAriaSort:o=>o?HJe(t,o):VJe(t),setUserCompDetails:o=>this.setUserCompDetails(o),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);const i=this.ctrl.getSelectAllGui();i&&this.eResize.insertAdjacentElement("afterend",i)}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(t){this.headerCompVersion++;const n=this.headerCompVersion;t.newAgStackInstance().then(r=>this.afterCompCreated(n,r))}afterCompCreated(t,n){if(t!=this.headerCompVersion||!this.isAlive()){this.destroyBean(n);return}this.destroyHeaderComp(),this.headerComp=n,this.headerCompGui=n.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},K4t={tag:"div",cls:"ag-header-group-cell",role:"columnheader",children:[{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"},{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"}]},Q4t=class extends Sye{constructor(t){super(K4t,t),this.eResize=at,this.eHeaderCompWrapper=at}postConstruct(){const t=this.getGui(),n=(i,o)=>o!=null?t.setAttribute(i,o):t.removeAttribute(i);t.setAttribute("col-id",this.ctrl.column.getUniqueId());const r={toggleCss:(i,o)=>this.toggleCss(i,o),setUserStyles:i=>p6(t,i),setHeaderWrapperHidden:i=>{i?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:i=>{i!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${i}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",i!=null)},setResizableDisplayed:i=>Nn(this.eResize,i),setWidth:i=>t.style.width=i,setAriaExpanded:i=>n("aria-expanded",i),setUserCompDetails:i=>this.setUserCompDetails(i),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(r,t,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(t){t.newAgStackInstance().then(n=>this.afterHeaderCompCreated(n))}afterHeaderCompCreated(t){const n=()=>this.destroyBean(t);if(!this.isAlive()){n();return}const r=this.getGui(),i=t.getGui();this.eHeaderCompWrapper.appendChild(i),this.addDestroyFunc(n),this.headerGroupComp=t,this.ctrl.setDragSource(r)}addOrRemoveHeaderWrapperStyle(t,n){const{eHeaderCompWrapper:r}=this;n?r.style.setProperty(t,n):r.style.removeProperty(t)}},Z4t={tag:"div",cls:"ag-header-cell ag-floating-filter",role:"gridcell",children:[{tag:"div",ref:"eFloatingFilterBody",role:"presentation"},{tag:"div",ref:"eButtonWrapper",cls:"ag-floating-filter-button ag-hidden",role:"presentation",children:[{tag:"button",ref:"eButtonShowMainFilter",cls:"ag-button ag-floating-filter-button-button",attrs:{type:"button",tabindex:"-1"}}]}]},J4t=class extends Sye{constructor(t){super(Z4t,t),this.eFloatingFilterBody=at,this.eButtonWrapper=at,this.eButtonShowMainFilter=at}postConstruct(){const t=this.getGui(),n={toggleCss:(r,i)=>this.toggleCss(r,i),setUserStyles:r=>p6(t,r),addOrRemoveBodyCssClass:(r,i)=>this.eFloatingFilterBody.classList.toggle(r,i),setButtonWrapperDisplayed:r=>Nn(this.eButtonWrapper,r),setCompDetails:r=>this.setCompDetails(r),getFloatingFilterComp:()=>this.compPromise,setWidth:r=>t.style.width=r,setMenuIcon:r=>this.eButtonShowMainFilter.appendChild(r)};this.ctrl.setComp(n,t,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(t){if(!t){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=t.newAgStackInstance(),this.compPromise.then(n=>this.afterCompCreated(n))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(t){if(t){if(!this.isAlive()){this.destroyBean(t);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=t,this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()}}},e_t=class extends Gt{constructor(t){super({tag:"div",cls:t.headerRowClass,role:"row"}),this.ctrl=t,this.headerComps={}}postConstruct(){pK(this.getGui(),this.ctrl.getAriaRowIndex());const t={setHeight:n=>this.getGui().style.height=n,setTop:n=>this.getGui().style.top=n,setHeaderCtrls:(n,r)=>this.setHeaderCtrls(n,r),setWidth:n=>this.getGui().style.width=n};this.ctrl.setComp(t,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(t,n){if(!this.isAlive())return;const r=this.headerComps;if(this.headerComps={},t.forEach(i=>{const o=i.instanceId;let a=r[o];delete r[o],a==null&&(a=this.createHeaderComp(i),this.getGui().appendChild(a.getGui())),this.headerComps[o]=a}),Object.values(r).forEach(i=>{this.getGui().removeChild(i.getGui()),this.destroyBean(i)}),n){const i=Object.values(this.headerComps);i.sort((a,s)=>{const l=a.getCtrl().column.getLeft(),c=s.getCtrl().column.getLeft();return l-c});const o=i.map(a=>a.getGui());eet(this.getGui(),o)}}createHeaderComp(t){let n;switch(this.ctrl.type){case"group":n=new Q4t(t);break;case"filter":n=new J4t(t);break;default:n=new Y4t(t);break}return this.createBean(n),n.setParentComponent(this),n}},Aye=class extends dt{constructor(e,t,n,r){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=r,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=n}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?zr(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,n=e.get("suppressColumnMoveAnimation"),r=Ut(this.columnOrGroup.getOldLeft());t?.isActive()&&r&&!n?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),n=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=n,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===n&&this.setLeft(n)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:n,visibleCols:r}=this.beans;if(!Uu(n,"print")||e.getPinned()==="left")return t;const o=r.getColsLeftWidth();if(e.getPinned()==="right"){const a=r.bodyWidth;return o+a+t}return o+t}setLeft(e){if(Ut(e)&&(this.eCell.style.left=`${e}px`),Pl(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&jJe(this.ariaEl,t.length)}}},t_t=0,Itt="headerCtrl",Oye=class extends dt{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.instanceId=e.getUniqueId()+"-"+t_t++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}shouldStopEventPropagation(e){const{headerRowIndex:t,column:n}=this.beans.focusSvc.focusedHeader,r=n.getDefinition(),i=r&&r.suppressHeaderKeyboardEvent;if(!Ut(i))return!1;const o=Vn(this.gos,{colDef:r,column:n,headerRowIndex:t,event:e});return!!i(o)}getWrapperHasFocus(){return Gi(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}refreshHeaderStyles(){const e=this.column.getDefinition();if(!e)return;const{headerStyle:t}=e;let n;if(typeof t=="function"){const r=this.getHeaderClassParams();n=t(r)}else n=t;n&&this.comp.setUserStyles(n)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:n,compBean:r}=e,{beans:i}=this,o=d=>{if(!this.isAlive()||!r.isAlive())return;const{paddingTop:p,paddingBottom:h,borderBottomWidth:g,borderTopWidth:m}=p3(this.eGui),v=p+h+g+m,M=t.offsetHeight+v;if(d<5){const C=bl(i),x=!C||!C.contains(t),w=M==0;if(x||w){v$(()=>o(d+1),"raf",i);return}}this.setColHeaderHeight(this.column,M)};let a=!1,s;const l=()=>{const d=this.column.isAutoHeaderHeight();d&&!a&&c(),!d&&a&&u()},c=()=>{a=!0,o(0),this.comp.toggleCss("ag-header-cell-auto-height",!0),s=Hf(this.beans,t,()=>o(0))},u=()=>{a=!1,s&&s(),this.comp.toggleCss("ag-header-cell-auto-height",!1),s=void 0};l(),r.addDestroyFunc(()=>u()),r.addManagedListeners(this.column,{widthChanged:()=>a&&o(0)}),r.addManagedEventListeners({sortChanged:()=>{a&&window.setTimeout(()=>o(0))}}),n&&n(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:n,eGui:r}=this;!e||!t||!r||(ett(e,t,n.visibleCols),B2e(r,n.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=_O(this.beans);this.eGui&&Af(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=Gi(this.beans),n=e.key===Qe.LEFT||e.key===Qe.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey||((this.isResizing||n)&&(e.preventDefault(),e.stopImmediatePropagation()),!n))return;const i=e.key===Qe.LEFT!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const o=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(o,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(i)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:n}=this.beans;return n?n.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:n}=this;let r=e.key===Qe.LEFT!==t.get("enableRtl");const i=n.getPinned(),o=t.get("enableRtl");return i&&o!==(i==="right")&&(r=!r),(r?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{this.resizeFeature?.toggleColumnResizing(!1)},150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case Qe.PAGE_DOWN:case Qe.PAGE_UP:case Qe.PAGE_HOME:case Qe.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=Itt,{eGui:n,gos:r}=this;mz(r,n,t,this),e.addDestroyFunc(()=>mz(r,n,t,null))}focus(e){const{eGui:t}=this;return t?(this.lastFocusEvent=e||null,t.focus(),!0):!1}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop?.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,n){const r=e??t,{menuSvc:i,gos:o}=this.beans;o.get("preventDefaultOnContextMenu")&&r.preventDefault(),i?.isHeaderContextMenuEnabled(n)&&i.showHeaderContextMenu(n,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",n)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:n}=this;e.isColumn?n.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):n.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},n_t=class extends Oye{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}setComp(e,t,n,r,i){this.comp=e;const{rowCtrl:o,column:a,beans:s}=this,{colResize:l,context:c,colHover:u,rangeSvc:d}=s,p=h6(this,c,i);this.setGui(t,p),this.updateState(),this.setupWidth(p),this.setupMovingCss(p),this.setupMenuClass(p),this.setupSortableClass(p),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:r,checkMeasuringCallback:g=>this.setRefreshFunction("measuring",g),compBean:p}),this.addColumnHoverListener(p),this.setupFilterClass(p),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(p),this.setupSelectAll(p),this.setupUserComp(),this.refreshAria(),l?this.resizeFeature=p.createManagedBean(l.createResizeFeature(o.pinned,a,n,e,this)):Nn(n,!1),u?.createHoverFeature(p,[a],t),d?.createRangeHighlightFeature(p,a,e),p.createManagedBean(new Aye(a,t,s)),p.createManagedBean(new Mw(t,{shouldStopEventPropagation:g=>this.shouldStopEventPropagation(g),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(p),p.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),p.addManagedListeners(a,{colDefChanged:()=>this.refresh()}),p.addManagedListeners(a,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const h=()=>this.checkDisplayName();p.addManagedEventListeners({columnValueChanged:h,columnRowGroupChanged:h,columnPivotChanged:h,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),p.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){this.beans.colResize?.resizeHeader(this.column,e,t)}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.colDef;return Vn(t.gos,{colDef:n,column:e,floatingFilter:!1})}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return mLt(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:n,gos:r}=this.beans;return Vn(r,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!n&&(!this.openFilterEnabled||Gu(this.gos)),showColumnMenu:(o,a)=>{e?.showColumnMenu({column:this.column,buttonElement:o,positionBy:"button",onClosedCallback:a})},showColumnMenuAfterMouseClick:(o,a)=>{e?.showColumnMenu({column:this.column,mouseEvent:o,positionBy:"mouse",onClosedCallback:a})},showFilter:o=>{e?.showFilterMenu({column:this.column,buttonElement:o,containerType:"columnFilter",positionBy:"button"})},progressSort:o=>{t?.progressSort(this.column,!!o,"uiColumnSorted")},setSort:(o,a)=>{t?.setSortForColumn(this.column,o,!!a,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(o,a)=>{r.assertModuleRegistered("Tooltip",3),this.setupTooltip(o,a)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature.setComp(this))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===Qe.SPACE&&this.selectAllFeature?.onSpaceKeyDown(e),e.key===Qe.ENTER&&this.onEnterKeyDown(e),e.key===Qe.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){e.ctrlKey||e.metaKey?this.showMenuOnKeyPress(e,!0):this.sortable&&this.beans.sortSvc?.progressSort(this.column,e.shiftKey,"uiColumnSorted")}showMenuOnKeyPress(e,t){const n=this.comp.getUserCompInstance();xEe(n)&&n.onMenuKeyboardShortcut(t)&&e.preventDefault()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),CK()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){const e=()=>{const t=this.column.getColDef(),n=cye(t,this.gos,this.column,null),r=this.userHeaderClasses;this.userHeaderClasses=new Set(n),n.forEach(i=>{r.has(i)?r.delete(i):this.comp.toggleCss(i,!0)}),r.forEach(i=>this.comp.toggleCss(i,!1))};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!e?.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=!!e?.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),Object.values(this.refreshFunctions).forEach(e=>e())}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==e.componentClass?this.attemptHeaderCompRefresh(e.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!t||!t.refresh?!1:t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const n=this.column.getActualWidth();this.comp.setWidth(`${n}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){const t=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){const t=()=>{this.comp?.toggleCss("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){const t=()=>{this.comp.toggleCss("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const t=()=>{const n=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",n),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=e===0,n=e===1;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",n)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:n,beans:r}=this,i=Cye(this.beans),o=i.reduce((u,d)=>u+=d,0)===0;if(n.toggleCss("ag-header-parent-hidden",o),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),n.toggleCss("ag-header-span-height",!1),n.toggleCss("ag-header-span-total",!1);return}const{numberOfParents:a,isSpanningTotal:s}=this.column.getColumnGroupPaddingInfo();n.toggleCss("ag-header-span-height",a>0);const l=xye(r);if(a===0){n.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${l}px`);return}n.toggleCss("ag-header-span-total",s);let c=0;for(let u=0;u<a;u++)c+=i[i.length-1-u];e.style.setProperty("top",`${-c}px`),e.style.setProperty("height",`${l+c}px`)}refreshAriaSort(){if(this.sortable){const e=this.getLocaleTextFunc(),t=this.beans.sortSvc?.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(jDt(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){const e=this.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!Gu(this.gos)){const e=this.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){const e=this.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(e,t){t!=null?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)}announceAriaDescription(){if(!this.eGui.contains(Gi(this.beans)))return;const e=Array.from(this.ariaDescriptionProperties.keys()).sort((t,n)=>t==="filter"?-1:n.charCodeAt(0)-t.charCodeAt(0)).map(t=>this.ariaDescriptionProperties.get(t)).join(". ");this.beans.ariaAnnounce?.announceValue(e,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=i=>this.handleMouseOverChange(i.type==="mouseenter"),n=()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},r=i=>this.handleContextMenuMouseEvent(i,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:n,contextmenu:r})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.toggleCss("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return xEe(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function xEe(e){return typeof e?.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}var r_t=0,Zne=class extends dt{constructor(e,t,n){super(),this.rowIndex=e,this.pinned=t,this.type=n,this.instanceId=r_t++,this.allCtrls=[];const r=n=="group"?"ag-header-row-column-group":n=="filter"?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${r}`}postConstruct(){this.isPrintLayout=Uu(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.allCtrls.every(e=>e.eGui!=null):!1}setComp(e,t,n=!0){this.comp=e,t=h6(this,this.beans.context,t),n&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),n=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:n,virtualColumnsChanged:r=>this.onVirtualColumnsChanged(r.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,gridStylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",n),e.addManagedPropertyListener("ensureDomOrder",r=>this.isEnsureDomOrder=r.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=Uu(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;return this.isPrintLayout?this.pinned!=null?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){const{filterManager:e}=this.beans,t=[],n=Cye(this.beans),r=xye(this.beans);t.push(...n),t.push(r),e?.hasFloatingFilters()&&t.push(wye(this.beans));let i=0;for(let a=0;a<this.rowIndex;a++)i+=t[a];const o=t[this.rowIndex];return{topOffset:i,rowHeight:o}}onVirtualColumnsChanged(e=!1){const t=this.getUpdatedHeaderCtrls(),n=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,n,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const r of t)this.recycleAndCreateHeaderCtrls(r,this.ctrlsById,e);const n=r=>{const{focusSvc:i,visibleCols:o}=this.beans;return i.isHeaderWrapperFocused(r)?o.isVisible(r.column):!1};if(e)for(const[r,i]of e)n(i)?this.ctrlsById.set(r,i):this.destroyBean(i);return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,n){if(e.isEmptyGroup())return;const r=e.getUniqueId();let i;if(n&&(i=n.get(r),n.delete(r)),i&&i.column!=e&&(this.destroyBean(i),i=void 0),i==null)switch(this.type){case"filter":{i=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":i=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:i=this.createBean(new n_t(e,this));break}t.set(r,i)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(this.pinned!=null)return[];let e=[];const t=this.getActualDepth(),{colViewport:n}=this.beans;return["left",null,"right"].forEach(r=>{const i=n.getHeadersToRender(r,t);e=e.concat(i)}),e}getActualDepth(){return this.type=="filter"?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.colViewport.getHeadersToRender(this.pinned,this.getActualDepth())}focusHeader(e,t){const n=this.allCtrls.find(i=>i.column==e);return n?n.focus(t):!1}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,super.destroy()}},Ptt=class extends dt{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:n,ctrlsSvc:r,colModel:i,colMoves:o,filterManager:a}=this.beans;this.setupCenterWidth(),n?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(o,this.eViewport);const s=this.onDisplayedColumnsChanged.bind(this,a);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:s,advancedFilterEnabledChanged:s});const l=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;r.register(l,this),i.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,colModel:n,filterManager:r}=this.beans;let i=0;const o=t.getFocusHeaderToUseAfterRefresh(),a=()=>{const u=Ttt(n)-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let d=0;d<u;d++){const p=this.createBean(new Zne(i++,this.pinned,"group"));this.groupsRowCtrls.push(p)}},s=()=>{const u=i++,d=!this.hidden&&(this.columnsRowCtrl==null||!e||this.columnsRowCtrl.rowIndex!==u);(d||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),d&&(this.columnsRowCtrl=this.createBean(new Zne(u,this.pinned,"column")))},l=()=>{this.includeFloatingFilter=!!r?.hasFloatingFilters()&&!this.hidden;const u=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){u();return}const d=i++;if(this.filtersRowCtrl){const p=this.filtersRowCtrl.rowIndex!==d;(!e||p)&&u()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new Zne(d,this.pinned,"filter")))};a(),s(),l();const c=this.getAllCtrls();this.comp.setCtrls(c),this.restoreFocusOnHeader(t,o)}getHeaderCtrlForColumn(e){const t=n=>n?.getHeaderCellCtrls().find(r=>r.column===e);if(vm(e))return t(this.columnsRowCtrl);if(this.groupsRowCtrls.length!==0)for(let n=0;n<this.groupsRowCtrls.length;n++){const r=t(this.groupsRowCtrls[n]);if(r)return r}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,n){const i=this.getAllCtrls()[e];return i?i.focusHeader(t,n):!1}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(e,t){const n=e?.createBodyDropTarget(this.pinned,t);n&&this.createManagedBean(n)}restoreFocusOnHeader(e,t){if(!t)return;const{column:n}=t;n.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t})}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(e){const t=!!e?.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==t&&this.refresh(!0)}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new vye(e=>this.comp.setCenterWidth(`${e}px`),!0))}},i_t=class extends dt{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){const{enterpriseMenuFactory:t,filterMenuFactory:n}=this.beans,r=t&&Gu(this.gos)?t:n;this.showColumnMenuCommon(r,e,e.containerType,!0)}showHeaderContextMenu(e,t,n){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,n)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(Gu(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&vm(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(Cx()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!Gu(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!Gu(this.gos)&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return Gu(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,n,r){const{positionBy:i,onClosedCallback:o}=t,a=t.column;if(i==="button"){const{buttonElement:s}=t;e?.showMenuAfterButtonClick(a,s,n,o,r)}else if(i==="mouse"){const{mouseEvent:s}=t;e?.showMenuAfterMouseEvent(a,s,n,o,r)}else if(a){const s=this.beans,l=s.ctrlsSvc;l.getScrollFeature().ensureColumnVisible(a,"auto"),sh(s,()=>{const c=l.getHeaderRowContainerCtrl(a.getPinned())?.getHeaderCtrlForColumn(a);c&&e?.showMenuAfterButtonClick(a,c.getAnchorElementForMenu(r),n,o,r)})}}};function R$(e,t,n){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",n))}var Dtt=class extends Gt{constructor(){super()}},o_t={tag:"span",cls:"ag-overlay-loading-center",attrs:{"aria-live":"polite","aria-atomic":"true"}},a_t=class extends Dtt{init(){const e=zc(this.gos.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(e??o_t),!e){const t=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=t("loadingOoo","Loading...")})}}},s_t={tag:"span",cls:"ag-overlay-no-rows-center"},l_t=class extends Dtt{init(){const e=zc(this.gos.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(e??s_t),!e){const t=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=t("noRowsToShow","No Rows To Show")})}}};function Ax(e,t,n){const r=er(e,t,n);if(r){const{className:o}=r;if(typeof o=="string"&&o.indexOf("ag-icon")>-1||typeof o=="object"&&o["ag-icon"])return r}const i=Nr({tag:"span"});return i.appendChild(r),i}function er(e,t,n){let r=null;e==="smallDown"?ut(262):e==="smallLeft"?ut(263):e==="smallRight"&&ut(264);const i=n&&n.getColDef().icons;if(i&&(r=i[e]),t.gos&&!r){const o=t.gos.get("icons");o&&(r=o[e])}if(r){let o;if(typeof r=="function")o=r();else if(typeof r=="string")o=r;else{ut(38,{iconName:e});return}if(typeof o=="string")return $2e(o);if(gK(o))return o;ut(133,{iconName:e});return}else{const o=t.registry.getIcon(e);return o||t.validation?.validateIcon(e),Nr({tag:"span",cls:`ag-icon ag-icon-${o??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var c_t=".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}",u_t={tag:"div",children:[{tag:"div",ref:"eGhost",cls:"ag-dnd-ghost ag-unselectable",children:[{tag:"span",ref:"eIcon",cls:"ag-dnd-ghost-icon ag-shake-left-to-right"},{tag:"div",ref:"eLabel",cls:"ag-dnd-ghost-label"}]}]},d_t=class extends Gt{constructor(){super(),this.dragSource=null,this.eIcon=at,this.eLabel=at,this.eGhost=at,this.registerCSS(c_t)}postConstruct(){const e=t=>Ax(t,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(u_t),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eIcon:n,dragSource:r,dropIconMap:i,gos:o}=this;Xi(n);let a=null;e||(e=r?.getDefaultIconName?r.getDefaultIconName():"notAllowed"),a=i[e],n.classList.toggle("ag-shake-left-to-right",t),!(a===i.hide&&o.get("suppressDragLeaveHidesColumns"))&&a&&n.appendChild(a)}setLabel(e){this.eLabel.textContent=e}},p_t=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",zye=class extends Gt{constructor(e,t,n){super(t,n),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(p_t)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:n,labelAlignment:r,disabled:i}=this.config;i!=null&&this.setDisabled(i),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),n!=null&&this.setLabelWidth(n),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;Xi(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(Nn(t,!1),C0(t,"presentation")):(Nn(t,!0),C0(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const n=this.getGui().classList;return n.toggle("ag-label-align-left",e==="left"),n.toggle("ag-label-align-right",e==="right"),n.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(m$(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return nf(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},ktt=class extends zye{constructor(e,t,n,r){super(e,t,n),this.className=r}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:n}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),n!=null&&this.onValueChange(n),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),n=this.getLabel();n==null||n==""||VDt(e)!==null?Hx(e,""):Hx(e,t??"")}setAriaLabel(e){return Es(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return am(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}};function h_t(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}var nx=class extends ktt{constructor(e,t,n="text",r="input"){super(e,e?.template??h_t(r),[],t),this.inputType=n,this.displayFieldTag=r,this.eLabel=at,this.eWrapper=at,this.eInput=at}postConstruct(){super.postConstruct(),this.setInputType();const{eLabel:e,eWrapper:t,eInput:n,className:r}=this;e.classList.add(`${r}-label`),t.classList.add(`${r}-input-wrapper`),n.classList.add(`${r}-input`),this.addCss("ag-input-field"),n.id=n.id||`ag-${this.getCompId()}-input`;const{inputName:i,inputWidth:o}=this.config;i!=null&&this.setInputName(i),o!=null&&this.setInputWidth(o),this.addInputListeners(),this.activateTabIndex([n])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(e){return m$(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return Af(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Es(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return nf(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)Af(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";Af(this.eInput,"autocomplete",t)}return this}},g3=class extends nx{constructor(e,t="ag-checkbox",n="checkbox"){super(e,t,n),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0;const n=this.eInput;n.checked=e,n.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,n){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:n});const r=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:r.id,name:r.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},Rm={selector:"AG-CHECKBOX",component:g3},f_t=".ag-checkbox-cell{height:100%}",g_t={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},m_t=class extends Gt{constructor(){super(g_t,[Rm]),this.eCheckbox=at,this.registerCSS(f_t)}init(e){this.refresh(e);const{eCheckbox:t,beans:n}=this,r=t.getInputElement();r.setAttribute("tabindex","-1"),NJe(r,"polite"),this.addManagedListeners(r,{click:i=>{if(Cl(i),t.isDisabled())return;const o=t.getValue();this.onCheckboxChanged(o)},dblclick:i=>{Cl(i)}}),this.addManagedElementListeners(e.eGridCell,{keydown:i=>{if(i.key===Qe.SPACE&&!t.isDisabled()){e.eGridCell===Gi(n)&&t.toggle();const o=t.getValue();this.onCheckboxChanged(o),i.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,n=!0;const{value:r,column:i,node:o}=e;if(o.group&&i)if(typeof r=="boolean")t=r;else{const d=i.getColId();d.startsWith(jy)?t=r==null||r===""?void 0:r==="true":o.aggData&&o.aggData[d]!==void 0?t=r??void 0:n=!1}else t=r??void 0;const{eCheckbox:a}=this;if(!n){a.setDisplayed(!1);return}a.setValue(t);const s=e.disabled??!i?.isCellEditable(o);a.setDisabled(s);const l=this.getLocaleTextFunc(),c=H2e(l,t),u=s?c:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${c})`;a.setInputAriaLabel(u)}onCheckboxChanged(e){const{eventSvc:t,params:n}=this,{column:r,node:i,value:o}=n,a={column:r,colDef:r.getColDef(),data:i.data,node:i,rowIndex:i.rowIndex,rowPinned:i.rowPinned,value:o};t.dispatchEvent({type:"cellEditingStarted",...a});const s=i.setDataValue(r,e,"edit");t.dispatchEvent({type:"cellEditingStopped",...a,oldValue:o,newValue:e,valueChanged:s}),s||this.updateCheckbox(n)}},wEe=class{constructor(t,n){this.beans=t,this.floating=n,this.all=new Set,this.visible=new Set,this.order=[],this.queued=new Set}size(){return this.visible.size}add(t){const{all:n,visible:r,order:i}=this;n.has(t)||(n.add(t),r.add(t),i.push(t),this.sort())}delete(t){this.all.delete(t),this.visible.delete(t),this.queued.delete(t.id),Ou(this.order,t)}has(t){return this.visible.has(t)}forEach(t){this.order.forEach(t)}getByIndex(t){return this.order[t]}getById(t){for(const n of this.visible)if(n.id==t)return n}clear(){const{all:t,visible:n,order:r,queued:i}=this;t.clear(),i.clear(),n.clear(),r.length=0}sort(){const{sortSvc:t,rowNodeSorter:n}=this.beans,r=t?.getSortOptions()??[],i=y_t(this.order);if(this.order.sort((a,s)=>(a.pinnedSibling?.rowIndex??0)-(s.pinnedSibling?.rowIndex??0)),this.order=n?.doFullSort(this.order,r)??this.order,!i)return;const o=this.beans.gos.get("grandTotalRow");o==="bottom"||o==="pinnedBottom"?this.order.push(i):this.order.unshift(i)}hide(t){const{all:n,visible:r}=this;n.forEach(i=>t(i)?r.delete(i):r.add(i)),this.order=Array.from(r),this.sort()}queue(t){this.queued.add(t)}unqueue(t){this.queued.delete(t)}forEachQueued(t){this.queued.forEach(t)}};function Ltt(e){if(e.level===-1)return!0;const t=e.parent;return t?.childrenAfterSort?.some(n=>n==e)?Ltt(t):!1}function Jne(e,t){const{gos:n,rowModel:r,filterManager:i}=e;return Au(n)?!r.getRowNode(t.id):i?.isAnyFilterPresent()?!Ltt(t):n.get("pivotMode")?!t.group:!1}function v_t(e){return!!e.footer&&e.level===-1}function b_t(e){return!!e.pinnedSibling&&v_t(e.pinnedSibling)}function y_t(e){const t=e.findIndex(b_t);if(t>-1)return e.splice(t,1)?.[0]}var M_t=class extends dt{postConstruct(){const{gos:e,beans:t}=this;this.top=new wEe(t,"top"),this.bottom=new wEe(t,"bottom");const n=i=>Jne(t,i.pinnedSibling),r=()=>{const i=e.get("isRowPinned");i&&t.rowModel.forEachNode(o=>this.pinRow(o,i(o)),!0),this.refreshRowPositions(),this.dispatchRowPinnedEvents()};this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:()=>{this.tryToEmptyQueues(),this.pinGrandTotalRow(),this.forContainers(i=>i.hide(n)),this.refreshRowPositions(),this.dispatchRowPinnedEvents()},columnRowGroupChanged:()=>{this.forContainers(x_t),this.refreshRowPositions()},rowNodeDataChanged:({node:i})=>{(e.get("isRowPinnable")?.(i)??!0)||this.pinRow(i,null)},firstDataRendered:r}),this.addManagedPropertyListener("pivotMode",()=>{this.forContainers(i=>i.hide(n)),this.dispatchRowPinnedEvents()}),this.addManagedPropertyListener("grandTotalRow",({currentValue:i})=>{this._grandTotalPinned=i==="pinnedBottom"?"bottom":i==="pinnedTop"?"top":null}),this.addManagedPropertyListener("isRowPinned",r)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){this.forContainers(t=>{const n=[];t.forEach(r=>n.push(r)),n.forEach(r=>this.pinRow(r,null)),t.clear()}),e&&this.dispatchRowPinnedEvents()}pinRow(e,t,n){if(e.footer&&e.level>-1)return;if(e.footer&&e.level===-1){this._grandTotalPinned=t,oa(this.gos,this.beans.rowModel)&&this.beans.rowModel.refreshModel({step:"map"});return}const r=e.rowPinned??e.pinnedSibling?.rowPinned;if(r!=null&&t!=null&&t!=r){const a=e.rowPinned?e:e.pinnedSibling,s=e.rowPinned?e.pinnedSibling:e;this.pinRow(a,null,n),this.pinRow(s,t,n);return}const o=n&&w_t(this.beans,e,n);if(o){o.forEach(a=>this.pinRow(a,t));return}if(t==null){const a=e.rowPinned?e:e.pinnedSibling,s=this.findPinnedRowNode(a);if(!s)return;s.delete(a);const l=a.pinnedSibling;ere(a),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(l)}else{const a=SEe(this.beans,e,t),s=this.getContainer(t);s.add(a),Jne(this.beans,e)&&s.hide(l=>Jne(this.beans,l.pinnedSibling)),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(e)}}isManual(){return!0}isEmpty(e){return this.getContainer(e).size()===0}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){let e=!1,t=0;const n=r=>{if(r.rowHeightEstimated){const i=vd(this.beans,r);r.setRowTop(t),r.setRowHeight(i.height),t+=i.height,e=!0}};return this.bottom.forEach(n),t=0,this.top.forEach(n),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}getPinnedTopTotalHeight(){const e=this.top.size();if(e===0)return 0;const t=this.top.getByIndex(e-1);return t===void 0?0:t.rowTop+t.rowHeight}getPinnedBottomTotalHeight(){const e=this.bottom.size();if(e===0)return 0;const t=this.bottom.getByIndex(e-1);return t===void 0?0:t.rowTop+t.rowHeight}getPinnedTopRowCount(){return this.top.size()}getPinnedBottomRowCount(){return this.bottom.size()}getPinnedTopRow(e){return this.top.getByIndex(e)}getPinnedBottomRow(e){return this.bottom.getByIndex(e)}getPinnedRowById(e,t){return this.getContainer(t).getById(e)}forEachPinnedRow(e,t){this.getContainer(e).forEach(t)}getPinnedState(){const e=t=>{const n=[];return this.forEachPinnedRow(t,r=>n.push(r.pinnedSibling.id)),n};return{top:e("top"),bottom:e("bottom")}}setPinnedState(e){this.forContainers((t,n)=>{for(const r of e[n]){const i=this.beans.rowModel.getRowNode(r);i?this.pinRow(i,n):t.queue(r)}})}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(e){this._grandTotalPinned=e}tryToEmptyQueues(){this.forContainers((e,t)=>{const n=new Set;e.forEachQueued(r=>{const i=this.beans.rowModel.getRowNode(r);i&&n.add(i)});for(const r of n)e.unqueue(r.id),this.pinRow(r,t)})}pinGrandTotalRow(){const e=this.beans.rowModel;if(!oa(this.gos))return;const t=e.rootNode?.sibling;if(!t)return;const n=this._grandTotalPinned,r=t.pinnedSibling,i=r&&this.findPinnedRowNode(r);if(n){if(i&&i.floating!==n&&(i.delete(r),ere(r)),!i||i.floating!==n){const o=SEe(this.beans,t,n);this.getContainer(n).add(o)}}else{if(!i)return;i.delete(r),ere(r)}}onGridStylesChanges(e){if(e.rowHeightChanged){const t=n=>{n.setRowHeight(n.rowHeight,!0)};this.forContainers(n=>n.forEach(t))}}getContainer(e){return e==="top"?this.top:this.bottom}findPinnedRowNode(e){if(this.top.has(e))return this.top;if(this.bottom.has(e))return this.bottom}refreshRowPositions(e){const t=n=>C_t(this.beans,n);return e==null?this.forContainers(t):t(this.getContainer(e))}forContainers(e){e(this.top,"top"),e(this.bottom,"bottom")}dispatchRowPinnedEvents(e){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),e?.dispatchRowEvent("rowPinned")}};function C_t(e,t){let n=0;t.forEach((r,i)=>{r.setRowTop(n),(r.rowHeightEstimated||r.rowHeight==null)&&r.setRowHeight(vd(e,r).height),r.setRowIndex(i),n+=r.rowHeight})}function SEe(e,t,n){if(t.pinnedSibling)return t.pinnedSibling;const r=htt(t,e);r.setRowTop(null),r.setRowIndex(null),r.rowPinned=n;const i=n==="top"?hye:fye;return r.id=`${i}${n}-${t.id}`,r.pinnedSibling=t,t.pinnedSibling=r,r}function ere(e){if(!e.pinnedSibling)return;e.rowPinned=null,e.setRowTop(null),e.setRowIndex(null);const t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function x_t(e){const t=new Set;e.forEach(n=>{n.group&&t.add(n)}),t.forEach(n=>{e.delete(n)})}function w_t(e,t,n){const{rowSpanSvc:r}=e,i=(n&&r?.isCellSpanning(n,t))??!1;if(n&&i){const o=r?.getCellSpan(n,t);if(o)return Array.from(o.spannedNodes)}}var S_t=class extends dt{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){const e=this.gos;this.setPinnedRowData(e.get("pinnedTopRowData"),"top"),this.setPinnedRowData(e.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",t=>this.setPinnedRowData(t.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",t=>this.setPinnedRowData(t.currentValue,"bottom")),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(e){return this.getCache(e).order.length===0}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}onGridStylesChanges(e){if(e.rowHeightChanged){const t=n=>{n.setRowHeight(n.rowHeight,!0)};XL(this.pinnedBottomRows,t),XL(this.pinnedTopRows,t)}}ensureRowHeightsValid(){let e=!1,t=0;const n=r=>{if(r.rowHeightEstimated){const i=vd(this.beans,r);r.setRowTop(t),r.setRowHeight(i.height),t+=i.height,e=!0}};return XL(this.pinnedBottomRows,n),t=0,XL(this.pinnedTopRows,n),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const n=this.getCache(t);if(e===void 0){n.order.length=0,n.cache={};return}const r=qy(this.gos),i=t==="top"?hye:fye,o=new Set(n.order),a=[],s=new Set;let l=0,c=-1;for(const u of e){const d=r?.({data:u,level:0,rowPinned:t})??i+this.nextId++;if(s.has(d)){ut(96,{id:d,data:u});continue}c++,s.add(d),a.push(d);const p=DN(n,d);if(p!==void 0)p.data!==u&&p.updateData(u),l+=this.setRowTopAndRowIndex(p,l,c),o.delete(d);else{const h=new vp(this.beans);h.id=d,h.data=u,h.rowPinned=t,l+=this.setRowTopAndRowIndex(h,l,c),n.cache[d]=h,n.order.push(d)}}o.forEach(u=>{DN(n,u)?.clearRowTopAndRowIndex(),delete n.cache[u]}),n.order=a}setRowTopAndRowIndex(e,t,n){return e.setRowTop(t),e.setRowHeight(vd(this.beans,e).height),e.setRowIndex(n),e.rowHeight}getPinnedTopTotalHeight(){return AEe(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return AEe(this.pinnedBottomRows)}getPinnedTopRowCount(){return phe(this.pinnedTopRows)}getPinnedBottomRowCount(){return phe(this.pinnedBottomRows)}getPinnedTopRow(e){return dhe(this.pinnedTopRows,e)}getPinnedBottomRow(e){return dhe(this.pinnedBottomRows,e)}getPinnedRowById(e,t){return DN(this.getCache(t),e)}forEachPinnedRow(e,t){return XL(this.getCache(e),t)}getCache(e){return e==="top"?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){}setGrandTotalPinned(){}};function AEe(e){const t=phe(e);if(t===0)return 0;const n=dhe(e,t-1);return n===void 0?0:n.rowTop+n.rowHeight}function DN(e,t){return e.cache[t]}function dhe(e,t){return DN(e,e.order[t])}function XL(e,t){e.order.forEach((n,r)=>{const i=DN(e,n);i&&t(i,r)})}function phe(e){return e.order.length}var A_t=class extends dt{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){const e=()=>{const t=this.gos.get("enableRowPinning");this.inner&&this.destroyBean(this.inner),this.inner=this.createManagedBean(t?new M_t:new S_t)};this.addManagedPropertyListener("enableRowPinning",e),e()}reset(){return this.inner.reset()}isEmpty(e){return this.inner.isEmpty(e)}isManual(){return this.inner.isManual()}isRowsToRender(e){return this.inner.isRowsToRender(e)}pinRow(e,t,n){return this.inner.pinRow(e,t,n)}ensureRowHeightsValid(){return this.inner.ensureRowHeightsValid()}getPinnedRowById(e,t){return this.inner.getPinnedRowById(e,t)}getPinnedTopTotalHeight(){return this.inner.getPinnedTopTotalHeight()}getPinnedBottomTotalHeight(){return this.inner.getPinnedBottomTotalHeight()}getPinnedTopRowCount(){return this.inner.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.inner.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.inner.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.inner.getPinnedBottomRow(e)}forEachPinnedRow(e,t){return this.inner.forEachPinnedRow(e,t)}getPinnedState(){return this.inner.getPinnedState()}setPinnedState(e){return this.inner.setPinnedState(e)}setGrandTotalPinned(e){return this.inner.setGrandTotalPinned(e)}getGrandTotalPinned(){return this.inner.getGrandTotalPinned()}},O_t="ROOT_NODE_ID",_tt=class extends dt{constructor(){super(...arguments),this.nextId=0,this.allNodesMap={},this.rootNode=null}get treeData(){return!1}getRowNode(e){return this.allNodesMap[e]}extractRowData(){return this.rootNode?.allLeafChildren?.map(e=>e.data)}activate(e){this.rootNode=e,e.group=!0,e.level=-1,e.id=O_t,e.allLeafChildren=[],e.childrenAfterGroup=[],e.childrenAfterSort=[],e.childrenAfterAggFilter=[],e.childrenAfterFilter=[],this.updateRootSiblingArrays(e)}deactivate(){this.rootNode&&(this.allNodesMap={},this.rootNode=null)}destroy(){super.destroy(),this.allNodesMap={},this.rootNode=null}setNewRowData(e){const t=this.rootNode;t&&(this.dispatchRowDataUpdateStartedEvent(e),t.childrenAfterFilter=null,t.childrenAfterGroup=null,t.childrenAfterAggFilter=null,t.childrenAfterSort=null,t.childrenMapped=null,t.updateHasChildren(),this.allNodesMap={},this.nextId=0,this.loadNewRowData(e),this.updateRootSiblingArrays(t))}updateRootSiblingArrays(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter,t.childrenAfterGroup=e.childrenAfterGroup,t.childrenAfterAggFilter=e.childrenAfterAggFilter,t.childrenAfterSort=e.childrenAfterSort,t.childrenMapped=e.childrenMapped,t.allLeafChildren=e.allLeafChildren)}loadNewRowData(e){this.rootNode.allLeafChildren=e?.map((t,n)=>this.createRowNode(t,n))??[]}setImmutableRowData(e,t){const n=qy(this.gos),r=!this.gos.get("suppressMaintainUnsortedOrder"),i=e.changedRowNodes,o=new Set,a=this.rootNode,s=a.allLeafChildren,l=s.length;let c=!1,u=!1,d=!1,p=!1;for(let g=0,m=-1,v=t.length;g<v;g++){const y=t[g];let M=this.getRowNode(n({data:y,level:0}));if(!M)c=!0,M=this.createRowNode(y,-1),i.add(M);else{if(r){const C=M.sourceRowIndex;p||(p=C<=m||c),m=C}M.data!==y&&(d=!0,M.updateData(y),i.update(M))}o.add(M)}const h=[];for(let g=0;g<l;g++){const m=s[g];o.has(m)||(u=!0,m.isSelected()&&h.push(m),m.pinnedSibling&&this.beans.pinnedRowModel?.pinRow(m.pinnedSibling,null),this.rowNodeDeleted(m),i.remove(m))}if(c||u||p){const g=new Array(o.size);let m=0;if(!r)for(let y=0;y<l;++y){const M=s[y];o.delete(M)&&(M.sourceRowIndex=m,g[m++]=M)}for(const y of o)y.sourceRowIndex=m,g[m++]=y;a.allLeafChildren=g;const v=a.sibling;v&&(v.allLeafChildren=g),e.rowNodesOrderChanged||(e.rowNodesOrderChanged=p)}(c||u||p||d)&&(this.deselectNodes(h),e.rowDataUpdated=!0)}rowNodeDeleted(e){e.clearRowTopAndRowIndex();const t=e.id,n=this.allNodesMap;n[t]===e&&delete n[t]}updateRowData(e,t){this.dispatchRowDataUpdateStartedEvent(e.add);const n={changedRowNodes:t,rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},r=[],i=qy(this.gos);return this.executeRemove(i,e,n,r),this.executeUpdate(i,e,n,r),this.executeAdd(e,n),this.deselectNodes(r),n}executeAdd(e,t){const n=e.add;if(!n?.length)return;let r=this.rootNode.allLeafChildren,i=r.length;if(typeof e.addIndex=="number"&&(i=this.sanitizeAddIndex(e.addIndex),i>0&&this.gos.get("treeData")&&this.gos.get("getDataPath"))){for(let d=0;d<r.length;d++)if(r[d]?.rowIndex==i-1){i=d+1;break}}const o=n.length,a=t.changedRowNodes,s=new Array(o);for(let u=0;u<o;u++){const d=this.createRowNode(n[u],i+u);a.add(d),s[u]=d}const l=this.rootNode;if(i<r.length){const u=r.slice(0,i),d=r.slice(i,r.length),p=u.length+s.length;for(let h=0,g=d.length;h<g;++h)d[h].sourceRowIndex=p+h;r=[...u,...s,...d],t.rowsInserted=!0}else r=r.concat(s);l.allLeafChildren=r;const c=l.sibling;c&&(c.allLeafChildren=r),t.rowNodeTransaction.add=s}executeRemove(e,t,{changedRowNodes:n,rowNodeTransaction:r},i){const{remove:o}=t;if(!o?.length)return;const a={};o.forEach(c=>{const u=this.lookupRowNode(e,c);u&&(u.isSelected()&&i.push(u),u.pinnedSibling&&this.beans.pinnedRowModel?.pinRow(u.pinnedSibling,null),u.clearRowTopAndRowIndex(),a[u.id]=!0,delete this.allNodesMap[u.id],r.remove.push(u),n.remove(u))});const s=this.rootNode;s.allLeafChildren=s.allLeafChildren?.filter(c=>!a[c.id])??null,s.allLeafChildren?.forEach((c,u)=>{c.sourceRowIndex=u});const l=s.sibling;l&&(l.allLeafChildren=s.allLeafChildren)}executeUpdate(e,t,{changedRowNodes:n,rowNodeTransaction:r},i){const{update:o}=t;o?.length&&o.forEach(a=>{const s=this.lookupRowNode(e,a);s&&(s.updateData(a),!s.selectable&&s.isSelected()&&i.push(s),r.update.push(s),n.update(s))})}dispatchRowDataUpdateStartedEvent(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselectNodes(e){const t="rowDataChanged",n=this.beans.selectionSvc,r=e.length>0;r&&n?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),n?.updateGroupsFromChildrenSelections?.(t),r&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:n?.getSelectedNodes()??null,serverSideState:null})}sanitizeAddIndex(e){const t=this.rootNode.allLeafChildren?.length??0;return e<0||e>=t||Number.isNaN(e)?t:Math.ceil(e)}createRowNode(e,t){const n=new vp(this.beans);return n.parent=this.rootNode,n.level=0,n.group=!1,n.expanded=!1,n.sourceRowIndex=t,n.setDataAndId(e,String(this.nextId)),this.allNodesMap[n.id]&&ut(2,{nodeId:n.id}),this.allNodesMap[n.id]=n,this.nextId++,n}lookupRowNode(e,t){let n;if(e){const r=e({data:t,level:0});if(n=this.allNodesMap[r],!n)return pi(4,{id:r}),null}else if(n=this.rootNode?.allLeafChildren?.find(r=>r.data===t),!n)return pi(5,{data:t}),null;return n||null}},kv=(e=>(e.Applied="Applied",e.StoreNotFound="StoreNotFound",e.StoreLoading="StoreLoading",e.StoreWaitingToLoad="StoreWaitingToLoad",e.StoreLoadingFailed="StoreLoadingFailed",e.StoreWrongType="StoreWrongType",e.Cancelled="Cancelled",e.StoreNotStarted="StoreNotStarted",e))(kv||{}),z_t={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},T_t=class extends Gt{constructor(){super(z_t,[Rm]),this.eCheckbox=at}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:n}=this,r=t.isSelected(),i=H2e(e,r),[o,a]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],s=e(o,a);n.setValue(r,!0),n.setInputAriaLabel(`${s} (${i})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:Cl,click:r=>{Cl(r),this.beans.selectionSvc?.handleSelectionEvent(r,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:i})=>{const o=typeof r=="object"?Vne(r):void 0,a=typeof i=="object"?Vne(i):void 0;o!==a&&this.onSelectableChanged()}),ihe(this.gos)||typeof this.getIsVisible()=="function"){const r=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:r}),this.addManagedListeners(this.rowNode,{dataChanged:r,cellChanged:r}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:n,gos:r}=this;let i=t.selectable;const o=this.getIsVisible();if(i)if(typeof o=="function"){const l=n?.callbackParams;if(!e)i=o({...l,node:t,data:t.data});else{const c=e.createColumnFunctionCallbackParams(t);i=o({...l,...c})}}else i=o??!1;const a=r.get("rowSelection");if(a&&typeof a!="string"?!Vne(a):e?.getColDef().showDisabledCheckboxes){this.eCheckbox.setDisabled(!i),this.setVisible(!0),this.setDisplayed(!0);return}if(n?.removeHidden){this.setDisplayed(i);return}this.setVisible(i)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?kO(t):this.column?.getColDef()?.checkboxSelection}},E_t=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return this.rootId===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(e){if(this.rootId)return this.getRowNode(this.rootId);if(e)return this.setRoot(e),e}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:n,pinnedRowModel:r}=this;return t??(t=n.getRowNode(e)),r?.isManual()&&(t??(t=r.getPinnedRowById(e,"top")),t??(t=r.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const n=t[0].id===this.rootId,r=t.findIndex(i=>i.id===e.id);if(r>-1){const i=t.slice(0,r),o=t.slice(r+1);return this.setEndRange(e),n?{keep:i,discard:o}:{keep:o,discard:i}}else return{keep:t,discard:[]}}extend(e,t=!1){const n=this.getRoot();if(n==null){const i=this.getRange().slice();return t&&e.depthFirstSearch(o=>!o.group&&i.push(o)),i.push(e),this.setRoot(e),{keep:i,discard:[]}}const r=this.getNodesInRange(n,e);if(!r)return this.setRoot(e),{keep:[e],discard:[]};if(r.find(i=>i.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const i=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:i}}}getNodesInRange(e,t){const{pinnedRowModel:n,rowModel:r}=this;if(!n?.isManual())return r.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&!t.rowPinned)return Vh(n,"top",e,void 0).concat(r.getNodesInRangeForSelection(r.getRow(0),t)??[]);if(e.rowPinned==="bottom"&&!t.rowPinned){const i=Vh(n,"bottom",void 0,e),o=r.getRowCount(),a=r.getRow(o-1);return(r.getNodesInRangeForSelection(t,a)??[]).concat(i)}if(!e.rowPinned&&!t.rowPinned)return r.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&t.rowPinned==="top")return Vh(n,"top",e,t);if(e.rowPinned==="bottom"&&t.rowPinned==="top"){const i=Vh(n,"top",t,void 0),o=Vh(n,"bottom",void 0,e),a=r.getRow(0),s=r.getRow(r.getRowCount()-1);return i.concat(r.getNodesInRangeForSelection(a,s)??[]).concat(o)}if(!e.rowPinned&&t.rowPinned==="top")return Vh(n,"top",t,void 0).concat(r.getNodesInRangeForSelection(r.getRow(0),e)??[]);if(e.rowPinned==="top"&&t.rowPinned==="bottom"){const i=Vh(n,"top",e,void 0),o=Vh(n,"bottom",void 0,t),a=r.getRow(0),s=r.getRow(r.getRowCount()-1);return i.concat(r.getNodesInRangeForSelection(a,s)??[]).concat(o)}if(e.rowPinned==="bottom"&&t.rowPinned==="bottom")return Vh(n,"bottom",e,t);if(!e.rowPinned&&t.rowPinned==="bottom"){const i=Vh(n,"bottom",void 0,t),o=r.getRow(r.getRowCount());return(r.getNodesInRangeForSelection(e,o)??[]).concat(i)}return null}},R_t=class extends dt{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(Gi(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new g3);this.cbSelectAll=t,t.addCss("ag-header-select-all"),C0(t.getGui(),"presentation"),this.showOrHideSelectAll();const n=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:n,paginationChanged:n,modelUpdated:n}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:i})=>{const o=a=>typeof a=="string"||!a||a.mode==="singleRow"?void 0:a.selectAll;o(r)!==o(i)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll(e.source==="uiColumnMoved")}showOrHideSelectAll(e=!1){const t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,n=this.cbSelectAll,r=t.getSelectAllState(e);n.setValue(r);const i=t.hasNodesToSelect(e);n.setDisabled(!i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:n,cbSelectAll:r,cbSelectAllVisible:i}=this,a=r.getValue()?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),s=t("ariaRowSelectAll","Press Space to toggle all rows selection");n.setAriaDescriptionProperty("selectAll",i?`${s} (${a})`:null),r.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||n.announceAriaDescription()}checkSelectionType(e){return By(this.gos)?!0:(ut(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:n}=this.beans;return oa(t)||Au(t)?!0:(ut(129,{feature:e,rowModel:n.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let n="uiSelectAll";t==="currentPage"?n="uiSelectAllCurrentPage":t==="filtered"&&(n="uiSelectAllFiltered");const r={source:n,selectAll:t},i=this.beans.selectionSvc;e?i.selectAllRowNodes(r):i.deselectAllRowNodes(r)}isCheckboxSelection(){const{column:e,gos:t,beans:n}=this,r=t.get("rowSelection"),i=e.getColDef(),{headerCheckboxSelection:o}=i;let a=!1;const s=typeof r=="object";if(s){const c=f3(e),u=MK(e);(cW(r)==="autoGroupColumn"&&u||c&&n.selectionColSvc?.isSelectionColumnEnabled())&&(a=jG(r))}else typeof o=="function"?a=o(Vn(t,{column:e,colDef:i})):a=!!o;const l=s?"headerCheckbox":"headerCheckboxSelection";return a&&this.checkRightRowModelType(l)&&this.checkSelectionType(l)}getSelectAllMode(){const e=vet(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:n}=this.column.getColDef();return t?"currentPage":n?"filtered":"all"}},Ntt=class extends dt{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new E_t(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const n=ihe(e);n!==this.isRowSelectable&&(this.isRowSelectable=n,this.updateSelectable())}),this.isRowSelectable=ihe(e)}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new T_t}createSelectAllFeature(e){return new R_t(e)}isMultiSelect(){return By(this.gos)}onRowCtrlSelected(e,t,n){const r=!!e.rowNode.isSelected();e.forEachGui(n,i=>{i.rowComp.toggleCss("ag-row-selected",r);const o=i.element;sW(o,r),o.contains(Gi(this.beans))&&t(i)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected();if(!e.selectable)return;const r=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(r,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!f6(e)||!Kp(this.gos)}updateRowSelectable(e,t){const n=this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,n,t),n}setRowSelectable(e,t,n){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),n)return;if(bz(this.gos)){const i=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:i??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,n=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let r=0;r<e.childrenAfterGroup.length;r++){const i=e.childrenAfterGroup[r];let o=i.isSelected();if(!i.selectable){const a=this.calculateSelectedFromChildren(i);if(a===null)continue;o=a}switch(o){case!0:t=!0;break;case!1:n=!0;break;default:return}}if(!(t&&n))return t?!0:n?!1:e.selectable?e.__selected:null}selectRowNode(e,t,n,r="api"){const i=!e.selectable&&t,o=e.__selected===t;if(i||o)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");const a=e.sibling;a&&a.footer&&a.__localEventService&&a.dispatchRowEvent("rowSelected");const s=e.pinnedSibling;return s&&s.rowPinned&&s.__localEventService&&s.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({...ptt(e,this.gos,"rowSelected"),event:n||null,source:r}),!0}isCellCheckboxSelection(e,t){const n=this.gos.get("rowSelection");if(n&&typeof n!="string"){const r=f3(e)&&kO(n);return e.isColumnFunc(t,r)}else return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,n,r){const{gos:i,selectionCtx:o}=this,a=e.isSelected(),s=bz(i),l=vkt(i),c=bkt(i),u=this.isMultiSelect(),d=r==="rowClicked";if(d&&!(l||c))return null;if(t&&n&&u){const p=o.getRoot();if(p)if(p.isSelected()){const h=o.isInRange(e)?o.truncate(e):o.extend(e,s);return{deselect:h.discard,select:h.keep,reset:!1}}else{const h=o.extend(e,s);return{select:[],deselect:h.keep,reset:!1}}else return null}else if(t&&u){const p=o.selectAll?this.beans.rowModel.getRow(0):void 0,h=o.getRoot(p),g=o.isInRange(e)?o.truncate(e):o.extend(e,s);return{select:g.keep,deselect:g.discard,reset:o.selectAll||!!(h&&!h.isSelected())}}else if(n){if(d){const p=!a;return p&&!l||!p&&!c?null:(o.setRoot(e),{node:e,newValue:p,clearSelection:!1})}return o.setRoot(e),{node:e,newValue:!a,clearSelection:!u}}else{o.setRoot(e);const p=ykt(i),h=y$(i)==="filteredDescendants",g=d&&(!p||!l);if(h&&a===void 0&&oa(i))return{node:e,newValue:!1,clearSelection:!u||g};if(d){const m=a?!p:l;return m===a&&!g||m&&!l||!m&&!c?null:{node:e,newValue:m,clearSelection:!u||g,keepDescendants:e.group&&s}}return{node:e,newValue:!a,clearSelection:!u||g}}}},I_t=class extends g3{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},P_t='.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;transition:background-color .1s;:where(.ag-toggle-button-input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-toggle-button-height);margin:0;max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);opacity:0}&:before{background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;content:"";display:block;height:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2);left:var(--ag-toggle-button-switch-inset);pointer-events:none;position:absolute;top:var(--ag-toggle-button-switch-inset);transition:left .1s;width:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2)}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color);&:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-switch-inset))}}&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{opacity:.5}}',m3=class extends g3{constructor(e){super(e,"ag-toggle-button"),this.registerCSS(P_t)}setValue(e,t){return super.setValue(e,t),this.toggleCss("ag-selected",this.getValue()),this}},D_t={selector:"AG-TOGGLE-BUTTON",component:m3},Im=class extends nx{constructor(e,t="ag-text-field",n="text"){super(e,t,n)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const n=this.eInput;return n.value!==e&&(n.value=Ut(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=n=>{yye(n)&&n.key&&!e.test(n.key)&&n.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:n=>{const r=n.clipboardData?.getData("text");r&&r.split("").some(i=>!e.test(i))&&n.preventDefault()}})}},Vf={selector:"AG-INPUT-TEXT-FIELD",component:Im},k_t=class extends nx{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const n=super.setValue(e,t);return this.eInput.value=e,n}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},L_t={selector:"AG-INPUT-TEXT-AREA",component:k_t},OK=class extends Im{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const o=parseFloat(e.value),a=isNaN(o)?"":this.normalizeValue(o.toString());this.value!==a&&this.setValue(a)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:n,max:r,step:i}=this.config;typeof t=="number"&&this.setPrecision(t),typeof n=="number"&&this.setMin(n),typeof r=="number"&&this.setMax(r),typeof i=="number"&&this.setStep(i)}onWheel(e){Gi(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));const t=parseFloat(e),{min:n,max:r}=this;return n!=null&&t<n?e=n.toString():r!=null&&t>r&&(e=r.toString()),e}adjustPrecision(e,t){const n=this.precision;if(n==null)return e;if(t){const i=parseFloat(e).toFixed(n);return parseFloat(i).toString()}const r=String(e).split(".");if(r.length>1){if(r[1].length<=n)return e;if(n>0)return`${r[0]}.${r[1].slice(0,n)}`}return r[0]}setMin(e){return this.min===e?this:(this.min=e,Af(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,Af(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,Af(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(n=>super.setValue(n,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,n){if(Ut(n)){let r=this.isScientificNotation(n);if(r&&this.eInput.validity.valid)return e(n);if(!r){n=this.adjustPrecision(n);const i=this.normalizeValue(n);r=n!=i}if(r)return t(n)}return e(n)}getValue(){const e=this.eInput;if(!e.validity.valid)return;const t=e.value;return this.isScientificNotation(t)?this.adjustPrecision(t,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},zK={selector:"AG-INPUT-NUMBER-FIELD",component:OK};function kN(e,t){return e.toString().padStart(t,"0")}function cp(e,t=!0,n="-"){if(!e)return null;let r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(i=>kN(i,2)).join(n);return t&&(r+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map(i=>kN(i,2)).join(":")),r}var tre=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function LN(e,t="YYYY-MM-DD"){const n=kN(e.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o={YYYY:()=>n.slice(n.length-4,n.length),YY:()=>n.slice(n.length-2,n.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>r[e.getMonth()],MMM:()=>r[e.getMonth()].slice(0,3),MM:()=>kN(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${tre(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${tre(e.getDate())}`,DD:()=>kN(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>i[e.getDay()],ddd:()=>i[e.getDay()].slice(0,3),dd:()=>i[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${tre(e.getDay())}`,d:()=>`${e.getDay()}`},a=new RegExp(Object.keys(o).join("|"),"g");return t.replace(a,s=>s in o?o[s]():s)}function h0(e){if(!e)return null;const[t,n]=e.split(" ");if(!t)return null;const r=t.split("-").map(d=>parseInt(d,10));if(r.filter(d=>!isNaN(d)).length!==3)return null;const[i,o,a]=r,s=new Date(i,o-1,a);if(s.getFullYear()!==i||s.getMonth()!==o-1||s.getDate()!==a)return null;if(!n||n==="00:00:00")return s;const[l,c,u]=n.split(":").map(d=>parseInt(d,10));return l>=0&&l<24&&s.setHours(l),c>=0&&c<60&&s.setMinutes(c),u>=0&&u<60&&s.setSeconds(u),s}var Ftt=class extends Im{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=yw();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){Gi(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?cp(e??null,!1)??void 0:e;return this.min===t?this:(this.min=t,Af(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?cp(e??null,!1)??void 0:e;return this.max===t?this:(this.max=t,Af(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,Af(this.eInput,"step",e),this)}getDate(){if(this.eInput.validity.valid)return h0(this.getValue())??void 0}setDate(e,t){this.setValue(cp(e??null,!1),t)}},Wtt={selector:"AG-INPUT-DATE-FIELD",component:Ftt},__t=1e3,N_t=1e3,OEe=100,zEe,GH=!1,F_t=class extends dt{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc,this.userCompFactory=e.userCompFactory}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){return e==="show"?this.tooltipCtrl.getTooltipShowDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipShowDelay"):this.tooltipCtrl.getTooltipHideDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!Cx()&&(GH?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},OEe):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,n=this.tooltipCtrl.getGui(),r=this.tooltipComp?.getGui();this.isInteractingWithTooltip||n.contains(t)||this.interactionEnabled&&r?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||GH)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-zEe<__t}setToDoNothing(e){!e&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!Ut(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip()){this.setToDoNothing();return}const n=t.getRowNode?.(),r=Vn(this.gos,{location:t.getLocation?.()??"UNKNOWN",colDef:t.getColDef?.(),column:t.getColumn?.(),rowIndex:t.getRowIndex?.(),node:n,data:n?.data,value:e,valueFormatted:t.getValueFormatted?.(),hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()??{}});this.state=2,this.tooltipInstanceCount++;const i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);TLt(this.userCompFactory,r)?.newAgStackInstance().then(i)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),zEe=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(this.state!==2||this.tooltipInstanceCount!==e){this.destroyBean(t);return}const r=t.getGui();this.tooltipComp=t,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&r.classList.add("ag-tooltip-animate"),this.interactionEnabled&&r.classList.add("ag-tooltip-interactive");const i=this.getLocaleTextFunc(),o=this.popupSvc?.addPopup({eChild:r,ariaLabel:i("ariaLabelTooltip","Tooltip")});if(o&&(this.tooltipPopupDestroyFunc=o.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const a=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:a,columnMoved:a})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(r,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(bl(this.beans),{keydown:a=>{r.contains(a?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(r,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:r,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){const e=this.tooltipComp?.getGui(),t=Gi(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,n=this.tooltipTrigger===0?N_t:0;window.setTimeout(()=>{e(),this.destroyBean(t)},n),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(e=>{e&&e()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){GH=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},OEe)}unlockService(){GH=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}};function _N(e){return e.get("tooltipShowMode")==="whenTruncated"}function TK(e,t){return _N(e)?NO(t):void 0}function NO(e){return()=>{const t=e();return t?t.scrollWidth>t.clientWidth:!0}}var W_t=class extends dt{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e){const t="title",n=this.ctrl.getGui();n&&(e!=null&&e!=""?n.setAttribute(t,e):n.removeAttribute(t))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){this.tooltipManager==null&&(this.tooltipManager=this.createBean(new F_t(this.ctrl,()=>this.tooltip),this.beans.context))}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},q_t=class extends Gt{constructor(e="default",t=!1){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.unFocusable=t,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()}),!this.unFocusable&&this.addManagedElementListeners(e,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){const t=e.key;switch(t){case Qe.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{const n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}break;case Qe.DOWN:case Qe.UP:e.preventDefault(),this.navigate(t);break;case Qe.PAGE_DOWN:case Qe.PAGE_UP:case Qe.PAGE_HOME:case Qe.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}navigate(e){const t=e===Qe.DOWN;let n;const{itemEls:r,highlightedEl:i}=this;if(!i)n=r[t?0:r.length-1];else{let a=r.indexOf(i)+(t?1:-1);a=Math.min(Math.max(a,0),r.length-1),n=r[a]}this.highlightItem(n)}navigateToPage(e){const{itemEls:t,highlightedEl:n}=this;if(!n||t.length===0)return;const r=t.indexOf(n),i=this.options.length-1,o=t[0].clientHeight,a=Math.floor(this.getGui().clientHeight/o);let s=-1;e===Qe.PAGE_HOME?s=0:e===Qe.PAGE_END?s=i:e===Qe.PAGE_DOWN?s=Math.min(r+a,i):e===Qe.PAGE_UP&&(s=Math.max(r-a,0)),s!==-1&&this.highlightItem(t[s])}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){const{value:t,text:n}=e,r=n??t;return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(e=>{Rs(e)}),this.itemEls=[],this.refreshAriaRole()}refreshAriaRole(){const e=this.getGui();C0(e,this.options.length===0?"presentation":"listbox")}updateIndices(){const e=this.getGui().querySelectorAll(".ag-list-item");this.refreshAriaRole(),e.forEach((t,n)=>{dK(t,n+1),uK(t,e.length)})}renderOption(e,t){const n=Nr({tag:"div",cls:`ag-list-item ag-${this.cssIdentifier}-list-item`,attrs:{role:"option"}}),r=Nr({tag:"span",children:t});n.appendChild(r),this.unFocusable||(n.tabIndex=-1),this.itemEls.push(n),this.addManagedListeners(n,{mouseover:()=>this.highlightItem(n),mousedown:i=>{i.preventDefault(),i.stopPropagation(),this.setValue(e)}}),this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getTooltipValue:()=>t,getGui:()=>n,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>r.scrollWidth>r.clientWidth})),this.getGui().appendChild(n)}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const n=this.options.findIndex(r=>r.value===e);if(n!==-1){const r=this.options[n];this.value=r.value,this.displayValue=r.text,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.itemEls[e])}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}highlightItem(e){if(!x0(e))return;this.clearHighlighted(),this.highlightedEl=e,e.classList.add(this.activeClass),sW(e,!0);const t=this.getGui(),{scrollTop:n,clientHeight:r}=t,{offsetTop:i,offsetHeight:o}=e;(i+o>n+r||i<n)&&e.scrollIntoView({block:"nearest"}),this.unFocusable||e.focus()}clearHighlighted(){const e=this.highlightedEl;!e||!x0(e)||(e.classList.remove(this.activeClass),sW(e,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},B_t=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:disabled{opacity:.5}&.ag-picker-has-focus,&:focus-within{background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow)}}",j_t={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},Tye=class extends ktt{constructor(e){if(super(e,e?.template||j_t,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=at,this.eWrapper=at,this.eDisplayField=at,this.eIcon=at,this.registerCSS(B_t),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:n,variableWidth:r,minPickerWidth:i,maxPickerWidth:o}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!r,n!=null&&this.setPickerMaxHeight(n),i!=null&&this.setPickerMinWidth(i),o!=null&&this.setPickerMaxWidth(o)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:n,inputWidth:r}=this.config;if(n){const i=er(n,this.beans);i&&this.eIcon.appendChild(i)}r!=null&&this.setInputWidth(r)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),d1(e,!1),this.ariaRole&&C0(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case Qe.UP:case Qe.DOWN:case Qe.ENTER:case Qe.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Qe.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:n,pickerAriaLabelValue:r,modalPicker:i=!0},maxPickerHeight:o,minPickerWidth:a,maxPickerWidth:s,variableWidth:l,beans:c,eWrapper:u}=this,d={modal:i,eChild:e,closeOnEsc:!0,closedCallback:()=>{const m=Gx(c);this.beforeHidePicker(),m&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(n,r),anchorToElement:u};e.style.position="absolute";const p=c.popupSvc,h=p.addPopup(d);l?(a&&(e.style.minWidth=a),e.style.width=U2e(fz(u)),s&&(e.style.maxWidth=s)):m$(e,s??fz(u));const g=o??`${hK(p.getPopupParent())}px`;return e.style.setProperty("max-height",g),this.alignPickerToComponent(),h.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:n,gos:r},eWrapper:i,pickerComponent:o}=this,a=r.get("enableRtl")?"right":"left";n.positionPopupByComponent({type:t,eventSource:i,ePopup:o.getGui(),position:"under",alignSide:a,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();d1(t,e);const n=this.eWrapper.classList;n.toggle("ag-picker-expanded",e),n.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker?.()}setInputWidth(e){return m$(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},H_t=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}",l1=class extends Tye{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(H_t)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:NO(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:n}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),n&&t==null&&(this.eDisplayField.textContent=n),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new q_t("select",!0));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),n=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",n),j2e(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:r=>{r?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(e){const{key:t}=e;switch(t===Qe.TAB&&this.hidePicker(),t){case Qe.ENTER:case Qe.UP:case Qe.DOWN:case Qe.PAGE_UP:case Qe.PAGE_DOWN:case Qe.PAGE_HOME:case Qe.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case Qe.ESCAPE:super.onKeyDown(e);break;case Qe.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}setValue(e,t,n){const{listComponent:r,config:{placeholder:i},eDisplayField:o,tooltipFeature:a}=this;if(this.value===e||!r)return this;if(n||r.setValue(e,!0),r.getValue()===this.getValue())return this;let l=r.getDisplayValue();return l==null&&i&&(l=i),o.textContent=l,a?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},v6={selector:"AG-SELECT",component:l1},FO={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},qtt=class extends dt{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:t,eTopGuard:n,eBottomGuard:r,focusTrapActive:i,forceFocusOutWhenTabGuardsAreEmpty:o,isFocusableContainer:a,focusInnerElement:s,onFocusIn:l,onFocusOut:c,shouldStopEventPropagation:u,onTabKeyDown:d,handleKeyDown:p,isEmpty:h,eFocusableElement:g}=e;this.comp=t,this.eTopGuard=n,this.eBottomGuard=r,this.providedFocusInnerElement=s,this.eFocusableElement=g,this.focusTrapActive=!!i,this.forceFocusOutWhenTabGuardsAreEmpty=!!o,this.isFocusableContainer=!!a,this.providedFocusIn=l,this.providedFocusOut=c,this.providedShouldStopEventPropagation=u,this.providedOnTabKeyDown=d,this.providedHandleKeyDown=p,this.providedIsEmpty=h}postConstruct(){this.createManagedBean(new Mw(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(e=>this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)}))}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&(this.providedIsEmpty?this.providedIsEmpty():lm(this.eFocusableElement,".ag-tab-guard").length===0)){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;!(this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t))&&this.forceFocusOutWhenTabGuardsAreEmpty&&this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}findNextElementOutsideAndFocus(e){const t=bl(this.beans),n=lm(t.body,null,!0),r=n.indexOf(e?this.eTopGuard:this.eBottomGuard);if(r===-1)return;let i,o;e?(i=0,o=r):(i=r+1,o=n.length);const a=n.slice(i,o),s=this.gos.get("tabIndex");a.sort((l,c)=>{const u=parseInt(l.getAttribute("tabindex")||"0"),d=parseInt(c.getAttribute("tabindex")||"0");return d===s?1:u===s?-1:u===0?1:d===0?-1:u-d}),a[e?a.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const n=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),n&&(n.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=lm(this.eFocusableElement);return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length?(t[e?t.length-1:0].focus({preventScroll:!0}),!0):!1}getNextFocusableElement(e){return Md(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},Btt=class extends dt{constructor(e){super(),this.comp=e}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:n,eFocusableElement:r}=this,i=[t,n],o={setTabIndex:v=>{i.forEach(y=>v!=null?y.setAttribute("tabindex",v):y.removeAttribute("tabindex"))}};this.addTabGuards(t,n);const{focusTrapActive:a=!1,onFocusIn:s,onFocusOut:l,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:d,shouldStopEventPropagation:p,isEmpty:h,forceFocusOutWhenTabGuardsAreEmpty:g,isFocusableContainer:m}=e;this.tabGuardCtrl=this.createManagedBean(new qtt({comp:o,focusTrapActive:a,eTopGuard:t,eBottomGuard:n,eFocusableElement:r,onFocusIn:s,onFocusOut:l,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:d,shouldStopEventPropagation:p,isEmpty:h,forceFocusOutWhenTabGuardsAreEmpty:g,isFocusableContainer:m}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=bl(this.beans).createElement("div"),n=e==="top"?FO.TAB_GUARD_TOP:FO.TAB_GUARD_BOTTOM;return t.classList.add(FO.TAB_GUARD,n),C0(t,"presentation"),t}addTabGuards(e,t){const n=this.eFocusableElement;n.insertAdjacentElement("afterbegin",e),n.insertAdjacentElement("beforeend",t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];Xi(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,n){gK(t)||(t=t.getGui());const{eBottomGuard:r}=this;r?r.insertAdjacentElement("beforebegin",t):e(t,n)}destroy(){const{eTopGuard:e,eBottomGuard:t}=this;Rs(e),Rs(t),super.destroy()}},Vb=class extends Gt{initialiseTabGuard(t){this.tabGuardFeature=this.createManagedBean(new Btt(this)),this.tabGuardFeature.initialiseTabGuard(t)}forceFocusOutOfContainer(t=!1){this.tabGuardFeature.forceFocusOutOfContainer(t)}appendChild(t,n){this.tabGuardFeature.appendChild(super.appendChild.bind(this),t,n)}},Cw=class extends Gt{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},sy=class{constructor(e,t=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new Wy,this.preventMouseClick=t;const n=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);e.addEventListener("touchstart",n,{passive:!0}),e.addEventListener("touchmove",r,{passive:!0}),e.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push(()=>{e.removeEventListener("touchstart",n,{passive:!0}),e.removeEventListener("touchmove",r,{passive:!0}),e.removeEventListener("touchend",i,{passive:!1})})}getActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}onTouchStart(e){if(this.touching)return;this.touchStart=e.touches[0],this.touching=!0,this.moved=!1;const t=this.touchStart;window.setTimeout(()=>{const n=this.touchStart===t;if(this.touching&&n&&!this.moved){this.moved=!0;const r={type:"longTap",touchStart:this.touchStart,touchEvent:e};this.localEventService.dispatchEvent(r)}},500)}onTouchMove(e){if(!this.touching)return;const t=this.getActiveTouch(e.touches);if(!t)return;!ctt(t,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(e){if(this.touching){if(!this.moved){const t={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(t),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}}checkForDoubleTap(){const e=Date.now();if(this.lastTapTime&&this.lastTapTime>0)if(e-this.lastTapTime>this.DOUBLE_TAP_MILLIS){const n={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(n),this.lastTapTime=null}else this.lastTapTime=e;else this.lastTapTime=e}destroy(){this.destroyFuncs.forEach(e=>e())}},hf=(e=>(e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION",e))(hf||{}),jtt=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${ret}/${this.frameworkName}-data-grid`,akt(this.baseDocLink)}setInterval(e,t){return new Dr(n=>{n(window.setInterval(e,t))})}addEventListener(e,t,n,r){let i={};if(typeof r=="object"?i=r:typeof r=="boolean"&&(i={capture:r}),i.passive==null){const o=Aet(t);o!=null&&(i.passive=o)}e.addEventListener(t,n,i)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return`${this.baseDocLink}${e?`/${e}`:""}`}};function V_t(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var G_t=["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","rowSpanSvc","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","funcColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"],TEe=Object.fromEntries(G_t.map((e,t)=>[e,t]));function $_t(e,t){const n=(e.beanName?TEe[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,r=(t.beanName?TEe[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return n-r}function U_t(e,t){return e?.beanName==="gridDestroySvc"?-1:t?.beanName==="gridDestroySvc"?1:0}var X_t={tag:"div",cls:"ag-pinned-left-header",role:"rowgroup"},Y_t={tag:"div",cls:"ag-pinned-right-header",role:"rowgroup"},K_t={tag:"div",cls:"ag-header-viewport",role:"presentation",attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eCenterContainer",cls:"ag-header-container",role:"rowgroup"}]},nre=class extends Gt{constructor(t){super(),this.eCenterContainer=at,this.headerRowComps={},this.rowCompsList=[],this.pinned=t}postConstruct(){this.selectAndSetTemplate();const t={setDisplayed:r=>this.setDisplayed(r),setCtrls:r=>this.setCtrls(r),setCenterWidth:r=>this.eCenterContainer.style.width=r,setViewportScrollLeft:r=>this.getGui().scrollLeft=r,setPinnedContainerWidth:r=>{const i=this.getGui();i.style.width=r,i.style.maxWidth=r,i.style.minWidth=r}};this.createManagedBean(new Ptt(this.pinned)).setComp(t,this.getGui())}selectAndSetTemplate(){const t=this.pinned=="left",n=this.pinned=="right",r=t?X_t:n?Y_t:K_t;this.setTemplate(r),this.eRowContainer=this.eCenterContainer!==at?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())}setCtrls(t){const n=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let r;const i=o=>{const a=o.getGui();a.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(a),r&&JJe(this.eRowContainer,a,r),r=a};t.forEach(o=>{const a=o.instanceId,s=n[a];delete n[a];const l=s||this.createBean(new e_t(o));this.headerRowComps[a]=l,this.rowCompsList.push(l),i(l)}),Object.values(n).forEach(o=>this.destroyRowComp(o))}},Q_t={tag:"div",cls:"ag-header",role:"presentation"},Z_t=class extends Gt{constructor(){super(Q_t)}postConstruct(){const t={toggleCss:(i,o)=>this.toggleCss(i,o),setHeightAndMinHeight:i=>{this.getGui().style.height=i,this.getGui().style.minHeight=i}};this.createManagedBean(new Rtt).setComp(t,this.getGui(),this.getFocusableElement());const r=i=>{this.createManagedBean(i),this.appendChild(i)};r(new nre("left")),r(new nre(null)),r(new nre("right"))}},J_t={selector:"AG-HEADER-ROOT",component:Z_t},e5t=class extends Gt{constructor(t,n,r,i,o){super(),this.cellCtrl=n,this.rendererVersion=0,this.editorVersion=0,this.beans=t,this.column=n.column,this.rowNode=n.rowNode,this.eRow=i;const a=Nr({tag:"div",role:n.getCellAriaRole(),attrs:{"comp-id":`${this.getCompId()}`,"col-id":n.column.colIdSanitised}});this.eCell=a;let s;n.isCellSpanning()?(s=Nr({tag:"div",cls:"ag-spanned-cell-wrapper",role:"presentation"}),s.appendChild(a),this.setTemplateFromElement(s)):this.setTemplateFromElement(a),this.cellCssManager=new dD(()=>a),this.forceWrapper=n.isForceWrapper(),this.refreshWrapper(!1);const l={toggleCss:(c,u)=>this.cellCssManager.toggleCss(c,u),setUserStyles:c=>p6(a,c),getFocusableElement:()=>a,setIncludeSelection:c=>this.includeSelection=c,setIncludeRowDrag:c=>this.includeRowDrag=c,setIncludeDndSource:c=>this.includeDndSource=c,setRenderDetails:(c,u,d)=>this.setRenderDetails(c,u,d),setEditDetails:(c,u,d)=>this.setEditDetails(c,u,d),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue()};n.setComp(l,a,s,this.eCellWrapper,r,o,void 0)}getParentOfValue(){return this.eCellValue??this.eCellWrapper??this.eCell}setRenderDetails(t,n,r){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=this.firstRender==null;const o=this.refreshWrapper(!1);this.refreshEditStyles(!1),t?!(r||o)&&this.refreshCellRenderer(t)||(this.destroyRenderer(),this.createCellRendererInstance(t)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(n))}setEditDetails(t,n,r){t?this.createCellEditorInstance(t,n,r):this.destroyEditor()}removeControls(){const t=this.beans.context;this.checkboxSelectionComp=t.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=t.destroyBean(this.dndSourceComp),this.rowDraggingComp=t.destroyBean(this.rowDraggingComp)}refreshWrapper(t){const n=this.includeRowDrag||this.includeDndSource||this.includeSelection,r=n||this.forceWrapper,i=r&&this.eCellWrapper==null;i&&(this.eCellWrapper=Nr({tag:"div",cls:"ag-cell-wrapper",role:"presentation"}),this.eCell.appendChild(this.eCellWrapper));const o=!r&&this.eCellWrapper!=null;o&&(Rs(this.eCellWrapper),this.eCellWrapper=void 0),this.cellCssManager.toggleCss("ag-cell-value",!r);const a=!t&&r,s=a&&this.eCellValue==null;s&&(this.eCellValue=Nr({tag:"span",cls:"ag-cell-value",role:"presentation"}),this.eCellWrapper.appendChild(this.eCellValue));const l=!a&&this.eCellValue!=null;l&&(Rs(this.eCellValue),this.eCellValue=void 0);const c=i||o||s||l;return c&&this.removeControls(),!t&&n&&this.addControls(),c}addControls(){const{cellCtrl:t,eCellWrapper:n,eCellValue:r,includeRowDrag:i,includeDndSource:o,includeSelection:a}=this,s=l=>{l&&n.insertBefore(l.getGui(),r)};i&&this.rowDraggingComp==null&&(this.rowDraggingComp=t.createRowDragComp(),s(this.rowDraggingComp)),o&&this.dndSourceComp==null&&(this.dndSourceComp=t.createDndSource(),s(this.dndSourceComp)),a&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=t.createSelectionCheckbox(),s(this.checkboxSelectionComp))}createCellEditorInstance(t,n,r){const i=this.editorVersion,o=t.newAgStackInstance(),{params:a}=t;o.then(l=>this.afterCellEditorCreated(i,l,a,n,r)),Yi(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(t){const n=this.getParentOfValue();Xi(n);const r=Df(t);r!=null&&(n.textContent=r)}destroyRenderer(){const{context:t}=this.beans;this.cellRenderer=t.destroyBean(this.cellRenderer),Rs(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){const{context:t}=this.beans;(this.cellEditorPopupWrapper?.getGui().contains(Gi(this.beans))||this.cellCtrl.hasBrowserFocus())&&this.eCell.focus({preventScroll:!0}),this.hideEditorPopup?.(),this.hideEditorPopup=void 0,this.cellEditor=t.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=t.destroyBean(this.cellEditorPopupWrapper),Rs(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(t){if(this.cellRenderer?.refresh==null||this.cellRendererClass!==t.componentClass)return!1;const n=this.cellRenderer.refresh(t.params);return n===!0||n===void 0}createCellRendererInstance(t){const n=this.rendererVersion,{componentClass:r}=t,i=()=>{if(this.rendererVersion!==n||!this.isAlive())return;const s=t.newAgStackInstance(),l=this.afterCellRendererCreated.bind(this,n,r);s?.then(l)},{animationFrameSvc:o}=this.beans;o?.active&&this.firstRender?o.createTask(i,this.rowNode.rowIndex,"p2",t.componentFromFramework):i()}afterCellRendererCreated(t,n,r){if(!this.isAlive()||t!==this.rendererVersion){this.beans.context.destroyBean(r);return}this.cellRenderer=r,this.cellRendererClass=n;const o=r.getGui();if(this.cellRendererGui=o,o!=null){const a=this.getParentOfValue();Xi(a),a.appendChild(o)}}afterCellEditorCreated(t,n,r,i,o){const a=t!==this.editorVersion,{context:s}=this.beans;if(a){s.destroyBean(n);return}if(n.isCancelBeforeStart&&n.isCancelBeforeStart()){s.destroyBean(n),this.cellCtrl.stopEditing(!0);return}if(!n.getGui){ut(97,{colId:this.column.getId()}),s.destroyBean(n);return}this.cellEditor=n,this.cellEditorGui=n.getGui();const c=i||n.isPopup!==void 0&&n.isPopup();c?this.addPopupCellEditor(r,o):this.addInCellEditor(),this.refreshEditStyles(!0,c),n.afterGuiAttached?.(),this.cellCtrl.cellEditorAttached()}refreshEditStyles(t,n){const{cellCssManager:r}=this;r.toggleCss("ag-cell-inline-editing",t&&!n),r.toggleCss("ag-cell-popup-editing",t&&!!n),r.toggleCss("ag-cell-not-inline-editing",!t||!!n),this.cellCtrl.setInlineEditingCss()}addInCellEditor(){const{eCell:t}=this;t.contains(Gi(this.beans))&&t.focus(),this.destroyRenderer(),this.refreshWrapper(!0),Xi(this.getParentOfValue()),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(t,n){const{gos:r,context:i,editSvc:o,popupSvc:a,localeSvc:s}=this.beans;r.get("editType")==="fullRow"&&ut(98);const l=this.cellEditor;this.cellEditorPopupWrapper=i.createBean(o.createPopupEditorWrapper(t));const c=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&c.appendChild(this.cellEditorGui);const u=r.get("stopEditingWhenCellsLoseFocus"),d=n??l.getPopupPosition?.()??"over",p=r.get("enableRtl"),h={ePopup:c,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.eCell,position:d,alignSide:p?"right":"left",keepWithinBounds:!0},g=a.positionPopupByComponent.bind(a,h),m=F2e(s),v=a.addPopup({modal:u,eChild:c,closeOnEsc:!0,closedCallback:()=>{this.cellCtrl.onPopupEditorClosed()},anchorToElement:this.eCell,positionCallback:g,ariaLabel:m("ariaLabelCellEditor","Cell Editor")});v&&(this.hideEditorPopup=v.hideFunc)}detach(){this.eRow.removeChild(this.getGui())}destroy(){this.cellCtrl.stopEditing(),this.destroyRenderer(),this.destroyEditor(),this.removeControls(),super.destroy()}},t5t=class extends Gt{constructor(t,n,r){super(),this.cellComps=new Map,this.beans=n,this.rowCtrl=t;const i=Nr({tag:"div",role:"row",attrs:{"comp-id":`${this.getCompId()}`}});this.setInitialStyle(i,r),this.setTemplateFromElement(i);const o=i.style;this.domOrder=this.rowCtrl.getDomOrder();const a={setDomOrder:s=>this.domOrder=s,setCellCtrls:s=>this.setCellCtrls(s),showFullWidth:s=>this.showFullWidth(s),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,toggleCss:(s,l)=>this.toggleCss(s,l),setUserStyles:s=>p6(i,s),setTop:s=>o.top=s,setTransform:s=>o.transform=s,setRowIndex:s=>i.setAttribute("row-index",s),setRowId:s=>i.setAttribute("row-id",s),setRowBusinessKey:s=>i.setAttribute("row-business-key",s),refreshFullWidth:s=>this.fullWidthCellRenderer?.refresh?.(s())??!1};t.setComp(a,this.getGui(),r,void 0),this.addDestroyFunc(()=>{t.unsetComp(r)})}setInitialStyle(t,n){const r=this.rowCtrl.getInitialTransform(n);if(r)t.style.setProperty("transform",r);else{const i=this.rowCtrl.getInitialRowTop(n);i&&t.style.setProperty("top",i)}}showFullWidth(t){const n=i=>{if(this.isAlive()){const o=i.getGui();this.getGui().appendChild(o),this.rowCtrl.setupDetailRowAutoHeight(o),this.setFullWidthRowComp(i)}else this.beans.context.destroyBean(i)};t.newAgStackInstance().then(n)}setCellCtrls(t){const n=new Map(this.cellComps);for(const r of t){const i=r.instanceId;this.cellComps.has(i)?n.delete(i):this.newCellComp(r)}this.destroyCells(n),this.ensureDomOrder(t)}ensureDomOrder(t){if(!this.domOrder)return;const n=[];for(const r of t){const i=this.cellComps.get(r.instanceId);i&&n.push(i.getGui())}eet(this.getGui(),n)}newCellComp(t){const n=new e5t(this.beans,t,this.rowCtrl.printLayout,this.getGui(),this.rowCtrl.editing);this.cellComps.set(t.instanceId,n),this.getGui().appendChild(n.getGui())}destroy(){super.destroy(),this.destroyCells(this.cellComps)}setFullWidthRowComp(t){this.fullWidthCellRenderer=t,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer)})}destroyCells(t){for(const n of t.values()){if(!n)return;const r=n.cellCtrl.instanceId;if(this.cellComps.get(r)!==n)return;n.detach(),n.destroy(),this.cellComps.delete(r)}}};function n5t(e,t,n){const r=!!n.gos.get("enableCellSpan")&&!!t.getSpannedRowCtrls,i={tag:"div",ref:"eContainer",cls:PN(e),role:"rowgroup"};if(t.type==="center"||r){const o={tag:"div",ref:"eSpannedContainer",cls:`ag-spanning-container ${ytt(e)}`,role:"rowgroup"};return{tag:"div",ref:"eViewport",cls:`ag-viewport ${Mye(e)}`,role:"presentation",children:[i,r?o:null]}}return i}var r5t=class extends Gt{constructor(t){super(),this.eViewport=at,this.eContainer=at,this.eSpannedContainer=at,this.rowCompsNoSpan={},this.rowCompsWithSpan={},this.name=t?.name,this.options=pD(this.name)}postConstruct(){this.setTemplate(n5t(this.name,this.options,this.beans));const t={setHorizontalScroll:r=>this.eViewport.scrollLeft=r,setViewportHeight:r=>this.eViewport.style.height=r,setRowCtrls:({rowCtrls:r})=>this.setRowCtrls(r),setSpannedRowCtrls:r=>this.setRowCtrls(r,!0),setDomOrder:r=>{this.domOrder=r},setContainerWidth:r=>{this.eContainer.style.width=r,this.eSpannedContainer&&(this.eSpannedContainer.style.width=r)},setOffsetTop:r=>{const i=`translateY(${r})`;this.eContainer.style.transform=i,this.eSpannedContainer&&(this.eSpannedContainer.style.transform=i)}};this.createManagedBean(new xtt(this.name)).setComp(t,this.eContainer,this.eSpannedContainer,this.eViewport)}destroy(){this.setRowCtrls([]),this.setRowCtrls([],!0),super.destroy(),this.lastPlacedElement=null}setRowCtrls(t,n){const{beans:r,options:i}=this,o=n?this.eSpannedContainer:this.eContainer,a=n?{...this.rowCompsWithSpan}:{...this.rowCompsNoSpan},s={};n?this.rowCompsWithSpan=s:this.rowCompsNoSpan=s,this.lastPlacedElement=null;const l=[];for(const c of t){const u=c.instanceId,d=a[u];let p;if(d)p=d,delete a[u];else{if(!c.rowNode.displayed)continue;p=new t5t(c,r,i.type)}s[u]=p,l.push([p,!d])}this.removeOldRows(Object.values(a),o),this.addRowNodes(l,o)}addRowNodes(t,n){const{domOrder:r}=this;for(const[i,o]of t){const a=i.getGui();r?this.ensureDomOrder(a,n):o&&n.appendChild(a)}}removeOldRows(t,n){for(const r of t)n.removeChild(r.getGui()),r.destroy()}ensureDomOrder(t,n){JJe(n,t,this.lastPlacedElement),this.lastPlacedElement=t}},i5t={selector:"AG-ROW-CONTAINER",component:r5t};function YL(e,t){return t.map(n=>{const r=`e${n[0].toUpperCase()+n.substring(1)}RowContainer`;return e[r]={name:n},{tag:"ag-row-container",ref:r,attrs:{name:n}}})}function o5t(e){const t={},n={tag:"div",ref:"eGridRoot",cls:"ag-root ag-unselectable",children:[{tag:"ag-header-root"},{tag:"div",ref:"eTop",cls:"ag-floating-top",role:"presentation",children:YL(t,["topLeft","topCenter","topRight","topFullWidth"])},{tag:"div",ref:"eBody",cls:"ag-body",role:"presentation",children:[{tag:"div",ref:"eBodyViewport",cls:"ag-body-viewport",role:"presentation",children:YL(t,["left","center","right","fullWidth"])},{tag:"ag-fake-vertical-scroll"}]},{tag:"div",ref:"eStickyTop",cls:"ag-sticky-top",role:"presentation",children:YL(t,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])},{tag:"div",ref:"eStickyBottom",cls:"ag-sticky-bottom",role:"presentation",children:YL(t,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])},{tag:"div",ref:"eBottom",cls:"ag-floating-bottom",role:"presentation",children:YL(t,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])},{tag:"ag-fake-horizontal-scroll"},e?{tag:"ag-overlay-wrapper"}:null]};return{paramsMap:t,elementParams:n}}var a5t=class extends Gt{constructor(){super(...arguments),this.eGridRoot=at,this.eBodyViewport=at,this.eStickyTop=at,this.eStickyBottom=at,this.eTop=at,this.eBottom=at,this.eBody=at}postConstruct(){const{overlays:t,rangeSvc:n}=this.beans,r=t?.getOverlayWrapperSelector(),{paramsMap:i,elementParams:o}=o5t(!!r);this.setTemplate(o,[...r?[r]:[],j4t,V4t,J_t,i5t],i);const a=(l,c)=>{const u=`${l}px`;c.style.minHeight=u,c.style.height=u},s={setRowAnimationCssOnBodyViewport:(l,c)=>this.setRowAnimationCssOnBodyViewport(l,c),setColumnCount:l=>BJe(this.getGui(),l),setRowCount:l=>qJe(this.getGui(),l),setTopHeight:l=>a(l,this.eTop),setBottomHeight:l=>a(l,this.eBottom),setTopInvisible:l=>this.eTop.classList.toggle("ag-invisible",l),setBottomInvisible:l=>this.eBottom.classList.toggle("ag-invisible",l),setStickyTopHeight:l=>this.eStickyTop.style.height=l,setStickyTopTop:l=>this.eStickyTop.style.top=l,setStickyTopWidth:l=>this.eStickyTop.style.width=l,setStickyBottomHeight:l=>{this.eStickyBottom.style.height=l,this.eStickyBottom.classList.toggle("ag-invisible",l==="0px")},setStickyBottomBottom:l=>this.eStickyBottom.style.bottom=l,setStickyBottomWidth:l=>this.eStickyBottom.style.width=l,setColumnMovingCss:(l,c)=>this.toggleCss(l,c),updateLayoutClasses:(l,c)=>{const u=[this.eBodyViewport.classList,this.eBody.classList];for(const d of u)d.toggle(Vg.AUTO_HEIGHT,c.autoHeight),d.toggle(Vg.NORMAL,c.normal),d.toggle(Vg.PRINT,c.print);this.toggleCss(Vg.AUTO_HEIGHT,c.autoHeight),this.toggleCss(Vg.NORMAL,c.normal),this.toggleCss(Vg.PRINT,c.print)},setAlwaysVerticalScrollClass:(l,c)=>this.eBodyViewport.classList.toggle(wtt,c),registerBodyViewportResizeListener:l=>{const c=Hf(this.beans,this.eBodyViewport,l);this.addDestroyFunc(()=>c())},setPinnedTopBottomOverflowY:l=>this.eTop.style.overflowY=this.eBottom.style.overflowY=l,setCellSelectableCss:(l,c)=>{[this.eTop,this.eBodyViewport,this.eBottom].forEach(u=>u.classList.toggle(l,c))},setBodyViewportWidth:l=>this.eBodyViewport.style.width=l,setGridRootRole:l=>C0(this.eGridRoot,l)};this.ctrl=this.createManagedBean(new Stt),this.ctrl.setComp(s,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(n&&r1(this.gos)||By(this.gos))&&UDt(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(t,n){const r=this.eBodyViewport.classList;r.toggle("ag-row-animation",n),r.toggle("ag-row-no-animation",!n)}},s5t={selector:"AG-GRID-BODY",component:a5t},Htt=class extends dt{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,n){this.view=e,this.eGridHostDiv=t,this.eGui=n,this.eGui.setAttribute("grid-id",this.beans.context.getGridId());const{dragAndDrop:r,ctrlsSvc:i}=this.beans;r?.registerGridDropTarget(()=>this.eGui,this),ott(this.gos,t),this.createManagedBean(new mye(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const o=Hf(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>o()),i.register("gridCtrl",this)}isDetailGrid(){return uye(this.getGui())?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){const e=this.beans;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:e.registry.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:e.registry?.getSelector("AG-STATUS-BAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){this.view.setCursor(e?"ew-resize":null)}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:n,nextIndex:r}=this.getNextFocusableIndex(t,e);if(r<0||r>=t.length)return!1;if(r===0){if(n>0){const{visibleCols:i,focusSvc:o}=this.beans,a=i.allCols,s=zr(a);if(o.focusGridView({column:s,backwards:!0}))return!0}return!1}return this.focusContainer(t[r],e)}focusInnerElement(e){const t=this.gos.getCallback("focusGridInnerElement");if(t&&t({fromBottom:!!e}))return!0;const n=this.getFocusableContainers(),{focusSvc:r,visibleCols:i}=this.beans,o=i.allCols;if(e){if(n.length>1)return this.focusContainer(zr(n),e);const a=zr(o);if(r.focusGridView({column:a,backwards:e}))return!0}if(this.gos.get("headerHeight")===0||_O(this.beans)){if(r.focusGridView({column:o[0],backwards:e}))return!0;for(let a=1;a<n.length;a++)if(zu(n[a].getGui(),e))return!0;return!1}return r.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{nextIndex:n,indexWithFocus:r}=this.getNextFocusableIndex(t,e);if(r===-1||n<0||n>=t.length)return;const i=t[n];i.setAllowFocus?.(!0),setTimeout(()=>{i.setAllowFocus?.(!1)})}isFocusable(){const e=this.beans;return!xK(e)||!_O(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const n=Gi(this.beans),r=e.findIndex(o=>o.getGui().contains(n)),i=r+(t?-1:1);return{indexWithFocus:r,nextIndex:i}}focusContainer(e,t){e.setAllowFocus?.(!0);const n=zu(e.getGui(),t,!1,!0);return e.setAllowFocus?.(!1),n}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},l5t=class extends Vb{constructor(t){super(),this.gridBody=at,this.sideBar=at,this.pagination=at,this.rootWrapperBody=at,this.eGridDiv=t}postConstruct(){const t={destroyGridUi:()=>this.destroyBean(this),setRtlClass:a=>this.addCss(a),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:a=>{this.getGui().style.userSelect=a??"",this.getGui().style.webkitUserSelect=a??""},setCursor:a=>{this.getGui().style.cursor=a??""}},n=this.createManagedBean(new Htt),r=n.getOptionalSelectors(),i=this.createTemplate(r),o=[s5t,...Object.values(r).filter(a=>!!a)];this.setTemplate(i,o),n.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:a=>n.focusInnerElement(a),forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:()=>!n.isFocusable()})}insertGridIntoDom(){const t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc(()=>{this.eGridDiv.removeChild(t),Vx(this.gos,"Grid removed from DOM")})}updateLayoutClasses(t,n){const r=this.rootWrapperBody.classList,{AUTO_HEIGHT:i,NORMAL:o,PRINT:a}=Vg,{autoHeight:s,normal:l,print:c}=n;r.toggle(i,s),r.toggle(o,l),r.toggle(a,c),this.toggleCss(i,s),this.toggleCss(o,l),this.toggleCss(a,c)}createTemplate(t){const n=t.gridHeaderDropZonesSelector?{tag:"ag-grid-header-drop-zones"}:null,r=t.sideBarSelector?{tag:"ag-side-bar",ref:"sideBar"}:null,i=t.statusBarSelector?{tag:"ag-status-bar"}:null,o=t.watermarkSelector?{tag:"ag-watermark"}:null,a=t.paginationSelector?{tag:"ag-pagination",ref:"pagination"}:null;return{tag:"div",cls:"ag-root-wrapper",role:"presentation",children:[n,{tag:"div",ref:"rootWrapperBody",cls:"ag-root-wrapper-body",role:"presentation",children:[{tag:"ag-grid-body",ref:"gridBody"},r]},i,a,o]}}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(t=!1){if(!t&&this.pagination?.isDisplayed()){this.pagination.forceFocusOutOfContainer(t);return}super.forceFocusOutOfContainer(t)}getFocusableContainers(){const t=[this.gridBody];return[this.sideBar,this.pagination].forEach(n=>{n&&t.push(n)}),t.filter(n=>x0(n.getGui()))}},Ei=(e,t)=>{for(const n of Object.keys(t))t[n]=e;return t},EEe={dispatchEvent:"CommunityCore",...Ei("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...Ei("GridState",{getState:0}),...Ei("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...Ei("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...Ei("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...Ei("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...Ei("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...Ei("ValueCache",{expireValueCache:0}),...Ei("CellApi",{getCellValue:0}),...Ei("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...Ei("Sort",{onSortChanged:0}),...Ei("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...Ei("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...Ei("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...Ei("HighlightChanges",{flashCells:0}),...Ei("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0}),...Ei("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0}),...Ei("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...Ei("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...Ei("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...Ei("ColumnResize",{setColumnWidths:0}),...Ei("ColumnHover",{isColumnHovered:0}),...Ei("EditCore",{getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0}),...Ei("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...Ei("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...Ei("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0}),...Ei("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...Ei("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...Ei("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...Ei("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,onRowHeightChanged:0}),...Ei("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...Ei("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0}),...Ei("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...Ei("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...Ei("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...Ei("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...Ei("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...Ei("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...Ei("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...Ei("ContextMenu",{showContextMenu:0}),...Ei("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...Ei("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...Ei("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...Ei("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...Ei("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...Ei("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0}),...Ei("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...Ei("StatusBar",{getStatusPanel:0})},rre={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},c5t=(e,t)=>e.eventSvc.dispatchEvent(t),Vtt=class{};Reflect.defineProperty(Vtt,"name",{value:"GridApi"});var u5t=class extends dt{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new Vtt,this.fns={...rre,dispatchEvent:c5t},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(EEe))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:n,beans:r}=this;n!==rre&&(n[e]=r?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:n,fns:{[e]:r}}=this;return r?r(n,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:n,preDestroyLink:r}=this;if(!t)ut(26,{fnName:e,preDestroyLink:r});else{const i=EEe[e];n.assertModuleRegistered(i,`api.${e}`)&&ut(27,{fnName:e,module:i})}}destroy(){super.destroy(),this.fns=rre,this.beans=null}};function d5t(e){return e.context.getGridId()}function p5t(e){e.gridDestroySvc.destroy()}function h5t(e){return e.gridDestroySvc.destroyCalled}function f5t(e,t){return e.gos.get(t)}function g5t(e,t,n){Gtt(e,{[t]:n})}function Gtt(e,t){e.gos.updateGridOptions({options:t})}function m5t(e,t){const n=t.replace(/Module$/,"");return e.gos.isModuleRegistered(n)}var v5t={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}},b5t=class extends Gt{constructor(e,t,n){super(v5t),this.rowNode=e,this.column=t,this.eCell=n}postConstruct(){this.getGui().appendChild(er("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",t=>{t.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const{rowNode:t,column:n,eCell:r,gos:i}=this,o=n.getColDef().dndSourceOnRowDrag,a=e.dataTransfer;if(a.setDragImage(r,0,0),o){const s=Vn(i,{rowNode:t,dragEvent:e});o(s)}else try{const s=JSON.stringify(t.data);a.setData("application/json",s),a.setData("text/plain",s)}catch{}}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}};function y5t(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)}function M5t(e,t){const n=e.dragAndDrop?.findExternalZone(t);n&&e.dragAndDrop?.removeDropTarget(n)}function C5t(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)}var x5t=class extends dt{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(e){const t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:n}=this.beans;return n.addDragSource(t),()=>n.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const n=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(n)}setResizeIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!0),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}},w5t={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},S5t=class extends Gt{constructor(e,t,n,r,i,o){super(),this.cellValueFn=e,this.rowNode=t,this.column=n,this.customGui=r,this.dragStartPixels=i,this.suppressVisibilityChange=o,this.dragSource=null}isCustomGui(){return this.customGui!=null}postConstruct(){const{beans:e,rowNode:t,column:n,gos:r}=this;if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(w5t),this.getGui().appendChild(er("rowDrag",e,null)),this.addDragSource()),!this.suppressVisibilityChange){const i=r.get("rowDragManaged")?new O5t(this,t,n):new A5t(this,t,n);this.createManagedBean(i,this.beans.context)}}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}getSelectedNodes(){const e=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[e];const n=this.beans.selectionSvc?.getSelectedNodes()??[];return n.indexOf(e)!==-1?n:[e]}getDragItem(){const{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(e){if(e){const t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gos.get("rowDragText")}addDragSource(e=4){this.dragSource&&this.removeDragSource();const t=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(t,{mousedown:r=>{r?.preventDefault()}})[0]);const n=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:()=>{const r=this.getDragItem(),i=r.rowNodes?.length||1,o=this.getRowDragText(this.column);return o?o(r,i):i===1?this.cellValueFn():`${i} ${n("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},$tt=class extends dt{constructor(e,t,n){super(),this.parent=e,this.rowNode=t,this.column=n}setDisplayedOrVisible(e){const t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{let n=!0,r=!1;const{column:i,rowNode:o,parent:a}=this;i&&(n=i.isRowDrag(o)||a.isCustomGui(),r=typeof i.getColDef().rowDrag=="function"),r?(a.setDisplayed(!0,t),a.setVisible(n,t)):(a.setDisplayed(n,t),a.setVisible(!0,t))}}},A5t=class extends $tt{postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this));const e=this.workOutVisibility.bind(this);this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:e}),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const e=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(e)}},O5t=class extends $tt{postConstruct(){const e=this.workOutVisibility.bind(this);this.addManagedListeners(this.beans.eventSvc,{sortChanged:e,filterChanged:e,columnRowGroupChanged:e,newColumnsLoaded:e}),this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const{rowDragSvc:e,dragAndDrop:t,gos:n}=this.beans,r=e.rowDragFeature,i=r&&r.shouldPreventRowMove(),o=n.get("suppressRowDrag"),a=t.hasExternalDropZones(),s=i&&!a||o;this.setDisplayedOrVisible(s)}},z5t=class extends dt{constructor(){super(...arguments),this.beanName="rowDragSvc"}setupRowDrag(e,t){const n=t.createManagedBean(new d4t(e)),r=this.beans.dragAndDrop;r.addDropTarget(n),t.addDestroyFunc(()=>r.removeDropTarget(n)),this.rowDragFeature=n}createRowDragComp(e,t,n,r,i,o){return new S5t(e,t,n,r,i,o)}createRowDragCompForRow(e,t){if(r1(this.gos))return;const n=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${n("rowDragRow","row")}`,e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,n,r,i,o){const a=this.gos;return a.get("rowDragManaged")&&(!oa(a)||a.get("pagination"))?void 0:this.createRowDragComp(n,e,t,r,i,o)}},Eye={moduleName:"Drag",version:Jn,beans:[p4t]},T5t={moduleName:"DragAndDrop",version:Jn,dynamicBeans:{dndSourceComp:b5t},icons:{rowDrag:"grip"}},v3={moduleName:"SharedDragAndDrop",version:Jn,beans:[s4t],dependsOn:[Eye],userComponents:{agDragAndDropImage:d_t},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},E5t={moduleName:"RowDrag",version:Jn,beans:[z5t],apiFunctions:{addRowDropZone:y5t,removeRowDropZone:M5t,getRowDropZoneParams:C5t},dependsOn:[v3]},Utt={moduleName:"HorizontalResize",version:Jn,beans:[x5t],dependsOn:[Eye]},R5t=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}",I5t=class extends dt{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){if(this.active)return;const{gos:e}=this;e.get("suppressColumnMoveAnimation")||e.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount,{gridBodyCtrl:t}=this;t.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&t.setColumnMovingCss(!1)})}flush(e,t){const{executeNextFuncs:n,executeLaterFuncs:r}=this;if(n.length===0&&r.length===0){e(),t();return}const i=o=>{for(;o.length;){const a=o.pop();a&&a()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),i(n)},0),window.setTimeout(()=>{t(),i(r)},200)})}};function P5t(e,t,n){e.colMoves?.moveColumnByIndex(t,n,"api")}function D5t(e,t,n){e.colMoves?.moveColumns(t,n,"api")}var k5t=class extends dt{constructor(e){super(),this.pinned=e,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;t&&t.forEach(n=>{n.isPrimary()&&(n.isAnyFunctionActive()||(n.isAllowValue()?this.columnsToAggregate.push(n):n.isAllowRowGroup()?this.columnsToGroup.push(n):n.isAllowPivot()&&this.columnsToPivot.push(n)))})}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){const{valueColsSvc:t,rowGroupColsSvc:n,pivotColsSvc:r}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&n?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&r?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function L5t(e,t){!t||t.length<=1||t.filter(r=>e.indexOf(r)<0).length>0||t.sort((r,i)=>{const o=e.indexOf(r),a=e.indexOf(i);return o-a})}function Xtt(e){const{isFromHeader:t,fromLeft:n,xPosition:r,fromEnter:i,fakeEvent:o,pinned:a,gos:s,colModel:l,colMoves:c,visibleCols:u}=e;let{allMovingColumns:d}=e;if(t){const w=[];d.forEach(S=>{let A=null,z=S.getParent();for(;z!=null&&z.getDisplayedLeafColumns().length===1;)A=z,z=z.getParent();A!=null?(!!A.getColGroupDef()?.marryChildren?A.getProvidedColumnGroup().getLeafColumns():A.getLeafColumns()).forEach(I=>{w.includes(I)||w.push(I)}):w.includes(S)||w.push(S)}),d=w}const p=d.slice();L5t(l.getCols(),p);const h=W5t({movingCols:p,draggingRight:n,xPosition:r,pinned:a,gos:s,colModel:l,visibleCols:u}),g=_5t(p,l);if(h.length===0)return;const m=h[0];let v=g!==null&&!i;if(t&&(v=g!==null),v&&!o&&(!n&&m>=g||n&&m<=g))return;const y=u.allCols,M=[];let C=null;for(let w=0;w<h.length;w++){const S=h[w],A=c.getProposedColumnOrder(p,S);if(!c.doesOrderPassRules(A))continue;const z=A.filter(T=>y.includes(T));if(C===null)C=z;else if(!yd(z,C))break;const O=N5t(A);M.push({move:S,fragCount:O})}if(M.length===0)return;M.sort((w,S)=>w.fragCount-S.fragCount);const x=M[0].move;if(!(x>l.getCols().length-d.length))return{columns:d,toIndex:x}}function Ytt(e){const{columns:t,toIndex:n}=Xtt(e)||{},{finished:r,colMoves:i}=e;return!t||n==null?null:(i.moveColumns(t,n,"uiColumnMoved",r),r?null:{columns:t,toIndex:n})}function _5t(e,t){const n=t.getCols(),r=e.map(l=>n.indexOf(l)).sort((l,c)=>l-c),i=r[0];return zr(r)-i!==r.length-1?null:i}function N5t(e){function t(r){const i=[];let o=r.getOriginalParent();for(;o!=null;)i.push(o),o=o.getOriginalParent();return i}let n=0;for(let r=0;r<e.length-1;r++){let i=t(e[r]),o=t(e[r+1]);[i,o]=i.length>o.length?[i,o]:[o,i],i.forEach(a=>{o.indexOf(a)===-1&&n++})}return n}function F5t(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}function W5t(e){const{movingCols:t,draggingRight:n,xPosition:r,pinned:i,gos:o,colModel:a,visibleCols:s}=e;if(o.get("suppressMovableColumns")||t.some(C=>C.getColDef().suppressMovable))return[];const c=F5t(s,i),u=a.getCols(),d=c.filter(C=>t.includes(C)),p=c.filter(C=>!t.includes(C)),h=u.filter(C=>!t.includes(C));let g=0,m=r;if(n){let C=0;d.forEach(x=>C+=x.getActualWidth()),m-=C}if(m>0){for(let C=0;C<p.length;C++){const x=p[C];if(m-=x.getActualWidth(),m<0)break;g++}n&&g++}let v;if(g>0){const C=p[g-1];v=h.indexOf(C)+1}else v=h.indexOf(p[0]),v===-1&&(v=0);const y=[v],M=(C,x)=>C-x;if(n){let C=v+1;const x=u.length-1;for(;C<=x;)y.push(C),C++;y.sort(M)}else{let C=v;const x=u.length-1;let w=u[C];for(;C<=x&&c.indexOf(w)<0;)C++,y.push(C),w=u[C];C=v-1;const S=0;for(;C>=S;)y.push(C),C--;y.sort(M).reverse()}return y}function hhe(e){const{pinned:t,fromKeyboard:n,gos:r,ctrlsSvc:i,useHeaderRow:o,skipScrollPadding:a}=e;let s=i.getHeaderRowContainerCtrl(t)?.eViewport,{x:l}=e;return s?(n&&(l-=s.getBoundingClientRect().left),r.get("enableRtl")&&(o&&(s=s.querySelector(".ag-header-row")),l=s.clientWidth-l),t==null&&!a&&(l+=i.get("center").getCenterViewportScrollLeft()),l):0}function ire(e,t){for(const n of e)n.moving=t,n.dispatchColEvent("movingChanged","uiColumnMoved")}var REe=7,fhe=100,$H=fhe/2,q5t=5,B5t=100,j5t=class extends dt{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!Ut(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:n}=t||{},r=n?.columns??[];for(const i of r){const o=i.getPinned();if(i.getColDef().lockPinned){if(o==e)return"move";continue}const a=n?.containerType;if(a===e||!e)return"move";if(e&&(!o||a!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,n=t.columns;if(e.dragSource.type===0)this.setColumnsVisible(n,!0,"uiColumnDragged");else{const i=t.visibleState,o=(n||[]).filter(a=>i[a.getId()]);this.setColumnsVisible(o,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(n,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,n=!1,r=!1){const{gos:i,ctrlsSvc:o}=this.beans,a=i.get("suppressMoveWhenColumnDragging");if(r&&!a){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!r&&Yi(e.hDirection))return;const s=hhe({x:e.x,pinned:this.pinned,gos:i,ctrlsSvc:o});t||this.checkCenterForScrolling(s),a?this.handleColumnDragWhileSuppressingMovement(e,t,n,s,r):this.handleColumnDragWhileAllowingMovement(e,t,n,s,r)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.updateDragItemContainerType(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,n){if(!e)return;const r=e.filter(i=>!i.getColDef().lockVisible);this.beans.colModel.setColsVisible(r,t,n)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:n}=e;this.beans.colMoves.moveColumns(t,n,"uiColumnMoved",!0)}updateDragItemContainerType(){const{lastDraggingEvent:e}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!e)return;const t=e.dragItem;t&&(t.containerType=this.pinned)}handleColumnDragWhileSuppressingMovement(e,t,n,r,i){const o=this.getAllMovingColumns(e,!0);if(i){const a=this.isAttemptingToPin(o);a&&this.attemptToPinColumns(o,void 0,!0);const{fromLeft:s,xPosition:l}=this.getNormalisedXPositionInfo(o,a)||{};if(s==null||l==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:o,xPosition:l,fromEnter:t,fakeEvent:n,fromLeft:s})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(o,r)}}handleColumnDragWhileAllowingMovement(e,t,n,r,i){const o=this.getAllMovingColumns(e),a=this.normaliseDirection(e.hDirection)==="right",s=e.dragSource.type===1,l=this.getMoveColumnParams({allMovingColumns:o,isFromHeader:s,xPosition:r,fromLeft:a,fromEnter:t,fakeEvent:n}),c=Ytt({...l,finished:i});c&&(this.lastMovedInfo=c)}getAllMovingColumns(e,t=!1){const n=e.dragSource.getDragItem();let r=null;t?(r=n.columnsInSplit,r||(r=n.columns)):r=n.columns;const i=o=>o.getColDef().lockPinned?o.getPinned()==this.pinned:!0;return r?r.filter(i):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:n,xPosition:r,fromLeft:i,fromEnter:o,fakeEvent:a}=e,{gos:s,colModel:l,colMoves:c,visibleCols:u}=this.beans;return{allMovingColumns:t,isFromHeader:n,fromLeft:i,xPosition:r,pinned:this.pinned,fromEnter:o,fakeEvent:a,gos:s,colModel:l,colMoves:c,visibleCols:u}}highlightHoveredColumn(e,t){const{gos:n,colModel:r}=this.beans,i=n.get("enableRtl"),o=r.getCols().filter(u=>u.isVisible()&&u.getPinned()===this.pinned);let a=null,s=null,l=null;for(const u of o){if(s=u.getActualWidth(),a=this.getNormalisedColumnLeft(u,0,i),a!=null){const d=a+s;if(a<=t&&d>=t){l=u;break}}a=null,s=null}if(l)e.indexOf(l)!==-1&&(l=null);else{for(let u=o.length-1;u>=0;u--){const d=o[u],p=o[u].getParent();if(!p){l=d;break}const h=p?.getDisplayedLeafColumns();if(h.length){l=zr(h);break}}if(!l)return;a=this.getNormalisedColumnLeft(l,0,i),s=l.getActualWidth()}if(this.lastHighlightedColumn?.column!==l&&this.clearHighlighted(),l==null||a==null||s==null)return;let c;t-a<s/2!==i?c=0:c=1,IEe(l,c),this.lastHighlightedColumn={column:l,position:c}}getNormalisedXPositionInfo(e,t){const{gos:n,visibleCols:r}=this.beans,i=n.get("enableRtl"),{firstMovingCol:o,column:a,position:s}=this.getColumnMoveAndTargetInfo(e,t,i);if(!o||!a||s==null)return;const l=r.allCols,c=l.indexOf(o),u=l.indexOf(a),d=s===0!==i,p=c<u||c===u&&!d;let h=0;if(d?p&&(h-=1):p||(h+=1),u+h===c)return;const g=l[u+h];if(!g)return;const m=this.getNormalisedColumnLeft(g,20,i);return{fromLeft:p,xPosition:m}}getColumnMoveAndTargetInfo(e,t,n){const r=this.lastHighlightedColumn||{},{firstMovingCol:i,lastMovingCol:o}=H5t(e);if(!i||!o||r.column||!t)return{firstMovingCol:i,...r};const s=this.getPinDirection()==="left";return{firstMovingCol:i,position:s?1:0,column:s!==n?i:o}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,n){const{gos:r,ctrlsSvc:i}=this.beans,o=e.getLeft();if(o==null)return null;const a=e.getActualWidth();return hhe({x:n?o+a-t:o+t,pinned:e.getPinned(),useHeaderRow:n,skipScrollPadding:!0,gos:r,ctrlsSvc:i})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,n=this.failedMoveAttempts>REe;return t&&n||e.some(r=>r.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:n,fromEnter:r,fakeEvent:i,fromLeft:o}=e,a=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:n,fromLeft:o,fromEnter:r,fakeEvent:i}),{columns:s,toIndex:l}=Xtt(a)||{};s&&l!=null&&(this.lastMovedInfo={columns:s,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(IEe(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),n=t.getCenterViewportScrollLeft(),r=n+t.getCenterWidth();let i,o;this.gos.get("enableRtl")?(i=e<n+$H,o=e>r-$H):(o=e<n+$H,i=e>r-$H),this.needToMoveRight=i,this.needToMoveLeft=o,o||i?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),B5t),this.beans.dragAndDrop.getDragAndDropImageComponent()?.setIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,this.beans.dragAndDrop.getDragAndDropImageComponent()?.setIcon(this.getIconName(),!1))}moveInterval(){let e;this.intervalCount++,e=10+this.intervalCount*q5t,e>fhe&&(e=fhe);let t=null;const n=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:r,dragAndDrop:i,gos:o}=this.beans;if(this.failedMoveAttempts<=REe+1||!r)return;if(i.getDragAndDropImageComponent()?.setIcon("pinned",!1),!o.get("suppressMoveWhenColumnDragging")){const a=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(a,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(e,t,n=!1){const r=(e||[]).filter(a=>!a.getColDef().lockPinned);if(!r.length)return 0;n&&(t=this.getPinDirection());const{pinnedCols:i,dragAndDrop:o}=this.beans;return i?.setColsPinned(r,t,"uiColumnDragged"),n&&o.nudge(),r.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function IEe(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function H5t(e){const t=e.length;let n,r;for(let i=0;i<t;i++){if(!n){const o=e[i];o.getLeft()!=null&&(n=o)}if(!r){const o=e[t-1-i];o.getLeft()!=null&&(r=o)}if(n&&r)break}return{firstMovingCol:n,lastMovingCol:r}}var V5t=class extends dt{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,n=this.pinned;e.whenReady(this,r=>{let i;const o=r.gridBodyCtrl.eBodyViewport;switch(n){case"left":i=[[o,r.left.eContainer],[r.bottomLeft.eContainer],[r.topLeft.eContainer]];break;case"right":i=[[o,r.right.eContainer],[r.bottomRight.eContainer],[r.topRight.eContainer]];break;default:i=[[o,r.center.eViewport],[r.bottomCenter.eViewport],[r.topCenter.eViewport]];break}this.eSecondaryContainers=i}),this.moveColumnFeature=this.createManagedBean(new j5t(n)),this.bodyDropPivotTarget=this.createManagedBean(new k5t(n)),t.addDropTarget(this),this.addDestroyFunc(()=>t.removeDropTarget(this))}isInterestedIn(e){return e===1||e===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.beans.colModel.isPivotMode()&&e.dragSource.type===0}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}},G5t=class extends dt{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,n){const r=this.beans.colModel.getCols();if(!r)return;const i=r[e];this.moveColumns([i],t,n)}moveColumns(e,t,n,r=!0){const{colModel:i,colAnimation:o,visibleCols:a,eventSvc:s}=this.beans,l=i.getCols();if(!l)return;if(t>l.length-e.length){ut(30,{toIndex:t});return}o?.start();const c=i.getColsForKeys(e);this.doesMovePassRules(c,t)&&(gEe(i.getCols(),c,t),a.refresh(n),s.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,toIndex:t,finished:r,source:n})),o?.finish()}doesMovePassRules(e,t){const n=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(n)}doesOrderPassRules(e){const{colModel:t,gos:n}=this.beans;return!(!Net(e,t.getColTree())||!(i=>{const o=c=>c?c==="left"||c===!0?-1:1:0,a=n.get("enableRtl");let s=a?1:-1,l=!0;return i.forEach(c=>{const u=o(c.getColDef().lockPosition);a?u>s&&(l=!1):u<s&&(l=!1),s=u}),l})(e))}getProposedColumnOrder(e,t){const r=this.beans.colModel.getCols().slice();return gEe(r,e,t),r}createBodyDropTarget(e,t){return new V5t(e,t)}moveHeader(e,t,n,r,i){const{ctrlsSvc:o,gos:a,colModel:s,visibleCols:l,focusSvc:c}=this.beans,u=t.getBoundingClientRect(),d=u.left,p=Pl(n),h=p?u.width:n.getActualWidth(),g=e==="left"!==a.get("enableRtl"),m=hhe({x:g?d-20:d+h+20,pinned:r,fromKeyboard:!0,gos:a,ctrlsSvc:o}),v=c.focusedHeader;Ytt({allMovingColumns:p?n.getLeafColumns():[n],isFromHeader:!0,fromLeft:e==="right",xPosition:m,pinned:r,fromEnter:!1,fakeEvent:!1,gos:a,colModel:s,colMoves:this,visibleCols:l,finished:!0});let y;if(p){const M=n.getDisplayedLeafColumns();y=g?M[0]:zr(M)}else y=n;if(o.getScrollFeature().ensureColumnVisible(y,"auto"),(!i.isAlive()||a.get("ensureDomOrder"))&&v){let M;if(p){const C=n.getGroupId(),x=n.getLeafColumns();if(!x.length)return;const w=x[0].getParent();if(!w)return;M=$5t(w,C)}else M=n;M&&c.focusHeaderPosition({headerPosition:{...v,column:M}})}}setDragSourceForHeader(e,t,n){const{gos:r,colModel:i,dragAndDrop:o,visibleCols:a}=this.beans;let s=!r.get("suppressDragLeaveHidesColumns");const l=Pl(t),c=l?t.getProvidedColumnGroup().getLeafColumns():[t],d={type:1,eElement:e,getDefaultIconName:()=>s?"hide":"notAllowed",getDragItem:l?()=>X5t(t,a.allCols):()=>U5t(t),dragItemName:n,onDragStarted:()=>{s=!r.get("suppressDragLeaveHidesColumns"),ire(c,!0)},onDragStopped:()=>ire(c,!1),onDragCancelled:()=>ire(c,!1),onGridEnter:p=>{if(s){const{columns:h=[],visibleState:g}=p??{},m=l?y=>!g||g[y.getColId()]:()=>!0,v=h.filter(y=>!y.getColDef().lockVisible&&m(y));i.setColsVisible(v,!0,"uiColumnMoved")}},onGridExit:p=>{if(s){const h=p?.columns?.filter(g=>!g.getColDef().lockVisible)||[];i.setColsVisible(h,!1,"uiColumnMoved")}}};return o.addDragSource(d,!0),d}};function $5t(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}}function U5t(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}function X5t(e,t){const n=e.getProvidedColumnGroup().getLeafColumns(),r={};n.forEach(s=>r[s.getId()]=s.isVisible());const i=[];t.forEach(s=>{n.indexOf(s)>=0&&(i.push(s),Ou(n,s))}),n.forEach(s=>i.push(s));const o=[],a=e.getLeafColumns();for(const s of i)a.indexOf(s)!==-1&&o.push(s);return{columns:i,columnsInSplit:o,visibleState:r,containerType:o[0]?.pinned}}var Rye={moduleName:"ColumnMove",version:Jn,beans:[G5t,I5t],apiFunctions:{moveColumnByIndex:P5t,moveColumns:D5t},dependsOn:[v3],css:[R5t]},Y5t=class extends dt{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const n=this.getHeaderCellForColumn(e);if(!n)return-1;const r=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||r.push(n),this.getPreferredWidthForElements(r)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const n=document.createElement("form");n.style.position="fixed";const r=this.centerRowContainerCtrl.eContainer;e.forEach(o=>this.cloneItemIntoDummy(o,n)),r.appendChild(n);const i=n.offsetWidth;return r.removeChild(n),t=t??this.gos.get("autoSizePadding"),i+t}getHeaderCellForColumn(e){let t=null;return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().forEach(n=>{const r=n.getHtmlElementForColumnHeader(e);r!=null&&(t=r)}),t}cloneItemIntoDummy(e,t){const n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";const r=document.createElement("div"),i=r.classList;["ag-header-cell","ag-header-group-cell"].some(s=>n.classList.contains(s))?(i.add("ag-header","ag-header-row"),r.style.position="static"):i.add("ag-row");let a=e.parentElement;for(;a;){if(["ag-header-row","ag-row"].some(l=>a.classList.contains(l))){for(let l=0;l<a.classList.length;l++){const c=a.classList[l];c!="ag-row-position-absolute"&&i.add(c)}break}a=a.parentElement}r.appendChild(n),t.appendChild(r)}},Ktt={moduleName:"AutoWidth",version:Jn,beans:[Y5t]};function K5t(e,t,n=!0,r="api"){e.colResize?.setColumnWidths(t,!1,n,r)}var Q5t=class extends dt{constructor(e,t,n,r){super(),this.comp=e,this.eResize=t,this.pinned=n,this.columnGroup=r}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}const{horizontalResizeSvc:e,gos:t,colAutosize:n}=this.beans,r=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(r),!t.get("suppressAutoSize")&&n&&this.addDestroyFunc(n.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:n,resizeRatios:r,groupAfterColumns:i,groupAfterStartWidth:o,groupAfterRatios:a}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=n,this.resizeRatios=r,this.resizeTakeFromCols=i,this.resizeTakeFromStartWidth=o,this.resizeTakeFromRatios=a,this.toggleColumnResizing(!0)}onResizing(e,t,n="uiColumnResized"){const r=this.normaliseDragChange(t),i=this.resizeStartWidth+r;this.resizeColumnsFromLocalValues(i,n,e)}getInitialValues(e){const t=l=>l.reduce((c,u)=>c+u.getActualWidth(),0),n=(l,c)=>l.map(u=>u.getActualWidth()/c),r=this.getColumnsToResize(),i=t(r),o=n(r,i),a={columnsToResize:r,resizeStartWidth:i,resizeRatios:o};let s=null;if(e&&(s=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),s){const l=s.getDisplayedLeafColumns(),c=a.groupAfterColumns=l.filter(d=>d.isResizable()),u=a.groupAfterStartWidth=t(c);a.groupAfterRatios=n(c,u)}else a.groupAfterColumns=void 0,a.groupAfterStartWidth=void 0,a.groupAfterRatios=void 0;return a}resizeLeafColumnsToFit(e){const t=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),n=this.getInitialValues();t>n.resizeStartWidth&&this.resizeColumns(n,t,e,!0)}resizeColumnsFromLocalValues(e,t,n=!0){if(!this.resizeCols||!this.resizeRatios)return;const r={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(r,e,t,n)}resizeColumns(e,t,n,r=!0){const{columnsToResize:i,resizeStartWidth:o,resizeRatios:a,groupAfterColumns:s,groupAfterStartWidth:l,groupAfterRatios:c}=e,u=[];if(u.push({columns:i,ratios:a,width:t}),s){const d=t-o;u.push({columns:s,ratios:c,width:l-d})}this.beans.colResize?.resizeColumnSets({resizeSets:u,finished:r,source:n}),r&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(t=>t.isResizable())}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?this.pinned!=="left"&&(t*=-1):this.pinned==="right"&&(t*=-1),t}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},Z5t=class extends dt{constructor(e,t,n,r,i){super(),this.pinned=e,this.column=t,this.eResize=n,this.comp=r,this.ctrl=i}postConstruct(){const e=[];let t,n;const r=()=>{if(Nn(this.eResize,t),!t)return;const{horizontalResizeSvc:a,colAutosize:s}=this.beans,l=a.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(l),n&&s&&e.push(s.addColumnAutosize(this.eResize,this.column))},i=()=>{e.forEach(a=>a()),e.length=0},o=()=>{const a=this.column.isResizable(),s=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(a!==t||s!==n)&&(t=a,n=s,i(),r())};o(),this.addDestroyFunc(i),this.ctrl.setRefreshFunction("resize",o)}onResizing(e,t){const{column:n,lastResizeAmount:r,resizeStartWidth:i,beans:o}=this,a=this.normaliseResizeAmount(t),s=i+a,l=[{key:n,newWidth:s}],{pinnedCols:c,ctrlsSvc:u,colResize:d}=o;if(this.column.getPinned()){const p=c?.leftWidth??0,h=c?.rightWidth??0,g=KI(u.getGridBodyCtrl().eBodyViewport)-50;if(p+h+(a-r)>g)return}this.lastResizeAmount=a,d?.setColumnWidths(l,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const n=this.pinned!=="left",r=this.pinned==="right";return this.gos.get("enableRtl")?n&&(t*=-1):r&&(t*=-1),t}},J5t=class extends dt{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,n,r){const i=[],{colModel:o,gos:a,visibleCols:s}=this.beans;e.forEach(l=>{const c=o.getColDefCol(l.key)||o.getCol(l.key);if(!c)return;if(i.push({width:l.newWidth,ratios:[1],columns:[c]}),a.get("colResizeDefault")==="shift"&&(t=!t),t){const d=s.getColAfter(c);if(!d)return;const p=c.getActualWidth()-l.newWidth,h=d.getActualWidth()+p;i.push({width:h,ratios:[1],columns:[d]})}}),i.length!==0&&this.resizeColumnSets({resizeSets:i,finished:n,source:r})}resizeColumnSets(e){const{resizeSets:t,finished:n,source:r}=e;if(!(!t||t.every(u=>eNt(u)))){if(n){const u=t&&t.length>0?t[0].columns:null;eP(this.eventSvc,u,n,r)}return}const o=[],a=[];t.forEach(u=>{const{width:d,columns:p,ratios:h}=u,g={},m={};p.forEach(M=>a.push(M));let v=!0,y=0;for(;v;){if(y++,y>1e3){pi(31);break}v=!1;const M=[];let C=0,x=d;p.forEach((S,A)=>{if(m[S.getId()])x-=g[S.getId()];else{M.push(S);const O=h[A];C+=O}});const w=1/C;M.forEach((S,A)=>{const z=A===M.length-1;let O;z?O=x:(O=Math.round(h[A]*d*w),x-=O);const T=S.getMinWidth(),I=S.getMaxWidth();O<T?(O=T,m[S.getId()]=!0,v=!0):I>0&&O>I&&(O=I,m[S.getId()]=!0,v=!0),g[S.getId()]=O})}p.forEach(M=>{const C=g[M.getId()];M.getActualWidth()!==C&&(M.setActualWidth(C,r),o.push(M))})});const s=o.length>0;let l=[];if(s){const{colFlex:u,visibleCols:d,colViewport:p}=this.beans;l=u?.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0})??[],d.setLeftValues(r),d.updateBodyWidths(),p.checkViewportColumns()}const c=a.concat(l);(s||n)&&eP(this.eventSvc,c,n,r,l)}resizeHeader(e,t,n){if(!e.isResizable())return;const r=e.getActualWidth(),i=e.getMinWidth(),o=e.getMaxWidth(),a=Math.min(Math.max(r+t,i),o);this.setColumnWidths([{key:e,newWidth:a}],n,!0,"uiColumnResized")}createResizeFeature(e,t,n,r,i){return new Z5t(e,t,n,r,i)}createGroupResizeFeature(e,t,n,r){return new Q5t(e,t,n,r)}};function eNt(e){const{columns:t,width:n}=e;let r=0,i=0,o=!0;t.forEach(l=>{const c=l.getMinWidth();r+=c||0;const u=l.getMaxWidth();u>0?i+=u:o=!1});const a=n>=r,s=!o||n<=i;return a&&s}var tNt={moduleName:"ColumnResize",version:Jn,beans:[J5t],apiFunctions:{setColumnWidths:K5t},dependsOn:[Utt,Ktt]},nNt=class extends dt{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(t=>{t.__addEventListener("widthChanged",e),t.__addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.__removeEventListener("widthChanged",e),t.__removeEventListener("visibleChanged",e)})})}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach(e=>e()),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.toggleCss("ag-hidden",e===0)}},rNt=class extends Oye{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}setComp(e,t,n,r,i){const{column:o,beans:a}=this,{context:s,colNames:l,colHover:c,rangeSvc:u,colResize:d}=a;this.comp=e,i=h6(this,s,i),this.setGui(t,i),this.displayName=l.getDisplayNameForColumnGroup(o,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(i),this.setupExpandable(i),this.setupTooltip(),this.setupAutoHeight({wrapperElement:r,compBean:i}),this.setupUserComp(),this.addHeaderMouseListeners(i),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const p=this.rowCtrl.pinned,h=o.getProvidedColumnGroup().getLeafColumns();c?.createHoverFeature(i,h,t),u?.createRangeHighlightFeature(i,o,e),i.createManagedBean(new Aye(o,t,a)),i.createManagedBean(new nNt(e,o)),d?this.resizeFeature=i.createManagedBean(d.createGroupResizeFeature(e,n,p,o)):e.setResizableDisplayed(!1),i.createManagedBean(new Mw(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(i,h),i.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(i),i.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.getDefinition();return Vn(t.gos,{colDef:n,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,n=e.get("groupHeaderHeight");n!=null?n===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(n):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const n of t)e.addManagedListeners(n,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,n)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),n=t[0]===e,r=zr(t)===e;if(!n&&!r)return;const i=e.getHighlighted(),o=!!this.rowCtrl.getHeaderCellCtrls().find(l=>l.column.isMoving());let a=!1,s=!1;if(o){const l=this.beans.gos.get("enableRtl"),c=i===1,u=i===0;n&&(l?s=c:a=u),r&&(l?a=u:s=c)}this.comp.toggleCss("ag-header-highlight-before",a),this.comp.toggleCss("ag-header-highlight-after",s)}resizeHeader(e,t){const{resizeFeature:n}=this;if(!n)return;const r=n.getInitialValues(t);n.resizeColumns(r,r.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:n,enterpriseMenuFactory:r}=this.beans,i=this.column,o=i.getProvidedColumnGroup(),a=Vn(n,{displayName:this.displayName,columnGroup:i,setExpanded:l=>{e.setColumnGroupOpened(o,l,"gridInitializing")},setTooltip:(l,c)=>{n.assertModuleRegistered("Tooltip",3),this.setupTooltip(l,c)},showColumnMenu:(l,c)=>r?.showMenuAfterButtonClick(o,l,"columnMenu",c),showColumnMenuAfterMouseClick:(l,c)=>r?.showMenuAfterMouseEvent(o,l,"columnMenu",c),eGridHeader:this.eGui}),s=bLt(t,a);s&&this.comp.setUserCompDetails(s)}addHeaderMouseListeners(e){const t=i=>this.handleMouseOverChange(i.type==="mouseenter"),n=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup()),r=i=>this.handleContextMenuMouseEvent(i,void 0,this.column.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:n,contextmenu:r})}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,e,t)}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const n=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:n,expandableChanged:n})}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0),this.refreshHeaderStyles()}addClasses(){const{column:e}=this,t=e.getColGroupDef(),n=cye(t,this.gos,null,e);e.isPadding()?(n.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(i=>i.isSpanHeaderHeight())&&n.push("ag-header-span-height")):(n.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&n.push("ag-header-cell-wrap-text")),n.forEach(r=>this.comp.toggleCss(r,!0))}setupMovingCss(e){const{column:t}=this,r=t.getProvidedColumnGroup().getLeafColumns(),i=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());r.forEach(o=>{e.addManagedListeners(o,{movingChanged:i})}),i()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||this.focusThis()}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();if(!(!this.expandable||!t)&&e.key===Qe.ENTER){const n=this.column,r=!n.isExpanded();this.beans.colGroupSvc.setColumnGroupOpened(n.getProvidedColumnGroup(),r,"uiColumnExpanded")}}setDragSource(e){!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),e&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(e=>e.getColDef().suppressMovable||e.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function iNt(e,t,n){e.colGroupSvc?.setColumnGroupOpened(t,n,"api")}function oNt(e,t,n){return e.colGroupSvc?.getColumnGroup(t,n)??null}function aNt(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null}function sNt(e,t,n){return e.colNames.getDisplayNameForColumnGroup(t,n)||""}function lNt(e){return e.colGroupSvc?.getColumnGroupState()??[]}function cNt(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}function uNt(e){e.colGroupSvc?.resetColumnGroupState("api")}function dNt(e){return e.visibleCols.treeLeft}function pNt(e){return e.visibleCols.treeCenter}function hNt(e){return e.visibleCols.treeRight}function fNt(e){return e.visibleCols.getAllTrees()}function gNt(e,t){for(let n=0;n<t.length;n++){const r=e.indexOf(t[n]);r>=0&&(e[r]=e[e.length-1],e.pop())}}var mNt=class extends dt{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(e,t=!1){const{colFlex:n,colModel:r,colGroupSvc:i,colViewport:o,selectionColSvc:a}=this.beans;t||this.buildTrees(r,i),i?.updateOpenClosedVisibility(),this.leftCols=ore(this.treeLeft),this.centerCols=ore(this.treeCenter),this.rightCols=ore(this.treeRight),a?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(r),this.joinCols(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(s=>s.isAutoHeight()),n?.refreshFlexedColumns(),this.updateBodyWidths(),o.checkViewportColumns(!1),this.setFirstRightAndLastLeftPinned(r,this.leftCols,this.rightCols,e),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e})}updateBodyWidths(){const e=ay(this.centerCols),t=ay(this.leftCols),n=ay(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,n,r){let i,o;this.gos.get("enableRtl")?(i=t?t[0]:null,o=n?zr(n):null):(i=t?zr(t):null,o=n?n[0]:null),e.getCols().forEach(a=>{a.setLastLeftPinned(a===i,r),a.setFirstRightPinned(a===o,r)})}buildTrees(e,t){const n=e.getColsToShow(),r=n.filter(l=>l.getPinned()=="left"),i=n.filter(l=>l.getPinned()=="right"),o=n.filter(l=>l.getPinned()!="left"&&l.getPinned()!="right"),a=new Vet,s=l=>t?t.createColumnGroups(l):l.columns;this.treeLeft=s({columns:r,idCreator:a,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=s({columns:i,idCreator:a,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=s({columns:o,idCreator:a,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(e){const t=e.getCols(),n=[],r=[],i=[];for(const o of t){const a=o.getPinned();a?a===!0||a==="left"?n.push(o):i.push(o):r.push(o)}this.ariaOrderColumns=n.concat(r).concat(i)}getAriaColIndex(e){let t;return Pl(e)?t=e.getLeafColumns()[0]:t=e,this.ariaOrderColumns.indexOf(t)+1}setLeftValuesOfGroups(){[this.treeLeft,this.treeRight,this.treeCenter].forEach(e=>{e.forEach(t=>{Pl(t)&&t.checkLeft()})})}setLeftValuesOfCols(e){const{colModel:t}=this.beans;if(!t.getColDefCols())return;const r=t.getCols().slice(0),i=this.gos.get("enableRtl");[this.leftCols,this.rightCols,this.centerCols].forEach(o=>{if(i){let a=ay(o);o.forEach(s=>{a-=s.getActualWidth(),s.setLeft(a,e)})}else{let a=0;o.forEach(s=>{s.setLeft(a,e),a+=s.getActualWidth()})}gNt(r,o)}),r.forEach(o=>{o.setLeft(null,e)})}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(e){return this.allCols.indexOf(e)>=0}getLeftColsForRow(e){const{leftCols:t,beans:{colModel:n}}=this;return n.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:n}}=this;return n.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,n,r){const i=[];let o=null;for(let a=0;a<t.length;a++){const s=t[a],l=t.length-a,c=Math.min(s.getColSpan(e),l),u=[s];if(c>1){const p=c-1;for(let h=1;h<=p;h++)u.push(t[a+h]);a+=p}let d;n?(d=!1,u.forEach(p=>{n(p)&&(d=!0)})):d=!0,d&&(i.length===0&&o&&(r&&r(s))&&i.push(o),i.push(s)),o=s}return i}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,n=t.indexOf(e);return n>0?t[n-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const e=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};WO(this.treeCenter,!1,e),WO(this.treeLeft,!1,e),WO(this.treeRight,!1,e)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}getFirstColumn(){const e=this.gos.get("enableRtl"),t=["leftCols","centerCols","rightCols"];e&&t.reverse();for(let n=0;n<t.length;n++){const r=this[t[n]];if(r.length)return e?zr(r):r[0]}return null}getColAfter(e){const t=this.allCols,n=t.indexOf(e);return n<t.length-1?t[n+1]:null}getColsLeftWidth(){return ay(this.leftCols)}getDisplayedColumnsRightWidth(){return ay(this.rightCols)}isColAtEdge(e,t){const n=this.allCols;if(!n.length)return!1;const r=t==="first";let i;if(Pl(e)){const o=e.getDisplayedLeafColumns();if(!o.length)return!1;i=r?o[0]:zr(o)}else i=e;return(r?n[0]:zr(n))===i}};function WO(e,t,n){if(e)for(let r=0;r<e.length;r++){const i=e[r];if(Pl(i)){const o=t?i.getDisplayedChildren():i.getChildren();WO(o,t,n)}n(i)}}function ore(e){const t=[];return WO(e,!0,n=>{vm(n)&&t.push(n)}),t}var vNt=class extends dt{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[],t=this.beans.colModel.getColTree();return sb(null,t,n=>{zs(n)&&e.push({groupId:n.getGroupId(),open:n.isExpanded()})}),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const n=[];sb(null,t,r=>{if(zs(r)){const i=r.getColGroupDef(),o={groupId:r.getGroupId(),open:i?i.openByDefault:void 0};n.push(o)}}),this.setColumnGroupState(n,e)}setColumnGroupState(e,t){const{colModel:n,colAnimation:r,visibleCols:i,eventSvc:o}=this.beans;if(!n.getColTree().length)return;r?.start();const s=[];e.forEach(l=>{const c=l.groupId,u=l.open,d=this.getProvidedColGroup(c);d&&d.isExpanded()!==u&&(d.setExpanded(u),s.push(d))}),i.refresh(t,!0),s.length&&o.dispatchEvent({type:"columnGroupOpened",columnGroup:s.length===1?s[0]:void 0,columnGroups:s}),r?.finish()}setColumnGroupOpened(e,t,n){let r;zs(e)?r=e.getId():r=e||"",this.setColumnGroupState([{groupId:r,open:t}],n)}getProvidedColGroup(e){let t=null;return sb(null,this.beans.colModel.getColTree(),n=>{zs(n)&&n.getId()===e&&(t=n)}),t}getGroupAtDirection(e,t){const n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),i=t==="After"?zr(r):r[0],o=`getCol${t}`;for(;;){const a=this.beans.visibleCols[o](i);if(!a)return null;const s=this.getColGroupAtLevel(a,n);if(s!==e)return s}}getColGroupAtLevel(e,t){let n=e.getParent(),r,i;for(;r=n.getProvidedColumnGroup().getLevel(),i=n.getPaddingLevel(),!(r+i<=t);)n=n.getParent();return n}updateOpenClosedVisibility(){const e=this.beans.visibleCols.getAllTrees();WO(e,!1,t=>{Pl(t)&&t.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if(Pl(e))return e;const n=this.beans.visibleCols.getAllTrees(),r=typeof t=="number";let i=null;return WO(n,!1,o=>{if(Pl(o)){const a=o;let s;r?s=e===a.getGroupId()&&t===a.getPartId():s=e===a.getGroupId(),s&&(i=a)}}),i}createColumnGroups(e){const{columns:t,idCreator:n,pinned:r,oldDisplayedGroups:i,isStandaloneStructure:o}=e,a=this.mapOldGroupsById(i),s=[];let l=t;for(;l.length;){const c=l;l=[];let u=0;const d=p=>{const h=u;u=p;const g=c[h],v=(Pl(g)?g.getProvidedColumnGroup():g).getOriginalParent();if(v==null){for(let M=h;M<p;M++)s.push(c[M]);return}const y=this.createColumnGroup(v,n,a,r,o);for(let M=h;M<p;M++)y.addChild(c[M]);l.push(y)};for(let p=1;p<c.length;p++){const h=c[p],m=(Pl(h)?h.getProvidedColumnGroup():h).getOriginalParent(),v=c[u],M=(Pl(v)?v.getProvidedColumnGroup():v).getOriginalParent();m!==M&&d(p)}u<c.length&&d(c.length)}return o||this.setupParentsIntoCols(s,null),s}createProvidedColumnGroup(e,t,n,r,i,o,a){const s=i.getUniqueKey(t.groupId||null,null),l=ahe(this.beans,t,s),c=new rI(l,s,!1,n);this.createBean(c);const u=this.findExistingGroup(t,o);u&&o.splice(u.idx,1);const d=u?.group;d&&c.setExpanded(d.isExpanded());const p=Pet(this.beans,l.children,n+1,e,r,i,o,a);return c.setChildren(p),c}balanceColumnTree(e,t,n,r){const i=[];for(let o=0;o<e.length;o++){const a=e[o];if(zs(a)){const s=a,l=this.balanceColumnTree(s.getChildren(),t+1,n,r);s.setChildren(l),i.push(s)}else{let s,l;for(let c=n-1;c>=t;c--){const u=r.getUniqueKey(null,null),d=ahe(this.beans,null,u),p=new rI(d,u,!0,t);this.createBean(p),l&&l.setChildren([p]),l=p,s||(s=l)}if(s&&l)if(i.push(s),e.some(u=>zs(u))){l.setChildren([a]);continue}else{l.setChildren(e);break}i.push(a)}}return i}findDepth(e){let t=0,n=e;for(;n&&n[0]&&zs(n[0]);)t++,n=n[0].getChildren();return t}findMaxDepth(e,t){let n=t;for(let r=0;r<e.length;r++){const i=e[r];if(zs(i)){const o=i,a=this.findMaxDepth(o.getChildren(),t+1);n<a&&(n=a)}}return n}balanceTreeForAutoCols(e,t){const n=[];return e.forEach(r=>{let i=r;for(let o=t-1;o>=0;o--){const a=new rI(null,`FAKE_PATH_${r.getId()}}_${o}`,!0,o);this.createBean(a),a.setChildren([i]),i.originalParent=a,i=a}t===0&&(r.originalParent=null),n.push(i)}),n}findExistingGroup(e,t){if(e.groupId!=null)for(let r=0;r<t.length;r++){const i=t[r];if(i.getColGroupDef()&&i.getId()===e.groupId)return{idx:r,group:i}}}createColumnGroup(e,t,n,r,i){const o=e.getGroupId(),a=t.getInstanceIdForKey(o),s=utt(o,a);let l=n[s];return l&&l.getProvidedColumnGroup()!==e&&(l=null),Ut(l)?l.reset():(l=new dtt(e,o,a,r),i||this.createBean(l)),l}mapOldGroupsById(e){const t={},n=r=>{r.forEach(i=>{if(Pl(i)){const o=i;t[i.getUniqueId()]=o,n(o.getChildren())}})};return e&&n(e),t}setupParentsIntoCols(e,t){e.forEach(n=>{if(n.parent=t,Pl(n)){const r=n;this.setupParentsIntoCols(r.getChildren(),r)}})}},Qtt={moduleName:"ColumnGroup",version:Jn,dynamicBeans:{headerGroupCellCtrl:rNt},beans:[vNt],apiFunctions:{getAllDisplayedColumnGroups:fNt,getCenterDisplayedColumnGroups:pNt,getColumnGroup:oNt,getColumnGroupState:lNt,getDisplayNameForColumnGroup:sNt,getLeftDisplayedColumnGroups:dNt,getProvidedColumnGroup:aNt,getRightDisplayedColumnGroups:hNt,resetColumnGroupState:uNt,setColumnGroupOpened:iNt,setColumnGroupState:cNt}},bNt={moduleName:"CheckboxCellRenderer",version:Jn,userComponents:{agCheckboxCellRenderer:m_t}};function yNt(e,t){const n=e.colModel.getColDefCol(t);return n?n.getColDef():null}function MNt(e){return e.colModel.getColumnDefs()}function CNt(e,t,n){return e.colNames.getDisplayNameForColumn(t,n)||""}function xNt(e,t){return e.colModel.getColDefCol(t)}function wNt(e){return e.colModel.getColDefCols()}function SNt(e,t){return m0(e,t,"api")}function ANt(e){return C$(e)}function ONt(e){Bet(e,"api")}function zNt(e){return e.visibleCols.isPinningLeft()||e.visibleCols.isPinningRight()}function TNt(e){return e.visibleCols.isPinningLeft()}function ENt(e){return e.visibleCols.isPinningRight()}function RNt(e,t){return e.visibleCols.getColAfter(t)}function INt(e,t){return e.visibleCols.getColBefore(t)}function PNt(e,t,n){e.colModel.setColsVisible(t,n,"api")}function DNt(e,t,n){e.pinnedCols?.setColsPinned(t,n,"api")}function kNt(e){return e.colModel.getCols()}function LNt(e){return e.visibleCols.leftCols}function _Nt(e){return e.visibleCols.centerCols}function NNt(e){return e.visibleCols.rightCols}function FNt(e){return e.visibleCols.allCols}function WNt(e){return e.colViewport.getViewportColumns()}function ghe(e,t){if(!e)return;const n=e,r={};return Object.keys(n).forEach(i=>{if(t&&t.indexOf(i)>=0||Oet.has(i))return;const o=n[i];typeof o=="object"&&o!==null&&o.constructor===Object?r[i]=ghe(o):r[i]=o}),r}var qNt=class extends dt{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc}getColumnDefs(e,t,n,r){const i=e.slice();t?i.sort((s,l)=>n.indexOf(s)-n.indexOf(l)):n&&i.sort((s,l)=>r.indexOf(s)-r.indexOf(l));const o=this.rowGroupColsSvc?.columns,a=this.pivotColsSvc?.columns;return this.buildColumnDefs(i,o,a)}buildColumnDefs(e,t=[],n=[]){const r=[],i={};return e.forEach(o=>{const a=this.createDefFromColumn(o,t,n);let s=!0,l=a,c=o.getOriginalParent(),u=null;for(;c;){let d=null;if(c.isPadding()){c=c.getOriginalParent();continue}const p=i[c.getGroupId()];if(p){p.children.push(l),s=!1;break}if(d=this.createDefFromGroup(c),d&&(d.children=[l],i[d.groupId]=d,l=d,c=c.getOriginalParent()),c!=null&&u===c){s=!1;break}u=c}s&&r.push(l)}),r}createDefFromGroup(e){const t=ghe(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,n){const r=ghe(e.getColDef());return r.colId=e.getColId(),r.width=e.getActualWidth(),r.rowGroup=e.isRowGroupActive(),r.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,r.pivot=e.isPivotActive(),r.pivotIndex=e.isPivotActive()?n.indexOf(e):null,r.aggFunc=e.isValueActive()?e.getAggFunc():null,r.hide=e.isVisible()?void 0:!0,r.pinned=e.isPinned()?e.getPinned():null,r.sort=e.getSort()?e.getSort():null,r.sortIndex=e.getSortIndex()!=null?e.getSortIndex():null,r}},BNt=class extends dt{constructor(){super(...arguments),this.beanName="colFlex"}refreshFlexedColumns(e={}){const t=e.source??"flex";e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth);const n=this.flexViewportWidth;if(!n)return[];const{visibleCols:r}=this.beans,i=r.centerCols;let o=-1;if(e.resizingCols){const g=new Set(e.resizingCols);for(let m=i.length-1;m>=0;m--)if(g.has(i[m])){o=m;break}}let a=!1;const s=i.map((g,m)=>{const v=g.getFlex(),y=v!=null&&v>0&&m>o;return a||(a=y),{col:g,isFlex:y,flex:Math.max(0,v??0),initialSize:g.getActualWidth(),min:g.getMinWidth(),max:g.getMaxWidth(),targetSize:0}});if(!a)return[];let l=s.length,c=s.reduce((g,m)=>g+m.flex,0),u=n;const d=(g,m)=>{g.frozenSize=m,g.col.setActualWidth(m,t),u-=m,c-=g.flex,l-=1},p=g=>g.frozenSize!=null;for(const g of s)g.isFlex||d(g,g.initialSize);for(;l>0;){const g=Math.round(c<1?u*c:u);let m,v=0,y=0;for(const x of s){if(p(x))continue;m=x,y+=g*(x.flex/c);const w=y-v,S=Math.round(w);x.targetSize=S,v+=S}m&&(m.targetSize+=g-v);let M=0;for(const x of s){if(p(x))continue;const w=x.targetSize,S=Math.min(Math.max(w,x.min),x.max);M+=S-w,x.violationType=S===w?void 0:S<w?"max":"min",x.targetSize=S}const C=M===0?"all":M>0?"min":"max";for(const x of s)p(x)||(C==="all"||x.violationType===C)&&d(x,x.targetSize)}e.skipSetLeft||r.setLeftValues(t),e.updateBodyWidths&&r.updateBodyWidths();const h=s.filter(g=>g.isFlex&&!g.violationType).map(g=>g.col);if(e.fireResizedEvent){const g=s.filter(v=>v.initialSize!==v.frozenSize).map(v=>v.col),m=s.filter(v=>v.flex).map(v=>v.col);eP(this.eventSvc,g,!0,t,m)}return h}initCol(e){const{flex:t,initialFlex:n}=e.colDef;t!==void 0?e.flex=t:n!==void 0&&(e.flex=n)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}},jNt=class extends dt{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)})}processDataTypeDefinitions(){const e=this.getDefaultDataTypes(),t={};this.dataTypeDefinitions=t;const n={};this.formatValueFuncs=n;const r=a=>s=>{const{column:l,node:c,value:u}=s;let d=l.getColDef().valueFormatter;return d===a.groupSafeValueFormatter&&(d=a.valueFormatter),this.beans.valueSvc.formatValue(l,c,u,d)};for(const a of Object.keys(e)){const s=e[a],l={...s,groupSafeValueFormatter:kEe(s,this.gos)};t[a]=l,n[a]=r(l)}const i=this.gos.get("dataTypeDefinitions")??{},o={};this.dataTypeMatchers=o;for(const a of Object.keys(i)){const s=i[a],l=this.processDataTypeDefinition(s,i,[a],e);l&&(t[a]=l,s.dataTypeMatcher&&(o[a]=s.dataTypeMatcher),n[a]=r(l))}this.checkObjectValueHandlers(e),["dateString","text","number","boolean","date"].forEach(a=>{const s=o[a];s&&delete o[a],o[a]=s??e[a].dataTypeMatcher})}processDataTypeDefinition(e,t,n,r){let i;const o=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let a=r[o];const s=t[o];if(a&&s&&(a=s),!DEe(e,a,o))return;i=PEe(a,e)}else{if(n.includes(o)){ut(44);return}const a=t[o];if(!DEe(e,a,o))return;const s=this.processDataTypeDefinition(a,t,[...n,o],r);if(!s)return;i=PEe(s,e)}return{...i,groupSafeValueFormatter:kEe(i,this.gos)}}updateColDefAndGetColumnType(e,t,n){let{cellDataType:r}=t;const{field:i}=t;if(r===void 0&&(r=e.cellDataType),(r==null||r===!0)&&(r=this.canInferCellDataType(e,t)?this.inferCellDataType(i,n):!1),!r){e.cellDataType=!1;return}const o=this.dataTypeDefinitions[r];if(!o){ut(47,{cellDataType:r});return}return e.cellDataType=r,o.groupSafeValueFormatter&&(e.valueFormatter=o.groupSafeValueFormatter),o.valueParser&&(e.valueParser=o.valueParser),o.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,r,o,n),o.columnTypes}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const n=r=>{t.add(r.key)};e.__addEventListener("columnStateUpdated",n),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",n))}canInferCellDataType(e,t){const{gos:n}=this;if(!oa(n))return!1;const r={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(are(t,r))return!1;const i=t.type===null?e.type:t.type;if(i){const o=n.get("columnTypes")??{};if(M$(i).some(s=>{const l=o[s.trim()];return l&&are(l,r)}))return!1}return!are(e,r)}inferCellDataType(e,t){if(!e)return;let n;const r=this.getInitialData();if(r){const i=e.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");n=RN(r,e,i)}else this.initWaitForRowData(t);if(n!=null)return Object.keys(this.dataTypeMatchers).find(i=>this.dataTypeMatchers[i](n))??"object"}getInitialData(){const e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{const t=this.beans.rowModel.rootNode?.allLeafChildren;if(t?.length)return t[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:n,eventSvc:r}=this.beans;t&&n&&(n.shouldQueueResizeOperations=!0);const[i]=this.addManagedEventListeners({rowDataUpdateStarted:o=>{const{firstRowData:a}=o;a&&(i?.(),this.isPendingInference=!1,this.processColumnsPendingInference(a,t),this.columnStateUpdatesPendingInference={},t&&n?.processResizeOperations(),r.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const n=[];this.destroyColumnStateUpdateListeners();const r={},i={};for(const o of Object.keys(this.columnStateUpdatesPendingInference)){const a=this.columnStateUpdatesPendingInference[o],s=this.colModel.getCol(o);if(!s)return;const l=s.getColDef();if(!this.resetColDefIntoCol(s,"cellDataTypeInferred"))return;const c=s.getColDef();if(t&&c.type&&c.type!==l.type){const u=VNt(s,a);u.rowGroup&&u.rowGroupIndex==null&&(r[o]=u),u.pivot&&u.pivotIndex==null&&(i[o]=u),n.push(u)}}t&&n.push(...this.generateColumnStateForRowGroupAndPivotIndexes(r,i)),n.length&&m0(this.beans,{state:n},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const n={},{rowGroupColsSvc:r,pivotColsSvc:i}=this.beans;return r?.restoreColumnOrder(n,e),i?.restoreColumnOrder(n,t),Object.values(n)}resetColDefIntoCol(e,t){const n=e.getUserProvidedColDef();if(!n)return!1;const r=JI(this.beans,n,e.getColId());return e.setColDef(r,n,t),!0}checkObjectValueHandlers(e){const t=this.dataTypeDefinitions.object,n=e.object;this.hasObjectValueParser=t.valueParser!==n.valueParser,this.hasObjectValueFormatter=t.valueFormatter!==n.valueFormatter}getDateStringTypeDefinition(e){const{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(t==null)return!0;const n=this.getDataTypeDefinition(e)?.dataTypeMatcher;return n?n(t):!0}validateColDef(e){const t=n=>ut(48,{property:n});if(e.cellDataType==="object"){const{object:n}=this.dataTypeDefinitions;e.valueFormatter===n.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&t("Formatter"),e.editable&&e.valueParser===n.valueParser&&!this.hasObjectValueParser&&t("Parser")}}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,n,r){const i=this.formatValueFuncs[t];switch(n.baseDataType){case"number":{e.cellEditor="agNumberCellEditor";break}case"boolean":{e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.getFindText=()=>null,e.suppressKeyboardEvent=o=>!!o.colDef.editable&&o.event.key===Qe.SPACE;break}case"date":{e.cellEditor="agDateCellEditor",e.keyCreator=i;break}case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=i;break}case"object":{e.cellEditorParams={useFormatter:!0},e.comparator=(o,a)=>{const s=this.colModel.getColDefCol(r),l=s?.getColDef();if(!s||!l)return 0;const c=o==null?"":i({column:s,node:null,value:o}),u=a==null?"":i({column:s,node:null,value:a});return c===u?0:c>u?1:-1},e.keyCreator=i;break}}this.beans.filterManager?.setColDefPropertiesForDataType(e,n,i)}getDefaultDataTypes(){const e=n=>!!n.match("^\\d{4}-\\d{2}-\\d{2}$"),t=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:n=>n.newValue?.trim?.()===""?null:Number(n.newValue),valueFormatter:n=>n.value==null?"":typeof n.value!="number"||isNaN(n.value)?t("invalidNumber","Invalid Number"):String(n.value),dataTypeMatcher:n=>typeof n=="number"},text:{baseDataType:"text",valueParser:n=>n.newValue===""?null:ap(n.newValue),dataTypeMatcher:n=>typeof n=="string"},boolean:{baseDataType:"boolean",valueParser:n=>n.newValue==null?n.newValue:n.newValue?.trim?.()===""?null:String(n.newValue).toLowerCase()==="true",valueFormatter:n=>n.value==null?"":String(n.value),dataTypeMatcher:n=>typeof n=="boolean"},date:{baseDataType:"date",valueParser:n=>h0(n.newValue==null?null:String(n.newValue)),valueFormatter:n=>n.value==null?"":!(n.value instanceof Date)||isNaN(n.value.getTime())?t("invalidDate","Invalid Date"):cp(n.value,!1)??"",dataTypeMatcher:n=>n instanceof Date},dateString:{baseDataType:"dateString",dateParser:n=>h0(n)??void 0,dateFormatter:n=>cp(n??null,!1)??void 0,valueParser:n=>e(String(n.newValue))?n.newValue:null,valueFormatter:n=>e(String(n.value))?n.value:"",dataTypeMatcher:n=>typeof n=="string"&&e(n)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:n=>ap(n.value)??""}}}destroyColumnStateUpdateListeners(){this.columnStateUpdateListenerDestroyFuncs.forEach(e=>e()),this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}};function PEe(e,t){const n={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(n.columnTypes=[...M$(e.columnTypes),...M$(t.columnTypes)]),n}function DEe(e,t,n){return t?t.baseDataType!==e.baseDataType?(ut(46),!1):!0:(ut(45,{parentCellDataType:n}),!1)}function kEe(e,t){if(e.valueFormatter)return n=>{if(n.node?.group){const r=(n.colDef.pivotValueColumn??n.column).getAggFunc();if(r){if(r==="first"||r==="last")return e.valueFormatter(n);if(e.baseDataType==="number"&&r!=="count"){if(typeof n.value=="number")return e.valueFormatter(n);if(typeof n.value=="object"){if(!n.value)return;if("toNumber"in n.value)return e.valueFormatter({...n,value:n.value.toNumber()});if("value"in n.value)return e.valueFormatter({...n,value:n.value.value})}}return}if(t.get("groupDisplayType")==="groupRows"&&!t.get("treeData"))return}else if(t.get("groupHideOpenParents")&&n.column.isRowGroupActive()&&typeof n.value=="string"&&!e.dataTypeMatcher?.(n.value))return;return e.valueFormatter(n)}}function HNt(e,t,n,r){if(!t[n])return!1;const i=e[n];return i===null?(t[n]=!1,!1):r===void 0?!!i:i===r}function are(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([n,r])=>HNt(e,t,n,r))}function VNt(e,t){const n=Het(e);return t.forEach(r=>{delete n[r],r==="rowGroup"?delete n.rowGroupIndex:r==="pivot"&&delete n.pivotIndex}),n}var GNt={moduleName:"DataType",version:Jn,beans:[jNt],dependsOn:[bNt]},$Nt={moduleName:"ColumnFlex",version:Jn,beans:[BNt]},UNt={moduleName:"ColumnApi",version:Jn,beans:[qNt],apiFunctions:{getColumnDef:yNt,getDisplayNameForColumn:CNt,getColumn:xNt,getColumns:wNt,applyColumnState:SNt,getColumnState:ANt,resetColumnState:ONt,isPinning:zNt,isPinningLeft:TNt,isPinningRight:ENt,getDisplayedColAfter:RNt,getDisplayedColBefore:INt,setColumnsVisible:PNt,setColumnsPinned:DNt,getAllGridColumns:kNt,getDisplayedLeftColumns:LNt,getDisplayedCenterColumns:_Nt,getDisplayedRightColumns:NNt,getAllDisplayedColumns:FNt,getAllDisplayedVirtualColumns:WNt,getColumnDefs:MNt}};function XNt(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,n=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(n,"$1 $2$3").replace(/\./g," ").split(" ").map(i=>i.substring(0,1).toUpperCase()+(i.length>1?i.substring(1,i.length):"")).join(" ")}var YNt=class extends dt{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,n=!1){if(!e)return null;const r=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:i}=this.beans;return n&&i?i.getHeaderName(e,r):r}getDisplayNameForProvidedColumnGroup(e,t,n){const r=t?.getColGroupDef();return r?this.getHeaderName(r,null,e,t,n):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,n,r,i){const o=e.headerValueGetter;if(o){const a=Vn(this.gos,{colDef:e,column:t,columnGroup:n,providedColumnGroup:r,location:i});return typeof o=="function"?o(a):typeof o=="string"?this.beans.expressionSvc?.evaluate(o,a)??null:""}else{if(e.headerName!=null)return e.headerName;if(e.field)return XNt(e.field)}return""}},KNt=class extends dt{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={}}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(e,t,n=!1){const{visibleCols:r}=this,i=r.isBodyWidthDirty;if(!(e===this.scrollWidth&&t===this.scrollPosition&&!i)){if(this.scrollWidth=e,this.scrollPosition=t,r.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const a=r.bodyWidth;this.viewportLeft=a-t-e,this.viewportRight=a-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(n)}}getHeadersToRender(e,t){let n;switch(e){case"left":n=this.rowsOfHeadersToRenderLeft[t];break;case"right":n=this.rowsOfHeadersToRenderRight[t];break;default:n=this.rowsOfHeadersToRenderCenter[t];break}return n||[]}extractViewportColumns(){const e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(e){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},e||(this.colsWithinViewportHash="")}isColumnInHeaderViewport(e){return e.isAutoHeaderHeight()||QNt(e)?!0:this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,n=t+e.getActualWidth(),r=this.viewportLeft-200,i=this.viewportRight+200,o=t<r&&n<r,a=t>i&&n>i;return!o&&!a}getViewportColumns(){const{leftCols:e,rightCols:t}=this.visibleCols;return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.colModel.colSpanActive)return this.colsWithinViewport;const t=o=>{const a=o.getLeft();return Ut(a)&&a>this.viewportLeft},n=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:r}=this,i=r.centerCols;return r.getColsForRow(e,i,n,t)}checkViewportColumns(e=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}calculateHeaderRows(){this.clear(!0);const e={},{leftCols:t,rightCols:n,treeLeft:r,treeRight:i,treeCenter:o}=this.visibleCols;this.headerColsWithinViewport.concat(t).concat(n).forEach(l=>e[l.getId()]=!0);const s=(l,c,u)=>{let d=!1;for(let p=0;p<l.length;p++){const h=l[p];let g=!1;if(vm(h))g=e[h.getId()]===!0;else{const v=h.getDisplayedChildren();v&&(g=s(v,c,u+1))}g&&(d=!0,c[u]||(c[u]=[]),c[u].push(h))}return d};s(r,this.rowsOfHeadersToRenderLeft,0),s(i,this.rowsOfHeadersToRenderRight,0),s(o,this.rowsOfHeadersToRenderCenter,0)}extractViewport(){const e=r=>`${r.getId()}-${r.getPinned()||"normal"}`;this.extractViewportColumns();const t=this.getViewportColumns().map(e).join("#"),n=this.colsWithinViewportHash!==t;return n&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),n}};function QNt(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}var ZNt=class extends dt{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.cellRenderer)return null;class n{refresh(){return!1}getGui(){return this.eGui}init(i){const o=t(i),a=typeof o;if(a==="string"||a==="number"||a==="boolean"){this.eGui=$2e("<span>"+o+"</span>");return}if(o==null){this.eGui=Nr({tag:"span"});return}this.eGui=o}}return n}},JNt={moduleName:"CellRendererFunction",version:Jn,beans:[ZNt]},eFt=class extends dt{constructor(){super(...arguments),this.beanName="registry",this.agGridDefaults={},this.agGridDefaultParams={},this.jsComps={},this.dynamicBeans={},this.selectors={},this.icons={}}postConstruct(){const t=this.gos.get("components");if(t!=null)for(const n of Object.keys(t))this.jsComps[n]=t[n]}registerModule(t){const{icons:n,userComponents:r,dynamicBeans:i,selectors:o}=t;if(r){const a=(s,l,c)=>{this.agGridDefaults[s]=l,c&&(this.agGridDefaultParams[s]=c)};for(const s of Object.keys(r)){const l=r[s];typeof l=="object"?a(s,l.classImp,l.params):a(s,l)}}if(i)for(const a of Object.keys(i))this.dynamicBeans[a]=i[a];if(o?.forEach(a=>{this.selectors[a.selector]=a}),n)for(const a of Object.keys(n))this.icons[a]=n[a]}getUserComponent(t,n){const r=(l,c,u)=>({componentFromFramework:c,component:l,params:u}),{frameworkOverrides:i}=this.beans,o=i.frameworkComponent(n,this.gos.get("components"));if(o!=null)return r(o,!0);const a=this.jsComps[n];if(a){const l=i.isFrameworkComponent(a);return r(a,l)}const s=this.agGridDefaults[n];return s?r(s,!1,this.agGridDefaultParams[n]):(this.beans.validation?.missingUserComponent(t,n,this.agGridDefaults,this.jsComps),null)}createDynamicBean(t,n,...r){const i=this.dynamicBeans[t];if(i==null){if(n)throw new Error(Of(256));return}return new i(...r)}getSelector(t){return this.selectors[t]}getIcon(t){return this.icons[t]}},tFt=23,nFt=class extends dt{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){this.addEventListener("ready",()=>{this.updateReady(),this.ready&&(this.readyCallbacks.forEach(e=>e(this.params)),this.readyCallbacks.length=0)},this.beans.frameworkOverrides.runWhenReadyAsync?.()??!1)}updateReady(){const e=Object.values(this.params);this.ready=e.length===tFt&&e.every(t=>t?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const n=this.readyCallbacks.indexOf(t);n>=0&&this.readyCallbacks.splice(n,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:e,centerHeader:t,rightHeader:n}=this.params;return[e,n,t]}getHeaderRowContainerCtrl(e){const t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},rFt=':where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none}}:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}:where(.ag-virtual-list-viewport) .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-group-title-bar) .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-flow:row wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}:where(.ag-ltr) .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}:where(.ag-group-item-alignment-stretch) .ag-group-item{align-items:stretch}:where(.ag-group-item-alignment-start) .ag-group-item{align-items:flex-start}:where(.ag-group-item-alignment-end) .ag-group-item{align-items:flex-end}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-large-text-input{display:block}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after{background-color:var(--ag-range-selection-border-color);content:"";height:1px;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:"";height:100%;position:absolute;width:1px}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-chart,.ag-dnd-ghost,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item{position:absolute;width:100%}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-list-item{align-items:center;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:"";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly,.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-column-select-column-readonly{&.ag-icon-grip,.ag-icon-grip{opacity:.35}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color);&:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);position:relative;&:after{background-color:var(--ag-accent-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}:where(.ag-ltr) .ag-filter-active{&:after{right:-1px}}:where(.ag-rtl) .ag-filter-active{&:after{left:-1px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto}.ag-menu,.ag-resizer{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-resizer{pointer-events:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}',Iye=typeof window!="object"||!window?.document?.fonts?.forEach,nP=(e,t,n,r,i,o)=>{if(Iye)return;r&&(e=`@layer ${CSS.escape(r)} { ${e} }`);let a=iI.map.get(t);if(a||(a=[],iI.map.set(t,a)),a.find(u=>u.css===e))return;const s=document.createElement("style");o&&s.setAttribute("nonce",o),s.dataset.agGlobalCss=n,s.textContent=e;const l={css:e,el:s,priority:i};let c;for(const u of a){if(u.priority>i)break;c=u}if(c){c.el.insertAdjacentElement("afterend",s);const u=a.indexOf(c);a.splice(u+1,0,l)}else t.insertBefore(s,t.querySelector(":not(title, meta)")),a.push(l)},Ztt=(e,t,n)=>{nP(rFt,e,"core",t,0,n),Array.from(_Lt()).sort((r,i)=>r.moduleName.localeCompare(i.moduleName)).forEach(r=>r.css?.forEach(i=>nP(i,e,`module-${r.moduleName}`,t,0,n)))},iFt=e=>{iI.grids.add(e)},oFt=e=>{if(iI.grids.delete(e),iI.grids.size===0){iI.map=new WeakMap;for(const t of document.head.querySelectorAll("style[data-ag-global-css]"))t.remove()}},LEe,iI=(LEe=typeof window=="object"?window:{}).agStyleInjectionState??(LEe.agStyleInjectionState={map:new WeakMap,grids:new Set}),Wl=e=>new Jtt(e),RC="$default",aFt=0,Jtt=class{constructor({feature:e,params:t,modeParams:n={},css:r,cssImports:i}){this.feature=e,this.css=r,this.cssImports=i,this.modeParams={[RC]:{...n[RC]??{},...t??{}},...n}}use(e,t,n){let r=this._inject;if(r==null){let{css:i}=this;if(i){const o=`ag-theme-${this.feature??"part"}-${++aFt}`;typeof i=="function"&&(i=i()),i=`:where(.${o}) {
${i}
}
`;for(const a of this.cssImports??[])i=`@import url(${JSON.stringify(a)});
${i}`;r={css:i,class:o}}else r=!1;this._inject=r}return r&&e&&nP(r.css,e,r.class,t,1,n),r?r.class:!1}},sFt=e=>e.replace(/[A-Z]/g,t=>`-${t}`).toLowerCase(),ent=e=>`--ag-${sFt(e)}`,Eb=e=>`var(${ent(e)})`,lFt=(e,t,n)=>Math.max(t,Math.min(n,e)),cFt=e=>{const t=new Map;return n=>{const r=n;return t.has(r)||t.set(r,e(n)),t.get(r)}},zv=e=>({ref:"accentColor",mix:e}),ju=e=>({ref:"foregroundColor",mix:e}),ip=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),uFt=e=>({ref:"foregroundColor",mix:e,onto:"headerBackgroundColor"}),ep={ref:"backgroundColor"},dy={ref:"foregroundColor"},GC={ref:"accentColor"},I$={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:ju(.15),chromeBackgroundColor:ip(.02),browserColorScheme:"light"},dFt={...I$,textColor:dy,accentColor:"#2196f3",invalidColor:"#e02525",wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:ep,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},cellFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},subtleTextColor:{ref:"textColor",mix:.5},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:GC,rangeSelectionBackgroundColor:zv(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:zv(.5),rangeHeaderHighlightColor:uFt(.08),rowNumbersSelectedColor:zv(.5),rowHoverColor:zv(.08),columnHoverColor:zv(.05),selectedRowBackgroundColor:zv(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},oddRowBackgroundColor:ep,borderRadius:4,wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",spacing:8,fontSize:14,rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},dragAndDropImageBackgroundColor:ep,dragAndDropImageBorder:!0,dragAndDropImageShadow:{ref:"popupShadow"},dragHandleColor:ju(.7),focusShadow:{spread:3,color:zv(.5)},headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},listItemHeight:{calc:"max(iconSize, dataFontSize) + widgetVerticalSpacing"},iconSize:16,iconColor:"inherit",iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:ju(.1),iconButtonActiveColor:GC,iconButtonActiveBackgroundColor:zv(.28),iconButtonActiveIndicatorColor:GC,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:GC,toggleButtonOffBackgroundColor:ip(.3),toggleButtonSwitchBackgroundColor:ep,toggleButtonSwitchInset:2,menuBorder:{color:ju(.2)},menuBackgroundColor:ip(.03),menuTextColor:ip(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:ju(.8),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:GC},cellEditingShadow:{ref:"cardShadow"},dialogBorder:{color:ju(.2)},panelBackgroundColor:ep,panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipTextColor:{ref:"textColor"},tooltipBorder:!0,columnDropCellBackgroundColor:ju(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:ju(.13)},selectCellBackgroundColor:ju(.07),selectCellBorder:{color:ju(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",findMatchColor:dy,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:dy,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:ju(.15),statusBarLabelColor:dy,statusBarLabelFontWeight:500,statusBarValueColor:dy,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"backgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"backgroundColor"},pinnedRowTextColor:{ref:"textColor"}},tnt=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}",nnt={buttonTextColor:"inherit",buttonFontWeight:"normal",buttonBackgroundColor:"transparent",buttonBorder:!1,buttonBorderRadius:{ref:"borderRadius"},buttonHorizontalPadding:{calc:"spacing * 2"},buttonVerticalPadding:{ref:"spacing"},buttonHoverTextColor:{ref:"buttonTextColor"},buttonHoverBackgroundColor:{ref:"buttonBackgroundColor"},buttonHoverBorder:{ref:"buttonBorder"},buttonActiveTextColor:{ref:"buttonHoverTextColor"},buttonActiveBackgroundColor:{ref:"buttonHoverBackgroundColor"},buttonActiveBorder:{ref:"buttonHoverBorder"},buttonDisabledTextColor:{ref:"inputDisabledTextColor"},buttonDisabledBackgroundColor:{ref:"inputDisabledBackgroundColor"},buttonDisabledBorder:{ref:"inputDisabledBorder"}},pFt=()=>Wl({feature:"buttonStyle",params:nnt,css:tnt}),hFt=pFt(),fFt=()=>Wl({feature:"buttonStyle",params:{...nnt,buttonBackgroundColor:ep,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:GC}},css:tnt}),gFt=fFt(),mFt=".ag-column-drop-vertical-empty-message{align-items:center;border:1px dashed;border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}",vFt=".ag-column-drop-vertical-empty-message{color:var(--ag-subtle-text-color);font-size:calc(var(--ag-font-size) - 1px);font-weight:600;padding-top:var(--ag-spacing)}:where(.ag-ltr) .ag-column-drop-vertical-empty-message{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing) + var(--ag-widget-horizontal-spacing));padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-column-drop-vertical-empty-message{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-icon-size) + var(--ag-spacing) + var(--ag-widget-horizontal-spacing))}",bFt=()=>Wl({feature:"columnDropStyle",css:mFt}),rnt=bFt(),yFt=()=>Wl({feature:"columnDropStyle",css:vFt}),MFt=yFt(),CFt=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],xFt=cFt(e=>(e=e.toLowerCase(),CFt.find(t=>e.endsWith(t.toLowerCase()))??"length")),EK=e=>typeof e=="object"&&e?.ref?Eb(e.ref):typeof e=="string"?e:typeof e=="number"?String(e):!1,Pye=e=>{if(typeof e=="string")return e;if(e&&"ref"in e){const t=Eb(e.ref);return e.mix==null?t:`color-mix(in srgb, ${e.onto?Eb(e.onto):"transparent"}, ${t} ${lFt(e.mix*100,0,100)}%)`}return!1},wFt=EK,TR=e=>typeof e=="string"?e:typeof e=="number"?`${e}px`:e&&"calc"in e?`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,n=>n[0]==="-"?n:` ${Eb(n)} `)})`:e&&"ref"in e?Eb(e.ref):!1,SFt=EK,AFt=(e,t)=>typeof e=="string"?e:e===!0?"solid 1px var(--ag-border-color)":e===!1?t==="columnBorder"?"solid 1px transparent":"none":e&&"ref"in e?Eb(e.ref):int(e.style??"solid")+" "+TR(e.width??1)+" "+Pye(e.color??{ref:"borderColor"}),OFt=e=>typeof e=="string"?e:e===!1?"none":e&&"ref"in e?Eb(e.ref):[TR(e.offsetX??0),TR(e.offsetY??0),TR(e.radius??0),TR(e.spread??0),Pye(e.color??{ref:"foregroundColor"})].join(" "),int=EK,ont=e=>typeof e=="string"?e.includes(",")?e:_Ee(e):e&&"googleFont"in e?ont(e.googleFont):e&&"ref"in e?Eb(e.ref):Array.isArray(e)?e.map(t=>(typeof t=="object"&&"googleFont"in t&&(t=t.googleFont),_Ee(t))).join(", "):!1,_Ee=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),zFt=EK,ant=e=>typeof e=="string"?e:e&&"url"in e?`url(${JSON.stringify(e.url)})`:e&&"svg"in e?ant({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):e&&"ref"in e?Eb(e.ref):!1,TFt=(e,t)=>typeof e=="string"?e:typeof e=="number"?(e>=10&&pi(104,{value:e,param:t}),`${e}s`):e&&"ref"in e?Eb(e.ref):!1,EFt={color:Pye,colorScheme:wFt,length:TR,scale:SFt,border:AFt,borderStyle:int,shadow:OFt,image:ant,fontFamily:ont,fontWeight:zFt,duration:TFt},RFt=(e,t)=>{const n=xFt(e);return EFt[n](t,e)},snt=()=>new lnt().withPart(gFt).withPart(rnt),lnt=class cnt{constructor(t=[]){this.parts=t}withPart(t){return typeof t=="function"&&(t=t()),t instanceof Jtt?new cnt([...this.parts,t]):(B5(259,{part:t},"Invalid part"),this)}withoutPart(t){return this.withPart(Wl({feature:t}))}withParams(t,n=RC){return this.withPart(Wl({modeParams:{[n]:t}}))}_startUse({styleContainer:t,cssLayer:n,nonce:r,loadThemeGoogleFonts:i}){if(Iye)return;PFt(),Ztt(t,n,r);const o=IFt(this);if(o.length>0)for(const a of o)i&&kFt(a,r);for(const a of this.parts)a.use(t,n,r)}_getCssClass(){return this._cssClassCache??(this._cssClassCache=NEe(this.parts).map(t=>t.use(void 0,void 0,void 0)).filter(Boolean).join(" "))}_getModeParams(){let t=this._paramsCache;if(!t){const n={[RC]:{...dFt}};for(const r of NEe(this.parts))for(const i of Object.keys(r.modeParams)){const o=r.modeParams[i];if(o){const a=n[i]??(n[i]={}),s=new Set;for(const l of Object.keys(o)){const c=o[l];c!==void 0&&(a[l]=c,s.add(l))}if(i===RC)for(const l of Object.keys(n)){const c=n[l];if(l!==RC)for(const u of s)delete c[u]}}}this._paramsCache=t=n}return t}_getPerGridCss(t){const n="##SELECTOR##";let r=this._paramsCssCache;if(!r){let i="",o="";const a=this._getModeParams();for(const l of Object.keys(a)){const c=a[l];if(l!==RC){const d=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(l):l}"]) & {
`;i+=d,o+=d}for(const u of Object.keys(c).sort()){const d=c[u],p=RFt(u,d);if(p===!1)pi(107,{key:u,value:d});else{const h=ent(u),g=h.replace("--ag-","--ag-inherited-");i+=`	${h}: var(${g}, ${p});
`,o+=`	${g}: var(${h});
`}}l!==RC&&(i+=`}
`,o+=`}
`)}let s=`${n} {
${i}}
`;s+=`:has(> ${n}):not(${n}) {
${o}}
`,this._paramsCssCache=r=s}return r.replaceAll(n,`:where(.${t})`)}},NEe=e=>{const t=new Map;for(const r of e)t.set(r.feature,r);const n=[];for(const r of e)(!r.feature||t.get(r.feature)===r)&&n.push(r);return n},IFt=e=>{const t=new Set,n=o=>{if(Array.isArray(o))o.forEach(n);else{const a=o?.googleFont;typeof a=="string"&&t.add(a)}};return Object.values(e._getModeParams()).flatMap(o=>Object.values(o)).forEach(n),Array.from(t).sort()},FEe=!1,PFt=()=>{if(!FEe){FEe=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},DFt=new Set,kFt=async(e,t)=>{DFt.add(e);const n=`@import url('https://${LFt}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
`;nP(n,document.head,`googleFont:${e}`,void 0,0,t)},LFt="fonts.googleapis.com",_Ft='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',NFt=()=>Wl({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:ep,checkboxUncheckedBorderColor:ip(.3),checkboxCheckedBackgroundColor:GC,checkboxCheckedBorderColor:{ref:"checkboxCheckedBackgroundColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:ep,checkboxIndeterminateBackgroundColor:ip(.3),checkboxIndeterminateBorderColor:{ref:"checkboxIndeterminateBackgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:ep,radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:_Ft}),unt=NFt(),dnt=()=>({...I$,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:ip(.05),rowHoverColor:zv(.15),selectedRowBackgroundColor:zv(.2),menuBackgroundColor:ip(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",findMatchColor:ep,findActiveMatchColor:ep,checkboxUncheckedBorderColor:ip(.4),toggleButtonOffBackgroundColor:ip(.4)}),FFt=()=>({...dnt(),backgroundColor:"#1f2836"}),WFt=()=>Wl({feature:"colorScheme",params:I$,modeParams:{light:I$,dark:dnt(),"dark-blue":FFt()}}),pnt=WFt(),qFt=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eaggregation%3C/title%3E%3Cpath d='M24 5.333H8V8l8.667 8L8 24v2.667h16v-4h-9.333L21.334 16l-6.667-6.667H24z'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='M13.333 11.556h5.333V8h3.556L16 1.778 9.778 8h3.556zm-1.777 1.777H8V9.777l-6.222 6.222L8 22.221v-3.556h3.556zM30.222 16 24 9.778v3.556h-3.556v5.333H24v3.556l6.222-6.222zm-11.555 4.444h-5.333V24H9.778L16 30.222 22.222 24h-3.556z'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 2.667C8.627 2.667 2.667 8.627 2.667 16S8.627 29.333 16 29.333 29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387H7.361zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M5.333 10.667h5.333V5.334H5.333zm8 16h5.333v-5.333h-5.333zm-8 0h5.333v-5.333H5.333zm0-8h5.333v-5.333H5.333zm8 0h5.333v-5.333h-5.333zm8-13.334v5.333h5.333V5.333zm-8 5.334h5.333V5.334h-5.333zm8 8h5.333v-5.333h-5.333zm0 8h5.333v-5.333h-5.333z'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m25.333 8.547-1.88-1.88L16 14.12 8.547 6.667l-1.88 1.88L14.12 16l-7.453 7.453 1.88 1.88L16 17.88l7.453 7.453 1.88-1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m19 3-6 6 2 2 7-7V3m-10 9.5a.503.503 0 0 1-.5-.5c0-.274.226-.5.5-.5s.5.226.5.5-.226.5-.5.5M6 20c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2M6 8c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2m3.64-.36c.23-.5.36-1.05.36-1.64 0-2.194-1.806-4-4-4S2 3.806 2 6s1.806 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.194 0-4 1.806-4 4s1.806 4 4 4 4-1.806 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1z' style='fill-rule:nonzero' transform='translate(4 4)'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667L26.668 16z'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath d='M21.106 15.088A5.19 5.19 0 0 0 16 10.814a5.17 5.17 0 0 0-3.668 1.522L9.866 9.868a12.2 12.2 0 0 1 6.133-1.646c5.186 0 9.614 3.225 11.408 7.778a12.34 12.34 0 0 1-5.276 6.133l-2.468-2.466a5.17 5.17 0 0 0 1.449-2.802h-2.123c-.148.508-.42.964-.782 1.33l-1.33-1.33h-2.514l2.196 2.196q-.272.049-.56.05a3.11 3.11 0 0 1-2.99-2.245h-2.123a5.19 5.19 0 0 0 7.3 3.836l2.247 2.247a12.2 12.2 0 0 1-4.434.828c-5.186 0-9.614-3.225-11.408-7.778a12.3 12.3 0 0 1 3.781-5.111l2.924 2.924a5.1 5.1 0 0 0-.404 1.275h4.206l-1.296-1.296a3.1 3.1 0 0 1 2.196-.903c1.404 0 2.587.924 2.976 2.199h2.13z'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16 8.222c-5.186 0-9.614 3.225-11.408 7.778 1.794 4.553 6.222 7.778 11.408 7.778S25.614 20.553 27.408 16C25.614 11.447 21.186 8.222 16 8.222m0 12.964c-2.862 0-5.186-2.324-5.186-5.186s2.324-5.186 5.186-5.186 5.186 2.324 5.186 5.186-2.324 5.186-5.186 5.186m0-8.297c-1.721 0-3.111 1.39-3.111 3.111s1.39 3.111 3.111 3.111 3.111-1.39 3.111-3.111-1.39-3.111-3.111-3.111'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M13.333 24h5.333v-2.667h-5.333zM4 8v2.667h24V8zm4 9.333h16v-2.667H8z'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M18.667 21.333h8.889A3.555 3.555 0 0 1 24 24.889h-5.333zm8.888-7.111v3.556h-8.889v-3.556zM24 7.111a3.555 3.555 0 0 1 3.556 3.556h-16V7.111zm-8.889 17.778h-3.556v-3.556h3.556zm0-7.111h-3.556v-3.556h3.556zM8 10.667H4.444A3.555 3.555 0 0 1 8 7.111z'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227v-2.667z'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333c-3.68 0-6.667 2.987-6.667 6.667s2.987 6.667 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333c2.28 0 4.133 1.853 4.133 4.133s-1.853 4.133-4.133 4.133h-5.333v2.533h5.333c3.68 0 6.667-2.987 6.667-6.667s-2.987-6.667-6.667-6.667z'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='m17.778 11.708 3.25-3.251 2.516 2.516-3.251 3.25h4.597v3.556h-4.597l3.251 3.25-2.516 2.516-3.25-3.251v4.597h-3.556v-4.597l-3.25 3.251-2.516-2.516 3.251-3.25H7.11v-3.556h4.597l-3.251-3.25 2.516-2.516 3.25 3.251V7.111h3.556zm-3.251 7.847h2.944l2.084-2.084v-2.944l-2.084-2.084h-2.944l-2.084 2.084v2.944z'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='M4 4h24v2.667H4z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M4 24h24v-2.667H4zm0-6.667h24v-2.667H4zM4 8v2.667h24V8z'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 26.667a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 24q0-1.1.784-1.883A2.57 2.57 0 0 1 16 21.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 16q0-1.1.784-1.883A2.57 2.57 0 0 1 16 13.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 8q0-1.1.784-1.883A2.57 2.57 0 0 1 16 5.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='M8 25.333h16V28H8z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cpath d='M4 24h16v-2.667H4zM4 8v2.667h24V8zm0 9.333h24v-2.667H4z'/%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M25.333 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4zM16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m11.106 22.093-4.444 4.444-1.259-1.259 4.444-4.444zm5.872-16.63 9.618 9.62-.962.962-.962-.962-7.694 3.847 1.924 1.924-2.74 2.74-7.696-7.696 2.741-2.74 1.924 1.925 3.847-7.696-.962-.962z'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M26.667 30.223H5.334a3.556 3.556 0 0 1-3.556-3.556V5.334a3.556 3.556 0 0 1 3.556-3.556h21.333a3.556 3.556 0 0 1 3.556 3.556v21.333a3.556 3.556 0 0 1-3.556 3.556m-16-8.89H5.334v5.333h5.333zm16-7.11H12.444v12.444h14.223zm-9.15 6.85-2.039 2.037 2.039 2.039-1.257 1.257-3.295-3.296 3.295-3.295q.63.628 1.257 1.257zm-6.85-6.85H5.334v5.333h5.333zm15.74 3.816-1.257 1.256-2.039-2.037-2.037 2.037-1.257-1.256 3.295-3.296zM10.667 5.333H5.334v5.333h5.333zm8.889 0h-7.112v5.333h7.112zm7.111 0h-5.333v5.333h5.333z'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M9.333 12.667 16 19.334l6.667-6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M19.333 9.333 12.666 16l6.667 6.667V9.334z'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='M12.667 22.667 19.334 16l-6.667-6.667v13.333z'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='M9.333 19.333 16 12.666l6.667 6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='m11.727 21.167-5.56-5.56-1.893 1.88 7.453 7.453 16-16-1.88-1.88z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6.667 14.667h18.667v2.667H6.667z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M22.12 11.06 16 17.167 9.88 11.06 8 12.94l8 8 8-8z'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M26.667 12H5.334v2.667h21.333zM5.333 20h21.333v-2.667H5.333z'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}.ag-icon-column-arrow:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-un-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11'/%3E%3Cpath fill='currentColor' d='M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28zM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972z'/%3E%3C/svg%3E")}.ag-icon-pinned-top:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22M3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536'/%3E%3C/svg%3E")}.ag-icon-pinned-bottom:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22M12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536'/%3E%3C/svg%3E")}`,BFt=Wl({feature:"iconSet",css:qFt}),hnt={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>'},fnt={"column-arrow":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 26C0 28.2092 1.79086 30 4 30H14C16.2091 30 18 28.2092 18 26V15H25.8786L24.4394 16.4393C23.8536 17.0251 23.8536 17.9749 24.4394 18.5607C25.0252 19.1464 25.9748 19.1464 26.5606 18.5607L30.5606 14.5607C31.1464 13.9749 31.1464 13.0251 30.5606 12.4393L26.5606 8.43934C25.9748 7.85356 25.0252 7.85356 24.4394 8.43934C23.8536 9.02512 23.8536 9.97488 24.4394 10.5607L25.8786 12H18V6C18 3.79086 16.2091 2 14 2H4C1.79086 2 0 3.79086 0 6V26ZM14 5H10.5V12H15V6C15 5.44772 14.5523 5 14 5ZM4 5H7.5V12H3V6C3 5.44772 3.44772 5 4 5ZM10.5 15H15V26C15 26.5522 14.5523 27 14 27H10.5V15ZM4 27H7.5V15H3V26C3 26.5522 3.44772 27 4 27Z" fill="currentColor"/></svg>',"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>',"pinned-top":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22ZM3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536Z"/></svg>',"pinned-bottom":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22ZM12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536Z"/></svg>',"un-pin":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11Z"/><path fill="currentColor" d="M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904l.589-.825Zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28l2.887-4.044ZM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972L9.277 1Z"/></svg>'},jFt=(e={})=>{let t="";for(const n of[...Object.keys(hnt),...Object.keys(fnt)]){const r=HFt(n,e.strokeWidth);t+=`.ag-icon-${n}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(r)}'); }
`}return t},HFt=(e,t=1.5)=>{const n=fnt[e];if(n)return n;const r=hnt[e];if(!r)throw new Error(`Missing icon data for ${e}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${t}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+r+"</svg>"},VFt=(e={})=>Wl({feature:"iconSet",css:()=>jFt(e)}),GFt=VFt(),gnt=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}',$Ft=".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){&:focus{box-shadow:var(--ag-focus-shadow)}}",UFt=".ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){border-left:none;border-right:none;border-top:none}",mnt={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"},pickerButtonBorder:!1,pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:!1,pickerListBackgroundColor:{ref:"backgroundColor"}},XFt=()=>Wl({feature:"inputStyle",params:{...mnt,inputBackgroundColor:ep,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:GC},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:ip(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>gnt+$Ft}),YFt=XFt(),KFt=()=>Wl({feature:"inputStyle",params:{...mnt,inputBackgroundColor:"transparent",inputBorder:{width:2,color:ju(.3)},inputPaddingStart:{ref:"spacing"},inputFocusBorder:"solid 2px var(--ag-accent-color)",inputDisabledTextColor:{ref:"textColor",mix:.5},inputDisabledBorder:"solid 1px var(--ag-border-color)",inputInvalidBorder:{width:2,color:{ref:"invalidColor",mix:.3}}},css:()=>gnt+UFt}),QFt=KFt(),vnt='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}',bnt={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},ZFt=()=>Wl({feature:"tabStyle",params:{...bnt,tabBarBorder:!0,tabBarBackgroundColor:ju(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:ep},css:vnt}),JFt=ZFt(),eWt=()=>Wl({feature:"tabStyle",params:{...bnt,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabSelectedUnderlineColor:{ref:"primaryColor"},tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:0},css:vnt}),tWt=eWt(),nWt=".ag-dnd-ghost,.ag-filter-toolpanel-header,.ag-filter-toolpanel-search,.ag-multi-filter-group-title-bar,.ag-panel-title-bar-title,.ag-status-bar{color:var(--ag-header-text-color);font-size:calc(var(--ag-font-size) - 1px);font-weight:600}.ag-column-drop-horizontal{background-color:color-mix(in srgb,var(--ag-background-color),var(--ag-foreground-color) 8%)}.ag-cell.ag-cell-inline-editing{background-color:var(--ag-background-color);background-image:linear-gradient(0deg,var(--ag-input-background-color),var(--ag-input-background-color));border:var(--ag-input-border)!important;border-width:1px!important;height:calc(var(--ag-row-height) + var(--ag-spacing)*3);padding:var(--ag-spacing);:where(.ag-row-last:not(.ag-row-first)) &{bottom:0}:where(.ag-has-focus) &{border:var(--ag-input-focus-border)!important;border-width:1px!important}}.ag-advanced-filter-builder-button,.ag-standard-button{text-transform:uppercase}.ag-status-bar{border:1px solid var(--ag-border-color)}.ag-list-item-hovered:after{background-color:var(--ag-primary-color)}.ag-pill-button:hover{color:var(--ag-primary-color)}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-primary-color)}",rWt=()=>snt().withPart(unt).withPart(pnt).withPart(GFt).withPart(JFt).withPart(YFt).withPart(rnt).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),iWt=rWt(),oWt=()=>{const e={tabSelectedUnderlineColor:{ref:"primaryColor"},sideButtonSelectedUnderlineColor:{ref:"primaryColor"},buttonTextColor:{ref:"primaryColor"},rangeSelectionBackgroundColor:{ref:"primaryColor",mix:.2},rangeSelectionBorderColor:{ref:"primaryColor"},rangeSelectionHighlightColor:{ref:"primaryColor",mix:.5},rangeHeaderHighlightColor:{ref:"foregroundColor",mix:.08},rowNumbersSelectedColor:{ref:"primaryColor",mix:.5},inputFocusBorder:{width:2,color:{ref:"primaryColor"}},pickerButtonFocusBorder:{width:1,color:{ref:"primaryColor"}},cellEditingBorder:{color:{ref:"primaryColor"}},menuBackgroundColor:{ref:"backgroundColor"},sideButtonBarBackgroundColor:ep,sideButtonSelectedBackgroundColor:"transparent",sideButtonBarTopPadding:{calc:"spacing * 4"},headerColumnResizeHandleColor:"none",headerBackgroundColor:{ref:"backgroundColor"},rowHoverColor:ju(.08),columnHoverColor:ju(.08),headerCellHoverBackgroundColor:ju(.05),statusBarLabelColor:ju(.63),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,valueChangeValueHighlightBackgroundColor:"#00acc1",panelTitleBarIconColor:dy,advancedFilterBuilderButtonBarBorder:!1},t={...e,primaryColor:"#3f51b5",foregroundColor:"#000D",headerTextColor:"#0008",accentColor:"#ff4081",checkboxUncheckedBorderColor:dy,checkboxIndeterminateBackgroundColor:dy,toggleButtonOffBackgroundColor:dy,selectedRowBackgroundColor:"rgba(33, 150, 243, 0.3)"},n={...e,primaryColor:"#3f51b5",foregroundColor:"#fffD",headerTextColor:"#fff8",accentColor:"#bb86fc",checkboxUncheckedBorderColor:ip(.5),checkboxIndeterminateBackgroundColor:ip(.5),toggleButtonOffBackgroundColor:ip(.5),selectedRowBackgroundColor:"#bb86fc33"};return Wl({feature:"styleMaterial",css:nWt,params:t,modeParams:{light:t,dark:n,"dark-blue":n}})},aWt=oWt(),sWt=()=>snt().withPart(hFt).withPart(unt).withPart(pnt).withPart(BFt).withPart(tWt).withPart(QFt).withPart(MFt).withPart(aWt).withParams({rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.75 * rowVerticalPaddingScale"},headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4.75 * headerVerticalPaddingScale"},widgetVerticalSpacing:{calc:"spacing * 1.75"},cellHorizontalPadding:{calc:"spacing * 3"},buttonHorizontalPadding:{ref:"spacing"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 2"},fontSize:13,iconSize:18,borderRadius:0,wrapperBorderRadius:0,wrapperBorder:!1,menuBorder:!1,dialogBorder:!1,panelTitleBarBorder:!1,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sidePanelBorder:!1,sideButtonSelectedBorder:!1,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:!1,buttonBorder:!1,buttonDisabledBorder:!1,focusShadow:{spread:4,color:ju(.16)},fontFamily:[{googleFont:"Roboto"},"-apple-system","BlinkMacSystemFont","Segoe UI","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],inputHeight:{calc:"max(iconSize, fontSize) + spacing * 3"},pickerButtonBorder:{width:1,color:"transparent"},headerFontWeight:600,headerFontSize:{calc:"fontSize - 1px"},checkboxBorderWidth:2,checkboxBorderRadius:2,toggleButtonWidth:34,toggleButtonSwitchInset:1,cardShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",popupShadow:"5px 5px 10px rgba(0, 0, 0, 0.3)"}),Dye=sWt(),lWt={cssName:"--ag-cell-horizontal-padding",changeKey:"cellHorizontalPaddingChanged",defaultValue:16},cWt={cssName:"--ag-indentation-level",changeKey:"indentationLevelChanged",defaultValue:0,noWarn:!0,cacheDefault:!0},uWt={cssName:"--ag-row-group-indent-size",changeKey:"rowGroupIndentSizeChanged",defaultValue:0},WEe={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},qEe={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},BEe={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},sre={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},jEe={cssName:"--ag-pinned-row-border",changeKey:"pinnedRowBorderWidthChanged",defaultValue:1,border:!0},dWt=0,pWt=class extends dt{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.paramsClass=`ag-theme-params-${++dWt}`,this.globalCSS=[]}wireBeans(e){const{eGridDiv:t,gridOptions:n}=e;this.eGridDiv=t,this.eStyleContainer=n.themeStyleContainer??(t.getRootNode()===document?document.head:t),this.cssLayer=n.themeCssLayer,this.styleNonce=n.styleNonce}postConstruct(){this.addManagedPropertyListener("theme",()=>this.handleThemeGridOptionChange()),this.handleThemeGridOptionChange(),this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(WEe),this.getSizeEl(qEe),this.getSizeEl(BEe),this.getSizeEl(sre),this.getSizeEl(jEe),this.refreshRowBorderWidthVariable(),this.addDestroyFunc(()=>oFt(this)),this.mutationObserver=new MutationObserver(()=>{this.fireGridStylesChangedEvent("themeChanged")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(jEe)}getRowBorderWidth(){return this.getCSSVariablePixelValue(sre)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(WEe)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(qEe)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(lWt)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(cWt),n=this.getCSSVariablePixelValue(uWt);return e-1+n*t}getCellPadding(){const e=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+e}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(BEe)}applyThemeClasses(e){const{gridTheme:t}=this;let n="";if(t)n=`${this.paramsClass} ${t._getCssClass()}`;else{this.mutationObserver.disconnect();let r=this.eGridDiv;for(;r;){let i=!1;for(const o of Array.from(r.classList))o.startsWith("ag-theme-")&&(i=!0,n=n?`${n} ${o}`:o);i&&this.mutationObserver.observe(r,{attributes:!0,attributeFilter:["class"]}),r=r.parentElement}}for(const r of Array.from(e.classList))r.startsWith("ag-theme-")&&e.classList.remove(r);if(n){const r=e.className;e.className=r+(r?" ":"")+n}}refreshRowHeightVariable(){const{eGridDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),n=this.gos.get("rowHeight");if(n==null||isNaN(n)||!isFinite(n))return t!==null&&e.style.setProperty("--ag-line-height",null),-1;const r=`${n}px`;return t!=r?(e.style.setProperty("--ag-line-height",r),n):t!=""?parseFloat(t):-1}addGlobalCSS(e,t){this.gridTheme?nP(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(t!=null)return t;const n=this.measureSizeEl(e);return n==="detached"||n==="no-styles"?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,n),n)}measureSizeEl(e){const t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";const n=t.offsetWidth;return n===lre?"no-styles":(this.sizesMeasured=!0,n)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=Nr({tag:"div",cls:"ag-measurement-container"}),this.eGridDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const n=this.getMeasurementContainer();t=Nr({tag:"div"});const{border:r,noWarn:i}=e;r?(t.className="ag-measurement-element-border",t.style.setProperty("--ag-internal-measurement-border",`var(${e.cssName}, solid ${lre}px)`)):t.style.width=`var(${e.cssName}, ${lre}px)`,n.appendChild(t),this.sizeEls.set(e,t);let o=this.measureSizeEl(e);o==="no-styles"&&!i&&ut(9,{variable:e});const a=Hf(this.beans,t,()=>{const s=this.measureSizeEl(e);s==="detached"||s==="no-styles"||(this.lastKnownValues.set(e,s),s!==o&&(o=s,this.fireGridStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>a()),t}fireGridStylesChangedEvent(e){e==="rowBorderWidthChanged"&&this.refreshRowBorderWidthVariable(),this.eventSvc.dispatchEvent({type:"gridStylesChanged",[e]:!0})}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(sre);this.eGridDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}handleThemeGridOptionChange(){const{gos:e,eGridDiv:t,globalCSS:n,gridTheme:r}=this,i=e.get("theme");let o;if(i==="legacy")o=void 0;else{const a=i??iWt;a instanceof lnt?o=a:pi(240,{theme:a})}if(o!==r){if(o){iFt(this),Ztt(this.eStyleContainer,this.cssLayer,this.styleNonce);for(const[s,l]of n)nP(s,this.eStyleContainer,l,this.cssLayer,0,this.styleNonce);n.length=0}this.gridTheme=o,o?._startUse({loadThemeGoogleFonts:e.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce});let a=this.eParamsStyle;if(!a){a=this.eParamsStyle=Nr({tag:"style"});const s=this.gos.get("styleNonce");s&&a.setAttribute("nonce",s),t.appendChild(a)}Iye||(a.textContent=o?._getPerGridCss(this.paramsClass)||""),this.applyThemeClasses(t),this.fireGridStylesChangedEvent("themeChanged")}o&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&pi(i?106:239)}},lre=15538,hWt=class extends dt{constructor(){super(...arguments),this.beanName="eventSvc",this.globalSvc=new Wy}postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}addEventListener(e,t,n){this.globalSvc.addEventListener(e,t,n)}removeEventListener(e,t,n){this.globalSvc.removeEventListener(e,t,n)}addGlobalListener(e,t=!1){this.globalSvc.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}dispatchLocalEvent(){}dispatchEvent(e){this.globalSvc.dispatchEvent(Vn(this.gos,e))}dispatchEventOnce(e){this.globalSvc.dispatchEventOnce(Vn(this.gos,e))}};function ynt(e){return e?e.getLeafColumns().some(t=>t.isSpanHeaderHeight()):!1}function mhe(e,t){let n;if(Pl(e)&&ynt(e)&&e.isPadding()){const r=e;n=r.getLeafColumns()[0];let i=n;for(;i!==r;)t++,i=i.getParent()}return{column:n||e,headerRowIndex:t}}var fWt=class extends dt{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,n=>{this.gridBodyCon=n.gridBodyCtrl});const t=bl(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let n;const{colModel:r,colGroupSvc:i,ctrlsSvc:o}=this.beans;if(typeof e=="string"?(n=r.getCol(e),n||(n=i?.getColumnGroup(e)??null)):n=e,!n)return null;const s=o.getHeaderRowContainerCtrl()?.getAllCtrls(),l=zr(s||[]).type==="filter",c=Qv(this.beans)-1;let u=-1,d=n;for(;d;)u++,d=d.getParent();let p=u;return t&&l&&p===c-1&&p++,p===-1?null:{headerRowIndex:p,column:n}}navigateVertically(e,t,n){const r=this.beans.focusSvc;if(t||(t=r.focusedHeader),!t)return!1;const{headerRowIndex:i}=t,o=t.column,a=Qv(this.beans),s=e==="UP",l=this.getHeaderRowType(i);let{headerRowIndex:c,column:u,headerRowIndexWithoutSpan:d}=s?gWt(l,o,i):mWt(l,o,i),p=!1;return c<0&&(c=0,u=o,p=!0),c>=a?(c=-1,this.currentHeaderRowWithoutSpan=-1):d!==void 0&&(this.currentHeaderRowWithoutSpan=d),!p&&!u?!1:r.focusHeaderPosition({headerPosition:{headerRowIndex:c,column:u},allowUserOverride:!0,event:n})}navigateHorizontally(e,t=!1,n){const{focusSvc:r,gos:i}=this.beans,o=r.focusedHeader;let a,s;this.currentHeaderRowWithoutSpan!==-1?o.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=o.headerRowIndex,e==="LEFT"!==i.get("enableRtl")?(s="Before",a=this.findHeader(o,s)):(s="After",a=this.findHeader(o,s));const l=i.getCallback("tabToNextHeader");if(t&&l){const c=r.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:a,direction:s});if(c){const{headerRowIndex:u}=r.focusedHeader||{};u!=null&&u!=o.headerRowIndex&&(this.currentHeaderRowWithoutSpan=u)}return c}return a||!t?r.focusHeaderPosition({headerPosition:a,direction:s,fromTab:t,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(o,s,n)}focusNextHeaderRow(e,t,n){const r=e.headerRowIndex;let i=null,o;const a=this.beans;if(t==="Before"?r>0&&(o=r-1,this.currentHeaderRowWithoutSpan-=1,i=this.findColAtEdgeForHeaderRow(o,"end")):(o=r+1,this.currentHeaderRowWithoutSpan<Qv(a)?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1,i=this.findColAtEdgeForHeaderRow(o,"start")),!i)return!1;const{column:s,headerRowIndex:l}=mhe(i.column,i?.headerRowIndex);return a.focusSvc.focusHeaderPosition({headerPosition:{column:s,headerRowIndex:l},direction:t,fromTab:!0,allowUserOverride:!0,event:n})}scrollToColumn(e,t="After"){if(e.getPinned())return;let n;if(Pl(e)){const r=e.getDisplayedLeafColumns();n=t==="Before"?zr(r):r[0]}else n=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(n)}findHeader(e,t){let n,r;const{colGroupSvc:i,visibleCols:o}=this.beans;if(Pl(e.column)?n=i?.getGroupAtDirection(e.column,t)??void 0:(r=`getCol${t}`,n=o[r](e.column)),!n)return;const{headerRowIndex:a}=e;if(this.getHeaderRowType(a)!=="filter"){const c=[n];for(;n.getParent();)n=n.getParent(),c.push(n);n=c[Math.max(0,c.length-1-a)]}const{column:s,headerRowIndex:l}=mhe(n,a);return{column:s,headerRowIndex:l}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}findColAtEdgeForHeaderRow(e,t){const{visibleCols:n,ctrlsSvc:r,colGroupSvc:i}=this.beans,o=n.allCols,a=o[t==="start"?0:o.length-1];if(!a)return;const l=r.getHeaderRowContainerCtrl(a.getPinned())?.getRowType(e);if(l=="group"){const c=i?.getColGroupAtLevel(a,e);return{headerRowIndex:e,column:c}}return{headerRowIndex:l==null?-1:e,column:a}}};function gWt(e,t,n){const r=e==="filter",i=e==="column";let o=r?t:t.getParent(),a=n-1,s=a;if(i&&ynt(t.getParent())){for(;o&&o.isPadding();)o=o.getParent(),a--;s=a,a<0&&(o=t,a=n,s=void 0)}return{column:o,headerRowIndex:a,headerRowIndexWithoutSpan:s}}function mWt(e,t,n,r="After"){let i=t,o=n+1;const a=o;if(e==="group"){const s=t.getDisplayedLeafColumns(),l=r==="After"?s[0]:zr(s),c=[];let u=l;for(;u.getParent()!==t;)u=u.getParent(),c.push(u);if(i=l,l.isSpanHeaderHeight())for(let d=c.length-1;d>=0;d--){const p=c[d];if(!p.isPadding()){i=p;break}o++}else i=zr(c),i||(i=l)}return{column:i,headerRowIndex:o,headerRowIndexWithoutSpan:a}}var vWt=class extends dt{constructor(){super(...arguments),this.beanName="focusSvc",this.focusFallbackTimeout=null,this.needsFocusRestored=!1}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.rowRenderer=e.rowRenderer,this.navigation=e.navigation,this.filterManager=e.filterManager,this.overlays=e.overlays}postConstruct(){const e=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:e,columnRowGroupChanged:e}),this.addDestroyFunc(ULt(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=!0,this.focusFallbackTimeout!=null&&clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=!1,this.focusFallbackTimeout!=null&&(clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=null)}shouldTakeFocus(){return this.gos.get("suppressFocusAfterRefresh")?(this.setFocusRecovered(),!1):this.needsFocusRestored?(this.setFocusRecovered(),!0):this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell)return;const e=this.focusedCell.column,t=this.colModel.getCol(e.getId());e!==t&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){const{gos:e,focusedCell:t}=this;return e.get("suppressFocusAfterRefresh")||e.get("suppressCellFocus")||!t||!this.doesRowOrCellHaveBrowserFocus()?null:t}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader||!this.isDomDataPresentInHierarchy(Gi(this.beans),Itt)?null:this.focusedHeader}doesRowOrCellHaveBrowserFocus(){const e=Gi(this.beans);return this.isDomDataPresentInHierarchy(e,A$)?!0:this.isDomDataPresentInHierarchy(e,T$)}isDomDataPresentInHierarchy(e,t){let n=e;for(;n;){if(pet(this.gos,n,t))return!0;n=n.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:n,column:r}=e,i={rowIndex:t,rowPinned:n,column:r,isFullWidthCell:!1},o=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n});return o&&(i.isFullWidthCell=o.isFullWidth()),i}clearFocusedCell(){if(this.focusedCell==null)return;const e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCell(e){this.setFocusRecovered();const{column:t,rowIndex:n,rowPinned:r,forceBrowserFocus:i=!1,preventScrollOnBrowserFocus:o=!1}=e,a=this.colModel.getCol(t);if(!a){this.focusedCell=null;return}this.focusedCell={rowIndex:n,rowPinned:zc(r),column:a},this.eventSvc.dispatchEvent({type:"cellFocused",...this.getFocusEventParams(this.focusedCell),forceBrowserFocus:i,preventScrollOnBrowserFocus:o})}isCellFocused(e){return this.focusedCell==null?!1:g6(e,this.focusedCell)}isHeaderWrapperFocused(e){if(this.focusedHeader==null)return!1;const{column:t,rowCtrl:{rowIndex:n,pinned:r}}=e,{column:i,headerRowIndex:o}=this.focusedHeader;return t===i&&n===o&&r==i.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),_O(this.beans))return!1;const{direction:t,fromTab:n,allowUserOverride:r,event:i,fromCell:o,rowWithoutSpanValue:a}=e;let{headerPosition:s}=e;if(o&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(s);if(r){const l=this.focusedHeader,c=Qv(this.beans);if(n){const u=this.gos.getCallback("tabToNextHeader");u&&(s=this.getHeaderPositionFromUserFunc({userFunc:u,direction:t,currentPosition:l,headerPosition:s,headerRowCount:c}))}else{const u=this.gos.getCallback("navigateToNextHeader");if(u&&i){const d={key:i.key,previousHeaderPosition:l,nextHeaderPosition:s,headerRowCount:c,event:i};s=u(d)}}}return s?this.focusProvidedHeaderPosition({headerPosition:s,direction:t,event:i,fromCell:o,rowWithoutSpanValue:a}):!1}focusHeaderPositionFromUserFunc(e){if(_O(this.beans))return!1;const{userFunc:t,headerPosition:n,direction:r,event:i}=e,o=this.focusedHeader,a=Qv(this.beans),s=this.getHeaderPositionFromUserFunc({userFunc:t,direction:r,currentPosition:o,headerPosition:n,headerRowCount:a});return!!s&&this.focusProvidedHeaderPosition({headerPosition:s,direction:r,event:i})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:n,currentPosition:r,headerPosition:i,headerRowCount:o}=e,s=t({backwards:n==="Before",previousHeaderPosition:r,nextHeaderPosition:i,headerRowCount:o});return s===!0?r:s===!1?null:s}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:n,fromCell:r,rowWithoutSpanValue:i,event:o}=e,{column:a,headerRowIndex:s}=t,{filterManager:l,ctrlsSvc:c,headerNavigation:u}=this.beans;if(s===-1)return l?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:a,event:o});u?.scrollToColumn(a,n);const p=c.getHeaderRowContainerCtrl(a.getPinned())?.focusHeader(t.headerRowIndex,a,o)||!1;return u&&p&&(i!=null||r)&&(u.currentHeaderRowWithoutSpan=i??-1),p}focusFirstHeader(){if(this.overlays?.isExclusive()&&this.focusOverlay())return!0;let e=this.visibleCols.allCols[0];if(!e)return!1;const{colGroupSvc:t}=this.beans;t&&e.getParent()&&(e=t.getColGroupAtLevel(e,0));const n=mhe(e,0);return this.focusHeaderPosition({headerPosition:n,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.isExclusive()&&this.focusOverlay(!0))return!0;const t=Qv(this.beans)-1,n=zr(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return this.focusedCell==null?!1:this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===zc(t)}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&zu(t,e)}focusGridView(e){const{backwards:t=!1,canFocusOverlay:n=!0,event:r}=e;if(this.overlays?.isExclusive())return n&&this.focusOverlay(t);if(xK(this.beans))return t&&!_O(this.beans)?this.focusLastHeader():n&&this.focusOverlay(t)?!0:t?!1:Tb(this.beans,t);const i=t?c4t(this.beans):l4t(this.beans);if(i){const o=e.column??this.focusedHeader?.column,{rowIndex:a,rowPinned:s}=i,l=lp(this.beans,i);if(!o||!l||a==null)return!1;if(o.isSuppressNavigable(l)){const c=this.gos.get("enableRtl");let u;return!r||r.key===Qe.TAB?u=c?Qe.LEFT:Qe.RIGHT:u=r.key,this.beans.navigation?.navigateToNextCell(null,u,{rowIndex:a,column:o,rowPinned:s||null},!0),!0}return this.navigation?.ensureCellVisible({rowIndex:a,column:o,rowPinned:s}),t&&this.rowRenderer.getRowByPosition(i)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(i,t)||(this.setFocusedCell({rowIndex:a,column:o,rowPinned:zc(s),forceBrowserFocus:!0}),this.beans.rangeSvc?.setRangeToCell({rowIndex:a,rowPinned:s,column:o})),!0}return!!(n&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const n=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:n,headerRowIndex:Qv(this.beans)-1}}):this.focusGridView({column:n})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},bWt=class extends dt{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),n=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==n)&&(this.horizontalScrollGap=t,this.verticalScrollGap=n,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(this.scrollbarWidth==null){const e=this.gos.get("scrollbarWidth"),n=typeof e=="number"&&e>=0?e:QDt();n!=null&&(this.scrollbarWidth=n,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},yWt=class extends dt{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:n}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),n.destroy(),super.destroy()}},VG=new Set(["gridPreDestroyed","fillStart","pasteStart"]),MWt={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:"	",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,rowNumbers:!1},KL=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),CWt={tag:"span",cls:"ag-sort-indicator-container",children:[KL("Order","order"),KL("Asc","ascending-icon"),KL("Desc","descending-icon"),KL("Mixed","mixed-icon"),KL("None","none-icon")]},kye=class extends Gt{constructor(e){super(),this.eSortOrder=at,this.eSortAsc=at,this.eSortDesc=at,this.eSortMixed=at,this.eSortNone=at,e||this.setTemplate(CWt)}attachCustomElements(e,t,n,r,i){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=n,this.eSortMixed=r,this.eSortNone=i}setupSort(e,t=!1){if(this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!e.isSortable()&&!e.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e);const n=this.updateIcons.bind(this),r=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",n),this.addManagedEventListeners({newColumnsLoaded:n,sortChanged:r,columnRowGroupChanged:r}),this.onSortChanged()}addInIcon(e,t,n){if(t==null)return;const r=er(e,this.beans,n);r&&t.appendChild(r)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortNone:n,column:r,gos:i,beans:o}=this,a=o.sortSvc.getDisplaySortForColumn(r);if(e&&Nn(e,a==="asc",{skipAriaHidden:!0}),t&&Nn(t,a==="desc",{skipAriaHidden:!0}),n){const s=!r.getColDef().unSortIcon&&!i.get("unSortIcon"),l=a==null;Nn(n,!s&&l,{skipAriaHidden:!0})}}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:n}=this;this.addInIcon("sortUnSort",e,t);const r=t.getColDef().showRowGroup;Yg(n)&&r&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:n}=this;if(e){const r=t.sortSvc.getDisplaySortForColumn(n)==="mixed";Nn(e,r,{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:n}}=this;if(!e)return;const r=n.getColumnsWithSortingOrdered(),i=n.getDisplaySortIndexForColumn(t)??-1,o=r.some(s=>n.getDisplaySortIndexForColumn(s)??!1),a=i>=0&&o;Nn(e,a,{skipAriaHidden:!0}),i>=0?e.textContent=(i+1).toString():Xi(e)}},xWt={selector:"AG-SORT-INDICATOR",component:kye},hW=["asc","desc",null],wWt=class extends dt{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,n){const r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,n)}progressSortFromEvent(e,t){const r=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,r,"uiColumnSorted")}setSortForColumn(e,t,n,r){t!=="asc"&&t!=="desc"&&(t=null);const{gos:i,showRowGroupCols:o}=this.beans,a=Yg(i);let s=[e];if(a&&e.getColDef().showRowGroup){const d=o?.getSourceColumnsForGroupColumn?.(e)?.filter(p=>p.isSortable());d&&(s=[e,...d])}s.forEach(u=>this.setColSort(u,t,r));const l=(n||i.get("alwaysMultiSort"))&&!i.get("suppressMultiSort"),c=[];if(!l){const u=this.clearSortBarTheseColumns(s,r);c.push(...u)}this.updateSortIndex(e),c.push(...s),this.dispatchSortChangedEvents(r,c)}updateSortIndex(e){const{gos:t,colModel:n,showRowGroupCols:r}=this.beans,i=Yg(t),o=r?.getShowRowGroupCol(e.getId()),a=i&&o||e,s=this.getColumnsWithSortingOrdered();n.forAllCols(u=>this.setColSortIndex(u,null));const l=s.filter(u=>i&&u.getColDef().showRowGroup?!1:u!==a);(a.getSort()?[...l,a]:l).forEach((u,d)=>this.setColSortIndex(u,d))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let e=!1;return this.beans.colModel.forAllCols(t=>{t.getSort()&&(e=!0)}),e}dispatchSortChangedEvents(e,t){const n={type:"sortChanged",source:e};t&&(n.columns=t),this.eventSvc.dispatchEvent(n)}clearSortBarTheseColumns(e,t){const n=[];return this.beans.colModel.forAllCols(r=>{e.includes(r)||(r.getSort()&&n.push(r),this.setColSort(r,void 0,t))}),n}getNextSortDirection(e){const t=e.getColDef().sortingOrder??this.gos.get("sortingOrder")??hW,n=t.indexOf(e.getSort()),r=n<0,i=n==t.length-1;return r||i?t[0]:t[n+1]}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:n,rowGroupColsSvc:r}=this.beans;let i=[];if(t.forAllCols(c=>{c.getSort()&&i.push(c)}),t.isPivotMode()){const c=Yg(e);i=i.filter(u=>{const d=!!u.getAggFunc(),p=!u.isPrimary(),h=c?n?.getShowRowGroupCol(u.getId()):u.getColDef().showRowGroup;return d||p||h})}const o=r?.columns.filter(c=>!!c.getSort())??[],a={};i.forEach((c,u)=>a[c.getId()]=u),i.sort((c,u)=>{const d=c.getSortIndex(),p=u.getSortIndex();if(d!=null&&p!=null)return d-p;if(d==null&&p==null){const h=a[c.getId()],g=a[u.getId()];return h>g?1:-1}else return p==null?-1:1});const s=Yg(e)&&!!o.length;s&&(i=[...new Set(i.map(c=>n?.getShowRowGroupCol(c.getId())??c))]);const l=new Map;return i.forEach((c,u)=>l.set(c,u)),s&&o.forEach(c=>{const u=n.getShowRowGroupCol(c.getId());l.set(c,l.get(u))}),l}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}getSortModel(){return this.getColumnsWithSortingOrdered().filter(e=>e.getSort()).map(e=>({sort:e.getSort(),colId:e.getId()}))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter(e=>e.getSort()).map(e=>({sort:e.getSort(),column:e}))}canColumnDisplayMixedSort(e){const t=Yg(this.gos),n=!!e.getColDef().showRowGroup;return t&&n}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSort();const r=e.getColDef().field!=null||!!e.getColDef().valueGetter?[e,...t]:t,i=r[0].getSort();return r.every(a=>a.getSort()==i)?i:"mixed"}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t,n){let r=0;e.addManagedListeners(t,{movingChanged:()=>{r=Date.now()}}),n&&e.addManagedElementListeners(n,{click:o=>{const a=t.isMoving(),l=Date.now()-r<50;a||l||this.progressSortFromEvent(t,o)}});const i=()=>{const o=t.getSort();if(e.toggleCss("ag-header-cell-sorted-asc",o==="asc"),e.toggleCss("ag-header-cell-sorted-desc",o==="desc"),e.toggleCss("ag-header-cell-sorted-none",!o),t.getColDef().showRowGroup){const l=!this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t)?.every(c=>t.getSort()==c.getSort());e.toggleCss("ag-header-cell-sorted-mixed",l)}};e.addManagedEventListeners({sortChanged:i,columnRowGroupChanged:i})}initCol(e){const{sort:t,initialSort:n,sortIndex:r,initialSortIndex:i}=e.colDef;t!==void 0?(t==="asc"||t==="desc")&&(e.sort=t):(n==="asc"||n==="desc")&&(e.sort=n),r!==void 0?r!==null&&(e.sortIndex=r):i!==null&&(e.sortIndex=i)}updateColSort(e,t,n){t!==void 0&&(t==="desc"||t==="asc"?this.setColSort(e,t,n):this.setColSort(e,void 0,n))}setColSort(e,t,n){e.sort!==t&&(e.sort=t,e.dispatchColEvent("sortChanged",n)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new kye(e)}getSortIndicatorSelector(){return xWt}},oI={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agDateColumnFloatingFilter:"DateFilter",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"},SWt=()=>({checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."}}),AWt={aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t})=>t?typeof e=="string"?oI[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>typeof e!="string"?null:oI[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&typeof e!="string"&&typeof e!="boolean"?"CustomFilter":typeof e=="string"?oI[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(n=>t.includes(n))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",spanRows:"CellSpan"},OWt=()=>({autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:n})=>n?"colDef.autoHeight is not supported with paginationAutoPageSize.":null},cellRendererParams:{validate:t=>(t.rowGroup!=null||t.rowGroupIndex!=null||t.cellRenderer==="agGroupCellRenderer")&&"checkbox"in t.cellRendererParams?'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.':null},flex:{validate:(t,n)=>n.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:n})=>n==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const n=t.headerValueGetter;return typeof n=="function"||typeof n=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t.smallDown)return Of(262);if(t.smallLeft)return Of(263);if(t.smallRight)return Of(264)}return null}},sortingOrder:{validate:t=>{const n=t.sortingOrder;if(Array.isArray(n)&&n.length>0){const r=n.filter(i=>!hW.includes(i));if(r.length>0)return`sortingOrder must be an array with elements from [${hW.map(b$).join()}], currently it includes [${r.map(b$).join()}]`}else if(!Array.isArray(n)||n.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${n}`;return null}},type:{validate:t=>{const n=t.type;return n instanceof Array?n.some(i=>typeof i!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof n=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(t,{suppressRowTransform:n})=>n?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:n,cellSelection:r,suppressRowTransform:i,enableCellSpan:o,rowDragEntireRow:a,enableCellTextSelection:s})=>typeof n=="object"&&n?.mode==="singleRow"&&n?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":r?"colDef.spanRows is not supported with cellSelection.":i?"colDef.spanRows is not supported with suppressRowTransform.":o?a?"colDef.spanRows is not supported with rowDragEntireRow.":s?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."}}),zWt={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0},TWt=()=>Object.keys(zWt),EWt=()=>({objectName:"colDef",allProperties:TWt(),docsUrl:"column-properties/",deprecations:SWt(),validations:OWt()}),RWt=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","pinnedRowsChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterOpened","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel","findChanged","rowResizeStarted","rowResizeEnded"],IWt=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","gridStylesChanged","storeUpdated","filterDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged","beforeRefreshModel","rowNodeDataChanged"],PWt=()=>[...RWt,...IWt],DWt=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce"],kWt=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","themeStyleContainer","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy","selectionColumnDef","findOptions"],LWt=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"],Mnt=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns"],_Wt=["theme","rowSelection"],NWt=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],Cnt=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault"],FWt=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned"],WWt=()=>[...LWt,...kWt,...DWt,...Mnt,...FWt,...Cnt,...NWt,..._Wt],qWt=()=>({suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."}});function dv(e,t,n){return typeof t=="number"||t==null?t==null||t>=n?null:`${e}: value should be greater than or equal to ${n}`:`${e}: value should be a number`}var BWt={alignedGrids:"AlignedGrids",allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",cellSelection:"CellSelection",columnHoverHighlight:"ColumnHover",datasource:"InfiniteRowModel",doesExternalFilterPass:"ExternalFilter",editType:"EditCore",enableAdvancedFilter:"AdvancedFilter",enableCellSpan:"CellSpan",enableCharts:"IntegratedCharts",enableRangeSelection:"CellSelection",enableRowPinning:"PinnedRow",findSearchValue:"Find",getContextMenuItems:"ContextMenu",getLocaleText:"Locale",getMainMenuItems:"ColumnMenu",getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:"SharedRowGrouping",grandTotalRow:"SharedRowGrouping",initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isRowPinnable:"PinnedRow",localeText:"Locale",masterDetail:"SharedMasterDetail",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:"SharedPivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:"SharedRowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:"SharedTreeData",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"},jWt=()=>{const e={autoSizePadding:{validate({autoSizePadding:n}){return dv("autoSizePadding",n,0)}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:n}){return dv("cacheBlockSize",n,1)}},cacheOverflowSize:{validate({cacheOverflowSize:n}){return dv("cacheOverflowSize",n,1)}},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:n=>{const r=n.domLayout,i=["autoHeight","normal","print"];return r&&!i.includes(r)?`domLayout must be one of [${i.join()}], currently it's ${r}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:n,pinnedTopRowData:r,pinnedBottomRowData:i}){return n&&(r||i)?"Manual row pinning cannot be used together with pinned row data. Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null}},isRowPinnable:{supportedRowModels:["clientSide"],validate({isRowPinnable:n,pinnedTopRowData:r,pinnedBottomRowData:i}){return n&&(r||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null}},isRowPinned:{supportedRowModels:["clientSide"],validate({isRowPinned:n,pinnedTopRowData:r,pinnedBottomRowData:i}){return n&&(r||i)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},icons:{validate:({icons:n})=>{if(n){if(n.smallDown)return Of(262);if(n.smallLeft)return Of(263);if(n.smallRight)return Of(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:n}){return dv("infiniteInitialRowCount",n,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},keepDetailRowsCount:{validate({keepDetailRowsCount:n}){return dv("keepDetailRowsCount",n,1)}},paginationPageSize:{validate({paginationPageSize:n}){return dv("paginationPageSize",n,1)}},paginationPageSizeSelector:{validate:n=>{const r=n.paginationPageSizeSelector;return typeof r=="boolean"||r==null||r.length?null:`'paginationPageSizeSelector' cannot be an empty array.
                    If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate({rowBuffer:n}){return dv("rowBuffer",n,0)}},rowClass:{validate:n=>typeof n.rowClass=="function"?"rowClass should not be a function, please use getRowClass instead":null},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{treeData:{required:[!1,void 0]},pagination:{required:[!1,void 0]}}},rowSelection:{validate({rowSelection:n}){return n&&typeof n=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':n&&typeof n!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":n&&n.mode!=="multiRow"&&n.mode!=="singleRow"?`Selection mode "${n.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null}},rowStyle:{validate:n=>{const r=n.rowStyle;return r&&typeof r=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:n}){return dv("serverSideInitialRowCount",n,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:n=>{const r=n.sortingOrder;if(Array.isArray(r)&&r.length>0){const i=r.filter(o=>!hW.includes(o));if(i.length>0)return`sortingOrder must be an array with elements from [${hW.map(b$).join()}], currently it includes [${i.map(b$).join()}]`}else if(!Array.isArray(r)||r.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${r}`;return null}},tooltipHideDelay:{validate:n=>n.tooltipHideDelay&&n.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:n=>n.tooltipShowDelay&&n.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:n=>{const r=n.rowModelType??"clientSide";switch(r){case"clientSide":{const{treeDataChildrenField:i,treeDataParentIdField:o,getDataPath:a,getRowId:s}=n;if(!i&&!o&&!a)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(i){if(a)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(o)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(o){if(!s)return"getRowId callback not provided, tree data with parent id cannot be built.";if(a)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}return null}case"serverSide":{const i=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${r} row model.`;return n.isServerSideGroup&&n.getServerSideGroupKey?null:i}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:n}){return dv("viewportRowModelBufferSize",n,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:n}){return dv("viewportRowModelPageSize",n,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:n,showOpenedGroup:r}){return n?.field&&r?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":n?.valueGetter&&r?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null}}},t={};return Cnt.forEach(n=>{t[n]={expectedType:"boolean"}}),Mnt.forEach(n=>{t[n]={expectedType:"number"}}),eu(t,e),t},HWt=()=>({objectName:"gridOptions",allProperties:[...WWt(),...PWt().map(e=>yet(e))],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:qWt(),validations:jWt()}),VWt=0,GWt=0,$Wt=class extends dt{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.gridInstanceId=GWt++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new Wy,this.globalEventHandlerFactory=e=>(t,n)=>{if(!this.isAlive())return;const r=VG.has(t);if(r&&!e||!r&&e)return;const i=(o,a)=>{const s=this.gridOptions[yet(o)];typeof s=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>s(a))};if(this.gridReadyFired)i(t,n);else if(t==="gridReady"){i(t,n),this.gridReadyFired=!0;for(const o of this.queueEvents)i(o.eventName,o.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:n})}}wireBeans(e){this.gridOptions=e.gridOptions,this.validation=e.validation,this.api=e.gridApi,this.gridId=e.context.getGridId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.validateGridOptions(this.gridOptions),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:e})=>{this.updateGridOptions({options:e,force:!0,source:"gridOptionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??MWt[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return Ut(this.gridOptions[e])}mergeGridCommonParams(e){return e&&(n=>e(this.addGridCommonParams(n)))}updateGridOptions({options:e,force:t,source:n="api"}){const r={id:VWt++,properties:[]},i=[],{gridOptions:o,validation:a}=this;for(const s of Object.keys(e)){const l=e[s];a?.warnOnInitialPropertyUpdate(n,s);const c=t||typeof l=="object"&&n==="api",u=o[s];if(c||u!==l){o[s]=l;const d={type:s,currentValue:l,previousValue:u,changeSet:r,source:n};i.push(d)}}this.validateGridOptions(this.gridOptions),r.properties=i.map(s=>s.type),i.forEach(s=>{Vx(this,`Updated property ${s.type} from`,s.previousValue," to ",s.currentValue),this.propEventSvc.dispatchEvent(s)})}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}getDomDataKey(){return this.domDataKey}addGridCommonParams(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t){for(const n of Object.keys(e)){const r=e[n];if(r==null||r===!1)continue;let i=t[n];typeof i=="function"&&(i=i(e,this.gridOptions,this.beans)),i&&this.assertModuleRegistered(i,n)}}validateGridOptions(e){this.validateOptions(e,BWt),this.validation?.processGridOptions(e)}validateColDef(e,t,n){(n||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,AWt),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const n=Array.isArray(e)?e.some(r=>this.isModuleRegistered(r)):this.isModuleRegistered(e);return n||pi(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),n}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:lye(),rowModelType:this.get("rowModelType"),isUmd:FLt()}}isModuleRegistered(e){return she(e,this.gridId,this.get("rowModelType"))}};function xnt(e){const t={"aria-hidden":"true"};return{tag:"div",cls:"ag-cell-label-container",role:"presentation",children:[{tag:"span",ref:"eMenu",cls:"ag-header-icon ag-header-cell-menu-button",attrs:t},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:t},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:t},e?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var UWt=xnt(!0),XWt=xnt(!1),YWt=class extends Gt{constructor(){super(...arguments),this.eFilter=at,this.eFilterButton=at,this.eSortIndicator=at,this.eMenu=at,this.eLabel=at,this.eText=at,this.eSortOrder=at,this.eSortAsc=at,this.eSortDesc=at,this.eSortMixed=at,this.eSortNone=at,this.isLoadingInnerComponent=!1}refresh(e){const t=this.params;if(this.params=e,this.workOutTemplate(e,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||e.enableSorting!=this.currentSort||this.currentSuppressMenuHide!=null&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){const n={...e};eu(n,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(n)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const n=e.template;return n?n?.trim?n.trim():n:t?UWt:XWt}init(e){this.params=e;const{sortSvc:t,touchSvc:n,rowNumbersSvc:r,userCompFactory:i}=this.beans,o=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!o),this.setTemplate(this.currentTemplate,o?[o]:void 0),n?.setupForHeader(this),this.setMenu(),this.setupSort(),r?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(i,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const n=vLt(e,t,t);n&&(this.isLoadingInnerComponent=!0,n.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderComponent=r,this.eText&&this.eText.appendChild(r.getGui())):this.destroyBean(r))}))}setDisplayName(e){const{displayName:t}=e,n=this.currentDisplayName;this.currentDisplayName=t,!(!this.eText||n===t||this.innerHeaderComponent||this.isLoadingInnerComponent)&&(this.eText.textContent=Df(t))}addInIcon(e,t,n){const r=er(e,this.beans,n);r&&t.appendChild(r)}workOutShowMenu(){return this.params.enableMenu&&!!this.beans.menuSvc?.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return!!this.beans.menuSvc?.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){Rs(this.eMenu),this.eMenu=void 0;return}const{gos:e,eMenu:t,params:n}=this,r=Gu(e);this.addInIcon(r?"menu":"menuAlt",t,n.column),t.classList.toggle("ag-header-menu-icon",!r);const i=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=i,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(i)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:n}=this;t||this.toggleMenuAlwaysShow(!0),n.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){const{params:t,gos:n,beans:r,eMenu:i,eFilterButton:o}=this,a=t.column,s=Gu(n);if(e&&!s){if(r.menuSvc?.isFilterMenuInHeaderEnabled(a))return t.showFilter(o??i??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(i??o??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:n}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:r,eSortOrder:i,eSortAsc:o,eSortDesc:a,eSortMixed:s,eSortNone:l}=this;r.attachCustomElements(i,o,a,s,l)}this.eSortIndicator.setupSort(n),this.currentSort&&e.setupHeader(this,n,this.eLabel)}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;const n=()=>{const r=t.column.isFilterActive();Nn(e,r,{skipAriaHidden:!0})};this.configureFilter(t.enableFilterIcon,e,n,"filterActive")}setupFilterButton(){const{eFilterButton:e,params:t}=this;if(!e)return;this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(e,{click:()=>t.showFilter(e)}):this.eFilterButton=void 0}configureFilter(e,t,n,r){if(!e)return Rs(t),!1;const i=this.params.column;return this.addInIcon(r,t,i),this.addManagedListeners(i,{filterChanged:n}),n(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:n}=this;return e?t??n??this.getGui():n??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent&&(this.destroyBean(this.innerHeaderComponent),this.innerHeaderComponent=void 0)}},KWt={tag:"div",cls:"ag-header-group-cell-label",role:"presentation",children:[{tag:"span",ref:"agLabel",cls:"ag-header-group-text",role:"presentation"},{tag:"span",ref:"agOpened",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"},{tag:"span",ref:"agClosed",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"}]},QWt=class extends Gt{constructor(){super(KWt),this.agOpened=at,this.agClosed=at,this.agLabel=at,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:n}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),n?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&ut(89)}workOutInnerHeaderGroupComponent(e,t){const n=yLt(e,t,t);n&&(this.isLoadingInnerComponent=!0,n.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderGroupComponent=r,this.agLabel.appendChild(r.getGui())):this.destroyBean(r))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:n},beans:r}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const i=l=>{if(rh(l))return;const c=!n.isExpanded();r.colGroupSvc.setColumnGroupOpened(n.getProvidedColumnGroup(),c,"uiColumnExpanded")};this.addTouchAndClickListeners(r,t,i),this.addTouchAndClickListeners(r,e,i);const o=l=>{Cl(l)};this.addManagedElementListeners(t,{dblclick:o}),this.addManagedElementListeners(e,{dblclick:o}),this.addManagedElementListeners(this.getGui(),{dblclick:i}),this.updateIconVisibility();const a=n.getProvidedColumnGroup(),s=this.updateIconVisibility.bind(this);this.addManagedListeners(a,{expandedChanged:s,expandableChanged:s})}addTouchAndClickListeners(e,t,n){e.touchSvc?.setupForHeaderGroupElement(this,t,n),this.addManagedElementListeners(t,{click:n})}updateIconVisibility(){const{agOpened:e,agClosed:t,params:{columnGroup:n}}=this;if(n.isExpandable()){const r=n.isExpanded();Nn(e,r),Nn(t,!r)}else Nn(e,!1),Nn(t,!1)}addInIcon(e,t){const n=er(e,this.beans,null);n&&t.appendChild(n)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:t,agClosed:n}=this;Nn(t,!1),Nn(n,!1);return}}setupLabel(e){const{displayName:t,columnGroup:n}=e,r=this.innerHeaderGroupComponent||this.isLoadingInnerComponent;Ut(t)&&!r&&(this.agLabel.textContent=Df(t)),this.toggleCss("ag-sticky-label",!n.getColGroupDef()?.suppressStickyLabel)}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},ZWt={moduleName:"ColumnHeaderComp",version:Jn,userComponents:{agColumnHeader:YWt},icons:{menu:"menu",menuAlt:"menu-alt"}},JWt={moduleName:"ColumnGroupHeaderComp",version:Jn,userComponents:{agColumnGroupHeader:QWt},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},eqt=class extends dt{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.p1={list:[],sorted:!1},this.p2={list:[],sorted:!1},this.f1={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,e===0&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){this.active===!1&&ut(92)}createTask(e,t,n,r){this.verify();let i=n;r&&this.batchFrameworkComps&&(i="f1");const o={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[i],o),this.schedule()}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort((n,r)=>n.index!==r.index?t*(r.index-n.index):r.createOrder-n.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:n,f1:r,destroyTasks:i,beans:o}=this,{ctrlsSvc:a,frameworkOverrides:s}=o,l=t.list,c=n.list,u=r.list,d=Date.now();let p=0;const h=e<=0,g=a.getScrollFeature();for(;h||p<e;){if(!g.scrollGridIfNeeded()){let v;if(l.length)this.sortTaskList(t),v=l.pop().task;else if(c.length)this.sortTaskList(n),v=c.pop().task;else if(u.length)s.wrapOutgoing(()=>{for(;(h||p<e)&&!g.scrollGridIfNeeded();){if(u.length)this.sortTaskList(r),v=u.pop().task,v();else break;p=Date.now()-d}}),v=()=>{};else if(i.length)v=i.pop();else break;v()}p=Date.now()-d}l.length||c.length||u.length||i.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);sh(this.beans,e)}isQueueEmpty(){return!this.ticking}},tqt={moduleName:"AnimationFrame",version:Jn,beans:[eqt]},nqt=class extends dt{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(e,t){this.mockContextMenu(e,e.eBodyViewport,t)}mockHeaderContextMenu(e,t){this.mockContextMenu(e,e.eGui,t)}mockRowContextMenu(e){if(!Cx())return;const t=(n,r,i)=>{const{rowCtrl:o,cellCtrl:a}=e.getControlsForEventTarget(i?.target??null);a?.column&&a.dispatchCellContextMenuEvent(i??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,i,o,a)};this.mockContextMenu(e,e.element,t)}handleCellDoubleClick(e,t){return(()=>{if(!Cx()||xet("dblclick"))return!1;const r=Date.now(),i=r-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=r,i})()?(e.onCellDoubleClicked(t),t.preventDefault(),!0):!1}setupForHeader(e){const{gos:t,sortSvc:n,menuSvc:r}=this.beans;if(t.get("suppressTouch"))return;const{params:i,eMenu:o,eFilterButton:a}=e,s=new sy(e.getGui(),!0),l=e.shouldSuppressMenuHide(),c=l&&Ut(o)&&i.enableMenu,u=c?new sy(o,!0):s;if(i.enableMenu||r?.isHeaderContextMenuEnabled(i.column)){const d=c?"tap":"longTap",p=h=>i.showColumnMenuAfterMouseClick(h.touchStart);e.addManagedListeners(u,{[d]:p})}if(i.enableSorting){const d=p=>{const h=p.touchStart.target;l&&(o?.contains(h)||a?.contains(h))||n?.progressSort(i.column,!1,"uiColumnSorted")};e.addManagedListeners(s,{tap:d})}if(i.enableFilterButton&&a){const d=new sy(a,!0);e.addManagedListeners(d,{tap:()=>i.showFilter(a)}),e.addDestroyFunc(()=>d.destroy())}e.addDestroyFunc(()=>s.destroy()),c&&e.addDestroyFunc(()=>u.destroy())}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const n=new sy(t.eGridHeader,!0),r=i=>t.showColumnMenuAfterMouseClick(i.touchStart);e.addManagedListeners(n,{longTap:r}),e.addDestroyFunc(()=>n.destroy())}}setupForHeaderGroupElement(e,t,n){const r=new sy(t,!0);e.addManagedListeners(r,{tap:n}),e.addDestroyFunc(()=>r.destroy())}mockContextMenu(e,t,n){if(!Cx())return;const r=new sy(t),i=o=>{dW(this.gos,o.touchEvent)&&n(void 0,o.touchStart,o.touchEvent)};e.addManagedListeners(r,{longTap:i}),e.addDestroyFunc(()=>r.destroy())}},rqt={moduleName:"Touch",version:Jn,beans:[nqt]},iqt=class extends dt{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,n=!1){return n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const n=e===Qe.UP,r=e===Qe.DOWN,i=e===Qe.LEFT;let o,a;const{pageBounds:s,gos:l,visibleCols:c}=this.beans;if(n||r)a=n?s.getFirstRow():s.getLastRow(),o=t.column;else{const u=l.get("enableRtl");a=t.rowIndex,o=(i!==u?c.allCols:[...c.allCols].reverse()).find(p=>this.isCellGoodToFocusOn({rowIndex:a,rowPinned:null,column:p}))}return o?{rowIndex:a,rowPinned:null,column:o}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let n=t,r=!1;for(;!r;){switch(e){case Qe.UP:n=this.getCellAbove(n);break;case Qe.DOWN:n=this.getCellBelow(n);break;case Qe.RIGHT:n=this.gos.get("enableRtl")?this.getCellToLeft(n):this.getCellToRight(n);break;case Qe.LEFT:n=this.gos.get("enableRtl")?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,ut(8,{key:e});break}n?r=this.isCellGoodToFocusOn(n):r=!0}return n}isCellGoodToFocusOn(e){const t=e.column;let n;const{pinnedRowModel:r,rowModel:i}=this.beans;switch(e.rowPinned){case"top":n=r?.getPinnedTopRow(e.rowIndex);break;case"bottom":n=r?.getPinnedBottomRow(e.rowIndex);break;default:n=i.getRow(e.rowIndex);break}return n?!this.isSuppressNavigable(t,n):!1}getCellToLeft(e){if(!e)return null;const t=this.beans.visibleCols.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.beans.visibleCols.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellBelow(e){if(!e)return null;const t=this.rowSpanSvc?.getCellEnd(e)??e,n=Gp(this.beans,t);return n?{rowIndex:n.rowIndex,column:e.column,rowPinned:n.rowPinned}:null}getCellAbove(e){if(!e)return null;const t=this.rowSpanSvc?.getCellStart(e)??e,n=Sx(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned});return n?{rowIndex:n.rowIndex,column:e.column,rowPinned:n.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:n}=this.beans,r=t.allCols;let i=e.rowIndex,o=e.rowPinned,a=t.getColAfter(e.column);if(!a){a=r[0];const s=Gp(this.beans,e);if(Yi(s)||!s.rowPinned&&!(n?.isRowInPage(s.rowIndex)??!0))return null;i=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:i,column:a,rowPinned:o}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:n,pagination:r}=t,i=n.allCols;let o=e.rowIndex,a=e.rowPinned,s=n.getColBefore(e.column);if(!s){s=zr(i);const l=Sx(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(Yi(l)||!l.rowPinned&&!(r?.isRowInPage(l.rowIndex)??!0))return null;o=l?l.rowIndex:null,a=l?l.rowPinned:null}return{rowIndex:o,column:s,rowPinned:a}}isSuppressNavigable(e,t){const{suppressNavigable:n}=e.colDef;if(typeof n=="boolean")return n;if(typeof n=="function"){const r=e.createColumnFunctionCallbackParams(t);return n(r)}return!1}};function oqt(e){return e.focusSvc.getFocusedCell()}function aqt(e){return e.focusSvc.clearFocusedCell()}function sqt(e,t,n,r){e.focusSvc.setFocusedCell({rowIndex:t,column:n,rowPinned:r,forceBrowserFocus:!0})}function lqt(e,t){return e.navigation?.tabToNextCell(!1,t)??!1}function cqt(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}function uqt(e,t,n=!1){const r=e.headerNavigation?.getHeaderPositionForColumn(t,n);r&&e.focusSvc.focusHeaderPosition({headerPosition:r})}var dqt=class extends dt{constructor(){super(),this.beanName="navigation",this.onPageDown=uEe(this.onPageDown,100),this.onPageUp=uEe(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const n=e.key,r=e.altKey,i=e.ctrlKey||e.metaKey,o=!!this.beans.rangeSvc&&e.shiftKey,a=stt(this.gos,e);let s=!1;switch(n){case Qe.PAGE_HOME:case Qe.PAGE_END:!i&&!r&&(this.onHomeOrEndKey(n),s=!0);break;case Qe.LEFT:case Qe.RIGHT:case Qe.UP:case Qe.DOWN:if(!a)return!1;i&&!r&&!o&&(this.onCtrlUpDownLeftRight(n,a),s=!0);break;case Qe.PAGE_DOWN:case Qe.PAGE_UP:!i&&!r&&(s=this.handlePageUpDown(n,a,t));break}return s&&e.preventDefault(),s}handlePageUpDown(e,t,n){return n&&(t=this.beans.focusSvc.getFocusedCell()),t?(e===Qe.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}navigateTo(e){const{scrollIndex:t,scrollType:n,scrollColumn:r,focusIndex:i,focusColumn:o}=e,{scrollFeature:a}=this.gridBodyCon;Ut(r)&&!r.isPinned()&&a.ensureColumnVisible(r),Ut(t)&&a.ensureIndexVisible(t,n),e.isAsync||a.ensureIndexVisible(i);const{focusSvc:s,rangeSvc:l}=this.beans;s.setFocusedCell({rowIndex:i,column:o,rowPinned:null,forceBrowserFocus:!0}),l?.setRangeToCell({rowIndex:i,rowPinned:null,column:o})}onPageDown(e){const t=this.beans,n=cre(t),r=this.getViewportHeight(),{pageBounds:i,rowModel:o,rowAutoHeight:a}=t,s=i.getPixelOffset(),l=n.top+r,c=o.getRowIndexAtPixel(l+s);a?.active?this.navigateToNextPageWithAutoHeight(e,c):this.navigateToNextPage(e,c)}onPageUp(e){const t=this.beans,n=cre(t),{pageBounds:r,rowModel:i,rowAutoHeight:o}=t,a=r.getPixelOffset(),s=n.top,l=i.getRowIndexAtPixel(s+a);o?.active?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)}navigateToNextPage(e,t,n=!1){const{pageBounds:r,rowModel:i}=this.beans,o=this.getViewportHeight(),a=r.getFirstRow(),s=r.getLastRow(),l=r.getPixelOffset(),c=i.getRow(e.rowIndex),u=n?c?.rowHeight-o-l:o-l,d=c?.rowTop+u;let p=i.getRowIndexAtPixel(d+l);if(p===e.rowIndex){const g=n?-1:1;t=p=e.rowIndex+g}let h;n?(h="bottom",p<a&&(p=a),t<a&&(t=a)):(h="top",p>s&&(p=s),t>s&&(t=s)),this.isRowTallerThanView(i.getRow(p))&&(t=p,h="top"),this.navigateTo({scrollIndex:t,scrollType:h,scrollColumn:null,focusIndex:p,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,n=!1){this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const r=this.getNextFocusIndexForAutoHeight(e,n);this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const n=t?-1:1,r=this.getViewportHeight(),{pageBounds:i,rowModel:o}=this.beans,a=i.getLastRow();let s=0,l=e.rowIndex;for(;l>=0&&l<=a;){const c=o.getRow(l);if(c){const u=c.rowHeight??0;if(s+u>r)break;s+=u}l+=n}return Math.max(0,Math.min(l,a))}getViewportHeight(){const e=this.beans,t=cre(e),n=this.beans.scrollVisibleSvc.getScrollbarWidth();let r=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(r-=n),r}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return typeof t!="number"?!1:t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const n=this.beans.cellNavigation.getNextCellToFocus(e,t,!0),{rowIndex:r}=n,i=n.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:i,focusIndex:r,focusColumn:i})}onHomeOrEndKey(e){const t=e===Qe.PAGE_HOME,{visibleCols:n,pageBounds:r,rowModel:i}=this.beans,o=n.allCols,a=t?r.getFirstRow():r.getLastRow(),s=i.getRow(a);if(!s)return;const l=(t?o:[...o].reverse()).find(c=>!c.isSuppressNavigable(s));l&&this.navigateTo({scrollIndex:a,scrollType:null,scrollColumn:l,focusIndex:a,focusColumn:l})}onTabKeyDown(e,t){const n=t.shiftKey,r=this.tabToNextCellCommon(e,n,t),i=this.beans,{ctrlsSvc:o,pageBounds:a,focusSvc:s,gos:l}=i;if(r!==!1){r?t.preventDefault():r===null&&o.get("gridCtrl").allowFocusForNextCoreContainer(n);return}if(n){const{rowIndex:c,rowPinned:u}=e.getRowPosition();(u?c===0:c===a.getFirstRow())&&(l.get("headerHeight")===0||_O(i)?Tb(i,!0,!0):(t.preventDefault(),s.focusPreviousFromFirstCell(t)))}else e instanceof IN&&e.focusCell(!0),(!n&&s.focusOverlay(!1)||Tb(i,n))&&t.preventDefault()}tabToNextCell(e,t){const n=this.beans,{focusSvc:r,rowRenderer:i}=n,o=r.getFocusedCell();if(!o)return!1;let a=Kv(n,o);return!a&&(a=i.getRowByPosition(o),!a||!a.isFullWidth())?!1:!!this.tabToNextCellCommon(a,e,t)}tabToNextCellCommon(e,t,n){let r=e.editing;if(!r&&e instanceof IN){const a=e.rowCtrl;a&&(r=a.editing)}let i;return r?this.gos.get("editType")==="fullRow"?i=this.moveToNextEditingRow(e,t,n):i=this.moveToNextEditingCell(e,t,n):i=this.moveToNextCellNotEditing(e,t,n),i===null?i:i||!!this.beans.focusSvc.focusedHeader}moveToNextEditingCell(e,t,n=null){const r=e.cellPosition;e.eGui.focus(),e.stopEditing();const i=this.findNextCellToFocusOn(r,t,!0);return i===!1?null:i==null?!1:(this.beans.editSvc?.startEditing(i,null,!0,n),i.focusCell(!1),!0)}moveToNextEditingRow(e,t,n=null){const r=e.cellPosition,i=this.findNextCellToFocusOn(r,t,!0);if(i===!1)return null;if(i==null)return!1;const o=i.cellPosition,a=this.isCellEditable(r),s=this.isCellEditable(o),l=o&&r.rowIndex===o.rowIndex&&r.rowPinned===o.rowPinned,{editSvc:c,rowEditSvc:u}=this.beans;if(a&&c?.setFocusOutOnEditor(e),!l){const d=e.rowCtrl;c?.stopRowEditing(d);const p=i.rowCtrl;u?.startEditing(p,void 0,void 0,n)}return s?(c?.setFocusInOnEditor(i),i.focusCell()):i.focusCell(!0),!0}moveToNextCellNotEditing(e,t,n){const r=this.beans.visibleCols.allCols;let i;if(e instanceof E$){if(i={...e.getRowPosition(),column:t?r[0]:zr(r)},this.gos.get("embedFullWidthRows")&&n){const a=e.findFullWidthInfoForEvent(n);a&&(i.column=a.column)}}else i=e.getFocusedCellPosition();const o=this.findNextCellToFocusOn(i,t,!1);if(o===!1)return null;if(o instanceof IN)o.focusCell(!0);else if(o)return this.tryToFocusFullWidthRow(o,t);return Ut(o)}findNextCellToFocusOn(e,t,n){let r=e;const i=this.beans,{cellNavigation:o,gos:a,focusSvc:s,rowRenderer:l,rangeSvc:c}=i;for(;;){e!==r&&(e=r),t||(r=this.getLastCellOfColSpan(r)),r=o.getNextTabbedCell(r,t);const u=a.getCallback("tabToNextCell");if(Ut(u)){const g=u({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:r||null});if(g===!0)r=e;else{if(g===!1)return!1;r={rowIndex:g.rowIndex,column:g.column,rowPinned:g.rowPinned}}}if(!r)return null;if(r.rowIndex<0){const h=Qv(i);return s.focusHeaderPosition({headerPosition:{headerRowIndex:h+r.rowIndex,column:r.column},fromCell:!0}),null}const d=a.get("editType")==="fullRow";if(n&&!d&&!this.isCellEditable(r))continue;this.ensureCellVisible(r);const p=Kv(i,r);if(!p){const h=l.getRowByPosition(r);if(!h||!h.isFullWidth()||n)continue;return{...h.getRowPosition(),column:r?.column}}if(!o.isSuppressNavigable(p.column,p.rowNode))return p.setFocusedCellPosition(r),c?.setRangeToCell(r),p}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:n,rowModel:r}=this.beans;return t==="top"?n?.getPinnedTopRow(e):t==="bottom"?n?.getPinnedBottomRow(e):r.getRow(e)}navigateToNextCell(e,t,n,r){let i=n,o=!1;const a=this.beans,{cellNavigation:s,focusSvc:l,gos:c}=a;for(;i&&(i===n||!this.isValidNavigateCell(i));)c.get("enableRtl")?t===Qe.LEFT&&(i=this.getLastCellOfColSpan(i)):t===Qe.RIGHT&&(i=this.getLastCellOfColSpan(i)),i=s.getNextCellToFocus(t,i),o=Yi(i);if(o&&e&&e.key===Qe.UP&&(i={rowIndex:-1,rowPinned:null,column:n.column}),r){const d=c.getCallback("navigateToNextCell");if(Ut(d)){const h=d({key:t,previousCellPosition:n,nextCellPosition:i||null,event:e});Ut(h)?i={rowPinned:h.rowPinned,rowIndex:h.rowIndex,column:h.column}:i=null}}if(!i)return;if(i.rowIndex<0){const d=Qv(a);l.focusHeaderPosition({headerPosition:{headerRowIndex:d+i.rowIndex,column:n.column},event:e||void 0,fromCell:!0});return}const u=this.getNormalisedPosition(i);u?this.focusPosition(u):this.tryToFocusFullWidthRow(i)}getNormalisedPosition(e){if(!!this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const n=Kv(this.beans,e);return n?(e=n.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:n,rowRenderer:r,focusSvc:i,eventSvc:o}=this.beans,a=n.allCols,s=r.getRowByPosition(e);if(!s||!s.isFullWidth())return!1;const l=i.getFocusedCell(),c={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?zr(a):a[0])};this.focusPosition(c);const u=t??(l!=null&&t0(c,l));return o.dispatchEvent({type:"fullWidthRowFocused",rowIndex:c.rowIndex,rowPinned:c.rowPinned,column:c.column,isFullWidthCell:!0,fromBelow:u}),!0}focusPosition(e){const{focusSvc:t,rangeSvc:n}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),n?.setRangeToCell(e)}isValidNavigateCell(e){return!!lp(this.beans,e)}getLastCellOfColSpan(e){const t=Kv(this.beans,e);if(!t)return e;const n=t.getColSpanningList();return n.length===1?e:{rowIndex:e.rowIndex,column:zr(n),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=yK(this.gos),n=this.beans.rowModel.getRow(e.rowIndex),r=t&&n?.sticky,{scrollFeature:i}=this.gridBodyCon;!r&&Yi(e.rowPinned)&&i.ensureIndexVisible(e.rowIndex),e.column.isPinned()||i.ensureColumnVisible(e.column)}};function cre(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var RK={moduleName:"KeyboardNavigation",version:Jn,beans:[dqt,iqt,fWt],apiFunctions:{getFocusedCell:oqt,clearFocusedCell:aqt,setFocusedCell:sqt,setFocusedHeader:uqt,tabToNextCell:lqt,tabToPreviousCell:cqt}},pqt=class extends dt{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){const{pageBounds:e,pagination:t,rowModel:n}=this.beans;t?t.calculatePages():e.calculateBounds(0,n.getRowCount()-1)}},hqt=class extends dt{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){const{topRowBounds:e,bottomRowBounds:t}=this;return!e||!t?0:Math.max(t.rowTop+t.rowHeight-e.rowTop,0)}getCurrentPagePixelRange(){const{topRowBounds:e,bottomRowBounds:t}=this,n=e?.rowTop??0,r=t?t.rowTop+t.rowHeight:0;return{pageFirstPixel:n,pageLastPixel:r}}calculateBounds(e,t){const{rowModel:n}=this.beans,r=n.getRowBounds(e);r&&(r.rowIndex=e),this.topRowBounds=r;const i=n.getRowBounds(t);i&&(i.rowIndex=t),this.bottomRowBounds=i,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},fqt=".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}",gqt=class extends dt{constructor(e,t){super(),this.isLeft=e,this.elements=t,this.getWidth=e?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[`${this.isLeft?"left":"right"}PinnedWidthChanged`]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){const e=this.getWidth(),t=e>0;for(const n of this.elements)n&&(Nn(n,t),am(n,e))}},mqt=class extends dt{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,t=>{this.gridBodyCtrl=t.gridBodyCtrl});const e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const{gos:e,visibleCols:t,eventSvc:n}=this.beans,r=Uu(e,"print"),i=r?0:t.getColsLeftWidth(),o=r?0:t.getDisplayedColumnsRightWidth();i!=this.leftWidth&&(this.leftWidth=i,n.dispatchEvent({type:"leftPinnedWidthChanged"})),o!=this.rightWidth&&(this.rightWidth=o,n.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const e=this.gridBodyCtrl.eBodyViewport,t=KI(e);if(t<=50)return;const n=this.getPinnedColumnsOverflowingViewport(t-50),r=this.gos.getCallback("processUnpinnedColumns"),{columns:i,hasLockedPinned:o}=n;let a=i;!a.length&&!o||(r&&(a=r({columns:a,viewportWidth:t})),!(!a||!a.length)&&(a=a.filter(s=>!p0(s)),this.setColsPinned(a,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new gqt(e,t)}setColsPinned(e,t,n){const{colModel:r,colAnimation:i,visibleCols:o,gos:a}=this.beans;if(!r.cols||!e?.length)return;if(Uu(a,"print")){ut(37);return}i?.start();let s;t===!0||t==="left"?s="left":t==="right"?s="right":s=null;const l=[];e.forEach(c=>{if(!c)return;const u=r.getCol(c);u&&u.getPinned()!==s&&(this.setColPinned(u,s),l.push(u))}),l.length&&(o.refresh(n),Wet(this.eventSvc,l,n)),i?.finish()}initCol(e){const{pinned:t,initialPinned:n}=e.colDef;t!==void 0?this.setColPinned(e,t):this.setColPinned(e,n)}setColPinned(e,t){t===!0||t==="left"?e.pinned="left":t==="right"?e.pinned="right":e.pinned=null,e.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(e){const{scrollVisibleSvc:t}=this.beans;if(e.pinned==null)return;const n=e.pinned==="left",r=e.pinned==="right";e.hidden=!0;const i=()=>{const o=n?this.leftWidth:this.rightWidth;if(o==null)return;const a=o==0,s=e.hidden!==a,l=this.gos.get("enableRtl"),c=t.getScrollbarWidth(),d=t.verticalScrollShowing&&(l&&n||!l&&r)?o+c:o;e.comp.setPinnedContainerWidth(`${d}px`),e.comp.setDisplayed(!a),s&&(e.hidden=a,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:i,rightPinnedWidthChanged:i,scrollVisibilityChanged:i,scrollbarWidthChanged:i})}getHeaderResizeDiff(e,t){if(t.getPinned()){const{leftWidth:r,rightWidth:i}=this,o=KI(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(r+i+e>o)if(o>r+i)e=o-r-i;else return 0}return e}getPinnedColumnsOverflowingViewport(e){const t=this.rightWidth??0,n=this.leftWidth??0,r=t+n;let i=!1;if(r<e)return{columns:[],hasLockedPinned:i};const{visibleCols:o}=this.beans,a=[...o.leftCols],s=[...o.rightCols];let l=0,c=0;const u=0,d=[];let p=r-u-e;for(;(c<a.length||l<s.length)&&p>0;){if(l<s.length){const h=s[l++];if(h.colDef.lockPinned){i=!0;continue}p-=h.getActualWidth(),d.push(h)}if(c<a.length&&p>0){const h=a[c++];if(h.colDef.lockPinned){i=!0;continue}p-=h.getActualWidth(),d.push(h)}}return{columns:d,hasLockedPinned:i}}},vqt={moduleName:"PinnedColumn",version:Jn,beans:[mqt],css:[fqt]},bqt=class extends dt{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=Ml(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=bl(e),n=this.descriptionContainer=t.createElement("div");n.classList.add("ag-aria-description-container"),NJe(n,"polite"),$Dt(n,"additions text"),GDt(n,!0),e.eGridDiv.appendChild(n)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{if(this.isAlive()&&this.descriptionContainer){let t=e;this.lastAnnouncement===t&&(t=`${t}.`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t}},50)}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(Xi(e),e.parentElement?.removeChild(e)),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},yqt={moduleName:"Aria",version:Jn,beans:[bqt]};function Mqt(e){e.overlays?.showLoadingOverlay()}function Cqt(e){e.overlays?.showNoRowsOverlay()}function xqt(e){e.overlays?.hideOverlay()}var wqt=".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-overlay-loading-center{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}",Sqt={tag:"div",cls:"ag-overlay",role:"presentation",children:[{tag:"div",cls:"ag-overlay-panel",role:"presentation",children:[{tag:"div",ref:"eOverlayWrapper",cls:"ag-overlay-wrapper",role:"presentation"}]}]},wnt=class extends Gt{constructor(){super(Sqt),this.eOverlayWrapper=at,this.activePromise=null,this.activeOverlay=null,this.updateListenerDestroyFunc=null,this.activeCssClass=null,this.elToFocusAfter=null,this.registerCSS(wqt)}handleKeyDown(e){if(e.key!==Qe.TAB||e.defaultPrevented||rh(e))return;const t=this.beans;if(Md(t,this.eOverlayWrapper,!1,e.shiftKey))return;let r=!1;e.shiftKey?r=t.focusSvc.focusGridView({column:zr(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):r=Tb(t,!1),r&&e.preventDefault()}updateLayoutClasses(e,t){const n=this.eOverlayWrapper.classList,{AUTO_HEIGHT:r,NORMAL:i,PRINT:o}=Vg;n.toggle(r,t.autoHeight),n.toggle(i,t.normal),n.toggle(o,t.print)}postConstruct(){this.createManagedBean(new mye(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setOverlayWrapperComp(this),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper.classList;this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)}showOverlay(e,t,n,r){if(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,!!e){if(this.setDisplayed(!0,{skipAriaHidden:!0}),n&&this.isGridFocused()){const i=Gi(this.beans);i&&!Gx(this.beans)&&(this.elToFocusAfter=i)}e.then(i=>{if(this.activePromise!==e){this.activeOverlay!==i&&(this.destroyBean(i),i=null);return}if(this.activePromise=null,!!i){if(this.activeOverlay!==i&&(this.eOverlayWrapper.appendChild(i.getGui()),this.activeOverlay=i,r)){const o=i;this.updateListenerDestroyFunc=this.addManagedPropertyListener(r,({currentValue:a})=>{o.refresh?.(Vn(this.gos,{...a??{}}))})}n&&this.isGridFocused()&&zu(this.eOverlayWrapper)}})}}updateOverlayWrapperPaddingTop(e){this.eOverlayWrapper.style.setProperty("padding-top",`${e}px`)}destroyActiveOverlay(){this.activePromise=null;const e=this.activeOverlay;if(!e)return;let t=this.elToFocusAfter;this.activeOverlay=null,this.elToFocusAfter=null,t&&!this.isGridFocused()&&(t=null);const n=this.updateListenerDestroyFunc;n&&(n(),this.updateListenerDestroyFunc=null),this.destroyBean(e),Xi(this.eOverlayWrapper),t?.focus?.({preventScroll:!0})}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=Gi(this.beans);return!!e&&this.beans.eGridDiv.contains(e)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setOverlayWrapperComp(void 0),super.destroy()}},Aqt={selector:"AG-OVERLAY-WRAPPER",component:wnt},Oqt=class extends dt{constructor(){super(...arguments),this.beanName="overlays",this.state=0,this.showInitialOverlay=!0,this.wrapperPadding=0}postConstruct(){this.isClientSide=oa(this.gos),this.isServerSide=!this.isClientSide&&Au(this.gos);const e=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:e,rowDataUpdated:e,gridSizeChanged:this.refreshWrapperPadding.bind(this),rowCountReady:()=>{this.showInitialOverlay=!1,this.updateOverlayVisibility()}}),this.addManagedPropertyListener("loading",e)}setOverlayWrapperComp(e){this.eWrapper=e,this.updateOverlayVisibility()}isVisible(){return this.state!==0&&!!this.eWrapper}isExclusive(){return this.state===1&&!!this.eWrapper}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos,t=e.get("loading");!t&&(t!==void 0||e.get("suppressLoadingOverlay"))||this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;e.get("loading")||e.get("suppressNoRowsOverlay")||this.doShowNoRowsOverlay()}hideOverlay(){if(this.showInitialOverlay=!1,this.gos.get("loading")){ut(99);return}this.doHideOverlay()}getOverlayWrapperSelector(){return Aqt}getOverlayWrapperCompClass(){return wnt}updateOverlayVisibility(){if(!this.eWrapper){this.state=0;return}const{state:e,isClientSide:t,isServerSide:n,beans:{gos:r,colModel:i,rowModel:o}}=this;let a=this.gos.get("loading");a!==void 0&&(this.showInitialOverlay=!1),this.showInitialOverlay&&a===void 0&&!r.get("suppressLoadingOverlay")&&(a=!r.get("columnDefs")||!i.ready||!r.get("rowData")&&t),a?e!==1&&this.doShowLoadingOverlay():(this.showInitialOverlay=!1,t&&o.isEmpty()&&!r.get("suppressNoRowsOverlay")?e!==2&&this.doShowNoRowsOverlay():(e===1||!n&&e!==0)&&this.doHideOverlay())}doShowLoadingOverlay(){this.eWrapper&&(this.state=1,this.showOverlay(OLt(this.beans.userCompFactory,Vn(this.gos,{})),"ag-overlay-loading-wrapper","loadingOverlayComponentParams"),this.updateExclusive())}doShowNoRowsOverlay(){this.eWrapper&&(this.state=2,this.showOverlay(zLt(this.beans.userCompFactory,Vn(this.gos,{})),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams"),this.updateExclusive())}doHideOverlay(){this.eWrapper&&(this.state=0,this.eWrapper.hideOverlay(),this.updateExclusive())}showOverlay(e,t,n){const r=e?.newAgStackInstance()??null;this.eWrapper?.showOverlay(r,t,this.isExclusive(),n),this.refreshWrapperPadding()}updateExclusive(){const e=this.exclusive;this.exclusive=this.isExclusive(),this.exclusive!==e&&this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"})}refreshWrapperPadding(){const e=this.eWrapper;if(!e)return;let t=0;this.state===2?t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0:this.wrapperPadding!==0&&(t=0),this.wrapperPadding!==t&&(this.wrapperPadding=t,e.updateOverlayWrapperPaddingTop(t))}},zqt={moduleName:"Overlay",version:Jn,userComponents:{agLoadingOverlay:a_t,agNoRowsOverlay:l_t},apiFunctions:{showLoadingOverlay:Mqt,showNoRowsOverlay:Cqt,hideOverlay:xqt},beans:[Oqt]},Tqt=class extends dt{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=KDt(),Vx(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;Vx(this.gos,`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=this.modelHeight-this.getUiBodyHeight(),n=e/t;return this.maxScrollY*n}},Eqt=400,Rqt=class extends dt{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{this.getAllCellCtrls().forEach(o=>o.onCellSelectionChanged())},t=()=>{this.getAllCellCtrls().forEach(o=>o.updateRangeBordersIfRangeCount())},n=()=>{this.eventSvc.addEventListener("cellSelectionChanged",e),this.eventSvc.addEventListener("columnMoved",t),this.eventSvc.addEventListener("columnPinned",t),this.eventSvc.addEventListener("columnVisible",t)},r=()=>{this.eventSvc.removeEventListener("cellSelectionChanged",e),this.eventSvc.removeEventListener("columnMoved",t),this.eventSvc.removeEventListener("columnPinned",t),this.eventSvc.removeEventListener("columnVisible",t)};this.addDestroyFunc(()=>r()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{r1(this.gos)?n():r()}),r1(this.gos)&&n()}}wireBeans(e){this.pageBounds=e.pageBounds,this.colModel=e.colModel,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusSvc=e.focusSvc,this.rowContainerHeight=e.rowContainerHeight,this.ctrlsSvc=e.ctrlsSvc}postConstruct(){this.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",r=>this.onSuppressCellFocusChanged(r.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:r,previousValue:i})=>{(!i&&r||i&&!r)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:n}=this.beans;if(n&&this.addManagedPropertyListener("showOpenedGroup",()=>{const r=n.getShowRowGroupCols();r.length&&this.refreshCells({columns:r,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const r=this.gridBodyCtrl;r.setStickyTopHeight(0),r.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=Uu(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount(),t=e??3;this.cachedRowCtrls=new Iqt(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){const e=Object.values(this.rowCtrlsByRowIndex),t=Object.values(this.zombieRowCtrls),n=this.cachedRowCtrls?.getEntries()??[];t.length>0||n.length>0?this.allRowCtrls=[...e,...t,...n]:this.allRowCtrls=e}isCellBeingRendered(e,t){const n=this.rowCtrlsByRowIndex[e];return!t||!n?!!n:n.isFullWidth()?!0:!!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null})||!!n.getCellCtrl(t)||!n.isRowRendered()}updateCellFocus(e){this.getAllCellCtrls().forEach(t=>t.onCellFocused(e)),this.getFullWidthRowCtrls().forEach(t=>t.onFullWidthRowFocused(e))}onCellFocusChanged(e){if(e&&e.rowIndex!=null&&!e.rowPinned){const t=this.beans.colModel.getCol(e.column)??void 0;this.isCellBeingRendered(e.rowIndex,t)||this.redraw()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){this.getAllCellCtrls().forEach(t=>t.onSuppressCellFocusChanged(e)),this.getFullWidthRowCtrls().forEach(t=>t.onSuppressCellFocusChanged(e))}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{const{cellFlashSvc:t}=this.beans;t&&this.getAllCellCtrls().forEach(n=>t.onFlashCells(n,e))},columnHoverChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onColumnHover())},displayedColumnsChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onDisplayedColumnsChanged())},displayedColumnsWidthChanged:()=>{this.printLayout&&this.getAllCellCtrls().forEach(e=>e.onLeftChanged())}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach(e=>e()),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners(),this.colModel.getCols().forEach(t=>{const n=l=>{this.getAllCellCtrls().forEach(c=>{c.column===t&&l(c)})},r=()=>{n(l=>l.onLeftChanged())},i=()=>{n(l=>l.onWidthChanged())},o=()=>{n(l=>l.onFirstRightPinnedChanged())},a=()=>{n(l=>l.onLastLeftPinnedChanged())},s=()=>{n(l=>l.onColDefChanged())};t.__addEventListener("leftChanged",r),t.__addEventListener("widthChanged",i),t.__addEventListener("firstRightPinnedChanged",o),t.__addEventListener("lastLeftPinnedChanged",a),t.__addEventListener("colDefChanged",s),this.destroyFuncsForColumnListeners.push(()=>{t.__removeEventListener("leftChanged",r),t.__removeEventListener("widthChanged",i),t.__removeEventListener("firstRightPinnedChanged",o),t.__removeEventListener("lastLeftPinnedChanged",a),t.__removeEventListener("colDefChanged",s)})})}onDomLayoutChanged(){const e=Uu(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsNotSpanningForColumn(e){const t=[];return this.getAllRowCtrls().forEach(n=>{const r=n.getCellCtrl(e,!0)?.eGui;r&&t.push(r)}),t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,n){const{pinnedRowModel:r,beans:i,printLayout:o}=this,a=Object.fromEntries(e.map(l=>[l.rowNode.id,l]));r?.forEachPinnedRow(t,(l,c)=>{const u=e[c];u&&r.getPinnedRowById(u.rowNode.id,t)===void 0&&(u.destroyFirstPass(),u.destroySecondPass()),l.id in a&&n?(e[c]=a[l.id],delete a[l.id]):e[c]=new E$(l,i,!1,!1,o)});const s=(t==="top"?r?.getPinnedTopRowCount():r?.getPinnedBottomRowCount())??0;e.length=s}onPinnedRowDataChanged(){const e={recycleRows:!0};this.redrawAfterModelUpdate(e)}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else if(this.cachedRowCtrls?.has(e)){this.cachedRowCtrls.removeRow(e);return}else{const n=r=>{const i=r[e.rowIndex];i&&i.rowNode===e&&(i.destroyFirstPass(),i.destroySecondPass(),r[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":n(this.topRowCtrls);break;case"bottom":n(this.bottomRowCtrls);break;default:n(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){if(e!=null){e?.forEach(n=>this.redrawRow(n,!0)),this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const n=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&nI(this.gos),i=n?this.getRowsToRecycle():null;n||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:o,gos:a}=this;if(o){o.checkStickyRows();const s=o.extraTopHeight+o.extraBottomHeight;s&&this.updateContainerHeights(s)}this.recycleRows(i,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(a.get("enableRowPinning")?n:void 0),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,n=this.gos.get("suppressScrollOnNewData");t&&!n&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout){t.setModelHeight(null);return}let n=this.pageBounds.getCurrentPageHeight();n===0&&(n=1),t.setModelHeight(n+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(Of(252));this.refreshInProgress=!0,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){if(!e)return;const t=this.beans.focusSvc,n=this.findPositionToFocus(e);if(!n){t.focusHeaderPosition({headerPosition:{headerRowIndex:Qv(this.beans)-1,column:e.column}});return}if(e.rowIndex!==n.rowIndex||e.rowPinned!=n.rowPinned){t.setFocusedCell({...n,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0});return}t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(Vn(this.gos,{...n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))}findPositionToFocus(e){const{pagination:t,pageBounds:n}=this.beans;let r=e;for(r.rowPinned==null&&t&&n&&!t.isRowInPage(r.rowIndex)&&(r={rowPinned:null,rowIndex:n.getFirstRow()});r;){if(r.rowPinned==null&&n)if(r.rowIndex<n.getFirstRow()){if(r=Sx(this.beans,{rowPinned:null,rowIndex:0}),!r)return null}else r.rowIndex>n.getLastRow()&&(r={rowPinned:null,rowIndex:n.getLastRow()});const i=this.getRowByPosition(r);if(i?.isAlive())return{...i.getRowPosition(),column:e.column};r=Sx(this.beans,r)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),n=t.length;for(let r=0;r<n;r++){const i=t[r].getAllCellCtrls(),o=i.length;for(let a=0;a<o;a++)e.push(i[a])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),n=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...n,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,n){const r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,n)}refreshCells(e={}){const t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};for(const n of this.getCellCtrls(e.rowNodes,e.columns))n.refreshOrDestroyCell(t);this.refreshFullWidth(e.rowNodes)}refreshFullWidth(e){if(!e)return;let t=!1;for(const n of this.getRowCtrls(e)){if(!n.isFullWidth())continue;n.refreshFullWidth()||(t=!0,this.redrawRow(n.rowNode,!0))}t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=vhe(e),n=this.getAllRowCtrls();return!e||!t?n:n.filter(r=>{const i=r.rowNode;return bhe(i,t)})}getCellCtrls(e,t){let n;Ut(t)&&(n={},t.forEach(i=>{const o=this.colModel.getCol(i);Ut(o)&&(n[o.getId()]=!0)}));const r=[];return this.getRowCtrls(e).forEach(i=>{i.getAllCellCtrls().forEach(o=>{const a=o.column.getId();n&&!n[a]||r.push(o)})}),r}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const e=[];for(const n of Object.keys(this.rowCtrlsByRowIndex))this.rowCtrlsByRowIndex[n].rowNode.id==null&&e.push(n);this.removeRowCtrls(e);const t={};for(const n of Object.values(this.rowCtrlsByRowIndex)){const r=n.rowNode;t[r.id]=n}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){e.forEach(n=>{const r=this.rowCtrlsByRowIndex[n];r&&(r.destroyFirstPass(t),r.destroySecondPass()),delete this.rowCtrlsByRowIndex[n]})}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:n}=this.beans,{afterScroll:r}=e;let i;const o=this.stickyRowFeature;o&&(i=t?.getFocusCellToUseAfterRefresh()||void 0);const a=this.firstRenderedRow,s=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let l=!1;if(o){l=o.checkStickyRows();const u=o.extraTopHeight+o.extraBottomHeight;u&&this.updateContainerHeights(u)}const c=this.firstRenderedRow!==a||this.lastRenderedRow!==s;if(!(r&&!l&&!c)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,r),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(r&&!l),i!=null)){const u=t?.getFocusCellToUseAfterRefresh();i!=null&&u==null&&(n?.flushAllFrames(),this.restoreFocusedCell(i))}}removeRowCompsNotToDraw(e,t){const n={};e.forEach(o=>n[o]=!0);const i=Object.keys(this.rowCtrlsByRowIndex).filter(o=>!n[o]);this.removeRowCtrls(i,t)}calculateIndexesToDraw(e){const t=[];for(let a=this.firstRenderedRow;a<=this.lastRenderedRow;a++)t.push(a);const n=this.beans.pagination,r=this.beans.focusSvc?.getFocusedCell()?.rowIndex;r!=null&&(r<this.firstRenderedRow||r>this.lastRenderedRow)&&(!n||n.isRowInPage(r))&&r<this.rowModel.getRowCount()&&t.push(r);const i=a=>{const s=a.rowNode.rowIndex;s==null||s===r||(s<this.firstRenderedRow||s>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(a)&&t.push(s)};for(const a of Object.values(this.rowCtrlsByRowIndex))i(a);if(e)for(const a of Object.values(e))i(a);t.sort((a,s)=>a-s);const o=[];for(let a=0;a<t.length;a++){const s=t[a],l=this.rowModel.getRow(s);l&&!l.sticky&&o.push(s)}return o}recycleRows(e,t=!1,n=!1){const r=this.calculateIndexesToDraw(e);if((this.printLayout||n)&&(t=!1),this.removeRowCompsNotToDraw(r,!t),r.forEach(i=>{this.createOrUpdateRowCtrl(i,e,t,n)}),e){const{animationFrameSvc:i}=this.beans;i?.active&&n&&!this.printLayout?i.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const{visibleCols:e}=this.beans,t=e.isPinningLeft(),n=e.isPinningRight();(this.pinningLeft!==t||n!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=n,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];this.getFullWidthRowCtrls().forEach(t=>{const n=t.rowNode.rowIndex;e.push(n.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=vhe(e);return this.getAllRowCtrls().filter(n=>{if(!n.isFullWidth())return!1;const r=n.rowNode;return!(t!=null&&!bhe(r,t))})}createOrUpdateRowCtrl(e,t,n,r){let i,o=this.rowCtrlsByRowIndex[e];if(o||(i=this.rowModel.getRow(e),Ut(i)&&Ut(t)&&t[i.id]&&i.alreadyRendered&&(o=t[i.id],t[i.id]=null)),!o)if(i||(i=this.rowModel.getRow(e)),Ut(i))o=this.createRowCon(i,n,r);else return;return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=o,o}destroyRowCtrls(e,t){const n=[];if(e){for(const r of Object.values(e))if(r){if(this.cachedRowCtrls&&r.isCacheable()){this.cachedRowCtrls.addRow(r);continue}if(r.destroyFirstPass(!t),t){const i=r.instanceId;this.zombieRowCtrls[i]=r,n.push(()=>{r.destroySecondPass(),delete this.zombieRowCtrls[i]})}else r.destroySecondPass()}}t&&(n.push(()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}),window.setTimeout(()=>n.forEach(r=>r()),Eqt))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=sp(this.beans);return e*t}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:n}=this;e.updateOffset();let r,i;if(!n.isRowsToRender())r=0,i=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),r=t.getFirstRow(),i=t.getLastRow();else{const u=this.getRowBufferInPixels(),d=this.ctrlsSvc.getScrollFeature(),p=this.gos.get("suppressRowVirtualisation");let h=!1,g,m;do{const x=t.getPixelOffset(),{pageFirstPixel:w,pageLastPixel:S}=t.getCurrentPagePixelRange(),A=e.divStretchOffset,z=d.getVScrollPosition(),O=z.top,T=z.bottom;p?(g=w+A,m=S+A):(g=Math.max(O+x-u,w)+A,m=Math.min(T+x+u,S)+A),this.firstVisibleVPixel=Math.max(O+x,w)+A,this.lastVisibleVPixel=Math.min(T+x,S)+A,h=this.ensureAllRowsInRangeHaveHeightsCalculated(g,m)}while(h);let v=n.getRowIndexAtPixel(g),y=n.getRowIndexAtPixel(m);const M=t.getFirstRow(),C=t.getLastRow();v<M&&(v=M),y>C&&(y=C),r=v,i=y}const o=Uu(this.gos,"normal"),a=this.gos.get("suppressMaxRenderedRowRestriction"),s=Math.max(this.getRowBuffer(),500);o&&!a&&i-r>s&&(i=r+s);const l=r!==this.firstRenderedRow,c=i!==this.lastRenderedRow;(l||c)&&(this.firstRenderedRow=r,this.lastRenderedRow=i,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:r,lastRow:i}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,sh(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const n=this.pinnedRowModel?.ensureRowHeightsValid(),r=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:i,rowModel:o}=this,a=o.ensureRowHeightsValid(e,t,i.getFirstRow(),i.getLastRow());return(a||r)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),r||a||n?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(e){const r=e.rowNode,i=this.focusSvc.isRowFocused(r.rowIndex,r.rowPinned),o=e.editing,a=r.detail;return i||o||a?!!this.isRowPresent(r):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.beans.pagination?.isRowInPage(e.rowIndex)??!0:!1}createRowCon(e,t,n){const r=this.cachedRowCtrls?.getRow(e)??null;if(r)return r;const i=n&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new E$(e,this.beans,t,i,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(r=>r.rowNode),t=this.getStickyTopRowCtrls().map(r=>r.rowNode),n=this.getStickyBottomRowCtrls().map(r=>r.rowNode);return[...t,...e,...n]}getRowByPosition(e){let t;const{rowIndex:n}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[n];break;case"bottom":t=this.bottomRowCtrls[n];break;default:t=this.rowCtrlsByRowIndex[n],t||(t=this.getStickyTopRowCtrls().find(r=>r.rowNode.rowIndex===n)||null,t||(t=this.getStickyBottomRowCtrls().find(r=>r.rowNode.rowIndex===n)||null));break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;const r=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!r}},Iqt=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.rowNode.id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}}getRow(e){if(e==null||e.id==null)return null;const t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.rowNode!=e?null:t):null}has(e){return this.entriesMap[e.id]!=null}removeRow(e){const t=e.id,n=this.entriesMap[t];delete this.entriesMap[t],Ou(this.entriesList,n)}removeFromCache(e){const t=e.rowNode.id;delete this.entriesMap[t],Ou(this.entriesList,e)}getEntries(){return this.entriesList}};function vhe(e){if(!e)return;const t={top:{},bottom:{},normal:{}};return e.forEach(n=>{const r=n.id;switch(n.rowPinned){case"top":t.top[r]=n;break;case"bottom":t.bottom[r]=n;break;default:t.normal[r]=n;break}}),t}function bhe(e,t){const n=e.id;switch(e.rowPinned){case"top":return t.top[n]!=null;case"bottom":return t.bottom[n]!=null;default:return t.normal[n]!=null}}var Pqt=class extends dt{constructor(){super(...arguments),this.beanName="rowNodeSorter"}postConstruct(){const{gos:e}=this;this.isAccentedSort=e.get("accentedSort"),this.primaryColumnsSortGroups=Yg(e),this.addManagedPropertyListener("accentedSort",t=>this.isAccentedSort=t.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=Yg(e))}doFullSort(e,t){const n=e.map((r,i)=>({currentPos:i,rowNode:r}));return n.sort(this.compareRowNodes.bind(this,t)),n.map(r=>r.rowNode)}compareRowNodes(e,t,n){const r=t.rowNode,i=n.rowNode;for(let o=0,a=e.length;o<a;o++){const s=e[o],l=s.sort==="desc",c=this.getValue(r,s.column),u=this.getValue(i,s.column);let d;const p=this.getComparator(s,r);if(p?d=p(c,u,r,i,l):d=BG(c,u,this.isAccentedSort),!isNaN(d)&&d!==0)return s.sort==="asc"?d:d*-1}return t.currentPos-n.currentPos}getComparator(e,t){const n=e.column,r=n.getColDef().comparator;if(r!=null)return r;if(!n.getColDef().showRowGroup)return;const i=!t.group&&n.getColDef().field;if(!i)return;const o=this.beans.colModel.getColDefCol(i);if(o)return o.getColDef().comparator}getValue(e,t){const{valueSvc:n,colModel:r,showRowGroupCols:i,gos:o}=this.beans;if(!this.primaryColumnsSortGroups)return n.getValue(t,e,!1);if(e.rowGroupColumn===t){if(Z2e(o,r.isPivotActive())){const c=e.allLeafChildren?.[0];return c?n.getValue(t,c,!1):void 0}const l=i?.getShowRowGroupCol(t.getId());return l?e.groupData?.[l.getId()]:void 0}if(!(e.group&&t.getColDef().showRowGroup))return n.getValue(t,e,!1)}};function Dqt(e){e.sortSvc?.onSortChanged("api")}var Lye={moduleName:"Sort",version:Jn,beans:[wWt,Pqt],apiFunctions:{onSortChanged:Dqt},userComponents:{agSortIndicator:kye},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"}},kqt=class extends dt{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){const{colModel:t,rowModel:n}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),n.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),Vx(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.beans.colModel.setColumnDefs(t,xx(e.source))}}};function Lqt(e){e.valueCache?.expire()}function _qt(e,t){const{colKey:n,rowNode:r,useFormatter:i}=t,o=e.colModel.getColDefCol(n)??e.colModel.getCol(n);if(Yi(o))return null;const a=e.valueSvc.getValueForDisplay(o,r).value;return i?e.valueSvc.formatValue(o,r,a)??Df(a):a}var Nqt="paste",Fqt=class extends dt{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){const{gos:e,rowModel:t}=this.beans;oa(e)&&(this.clientSideRowModel=t),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){const{gos:t,rowRenderer:n}=this.beans;if(e.source===Nqt||t.get("suppressChangeDetection"))return;const r=e.node,i=[r],o=this.clientSideRowModel,a=o?.rootNode;if(a&&!r.isRowPinned()){const s=t.get("aggregateOnlyChangedColumns"),l=new Mz(s,a);l.addParentNode(r.parent,[e.column]),o.doAggregate(l),l.forEachChangedNodeDepthFirst(c=>{i.push(c),c.sibling&&i.push(c.sibling)})}n.refreshCells({rowNodes:i})}},Wqt=class extends dt{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);pi(15,{expression:e})}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(n){return pi(16,{expression:e,params:t,e:n}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const n=this.createFunctionBody(e),r=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",n);return t[e]=r,r}createFunctionBody(e){return e.indexOf("return")>=0?e:"return "+e+";"}},qqt=class extends dt{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){const e=this.gos;this.active=e.get("valueCache"),this.neverExpires=e.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,n){if(this.active){const r=this.cacheVersion;e.__cacheVersion!==r&&(e.__cacheVersion=r,e.__cacheData={}),e.__cacheData[t]=n}}getValue(e,t){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[t]}},Bqt={moduleName:"ValueCache",version:Jn,beans:[qqt],apiFunctions:{expireValueCache:Lqt}},jqt={moduleName:"Expression",version:Jn,beans:[Wqt]},Hqt={moduleName:"ChangeDetection",version:Jn,beans:[Fqt]},Vqt={moduleName:"CellApi",version:Jn,apiFunctions:{getCellValue:_qt}},Gqt=class extends dt{constructor(){super(...arguments),this.beanName="valueSvc",this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc}postConstruct(){this.initialised||this.init()}init(){this.executeValueGetter=this.valueCache?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=Au(this.gos),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;const e=t=>this.callColumnCellValueChangedHandler(t);this.eventSvc.addEventListener("cellValueChanged",e,!0),this.addDestroyFunc(()=>this.eventSvc.removeEventListener("cellValueChanged",e,!0)),this.addManagedPropertyListener("treeData",t=>this.isTreeData=t.currentValue)}getValueForDisplay(e,t,n=!1,r=!1){const{showRowGroupColValueSvc:i}=this.beans,o=!e&&t.group,a=e?.colDef.showRowGroup,s=!this.isTreeData||t.footer;if(i&&s&&(o||a)){const g=i.getGroupValue(t,e);if(g==null)return{value:null,valueFormatted:null};if(!n)return{value:g.value,valueFormatted:null};const m=i.formatAndPrefixGroupColValue(g,e,r);return{value:g.value,valueFormatted:m}}if(!e)return{value:t.key,valueFormatted:null};const l=t.leafGroup&&this.colModel.isPivotMode(),c=t.group&&t.expanded&&!t.footer&&!l,u=this.gos.get("groupSuppressBlankHeader")||!t.sibling,d=c&&!u,p=this.getValue(e,t,d),h=n&&!(r&&e.colDef.useValueFormatterForExport===!1);return{value:p,valueFormatted:h?this.formatValue(e,t,p):null}}getValue(e,t,n=!1){if(this.initialised||this.init(),!t)return;const r=e.getColDef(),i=r.field,o=e.getColId(),a=t.data;let s;const l=r.showRowGroup;if(typeof l=="string"&&(this.beans.rowGroupColsSvc?.getColumnIndex(l)??-1)>t.level)return null;const c=typeof l!="string"||!t.group,u=t.groupData&&o in t.groupData,d=!n&&t.aggData&&t.aggData[o]!==void 0,p=this.isSsrm&&n&&!!e.getColDef().aggFunc,h=this.isSsrm&&t.footer&&t.field&&(e.getColDef().showRowGroup===!0||e.getColDef().showRowGroup===t.field);if(this.isTreeData&&d)s=t.aggData[o];else if(this.isTreeData&&r.valueGetter)s=this.executeValueGetter(r.valueGetter,a,e,t);else if(this.isTreeData&&i&&a)s=RN(a,i,e.isFieldContainsDots());else if(u)s=t.groupData[o];else if(d)s=t.aggData[o];else if(r.valueGetter){if(!c)return s;s=this.executeValueGetter(r.valueGetter,a,e,t)}else if(h)s=RN(a,t.field,e.isFieldContainsDots());else if(i&&a&&!p){if(!c)return s;s=RN(a,i,e.isFieldContainsDots())}if(this.cellExpressions&&typeof s=="string"&&s.indexOf("=")===0){const g=s.substring(1);s=this.executeValueGetter(g,a,e,t)}return s}parseValue(e,t,n,r){const i=e.getColDef(),o=i.valueParser;if(Ut(o)){const a=Vn(this.gos,{node:t,data:t?.data,oldValue:r,newValue:n,colDef:i,column:e});return typeof o=="function"?o(a):this.expressionSvc?.evaluate(o,a)}return n}getDeleteValue(e,t){return Ut(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay(e,t).value)??null:null}formatValue(e,t,n,r,i=!0){let o=null,a;const s=e.getColDef();if(r?a=r:i&&(a=s.valueFormatter),a){const l=Vn(this.gos,{value:n,node:t,data:t?t.data:null,colDef:s,column:e});typeof a=="function"?o=a(l):o=this.expressionSvc?this.expressionSvc.evaluate(a,l):null}else if(s.refData)return s.refData[n]||"";return o==null&&Array.isArray(n)&&(o=n.join(", ")),o}setValue(e,t,n,r){const i=this.colModel.getColDefCol(t);if(!e||!i)return!1;Yi(e.data)&&(e.data={});const{field:o,valueSetter:a}=i.getColDef();if(Yi(o)&&Yi(a))return ut(17),!1;if(this.dataTypeSvc&&!this.dataTypeSvc.checkType(i,n))return ut(135),!1;const s=Vn(this.gos,{node:e,data:e.data,oldValue:this.getValue(i,e),newValue:n,colDef:i.getColDef(),column:i});s.newValue=n;let l;if(Ut(a)?typeof a=="function"?l=a(s):l=this.expressionSvc?.evaluate(a,s):l=this.setValueUsingField(e.data,o,n,i.isFieldContainsDots()),l===void 0&&(l=!0),!l)return!1;e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const c=this.getValue(i,e);return this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:s.column,colDef:s.colDef,data:e.data,node:e,oldValue:s.oldValue,newValue:c,value:c,source:r}),!0}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;typeof t=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})})}setValueUsingField(e,t,n,r){if(!t)return!1;let i=!1;if(!r)i=e[t]===n,i||(e[t]=n);else{const o=t.split(".");let a=e;for(;o.length>0&&a;){const s=o.shift();o.length===0?(i=a[s]===n,i||(a[s]=n)):a=a[s]}}return!i}executeValueGetterWithValueCache(e,t,n,r){const i=n.getColId(),o=this.valueCache.getValue(r,i);if(o!==void 0)return o;const a=this.executeValueGetterWithoutValueCache(e,t,n,r);return this.valueCache.setValue(r,i,a),a}executeValueGetterWithoutValueCache(e,t,n,r){const i=Vn(this.gos,{data:t,node:r,column:n,colDef:n.getColDef(),getValue:this.getValueCallback.bind(this,r)});let o;return typeof e=="function"?o=e(i):o=this.expressionSvc?.evaluate(e,i),o}getValueCallback(e,t){const n=this.colModel.getColDefCol(t);return n?this.getValue(n,e):null}getKeyForNode(e,t){const n=this.getValue(e,t),r=e.getColDef().keyCreator;let i=n;if(r){const o=Vn(this.gos,{value:n,colDef:e.getColDef(),column:e,node:t,data:t.data});i=r(o)}return typeof i=="string"||i==null||(i=String(i),i==="[object Object]"&&ut(121)),i}},$qt={moduleName:"CommunityCore",version:Jn,beans:[yWt,u5t,eFt,Ykt,Tqt,mNt,hWt,$Wt,Gkt,hqt,pqt,Rqt,Gqt,vWt,pWt,bWt,nFt,kqt,YNt,KNt],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:d5t,destroy:p5t,isDestroyed:h5t,getGridOption:f5t,setGridOption:g5t,updateGridOptions:Gtt,isModuleRegistered:m5t},dependsOn:[GNt,Rye,tNt,Lye,ZWt,Qtt,JWt,zqt,Hqt,tqt,RK,vqt,yqt,rqt,JNt,$Nt,jqt]};function IK(e){const{inputValue:t,allSuggestions:n,hideIrrelevant:r,filterByPercentageOfBestMatch:i}=e;let o=n.map((l,c)=>({value:l,relevance:Uqt(t,l),idx:c}));if(o.sort((l,c)=>c.relevance-l.relevance),r&&(o=o.filter(l=>l.relevance!==0)),o.length>0&&i&&i>0){const c=o[0].relevance*i;o=o.filter(u=>c-u.relevance<0)}const a=[],s=[];for(const l of o)a.push(l.value),s.push(l.idx);return{values:a,indices:s}}function Uqt(e,t){if(e===t)return 1e3;const n=e.length,r=t.length;if(n===0||r===0)return 0;const i=e.toLocaleLowerCase(),o=t.toLocaleLowerCase(),a=o.indexOf(i);if(a!==-1)return 980-a*2;if([...i].filter(d=>o.includes(d)).length===0)return 0;let l=Array.from({length:r+1},(d,p)=>p);for(let d=0;d<n;d++){const p=[d+1];for(let h=0;h<r;h++){const g=l[h+1]+1,m=p[h]+1;let v=l[h]+(e[d]!==t[h]?1:0);r>10&&h>r/2&&(v+=1),d>0&&h>0&&e[d-1]===t[h-1]&&(v-=4),p.push(Math.min(g,m,v))}l=p}const c=Math.round(l[r]),u=Math.max(1,1e3-c*30);return Math.max(1,u)}var Snt={AdvancedFilter:1,AllEnterprise:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1},ure=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],Xqt={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:ure,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...ure,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...ure,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},Yqt={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function Kqt(e,t){const n=[];return(Array.isArray(e)?e:[e]).forEach(r=>{const i=Xqt[r];i?i.forEach(o=>{const a=Yqt[o];(!a||a===t)&&n.push(o)}):n.push(r)}),n}var Ant=()=>`No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:
                    
    import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
    
    ModuleRegistry.registerModules([ AllCommunityModule ]);
    `,Qqt=e=>{const t=e.map(r=>`import { ${NN(r)} } from '${Snt[r]?"ag-grid-enterprise":"ag-grid-community"}';`);return e.some(r=>r==="IntegratedCharts"||r==="Sparklines")&&t.push("import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';"),`import { ModuleRegistry } from 'ag-grid-community'; 
${t.join(` 
`)} 

ModuleRegistry.registerModules([ ${e.map(r=>NN(r,!0)).join(", ")} ]); 

For more info see: ${tI}/modules/`};function NN(e,t=!1){return t&&(e==="IntegratedCharts"||e==="Sparklines")?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function Zqt(e,t){const n=t.filter(o=>o==="IntegratedCharts"||o==="Sparklines");let r="";return!globalThis?.agCharts&&n.length>0?r=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.
`:t.some(o=>Snt[o])&&(r=r+`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.
`),r}function Ont({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var HEe=({reasonOrId:e,moduleName:t,gridScoped:n,gridId:r,rowModelType:i,additionalText:o,isUmd:a})=>{const s=Kqt(t,i),l=typeof e=="string"?e:n6t[e];if(a)return Zqt(l,s);const c=s.filter(p=>p==="IntegratedCharts"||p==="Sparklines"),u=c.length>0?`${c.map(p=>NN(p)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";return`${`Unable to use ${l} as ${s.length>1?"one of "+s.map(p=>NN(p)).join(", "):NN(s[0])} is not registered${n?" for gridId: "+r:""}. ${u} Check if you have registered the module:
`}
${Qqt(s)}`+(o?` 

${o}`:"")},VEe=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.

import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
import { ModuleRegistry } from 'ag-grid-community';
import { ${e} } from 'ag-grid-enterprise';
    
ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);
    `,Jqt=e=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${e}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`,e6t={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>["Could not find data item as object was not found.",e," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:e})=>["column ",e," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>["value should be either a string or a function",e],16:({expression:e,params:t,e:n})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",n],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>`You may want to configure via a callback to avoid setup race conditions:
                     "alignedGrids: () => [linkedGrid]"`,21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:e})=>`${e} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:e})=>["The getRowId callback must return a string. The ID ",e," is being cast to a string."],26:({fnName:e,preDestroyLink:t})=>`Grid API function ${e}() cannot be called as the grid has been destroyed.
 Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
 To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:e})=>["tried to insert columns in invalid location, toIndex = ",e,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:e})=>"colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e,method:t})=>`${e}
${Jqt(t)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e})=>`Cell data type is "object" but no Value ${e} has been provided. Please either provide an object data type definition with a Value ${e}, or set "colDef.value${e}"`,49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>`Grid option quickFilterText only supports string inputs, received: ${typeof e}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:n,pageSizeOptions:r})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${n?"":" the default"} paginationPageSizeSelector=[${r?.join(", ")}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>["Duplicate ID",e,"found for pinned row with data",t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",100:({rowModelType:e})=>`selectAll only available when rowModelType='clientSide', ie not ${e}`,101:({propertyName:e,componentName:t,agGridDefaults:n,jsComps:r})=>{const i=[],o=[...Object.keys(n??[]).filter(s=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(s)),...Object.keys(r??[])],a=IK({inputValue:t,allSuggestions:o,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return i.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.
`),a.length>0&&i.push(`         Did you mean: [${a.slice(0,3)}]?
`),i.push("If using a custom component check it has been registered correctly."),i},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>["chart rendering failed",e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${tI}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e})=>["chart update failed",e],109:({aggFuncOrString:e})=>`unrecognised aggregation function ${e}`,110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:e})=>`Could not find component with name of ${e}. Is it in Vue.components?`,116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:e})=>`Unable to update chart. No active chart found with ID: ${e}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:e})=>`unable to create chart as ${e?"there are no columns in the grid":"no range is selected"}.`,128:({feature:e})=>`${e} is only available if using 'multiRow' selection mode.`,129:({feature:e,rowModel:t})=>`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:e})=>`icon '${e}' function should return back a string or a dom object`,134:({iconName:e})=>`Did not find icon '${e}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:e,currentChartType:t})=>`Unable to update chart as a '${e}' update type is not permitted on a ${t}.`,138:({chartType:e})=>`invalid chart type supplied: ${e}`,139:({customThemeName:e})=>`a custom chart theme with the name ${e} has been supplied but not added to the 'chartThemes' list`,140:({name:e})=>`no stock theme exists with the name '${e}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:e})=>`'${e}' is not a valid Chart Tool Panel name`,144:({type:e})=>`Invalid charts data panel group name supplied: '${e}'`,145:({group:e})=>`As of v32, only one charts customize panel group can be expanded at a time. '${e}' will not be expanded.`,146:({comp:e})=>`Unable to instantiate component '${e}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:e})=>`Invalid charts customize panel group name supplied: '${e}'`,148:({group:e})=>`invalid chartGroupsDef config '${e}'`,149:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:e})=>`invalid chartType '${e}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:e})=>`no 'seriesChartType' found for colId = '${e}', defaulting to 'line'.`,153:({chartDataType:e})=>`unexpected chartDataType value '${e}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:e})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${e}`,155:({option:e})=>`'${e}' is not a valid Chart Toolbar Option`,156:({panel:e})=>`Invalid panel in chartToolPanelsDef.panels: '${e}'`,157:({unrecognisedGroupIds:e})=>["unable to find group(s) for supplied groupIds:",e],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'",162:({id:e,dataType:t})=>`Unrecognized data type for excel export [${e}.dataType=${t}]`,163:({featureName:e})=>`Excel table export does not work with ${e}. The exported Excel file will not contain any Excel tables.
 Please turn off ${e} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:e})=>["unable to find groups for these supplied groupIds:",e],167:({unrecognisedColIds:e})=>["unable to find columns for these supplied colIds:",e],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>"valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:e})=>`column ${e} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:e,childNodeData:t})=>["duplicate group keys for row data, keys should be unique",[e,t]],185:({data:e})=>["getDataPath() should not return an empty path",[e]],186:({rowId:e,rowData:t,duplicateRowsData:n})=>["duplicate group keys for row data, keys should be unique",e,t,...n??[]],187:({rowId:e,firstData:t,secondData:n})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",t,"second instance",n],188:()=>"getRowId callback must be provided for Server Side Row Model selection to work correctly.",189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>["null and undefined values are not allowed for server side row model keys",e?`column = ${e}`:"","data is ",t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:HEe,201:({rowModelType:e})=>`Could not find row model for rowModelType = ${e}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:e})=>`Unable to display rows as duplicate row ids (${e}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${tI}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:e})=>`unable to lookup Tool Panel as invalid key supplied: ${e}`,215:({key:e,defaultByKey:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(t??{}).join(",")}`,216:({name:e})=>`Missing component for '${e}'`,217:({invalidColIds:e})=>["unable to find grid columns for the supplied colDef(s):",e],218:({property:e,defaultOffset:t})=>`${e} must be a number, the value you provided is not a valid number. Using the default of ${t}px.`,219:({property:e})=>`Property ${e} does not exist on the target object.`,220:({lineDash:e})=>`'${e}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:e})=>`unrecognised menu item ${e}`,229:({index:e})=>["invalid row index for ensureIndexVisible: ",e],230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:e})=>`Framework component is missing the method ${e}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:e})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${e}`,243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>`Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule. 
Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows. 
Your code probably called a grid API method while the grid was in the render stage. 
To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). 
To see what part of your code that caused the refresh check this stacktrace.`,253:({version:e})=>["Illegal version string: ",e],254:()=>"Cannot create chart: no chart themes available.",255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>VEe("IntegratedChartsModule"),258:()=>VEe("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:n,gridId:r,rowModelType:i})=>HEe({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:oI[t],gridId:r,gridScoped:n,rowModelType:i}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${tI}/integrated-charts-range-chart#coldefchartdatatype .`,266:()=>'As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.',267:()=>"Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",268:()=>"Transactions aren't supported with tree data when using treeDataChildrenField",269:()=>"When `masterSelects: 'detail'`, detail grids must be configured with multi-row selection",270:({id:e,parentId:t})=>`Cycle detected for row with id='${e}' and parent id='${t}'. Resetting the parent for row with id='${e}' and showing it as a root-level node.`,271:({id:e,parentId:t})=>`Parent row not found for row with id='${e}' and parent id='${t}'. Showing row with id='${e}' as a root-level node.`,272:()=>Ant(),273:({providedId:e,usedId:t})=>`Provided column id '${e}' was already in use, ensure all column and group ids are unique. Using '${t}' instead.`,274:({prop:e})=>{let t=`Since v33, ${e} has been deprecated.`;switch(e){case"maxComponentCreationTimeMs":t+=" This property is no longer required and so will be removed in a future version.";break;case"setGridApi":t+=" This method is not called by AG Grid. To access the GridApi see: https://ag-grid.com/react-data-grid/grid-interface/#grid-api ";break;case"children":t+=" For multiple versions AgGridReact does not support children.";break}return t},275:Ont,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled."};function t6t(e,t){const n=e6t[e];if(!n)return[`Missing error text for error id ${e}!`];const r=n(t),o=`
See ${set(e,t)}`;return Array.isArray(r)?r.concat(o):[r,o]}var n6t={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},_ye=class AA{static applyGlobalGridOptions(t){if(!AA.gridOptions)return{...t};let n={};return eu(n,AA.gridOptions,!0,!0),AA.mergeStrategy==="deep"?eu(n,t,!0,!0):n={...n,...t},AA.gridOptions.context&&(n.context=AA.gridOptions.context),t.context&&(AA.mergeStrategy==="deep"&&n.context&&eu(t.context,n.context,!0,!0),n.context=t.context),n}};_ye.gridOptions=void 0;_ye.mergeStrategy="shallow";var P$=_ye;function znt(e,t="shallow"){P$.gridOptions=e,P$.mergeStrategy=t}function r6t(e){return P$.gridOptions?.[e]}function i6t(e,t,n){if(!t)return pi(11),{};const r=n;let i;if(!r?.setThemeOnGridDiv){const a=Nr({tag:"div"});a.style.height="100%",e.appendChild(a),e=a,i=()=>e.remove()}return new Tnt().create(e,t,a=>{const s=new l5t(e);a.createBean(s)},void 0,n,i)}var o6t=1,Tnt=class{create(e,t,n,r,i,o){const a=P$.applyGlobalGridOptions(t),s=a.gridId??String(o6t++),l=this.getRegisteredModules(i,s,a.rowModelType),c=this.createBeansList(a.rowModelType,l,s),u=this.createProvidedBeans(e,a,i);if(!c)return;const d={providedBeanInstances:u,beanClasses:c,gridId:s,beanInitComparator:$_t,beanDestroyComparator:U_t,derivedBeans:[V_t],destroyCallback:o},p=new BLt(d);return this.registerModuleFeatures(p,l),n(p),p.getBean("syncSvc").start(),r&&r(p),p.getBean("gridApi")}getRegisteredModules(e,t,n){return uW($qt,void 0,!0),e?.modules?.forEach(r=>uW(r,t)),LLt(t,GEe(n))}registerModuleFeatures(e,t){const n=e.getBean("registry"),r=e.getBean("apiFunctionSvc");t.forEach(i=>{n.registerModule(i);const o=i.apiFunctions;o&&Object.keys(o).forEach(s=>{r?.addFunction(s,o[s])})})}createProvidedBeans(e,t,n){let r=n?n.frameworkOverrides:null;Yi(r)&&(r=new jtt);const i={gridOptions:t,eGridDiv:e,globalListener:n?n.globalListener:null,globalSyncListener:n?n.globalSyncListener:null,frameworkOverrides:r};return n&&n.providedBeanInstances&&Object.assign(i,n.providedBeanInstances),i}createBeansList(e,t,n){const r={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},i=GEe(e),o=r[i];if(!o){B5(201,{rowModelType:i},`Unknown rowModelType ${i}.`);return}if(!NLt()){B5(272,void 0,Ant());return}if(!e){const s=Object.entries(r).filter(([l,c])=>she(c,n,l));if(s.length==1){const[l,c]=s[0];if(l!==i){const u={moduleName:c,rowModelType:l};B5(275,u,Ont(u));return}}}if(!she(o,n,i)){B5(200,{reasonOrId:`rowModelType = '${i}'`,moduleName:o,gridScoped:lye(),gridId:n,rowModelType:i},`Missing module ${o}Module for rowModelType ${i}.`);return}const a=new Set;return t.forEach(s=>s.beans?.forEach(l=>a.add(l))),Array.from(a)}};function GEe(e){return e??"clientSide"}function Pm(e){const t=e.rowModel;return t.getType()==="clientSide"?t:void 0}function PK(e){const t=e.rowModel;return t.getType()==="infinite"?t:void 0}function hD(e){const t=e.rowModel;return t.getType()==="serverSide"?t:void 0}var a6t=class extends dt{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");if(t)return(r,i,o)=>t({key:r,defaultValue:i,variableValues:o});const n=e.get("localeText");return(r,i,o)=>{let a=n&&n[r];if(a&&o&&o.length){let s=0;for(;!(s>=o.length||a.indexOf("${variable}")===-1);)a=a.replace("${variable}",o[s++])}return a??i}}};function s6t(e,t=!1){const n=[],r=[],i=[],o=[],a=[],s=[],l=[],c=[],u=[];let d=0;for(let p=0;p<e.length;p++){const{colId:h,sort:g,sortIndex:m,rowGroup:v,rowGroupIndex:y,aggFunc:M,pivot:C,pivotIndex:x,pinned:w,hide:S,width:A,flex:z}=e[p];u.push(h),g&&(n[m??d++]={colId:h,sort:g}),v&&(r[y??0]=h),typeof M=="string"&&i.push({colId:h,aggFunc:M}),C&&(o[x??0]=h),w&&(w==="right"?s:a).push(h),S&&l.push(h),(z!=null||A)&&c.push({colId:h,flex:z??void 0,width:A})}return{sort:n.length?{sortModel:n}:void 0,rowGroup:r.length?{groupColIds:r}:void 0,aggregation:i.length?{aggregationModel:i}:void 0,pivot:o.length||t?{pivotMode:t,pivotColIds:o}:void 0,columnPinning:a.length||s.length?{leftColIds:a,rightColIds:s}:void 0,columnVisibility:l.length?{hiddenColIds:l}:void 0,columnSizing:c.length?{columnSizingModel:c}:void 0,columnOrder:u.length?{orderedColIds:u}:void 0}}function l6t(e){const t=[];return e.forEach(({groupId:n,open:r})=>{r&&t.push(n)}),t.length?{openColumnGroupIds:t}:void 0}var c6t=class{wrap(e,t,n,r){const i=this.createWrapper(e,r);return t?.forEach(o=>{this.createMethod(i,o,!0)}),n?.forEach(o=>{this.createMethod(i,o,!1)}),i}createMethod(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))}createMethodProxy(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&ut(49,{methodName:t}),null)}}},u6t={tag:"div",cls:"ag-tooltip"},d6t=class extends Cw{constructor(){super(u6t)}init(e){const{value:t}=e;this.getGui().textContent=Df(t)}};function Cz(e,t){if(typeof e!="number")return"";const n=t(),r=n("thousandSeparator",","),i=n("decimalSeparator",".");return e.toString().replace(".",i).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${r}`)}var Ent=class extends dt{getFileName(e){const t=this.getDefaultFileExtension();return(e==null||!e.length)&&(e=this.getDefaultFileName()),e.indexOf(".")===-1?`${e}.${t}`:e}getData(e){const t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},Rnt=class{constructor(e){const{colModel:t,rowGroupColsSvc:n,colNames:r,valueSvc:i,gos:o,processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c}=e;this.colModel=t,this.rowGroupColsSvc=n,this.colNames=r,this.valueSvc=i,this.gos=o,this.processCellCallback=a,this.processHeaderCallback=s,this.processGroupHeaderCallback=l,this.processRowGroupCallback=c}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e,t,n,r,i){if(this.processRowGroupCallback&&(this.gos.get("treeData")||i.group)&&(!i.rowGroupColumn||e.isRowGroupDisplayed(i.rowGroupColumn.getColId())))return{value:this.processRowGroupCallback(Vn(this.gos,{column:e,node:i}))??""};if(this.processCellCallback)return{value:this.processCellCallback(Vn(this.gos,{accumulatedRowIndex:n,column:e,node:i,value:this.valueSvc.getValueForDisplay(e,i).value,type:r,parseValue:p=>this.valueSvc.parseValue(e,i,p,this.valueSvc.getValue(e,i)),formatValue:p=>this.valueSvc.formatValue(e,i,p)??p}))??""};const o=this.gos.get("treeData"),a=this.valueSvc,s=i.level===-1&&i.footer,l=t===0&&J2e(this.gos,i,this.colModel.isPivotMode()),c=e.colDef.showRowGroup===!0&&(i.group||o);if(!s&&(l||c)){let p="",h=i;for(;h&&h.level!==-1;){const{value:g,valueFormatted:m}=a.getValueForDisplay(l?void 0:e,h,!0,!0);p=` -> ${m??g??""}${p}`,h=h.parent}return{value:p,valueFormatted:p}}const{value:u,valueFormatted:d}=a.getValueForDisplay(e,i,!0,!0);return{value:u??"",valueFormatted:d}}getHeaderName(e,t){return e?e(Vn(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}};function Nye(e,t){const n=document.defaultView||window;if(!n){ut(52);return}const r=document.createElement("a"),i=n.URL.createObjectURL(t);r.setAttribute("href",i),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(r),n.setTimeout(()=>{n.URL.revokeObjectURL(i)},0)}var p6t={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0},D1="clientSide",q0="serverSide",pE="infinite",h6t={onGroupExpandedOrCollapsed:[D1],refreshClientSideRowModel:[D1],isRowDataEmpty:[D1],forEachLeafNode:[D1],forEachNodeAfterFilter:[D1],forEachNodeAfterFilterAndSort:[D1],resetRowHeights:[D1],applyTransaction:[D1],applyTransactionAsync:[D1],flushAsyncTransactions:[D1],getBestCostNodeSelection:[D1],getServerSideSelectionState:[q0],setServerSideSelectionState:[q0],applyServerSideTransaction:[q0],applyServerSideTransactionAsync:[q0],applyServerSideRowData:[q0],retryServerSideLoads:[q0],flushServerSideAsyncTransactions:[q0],refreshServerSide:[q0],getServerSideGroupLevelState:[q0],refreshInfiniteCache:[pE],purgeInfiniteCache:[pE],getInfiniteRowCount:[pE],isLastRowIndexKnown:[pE,q0],expandAll:[D1,q0],collapseAll:[D1,q0],onRowHeightChanged:[D1,q0],setRowCount:[pE,q0],getCacheBlockState:[pE,q0]},f6t={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};function g6t(e,t,n){const r=f6t[e];if(r){const{version:o,new:a,old:s,message:l}=r,c=s??e;return(...u)=>{const d=a?`Please use ${a} instead. `:"";return ab(`Since ${o} api.${c} is deprecated. ${d}${l??""}`),t.apply(t,u)}}const i=h6t[e];return i?(...o)=>{const a=n.rowModel.getType();if(!i.includes(a)){eI(`api.${e} can only be called when gridOptions.rowModelType is ${i.join(" or ")}`);return}return t.apply(t,o)}:t}var m6t={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1},v6t={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow"},b6t=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),y6t=class extends dt{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,okt(this)}warnOnInitialPropertyUpdate(e,t){e==="api"&&p6t[t]&&ut(22,{key:t})}processGridOptions(e){this.processOptions(e,HWt())}validateApiFunction(e,t){return g6t(e,t,this.beans)}missingUserComponent(e,t,n,r){const i=oI[t];i?this.gos.assertModuleRegistered(i,`AG Grid '${e}' component: ${t}`):ut(101,{propertyName:e,componentName:t,agGridDefaults:n,jsComps:r})}checkRowEvents(e){C6t.has(e)&&ut(10,{eventType:e})}validateIcon(e){if(b6t.has(e)&&ut(43,{iconName:e}),m6t[e])return;const t=v6t[e];if(t){pi(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:lye(),gridId:this.beans.context.getGridId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}ut(134,{iconName:e})}isProvidedUserComp(e){return!!oI[e]}validateColDef(e){this.processOptions(e,EWt())}processOptions(e,t){const{validations:n,deprecations:r,allProperties:i,propertyExceptions:o,objectName:a,docsUrl:s}=t;i&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...o??[],...Object.keys(r)],i,a,s);const l=new Set;Object.keys(e).forEach(u=>{const d=r[u];if(d){const{message:M,version:C}=d;l.add(`As of v${C}, ${String(u)} is deprecated. ${M??""}`)}const p=e[u];if(p==null||p===!1)return;const h=n[u];if(!h)return;const{dependencies:g,validate:m,supportedRowModels:v,expectedType:y}=h;if(y){const M=typeof p;if(M!==y){l.add(`${String(u)} should be of type '${y}' but received '${M}' (${p}).`);return}}if(v){const M=this.gridOptions.rowModelType??"clientSide";if(!v.includes(M)){l.add(`${String(u)} is not supported with the '${M}' row model. It is only valid with: ${v.join(", ")}.`);return}}if(g){const M=this.checkForRequiredDependencies(u,g,e);if(M){l.add(M);return}}if(m){const M=m(e,this.gridOptions,this.beans);if(M){l.add(M);return}}}),l.size>0&&l.forEach(u=>{ab(u)})}checkForRequiredDependencies(e,t,n){const i=Object.entries(t).filter(([o,a])=>{const s=n[o];return!a.required.includes(s)});return i.length===0?null:i.map(([o,a])=>`'${String(e)}' requires '${o}' to be one of [${a.required.map(s=>s===null?"null":s===void 0?"undefined":s).join(", ")}]. ${a.reason??""}`).join(`
           `)}checkProperties(e,t,n,r,i){const o=["__ob__","__v_skip","__metadata__"],a=M6t(Object.getOwnPropertyNames(e),[...o,...t,...n],n),s=Object.keys(a);for(const l of s){const c=a[l];let u=`invalid ${r} property '${l}' did you mean any of these: ${c.slice(0,8).join(", ")}.`;n.includes("context")&&(u+=`
If you are trying to annotate ${r} with application data, use the '${r}.context' property instead.`),ab(u)}if(s.length>0&&i){const l=this.beans.frameworkOverrides.getDocLink(i);ab(`to see all the valid ${r} properties please check: ${l}`)}}getConsoleMessage(e,t){return t6t(e,t)}};function M6t(e,t,n){const r={},i=e.filter(o=>!t.some(a=>a===o));return i.length>0&&i.forEach(o=>r[o]=IK({inputValue:o,allSuggestions:n}).values),r}var C6t=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),x6t={moduleName:"Validation",version:Jn,beans:[y6t]};function Int(e){e.sibling&&(e.sibling.childrenAfterFilter=e.childrenAfterFilter)}var w6t=class extends dt{constructor(){super(...arguments),this.beanName="filterStage",this.refreshProps=new Set(["excludeChildrenWhenTreeDataFiltering"]),this.step="filter"}wireBeans(e){this.filterManager=e.filterManager}execute(e){const{changedPath:t}=e;this.filter(t)}filter(e){const t=!!this.filterManager?.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){const n=(r,i)=>{r.hasChildren()&&e&&!i?r.childrenAfterFilter=r.childrenAfterGroup.filter(o=>{const a=o.childrenAfterFilter&&o.childrenAfterFilter.length>0,s=o.data&&this.filterManager.doesRowPassFilter({rowNode:o});return a||s}):r.childrenAfterFilter=r.childrenAfterGroup,Int(r)};if(this.doingTreeDataFiltering()){const r=(o,a)=>{if(o.childrenAfterGroup)for(let s=0;s<o.childrenAfterGroup.length;s++){const l=o.childrenAfterGroup[s],c=a||this.filterManager.doesRowPassFilter({rowNode:l});l.childrenAfterGroup?r(o.childrenAfterGroup[s],c):n(l,c)}n(o,a)},i=o=>r(o,!1);t.executeFromRootNode(i)}else{const r=i=>n(i,!1);t.forEachChangedNodeDepthFirst(r,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}},S6t=class extends Oye{constructor(){super(...arguments),this.iconCreated=!1}setComp(e,t,n,r,i){this.comp=e;const o=h6(this,this.beans.context,i);this.eButtonShowMainFilter=n,this.eFloatingFilterBody=r,this.setGui(t,o),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(o),this.setupLeft(o),this.setupHover(o),this.setupFocus(o),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(o),this.setupUi(),o.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(o),o.addManagedListeners(this.column,{colDefChanged:()=>this.onColDefChanged(o)}),o.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,n=e.colDef;return Vn(t.gos,{colDef:n,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,n=!!e.floatingFilter;this.active=t&&n}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=er("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new Mw(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.getLocaleTextFunc();Es(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(Gi(t)===this.eGui)return;const i=Md(t,this.eGui,null,e.shiftKey);if(i){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),i.focus();return}const o=this.findNextColumnWithFloatingFilter(e.shiftKey);o&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:o},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let n=this.column;do if(n=e?t.getColBefore(n):t.getColAfter(n),!n)break;while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case Qe.UP:case Qe.DOWN:case Qe.LEFT:case Qe.RIGHT:if(t)return;Cl(e);case Qe.ENTER:t&&zu(this.eGui)&&e.preventDefault();break;case Qe.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const n=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&DO(e.relatedTarget,"ag-floating-filter");if(n&&r&&e.target===this.eGui){const i=this.lastFocusEvent,o=!!(i&&i.key===Qe.TAB);if(i&&o){const a=i.shiftKey;zu(this.eGui,a)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new Aye(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!Gu(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.filterManager?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{filterManager:t}=this.beans,n=r=>{if(r?.source==="filterDestroyed"&&!this.isAlive())return;const i=this.comp.getFloatingFilterComp();i&&i.then(o=>{if(o){const a=t?.getCurrentFloatingFilterParentModel(this.column),s=r?{...r,columns:r.columns??[],source:r.source==="api"?"api":"columnFilter"}:null;o.onParentModelChanged(a,s)}})};[this.destroySyncListener]=e.addManagedListeners(this.column,{filterChanged:n}),t?.isFilterActive(this.column)&&n(null)}setupWidth(e){const t=()=>{const n=`${this.column.getActualWidth()}px`;this.comp.setWidth(n)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const n=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const r=this.active?this.beans.filterManager?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,i=this.comp.getFloatingFilterComp();!i||!r?this.updateCompDetails(e,r,n):i.then(o=>{!o||this.beans.filterManager?.areFilterCompsDifferent(this.userCompDetails??null,r)?this.updateCompDetails(e,r,n):this.updateFloatingFilterParams(r)})}updateCompDetails(e,t,n){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),n&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e){if(!e)return;const t=e.params;this.comp.getFloatingFilterComp()?.then(n=>{n?.refresh&&typeof n.refresh=="function"&&n.refresh(t)})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function A6t(e,t){const n=e.colModel.getCol(t);if(!n){pi(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:n,positionBy:"auto"})}function O6t(e){e.menuSvc?.hidePopupMenu()}var Pnt={moduleName:"SharedMenu",version:Jn,beans:[i_t],apiFunctions:{showColumnMenu:A6t,hidePopupMenu:O6t}},z6t=0,T6t=200,E6t=class extends dt{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridCtrl=e.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){const e=this.gos.get("popupParent");return e||this.gridCtrl.getGui()}positionPopupForMenu(e){const{eventSource:t,ePopup:n,column:r,node:i,event:o}=e,a=t.getBoundingClientRect(),s=this.getParentRect();this.setAlignedTo(t,n);let l=!1;const c=()=>{const u=this.keepXYWithinBounds(n,a.top-s.top,0),d=n.clientWidth>0?n.clientWidth:200;l||(n.style.minWidth=`${d}px`,l=!0);const h=s.right-s.left-d;let g;return this.gos.get("enableRtl")?(g=v(),g<0&&(g=m(),this.setAlignedStyles(n,"left")),g>h&&(g=0,this.setAlignedStyles(n,"right"))):(g=m(),g>h&&(g=v(),this.setAlignedStyles(n,"right")),g<0&&(g=0,this.setAlignedStyles(n,"left"))),{x:g,y:u};function m(){return a.right-s.left-2}function v(){return a.left-s.left-d}};this.positionPopup({ePopup:n,keepWithinBounds:!0,updatePosition:c,postProcessCallback:()=>this.callPostProcessPopup("subMenu",n,t,o instanceof MouseEvent?o:void 0,r,i)})}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:n,nudgeY:r,skipObserver:i}=e;this.positionPopup({ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:!0,skipObserver:i,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:i,eventSource:o,alignSide:a="left",position:s="over",column:l,rowNode:c,type:u}=e,d=o.getBoundingClientRect(),p=this.getParentRect();this.setAlignedTo(o,t);const h=()=>{let g=d.left-p.left;a==="right"&&(g-=t.offsetWidth-d.width);let m;return s==="over"?(m=d.top-p.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,d,p,e.nudgeY||0)==="under"?m=d.top-p.top+d.height:m=d.top-t.offsetHeight-(r||0)*2-p.top),{x:g,y:m}};this.positionPopup({ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:i,updatePosition:h,postProcessCallback:()=>this.callPostProcessPopup(u,t,o,null,l,c)})}shouldRenderUnderOrAbove(e,t,n,r){const i=n.bottom-t.bottom,o=t.top-n.top,a=e.offsetHeight+r;return i>a?"under":o>a||o>i?"above":"under"}setAlignedStyles(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const r=this.popupList[n],{alignedToElement:i}=r;!i||(["right","left","over","above","under"].forEach(a=>{i.classList.remove(`ag-has-popup-positioned-${a}`),e.classList.remove(`ag-popup-positioned-${a}`)}),!t)||(i.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const n=this.getPopupIndex(t);if(n!==-1){const r=this.popupList[n];r.alignedToElement=e}}callPostProcessPopup(e,t,n,r,i,o){const a=this.gos.getCallback("postProcessPopup");a&&a({column:i,rowNode:o,ePopup:t,type:e,eventSource:n,mouseEvent:r})}positionPopup(e){const{ePopup:t,keepWithinBounds:n,nudgeX:r,nudgeY:i,skipObserver:o,updatePosition:a}=e,s={width:0,height:0},l=(c=!1)=>{let{x:u,y:d}=a();c&&t.clientWidth===s.width&&t.clientHeight===s.height||(s.width=t.clientWidth,s.height=t.clientHeight,r&&(u+=r),i&&(d+=i),n&&(u=this.keepXYWithinBounds(t,u,1),d=this.keepXYWithinBounds(t,d,0)),t.style.left=`${u}px`,t.style.top=`${d}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!o){const c=Hf(this.beans,t,()=>l(!0));setTimeout(()=>c(),T6t)}}getActivePopups(){return this.popupList.map(e=>e.element)}getParentRect(){const e=bl(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),QJe(t)}keepXYWithinBounds(e,t,n){const r=n===0,i=r?"clientHeight":"clientWidth",o=r?"top":"left",a=r?"height":"width",s=r?"scrollTop":"scrollLeft",l=bl(this.beans),c=l.documentElement,u=this.getPopupParent(),d=e.getBoundingClientRect(),p=u.getBoundingClientRect(),h=l.documentElement.getBoundingClientRect(),g=u===l.body,m=Math.ceil(d[a]);let y=g?(r?fK:fz)(c)+c[s]:u[i];g&&(y-=Math.abs(h[o]-p[o]));const M=y-m;return Math.min(Math.max(t,0),Math.abs(M))}addPopup(e){const t=bl(this.beans),{eChild:n,ariaLabel:r,alwaysOnTop:i,positionCallback:o,anchorToElement:a}=e;if(!t)return ut(122),{hideFunc:()=>{}};const s=this.getPopupIndex(n);if(s!==-1)return{hideFunc:this.popupList[s].hideFunc};this.initialisePopupPosition(n);const l=this.createPopupWrapper(n,r,!!i),c=this.addEventListenersToPopup({...e,wrapperEl:l});return o&&o(),this.addPopupToPopupList(n,l,c,a),{hideFunc:c}}initialisePopupPosition(e){const n=this.getPopupParent().getBoundingClientRect();Ut(e.style.top)||(e.style.top=`${n.top*-1}px`),Ut(e.style.left)||(e.style.left=`${n.left*-1}px`)}createPopupWrapper(e,t,n){const r=this.getPopupParent(),{environment:i,gos:o}=this.beans,a=Nr({tag:"div"});return i.applyThemeClasses(a),a.classList.add("ag-popup"),e.classList.add(o.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||C0(e,"dialog"),Es(e,t),a.appendChild(e),r.appendChild(a),n?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),a}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const n of this.popupList)t.applyThemeClasses(n.wrapper)}}addEventListenersToPopup(e){const t=this.beans,n=bl(t),r=this.getPopupParent(),{wrapperEl:i,eChild:o,closedCallback:a,afterGuiAttached:s,closeOnEsc:l,modal:c}=e;let u=!1;const d=m=>{if(!i.contains(Gi(t)))return;m.key===Qe.ESCAPE&&!rh(m)&&g({keyboardEvent:m})},p=m=>g({mouseEvent:m}),h=m=>g({touchEvent:m}),g=(m={})=>{const{mouseEvent:v,touchEvent:y,keyboardEvent:M,forceHide:C}=m;!C&&(this.isEventFromCurrentPopup({mouseEvent:v,touchEvent:y},o)||u)||(u=!0,r.removeChild(i),n.removeEventListener("keydown",d),n.removeEventListener("mousedown",p),n.removeEventListener("touchstart",h),n.removeEventListener("contextmenu",p),this.eventSvc.removeEventListener("dragStarted",p),a&&a(v||y||M),this.removePopupFromPopupList(o))};return s&&s({hidePopup:g}),window.setTimeout(()=>{l&&n.addEventListener("keydown",d),c&&(n.addEventListener("mousedown",p),this.eventSvc.addEventListener("dragStarted",p),n.addEventListener("touchstart",h),n.addEventListener("contextmenu",p))},0),g}addPopupToPopupList(e,t,n,r){this.popupList.push({element:e,wrapper:t,hideFunc:n,instanceId:z6t++,isAnchored:!!r}),r&&this.setPopupPositionRelatedToElement(e,r)}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const r=this.popupList[n];if(r.stopAnchoringPromise&&r.stopAnchoringPromise.then(o=>o&&o()),r.stopAnchoringPromise=void 0,r.isAnchored=!1,!t)return;const i=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:r.hideFunc});return r.stopAnchoringPromise=i,r.isAnchored=!0,i}removePopupFromPopupList(e){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),this.popupList=this.popupList.filter(t=>t.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),n=t.getBoundingClientRect(),{element:r,ePopup:i}=e,o=r.getBoundingClientRect(),a=d=>parseInt(d.substring(0,d.length-1),10),s=(d,p)=>{const h=n[d]-o[d],g=a(i.style[d]);return{initialDiff:h,lastDiff:h,initial:g,last:g,direction:p}},l=s("top",0),c=s("left",1),u=this.beans.frameworkOverrides;return new Dr(d=>{u.wrapIncoming(()=>{u.setInterval(()=>{const p=t.getBoundingClientRect(),h=r.getBoundingClientRect();if(h.top==0&&h.left==0&&h.height==0&&h.width==0){e.hidePopup();return}const m=(v,y)=>{const M=a(i.style[y]);v.last!==M&&(v.initial=M,v.last=M);const C=p[y]-h[y];if(C!=v.lastDiff){const x=this.keepXYWithinBounds(i,v.initial+v.initialDiff-C,v.direction);i.style[y]=`${x}px`,v.last=x}v.lastDiff=C};m(l,"top"),m(c,"left")},200).then(p=>{d(()=>{p!=null&&window.clearInterval(p)})})},"popupPositioning")})}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isEventFromCurrentPopup(e,t){const{mouseEvent:n,touchEvent:r}=e,i=n||r;if(!i)return!1;const o=this.getPopupIndex(t);if(o===-1)return!1;for(let a=o;a<this.popupList.length;a++){const s=this.popupList[a];if(ohe(s.element,i))return!0}return this.isElementWithinCustomPopup(i.target)}isElementWithinCustomPopup(e){const t=bl(this.beans);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||e.parentElement===null)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))}bringPopupToFront(e){const t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=n.length,i=this.getWrapper(e);if(!i||r<=1||!t.contains(e))return;const o=[],a=[];for(const p of n)p!==i&&(p.classList.contains("ag-always-on-top")?a.push(p):o.push(p));const s=[],l=a.length,d=i.classList.contains("ag-always-on-top")||!l?[...o,...a,i]:[...o,i,...a];for(let p=0;p<=r;p++){const h=d[p];if(n[p]===d[p]||h===i)continue;h.querySelectorAll("div").forEach(m=>{m.scrollTop!==0&&s.push([m,m.scrollTop])}),p===0?t.insertAdjacentElement("afterbegin",h):d[p-1].insertAdjacentElement("afterend",h)}for(;s.length;){const p=s.pop();p[0].scrollTop=p[1]}}},dM={moduleName:"Popup",version:Jn,beans:[E6t]},R6t=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:1px solid var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function I6t(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function P6t(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function D6t(e,t){const n=e.colModel.getColDefCol(t);if(n)return e.filterManager?.destroyFilter(n,"api")}function k6t(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function L6t(e){return e.filterManager?.getFilterModel()??{}}function _6t(e,t){return e.filterManager?.getColumnFilterModel(t)??null}function N6t(e,t,n){return e.filterManager?.setColumnFilterModel(t,n)??Promise.resolve()}function F6t(e,t){const n=e.colModel.getCol(t);if(!n){pi(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:n,containerType:"columnFilter",positionBy:"auto"})}var $Ee={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},UEe=["january","february","march","april","may","june","july","august","september","october","november","december"];function W6t(e,t){return e==null?-1:t==null?1:parseFloat(e)-parseFloat(t)}var q6t=class extends dt{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[]}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),beforeRefreshModel:({params:e})=>{(e.rowDataUpdated||e.changedProps?.has("treeData"))&&this.onNewRowsLoaded("rowDataUpdated")},dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.initialFilterModel={...this.gos.get("initialState")?.filter?.filterModel??{}}}setFilterModel(e,t="api"){const{colModel:n,dataTypeSvc:r,filterManager:i}=this.beans;if(r?.isPendingInference){this.filterModelUpdateQueue.push({model:e,source:t});return}const o=[],a=this.getFilterModel(!0);if(e){const s=new Set(Object.keys(e));this.allColumnFilters.forEach((l,c)=>{const u=e[c];o.push(UH(l.filterPromise,u)),s.delete(c)}),s.forEach(l=>{const c=n.getColDefCol(l)||n.getCol(l);if(!c){ut(62,{colId:l});return}if(!c.isFilterAllowed()){ut(63,{colId:l});return}const u=this.getOrCreateFilterWrapper(c);if(!u){ut(64,{colId:l});return}o.push(UH(u.filterPromise,e[l]))})}else this.allColumnFilters.forEach(s=>{o.push(UH(s.filterPromise,null))});Dr.all(o).then(()=>{const s=this.getFilterModel(!0),l=[];this.allColumnFilters.forEach((c,u)=>{const d=a?a[u]:null,p=s?s[u]:null;gz(d,p)||l.push(c.column)}),l.length>0&&i?.onFilterChanged({columns:l,source:t})})}getFilterModel(e){const t={},{allColumnFilters:n,initialFilterModel:r,beans:{colModel:i}}=this;if(n.forEach((o,a)=>{const s=this.getModelFromFilterWrapper(o);Ut(s)&&(t[a]=s)}),!e)for(const o of Object.keys(r)){const a=r[o];Ut(a)&&!n.has(o)&&i.getCol(o)?.isFilterAllowed()&&(t[o]=a)}return t}getModelFromFilterWrapper(e){const{filter:t}=e;return t?typeof t.getModel!="function"?(ut(66),null):t.getModel():this.getModelFromInitialState(e.column)}getModelFromInitialState(e){return this.initialFilterModel[e.getColId()]??null}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}disableColumnFilters(){this.initialFilterModel={};const{allColumnFilters:e}=this;return e.size?(e.forEach(t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")),!0):!1}doAggregateFiltersPass(e,t){return this.doColumnFiltersPass(e,t,!0)}updateActiveFilters(){const e=s=>s?s.isFilterActive?s.isFilterActive():(ut(67),!1):!1,{colModel:t,gos:n}=this.beans,r=!!lW(n),i=s=>{if(!s.isPrimary())return!0;const c=!t.isPivotActive();return!s.isValueActive()||!c?!1:t.isPivotMode()?!0:r},o=[],a=[];return this.forEachColumnFilter((s,l)=>{e(s)&&(i(l.column)?o.push(s):a.push(s))}).then(()=>{this.activeAggregateFilters=o,this.activeColumnFilters=a})}updateFilterFlagInColumns(e,t){return this.forEachColumnFilter((n,r)=>this.setColFilterActive(r.column,n.isFilterActive(),e,t))}forEachColumnFilter(e){const t=[];return this.allColumnFilters.forEach(n=>{const r=n.filterPromise;r&&t.push(r.then(i=>e(i,n)))}),Dr.all(t)}doColumnFiltersPass(e,t,n){const{data:r,aggData:i}=e,o=n?this.activeAggregateFilters:this.activeColumnFilters,a=n?i:r;for(let s=0;s<o.length;s++){const l=o[s];if(!(l==null||l===t)){if(typeof l.doesFilterPass!="function"){pi(91);continue}if(!l.doesFilterPass({node:e,data:a}))return!1}}return!0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:n}=this.beans,r=()=>{this.isAlive()&&n?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(r,0):r()}updateBeforeFilterChanged(e={}){const{filterInstance:t,additionalEventAttributes:n}=e;return this.updateDependentFilters(),this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",n).then(()=>{this.allColumnFilters.forEach(r=>{r.filterPromise&&r.filterPromise.then(i=>{i&&i!==t&&i.onAnyFilterChanged&&i.onAnyFilterChanged()})}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){this.forEachColumnFilter(t=>{t.onNewRowsLoaded?.()}).then(()=>this.updateFilterFlagInColumns(e,{afterDataChange:!0})).then(()=>this.updateActiveFilters())}createGetValue(e){const{filterValueSvc:t,colModel:n}=this.beans;return(r,i)=>{const o=i?n.getCol(i):e;return o?t.getValue(o,r):void 0}}isFilterActive(e){const{filter:t}=this.cachedFilter(e)??{};return t?t.isFilterActive():this.getModelFromInitialState(e)!=null}getOrCreateFilterWrapper(e){if(!e.isFilterAllowed())return null;let t=this.cachedFilter(e);return t||(t=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,t)),t}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e){let t;const{gos:n,dataTypeSvc:r}=this.beans;if($ne(n))t="agSetColumnFilter";else{const i=r?.getBaseDataType(e);i==="number"?t="agNumberColumnFilter":i==="date"||i==="dateString"?t="agDateColumnFilter":t="agTextColumnFilter"}return t}getDefaultFloatingFilter(e){let t;const{gos:n,dataTypeSvc:r}=this.beans;if($ne(n))t="agSetColumnFloatingFilter";else{const i=r?.getBaseDataType(e);i==="number"?t="agNumberColumnFloatingFilter":i==="date"||i==="dateString"?t="agDateColumnFloatingFilter":t="agTextColumnFloatingFilter"}return t}createFilterInstance(e,t){const n=this.getDefaultFilter(e),r=e.getColDef();let i;const o={...this.createFilterParams(e,r),filterModifiedCallback:()=>this.filterModifiedCallbackFactory(i,e)(),filterChangedCallback:s=>this.filterChangedCallbackFactory(i,e)(s),doesRowPassOtherFilter:s=>this.beans.filterManager?.doesRowPassOtherFilters(i,s)??!0},a=Uet(this.beans.userCompFactory,r,o,n);return a?{filterPromise:()=>{const s=a.newAgStackInstance();return s.then(l=>{i=l,t&&(t.filter=l??void 0)}),s},compDetails:a}:{filterPromise:null,compDetails:null}}createFilterParams(e,t){return Vn(this.gos,{column:e,colDef:t,rowModel:this.beans.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},getValue:this.createGetValue(e),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(e){const t={column:e,filterPromise:null,compDetails:null},{filterPromise:n,compDetails:r}=this.createFilterInstance(e,t);return t.filterPromise=n?.()??null,t.compDetails=r,t}onColumnsChanged(){const e=[],{colModel:t,filterManager:n}=this.beans;this.allColumnFilters.forEach((i,o)=>{let a;i.column.isPrimary()?a=t.getColDefCol(o):a=t.getCol(o),!(a&&a===i.column)&&(e.push(i.column),this.disposeFilterWrapper(i,"columnChanged"),this.disposeColumnListener(o))});const r=e.every(XEe);e.length>0&&!r?n?.onFilterChanged({columns:e,source:"api"}):this.updateDependentFilters()}updateDependentFilters(){this.beans.autoColSvc?.getColumns()?.forEach(e=>{XEe(e)&&this.getOrCreateFilterWrapper(e)})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const{filter:n}=this.allColumnFilters.get(e.getColId())??{};return n&&typeof n?.isFilterAllowed=="function"?n.isFilterAllowed():!0}getFloatingFilterCompDetails(e,t){const n=u=>{const d=this.getOrCreateFilterWrapper(e)?.filterPromise;d?.then(p=>{u(yz(p))})},r=e.getColDef(),i={...this.createFilterParams(e,r),filterChangedCallback:()=>n(u=>this.filterChangedCallbackFactory(u,e)())},{userCompFactory:o,frameworkOverrides:a}=this.beans,s=RLt(o,r,i);let l=vtt(a,r,()=>this.getDefaultFloatingFilter(e));l==null&&(l="agReadOnlyFloatingFilter");const c=Vn(this.gos,{column:e,filterParams:s,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:n,showParentFilter:t});return Xet(o,r,c,l)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilter(e,t="api"){const n=e.getColId(),r=this.allColumnFilters.get(n);this.disposeColumnListener(n),delete this.initialFilterModel[n],r&&this.disposeFilterWrapper(r,t).then(i=>{i&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){return e.filterPromise?.then(n=>{const r=!!n?.isFilterActive();return this.destroyBean(n),this.setColFilterActive(e.column,!1,"filterDestroyed"),this.allColumnFilters.delete(e.column.getColId()),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:e.column}),r})??Dr.resolve(!1)}filterModifiedCallbackFactory(e,t){return()=>{this.eventSvc.dispatchEvent({type:"filterModified",column:t,filterInstance:e})}}filterChangedCallbackFactory(e,t){return n=>{const r=n?.source??"columnFilter",i={filter:e,additionalEventAttributes:n,columns:[t],source:r};this.callOnFilterChangedOutsideRenderCycle(i)}}checkDestroyFilter(e){const t=this.allColumnFilters.get(e);if(!t)return;const n=t.column,{compDetails:r}=n.isFilterAllowed()?this.createFilterInstance(n):{compDetails:null};if(this.areFilterCompsDifferent(t.compDetails,r)){this.destroyFilter(n,"paramsUpdated");return}const i=n.getColDef().filterParams;if(!t.filterPromise){this.destroyFilter(n,"paramsUpdated");return}t.filterPromise.then(o=>{(o?.refresh?o.refresh({...this.createFilterParams(n,n.getColDef()),filterModifiedCallback:this.filterModifiedCallbackFactory(o,n),filterChangedCallback:this.filterChangedCallbackFactory(o,n),doesRowPassOtherFilter:s=>this.beans.filterManager?.doesRowPassOtherFilters(o,s)??!0,...i}):!0)===!1&&this.destroyFilter(n,"paramsUpdated")})}setColumnFilterWrapper(e,t){const n=e.getColId();this.allColumnFilters.set(n,t),this.allColumnListeners.set(n,this.addManagedListeners(e,{colDefChanged:()=>this.checkDestroyFilter(n)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:n}=e,{componentClass:r}=t;return!(n===r||n?.render&&r?.render&&n.render===r.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(t=>t.getColDef().floatingFilter)}getColumnFilterInstance(e){return new Promise(t=>{this.getFilterInstanceImpl(e).then(n=>{t(yz(n))})})}getFilterInstanceImpl(e){const t=this.beans.colModel.getColDefCol(e);return t?this.getOrCreateFilterWrapper(t)?.filterPromise??Dr.resolve(null):Dr.resolve(void 0)}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach(({model:e,source:t})=>this.setFilterModel(e,t)),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(({key:e,model:t,resolve:n})=>{this.setColumnFilterModel(e,t).then(()=>n())}),this.columnFilterModelUpdateQueue=[]}getColumnFilterModel(e){const t=this.getFilterWrapper(e);return t?this.getModelFromFilterWrapper(t):null}setColumnFilterModel(e,t){const{colModel:n,dataTypeSvc:r}=this.beans;if(r?.isPendingInference){let s=()=>{};const l=new Promise(c=>{s=c});return this.columnFilterModelUpdateQueue.push({key:e,model:t,resolve:s}),l}const i=n.getColDefCol(e),o=i?this.getOrCreateFilterWrapper(i):null;return o?(s=>new Promise(l=>{s.then(c=>l(c))}))(UH(o.filterPromise,t)):Promise.resolve()}getFilterWrapper(e){const t=this.beans.colModel.getColDefCol(e);return t?this.cachedFilter(t)??null:null}setColDefPropertiesForDataType(e,t,n){const r=$ne(this.gos),i=this.getLocaleTextFunc(),o=a=>{const{filterParams:s}=e;e.filterParams=typeof s=="object"?{...s,...a}:a};switch(t.baseDataType){case"number":{r&&o({comparator:W6t});break}case"boolean":{o(r?{valueFormatter:a=>Ut(a.value)?i(String(a.value),a.value?"True":"False"):i("blanks","(Blanks)")}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(a,s)=>s,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(a,s)=>s===!1,numberOfInputs:0}]});break}case"date":{o(r?{valueFormatter:a=>{const s=n(a);return Ut(s)?s:i("blanks","(Blanks)")},treeList:!0,treeListFormatter:(a,s)=>{if(a==="NaN")return i("invalidDate","Invalid Date");if(s===1&&a!=null){const l=UEe[Number(a)-1];return i(l,$Ee[l])}return a??i("blanks","(Blanks)")}}:{isValidDate:YEe});break}case"dateString":{const a=t.dateParser;o(r?{valueFormatter:s=>{const l=n(s);return Ut(l)?l:i("blanks","(Blanks)")},treeList:!0,treeListPathGetter:s=>{const l=a(s??void 0);return l?[String(l.getFullYear()),String(l.getMonth()+1),String(l.getDate())]:null},treeListFormatter:(s,l)=>{if(l===1&&s!=null){const c=UEe[Number(s)-1];return i(c,$Ee[c])}return s??i("blanks","(Blanks)")}}:{comparator:(s,l)=>{const c=a(l);return l==null||c<s?-1:c>s?1:0},isValidDate:s=>typeof s=="string"&&YEe(a(s))});break}case"object":{r?o({valueFormatter:a=>{const s=n(a);return Ut(s)?s:i("blanks","(Blanks)")}}):e.filterValueGetter=a=>n({column:a.column,node:a.node,value:this.beans.valueSvc.getValue(a.column,a.node)});break}}}setColFilterActive(e,t,n,r){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",n)),e.dispatchColEvent("filterChanged",n,r)}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear()}};function UH(e,t){return e?new Dr(n=>{e.then(r=>{typeof r.setModel!="function"&&(ut(65),n()),(r.setModel(t)||Dr.resolve()).then(()=>n())})}):Dr.resolve()}function XEe(e){return e.getColDef().filter==="agGroupColumnFilter"}function YEe(e){return e instanceof Date&&!isNaN(e.getTime())}function B6t(e){return!!e.filterManager?.isAnyFilterPresent()}function j6t(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var H6t=class extends dt{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:r})=>this.onAdvFilterEnabledChanged(r),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:n}=this;this.alwaysPassFilter=n.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=n.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"&&t(e)}setFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){this.warnAdvFilters();return}this.colFilter?.setFilterModel(e,t)}getFilterModel(){return this.colFilter?.getFilterModel()??{}}isColumnFilterPresent(){return!!this.colFilter?.isColumnFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggregateFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableColumnFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){lW(this.gos)&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:n,columns:r=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):Dr.resolve()).then(()=>{const i={source:t,type:"filterChanged",columns:r};n&&eu(i,n),this.eventSvc.dispatchEvent(i),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!lW(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doAggregateFiltersPass(t,e.filterInstanceToSkip))}doesRowPassFilter(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.externalFilterPresent&&!this.doesExternalFilterPass(t)||this.isColumnFilterPresent()&&!this.colFilter.doColumnFiltersPass(t,e.filterInstanceToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))}isFilterActive(e){return!!this.colFilter?.isFilterActive(e)}getOrCreateFilterWrapper(e){return this.colFilter?.getOrCreateFilterWrapper(e)??null}getDefaultFloatingFilter(e){return this.colFilter.getDefaultFloatingFilter(e)}createFilterParams(e,t){return this.colFilter.createFilterParams(e,t)}isFilterAllowed(e){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.isFilterAllowed(e)}getFloatingFilterCompDetails(e,t){return this.colFilter?.getFloatingFilterCompDetails(e,t)}getCurrentFloatingFilterParentModel(e){return this.colFilter?.getCurrentFloatingFilterParentModel(e)}destroyFilter(e,t="api"){this.colFilter?.destroyFilter(e,t)}areFilterCompsDifferent(e,t){return!!this.colFilter?.areFilterCompsDifferent(e,t)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference){this.advFilterModelUpdateQueue.push(e);return}this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getColumnFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){ut(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.advFilterModelUpdateQueue.forEach(e=>this.setAdvFilterModel(e)),this.advFilterModelUpdateQueue=[]}getColumnFilterModel(e){return this.colFilter?.getColumnFilterModel(e)}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setColumnFilterModel(e,t)??Promise.resolve()}setColDefPropertiesForDataType(e,t,n){this.colFilter?.setColDefPropertiesForDataType(e,t,n)}},V6t=class extends dt{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,n,r){e&&!e.isColumn||this.showPopup(e,i=>{this.popupSvc?.positionPopupUnderMouseEvent({column:e,type:n,mouseEvent:t,ePopup:i})},n,t.target,Gu(this.gos),r)}showMenuAfterButtonClick(e,t,n,r){if(e&&!e.isColumn)return;let i=-1,o="left";const a=Gu(this.gos);!a&&this.gos.get("enableRtl")&&(i=1,o="right");const s=a?void 0:4*i,l=a?void 0:4;this.showPopup(e,c=>{this.popupSvc?.positionPopupByComponent({type:n,eventSource:t,ePopup:c,nudgeX:s,nudgeY:l,alignSide:o,keepWithinBounds:!0,position:"under",column:e})},n,t,a,r)}showPopup(e,t,n,r,i,o){const a=e?this.createBean(new wK(e,"COLUMN_MENU")):void 0;if(this.activeMenu=a,!a?.hasFilter()||!e){pi(57);return}const s=Nr({tag:"div",cls:`ag-menu${i?"":" ag-filter-menu"}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(s,{keydown:m=>this.trapFocusWithin(m,s)}),s.appendChild(a?.getGui());let l;const c=()=>a?.afterGuiDetached(),u=bet(this.gos)?r??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,d=m=>{R$(e,!1,"contextMenu");const v=m instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),v&&r&&x0(r)&&uye(r)?.focus({preventScroll:!0}),c(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,n,e),o?.()},p=this.getLocaleTextFunc(),h=i&&n!=="columnFilter"?p("ariaLabelColumnMenu","Column Menu"):p("ariaLabelColumnFilter","Column Filter"),g=this.popupSvc?.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:d,positionCallback:()=>t(s),anchorToElement:u,ariaLabel:h});g&&(this.hidePopup=l=g.hideFunc),a.afterInit().then(()=>{t(s),a.afterGuiAttached({container:n,hidePopup:l})}),R$(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,n,e)}trapFocusWithin(e,t){e.key!==Qe.TAB||e.defaultPrevented||Md(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),zu(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,n){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:n??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},G6t=class extends dt{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t){if(!t)return;const n=e.getColDef(),{filterValueGetter:r}=n;return r?this.executeFilterValueGetter(r,t.data,e,t,n):this.beans.valueSvc.getValue(e,t)}executeFilterValueGetter(e,t,n,r,i){const{expressionSvc:o,valueSvc:a}=this.beans,s=Vn(this.gos,{data:t,node:r,column:n,colDef:i,getValue:a.getValueCallback.bind(a,r)});return typeof e=="function"?e(s):o?.evaluate(e,s)}},$6t={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},U6t=class extends Gt{constructor(){super($6t,[Vf]),this.eFloatingFilterText=at}init(e){this.params=e;const t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`)}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){const n=t.getModelAsString(e);this.eFloatingFilterText.setValue(n)}})}refresh(e){this.init(e)}},Dnt=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e)}mapCustomOptions(){const{filterOptions:e}=this;e&&e.forEach(t=>{if(typeof t=="string")return;const n=[["displayKey"],["displayName"],["predicate","test"]],r=i=>i.some(o=>t[o]!=null)?!0:(ut(72,{keys:i}),!1);if(!n.every(r)){this.filterOptions=e.filter(i=>i===t)||[];return}this.customFilterOptions[t.displayKey]=t})}selectDefaultItem(e){const{filterOptions:t}=this;if(e.defaultOption)this.defaultOption=e.defaultOption;else if(t.length>=1){const n=t[0];typeof n=="string"?this.defaultOption=n:n.displayKey?this.defaultOption=n.displayKey:ut(73)}else ut(74)}getCustomOption(e){return this.customFilterOptions[e]}};function FN(e,t,n){return n==null?e.splice(t):e.splice(t,n)}function D$(e){return e==null||typeof e=="string"&&e.trim().length===0}function X6t(e){return e==="AND"||e==="OR"?e:"AND"}function Y6t(e,t,n){if(e==null)return;const{predicate:r}=e;if(r!=null&&!t.some(i=>i==null))return r(t,n)}function K6t(e,t){let n=e.length;return n>t&&(e.splice(t),ut(78),n=t),n}var knt=class extends AK{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(e){const t=this.optionsFactory.getCustomOption(e);if(t){const{numberOfInputs:r}=t;return r??1}return e&&["empty","notBlank","blank"].indexOf(e)>=0?0:e==="inRange"?2:1}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,n)=>{const r=n===0?e:this.optionsFactory.defaultOption;t.setValue(r,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOperatorsOr:e,defaultJoinOperator:t}=this;return e.length===0?t:e[0].getValue()===!0?"OR":"AND"}areModelsEqual(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;const n=!e.operator,r=!t.operator;if(!n&&r||n&&!r)return!1;let o;if(n){const a=e,s=t;o=this.areSimpleModelsEqual(a,s)}else{const a=e,s=t;o=a.operator===s.operator&&yd(a.conditions,s.conditions,(l,c)=>this.areSimpleModelsEqual(l,c))}return o}shouldRefresh(e){const t=this.getModel(),n=t?t.conditions??[t]:null,r=e.filterOptions?.map(o=>typeof o=="string"?o:o.displayKey)??this.getDefaultFilterOptions();return!(!(!n||n.every(o=>r.find(a=>a===o.type)!==void 0))||typeof e.maxNumConditions=="number"&&n&&n.length>e.maxNumConditions)}refresh(e){return!this.shouldRefresh(e)||!super.refresh(e)?!1:(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0)}setModelIntoUi(e){if(e.operator){const n=e;let r=n.conditions;r==null&&(r=[],ut(77));const i=K6t(r,this.maxNumConditions),o=this.getNumConditions();if(i<o)this.removeConditionsAndOperators(i);else if(i>o)for(let s=o;s<i;s++)this.createJoinOperatorPanel(),this.createOption();const a=n.operator==="OR";this.eJoinOperatorsAnd.forEach(s=>s.setValue(!a,!0)),this.eJoinOperatorsOr.forEach(s=>s.setValue(a,!0)),r.forEach((s,l)=>{this.eTypes[l].setValue(s.type,!0),this.setConditionIntoUi(s,l)})}else{const n=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(n.type,!0),this.setConditionIntoUi(n,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),Dr.resolve()}doesFilterPass(e){const t=this.getModel();if(t==null)return!0;const{operator:n}=t,r=[];if(n){const o=t;r.push(...o.conditions??[])}else r.push(t);return r[n&&n==="OR"?"some":"every"](o=>this.individualConditionPasses(e,o))}setParams(e){super.setParams(e),this.setNumConditions(e),this.defaultJoinOperator=X6t(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new Dnt,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(ut(79),t=1),this.maxNumConditions=t;let n=e.numAlwaysVisibleConditions??1;n<1&&(ut(80),n=1),n>t&&(ut(81),n=t),this.numAlwaysVisibleConditions=n}createOption(){const e=this.createManagedBean(new l1);this.eTypes.push(e),e.addCss("ag-filter-select"),this.eFilterBody.appendChild(e.getGui());const t=this.createValueElement();this.eConditionBodies.push(t),this.eFilterBody.appendChild(t),this.putOptionsIntoDropdown(e),this.resetType(e);const n=this.getNumConditions()-1;this.forEachPositionInput(n,r=>this.resetInput(r)),this.addChangedListeners(e,n)}createJoinOperatorPanel(){const e=Nr({tag:"div",cls:"ag-filter-condition"});this.eJoinOperatorPanels.push(e);const t=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),n=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);const r=this.eJoinOperatorPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,i),this.resetJoinOperatorOr(n,r,i),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))}createJoinOperator(e,t,n){const r=this.createManagedBean(new I_t);e.push(r);const i="ag-filter-condition-operator";return r.addCss(i),r.addCss(`${i}-${n}`),t.appendChild(r.getGui()),r}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>typeof e=="string"?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;t.forEach(n=>{e.addOption(n)}),e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}getCssIdentifier(){return"simple-filter"}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let n=0;n<this.getNumConditions();n++)this.isConditionUiComplete(n)?e=n:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const n=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<n){this.removeConditionsAndOperators(n+1);const r=e+1,i=n-r;i>0&&this.removeConditionsAndOperators(r,i),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((r,i)=>{const o=this.isConditionDisabled(i,e);r.setDisabled(o||this.filterListOptions.length<=1),i===1&&(nf(this.eJoinOperatorPanels[0],o),this.eJoinOperatorsAnd[0].setDisabled(o),this.eJoinOperatorsOr[0].setDisabled(o))}),this.eConditionBodies.forEach((r,i)=>{Nn(r,this.isConditionBodyVisible(i))});const n=(t??this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(r=>{r.setValue(!n,!0)}),this.eJoinOperatorsOr.forEach(r=>{r.setValue(n,!0)}),this.forEachInput((r,i,o,a)=>{this.setElementDisplayed(r,i<a),this.setElementDisabled(r,this.isConditionDisabled(o,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:n,eConditionBodies:r,eJoinOperatorPanels:i,eJoinOperatorsAnd:o,eJoinOperatorsOr:a}=this;this.removeComponents(n,e,t),this.removeElements(r,e,t),this.removeValueElements(e,t);const s=Math.max(e-1,0);this.removeElements(i,s,t),this.removeComponents(o,s,t),this.removeComponents(a,s,t)}removeElements(e,t,n){FN(e,t,n).forEach(i=>Rs(i))}removeComponents(e,t,n){FN(e,t,n).forEach(i=>{Rs(i.getGui()),this.destroyBean(i)})}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){const{eFilterBody:t,eTypes:n}=this;let r;if(!this.isReadOnly()){const i=this.getInputs(0)[0];i instanceof nx&&this.isConditionBodyVisible(0)?r=i.getInputElement():r=n[0]?.getFocusableElement()}(r??t).focus({preventScroll:!0})}}afterGuiDetached(){super.afterGuiDetached();const e=this.getModel();this.resetUiToActiveModel(e);let t=-1,n=-1,r=!1;const i=this.getJoinOperator();for(let a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))t===-1&&(t=a,n=a);else{const s=a>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1),l=a<t;(s||l)&&(this.removeConditionsAndOperators(a,1),r=!0,l&&n--)}let o=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),o=!0),this.shouldAddNewConditionAtEnd(n===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),o=!0),o&&this.updateConditionStatusesAndValues(n,i),r&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=n}getPlaceholderText(e,t){let n=this.translate(e);if(typeof this.filterPlaceholder=="function"){const r=this.eTypes[t].getValue(),i=this.translate(r);n=this.filterPlaceholder({filterOptionKey:r,filterOption:i,placeholder:n})}else typeof this.filterPlaceholder=="string"&&(n=this.filterPlaceholder);return n}resetPlaceholder(){const e=this.getLocaleTextFunc();this.forEachInput((t,n,r,i)=>{if(!(t instanceof nx))return;const o=n===0&&i>1?"inRangeStart":n===0?"filterOoo":"inRangeEnd",a=n===0&&i>1?e("ariaFilterFromValue","Filter from value"):n===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");t.setInputPlaceholder(this.getPlaceholderText(o,r)),t.setInputAriaLabel(a)})}setElementValue(e,t,n){e instanceof nx&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){e instanceof Gt&&Nn(e.getGui(),t)}setElementDisabled(e,t){e instanceof Gt&&nf(e.getGui(),t)}attachElementOnChange(e,t){e instanceof nx&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,n)=>{this.forEachPositionTypeInput(n,t,e)})}forEachPositionInput(e,t){const n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)}forEachPositionTypeInput(e,t,n){const r=this.getNumberOfInputs(t),i=this.getInputs(e);for(let o=0;o<i.length;o++){const a=i[o];a!=null&&n(a,o,e,r)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return this.getNumberOfInputs(t)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(n=>n==null))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinOperatorsAnd.forEach((t,n)=>this.resetJoinOperatorAnd(t,n,this.joinOperatorId+n)),this.eJoinOperatorsOr.forEach((t,n)=>this.resetJoinOperatorOr(t,n,this.joinOperatorId+n)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),Dr.resolve()}resetType(e){const n=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(n).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),n)}resetJoinOperatorOr(e,t,n){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),n)}resetJoinOperator(e,t,n,r,i){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${i}`).setLabel(r),t)}updateJoinOperatorsDisabled(){const e=(t,n)=>this.updateJoinOperatorDisabled(t,n);this.eJoinOperatorsAnd.forEach(e),this.eJoinOperatorsOr.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const n=this.mapValuesFromModel(e);this.forEachInput((r,i,o)=>{o===t&&this.setElementValue(r,n[i]!=null?n[i]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,n,r)=>{this.setElementValue(t,n===0&&r===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,n=>{this.attachElementOnChange(n,this.listener)}))}individualConditionPasses(e,t){const n=this.getCellValue(e.node),r=this.mapValuesFromModel(t),i=this.optionsFactory.getCustomOption(t.type),o=Y6t(i,r,n);return o??(n==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,n,t,e))}hasInvalidInputs(){return!1}},Lnt=class extends knt{setParams(e){super.setParams(e),this.scalarFilterParams=e}evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:n,includeBlanksInGreaterThan:r,includeBlanksInLessThan:i,includeBlanksInRange:o}=this.scalarFilterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(n)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(r)return!0;break;case"lessThan":case"lessThanOrEqual":if(i)return!0;break;case"inRange":if(o)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,n){const r=n.type;if(!this.isValid(t))return r==="notEqual"||r==="notBlank";const i=this.comparator(),o=e[0]!=null?i(e[0],t):0;switch(r){case"equals":return o===0;case"notEqual":return o!==0;case"greaterThan":return o>0;case"greaterThanOrEqual":return o>=0;case"lessThan":return o<0;case"lessThanOrEqual":return o<=0;case"inRange":{const a=i(e[1],t);return this.scalarFilterParams.inRangeInclusive?o>=0&&a<=0:o>0&&a<0}case"blank":return D$(t);case"notBlank":return!D$(t);default:return ut(76,{filterModelType:r}),!0}}},_nt=class{constructor(e,t,n,r,i,o){this.alive=!0,this.context=e,this.eParent=i;const a=ALt(t,n,r);a&&a.newAgStackInstance().then(s=>{if(!this.alive){e.destroyBean(s);return}if(this.dateComp=s,!s)return;i.appendChild(s.getGui()),s?.afterGuiAttached?.();const{tempValue:l,disabled:c}=this;l&&s.setDate(l),c!=null&&s.setDisabled?.(c),o?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){const t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){const t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){Nn(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}},Nnt=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"],Fye=class{constructor(e,t,n){this.getLocaleTextFunc=e,this.optionsFactory=t,this.valueFormatter=n}getModelAsString(e){if(!e)return null;const t=e.operator!=null,n=this.getLocaleTextFunc();if(t){const r=e,o=(r.conditions??[]).map(s=>this.getModelAsString(s)),a=r.operator==="AND"?"andCondition":"orCondition";return o.join(` ${n(a,mtt[a])} `)}else{if(e.type==="blank"||e.type==="notBlank")return n(e.type,e.type);{const r=e,i=this.optionsFactory.getCustomOption(r.type),{displayKey:o,displayName:a,numberOfInputs:s}=i||{};return o&&a&&s===0?(n(o,a),a):this.conditionToString(r,i)}}}updateParams(e){this.optionsFactory=e.optionsFactory}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},Fnt=class extends Fye{constructor(e,t,n){super(t,n),this.dateFilterParams=e}conditionToString(e,t){const{type:n}=e,{numberOfInputs:r}=t||{},i=n=="inRange"||r===2,o=h0(e.dateFrom),a=h0(e.dateTo),s=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(i){const l=o!==null?LN(o,s):"null",c=a!==null?LN(a,s):"null";return`${l}-${c}`}return o!=null?LN(o,s):`${n}`}updateParams(e){super.updateParams(e),this.dateFilterParams=e.dateFilterParams}},KEe=1e3,QEe=1/0,Q6t=class extends Lnt{constructor(){super("dateFilter"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=KEe,this.maxValidYear=QEe,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(t){super.afterGuiAttached(t),this.dateConditionFromComps[0].afterGuiAttached(t)}mapValuesFromModel(t){const{dateFrom:n,dateTo:r,type:i}=t||{};return[n&&h0(n)||null,r&&h0(r)||null].slice(0,this.getNumberOfInputs(i))}comparator(){return this.dateFilterParams.comparator??Z6t}isValid(t){const n=this.dateFilterParams.isValidDate;return!n||n(t)}setParams(t){this.dateFilterParams=t,super.setParams(t);const n=(r,i)=>{if(t[r]!=null)if(isNaN(t[r]))ut(82,{param:r});else return t[r]==null?i:Number(t[r]);return i};this.minValidYear=n("minValidYear",KEe),this.maxValidYear=n("maxValidYear",QEe),this.minValidYear>this.maxValidYear&&ut(83),this.minValidDate=t.minValidDate?t.minValidDate instanceof Date?t.minValidDate:h0(t.minValidDate):null,this.maxValidDate=t.maxValidDate?t.maxValidDate instanceof Date?t.maxValidDate:h0(t.maxValidDate):null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&ut(84),this.filterModelFormatter=new Fnt(this.dateFilterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory)}createDateCompWrapper(t){const{beans:{userCompFactory:n,context:r,gos:i},dateFilterParams:o}=this,a=new _nt(r,n,o.colDef,Vn(i,{onDateChanged:()=>this.onUiChanged(),filterParams:o,location:"filter"}),t);return this.addDestroyFunc(()=>a.destroy()),a}setElementValue(t,n){t.setDate(n)}setElementDisplayed(t,n){t.setDisplayed(n)}setElementDisabled(t,n){t.setDisabled(n)}getDefaultFilterOptions(){return Nnt}createValueElement(){const t=Nr({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(t,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(t,this.eConditionPanelsTo,this.dateConditionToComps,"to"),t}createFromToElement(t,n,r,i){const o=Nr({tag:"div",cls:`ag-filter-${i} ag-filter-date-${i}`});n.push(o),t.appendChild(o),r.push(this.createDateCompWrapper(o))}removeValueElements(t,n){this.removeDateComps(this.dateConditionFromComps,t,n),this.removeDateComps(this.dateConditionToComps,t,n),FN(this.eConditionPanelsFrom,t,n),FN(this.eConditionPanelsTo,t,n)}removeDateComps(t,n,r){FN(t,n,r).forEach(o=>o.destroy())}isValidDateValue(t){if(t===null)return!1;const{minValidDate:n,maxValidDate:r,minValidYear:i,maxValidYear:o}=this;if(n){if(t<n)return!1}else if(t.getUTCFullYear()<i)return!1;if(r){if(t>r)return!1}else if(t.getUTCFullYear()>o)return!1;return!0}isConditionUiComplete(t){if(!super.isConditionUiComplete(t))return!1;let n=!0;return this.forEachInput((r,i,o,a)=>{o!==t||!n||i>=a||(n=n&&this.isValidDateValue(r.getDate()))}),n}areSimpleModelsEqual(t,n){return t.dateFrom===n.dateFrom&&t.dateTo===n.dateTo&&t.type===n.type}createCondition(t){const n=this.getConditionType(t),r={},i=this.getValues(t);return i.length>0&&(r.dateFrom=cp(i[0])),i.length>1&&(r.dateTo=cp(i[1])),{dateFrom:null,dateTo:null,filterType:this.filterType,type:n,...r}}resetPlaceholder(){const t=this.getLocaleTextFunc(),n=this.translate("dateFormatOoo"),r=t("ariaFilterValue","Filter Value");this.forEachInput(i=>{i.setInputPlaceholder(n),i.setInputAriaLabel(r)})}getInputs(t){const{dateConditionFromComps:n,dateConditionToComps:r}=this;return t>=n.length?[null,null]:[n[t],r[t]]}getValues(t){const n=[];return this.forEachPositionInput(t,(r,i,o,a)=>{i<a&&n.push(r.getDate())}),n}translate(t){return t==="lessThan"?super.translate("before"):t==="greaterThan"?super.translate("after"):super.translate(t)}getModelAsString(t){return this.filterModelFormatter.getModelAsString(t)??""}};function Z6t(e,t){const n=t;return n<e?-1:n>e?1:0}var Wnt=class extends Gt{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let n;t?n=e.conditions[0]:n=e,this.lastType=n.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const n=e;return this.isTypeEditable(n.type)}init(e){this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const n=new Dnt;this.optionsFactory=n,n.init(e.filterParams,this.getDefaultOptions());const r=n.defaultOption;t||(this.lastType=r),this.readOnly=!!e.filterParams.readOnly;const i=this.isTypeEditable(r);this.setEditable(i)}refresh(e){this.setSimpleParams(e)}hasSingleInput(e){const t=this.optionsFactory.getCustomOption(e)?.numberOfInputs;return t==null||t==1}isTypeEditable(e){const t=["inRange","empty","blank","notBlank"];return!!e&&!this.readOnly&&this.hasSingleInput(e)&&t.indexOf(e)<0}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},J6t={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},eBt=class extends Wnt{constructor(){super(J6t,[Vf]),this.eReadOnlyText=at,this.eDateWrapper=at}getDefaultOptions(){return Nnt}init(e){super.init(e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new Fnt(this.filterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory);const t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}refresh(e){super.refresh(e),this.params=e,this.filterParams=e.filterParams,this.dateComp.updateParams(this.getDateComponentParams()),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){const n=e?h0(e.dateFrom):null;this.dateComp.setDate(n),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){Nn(this.eDateWrapper,e),Nn(this.eReadOnlyText.getGui(),!e)}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||(super.setLastTypeFromModel(e),this.updateCompOnModelChange(e))}onDateChanged(){const e=this.dateComp.getDate(),t=cp(e);this.params.parentFilterInstance(n=>{if(n){const r=h0(t);n.onFloatingFilterChanged(this.lastType||null,r)}})}getDateComponentParams(){const{filterParams:e,column:t}=this.params,n=gye(e,this.defaultDebounceMs);return Vn(this.gos,{onDateChanged:Ml(this,this.onDateChanged.bind(this),n),filterParams:t.getColDef().filterParams,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:n,params:r}=this;this.dateComp=new _nt(e,t,r.column.getColDef(),this.getDateComponentParams(),n,i=>{i.setInputAriaLabel(this.getAriaLabel(r))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},tBt={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},nBt=class extends Gt{constructor(){super(tBt,[Vf]),this.eDateInput=at,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}setParams(e){const t=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=n&&yw(),t.type=n?"date":"text";const{minValidYear:r,maxValidYear:i,minValidDate:o,maxValidDate:a,buttons:s}=e.filterParams||{};if(o&&r&&ut(85),a&&i&&ut(86),o&&a){const[l,c]=[o,a].map(u=>u instanceof Date?u:h0(u));l&&c&&l.getTime()>c.getTime()&&ut(87)}o?o instanceof Date?t.min=LN(o):t.min=o:r&&(t.min=`${r}-01-01`),a?a instanceof Date?t.max=LN(a):t.max=a:i&&(t.max=`${i}-12-31`),this.isApply=e.location==="floatingFilter"&&!!s?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return h0(this.eDateInput.getValue())}setDate(e){this.eDateInput.setValue(cp(e,!1))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}},qnt=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"],Bnt=class extends Fye{conditionToString(e,t){const{numberOfInputs:n}=t||{},{filter:r,filterTo:i,type:o}=e,a=o=="inRange"||n===2,s=this.formatValue.bind(this);return a?`${s(r)}-${s(i)}`:r!=null?s(r):`${o}`}};function yhe(e){const{allowedCharPattern:t}=e??{};return t??null}var rBt=class extends Lnt{constructor(){super("numberFilter"),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}refresh(e){return this.numberFilterParams.allowedCharPattern!==e.allowedCharPattern?!1:super.refresh(e)}mapValuesFromModel(e){const{filter:t,filterTo:n,type:r}=e||{};return[this.processValue(t),this.processValue(n)].slice(0,this.getNumberOfInputs(r))}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}setParams(e){this.numberFilterParams=e,super.setParams(e),this.filterModelFormatter=new Bnt(this.getLocaleTextFunc.bind(this),this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return qnt}setElementValue(e,t,n){const{numberFormatter:r}=this.numberFilterParams,i=!n&&r?r(t??null):t;super.setElementValue(e,i)}createValueElement(){const e=yhe(this.numberFilterParams),t=Nr({tag:"div",cls:"ag-filter-body",role:"presentation"});return this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t}createFromToElement(e,t,n,r){const i=this.createManagedBean(r?new Im({allowedCharPattern:r}):new OK);i.addCss(`ag-filter-${n}`),i.addCss("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())}removeValueElements(e,t){const n=r=>this.removeComponents(r,e,t);n(this.eValuesFrom),n(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(n,r,i,o)=>{r<o&&t.push(this.processValue(this.stringToFloat(n.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}processValue(e){return e==null||isNaN(e)?null:e}stringToFloat(e){if(typeof e=="number")return e;let t=zc(e);t!=null&&t.trim()===""&&(t=null);const n=this.numberFilterParams.numberParser;return n?n(t):t==null||t.trim()==="-"?null:parseFloat(t)}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>{if(!t.getInputElement().validity.valid){e=!0;return}}),e}},jnt=class extends dt{constructor(e){super(),this.params=e,this.eInput=at,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new Im(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const n=r=>this.onValueChanged(r);this.addManagedListeners(t,{input:n,keydown:n})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t}){const{eInput:n}=this;n.setInputAriaLabel(e),t!==void 0&&n.setAutoComplete(t)}};function Hnt(e){const t=e?.trim();return t===""?e:t}var iBt={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},Vnt=class extends Wnt{constructor(){super(...arguments),this.eFloatingFilterInputContainer=at,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(iBt)}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e)))}init(e){this.setupFloatingFilterInputService(e),super.init(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){this.params=e;const t=e.browserAutoComplete??!1,{inputSvc:n,defaultDebounceMs:r,readOnly:i}=this;if(n.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:t}),this.applyActive=z$(e.filterParams),!i){const o=gye(e.filterParams,r),a=Ml(this,this.syncUpWithParentFilter.bind(this),o);n.setValueChangedListener(a)}}refresh(e){super.refresh(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,n=t.getValue();Xi(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(n,!0)}syncUpWithParentFilter(e){const t=e.key===Qe.ENTER;if(this.applyActive&&!t)return;const{inputSvc:n,params:r}=this;let i=n.getValue();r.filterParams.trimInput&&(i=Hnt(i),n.setValue(i,!0)),r.parentFilterInstance(o=>{o?.onFloatingFilterChanged(this.lastType||null,i||null)})}setEditable(e){this.inputSvc.setEditable(e)}},oBt=class extends dt{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new OK),this.eTextInput=this.createManagedBean(new Im),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),n=this.eTextInput.getGui();e.appendChild(t),e.appendChild(n),this.setupListeners(t,r=>this.onValueChanged(r)),this.setupListeners(n,r=>this.onValueChanged(r))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},aBt=class extends Vnt{init(e){super.init(e),this.filterModelFormatter=new Bnt(this.getLocaleTextFunc.bind(this),this.optionsFactory,e.filterParams?.numberFormatter)}refresh(e){yhe(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return qnt}createFloatingFilterInputService(e){return this.allowedCharPattern=yhe(e.filterParams),this.allowedCharPattern?this.createManagedBean(new jnt({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new oBt)}},Gnt=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],$nt=class extends Fye{conditionToString(e,t){const{numberOfInputs:n}=t||{},{filter:r,filterTo:i,type:o}=e;return o=="inRange"||n===2?`${r}-${i}`:r!=null?`${r}`:`${o}`}},sBt=class extends knt{constructor(){super("textFilter"),this.filterType="text",this.defaultFormatter=e=>e,this.defaultLowercaseFormatter=e=>e==null?null:e.toString().toLowerCase(),this.defaultMatcher=({filterOption:e,value:t,filterText:n})=>{if(n==null)return!1;switch(e){case"contains":return t.indexOf(n)>=0;case"notContains":return t.indexOf(n)<0;case"equals":return t===n;case"notEqual":return t!=n;case"startsWith":return t.indexOf(n)===0;case"endsWith":{const r=t.lastIndexOf(n);return r>=0&&r===t.length-n.length}default:return!1}},this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}setParams(e){this.textFilterParams=e,super.setParams(e),this.matcher=e.textMatcher||this.defaultMatcher,this.formatter=e.textFormatter||(e.caseSensitive?this.defaultFormatter:this.defaultLowercaseFormatter),this.filterModelFormatter=new $nt(this.getLocaleTextFunc.bind(this),this.optionsFactory)}createCondition(e){const t=this.getConditionType(e),n={filterType:this.filterType,type:t},r=this.getValuesWithSideEffects(e,!0);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:n}=this;return e>=t.length?[null,null]:[t[e],n[e]]}getValues(e){return this.getValuesWithSideEffects(e,!1)}getValuesWithSideEffects(e,t){const n=[];return this.forEachPositionInput(e,(r,i,o,a)=>{if(i<a){let s=zc(r.getValue());t&&this.textFilterParams.trimInput&&(s=Hnt(s)??null,r.setValue(s,!0)),n.push(s)}}),n}getDefaultFilterOptions(){return Gnt}createValueElement(){const e=Nr({tag:"div",cls:"ag-filter-body",role:"presentation"});return this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e}createFromToElement(e,t,n){const r=this.createManagedBean(new Im);r.addCss(`ag-filter-${n}`),r.addCss("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())}removeValueElements(e,t){const n=r=>this.removeComponents(r,e,t);n(this.eValuesFrom),n(this.eValuesTo)}mapValuesFromModel(e){const{filter:t,filterTo:n,type:r}=e||{};return[t||null,n||null].slice(0,this.getNumberOfInputs(r))}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,n,r){const i=e.map(p=>this.formatter(p))||[],o=this.formatter(t),{api:a,colDef:s,column:l,context:c,textFormatter:u}=this.textFilterParams;if(n.type==="blank")return D$(t);if(n.type==="notBlank")return!D$(t);const d={api:a,colDef:s,column:l,context:c,node:r.node,data:r.data,filterOption:n.type,value:o,textFormatter:u};return i.some(p=>this.matcher({...d,filterText:p}))}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}},lBt=class extends Vnt{init(e){super.init(e),this.filterModelFormatter=new $nt(this.getLocaleTextFunc.bind(this),this.optionsFactory)}refresh(e){super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return Gnt}createFloatingFilterInputService(){return this.createManagedBean(new jnt)}};function cBt(e){return!!e.quickFilter?.isFilterPresent()}function uBt(e){return e.quickFilter?.getText()}function dBt(e){e.quickFilter?.resetCache()}var pBt=class extends dt{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){const e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",n=>this.setFilter(n.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){const{autoColSvc:e,colModel:t,gos:n,pivotResultCols:r}=this.beans,i=t.isPivotMode(),o=e?.getColumns(),a=t.getColDefCols();let s=(i&&!n.get("applyQuickFilterBeforePivotOrAgg")?r?.getPivotResultCols()?.list:a)??[];o&&(s=s.concat(o)),this.colsToUse=n.get("includeHiddenColumnsInQuickFilter")?s:s.filter(l=>l.isVisible()||l.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(n=>t?this.doesRowPassCache(e,n):this.doesRowPassNoCache(e,n))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseFilter(e){return Ut(e)?e.toUpperCase():null}setFilter(e){if(e!=null&&typeof e!="string"){ut(70,{newFilter:e});return}const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),n=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,n&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(n=>{const r=this.getTextForColumn(n,e);return Ut(r)&&r.indexOf(t)>=0})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.indexOf(t)>=0}doesRowPassMatcher(e,t){let n;e?(this.checkGenerateAggText(t),n=t.quickFilterAggregateText):n=this.getAggText(t);const{quickFilterParts:r,matcher:i}=this;return i(r,n)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let n=this.beans.filterValueSvc.getValue(e,t);const r=e.getColDef();if(r.getQuickFilterText){const i=Vn(this.gos,{value:n,node:t,data:t.data,column:e,colDef:r});n=r.getQuickFilterText(i)}return Ut(n)?n.toString().toUpperCase():null}getAggText(e){const t=[];return this.colsToUse.forEach(n=>{const r=this.getTextForColumn(n,e);Ut(r)&&t.push(r)}),t.join(`
`)}},hBt={moduleName:"ClientSideRowModelFilter",version:Jn,rowModels:["clientSide"],beans:[w6t]},DK={moduleName:"FilterCore",version:Jn,beans:[H6t],apiFunctions:{isAnyFilterPresent:B6t,onFilterChanged:j6t},css:[R6t],dependsOn:[hBt]},Wye={moduleName:"FilterValue",version:Jn,beans:[G6t]},xw={moduleName:"ColumnFilter",version:Jn,beans:[q6t,V6t],dynamicBeans:{headerFilterCellCtrl:S6t},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:I6t,getColumnFilterInstance:P6t,destroyFilter:D6t,setFilterModel:k6t,getFilterModel:L6t,getColumnFilterModel:_6t,setColumnFilterModel:N6t,showColumnFilter:F6t},dependsOn:[DK,dM,Wye,Pnt]},fBt={moduleName:"CustomFilter",version:Jn,userComponents:{agReadOnlyFloatingFilter:U6t},dependsOn:[xw]},gBt={moduleName:"TextFilter",version:Jn,dependsOn:[xw],userComponents:{agTextColumnFilter:sBt,agTextColumnFloatingFilter:lBt}},mBt={moduleName:"NumberFilter",version:Jn,dependsOn:[xw],userComponents:{agNumberColumnFilter:rBt,agNumberColumnFloatingFilter:aBt}},vBt={moduleName:"DateFilter",version:Jn,dependsOn:[xw],userComponents:{agDateColumnFilter:Q6t,agDateInput:nBt,agDateColumnFloatingFilter:eBt}},bBt={moduleName:"QuickFilterCore",version:Jn,rowModels:["clientSide"],beans:[pBt],dependsOn:[DK,Wye]},yBt={moduleName:"QuickFilter",version:Jn,apiFunctions:{isQuickFilterPresent:cBt,getQuickFilter:uBt,resetQuickFilter:dBt},dependsOn:[bBt]},MBt={moduleName:"ExternalFilter",version:Jn,dependsOn:[DK]},H5=class{constructor(e){this.cellValueChanges=e}},dre=class extends H5{constructor(e,t,n,r){super(e),this.initialRange=t,this.finalRange=n,this.ranges=r}},CBt=10,ZEe=class{constructor(e){this.actionStack=[],this.maxStackSize=e||CBt,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},xBt=class extends dt{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=this.activeCellEdit!==null&&g6(this.activeCellEdit,t),r=this.activeRowEdit!==null&&$c(this.activeRowEdit,t);if(!(n||r||this.isPasting||this.isRangeInAction))return;const{rowPinned:o,rowIndex:a,column:s,oldValue:l,value:c}=e,u={rowPinned:o,rowIndex:a,columnId:s.getColId(),newValue:c,oldValue:l};this.cellValueChanges.push(u)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const n=e.get("undoRedoCellEditingLimit");if(n<=0)return;this.undoStack=new ZEe(n),this.redoStack=new ZEe(n),this.addListeners();const r=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:i=>{i.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:r,newColumnsLoaded:r,columnGroupOpened:r,columnRowGroupChanged:r,columnMoved:r,columnPinned:r,columnVisible:r,rowDragEnd:r}),t.whenReady(this,i=>{this.gridBodyCtrl=i.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:n,redoStack:r}=this;t.dispatchEvent({type:"undoStarted",source:e});const i=this.undoRedo(n,r,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:i})}redo(e){const{eventSvc:t,undoStack:n,redoStack:r}=this;t.dispatchEvent({type:"redoStarted",source:e});const i=this.undoRedo(r,n,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:i})}undoRedo(e,t,n,r,i){if(!e)return!1;const o=e.pop();return!o||!o.cellValueChanges?!1:(this.processAction(o,a=>a[r],i),o instanceof dre?this.processRange(o.ranges||[o[n]]):this.processCell(o.cellValueChanges),t.push(o),!0)}processAction(e,t,n){e.cellValueChanges.forEach(r=>{const{rowIndex:i,rowPinned:o,columnId:a}=r,s={rowIndex:i,rowPinned:o},l=lp(this.beans,s);l.displayed&&l.setDataValue(a,t(r),n)})}processRange(e){let t;const n=this.beans.rangeSvc;n.removeAllCellRanges(!0),e.forEach((r,i)=>{if(!r)return;const o=r.startRow,a=r.endRow;i===e.length-1&&(t={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:r.startColumn.getColId()},this.setLastFocusedCell(t));const s={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnStart:r.startColumn,columns:r.columns};n.addCellRange(s)})}processCell(e){const t=e[0],{rowIndex:n,rowPinned:r}=t,i={rowIndex:n,rowPinned:r},o=lp(this.beans,i),a={rowPinned:t.rowPinned,rowIndex:o.rowIndex,columnId:t.columnId};this.setLastFocusedCell(a)}setLastFocusedCell(e){const{rowIndex:t,columnId:n,rowPinned:r}=e,{colModel:i,focusSvc:o,rangeSvc:a}=this.beans,s=i.getCol(n);if(!s)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(s);const c={rowIndex:t,column:s,rowPinned:r};o.setFocusedCell({...c,forceBrowserFocus:!0}),a?.setRangeToCell(c)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new H5(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const n=new H5(this.cellValueChanges);this.pushActionsToUndoStack(n)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new H5(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new dre(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:n}=this.beans;t&&r1(n)?e=new dre(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):e=new H5(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1}})}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},wBt=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}",SBt={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},ABt=class extends Cw{constructor(){super(SBt,[Rm]),this.eCheckbox=at}init(e){this.params=e;const t=e.value??void 0,n=this.eCheckbox;n.setValue(t),n.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(n,{fieldValueChanged:i=>this.setAriaLabel(i.selected)})}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),n=H2e(t,e),r=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${r} (${n})`)}},kK=class extends Cw{constructor(e){super({tag:"div",cls:"ag-cell-edit-wrapper",children:[e.getTemplate()]},e.getAgComponents()),this.cellEditorInput=e,this.eInput=at}init(e){this.params=e;const{cellStartedEdit:t,eventKey:n,suppressPreventDefault:r}=e,i=this.eInput;this.cellEditorInput.init(i,e);let o,a=!0;t?(this.focusAfterAttached=!0,n===Qe.BACKSPACE||n===Qe.DELETE?o="":n&&n.length===1?r?a=!1:o=n:(o=this.cellEditorInput.getStartValue(),n!==Qe.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,o=this.cellEditorInput.getStartValue()),a&&o!=null&&i.setStartValue(o),this.addManagedElementListeners(i.getGui(),{keydown:s=>{const{key:l}=s;(l===Qe.PAGE_UP||l===Qe.PAGE_DOWN)&&s.preventDefault()}})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;yw()||t.getFocusableElement().focus();const n=t.getInputElement();this.highlightAllOnFocus?n.select():this.cellEditorInput.setCaret?.()}focusIn(){const e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}},OBt={tag:"ag-input-date-field",ref:"eInput",cls:"ag-cell-editor"},zBt=class{getTemplate(){return OBt}getAgComponents(){return[Wtt]}init(e,t){this.eInput=e,this.params=t;const{min:n,max:r,step:i}=t;n!=null&&e.setMin(n),r!=null&&e.setMax(r),i!=null&&e.setStep(i)}getValue(){const{eInput:e,params:t}=this,n=e.getDate();return!Ut(n)&&!Ut(t.value)?t.value:n??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return cp(e,!1)}},TBt=class extends kK{constructor(){super(new zBt)}},EBt={tag:"ag-input-date-field",ref:"eInput",cls:"ag-cell-editor"},RBt=class{constructor(e){this.getDataTypeService=e}getTemplate(){return EBt}getAgComponents(){return[Wtt]}init(e,t){this.eInput=e,this.params=t;const{min:n,max:r,step:i}=t;n!=null&&e.setMin(n),r!=null&&e.setMax(r),i!=null&&e.setStep(i)}getValue(){const{params:e,eInput:t}=this,n=this.formatDate(t.getDate());return!Ut(n)&&!Ut(e.value)?e.value:e.parseValue(n??"")}getStartValue(){return cp(this.parseDate(this.params.value??void 0)??null,!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):h0(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):cp(e??null,!1)??void 0}},IBt=class extends kK{constructor(){super(new RBt(()=>this.beans.dataTypeSvc))}},PBt={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eTextArea",cls:"ag-large-text-input"}]},DBt=class extends Cw{constructor(){super(PBt,[L_t]),this.eTextArea=at}init(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),e.value!=null&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(e){const t=e.key;(t===Qe.LEFT||t===Qe.UP||t===Qe.RIGHT||t===Qe.DOWN||e.shiftKey&&t===Qe.ENTER)&&e.stopPropagation()}afterGuiAttached(){const e=this.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){const e=this.eTextArea.getValue(),t=this.params;return!Ut(e)&&!Ut(t.value)?t.value:t.parseValue(e)}},kBt={tag:"ag-input-number-field",ref:"eInput",cls:"ag-cell-editor"},LBt=class{getTemplate(){return kBt}getAgComponents(){return[zK]}init(e,t){this.eInput=e,this.params=t;const{max:n,min:r,precision:i,step:o}=t;n!=null&&e.setMax(n),r!=null&&e.setMin(r),i!=null&&e.setPrecision(i),o!=null&&e.setStep(o);const a=e.getInputElement();t.preventStepping?e.addManagedElementListeners(a,{keydown:this.preventStepping}):t.showStepperButtons&&a.classList.add("ag-number-field-input-stepper")}preventStepping(e){(e.key===Qe.UP||e.key===Qe.DOWN)&&e.preventDefault()}getValue(){const{eInput:e,params:t}=this,n=e.getValue();if(!Ut(n)&&!Ut(t.value))return t.value;let r=t.parseValue(n);if(r==null)return r;if(typeof r=="string"){if(r==="")return null;r=Number(r)}return isNaN(r)?null:r}getStartValue(){return this.params.value}setCaret(){yw()&&this.eInput.getInputElement().focus({preventScroll:!0})}},_Bt=class extends kK{constructor(){super(new LBt)}},NBt={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eSelect",cls:"ag-cell-editor"}]},FBt=class extends Cw{constructor(){super(NBt,[v6]),this.eSelect=at,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}init(e){this.focusAfterAttached=e.cellStartedEdit;const{eSelect:t,valueSvc:n,gos:r}=this,{values:i,value:o,eventKey:a}=e;if(Yi(i)){ut(58);return}this.startedByEnter=a!=null?a===Qe.ENTER:!1;let s=!1;i.forEach(d=>{const p={value:d},h=n.formatValue(e.column,null,d),g=h!=null;p.text=g?h:d,t.addOption(p),s=s||o===d}),s?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:u}=e;l!=null&&t.setPickerGap(l),u!=null&&t.setPickerMaxHeight(u),c!=null&&t.setPickerMaxWidth(c),r.get("editType")!=="fullRow"&&this.addManagedListeners(this.eSelect,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eSelect.showPicker()})}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}},WBt={tag:"ag-input-text-field",ref:"eInput",cls:"ag-cell-editor"},qBt=class{getTemplate(){return WBt}getAgComponents(){return[Vf]}init(e,t){this.eInput=e,this.params=t;const n=t.maxLength;n!=null&&e.setMaxLength(n)}getValue(){const{eInput:e,params:t}=this,n=e.getValue();return!Ut(n)&&!Ut(t.value)?t.value:t.parseValue(n)}getStartValue(){const e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){const e=this.eInput,t=e.getValue(),n=Ut(t)&&t.length||0;n&&e.getInputElement().setSelectionRange(n,n)}},JEe=class extends kK{constructor(){super(new qBt)}};function BBt(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}function jBt(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()}function Unt(e,t,n="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,n),"ensureVisible")}function Xnt(e,t,n){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,n),"ensureVisible")}function HBt(e,t,n=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,n),"ensureVisible")}function VBt(e){e.undoRedo?.undo("api")}function GBt(e){e.undoRedo?.redo("api")}function $Bt(e,t={}){const n=[];return e.rowRenderer.getCellCtrls(t.rowNodes,t.columns).forEach(r=>{const i=r.comp?.getCellEditor();i&&n.push(yz(i))}),n}function UBt(e){const t=[];return e.rowRenderer.getAllCellCtrls().forEach(n=>{if(n.editing){const{cellPosition:r}=n;t.push(r)}}),t}function XBt(e,t=!1){e.editSvc?.stopAllEditing(t)}function YBt(e,t){const n=e.colModel.getCol(t.colKey);if(!n){ut(12,{colKey:t.colKey});return}const r={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:n};t.rowPinned==null&&Xnt(e,t.rowIndex),Unt(e,t.colKey);const o=Kv(e,r);if(!o)return;const{focusSvc:a,gos:s,editSvc:l}=e,c=()=>{const d=Gi(e),p=o.eGui;return d!==p&&!!p?.contains(d)},u=s.get("stopEditingWhenCellsLoseFocus")&&c();(u||!a.isCellFocused(r))&&a.setFocusedCell({...r,forceBrowserFocus:u,preventScrollOnBrowserFocus:!0}),l?.startRowOrCellEdit(o,t.key)}function KBt(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function QBt(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var ZBt={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},JBt=class extends Cw{constructor(e){super(ZBt),this.params=e}postConstruct(){mz(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,n=r=>{che(this.gos,r,t.node,t.column,!0)||t.onKeyDown(r)};this.addManagedElementListeners(e,{keydown:n})}},ejt=class extends dt{constructor(){super(...arguments),this.beanName="editSvc"}startEditing(e,t=null,n=!1,r=null){if(!e.isCellEditable()||e.editing)return!1;if(!e.comp)return e.onCompAttachedFuncs.push(()=>{this.startEditing(e,t,n,r)}),!0;const i=this.createCellEditorParams(e,t,n),o=e.column.getColDef(),a=vEe(this.beans.userCompFactory,o,i),s=a?.popupFromSelector!=null?a.popupFromSelector:!!o.cellEditorPopup,l=a?.popupPositionFromSelector!=null?a.popupPositionFromSelector:o.cellEditorPopupPosition;return eRe(e,!0,a),e.comp.setEditDetails(a,s,l,this.gos.get("reactiveCustomComponents")),this.eventSvc.dispatchEvent(e.createEvent(r,"cellEditingStarted")),!a?.params?.suppressPreventDefault}stopEditing(e,t=!1){if(e.onEditorAttachedFuncs=[],!e.editing)return!1;const{comp:n,column:r,rowNode:i}=e,{newValue:o,newValueExists:a}=tjt(t,n),s=this.beans.valueSvc.getValueForDisplay(r,i).value;let l=!1;return a&&(l=njt(e,s,o,i,r)),eRe(e,!1,void 0),n.setEditDetails(),e.updateAndFormatValue(!1),e.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.eventSvc.dispatchEvent({...e.createEvent(null,"cellEditingStopped"),oldValue:s,newValue:o,valueChanged:l}),l}handleColDefChanged(e){const t=e.comp?.getCellEditor();if(t?.refresh){const{eventKey:n,cellStartedEdit:r}=e.editCompDetails.params,i=this.createCellEditorParams(e,n,r),o=e.column.getColDef(),a=vEe(this.beans.userCompFactory,o,i);t.refresh(a.params)}}setFocusOutOnEditor(e){if(!e.editing)return;const t=e.comp.getCellEditor();t&&t.focusOut&&t.focusOut()}setFocusInOnEditor(e){if(!e.editing)return;const t=e.comp,n=t.getCellEditor();n?.focusIn?n.focusIn():(e.focusCell(!0),e.onEditorAttachedFuncs.push(()=>t.getCellEditor()?.focusIn?.()))}createPopupEditorWrapper(e){return new JBt(e)}stopAllEditing(e=!1){this.beans.rowRenderer.getAllRowCtrls().forEach(t=>this.stopRowEditing(t,e))}stopRowEditing(e,t=!1){if(e.stoppingRowEdit)return;const n=e.getAllCellCtrls(),r=e.editing;e.stoppingRowEdit=!0;let i=!1;for(const o of n){const a=o.stopEditing(t);r&&!t&&!i&&a&&(i=!0)}i&&this.eventSvc.dispatchEvent(e.createRowEvent("rowValueChanged")),r&&this.beans.rowEditSvc?.setEditing(e,!1),e.stoppingRowEdit=!1}addStopEditingWhenGridLosesFocus(e){if(!this.gos.get("stopEditingWhenCellsLoseFocus"))return;const t=n=>{const r=n.relatedTarget;if(ehe(r)===null){this.stopAllEditing();return}let i=e.some(o=>o.contains(r))&&att(this.gos,r);if(!i){const o=this.beans.popupSvc;i=!!o&&(o.getActivePopups().some(a=>a.contains(r))||o.isElementWithinCustomPopup(r))}i||this.stopAllEditing()};e.forEach(n=>this.addManagedElementListeners(n,{focusout:t}))}setInlineEditingCss(e){const t=e.editing||e.getAllCellCtrls().some(n=>n.editing);e.forEachGui(void 0,n=>{n.rowComp.toggleCss("ag-row-inline-editing",t),n.rowComp.toggleCss("ag-row-not-inline-editing",!t)})}isCellEditable(e,t){if(t.group){if(this.gos.get("treeData")){if(!t.data&&!this.gos.get("enableGroupEdit"))return!1}else if(!this.gos.get("enableGroupEdit"))return!1}return e.isColumnFunc(t,e.colDef.editable)}startRowOrCellEdit(e,t,n=null){return e.comp?this.gos.get("editType")==="fullRow"?this.beans.rowEditSvc?.startEditing(e.rowCtrl,t,e)??!1:this.startEditing(e,t,!0,n):(e.onCompAttachedFuncs.push(()=>{this.startRowOrCellEdit(e,t,n)}),!0)}stopRowOrCellEdit(e,t=!1,n=!1,r=!1){this.gos.get("editType")==="fullRow"?this.stopRowEditing(e.rowCtrl,t):this.stopEditing(e,t),n||this.navigateAfterEdit(r,e.cellPosition)}createCellEditorParams(e,t,n){const{column:r,rowNode:i,cellPosition:{rowIndex:o}}=e,{valueSvc:a,gos:s}=this.beans;return Vn(s,{value:a.getValueForDisplay(r,i).value,eventKey:t,column:r,colDef:r.getColDef(),rowIndex:o,node:i,data:i.data,cellStartedEdit:n,onKeyDown:e.onKeyDown.bind(e),stopEditing:this.stopRowOrCellEdit.bind(this,e,!1),eGridCell:e.eGui,parseValue:l=>a.parseValue(r,i,l,e.value),formatValue:e.formatValue.bind(e)})}navigateAfterEdit(e,t){if(this.gos.get("enterNavigatesVerticallyAfterEdit")){const r=e?Qe.UP:Qe.DOWN;this.beans.navigation?.navigateToNextCell(null,r,t,!1)}}};function eRe(e,t,n){e.editCompDetails=n,e.editing!==t&&(e.editing=t)}function tjt(e,t){const n={newValueExists:!1};if(e)return n;const r=t.getCellEditor();return!r||r.isCancelAfterEnd&&r.isCancelAfterEnd()?n:{newValue:r.getValue(),newValueExists:!0}}function njt(e,t,n,r,i){if(n===t)return!1;e.suppressRefreshCell=!0;const o=r.setDataValue(i,n,"edit");return e.suppressRefreshCell=!1,o}var rjt=class extends dt{constructor(){super(...arguments),this.beanName="rowEditSvc"}startEditing(e,t=null,n=null,r=null){if(e.editing)return!1;let i=!0,o=!1;const{editSvc:a}=this.beans;return e.getAllCellCtrls().forEach(s=>{const l=s===n;l?i=a?.startEditing(s,t,l,r)??!1:a?.startEditing(s,null,l,r),o||(o=s.editing)}),o&&this.setEditing(e,!0),i}setEditing(e,t){e.editing=t,e.forEachGui(void 0,r=>r.rowComp.toggleCss("ag-row-editing",t));const n=t?e.createRowEvent("rowEditingStarted"):e.createRowEvent("rowEditingStopped");this.eventSvc.dispatchEvent(n)}},pM={moduleName:"EditCore",version:Jn,beans:[ejt,rjt],apiFunctions:{getCellEditorInstances:$Bt,getEditingCells:UBt,stopEditing:XBt,startEditingCell:YBt},dependsOn:[dM],css:[wBt]},ijt={moduleName:"UndoRedoEdit",version:Jn,beans:[xBt],apiFunctions:{undoCellEditing:VBt,redoCellEditing:GBt,getCurrentUndoSize:KBt,getCurrentRedoSize:QBt},dependsOn:[pM]},ojt={moduleName:"TextEditor",version:Jn,userComponents:{agCellEditor:JEe,agTextCellEditor:JEe},dependsOn:[pM]},ajt={moduleName:"NumberEditor",version:Jn,userComponents:{agNumberCellEditor:{classImp:_Bt,params:{suppressPreventDefault:!0}}},dependsOn:[pM]},sjt={moduleName:"DateEditor",version:Jn,userComponents:{agDateCellEditor:TBt,agDateStringCellEditor:IBt},dependsOn:[pM]},ljt={moduleName:"CheckboxEditor",version:Jn,userComponents:{agCheckboxCellEditor:ABt},dependsOn:[pM]},cjt={moduleName:"SelectEditor",version:Jn,userComponents:{agSelectCellEditor:FBt},dependsOn:[pM]},ujt={moduleName:"LargeTextEditor",version:Jn,userComponents:{agLargeTextCellEditor:DBt},dependsOn:[pM]},djt={moduleName:"CustomEditor",version:Jn,dependsOn:[pM]},pjt=class extends dt{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,xx(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),iye(e))}createColumns(e,t){const n=()=>{zb(this.beans,this.columns?.tree),this.columns=null},r=e.treeDepth,o=(this.columns?.treeDepth??-1)==r,a=this.generateSelectionCols();if(rye(a,this.columns?.list??[])&&o)return;n();const{colGroupSvc:l}=this.beans,c=l?.findDepth(e.tree)??0,u=l?.balanceTreeForAutoCols(a,c)??[];this.columns={list:a,tree:u,treeDepth:c,map:{}},t(p=>{if(!p)return null;const h=p.filter(g=>!f3(g));return[...a,...h]})}updateColumns(e){const t=xx(e.source);this.columns?.list.forEach(n=>{const r=this.createSelectionColDef(e.currentValue);n.setColDef(r,null,t),m0(this.beans,{state:[{...r,colId:n.getColId()}]},t)})}getColumn(e){return this.columns?.list.find(t=>oye(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,n=e.get("rowSelection");if(typeof n!="object"||!Kp(e))return!1;const r=(t.autoColSvc?.getColumns()?.length??0)>0;if(n.checkboxLocation==="autoGroupColumn"&&r)return!1;const i=!!kO(n),o=jG(n);return i||o}createSelectionColDef(e){const{gos:t}=this.beans,n=e??t.get("selectionColumnDef"),r=t.get("enableRtl"),{rowSpan:i,spanRows:o,...a}=n??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:r?"right":"left",comparator(s,l,c,u){const d=c.isSelected(),p=u.isSelected();return d===p?0:d?1:-1},editable:!1,suppressFillHandle:!0,pinned:null,...a,colId:Eet,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const n=new h3(e,null,t,!1);return this.createBean(n),[n]}onSelectionOptionsChanged(e,t,n){const r=t&&typeof t!="string"?kO(t):void 0,i=e&&typeof e!="string"?kO(e):void 0,o=r!==i,a=t&&typeof t!="string"?jG(t):void 0,s=e&&typeof e!="string"?jG(e):void 0,l=a!==s,c=cW(e),u=cW(t);(o||l||c!==u)&&this.beans.colModel.refreshAll(n)}destroy(){zb(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,n){if(!this.columns?.list.length)return;const r=e.length+t.length+n.length;if(r===0)return;const i=this.columns.list[0];if(!i.isVisible())return;const o=()=>{let l;switch(i.pinned){case"left":case!0:l=e;break;case"right":l=n;break;default:l=t}l&&Ou(l,i)};(this.beans.rowNumbersSvc?.getColumn(tye)?2:1)===r&&o()}};function hjt(e,t){if(!t.nodes.every(a=>a.rowPinned&&!f6(a)?(ut(59),!1):a.id===void 0?(ut(60),!1):!0))return;const{nodes:r,source:i,newValue:o}=t;e.selectionSvc?.setNodesSelected({nodes:r,source:i??"api",newValue:o})}function fjt(e,t,n="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:n,selectAll:t})}function gjt(e,t,n="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:n,selectAll:t})}function mjt(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function vjt(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function bjt(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function yjt(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function Mjt(e){return e.selectionSvc?.getSelectedNodes()??[]}function Cjt(e){return e.selectionSvc?.getSelectedRows()??[]}var xjt=class extends Ntt{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();const{gos:e}=this;this.mode=ZI(e),this.groupSelectsDescendants=bz(e),this.groupSelectsFiltered=y$(e)==="filteredDescendants",this.masterSelectsDetail=hEe(e)==="detail",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=bz(e),n=ZI(e),r=y$(e)==="filteredDescendants";this.masterSelectsDetail=hEe(e)==="detail",(t!==this.groupSelectsDescendants||r!==this.groupSelectsFiltered||n!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=r,this.mode=n)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,n){if(this.isRowSelectionBlocked(t))return 0;const r=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,n);return r==null?0:(this.selectionCtx.selectAll=!1,"select"in r?(r.reset?this.resetNodes():this.selectRange(r.deselect,!1,n),this.selectRange(r.select,!0,n)):this.setNodesSelected({nodes:[r.node],newValue:r.newValue,clearSelection:r.clearSelection,keepDescendants:r.keepDescendants,event:e,source:n}))}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:n,nodes:r,event:i,source:o,keepDescendants:a=!1}){if(!Kp(this.gos)&&e)return ut(132),0;if(r.length===0)return 0;if(r.length>1&&!this.isMultiSelect())return ut(130),0;let s=0;for(let l=0;l<r.length;l++){const c=r[l],u=hE(c),d=this.groupSelectsFiltered&&u.group;if(u.rowPinned&&!f6(u)){ut(59);continue}if(u.id===void 0){ut(60);continue}d||this.selectRowNode(u,e,i,o)&&(this.detailSelection.delete(u.id),s++),this.groupSelectsDescendants&&u.childrenAfterGroup?.length&&(s+=this.selectChildren(u,e,o))}return n||(r.length===1&&o==="api"&&this.selectionCtx.setRoot(hE(r[0])),e&&(t||!this.isMultiSelect())&&(s+=this.clearOtherNodes(hE(r[0]),a,o)),s>0&&(this.updateGroupsFromChildrenSelections(o),this.dispatchSelectionChanged(o))),s}selectRange(e,t,n){let r=0;return e.forEach(i=>{const o=hE(i);if(o.group&&this.groupSelectsDescendants)return;this.selectRowNode(o,t,void 0,n)&&r++}),r>0&&(this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n)),r}selectChildren(e,t,n){const r=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return r?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:n,nodes:r}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];return this.selectedNodes.forEach(t=>e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach((n,r)=>{e(n)&&t.set(r,n)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:n,rowModel:r}=this.beans;if(!oa(n))return!1;const i=r.rootNode;if(!i)return!1;t||(t=new Mz(!0,i),t.active=!1);let o=!1;return t.forEachChangedNodeDepthFirst(a=>{if(a!==i){const s=this.calculateSelectedFromChildren(a);o=this.selectRowNode(a,s===null?!1:s,void 0,e)||o}}),o}clearOtherNodes(e,t,n){const r=new Map;let i=0;return this.selectedNodes.forEach(o=>{const a=o.id==e.id;if((t?!Sjt(e,o):!0)&&!a){const l=this.selectedNodes.get(o.id);i+=this.setNodesSelected({nodes:[l],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:n}),this.groupSelectsDescendants&&o.parent&&r.set(o.parent.id,o.parent)}}),r.forEach(o=>{const a=this.calculateSelectedFromChildren(o);this.selectRowNode(o,a===null?!1:a,void 0,n)}),i}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new vp(this.beans);return t.id=e.id,t.data=e.data,t.__daemon=!0,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!oa(e))return;const n=t.getTopLevelNodes();if(n===null)return;const r=[];function i(o){for(let a=0,s=o.length;a<s;a++){const l=o[a];l.isSelected()?r.push(l):l.group&&l.childrenAfterGroup&&i(l.childrenAfterGroup)}}return i(n),r}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes({source:e,selectAll:t}){const n=oa(this.gos);let r=!1;const i=o=>{const a=this.selectRowNode(hE(o),!1,void 0,e);r||(r=a)};if(t==="currentPage"||t==="filtered"){if(!n){pi(102);return}this.getNodesToSelect(t).forEach(i)}else this.selectedNodes.forEach(i),this.reset(e);if(this.selectionCtx.selectAll=!1,n&&this.groupSelectsDescendants){const o=this.updateGroupsFromChildrenSelections(e);r||(r=o)}r&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,n=0;return this.getNodesToSelect(e).forEach(r=>{this.groupSelectsDescendants&&r.group||(r.isSelected()?t++:r.selectable&&n++)}),{selectedCount:t,notSelectedCount:n}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:n}=this.getSelectedCounts(e);return Ynt(t,n)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(t=>t.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],n=i=>t.push(i);if(e==="currentPage")return this.forEachNodeOnPage(i=>{if(!i.group){n(i);return}if(!i.expanded&&!i.footer){const o=a=>{n(a),a.childrenAfterFilter?.forEach(o)};o(i);return}this.groupSelectsDescendants||n(i)}),t;const r=this.beans.rowModel;return e==="filtered"?(r.forEachNodeAfterFilter(n),t):(r.forEachNode(n),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:n}=this.beans,r=t.getFirstRow(),i=t.getLastRow();for(let o=r;o<=i;o++){const a=n.getRow(o);a&&e(a)}}selectAllRowNodes(e){const{gos:t,selectionCtx:n}=this;if(!Kp(t)){ut(132);return}if(eye(t)&&!By(t)){ut(130);return}if(!this.canSelectAll())return;const{source:r,selectAll:i}=e;let o=!1;if(this.getNodesToSelect(i).forEach(a=>{const s=this.selectRowNode(hE(a),!0,void 0,r);o||(o=s)}),n.selectAll=!0,oa(t)&&this.groupSelectsDescendants){const a=this.updateGroupsFromChildrenSelections(r);o||(o=a)}o&&this.dispatchSelectionChanged(r)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t){if(!Array.isArray(e)){pi(103);return}const n=new Set(e),r=[];this.beans.rowModel.forEachNode(i=>{n.has(i.id)&&r.push(i)}),this.setNodesSelected({newValue:!0,nodes:r,source:t})}canSelectAll(){const{gos:e}=this.beans;return!!oa(e)}updateSelectable(e){const{gos:t,rowModel:n}=this.beans;if(!Kp(t))return;const r="selectableChanged",i=e!==void 0,o=oa(t)&&this.groupSelectsDescendants,a=[],s=l=>{if(i&&!l.group)return;if(o&&l.group){const u=l.childrenAfterGroup?.some(d=>d.selectable)??!1;this.setRowSelectable(l,u,!0);return}!this.updateRowSelectable(l,!0)&&l.isSelected()&&a.push(l)};if(o){if(e===void 0){const l=n.rootNode;e=l?new Mz(!1,l):void 0}e?.forEachChangedNodeDepthFirst(s,!i,!i)}else n.forEachNode(s);a.length&&this.setNodesSelected({nodes:a,newValue:!1,source:r}),!i&&o&&this.updateGroupsFromChildrenSelections?.(r)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const n=e.detailNode?.detailGridInfo?.api;if(!n)return;const r=wjt(n);if(e.isSelected()!==r&&this.selectRowNode(e,r,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),!r){const o=this.detailSelection.get(e.id)??new Set;for(const a of n.getSelectedNodes())o.add(a.id);this.detailSelection.set(e.id,o)}}setDetailSelectionState(e,t,n){if(this.masterSelectsDetail){if(!By(t)){ut(269);return}switch(e.isSelected()){case!0:{n.selectAll();break}case!1:{n.deselectAll();break}case void 0:{const r=this.detailSelection.get(e.id);if(r){const i=[];for(const o of r){const a=n.getRowNode(o);a&&i.push(a)}n.setNodesSelected({nodes:i,newValue:!0,source:"masterDetail"})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function hE(e){return f6(e)?e.pinnedSibling:e.footer?e.sibling:e}function wjt(e){let t=0,n=0;return e.forEachNode(r=>{r.isSelected()?t++:r.selectable&&n++}),Ynt(t,n)}function Ynt(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function Sjt(e,t){let n=t.parent;for(;n;){if(n===e)return!0;n=n.parent}return!1}var Knt={moduleName:"SharedRowSelection",version:Jn,beans:[pjt],apiFunctions:{setNodesSelected:hjt,selectAll:fjt,deselectAll:gjt,selectAllFiltered:mjt,deselectAllFiltered:vjt,selectAllOnCurrentPage:bjt,deselectAllOnCurrentPage:yjt,getSelectedNodes:Mjt,getSelectedRows:Cjt}},Ajt={moduleName:"RowSelection",version:Jn,rowModels:["clientSide","infinite","viewport"],beans:[xjt],dependsOn:[Knt]};function Ojt(e){e.expansionSvc?.expandAll(!0)}function zjt(e){e.expansionSvc?.expandAll(!1)}function Tjt(e){const t=Pm(e),n=hD(e);t?t.onRowHeightChanged():n&&n.onRowHeightChanged()}function Ejt(e,t,n){const r=hD(e);if(r){if(e.rowGroupColsSvc?.columns.length===0){if(t<0){pi(238);return}r.setRowCount(t,n);return}pi(28);return}const i=PK(e);if(i){i.setRowCount(t,n);return}}function Rjt(e){return Au(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}}function Ijt(e){return e.rowModel.isLastRowIndexKnown()}var Qnt={moduleName:"CsrmSsrmSharedApi",version:Jn,apiFunctions:{expandAll:Ojt,collapseAll:zjt,onRowHeightChanged:Tjt}},Znt={moduleName:"SsrmInfiniteSharedApi",version:Jn,apiFunctions:{setRowCount:Ejt,getCacheBlockState:Rjt,isLastRowIndexKnown:Ijt}},Pjt=class extends dt{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t=typeof e=="function";return typeof e=="function"&&(e=e()),e.map(r=>{if(!r){pi(18),t||pi(20);return}if(this.isGridApi(r))return r;const i=r;return"current"in i?i.current?.api:(i.api||pi(19),i.api)}).filter(r=>!!r&&!r.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(e){this.consuming||this.getAlignedGridApis().forEach(t=>{t.isDestroyed()||t.dispatchEvent(e)})}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){const n=[];return e.columns?e.columns.forEach(r=>{n.push(t(r))}):e.column&&n.push(t(e.column)),n}getMasterColumns(e){return this.extractDataFromEvent(e,t=>t)}getColumnIds(e){return this.extractDataFromEvent(e,t=>t.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(e);break}case"columnGroupOpened":{this.processGroupOpenedEvent(e);break}case"columnPivotChanged":ut(21);break}})}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;t&&e.columnGroups.forEach(n=>{let r=null;n&&(r=t.getProvidedColGroup(n.getGroupId())),!(n&&!r)&&t.setColumnGroupOpened(r,n.isExpanded(),"alignedGridChanged")})}processColumnEvent(e){const t=e.column;let n=null;const r=this.beans,{colResize:i,ctrlsSvc:o,colModel:a}=r;if(t&&(n=a.getColDefCol(t.getColId())),t&&!n)return;const s=this.getMasterColumns(e);switch(e.type){case"columnMoved":{const d=e.api.getColumnState().map(p=>({colId:p.colId}));m0(r,{state:d,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const d=e.api.getColumnState().map(p=>({colId:p.colId,hide:p.hide}));m0(r,{state:d},"alignedGridChanged")}break;case"columnPinned":{const d=e.api.getColumnState().map(p=>({colId:p.colId,pinned:p.pinned}));m0(r,{state:d},"alignedGridChanged")}break;case"columnResized":{const u=e,d={};s.forEach(p=>{d[p.getId()]={key:p.getColId(),newWidth:p.getActualWidth()}}),u.flexColumns?.forEach(p=>{d[p.getId()]&&delete d[p.getId()]}),i?.setColumnWidths(Object.values(d),!1,u.finished,"alignedGridChanged");break}}const c=o.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach(u=>{u.setGridOption("alwaysShowVerticalScroll",c)})}},Djt={moduleName:"AlignedGrids",version:Jn,beans:[Pjt]},kjt=class extends _tt{constructor(){super(...arguments),this.beanName="csrmNodeSvc"}},pre=class{constructor(){this.removals=new Set,this.updates=new Set,this.adds=new Set}remove(e){this.adds.delete(e)||(this.updates.delete(e),this.removals.add(e))}update(e){this.adds.has(e)||this.updates.add(e)}add(e){this.adds.add(e)}};function Ljt(e){if(Yi(e.childrenAfterSort))return;const t=e.childrenAfterSort;for(let n=0;n<t.length;n++){const r=t[n],i=n===0,o=n===e.childrenAfterSort.length-1;r.setFirstChild(i),r.lastChild!==o&&(r.lastChild=o,r.dispatchRowEvent("lastChildChanged")),r.childIndex!==n&&(r.childIndex=n,r.dispatchRowEvent("childIndexChanged"))}}function Jnt(e){e.sibling&&(e.sibling.childrenAfterSort=e.childrenAfterSort),Ljt(e)}var _jt=class extends dt{constructor(){super(...arguments),this.beanName="sortStage",this.refreshProps=new Set(["postSortRows","groupDisplayType","accentedSort"]),this.step="sort"}execute(e){const t=this.beans,n=t.sortSvc.getSortOptions(),r=Ut(n)&&n.length>0,i=r&&!!e.changedRowNodes&&this.gos.get("deltaSort"),o=n.some(({column:a})=>Yg(t.gos)?a.isPrimary()&&a.isRowGroupActive():!!a.getColDef().showRowGroup);this.sort(t,n,r,i,e.changedRowNodes,e.changedPath,o)}sort(e,t,n,r,i,o,a){const{gos:s,colModel:l,rowGroupColsSvc:c,rowNodeSorter:u,rowRenderer:d,showRowGroupCols:p}=e,h=s.get("groupMaintainOrder"),g=l.getCols().some(C=>C.isRowGroupActive()),m=l.isPivotMode(),v=s.getCallback("postSortRows");let y=!1;const M=C=>{const x=m&&C.leafGroup,w=h&&g&&!C.leafGroup&&!a;let S;if(w){const z=c?.columns?.[C.level+1]?.getSort()===null,O=C.childrenAfterAggFilter.slice(0);if(C.childrenAfterSort&&!z){const T={};C.childrenAfterSort.forEach((I,P)=>{T[I.id]=P}),O.sort((I,P)=>(T[I.id]??0)-(T[P.id]??0))}S=O}else!n||x?S=C.childrenAfterAggFilter.slice(0):r&&i?S=Njt(u,C,i,o,t):S=u.doFullSort(C.childrenAfterAggFilter,t);if(y||(y=C.childrenAfterSort?.[0]!==S[0]),C.childrenAfterSort=S,Jnt(C),v){const A={nodes:C.childrenAfterSort};v(A)}};if(o?.forEachChangedNodeDepthFirst(M),y&&this.gos.get("groupHideOpenParents")){const C=p?.getShowRowGroupCols();C?.length&&d.refreshCells({columns:C,force:!0})}}};function Njt(e,t,n,r,i){const o=t.childrenAfterAggFilter,a=t.childrenAfterSort;if(!a)return e.doFullSort(o,i);const s=new Set,l=[],{updates:c,adds:u}=n;for(let p=0,h=o.length;p<h;++p){const g=o[p];c.has(g)||u.has(g)||r&&!r.canSkip(g)?l.push({currentPos:l.length,rowNode:g}):s.add(g.id)}const d=a.filter(p=>s.has(p.id)).map((p,h)=>({currentPos:h,rowNode:p}));return l.sort((p,h)=>e.compareRowNodes(i,p,h)),Fjt(e,i,l,d)}function Fjt(e,t,n,r){const i=[];let o=0,a=0;const s=n.length,l=r.length;for(;o<s&&a<l;){const c=n[o],u=r[a],d=e.compareRowNodes(t,c,u);let p;d<0?(p=c,++o):(p=u,++a),i.push(p.rowNode)}for(;o<s;)i.push(n[o++].rowNode);for(;a<l;)i.push(r[a++].rowNode);return i}var Wjt=class extends dt{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowsToDisplay=[],this.lastHighlightedRow=null,this.started=!1,this.isRefreshingModel=!1,this.rowNodesCountReady=!1,this.rowCountReady=!1,this.onRowHeightChanged_debounced=Ml(this,this.onRowHeightChanged.bind(this),100)}wireBeans(e){this.colModel=e.colModel,this.valueCache=e.valueCache,this.filterStage=e.filterStage,this.sortStage=e.sortStage,this.flattenStage=e.flattenStage,this.groupStage=e.groupStage,this.aggStage=e.aggStage,this.pivotStage=e.pivotStage,this.filterAggStage=e.filterAggStage}postConstruct(){this.orderedStages=[this.groupStage,this.filterStage,this.pivotStage,this.aggStage,this.sortStage,this.filterAggStage,this.flattenStage].filter(r=>!!r);const e=this.refreshModel.bind(this,{step:"group"}),t=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")});this.addManagedEventListeners({newColumnsLoaded:t,columnRowGroupChanged:e,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:e,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new vp(this.beans);const n=this.getNewNodeManager();this.nodeManager=n,n.activate(this.rootNode)}getNewNodeManager(){const{gos:e,beans:t}=this;switch(Met(e)){case"treeNested":return t.csrmChildrenTreeNodeSvc??t.csrmNodeSvc;case"treePath":return t.csrmPathTreeNodeSvc??t.csrmNodeSvc;default:return t.csrmNodeSvc}}addPropertyListeners(){const e=["treeData","treeDataChildrenField",...this.orderedStages.flatMap(({refreshProps:t})=>[...t])];this.addManagedPropertyListeners(e,t=>{const n=t.changeSet?.properties;n&&this.onPropChange(n)}),this.addManagedPropertyListener("rowData",()=>this.onPropChange(["rowData"])),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,n,r){let i,o=!1;do{i=!1;const a=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),l=Math.max(a,n),c=Math.min(s,r);for(let u=l;u<=c;u++){const d=this.getRow(u);if(d.rowHeightEstimated){const p=vd(this.beans,d);d.setRowHeight(p.height),i=!0,o=!0}}i&&this.setRowTopAndRowIndex()}while(i);return o}onPropChange(e){if(!this.rootNode)return;const t=this.gos,n=new Set(e),r={step:"nothing",changedProps:n},i=n.has("rowData"),o=this.nodeManager,a=this.getNewNodeManager(),s=o!==a||i&&n.has("treeData")&&t.get("treeData")||n.has("treeDataChildrenField")&&t.get("treeData");let l;if((s||i)&&(l=t.get("rowData"),l!=null&&!Array.isArray(l)&&(l=null,ut(1))),s&&(i||(l=o?.extractRowData()??l),o!==a&&(o?.deactivate(),this.nodeManager=a),a.activate(this.rootNode)),l)if(!s&&!this.isEmpty()&&l.length>0&&t.exists("getRowId")&&!t.get("resetRowDataOnUpdate"))r.keepRenderedRows=!0,r.animate=!this.gos.get("suppressAnimationFrame"),r.changedRowNodes=new pre,a.setImmutableRowData(r,l);else{r.rowDataUpdated=!0,r.newData=!0;const{selectionSvc:u,pinnedRowModel:d}=this.beans;u?.reset("rowDataChanged"),d?.isManual()&&d.reset(),this.rowNodesCountReady=!0,a.setNewRowData(l)}if(r.rowDataUpdated)r.step="group";else if(r.step==="nothing"){for(const{refreshProps:c,step:u}of this.orderedStages)if(e.some(d=>c.has(d))){r.step=u;break}}r.step!=="nothing"&&this.refreshModel(r)}setRowTopAndRowIndex(){const{beans:e,rowsToDisplay:t}=this,n=e.environment.getDefaultRowHeight();let r=0;const i=new Set,o=Uu(this.gos,"normal");for(let a=0,s=t.length;a<s;++a){const l=t[a];if(l.id!=null&&i.add(l.id),l.rowHeight==null){const c=vd(e,l,o,n);l.setRowHeight(c.height,c.estimated)}l.setRowTop(r),l.setRowIndex(a),r+=l.rowHeight}return i}clearRowTopAndRowIndex(e,t){const n=e.active,r=o=>{o&&o.id!=null&&!t.has(o.id)&&o.clearRowTopAndRowIndex()},i=o=>{if(o!==null&&(r(o),r(o.detailNode),r(o.sibling),o.hasChildren()&&o.childrenAfterGroup)){const a=o.level==-1;n&&!a&&!o.expanded||o.childrenAfterGroup.forEach(i)}};i(this.rootNode)}clearHighlight(){const e=this.lastHighlightedRow;e&&(e.highlighted=null,e.dispatchRowEvent("rowHighlightChanged"),this.lastHighlightedRow=null)}highlightRow(e,t){const n=e!==this.lastHighlightedRow,r=t!==e.highlighted;(n||r)&&(n&&this.clearHighlight(),e.highlighted=t,e.dispatchRowEvent("rowHighlightChanged"),this.lastHighlightedRow=e)}getLastHighlightedRowNode(){return this.lastHighlightedRow}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){const e=this.rootNode;if(!e||this.rowsToDisplay.length===0)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===e)return 1;const n=e.childrenAfterAggFilter,r=e.sibling?1:0;return(n?n.length:0)+r}getTopLevelRowDisplayedIndex(e){const{rootNode:t,rowsToDisplay:n}=this;if(!t||!n.length||n[0]===t)return e;const{childrenAfterSort:i}=t,o=s=>{let l=i[s];if(this.gos.get("groupHideOpenParents"))for(;l.expanded&&l.childrenAfterSort&&l.childrenAfterSort.length>0;)l=l.childrenAfterSort[0];return l.rowIndex},{footerSvc:a}=this.beans;return a?a.getTopDisplayIndex(n,e,i,o):o(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:n}=this;if(!t||!n.length||n[0]===t)return e;let i=this.getRow(e);for(i.footer&&(i=i.sibling);i.parent&&i.parent!==t;)i=i.parent;const o=t.childrenAfterSort?.findIndex(a=>a===i);return o===-1?e:o??e}getRowBounds(e){const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){const e=nI(this.gos);this.refreshModel({step:"map",keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;const t=nI(this.gos),r=e.columns.length===0||e.columns.some(i=>i.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:r,keepRenderedRows:!0,animate:t})}onSortChanged(){const e=nI(this.gos);this.refreshModel({step:"sort",keepRenderedRows:!0,animate:e})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(e){const t=new Mz(!1,this.rootNode);return e||(t.active=!1),t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:n,rowDataUpdated:r}=e;return!(!t||n||!r||t.removals.size||t.adds.size)}refreshModel(e){if(!this.rootNode)return;const t=e.changedPath??(e.changedPath=this.createChangePath(!e.newData&&!!e.rowDataUpdated));if(this.nodeManager.refreshModel?.(e,this.started),this.eventSvc.dispatchEvent({type:"beforeRefreshModel",params:e}),!this.started||(e.rowDataUpdated&&this.eventSvc.dispatchEvent({type:"rowDataUpdated"}),this.isRefreshingModel||this.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(e)))return;switch(this.isRefreshingModel=!0,e.step){case"group":this.doRowGrouping(e.changedRowNodes,t,!!e.rowNodesOrderChanged,!!e.afterColumnsChanged);case"filter":this.doFilter(t);case"pivot":this.doPivot(t);case"aggregate":this.doAggregate(t);case"filter_aggregates":this.doFilterAggregates(t);case"sort":this.doSort(e.changedRowNodes,t);case"map":this.doRowsToDisplay()}const n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(t,n),this.isRefreshingModel=!1,this.eventSvc.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}isEmpty(){return!this.rootNode?.allLeafChildren?.length||!this.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let n=!1,r=!1;const i=[],o=bz(this.gos);return this.forEachNodeAfterFilterAndSort(a=>{if(r)return;if(n&&(a===t||a===e)&&(r=!0,a.group&&o)){i.push(...a.allLeafChildren);return}if(!n){if(a!==t&&a!==e)return;n=!0}if(!a.group||!o){i.push(a);return}}),i}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay;if(this.isEmpty()||t.length===0)return-1;let n=0,r=t.length-1;if(e<=0)return 0;if(zr(t).rowTop<=e)return t.length-1;let o=-1,a=-1;for(;;){const s=Math.floor((n+r)/2),l=t[s];if(this.isRowInPixel(l,e)||(l.rowTop<e?n=s+1:l.rowTop>e&&(r=s-1),o===n&&a===r))return s;o=n,a=r}}isRowInPixel(e,t){const n=e.rowTop,r=e.rowTop+e.rowHeight;return n<=t&&r>t}forEachLeafNode(e){this.rootNode?.allLeafChildren?.forEach((t,n)=>e(t,n))}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){this.rowsToDisplay.forEach(e)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,n=>n.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,n=>n.childrenAfterSort)}forEachPivotNode(e,t=!1,n=!1){const{colModel:r,rowGroupColsSvc:i}=this.beans;if(!r.isPivotMode())return;if(!i?.columns.length){e(this.rootNode,0);return}const o=n?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,a=>a.leafGroup?null:a[o])}depthFirstSearchRowNodes(e,t=!1,n=o=>o.childrenAfterGroup,r=this.rootNode,i=0){let o=i;if(!r)return o;const a=r===this.rootNode;a||e(r,o++);const{footerSvc:s}=this.beans;if(r.hasChildren()&&!r.footer){const l=n(r);if(l){o=s?.addTotalRows(o,r,e,t,a,"top")??o;for(const c of l)o=this.depthFirstSearchRowNodes(e,t,n,c,o);return s?.addTotalRows(o,r,e,t,a,"bottom")??o}}return o}doAggregate(e){const t=this.rootNode;t&&this.aggStage?.execute({rowNode:t,changedPath:e})}doFilterAggregates(e){const t=this.rootNode;this.filterAggStage?this.filterAggStage.execute({rowNode:t,changedPath:e}):t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){this.sortStage?this.sortStage.execute({rowNode:this.rootNode,changedRowNodes:e,changedPath:t}):t.forEachChangedNodeDepthFirst(n=>{n.childrenAfterSort=n.childrenAfterAggFilter.slice(0),Jnt(n)})}doRowGrouping(e,t,n,r){const i=this.rootNode;if(!this.groupStage?.execute({rowNode:i,changedPath:t,changedRowNodes:e,rowNodesOrderChanged:n,afterColumnsChanged:r})&&!this.nodeManager.treeData){const a=i.sibling;i.childrenAfterGroup=i.allLeafChildren,a&&(a.childrenAfterGroup=i.childrenAfterGroup),i.updateHasChildren()}this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){this.filterStage?this.filterStage.execute({rowNode:this.rootNode,changedPath:e}):e.forEachChangedNodeDepthFirst(t=>{t.childrenAfterFilter=t.childrenAfterGroup,Int(t)},!0)}doPivot(e){this.pivotStage?.execute({rowNode:this.rootNode,changedPath:e})}getRowNode(e){if(typeof e=="string"&&e.indexOf(pW)==0){let n;return this.forEachNode(r=>{r.id===e&&(n=r)}),n}return this.nodeManager.getRowNode(e)}batchUpdateRowData(e,t){if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];const n=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout(()=>{this.isAlive()&&this.executeBatchUpdateRowData()},n)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){this.valueCache?.onDataChanged();const e=[],t=[],n=new pre;let r=!1;this.rowDataTransactionBatch?.forEach(i=>{this.rowNodesCountReady=!0;const{rowNodeTransaction:o,rowsInserted:a}=this.nodeManager.updateRowData(i.rowDataTransaction,n);a&&(r=!0),t.push(o),i.callback&&e.push(i.callback.bind(null,o))}),this.commitTransactions(r,n),e.length>0&&window.setTimeout(()=>{e.forEach(i=>i())},0),t.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:t}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(e){this.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const t=new pre,{rowNodeTransaction:n,rowsInserted:r}=this.nodeManager.updateRowData(e,t);return this.commitTransactions(r,t),n}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,rowNodesOrderChanged:e,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:t,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){const{flattenStage:e,rootNode:t}=this;let n;if(e)n=e.execute({rowNode:t});else{n=t?.childrenAfterSort??[];for(const r of n)r.setUiLevel(0)}this.rowsToDisplay=n}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0),e.sibling&&e.sibling.setRowHeight(e.sibling.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),t.sibling&&t.sibling.setRowHeight(t.sibling.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){if(e.rowHeightChanged){if(this.beans.rowAutoHeight?.active)return;this.resetRowHeights()}}onGridReady(){this.started||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.clearHighlight(),this.started=!1,this.rootNode=null,this.nodeManager=null,this.rowDataTransactionBatch=null,this.orderedStages=my,this.rowsToDisplay=my}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}};function qjt(e){e.expansionSvc?.onGroupExpandedOrCollapsed()}function Bjt(e,t){const n=Pm(e);n&&((!t||t==="everything")&&(t="group"),n.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))}function jjt(e){return Pm(e)?.isEmpty()??!0}function Hjt(e,t){Pm(e)?.forEachLeafNode(t)}function Vjt(e,t){Pm(e)?.forEachNodeAfterFilter(t)}function Gjt(e,t){Pm(e)?.forEachNodeAfterFilterAndSort(t)}function $jt(e){if(e.rowAutoHeight?.active){ut(3);return}Pm(e)?.resetRowHeights()}function Ujt(e,t){return e.frameworkOverrides.wrapIncoming(()=>Pm(e)?.updateRowData(t))}function Xjt(e,t,n){e.frameworkOverrides.wrapIncoming(()=>Pm(e)?.batchUpdateRowData(t,n))}function Yjt(e){e.frameworkOverrides.wrapIncoming(()=>Pm(e)?.flushAsyncTransactions())}function Kjt(e){return e.selectionSvc?.getBestCostNodeSelection()}var Qjt={moduleName:"ClientSideRowModel",version:Jn,rowModels:["clientSide"],beans:[kjt,Wjt,_jt],dependsOn:[Lye]},Zjt={moduleName:"ClientSideRowModelApi",version:Jn,apiFunctions:{onGroupExpandedOrCollapsed:qjt,refreshClientSideRowModel:Bjt,isRowDataEmpty:jjt,forEachLeafNode:Hjt,forEachNodeAfterFilter:Vjt,forEachNodeAfterFilterAndSort:Gjt,resetRowHeights:$jt,applyTransaction:Ujt,applyTransactionAsync:Xjt,flushAsyncTransactions:Yjt,getBestCostNodeSelection:Kjt},dependsOn:[Qnt]},Jjt=class extends dt{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){const{allColumns:n,columnKeys:r,skipRowGroups:i,exportRowNumbers:o}=t,a=this.getColumnsToExport({allColumns:n,skipRowGroups:i,columnKeys:r,exportRowNumbers:o});return[this.prepareSession(a),this.prependContent(t),this.exportColumnGroups(t,a),this.exportHeaders(t,a),this.processPinnedTopRows(t,a),this.processRows(t,a),this.processPinnedBottomRows(t,a),this.appendContent(t)].reduce((s,l)=>l(s),e).parse()}processRow(e,t,n,r){const i=t.shouldRowBeSkipped||(()=>!1),a=t.rowPositions!=null||!!t.onlySelected,s=this.gos.get("groupHideOpenParents")&&!a,l=this.colModel.isPivotMode()?r.leafGroup:!r.group,c=!!r.footer,u=r.allChildrenCount===1&&r.childrenAfterGroup?.length===1&&gkt(this.gos,r);if(!l&&!c&&(t.skipRowGroups||u||s)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&r.rowPinned==="top"||t.skipPinnedBottom&&r.rowPinned==="bottom"||r.stub||r.level===-1&&!l&&!c||i(Vn(this.gos,{node:r})))return;const h=e.onNewBodyRow(r);if(n.forEach((g,m)=>{h.onColumn(g,m,r)}),t.getCustomContentBelowRow){const g=t.getCustomContentBelowRow(Vn(this.gos,{node:r}));g&&e.addCustomContent(g)}}appendContent(e){return t=>{const n=e.appendContent;return n&&t.addCustomContent(n),t}}prependContent(e){return t=>{const n=e.prependContent;return n&&t.addCustomContent(n),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return n=>{if(!e.skipColumnGroupHeaders){const r=new Vet,{colGroupSvc:i}=this.beans,o=i?i.createColumnGroups({columns:t,idCreator:r,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(o,n,e.processGroupHeaderCallback)}return n}}exportHeaders(e,t){return n=>{if(!e.skipColumnHeaders){const r=n.onNewHeaderRow();t.forEach((i,o)=>{r.onColumn(i,o,void 0)})}return n}}processPinnedTopRows(e,t){return n=>{const r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(i=>i.rowPinned==="top").sort((i,o)=>i.rowIndex-o.rowIndex).map(i=>this.pinnedRowModel?.getPinnedTopRow(i.rowIndex)).forEach(r):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",r),n}}processRows(e,t){return n=>{const r=this.rowModel,i=oa(this.gos),o=Au(this.gos),a=!i&&e.onlySelected,s=this.processRow.bind(this,n,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)return e.rowPositions.filter(c=>c.rowPinned==null).sort((c,u)=>c.rowIndex-u.rowIndex).map(c=>r.getRow(c.rowIndex)).forEach(s),n;if(this.colModel.isPivotMode())return i?r.forEachPivotNode(s,!0,l==="filteredAndSorted"):o?r.forEachNodeAfterFilterAndSort(s,!0):r.forEachNode(s),n;if(e.onlySelectedAllPages||a){const c=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(c),c.forEach(s)}else l==="all"?r.forEachNode(s):i||o?r.forEachNodeAfterFilterAndSort(s,!0):r.forEachNode(s);return n}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:n}=this.beans;if(!t||!n)return;const r=t.getSortOptions(),i=(o,a)=>o.rowIndex!=null&&a.rowIndex!=null?o.rowIndex-a.rowIndex:o.level===a.level?o.parent?.id===a.parent?.id?n.compareRowNodes(r,{rowNode:o,currentPos:o.rowIndex??-1},{rowNode:a,currentPos:a.rowIndex??-1}):i(o.parent,a.parent):o.level>a.level?i(o.parent,a):i(o,a.parent);e.sort(i)}processPinnedBottomRows(e,t){return n=>{const r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(i=>i.rowPinned==="bottom").sort((i,o)=>i.rowIndex-o.rowIndex).map(i=>this.pinnedRowModel?.getPinnedBottomRow(i.rowIndex)).forEach(r):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",r),n}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:n=!1,exportRowNumbers:r=!1,columnKeys:i}=e,{colModel:o,gos:a,visibleCols:s}=this,l=o.isPivotMode(),c=p=>f3(p)?!1:!p0(p)||r;if(i&&i.length)return o.getColsForKeys(i).filter(c);const u=a.get("treeData");let d=[];return t&&!l?d=o.getCols():d=s.allCols,d=d.filter(p=>c(p)&&(n&&!u?!MK(p):!0)),d}recursivelyAddHeaderGroups(e,t,n){const r=[];e.forEach(i=>{const o=i;o.getChildren&&o.getChildren().forEach(a=>r.push(a))}),e.length>0&&Pl(e[0])&&this.doAddHeaderHeader(t,e,n),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)}doAddHeaderHeader(e,t,n){const r=e.onNewHeaderGroupingRow();let i=0;t.forEach(o=>{const a=o;let s;n?s=n(Vn(this.gos,{columnGroup:a})):s=this.beans.colNames.getDisplayNameForColumnGroup(a,"header");const l=a.getLeafColumns().reduce((c,u,d,p)=>{let h=zr(c);return u.getColumnGroupShow()==="open"?(!h||h[1]!=null)&&(h=[d],c.push(h)):h&&h[1]==null&&(h[1]=d-1),d===p.length-1&&h&&h[1]==null&&(h[1]=d),c},[]);r.onColumn(a,s||"",i++,a.getLeafColumns().length-1,l)})}},ert={moduleName:"SharedExport",version:Jn,beans:[Jjt]},tRe=`\r
`,eHt=class extends Rnt{constructor(e){super(e),this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:n}=e;this.suppressQuotes=t,this.columnSeparator=n}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,tRe),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((n,r)=>{r!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(n.data.value||""),n.mergeAcross&&this.appendEmptyCells(n.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,n,r){n!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,n){t!=0&&(this.result+=this.columnSeparator);const r=this.extractRowCellValue(e,t,t,"csv",n);this.result+=this.putInQuotes(r.valueFormatted??r.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():(ut(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=tRe),this.isFirstLine=!1}},tHt=class extends Ent{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){ut(51);return}const t=this.getMergedParams(e),n=this.getData(t),r=new Blob(["\uFEFF",n],{type:"text/plain"}),i=typeof t.fileName=="function"?t.fileName(Vn(this.gos,{})):t.fileName;Nye(this.getFileName(i),r)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const n=t?Object.assign({},e):this.getMergedParams(e);return this.getData(n)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:n,rowGroupColsSvc:r,valueSvc:i,gos:o}=this,{processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:u,columnSeparator:d}=e;return new eHt({colModel:t,colNames:n,valueSvc:i,gos:o,processCellCallback:a||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:u||!1,columnSeparator:d||",",rowGroupColsSvc:r})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function nHt(e,t){return e.csvCreator?.getDataAsCsv(t)}function rHt(e,t){e.csvCreator?.exportDataAsCsv(t)}var trt={moduleName:"CsvExport",version:Jn,beans:[tHt],apiFunctions:{getDataAsCsv:nHt,exportDataAsCsv:rHt},dependsOn:[ert]},iHt=class extends dt{constructor(e,t,n){super(),this.id=e,this.parentCache=t,this.params=n,this.state="needsLoading",this.version=0,this.startRow=e*n.blockSize,this.endRow=this.startRow+n.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})}isRequestMostRecentAndLive(e){const t=e===this.version,n=this.isAlive();return t&&n}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:n,beans:r,rowNodes:i}=this;for(let o=0;o<e;o++){const a=n+o,s=new vp(r);s.setRowHeight(t),s.uiLevel=0,s.setRowIndex(a),s.setRowTop(t*a),i.push(s)}}getBlockStateJson(){const{id:e,startRow:t,endRow:n,state:r}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:n,pageStatus:r}}}setDataAndId(e,t,n){Ut(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();if(Yi(this.params.datasource.getRows)){ut(90);return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:n,params:{sortModel:r,filterModel:i},gos:o}=this;return{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,n),failCallback:this.pageLoadFailed.bind(this,n),sortModel:r,filterModel:i,context:Vn(o,{}).context}}forEachNode(e,t,n){this.rowNodes.forEach((r,i)=>{this.startRow+i<n&&e(r,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const n=e-this.startRow;return this.rowNodes[n]}processServerResult(e){const{rowNodes:t,beans:n}=this;t.forEach((i,o)=>{const a=e.rowData?e.rowData[o]:void 0;!i.id&&i.alreadyRendered&&a&&(t[o]=new vp(n),t[o].setRowIndex(i.rowIndex),t[o].setRowTop(i.rowTop),t[o].setRowHeight(i.rowHeight),i.clearRowTopAndRowIndex()),this.setDataAndId(t[o],a,this.startRow+o)});const r=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,r)}destroy(){this.rowNodes.forEach(e=>{e.clearRowTopAndRowIndex()}),super.destroy()}},oHt=2,aHt=class extends dt{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const n=Math.floor(e/this.params.blockSize);let r=this.blocks[n];if(!r){if(t)return;r=this.createBlock(n)}return r.getRow(e)}createBlock(e){const t=this.params,n=this.createBean(new iHt(e,this,t));return this.blocks[n.id]=n,this.blockCount++,this.purgeBlocksIfNeeded(n),t.rowNodeBlockLoader.addBlock(n),n}refreshCache(){if(this.blockCount==0){this.purgeCache();return}this.getBlocksInOrder().forEach(t=>t.setStateWaitingToLoad()),this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){this.getBlocksInOrder().forEach(e=>this.destroyBlock(e)),super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(Vx(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(a=>a!=e),n=(a,s)=>s.lastAccessed-a.lastAccessed;t.sort(n);const r=this.params.maxBlocksInCache>0,i=r?this.params.maxBlocksInCache-1:null,o=oHt-1;t.forEach((a,s)=>{const l=a.state==="needsLoading"&&s>=o,c=r?s>=i:!1;if(l||c){if(this.isBlockCurrentlyDisplayed(a)||this.isBlockFocused(a))return;this.removeBlockFromCache(a)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;const{startRow:n,endRow:r}=e;return t.rowIndex>=n&&t.rowIndex<r}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:n}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,n-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:n,overflowSize:r}=this.params,o=(e.id+1)*n+r;this.rowCount<o&&(this.rowCount=o)}}setRowCount(e,t){this.rowCount=e,Ut(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};this.getBlocksInOrder().forEach(n=>n.forEachNode(e,t,this.rowCount))}getBlocksInOrder(){const e=(n,r)=>n.id-r.id;return Object.values(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];this.getBlocksInOrder().forEach(t=>{t.id*this.params.blockSize>=this.rowCount&&e.push(t)}),e.length>0&&e.forEach(t=>this.destroyBlock(t))}purgeCache(){this.getBlocksInOrder().forEach(e=>this.removeBlockFromCache(e)),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const n=[];let r=-1,i=!1;const o={value:0};let a=!1;return this.getBlocksInOrder().forEach(l=>{if(!a){if(i&&r+1!==l.id){a=!0;return}r=l.id,l.forEachNode(c=>{const u=c===e||c===t;(i||u)&&n.push(c),u&&(i=!i)},o,this.rowCount)}}),a||i?[]:n}},sHt=class extends dt{constructor(){super(...arguments),this.beanName="rowModel"}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){this.gos.get("rowModelType")==="infinite"&&(this.rowHeight=sp(this.beans),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache()))}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=sp(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;this.cacheParams?e=!gz(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]):e=!0,e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;qy(this.gos)!=null||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:n,rowNodeBlockLoader:r,eventSvc:i,gos:o}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:n?.getSortModel()??[],rowNodeBlockLoader:r,initialRowCount:o.get("infiniteInitialRowCount"),maxBlocksInCache:o.get("maxBlocksInCache"),rowHeight:sp(e),overflowSize:o.get("cacheOverflowSize"),blockSize:o.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new aHt(this.cacheParams)),i.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){const t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}};function lHt(e){PK(e)?.refreshCache()}function cHt(e){PK(e)?.purgeCache()}function uHt(e){return PK(e)?.getRowCount()}var dHt=class extends dt{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=fet(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=Ml(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){Ou(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){Vx(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(n=>n.state==="needsLoading").slice(0,e);this.activeBlockLoadsCount+=t.length,t.forEach(n=>n.load()),this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:n,state:r}=t.getBlockStateJson();e[n]=r}),e}printCacheStatus(){Vx(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},pHt={moduleName:"InfiniteRowModelCore",version:Jn,rowModels:["infinite"],beans:[sHt,dHt]},hHt={moduleName:"InfiniteRowModel",version:Jn,apiFunctions:{refreshInfiniteCache:lHt,purgeInfiniteCache:cHt,getInfiniteRowCount:uHt},dependsOn:[pHt,Znt]},fHt="↑",gHt="↓",mHt={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},vHt=class extends Gt{constructor(){super(mHt),this.eValue=at,this.eDelta=at,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const n=Math.abs(t),r=e.formatValue(n),i=Ut(r)?r:n,o=t>=0,a=this.eDelta;o?a.textContent=fHt+i:a.textContent=gHt+i,a.classList.toggle("ag-value-change-delta-up",o),a.classList.toggle("ag-value-change-delta-down",!o)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),Xi(this.eDelta)}refresh(e,t=!1){const{value:n,valueFormatted:r}=e,{eValue:i,lastValue:o,beans:a}=this;if(n===o||(Ut(r)?i.textContent=r:Ut(n)?i.textContent=n:Xi(i),a.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof n=="number"&&typeof o=="number"){const s=n-o;this.showDelta(e,s)}return o&&i.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=n,!0}},bHt=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}",yHt={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},MHt=class extends Gt{constructor(){super(yHt),this.eCurrent=at,this.refreshCount=0,this.registerCSS(bHt)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);const{beans:t,eCurrent:n}=this,r=Nr({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=r,r.textContent=n.textContent,this.getGui().insertBefore(r,n),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let n=e.value;if(Yi(n)&&(n=""),n===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=n;const r=this.eCurrent;return Ut(e.valueFormatted)?r.textContent=e.valueFormatted:Ut(e.value)?r.textContent=n:Xi(r),!0}},CHt=class extends dt{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,n=this.beans.gos.get("cellFlashDuration"),r=this.beans.gos.get("cellFadeDuration")){const i=this.animations[t];i.delete(e);const o=Date.now(),a=o+n,s=o+n+r,l={phase:"flash",flashEndTime:a,fadeEndTime:s};i.set(e,l);const c=`ag-cell-${t}`,u=`${c}-animation`,{comp:d,eGui:{style:p}}=e;d.toggleCss(c,!0),d.toggleCss(u,!1),p.removeProperty("transition"),p.removeProperty("transition-delay"),this.nextAnimationTime&&a+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),n)}),this.nextAnimationTime=a)}advanceAnimations(){const e=Date.now();let t=null;for(const n of Object.keys(this.animations)){const r=this.animations[n],i=`ag-cell-${n}`,o=`${i}-animation`;for(const[a,s]of r){if(!a.isAlive()||!a.comp){r.delete(a);continue}const{phase:l,flashEndTime:c,fadeEndTime:u}=s,d=l==="flash"?c:u;if(!(e+15>=d)){t=Math.min(d,t??1/0);continue}const{comp:h,eGui:{style:g}}=a;switch(l){case"flash":h.toggleCss(i,!1),h.toggleCss(o,!0),g.transition=`background-color ${u-c}ms`,g.transitionDelay=`${c-e}ms`,t=Math.min(u,t??1/0),s.phase="fade";break;case"fade":h.toggleCss(i,!1),h.toggleCss(o,!1),g.removeProperty("transition"),g.removeProperty("transition-delay"),r.delete(a);break}}}t==null?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const n=EC(e.cellPosition);t.cells[n]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations))this.animations[e].clear()}};function xHt(e,t={}){const{cellFlashSvc:n}=e;n&&e.frameworkOverrides.wrapIncoming(()=>{e.rowRenderer.getCellCtrls(t.rowNodes,t.columns).forEach(r=>n.flashCell(r,t))})}var nrt={moduleName:"HighlightChanges",version:Jn,beans:[CHt],userComponents:{agAnimateShowChangeCellRenderer:vHt,agAnimateSlideCellRenderer:MHt},apiFunctions:{flashCells:xHt}};function wHt(e){return e.stateSvc?.getState()??{}}function SHt(e){switch(e={...e},e.version||(e.version="32.1.0"),e.version){case"32.1.0":e=AHt(e)}return e}function AHt(e){return e.cellSelection=OHt(e,"rangeSelection"),e}function OHt(e,t){if(e&&typeof e=="object")return e[t]}var zHt=class extends dt{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=Ml(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=Ml(this,()=>{this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState())},0),this.onRowSelectedDebounced=Ml(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){this.isClientSideRowModel=oa(this.gos),this.cachedState=this.getInitialState(),this.setCachedStateValue("version",Jn);const e=this.suppressEventsAndDispatchInitEvent.bind(this);this.beans.ctrlsSvc.whenReady(this,()=>e(()=>this.setupStateOnGridReady()));const[t,n,r]=this.addManagedEventListeners({newColumnsLoaded:({source:i})=>{i==="gridInitializing"&&(t(),e(()=>this.setupStateOnColumnsInitialised()))},rowCountReady:()=>{n?.(),e(()=>this.setupStateOnRowCountReady())},firstDataRendered:()=>{r?.(),e(()=>this.setupStateOnFirstDataRendered())}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getInitialState(){return SHt(this.gos.get("initialState")??{})}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){const e=()=>this.updateCachedState("sideBar",this.getSideBarState());e(),this.addManagedEventListeners({toolPanelVisibleChanged:e,sideBarUpdated:e})}setupStateOnColumnsInitialised(){const e=this.getInitialState();this.setColumnState(e),this.setColumnGroupState(e),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState());const t=n=>()=>this.updateColumnState([n]);this.addManagedEventListeners({columnValueChanged:t("aggregation"),columnMoved:t("columnOrder"),columnPinned:t("columnPinning"),columnResized:t("columnSizing"),columnVisible:t("columnVisibility"),columnPivotChanged:t("pivot"),columnPivotModeChanged:t("pivot"),columnRowGroupChanged:t("rowGroup"),sortChanged:t("sort"),newColumnsLoaded:()=>this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setupStateOnRowCountReady(){const{filter:e,rowGroupExpansion:t,rowSelection:n,pagination:r}=this.getInitialState();e&&this.setFilterState(e),t&&this.setRowGroupExpansionState(t),n&&this.setRowSelectionState(n),r&&this.setPaginationState(r);const i=this.updateCachedState.bind(this);i("filter",this.getFilterState()),i("rowGroupExpansion",this.getRowGroupExpansionState()),i("rowSelection",this.getRowSelectionState()),i("pagination",this.getPaginationState());const o=()=>{this.updateRowGroupExpansionStateTimer=0,i("rowGroupExpansion",this.getRowGroupExpansionState())};this.addManagedEventListeners({filterChanged:()=>i("filter",this.getFilterState()),rowGroupOpened:()=>this.onRowGroupOpenedDebounced(),expandOrCollapseAll:o,columnRowGroupChanged:o,rowDataUpdated:()=>{this.gos.get("groupDefaultExpanded")!==0&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(o)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:a=>{(a.newPage||a.newPageSize)&&i("pagination",this.getPaginationState())}})}setupStateOnFirstDataRendered(){const{scroll:e,cellSelection:t,focusedCell:n,columnOrder:r,rowPinning:i}=this.getInitialState();n&&this.setFocusedCellState(n),t&&this.setCellSelectionState(t),e&&this.setScrollState(e),i&&this.setRowPinningState(i),this.setColumnPivotState(!!r?.orderedColIds);const o=this.updateCachedState.bind(this);o("sideBar",this.getSideBarState()),o("focusedCell",this.getFocusedCellState());const a=this.getRangeSelectionState();o("rangeSelection",a),o("cellSelection",a),o("scroll",this.getScrollState()),this.addManagedEventListeners({cellFocused:()=>o("focusedCell",this.getFocusedCellState()),cellSelectionChanged:s=>{if(s.finished){const l=this.getRangeSelectionState();o("rangeSelection",l),o("cellSelection",l)}},bodyScrollEnd:()=>o("scroll",this.getScrollState()),pinnedRowsChanged:()=>o("rowPinning",this.getRowPinningState())})}getColumnState(){const e=this.beans;return s6t(C$(e),e.colModel.isPivotMode())}setColumnState(e){const{sort:t,rowGroup:n,aggregation:r,pivot:i,columnPinning:o,columnVisibility:a,columnSizing:s,columnOrder:l,partialColumnState:c}=e,u={},d=v=>{let y=u[v];return y||(y={colId:v},u[v]=y,y)},p=c?{}:{sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};t&&(t.sortModel.forEach(({colId:v,sort:y},M)=>{const C=d(v);C.sort=y,C.sortIndex=M}),p.sort=null,p.sortIndex=null),n&&(n.groupColIds.forEach((v,y)=>{const M=d(v);M.rowGroup=!0,M.rowGroupIndex=y}),p.rowGroup=null,p.rowGroupIndex=null),r&&(r.aggregationModel.forEach(({colId:v,aggFunc:y})=>{d(v).aggFunc=y}),p.aggFunc=null),i&&(i.pivotColIds.forEach((v,y)=>{const M=d(v);M.pivot=!0,M.pivotIndex=y}),this.gos.updateGridOptions({options:{pivotMode:i.pivotMode},source:"gridInitializing"}),p.pivot=null,p.pivotIndex=null),o&&(o.leftColIds.forEach(v=>{d(v).pinned="left"}),o.rightColIds.forEach(v=>{d(v).pinned="right"}),p.pinned=null),a&&(a.hiddenColIds.forEach(v=>{d(v).hide=!0}),p.hide=null),s&&(s.columnSizingModel.forEach(({colId:v,flex:y,width:M})=>{const C=d(v);C.flex=y??null,C.width=M}),p.flex=null);const h=l?.orderedColIds,g=!!h?.length,m=g?h.map(v=>d(v)):Object.values(u);m.length&&(this.columnStates=m,m0(this.beans,{state:m,applyOrder:g,defaultState:p},"gridInitializing"))}setColumnPivotState(e){const t=this.columnStates;this.columnStates=void 0;const n=this.columnGroupStates;this.columnGroupStates=void 0;const r=this.beans,{pivotResultCols:i,colGroupSvc:o}=r;if(i?.isPivotResultColsPresent()){if(t){const a=[];for(const s of t)i.getPivotResultCol(s.colId)&&a.push(s);m0(r,{state:a,applyOrder:e},"gridInitializing")}n&&o?.setColumnGroupState(n,"gridInitializing")}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;const t=e.getColumnGroupState();return l6t(t)}setColumnGroupState(e){const t=this.beans.colGroupSvc;if(!Object.prototype.hasOwnProperty.call(e,"columnGroup")||!t)return;const n=new Set(e.columnGroup?.openColumnGroupIds),i=t.getColumnGroupState().map(({groupId:o})=>{const a=n.has(o);return a&&n.delete(o),{groupId:o,open:a}});n.forEach(o=>{i.push({groupId:o,open:!0})}),i.length&&(this.columnGroupStates=i),t.setColumnGroupState(i,"gridInitializing")}getFilterState(){const e=this.beans.filterManager;let t=e?.getFilterModel();t&&Object.keys(t).length===0&&(t=void 0);const n=e?.getAdvFilterModel()??void 0;return t||n?{filterModel:t,advancedFilterModel:n}:void 0}setFilterState(e){const t=this.beans.filterManager,{filterModel:n,advancedFilterModel:r}=e??{};n&&t?.setFilterModel(n,"columnFilter"),r&&t?.setAdvFilterModel(r,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:n,type:r,startRow:i,endRow:o,columns:a,startColumn:s}=t;return{id:n,type:r,startRow:i,endRow:o,colIds:a.map(l=>l.getColId()),startColId:s.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:n,colModel:r,visibleCols:i}=this.beans;if(!r1(t)||!n)return;const o=[];e.cellRanges.forEach(a=>{const s=[];if(a.colIds.forEach(c=>{const u=r.getCol(c);u&&s.push(u)}),!s.length)return;let l=r.getCol(a.startColId);if(!l){const c=i.allCols,u=new Set(s);l=c.find(d=>u.has(d))}o.push({...a,columns:s,startColumn:l})}),n.setCellRanges(o)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:n}=e?.getVScrollPosition()??{top:0};return n||t?{top:n,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:n}=e,{frameworkOverrides:r,rowRenderer:i,animationFrameSvc:o,ctrlsSvc:a}=this.beans;r.wrapIncoming(()=>{a.get("center").setCenterViewportScrollLeft(n),a.getScrollFeature()?.setVerticalScrollPosition(t),i.redraw({afterScroll:!0}),o?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:n,rowPinned:r}=e;return{colId:t.getColId(),rowIndex:n,rowPinned:r}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{colId:t,rowIndex:n,rowPinned:r}=e,{focusSvc:i,colModel:o}=this.beans;i.setFocusedCell({column:o.getCol(t),rowIndex:n,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const n=e.getCurrentPage(),r=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(!(!n&&!r))return{page:n,pageSize:r}}setPaginationState(e){const{pagination:t,gos:n}=this.beans;t&&(e.pageSize&&!n.get("paginationAutoPageSize")&&t.setPageSize(e.pageSize,"initialState"),typeof e.page=="number"&&t.setPage(e.page))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e){this.beans.selectionSvc?.setSelectionState(e,"gridInitializing")}getRowGroupExpansionState(){const{expansionSvc:e,rowModel:t}=this.beans;if(!e)return;const n=[];return t.forEachNode(({expanded:r,id:i})=>{r&&i&&n.push(i)}),n.length?{expandedRowGroupIds:n}:void 0}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){this.beans.pinnedRowModel?.setPinnedState(e)}setRowGroupExpansionState(e){this.beans.expansionSvc?.expandRows(e.expandedRowGroupIds)}updateColumnState(e){const t=this.getColumnState();let n=!1;const r=this.cachedState;for(const i of Object.keys(t)){const o=t[i];gz(o,r[i])||(n=!0)}this.cachedState={...r,...t},n&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const n=this.cachedState[e];this.setCachedStateValue(e,t),gz(t,n)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;e.forEach(t=>{switch(t){case"rowSelection":this.setCachedStateValue(t,this.getRowSelectionState());break}}),e.clear()}dispatchStateUpdateEvent(e){this.suppressEvents||(e.forEach(t=>this.queuedUpdateSources.add(t)),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}suppressEventsAndDispatchInitEvent(e){this.suppressEvents=!0;const t=this.beans.colAnimation;t?.setSuppressAnimation(!0),e(),setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(t?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent(["gridInitializing"]))})}},THt={moduleName:"GridState",version:Jn,beans:[zHt],apiFunctions:{getState:wHt}};function EHt(e){return e.rowModel.isLastRowIndexKnown()}function RHt(e){return e.pagination?.getPageSize()??100}function IHt(e){return e.pagination?.getCurrentPage()??0}function PHt(e){return e.pagination?.getTotalPages()??1}function DHt(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function kHt(e){e.pagination?.goToNextPage()}function LHt(e){e.pagination?.goToPreviousPage()}function _Ht(e){e.pagination?.goToFirstPage()}function NHt(e){e.pagination?.goToLastPage()}function FHt(e,t){e.pagination?.goToPage(t)}var WHt=class extends dt{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,n=()=>{const r=Math.max(sp(t),1),i=Math.floor(e/r);t.pagination.setPageSize(i,"autoCalculated")};this.isBodyRendered?Ml(this,n,50)():(n(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},QL="paginationPageSizeSelector",qHt={tag:"span",cls:"ag-paging-page-size"},BHt=class extends Gt{constructor(){super(qHt),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(QL,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){Xi(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(QL)!==!1}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),n=!t||!e.includes(t);if(n){const i=this.gos.exists("paginationPageSize"),o=this.gos.get(QL)!==!0;ut(94,{pageSizeSet:i,pageSizesSet:o,pageSizeOptions:e,paginationPageSizeOption:t}),o||ut(95,{paginationPageSizeOption:t,paginationPageSizeSelector:QL}),e.unshift("")}const r=String(n?"":t);this.selectPageSizeComp?(yd(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(r,!0)):this.createPageSizeSelectorComp(e,r),this.hasEmptyOption=n}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const n=this.getLocaleTextFunc(),r=n("pageSizeSelectorLabel","Page Size:"),i=n("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new l1).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(i).setLabel(r).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(QL);return!Array.isArray(t)||!t?.length?e:[...t].sort((n,r)=>n-r)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},jHt={selector:"AG-PAGE-SIZE-SELECTOR",component:BHt},HHt=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:max(var(--ag-row-height),22px);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}",VHt=class extends Vb{constructor(){super(),this.btFirst=at,this.btPrevious=at,this.btNext=at,this.btLast=at,this.lbRecordCount=at,this.lbFirstRowOnPage=at,this.lbLastRowOnPage=at,this.lbCurrent=at,this.lbTotal=at,this.pageSizeComp=at,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(HHt)}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[jHt]);const{btFirst:t,btPrevious:n,btNext:r,btLast:i}=this;this.activateTabIndex([t,n,r,i]),t.insertAdjacentElement("afterbegin",er(e?"last":"first",this.beans)),n.insertAdjacentElement("afterbegin",er(e?"next":"previous",this.beans)),r.insertAdjacentElement("afterbegin",er(e?"previous":"next",this.beans)),i.insertAdjacentElement("afterbegin",er(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:o=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(o):rtt(this.beans,o),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){const t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){this.areListenersSetup||(this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)}),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach(e=>{const{el:t,fn:n}=e;this.addManagedListeners(t,{click:n,keydown:r=>{(r.key===Qe.ENTER||r.key===Qe.SPACE)&&(r.preventDefault(),n())}})}),ntt(this.beans,this,this.getGui()),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");return t?t({value:e}):Cz(e,this.getLocaleTextFunc.bind(this))}getTemplate(){const e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),n=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const r=this.isZeroPagesToDisplay(),i=e===n-1;this.nextButtonDisabled=i||r,this.lastButtonDisabled=!t||r||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){p$(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&t===0}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),n=this.pagination.getMasterRowCount(),r=e?n:null,i=this.pagination.getCurrentPage(),o=this.pagination.getPageSize();let a,s;this.isZeroPagesToDisplay()?a=s=0:(a=o*i+1,s=a+o-1,e&&s>r&&(s=r));const l=a+o-1,c=!e&&n<l,u=this.formatNumber(a);this.lbFirstRowOnPage.textContent=u;let d;const p=this.getLocaleTextFunc();c?d=p("pageLastRowUnknown","?"):d=this.formatNumber(s),this.lbLastRowOnPage.textContent=d;const g=t>0?i+1:0,m=this.formatNumber(g);this.lbCurrent.textContent=m;let v,y;if(e)v=this.formatNumber(t),y=this.formatNumber(r);else{const M=p("more","more");v=M,y=M}this.lbTotal.textContent=v,this.lbRecordCount.textContent=y,this.announceAriaStatus(u,d,y,m,v)}announceAriaStatus(e,t,n,r,i){const o=this.getLocaleTextFunc(),a=o("page","Page"),s=o("to","to"),l=o("of","of"),c=`${e} ${s} ${t} ${l} ${n}`,u=`${a} ${r} ${l} ${i}`;c!==this.ariaRowStatus&&(this.ariaRowStatus=c,this.ariaAnnounce?.announceValue(c,"paginationRow")),u!==this.ariaPageStatus&&(this.ariaPageStatus=u,this.ariaAnnounce?.announceValue(u,"paginationPage"))}setTotalLabelsToZero(){const e=this.formatNumber(0);this.lbFirstRowOnPage.textContent=e,this.lbCurrent.textContent=e,this.lbLastRowOnPage.textContent=e,this.lbTotal.textContent=e,this.lbRecordCount.textContent=e,this.announceAriaStatus(e,e,e,e,e)}},GHt={selector:"AG-PAGINATION",component:VHt},$Ht=class extends dt{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return GHt}isPaginateChildRows(){const e=this.gos;return e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")?!0:e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;!this.active||t===e||typeof t!="number"||(this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0}))}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return this.active?e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return Ut(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:Ut(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:Ut(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:Ut(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const n=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}n!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}const n=this.pageSize,r=t-1;this.totalPages=Math.floor(r/n)+1,this.adjustCurrentPageIfInvalid();const i=this.currentPage,o=n*i;let a=n*(i+1)-1;if(a>r&&(a=r),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(o),a===r)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const s=e.getTopLevelRowDisplayedIndex(a+1);this.bottomDisplayedRowIndex=s-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}const{pageSize:t,currentPage:n}=this,r=e-1;this.totalPages=Math.floor(r/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*n,this.bottomDisplayedRowIndex=t*(n+1)-1,this.bottomDisplayedRowIndex>r&&(this.bottomDisplayedRowIndex=r)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:n=!1,newPageSize:r=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:n,newPageSize:r,keepRenderedRows:t})}},UHt={moduleName:"Pagination",version:Jn,beans:[$Ht,WHt],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:EHt,paginationGetPageSize:RHt,paginationGetCurrentPage:IHt,paginationGetTotalPages:PHt,paginationGetRowCount:DHt,paginationGoToNextPage:kHt,paginationGoToPreviousPage:LHt,paginationGoToFirstPage:_Ht,paginationGoToLastPage:NHt,paginationGoToPage:FHt},dependsOn:[dM]};function XHt(e,t={}){const n=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(n))}function rrt(e,t,n,r,i){t&&(r&&t.parent&&t.parent.level!==-1&&rrt(e,t.parent,n,r,i),t.setExpanded(n,void 0,i))}function YHt(e,t){return e.rowModel.getRowNode(t)}function KHt(e,t,n,r){e.rowRenderer.addRenderedRowListener(t,n,r)}function QHt(e){return e.rowRenderer.getRenderedNodes()}function ZHt(e,t,n){e.rowModel.forEachNode(t,n)}function JHt(e){return e.rowRenderer.firstRenderedRow}function e8t(e){return e.rowRenderer.lastRenderedRow}function t8t(e,t){return e.rowModel.getRow(t)}function n8t(e){return e.rowModel.getRowCount()}var r8t={moduleName:"RowApi",version:Jn,apiFunctions:{redrawRows:XHt,setRowNodeExpanded:rrt,getRowNode:YHt,addRenderedRowListener:KHt,getRenderedNodes:QHt,forEachNode:ZHt,getFirstDisplayedRowIndex:JHt,getLastDisplayedRowIndex:e8t,getDisplayedRowAtIndex:t8t,getDisplayedRowCount:n8t}},i8t={moduleName:"ScrollApi",version:Jn,apiFunctions:{getVerticalPixelRange:BBt,getHorizontalPixelRange:jBt,ensureColumnVisible:Unt,ensureIndexVisible:Xnt,ensureNodeVisible:HBt}};function o8t(e,t,n){if(!t)return;const r=e.ctrlsSvc.getGridBodyCtrl().eGridBody,i=`aria-${t}`;n===null?r.removeAttribute(i):r.setAttribute(i,n)}function a8t(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function s8t(e){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getHeaderRowContainerCtrls().forEach(t=>t.refresh()))}function l8t(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function c8t(e){e.animationFrameSvc?.flushAllFrames()}function u8t(e){return{rowHeight:sp(e),headerHeight:m6(e)}}function d8t(e,t={}){const n=[];if(e.rowRenderer.getCellCtrls(t.rowNodes,t.columns).forEach(o=>{const a=o.getCellRenderer();a!=null&&n.push(yz(a))}),t.columns?.length)return n;const r=[],i=vhe(t.rowNodes);return e.rowRenderer.getAllRowCtrls().forEach(o=>{if(i&&!bhe(o.rowNode,i)||!o.isFullWidth())return;const a=o.getFullWidthCellRenderers();for(let s=0;s<a.length;s++){const l=a[s];l!=null&&r.push(yz(l))}}),[...r,...n]}var p8t={moduleName:"RenderApi",version:Jn,apiFunctions:{setGridAriaProperty:o8t,refreshCells:a8t,refreshHeader:s8t,isAnimationFrameQueueEmpty:l8t,flushAllAnimationFrames:c8t,getSizesForCurrentTheme:u8t,getCellRendererInstances:d8t}};function h8t(e,t){typeof t=="number"?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)}function f8t(e,t,n){e.colAutosize?.autoSizeCols({colKeys:t,skipHeader:n,source:"api"})}function g8t(e,t){e.colAutosize?.autoSizeAllColumns("api",t)}var m8t=class extends dt{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered()})}autoSizeCols(e){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeCols(e));return}const{colKeys:t,skipHeader:n,skipHeaderGroups:r,stopAtGroup:i,source:o="api"}=e,{animationFrameSvc:a,renderStatus:s,colModel:l,autoWidthCalc:c,visibleCols:u}=this.beans;if(a?.flushAllFrames(),this.timesDelayed<5&&s&&!s.areHeaderCellsRendered()){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.autoSizeCols(e)});return}this.timesDelayed=0;const d=[];let p=-1;const h=n??this.gos.get("skipHeaderOnAutoSize"),g=r??h;for(;p!==0;){p=0;const m=[];t.forEach(v=>{if(!v)return;const y=l.getCol(v);if(!y||p0(y)||d.indexOf(y)>=0)return;const M=c.getPreferredWidthForColumn(y,h);if(M>0){const C=v8t(y,M);y.setActualWidth(C,o),d.push(y),p++}m.push(y)}),m.length&&u.refresh(o)}g||this.autoSizeColumnGroupsByColumns(t,o,i),eP(this.eventSvc,d,!0,"autosizeColumns")}autoSizeColumn(e,t,n){e&&this.autoSizeCols({colKeys:[e],skipHeader:n,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,n){const{colModel:r,ctrlsSvc:i}=this.beans,o=new Set;r.getColsForKeys(e).forEach(c=>{let u=c.getParent();for(;u&&u!=n;)u.isPadding()||o.add(u),u=u.getParent()});let s;const l=[];for(const c of o){for(const u of i.getHeaderRowContainerCtrls())if(s=u.getHeaderCtrlForColumn(c),s)break;s&&s.resizeLeafColumnsToFit(t)}return l}autoSizeAllColumns(e,t){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(e,t));return}const n=this.beans.visibleCols.allCols;this.autoSizeCols({colKeys:n,skipHeader:t,source:e})}addColumnAutosize(e,t){const n=this.gos.get("skipHeaderOnAutoSize"),r=()=>{this.autoSizeColumn(t,"uiColumnResized",n)};e.addEventListener("dblclick",r);const i=new sy(e);return i.addEventListener("doubleTap",r),()=>{e.removeEventListener("dblclick",r),i.removeEventListener("doubleTap",r),i.destroy()}}addColumnGroupResize(e,t,n){const r=this.gos.get("skipHeaderOnAutoSize"),i=()=>{const o=[];t.getDisplayedLeafColumns().forEach(s=>{s.getColDef().suppressAutoSize||o.push(s.getColId())}),o.length>0&&this.autoSizeCols({colKeys:o,skipHeader:r,stopAtGroup:t,source:"uiColumnResized"}),n()};return e.addEventListener("dblclick",i),()=>e.removeEventListener("dblclick",i)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;const{ctrlsSvc:n,scrollVisibleSvc:r}=this.beans,i=n.getGridBodyCtrl(),a=i.isVerticalScrollShowing()?r.getScrollbarWidth():0,l=KI(i.eGridBody)-a;if(l>0){this.sizeColumnsToFit(l,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):ut(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",n,r){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,n,r));return}const i={};r&&r?.columnLimits?.forEach(({key:h,...g})=>{i[typeof h=="string"?h:h.getColId()]=g});const o=this.beans.visibleCols.allCols;if(e<=0||!o.length||e===ay(o)&&o.every(g=>{if(g.colDef.suppressSizeToFit)return!0;const m=i?.[g.getId()],v=m?.minWidth??r?.defaultMinWidth,y=m?.maxWidth??r?.defaultMaxWidth,M=g.getActualWidth();return(v==null||M>=v)&&(y==null||M<=y)}))return;const s=[],l=[];o.forEach(h=>{h.getColDef().suppressSizeToFit===!0?l.push(h):s.push(h)});const c=s.slice(0);let u=!1;const d=h=>{Ou(s,h),l.push(h)};for(s.forEach(h=>{h.resetActualWidth(t);const g=i?.[h.getId()],m=g?.minWidth??r?.defaultMinWidth,v=g?.maxWidth??r?.defaultMaxWidth,y=h.getActualWidth();typeof m=="number"&&y<m?h.setActualWidth(m,t,!0):typeof v=="number"&&y>v&&h.setActualWidth(v,t,!0)});!u;){u=!0;const h=e-ay(l);if(h<=0)s.forEach(g=>{const m=i?.[g.getId()]?.minWidth??r?.defaultMinWidth;if(typeof m=="number"){g.setActualWidth(m,t,!0);return}g.setActualWidth(g.minWidth,t)});else{const g=h/ay(s);let m=h;for(let v=s.length-1;v>=0;v--){const y=s[v],M=i?.[y.getId()],C=M?.minWidth??r?.defaultMinWidth,x=M?.maxWidth??r?.defaultMaxWidth,w=y.getMinWidth(),S=y.getMaxWidth(),A=typeof C=="number"&&C>w?C:w,z=typeof x=="number"&&x<S?x:S;let O=Math.round(y.getActualWidth()*g);O<A?(O=A,d(y),u=!1):O>z?(O=z,d(y),u=!1):v===0&&(O=m),y.setActualWidth(O,t,!0),m-=O}}}c.forEach(h=>{h.fireColumnWidthChangedEvent(t)});const p=this.beans.visibleCols;p.setLeftValues(t),p.updateBodyWidths(),!n&&eP(this.eventSvc,c,!0,t)}applyAutosizeStrategy(){const e=this.gos.get("autoSizeStrategy");if(!e)return;const{type:t}=e;setTimeout(()=>{if(t==="fitGridWidth"){const{columnLimits:n,defaultMinWidth:r,defaultMaxWidth:i}=e,o=n?.map(({colId:a,minWidth:s,maxWidth:l})=>({key:a,minWidth:s,maxWidth:l}));this.sizeColumnsToFitGridBody({defaultMinWidth:r,defaultMaxWidth:i,columnLimits:o})}else t==="fitProvidedWidth"&&this.sizeColumnsToFit(e.width,"sizeColumnsToFit")})}onFirstDataRendered(){const e=this.gos.get("autoSizeStrategy");if(e?.type!=="fitCellContents")return;const{colIds:t,skipHeader:n}=e;setTimeout(()=>{t?this.autoSizeCols({colKeys:t,skipHeader:n,source:"autosizeColumns"}):this.autoSizeAllColumns("autosizeColumns",n)})}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach(e=>e()),this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function v8t(e,t){const n=e.getMinWidth();t<n&&(t=n);const r=e.getMaxWidth();return e.isGreaterThanMax(t)&&(t=r),t}var b8t={moduleName:"ColumnAutoSize",version:Jn,beans:[m8t],apiFunctions:{sizeColumnsToFit:h8t,autoSizeColumns:f8t,autoSizeAllColumns:g8t},dependsOn:[Ktt]},y8t=".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}";function M8t(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function C8t(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function x8t(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function w8t(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function S8t(e,t,n){return e.pinnedRowModel?.forEachPinnedRow(t,n)}var A8t={moduleName:"PinnedRow",version:Jn,beans:[A_t],css:[y8t],apiFunctions:{getPinnedTopRowCount:M8t,getPinnedBottomRowCount:C8t,getPinnedTopRow:x8t,getPinnedBottomRow:w8t,forEachPinnedRow:S8t},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},O8t=class extends IN{constructor(e,t,n){super(e.col,e.firstNode,n,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,n,r,i,o,a){this.eWrapper=n,super.setComp(e,t,n,r,i,o,a),this.setAriaRowSpan(),this.refreshAriaRowIndex()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){this.rowNode.rowIndex!=null&&pK(this.eGui,this.rowNode.rowIndex)}setAriaRowSpan(){XDt(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(xK(t)){this.focusedCellPosition=void 0;return}const n=this.isCellFocused();n||(this.focusedCellPosition=void 0),e&&n&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},z8t=class extends E${onRowIndexChanged(){super.onRowIndexChanged(),this.getAllCellCtrls().forEach(e=>e.refreshAriaRowIndex())}getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!(!t||t.firstNode!==this.rowNode))return new O8t(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},T8t=class extends dt{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,n=`${e}Ctrls`,r=this[n],i=r.size,o=this.getAllRelevantRowControls(e),a=new Map;let s=!1;for(const c of o)c.isAlive()&&t?.forEachSpannedColumn(c.rowNode,(u,d)=>{if(a.has(d.firstNode))return;const p=r.get(d.firstNode);if(p){a.set(d.firstNode,p),r.delete(d.firstNode);return}s=!0;const h=new z8t(d.firstNode,this.beans,!1,!1,!1);a.set(d.firstNode,h)});this[n]=a;const l=a.size===i;if(!(!s&&l)){for(const c of r.values())c.destroyFirstPass(!0),c.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,n=t?.getCellSpanByPosition(e);if(!n)return;const r=`${irt(e.rowPinned)}Ctrls`,i=this[r].get(n.firstNode);if(i)return i.getAllCellCtrls().find(o=>o.column===e.column)}getCtrls(e){const t=`${e}Ctrls`;return[...this[t].values()]}destroyRowCtrls(e){const t=`${e}Ctrls`;for(const n of this[t].values())n.destroyFirstPass(!0),n.destroySecondPass();this[t]=new Map}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}},irt=e=>e??"center",E8t=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column!==this.col||e.rowPinned!=this.firstNode.rowPinned?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(e==null)return;let t=0;return this.spannedNodes.forEach(n=>{n!==this.lastNode&&(t+=n.rowHeight)}),e-t}},R8t=class extends dt{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:n,pinnedRowModel:r,rowModel:i,valueSvc:o,pagination:a}}=this,{colDef:s}=t,l=this[`${e}ValueNodeMap`],c=new Map,u=n.getCallback("isFullWidthRow"),d=s.equals,p=s.spanRows,h=typeof p=="function";let g=null,m=null,v;const y=(C,x)=>{g=C,m=null,v=x},M=C=>{const x=!C.isExpandable()&&!C.group&&!C.detail&&(u?!u({rowNode:C}):!0);if(C.rowIndex==null||!x){y(null,null);return}if(g==null||C.level!==g.level||C.footer||m&&C.rowIndex-1!==m?.getLastNode().rowIndex){y(C,o.getValue(t,C));return}const w=o.getValue(t,C);if(h){const S=Vn(n,{valueA:v,nodeA:g,valueB:w,nodeB:C,column:t,colDef:s});if(!p(S)){y(C,w);return}}else if(d?!d(v,w):v!==w){y(C,w);return}if(!m){const S=l?.get(g);S?.firstNode===g?(S.reset(),m=S):m=new E8t(t,g),c.set(g,m)}m.addSpannedNode(C),c.set(C,m)};switch(e){case"center":i.forEachDisplayedNode?.(C=>{(!a||a.isRowInPage(C.rowIndex))&&M(C)});break;case"top":r?.forEachPinnedRow("top",M);break;case"bottom":r?.forEachPinnedRow("bottom",M);break}this[`${e}ValueNodeMap`]=c}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this[`${irt(e.rowPinned)}ValueNodeMap`].get(e)}},I8t=class extends dt{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=Ml(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=Ml(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan")||this.spanningColumns.has(e))return;const n=this.createManagedBean(new R8t(e));this.spanningColumns.set(e,n),n.buildCache("top"),n.buildCache("bottom"),n.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(this.pinnedTimeout!=null)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0);return}this.modelTimeout==null&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){this.modelTimeout!=null&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){this.pinnedTimeout!=null&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){const n=this.spanningColumns.get(e);return n?n.isCellSpanning(t):!1}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:n}=this.beans,r=e.column,i=e.rowIndex,o=this.spanningColumns.get(r);if(!o)return;let a;switch(e.rowPinned){case"top":a=t?.getPinnedTopRow(i);break;case"bottom":a=t?.getPinnedBottomRow(i);break;default:a=n.getRow(i)}if(a)return o.getCellSpan(a)}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const n=this.spanningColumns.get(e);if(n)return n.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[n,r]of this.spanningColumns)if(r.isCellSpanning(e)){const i=r.getCellSpan(e);t(n,i)}}destroy(){super.destroy(),this.spanningColumns.clear()}},P8t={moduleName:"CellSpan",version:Jn,beans:[I8t,T8t]},D8t=class extends dt{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,n=e.colDef,r=n.cellClassRules,i=this.getCellClassParams(e,n);bye(this.beans.expressionSvc,r===this.cellClassRules?void 0:this.cellClassRules,r,i,o=>t.toggleCss(o,!0),o=>t.toggleCss(o,!1)),this.cellClassRules=r}applyUserStyles(){const e=this.column,t=e.colDef,n=t.cellStyle;if(!n)return;let r;if(typeof n=="function"){const i=this.getCellClassParams(e,t);r=n(i)}else r=n;r&&this.cellComp.setUserStyles(r)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,n=e.colDef,r=this.getCellClassParams(e,n);this.staticClasses.forEach(o=>t.toggleCss(o,!1));const i=this.beans.cellStyles.getStaticCellClasses(n,r);this.staticClasses=i,i.forEach(o=>t.toggleCss(o,!0))}getCellClassParams(e,t){const{value:n,rowNode:r}=this.cellCtrl;return Vn(this.beans.gos,{value:n,data:r.data,node:r,colDef:t,column:e,rowIndex:r.rowIndex})}},k8t=class extends dt{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,n,r){bye(this.beans.expressionSvc,void 0,e.cellClassRules,t,n,r),this.processStaticCellClasses(e,t,n)}getStaticCellClasses(e,t){const{cellClass:n}=e;if(!n)return[];let r;return typeof n=="function"?r=n(t):r=n,typeof r=="string"&&(r=[r]),r||[]}createCellCustomStyleFeature(e,t){return new D8t(e,t)}processStaticCellClasses(e,t,n){this.getStaticCellClasses(e,t).forEach(i=>{n(i)})}},ort={moduleName:"CellStyle",version:Jn,beans:[k8t]},L8t={moduleName:"RowStyle",version:Jn,beans:[y4t]};function _8t(e,t){return!!e.colHover?.isHovered(t)}var N8t=class extends dt{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=n=>{const{beans:r,gos:i,element:o,columns:a}=this,s=r.colHover;n??!!i.get("columnHoverHighlight")?this.destroyManagedListeners=this.addManagedElementListeners(o,{mouseover:s.setMouseOver.bind(s,a),mouseout:s.clearMouseOver.bind(s)}):(this.destroyManagedListeners.forEach(c=>c()),this.destroyManagedListeners=[])}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},F8t="ag-column-hover",W8t=class extends dt{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;const t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,n){const r=()=>{const i=this.isHovered(n);t.toggleCss("ag-column-hover",i)};e.addManagedEventListeners({columnHoverChanged:r}),r()}onCellColumnHover(e,t){if(!t)return;const n=this.isHovered(e);t.toggleCss(F8t,n)}addHeaderFilterColumnHoverListener(e,t,n,r){this.createHoverFeature(e,[n],r);const i=()=>{const o=this.isHovered(n);t.toggleCss("ag-column-hover",o)};e.addManagedEventListeners({columnHoverChanged:i}),i()}createHoverFeature(e,t,n){e.createManagedBean(new N8t(t,n))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},q8t={moduleName:"ColumnHover",version:Jn,beans:[W8t],apiFunctions:{isColumnHovered:_8t}},B8t=class extends dt{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addEventListener(e,t){const n=this.wrapSvc?.wrap(e,t)??t,r=!VG.has(e),i=r?this.asyncListeners:this.syncListeners;i.has(e)||i.set(e,new Set),i.get(e).add(n),this.eventSvc.addEventListener(e,n,r)}removeEventListener(e,t){const n=this.wrapSvc?.unwrap(e,t)??t,i=!!this.asyncListeners.get(e)?.delete(n);i||this.syncListeners.get(e)?.delete(n),this.eventSvc.removeEventListener(e,n,i)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,n=(o,a)=>{VG.has(o)&&t(o,a)},r=(o,a)=>{VG.has(o)||t(o,a)};this.globalListenerPairs.set(e,{syncListener:n,asyncListener:r});const i=this.eventSvc;i.addGlobalListener(n,!1),i.addGlobalListener(r,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:n,globalListenerPairs:r}=this,i=n?.unwrapGlobal(e)??e;if(r.has(i)){const{syncListener:a,asyncListener:s}=r.get(i);t.removeGlobalListener(a,!1),t.removeGlobalListener(s,!0),r.delete(e)}else this.syncGlobalListeners.delete(i),t.removeGlobalListener(i,!1)}destroyEventListeners(e,t){e.forEach((n,r)=>{n.forEach(i=>this.eventSvc.removeEventListener(r,i,t)),n.clear()}),e.clear()}destroyGlobalListeners(e,t){e.forEach(n=>this.eventSvc.removeGlobalListener(n,t)),e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:n,asyncListener:r})=>{t.removeGlobalListener(n,!1),t.removeGlobalListener(r,!0)}),e.clear()}};function j8t(e,t,n){e.apiEventSvc?.addEventListener(t,n)}function H8t(e,t,n){e.apiEventSvc?.removeEventListener(t,n)}function V8t(e,t){e.apiEventSvc?.addGlobalListener(t)}function G8t(e,t){e.apiEventSvc?.removeGlobalListener(t)}var art={moduleName:"EventApi",version:Jn,apiFunctions:{addEventListener:j8t,addGlobalListener:V8t,removeEventListener:H8t,removeGlobalListener:G8t},beans:[B8t]},$8t=".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);white-space:normal}.ag-tooltip,.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}",U8t=class extends dt{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,n,r){e&&t.destroyBean(e);const i=_N(this.gos),{column:o,eGui:a}=t,s=o.getColDef();!r&&i&&!s.headerComponent&&(r=NO(()=>a.querySelector(".ag-header-cell-text")));const l={getColumn:()=>o,getColDef:()=>o.getColDef(),getGui:()=>a,getLocation:()=>"header",getTooltipValue:()=>n??o.getColDef().headerTooltip,shouldDisplayTooltip:r};let c=this.createTooltipFeature(l);return c&&(c=t.createBean(c),t.setRefreshFunction("tooltip",()=>c.refreshTooltip())),c}setupHeaderGroupTooltip(e,t,n,r){e&&t.destroyBean(e);const i=_N(this.gos),{column:o,eGui:a}=t,s=o.getColGroupDef();!r&&i&&!s?.headerGroupComponent&&(r=NO(()=>a.querySelector(".ag-header-group-text")));const l={getColumn:()=>o,getGui:()=>a,getLocation:()=>"headerGroup",getTooltipValue:()=>n??(s&&s.headerTooltip),shouldDisplayTooltip:r};s&&(l.getColDef=()=>s);const c=this.createTooltipFeature(l);return c&&t.createBean(c)}enableCellTooltipFeature(e,t,n){const{column:r,rowNode:i}=e,o=()=>{const l=r.getColDef(),c=i.data;if(l.tooltipField&&Ut(c))return RN(c,l.tooltipField,r.isTooltipFieldContainsDots());const u=l.tooltipValueGetter;return u?u(Vn(this.gos,{location:"cell",colDef:r.getColDef(),column:r,rowIndex:e.cellPosition.rowIndex,node:i,data:i.data,value:e.value,valueFormatted:e.valueFormatted})):null},a=_N(this.gos);!n&&a&&!e.isCellRenderer()&&(n=NO(()=>{const l=e.eGui;return l.children.length===0?l:l.querySelector(".ag-cell-value")}));const s={getColumn:()=>r,getColDef:()=>r.getColDef(),getRowIndex:()=>e.cellPosition.rowIndex,getRowNode:()=>i,getGui:()=>e.eGui,getLocation:()=>"cell",getTooltipValue:t!=null?()=>t:o,getValueFormatted:()=>e.valueFormatted,shouldDisplayTooltip:n};return this.createTooltipFeature(s,this.beans)}refreshRowTooltip(e,t,n,r){const i={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>n,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:r},o=this.beans,a=o.context;e&&t.destroyBean(e,a);const s=this.createTooltipFeature(i,o);return t.createBean(s,a)}initCol(e){const{colDef:t}=e;e.tooltipEnabled=Ut(t.tooltipField)||Ut(t.tooltipValueGetter)||Ut(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},X8t={moduleName:"Tooltip",version:Jn,beans:[U8t],dynamicBeans:{tooltipFeature:W_t},userComponents:{agTooltipComponent:d6t},dependsOn:[dM],css:[$8t]},Y8t={moduleName:"Locale",version:Jn,beans:[a6t]},K8t=class extends dt{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=Ml(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:n,pinnedRowModel:r}=this.beans,i=e.autoHeightCols;let o=!1;const a=s=>{const l=s.__autoHeights;let c=vd(this.beans,s).height;for(const u of i){let d=l?.[u.getColId()];const p=n?.getCellSpan(u,s);if(p){if(p.getLastNode()!==s)continue;if(d=n?.getCellSpan(u,s)?.getLastNodeAutoHeight(),!d)return}if(d==null){if(this.colSpanSkipCell(u,s))continue;return}c=Math.max(d,c)}c!==s.rowHeight&&(s.setRowHeight(c),o=!0)};r?.forEachPinnedRow?.("top",a),r?.forEachPinnedRow?.("bottom",a),t.forEachDisplayedNode?.(a),o&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,n){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[n.getId()];return}const r=e.__autoHeights[n.getId()];e.__autoHeights[n.getId()]=t,r!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:n,colViewport:r,visibleCols:i}=this.beans;if(!n.colSpanActive)return!1;let o=[];switch(e.getPinned()){case"left":o=i.getLeftColsForRow(t);break;case"right":o=i.getRightColsForRow(t);break;case null:o=r.getColsWithinViewport(t);break}return!o.includes(e)}setupCellAutoHeight(e,t,n){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const r=t.parentElement,{rowNode:i,column:o}=e,a=this.beans,s=u=>{if(e.editing||!e.isAlive()||!n.isAlive())return;const{paddingTop:d,paddingBottom:p,borderBottomWidth:h,borderTopWidth:g}=p3(r),m=d+p+h+g,y=t.offsetHeight+m;if(u<5){const M=bl(a),C=!M||!M.contains(t),x=y==0;if(C||x){window.setTimeout(()=>s(u+1),0);return}}this.setRowAutoHeight(i,y,o)},l=()=>s(0);l();const c=Hf(a,t,l);return n.addDestroyFunc(()=>{c(),this.setRowAutoHeight(i,void 0,o)}),!0}setAutoHeightActive(e){this.active=e.list.some(t=>t.isVisible()&&t.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:n}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(n).filter(i=>i.isAutoHeight())),t.length!==0){if(!n.__autoHeights)return!1;for(const r of t){const i=n.__autoHeights[r.getColId()];if(!i||n.rowHeight<i)return!1}}return!0}},Q8t={moduleName:"RowAutoHeight",version:Jn,beans:[K8t]},Z8t={moduleName:"AllCommunity",version:Jn,dependsOn:[Qjt,trt,hHt,x6t,ojt,ajt,sjt,ljt,cjt,ujt,djt,ijt,gBt,mBt,vBt,fBt,yBt,MBt,THt,Djt,UHt,UNt,r8t,i8t,p8t,b8t,E5t,A8t,Ajt,Bqt,ort,q8t,L8t,art,Vqt,nrt,X8t,Y8t,Q8t,T5t,Zjt,P8t]},J8t=class{constructor(){this.ieCompatibility=!1}init(){this.ieCompatibility=this.md5("hello")!="5d41402abc4b2a76b9719d911017c592"}md5cycle(e,t){let n=e[0],r=e[1],i=e[2],o=e[3];n=this.ff(n,r,i,o,t[0],7,-680876936),o=this.ff(o,n,r,i,t[1],12,-389564586),i=this.ff(i,o,n,r,t[2],17,606105819),r=this.ff(r,i,o,n,t[3],22,-1044525330),n=this.ff(n,r,i,o,t[4],7,-176418897),o=this.ff(o,n,r,i,t[5],12,1200080426),i=this.ff(i,o,n,r,t[6],17,-1473231341),r=this.ff(r,i,o,n,t[7],22,-45705983),n=this.ff(n,r,i,o,t[8],7,1770035416),o=this.ff(o,n,r,i,t[9],12,-1958414417),i=this.ff(i,o,n,r,t[10],17,-42063),r=this.ff(r,i,o,n,t[11],22,-1990404162),n=this.ff(n,r,i,o,t[12],7,1804603682),o=this.ff(o,n,r,i,t[13],12,-40341101),i=this.ff(i,o,n,r,t[14],17,-1502002290),r=this.ff(r,i,o,n,t[15],22,1236535329),n=this.gg(n,r,i,o,t[1],5,-165796510),o=this.gg(o,n,r,i,t[6],9,-1069501632),i=this.gg(i,o,n,r,t[11],14,643717713),r=this.gg(r,i,o,n,t[0],20,-373897302),n=this.gg(n,r,i,o,t[5],5,-701558691),o=this.gg(o,n,r,i,t[10],9,38016083),i=this.gg(i,o,n,r,t[15],14,-660478335),r=this.gg(r,i,o,n,t[4],20,-405537848),n=this.gg(n,r,i,o,t[9],5,568446438),o=this.gg(o,n,r,i,t[14],9,-1019803690),i=this.gg(i,o,n,r,t[3],14,-187363961),r=this.gg(r,i,o,n,t[8],20,1163531501),n=this.gg(n,r,i,o,t[13],5,-1444681467),o=this.gg(o,n,r,i,t[2],9,-51403784),i=this.gg(i,o,n,r,t[7],14,1735328473),r=this.gg(r,i,o,n,t[12],20,-1926607734),n=this.hh(n,r,i,o,t[5],4,-378558),o=this.hh(o,n,r,i,t[8],11,-2022574463),i=this.hh(i,o,n,r,t[11],16,1839030562),r=this.hh(r,i,o,n,t[14],23,-35309556),n=this.hh(n,r,i,o,t[1],4,-1530992060),o=this.hh(o,n,r,i,t[4],11,1272893353),i=this.hh(i,o,n,r,t[7],16,-155497632),r=this.hh(r,i,o,n,t[10],23,-1094730640),n=this.hh(n,r,i,o,t[13],4,681279174),o=this.hh(o,n,r,i,t[0],11,-358537222),i=this.hh(i,o,n,r,t[3],16,-722521979),r=this.hh(r,i,o,n,t[6],23,76029189),n=this.hh(n,r,i,o,t[9],4,-640364487),o=this.hh(o,n,r,i,t[12],11,-421815835),i=this.hh(i,o,n,r,t[15],16,530742520),r=this.hh(r,i,o,n,t[2],23,-995338651),n=this.ii(n,r,i,o,t[0],6,-198630844),o=this.ii(o,n,r,i,t[7],10,1126891415),i=this.ii(i,o,n,r,t[14],15,-1416354905),r=this.ii(r,i,o,n,t[5],21,-57434055),n=this.ii(n,r,i,o,t[12],6,1700485571),o=this.ii(o,n,r,i,t[3],10,-1894986606),i=this.ii(i,o,n,r,t[10],15,-1051523),r=this.ii(r,i,o,n,t[1],21,-2054922799),n=this.ii(n,r,i,o,t[8],6,1873313359),o=this.ii(o,n,r,i,t[15],10,-30611744),i=this.ii(i,o,n,r,t[6],15,-1560198380),r=this.ii(r,i,o,n,t[13],21,1309151649),n=this.ii(n,r,i,o,t[4],6,-145523070),o=this.ii(o,n,r,i,t[11],10,-1120210379),i=this.ii(i,o,n,r,t[2],15,718787259),r=this.ii(r,i,o,n,t[9],21,-343485551),e[0]=this.add32(n,e[0]),e[1]=this.add32(r,e[1]),e[2]=this.add32(i,e[2]),e[3]=this.add32(o,e[3])}cmn(e,t,n,r,i,o){return t=this.add32(this.add32(t,e),this.add32(r,o)),this.add32(t<<i|t>>>32-i,n)}ff(e,t,n,r,i,o,a){return this.cmn(t&n|~t&r,e,t,i,o,a)}gg(e,t,n,r,i,o,a){return this.cmn(t&r|n&~r,e,t,i,o,a)}hh(e,t,n,r,i,o,a){return this.cmn(t^n^r,e,t,i,o,a)}ii(e,t,n,r,i,o,a){return this.cmn(n^(t|~r),e,t,i,o,a)}md51(e){const t=e.length,n=[1732584193,-271733879,-1732584194,271733878];let r;for(r=64;r<=e.length;r+=64)this.md5cycle(n,this.md5blk(e.substring(r-64,r)));e=e.substring(r-64);const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<e.length;r++)i[r>>2]|=e.charCodeAt(r)<<(r%4<<3);if(i[r>>2]|=128<<(r%4<<3),r>55)for(this.md5cycle(n,i),r=0;r<16;r++)i[r]=0;return i[14]=t*8,this.md5cycle(n,i),n}md5blk(e){const t=[];for(let n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}rhex(e){const t="0123456789abcdef".split("");let n="",r=0;for(;r<4;r++)n+=t[e>>r*8+4&15]+t[e>>r*8&15];return n}hex(e){for(let t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")}md5(e){return this.hex(this.md51(e))}add32(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)}add32Std(e,t){return e+t&4294967295}add32Compat(e,t){const n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535}},XH={"01":"GRID","02":"CHARTS","0102":"BOTH"},nRe="https://www.ag-grid.com/licensing/",srt=class F1{constructor(t){this.watermarkMessage=void 0,this.totalMessageLength=124,this.document=t,this.md5=new J8t,this.md5.init()}validateLicense(){const t=this.getLicenseDetails(F1.licenseKey),n=`AG Grid ${t.currentLicenseType==="BOTH"?"and AG Charts ":""}Enterprise`,r=t.suppliedLicenseType===void 0?"":`AG ${t.suppliedLicenseType==="BOTH"?"Grid and AG Charts":t.suppliedLicenseType==="GRID"?"Grid":"Charts"} Enterprise`;if(t.missing)(!this.isWebsiteUrl()||this.isForceWatermark())&&this.outputMissingLicenseKey(n);else if(t.expired){const i=F1.getGridReleaseDate(),o=F1.formatDate(i);this.outputExpiredKey(t.expiry,o,n,r)}else t.valid?t.isTrial&&t.trialExpired&&this.outputExpiredTrialKey(t.expiry,n,r):this.outputInvalidLicenseKey(!!t.incorrectLicenseType,n,r)}static extractExpiry(t){const n=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(F1.decode(n),10))}static extractLicenseComponents(t){let n=t.replace(/[\u200B-\u200D\uFEFF]/g,"");if(n=n.replace(/\r?\n|\r/g,""),t.length<=32)return{md5:null,license:t,version:null,isTrial:null};const r=n.length-32,i=n.substring(r),o=n.substring(0,r),[a,s,l]=F1.extractBracketedInformation(n);return{md5:i,license:o,version:a,isTrial:s,type:l}}getLicenseDetails(t){const n=F1.chartsLicenseManager?"BOTH":"GRID";if(!t?.length)return{licenseKey:t,valid:!1,missing:!0,currentLicenseType:n};const r=F1.getGridReleaseDate(),{md5:i,license:o,version:a,isTrial:s,type:l}=F1.extractLicenseComponents(t);let c=i===this.md5.md5(o)&&t.indexOf("For_Trialing_ag-Grid_Only")===-1,u,d,p=null,h=!1,g;function m(){u=p<new Date,d=void 0}if(c&&(p=F1.extractExpiry(o),c=!isNaN(p.getTime()),c))switch(d=r>p,a){case"legacy":case"2":{s&&m();break}case"3":l?.length?(g=l,l!==XH["01"]&&l!==XH["0102"]||n==="BOTH"&&g!=="BOTH"?(c=!1,h=!0):s&&m()):c=!1}return c?{licenseKey:t,valid:c,expiry:F1.formatDate(p),expired:d,version:a,isTrial:s,trialExpired:u,incorrectLicenseType:h,currentLicenseType:n,suppliedLicenseType:g}:{licenseKey:t,valid:c,incorrectLicenseType:h,currentLicenseType:n,suppliedLicenseType:g}}isDisplayWatermark(){return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!!this.watermarkMessage?.length}getWatermarkMessage(){return this.watermarkMessage||""}getHostname(){const n=(this.document.defaultView||window).location,{hostname:r=""}=n;return r}isForceWatermark(){const n=(this.document.defaultView||window).location,{pathname:r}=n;return r?r.indexOf("forceWatermark")!==-1:!1}isWebsiteUrl(){return this.getHostname().match(/^((?:[\w-]+\.)?ag-grid\.com)$/)!==null}isLocalhost(){return this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)!==null}static formatDate(t){const n=["January","February","March","April","May","June","July","August","September","October","November","December"],r=t.getDate(),i=t.getMonth(),o=t.getFullYear();return r+" "+n[i]+" "+o}static getGridReleaseDate(){return new Date(parseInt(F1.decode(F1.RELEASE_INFORMATION),10))}static decode(t){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r="",i,o,a,s,l,c,u,d=0;const p=t.replace(/[^A-Za-z0-9+/=]/g,"");for(;d<p.length;)s=n.indexOf(p.charAt(d++)),l=n.indexOf(p.charAt(d++)),c=n.indexOf(p.charAt(d++)),u=n.indexOf(p.charAt(d++)),i=s<<2|l>>4,o=(l&15)<<4|c>>2,a=(c&3)<<6|u,r=r+String.fromCharCode(i),c!=64&&(r=r+String.fromCharCode(o)),u!=64&&(r=r+String.fromCharCode(a));return r=F1.utf8_decode(r),r}static utf8_decode(t){t=t.replace(/rn/g,"n");let n="";for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);i<128?n+=String.fromCharCode(i):i>127&&i<2048?(n+=String.fromCharCode(i>>6|192),n+=String.fromCharCode(i&63|128)):(n+=String.fromCharCode(i>>12|224),n+=String.fromCharCode(i>>6&63|128),n+=String.fromCharCode(i&63|128))}return n}static setChartsLicenseManager(t){this.chartsLicenseManager=t,this.chartsLicenseManager?.setLicenseKey(this.licenseKey,!0)}static setLicenseKey(t){this.licenseKey=t,this.chartsLicenseManager?.setLicenseKey(t,!0)}static extractBracketedInformation(t){if(!t.includes("["))return["legacy",!1,void 0];const n=t.match(/\[(.*?)\]/g).map(s=>s.replace("[","").replace("]",""));if(!n||n.length===0)return["legacy",!1,void 0];const r=n.filter(s=>s==="TRIAL").length===1,i=n.filter(s=>s.indexOf("v")===0)[0],o=i?i.replace("v",""):"legacy",a=XH[n.filter(s=>XH[s])[0]];return[o,r,a]}centerPadAndOutput(t){const n=this.totalMessageLength-t.length;console.error(t.padStart(n/2+t.length,"*").padEnd(this.totalMessageLength,"*"))}padAndOutput(t,n="*",r=""){console.error(t.padEnd(this.totalMessageLength-r.length,n)+r)}outputInvalidLicenseKey(t,n,r){t?(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Incompatible License Key "),this.padAndOutput(`* Your license key is for ${r} only and does not cover you for ${n}.`," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${nRe}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")):(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Invalid License Key "),this.padAndOutput("* Your license key is not valid."," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${nRe}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="Invalid License"}outputExpiredTrialKey(t,n,r){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Trial Period Expired. "),this.padAndOutput(`* Your trial only license for ${r} expired on ${t}.`," ","*"),this.padAndOutput("* Please email info@ag-grid.com to purchase a license."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="Trial Period Expired"}outputMissingLicenseKey(t){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${t} License `),this.centerPadAndOutput(" License Key Not Found "),this.padAndOutput(`* All ${t} features are unlocked for trial.`," ","*"),this.padAndOutput("* If you want to hide the watermark please email info@ag-grid.com for a trial license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="For Trial Use Only"}outputExpiredKey(t,n,r,i){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${r} License `),this.centerPadAndOutput(" Incompatible Software Version "),this.padAndOutput(`* Your license key works with versions of ${i} released before ${t}.`," ","*"),this.padAndOutput(`* The version you are trying to use was released on ${n}.`," ","*"),this.padAndOutput("* Please contact info@ag-grid.com to renew your license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="License Expired"}};srt.RELEASE_INFORMATION="MTc0ODQ1MzQ2MTA5Mg==";var V5=srt,eVt='.ag-watermark{bottom:20px;color:#9b9b9b;opacity:.7;position:absolute;transition:opacity 1s ease-out 3s;&:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDkiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMDkgMzYiPjxwYXRoIGZpbGw9IiM5QjlCOUIiIGQ9Ik0xOTIuOTkzIDIzLjY1OHYtNy45NDZoLTEzLjU0MWwtNy45NDcgNy45NDZ6TTIwOC4yNSAzLjk1aC0xNi45NzRsLTguMDEgNy45NDdoMjQuOTg0ek0xNjMuNjIyIDMxLjYwNWw0LjA2OS00LjA2OWgxMy43MzJ2Ny45NDdoLTE3LjgwMXoiLz48cGF0aCBmaWxsPSIjOUI5QjlCIiBkPSJNMTY2LjYxIDE5Ljc4aDguNzczbDguMDEtNy45NDZIMTY2LjYxek0xNTcuMDExIDMxLjYwNWg2LjYxMWw3Ljg4My03Ljk0N2gtMTQuNDk0ek0xOTEuMjc2IDMuOTVsLTQuMDY4IDQuMDdIMTYxLjI3Vi4wNzJoMzAuMDA2ek0yMC44NCAzMC4yMDZIOC4zNzhsLTIuMTYyIDUuMzRILjc1TDEyLjI1NyA4LjU5Mmg0Ljc2OEwyOC41MyAzNS41NDZoLTUuNTN6bS0xLjcxNy00LjI2TDE0LjYwOSAxNC45NWwtNC41MTQgMTAuOTk4ek0xMDQuNDM3IDE4LjUwOWMxLjU4OS0yLjM1MiA1LjU5NC0yLjYwNyA3LjI0Ny0yLjYwN3Y0LjU3OGMtMi4wMzQgMC00LjA2OS4wNjMtNS4yNzcuOTUzLTEuMjA3Ljg5LTEuODQzIDIuMDk4LTEuODQzIDMuNTZ2MTAuNTUzaC00Ljk1OVYxNS45MDJoNC43Njh6TTExOS4zNzYgMTUuOTAyaC00Ljk1OHYxOS42NDRoNC45NTh6TTExOS4zNzYgNy4xM2gtNC45NTh2NS44NDhoNC45NTh6TTE0My45NzkgNy4xM3YyOC40MTZoLTQuNzY4bC0uMTI3LTIuOTg4YTguMyA4LjMgMCAwIDEtMi42NyAyLjQ4Yy0xLjA4MS41NzItMi40MTYuODktMy45NDIuODktMS4zMzUgMC0yLjYwNi0uMjU1LTMuNjg3LS43LTEuMTQ0LS41MDgtMi4xNjItMS4xNDQtMi45ODgtMi4wMzRhOS42IDkuNiAwIDAgMS0xLjk3MS0zLjE3OWMtLjUwOC0xLjIwNy0uNjk5LTIuNjA2LS42OTktNC4xMzJzLjI1NC0yLjkyNC42OTktNC4xOTZjLjUwOS0xLjI3MSAxLjE0NS0yLjM1MiAxLjk3MS0zLjI0MnMxLjg0NC0xLjU4OSAyLjk4OC0yLjA5OCAyLjM1Mi0uNzYzIDMuNjg3LS43NjNjMS41MjYgMCAyLjc5Ny4yNTUgMy44NzguODI3czEuOTcxIDEuMzM1IDIuNjcgMi40MTZWNy4xOTNoNC45NTl6bS0xMC40MjYgMjQuNTM4YzEuNjUzIDAgMi45MjQtLjU3MiAzLjk0MS0xLjY1M3MxLjUyNi0yLjU0MyAxLjUyNi00LjMyMy0uNTA5LTMuMTc4LTEuNTI2LTQuMzIyYy0xLjAxNy0xLjA4MS0yLjI4OC0xLjY1My0zLjk0MS0xLjY1My0xLjU5IDAtMi45MjUuNTcyLTMuODc4IDEuNjUzLTEuMDE3IDEuMDgtMS41MjYgMi41NDMtMS41MjYgNC4zMjIgMCAxLjc4LjUwOSAzLjE4IDEuNTI2IDQuMjYgMS4wMTcgMS4xNDQgMi4yODggMS43MTYgMy44NzggMS43MTZNNTcuMjAyIDIwLjM1M0g0NC45MzN2NC4yNTloNi45OTNjLS4xOSAyLjE2MS0xLjAxNyAzLjgxNC0yLjQxNiA1LjE1LTEuMzk4IDEuMjctMy4xNzggMS45MDYtNS40NjcgMS45MDYtMS4yNzEgMC0yLjQ4LS4yNTQtMy40OTYtLjY5OWE3IDcgMCAwIDEtMi43MzQtMS45N2MtLjc2My0uODI3LTEuMzM1LTEuODQ0LTEuNzgtMy4wNTJzLS42MzYtMi40OC0uNjM2LTMuOTQyLjE5LTIuNzMzLjYzNi0zLjk0MWMuMzgxLTEuMjA4IDEuMDE3LTIuMTYyIDEuNzgtMy4wNTIuNzYzLS44MjYgMS42NTMtMS40NjIgMi43MzMtMS45N2E5LjEgOS4xIDAgMCAxIDMuNTYtLjdxNC4wMDUgMCA2LjEwMyAxLjkwN2wzLjMwNi0zLjMwNWMtMi40OC0xLjkwNy01LjY1OC0yLjkyNS05LjQwOS0yLjkyNS0yLjA5NyAwLTQuMDA0LjMxOC01LjcyMSAxLjAxOC0xLjcxNi42OTktMy4xNzkgMS41ODktNC4zODYgMi43OTdBMTIuMSAxMi4xIDAgMCAwIDMxLjIgMTYuMjJjLS42MzUgMS43MTctLjk1MyAzLjYyNC0uOTUzIDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1NyAxLjAxNyAyLjAzNSAwIDMuODc4LS4zMTggNS41MzEtMS4wMTcgMS42NTMtLjcgMy4wNTItMS41OSA0LjE5Ni0yLjc5N3ExLjcxNi0xLjgxMiAyLjY3LTQuMzg3Yy42MzYtMS43MTYuOTU0LTMuNjIzLjk1NC01LjY1OHYtLjgyNmMtLjE5MS0uMTI3LS4yNTUtLjQ0NS0uMjU1LS43TTk1Ljk4MiAyMC4zNTNoLTEyLjI3djQuMjU5aDYuOTkzYy0uMTkgMi4xNjEtMS4wMTcgMy44MTQtMi40MTYgNS4xNS0xLjM5OCAxLjI3LTMuMTc4IDEuOTA2LTUuNDY3IDEuOTA2LTEuMjcxIDAtMi40OC0uMjU0LTMuNDk2LS42OTlhNyA3IDAgMCAxLTIuNzM0LTEuOTdjLS43NjMtLjgyNy0xLjMzNS0xLjg0NC0xLjc4LTMuMDUycy0uNjM2LTIuNDgtLjYzNi0zLjk0Mi4xOS0yLjczMy42MzYtMy45NDFjLjM4MS0xLjIwOCAxLjAxNy0yLjE2MiAxLjc4LTMuMDUyLjc2My0uODI2IDEuNjUzLTEuNDYyIDIuNzM0LTEuOTdhOS4xIDkuMSAwIDAgMSAzLjU2LS43cTQuMDA1IDAgNi4xMDMgMS45MDdsMy4zMDUtMy4zMDVjLTIuNDc5LTEuOTA3LTUuNjU4LTIuOTI1LTkuNDA4LTIuOTI1LTIuMDk4IDAtNC4wMDUuMzE4LTUuNzIyIDEuMDE4LTEuNzE2LjY5OS0zLjE3OCAxLjU4OS00LjM4NiAyLjc5N2ExMi4xIDEyLjEgMCAwIDAtMi43OTcgNC4zODZjLS42MzYgMS43MTctLjk1NCAzLjYyNC0uOTU0IDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1OCAxLjAxNyAyLjAzNCAwIDMuODc4LS4zMTggNS41My0xLjAxNyAxLjY1My0uNyAzLjA1Mi0xLjU5IDQuMTk2LTIuNzk3cTEuNzE4LTEuODEyIDIuNjctNC4zODdjLjYzNi0xLjcxNi45NTQtMy42MjMuOTU0LTUuNjU4di0uODI2Yy0uMTktLjEyNy0uMjU1LS40NDUtLjI1NS0uNyIvPjwvc3ZnPg==");background-repeat:no-repeat;background-size:170px 40px;content:"";display:block;height:40px;width:170px}}:where(.ag-ltr) .ag-watermark{right:25px}:where(.ag-rtl) .ag-watermark{left:25px}.ag-watermark-text{font-family:Impact,sans-serif;font-size:19px;font-weight:700;opacity:.5}:where(.ag-ltr) .ag-watermark-text{padding-left:.7rem}:where(.ag-rtl) .ag-watermark-text{padding-right:.7rem}',tVt={tag:"div",cls:"ag-watermark",children:[{tag:"div",ref:"eLicenseTextRef",cls:"ag-watermark-text"}]},nVt=class extends Gt{constructor(){super(tVt),this.eLicenseTextRef=at,this.registerCSS(eVt)}wireBeans(e){this.licenseManager=e.licenseManager}postConstruct(){const e=this.shouldDisplayWatermark();this.setDisplayed(e),e&&(this.eLicenseTextRef.textContent=this.licenseManager.getWatermarkMessage(),window.setTimeout(()=>this.addCss("ag-opacity-zero"),0),window.setTimeout(()=>this.setDisplayed(!1),5e3))}shouldDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}},rVt={selector:"AG-WATERMARK",component:nVt},lrt=class extends dt{constructor(){super(...arguments),this.beanName="licenseManager"}postConstruct(){this.validateLicense()}validateLicense(){this.licenseManager=new V5(bl(this.beans)),this.licenseManager.validateLicense()}static getLicenseDetails(e){return new V5(null).getLicenseDetails(e)}getWatermarkSelector(){return rVt}isDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}getWatermarkMessage(){return this.licenseManager.getWatermarkMessage()}static setLicenseKey(e){V5.setLicenseKey(e)}static setChartsLicenseManager(e){V5.setChartsLicenseManager(e)}},iVt=9525,rRe={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49},YH=`\r
`;function iRe(e,t,n){return!t&&t!==""&&t!==0?"":` ${e}="${t}"`}function oVt(e={}){const r=["version"];return e.version||(e.version="1.0"),e.encoding&&r.push("encoding"),e.standalone&&r.push("standalone"),`<?xml ${r.map(o=>`${o}="${e[o]}"`).join(" ")} ?>`}function crt(e,t){let n="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(i=>{Object.keys(i.map).forEach(o=>{n+=iRe(i.prefix+o,i.map[o])})}),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach(i=>{n+=iRe(i,e.properties.rawMap[i])}));let r="<"+e.name+n;return!e.children&&e.textNode==null?r+"/>"+YH:e.textNode!=null?r+">"+e.textNode+"</"+e.name+">"+YH:(r+=">"+YH,e.children&&e.children.forEach(i=>{r+=crt(i)}),r+"</"+e.name+">"+YH)}var aVt=e=>Math.round(e*96/72),fE=e=>Math.ceil(e*iVt),sVt=e=>{if(e===void 0)return;const n=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(e||"Automatic");return Math.max(n,0)},GG=(e,t)=>{if(!t)return;let n;return typeof t=="number"?n=t:n=t({rowIndex:e}),n},lVt=(e,t)=>{const{colSpan:n,column:r}=e.position;if(e.width)if(n){const i=t.slice(r-1,r+n-1);let o=0;for(let a=0;a<i.length;a++){const s=i[a].getActualWidth();if(e.width<o+s){e.position.colSpan=a+1,e.totalWidth=e.width,e.width=e.totalWidth-o;break}o+=s}}else e.totalWidth=e.width},cVt=(e,t)=>{const{rowSpan:n,row:r}=e.position;if(e.height)if(n){let i=0,o=0;for(let a=r;a<r+n;a++){const s=aVt(GG(a,t)||20);if(e.height<i+s){e.position.rowSpan=o+1,e.totalHeight=e.height,e.height=e.totalHeight-i;break}i+=s,o++}}else e.totalHeight=e.height},m1=(e,t)=>{const n=oVt({encoding:"UTF-8",standalone:"yes"}),r=crt(e);return t?r:`${n}${r}`},xz=e=>{const r=String.fromCharCode,i=Math.floor(e/26),o=e%26;return!i||e===26?r(65+e-1):o?i<26?r(65+i-1)+r(65+o-1):xz(i)+r(65+o-1):xz(i-1)+"Z"},uVt=e=>e.replaceAll(`
`,"_x000a_"),Mhe=e=>{if(e==null)return null;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(r>=0&&r<=31&&r!==10){const a=`_x${r.toString(16).toUpperCase().padStart(4,"0")}_`;t+=a}else t+=e[n]}return t},dVt=e=>{const t=[];for(const n of e.keys()){const r=n.toString(),i={name:"t",textNode:sm(Mhe(r))};r.trim().length!==r.length&&(i.properties={rawMap:{"xml:space":"preserve"}}),t.push({name:"si",children:[i]})}return t},pVt={getTemplate(e){const{name:t,ContentType:n,Extension:r,PartName:i}=e;return{name:t,properties:{rawMap:{Extension:r,PartName:i,ContentType:n}}}}},hVt=pVt,LK=e=>e==="jpg"?"jpeg":e,fVt={getTemplate(e){const t=new Array(e).fill(void 0).map((c,u)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:`/xl/worksheets/sheet${u+1}.xml`})),n=Sz.size,r=$x.size,i={};rP.forEach(c=>{i[LK(c.type)]=!0});const o=new Array(n).fill(void 0).map((c,u)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml",PartName:`/xl/drawings/drawing${u+1}.xml`})),a=[];Vy.forEach(({name:c})=>{a.push({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",PartName:`/xl/tables/${c}.xml`})});const s=Object.keys(i).map(c=>({name:"Default",ContentType:`image/${c}`,Extension:c}));r&&s.push({name:"Default",Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"});const l=[...s,{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"},...t,{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"},...o,...a,{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}].map(c=>hVt.getTemplate(c));return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:l}}},gVt=fVt,mVt={getTemplate(e){const n=new Date().toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:e},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:n},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:n}]}}},vVt=mVt,oRe=(e,t)=>({name:`xdr:${e}`,children:[{name:"xdr:col",textNode:t.col.toString()},{name:"xdr:colOff",textNode:t.offsetX.toString()},{name:"xdr:row",textNode:t.row.toString()},{name:"xdr:rowOff",textNode:t.offsetY.toString()}]}),bVt=e=>{const t=[{name:"a:ext",properties:{rawMap:{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}},children:[{name:"a16:creationId",properties:{rawMap:{id:"{822E6D20-D7BC-2841-A643-D49A6EF008A2}","xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main"}}}]}];switch(e.recolor&&e.recolor.toLowerCase()){case"grayscale":case"sepia":case"washout":t.push({name:"a:ext",properties:{rawMap:{uri:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"}},children:[{name:"adec:decorative",properties:{rawMap:{val:"0","xmlns:adec":"http://schemas.microsoft.com/office/drawing/2017/decorative"}}}]})}return{name:"a:extLst",children:t}},yVt=(e,t)=>({name:"xdr:nvPicPr",children:[{name:"xdr:cNvPr",properties:{rawMap:{id:t,name:e.id,descr:e.altText!=null?e.altText:void 0}},children:[bVt(e)]},{name:"xdr:cNvPicPr",properties:{rawMap:{preferRelativeResize:"0"}},children:[{name:"a:picLocks"}]}]}),aRe=e=>{if(!e.saturation&&!e.tint)return;const t=[];return e.saturation&&t.push({name:"a:satMod",properties:{rawMap:{val:e.saturation*1e3}}}),e.tint&&t.push({name:"a:tint",properties:{rawMap:{val:e.tint*1e3}}}),t},MVt=(e,t)=>({name:"a:duotone",children:[{name:"a:prstClr",properties:{rawMap:{val:e.color}},children:aRe(e)},{name:"a:srgbClr",properties:{rawMap:{val:t.color}},children:aRe(t)}]}),CVt=(e,t)=>{let n;if(e.transparency){const r=Math.min(Math.max(e.transparency,0),100);n=[{name:"a:alphaModFix",properties:{rawMap:{amt:1e5-Math.round(r*1e3)}}}]}if(e.recolor)switch(n||(n=[]),e.recolor.toLocaleLowerCase()){case"grayscale":n.push({name:"a:grayscl"});break;case"sepia":n.push(MVt({color:"black"},{color:"D9C3A5",tint:50,saturation:180}));break;case"washout":n.push({name:"a:lum",properties:{rawMap:{bright:"70000",contrast:"-70000"}}});break}return{name:"xdr:blipFill",children:[{name:"a:blip",properties:{rawMap:{cstate:"print","r:embed":`rId${t}`,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}},children:n},{name:"a:stretch",children:[{name:"a:fillRect"}]}]}},xVt=(e,t)=>{const n={name:"a:xfrm",children:[{name:"a:off",properties:{rawMap:{x:0,y:0}}},{name:"a:ext",properties:{rawMap:{cx:t.width,cy:t.height}}}]};if(e.rotation){const o=e.rotation;n.properties={rawMap:{rot:Math.min(Math.max(o,0),360)*6e4}}}return{name:"xdr:spPr",children:[n,{name:"a:prstGeom",properties:{rawMap:{prst:"rect"}},children:[{name:"a:avLst"}]}]}},wVt=e=>{e.fitCell=!!e.fitCell||!e.width||!e.height;const{position:t={},fitCell:n,width:r=0,height:i=0,totalHeight:o,totalWidth:a}=e,{offsetX:s=0,offsetY:l=0,row:c=1,rowSpan:u=1,column:d=1,colSpan:p=1}=t;return{from:{row:c-1,col:d-1,offsetX:fE(s),offsetY:fE(l)},to:{row:c-1+(n?1:u-1),col:d-1+(n?1:p-1),offsetX:fE(r+s),offsetY:fE(i+l)},height:fE(o||i),width:fE(a||r)}},SVt=(e,t,n,r)=>({name:"xdr:pic",children:[yVt(e,t+1),CVt(e,n+1),xVt(e,r)]}),AVt={getTemplate(e){const{sheetIndex:t}=e,n=Sz.get(t),r=fW.get(t),i=n.map((o,a)=>{const s=wVt(o);return{name:"xdr:twoCellAnchor",properties:{rawMap:{editAs:"absolute"}},children:[oRe("from",s.from),oRe("to",s.to),SVt(o,a,r.get(o.id).index,s),{name:"xdr:clientData"}]}});return{name:"xdr:wsDr",properties:{rawMap:{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"}},children:i}}},OVt=AVt,zVt={getTemplate(e){const{Id:t,Type:n,Target:r}=e;return{name:"Relationship",properties:{rawMap:{Id:t,Type:n,Target:r}}}}},TVt=zVt,EVt={getTemplate(e){const t=e.map(n=>TVt.getTemplate(n));return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:t}}},b6=EVt,RVt={getTemplate(e){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.size,uniqueCount:e.size}},children:dVt(e)}}},IVt=RVt,PVt=e=>{switch(e){case 1:return"thin";case 2:return"medium";case 3:return"thick";default:return"hair"}},DVt={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot",Continuous:"Continuous"},kVt=["Dashed","DashDot","DashDotDot"],LVt={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"},_Vt={Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"},NVt={Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"},FVt=e=>e?LVt[e]||e:"none",rx=e=>e==null?e:(e.charAt(0)==="#"&&(e=e.substring(1)),e.length===6?"FF"+e:e),KH=(e,t)=>{if(!e)return"thin";const n=PVt(t);if(e==="Continuous")return n;const r=DVt[e];return n==="medium"&&kVt.some(i=>i===r)?`medium${r}`:`${r.charAt(0).toLowerCase()}${r.substring(1)}`},WVt=e=>_Vt[e]||"general",qVt=e=>NVt[e]||void 0,ZL=e=>({name:"color",properties:{rawMap:{rgb:rx(e||"#000000")}}}),BVt={getTemplate(e){const{left:t,right:n,top:r,bottom:i,diagonal:o}=e,a=t?[ZL(t.color)]:void 0,s=n?[ZL(n.color)]:void 0,l=r?[ZL(r.color)]:void 0,c=i?[ZL(i.color)]:void 0,u=o?[ZL(o.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:t&&t.style}},children:a},{name:"right",properties:{rawMap:{style:n&&n.style}},children:s},{name:"top",properties:{rawMap:{style:r&&r.style}},children:l},{name:"bottom",properties:{rawMap:{style:i&&i.style}},children:c},{name:"diagonal",properties:{rawMap:{style:o&&o.style}},children:u}]}}},jVt=BVt,HVt={getTemplate(e){return{name:"borders",properties:{rawMap:{count:e.length}},children:e.map(t=>jVt.getTemplate(t))}}},VVt=HVt,GVt=e=>{const n=["Context","LeftToRight","RightToLeft"].indexOf(e);return Math.max(n,0)},$Vt={getTemplate(e){const{horizontal:t,indent:n,readingOrder:r,rotate:i,shrinkToFit:o,vertical:a,wrapText:s}=e;return{name:"alignment",properties:{rawMap:{horizontal:t&&WVt(t),indent:n,readingOrder:r&&GVt(r),textRotation:i,shrinkToFit:o,vertical:a&&qVt(a),wrapText:s}}}}},UVt=$Vt,XVt={getTemplate(e){const t=e.protected===!1?0:1;return{name:"protection",properties:{rawMap:{hidden:e.hideFormula===!0?1:0,locked:t}}}}},YVt=XVt,KVt={getTemplate(e){const{alignment:t,borderId:n,fillId:r,fontId:i,numFmtId:o,protection:a,quotePrefix:s,xfId:l}=e,c=[];return t&&c.push(UVt.getTemplate(t)),a&&c.push(YVt.getTemplate(a)),{name:"xf",properties:{rawMap:{applyAlignment:t?1:void 0,applyProtection:a?1:void 0,applyBorder:n?1:void 0,applyFill:r?1:void 0,borderId:n,fillId:r,applyFont:i?1:void 0,fontId:i,applyNumberFormat:o?1:void 0,numFmtId:o,quotePrefix:s?1:void 0,xfId:l}},children:c.length?c:void 0}}},urt=KVt,QVt={getTemplate(e){return{name:"cellStyleXfs",properties:{rawMap:{count:e.length}},children:e.map(t=>urt.getTemplate(t))}}},ZVt=QVt,JVt={getTemplate(e){const{builtinId:t,name:n,xfId:r}=e;return{name:"cellStyle",properties:{rawMap:{builtinId:t,name:n,xfId:r}}}}},eGt=JVt,tGt={getTemplate(e){return{name:"cellStyles",properties:{rawMap:{count:e.length}},children:e.map(t=>eGt.getTemplate(t))}}},nGt=tGt,rGt={getTemplate(e){return{name:"cellXfs",properties:{rawMap:{count:e.length}},children:e.map(t=>urt.getTemplate(t))}}},iGt=rGt,oGt={getTemplate(e){const{patternType:t,fgTheme:n,fgTint:r,fgRgb:i,bgRgb:o,bgIndexed:a}=e,s={name:"patternFill",properties:{rawMap:{patternType:t}}};return(n||r||i)&&(s.children=[{name:"fgColor",properties:{rawMap:{theme:n,tint:r,rgb:i}}}]),(a||o)&&(s.children||(s.children=[]),s.children.push({name:"bgColor",properties:{rawMap:{indexed:a,rgb:o}}})),{name:"fill",children:[s]}}},aGt=oGt,sGt={getTemplate(e){return{name:"fills",properties:{rawMap:{count:e.length}},children:e.map(t=>aGt.getTemplate(t))}}},lGt=sGt,cGt={getTemplate(e){const{size:t,colorTheme:n,color:r="FF000000",fontName:i="Calibri",family:o,scheme:a,italic:s,bold:l,strikeThrough:c,outline:u,shadow:d,underline:p,verticalAlign:h}=e,g=[{name:"sz",properties:{rawMap:{val:t}}},{name:"color",properties:{rawMap:{theme:n,rgb:r}}},{name:"name",properties:{rawMap:{val:i}}}];return o&&g.push({name:"family",properties:{rawMap:{val:o}}}),a&&g.push({name:"scheme",properties:{rawMap:{val:a}}}),s&&g.push({name:"i"}),l&&g.push({name:"b"}),c&&g.push({name:"strike"}),u&&g.push({name:"outline"}),d&&g.push({name:"shadow"}),p&&g.push({name:"u",properties:{rawMap:{val:p}}}),h&&g.push({name:"vertAlign",properties:{rawMap:{val:h}}}),{name:"font",children:g}}},uGt=cGt,dGt={getTemplate(e){return{name:"fonts",properties:{rawMap:{count:e.length}},children:e.map(t=>uGt.getTemplate(t))}}},pGt=dGt;function hGt(e){const t=e.split(/(\[[^\]]*\])/);for(let n=0;n<t.length;n++){let r=t[n];r.length&&(r.startsWith("[")||(r=r.replace(/\$/g,'"$"')),t[n]=sm(r))}return t.join("")}var fGt={getTemplate(e){let{formatCode:t,numFmtId:n}=e;return t.length&&(t=hGt(t)),{name:"numFmt",properties:{rawMap:{formatCode:t,numFmtId:n}}}}},gGt=fGt,mGt={getTemplate(e){return{name:"numFmts",properties:{rawMap:{count:e.length}},children:e.map(t=>gGt.getTemplate(t))}}},vGt=mGt,k$,ER,WN,qN,BN,drt,L$,prt,Che,hrt=(e,t)=>(e.indexOf("mixedStyle")!==-1&&t>1&&(e+=`_${t}`),e),frt=()=>{k$={base:0},ER=[],WN=[{fontName:"Calibri",colorTheme:"1",family:"2",scheme:"minor"}],qN=[{patternType:"none"},{patternType:"gray125"}],BN=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],drt=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],L$=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],prt=[{builtinId:0,name:"Normal",xfId:0}]},bGt=e=>{const t=FVt(e.pattern),n=rx(e.color),r=rx(e.patternColor);let i=qN.findIndex(o=>{const{patternType:a,fgRgb:s,bgRgb:l}=o;return!(a!=t||s!=n||l!=r)});return i===-1&&(i=qN.length,qN.push({patternType:t,fgRgb:n,bgRgb:r})),i},yGt=e=>{if(rRe[e])return rRe[e];let t=ER.findIndex(n=>n.formatCode===e);return t===-1?(t=ER.length+164,ER.push({formatCode:e,numFmtId:t})):t=ER[t].numFmtId,t},MGt=e=>{const{borderBottom:t,borderTop:n,borderLeft:r,borderRight:i}=e;let o,a,s,l,c,u,d,p;r&&(s=KH(r.lineStyle,r.weight),d=rx(r.color)),i&&(l=KH(i.lineStyle,i.weight),p=rx(i.color)),t&&(o=KH(t.lineStyle,t.weight),c=rx(t.color)),n&&(a=KH(n.lineStyle,n.weight),u=rx(n.color));let h=BN.findIndex(g=>{const{left:m,right:v,top:y,bottom:M}=g;if(!m&&(s||d)||!v&&(l||p)||!y&&(a||u)||!M&&(o||c))return!1;const{style:C,color:x}=m||{},{style:w,color:S}=v||{},{style:A,color:z}=y||{},{style:O,color:T}=M||{};return!(C!=s||x!=d||w!=l||S!=p||A!=a||z!=u||O!=o||T!=c)});return h===-1&&(h=BN.length,BN.push({left:{style:s,color:d},right:{style:l,color:p},top:{style:a,color:u},bottom:{style:o,color:c},diagonal:{style:void 0,color:void 0}})),h},CGt=e=>{const{fontName:t="Calibri",color:n,size:r,bold:i,italic:o,outline:a,shadow:s,strikeThrough:l,underline:c,family:u,verticalAlign:d}=e,p=rx(n),h=sVt(u),g=c?c.toLocaleLowerCase():void 0,m=d?d.toLocaleLowerCase():void 0;let v=WN.findIndex(y=>!(y.fontName!=t||y.color!=p||y.size!=r||y.bold!=i||y.italic!=o||y.outline!=a||y.shadow!=s||y.strikeThrough!=l||y.underline!=g||y.verticalAlign!=m||y.family!=h));return v===-1&&(v=WN.length,WN.push({fontName:t,color:p,size:r,bold:i,italic:o,outline:a,shadow:s,strikeThrough:l,underline:g,verticalAlign:m,family:h?.toString()})),v},xGt=e=>{const{alignment:t,borders:n,font:r,interior:i,numberFormat:o,protection:a,quotePrefix:s}=e;let{id:l}=e,c=0,u=0,d=0,p=0;l&&(l=hrt(l,Che),k$[l]==null&&(i&&(c=bGt(i)),n&&(u=MGt(n)),r&&(d=CGt(r)),o&&(p=yGt(o.format)),k$[l]=L$.length,L$.push({alignment:t,borderId:u||0,fillId:c||0,fontId:d||0,numFmtId:p||0,protection:a,quotePrefix:s,xfId:0})))},wGt={getTemplate(e){const t=vGt.getTemplate(ER),n=pGt.getTemplate(WN.map(l=>({...l,size:l.size!=null?l.size:e}))),r=lGt.getTemplate(qN),i=VVt.getTemplate(BN),o=ZVt.getTemplate(drt),a=iGt.getTemplate(L$),s=nGt.getTemplate(prt);return frt(),{name:"styleSheet",properties:{rawMap:{"mc:Ignorable":"x14ac x16r2 xr",xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision"}},children:[t,n,r,i,o,a,s,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}},SGt=(e,t)=>k$[hrt(e,t)]||0,AGt=(e,t)=>{Che=t,Che===1&&frt(),e.forEach(xGt)},OGt=wGt,zGt={getTemplate(e,t){const{name:n,columns:r,rowRange:i,displayName:o,showRowStripes:a,showColumnStripes:s,showFilterButtons:l,highlightFirstColumn:c,highlightLastColumn:u}=e||{},d=!i||i[0]-i[1]===0;if(!e||!n||!Array.isArray(r)||!r.length||d)return{name:"table"};const p=r.map((M,C)=>({name:"filterColumn",properties:{rawMap:{colId:C.toString(),hiddenButton:l[C]?0:1}}})),h=`A${i[0]}`,g=`${xz(r.length)}${i[1]}`,m=`${h}:${g}`,v=`${t+1}`,y=t?`${o}_${v}`:o;return{name:"table",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3",name:n,displayName:y,ref:m,totalsRowShown:0,id:v}},children:[{name:"autoFilter",properties:{rawMap:{ref:m}},children:p},{name:"tableColumns",properties:{rawMap:{count:r.length}},children:r.map((M,C)=>({name:"tableColumn",properties:{rawMap:{id:(C+1).toString(),name:uVt(M),dataCellStyle:"Normal"}}}))},{name:"tableStyleInfo",properties:{rawMap:{name:"TableStyleLight1",showFirstColumn:c?1:0,showLastColumn:u?1:0,showRowStripes:a?1:0,showColumnStripes:s?1:0}}}]}}},TGt=zGt,Dh=e=>{const[t,n,r,i]=e;return{name:`a:${t}`,children:[{name:`a:${n}`,properties:{rawMap:{val:r,lastClr:i}}}]}},EGt={getTemplate(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[Dh(["dk1","sysClr","windowText","000000"]),Dh(["lt1","sysClr","window","FFFFFF"]),Dh(["dk2","srgbClr","44546A"]),Dh(["lt2","srgbClr","E7E6E6"]),Dh(["accent1","srgbClr","4472C4"]),Dh(["accent2","srgbClr","ED7D31"]),Dh(["accent3","srgbClr","A5A5A5"]),Dh(["accent4","srgbClr","FFC000"]),Dh(["accent5","srgbClr","5B9BD5"]),Dh(["accent6","srgbClr","70AD47"]),Dh(["hlink","srgbClr","0563C1"]),Dh(["folHlink","srgbClr","954F72"])]}}},RGt=EGt,bn=e=>{const[t,n,r,i]=e;return{name:`a:${t}`,properties:{rawMap:{script:r,typeface:n,panose:i}}}},IGt={getTemplate(){return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[bn(["latin","Calibri Light",void 0,"020F0302020204030204"]),bn(["ea",""]),bn(["cs",""]),bn(["font","游ゴシック Light","Jpan"]),bn(["font","맑은 고딕","Hang"]),bn(["font","等线 Light","Hans"]),bn(["font","新細明體","Hant"]),bn(["font","Times New Roman","Arab"]),bn(["font","Times New Roman","Hebr"]),bn(["font","Tahoma","Thai"]),bn(["font","Nyala","Ethi"]),bn(["font","Vrinda","Beng"]),bn(["font","Shruti","Gujr"]),bn(["font","MoolBoran","Khmr"]),bn(["font","Tunga","Knda"]),bn(["font","Raavi","Guru"]),bn(["font","Euphemia","Cans"]),bn(["font","Plantagenet Cherokee","Cher"]),bn(["font","Microsoft Yi Baiti","Yiii"]),bn(["font","Microsoft Himalaya","Tibt"]),bn(["font","MV Boli","Thaa"]),bn(["font","Mangal","Deva"]),bn(["font","Gautami","Telu"]),bn(["font","Latha","Taml"]),bn(["font","Estrangelo Edessa","Syrc"]),bn(["font","Kalinga","Orya"]),bn(["font","Kartika","Mlym"]),bn(["font","DokChampa","Laoo"]),bn(["font","Iskoola Pota","Sinh"]),bn(["font","Mongolian Baiti","Mong"]),bn(["font","Times New Roman","Viet"]),bn(["font","Microsoft Uighur","Uigh"]),bn(["font","Sylfaen","Geor"]),bn(["font","Arial","Armn"]),bn(["font","Leelawadee UI","Bugi"]),bn(["font","Microsoft JhengHei","Bopo"]),bn(["font","Javanese Text","Java"]),bn(["font","Segoe UI","Lisu"]),bn(["font","Myanmar Text","Mymr"]),bn(["font","Ebrima","Nkoo"]),bn(["font","Nirmala UI","Olck"]),bn(["font","Ebrima","Osma"]),bn(["font","Phagspa","Phag"]),bn(["font","Estrangelo Edessa","Syrn"]),bn(["font","Estrangelo Edessa","Syrj"]),bn(["font","Estrangelo Edessa","Syre"]),bn(["font","Nirmala UI","Sora"]),bn(["font","Microsoft Tai Le","Tale"]),bn(["font","Microsoft New Tai Lue","Talu"]),bn(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[bn(["latin","Calibri",void 0,"020F0502020204030204"]),bn(["ea",""]),bn(["cs",""]),bn(["font","游ゴシック","Jpan"]),bn(["font","맑은 고딕","Hang"]),bn(["font","等线","Hans"]),bn(["font","新細明體","Hant"]),bn(["font","Arial","Arab"]),bn(["font","Arial","Hebr"]),bn(["font","Tahoma","Thai"]),bn(["font","Nyala","Ethi"]),bn(["font","Vrinda","Beng"]),bn(["font","Shruti","Gujr"]),bn(["font","DaunPenh","Khmr"]),bn(["font","Tunga","Knda"]),bn(["font","Raavi","Guru"]),bn(["font","Euphemia","Cans"]),bn(["font","Plantagenet Cherokee","Cher"]),bn(["font","Microsoft Yi Baiti","Yiii"]),bn(["font","Microsoft Himalaya","Tibt"]),bn(["font","MV Boli","Thaa"]),bn(["font","Mangal","Deva"]),bn(["font","Gautami","Telu"]),bn(["font","Latha","Taml"]),bn(["font","Estrangelo Edessa","Syrc"]),bn(["font","Kalinga","Orya"]),bn(["font","Kartika","Mlym"]),bn(["font","DokChampa","Laoo"]),bn(["font","Iskoola Pota","Sinh"]),bn(["font","Mongolian Baiti","Mong"]),bn(["font","Arial","Viet"]),bn(["font","Microsoft Uighur","Uigh"]),bn(["font","Sylfaen","Geor"]),bn(["font","Arial","Armn"]),bn(["font","Leelawadee UI","Bugi"]),bn(["font","Microsoft JhengHei","Bopo"]),bn(["font","Javanese Text","Java"]),bn(["font","Segoe UI","Lisu"]),bn(["font","Myanmar Text","Mymr"]),bn(["font","Ebrima","Nkoo"]),bn(["font","Nirmala UI","Olck"]),bn(["font","Ebrima","Osma"]),bn(["font","Phagspa","Phag"]),bn(["font","Estrangelo Edessa","Syrn"]),bn(["font","Estrangelo Edessa","Syrj"]),bn(["font","Estrangelo Edessa","Syre"]),bn(["font","Nirmala UI","Sora"]),bn(["font","Microsoft Tai Le","Tale"]),bn(["font","Microsoft New Tai Lue","Talu"]),bn(["font","Ebrima","Tfng"])]}]}}},PGt=IGt,Zv=(e,t,n)=>({name:`a:${e}`,properties:{rawMap:{val:t}},children:n}),hre=e=>{const[t,n,r,i,o,a]=e,s=[];return s.push(Zv("satMod",r)),i&&s.push(Zv("lumMod",i)),o&&s.push(Zv("tint",o)),a&&s.push(Zv("shade",a)),{name:"a:gs",properties:{rawMap:{pos:t}},children:[{name:"a:schemeClr",properties:{rawMap:{val:n}},children:s}]}},_$=(e,t)=>({name:"a:solidFill",children:[Zv("schemeClr",e,t)]}),xhe=e=>{const[t,n,r,i,o]=e,[a,s]=o;return{name:"a:gradFill",properties:{rawMap:{rotWithShape:t}},children:[{name:"a:gsLst",children:[hre(n),hre(r),hre(i)]},{name:"a:lin",properties:{rawMap:{ang:a,scaled:s}}}]}},fre=e=>{const[t,n,r,i]=e;return{name:"a:ln",properties:{rawMap:{w:t,cap:n,cmpd:r,algn:i}},children:[_$("phClr"),Zv("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},gre=e=>{const t=[];if(e){const[n,r,i,o,a]=e;t.push({name:"a:outerShdw",properties:{rawMap:{blurRad:n,dist:r,dir:i,algn:o,rotWithShape:a}},children:[Zv("srgbClr","000000",[Zv("alpha","63000")])]})}return{name:"a:effectStyle",children:[Object.assign({},{name:"a:effectLst"},t.length?{children:t}:{})]}},DGt=()=>({name:"a:fillStyleLst",children:[_$("phClr"),xhe(["1",["0","phClr","105000","110000","67000"],["50000","phClr","103000","105000","73000"],["100000","phClr","109000","105000","81000"],["5400000","0"]]),xhe(["1",["0","phClr","103000","102000","94000"],["50000","phClr","110000","100000",void 0,"100000"],["100000","phClr","120000","99000",void 0,"78000"],["5400000","0"]])]}),kGt=()=>({name:"a:lnStyleLst",children:[fre(["6350","flat","sng","ctr"]),fre(["12700","flat","sng","ctr"]),fre(["19050","flat","sng","ctr"])]}),LGt=()=>({name:"a:effectStyleLst",children:[gre(),gre(),gre(["57150","19050","5400000","ctr","0"])]}),_Gt=()=>({name:"a:bgFillStyleLst",children:[_$("phClr"),_$("phClr",[Zv("tint","95000"),Zv("satMod","170000")]),xhe(["1",["0","phClr","150000","102000","93000","98000"],["50000","phClr","130000","103000","98000","90000"],["100000","phClr","120000",void 0,void 0,"63000"],["5400000","0"]])]}),NGt={getTemplate(){return{name:"a:fmtScheme",properties:{rawMap:{name:"Office"}},children:[DGt(),kGt(),LGt(),_Gt()]}}},FGt=NGt,WGt={getTemplate(){return{name:"a:themeElements",children:[RGt.getTemplate(),PGt.getTemplate(),FGt.getTemplate()]}}},qGt=WGt,BGt={getTemplate(){return{name:"a:theme",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{a:"http://schemas.openxmlformats.org/drawingml/2006/main"}}],rawMap:{name:"Office Theme"}},children:[qGt.getTemplate(),{name:"a:objectDefaults"},{name:"a:extraClrSchemeLst"}]}}},jGt=BGt,HGt=()=>({name:"o:shapelayout",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}]},children:[{name:"o:idmap",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:{data:"1"}}}]}),VGt=()=>({name:"v:stroke",properties:{rawMap:{joinstyle:"miter"}}}),GGt=e=>({name:"v:formulas",children:e.map(t=>({name:"v:f",properties:{rawMap:{eqn:t}}}))}),$Gt=()=>({name:"v:path",properties:{prefixedAttributes:[{prefix:"o:",map:{connecttype:"rect",extrusionok:"f"}}],rawMap:{gradientshapeok:"t"}}}),grt=e=>{const{aspectratio:t,rotation:n}=e||{},r={};return t&&(r.aspectratio="t"),n&&(r.rotation="t"),{name:"o:lock",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:r}}};function UGt(e,t,n,r,i){return(e-t)/(n-t)*(i-r)+r}var XGt=(e,t)=>{let n;const{recolor:r,brightness:i,contrast:o,id:a}=e;if(r&&(n={},(r==="Washout"||r==="Grayscale")&&(n.gain="19661f",n.blacklevel="22938f"),(r==="Black & White"||r==="Grayscale")&&(n.grayscale="t",r==="Black & White"&&(n.bilevel="t"))),!r||r==="Grayscale"){if(n||(n={}),o!=null&&o!==50){let s="1";o>=0&&(o<50?s=String(o/50):o<100?s=String(50/(100-o)):o===100&&(s="2147483647f")),n.gain=s}i!=null&&i!==50&&(n.blacklevel=UGt(i,0,100,-.5,.5).toString())}return{name:"v:imagedata",properties:{prefixedAttributes:[{prefix:"o:",map:{relid:`rId${t}`,title:a}}],rawMap:n}}},YGt=()=>{const e=["if lineDrawn pixelLineWidth 0","sum @0 1 0","sum 0 0 @1","prod @2 1 2","prod @3 21600 pixelWidth","prod @3 21600 pixelHeight","sum @0 0 1","prod @6 1 2","prod @7 21600 pixelWidth","sum @8 21600 0","prod @7 21600 pixelHeight","sum @10 21600 0"];return{name:"v:shapetype",properties:{prefixedAttributes:[{prefix:"o:",map:{spt:"75",preferrelative:"t"}}],rawMap:{coordsize:"21600,21600",filled:"f",id:"_x0000_t75",path:"m@4@5l@4@11@9@11@9@5xe",stroked:"f"}},children:[VGt(),GGt(e),$Gt(),grt({aspectratio:!0})]}},sRe=e=>Math.floor((e??0)*.74999943307122),KGt=(e,t)=>{const{width:n=0,height:r=0,altText:i}=e,o=sRe(n),a=sRe(r);return{name:"v:shape",properties:{rawMap:{id:e.headerFooterPosition,"o:spid":"_x0000_s1025",style:`position: absolute; margin-left: 0; margin-top: 10in; margin-bottom: 0; margin-right: 0; width: ${o}pt; height: ${a}pt; z-index: ${t+1}`,type:"#_x0000_t75",alt:i}},children:[XGt(e,t+1),grt({rotation:!0})]}},QGt={getTemplate(e){const t=$x.get(e.sheetIndex)||[],n=[HGt(),YGt(),...t.map((r,i)=>KGt(r,i))];return{name:"xml",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{v:"urn:schemas-microsoft-com:vml",o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel"}}]},children:n}}},ZGt=QGt,JGt={getTemplate(e,t){const n=(t+1).toString();return{name:"sheet",properties:{rawMap:{name:e,sheetId:n,"r:id":`rId${n}`}}}}},e7t=JGt,t7t={getTemplate(e){return{name:"sheets",children:e.map((t,n)=>e7t.getTemplate(t,n))}}},n7t=t7t,r7t={getTemplate(e,t){return{name:"workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[{name:"bookViews",children:[{name:"workbookView",properties:{rawMap:{activeTab:t}}}]},n7t.getTemplate(e)]}}},i7t=r7t,o7t=e=>Math.ceil((e-12)/7+1),a7t={getTemplate(e){const{min:t,max:n,outlineLevel:r,s:i,width:o,hidden:a,bestFit:s}=e;let l=1,c="0";return o>1&&(l=o7t(o),c="1"),{name:"col",properties:{rawMap:{min:t,max:n,outlineLevel:r??void 0,width:l,style:i,hidden:a?"1":"0",bestFit:s?"1":"0",customWidth:c}}}}},s7t=a7t,l7t={getTemplate(e){return{name:"mergeCell",properties:{rawMap:{ref:e}}}}},c7t=l7t,u7t=e=>{const t=e.charAt(0).toLowerCase();return t==="s"?"inlineStr":t},d7t={getTemplate(e,t,n){const{ref:r,data:i,styleId:o}=e,{type:a,value:s}=i||{type:"empty",value:null};let l=a;a==="f"?l="str":a.charAt(0)===a.charAt(0).toUpperCase()&&(l=u7t(a));const c={name:"c",properties:{rawMap:{r,t:l==="empty"?void 0:l,s:o?SGt(o,n):void 0}}};if(l==="empty")return c;let u;return l==="str"&&a==="f"?u=[{name:"f",textNode:sm(Mhe(s))}]:l==="inlineStr"?u=[{name:"is",children:[{name:"t",textNode:sm(Mhe(s))}]}]:u=[{name:"v",textNode:s}],Object.assign({},c,{children:u})}},p7t=d7t,h7t=(e,t)=>{const n=[];let r=0;for(let i=0;i<e.length;i++){const o=e[i];o.mergeAcross&&(n.push({pos:i,excelPos:r}),r+=o.mergeAcross),r++}if(n.length)for(let i=n.length-1;i>=0;i--){const o=[],a=e[n[i].pos];for(let s=1;s<=a.mergeAcross;s++)o.push({ref:`${xz(n[i].excelPos+1+s)}${t+1}`,styleId:a.styleId,data:{type:"empty",value:null}});o.length&&e.splice(n[i].pos+1,0,...o)}},f7t=e=>e.data?.value!==""||e.styleId!==void 0,g7t={getTemplate(e,t,n){const{collapsed:r,hidden:i,height:o,outlineLevel:a,cells:s=[]}=e;h7t(s,t);const l=s.filter(f7t).map((c,u)=>p7t.getTemplate(c,u,n));return{name:"row",properties:{rawMap:{r:t+1,collapsed:r?"1":"0",hidden:i?"1":"0",ht:o,customHeight:o!=null?"1":"0",spans:"1:1",outlineLevel:a||void 0}},children:l}}},m7t=g7t,v7t=(e,t,n)=>{const r=[],i=[];e.forEach((s,l)=>{const c=s.cells;let u=0,d;c.forEach((p,h)=>{const g=h+u+1,m=xz(g),v=l+1;if(p.mergeAcross){u+=p.mergeAcross;const M=xz(h+u+1);r.push(`${m}${v}:${M}${v}`)}t[g-1]||(t[g-1]={});const{collapsibleRanges:y}=p;y&&y.forEach(M=>{i.push([g+M[0],g+M[1]])}),d=t[g-1],d.min=g,d.max=g,p.ref=`${m}${v}`})}),i.sort((s,l)=>s[0]!==l[0]?s[0]-l[0]:l[1]-s[1]);const o=new Map,a=new Map;return i.filter(s=>{const l=s.toString();return o.get(l)?!1:(o.set(l,!0),!0)}).forEach(s=>{const l=t.find(u=>u.min==s[0]&&u.max==s[1]),c=a.get(s[0]);t.push({min:s[0],max:s[1],outlineLevel:n?void 0:c||1,width:(l||{width:100}).width}),a.set(s[0],(c||0)+1)}),r},b7t=e=>!e||e!=="Portrait"&&e!=="Landscape"?"portrait":e.toLocaleLowerCase(),y7t=e=>{if(e==null)return 1;const n=["Letter","Letter Small","Tabloid","Ledger","Legal","Statement","Executive","A3","A4","A4 Small","A5","A6","B4","B5","Folio","Envelope","Envelope DL","Envelope C5","Envelope B5","Envelope C3","Envelope C4","Envelope C6","Envelope Monarch","Japanese Postcard","Japanese Double Postcard"].indexOf(e);return n===-1?1:n+1},M7t=e=>{const t={"&[Page]":"&P","&[Pages]":"&N","&[Date]":"&D","&[Time]":"&T","&[Tab]":"&A","&[Path]":"&Z","&[File]":"&F","&[Picture]":"&G"};for(const n of Object.keys(t))e=e.replace(n,t[n]);return e},C7t=e=>e==="Center"?"C":e==="Right"?"R":"L",x7t=(e,t)=>(t&&(e+="&amp;&quot;",e+=t.fontName||"Calibri",t.bold!==t.italic?e+=t.bold?",Bold":",Italic":t.bold?e+=",Bold Italic":e+=",Regular",e+="&quot;",t.size&&(e+=`&amp;${t.size}`),t.strikeThrough&&(e+="&amp;S"),t.underline&&(e+=`&amp;${t.underline==="Double"?"E":"U"}`),t.color&&(e+=`&amp;K${t.color.replace("#","").toUpperCase()}`)),e),w7t=(e,t,n)=>e.reduce((r,i,o)=>{const a=C7t(i.position),s=x7t(`${r}&amp;${a}`,i.font),l=["Left","Center","Right"];i.position||(i.position=l[o]);const{image:c}=i;if(i.value==="&[Picture]"&&c){const u=`${a}${t}${n}`;X7t(c,u)}return`${s}${sm(M7t(i.value))}`},""),S7t=e=>{const t=["all","first","even"],n=[];return t.forEach(r=>{const i=e[r],o=r==="all"?"odd":r;if(i)for(const a of Object.keys(i)){const s=i[a],l=`${a.charAt(0).toUpperCase()}${a.slice(1)}`,c=a[0].toUpperCase();if(s){const u=r==="all"?"":r.toUpperCase();n.push({name:`${o}${l}`,properties:{rawMap:{"xml:space":"preserve"}},textNode:w7t(s,c,u)})}}}),n},A7t=e=>t=>(e.length&&t.children.push({name:"cols",children:e.map(n=>s7t.getTemplate(n))}),t),O7t=(e,t)=>n=>(e.length&&n.children.push({name:"sheetData",children:e.map((r,i)=>m7t.getTemplate(r,i,t))}),n),z7t=e=>t=>(e.length&&t.children.push({name:"mergeCells",properties:{rawMap:{count:e.length}},children:e.map(n=>c7t.getTemplate(n))}),t),T7t=e=>t=>{const{top:n=.75,right:r=.7,bottom:i=.75,left:o=.7,header:a=.3,footer:s=.3}=e;return t.children.push({name:"pageMargins",properties:{rawMap:{bottom:i,footer:s,header:a,left:o,right:r,top:n}}}),t},E7t=e=>t=>(e&&t.children.push({name:"pageSetup",properties:{rawMap:{horizontalDpi:0,verticalDpi:0,orientation:b7t(e.orientation),paperSize:y7t(e.pageSize)}}}),t),R7t=e=>t=>{if(!e)return t;const n=e.first!=null?1:0,r=e.even!=null?1:0;return t.children.push({name:"headerFooter",properties:{rawMap:{differentFirst:n,differentOddEven:r}},children:S7t(e)}),t},I7t=e=>t=>(e&&t.children.push({name:"tableParts",properties:{rawMap:{count:"1"}},children:[{name:"tablePart",properties:{rawMap:{"r:id":`rId${++t.rIdCounter}`}}}]}),t),P7t=e=>t=>(Sz.get(e)?.length&&t.children.push({name:"drawing",properties:{rawMap:{"r:id":`rId${++t.rIdCounter}`}}}),t),D7t=e=>t=>($x.get(e)&&t.children.push({name:"legacyDrawingHF",properties:{rawMap:{"r:id":`rId${++t.rIdCounter}`}}}),t),k7t=(e=0,t=0)=>{const n=e>0||t>0;return n?[{name:"pane",properties:{rawMap:{state:n?"frozen":void 0,topLeftCell:n?`${xz(e+1)}${t+1}`:void 0,xSplit:e===0?void 0:e,ySplit:t===0?void 0:t}}}]:void 0},L7t=(e=!1,t,n)=>r=>(r.children.push({name:"sheetViews",children:[{name:"sheetView",properties:{rawMap:{rightToLeft:e===!0?"1":"0",workbookViewId:"0"}},children:k7t(t,n)}]}),r),_7t=()=>e=>(e.children.push({name:"sheetPr",children:[{name:"outlinePr",properties:{rawMap:{summaryBelow:0}}}]}),e),N7t=e=>t=>{const n=e.reduce((r,i)=>i.outlineLevel&&i.outlineLevel>r?i.outlineLevel:r,0);return t.children.push({name:"sheetFormatPr",properties:{rawMap:{baseColWidth:10,defaultRowHeight:16,outlineLevelRow:n||void 0}}}),t},F7t={getTemplate(e){const{worksheet:t,currentSheet:n,config:r}=e,{margins:i={},pageSetup:o,headerFooterConfig:a,suppressColumnOutline:s,rightToLeft:l,frozenRowCount:c,frozenColumnCount:u}=r,{table:d}=t,{rows:p,columns:h}=d,g=h&&h.length?v7t(p,h,!!s):[],m=Vy.get(n),{children:v}=[_7t(),L7t(l,u,c),N7t(p),A7t(h),O7t(p,n+1),z7t(g),T7t(i),E7t(o),R7t(a),P7t(n),D7t(n),I7t(m)].reduce((y,M)=>M(y),{children:[],rIdCounter:0});return{name:"worksheet",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:v}}},W7t=F7t,GA=new Map,Hy=[],wz=new Map,Sz=new Map,$x=new Map,rP=new Map,fW=new Map,Vy=new Map,q7t="AG-GRID-TABLE",qye="SINGLE_SHEET";function B7t(){return qye}function j7t(e){qye=e}function H7t(e,t,n){K7t(t),AGt(e,Hy.length);const r=Object.assign({},n);return n.exportAsExcelTable&&n.colModel.isPivotActive()&&(V7t("pivot mode"),r.exportAsExcelTable=!1),U7t(t,r),d$t(t,r)}function V7t(e){ut(163,{featureName:e})}function G7t(e){return e.replace(/^[^a-zA-Z_]+/,"_").replace(/\s/g,"_").replace(/[^a-zA-Z0-9_]/g,"_")}function $7t(e,t){if(Vy.has(e)){ut(164);return}Vy.set(e,t)}function U7t(e,t){const{exportAsExcelTable:n,prependContent:r,appendContent:i,colModel:o}=t;if(!n)return;const a=typeof n=="boolean"?{}:n,{name:s,showColumnStripes:l,showRowStripes:c,showFilterButton:u,highlightFirstColumn:d,highlightLastColumn:p}=a,h=G7t(s||q7t),g=Hy.length-1,{table:m}=e,{rows:v,columns:y}=m,M=Ttt(o),C=r?r.length:0,x=i?i.length:0,w=v.length,S=y.length,A=[],z=[];for(let O=0;O<S;O++){const T=y[O];A.push(T.displayName||""),z.push(u==="match"||u===void 0?T.filterAllowed??!1:u)}if(!A||!A.length||!w||!h){ut(165);return}$7t(g,{name:`table${Vy.size+1}`,displayName:h,columns:A,showFilterButtons:z,rowRange:[M+C,M+(w-M)-x],showRowStripes:c??!0,showColumnStripes:l??!1,highlightFirstColumn:d??!1,highlightLastColumn:p??!1})}function X7t(e,t){const n=Hy.length-1,r=e;r.headerFooterPosition=t,mrt({imageToAdd:r,idx:n});let i=$x.get(n);i||(i=[],$x.set(n,i)),i.find(o=>o.id===e.id)||i.push(e)}function Y7t(e,t,n,r,i){const o=Hy.length,{row:a,column:s}=e.position||{},l=e;r&&(t!=null&&n!=null&&(!a||!s)&&(e.position||(e.position={}),e.position=Object.assign({},e.position,{row:t,column:r.indexOf(n)+1})),lVt(l,r),cVt(l,i)),mrt({imageToAdd:l,idx:o});let c=fW.get(o);c||(c=new Map,fW.set(o,c));const u=Sz.get(o);u?u.push(l):Sz.set(o,[l]),c.get(e.id)||c.set(e.id,{index:c.size,type:e.imageType})}function mrt(e){const{imageToAdd:t,idx:n}=e,r=wz.get(t.id);if(r){const i=r.find(o=>o.sheetId===n);i?i.image.push(t):r.push({sheetId:n,image:[t]})}else wz.set(t.id,[{sheetId:n,image:[t]}]),rP.set(t.id,{type:t.imageType,index:rP.size})}function K7t(e){const t=sm(e.name)||"";let n="";for(;Hy.indexOf(`${t}${n}`)!==-1;)n===""?n="_1":n=`_${parseInt(n.slice(1),10)+1}`;e.name=`${t}${n}`,Hy.push(e.name)}function lRe(e){return GA.has(e)?GA.get(e):(GA.set(e,GA.size),GA.size-1)}function cRe(){GA.clear(),wz.clear(),Sz.clear(),$x.clear(),rP.clear(),fW.clear(),Vy.clear(),Hy=[],qye="SINGLE_SHEET"}function Q7t(e){return m1(i7t.getTemplate(Hy,e))}function Z7t(e){return m1(OGt.getTemplate(e))}function J7t(){return m1(IVt.getTemplate(GA))}function e$t(e){return m1(vVt.getTemplate(e))}function t$t(e){return m1(gVt.getTemplate(e))}function n$t(){const e=b6.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"}]);return m1(e)}function r$t(){return m1(jGt.getTemplate())}function i$t(e,t){return m1(TGt.getTemplate(e,t))}function o$t(e){const t=new Array(e).fill(void 0).map((r,i)=>({Id:`rId${i+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:`worksheets/sheet${i+1}.xml`})),n=b6.getTemplate([...t,{Id:`rId${e+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"},{Id:`rId${e+2}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"},{Id:`rId${e+3}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"}]);return m1(n)}function a$t(e){return m1(OVt.getTemplate({sheetIndex:e}))}function s$t(e){const t=fW.get(e)||[],n=[];for(const[r,i]of t){const{index:o,type:a}=i;n.push({Id:`rId${o+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/image${rP.get(r).index+1}.${LK(a)}`})}return m1(b6.getTemplate(n))}function l$t(e){return m1(ZGt.getTemplate({sheetIndex:e}),!0)}function c$t(e){const t=$x.get(e)||[],n=[];for(let r=0;r<t.length;r++){const i=t[r],o=rP.get(i.id);if(!o)continue;const{index:a,type:s}=o;n.push({Id:`rId${r+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/image${a+1}.${LK(s)}`})}return m1(b6.getTemplate(n))}function u$t({drawingIndex:e,vmlDrawingIndex:t,tableName:n}={}){if(e===void 0&&t===void 0&&n===void 0)return"";const r=[];e!=null&&r.push({Id:`rId${r.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/drawing${e+1}.xml`}),t!=null&&r.push({Id:`rId${r.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Target:`../drawings/vmlDrawing${t+1}.vml`}),n!=null&&r.push({Id:`rId${r.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",Target:`../tables/${n}.xml`});const i=b6.getTemplate(r);return m1(i)}function d$t(e,t){return m1(W7t.getTemplate({worksheet:e,currentSheet:Hy.length-1,config:t}))}var p$t=class extends Rnt{constructor(e){super(e),this.mixedStyles={},this.mixedStyleCounter=0,this.rows=[],this.frozenRowCount=0,this.skipFrozenRows=!1,this.frozenColumnCount=0,this.skipFrozenColumns=!1,this.config=Object.assign({},e),this.stylesByIds={},this.config.baseExcelStyles.forEach(t=>{this.stylesByIds[t.id]=t}),this.excelStyles=[...this.config.baseExcelStyles,{id:"_quotePrefix",quotePrefix:1}]}addCustomContent(e){e.forEach(t=>{const n=this.rows.length+1;let r;!this.config.suppressRowOutline&&t.outlineLevel!=null&&(r=t.outlineLevel);const i={height:GG(n,t.height||this.config.rowHeight),cells:(t.cells||[]).map((o,a)=>{const s=this.addImage(n,this.columnsToExport[a],o.data?.value);let l=null;o.styleId&&(l=typeof o.styleId=="string"?[o.styleId]:o.styleId);const c=this.getStyleId(l);if(s)return this.createCell(c,this.getDataTypeForValue(s.value),s.value==null?"":s.value);const u=o.data?.value??"",d=this.getDataTypeForValue(u);return o.mergeAcross?this.createMergedCell(c,d,u,o.mergeAcross):this.createCell(c,d,u)}),outlineLevel:r};t.collapsed!=null&&(i.collapsed=t.collapsed),t.hidden!=null&&(i.hidden=t.hidden),this.rows.push(i)})}onNewHeaderGroupingRow(){const e=[],{freezeRows:t,headerRowHeight:n}=this.config;return this.rows.push({cells:e,height:GG(this.rows.length+1,n)}),t&&this.frozenRowCount++,{onColumn:(r,i,o,a,s)=>{const l=this.config.styleLinker({rowType:"HEADER_GROUPING",rowIndex:1,value:`grouping-${i}`,columnGroup:r});e.push({...this.createMergedCell(this.getStyleId(l),this.getDataTypeForValue("string"),i,a),collapsibleRanges:s})}}}onNewHeaderRow(){const{freezeRows:e,headerRowHeight:t}=this.config;return e&&this.frozenRowCount++,this.onNewRow(this.onNewHeaderColumn,t)}onNewBodyRow(e){const{freezeRows:t,rowHeight:n}=this.config;this.skipFrozenRows||(t==="headersAndPinnedRows"&&e?.rowPinned==="top"?this.frozenRowCount++:typeof t=="function"?t(Vn(this.gos,{node:e}))?this.frozenRowCount++:this.skipFrozenRows=!0:this.skipFrozenRows=!0);const r=this.onNewRow(this.onNewBodyColumn,n);return e&&this.addRowOutlineIfNecessary(e),r}prepare(e){super.prepare(e),this.columnsToExport=[...e],this.cols=e.map((t,n)=>this.convertColumnToExcel(t,n))}parse(){const e=this.rows.reduce((i,o)=>Math.max(i,o.cells.length),0);for(;this.cols.length<e;)this.cols.push(this.convertColumnToExcel(null,this.cols.length+1));const{config:t}=this;let n;if(t.sheetName!=null){const{sheetName:i}=t,o=typeof i=="function"?i(Vn(this.gos,{})):i;n=String(o).substring(0,31)}else n="ag-grid";const r={name:n,table:{columns:this.cols,rows:this.rows}};return this.createExcel(r)}addRowOutlineIfNecessary(e){const{gos:t,suppressRowOutline:n,rowGroupExpandState:r="expanded"}=this.config;if(t.get("groupHideOpenParents")||n||e.level==null)return;const o=e.footer?1:0,a=zr(this.rows),s=Math.min(e.level+o,7);if(a.outlineLevel=s,r==="expanded")return;const l=r==="collapsed";if(e.isExpandable()){const c=!l&&e.expanded;a.collapsed=!c}a.hidden=!!e.parent&&e.parent.level!==-1&&(l||this.isAnyParentCollapsed(e.parent))}isAnyParentCollapsed(e){for(;e&&e.level!==-1;){if(!e.expanded)return!0;e=e.parent}return!1}convertColumnToExcel(e,t){const n=this.config.columnWidth,i=(e?this.extractHeaderValue(e):void 0)??"",o=e?e.isFilterAllowed():!1;return n?typeof n=="number"?{width:n,displayName:i,filterAllowed:o}:{width:n({column:e,index:t}),displayName:i,filterAllowed:o}:e?{width:Math.max(e.getActualWidth(),75),displayName:i,filterAllowed:o}:{displayName:i,filterAllowed:o}}onNewHeaderColumn(e,t){return n=>{const r=this.extractHeaderValue(n),i=this.config.styleLinker({rowType:"HEADER",rowIndex:e,value:r,column:n});t.push(this.createCell(this.getStyleId(i),this.getDataTypeForValue("string"),r))}}onNewBodyColumn(e,t){let n=0;const{freezeColumns:r,rightToLeft:i}=this.config;return(o,a,s)=>{if(n>0){n-=1;return}if(!this.skipFrozenColumns){const g=o.getPinned();r==="pinned"&&g&&(g===!0||g==="left")!==i?this.frozenColumnCount++:typeof r=="function"&&r(Vn(this.gos,{column:o}))?this.frozenColumnCount++:this.skipFrozenColumns=!0}const{value:l,valueFormatted:c}=this.extractRowCellValue(o,a,e,"excel",s),u=this.config.styleLinker({rowType:"BODY",rowIndex:e,value:l,column:o,node:s}),d=this.getStyleId(u),p=o.getColSpan(s),h=this.addImage(e,o,l);h?t.push(this.createCell(d,this.getDataTypeForValue(h.value),h.value==null?"":h.value)):p>1?(n=p-1,t.push(this.createMergedCell(d,this.getDataTypeForValue(l),l,p-1))):t.push(this.createCell(d,this.getDataTypeForValue(l),l,c))}}onNewRow(e,t){const n=[];return this.rows.push({cells:n,height:GG(this.rows.length+1,t)}),{onColumn:e.bind(this,this.rows.length,n)()}}createExcel(e){const{excelStyles:t,config:n}=this;return this.frozenColumnCount&&(n.frozenColumnCount=this.frozenColumnCount),this.frozenRowCount&&(n.frozenRowCount=this.frozenRowCount),H7t(t,e,n)}getDataTypeForValue(e){return e===void 0?"empty":this.isNumerical(e)?"n":"s"}getTypeFromStyle(e,t){if(this.isFormula(t))return"f";if(e&&e.dataType)switch(e.dataType.toLocaleLowerCase()){case"formula":return"f";case"string":return"s";case"number":return"n";case"datetime":return"d";case"error":return"e";case"boolean":return"b";default:ut(162,{id:e.id,dataType:e.dataType})}return null}addImage(e,t,n){if(!this.config.addImageToCell)return;const r=this.config.addImageToCell(e,t,n);if(r)return Y7t(r.image,e,t,this.columnsToExport,this.config.rowHeight),r}createCell(e,t,n,r){const i=this.getStyleById(e);!i?.dataType&&t==="s"&&r!=null&&(n=r);const o=this.getTypeFromStyle(i,n)||t,{value:a,escaped:s}=this.getCellValue(o,n),l=[];return i&&l.push(e),s&&l.push("_quotePrefix"),e=this.getStyleId(l)||void 0,{styleId:e,data:{type:o,value:a}}}createMergedCell(e,t,n,r){const i=n??"";return{styleId:this.getStyleById(e)?e:void 0,data:{type:t,value:t==="s"?lRe(i).toString():n},mergeAcross:r}}getCellValue(e,t){let n=!1;if(t==null||e==="s"&&t==="")return{value:"",escaped:!1};if(e==="s")t&&t[0]==="'"&&(n=!0,t=t.slice(1)),t=lRe(t).toString();else if(e==="f")t=t.slice(1);else if(e==="n"){const r=Number(t);isNaN(r)?t="":t!==""&&(t=r.toString())}return{value:t,escaped:n}}getStyleId(e){if(!e||!e.length)return null;if(e.length===1)return e[0];const t=e.join("-");return this.mixedStyles[t]||this.addNewMixedStyle(e),this.mixedStyles[t].excelID}deepCloneObject(e){return JSON.parse(JSON.stringify(e))}addNewMixedStyle(e){this.mixedStyleCounter+=1;const t=`mixedStyle${this.mixedStyleCounter}`,n={};for(const i of e)for(const o of this.excelStyles)o.id===i&&eu(n,this.deepCloneObject(o));n.id=t;const r=e.join("-");this.mixedStyles[r]={excelID:t,key:r,result:n},this.excelStyles.push(n),this.stylesByIds[t]=n}isFormula(e){return e==null?!1:this.config.autoConvertFormulas&&e.toString().startsWith("=")}isNumerical(e){return typeof e=="bigint"?!0:isFinite(e)&&e!==""&&!isNaN(parseFloat(e))}getStyleById(e){return e==null?null:this.stylesByIds[e]||null}},h$t=async e=>{let t=0;const n=[],r=new WritableStream({write:a=>{n.push(a),t+=a.length}}),i=new ReadableStream({start:a=>{const s=new FileReader;s.onload=l=>{l.target?.result&&a.enqueue(l.target.result),a.close()},s.readAsArrayBuffer(e)}}),o=new window.CompressionStream("deflate-raw");return await i.pipeThrough(o).pipeTo(r),{size:t,content:new Blob(n)}},f$t=async e=>{const t=new Blob([e]),{size:n,content:r}=await h$t(t),i=new Uint8Array(await r.arrayBuffer());return{size:n,content:i}},g$t=e=>{let t=e.getHours();return t<<=6,t=t|e.getMinutes(),t<<=5,t=t|e.getSeconds()/2,t},m$t=e=>{let t=e.getFullYear()-1980;return t<<=4,t=t|e.getMonth()+1,t<<=5,t=t|e.getDate(),t};function n0(e,t){let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e&255),e>>>=8;return n}var uRe=e=>{if(!e.length)return 0;let t=-1,n=0,r=0,i=0;for(let o=0;o<e.length;o++)n=e[o],r=(t^n)&255,i=v$t[r],t=t>>>8^i;return t^-1},dRe=e=>e.length?uRe(typeof e=="string"?new TextEncoder().encode(e):e):0,v$t=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function b$t(e){const t=String.fromCharCode;function n(d){const p=[];if(!d)return[];const h=d.length;let g=0,m,v;for(;g<h;)m=d.charCodeAt(g++),m>=55296&&m<=56319&&g<h?(v=d.charCodeAt(g++),(v&64512)==56320?p.push(((m&1023)<<10)+(v&1023)+65536):(p.push(m),g--)):p.push(m);return p}function r(d){if(d>=55296&&d<=57343)throw Error(Of(255,{point:d}))}function i(d,p){return t(d>>p&63|128)}function o(d){if((d&4294967168)==0)return t(d);let p="";return(d&4294965248)==0?p=t(d>>6&31|192):(d&4294901760)==0?(r(d),p=t(d>>12&15|224),p+=i(d,6)):(d&4292870144)==0&&(p=t(d>>18&7|240),p+=i(d,12),p+=i(d,6)),p+=t(d&63|128),p}const a=n(e),s=a.length;let l=-1,c,u="";for(;++l<s;)c=a[l],u+=o(c);return u}var vrt=(e,t,n,r,i,o)=>{const{content:a,path:s,created:l}=e,c=g$t(l),u=m$t(l),d=dRe(i),p=o!==void 0?o:r,h=b$t(s),g=h!==s;let m="";if(g){const C=n0(1,1)+n0(dRe(h),4)+h;m="up"+n0(C.length,2)+C}const v="\0"+(g?"\0\b":"\0\0")+n0(t?8:0,2)+n0(c,2)+n0(u,2)+n0(p?d:0,4)+n0(o??r,4)+n0(r,4)+n0(h.length,2)+n0(m.length,2),y="PK"+v+h+m,M="PK\0"+v+"\0\0\0\0\0\0"+(a?"\0\0\0\0":"\0\0\0")+n0(n,4)+h+m;return{localFileHeader:Uint8Array.from(y,C=>C.charCodeAt(0)),centralDirectoryHeader:Uint8Array.from(M,C=>C.charCodeAt(0))}},brt=e=>{let t;if(typeof e=="string"){const n=atob(e.split(";base64,")[1]);t=Uint8Array.from(n,r=>r.charCodeAt(0))}else t=e;return{size:t.length,content:t}},y$t=async(e,t)=>{const{content:n}=e,{size:r,content:i}=n?brt(n):{size:0,content:Uint8Array.from([])};let o,a,s=!1;if(e.type==="file"&&i&&r>0){const u=await f$t(i);o=u.content,a=u.size,s=!0}return{...vrt(e,s,t,r,i,a),content:o||i,isCompressed:s}},M$t=(e,t)=>{const{content:n}=e,{content:r}=n?brt(n):{content:Uint8Array.from([])};return{...vrt(e,!1,t,r.length,r,void 0),content:r,isCompressed:!1}},C$t=(e,t,n)=>{const r="PK\0\0\0\0"+n0(e,2)+n0(e,2)+n0(t,4)+n0(n,4)+"\0\0";return Uint8Array.from(r,i=>i.charCodeAt(0))},yrt=class{constructor(){this.folders=[],this.files=[]}addFolders(e){e.forEach(this.addFolder.bind(this))}addFolder(e){this.folders.push({path:e,created:new Date,isBase64:!1,type:"folder"})}addFile(e,t,n=!1){this.files.push({path:e,created:new Date,content:n?t:new TextEncoder().encode(t),isBase64:n,type:"file"})}async getZipFile(e="application/zip"){const t=await this.buildCompressedFileStream();return this.clearStream(),new Blob([t],{type:e})}getUncompressedZipFile(e="application/zip"){const t=this.buildFileStream();return this.clearStream(),new Blob([t],{type:e})}clearStream(){this.folders=[],this.files=[]}packageFiles(e){let t=0,n=0;for(const c of e){const{localFileHeader:u,centralDirectoryHeader:d,content:p}=c;t+=u.length+p.length,n+=d.length}const r=new Uint8Array(t),i=new Uint8Array(n);let o=0,a=0;for(const c of e){const{localFileHeader:u,centralDirectoryHeader:d,content:p}=c;r.set(u,o),o+=u.length,r.set(p,o),o+=p.length,i.set(d,a),a+=d.length}const s=C$t(e.length,n,t),l=new Uint8Array(r.length+i.length+s.length);return l.set(r),l.set(i,r.length),l.set(s,r.length+i.length),l}async buildCompressedFileStream(){const e=[...this.folders,...this.files],t=[];let n=0;for(const r of e){const i=await y$t(r,n),{localFileHeader:o,content:a}=i;t.push(i),n+=o.length+a.length}return this.packageFiles(t)}buildFileStream(){const e=[...this.folders,...this.files],t=[];let n=0;for(const r of e){const i=M$t(r,n),{localFileHeader:o,content:a}=i;t.push(i),n+=o.length+a.length}return this.packageFiles(t)}},x$t=e=>{if(e.addFolders(["_rels/","docProps/","xl/","xl/theme/","xl/_rels/","xl/worksheets/"]),!wz.size)return;e.addFolders(["xl/worksheets/_rels","xl/drawings/","xl/drawings/_rels","xl/media/"]);let t=0;wz.forEach(n=>{const r=n[0].image[0],{base64:i,imageType:o}=r;e.addFile(`xl/media/image${++t}.${LK(o)}`,i,!0)})},w$t=(e,t)=>{let n=0,r=0;for(let i=0;i<t.length;i++){const o=t[i];e.addFile(`xl/worksheets/sheet${i+1}.xml`,o,!1);const a=wz.size>0&&Sz.has(i),s=Vy.size>0&&Vy.get(i),l=wz.size&&$x.has(i);if(!a&&!s&&!l)continue;let c,u,d;a&&(S$t(e,i,n),u=n,n++),l&&(A$t(e,i,r),d=r,r++),s&&(c=s.name);const p=`xl/worksheets/_rels/sheet${i+1}.xml.rels`;e.addFile(p,u$t({tableName:c,drawingIndex:u,vmlDrawingIndex:d}))}},S$t=(e,t,n)=>{const r="xl/drawings",i=`${r}/drawing${n+1}.xml`,o=`${r}/_rels/drawing${n+1}.xml.rels`;e.addFile(o,s$t(t)),e.addFile(i,a$t(t))},A$t=(e,t,n)=>{const r="xl/drawings",i=`${r}/vmlDrawing${n+1}.vml`,o=`${r}/_rels/vmlDrawing${n+1}.vml.rels`;e.addFile(i,l$t(t)),e.addFile(o,c$t(t))},O$t=e=>{const t=Vy,n=Array.from(t.keys());for(let r=0;r<n.length;r++){const i=n[r],o=t.get(i);o&&e.addFile(`xl/tables/${o.name}.xml`,i$t(o,r))}},z$t=(e,t,n,r,i)=>{e.addFile("xl/workbook.xml",Q7t(i)),e.addFile("xl/styles.xml",Z7t(t)),e.addFile("xl/sharedStrings.xml",J7t()),e.addFile("xl/theme/theme1.xml",r$t()),e.addFile("xl/_rels/workbook.xml.rels",o$t(r)),e.addFile("docProps/core.xml",e$t(n)),e.addFile("[Content_Types].xml",t$t(r)),e.addFile("_rels/.rels",n$t())},Mrt=(e,t,n={})=>{if(!t||t.length===0)return ut(159),cRe(),!1;const{fontSize:r=11,author:i="AG Grid",activeTab:o=0}=n,a=t.length,s=Math.max(Math.min(o,a-1),0);return x$t(e),O$t(e),w$t(e,t),z$t(e,r,i,a,s),cRe(),!0},Crt=e=>{const{data:t,fontSize:n,author:r,activeSheetIndex:i}=e,o=e.mimeType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",a=new yrt;return Mrt(a,t,{author:r,fontSize:n,activeTab:i})?a.getZipFile(o):Promise.resolve(void 0)},pRe=e=>{const{data:t,fontSize:n,author:r,activeSheetIndex:i}=e,o=e.mimeType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",a=new yrt;if(Mrt(a,t,{author:r,fontSize:n,activeTab:i}))return a.getUncompressedZipFile(o)},T$t=e=>{const{fileName:t="export.xlsx"}=e;Crt(e).then(n=>{if(n){const r=typeof t=="function"?t():t;Nye(r,n)}})},E$t=class extends Ent{constructor(){super(...arguments),this.beanName="excelCreator"}getMergedParams(e){const t=this.gos.get("defaultExcelExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){ut(160);return}const t=this.getMergedParams(e),r={data:[this.getData(t)],fontSize:t.fontSize,author:t.author,mimeType:t.mimeType};this.packageCompressedFile(r).then(i=>{if(i){const{fileName:o}=t,a=typeof o=="function"?o(Vn(this.gos,{})):o;Nye(this.getFileName(a),i)}})}exportDataAsExcel(e){this.export(e)}getDataAsExcel(e){const t=this.getMergedParams(e),r={data:[this.getData(t)],fontSize:t.fontSize,author:t.author,mimeType:t.mimeType};return this.packageFile(r)}setFactoryMode(e){j7t(e)}getFactoryMode(){return B7t()}getSheetDataForExcel(e){const t=this.getMergedParams(e);return this.getData(t)}getMultipleSheetsAsExcel(e){return pRe(e)}exportMultipleSheetsAsExcel(e){T$t(e)}getDefaultFileExtension(){return"xlsx"}createSerializingSession(e){const{colModel:t,colNames:n,rowGroupColsSvc:r,valueSvc:i,gos:o}=this.beans,a={...e,colModel:t,colNames:n,rowGroupColsSvc:r,valueSvc:i,gos:o,suppressRowOutline:e.suppressRowOutline||e.skipRowGroups,headerRowHeight:e.headerRowHeight||e.rowHeight,baseExcelStyles:o.get("excelStyles")||[],rightToLeft:e.rightToLeft??o.get("enableRtl"),styleLinker:this.styleLinker.bind(this)};return new p$t(a)}styleLinker(e){const{rowType:t,rowIndex:n,value:r,column:i,columnGroup:o,node:a}=e,s=t==="HEADER",l=t==="HEADER_GROUPING",c=s?i:o;let u=[];const{gos:d,cellStyles:p}=this.beans;if(s||l)return u.push("header"),l&&u.push("headerGroup"),c&&(u=u.concat(cye(c.getDefinition(),d,i||null,o||null))),u;const h=d.get("excelStyles"),g=["cell"];if(!h||!h.length)return g;const m=h.map(y=>y.id),v=i.getDefinition();return p?.processAllCellClasses(v,Vn(d,{value:r,data:a.data,node:a,colDef:v,column:i,rowIndex:n}),y=>{m.indexOf(y)>-1&&g.push(y)}),g.sort((y,M)=>m.indexOf(y)<m.indexOf(M)?-1:1)}isExportSuppressed(){return this.gos.get("suppressExcelExport")}packageCompressedFile(e){return Crt(e)}packageFile(e){return pRe(e)}},wi="33.3.2",es={moduleName:"EnterpriseCore",version:wi,beans:[lrt],icons:{accordionOpen:"tree-open",accordionClosed:"tree-closed",accordionIndeterminate:"tree-indeterminate",close:"cross",cancel:"cancel",maximize:"maximize",minimize:"minimize",columnDrag:"grip"},dependsOn:[]},R$t='.ag-advanced-filter-header{align-items:center;background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);display:flex;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);position:relative}.ag-advanced-filter{align-items:center;display:flex;width:100%}.ag-advanced-filter-apply-button,.ag-advanced-filter-builder-button{line-height:normal;white-space:nowrap}:where(.ag-ltr) .ag-advanced-filter-apply-button,:where(.ag-ltr) .ag-advanced-filter-builder-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-advanced-filter-apply-button,:where(.ag-rtl) .ag-advanced-filter-builder-button{margin-right:calc(var(--ag-spacing)*2)}.ag-advanced-filter-builder-button{align-items:center;background-color:unset;border:0;display:flex;font-size:var(--ag-font-size);font-weight:600;padding:var(--ag-spacing);&:where(:not(:disabled)){cursor:pointer;&:hover{background-color:var(--ag-row-hover-color)}}}:where(.ag-ltr) .ag-advanced-filter-builder-button-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-advanced-filter-builder-button-label{margin-right:var(--ag-spacing)}.ag-advanced-filter-builder{display:flex;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-advanced-filter-builder-list{flex:1;overflow:auto}.ag-advanced-filter-builder-button-panel{border-top:var(--ag-advanced-filter-builder-button-bar-border);display:flex;justify-content:flex-end;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-advanced-filter-builder-apply-button,:where(.ag-ltr) .ag-advanced-filter-builder-cancel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-advanced-filter-builder-apply-button,:where(.ag-rtl) .ag-advanced-filter-builder-cancel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-advanced-filter-builder-item-wrapper{align-items:center;display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}:where(.ag-ltr) .ag-advanced-filter-builder-item-wrapper{padding-left:calc(var(--ag-icon-size)/2);padding-right:var(--ag-icon-size)}:where(.ag-rtl) .ag-advanced-filter-builder-item-wrapper{padding-left:var(--ag-icon-size);padding-right:calc(var(--ag-icon-size)/2)}:where(.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper) .ag-tab-guard{position:absolute}.ag-advanced-filter-builder-item-tree-lines>*{width:var(--ag-advanced-filter-builder-indent-size)}.ag-advanced-filter-builder-item-tree-line-root{width:var(--ag-icon-size);&:before{height:50%;top:50%}}.ag-advanced-filter-builder-item-tree-line-horizontal,.ag-advanced-filter-builder-item-tree-line-vertical,.ag-advanced-filter-builder-item-tree-line-vertical-bottom,.ag-advanced-filter-builder-item-tree-line-vertical-top{align-items:center;display:flex;height:100%;position:relative;&:after,&:before{content:"";height:100%;position:absolute}}.ag-advanced-filter-builder-item-tree-line-horizontal:after{border-bottom:1px solid var(--ag-border-color);height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size))}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-horizontal:after{left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-horizontal:after{right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical:before{top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-top:before{height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{height:calc(50% - var(--ag-icon-size)*1.5/2);top:calc(50% + var(--ag-icon-size)*1.5/2);width:calc(var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-condition{padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing)}.ag-advanced-filter-builder-item,.ag-advanced-filter-builder-item-buttons,.ag-advanced-filter-builder-item-condition,.ag-advanced-filter-builder-item-tree-lines,.ag-advanced-filter-builder-pill,.ag-advanced-filter-builder-pill-wrapper{align-items:center;display:flex;height:100%}.ag-advanced-filter-builder-pill-wrapper{margin:0 var(--ag-spacing)}.ag-advanced-filter-builder-pill{border-radius:var(--ag-border-radius);min-height:calc(100% - var(--ag-spacing)*3);min-width:calc(var(--ag-spacing)*2);padding:var(--ag-spacing) calc(var(--ag-spacing)*2);position:relative}:where(.ag-advanced-filter-builder-pill){.ag-advanced-filter-builder-value-number{font-family:monospace;font-weight:700}.ag-advanced-filter-builder-value-empty{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-advanced-filter-builder-pill){.ag-picker-field-display{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-advanced-filter-builder-pill){.ag-picker-field-display{margin-left:var(--ag-spacing)}}.ag-advanced-filter-builder-pill-display{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-advanced-filter-builder-join-pill{background-color:var(--ag-advanced-filter-builder-join-pill-color);cursor:pointer}.ag-advanced-filter-builder-column-pill{background-color:var(--ag-advanced-filter-builder-column-pill-color);cursor:pointer}.ag-advanced-filter-builder-option-pill{background-color:var(--ag-advanced-filter-builder-option-pill-color);cursor:pointer}.ag-advanced-filter-builder-value-pill{background-color:var(--ag-advanced-filter-builder-value-pill-color);cursor:text;max-width:140px;:where(.ag-advanced-filter-builder-pill-display){display:block}}.ag-advanced-filter-builder-item-buttons>*{margin:0 calc(var(--ag-spacing)*.5)}.ag-advanced-filter-builder-item-button{color:var(--ag-subtle-text-color);cursor:pointer;position:relative}.ag-advanced-filter-builder-item-button,.ag-advanced-filter-builder-pill{&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-advanced-filter-builder-item-button-disabled{cursor:default;opacity:.5}.ag-advanced-filter-builder-virtual-list-container{top:var(--ag-spacing)}.ag-advanced-filter-builder-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:hover{background-color:var(--ag-row-hover-color);:where(.ag-advanced-filter-builder-item-button){opacity:1}}}.ag-advanced-filter-builder-invalid{color:var(--ag-invalid-color);cursor:default;margin:0 var(--ag-spacing)}:where(.ag-advanced-filter-builder-validation) .ag-advanced-filter-builder-invalid,:where(.ag-advanced-filter-builder-virtual-list-item-highlight) .ag-advanced-filter-builder-item-button:focus-visible{opacity:1}';function I$t(e){return e.filterManager?.getAdvFilterModel()??null}function P$t(e,t){e.filterManager?.setAdvFilterModel(t)}function D$t(e){e.filterManager?.toggleAdvFilterBuilder(!0,"api")}function k$t(e){e.filterManager?.toggleAdvFilterBuilder(!1,"api")}var L$t={ariaAdvancedFilterBuilderItem:e=>`${e[0]}. Level ${e[1]}. Press ENTER to edit`,ariaAdvancedFilterBuilderItemValidation:e=>`${e[0]}. Level ${e[1]}. ${e[2]} Press ENTER to edit`,ariaAdvancedFilterBuilderList:"Advanced Filter Builder List",ariaAdvancedFilterBuilderFilterItem:"Filter Condition",ariaAdvancedFilterBuilderGroupItem:"Filter Group",ariaAdvancedFilterBuilderColumn:"Column",ariaAdvancedFilterBuilderOption:"Option",ariaAdvancedFilterBuilderValue:"Value",ariaAdvancedFilterBuilderJoinOperator:"Join Operator",ariaAdvancedFilterInput:"Advanced Filter Input",ariaLabelAdvancedFilterAutocomplete:"Advanced Filter Autocomplete",advancedFilterContains:"contains",advancedFilterNotContains:"does not contain",advancedFilterTextEquals:"equals",advancedFilterTextNotEqual:"does not equal",advancedFilterStartsWith:"begins with",advancedFilterEndsWith:"ends with",advancedFilterBlank:"is blank",advancedFilterNotBlank:"is not blank",advancedFilterEquals:"=",advancedFilterNotEqual:"!=",advancedFilterGreaterThan:">",advancedFilterGreaterThanOrEqual:">=",advancedFilterLessThan:"<",advancedFilterLessThanOrEqual:"<=",advancedFilterTrue:"is true",advancedFilterFalse:"is false",advancedFilterAnd:"AND",advancedFilterOr:"OR",advancedFilterApply:"Apply",advancedFilterBuilder:"Builder",advancedFilterValidationMissingColumn:"Column is missing",advancedFilterValidationMissingOption:"Option is missing",advancedFilterValidationMissingValue:"Value is missing",advancedFilterValidationInvalidColumn:"Column not found",advancedFilterValidationInvalidOption:"Option not found",advancedFilterValidationMissingQuote:"Value is missing an end quote",advancedFilterValidationNotANumber:"Value is not a number",advancedFilterValidationInvalidDate:"Value is not a valid date",advancedFilterValidationMissingCondition:"Condition is missing",advancedFilterValidationJoinOperatorMismatch:"Join operators within a condition must be the same",advancedFilterValidationInvalidJoinOperator:"Join operator not found",advancedFilterValidationMissingEndBracket:"Missing end bracket",advancedFilterValidationExtraEndBracket:"Too many end brackets",advancedFilterValidationMessage:e=>`Expression has an error. ${e[0]} - ${e[1]}.`,advancedFilterValidationMessageAtEnd:e=>`Expression has an error. ${e[0]} at end of expression.`,advancedFilterBuilderTitle:"Advanced Filter",advancedFilterBuilderApply:"Apply",advancedFilterBuilderCancel:"Cancel",advancedFilterBuilderAddButtonTooltip:"Add Filter or Group",advancedFilterBuilderRemoveButtonTooltip:"Remove",advancedFilterBuilderMoveUpButtonTooltip:"Move Up",advancedFilterBuilderMoveDownButtonTooltip:"Move Down",advancedFilterBuilderAddJoin:"Add Group",advancedFilterBuilderAddCondition:"Add Filter",advancedFilterBuilderSelectColumn:"Select a column",advancedFilterBuilderSelectOption:"Select an option",advancedFilterBuilderEnterValue:"Enter a value...",advancedFilterBuilderValidationAlreadyApplied:"Current filter already applied.",advancedFilterBuilderValidationIncomplete:"Not all conditions are complete.",advancedFilterBuilderValidationSelectColumn:"Must select a column.",advancedFilterBuilderValidationSelectOption:"Must select an option.",advancedFilterBuilderValidationEnterValue:"Must enter a value."};function whe(e,t,n){if(!e)return"";const r=n-t;return r?e.slice(0,e.length-r):e}function Ox(e,t,n,r,i,o,a){const s=n+(!e.length||a?0:1);let l=0;return i&&(e[s]===" "?l=1:(r+=" ",o&&(r+='"'))),{updatedValue:e.slice(0,t)+r+e.slice(s),updatedPosition:t+r.length+l}}function _$t(e,t,n){let r=t;for(;r<n&&e[r]===" ";)r++;return r}function She(e,t,n,r){let i=t,o=!1;for(;i<e.length;){const a=e[i];if(a==="("){r&&e[i-1]===" "?o=!0:i=i-1;break}else if(a===" "||n&&a===")"){i=i-1;break}i++}return{endPosition:i,isEmpty:o}}function Bye(e,t,n,r){n!==t&&(e.expression=Ox(e.expression,r-t.length+1,r,n).updatedValue)}function N$t(e){return e.replace(/(['"])/,"\\$1")}var F$t=class{constructor(e,t){this.params=e,this.startPosition=t,this.type="column",this.valid=!0,this.hasStartChar=!1,this.hasEndChar=!1,this.colName=""}parse(e,t){if(e===Ahe&&!this.colName)this.hasStartChar=!0;else if(e===Ohe&&this.hasStartChar){if(this.parseColumn(!1,t))return this.hasEndChar=!0,!1;this.colName+=e}else this.colName+=e}getDisplayValue(){return(this.hasStartChar?Ahe:"")+this.colName+(this.hasEndChar?Ohe:"")}getColId(){return this.colId}complete(e){this.parseColumn(!0,e)}getValidationError(){return this.valid?null:{message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidColumn"),startPosition:this.startPosition,endPosition:this.endPosition??this.params.expression.length-1}}parseColumn(e,t){this.endPosition=t;const n=this.params.advFilterExpSvc.getColId(this.colName);return n&&this.hasStartChar&&(this.colId=n.colId,Bye(this.params,this.colName,n.columnName,t-1),this.colName=n.columnName,this.column=this.params.colModel.getColDefCol(this.colId),this.column)?(this.baseCellDataType=this.params.dataTypeSvc?.getBaseDataType(this.column)??"text",!0):(e&&(this.valid=!1),this.baseCellDataType="text",!1)}},W$t=class{constructor(e,t,n){this.params=e,this.startPosition=t,this.baseCellDataType=n,this.type="operator",this.valid=!0,this.expectedNumOperands=0,this.operator=""}parse(e,t){if(e===" "||e===")"){if(this.parseOperator(!1,t-1))return!0;this.operator+=e}else this.operator+=e}complete(e){this.parseOperator(!0,e)}getValidationError(){return this.valid?null:{message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidOption"),startPosition:this.startPosition,endPosition:this.endPosition??this.params.expression.length-1}}getDisplayValue(){return this.operator}getOperatorKey(){return this.parsedOperator}parseOperator(e,t){const n=this.params.advFilterExpSvc.getDataTypeExpressionOperator(this.baseCellDataType),r=n.findOperator(this.operator);if(this.endPosition=t,r){this.parsedOperator=r;const o=n.operators[r];this.expectedNumOperands=o.numOperands;const a=o.displayValue;return Bye(this.params,this.operator,a,t),this.operator=a,!0}return(e||!(r===null))&&(this.valid=!1),!1}},q$t=class{constructor(e,t,n,r){this.params=e,this.startPosition=t,this.baseCellDataType=n,this.column=r,this.type="operand",this.valid=!0,this.operand="",this.validationMessage=null}parse(e,t){if(e===" ")if(this.quotes)this.operand+=e;else return this.parseOperand(!1,t),!0;else if(e===")"){if(this.baseCellDataType==="number"||!this.quotes)return this.parseOperand(!1,t-1),!0;this.operand+=e}else if(!this.operand&&!this.quotes&&(e==="'"||e==='"'))this.quotes=e;else{if(this.quotes&&e===this.quotes)return this.parseOperand(!1,t),!1;this.operand+=e}}complete(e){this.parseOperand(!0,e)}getValidationError(){return this.validationMessage?{message:this.validationMessage,startPosition:this.startPosition,endPosition:this.endPosition??this.params.expression.length-1}:null}getRawValue(){return this.operand}getModelValue(){return this.modelValue}parseOperand(e,t){const{advFilterExpSvc:n}=this.params;if(this.endPosition=t,this.modelValue=this.operand,e&&this.quotes)this.valid=!1,this.validationMessage=n.translate("advancedFilterValidationMissingQuote");else if(this.modelValue==="")this.valid=!1,this.validationMessage=n.translate("advancedFilterValidationMissingValue");else{const r=n.getOperandModelValue(this.operand,this.baseCellDataType,this.column);switch(r!=null&&(this.modelValue=r),this.baseCellDataType){case"number":(this.quotes||isNaN(this.modelValue))&&(this.valid=!1,this.validationMessage=n.translate("advancedFilterValidationNotANumber"));break;case"date":case"dateString":r==null&&(this.valid=!1,this.validationMessage=n.translate("advancedFilterValidationInvalidDate"));break}}}},Ahe="[",Ohe="]",B$t=class{constructor(e,t){this.params=e,this.startPosition=t,this.isAwaiting=!0}parseExpression(){let e=this.startPosition;const{expression:t}=this.params;for(;e<t.length;){const n=t[e];if(!(n===" "&&this.isAwaiting)){if(this.isAwaiting=!1,!this.parser){let i;this.columnParser?this.operatorParser?(this.operandParser=new q$t(this.params,e,this.columnParser.baseCellDataType,this.columnParser.column),i=this.operandParser):(this.operatorParser=new W$t(this.params,e,this.columnParser.baseCellDataType),i=this.operatorParser):(this.columnParser=new F$t(this.params,e),i=this.columnParser),this.parser=i}const r=this.parser.parse(n,e);if(r!=null){if(this.isComplete())return this.returnEndPosition(r?e-1:e,!0);this.parser=void 0,this.isAwaiting=!0}}e++}return this.parser?.complete?.(e-1),this.returnEndPosition(e)}isValid(){return this.isComplete()&&this.columnParser.valid&&this.operatorParser.valid&&(!this.operandParser||this.operandParser.valid)}getValidationError(){const e=this.columnParser?.getValidationError()??this.operatorParser?.getValidationError()??this.operandParser?.getValidationError();if(e)return e;const t=this.params.expression.length;let n;return this.columnParser?this.operatorParser?this.operatorParser.expectedNumOperands&&!this.operandParser&&(n="advancedFilterValidationMissingValue"):n="advancedFilterValidationMissingOption":n="advancedFilterValidationMissingColumn",n?{message:this.params.advFilterExpSvc.translate(n),startPosition:t,endPosition:t}:null}getFunctionString(e){return this.getFunctionCommon(e,(t,n,r,i)=>{const o=N$t(r),a=t==null?"":`, params.operands[${t}]`;return`params.operators[${n}].evaluator(expressionProxy.getValue('${o}', node), node, params.evaluatorParams[${i}]${a})`})}getFunctionParsed(e){return this.getFunctionCommon(e,(t,n,r,i)=>(o,a,s)=>s.operators[n].evaluator(o.getValue(r,a),a,s.evaluatorParams[i],t==null?void 0:s.operands[t]))}getAutocompleteListParams(e){if(this.isColumnPosition(e))return this.getColumnAutocompleteListParams(e);if(this.isOperatorPosition(e))return this.getOperatorAutocompleteListParams(e);if(!this.isBeyondEndPosition(e))return{enabled:!1}}updateExpression(e,t,n){const{expression:r}=this.params;if(this.isColumnPosition(e))return Ox(this.params.expression,this.startPosition,this.columnParser?.getColId()?this.columnParser.endPosition:She(r,e).endPosition,this.params.advFilterExpSvc.getColumnValue(t),!0);if(this.isOperatorPosition(e)){const i=this.getBaseCellDataTypeFromOperatorAutocompleteType(n),o=this.hasOperand(i,t.key),a=o&&this.doesOperandNeedQuotes(i);let s;if(this.operatorParser?.startPosition!=null&&e<this.operatorParser.startPosition)s=Ox(r,e,e,t.displayValue??t.key,o,a);else{let l,c=!1;if(this.operatorParser?.getOperatorKey())l=this.operatorParser.endPosition;else{const{endPosition:u,isEmpty:d}=She(r,e,!0,!0);l=u,c=d}s=Ox(r,_$t(r,this.columnParser.endPosition+1,l),l,t.displayValue??t.key,o,a,c)}return{...s,hideAutocomplete:!o}}return null}getModel(){const e=this.columnParser.getColId(),t={filterType:this.columnParser.baseCellDataType,colId:e,type:this.operatorParser.getOperatorKey()};return this.operatorParser.expectedNumOperands&&(t.filter=this.operandParser.getModelValue()),t}getFunctionCommon(e,t){const n=this.columnParser.getColId(),r=this.operatorParser?.getOperatorKey(),{operators:i,evaluatorParams:o,operands:a}=e,s=this.params.advFilterExpSvc.getExpressionOperator(this.columnParser.baseCellDataType,r),l=this.addToListAndGetIndex(i,s),c=this.params.advFilterExpSvc.getExpressionEvaluatorParams(n),u=this.addToListAndGetIndex(o,c),d=this.operatorParser?.expectedNumOperands===0?void 0:this.addToListAndGetIndex(a,this.getOperandValue());return t(d,l,n,u)}getOperandValue(){let e=this.operandParser.getRawValue();const{baseCellDataType:t,column:n}=this.columnParser;switch(t){case"number":e=Number(e);break;case"date":case"dateString":e=this.params.valueSvc.parseValue(n,null,e,void 0);break}if(t==="dateString"){const{dataTypeSvc:r}=this.params;return r?r.getDateParserFunction(n)(e):e}return e}isComplete(){return!!(this.operatorParser&&(!this.operatorParser.expectedNumOperands||this.operatorParser.expectedNumOperands&&this.operandParser))}isColumnPosition(e){return!this.columnParser||this.columnParser.endPosition==null||e<=this.columnParser.endPosition+1}isOperatorPosition(e){return!this.operatorParser||this.operatorParser.endPosition==null||e<=this.operatorParser.endPosition+1}isBeyondEndPosition(e){return this.isComplete()&&this.endPosition!=null&&e>this.endPosition+1&&this.endPosition+1<this.params.expression.length}returnEndPosition(e,t){return this.endPosition=t?e:e-1,e}getColumnAutocompleteListParams(e){return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getColumnAutocompleteEntries(),"column",this.getColumnSearchString(e))}getColumnSearchString(e){const t=this.columnParser?.getDisplayValue()??"",n=whe(t,e,this.columnParser?.endPosition==null?this.params.expression.length:this.columnParser.endPosition+1),r=this.columnParser?.hasStartChar&&n.length>0,i=this.columnParser?.hasEndChar&&n.length===t.length+2;return r?n.slice(1,i?-1:void 0):n}getOperatorAutocompleteListParams(e){const t=this.columnParser?.column;if(!t)return{enabled:!1};const n=this.columnParser.baseCellDataType,r=this.operatorParser?.startPosition!=null&&e<this.operatorParser.startPosition?"":whe(this.operatorParser?.getDisplayValue()??"",e,this.operatorParser?.endPosition==null?this.params.expression.length:this.operatorParser.endPosition+1);return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getOperatorAutocompleteEntries(t,n),`operator-${n}`,r)}getBaseCellDataTypeFromOperatorAutocompleteType(e){return e?.replace("operator-","")}hasOperand(e,t){return!e||!t||(this.params.advFilterExpSvc.getExpressionOperator(e,t)?.numOperands??0)>0}doesOperandNeedQuotes(e){return e!=="number"}addToListAndGetIndex(e,t){const n=e.length;return e.push(t),n}};function _K(e,t,n){let r=!1;const i=e.toLocaleLowerCase(),o=i+" ",a=Object.keys(t).find(s=>{const l=t[s],c=n(l).toLocaleLowerCase();return c.startsWith(o)&&(r=!0),c===i});return a||(r?null:void 0)}function jye(e,t){return(t??Object.keys(e)).map(r=>({key:r,displayValue:e[r].displayValue}))}var hRe=class{constructor(e){this.params=e,this.initOperators()}getEntries(e){return jye(this.operators,e)}findOperator(e){return _K(e,this.operators,({displayValue:t})=>t)}initOperators(){const{translate:e}=this.params;this.operators={contains:{displayValue:e("advancedFilterContains"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!1,(o,a)=>o.includes(a)),numOperands:1},notContains:{displayValue:e("advancedFilterNotContains"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!0,(o,a)=>!o.includes(a)),numOperands:1},equals:{displayValue:e("advancedFilterTextEquals"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!1,(o,a)=>o===a),numOperands:1},notEqual:{displayValue:e("advancedFilterTextNotEqual"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!0,(o,a)=>o!=a),numOperands:1},startsWith:{displayValue:e("advancedFilterStartsWith"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!1,(o,a)=>o.startsWith(a)),numOperands:1},endsWith:{displayValue:e("advancedFilterEndsWith"),evaluator:(t,n,r,i)=>this.evaluateExpression(t,n,r,i,!1,(o,a)=>o.endsWith(a)),numOperands:1},blank:{displayValue:e("advancedFilterBlank"),evaluator:t=>t==null||typeof t=="string"&&t.trim().length===0,numOperands:0},notBlank:{displayValue:e("advancedFilterNotBlank"),evaluator:t=>t!=null&&(typeof t!="string"||t.trim().length>0),numOperands:0}}}evaluateExpression(e,t,n,r,i,o){return e==null?i:n.caseSensitive?o(n.valueConverter(e,t),r):o(n.valueConverter(e,t).toLocaleLowerCase(),r.toLocaleLowerCase())}},mre=class{constructor(e){this.params=e,this.initOperators()}getEntries(e){return jye(this.operators,e)}findOperator(e){return _K(e,this.operators,({displayValue:t})=>t)}initOperators(){const{translate:e,equals:t}=this.params;this.operators={equals:{displayValue:e("advancedFilterEquals"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInEquals,t),numOperands:1},notEqual:{displayValue:e("advancedFilterNotEqual"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInEquals,(a,s)=>!t(a,s)),numOperands:1},greaterThan:{displayValue:e("advancedFilterGreaterThan"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInGreaterThan,(a,s)=>a>s),numOperands:1},greaterThanOrEqual:{displayValue:e("advancedFilterGreaterThanOrEqual"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInGreaterThan,(a,s)=>a>=s),numOperands:1},lessThan:{displayValue:e("advancedFilterLessThan"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInLessThan,(a,s)=>a<s),numOperands:1},lessThanOrEqual:{displayValue:e("advancedFilterLessThanOrEqual"),evaluator:(n,r,i,o)=>this.evaluateSingleOperandExpression(n,r,i,o,!!i.includeBlanksInLessThan,(a,s)=>a<=s),numOperands:1},blank:{displayValue:e("advancedFilterBlank"),evaluator:n=>n==null,numOperands:0},notBlank:{displayValue:e("advancedFilterNotBlank"),evaluator:n=>n!=null,numOperands:0}}}evaluateSingleOperandExpression(e,t,n,r,i,o){return e==null?i:o(n.valueConverter(e,t),r)}},j$t=class{constructor(e){this.params=e,this.initOperators()}getEntries(e){return jye(this.operators,e)}findOperator(e){return _K(e,this.operators,({displayValue:t})=>t)}initOperators(){const{translate:e}=this.params;this.operators={true:{displayValue:e("advancedFilterTrue"),evaluator:t=>!!t,numOperands:0},false:{displayValue:e("advancedFilterFalse"),evaluator:t=>t===!1,numOperands:0},blank:{displayValue:e("advancedFilterBlank"),evaluator:t=>t==null,numOperands:0},notBlank:{displayValue:e("advancedFilterNotBlank"),evaluator:t=>t!=null,numOperands:0}}}},H$t=class extends dt{constructor(){super(...arguments),this.beanName="advFilterExpSvc",this.columnNameToIdMap={},this.columnAutocompleteEntries=null,this.expressionEvaluatorParams={}}wireBeans(e){this.valueSvc=e.valueSvc,this.colModel=e.colModel,this.colNames=e.colNames,this.dataTypeSvc=e.dataTypeSvc}postConstruct(){this.expressionJoinOperators=this.generateExpressionJoinOperators(),this.expressionOperators=this.generateExpressionOperators()}parseJoinOperator(e){const{type:t}=e;return this.expressionJoinOperators[t]??t}getColumnDisplayValue(e){const{colId:t}=e,r=this.getColumnAutocompleteEntries().find(({key:o})=>o===t);let i;return r?(i=r.displayValue,this.columnNameToIdMap[i.toLocaleUpperCase()]={colId:t,columnName:i}):i=t,i}getOperatorDisplayValue(e){return this.getExpressionOperator(e.filterType,e.type)?.displayValue??e.type}getOperandModelValue(e,t,n){switch(t){case"number":return Ut(e)?Number(e):null;case"date":return cp(this.valueSvc.parseValue(n,null,e,void 0),!1);case"dateString":{const r=this.valueSvc.parseValue(n,null,e,void 0);return this.dataTypeSvc?cp(this.dataTypeSvc.getDateParserFunction(n)(r)??null,!1):r}}return e}getOperandDisplayValue(e,t){const{colId:n,filter:r}=e,i=this.colModel.getColDefCol(n);let o="";if(r!=null){let a;switch(e.filterType){case"number":a=ap(r)??"";break;case"date":{const s=h0(r);a=i?this.valueSvc.formatValue(i,null,s):null;break}case"dateString":{let s;if(this.dataTypeSvc){const l=h0(r);s=i?this.dataTypeSvc?.getDateFormatterFunction(i)(l??void 0):null}else s=r;a=i?this.valueSvc.formatValue(i,null,s):null;break}}e.filterType!=="number"&&(a=a??ap(r)??"",t||(a=`"${a}"`)),o=t?a:` ${a}`}return o}parseColumnFilterModel(e){const t=this.getColumnDisplayValue(e)??"",n=this.getOperatorDisplayValue(e)??"",r=this.getOperandDisplayValue(e);return`[${t}] ${n}${r}`}updateAutocompleteCache(e,t){if(t==="column"){const{key:n,displayValue:r}=e;this.columnNameToIdMap[e.displayValue.toLocaleUpperCase()]={colId:n,columnName:r}}}translate(e,t){let n=L$t[e];return typeof n=="function"&&(n=n(t)),this.getLocaleTextFunc()(e,n,t)}generateAutocompleteListParams(e,t,n){return{enabled:!0,type:t,searchString:n,entries:e}}getColumnAutocompleteEntries(){if(this.columnAutocompleteEntries)return this.columnAutocompleteEntries;const e=this.colModel.getColDefCols()??[],t=[],n=this.gos.get("includeHiddenColumnsInAdvancedFilter");return e.forEach(r=>{r.getColDef().filter&&(n||r.isVisible()||r.isRowGroupActive())&&t.push({key:r.getColId(),displayValue:this.colNames.getDisplayNameForColumn(r,"advancedFilter")})}),t.sort((r,i)=>{const o=r.displayValue??"",a=i.displayValue??"";return o<a?-1:a>o?1:0}),t}getOperatorAutocompleteEntries(e,t){const n=this.getActiveOperators(e);return this.getDataTypeExpressionOperator(t).getEntries(n)}getJoinOperatorAutocompleteEntries(){return Object.entries(this.expressionJoinOperators).map(([e,t])=>({key:e,displayValue:t}))}getDefaultAutocompleteListParams(e){return this.generateAutocompleteListParams(this.getColumnAutocompleteEntries(),"column",e)}getDataTypeExpressionOperator(e){return this.expressionOperators[e]}getExpressionOperator(e,t){return this.getDataTypeExpressionOperator(e)?.operators?.[t]}getExpressionJoinOperators(){return this.expressionJoinOperators}getColId(e){const t=e.toLocaleUpperCase(),n=this.columnNameToIdMap[t];if(n)return n;const i=this.getColumnAutocompleteEntries().find(({displayValue:o})=>o.toLocaleUpperCase()===t);if(i){const{key:o,displayValue:a}=i,s={colId:o,columnName:a};return this.columnNameToIdMap[t]=s,s}return null}getExpressionEvaluatorParams(e){let t=this.expressionEvaluatorParams[e];if(t)return t;const n=this.colModel.getColDefCol(e);if(!n)return{valueConverter:o=>o};switch(this.dataTypeSvc?.getBaseDataType(n)){case"dateString":t={valueConverter:this.dataTypeSvc?.getDateParserFunction(n)??(o=>o)};break;case"object":n.getColDef().filterValueGetter?t={valueConverter:o=>o}:t={valueConverter:(o,a)=>this.valueSvc.formatValue(n,a,o)??(typeof o.toString=="function"?o.toString():"")};break;case"text":case void 0:t={valueConverter:o=>ap(o)};break;default:t={valueConverter:o=>o};break}const{filterParams:i}=n.getColDef();return i&&["caseSensitive","includeBlanksInEquals","includeBlanksInLessThan","includeBlanksInGreaterThan"].forEach(o=>{const a=i[o];a&&(t[o]=a)}),this.expressionEvaluatorParams[e]=t,t}getColumnDetails(e){const t=this.colModel.getColDefCol(e)??void 0,n=(t?this.dataTypeSvc?.getBaseDataType(t):void 0)??"text";return{column:t,baseCellDataType:n}}generateExpressionOperators(){const e=(t,n)=>this.translate(t,n);return{text:new hRe({translate:e}),boolean:new j$t({translate:e}),object:new hRe({translate:e}),number:new mre({translate:e,equals:(t,n)=>t===n}),date:new mre({translate:e,equals:(t,n)=>t.getTime()===n.getTime()}),dateString:new mre({translate:e,equals:(t,n)=>t.getTime()===n.getTime()})}}getColumnValue({displayValue:e}){return`${Ahe}${e}${Ohe}`}generateExpressionJoinOperators(){return{AND:this.translate("advancedFilterAnd"),OR:this.translate("advancedFilterOr")}}getActiveOperators(e){const t=e.getColDef().filterParams?.filterOptions;return t&&t.every(r=>typeof r=="string")?t:void 0}resetColumnCaches(){this.columnAutocompleteEntries=null,this.columnNameToIdMap={},this.expressionEvaluatorParams={}}},V$t=".ag-panel{background-color:var(--ag-panel-background-color);display:flex;flex-direction:column;overflow:hidden;position:relative}.ag-dialog{border:var(--ag-dialog-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dialog-shadow);position:absolute}.ag-panel-title-bar{align-items:center;background-color:var(--ag-panel-title-bar-background-color);border-bottom:var(--ag-panel-title-bar-border);color:var(--ag-panel-title-bar-text-color);cursor:default;display:flex;flex:none;font-weight:var(--ag-panel-title-bar-font-weight);height:var(--ag-header-height);padding:var(--ag-spacing) var(--ag-cell-horizontal-padding)}.ag-panel-title-bar-button{color:var(--ag-panel-title-bar-icon-color);cursor:pointer}:where(.ag-ltr) .ag-panel-title-bar-button{margin-left:calc(var(--ag-spacing)*2);margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-panel-title-bar-button{margin-left:var(--ag-spacing);margin-right:calc(var(--ag-spacing)*2)}.ag-panel-title-bar-title{flex:1 1 auto}.ag-panel-title-bar-buttons{display:flex}.ag-panel-content-wrapper{display:flex;flex:1 1 auto;overflow:hidden;position:relative}:where(.ag-dragging-fill-handle) .ag-dialog,:where(.ag-dragging-range-handle) .ag-dialog{opacity:.7;pointer-events:none}";function G$t(e){const t=e.cssIdentifier||"default";return{tag:"div",cls:`ag-panel ag-${t}-panel`,attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eTitleBar",cls:`ag-panel-title-bar ag-${t}-panel-title-bar ag-unselectable`,children:[{tag:"span",ref:"eTitle",cls:`ag-panel-title-bar-title ag-${t}-panel-title-bar-title`},{tag:"div",ref:"eTitleBarButtons",cls:`ag-panel-title-bar-buttons ag-${t}-panel-title-bar-buttons`}]},{tag:"div",ref:"eContentWrapper",cls:`ag-panel-content-wrapper ag-${t}-panel-content-wrapper`}]}}var xrt=class extends Gt{constructor(e){super(G$t(e)),this.config=e,this.closable=!0,this.eContentWrapper=at,this.eTitleBar=at,this.eTitleBarButtons=at,this.eTitle=at,this.registerCSS(V$t)}postConstruct(){const{component:e,closable:t,hideTitleBar:n,title:r,minWidth:i=250,width:o,minHeight:a=250,height:s,centered:l,popup:c,x:u,y:d}=this.config;this.positionableFeature=new SK(this.getGui(),{minWidth:i,width:o,minHeight:a,height:s,centered:l,x:u,y:d,popup:c,calculateTopBuffer:()=>this.positionableFeature.getHeight()-this.getBodyHeight()}),this.createManagedBean(this.positionableFeature);const p=this.getGui();e&&this.setBodyComponent(e),n?Nn(this.eTitleBar,!1):(r&&this.setTitle(r),this.setClosable(t??this.closable)),this.addManagedElementListeners(this.eTitleBar,{mousedown:h=>{if(p.contains(h.relatedTarget)||p.contains(Gi(this.beans))||this.eTitleBarButtons.contains(h.target)){h.preventDefault();return}const g=this.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");g&&g.focus()}}),!(c&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")}renderComponent(){const e=this.getGui();e.focus(),this.close=()=>{e.parentElement.removeChild(e),this.destroy()}}getHeight(){return this.positionableFeature.getHeight()}setHeight(e){this.positionableFeature.setHeight(e)}getWidth(){return this.positionableFeature.getWidth()}setWidth(e){this.positionableFeature.setWidth(e)}setClosable(e){if(e!==this.closable&&(this.closable=e),e){const t=this.closeButtonComp=new Gt({tag:"div",cls:"ag-button"});this.createBean(t);const n=t.getGui(),r=er("close",this.beans);r.classList.add("ag-panel-title-bar-button-icon"),n.appendChild(r),this.addTitleBarButton(t),t.addManagedElementListeners(n,{click:this.onBtClose.bind(this)})}else if(this.closeButtonComp){const t=this.closeButtonComp.getGui();t.parentElement.removeChild(t),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}}setBodyComponent(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())}addTitleBarButton(e,t){const n=this.eTitleBarButtons,r=n.children,i=r.length;t==null&&(t=i),t=Math.max(0,Math.min(t,i)),e.addCss("ag-panel-title-bar-button");const o=e.getGui();t===0?n.insertAdjacentElement("afterbegin",o):t===i?n.insertAdjacentElement("beforeend",o):r[t-1].insertAdjacentElement("afterend",o),e.setParentComponent(this)}getBodyHeight(){return hK(this.eContentWrapper)}getBodyWidth(){return KI(this.eContentWrapper)}setTitle(e){this.eTitle.innerText=e}onBtClose(){this.close()}destroy(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));const e=this.getGui();e&&x0(e)&&this.close(),super.destroy()}},y6=class extends xrt{constructor(e){super({...e,popup:!0}),this.isMaximizable=!1,this.isMaximized=!1,this.maximizeListeners=[],this.resizeListenerDestroy=null,this.lastPosition={x:0,y:0,width:0,height:0}}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){const e=this.getGui(),{movable:t,resizable:n,maximizable:r,modal:i,postProcessPopupParams:o}=this.config;if(this.addCss("ag-dialog"),super.postConstruct(),o){const{type:a,eventSource:s,column:l,mouseEvent:c,rowNode:u}=o;this.popupSvc?.callPostProcessPopup(a,e,s,c,l,u)}if(this.tabGuardFeature=this.createManagedBean(new Btt(this)),this.tabGuardFeature.initialiseTabGuard({isFocusableContainer:!0,onFocusIn:()=>{this.popupSvc?.bringPopupToFront(e)},onTabKeyDown:a=>{if(i)return;const s=a.shiftKey,l=Md(this.beans,e,!1,s);(!l||this.tabGuardFeature.getTabGuardCtrl().isTabGuard(l))&&Tb(this.beans,s)&&a.preventDefault()}}),t&&this.setMovable(t),r&&this.setMaximizable(r),n&&this.setResizable(n),!this.config.modal){const a=this.beans.ctrlsSvc.get("gridCtrl");a.addFocusableContainer(this),this.addDestroyFunc(()=>a.removeFocusableContainer(this))}}setAllowFocus(e){this.tabGuardFeature.getTabGuardCtrl().setAllowFocus(e)}renderComponent(){const e=this.getGui(),{alwaysOnTop:t,modal:n,title:r,afterGuiAttached:i}=this.config,o=this.getLocaleTextFunc(),a=this.popupSvc?.addPopup({modal:n,eChild:e,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:t,ariaLabel:r||o("ariaLabelDialog","Dialog"),afterGuiAttached:i});a&&(this.close=a.hideFunc)}onClosed(e){this.destroy(),this.config.closedCallback?.(e)}toggleMaximize(){const e=this.positionableFeature.getPosition();if(this.isMaximized){const{x:t,y:n,width:r,height:i}=this.lastPosition;this.setWidth(r),this.setHeight(i),this.positionableFeature.offsetElement(t,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()}refreshMaximizeIcon(){Nn(this.maximizeIcon,!this.isMaximized),Nn(this.minimizeIcon,this.isMaximized)}clearMaximizebleListeners(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(e=>e()),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)}destroy(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),super.destroy()}setResizable(e){this.positionableFeature.setResizable(e)}setMovable(e){this.positionableFeature.setMovable(e,this.eTitleBar)}setMaximizable(e){if(!e){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}const t=this.eTitleBar;if(!t||e===this.isMaximizable)return;const n=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),n.addManagedElementListeners(n.getGui(),{click:this.toggleMaximize.bind(this)}),this.addTitleBarButton(n,0),this.maximizeListeners.push(...this.addManagedElementListeners(t,{dblclick:this.toggleMaximize.bind(this)})),[this.resizeListenerDestroy]=this.addManagedListeners(this.positionableFeature,{resize:()=>{this.isMaximized=!1,this.refreshMaximizeIcon()}})}buildMaximizeAndMinimizeElements(){const e=this.maximizeButtonComp=this.createBean(new Gt({tag:"div",cls:"ag-dialog-button"})),t=e.getGui();return this.maximizeIcon=er("maximize",this.beans),t.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=er("minimize",this.beans),t.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e}},$$t=".ag-autocomplete{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}}.ag-autocomplete-list-popup{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-autocomplete-list{height:calc(var(--ag-row-height)*6.5);min-width:200px;position:relative;width:100%}.ag-autocomplete-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:focus-visible:after{content:none}&:hover{background-color:var(--ag-row-hover-color)}}.ag-autocomplete-row{align-items:center;display:flex;flex:1 1 auto;overflow:hidden}.ag-autocomplete-row-label{margin:0 var(--ag-widget-container-horizontal-padding);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-autocomplete-row-selected{background-color:var(--ag-selected-row-background-color)}";function U$t(e){return{tag:"div",cls:`ag-virtual-list-viewport ag-${e}-virtual-list-viewport`,role:"presentation",children:[{tag:"div",ref:"eContainer",cls:`ag-virtual-list-container ag-${e}-virtual-list-container`}]}}var fD=class extends Vb{constructor(e){super(U$t(e?.cssIdentifier||"default")),this.renderedRows=new Map,this.rowHeight=20,this.pageSize=-1,this.isScrolling=!1,this.isHeightFromTheme=!0,this.eContainer=at,this.awaitStableCallbacks=[];const{cssIdentifier:t="default",ariaRole:n="listbox",listName:r,moveItemCallback:i}=e||{};this.cssIdentifier=t,this.ariaRole=n,this.listName=r,this.moveItemCallback=i}wireBeans(e){this.environment=e.environment}postConstruct(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e),focusInnerElement:e=>this.focusInnerElement(e),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e)}),this.refreshAriaProperties(),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanged.bind(this)})}onGridStylesChanged(e){e.listItemHeightChanged&&(this.rowHeight=this.getItemHeight(),this.refresh())}refreshAriaProperties(){const t=this.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),n=this.eContainer;C0(n,this.model?.getRowCount()>0?this.ariaRole:"presentation"),Es(n,t)}addResizeObserver(){const e=()=>sh(this.beans,()=>this.drawVirtualRows()),t=Hf(this.beans,this.getGui(),e);this.addDestroyFunc(t)}focusInnerElement(e){return this.focusRow(e?this.model.getRowCount()-1:0),!0}onFocusIn(e){const t=e.target;t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=HDt(t)-1)}onFocusOut(e){this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)}handleKeyDown(e){const{key:t,shiftKey:n}=e;switch(t){case Qe.UP:case Qe.DOWN:{const r=t===Qe.UP;e.preventDefault(),n?this.moveItem(r):this.navigate(r)}break;case Qe.PAGE_HOME:case Qe.PAGE_END:case Qe.PAGE_UP:case Qe.PAGE_DOWN:this.navigateToPage(t)!==null&&e.preventDefault();break}}onTabKeyDown(e){Cl(e),this.forceFocusOutOfContainer(e.shiftKey)}getNextRow(e){if(this.lastFocusedRowIndex==null)return;const t=this.lastFocusedRowIndex+(e?-1:1);if(!(t<0||t>=this.model.getRowCount()))return t}moveItem(e){if(!this.moveItemCallback)return;const t=this.getComponentAt(this.lastFocusedRowIndex);t&&this.moveItemCallback(t,e)}navigate(e){const t=this.getNextRow(e);t!==void 0&&this.focusRow(t)}navigateToPage(e,t="focused"){let n=!1;t==="focused"&&(t=this.getLastFocusedRow(),n=!0);const r=this.model.getRowCount()-1;let i=-1;return e===Qe.PAGE_HOME?i=0:e===Qe.PAGE_END?i=r:e===Qe.PAGE_DOWN?i=Math.min(t+this.pageSize,r):e===Qe.PAGE_UP&&(i=Math.max(t-this.pageSize,0)),i===-1?null:(n?this.focusRow(i):this.ensureIndexVisible(i),i)}getLastFocusedRow(){return this.lastFocusedRowIndex}focusRow(e){this.isScrolling||(this.isScrolling=!0,this.ensureIndexVisible(e),sh(this.beans,()=>{if(this.isScrolling=!1,!this.isAlive())return;const t=this.renderedRows.get(e);t&&t.eDiv.focus()}))}getComponentAt(e){const t=this.renderedRows.get(e);return t&&t.rowComponent}forEachRenderedRow(e){this.renderedRows.forEach((t,n)=>e(t.rowComponent,n))}getItemHeight(){return this.isHeightFromTheme?this.environment.getDefaultListItemHeight():this.rowHeight}ensureIndexVisible(e,t=!0){const n=this.model.getRowCount();if(typeof e!="number"||e<0||e>=n)return ut(229,{index:e}),!1;const r=e*this.rowHeight,i=r+this.rowHeight,o=this.getGui(),a=o.scrollTop,s=o.offsetHeight,l=a+s,c=t?0:this.rowHeight,u=a>r+c,d=l<i-c;if(u)return o.scrollTop=r,!0;if(d){const p=i-s;return o.scrollTop=p,!0}return!1}setComponentCreator(e){this.componentCreator=e}setComponentUpdater(e){this.componentUpdater=e}getRowHeight(){return this.rowHeight}getScrollTop(){return this.getGui().scrollTop}setRowHeight(e){this.isHeightFromTheme=!1,this.rowHeight=e,this.refresh()}refresh(e){if(this.model==null||!this.isAlive())return;const t=this.model.getRowCount();this.eContainer.style.height=`${t*this.rowHeight}px`,this.refreshAriaProperties(),this.awaitStable(()=>{this.isAlive()&&(this.canSoftRefresh(e)?this.drawVirtualRows(!0):(this.clearVirtualRows(),this.drawVirtualRows()))})}awaitStable(e){if(this.awaitStableCallbacks.push(e),this.awaitStableCallbacks.length>1)return;const t=this.model.getRowCount();net(()=>this.eContainer.clientHeight>=t*this.rowHeight,()=>{if(!this.isAlive())return;const n=this.awaitStableCallbacks;this.awaitStableCallbacks=[],n.forEach(r=>r())})}canSoftRefresh(e){return!!(e&&this.renderedRows.size&&typeof this.model.areRowsEqual=="function"&&this.componentUpdater)}clearVirtualRows(){this.renderedRows.forEach((e,t)=>this.removeRow(t))}drawVirtualRows(e){if(!this.isAlive()||!this.model)return;const t=this.getGui(),n=t.scrollTop,r=n+t.offsetHeight;if(n===r)this.clearVirtualRows();else{const i=Math.floor(n/this.rowHeight),o=Math.floor(r/this.rowHeight);this.pageSize=Math.floor((r-n)/this.rowHeight),this.ensureRowsRendered(i,o,e)}}ensureRowsRendered(e,t,n){this.renderedRows.forEach((r,i)=>{(i<e||i>t)&&i!==this.lastFocusedRowIndex&&this.removeRow(i)}),n&&this.refreshRows();for(let r=e;r<=t;r++)this.renderedRows.has(r)||r<this.model.getRowCount()&&this.insertRow(r)}insertRow(e){const t=this.model.getRow(e),n=this.ariaRole==="tree"?"treeitem":"option",r=Nr({tag:"div",cls:`ag-virtual-list-item ag-${this.cssIdentifier}-virtual-list-item`,role:n,attrs:{tabindex:"-1"}});uK(r,this.model.getRowCount()),dK(r,e+1),r.style.height=`${this.rowHeight}px`,r.style.top=`${this.rowHeight*e}px`;const i=this.componentCreator(t,r);i.addGuiEventListener("focusin",()=>this.lastFocusedRowIndex=e),r.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",r):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",r):this.eContainer.appendChild(r),this.renderedRows.set(e,{rowComponent:i,eDiv:r,value:t})}removeRow(e){const t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)}refreshRows(){const e=this.model.getRowCount();this.renderedRows.forEach((t,n)=>{if(n>=e)this.removeRow(n);else{const r=this.model.getRow(n);this.model.areRowsEqual?.(t.value,r)?this.componentUpdater(r,t.rowComponent):this.removeRow(n)}})}addScrollListener(){this.addGuiEventListener("scroll",()=>this.drawVirtualRows(),{passive:!0})}setModel(e){this.model=e}getAriaElement(){return this.eContainer}destroy(){this.isAlive()&&(this.clearVirtualRows(),this.awaitStableCallbacks.length=0,super.destroy())}},X$t={tag:"div",cls:"ag-autocomplete-row",role:"presentation",children:[{tag:"div",cls:"ag-autocomplete-row-label"}]},Y$t=class extends Gt{constructor(){super(X$t),this.hasHighlighting=!1}setState(e,t){this.value=e,this.render(),this.updateSelected(t)}updateSelected(e){this.toggleCss("ag-autocomplete-row-selected",e)}setSearchString(e){let t=!1;const{value:n}=this;if(n&&Ut(e)){const r=n.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(r>=0){t=!0,this.hasHighlighting=!0;const i=r+e.length,o=this.getGui().lastElementChild;Xi(o),o.append(n.slice(0,r),Nr({tag:"b",children:n.slice(r,i)}),n.slice(i))}}!t&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())}render(){this.getGui().lastElementChild.textContent=this.value??" "}},K$t={tag:"div",cls:"ag-autocomplete-list-popup",children:[{tag:"div",ref:"eList",cls:"ag-autocomplete-list"}]},Q$t=class extends Cw{constructor(e){super(K$t),this.params=e,this.eList=at,this.searchString=""}postConstruct(){this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new fD({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:()=>this.autocompleteEntries.length,getRow:t=>this.autocompleteEntries[t]});const e=this.virtualList.getGui();this.addManagedListeners(e,{click:()=>this.params.onConfirmed(),mousemove:this.onMouseMove.bind(this),mousedown:t=>t.preventDefault()}),this.setSelectedValue(0)}onNavigationKeyDown(e,t){e.preventDefault();const n=this.autocompleteEntries.indexOf(this.selectedValue),r=t===Qe.UP?n-1:n+1;this.checkSetSelectedValue(r)}setSearch(e){this.searchString=e,Ut(e)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()}runContainsSearch(e,t){let n,r=!1;const i=e.toLocaleLowerCase(),o=t.filter(a=>{const l=a.toLocaleLowerCase().indexOf(i),c=l===0,u=l>=0;return u&&(!n||!r&&c||r===c&&a.length<n.length)&&(n=a,r=c),u});return!n&&o.length&&(n=o[0]),{topMatch:n,allMatches:o}}runSearch(){const{autocompleteEntries:e,useFuzzySearch:t,forceLastSelection:n}=this.params,r=e.map(l=>l.displayValue??l.key);let i,o;if(t)i=IK({inputValue:this.searchString,allSuggestions:r,hideIrrelevant:!0}).values,o=i.length?i[0]:void 0;else{const l=this.runContainsSearch(this.searchString,r);i=l.allMatches,o=l.topMatch}let a=e.filter(({key:l,displayValue:c})=>i.includes(c??l));if(!a.length&&this.selectedValue&&n?.(this.selectedValue,this.searchString)&&(a=[this.selectedValue]),this.autocompleteEntries=a,this.virtualList.refresh(),!o)return;const s=i.indexOf(o);this.checkSetSelectedValue(s)}updateSearchInList(){this.virtualList.forEachRenderedRow(e=>e.setSearchString(this.searchString))}checkSetSelectedValue(e){e>=0&&e<this.autocompleteEntries.length&&this.setSelectedValue(e)}setSelectedValue(e){const t=this.autocompleteEntries[e];this.selectedValue!==t&&(this.selectedValue=t,this.virtualList.ensureIndexVisible(e),this.virtualList.forEachRenderedRow((n,r)=>{n.updateSelected(e===r)}))}createRowComponent(e){const t=new Y$t;return this.createBean(t),t.setState(e.displayValue??e.key,e===this.selectedValue),t}onMouseMove(e){const t=this.virtualList,n=t.getGui().getBoundingClientRect(),r=t.getScrollTop(),i=e.clientY-n.top+r,o=Math.floor(i/t.getRowHeight());this.checkSetSelectedValue(o)}afterGuiAttached(){this.virtualList.refresh()}getSelectedValue(){return this.autocompleteEntries.length?this.selectedValue??null:null}},Z$t={tag:"div",cls:"ag-autocomplete",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eAutocompleteInput"}]},J$t=class extends Gt{constructor(){super(Z$t,[Vf]),this.eAutocompleteInput=at,this.isListOpen=!1,this.lastPosition=0,this.valid=!0,this.registerCSS($$t)}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){this.eAutocompleteInput.onValueChange(e=>this.onValueChanged(e)),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc(()=>{this.destroyBean(this.autocompleteList)}),this.addGuiEventListener("focusout",()=>this.onFocusOut())}onValueChanged(e){const t=zc(e);this.updateValue(t),this.updateAutocompleteList(t)}updateValue(e){this.updateLastPosition(),this.dispatchLocalEvent({type:"eventValueChanged",value:e}),this.validate(e)}updateAutocompleteList(e){const t=this.listGenerator?.(e,this.lastPosition)??{enabled:!1};(!t.type||t.type!==this.autocompleteListParams?.type)&&this.isListOpen&&this.closeList();const n=this.isListOpen;if(this.autocompleteListParams=t,t?.enabled){n||this.openList();const{searchString:r}=t;this.autocompleteList.setSearch(r??"")}else n&&this.closeList()}onKeyDown(e){const t=e.key;switch(this.updateLastPosition(),t){case Qe.ENTER:this.onEnterKeyDown(e);break;case Qe.TAB:this.onTabKeyDown(e);break;case Qe.DOWN:case Qe.UP:this.onUpDownKeyDown(e,t);break;case Qe.LEFT:case Qe.RIGHT:case Qe.PAGE_HOME:case Qe.PAGE_END:setTimeout(()=>{this.updatePositionAndList()});break;case Qe.ESCAPE:this.onEscapeKeyDown(e);break;case Qe.SPACE:e.ctrlKey&&!this.isListOpen&&(e.preventDefault(),this.forceOpenList());break}}confirmSelection(){const e=this.autocompleteList?.getSelectedValue();e&&(this.closeList(),this.dispatchLocalEvent({type:"eventOptionSelected",value:this.getValue(),position:this.lastPosition,updateEntry:e,autocompleteType:this.autocompleteListParams.type}))}onTabKeyDown(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.confirmSelection())}onEnterKeyDown(e){e.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()}onUpDownKeyDown(e,t){e.preventDefault(),this.isListOpen?this.autocompleteList?.onNavigationKeyDown(e,t):this.forceOpenList()}onEscapeKeyDown(e){this.isListOpen&&(e.preventDefault(),e.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))}onFocusOut(){this.isListOpen&&this.closeList()}updatePositionAndList(){this.updateLastPosition(),this.updateAutocompleteList(this.eAutocompleteInput.getValue()??null)}setCaret(e,t){t&&Gx(this.beans)&&this.eAutocompleteInput.getFocusableElement().focus();const n=this.eAutocompleteInput.getInputElement();n.setSelectionRange(e,e),e===n.value.length&&(n.scrollLeft=n.scrollWidth)}forceOpenList(){this.onValueChanged(this.eAutocompleteInput.getValue())}updateLastPosition(){this.lastPosition=this.eAutocompleteInput.getInputElement().selectionStart??0}validate(e){if(!this.validator)return;const t=this.validationMessage=this.validator(e);this.eAutocompleteInput.getInputElement().setCustomValidity(t??""),this.valid=!t,this.dispatchLocalEvent({type:"eventValidChanged",isValid:this.valid,validationMessage:t})}openList(){this.isListOpen=!0,this.autocompleteList=this.createBean(new Q$t({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:()=>this.confirmSelection(),forceLastSelection:this.forceLastSelection}));const e=this.autocompleteList.getGui(),t={ePopup:e,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gos.get("enableRtl")?"right":"left",keepWithinBounds:!0},n=this.popupSvc.addPopup({eChild:e,anchorToElement:this.getGui(),positionCallback:()=>this.popupSvc.positionPopupByComponent(t),ariaLabel:this.listAriaLabel});this.hidePopup=n.hideFunc,this.autocompleteList.afterGuiAttached()}closeList(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null}onCompleted(){this.isListOpen&&this.closeList(),this.dispatchLocalEvent({type:"eventValueConfirmed",value:this.getValue(),isValid:this.isValid()})}getValue(){return zc(this.eAutocompleteInput.getValue())}setInputPlaceholder(e){return this.eAutocompleteInput.setInputPlaceholder(e),this}setInputAriaLabel(e){return this.eAutocompleteInput.setInputAriaLabel(e),this}setListAriaLabel(e){return this.listAriaLabel=e,this}setListGenerator(e){return this.listGenerator=e,this}setValidator(e){return this.validator=e,this}isValid(){return this.valid}setValue(e){const{value:t,position:n,silent:r,updateListOnlyIfOpen:i,restoreFocus:o}=e;this.eAutocompleteInput.setValue(t,!0),this.setCaret(n??this.lastPosition,o),r||this.updateValue(t),(!i||this.isListOpen)&&this.updateAutocompleteList(t)}setForceLastSelection(e){return this.forceLastSelection=e,this}setInputDisabled(e){return this.eAutocompleteInput.setDisabled(e),this}},e9t={selector:"AG-AUTOCOMPLETE",component:J$t},t9t={tag:"div",cls:"ag-advanced-filter",role:"presentation",attrs:{tabindex:"-1"},children:[{tag:"ag-autocomplete",ref:"eAutocomplete"},{tag:"button",ref:"eApplyFilterButton",cls:"ag-button ag-standard-button ag-advanced-filter-apply-button"},{tag:"button",ref:"eBuilderFilterButton",cls:"ag-button ag-advanced-filter-builder-button",children:[{tag:"span",ref:"eBuilderFilterButtonIcon",attrs:{"aria-hidden":"true"}},{tag:"span",ref:"eBuilderFilterButtonLabel",cls:"ag-advanced-filter-builder-button-label"}]}]},wrt=class extends Gt{constructor(){super(t9t,[e9t]),this.eAutocomplete=at,this.eApplyFilterButton=at,this.eBuilderFilterButton=at,this.eBuilderFilterButtonIcon=at,this.eBuilderFilterButtonLabel=at,this.expressionParser=null,this.isApplyDisabled=!0,this.builderOpen=!1}wireBeans(e){this.advFilterExpSvc=e.advFilterExpSvc,this.advancedFilter=e.advancedFilter,this.filterManager=e.filterManager,this.registry=e.registry}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getTooltipShowDelayOverride:()=>1e3,getLocation:()=>"advancedFilter"})),this.eAutocomplete.setListGenerator((e,t)=>this.generateAutocompleteListParams(t)).setValidator(()=>this.validateValue()).setForceLastSelection((e,t)=>this.forceLastSelection(e,t)).setInputAriaLabel(this.advFilterExpSvc.translate("ariaAdvancedFilterInput")).setListAriaLabel(this.advFilterExpSvc.translate("ariaLabelAdvancedFilterAutocomplete")),this.refresh(),this.addManagedListeners(this.eAutocomplete,{eventValueChanged:({value:e})=>this.onValueChanged(e),eventValueConfirmed:({isValid:e})=>this.onValueConfirmed(e),eventOptionSelected:({position:e,updateEntry:t,autocompleteType:n})=>this.onOptionSelected(e,t,n),eventValidChanged:({isValid:e,validationMessage:t})=>this.onValidChanged(e,t)}),this.setupApplyButton(),this.setupBuilderButton()}refresh(){const e=this.advancedFilter.getExpressionDisplayValue();this.eAutocomplete.setValue({value:e??"",position:e?.length,updateListOnlyIfOpen:!0})}setInputDisabled(e){this.eAutocomplete.setInputDisabled(e),nf(this.eApplyFilterButton,e||this.isApplyDisabled)}setupApplyButton(){this.eApplyFilterButton.textContent=this.advFilterExpSvc.translate("advancedFilterApply"),this.activateTabIndex([this.eApplyFilterButton]),this.addManagedElementListeners(this.eApplyFilterButton,{click:()=>this.onValueConfirmed(this.eAutocomplete.isValid())}),nf(this.eApplyFilterButton,this.isApplyDisabled)}setupBuilderButton(){this.eBuilderFilterButtonIcon.appendChild(er("advancedFilterBuilder",this.beans)),this.eBuilderFilterButtonLabel.textContent=this.advFilterExpSvc.translate("advancedFilterBuilder"),this.activateTabIndex([this.eBuilderFilterButton]),this.addManagedElementListeners(this.eBuilderFilterButton,{click:()=>this.openBuilder()}),this.addManagedListeners(this.advancedFilter.getCtrl(),{advancedFilterBuilderClosed:()=>this.closeBuilder()})}onValueChanged(e){e=zc(e),this.advancedFilter.setExpressionDisplayValue(e),this.expressionParser=this.advancedFilter.createExpressionParser(e);const t=this.expressionParser?.parseExpression();t&&t!==e&&this.eAutocomplete.setValue({value:t,silent:!0,restoreFocus:!0})}onValueConfirmed(e){!e||this.isApplyDisabled||(nf(this.eApplyFilterButton,!0),this.advancedFilter.applyExpression(),this.filterManager?.onFilterChanged({source:"advancedFilter"}))}onOptionSelected(e,t,n){const{updatedValue:r,updatedPosition:i,hideAutocomplete:o}=this.updateExpression(e,t,n);this.eAutocomplete.setValue({value:r,position:i,updateListOnlyIfOpen:o,restoreFocus:!0})}validateValue(){return this.expressionParser?.isValid()?null:this.expressionParser?.getValidationMessage()??null}onValidChanged(e,t){this.isApplyDisabled=!e||this.advancedFilter.isCurrentExpressionApplied(),nf(this.eApplyFilterButton,this.isApplyDisabled),this.tooltipFeature?.setTooltipAndRefresh(t)}generateAutocompleteListParams(e){return this.expressionParser?this.expressionParser.getAutocompleteListParams(e):this.advFilterExpSvc.getDefaultAutocompleteListParams("")}updateExpression(e,t,n){return this.advFilterExpSvc.updateAutocompleteCache(t,n),this.expressionParser?.updateExpression(e,t,n)??this.advancedFilter.getDefaultExpression(t)}forceLastSelection({key:e,displayValue:t},n){return!!n.toLocaleLowerCase().match(`^${(t??e).toLocaleLowerCase()}\\s*$`)}openBuilder(){this.builderOpen||(this.builderOpen=!0,nf(this.eBuilderFilterButton,!0),this.advancedFilter.getCtrl().toggleFilterBuilder({source:"ui",eventSource:this.eBuilderFilterButton}))}closeBuilder(){this.builderOpen&&(this.builderOpen=!1,nf(this.eBuilderFilterButton,!1),this.eBuilderFilterButton.focus())}},n9t={tag:"div",cls:"ag-advanced-filter-header",role:"row"},r9t=class extends Gt{constructor(e){super(n9t),this.enabled=e}wireBeans(e){this.colModel=e.colModel,this.focusSvc=e.focusSvc,this.ctrlsSvc=e.ctrlsSvc}postConstruct(){this.setupAdvancedFilter(this.enabled),this.addDestroyFunc(()=>this.destroyBean(this.eAdvancedFilter));const e=()=>{this.enabled&&this.setEnabledHeight()};this.addManagedEventListeners({gridColumnsChanged:()=>this.onGridColumnsChanged(),columnHeaderHeightChanged:e,gridStylesChanged:e}),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addGuiEventListener("keydown",t=>this.onKeyDown(t)),this.addGuiEventListener("focusout",t=>{this.getFocusableElement().contains(t.relatedTarget)||this.focusSvc.clearAdvancedFilterColumn()})}getFocusableElement(){return this.eAdvancedFilter?.getGui()??this.getGui()}setEnabled(e){e!==this.enabled&&this.setupAdvancedFilter(e)}refresh(){this.eAdvancedFilter?.refresh()}getHeight(){return this.height}setInputDisabled(e){this.eAdvancedFilter?.setInputDisabled(e)}setupAdvancedFilter(e){const t=this.getGui();if(e){this.eAdvancedFilter=this.createBean(new wrt);const n=this.eAdvancedFilter.getGui();this.eAdvancedFilter.addCss("ag-advanced-filter-header-cell"),this.setEnabledHeight(),this.setAriaRowIndex(),C0(n,"gridcell"),B2e(n,1),this.setAriaColumnCount(n),t.appendChild(n)}else Xi(t),this.destroyBean(this.eAdvancedFilter),this.height=0;Nn(t,e),this.enabled=e}setEnabledHeight(){const e=this.getGui();this.height=wye(this.beans);const t=`${this.height}px`;e.style.height=t,e.style.minHeight=t}setAriaColumnCount(e){jJe(e,this.colModel.getCols().length)}setAriaRowIndex(){pK(this.getGui(),this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)}onGridColumnsChanged(){this.eAdvancedFilter&&(this.setAriaColumnCount(this.eAdvancedFilter.getGui()),this.setAriaRowIndex())}onKeyDown(e){switch(e.key){case Qe.ENTER:{this.hasFocus()&&zu(this.getFocusableElement())&&e.preventDefault();break}case Qe.ESCAPE:this.hasFocus()||this.getFocusableElement().focus();break;case Qe.UP:this.navigateUpDown(!0,e);break;case Qe.DOWN:this.navigateUpDown(!1,e);break;case Qe.TAB:if(this.hasFocus())this.navigateLeftRight(e);else{const t=Md(this.beans,this.getFocusableElement(),null,e.shiftKey);t?(e.preventDefault(),t.focus()):this.navigateLeftRight(e)}break}}navigateUpDown(e,t){this.hasFocus()&&this.focusSvc.focusNextFromAdvancedFilter(e)&&t.preventDefault()}navigateLeftRight(e){(e.shiftKey?this.focusSvc.focusLastHeader():this.focusSvc.focusNextFromAdvancedFilter(!1,!0))&&e.preventDefault()}hasFocus(){return Gi(this.beans)===this.getFocusableElement()}},vre="ag-list-item-hovered",Srt=class extends dt{constructor(e,t,n){super(),this.comp=e,this.virtualList=t,this.params=n,this.currentDragValue=null,this.lastHoveredListItem=null}wireBeans(e){this.dragAndDrop=e.dragAndDrop}postConstruct(){this.addManagedListeners(this.params.eventSource,{[this.params.listItemDragStartEvent]:this.listItemDragStart.bind(this),[this.params.listItemDragEndEvent]:this.listItemDragEnd.bind(this)}),this.createDropTarget(),this.createAutoScrollService()}listItemDragStart(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)}listItemDragEnd(){window.setTimeout(()=>{this.currentDragValue=null,this.moveBlocked=!1},10)}createDropTarget(){const e={isInterestedIn:t=>t===this.params.dragSourceType,getIconName:()=>this.moveBlocked?"pinned":"move",getContainer:()=>this.comp.getGui(),onDragging:t=>this.onDragging(t),onDragStop:()=>this.onDragStop(),onDragLeave:()=>this.onDragLeave(),onDragCancel:()=>this.onDragCancel()};this.dragAndDrop?.addDropTarget(e)}createAutoScrollService(){const e=this.virtualList.getGui();this.autoScrollService=new pye({scrollContainer:e,scrollAxis:"y",getVerticalPosition:()=>e.scrollTop,setVerticalPosition:t=>e.scrollTop=t})}onDragging(e){if(!this.currentDragValue||this.moveBlocked)return;const t=this.getListDragItem(e),n=this.virtualList.getComponentAt(t.rowIndex);if(!n)return;const r=n.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===t.rowIndex&&this.lastHoveredListItem.position===t.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=t,h$(r,vre),h$(r,`ag-item-highlight-${t.position}`))}getListDragItem(e){const t=this.virtualList.getGui(),n=parseFloat(window.getComputedStyle(t).paddingTop),r=this.virtualList.getRowHeight(),i=this.virtualList.getScrollTop(),o=Math.max(0,(e.y-n+i)/r),a=this.params.getNumRows(this.comp)-1,s=Math.min(a,o)|0;return{rowIndex:s,position:Math.round(o)>o||o>a?"bottom":"top",component:this.virtualList.getComponentAt(s)}}onDragStop(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearDragProperties())}onDragCancel(){this.clearDragProperties()}onDragLeave(){this.clearDragProperties()}clearDragProperties(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()}clearHoveredItems(){this.virtualList.getGui().querySelectorAll(`.${vre}`).forEach(t=>{[vre,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(n=>{t.classList.remove(n)})}),this.lastHoveredListItem=null}},i9t=class extends dt{constructor(e,t){super(),this.comp=e,this.virtualList=t}postConstruct(){this.createManagedBean(new Srt(this.comp,this.virtualList,{dragSourceType:bm.AdvancedFilterBuilder,listItemDragStartEvent:"advancedFilterBuilderDragStarted",listItemDragEndEvent:"advancedFilterBuilderDragEnded",eventSource:this,getCurrentDragValue:e=>this.getCurrentDragValue(e),isMoveBlocked:()=>!1,getNumRows:e=>e.getNumItems(),moveItem:(e,t)=>this.moveItem(e,t)}))}getCurrentDragValue(e){return e.item}moveItem(e,t){this.comp.moveItem(e,t)}},o9t={tag:"div",cls:"ag-pill",role:"option",children:[{tag:"span",ref:"eText",cls:"ag-pill-text"},{tag:"span",ref:"eButton",cls:"ag-button ag-pill-button",role:"presentation"}]},a9t=class extends Gt{constructor(e){super(o9t),this.config=e,this.eText=at,this.eButton=at}postConstruct(){const{config:e,eButton:t}=this,{onKeyDown:n,onButtonClick:r}=e;this.getGui().setAttribute("tabindex",String(this.gos.get("tabIndex"))),this.addGuiEventListener("focus",()=>{this.eButton.focus()}),n&&this.addGuiEventListener("keydown",n),r&&this.addManagedElementListeners(t,{click:r})}toggleCloseButtonClass(e,t){this.eButton.classList.toggle(e,t)}setText(e){this.eText.textContent=e}getText(){return this.eText.textContent}},s9t={tag:"div",cls:"ag-pill-container"},l9t=class extends Gt{constructor(){super(s9t),this.pills=[]}init(e){this.params=e,this.refresh()}refresh(){this.clearPills();const{params:e,onPillKeyDown:t}=this;let n=e.getValue();if(!Array.isArray(n)){if(n==null)return;n=[n]}const r=e.valueFormatter??(o=>String(o)),i=n.length;C0(this.getGui(),i===0?"presentation":"listbox");for(let o=0;o<i;o++){const a=n[o],s=this.createBean(new a9t({onButtonClick:()=>this.onPillButtonClick(s),onKeyDown:t.bind(this)})),l=s.getGui();dK(l,o+1),uK(l,i),e.onPillMouseDown&&s.addGuiEventListener("mousedown",e.onPillMouseDown),e.announceItemFocus&&s.addGuiEventListener("focus",e.announceItemFocus),s.setText(r(a)??""),s.toggleCloseButtonClass("ag-icon-cancel",!0),this.appendChild(l),this.pills.push(s)}}onNavigationKeyDown(e){const{key:t}=e;if(!this.pills.length||t!==Qe.LEFT&&t!==Qe.RIGHT)return;e.preventDefault();const{params:n,beans:r}=this,i=Gi(r),o=this.getGui();if(o.contains(i)){const a=Md(r,o,!1,t===Qe.LEFT);a?a.focus():n.eWrapper&&n.eWrapper.focus()}else{const a=lm(o);a.length>0&&a[t===Qe.RIGHT?0:a.length-1].focus()}}clearPills(){const e=this.getGui();e.contains(Gi(this.beans))&&this.params.eWrapper&&this.params.eWrapper.focus(),Xi(e),this.destroyBeans(this.pills),this.pills=[]}onPillButtonClick(e){this.deletePill(e)}onPillKeyDown(e){const t=e.key;if(t!==Qe.DELETE&&t!==Qe.BACKSPACE)return;e.preventDefault();const n=bl(this.beans),r=this.pills.findIndex(o=>o.getGui().contains(n.activeElement));if(r===-1)return;const i=this.pills[r];i&&this.deletePill(i,r)}deletePill(e,t){const n=e.getText(),r=(this.params.getValue()||[]).filter(i=>i!==n);if(this.params.setValue(r),!r.length&&this.params.eWrapper)this.params.eWrapper.focus();else if(t!=null){const i=this.pills[Math.min(t,this.pills.length-1)];i&&i.getFocusableElement().focus()}}destroy(){this.clearPills(),super.destroy()}},c9t=".ag-rich-select{cursor:default;height:100%}.ag-rich-select-value{align-items:center;background-color:var(--ag-picker-button-background-color);display:flex;height:100%;padding:var(--ag-spacing);:where(.ag-picker-field-display){overflow:hidden;text-overflow:ellipsis;&:where(.ag-display-as-placeholder){opacity:.5}}}.ag-rich-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-input-border-radius);box-shadow:var(--ag-dropdown-shadow);height:auto;position:relative;width:100%;:where(.ag-loading-text){padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}}.ag-rich-select-row{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;padding:0 var(--ag-spacing);white-space:nowrap}.ag-rich-select-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-rich-select-row-highlighted,.ag-rich-select-row:hover{background-image:linear-gradient(var(--ag-row-hover-color),var(--ag-row-hover-color))}.ag-rich-select-row-text-highlight{font-weight:700}.ag-rich-select-field-input{flex:1 1 auto;:where(.ag-input-field-input){border:none!important;box-shadow:none!important;padding:0!important;text-overflow:ellipsis;&::-moz-placeholder{opacity:.8}&::placeholder{opacity:.8}}}:where(.ag-ltr) .ag-rich-select-field-input{left:var(--ag-spacing)}:where(.ag-rtl) .ag-rich-select-field-input{right:var(--ag-spacing)}:where(.ag-popup-editor) .ag-rich-select-value{height:var(--ag-row-height);min-width:200px}.ag-rich-select-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-pill-container{display:flex;flex-wrap:nowrap;gap:.25rem}.ag-pill{align-items:center;background:var(--ag-select-cell-background-color);border:var(--ag-select-cell-border);border-radius:var(--ag-border-radius);display:flex;padding:0 .25rem;white-space:nowrap}.ag-pill-button{border:none;padding:0;&:hover{color:var(--ag-accent-color);cursor:pointer}}:where(.ag-ltr) .ag-pill-button{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-pill-button{margin-right:var(--ag-spacing)}",u9t={tag:"div",cls:"ag-rich-select-row",role:"presentation"},d9t=class extends Gt{constructor(e){super(u9t),this.params=e}wireBeans(e){this.userCompFactory=e.userCompFactory,this.registry=e.registry}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),shouldDisplayTooltip:()=>this.shouldDisplayTooltip?.()??!0}))}setState(e){const{params:t}=this,n=t.valueFormatter?.(e)??"";this.populateWithRenderer(e,n)||this.populateWithoutRenderer(e,n),this.value=e}highlightString(e){const{parsedValue:t,params:n}=this;if(n.cellRenderer||!Ut(t))return;let r=Ut(e);if(r){const i=t?.toLocaleLowerCase().indexOf(e.toLocaleLowerCase());if(i>=0){const o=i+e.length,a=this.getGui().querySelector("span");a&&(Xi(a),a.append(t.slice(0,i),Nr({tag:"span",cls:"ag-rich-select-row-text-highlight",children:t.slice(i,o)}),t.slice(o)))}else r=!1}r||this.renderValueWithoutRenderer(t)}updateSelected(e){const t=this.getGui();sW(t.parentElement,e),this.toggleCss("ag-rich-select-row-selected",e)}getValue(){return this.value}toggleHighlighted(e){this.toggleCss("ag-rich-select-row-highlighted",e)}populateWithoutRenderer(e,t){const n=this.getGui(),r=Nr({tag:"span"});r.style.overflow="hidden",r.style.textOverflow="ellipsis";const i=Df(Ut(t)?t:e);this.parsedValue=Ut(i)?i:null,n.appendChild(r),this.renderValueWithoutRenderer(i),this.shouldDisplayTooltip=NO(()=>r),this.tooltipFeature?.setTooltipAndRefresh(this.parsedValue)}renderValueWithoutRenderer(e){const t=this.getGui().querySelector("span");t&&(t.textContent=Ut(e)?e:" ")}populateWithRenderer(e,t){let n,r;if(this.params.cellRenderer){const i=this.getParentComponent()?.getParentComponent();r=$et(this.userCompFactory,this.params,Vn(this.gos,{value:e,valueFormatted:t,getValue:()=>i?.getValue(),setValue:o=>{i?.setValue(o,!0)},setTooltip:(o,a)=>{this.gos.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=a,this.tooltipFeature?.setTooltipAndRefresh(o)}}))}return r&&(n=r.newAgStackInstance()),n&&Art(n,this.getGui()),n?(n.then(i=>{this.addDestroyFunc(()=>{this.destroyBean(i)})}),!0):!1}},fRe="ag-rich-select-list",gRe="ag-rich-select-row",p9t=class extends fD{constructor(e,t,n){super({cssIdentifier:"rich-select"}),this.params=e,this.richSelectWrapper=t,this.getSearchString=n,this.lastRowHovered=-1,this.selectedItems=new Set,this.params=e,this.setComponentCreator(this.createRowComponent.bind(this)),this.setComponentUpdater(()=>{})}postConstruct(){super.postConstruct(),this.eLoading=Nr({tag:"div",cls:"ag-loading-text",children:this.getLocaleTextFunc()("loadingOoo","Loading...")});const{cellRowHeight:e,pickerAriaLabelKey:t,pickerAriaLabelValue:n}=this.params;e&&this.setRowHeight(e);const r=this.getGui(),i=this.getAriaElement();this.addManagedListeners(r,{mousemove:this.onMouseMove.bind(this),mouseout:this.onMouseOut.bind(this),mousedown:this.onMouseDown.bind(this),click:this.onClick.bind(this)}),r.classList.add(fRe);const o=`${fRe}-${this.getCompId()}`;i.setAttribute("id",o);const s=this.getLocaleTextFunc()(t,n);Es(i,s),j2e(this.richSelectWrapper,i)}navigateToPage(e){const t=super.navigateToPage(e,this.lastRowHovered);return t!=null&&sh(this.beans,()=>{if(!this.isAlive())return null;this.highlightIndex(t)}),t}drawVirtualRows(e){super.drawVirtualRows(e),this.refreshSelectedItems()}highlightFilterMatch(e){this.forEachRenderedRow(t=>{t.highlightString(e)})}onNavigationKeyDown(e,t){sh(this.beans,()=>{if(!this.currentList||!this.isAlive())return;const n=this.currentList.length,r=this.lastRowHovered,i=e===Qe.DOWN?1:-1,o=Math.min(Math.max(r===-1?0:r+i,0),n-1);this.highlightIndex(o),t()})}selectValue(e){if(!this.currentList)return this.eLoading&&this.appendChild(this.eLoading),!1;if(this.eLoading?.offsetParent&&this.eLoading.parentElement?.removeChild(this.eLoading),e==null)return!1;const t=this.getIndicesForValues(e),n=t.length>0;return n&&(this.refresh(),this.ensureIndexVisible(t[0]),this.refresh(!0)),this.selectListItems(Array.isArray(e)?e:[e]),n}selectListItems(e,t=!1){t||this.selectedItems.clear();for(let n=0;n<e.length;n++){const r=e[n];this.findItemInSelected(r)===void 0&&this.selectedItems.add(r)}this.refreshSelectedItems()}getCurrentList(){return this.currentList}setCurrentList(e){this.currentList=e,this.setModel({getRowCount:()=>e.length,getRow:t=>e[t],areRowsEqual:(t,n)=>t===n})}getSelectedItems(){return this.selectedItems}getLastItemHovered(){return this.currentList[this.lastRowHovered]}highlightIndex(e,t){this.currentList&&(e<0||e>=this.currentList.length?this.lastRowHovered=-1:(this.lastRowHovered=e,this.ensureIndexVisible(e,!t)&&!t&&this.refresh(!0)),this.forEachRenderedRow((n,r)=>{const i=e===r;if(n.toggleHighlighted(i),i){const o=`${gRe}-${n.getCompId()}`;FJe(this.richSelectWrapper,o),this.richSelectWrapper.setAttribute("data-active-option",o)}}))}getIndicesForValues(e){const{currentList:t}=this;if(!t||t.length===0||e==null)return[];if(Array.isArray(e)||(e=[e]),e.length===0)return[];const{valueFormatter:n}=this.params,r=[],i=typeof e[0]=="object",o=t.map(n);for(const a of e){let s=-1;i?s=o.indexOf(n(a)):s=t.indexOf(a),s>=0&&r.push(s)}return r}toggleListItemSelection(e){const t=this.findItemInSelected(e);t!==void 0?this.selectedItems.delete(t):this.selectedItems.add(e),this.refreshSelectedItems(),this.dispatchValueSelected()}refreshSelectedItems(){this.forEachRenderedRow(e=>{const t=this.findItemInSelected(e.getValue())!==void 0;e.updateSelected(t)})}findItemInSelected(e){if(typeof e=="object"){const t=this.params.valueFormatter,n=t(e);for(const r of this.selectedItems)if(t(r)===n)return r}else return this.selectedItems.has(e)?e:void 0}createRowComponent(e,t){const n=new d9t(this.params);t.setAttribute("id",`${gRe}-${n.getCompId()}`),n.setParentComponent(this),this.createBean(n),n.setState(e);const{highlightMatch:r,searchType:i="fuzzy"}=this.params;return r&&i!=="fuzzy"&&n.highlightString(this.getSearchString()),n}getRowForMouseEvent(e){const n=this.getGui().getBoundingClientRect(),r=this.getScrollTop(),i=e.clientY-n.top+r;return Math.min(Math.floor(i/this.getRowHeight()),this.model.getRowCount()-1)}onMouseMove(e){const t=this.getRowForMouseEvent(e);t!==-1&&t!=this.lastRowHovered&&(this.lastRowHovered=t,this.highlightIndex(t,!0))}onMouseDown(e){e.preventDefault()}onMouseOut(e){this.getGui().contains(e.relatedTarget)||this.highlightIndex(-1)}onClick(e){const{multiSelect:t}=this.params;if(!this.currentList)return;const n=this.getRowForMouseEvent(e),r=this.currentList[n];t?this.toggleListItemSelection(r):(this.selectListItems([r]),this.dispatchValueSelected())}dispatchValueSelected(){this.dispatchLocalEvent({type:"richSelectListRowSelected",fromEnterKey:!1,value:this.selectedItems})}destroy(){super.destroy(),this.eLoading=void 0}},h9t={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed",children:[{tag:"span",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"ag-input-text-field",ref:"eInput",cls:"ag-rich-select-field-input"},{tag:"span",ref:"eDeselect",cls:"ag-rich-select-deselect-button ag-picker-field-icon",role:"presentation"},{tag:"span",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},Hye=class extends Tye{constructor(e){super({pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"ag-list",className:"ag-rich-select",pickerIcon:"richSelectOpen",ariaRole:"combobox",template:e?.template??h9t,agComponents:[Vf],modalPicker:!1,...e,maxPickerHeight:e?.maxPickerHeight??"calc(var(--ag-row-height) * 6.5)"}),this.searchString="",this.searchStringCreator=null,this.eInput=at,this.eDeselect=at,this.skipWrapperAnnouncement=!1;const{value:t,valueList:n,searchStringCreator:r}=e||{};t!==void 0&&(this.value=t),r&&(this.searchStringCreator=r),n!=null&&this.setValues(n),this.registerCSS(c9t)}wireBeans(e){this.userCompFactory=e.userCompFactory,this.ariaAnnounce=e.ariaAnnounce,this.registry=e.registry}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),shouldDisplayTooltip:()=>this.shouldDisplayTooltip?.()??!0})),super.postConstruct(),this.createListComponent(),this.eDeselect.appendChild(er("richSelectRemove",this.beans));const{allowTyping:e,placeholder:t,suppressDeselectAll:n}=this.config;this.eDeselect.classList.add("ag-hidden"),e?(this.eInput.setAutoComplete(!1).setInputPlaceholder(t),this.eDisplayField.classList.add("ag-hidden")):this.eInput.setDisplayed(!1),this.setupAriaProperties();const{searchDebounceDelay:r=300}=this.config;this.clearSearchString=Ml(this,this.clearSearchString.bind(this),r),this.renderSelectedValue(),e&&this.eInput.onValueChange(i=>this.searchTextFromString(i)),this.addManagedElementListeners(this.eWrapper,{focus:this.onWrapperFocus.bind(this)}),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)}),n||this.addManagedElementListeners(this.eDeselect,{mousedown:this.onDeselectAllMouseDown.bind(this),click:this.onDeselectAllClick.bind(this)})}setupAriaProperties(){const{eWrapper:e,gos:t}=this;e.tabIndex=t.get("tabIndex");const n=this.getLocaleTextFunc();this.ariaDeleteSelection=n("ariaLabelRichSelectDeleteSelection","Press DELETE to deselect item"),this.ariaDeselectAllItems=n("ariaLabelRichSelectDeselectAllItems","Press DELETE to deselect all items"),this.ariaToggleSelection=n("ariaLabelRichSelectToggleSelection","Press SPACE to toggle selection")}createListComponent(){this.listComponent=this.createBean(new p9t(this.config,this.eWrapper,()=>this.searchString)),this.listComponent.setParentComponent(this),this.addManagedListeners(this.listComponent,{richSelectListRowSelected:e=>{this.onListValueSelected(e.value,e.fromEnterKey)}})}renderSelectedValue(){const{value:e,eDisplayField:t,config:n,gos:r}=this,{allowTyping:i,cellRenderer:o,initialInputValue:a,multiSelect:s,suppressDeselectAll:l,suppressMultiSelectPillRenderer:c}=n,u=n.valueFormatter?.(e)??String(e);if(i){this.eInput.setValue(a??u);return}if(s&&!l){const h=e==null||Array.isArray(e)&&e.length===0;this.eDeselect.classList.toggle("ag-hidden",h)}let d;if(s&&!c){this.createOrUpdatePillContainer(t);return}o&&(d=$et(this.userCompFactory,n,Vn(this.gos,{value:e,valueFormatted:u,getValue:()=>this.getValue(),setValue:h=>{this.setValue(h,!0)},setTooltip:(h,g)=>{r.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=g,this.tooltipFeature?.setTooltipAndRefresh(h)}})));let p;if(d&&(p=d.newAgStackInstance()),p)Xi(t),Art(p,t),p.then(h=>{this.addDestroyFunc(()=>this.destroyBean(h))});else{if(Ut(this.value))t.innerText=u,t.classList.remove("ag-display-as-placeholder");else{const{placeholder:h}=n;Ut(h)?(t.textContent=h,t.classList.add("ag-display-as-placeholder")):Xi(t)}this.shouldDisplayTooltip=NO(()=>this.eDisplayField),this.tooltipFeature?.setTooltipAndRefresh(u??null)}}createPickerComponent(){const{values:e}=this;return e&&this.setValueList({valueList:e}),this.listComponent}setSearchStringCreator(e){this.searchStringCreator=e}setValueList(e){const{valueList:t,refresh:n}=e;!this.listComponent||this.listComponent.getCurrentList()===t||(this.listComponent.setCurrentList(t),n&&(this.values?this.listComponent.refresh(!0):(this.setValues(t),this.isPickerDisplayed&&(this.listComponent.selectValue(this.value)||this.listComponent.refresh())),this.alignPickerToComponent()))}setValues(e){this.values=e,this.searchStrings=this.getSearchStringsFromValues(e)}showPicker(){super.showPicker();const{listComponent:e,value:t}=this;if(!e)return;let n=null;e.selectValue(this.value),this.value!=null&&(n=e.getIndicesForValues(Array.isArray(t)?t:[t])[0]),n!=null?e.highlightIndex(n):e.refresh(),this.displayOrHidePicker()}beforeHidePicker(){super.beforeHidePicker()}createOrUpdatePillContainer(e){if(!this.pillContainer){const t=this.pillContainer=this.createBean(new l9t);this.addDestroyFunc(()=>{this.destroyBean(this.pillContainer),this.pillContainer=null}),Xi(e),e.appendChild(t.getGui());const{config:n,eWrapper:r,ariaDeleteSelection:i}=this,{valueFormatter:o}=n;t.init({eWrapper:r,valueFormatter:o,onPillMouseDown:a=>{a.stopImmediatePropagation()},announceItemFocus:()=>{this.announceAriaValue(i)},getValue:()=>this.getValue(),setValue:a=>this.setValue(a,!0)})}this.doWhileBlockingAnnouncement(()=>this.pillContainer?.refresh())}doWhileBlockingAnnouncement(e){this.skipWrapperAnnouncement=!0,e(),this.skipWrapperAnnouncement=!1}onWrapperFocus(){const{eInput:e,config:t}=this,{allowTyping:n,multiSelect:r,suppressDeselectAll:i}=t;if(n){const o=e.getFocusableElement();o.focus(),o.select()}else r&&!i&&!this.skipWrapperAnnouncement&&this.announceAriaValue(this.ariaDeselectAllItems)}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}onDeselectAllMouseDown(e){e.stopImmediatePropagation()}onDeselectAllClick(){this.setValue([],!0)}buildSearchStringFromKeyboardEvent(e){let{key:t}=e;if(t===Qe.BACKSPACE)this.searchString=this.searchString.slice(0,-1),t="";else if(!yye(e))return;e.preventDefault(),this.searchTextFromCharacter(t)}searchTextFromCharacter(e){this.searchString+=e,this.runSearch(),this.clearSearchString()}searchTextFromString(e){e==null&&(e=""),this.searchString=e,this.runSearch()}getSearchStringsFromValues(e){const{config:t}=this,{valueFormatter:n=r=>String(r)}=t;return typeof e[0]=="object"&&this.searchStringCreator?this.searchStringCreator(e):e.map(r=>n(r))}filterListModel(e){const{filterList:t}=this.config;t&&this.setValueList({valueList:e,refresh:!0})}runSearch(){if(!this.listComponent)return;const{values:e}=this,t=this.searchStrings;if(!t){this.listComponent.highlightIndex(-1);return}const{suggestions:n,filteredValues:r}=this.getSuggestionsAndFilteredValues(this.searchString,t),{filterList:i,highlightMatch:o,searchType:a="fuzzy"}=this.config,s=!!(i&&this.searchString!=="");this.filterListModel(s?r:e),this.highlightEmptyValue()||this.highlightListValue(n,r,s),o&&a!=="fuzzy"&&this.listComponent?.highlightFilterMatch(this.searchString),this.displayOrHidePicker()}highlightEmptyValue(){if(this.searchString===""){const e=this.searchStrings?.indexOf("");if(e!==void 0&&e!==-1)return this.listComponent?.highlightIndex(e),!0}return!1}highlightListValue(e,t,n){if(e.length){const r=n?0:this.searchStrings?.indexOf(e[0]);r!==void 0&&this.listComponent?.highlightIndex(r)}else if(this.listComponent?.highlightIndex(-1),!n||t.length)this.listComponent?.ensureIndexVisible(0);else if(n){this.getAriaElement().removeAttribute("data-active-option");const r=this.listComponent?.getAriaElement();r&&FJe(r,null)}}getSuggestionsAndFilteredValues(e,t){let n=[];const r=[];if(!e.length)return{suggestions:n,filteredValues:r};const{searchType:i="fuzzy",filterList:o}=this.config;if(i==="fuzzy"){const a=IK({inputValue:e,allSuggestions:t,hideIrrelevant:!0});n=a.values;const s=a.indices;if(o&&s.length)for(let l=0;l<s.length;l++)r.push(this.values[s[l]])}else n=t.filter((a,s)=>{const l=a.toLocaleLowerCase(),c=this.searchString.toLocaleLowerCase(),u=i==="match"?l.startsWith(c):l.indexOf(c)!==-1;return o&&u&&r.push(this.values[s]),u});return{suggestions:n,filteredValues:r}}displayOrHidePicker(){if(!this.listComponent)return;const e=this.listComponent.getGui(),t=this.listComponent.getCurrentList(),n=t?t.length===0:!1;e.classList.toggle("ag-hidden",n)}clearSearchString(){this.searchString=""}setValue(e,t,n,r){if(this.value===e)return this;const i=Array.isArray(e);if(e!=null){if(!i){const o=this.listComponent?.getCurrentList();if((o?o.indexOf(e):-1)===-1)return this}n||this.listComponent?.selectValue(e)}return super.setValue(e,t),r||this.renderSelectedValue(),this}onNavigationKeyDown(e,t,n){e.preventDefault();const r=t===Qe.DOWN;if(!this.isPickerDisplayed&&r){this.showPicker();return}this.listComponent?.onNavigationKeyDown(t,n)}onEnterKeyDown(e){if(this.isPickerDisplayed&&(e.preventDefault(),this.listComponent?.getCurrentList())){const t=this.listComponent.getLastItemHovered();this.config.multiSelect||t==null?this.dispatchPickerEventAndHidePicker(this.value,!0):this.onListValueSelected(new Set([t]),!0)}}onDeleteKeyDown(e){const{eWrapper:t,beans:n}=this;Gi(n)===t&&(e.preventDefault(),this.setValue([],!0))}onTabKeyDown(){const{config:e,isPickerDisplayed:t,listComponent:n}=this,{multiSelect:r}=e;if(!(!t||!n)){if(r){const i=this.getValueFromSet(n.getSelectedItems());i&&this.setValue(i,!1,!0,!0)}else{const i=n.getLastItemHovered();i&&this.setValue(i,!1,!0)}this.hidePicker()}}getValueFromSet(e){const{multiSelect:t}=this.config;let n=null;for(const r of e){if(e.size===1&&!t){n=r;break}n||(n=[]),n.push(r)}return Array.isArray(n)&&n.sort(),n}onListValueSelected(e,t){const n=this.getValueFromSet(e);this.setValue(n,!1,!0),this.config.multiSelect||this.dispatchPickerEventAndHidePicker(n,t)}dispatchPickerEventAndHidePicker(e,t){const n={type:"fieldPickerValueSelected",fromEnterKey:t,value:e};this.dispatchLocalEvent(n),this.hidePicker()}getFocusableElement(){const{allowTyping:e}=this.config;return e?this.eInput.getFocusableElement():super.getFocusableElement()}onKeyDown(e){const{key:t}=e,{isPickerDisplayed:n,config:r,listComponent:i,pickerComponent:o}=this,{allowTyping:a,multiSelect:s,suppressDeselectAll:l}=r;switch(t){case Qe.LEFT:case Qe.RIGHT:(!a||this.pillContainer)&&(e.preventDefault(),this.pillContainer&&(this.listComponent?.highlightIndex(-1),this.pillContainer.onNavigationKeyDown(e)));break;case Qe.PAGE_HOME:case Qe.PAGE_END:if(a){e.preventDefault();const c=this.eInput.getInputElement(),u=t===Qe.PAGE_HOME?0:c.value.length;c.setSelectionRange(u,u);break}case Qe.PAGE_UP:case Qe.PAGE_DOWN:e.preventDefault(),o&&i?.navigateToPage(t);break;case Qe.DOWN:case Qe.UP:this.onNavigationKeyDown(e,t,()=>{s&&(this.doWhileBlockingAnnouncement(()=>this.eWrapper.focus()),this.announceAriaValue(this.ariaToggleSelection))});break;case Qe.ESCAPE:n&&(x0(this.listComponent.getGui())&&(e.preventDefault(),Cl(e)),this.hidePicker());break;case Qe.ENTER:this.onEnterKeyDown(e);break;case Qe.SPACE:if(e.preventDefault(),n&&s&&i){const c=i.getLastItemHovered();c&&i.toggleListItemSelection(c)}break;case Qe.TAB:this.onTabKeyDown();break;case Qe.DELETE:s&&!l&&this.onDeleteKeyDown(e);break;default:a||this.buildSearchStringFromKeyboardEvent(e)}}announceAriaValue(e){this.ariaAnnounce?.announceValue(e,"richSelect")}destroy(){this.listComponent&&(this.listComponent=this.destroyBean(this.listComponent)),this.searchStrings=void 0,super.destroy()}};function Art(e,t){e.then(n=>{const r=n.getGui();r!=null&&t.appendChild(r)})}var f9t={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"ag-input-text-field",ref:"eInput",cls:"ag-rich-select-field-input"},{tag:"span",ref:"eDeselect",cls:"ag-rich-select-deselect-button ag-picker-field-icon",role:"presentation"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},Ort=class extends Hye{constructor(e){super({...e,template:f9t,agComponents:[Vf]}),this.params=e}showPicker(){setTimeout(()=>super.showPicker())}hidePicker(){setTimeout(()=>super.hidePicker())}postConstruct(){super.postConstruct();const{wrapperClassName:e,ariaLabel:t}=this.params;Nn(this.eDisplayField,!1),e&&this.eWrapper.classList.add(e),Hx(this.eWrapper,""),Es(this.eWrapper,t)}onEnterKeyDown(e){Cl(e),this.isPickerDisplayed?super.onEnterKeyDown(e):(e.preventDefault(),this.showPicker())}},zrt=class extends dt{constructor(e,t,n){super(),this.eGui=e,this.focusWrapper=t,this.eFocusableComp=n}postConstruct(){this.addManagedElementListeners(this.eGui,{keydown:t=>{switch(t.key){case Qe.TAB:t.defaultPrevented||Cl(t);break;case Qe.UP:case Qe.DOWN:Cl(t);break;case Qe.ESCAPE:if(rh(t))return;this.eGui.contains(Gi(this.beans))&&(t.preventDefault(),Cl(t),this.focusWrapper.focus());break}}});const e="ag-advanced-filter-builder-virtual-list-item-highlight";this.addManagedListeners(this.focusWrapper,{keydown:t=>{switch(t.key){case Qe.ENTER:if(rh(t))return;Gi(this.beans)===this.focusWrapper&&(t.preventDefault(),Cl(t),this.eFocusableComp.getFocusableElement().focus());break}},focusin:()=>{this.focusWrapper.classList.add(e)},focusout:t=>{this.focusWrapper.contains(t.relatedTarget)||this.focusWrapper.classList.remove(e)}})}};function Trt(e,t){return{pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderAddField",pickerAriaLabelValue:"Advanced Filter Builder Add Field",pickerType:"ag-list",valueList:[{key:"condition",displayValue:e("advancedFilterBuilderAddCondition")},{key:"join",displayValue:e("advancedFilterBuilderAddJoin")}],valueFormatter:n=>n==null?"":n.displayValue??n.key,pickerIcon:"advancedFilterBuilderAdd",maxPickerWidth:`${t??120}px`,wrapperClassName:"ag-advanced-filter-builder-item-button",ariaLabel:e("advancedFilterBuilderAddButtonTooltip")}}var g9t={tag:"div",cls:"ag-advanced-filter-builder-item-wrapper",role:"presentation",children:[{tag:"div",ref:"eItem",cls:"ag-advanced-filter-builder-item",role:"presentation",children:[{tag:"div",cls:"ag-advanced-filter-builder-item-tree-lines",attrs:{"aria-hidden":"true"},children:[{tag:"div",cls:"ag-advanced-filter-builder-item-tree-line-vertical-top ag-advanced-filter-builder-item-tree-line-horizontal"}]}]}]},m9t=class extends Gt{constructor(e,t){super(g9t),this.item=e,this.focusWrapper=t,this.eItem=at}wireBeans(e){this.advFilterExpSvc=e.advFilterExpSvc,this.registry=e.registry}postConstruct(){cK(this.focusWrapper,2);const e=Trt(n=>this.advFilterExpSvc.translate(n),this.gos.get("advancedFilterBuilderParams")?.addSelectWidth),t=this.createManagedBean(new Ort(e));this.addManagedListeners(t,{fieldPickerValueSelected:({value:n})=>{this.dispatchLocalEvent({type:"advancedFilterBuilderAdded",item:this.item,isJoin:n.key==="join"})}}),this.eItem.appendChild(t.getGui()),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>t.getGui(),getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip")})),this.createManagedBean(new zrt(this.getGui(),this.focusWrapper,t)),Es(this.focusWrapper,this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItem",[this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip"),`${this.item.level+1}`]))}afterAdd(){}},v9t=class extends Gt{constructor(){super({tag:"div",cls:"ag-advanced-filter-builder-item-condition",role:"presentation"}),this.validationMessage=null}wireBeans(e){this.advFilterExpSvc=e.advFilterExpSvc}init(e){const{item:t,createPill:n}=e;this.item=t,this.createPill=n,this.filterModel=t.filterModel,this.setupColumnCondition(this.filterModel),this.validate(),this.addDestroyFunc(()=>this.destroyBeans([this.eColumnPill,this.eOperatorPill,this.eOperandPill]))}getDragName(){return this.filterModel.colId?this.advFilterExpSvc.parseColumnFilterModel(this.filterModel):this.getDefaultColumnDisplayValue()}getAriaLabel(){return`${this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderFilterItem")} ${this.getDragName()}`}getValidationMessage(){return this.validationMessage}getFocusableElement(){return this.eColumnPill.getFocusableElement()}setupColumnCondition(e){const t=this.advFilterExpSvc.getColumnDetails(e.colId);this.baseCellDataType=t.baseCellDataType,this.column=t.column,this.numOperands=this.getNumOperands(this.getOperatorKey()),this.eColumnPill=this.createPill({key:this.getColumnKey(),displayValue:this.getColumnDisplayValue()??this.getDefaultColumnDisplayValue(),cssClass:"ag-advanced-filter-builder-column-pill",isSelect:!0,getEditorParams:()=>({values:this.advFilterExpSvc.getColumnAutocompleteEntries()}),update:n=>this.setColumnKey(n),pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderColumnSelectField",pickerAriaLabelValue:"Advanced Filter Builder Column Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderColumn")}),this.getGui().appendChild(this.eColumnPill.getGui()),Ut(this.getColumnKey())&&(this.createOperatorPill(),this.hasOperand()&&this.createOperandPill())}createOperatorPill(){this.eOperatorPill=this.createPill({key:this.getOperatorKey(),displayValue:this.getOperatorDisplayValue()??this.getDefaultOptionSelectValue(),cssClass:"ag-advanced-filter-builder-option-pill",isSelect:!0,getEditorParams:()=>({values:this.getOperatorAutocompleteEntries()}),update:e=>this.setOperatorKey(e),pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderOptionSelectField",pickerAriaLabelValue:"Advanced Filter Builder Option Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderOption")}),this.eColumnPill.getGui().insertAdjacentElement("afterend",this.eOperatorPill.getGui())}createOperandPill(){const{filter:e}=this.filterModel,t=(typeof e=="number"?ap(e):e)??"";this.eOperandPill=this.createPill({key:t,valueFormatter:n=>this.advFilterExpSvc.getOperandDisplayValue({...this.filterModel,filter:n},!0),baseCellDataType:this.baseCellDataType,cssClass:"ag-advanced-filter-builder-value-pill",isSelect:!1,update:n=>this.setOperand(n),ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderValue")}),this.getGui().appendChild(this.eOperandPill.getGui())}getColumnKey(){return this.filterModel.colId}getColumnDisplayValue(){return this.advFilterExpSvc.getColumnDisplayValue(this.filterModel)}getOperatorKey(){return this.filterModel.type}getOperatorDisplayValue(){return this.advFilterExpSvc.getOperatorDisplayValue(this.filterModel)}getOperandDisplayValue(){return this.advFilterExpSvc.getOperandDisplayValue(this.filterModel,!0)}hasOperand(){return this.numOperands>0}getOperatorAutocompleteEntries(){return this.column?this.advFilterExpSvc.getOperatorAutocompleteEntries(this.column,this.baseCellDataType):[]}setColumnKey(e){this.eOperatorPill||this.createOperatorPill();const t=this.advFilterExpSvc.getColumnDetails(e);this.column=t.column;const n=t.baseCellDataType;this.baseCellDataType!==n&&(this.baseCellDataType=n,this.setOperatorKey(void 0),this.eOperatorPill&&(Rs(this.eOperatorPill.getGui()),this.destroyBean(this.eOperatorPill),this.createOperatorPill()),this.validate()),this.filterModel.colId=e,this.filterModel.filterType=this.baseCellDataType}setOperatorKey(e){const t=this.getNumOperands(e);t!==this.numOperands&&(this.numOperands=t,t===0?this.destroyOperandPill():(this.createOperandPill(),this.baseCellDataType!=="number"&&this.setOperand(""))),this.filterModel.type=e,this.validate()}setOperand(e){let t=e;this.baseCellDataType==="number"&&(t=Ut(e)?Number(e):""),this.filterModel.filter=t,this.validate()}getNumOperands(e){return this.advFilterExpSvc.getExpressionOperator(this.baseCellDataType,e)?.numOperands??0}destroyOperandPill(){delete this.filterModel.filter,this.getGui().removeChild(this.eOperandPill.getGui()),this.destroyBean(this.eOperandPill),this.eOperandPill=void 0}validate(){let e=null;Ut(this.getColumnKey())?Ut(this.getOperatorKey())?this.numOperands>0&&!Ut(this.getOperandDisplayValue())&&(e=this.advFilterExpSvc.translate("advancedFilterBuilderValidationEnterValue")):e=this.advFilterExpSvc.translate("advancedFilterBuilderValidationSelectOption"):e=this.advFilterExpSvc.translate("advancedFilterBuilderValidationSelectColumn"),this.item.valid=!e,e!==this.validationMessage&&(this.validationMessage=e,this.dispatchLocalEvent({type:"advancedFilterBuilderValidChanged"}))}getDefaultColumnDisplayValue(){return this.advFilterExpSvc.translate("advancedFilterBuilderSelectColumn")}getDefaultOptionSelectValue(){return this.advFilterExpSvc.translate("advancedFilterBuilderSelectOption")}},b9t={tag:"div",cls:"ag-advanced-filter-builder-pill-wrapper",role:"presentation",children:[{tag:"div",ref:"ePill",cls:"ag-advanced-filter-builder-pill",role:"button",children:[{tag:"span",ref:"eLabel",cls:"ag-advanced-filter-builder-pill-display"}]}]},y9t=class extends Gt{constructor(e){super(b9t),this.params=e,this.ePill=at,this.eLabel=at;const{value:t,valueFormatter:n}=e;this.value=t,this.displayValue=n(t)}wireBeans(e){this.advFilterExpSvc=e.advFilterExpSvc}postConstruct(){const{cssClass:e,ariaLabel:t}=this.params;this.ePill.classList.add(e),this.activateTabIndex([this.ePill]),this.eLabel.id=`${this.getCompId()}`,lK(this.ePill,this.eLabel.id),Es(this.ePill,t),this.renderValue(),this.addManagedListeners(this.ePill,{click:n=>{n.preventDefault(),this.showEditor()},keydown:n=>{switch(n.key){case Qe.ENTER:n.preventDefault(),Cl(n),this.showEditor();break}}}),this.addDestroyFunc(()=>this.destroyBean(this.eEditor))}getFocusableElement(){return this.ePill}showEditor(){if(this.eEditor)return;Nn(this.ePill,!1),this.eEditor=this.createEditorComp(this.params.type),this.eEditor.setValue(this.value);const e=this.eEditor.getGui();this.eEditor.addManagedElementListeners(e,{keydown:t=>{switch(t.key){case Qe.ENTER:t.preventDefault(),Cl(t),this.updateValue(!0);break;case Qe.ESCAPE:t.preventDefault(),Cl(t),this.hideEditor(!0);break}},focusout:()=>this.updateValue(!1)}),this.getGui().appendChild(e),this.eEditor.getFocusableElement().focus()}createEditorComp(e){let t;switch(e){case"text":t=new Im;break;case"number":t=new OK;break;case"date":t=new Ftt;break}return this.createBean(t)}hideEditor(e){const{eEditor:t}=this;t&&(this.eEditor=void 0,this.getGui().removeChild(t.getGui()),this.destroyBean(t),Nn(this.ePill,!0),e&&this.ePill.focus())}renderValue(){let e;const{displayValue:t,eLabel:n}=this,{classList:r}=n;r.remove("ag-advanced-filter-builder-value-empty","ag-advanced-filter-builder-value-number","ag-advanced-filter-builder-value-text"),Ut(t)?this.params.type==="number"?(e=t,r.add("ag-advanced-filter-builder-value-number")):(e=`"${t}"`,r.add("ag-advanced-filter-builder-value-text")):(e=this.advFilterExpSvc.translate("advancedFilterBuilderEnterValue"),r.add("ag-advanced-filter-builder-value-empty")),n.textContent=e}updateValue(e){if(!this.eEditor)return;const t=this.eEditor.getValue()??"";this.dispatchLocalEvent({type:"fieldValueChanged",value:t}),this.value=t,this.displayValue=this.params.valueFormatter(t),this.renderValue(),this.hideEditor(e)}},M9t=class extends Gt{wireBeans(e){this.advFilterExpSvc=e.advFilterExpSvc}constructor(){super({tag:"div",cls:"ag-advanced-filter-builder-item-condition",role:"presentation"})}init(e){const{item:t,createPill:n}=e,r=t.filterModel;this.filterModel=r,this.ePill=n({key:r.type,displayValue:this.advFilterExpSvc.parseJoinOperator(r),cssClass:"ag-advanced-filter-builder-join-pill",isSelect:!0,getEditorParams:()=>({values:this.advFilterExpSvc.getJoinOperatorAutocompleteEntries()}),update:i=>r.type=i,pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderJoinSelectField",pickerAriaLabelValue:"Advanced Filter Builder Join Operator Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderJoinOperator")}),this.getGui().appendChild(this.ePill.getGui()),this.addDestroyFunc(()=>this.destroyBean(this.ePill))}getDragName(){return this.advFilterExpSvc.parseJoinOperator(this.filterModel)}getAriaLabel(){return`${this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderGroupItem")} ${this.getDragName()}`}getValidationMessage(){return null}getFocusableElement(){return this.ePill.getFocusableElement()}},C9t={tag:"div",cls:"ag-picker-field ag-advanced-filter-builder-pill-wrapper",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-advanced-filter-builder-pill ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display ag-advanced-filter-builder-pill-display"},{tag:"ag-input-text-field",ref:"eInput",cls:"ag-rich-select-field-input"},{tag:"span",ref:"eDeselect",cls:"ag-rich-select-deselect-button ag-picker-field-icon",role:"presentation"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},x9t=class extends Hye{constructor(e){super({...e,template:C9t,agComponents:[Vf]}),this.params=e}getFocusableElement(){return this.eWrapper}showPicker(){setTimeout(()=>super.showPicker())}hidePicker(){setTimeout(()=>super.hidePicker())}postConstruct(){super.postConstruct();const{wrapperClassName:e,ariaLabel:t}=this.params;this.eWrapper.classList.add(e),Hx(this.eWrapper,""),Es(this.eWrapper,t)}createPickerComponent(){if(!this.values){const{values:e}=this.params.getEditorParams();this.values=e;const t=this.value.key,n=e.find(r=>r.key===t)??{key:t,displayValue:this.value.displayValue};this.value=n}return super.createPickerComponent()}onEnterKeyDown(e){Cl(e),this.isPickerDisplayed?super.onEnterKeyDown(e):(e.preventDefault(),this.showPicker())}},w9t={tag:"div",cls:"ag-advanced-filter-builder-item-wrapper",role:"presentation",children:[{tag:"div",cls:"ag-advanced-filter-builder-item",role:"presentation",children:[{tag:"div",ref:"eTreeLines",cls:"ag-advanced-filter-builder-item-tree-lines",attrs:{"aria-hidden":"true"}},{tag:"span",ref:"eDragHandle",cls:"ag-drag-handle",attrs:{"aria-hidden":"true"}},{tag:"span",ref:"eValidation",cls:"ag-advanced-filter-builder-item-button ag-advanced-filter-builder-invalid",attrs:{"aria-hidden":"true"}}]},{tag:"div",ref:"eButtons",cls:"ag-advanced-filter-builder-item-buttons",children:[{tag:"span",ref:"eMoveUpButton",cls:"ag-advanced-filter-builder-item-button",role:"button"},{tag:"span",ref:"eMoveDownButton",cls:"ag-advanced-filter-builder-item-button",role:"button"},{tag:"div",ref:"eAddButton",role:"presentation"},{tag:"span",ref:"eRemoveButton",cls:"ag-advanced-filter-builder-item-button",role:"button"}]}]},bre=class extends Vb{constructor(e,t,n){super(w9t),this.item=e,this.dragFeature=t,this.focusWrapper=n,this.eTreeLines=at,this.eDragHandle=at,this.eButtons=at,this.eValidation=at,this.eMoveUpButton=at,this.eMoveDownButton=at,this.eAddButton=at,this.eRemoveButton=at,this.moveUpDisabled=!1,this.moveDownDisabled=!1}wireBeans(e){this.dragAndDrop=e.dragAndDrop,this.advFilterExpSvc=e.advFilterExpSvc,this.registry=e.registry}postConstruct(){const{filterModel:e,level:t,showMove:n}=this.item,r=e.filterType==="join";if(this.ePillWrapper=this.createManagedBean(r?new M9t:new v9t),this.ePillWrapper.init({item:this.item,createPill:i=>this.createPill(i)}),this.eDragHandle.insertAdjacentElement("afterend",this.ePillWrapper.getGui()),t===0){const i=Nr({tag:"div",cls:"ag-advanced-filter-builder-item-tree-line-vertical-bottom ag-advanced-filter-builder-item-tree-line-root"});this.eTreeLines.appendChild(i),Nn(this.eDragHandle,!1),Nn(this.eButtons,!1),d1(this.focusWrapper,!0)}else this.setupTreeLines(t),this.eDragHandle.appendChild(er("advancedFilterBuilderDrag",this.beans)),this.setupValidation(),this.setupMoveButtons(n),this.setupAddButton(),this.setupRemoveButton(),this.setupDragging(),this.updateAriaExpanded();cK(this.focusWrapper,t+1),this.initialiseTabGuard({}),this.createManagedBean(new zrt(this.getGui(),this.focusWrapper,this.ePillWrapper)),this.updateAriaLabel(),this.addManagedListeners(this.ePillWrapper,{advancedFilterBuilderValueChanged:()=>this.dispatchLocalEvent({type:"advancedFilterBuilderValueChanged"}),advancedFilterBuilderValidChanged:()=>this.updateValidity()})}setState(e){const{level:t}=this.item;if(t===0)return;const{showMove:n}=this.item,{disableMoveUp:r,disableMoveDown:i,treeLines:o,showStartTreeLine:a}=e;this.updateTreeLines(o,a),this.updateAriaExpanded(),n&&(this.moveUpDisabled=!!r,this.moveDownDisabled=!!i,this.eMoveUpButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",r),this.eMoveDownButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",i),p$(this.eMoveUpButton,!!r),p$(this.eMoveDownButton,!!i),this.moveUpTooltipFeature?.refreshTooltip(),this.moveDownTooltipFeature?.refreshTooltip())}focusMoveButton(e){(e?this.eMoveUpButton:this.eMoveDownButton).focus()}afterAdd(){this.ePillWrapper.getFocusableElement().focus()}setupTreeLines(e){for(let t=0;t<e;t++)this.eTreeLines.appendChild(Nr({tag:"div"}))}updateTreeLines(e,t){const n=e.length-1,{children:r}=this.eTreeLines;for(let o=0;o<n;o++){const a=r.item(o);a&&a.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical",!e[o])}const i=r.item(n);if(i){i.classList.add("ag-advanced-filter-builder-item-tree-line-horizontal");const o=e[n];i.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical-top",o),i.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical",!o)}this.eDragHandle.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical-bottom",t)}setupValidation(){this.eValidation.appendChild(er("advancedFilterBuilderInvalid",this.beans)),this.validationTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eValidation,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.ePillWrapper.getValidationMessage(),getTooltipShowDelayOverride:()=>1e3})),this.updateValidity()}setupAddButton(){const e=Trt(n=>this.advFilterExpSvc.translate(n),this.gos.get("advancedFilterBuilderParams")?.addSelectWidth),t=this.createManagedBean(new Ort(e));this.addManagedListeners(t,{fieldPickerValueSelected:({value:n})=>this.dispatchLocalEvent({type:"advancedFilterBuilderAdded",item:this.item,isJoin:n.key==="join"})}),this.eAddButton.appendChild(t.getGui()),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eAddButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip")}))}setupRemoveButton(){this.eRemoveButton.appendChild(er("advancedFilterBuilderRemove",this.beans)),this.addManagedListeners(this.eRemoveButton,{click:()=>this.removeItem(),keydown:e=>{switch(e.key){case Qe.ENTER:e.preventDefault(),Cl(e),this.removeItem();break}}}),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eRemoveButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderRemoveButtonTooltip")})),Es(this.eRemoveButton,this.advFilterExpSvc.translate("advancedFilterBuilderRemoveButtonTooltip")),this.activateTabIndex([this.eRemoveButton])}setupMoveButtons(e){e?(this.eMoveUpButton.appendChild(er("advancedFilterBuilderMoveUp",this.beans)),this.addManagedListeners(this.eMoveUpButton,{click:()=>this.moveItem(!0),keydown:t=>{switch(t.key){case Qe.ENTER:t.preventDefault(),Cl(t),this.moveItem(!0);break}}}),this.moveUpTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eMoveUpButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.moveUpDisabled?null:this.advFilterExpSvc.translate("advancedFilterBuilderMoveUpButtonTooltip")})),Es(this.eMoveUpButton,this.advFilterExpSvc.translate("advancedFilterBuilderMoveUpButtonTooltip")),this.eMoveDownButton.appendChild(er("advancedFilterBuilderMoveDown",this.beans)),this.addManagedListeners(this.eMoveDownButton,{click:()=>this.moveItem(!1),keydown:t=>{switch(t.key){case Qe.ENTER:t.preventDefault(),Cl(t),this.moveItem(!1);break}}}),this.moveDownTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eMoveDownButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.moveDownDisabled?null:this.advFilterExpSvc.translate("advancedFilterBuilderMoveDownButtonTooltip")})),Es(this.eMoveDownButton,this.advFilterExpSvc.translate("advancedFilterBuilderMoveDownButtonTooltip")),this.activateTabIndex([this.eMoveUpButton,this.eMoveDownButton])):(Nn(this.eMoveUpButton,!1),Nn(this.eMoveDownButton,!1))}updateValidity(){KJe(this.eValidation,!this.item.valid),this.validationTooltipFeature?.refreshTooltip(),this.updateAriaLabel()}createPill(e){const{key:t,cssClass:n,update:r,ariaLabel:i}=e,o=a=>{a!=null&&(r(a),this.dispatchLocalEvent({type:"advancedFilterBuilderValueChanged"}))};if(e.isSelect){const{getEditorParams:a,pickerAriaLabelKey:s,pickerAriaLabelValue:l,displayValue:c}=e,u=this.gos.get("advancedFilterBuilderParams"),d=`${u?.pillSelectMinWidth??140}px`,p=`${u?.pillSelectMaxWidth??200}px`,h=this.createBean(new x9t({pickerAriaLabelKey:s,pickerAriaLabelValue:l,pickerType:"ag-list",value:{key:t,displayValue:c},valueFormatter:g=>g==null?"":g.displayValue??g.key,variableWidth:!0,minPickerWidth:d,maxPickerWidth:p,getEditorParams:a,wrapperClassName:n,ariaLabel:i,pickerIcon:"advancedFilterBuilderSelectOpen"}));return this.addManagedListeners(h,{fieldPickerValueSelected:({value:g})=>o(g?.key)}),h}else{const{baseCellDataType:a,valueFormatter:s}=e,l=this.createBean(new y9t({value:t,valueFormatter:s,cssClass:n,type:this.getInputType(a),ariaLabel:i}));return this.addManagedListeners(l,{fieldValueChanged:({value:c})=>o(c)}),l}}getInputType(e){switch(e){case"text":case"object":case"boolean":return"text";case"number":return"number";case"date":case"dateString":return"date"}}setupDragging(){const e={type:bm.AdvancedFilterBuilder,eElement:this.eDragHandle,dragItemName:()=>this.ePillWrapper.getDragName(),getDefaultIconName:()=>"notAllowed",getDragItem:()=>({}),onDragStarted:()=>this.dragFeature.dispatchLocalEvent({type:"advancedFilterBuilderDragStarted",item:this.item}),onDragStopped:()=>this.dragFeature.dispatchLocalEvent({type:"advancedFilterBuilderDragEnded"})};this.dragAndDrop.addDragSource(e,!0),this.addDestroyFunc(()=>this.dragAndDrop.removeDragSource(e))}updateAriaLabel(){const e=this.ePillWrapper.getAriaLabel(),t=`${this.item.level+1}`,n=this.ePillWrapper.getValidationMessage();let r;n?r=this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItemValidation",[e,t,n]):r=this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItem",[e,t]),Es(this.focusWrapper,r)}updateAriaExpanded(){WJe(this.focusWrapper);const{filterModel:e}=this.item;e?.filterType==="join"&&e.conditions.length&&d1(this.focusWrapper,!0)}removeItem(){this.dispatchLocalEvent({type:"advancedFilterBuilderRemoved",item:this.item})}moveItem(e){this.dispatchLocalEvent({type:"advancedFilterBuilderMoved",item:this.item,backwards:e})}},S9t={tag:"div",cls:"ag-advanced-filter-builder",role:"presentation",attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eList",cls:"ag-advanced-filter-builder-list",role:"presentation"},{tag:"div",cls:"ag-advanced-filter-builder-button-panel",role:"presentation",children:[{tag:"button",ref:"eApplyFilterButton",cls:"ag-button ag-standard-button ag-advanced-filter-builder-apply-button"},{tag:"button",ref:"eCancelFilterButton",cls:"ag-button ag-standard-button ag-advanced-filter-builder-cancel-button"}]}]},A9t=class extends Gt{constructor(){super(S9t),this.eList=at,this.eApplyFilterButton=at,this.eCancelFilterButton=at,this.validationMessage=null}wireBeans(e){this.filterManager=e.filterManager,this.advancedFilter=e.advancedFilter,this.advFilterExpSvc=e.advFilterExpSvc,this.registry=e.registry}postConstruct(){const{showMoveButtons:e}=this.gos.get("advancedFilterBuilderParams")??{};this.showMove=!!e,this.addManagedPropertyListener("advancedFilterBuilderParams",({currentValue:t})=>{this.showMove=!!t?.showMoveButtons,this.refreshList(!1)}),this.filterModel=this.setupFilterModel(),this.setupVirtualList(),this.dragFeature=this.createManagedBean(new i9t(this,this.virtualList)),this.setupButtons()}refresh(){const e=this.virtualList;let t=e.getLastFocusedRow();this.setupFilterModel(),this.validateItems(),this.refreshList(!1),t!=null&&(e.getComponentAt(t)||(t=0),e.focusRow(t))}getNumItems(){return this.items.length}moveItem(e,t){!t||!e||this.moveItemToIndex(e,t.rowIndex,t.position)}afterGuiAttached(){this.virtualList.awaitStable(()=>this.virtualList.focusRow(0))}setupVirtualList(){const e=this.virtualList=this.createManagedBean(new fD({cssIdentifier:"advanced-filter-builder",ariaRole:"tree",listName:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderList"),moveItemCallback:this.virtualListMoveItemCallback.bind(this)}));e.setComponentCreator(this.createItemComponent.bind(this)),e.setComponentUpdater(this.updateItemComponent.bind(this)),e.setRowHeight(40),this.eList.appendChild(e.getGui()),e.setModel({getRowCount:()=>this.items?.length||0,getRow:t=>this.items[t],areRowsEqual:(t,n)=>t===n}),this.buildList(),e.refresh()}setupButtons(){this.eApplyFilterButton.textContent=this.advFilterExpSvc.translate("advancedFilterBuilderApply"),this.activateTabIndex([this.eApplyFilterButton]),this.addManagedElementListeners(this.eApplyFilterButton,{click:()=>{this.advancedFilter.setModel(this.filterModel),this.filterManager?.onFilterChanged({source:"advancedFilter"}),this.close()}}),this.validationTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApplyFilterButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.validationMessage,getTooltipShowDelayOverride:()=>1e3})),this.validate();const e=t=>this.toggleCss("ag-advanced-filter-builder-validation",t);this.addManagedListeners(this.eApplyFilterButton,{mouseenter:()=>e(!0),mouseleave:()=>e(!1)}),this.eCancelFilterButton.textContent=this.advFilterExpSvc.translate("advancedFilterBuilderCancel"),this.activateTabIndex([this.eCancelFilterButton]),this.addManagedElementListeners(this.eCancelFilterButton,{click:()=>this.close()})}removeItemFromParent(e){const t=e.parent.conditions.indexOf(e.filterModel);return e.parent.conditions.splice(t,1),t}moveItemToIndex(e,t,n){const r=this.items[t],i=r.filterModel?.filterType==="join"&&n==="bottom",o=i?r.filterModel:r.parent;if(!o||this.isChildOrSelf(o,e.filterModel)||r===e)return;this.removeItemFromParent(e);let a;i?a=0:(a=o.conditions.indexOf(r.filterModel),a===-1?a=o.conditions.length:n==="bottom"&&(a+=1)),o.conditions.splice(a,0,e.filterModel),this.refreshList(!1)}isChildOrSelf(e,t){return e===t||t.filterType==="join"&&t.conditions.some(n=>this.isChildOrSelf(e,n))}setupFilterModel(){const e=this.formatFilterModel(this.advancedFilter.getModel());return this.stringifiedModel=JSON.stringify(e),e}formatFilterModel(e){return e=e??{filterType:"join",type:"AND",conditions:[]},e.filterType!=="join"&&(e={filterType:"join",type:"AND",conditions:[e]}),e}buildList(){const e=(t,n,r,i)=>{n.push({filterModel:t,level:r,parent:i,valid:!0,showMove:this.showMove}),t.filterType==="join"&&(t.conditions.forEach(o=>e(o,n,r+1,t)),r===0&&n.push({filterModel:null,level:r+1,parent:t,valid:!0}))};this.items=[],e(this.filterModel,this.items,0)}refreshList(e){if(!e){const t=[];this.items.forEach(n=>{n.valid||t.push(n.filterModel)}),this.buildList(),t.length&&this.items.forEach(n=>{n.filterModel&&t.includes(n.filterModel)&&(n.valid=!1)})}this.virtualList.refresh(e),this.validate()}updateItemComponent(e,t){const n=this.items.indexOf(e),r=(s,l)=>{const u=this.items.find(d=>d.filterModel===s)?.parent;if(u){const{conditions:d}=u;r(u,l),l.push(d[d.length-1]===s)}},i=[],{filterModel:o}=e;o&&(r(o,i),i[0]=!1);const a=o?.filterType==="join"&&!!o.conditions.length;t.setState({disableMoveUp:n===1,disableMoveDown:!this.canMoveDown(e,n),treeLines:i,showStartTreeLine:a})}createItemComponent(e,t){const n=this.createBean(e.filterModel?new bre(e,this.dragFeature,t):new m9t(e,t));return n.addManagedListeners(n,{advancedFilterBuilderRemoved:({item:r})=>this.removeItem(r),advancedFilterBuilderValueChanged:()=>this.validate(),advancedFilterBuilderAdded:({item:r,isJoin:i})=>this.addItem(r,i),advancedFilterBuilderMoved:({item:r,backwards:i})=>this.moveItemUpDown(r,i)}),n instanceof bre&&this.updateItemComponent(e,n),n}addItem(e,t){const{parent:n,level:r,filterModel:i}=e,o=i?.filterType==="join",a=t?{filterType:"join",type:"AND",conditions:[]}:{},s=o?i:n;let l=o?0:s.conditions.indexOf(i);l>=0?(o||(l+=1),s.conditions.splice(l,0,a)):s.conditions.push(a);let c=this.items.indexOf(e);const u=c>=0;if(u){e.filterModel&&c++;const d=[{filterModel:a,level:o?r+1:r,parent:s,valid:t,showMove:this.showMove}];this.items.splice(c,0,...d)}this.refreshList(u),u&&this.virtualList.getComponentAt(c)?.afterAdd()}removeItem(e){const t=e.parent,{filterModel:n}=e,r=t.conditions.indexOf(n);t.conditions.splice(r,1);const i=e.filterModel?.filterType==="join",o=this.items.indexOf(e),a=!i&&o>=0;a&&this.items.splice(o,1),this.refreshList(a),o>=0&&this.virtualList.focusRow(o)}moveItemUpDown(e,t,n){const r=this.items.indexOf(e),i=t?r-1:r+1;if(i===0||!t&&!this.canMoveDown(e,r))return;const o=this.items[i],a=this.removeItemFromParent(e),{level:s,filterModel:l,parent:c}=e,{level:u,filterModel:d,parent:p}=o;if(t)if(u===s&&d.filterType==="join")d.conditions.push(l);else if(u<=s){const m=p.conditions.indexOf(d);p.conditions.splice(m,0,l)}else c.conditions[a-1].conditions.push(l);else if(u===s)if(d.filterType==="join")d.conditions.splice(0,0,l);else{const m=p.conditions.indexOf(d);p.conditions.splice(m+1,0,l)}else if(a<c.conditions.length)c.conditions.splice(a+1,0,l);else{const m=this.items.find(y=>y.filterModel===c),v=m.parent.conditions.indexOf(m.filterModel)+1;m.parent.conditions.splice(v,0,l)}this.refreshList(!1);const h=this.items.findIndex(({filterModel:m})=>m===l);if(h<0)return;const g=this.virtualList.getComponentAt(h);g instanceof bre&&(n||g.focusMoveButton(t))}virtualListMoveItemCallback(e,t){const n=e.item,r=this.items.indexOf(n);r<=0||r===this.items.length-1||t&&r===1||!t&&!this.canMoveDown(n,r)||(this.moveItemUpDown(n,t,!0),this.virtualList.focusRow(r+(t?-1:1)))}canMoveDown(e,t){return!(e.level===1&&t===this.items.length-2||e.level===1&&e.parent.conditions[e.parent.conditions.length-1]===e.filterModel)}close(){this.advancedFilter.getCtrl().toggleFilterBuilder({source:"ui"})}validate(){let e=!this.items.every(({valid:t})=>t);e?this.validationMessage=this.advFilterExpSvc.translate("advancedFilterBuilderValidationIncomplete"):(e=JSON.stringify(this.filterModel)===this.stringifiedModel,e?this.validationMessage=this.advFilterExpSvc.translate("advancedFilterBuilderValidationAlreadyApplied"):this.validationMessage=null),nf(this.eApplyFilterButton,e),this.validationTooltipFeature?.refreshTooltip()}validateItems(){const e=n=>{n.type=void 0},t=n=>{delete n.filter};this.items.forEach(n=>{if(!n.valid||!n.filterModel||n.filterModel.filterType==="join")return;const{filterModel:r}=n,{colId:i}=r,o=this.advFilterExpSvc.getColumnAutocompleteEntries().find(({key:c})=>c===i),a=this.advFilterExpSvc.getColumnDetails(r.colId);if(!o||!a.column){n.valid=!1,r.colId=void 0,e(r),t(r);return}const l=this.advFilterExpSvc.getDataTypeExpressionOperator(a.baseCellDataType).operators[r.type];if(!l){n.valid=!1,e(r),t(r);return}if(l.numOperands>0&&!Ut(r.filter)){n.valid=!1;return}})}},O9t=class extends dt{constructor(e){super(),this.enabled=e}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.popupSvc=e.popupSvc,this.advFilterExpSvc=e.advFilterExpSvc,this.environment=e.environment}postConstruct(){this.hasAdvancedFilterParent=!!this.gos.get("advancedFilterParent"),this.ctrlsSvc.whenReady(this,()=>this.setAdvancedFilterComp()),this.addManagedEventListeners({advancedFilterEnabledChanged:({enabled:e})=>this.onEnabledChanged(e)}),this.addManagedPropertyListener("advancedFilterParent",()=>this.updateComps()),this.addDestroyFunc(()=>{this.destroyAdvancedFilterComp(),this.destroyBean(this.eBuilderComp),this.eBuilderDialog&&this.eBuilderDialog.isAlive()&&this.destroyBean(this.eBuilderDialog)})}setupHeaderComp(e){this.eHeaderComp&&(this.eHeaderComp?.getGui().remove(),this.destroyBean(this.eHeaderComp)),this.eHeaderComp=this.createManagedBean(new r9t(this.enabled&&!this.hasAdvancedFilterParent)),e.insertAdjacentElement("beforebegin",this.eHeaderComp.getGui())}focusHeaderComp(){return this.eHeaderComp?(this.eHeaderComp.getFocusableElement().focus(),!0):!1}refreshComp(){this.eFilterComp?.refresh(),this.eHeaderComp?.refresh()}refreshBuilderComp(){this.eBuilderComp?.refresh()}getHeaderHeight(){return this.eHeaderComp?.getHeight()??0}setInputDisabled(e){this.eFilterComp?.setInputDisabled(e),this.eHeaderComp?.setInputDisabled(e)}toggleFilterBuilder(e){const{source:t,force:n,eventSource:r}=e;if(n&&this.eBuilderDialog||n===!1&&!this.eBuilderDialog)return;if(this.eBuilderDialog){this.builderDestroySource=t,this.destroyBean(this.eBuilderDialog);return}this.setInputDisabled(!0);const{width:i,height:o,minWidth:a}=this.getBuilderDialogSize();this.eBuilderComp=this.createBean(new A9t),this.eBuilderDialog=this.createBean(new y6({title:this.advFilterExpSvc.translate("advancedFilterBuilderTitle"),component:this.eBuilderComp,width:i,height:o,resizable:!0,movable:!0,maximizable:!0,centered:!0,closable:!0,minWidth:a,afterGuiAttached:()=>this.eBuilderComp?.afterGuiAttached(),postProcessPopupParams:{type:"advancedFilterBuilder",eventSource:r}})),this.dispatchFilterBuilderVisibleChangedEvent(t,!0),this.eBuilderDialog.addEventListener("destroyed",()=>{this.destroyBean(this.eBuilderComp),this.eBuilderComp=void 0,this.eBuilderDialog=void 0,this.setInputDisabled(!1),this.dispatchLocalEvent({type:"advancedFilterBuilderClosed"}),this.dispatchFilterBuilderVisibleChangedEvent(this.builderDestroySource??"ui",!1),this.builderDestroySource=void 0})}dispatchFilterBuilderVisibleChangedEvent(e,t){this.eventSvc.dispatchEvent({type:"advancedFilterBuilderVisibleChanged",source:e,visible:t})}getBuilderDialogSize(){const e=this.gos.get("advancedFilterBuilderParams")?.minWidth??500,t=this.popupSvc.getPopupParent(),n=Math.round(fz(t))-2,r=Math.round(fK(t)*.75)-2,i=Math.min(Math.max(600,e),n),o=Math.min(600,r);return{width:i,height:o,minWidth:e}}onEnabledChanged(e){this.enabled=e,this.updateComps()}updateComps(){this.setAdvancedFilterComp(),this.setHeaderCompEnabled(),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}setAdvancedFilterComp(){if(this.destroyAdvancedFilterComp(),!this.enabled)return;const e=this.gos.get("advancedFilterParent");if(this.hasAdvancedFilterParent=!!e,e){const t=this.createBean(new wrt),n=t.getGui();this.environment.applyThemeClasses(n),n.classList.add(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr"),e.appendChild(n),this.eFilterComp=t}}setHeaderCompEnabled(){this.eHeaderComp?.setEnabled(this.enabled&&!this.hasAdvancedFilterParent)}destroyAdvancedFilterComp(){this.eFilterComp&&(Rs(this.eFilterComp.getGui()),this.destroyBean(this.eFilterComp))}},z9t=class{constructor(e){this.params=e,this.operators=[],this.operatorStartPositions=[],this.operatorEndPositions=[],this.activeOperator=0,this.validationError=null}parseExpression(e){this.operators.push(""),this.operatorStartPositions.push(e),this.operatorEndPositions.push(void 0);const{expression:t}=this.params;for(;e<t.length;){const n=t[e];if(n===" "){if(this.parseOperator(e-1))return this.activeOperator++,e-1;this.operators[this.activeOperator]+=n}else this.operators[this.activeOperator]+=n;e++}return this.parseOperator(e-1),e}isValid(){return!this.validationError&&(!this.operators.length||!!this.parsedOperator)}getValidationError(){return this.validationError}getFunction(){return this.parsedOperator==="OR"?"||":"&&"}getModel(){return this.parsedOperator==="OR"?"OR":"AND"}getAutocompleteListParams(e,t){let n;if(t==null)n="";else{const i=this.operators[t],o=this.operatorEndPositions[t];n=whe(i,e,o==null?this.params.expression.length:o+1)}let r=this.params.advFilterExpSvc.getJoinOperatorAutocompleteEntries();return(t||t==null&&this.activeOperator)&&(r=r.filter(({key:i})=>i===this.parsedOperator)),this.params.advFilterExpSvc.generateAutocompleteListParams(r,"join",n)}updateExpression(e,t,n){let{expression:r}=this.params;const i=t.displayValue??t.key;if(n===0)for(let s=this.operatorEndPositions.length-1;s>0;s--){const l=this.operatorEndPositions[s];l!=null&&(r=Ox(r,this.operatorStartPositions[s],l,i).updatedValue)}const o=this.operatorStartPositions.length>n?this.operatorStartPositions[n]:e,a=(this.operatorEndPositions.length>n?this.operatorEndPositions[n]:void 0)??She(r,e,!0).endPosition;return Ox(r,o,a,i,!0)}getNumOperators(){return this.operators.length}getLastOperatorEndPosition(){return this.operatorEndPositions[this.operatorEndPositions.length-1]}parseOperator(e){const t=this.operators.length>this.activeOperator?this.operators[this.activeOperator]:"",n=this.params.advFilterExpSvc.getExpressionJoinOperators(),r=_K(t,n,i=>i);if(r){this.operatorEndPositions[this.activeOperator]=e;const i=n[r];if(this.activeOperator){if(r!==this.parsedOperator)return this.validationError||(this.validationError={message:this.params.advFilterExpSvc.translate("advancedFilterValidationJoinOperatorMismatch"),startPosition:e-t.length+1,endPosition:e}),!1}else this.parsedOperator=r;return t!==i&&(Bye(this.params,t,i,e),this.operators[this.activeOperator]=i),!0}else return r===null?!1:(this.validationError||(this.validationError={message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidJoinOperator"),startPosition:e-t.length+1,endPosition:e}),!0)}},T9t=class Ert{constructor(t,n){this.params=t,this.startPosition=n,this.expectingExpression=!0,this.expectingOperator=!1,this.expressionParsers=[],this.operatorParser=new z9t(this.params),this.missingEndBracket=!1,this.extraEndBracket=!1}parseExpression(){let t=this.startPosition;const{expression:n}=this.params;for(;t<n.length;){const r=n[t];if(r==="("&&!this.expectingOperator){const i=new Ert(this.params,t+1);t=i.parseExpression(),this.expressionParsers.push(i),this.expectingExpression=!1,this.expectingOperator=!0}else{if(r===")")return this.endPosition=t-1,this.startPosition===0&&(this.extraEndBracket=!0),t;if(r!==" ")if(this.expectingExpression){const i=new B$t(this.params,t);t=i.parseExpression(),this.expressionParsers.push(i),this.expectingExpression=!1,this.expectingOperator=!0}else this.expectingOperator&&(t=this.operatorParser.parseExpression(t),this.expectingOperator=!1,this.expectingExpression=!0)}t++}return this.startPosition>0&&(this.missingEndBracket=!0),t}isValid(){return!this.missingEndBracket&&!this.extraEndBracket&&this.expressionParsers.length===this.operatorParser.getNumOperators()+1&&this.operatorParser.isValid()&&this.expressionParsers.every(t=>t.isValid())}getValidationError(){const t=this.operatorParser.getValidationError();for(let r=0;r<this.expressionParsers.length;r++){const i=this.expressionParsers[r].getValidationError();if(i)return t&&t.startPosition<i.startPosition?t:i}if(t)return t;if(this.extraEndBracket)return{message:this.params.advFilterExpSvc.translate("advancedFilterValidationExtraEndBracket"),startPosition:this.endPosition+1,endPosition:this.endPosition+1};let n;return this.expressionParsers.length===this.operatorParser.getNumOperators()?n="advancedFilterValidationMissingCondition":this.missingEndBracket&&(n="advancedFilterValidationMissingEndBracket"),n?{message:this.params.advFilterExpSvc.translate(n),startPosition:this.params.expression.length,endPosition:this.params.expression.length}:null}getFunctionString(t){const n=this.expressionParsers.length>1,r=this.expressionParsers.map(i=>i.getFunctionString(t)).join(` ${this.operatorParser.getFunction()} `);return n?`(${r})`:r}getFunctionParsed(t){const n=this.operatorParser.getFunction(),r=this.expressionParsers.map(o=>o.getFunctionParsed(t)),i=n==="&&"?"every":"some";return(o,a,s)=>r[i](l=>l(o,a,s))}getAutocompleteListParams(t){if(this.endPosition!=null&&t>this.endPosition+1)return;if(!this.expressionParsers.length)return this.getColumnAutocompleteListParams();const n=this.getExpressionParserIndex(t);if(n==null)return this.params.expression[t]==="("?{enabled:!1}:this.getColumnAutocompleteListParams();const i=this.expressionParsers[n].getAutocompleteListParams(t);if(!i){if(n<this.expressionParsers.length-1)return this.operatorParser.getAutocompleteListParams(t,n);if(this.expressionParsers.length===this.operatorParser.getNumOperators()){const o=this.operatorParser.getLastOperatorEndPosition();return o==null||t<=o+1?this.operatorParser.getAutocompleteListParams(t,this.operatorParser.getNumOperators()-1):this.getColumnAutocompleteListParams()}return this.params.expression[t-1]===")"?{enabled:!1}:this.operatorParser.getAutocompleteListParams(t)}return i}updateExpression(t,n,r){const i=this.params.expression,o=this.getExpressionParserIndex(t);if(o==null){const l=r==="column"?this.params.advFilterExpSvc.getColumnValue(n):n.displayValue??n.key;return Ox(i,this.startPosition,this.startPosition,l,!0)}const s=this.expressionParsers[o].updateExpression(t,n,r);return s??(r==="column"?Ox(i,t,i.length-1,this.params.advFilterExpSvc.getColumnValue(n),!0):this.endPosition!=null&&t>this.endPosition+1?null:this.operatorParser.updateExpression(t,n,o))}getModel(){return this.expressionParsers.length>1?{filterType:"join",type:this.operatorParser.getModel(),conditions:this.expressionParsers.map(t=>t.getModel())}:this.expressionParsers[0].getModel()}getColumnAutocompleteListParams(){return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getColumnAutocompleteEntries(),"column","")}getExpressionParserIndex(t){let n;for(let r=0;r<this.expressionParsers.length&&!(this.expressionParsers[r].startPosition>t);r++)n=r;return n}},E9t=class{constructor(e){this.params=e,this.valid=!1}parseExpression(){this.joinExpressionParser=new T9t(this.params,0);const e=this.joinExpressionParser.parseExpression();return this.valid=e>=this.params.expression.length-1&&this.joinExpressionParser.isValid(),this.params.expression}isValid(){return this.valid}getValidationMessage(){const e=this.joinExpressionParser.getValidationError();if(!e)return null;const{message:t,startPosition:n,endPosition:r}=e;return n<this.params.expression.length?this.params.advFilterExpSvc.translate("advancedFilterValidationMessage",[t,this.params.expression.slice(n,r+1).trim()]):this.params.advFilterExpSvc.translate("advancedFilterValidationMessageAtEnd",[t])}getFunctionString(){const e=this.createFunctionParams();return{functionString:`return ${this.joinExpressionParser.getFunctionString(e)};`,params:e}}getFunctionParsed(){const e=this.createFunctionParams();return{expressionFunction:this.joinExpressionParser.getFunctionParsed(e),params:e}}getAutocompleteListParams(e){return this.joinExpressionParser.getAutocompleteListParams(e)??{enabled:!1}}updateExpression(e,t,n){return this.joinExpressionParser.updateExpression(e,t,n)}getModel(){return this.isValid()?this.joinExpressionParser.getModel():null}createFunctionParams(){return{operands:[],operators:[],evaluatorParams:[]}}},R9t=class extends dt{constructor(){super(...arguments),this.beanName="advancedFilter",this.appliedExpression=null,this.expression=null,this.isValid=!0}wireBeans(e){this.valueSvc=e.valueSvc,this.colModel=e.colModel,this.dataTypeSvc=e.dataTypeSvc,this.advFilterExpSvc=e.advFilterExpSvc,this.filterValueSvc=e.filterValueSvc}postConstruct(){this.setEnabled(this.gos.get("enableAdvancedFilter"),!0),this.ctrl=this.createManagedBean(new O9t(this.enabled)),this.expressionProxy={getValue:(e,t)=>{const n=this.colModel.getColDefCol(e);return n?this.filterValueSvc.getValue(n,t):void 0}},this.addManagedPropertyListener("enableAdvancedFilter",e=>this.setEnabled(!!e.currentValue)),this.addManagedEventListeners({newColumnsLoaded:e=>this.onNewColumnsLoaded(e)}),this.addManagedPropertyListener("includeHiddenColumnsInAdvancedFilter",()=>this.updateValidity())}isEnabled(){return this.enabled}isFilterPresent(){return!!this.expressionFunction}doesFilterPass(e){return this.expressionFunction(this.expressionProxy,e,this.expressionParams)}getModel(){const e=this.createExpressionParser(this.appliedExpression);return e?.parseExpression(),e?.getModel()??null}setModel(e){const t=(r,i)=>{if(r.filterType==="join"){const o=this.advFilterExpSvc.parseJoinOperator(r),a=r.conditions.map(s=>t(s)).filter(s=>Ut(s)).join(` ${o} `);return i||r.conditions.length<=1?a:`(${a})`}else return this.advFilterExpSvc.parseColumnFilterModel(r)},n=e?t(e,!0):null;this.setExpressionDisplayValue(n),this.applyExpression(),this.ctrl.refreshComp(),this.ctrl.refreshBuilderComp()}getExpressionDisplayValue(){return this.expression}setExpressionDisplayValue(e){this.expression=e}isCurrentExpressionApplied(){return this.appliedExpression===this.expression}createExpressionParser(e){return e?new E9t({expression:e,colModel:this.colModel,dataTypeSvc:this.dataTypeSvc,valueSvc:this.valueSvc,advFilterExpSvc:this.advFilterExpSvc}):null}getDefaultExpression(e){const t=this.advFilterExpSvc.getColumnValue(e)+" ";return{updatedValue:t,updatedPosition:t.length}}isHeaderActive(){return!this.gos.get("advancedFilterParent")}getCtrl(){return this.ctrl}setEnabled(e,t){const n=this.enabled,r=oa(this.gos)||Au(this.gos);e&&!r&&ut(123),this.enabled=e&&r,!t&&this.enabled!==n&&this.eventSvc.dispatchEvent({type:"advancedFilterEnabledChanged",enabled:this.enabled})}applyExpression(){const e=this.createExpressionParser(this.expression);e?.parseExpression(),this.applyExpressionFromParser(e)}applyExpressionFromParser(e){if(this.isValid=!e||e.isValid(),!e||!this.isValid){this.expressionFunction=null,this.expressionParams=null,this.appliedExpression=null;return}const{expressionFunction:t,params:n}=this.getFunction(e);this.expressionFunction=t,this.expressionParams=n,this.appliedExpression=this.expression}getFunction(e){if(this.gos.get("suppressAdvancedFilterEval"))return e.getFunctionParsed();{const{functionString:t,params:n}=e.getFunctionString();return{expressionFunction:new Function("expressionProxy","node","params",t),params:n}}}updateValidity(){this.advFilterExpSvc.resetColumnCaches();const e=this.createExpressionParser(this.expression);e?.parseExpression();const n=(!e||e.isValid())!==this.isValid;return this.applyExpressionFromParser(e),this.ctrl.refreshComp(),this.ctrl.refreshBuilderComp(),n}onNewColumnsLoaded(e){if(e.source!=="gridInitializing"||!this.dataTypeSvc?.isPendingInference)return;this.ctrl.setInputDisabled(!0);const[t]=this.addManagedEventListeners({dataTypesInferred:()=>{t?.(),this.ctrl.setInputDisabled(!1)}})}},I9t={moduleName:"AdvancedFilter",version:wi,beans:[R9t,H$t],icons:{advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus",advancedFilterBuilderSelectOpen:"small-down",richSelectRemove:"cancel"},apiFunctions:{getAdvancedFilterModel:I$t,setAdvancedFilterModel:P$t,showAdvancedFilterBuilder:D$t,hideAdvancedFilterBuilder:k$t},dependsOn:[es,DK,v3,dM,Wye],css:[R$t]};function P9t(e){return e.sideBar?.comp.isDisplayed()??!1}function D9t(e,t){e.sideBar?.comp.setDisplayed(t)}function k9t(e,t){e.sideBar?.comp.setSideBarPosition(t)}function L9t(e,t){e.sideBar?.comp.openToolPanel(t,"api")}function _9t(e){e.sideBar?.comp.close("api")}function N9t(e){return e.sideBar?.comp.openedItem()??null}function F9t(e){e.sideBar?.comp.refresh()}function W9t(e){return e.sideBar?.comp.isToolPanelShowing()??!1}function q9t(e,t){const n=e.sideBar?.comp.getToolPanelInstance(t);return yz(n)}function B9t(e){return e.sideBar?.comp.getDef()}function zhe(e,t){if(!t)return null;const n=lm(e),r=n.indexOf(t);if(r===-1)return null;let i=-1;for(let o=r-1;o>=0;o--)if(n[o].classList.contains(FO.TAB_GUARD_TOP)){i=o;break}return i<=0?null:n[i-1]}function Rrt(e,t){if(!t)return!1;const n=e.querySelectorAll(`.${gtt}`);if(!n.length)return!1;for(let r=0;r<n.length;r++)if(n[r].contains(t))return!0;return!1}var j9t='.ag-tool-panel-wrapper{display:flex;overflow:hidden auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-side-bar-panel-width)}.ag-select-agg-func-item{align-items:center;display:flex;flex:1 1 auto;flex-flow:row nowrap;height:100%;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;>*{flex:none}}.ag-tool-panel-horizontal-resize{cursor:ew-resize;height:100%;position:absolute;top:0;width:5px;z-index:1}.ag-side-bar{background-color:var(--ag-side-bar-background-color);display:flex;flex-direction:row-reverse;position:relative}:where(.ag-ltr) :where(.ag-side-bar-left) .ag-tool-panel-horizontal-resize{right:-3px}:where(.ag-rtl) :where(.ag-side-bar-left) .ag-tool-panel-horizontal-resize{left:-3px}:where(.ag-ltr) :where(.ag-side-bar-right) .ag-tool-panel-horizontal-resize{left:-3px}:where(.ag-rtl) :where(.ag-side-bar-right) .ag-tool-panel-horizontal-resize{right:-3px}.ag-side-bar-left{flex-direction:row;order:-1}.ag-side-buttons{background-color:var(--ag-side-button-bar-background-color);padding-top:var(--ag-side-button-bar-top-padding);position:relative}.ag-side-button{background-color:var(--ag-side-button-background-color);border-bottom:var(--ag-side-button-border);border-top:var(--ag-side-button-border);color:var(--ag-side-button-text-color);margin-top:-1px;position:relative;&:before{background-color:transparent;bottom:0;content:"";display:block;position:absolute;top:0;transition:background-color var(--ag-side-button-selected-underline-transition-duration);width:var(--ag-side-button-selected-underline-width)}&:hover{background-color:var(--ag-side-button-hover-background-color);color:var(--ag-side-button-hover-text-color)}&.ag-selected{background-color:var(--ag-side-button-selected-background-color);border-bottom:var(--ag-side-button-selected-border);border-top:var(--ag-side-button-selected-border);color:var(--ag-side-button-selected-text-color);&:before{background-color:var(--ag-side-button-selected-underline-color)}}}:where(.ag-ltr) .ag-side-button{&:before{left:0}}:where(.ag-rtl) .ag-side-button{&:before{right:0}}.ag-side-button-button{align-items:center;display:flex;flex-direction:column;gap:var(--ag-spacing);position:relative;white-space:nowrap;width:100%;&:focus{box-shadow:none}}:where(.ag-ltr) .ag-side-button-button{padding:var(--ag-side-button-vertical-padding) var(--ag-side-button-right-padding) var(--ag-side-button-vertical-padding) var(--ag-side-button-left-padding)}:where(.ag-rtl) .ag-side-button-button{padding:var(--ag-side-button-vertical-padding) var(--ag-side-button-left-padding) var(--ag-side-button-vertical-padding) var(--ag-side-button-right-padding)}.ag-side-button-button:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-side-button-label{writing-mode:vertical-lr}@media (resolution <= 1.5x){.ag-side-button-label{font-family:"Segoe UI",var(--ag-font-family)}:where(.ag-ltr) .ag-side-button-label{transform:rotate(.05deg)}:where(.ag-rtl) .ag-side-button-label{transform:rotate(-.05deg)}}:where(.ag-ltr) .ag-side-bar-left,:where(.ag-rtl) .ag-side-bar-right{border-right:var(--ag-side-panel-border);:where(.ag-tool-panel-wrapper){border-left:var(--ag-side-panel-border)}}:where(.ag-ltr) .ag-side-bar-right,:where(.ag-rtl) .ag-side-bar-left{border-left:var(--ag-side-panel-border);:where(.ag-tool-panel-wrapper){border-right:var(--ag-side-panel-border)}}',H9t={tag:"div",cls:"ag-side-button",role:"presentation",children:[{tag:"button",ref:"eToggleButton",cls:"ag-button ag-side-button-button",role:"tab",attrs:{type:"button",tabindex:"-1","aria-expanded":"false"},children:[{tag:"div",ref:"eIconWrapper",cls:"ag-side-button-icon-wrapper",attrs:{"aria-hidden":"true"}},{tag:"span",ref:"eLabel",cls:"ag-side-button-label"}]}]},V9t=class extends Gt{constructor(e){super(),this.toolPanelDef=e,this.eToggleButton=at,this.eIconWrapper=at,this.eLabel=at}getToolPanelId(){return this.toolPanelDef.id}postConstruct(){this.setTemplate(H9t,[]),this.setLabel(),this.setIcon(),this.addManagedElementListeners(this.eToggleButton,{click:this.onButtonPressed.bind(this)}),this.eToggleButton.setAttribute("id",`ag-${this.getCompId()}-button`)}setLabel(){const e=this.toolPanelDef,t=this.getLocaleTextFunc()(e.labelKey,e.labelDefault);this.eLabel.textContent=t}setIcon(){this.eIconWrapper.insertAdjacentElement("afterbegin",er(this.toolPanelDef.iconKey,this.beans))}onButtonPressed(){this.dispatchLocalEvent({type:"toggleButtonClicked"})}setSelected(e){this.toggleCss("ag-selected",e),d1(this.eToggleButton,e)}},G9t={tag:"div",cls:"ag-side-buttons",role:"tablist"},$9t=class extends Gt{constructor(){super(G9t),this.buttonComps=[]}postConstruct(){this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){if(!(e.key!==Qe.TAB||!e.shiftKey)){if(Tb(this.beans,!0)){e.preventDefault();return}Cl(e)}}setActiveButton(e){this.buttonComps.forEach(t=>{t.setSelected(e===t.getToolPanelId())})}addButtonComp(e){const t=this.createBean(new V9t(e));return this.buttonComps.push(t),this.appendChild(t),t.addEventListener("toggleButtonClicked",()=>{this.dispatchLocalEvent({type:"sideBarButtonClicked",toolPanelId:e.id})}),t}clearButtons(){this.buttonComps=this.destroyBeans(this.buttonComps),Xi(this.getGui()),super.destroy()}destroy(){this.clearButtons(),super.destroy()}},U9t={selector:"AG-SIDE-BAR-BUTTONS",component:$9t},Irt={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columnsToolPanel",toolPanel:"agColumnsToolPanel"},Prt={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filtersToolPanel",toolPanel:"agFiltersToolPanel"},N$={columns:Irt,filters:Prt};function The(e){if(!e)return;if(e===!0)return{toolPanels:[Irt,Prt],defaultToolPanel:"columns"};if(typeof e=="string")return The([e]);if(Array.isArray(e)){const n=[];return e.forEach(r=>{const i=N$[r];if(!i){ut(215,{key:r,defaultByKey:N$});return}n.push(i)}),n.length===0?void 0:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:X9t(e.toolPanels),defaultToolPanel:e.defaultToolPanel,hiddenByDefault:e.hiddenByDefault,position:e.position}}function X9t(e){const t=[];return e&&e.forEach(n=>{let r=null;if(typeof n=="string"){const i=N$[n];if(!i){ut(215,{key:n,defaultByKey:N$});return}r=i}else r=n;t.push(r)}),t}var Y9t=class extends Gt{constructor(){super({tag:"div",cls:"ag-tool-panel-horizontal-resize"}),this.minWidth=100,this.maxWidth=null}postConstruct(){const e=this.beans.horizontalResizeSvc.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(e),this.inverted=this.gos.get("enableRtl")}dispatchResizeEvent(e,t,n){this.eventSvc.dispatchEvent({type:"toolPanelSizeChanged",width:n,started:e,ended:t})}onResizeStart(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)}onResizeEnd(e){return this.onResizing(e,!0)}onResizing(e,t=!1){const n=this.inverted?-1:1;let r=Math.max(this.minWidth,Math.floor(this.startingWidth-e*n));this.maxWidth!=null&&(r=Math.min(this.maxWidth,r)),this.elementToResize.style.width=`${r}px`,this.dispatchResizeEvent(!1,t,r)}};function K9t(e,t,n){return e.getCompDetails(t,Q9t,void 0,n,!0)}var Q9t={name:"toolPanel",optionalMethods:["refresh","getState"]},Z9t={tag:"div",cls:"ag-tool-panel-wrapper",role:"tabpanel"},J9t=class extends Gt{constructor(){super(Z9t)}postConstruct(){const e=this.getGui(),t=this.resizeBar=this.createManagedBean(new Y9t);e.setAttribute("id",`ag-${this.getCompId()}`),t.elementToResize=e,this.appendChild(t)}getToolPanelId(){return this.toolPanelId}setToolPanelDef(e,t){const{id:n,minWidth:r,maxWidth:i,width:o}=e;this.toolPanelId=n,this.width=o;const a=K9t(this.beans.userCompFactory,e,t);if(a==null)return!1;const s=a.newAgStackInstance();this.params=a.params,s.then(this.setToolPanelComponent.bind(this));const l=this.resizeBar;return r!=null&&(l.minWidth=r),i!=null&&(l.maxWidth=i),!0}setToolPanelComponent(e){this.toolPanelCompInstance=e,this.appendChild(e.getGui()),this.addDestroyFunc(()=>{this.destroyBean(e)});const t=this.width;t&&(this.getGui().style.width=`${t}px`)}getToolPanelInstance(){return this.toolPanelCompInstance}setResizerSizerSide(e){const t=this.gos.get("enableRtl"),n=e==="left",r=t?n:!n;this.resizeBar.inverted=r}refresh(){this.toolPanelCompInstance?.refresh(this.params)}},eUt={tag:"div",cls:"ag-side-bar ag-unselectable",children:[{tag:"ag-side-bar-buttons",ref:"sideBarButtons"}]},tUt=class extends Gt{constructor(){super(eUt,[U9t]),this.sideBarButtons=at,this.toolPanelWrappers=[],this.registerCSS(j9t)}postConstruct(){this.sideBarButtons.addEventListener("sideBarButtonClicked",this.onToolPanelButtonClicked.bind(this));const{beans:e,gos:t}=this,{sideBar:n}=t.get("initialState")??{};this.setSideBarDef({sideBarDef:The(t.get("sideBar")),sideBarState:n}),this.addManagedPropertyListener("sideBar",this.onSideBarUpdated.bind(this)),e.sideBar.comp=this;const r=this.getFocusableElement();this.createManagedBean(new Mw(r,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),ntt(e,this,r)}onTabKeyDown(e){if(e.defaultPrevented)return;const{beans:t,sideBarButtons:n}=this,r=this.getGui(),i=n.getGui(),o=Gi(t),a=r.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),s=e.target,l=e.shiftKey;if(!a)return Tb(t,l)?(e.preventDefault(),!0):Tb(t,l,!0);if(i.contains(o)){zu(a,l)&&e.preventDefault();return}if(!l)return;let c=null;a.contains(o)?c=Md(t,a,void 0,!0):Rrt(a,s)&&l&&(c=zhe(a,s)),c||(c=i.querySelector(".ag-selected button")),c&&c!==e.target&&(e.preventDefault(),c.focus())}handleKeyDown(e){const t=Gi(this.beans),n=this.sideBarButtons;if(!n.getGui().contains(t))return;const r=n.getGui(),i=Array.prototype.slice.call(r.querySelectorAll(".ag-side-button")),o=i.findIndex(l=>l.contains(t));let a=null;switch(e.key){case Qe.LEFT:case Qe.UP:a=Math.max(0,o-1);break;case Qe.RIGHT:case Qe.DOWN:a=Math.min(o+1,i.length-1);break}if(a===null)return;const s=i[a].querySelector("button");s&&(s.focus(),e.preventDefault())}onToolPanelButtonClicked(e){const t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(t,"sideBarButtonClicked")}clearDownUi(){this.sideBarButtons.clearButtons(),this.destroyToolPanelWrappers()}setSideBarDef({sideBarDef:e,sideBarState:t,existingToolPanelWrappers:n}){if(this.setDisplayed(!1),this.sideBar=e,e&&e.toolPanels){const r=e.toolPanels;if(this.createToolPanelsAndSideButtons(r,t,n),!this.toolPanelWrappers.length)return;const i=t?t.visible:!e.hiddenByDefault;if(this.setDisplayed(i),this.setSideBarPosition(t?t.position:e.position),i)if(t){const{openToolPanel:o}=t;o&&this.openToolPanel(o,"sideBarInitializing")}else this.openToolPanel(e.defaultToolPanel,"sideBarInitializing")}}getDef(){return this.sideBar}setSideBarPosition(e){e||(e="right"),this.position=e;const t=e==="left",n=t?"right":"left";return this.toggleCss("ag-side-bar-left",t),this.toggleCss("ag-side-bar-right",!t),this.toolPanelWrappers.forEach(r=>{r.setResizerSizerSide(n)}),this.dispatchSideBarUpdated(),this}setDisplayed(e,t){super.setDisplayed(e,t),this.dispatchSideBarUpdated()}getState(){const e={};return this.toolPanelWrappers.forEach(t=>{e[t.getToolPanelId()]=t.getToolPanelInstance()?.getState?.()}),{visible:this.isDisplayed(),position:this.position,openToolPanel:this.openedItem(),toolPanels:e}}createToolPanelsAndSideButtons(e,t,n){for(const r of e)this.createToolPanelAndSideButton(r,t?.toolPanels?.[r.id],n?.[r.id])}validateDef(e){return e.id==null?(ut(212),!1):e.toolPanel==="agFiltersToolPanel"&&this.beans.filterManager?.isAdvFilterEnabled()?(ut(213),!1):!0}createToolPanelAndSideButton(e,t,n){if(!this.validateDef(e))return;let r;if(n)r=n;else if(r=this.createBean(new J9t),!r.setToolPanelDef(e,Vn(this.gos,{initialState:t,onStateUpdated:()=>this.dispatchSideBarUpdated()})))return;r.setDisplayed(!1);const i=r.getGui();this.appendChild(i),this.toolPanelWrappers.push(r);const o=this.sideBarButtons.addButtonComp(e);j2e(o.eToggleButton,i)}refresh(){this.toolPanelWrappers.forEach(e=>e.refresh())}openToolPanel(e,t="api"){const n=this.openedItem();if(n===e)return;this.toolPanelWrappers.forEach(o=>{const a=e===o.getToolPanelId();o.setDisplayed(a)});const r=this.openedItem();n!==r&&(this.sideBarButtons.setActiveButton(e),this.raiseToolPanelVisibleEvent(e,n??void 0,t))}getToolPanelInstance(e){const t=this.toolPanelWrappers.filter(n=>n.getToolPanelId()===e)[0];if(!t){ut(214,{key:e});return}return t.getToolPanelInstance()}raiseToolPanelVisibleEvent(e,t,n){const r=!!e&&!!t,i=this.eventSvc;t&&i.dispatchEvent({type:"toolPanelVisibleChanged",source:n,key:t,visible:!1,switchingToolPanel:r}),e&&i.dispatchEvent({type:"toolPanelVisibleChanged",source:n,key:e,visible:!0,switchingToolPanel:r})}close(e="api"){this.openToolPanel(void 0,e)}isToolPanelShowing(){return!!this.openedItem()}openedItem(){let e=null;return this.toolPanelWrappers.forEach(t=>{t.isDisplayed()&&(e=t.getToolPanelId())}),e}onSideBarUpdated(){const e=The(this.gos.get("sideBar")),t={};e&&this.sideBar&&e.toolPanels?.forEach(n=>{const{id:r}=n;if(!r)return;const i=this.sideBar.toolPanels?.find(l=>l.id===r);if(!i||n.toolPanel!==i.toolPanel)return;const o=this.toolPanelWrappers.find(l=>l.getToolPanelId()===r);if(!o)return;const a=Vn(this.gos,{...n.toolPanelParams??{},onStateUpdated:()=>this.dispatchSideBarUpdated()});o.getToolPanelInstance()?.refresh(a)===!0&&(this.toolPanelWrappers=this.toolPanelWrappers.filter(l=>l!==o),Rs(o.getGui()),t[r]=o)}),this.clearDownUi(),this.setSideBarDef({sideBarDef:e,existingToolPanelWrappers:t})}dispatchSideBarUpdated(){this.eventSvc.dispatchEvent({type:"sideBarUpdated"})}destroyToolPanelWrappers(){this.toolPanelWrappers.forEach(e=>{Rs(e.getGui()),this.destroyBean(e)}),this.toolPanelWrappers.length=0}destroy(){this.destroyToolPanelWrappers(),super.destroy()}},nUt={selector:"AG-SIDE-BAR",component:tUt},rUt=class extends dt{constructor(){super(...arguments),this.beanName="sideBar"}getSelector(){return nUt}},Vye={moduleName:"SideBar",version:wi,beans:[rUt],apiFunctions:{isSideBarVisible:P9t,setSideBarVisible:D9t,setSideBarPosition:k9t,openToolPanel:L9t,closeToolPanel:_9t,getOpenedToolPanel:N9t,refreshToolPanel:F9t,isToolPanelShowing:W9t,getToolPanelInstance:q9t,getSideBar:B9t},dependsOn:[es,Utt]},iUt={tag:"div"},Drt=class extends Gt{constructor(){super(iUt)}init(e){this.params=e,this.cssClassPrefix=this.params.cssClassPrefix??"ag-menu-option",this.addAriaAttributes(),this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()}configureDefaults(){return!0}addAriaAttributes(){const{checked:e,subMenu:t}=this.params,n=this.getGui();e&&GJe(n,e),t&&d1(n,!1)}addIcon(){if(this.params.isCompact)return;const e=Nr({tag:"span",ref:"eIcon",cls:`${this.getClassName("part")} ${this.getClassName("icon")}`,role:"presentation"}),{checked:t,icon:n}=this.params;t?e.appendChild(er("check",this.beans)):n&&(gK(n)?e.appendChild(n):typeof n=="string"?e.innerHTML=n:ut(227)),this.getGui().appendChild(e)}addName(){const e=Nr({tag:"span",ref:"eName",cls:`${this.getClassName("part")} ${this.getClassName("text")}`,children:this.params.name||""});this.getGui().appendChild(e)}addShortcut(){if(this.params.isCompact)return;const e=Nr({tag:"span",ref:"eShortcut",cls:`${this.getClassName("part")} ${this.getClassName("shortcut")}`,children:this.params.shortcut||""});this.getGui().appendChild(e)}addSubMenu(){const e=Nr({tag:"span",ref:"ePopupPointer",cls:`${this.getClassName("part")} ${this.getClassName("popup-pointer")}`}),t=this.getGui();if(this.params.subMenu){const n=this.gos.get("enableRtl")?"subMenuOpenRtl":"subMenuOpen";e.appendChild(er(n,this.beans))}t.appendChild(e)}getClassName(e){return`${this.cssClassPrefix}-${e}`}},oUt='.ag-menu-list{cursor:default;display:table;padding:var(--ag-spacing) 0;width:100%}.ag-menu-option,.ag-menu-separator{display:table-row}.ag-menu-option-part,.ag-menu-separator-part{display:table-cell;vertical-align:middle}.ag-menu-option{cursor:pointer;font-weight:500}:where(.ag-ltr) :where(.ag-menu-option-popup-pointer) .ag-icon{text-align:right}:where(.ag-rtl) :where(.ag-menu-option-popup-pointer) .ag-icon{text-align:left}.ag-menu-option-text{white-space:nowrap}.ag-menu-option-custom{display:contents}.ag-compact-menu-option{display:flex;flex-wrap:nowrap;width:100%}.ag-compact-menu-option-text{flex:1 1 auto;white-space:nowrap}.ag-menu-separator{height:calc(var(--ag-spacing)*2 + 1px)}.ag-menu-separator-part:after{border-top:1px solid var(--ag-menu-separator-color);content:"";display:block}.ag-compact-menu-option-active,.ag-menu-option-active{background-color:var(--ag-row-hover-color)}.ag-compact-menu-option-part,.ag-menu-option-part{line-height:var(--ag-icon-size);padding:calc(var(--ag-spacing) + 2px) 0}.ag-compact-menu-option-disabled,.ag-menu-option-disabled{cursor:not-allowed;opacity:.5}.ag-compact-menu-option-icon,.ag-menu-option-icon{width:var(--ag-icon-size)}:where(.ag-ltr) .ag-compact-menu-option-icon,:where(.ag-ltr) .ag-menu-option-icon{padding-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-compact-menu-option-icon,:where(.ag-rtl) .ag-menu-option-icon{padding-right:calc(var(--ag-spacing)*2)}.ag-compact-menu-option-text,.ag-menu-option-text{padding-left:calc(var(--ag-spacing)*2);padding-right:calc(var(--ag-spacing)*2)}:where(.ag-ltr) .ag-compact-menu-option-shortcut,:where(.ag-ltr) .ag-menu-option-shortcut{padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-compact-menu-option-shortcut,:where(.ag-rtl) .ag-menu-option-shortcut{padding-left:var(--ag-spacing)}:where(.ag-ltr) .ag-compact-menu-option-popup-pointer,:where(.ag-ltr) .ag-menu-option-popup-pointer{padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-compact-menu-option-popup-pointer,:where(.ag-rtl) .ag-menu-option-popup-pointer{padding-left:var(--ag-spacing)}.ag-menu-column-select-wrapper{height:265px;overflow:auto;:where(.ag-column-select){height:100%}}.ag-menu:where(.ag-tabs){min-width:290px}.ag-context-menu-loading-icon{pointer-events:none;position:absolute}',NK={moduleName:"MenuItem",version:wi,userComponents:{agMenuItem:Drt},icons:{check:"tick",subMenuOpen:"small-right",subMenuOpenRtl:"small-left"},css:[oUt]},aUt=".ag-column-select{display:flex;flex:3 1 0px;flex-direction:column;overflow:hidden;position:relative}.ag-column-select-header{align-items:center;display:flex;flex:none;gap:var(--ag-widget-horizontal-spacing);height:var(--ag-header-height);padding-left:var(--ag-widget-container-horizontal-padding);padding-right:var(--ag-widget-container-horizontal-padding);position:relative}.ag-column-select-column,.ag-column-select-column-group{align-items:center;display:flex;gap:var(--ag-widget-horizontal-spacing);height:100%;position:relative;&:where(:not(:last-child)){margin-bottom:var(--ag-widget-vertical-spacing)}}:where(.ag-ltr) .ag-column-select-column,:where(.ag-ltr) .ag-column-select-column-group{padding-left:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}:where(.ag-rtl) .ag-column-select-column,:where(.ag-rtl) .ag-column-select-column-group{padding-right:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}.ag-column-select-header-icon{border-radius:var(--ag-border-radius);cursor:pointer;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-column-select-header-filter-wrapper{flex:1 1 auto}.ag-column-select-header-filter{width:100%}.ag-column-select-list{flex:1 1 0px;overflow:hidden}:where(.ag-ltr) .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}:where(.ag-rtl) .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly{opacity:.5;pointer-events:none}.ag-column-select-virtual-list-viewport{padding:calc(var(--ag-widget-container-vertical-padding)*.5) 0}.ag-column-select-virtual-list-item{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-column-select-column-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-select-checkbox{display:flex}",sUt=300,lUt={tag:"div",cls:"ag-column-select-header",role:"presentation",children:[{tag:"div",ref:"eExpand",cls:"ag-column-select-header-icon"},{tag:"ag-checkbox",ref:"eSelect",cls:"ag-column-select-header-checkbox"},{tag:"ag-input-text-field",ref:"eFilterTextField",cls:"ag-column-select-header-filter-wrapper"}]},cUt=class extends Gt{constructor(){super(lUt,[Rm,Vf]),this.eExpand=at,this.eSelect=at,this.eFilterTextField=at}postConstruct(){this.createExpandIcons(),this.addManagedListeners(this.eExpand,{click:this.onExpandClicked.bind(this),keydown:t=>{t.key===Qe.SPACE&&(t.preventDefault(),this.onExpandClicked())}}),this.addManagedElementListeners(this.eSelect.getInputElement(),{click:this.onSelectClicked.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",()=>this.onFunctionsReadOnlyPropChanged()),this.eFilterTextField.setAutoComplete(!1).onValueChange(()=>this.onFilterTextChanged()),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)});const e=this.getLocaleTextFunc();this.eSelect.setInputAriaLabel(e("ariaColumnSelectAll","Toggle All Columns Visibility")),this.eFilterTextField.setInputAriaLabel(e("ariaFilterColumnsInput","Filter Columns Input")),this.activateTabIndex([this.eExpand])}onFunctionsReadOnlyPropChanged(){const e=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(e),this.eSelect.toggleCss("ag-column-select-column-readonly",e)}init(e){this.params=e;const t=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(t),this.eSelect.toggleCss("ag-column-select-column-readonly",t),this.beans.colModel.ready&&this.showOrHideOptions()}createExpandIcons(){const e=this.beans;this.eExpand.appendChild(this.eExpandChecked=er("columnSelectOpen",e)),this.eExpand.appendChild(this.eExpandUnchecked=er("columnSelectClosed",e)),this.eExpand.appendChild(this.eExpandIndeterminate=er("columnSelectIndeterminate",e)),this.setExpandState(0)}showOrHideOptions(){const e=this.params,t=!e.suppressColumnFilter,n=!e.suppressColumnSelectAll,r=!e.suppressColumnExpandAll,i=!!this.beans.colModel.colDefCols?.treeDepth,o=this.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(o("searchOoo","Search...")),Nn(this.eFilterTextField.getGui(),t),Nn(this.eSelect.getGui(),n),Nn(this.eExpand,r&&i)}onFilterTextChanged(){this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=Ml(this,()=>{const e=this.eFilterTextField.getValue();this.dispatchLocalEvent({type:"filterChanged",filterText:e})},sUt)),this.onFilterTextChangedDebounced()}onSelectClicked(){this.dispatchLocalEvent({type:this.selectState?"unselectAll":"selectAll"})}onExpandClicked(){this.dispatchLocalEvent({type:this.expandState===0?"collapseAll":"expandAll"})}setExpandState(e){this.expandState=e,Nn(this.eExpandChecked,e===0),Nn(this.eExpandUnchecked,e===1),Nn(this.eExpandIndeterminate,e===2)}setSelectionState(e){this.selectState=e,this.eSelect.setValue(this.selectState)}},uUt={selector:"AG-PRIMARY-COLS-HEADER",component:cUt};function aI(e){return!!e&&typeof e.children<"u"}function IC(e){return aI(e)?e.groupId:e.colId}function krt(e,t,n){const r=(a,s)=>{const c=a.children.map(IC).includes(IC(s)),u=zr(a.children),d=u&&IC(u)!==IC(s);return c&&d};if(!aI(e))return!0;const i=e,o=n;if(r(i,o)||i.groupId===t&&!i.children.map(IC).includes(IC(o)))return i.children.push(o),!0;for(let a=i.children.length-1;a>=0&&!krt(i.children[a],t,n);a--);return!1}function dUt(e){const t=(i,o)=>aI(i)&&aI(o)&&IC(i)===IC(o),n=(i,o)=>{if(!aI(o))return i;const a=i,s=o;return s.children&&s.groupId&&krt(a,s.groupId,s.children[0])||s.children.forEach(l=>n(a,l)),a},r=[];for(let i=1;i<=e.length;i++){const o=e[i-1],a=e[i];t(o,a)?e[i]=n(o,a):r.push(o)}return r}function Lrt(e,t){const n=[],r=(o,a)=>{if(aI(o)){const s=o,l=typeof s.groupId<"u"?s.groupId:s.headerName,c=new rI(s,l,!1,a),u=[];return s.children.forEach(d=>{const p=r(d,a+1);p&&u.push(p)}),c.setChildren(u),c}else{const s=o,l=s.colId?s.colId:s.field,c=e.getColDefCol(l);return c||n.push(s),c}},i=[];return t.forEach(o=>{const a=r(o,0);a&&i.push(a)}),n.length>0&&ut(217,{invalidColIds:n}),i}function _rt(e,t){const n=pUt(e),r=dUt(n);t(r)}function pUt(e){const t=(i,o)=>{let a;if(zs(i))if(i.isPadding())a=o;else{const l=Object.assign({},i.getColGroupDef());l.groupId=i.getGroupId(),l.children=[o],a=l}else{const l=Object.assign({},i.getColDef());l.colId=i.getColId(),a=l}const s=i.getOriginalParent();return s?t(s,a):a};return e.getCols().filter(i=>{const o=i.getColDef();return i.isPrimary()&&!o.showRowGroup}).map(i=>t(i,i.getColDef()))}var mRe=class{constructor(e,t,n,r=!1,i){this.displayName=e,this.depth=n,this.group=r,this.localEventService=new Wy,r?(this.columnGroup=t,this._expanded=i,this.children=[]):this.column=t}get expanded(){return!!this._expanded}set expanded(e){e!==this._expanded&&(this._expanded=e,this.localEventService.dispatchEvent({type:"expandedChanged"}))}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}};function Nrt(e,t,n,r){const i=hUt(t);Frt(e,i,n,r)}function Frt(e,t,n,r){e.colModel.isPivotMode()?gUt(e,t,n,r):fUt(e,t,n,r)}function hUt(e){const t=[],n=r=>{r.forEach(i=>{i.passesFilter&&(i.group?n(i.children):t.push(i.column))})};return n(e),t}function fUt(e,t,n,r){const i=[];t.forEach(o=>{o.getColDef().lockVisible||o.isVisible()!=n&&i.push({colId:o.getId(),hide:!n})}),i.length>0&&m0(e,{state:i},r)}function gUt(e,t,n,r){mUt(e,t,n,r)}function mUt(e,t,n,r){const i=[],s=n?l=>{if(!l.isAnyFunctionActive())if(l.isAllowValue()){const c=typeof l.getAggFunc()=="string"?l.getAggFunc():e.aggFuncSvc?.getDefaultAggFunc(l);i.push({colId:l.getId(),aggFunc:c})}else l.isAllowRowGroup()?i.push({colId:l.getId(),rowGroup:!0}):l.isAllowPivot()&&i.push({colId:l.getId(),pivot:!0})}:l=>{(l.isPivotActive()||l.isRowGroupActive()||l.isValueActive())&&i.push({colId:l.getId(),pivot:!1,rowGroup:!1,aggFunc:null})};t.forEach(s),i.length>0&&m0(e,{state:i},r)}function Wrt(e,t){const{columns:n,visibleState:r,pivotState:i,eventType:o}=t,a=n.map(s=>{const l=s.getColId();if(e.colModel.isPivotMode()){const c=i?.[l];return{colId:l,pivot:c?.pivot,rowGroup:c?.rowGroup,aggFunc:c?.aggFunc}}else return{colId:l,hide:!r?.[l]}});m0(e,{state:a},o)}function qrt(e){return{pivot:e.isPivotActive(),rowGroup:e.isRowGroupActive(),aggFunc:e.isValueActive()?e.getAggFunc():void 0}}function vRe(e,t,n,r){const i=t.getCol(n);e.groupData||(e.groupData={});const o=i.getColId(),a=e.groupData[o];a!==r&&(e.groupData[o]=r,e.dispatchCellChangedEvent(i,r,a))}function Gye(e,t,n){e.group!==n&&(e.group&&!n&&(e.expanded=!1),e.group=n,e.updateHasChildren(),t.selectionSvc?.updateRowSelectable(e),e.dispatchRowEvent("groupChanged"))}function gW(e,t){const{gos:n,rowGroupColsSvc:r}=t;if(!r||!e)return!1;const i=n.get("groupLockGroupColumns");if(!e.isRowGroupActive()||i===0)return!1;if(i===-1)return!0;const o=r.columns.findIndex(a=>a.getColId()===e.getColId());return i>o}var vUt=class extends Vb{constructor(e){super(),this.setTemplateFromElement(e.getGui(),void 0,void 0,!0)}postConstruct(){this.initialiseTabGuard({onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e)})}handleKeyDown(e){e.key===Qe.ESCAPE&&this.closePanel()}onTabKeyDown(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())}closePanel(){const e=this.parentComponent;e.closeSubMenu(),setTimeout(()=>e.getGui().focus(),0)}};function bUt(e,t,n){return e.getCompDetails(t,yUt,"agMenuItem",n,!0)}var yUt={name:"menuItem",optionalMethods:["setActive","select","setExpanded","configureDefaults"]},MUt={tag:"div",cls:"ag-menu",role:"presentation"},Ehe=class extends dt{constructor(){super(...arguments),this.ACTIVATION_DELAY=80,this.isActive=!1,this.subMenuIsOpen=!1,this.subMenuIsOpening=!1,this.suppressRootStyles=!0,this.suppressAria=!0,this.suppressFocus=!0}wireBeans(e){this.popupSvc=e.popupSvc,this.userCompFactory=e.userCompFactory,this.registry=e.registry}init(e){const{menuItemDef:t,isAnotherSubMenuOpen:n,level:r,childComponent:i,contextParams:o}=e;return this.params=e.menuItemDef,this.level=r,this.isAnotherSubMenuOpen=n,this.childComponent=i,this.contextParams=o,this.cssClassPrefix=this.params.menuItemParams?.cssClassPrefix??"ag-menu-option",bUt(this.userCompFactory,this.params,Vn(this.gos,{...t,level:r,isAnotherSubMenuOpen:n,openSubMenu:s=>this.openSubMenu(s),closeSubMenu:()=>this.closeSubMenu(),closeMenu:s=>this.closeMenu(s),updateTooltip:(s,l)=>this.refreshTooltip(s,l),onItemActivated:()=>this.onItemActivated()}))?.newAgStackInstance().then(s=>{this.menuItemComp=s;const l=s.configureDefaults?.();l&&this.configureDefaults(l===!0?void 0:l)})??Dr.resolve()}addListeners(e,t){t?.suppressClick||this.addManagedElementListeners(e,{click:n=>this.onItemSelected(n)}),t?.suppressKeyboardSelect||this.addManagedElementListeners(e,{keydown:n=>{(n.key===Qe.ENTER||n.key===Qe.SPACE)&&(n.preventDefault(),this.onItemSelected(n))}}),t?.suppressMouseDown||this.addManagedElementListeners(e,{mousedown:n=>{n.stopPropagation(),n.preventDefault()}}),t?.suppressMouseOver||this.addManagedElementListeners(e,{mouseenter:()=>this.onMouseEnter(),mouseleave:()=>this.onMouseLeave()})}isDisabled(){return!!this.params.disabled}openSubMenu(e=!1,t){if(this.closeSubMenu(),!this.params.subMenu)return;this.subMenuIsOpening=!0;const n=Nr(MUt);this.eSubMenuGui=n;let r,i=()=>{this.subMenuIsOpening=!1};if(this.childComponent){const c=this.createBean(new vUt(this.childComponent));c.setParentComponent(this);const u=c.getGui(),d="mouseenter",p=()=>this.cancelDeactivate();u.addEventListener(d,p),r=()=>{u.removeEventListener(d,p),this.destroyBean(c)},n.appendChild(u),this.childComponent.afterGuiAttached&&(i=()=>{this.childComponent.afterGuiAttached(),this.subMenuIsOpening=!1})}else if(this.params.subMenu){const c=this.createBean(new M6(this.level+1,this.contextParams));c.setParentComponent(this),c.addMenuItems(this.params.subMenu),n.appendChild(c.getGui()),this.addManagedListeners(c,{closeMenu:u=>this.dispatchLocalEvent(u)}),c.addGuiEventListener("mouseenter",()=>this.cancelDeactivate()),r=()=>this.destroyBean(c),e&&(i=()=>{c.activateFirstItem(),this.subMenuIsOpening=!1})}const{popupSvc:o}=this,a=()=>{const c=this.eGui,{column:u,node:d}=this.contextParams;o?.positionPopupForMenu({eventSource:c,ePopup:n,event:t instanceof MouseEvent?t:void 0,column:u,node:d})},s=this.getLocaleTextFunc(),l=o?.addPopup({modal:!0,eChild:n,positionCallback:a,anchorToElement:this.eGui,ariaLabel:s("ariaLabelSubMenu","SubMenu"),afterGuiAttached:i});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=()=>{l&&l.hideFunc(),this.subMenuIsOpen=!1,this.setAriaExpanded(!1),r(),this.menuItemComp.setExpanded?.(!1),this.eSubMenuGui=void 0},this.menuItemComp.setExpanded?.(!0)}setAriaExpanded(e){this.suppressAria||d1(this.eGui,e)}closeSubMenu(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))}isSubMenuOpen(){return this.subMenuIsOpen}isSubMenuOpening(){return this.subMenuIsOpening}activate(e,t){this.cancelActivate(),!(this.params.disabled&&!t)&&(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add(`${this.cssClassPrefix}-active`),this.menuItemComp.setActive?.(!0),this.suppressFocus||mK(this.beans,()=>this.eGui.focus({preventScroll:!t})),e&&this.params.subMenu&&window.setTimeout(()=>{this.isAlive()&&this.isActive&&this.openSubMenu()},300),this.onItemActivated())}deactivate(){this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove(`${this.cssClassPrefix}-active`),this.menuItemComp.setActive?.(!1),this.isActive=!1,this.subMenuIsOpen&&this.closeSubMenu()}getGui(){return this.menuItemComp.getGui()}getParentComponent(){return this.parentComponent}setParentComponent(e){this.parentComponent=e}getSubMenuGui(){return this.eSubMenuGui}onItemSelected(e){this.menuItemComp.select?.(),this.params.action?this.beans.frameworkOverrides.wrapOutgoing(()=>this.params.action(Vn(this.gos,{...this.contextParams}))):this.openSubMenu(e&&e.type==="keydown",e),!(this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect)&&this.closeMenu(e)}closeMenu(e){const t={type:"closeMenu"};e&&(e instanceof MouseEvent?t.mouseEvent=e:t.keyboardEvent=e),this.dispatchLocalEvent(t)}onItemActivated(){const e={type:"menuItemActivated",menuItem:this};this.dispatchLocalEvent(e)}cancelActivate(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)}cancelDeactivate(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)}onMouseEnter(){this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(()=>this.activate(!0),this.ACTIVATION_DELAY):this.activate(!0)}onMouseLeave(){this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(()=>this.deactivate(),this.ACTIVATION_DELAY):this.deactivate()}configureDefaults(e){if(!this.menuItemComp){setTimeout(()=>this.configureDefaults(e));return}let t=this.menuItemComp.getGui();const{suppressRootStyles:n,suppressTooltip:r,suppressAria:i,suppressTabIndex:o,suppressFocus:a}=e||{},s=this.menuItemComp.getRootElement?.();s&&(n||t.classList.add("ag-menu-option-custom"),t=s),this.eGui=t,this.suppressRootStyles=!!n,this.suppressRootStyles||(t.classList.add(this.cssClassPrefix),this.params.cssClasses?.forEach(l=>t.classList.add(l)),this.params.disabled&&t.classList.add(`${this.cssClassPrefix}-disabled`)),r||this.refreshTooltip(this.params.tooltip),this.suppressAria=!!i,this.suppressAria||(C0(t,"menuitem"),this.params.subMenu&&YDt(t,this.params.subMenuRole??"menu"),this.params.disabled&&p$(t,!0)),o||t.setAttribute("tabindex","-1"),this.params.disabled||this.addListeners(t,e),this.suppressFocus=!!a}refreshTooltip(e,t){if(this.tooltip=e,this.tooltipFeature=this.destroyBean(this.tooltipFeature),!e||!this.menuItemComp)return;const n=this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getTooltipValue:()=>this.tooltip,getLocation:()=>"menu",shouldDisplayTooltip:t});n&&(this.tooltipFeature=this.createBean(n))}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),this.menuItemComp?.destroy?.(),super.destroy()}},M6=class extends Vb{constructor(e=0,t){super({tag:"div",cls:"ag-menu-list",role:"menu"}),this.level=e,this.menuItems=[],this.params=t??{column:null,node:null,value:null}}postConstruct(){this.initialiseTabGuard({onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>mK(this.beans,()=>this.handleKeyDown(e)),onFocusIn:e=>this.handleFocusIn(e),onFocusOut:e=>this.handleFocusOut(e)})}onTabKeyDown(e){this.getParentComponent()?.getGui()?.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)}handleKeyDown(e){switch(e.key){case Qe.UP:case Qe.RIGHT:case Qe.DOWN:case Qe.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case Qe.ESCAPE:this.closeIfIsChild()&&Cl(e);break}}handleFocusIn(e){const t=e.relatedTarget;!this.tabGuardFeature.getTabGuardCtrl().isTabGuard(t)&&(this.getGui().contains(t)||this.activeMenuItem?.getSubMenuGui()?.contains(t))||(this.activeMenuItem?this.activeMenuItem.activate():this.activateFirstItem())}handleFocusOut(e){const t=e.relatedTarget;!this.activeMenuItem||this.getGui().contains(t)||this.activeMenuItem.getSubMenuGui()?.contains(t)||this.activeMenuItem.isSubMenuOpening()||this.activeMenuItem.deactivate()}clearActiveItem(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)}addMenuItems(e){e!=null&&Dr.all(e.map(t=>t==="separator"?Dr.resolve({eGui:this.createSeparator()}):typeof t=="string"?(ut(228,{menuItemOrString:t}),Dr.resolve({eGui:null})):this.addItem(t))).then(t=>{(t??[]).forEach(n=>{n?.eGui&&(this.appendChild(n.eGui),n.comp&&this.menuItems.push(n.comp))})})}addItem(e){const t=this.createManagedBean(new Ehe);return t.init({menuItemDef:e,isAnotherSubMenuOpen:()=>this.menuItems.some(n=>n.isSubMenuOpen()),level:this.level,contextParams:this.params}).then(()=>(t.setParentComponent(this),this.addManagedListeners(t,{closeMenu:n=>{this.dispatchLocalEvent(n)},menuItemActivated:n=>{this.activeMenuItem&&this.activeMenuItem!==n.menuItem&&this.activeMenuItem.deactivate(),this.activeMenuItem=n.menuItem}}),{comp:t,eGui:t.getGui()}))}activateFirstItem(){const e=this.menuItems.filter(t=>!t.isDisabled())[0];e&&e.activate()}createSeparator(){const e={tag:"div",cls:"ag-menu-separator-part"};return Nr({tag:"div",cls:"ag-menu-separator",attrs:{"aria-hidden":"true"},children:[e,e,e,e]})}handleNavKey(e){switch(e){case Qe.UP:case Qe.DOWN:{const n=this.findNextItem(e===Qe.UP);n&&n!==this.activeMenuItem&&n.activate(!1,!0);return}}const t=this.gos.get("enableRtl")?Qe.RIGHT:Qe.LEFT;e===t?this.closeIfIsChild():this.openChild()}closeIfIsChild(e){const t=this.getParentComponent();return t&&t instanceof Ehe?(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus(),!0):!1}openChild(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)}findNextItem(e){const t=[...this.menuItems];if(!t.length)return;if(!this.activeMenuItem)return e?zr(t):t[0];e&&t.reverse();let n,r=!1;for(const i of t){if(!r){i===this.activeMenuItem&&(r=!0);continue}n=i;break}return r&&!n?t[0]:n||this.activeMenuItem}destroy(){this.clearActiveItem(),super.destroy()}},Brt=class extends Gt{constructor(e,t,n){super({tag:"div",cls:"ag-menu"}),this.column=e,this.mouseEvent=t,this.parentEl=n,this.displayName=null}postConstruct(){const{column:e,beans:{colNames:t}}=this;this.initializeProperties(e);let n;if(vm(e)?n=t.getDisplayNameForColumn(e,"columnToolPanel"):n=t.getDisplayNameForProvidedColumnGroup(null,e,"columnToolPanel"),this.displayName=n,this.buildMenuItemMap(),this.isActive()){this.mouseEvent.preventDefault();const r=this.getMappedMenuItems();if(r.length===0)return;this.displayContextMenu(r)}}initializeProperties(e){let t;zs(e)?t=e.getLeafColumns():t=[e],this.columns=t;const n=this.beans.colModel.isPivotMode();this.allowScrollIntoView=!n&&t.some(this.isColumnValidForScrollIntoView),this.allowGrouping=t.some(r=>r.isPrimary()&&r.isAllowRowGroup()),this.allowValues=t.some(r=>r.isPrimary()&&r.isAllowValue()),this.allowPivoting=n&&t.some(r=>r.isPrimary()&&r.isAllowPivot())}buildMenuItemMap(){const e=this.getLocaleTextFunc(),{beans:t,displayName:n}=this,{rowGroupColsSvc:r,valueColsSvc:i,pivotColsSvc:o,colModel:a}=t,s=new Map;this.menuItemMap=s;const l=a.isPivotMode();s.set("scrollIntoView",{allowedFunction:c=>!c.isPinned()&&!l&&this.isColumnValidForScrollIntoView(c),activeFunction:()=>!1,activateLabel:()=>e("scrollColumnIntoView",`Scroll ${n} into View`,[n]),activateFunction:()=>{const c=this.columns.find(this.isColumnValidForScrollIntoView);c&&this.beans.ctrlsSvc.getScrollFeature().ensureColumnVisible(c)},deActivateFunction:()=>{},addIcon:"ensureColumnVisible"}),s.set("rowGroup",{allowedFunction:c=>c.isPrimary()&&c.isAllowRowGroup()&&!gW(c,t),activeFunction:c=>c.isRowGroupActive(),activateLabel:()=>`${e("groupBy","Group by")} ${n}`,deactivateLabel:()=>`${e("ungroupBy","Un-Group by")} ${n}`,activateFunction:()=>r?.setColumns(this.addColumnsToList(r.columns),"toolPanelUi"),deActivateFunction:()=>r?.setColumns(this.removeColumnsFromList(r.columns),"toolPanelUi"),addIcon:"menuAddRowGroup",removeIcon:"menuRemoveRowGroup"}),s.set("value",{allowedFunction:c=>c.isPrimary()&&c.isAllowValue(),activeFunction:c=>c.isValueActive(),activateLabel:()=>e("addToValues",`Add ${n} to values`,[n]),deactivateLabel:()=>e("removeFromValues",`Remove ${n} from values`,[n]),activateFunction:()=>i?.setColumns(this.addColumnsToList(i.columns),"toolPanelUi"),deActivateFunction:()=>i?.setColumns(this.removeColumnsFromList(i.columns),"toolPanelUi"),addIcon:"valuePanel",removeIcon:"valuePanel"}),s.set("pivot",{allowedFunction:c=>l&&c.isPrimary()&&c.isAllowPivot(),activeFunction:c=>c.isPivotActive(),activateLabel:()=>e("addToLabels",`Add ${n} to labels`,[n]),deactivateLabel:()=>e("removeFromLabels",`Remove ${n} from labels`,[n]),activateFunction:()=>o?.setColumns(this.addColumnsToList(o.columns),"toolPanelUi"),deActivateFunction:()=>o?.setColumns(this.removeColumnsFromList(o.columns),"toolPanelUi"),addIcon:"pivotPanel",removeIcon:"pivotPanel"})}isColumnValidForScrollIntoView(e){if(!e.isVisible())return!1;const n=e.getParent();return n?n.getDisplayedChildren()?.indexOf(e)!==-1:!0}addColumnsToList(e){return[...e].concat(this.columns.filter(t=>e.indexOf(t)===-1))}removeColumnsFromList(e){return e.filter(t=>this.columns.indexOf(t)===-1)}displayContextMenu(e){const t=this.getGui(),n=this.createBean(new M6),r=this.getLocaleTextFunc();let i=()=>{};t.appendChild(n.getGui()),n.addMenuItems(e),n.addManagedListeners(n,{closeMenu:()=>{this.parentEl.focus(),i()}});const o=this.beans.popupSvc,a=o.addPopup({modal:!0,eChild:t,closeOnEsc:!0,afterGuiAttached:()=>zu(n.getGui()),ariaLabel:r("ariaLabelContextMenu","Context Menu"),closedCallback:s=>{s instanceof KeyboardEvent&&this.parentEl.focus(),this.destroyBean(n)}});a&&(i=a.hideFunc),o.positionPopupUnderMouseEvent({type:"columnContextMenu",mouseEvent:this.mouseEvent,ePopup:t})}isActive(){return this.allowScrollIntoView||this.allowGrouping||this.allowValues||this.allowPivoting}getMappedMenuItems(){const e=[],{menuItemMap:t,columns:n,displayName:r,beans:i}=this;for(const o of t.values()){const a=n.some(l=>o.allowedFunction(l)&&!o.activeFunction(l)),s=n.some(l=>o.allowedFunction(l)&&o.activeFunction(l));a&&e.push({name:o.activateLabel(r),icon:er(o.addIcon,i,null),action:()=>o.activateFunction()}),s&&o.removeIcon&&o.deactivateLabel&&e.push({name:o.deactivateLabel(r),icon:er(o.removeIcon,i,null),action:()=>o.deActivateFunction?.()})}return e}},CUt={tag:"div",cls:"ag-column-select-column-group",children:[{tag:"span",ref:"eColumnGroupIcons",cls:"ag-column-group-icons",children:[{tag:"span",ref:"eGroupClosedIcon",cls:"ag-column-group-closed-icon"},{tag:"span",ref:"eGroupOpenedIcon",cls:"ag-column-group-opened-icon"}]},{tag:"ag-checkbox",ref:"cbSelect",cls:"ag-column-select-checkbox"},{tag:"span",ref:"eLabel",cls:"ag-column-select-column-label"}]},jrt=class extends Gt{constructor(e,t,n,r){super(),this.modelItem=e,this.allowDragging=t,this.eventType=n,this.focusWrapper=r,this.cbSelect=at,this.eLabel=at,this.eGroupOpenedIcon=at,this.eGroupClosedIcon=at,this.eColumnGroupIcons=at,this.processingColumnStateChange=!1;const{columnGroup:i,depth:o,displayName:a}=e;this.columnGroup=i,this.columnDepth=o,this.displayName=a}postConstruct(){this.setTemplate(CUt,[Rm]);const{beans:e,cbSelect:t,eLabel:n,displayName:r,columnDepth:i,modelItem:o,focusWrapper:a,columnGroup:s}=this,{registry:l,gos:c}=e,u=er("columnDrag",e);this.eDragHandle=u,u.classList.add("ag-drag-handle","ag-column-select-column-group-drag-handle");const d=t.getGui(),p=t.getInputElement();d.insertAdjacentElement("afterend",u),p.setAttribute("tabindex","-1"),n.textContent=r??"",this.setupExpandContract(),this.addCss("ag-column-select-indent-"+i),this.getGui().style.setProperty("--ag-indentation-level",String(i)),this.tooltipFeature=this.createOptionalManagedBean(l.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"columnToolPanelColumnGroup",shouldDisplayTooltip:TK(c,()=>n)})),this.addManagedEventListeners({columnPivotModeChanged:this.onColumnStateChanged.bind(this)}),this.addManagedElementListeners(n,{click:this.onLabelClicked.bind(this)}),this.addManagedListeners(t,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedListeners(o,{expandedChanged:this.onExpandChanged.bind(this)}),this.addManagedListeners(a,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),this.refreshAriaExpanded(),this.refreshAriaLabel(),this.setupTooltip(),Jet(s.getColGroupDef(),c,null,s).forEach(g=>this.toggleCss(g,!0))}getColumns(){return this.columnGroup.getLeafColumns()}setupTooltip(){const e=this.columnGroup.getColGroupDef();if(!e)return;const t=()=>this.tooltipFeature?.setTooltipAndRefresh(e.headerTooltip);t(),this.addManagedEventListeners({newColumnsLoaded:t})}handleKeyDown(e){switch(e.key){case Qe.LEFT:e.preventDefault(),this.modelItem.expanded=!1;break;case Qe.RIGHT:e.preventDefault(),this.modelItem.expanded=!0;break;case Qe.SPACE:e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected());break}}onContextMenu(e){const{columnGroup:t,gos:n}=this;if(n.get("functionsReadOnly"))return;const r=this.createBean(new Brt(t,e,this.focusWrapper));this.addDestroyFunc(()=>{r.isAlive()&&this.destroyBean(r)})}addVisibilityListenersToAllChildren(){const e=this.onColumnStateChanged.bind(this);this.columnGroup.getLeafColumns().forEach(t=>{this.addManagedListeners(t,{visibleChanged:e,columnValueChanged:e,columnPivotChanged:e,columnRowGroupChanged:e})})}setupDragging(){if(!this.allowDragging){Nn(this.eDragHandle,!1);return}const e=this.beans,{gos:t,eventSvc:n,dragAndDrop:r}=e;let i=!t.get("suppressDragLeaveHidesColumns");const o={type:bm.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,getDefaultIconName:()=>i?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{i=!t.get("suppressDragLeaveHidesColumns"),n.dispatchEvent({type:"columnPanelItemDragStart",column:this.columnGroup})},onDragStopped:()=>{n.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:a=>{i&&Wrt(e,{columns:this.columnGroup.getLeafColumns(),visibleState:a?.visibleState,pivotState:a?.pivotState,eventType:this.eventType})},onGridExit:()=>{i&&this.onChangeCommon(!1)}};r.addDragSource(o,!0),this.addDestroyFunc(()=>r.removeDragSource(o))}createDragItem(){const e=this.columnGroup.getLeafColumns(),t={},n={};return e.forEach(r=>{const i=r.getId();t[i]=r.isVisible(),n[i]=qrt(r)}),{columns:e,visibleState:t,pivotState:n}}setupExpandContract(){const{beans:e,eGroupClosedIcon:t,eGroupOpenedIcon:n,eColumnGroupIcons:r}=this;t.appendChild(Ax("columnSelectClosed",e,null)),n.appendChild(Ax("columnSelectOpen",e,null));const i=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(t,{click:i}),this.addManagedElementListeners(n,{click:i});const o=new sy(r,!0);this.addManagedListeners(o,{tap:i}),this.addDestroyFunc(o.destroy.bind(o))}onLabelClicked(){const e=!this.cbSelect.getValue();this.onChangeCommon(e)}onCheckboxChanged(e){this.onChangeCommon(e.selected)}getVisibleLeafColumns(){const e=[],t=n=>{n.forEach(r=>{r.passesFilter&&(r.group?t(r.children):e.push(r.column))})};return t(this.modelItem.children),e}onChangeCommon(e){this.refreshAriaLabel(),!this.processingColumnStateChange&&Nrt(this.beans,this.modelItem.children,e,this.eventType)}refreshAriaLabel(){const{cbSelect:e,focusWrapper:t,displayName:n}=this,r=this.getLocaleTextFunc(),i=r("ariaColumnGroup","Column Group"),o=e.getValue(),a=o===void 0?r("ariaIndeterminate","indeterminate"):o?r("ariaVisible","visible"):r("ariaHidden","hidden"),s=r("ariaToggleVisibility","Press SPACE to toggle visibility");Es(t,`${n} ${i}`),e.setInputAriaLabel(`${s} (${a})`),lK(t,e.getInputElement().id)}onColumnStateChanged(){const e=this.workOutSelectedValue(),t=this.workOutReadOnlyValue();this.processingColumnStateChange=!0;const n=this.cbSelect;n.setValue(e),n.setReadOnly(t),this.toggleCss("ag-column-select-column-group-readonly",t),this.processingColumnStateChange=!1}workOutSelectedValue(){const e=this.beans.colModel.isPivotMode(),t=this.getVisibleLeafColumns();let n=0,r=0;if(t.forEach(i=>{!e&&i.getColDef().lockVisible||(this.isColumnChecked(i,e)?n++:r++)}),!(n>0&&r>0))return n>0}workOutReadOnlyValue(){const e=this.beans.colModel.isPivotMode();let t=0;return this.columnGroup.getLeafColumns().forEach(n=>{e?n.isAnyFunctionAllowed()&&t++:n.getColDef().lockVisible||t++}),t===0}isColumnChecked(e,t){if(t){const n=e.isPivotActive(),r=e.isRowGroupActive(),i=e.isValueActive();return n||r||i}return e.isVisible()}onExpandOrContractClicked(){const e=this.modelItem,t=e.expanded;e.expanded=!t}onExpandChanged(){this.setOpenClosedIcons(),this.refreshAriaExpanded()}setOpenClosedIcons(){const e=this.modelItem.expanded;Nn(this.eGroupClosedIcon,!e),Nn(this.eGroupOpenedIcon,e)}refreshAriaExpanded(){d1(this.focusWrapper,this.modelItem.expanded)}getDisplayName(){return this.displayName}onSelectAllChanged(e){const t=this.cbSelect,n=t.getValue();!t.isReadOnly()&&(e&&!n||!e&&n)&&t.toggle()}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}setSelected(e){this.cbSelect.setValue(e,!0)}},yre=e=>zs(e)?e.getLeafColumns():e?[e]:[],xUt=(e,t,n,r)=>{if(!n||!t)return null;const i=e.colModel.getCols(),o=i.indexOf(n),a=r?o:o+1,s=wUt(i,t,a);return a-s},wUt=(e,t,n)=>{if(!t)return 0;const r=t[0],i=t.length;return e.indexOf(r)<n?i:0},bRe=(e,t,n)=>e.get("suppressMovableColumns")||t.colModel.isPivotMode()?!0:!!n.find(({colDef:o})=>!!o.suppressMovable||!!o.lockPosition),yRe=(e,t,n)=>{if(!n)return;const{component:r}=n;let i=null,o=n.position==="top";if(r instanceof jrt?(i=r.getColumns()[0],o=!0):r&&(i=r.column),!i)return;const a=xUt(e,t,i,o);a!=null&&e.colMoves?.moveColumns(t,a,"toolPanelUi")},SUt=e=>e.column,AUt={tag:"div",cls:"ag-column-select-column",children:[{tag:"ag-checkbox",ref:"cbSelect",cls:"ag-column-select-checkbox"},{tag:"span",ref:"eLabel",cls:"ag-column-select-column-label"}]},OUt=class extends Gt{constructor(e,t,n,r){super(),this.modelItem=e,this.allowDragging=t,this.groupsExist=n,this.focusWrapper=r,this.eLabel=at,this.cbSelect=at,this.processingColumnStateChange=!1;const{column:i,depth:o,displayName:a}=e;this.column=i,this.columnDepth=o,this.displayName=a}postConstruct(){this.setTemplate(AUt,[Rm]);const{beans:e,cbSelect:t,displayName:n,eLabel:r,columnDepth:i,groupsExist:o,column:a,gos:s,focusWrapper:l}=this,c=er("columnDrag",e);this.eDragHandle=c,c.classList.add("ag-drag-handle","ag-column-select-column-drag-handle");const u=t.getGui(),d=t.getInputElement();u.insertAdjacentElement("afterend",c),d.setAttribute("tabindex","-1"),r.textContent=n,o&&this.addCss("ag-column-select-add-group-indent"),this.addCss(`ag-column-select-indent-${i}`),this.getGui().style.setProperty("--ag-indentation-level",String(i)),this.tooltipFeature=this.createOptionalManagedBean(e.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"columnToolPanelColumn",getColDef:()=>a.getColDef(),shouldDisplayTooltip:TK(s,()=>r)})),this.setupDragging();const p=this.onColumnStateChanged.bind(this);this.addManagedEventListeners({columnPivotModeChanged:p}),this.addManagedListeners(a,{columnValueChanged:p,columnPivotChanged:p,columnRowGroupChanged:p,visibleChanged:p}),this.addManagedListeners(l,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addManagedListeners(t,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedElementListeners(r,{click:this.onLabelClicked.bind(this)}),this.onColumnStateChanged(),this.refreshAriaLabel(),this.setupTooltip(),Jet(a.getColDef(),s,a,null).forEach(g=>this.toggleCss(g,!0))}getColumn(){return this.column}setupTooltip(){const e=()=>this.tooltipFeature?.setTooltipAndRefresh(this.column.getColDef().headerTooltip);e(),this.addManagedEventListeners({newColumnsLoaded:e})}onContextMenu(e){const{column:t,gos:n}=this;if(n.get("functionsReadOnly"))return;const r=this.createBean(new Brt(t,e,this.focusWrapper));this.addDestroyFunc(()=>{r.isAlive()&&this.destroyBean(r)})}handleKeyDown(e){e.key===Qe.SPACE&&(e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected()))}onLabelClicked(){if(this.gos.get("functionsReadOnly"))return;const e=!this.cbSelect.getValue();this.onChangeCommon(e)}onCheckboxChanged(e){this.onChangeCommon(e.selected)}onChangeCommon(e){this.cbSelect.isReadOnly()||(this.refreshAriaLabel(),!this.processingColumnStateChange&&Frt(this.beans,[this.column],e,"toolPanelUi"))}refreshAriaLabel(){const{cbSelect:e,focusWrapper:t,displayName:n}=this,r=this.getLocaleTextFunc(),i=r("ariaColumn","Column"),o=e.getValue()?r("ariaVisible","visible"):r("ariaHidden","hidden"),a=r("ariaToggleVisibility","Press SPACE to toggle visibility");Es(t,`${n} ${i}`),this.cbSelect.setInputAriaLabel(`${a} (${o})`),lK(t,e.getInputElement().id)}setupDragging(){const e=this.eDragHandle;if(!this.allowDragging){Nn(e,!1);return}const t=this.beans,{gos:n,eventSvc:r,dragAndDrop:i}=t;let o=!n.get("suppressDragLeaveHidesColumns");const a={type:bm.ToolPanel,eElement:e,dragItemName:this.displayName,getDefaultIconName:()=>o?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{o=!n.get("suppressDragLeaveHidesColumns"),r.dispatchEvent({type:"columnPanelItemDragStart",column:this.column})},onDragStopped:()=>{r.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:s=>{o&&Wrt(t,{columns:[this.column],visibleState:s?.visibleState,pivotState:s?.pivotState,eventType:"toolPanelUi"})},onGridExit:()=>{o&&this.onChangeCommon(!1)}};i.addDragSource(a,!0),this.addDestroyFunc(()=>i.removeDragSource(a))}createDragItem(){const e=this.column.getColId(),t={[e]:this.column.isVisible()},n={[e]:qrt(this.column)};return{columns:[this.column],visibleState:t,pivotState:n}}onColumnStateChanged(){this.processingColumnStateChange=!0;const e=this.beans.colModel.isPivotMode();if(e){const r=this.column.isAnyFunctionActive();this.cbSelect.setValue(r)}else this.cbSelect.setValue(this.column.isVisible());let t=!0,n=!0;if(e){const r=this.gos.get("functionsReadOnly"),i=!this.column.isAnyFunctionAllowed();t=!r&&!i,n=t}else{const{enableRowGroup:r,enableValue:i,lockPosition:o,suppressMovable:a,lockVisible:s}=this.column.getColDef(),l=!!r||!!i,c=!!o||!!a;t=!s,n=l||!c}this.cbSelect.setReadOnly(!t),this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!n),this.toggleCss("ag-column-select-column-readonly",!n&&!t),this.cbSelect.setPassive(!1),this.processingColumnStateChange=!1}getDisplayName(){return this.displayName}onSelectAllChanged(e){const t=this.cbSelect;e!==t.getValue()&&(t.isReadOnly()||t.toggle())}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}isExpandable(){return!1}setExpanded(e){ut(158)}},zUt=class{constructor(e){this.items=e}getRowCount(){return this.items.length}getRow(e){return this.items[e]}},TUt="ag-column-select-list",EUt=class extends Gt{constructor(){super({tag:"div",cls:TUt,role:"presentation"}),this.destroyColumnItemFuncs=[],this.hasLoadedInitialState=!1,this.isInitialState=!1,this.skipRefocus=!1}wireBeans(e){this.colModel=e.colModel}destroy(){this.destroyColumnTree(),super.destroy()}destroyColumnTree(){this.allColsTree=[],this.destroyColumnItemFuncs.forEach(e=>e()),this.destroyColumnItemFuncs=[]}init(e,t,n){this.params=e;const{suppressSyncLayoutWithGrid:r,contractColumnSelection:i,suppressColumnMove:o}=e;this.allowDragging=t,this.eventType=n,r||this.addManagedEventListeners({columnMoved:this.onColumnsChanged.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.onColumnsChanged.bind(this)});const a=this.fireSelectionChangedEvent.bind(this);this.addManagedEventListeners({columnPivotChanged:a,columnPivotModeChanged:a,columnRowGroupChanged:a,columnValueChanged:a,columnVisible:a,newColumnsLoaded:a}),this.expandGroupsByDefault=!i;const s=o||r,l=this.createManagedBean(new fD({cssIdentifier:"column-select",ariaRole:"tree",moveItemCallback:(c,u)=>{s||this.moveItems(c,u)}}));this.virtualList=l,this.appendChild(l.getGui()),l.setComponentCreator((c,u)=>(cK(u,c.depth+1),this.createComponentFromItem(c,u))),this.colModel.ready&&this.onColumnsChanged(),!s&&this.createItemDragFeature()}createItemDragFeature(){const{gos:e,beans:t,eventSvc:n,virtualList:r}=this;this.createManagedBean(new Srt(this,r,{dragSourceType:bm.ToolPanel,listItemDragStartEvent:"columnPanelItemDragStart",listItemDragEndEvent:"columnPanelItemDragEnd",eventSource:n,getCurrentDragValue:i=>SUt(i),isMoveBlocked:i=>bRe(e,t,yre(i)),getNumRows:i=>i.getDisplayedColsList().length,moveItem:(i,o)=>yRe(t,yre(i),o)}))}moveItems(e,t){const{gos:n,beans:r}=this,{modelItem:i}=e,{group:o,columnGroup:a,column:s,expanded:l}=i,c=yre(o?a:s);if(bRe(n,r,c))return;const u=this.displayedColsList.indexOf(i),d=t?-1:1;let p=0;if(t){const g=e.columnDepth>0&&s.getParent()?.getChildren();g&&g.length&&s===g[0]&&(p=-1)}else o&&(p=l?i.children.length:0);const h=Math.min(Math.max(u+p+d,0),this.displayedColsList.length-1);this.skipRefocus=!0,yRe(r,c,{position:t?"top":"bottom",component:this.virtualList.getComponentAt(h)}),this.focusRowIfAlive(h-p).then(()=>{this.skipRefocus=!1})}createComponentFromItem(e,t){const n=this.allowDragging;if(e.group){const i=new jrt(e,n,this.eventType,t);return this.createBean(i),i}const r=new OUt(e,n,this.groupsExist,t);return this.createBean(r),r}onColumnsChanged(){const e=this.params;this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!e.initialState);const t=this.getExpandedStates(),n=this.colModel.isPivotMode();!e.suppressSyncLayoutWithGrid&&!n?this.buildTreeFromWhatGridIsDisplaying():this.buildTreeFromProvidedColumnDefs(),this.setExpandedStates(t),this.markFilteredColumns(),this.flattenAndFilterModel(),this.isInitialState=!1}getDisplayedColsList(){return this.displayedColsList}getExpandedStates(){const e={};if(this.isInitialState){const{expandedGroupIds:t}=this.params.initialState;return t.forEach(n=>{e[n]=!0}),e}return this.allColsTree?(this.forEachItem(t=>{if(!t.group)return;const n=t.columnGroup;n&&(e[n.getId()]=t.expanded)}),e):{}}setExpandedStates(e){if(!this.allColsTree)return;const{isInitialState:t}=this;this.forEachItem(n=>{if(!n.group)return;const r=n.columnGroup;if(r){const i=e[r.getId()];(i!=null||t)&&(n.expanded=!!i)}})}buildTreeFromWhatGridIsDisplaying(){_rt(this.colModel,this.setColumnLayout.bind(this))}setColumnLayout(e){const t=Lrt(this.colModel,e);this.buildListModel(t),this.groupsExist=e.some(n=>n&&typeof n.children<"u"),this.markFilteredColumns(),this.flattenAndFilterModel()}buildTreeFromProvidedColumnDefs(){const e=this.colModel;this.buildListModel(e.getColDefColTree()),this.groupsExist=!!e.colDefCols?.treeDepth}buildListModel(e){const t=this.onColumnExpanded.bind(this),n=s=>{s.addEventListener("expandedChanged",t);const l=s.removeEventListener.bind(s,"expandedChanged",t);this.destroyColumnItemFuncs.push(l)},r=this.beans.colNames,i=(s,l,c)=>{s.forEach(u=>{zs(u)?o(u,l,c):a(u,l,c)})},o=(s,l,c)=>{const u=s.getColGroupDef();if(u&&u.suppressColumnsToolPanel)return;if(s.isPadding()){i(s.getChildren(),l,c);return}const p=r.getDisplayNameForProvidedColumnGroup(null,s,"columnToolPanel"),h=new mRe(p,s,l,!0,this.expandGroupsByDefault);c.push(h),n(h),i(s.getChildren(),l+1,h.children)},a=(s,l,c)=>{if(s.getColDef()&&s.getColDef().suppressColumnsToolPanel)return;const d=r.getDisplayNameForColumn(s,"columnToolPanel");c.push(new mRe(d,s,l))};this.destroyColumnTree(),i(e,0,this.allColsTree)}onColumnExpanded(){this.flattenAndFilterModel()}flattenAndFilterModel(){this.displayedColsList=[];const e=r=>{r.passesFilter&&(this.displayedColsList.push(r),r.group&&r.expanded&&r.children.forEach(e))},t=this.virtualList;this.allColsTree.forEach(e),t.setModel(new zUt(this.displayedColsList));let n=null;this.skipRefocus||(n=t.getLastFocusedRow()),t.refresh(),n!=null&&this.focusRowIfAlive(n),this.notifyListeners(),this.refreshAriaLabel()}refreshAriaLabel(){const e=this.getLocaleTextFunc(),t=e("ariaColumnPanelList","Column List"),n=e("columns","Columns"),r=this.displayedColsList.length;Es(this.virtualList.getAriaElement(),`${t} ${r} ${n}`)}focusRowIfAlive(e){return e===-1?Promise.resolve():new Promise(t=>{window.setTimeout(()=>{this.isAlive()&&this.virtualList.focusRow(e),t()},0)})}forEachItem(e){const t=r=>{r.forEach(i=>{e(i),i.group&&t(i.children)})},n=this.allColsTree;n&&t(n)}doSetExpandedAll(e){this.forEachItem(t=>{t.group&&(t.expanded=e)})}setGroupsExpanded(e,t){if(!t){this.doSetExpandedAll(e);return}const n=[];this.forEachItem(i=>{if(!i.group)return;const o=i.columnGroup.getId();t.indexOf(o)>=0&&(i.expanded=e,n.push(o))});const r=t.filter(i=>!n.includes(i));r.length>0&&ut(157,{unrecognisedGroupIds:r})}getExpandState(){let e=0,t=0;return this.forEachItem(n=>{n.group&&(n.expanded?e++:t++)}),e>0&&t>0?2:t>0?1:0}doSetSelectedAll(e){Nrt(this.beans,this.allColsTree,e,this.eventType)}getSelectionState(){let e=0,t=0;const n=this.colModel.isPivotMode();if(this.forEachItem(r=>{if(r.group||!r.passesFilter)return;const i=r.column,o=i.getColDef();let a;if(n){if(!i.isAllowPivot()&&!i.isAllowRowGroup()&&!i.isAllowValue())return;a=i.isValueActive()||i.isPivotActive()||i.isRowGroupActive()}else{if(o.lockVisible)return;a=i.isVisible()}a?e++:t++}),!(e>0&&t>0))return!(e===0||t>0)}setFilterText(e){this.filterText=Ut(e)?e.toLowerCase():null,this.markFilteredColumns(),this.flattenAndFilterModel()}markFilteredColumns(){const e=n=>{if(!Ut(this.filterText))return!0;const r=n.displayName;return r==null||r.toLowerCase().indexOf(this.filterText)!==-1},t=(n,r)=>{let i=!1;if(n.group){const a=e(n);n.children.forEach(s=>{const l=t(s,a||r);l&&(i=l)})}const o=r||i?!0:e(n);return n.passesFilter=o,o};this.allColsTree.forEach(n=>t(n,!1))}notifyListeners(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()}fireGroupExpandedEvent(){const e=this.getExpandState();this.dispatchLocalEvent({type:"groupExpanded",state:e})}fireSelectionChangedEvent(){if(!this.allColsTree)return;const e=this.getSelectionState();this.dispatchLocalEvent({type:"selectionChanged",state:e})}getExpandedGroups(){const e=[];return this.allColsTree&&this.forEachItem(t=>{t.group&&t.expanded&&e.push(t.columnGroup.getId())}),e}},RUt={selector:"AG-PRIMARY-COLS-LIST",component:EUt},IUt={tag:"div",cls:"ag-column-select",children:[{tag:"ag-primary-cols-header",ref:"primaryColsHeaderPanel"},{tag:"ag-primary-cols-list",ref:"primaryColsListPanel"}]},Hrt=class extends Gt{constructor(){super(IUt,[uUt,RUt]),this.primaryColsHeaderPanel=at,this.primaryColsListPanel=at,this.registerCSS(aUt)}init(e,t,n){const{primaryColsHeaderPanel:r,primaryColsListPanel:i}=this;r.init(t);const o=t.suppressColumnFilter,a=t.suppressColumnSelectAll;t.suppressColumnExpandAll&&o&&a&&r.setDisplayed(!1),this.addManagedListeners(i,{groupExpanded:l=>{r.setExpandState(l.state),t.onStateUpdated()},selectionChanged:l=>r.setSelectionState(l.state)}),i.init(t,e,n),this.addManagedListeners(r,{expandAll:i.doSetExpandedAll.bind(i,!0),collapseAll:i.doSetExpandedAll.bind(i,!1),selectAll:i.doSetSelectedAll.bind(i,!0),unselectAll:i.doSetSelectedAll.bind(i,!1),filterChanged:l=>i.setFilterText(l.filterText)}),this.positionableFeature=this.createManagedBean(new SK(this.getGui(),{minHeight:100}))}toggleResizable(e){this.positionableFeature.setResizable(e?{bottom:!0}:!1)}expandGroups(e){this.primaryColsListPanel.setGroupsExpanded(!0,e)}collapseGroups(e){this.primaryColsListPanel.setGroupsExpanded(!1,e)}setColumnLayout(e){this.primaryColsListPanel.setColumnLayout(e)}syncLayoutWithGrid(){this.primaryColsListPanel.onColumnsChanged()}getExpandedGroups(){return this.primaryColsListPanel.getExpandedGroups()}},PUt=".ag-column-panel{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.ag-pivot-mode-panel{display:flex;height:var(--ag-header-height)}.ag-pivot-mode-select{align-items:center;display:flex}:where(.ag-ltr) .ag-pivot-mode-select{margin-left:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-pivot-mode-select{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-column-panel-column-select{border-bottom:var(--ag-tool-panel-separator-border)}.ag-column-panel-column-select:where(:nth-child(n+2 of :not(.ag-hidden))){border-top:var(--ag-tool-panel-separator-border)}:where(.ag-column-panel) .ag-column-drop-vertical{flex:1 1 0px;min-height:50px;&:where(:not(.ag-last-column-drop)){border-bottom:var(--ag-tool-panel-separator-border)}}",DUt=class extends Gt{constructor(){super({tag:"div",cls:"ag-column-panel"}),this.initialised=!1,this.childDestroyFuncs=[],this.registerCSS(PUt)}wireBeans(e){this.colToolPanelFactory=e.colToolPanelFactory}setVisible(e){super.setDisplayed(e),e&&!this.initialised&&this.init(this.params)}init(e){const n={...Vn(this.gos,{suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1}),...e};this.params=n;const{childDestroyFuncs:r,colToolPanelFactory:i,gos:o}=this,a=o.isModuleRegistered("SharedPivot"),s=a||o.isModuleRegistered("SharedRowGrouping");!n.suppressPivotMode&&i&&a&&(this.pivotModePanel=i.createPivotModePanel(this,r));const l=this.createBean(new Hrt);if(this.primaryColsPanel=l,r.push(()=>this.destroyBean(this.primaryColsPanel)),l.init(!0,n,"toolPanelUi"),l.addCss("ag-column-panel-column-select"),this.appendChild(l),i){!n.suppressRowGroups&&s&&(this.rowGroupDropZonePanel=i.createRowGroupPanel(this,r)),!n.suppressValues&&s&&(this.valuesDropZonePanel=i.createValuesPanel(this,r)),!n.suppressPivots&&a&&(this.pivotDropZonePanel=i.createPivotPanel(this,r)),this.setLastVisible();const[c]=this.addManagedEventListeners({columnPivotModeChanged:()=>{this.resetChildrenHeight(),this.setLastVisible()}});r.push(()=>c())}this.initialised=!0}setPivotModeSectionVisible(e){const t=this.colToolPanelFactory;t&&(this.pivotModePanel=t.setPanelVisible(this.pivotModePanel,e,t.createPivotModePanel.bind(t,this,this.childDestroyFuncs,!0)),this.setLastVisible())}setRowGroupsSectionVisible(e){const t=this.colToolPanelFactory;t&&(this.rowGroupDropZonePanel=t.setPanelVisible(this.rowGroupDropZonePanel,e,t.createRowGroupPanel.bind(t,this,this.childDestroyFuncs)),this.setLastVisible())}setValuesSectionVisible(e){const t=this.colToolPanelFactory;t&&(this.valuesDropZonePanel=t.setPanelVisible(this.valuesDropZonePanel,e,t.createValuesPanel.bind(t,this,this.childDestroyFuncs)),this.setLastVisible())}setPivotSectionVisible(e){const t=this.colToolPanelFactory;t&&(this.pivotDropZonePanel=t.setPanelVisible(this.pivotDropZonePanel,e,t.createPivotPanel.bind(t,this,this.childDestroyFuncs)),this.pivotDropZonePanel?.setDisplayed(e),this.setLastVisible())}setResizers(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach(e=>{if(!e)return;const t=e.getGui();e.toggleResizable(!t.classList.contains("ag-last-column-drop")&&!t.classList.contains("ag-hidden"))})}setLastVisible(){const e=this.getGui();Array.prototype.slice.call(e.querySelectorAll(".ag-column-drop")).forEach(i=>i.classList.remove("ag-last-column-drop"));const n=e.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),r=zr(n);r&&r.classList.add("ag-last-column-drop"),this.setResizers()}resetChildrenHeight(){const t=this.getGui().children;for(let n=0;n<t.length;n++){const{style:r}=t[n];r.removeProperty("height"),r.removeProperty("flex")}}expandColumnGroups(e){this.primaryColsPanel.expandGroups(e)}collapseColumnGroups(e){this.primaryColsPanel.collapseGroups(e)}setColumnLayout(e){this.primaryColsPanel.setColumnLayout(e)}syncLayoutWithGrid(){this.primaryColsPanel.syncLayoutWithGrid()}destroyChildren(){const e=this.childDestroyFuncs;e.forEach(t=>t()),e.length=0,Xi(this.getGui())}refresh(e){return this.destroyChildren(),this.init(e),!0}getState(){return{expandedGroupIds:this.primaryColsPanel.getExpandedGroups()}}destroy(){this.destroyChildren(),super.destroy()}},kUt=".ag-column-drop{align-items:center;display:inline-flex;overflow:auto;position:relative;width:100%}.ag-column-drop-list{align-items:center;display:flex}.ag-column-drop-cell{align-items:center;background-color:var(--ag-column-drop-cell-background-color);border:var(--ag-column-drop-cell-border);border-radius:500px;color:var(--ag-column-drop-cell-text-color);display:flex;padding:calc(var(--ag-spacing)*.25);position:relative;&:focus-visible{box-shadow:var(--ag-focus-shadow)}:where(.ag-drag-handle){color:var(--ag-column-drop-cell-drag-handle-color)}}:where(.ag-ltr) .ag-column-drop-cell{padding-left:calc(var(--ag-spacing)*.75)}:where(.ag-rtl) .ag-column-drop-cell{padding-right:calc(var(--ag-spacing)*.75)}.ag-column-drop-cell-text{flex:1 1 auto;margin:0 var(--ag-spacing);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-drop-vertical{align-items:stretch;display:flex;flex-direction:column;min-height:75px;overflow:hidden}.ag-column-drop-vertical-title-bar{align-items:center;display:flex;flex:none;padding:var(--ag-widget-container-vertical-padding) calc(var(--ag-spacing)*2) 0}.ag-column-drop-vertical-list{align-items:stretch;flex-direction:column;flex-grow:1;overflow-x:auto;padding-bottom:var(--ag-spacing);padding-left:var(--ag-spacing);padding-right:var(--ag-spacing);position:relative;>*{flex:none}}:where(.ag-column-drop-empty) .ag-column-drop-vertical-list{overflow:hidden}.ag-column-drop-cell-button{cursor:pointer;min-width:0;opacity:.75;&:hover{opacity:1}}.ag-column-drop-wrapper{display:flex}.ag-column-drop-horizontal-half-width{width:50%!important}.ag-column-drop-cell-ghost{opacity:.5}.ag-column-drop-horizontal{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;white-space:nowrap}:where(.ag-ltr) .ag-column-drop-horizontal{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-column-drop-horizontal{padding-right:var(--ag-cell-horizontal-padding)}.ag-column-drop-horizontal-list{gap:var(--ag-cell-widget-spacing)}.ag-column-drop-vertical-cell{margin-top:var(--ag-spacing)}:where(.ag-ltr) .ag-column-drop-vertical-icon{margin-right:var(--ag-widget-horizontal-spacing)}:where(.ag-rtl) .ag-column-drop-vertical-icon{margin-left:var(--ag-widget-horizontal-spacing)}.ag-select-agg-func-popup{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);height:calc(var(--ag-spacing)*5*3.5);padding:0;position:absolute}.ag-select-agg-func-virtual-list-item{cursor:default;&:hover{background-color:var(--ag-selected-row-background-color)}}:where(.ag-ltr) .ag-select-agg-func-virtual-list-item{padding-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-select-agg-func-virtual-list-item{padding-right:calc(var(--ag-spacing)*2)}:where(.ag-ltr) .ag-column-drop-horizontal-half-width:where(:not(:last-child)){border-right:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-column-drop-horizontal-half-width:where(:not(:last-child)){border-left:1px solid var(--ag-border-color)}";function MRe(e,t,n){e==null||t==null||e.splice(n,0,...t)}var LUt={tag:"div",cls:"ag-unselectable",role:"presentation"},Vrt=class extends Gt{constructor(e){super(LUt),this.horizontal=e,this.state="notDragging",this.guiDestroyFunctions=[],this.childPillComponents=[],this.resizeEnabled=!1,this.addElementClasses(this.getGui()),this.ePillDropList=Nr({tag:"div"}),this.addElementClasses(this.ePillDropList,"list"),this.registerCSS(kUt)}toggleResizable(e){this.positionableFeature.setResizable(e?{bottom:!0}:!1),this.resizeEnabled=e}isSourceEventFromTarget(e){const{dropZoneTarget:t,dragSource:n}=e;return t.contains(n.eElement)}destroy(){this.destroyGui(),super.destroy()}destroyGui(){this.guiDestroyFunctions.forEach(e=>e()),this.guiDestroyFunctions.length=0,this.childPillComponents.length=0,Xi(this.getGui()),Xi(this.ePillDropList)}init(e){this.params=e??{},this.createManagedBean(new Mw(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.onKeyDown.bind(this)})),this.setupDropTarget(),this.positionableFeature=new SK(this.getGui()),this.createManagedBean(this.positionableFeature),this.refreshGui(),Es(this.ePillDropList,this.getAriaLabel())}onTabKeyDown(e){const t=lm(this.getFocusableElement(),null,!0),n=t.length;if(n===0)return;const{shiftKey:r}=e,i=Gi(this.beans),o=i===t[0],a=i===zr(t);n===1||o&&r||a&&!r||t[r?0:n-1].focus()}onKeyDown(e){const{key:t}=e,n=!this.horizontal;let r=t===Qe.DOWN,i=t===Qe.UP;if(!n){const o=this.gos.get("enableRtl");r=!o&&t===Qe.RIGHT||o&&t===Qe.LEFT,i=!o&&t===Qe.LEFT||o&&t===Qe.RIGHT}if(!(!r&&!i))if(e.preventDefault(),e.shiftKey)this.moveFocusedItem(i);else{const o=Md(this.beans,this.getFocusableElement(),!1,i);o&&o.focus()}}moveFocusedItem(e){const t=this.getFocusedItem();if(t===-1)return;const n=e?-1:1;if(!this.normalizeAndUpdateInsertIndex(t,t+n))return;const i=this.childPillComponents[t];if(!i.isMovable())return;const o=i.getItem();this.focusItemAtIndex(this.insertIndex),this.rearrangeItems([o],!0)}addElementClasses(e,t){t=t?`-${t}`:"";const n=this.horizontal?"horizontal":"vertical";e.classList.add(`ag-column-drop${t}`,`ag-column-drop-${n}${t}`)}setupDropTarget(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),onDragCancel:this.onDragCancel.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.beans.dragAndDrop?.addDropTarget(this.dropTarget)}minimumAllowedNewInsertIndex(){return 0}checkInsertIndex(e){const t=this.getNewInsertIndex(e);return t<0?!1:this.normalizeAndUpdateInsertIndex(this.insertIndex,t)}normalizeAndUpdateInsertIndex(e,t){const n=this.minimumAllowedNewInsertIndex(),r=Math.max(n,t),i=r!==e;return i&&(this.insertIndex=r),i}getNewInsertIndex(e){const t=e.event,n=this.horizontal?t.clientX:t.clientY,r=this.childPillComponents.map(o=>o.getGui().getBoundingClientRect()),i=r.findIndex(o=>this.horizontal?o.right>n&&o.left<n:o.top<n&&o.bottom>n);if(i===-1){const o=this.gos.get("enableRtl");return r.every(l=>n>(this.horizontal?l.right:l.bottom))?o&&this.horizontal?0:this.childPillComponents.length:r.every(l=>n<(this.horizontal?l.left:l.top))?o&&this.horizontal?this.childPillComponents.length:0:this.insertIndex}return this.insertIndex<=i?i+1:i}checkDragStartedBySelf(e){this.state==="notDragging"&&(this.state="rearrangeItems",this.potentialDndItems=this.getItems(e.dragSource.getDragItem()),this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())}onDragging(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()}handleDragEnterEnd(e){}onDragEnter(e){const t=this.getItems(e.dragSource.getDragItem());this.state="newItemsIn";const n=t.filter(i=>this.isItemDroppable(i,e)),r=n.every(i=>this.childPillComponents.map(o=>o.getItem()).indexOf(i)!==-1);if(n.length!==0){if(this.potentialDndItems=n,r){this.state="notDragging";return}this.handleDragEnterEnd(e),this.checkInsertIndex(e),this.refreshGui()}}isPotentialDndItems(){return!!this.potentialDndItems?.length}handleDragLeaveEnd(e){}onDragLeave(e){if(this.state==="rearrangeItems"){const t=this.getItems(e.dragSource.getDragItem());this.removeItems(t)}this.isPotentialDndItems()&&(this.handleDragLeaveEnd(e),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}onDragCancel(e){this.isPotentialDndItems()&&(this.state==="newItemsIn"&&this.handleDragLeaveEnd(e),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}onDragStop(){this.isPotentialDndItems()&&(this.state==="newItemsIn"?this.addItems(this.potentialDndItems):this.rearrangeItems(this.potentialDndItems),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}removeItems(e){const t=this.getExistingItems().filter(n=>!e.includes(n));this.updateItems(t)}addItems(e){if(!e)return;const t=this.getExistingItems().slice(),n=e.filter(r=>t.indexOf(r)<0);MRe(t,n,this.insertIndex),this.updateItems(t)}addItem(e){this.insertIndex=this.getExistingItems().length,this.addItems([e]),this.refreshGui()}rearrangeItems(e,t){let n;return t?n=this.getExistingItems().filter(r=>e.indexOf(r)===-1):n=this.getNonGhostItems().slice(),MRe(n,e,this.insertIndex),yd(n,this.getExistingItems())?!1:(this.updateItems(n),!0)}refreshGui(){let e=0;this.horizontal||(e=this.ePillDropList.scrollTop);const t=this.resizeEnabled,n=this.getFocusedItem(),{eGridDiv:r}=this.beans,i=CK();let o=null;i&&(o=Md(this.beans,r)??Md(this.beans,r,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addItemsToGui(),e!==0&&(this.ePillDropList.scrollTop=e),t&&this.toggleResizable(t),i&&this.restoreFocus(n,o)}getFocusedItem(){const e=this.getGui(),t=Gi(this.beans);return e.contains(t)?Array.from(e.querySelectorAll(".ag-column-drop-cell")).indexOf(t):-1}focusItemAtIndex(e){const t=this.getGui(),r=Array.from(t.querySelectorAll(".ag-column-drop-cell"))[e];r&&r.focus({preventScroll:!0})}restoreFocus(e,t){const n=this.getGui(),r=Array.from(n.querySelectorAll(".ag-column-drop-cell"));if(e===-1)return;r.length===0&&t.focus();const i=Math.min(r.length-1,e),o=r[i];o&&o.focus()}focusList(e){const t=e?this.childPillComponents.length-1:0;this.restoreFocus(t,this.getFocusableElement())}getNonGhostItems(){const e=this.getExistingItems();return this.isPotentialDndItems()?e.filter(t=>!this.potentialDndItems.includes(t)):e}addItemsToGui(){const t=this.getNonGhostItems().map(n=>this.createItemComponent(n,!1));if(this.isPotentialDndItems()){const n=this.potentialDndItems.map(r=>this.createItemComponent(r,!0));this.insertIndex>=t.length?t.push(...n):t.splice(this.insertIndex,0,...n)}this.appendChild(this.ePillDropList),t.forEach((n,r)=>{r>0&&this.addArrow(this.ePillDropList),this.ePillDropList.appendChild(n.getGui())}),this.addAriaLabelsToComponents()}addAriaLabelsToComponents(){const{childPillComponents:e,ePillDropList:t}=this,n=e.length;C0(t,n===0?"presentation":"listbox");for(let r=0;r<n;r++){const o=e[r].getGui();dK(o,r+1),uK(o,n)}}createItemComponent(e,t){const n=this.createPillComponent(e,this.dropTarget,t,this.horizontal);return n.addEventListener("columnRemove",this.removeItems.bind(this,[e])),this.createBean(n),this.guiDestroyFunctions.push(()=>this.destroyBean(n)),t||this.childPillComponents.push(n),n}addIconAndTitleToGui(){const{title:e,icon:t}=this.params;if(!e||!t)return;const n=Nr({tag:"div"});if(q2e(n,!0),this.addElementClasses(n,"title-bar"),this.addElementClasses(t,"icon"),this.toggleCss("ag-column-drop-empty",this.isExistingItemsEmpty()),n.appendChild(t),!this.horizontal){const r=Nr({tag:"span"});this.addElementClasses(r,"title"),r.textContent=e,n.appendChild(r)}this.appendChild(n)}isExistingItemsEmpty(){return this.getExistingItems().length===0}addEmptyMessageToGui(){const{emptyMessage:e}=this.params;if(!e||!this.isExistingItemsEmpty()||this.isPotentialDndItems())return;const t=Nr({tag:"span"});t.textContent=e,this.addElementClasses(t,"empty-message"),this.ePillDropList.appendChild(t)}addArrow(e){if(this.horizontal){const t=this.gos.get("enableRtl"),n=er(t?"panelDelimiterRtl":"panelDelimiter",this.beans);this.addElementClasses(n,"cell-separator"),e.appendChild(n)}}},_Ut={tag:"span",role:"option",children:[{tag:"span",ref:"eDragHandle",cls:"ag-drag-handle ag-column-drop-cell-drag-handle",role:"presentation"},{tag:"span",ref:"eText",cls:"ag-column-drop-cell-text",attrs:{"aria-hidden":"true"}},{tag:"span",ref:"eButton",cls:"ag-column-drop-cell-button",role:"presentation"}]},Grt=class extends Gt{constructor(e,t,n,r,i){super(),this.dragSourceDropTarget=e,this.ghost=t,this.horizontal=n,this.template=r,this.agComponents=i,this.eText=at,this.eDragHandle=at,this.eButton=at}postConstruct(){this.setTemplate(this.template??_Ut,this.agComponents);const e=this.getGui(),{beans:t,eDragHandle:n,eText:r,eButton:i}=this;this.addElementClasses(e),this.addElementClasses(n,"drag-handle"),this.addElementClasses(r,"text"),this.addElementClasses(i,"button"),n.appendChild(er("columnDrag",t)),i.appendChild(er("cancel",t)),this.tooltipFeature=this.createOptionalManagedBean(t.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui()})),this.setupComponents(),!this.ghost&&this.isDraggable()&&this.addDragSource(),this.setupAria(),this.setupTooltip(),this.activateTabIndex(),this.refreshDraggable()}isDraggable(){return!0}refreshDraggable(){this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!this.isDraggable())}setupAria(){const e=this.getLocaleTextFunc(),t=[this.getAriaDisplayName()];this.addAdditionalAriaInstructions(t,e),Es(this.getGui(),t.join(". "))}addAdditionalAriaInstructions(e,t){if(this.isRemovable()){const n=t("ariaDropZoneColumnComponentDescription","Press DELETE to remove");e.push(n)}}setupTooltip(){const e=()=>this.tooltipFeature?.setTooltipAndRefresh(this.getTooltip());e(),this.addManagedEventListeners({newColumnsLoaded:e})}getDragSourceId(){}getDefaultIconName(){return"notAllowed"}addDragSource(){const{beans:{dragAndDrop:e},eDragHandle:t}=this,n=this.createGetDragItem(),r=this.getDefaultIconName(),i={type:this.getDragSourceType(),sourceId:this.getDragSourceId(),eElement:t,getDefaultIconName:()=>r,getDragItem:n,dragItemName:this.getDisplayName()};e?.addDragSource(i,!0),this.addDestroyFunc(()=>e?.removeDragSource(i))}setupComponents(){this.eText.textContent=this.getDisplayValue(),this.setupRemove(),this.ghost&&this.addCss("ag-column-drop-cell-ghost")}isRemovable(){return!0}refreshRemove(){Nn(this.eButton,this.isRemovable())}setupRemove(){this.refreshRemove();const e={type:"columnRemove"};this.addGuiEventListener("keydown",n=>this.onKeyDown(n)),this.addManagedElementListeners(this.eButton,{click:n=>{this.dispatchLocalEvent(e),n.stopPropagation()}});const t=new sy(this.eButton);this.addManagedListeners(t,{tap:()=>this.dispatchLocalEvent(e)}),this.addDestroyFunc(t.destroy.bind(t))}onKeyDown(e){e.key===Qe.DELETE&&this.isRemovable()&&(e.preventDefault(),this.dispatchLocalEvent({type:"columnRemove"}))}getDisplayValue(){return this.getDisplayName()}addElementClasses(e,t){t=t?`-${t}`:"";const n=this.horizontal?"horizontal":"vertical";e.classList.add(`ag-column-drop-cell${t}`,`ag-column-drop-${n}-cell${t}`)}destroy(){super.destroy(),this.dragSourceDropTarget=null}},NUt=class extends Grt{constructor(e,t,n,r,i){super(t,n,i),this.column=e,this.dropZonePurpose=r,this.eSortIndicator=at,this.popupShowing=!1}postConstruct(){const{sortSvc:e,colNames:t}=this.beans;this.template={tag:"span",role:"option",children:[{tag:"span",ref:"eDragHandle",cls:"ag-drag-handle ag-column-drop-cell-drag-handle",role:"presentation"},{tag:"span",ref:"eText",cls:"ag-column-drop-cell-text",attrs:{"aria-hidden":"true"}},e?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:void 0,{tag:"span",ref:"eButton",cls:"ag-column-drop-cell-button",role:"presentation"}]},e&&(this.agComponents=[e.getSortIndicatorSelector()]),this.displayName=t.getDisplayNameForColumn(this.column,"columnDrop"),super.postConstruct(),e&&(this.setupSort(),this.addManagedEventListeners({sortChanged:()=>{this.setupAria()}})),this.isGroupingZone()&&this.addManagedPropertyListener("groupLockGroupColumns",()=>{this.refreshRemove(),this.refreshDraggable(),this.setupAria()})}getItem(){return this.column}getDisplayName(){return this.displayName}getTooltip(){return this.column.getColDef().headerTooltip}addAdditionalAriaInstructions(e,t){const n=this.gos.get("rowGroupPanelSuppressSort"),r=this.gos.get("functionsReadOnly");if(this.isAggregationZone()&&!r){const i=t("ariaDropZoneColumnValueItemDescription","Press ENTER to change the aggregation type");e.push(i)}if(this.isGroupingZone()&&this.column.isSortable()&&!n){const i=t("ariaDropZoneColumnGroupItemDescription","Press ENTER to sort");e.push(i)}super.addAdditionalAriaInstructions(e,t)}isMovable(){return this.isDraggable()}isDraggable(){return this.isReadOnly()}isRemovable(){return this.isReadOnly()}isReadOnly(){return!this.isGroupingAndLocked()&&!this.gos.get("functionsReadOnly")}getAriaDisplayName(){const e=this.getLocaleTextFunc(),{name:t,aggFuncName:n}=this.getColumnAndAggFuncName(),r=e("ariaDropZoneColumnComponentAggFuncSeparator"," of "),i={asc:e("ariaDropZoneColumnComponentSortAscending","ascending"),desc:e("ariaDropZoneColumnComponentSortDescending","descending")},o=this.column.getSort(),a=this.gos.get("rowGroupPanelSuppressSort");return[n&&`${n}${r}`,t,this.isGroupingZone()&&!a&&o&&`, ${i[o]}`].filter(s=>!!s).join("")}getColumnAndAggFuncName(){const e=this.displayName;let t="";if(this.isAggregationZone()){const n=this.column.getAggFunc(),r=typeof n=="string"?n:"agg";t=this.getLocaleTextFunc()(r,r)}return{name:e,aggFuncName:t}}setupSort(){if(!(!this.column.isSortable()||!this.isGroupingZone())&&!this.gos.get("rowGroupPanelSuppressSort")){this.eSortIndicator.setupSort(this.column,!0);const e=t=>{t.preventDefault(),this.beans.sortSvc.progressSortFromEvent(this.column,t)};this.addGuiEventListener("click",e),this.addGuiEventListener("keydown",t=>{t.key===Qe.ENTER&&this.isGroupingZone()&&e(t)})}}getDefaultIconName(){return"hide"}createGetDragItem(){const{column:e}=this;return()=>{const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t}}}setupComponents(){super.setupComponents(),this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))}onKeyDown(e){super.onKeyDown(e),e.key===Qe.ENTER&&this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&(e.preventDefault(),this.onShowAggFuncSelection())}getDisplayValue(){const{name:e,aggFuncName:t}=this.getColumnAndAggFuncName();return this.isAggregationZone()?`${t}(${e})`:e}onShowAggFuncSelection(){if(this.popupShowing)return;this.popupShowing=!0;const{aggFuncSvc:e,popupSvc:t}=this.beans,n=new fD({cssIdentifier:"select-agg-func"}),r=e.getFuncNames(this.column),i=this.getGui(),o=n.getGui();n.setModel({getRow:function(p){return r[p]},getRowCount:function(){return r.length}}),this.createBean(n);const a=Nr({tag:"div",cls:"ag-select-agg-func-popup"});a.style.top="0px",a.style.left="0px",a.appendChild(o),a.style.width=`${i.clientWidth}px`;const[s]=this.addManagedElementListeners(a,{focusout:p=>{!a.contains(p.relatedTarget)&&u&&u.hideFunc()}}),l=p=>{this.destroyBean(n),this.popupShowing=!1,p?.key==="Escape"&&i.focus(),s&&s()},c=this.getLocaleTextFunc(),u=t.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:l,ariaLabel:c("ariaLabelAggregationFunction","Aggregation Function")});u&&n.setComponentCreator(this.createAggSelect.bind(this,u.hideFunc)),n.addGuiEventListener("keydown",p=>{if(p.key===Qe.ENTER||p.key===Qe.SPACE){const h=n.getLastFocusedRow();if(h==null)return;const g=n.getComponentAt(h);g&&g.selectItem()}}),t.positionPopupByComponent({type:"aggFuncSelect",eventSource:i,ePopup:a,keepWithinBounds:!0,column:this.column,position:"under"}),n.refresh();let d=r.findIndex(p=>p===this.column.getAggFunc());d===-1&&(d=0),n.focusRow(d)}createAggSelect(e,t){const n=()=>{e(),this.getGui().focus(),this.beans.valueColsSvc?.setColumnAggFunc?.(this.column,t,"toolPanelDragAndDrop")},r=this.getLocaleTextFunc(),i=t.toString(),o=r(i,i);return new FUt(n,o)}isGroupingAndLocked(){return this.isGroupingZone()&&gW(this.column,this.beans)}isAggregationZone(){return this.dropZonePurpose==="aggregation"}isGroupingZone(){return this.dropZonePurpose==="rowGroup"}getDragSourceType(){return bm.ToolPanel}destroy(){super.destroy(),this.column=null}},FUt=class extends Gt{constructor(e,t){super({tag:"div",cls:"ag-select-agg-func-item",children:t}),this.selectItem=e,this.addGuiEventListener("click",this.selectItem)}},$ye=class extends Vrt{constructor(e,t){super(e),this.dropZonePurpose=t,this.addElementClasses(this.getGui(),this.dropZonePurpose.toLowerCase())}init(e){super.init(e),this.addManagedEventListeners({newColumnsLoaded:this.refreshGui.bind(this)}),this.addManagedPropertyListeners(["functionsReadOnly","rowGroupPanelSuppressSort","groupLockGroupColumns"],this.refreshGui.bind(this))}getItems(e){return e.columns??[]}isInterestedIn(e){return e===bm.HeaderCell||e===bm.ToolPanel}minimumAllowedNewInsertIndex(){const{gos:e,rowGroupColsSvc:t}=this.beans,n=e.get("groupLockGroupColumns"),r=t?.columns.length??0;return n===-1?r:Math.min(n,r)}showOrHideColumnOnExit(e){return this.isRowGroupPanel()&&get(this.gos,!0)&&!e.fromNudge}handleDragEnterEnd(e){if(this.showOrHideColumnOnExit(e)){const r=e.dragSource.getDragItem().columns;this.setColumnsVisible(r,!1,"uiColumnDragged")}}handleDragLeaveEnd(e){if(this.showOrHideColumnOnExit(e)){const n=e.dragSource.getDragItem();this.setColumnsVisible(n.columns,!0,"uiColumnDragged")}}setColumnsVisible(e,t,n){if(e){const r=e.filter(i=>!i.getColDef().lockVisible);this.beans.colModel.setColsVisible(r,t,n)}}isRowGroupPanel(){return this.dropZonePurpose==="rowGroup"}createPillComponent(e,t,n,r){return new NUt(e,t,n,this.dropZonePurpose,r)}},$rt=class extends $ye{constructor(e){super(e,"pivot")}postConstruct(){const e=this.getLocaleTextFunc(),t=e("pivotColumnsEmptyMessage","Drag here to set column labels"),n=e("pivots","Column Labels");super.init({icon:er("pivotPanel",this.beans,null),emptyMessage:t,title:n}),this.addManagedEventListeners({newColumnsLoaded:this.refresh.bind(this),columnPivotChanged:this.refresh.bind(this),columnPivotModeChanged:this.checkVisibility.bind(this)}),this.refresh()}getAriaLabel(){return this.getLocaleTextFunc()("ariaPivotDropZonePanelLabel","Column Labels")}refresh(){this.checkVisibility(),this.refreshGui()}checkVisibility(){const e=this.beans.colModel,t=e.isPivotMode();if(this.horizontal)switch(this.gos.get("pivotPanelShow")){case"always":this.setDisplayed(t);break;case"onlyWhenPivoting":{const n=e.isPivotActive();this.setDisplayed(t&&n);break}default:this.setDisplayed(!1);break}else this.setDisplayed(t)}isItemDroppable(e,t){return this.gos.get("functionsReadOnly")||!e.isPrimary()?!1:e.isAllowPivot()&&(!e.isPivotActive()||this.isSourceEventFromTarget(t))}updateItems(e){this.beans.pivotColsSvc?.setColumns(e,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"pivot":"notAllowed"}getExistingItems(){return this.beans.pivotColsSvc?.columns??[]}},Urt=class extends $ye{constructor(e){super(e,"rowGroup")}postConstruct(){const e=this.getLocaleTextFunc(),t=e("rowGroupColumnsEmptyMessage","Drag here to set row groups"),n=e("groups","Row Groups");super.init({icon:er("rowGroupPanel",this.beans,null),emptyMessage:t,title:n}),this.addManagedEventListeners({columnRowGroupChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.getLocaleTextFunc()("ariaRowGroupDropZonePanelLabel","Row Groups")}isItemDroppable(e,t){return this.gos.get("functionsReadOnly")||!e.isPrimary()||e.colDef.showRowGroup?!1:e.isAllowRowGroup()&&(!e.isRowGroupActive()||this.isSourceEventFromTarget(t))}updateItems(e){this.beans.rowGroupColsSvc?.setColumns(e,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"group":"notAllowed"}getExistingItems(){return this.beans.rowGroupColsSvc?.columns??[]}},WUt=class extends $ye{constructor(e){super(e,"aggregation")}postConstruct(){const e=this.getLocaleTextFunc(),t=e("valueColumnsEmptyMessage","Drag here to aggregate"),n=e("values","Values");super.init({icon:er("valuePanel",this.beans,null),emptyMessage:t,title:n}),this.addManagedEventListeners({columnValueChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.getLocaleTextFunc()("ariaValuesDropZonePanelLabel","Values")}getIconName(){return this.isPotentialDndItems()?"aggregate":"notAllowed"}isItemDroppable(e,t){return this.gos.get("functionsReadOnly")||!e.isPrimary()?!1:e.isAllowValue()&&(!e.isValueActive()||this.isSourceEventFromTarget(t))}updateItems(e){this.beans.valueColsSvc?.setColumns(e,"toolPanelUi")}getExistingItems(){return this.beans.valueColsSvc?.columns??[]}},qUt={tag:"div",cls:"ag-pivot-mode-panel",children:[{tag:"ag-toggle-button",ref:"cbPivotMode",cls:"ag-pivot-mode-select"}]},BUt=class extends Gt{constructor(){super(...arguments),this.cbPivotMode=at}postConstruct(){this.setTemplate(qUt,[D_t]);const e=this.cbPivotMode,{colModel:t,ctrlsSvc:n,gos:r}=this.beans;e.setValue(t.isPivotMode());const i=this.getLocaleTextFunc();e.setLabel(i("pivotMode","Pivot Mode"));const o=()=>{const s=!!e.getValue();s!==t.isPivotMode()&&(r.updateGridOptions({options:{pivotMode:s},source:"toolPanelUi"}),n.getHeaderRowContainerCtrls().forEach(l=>l.refresh()))},a=()=>{const s=t.isPivotMode();e.setValue(s)};this.addManagedListeners(e,{fieldValueChanged:o}),this.addManagedEventListeners({newColumnsLoaded:a,columnPivotModeChanged:a})}},jUt=class extends dt{constructor(){super(...arguments),this.beanName="colToolPanelFactory"}setPanelVisible(e,t,n){return e?e.setDisplayed(t):t&&(e=n()),e}createRowGroupPanel(e,t){return this.createPanel(e,t,new Urt(!1))}createValuesPanel(e,t){return this.createPanel(e,t,new WUt(!1))}createPivotPanel(e,t){return this.createPanel(e,t,new $rt(!1))}createPivotModePanel(e,t,n){return this.createPanel(e,t,new BUt,n)}createPanel(e,t,n,r){return n=e.createBean(n),t.push(()=>e.destroyBean(n)),r?e.prependChild(n):e.appendChild(n),n}},HUt={moduleName:"ColumnsToolPanel",version:wi,beans:[jUt],userComponents:{agColumnsToolPanel:DUt},icons:{ensureColumnVisible:"column-arrow",columnsToolPanel:"columns",menuAddRowGroup:"group",menuRemoveRowGroup:"group",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate"},dependsOn:[es,Vye,Rye,v3,dM,NK]},VUt=class extends dt{constructor(){super(...arguments),this.beanName="chartMenuItemMapper"}getChartItems(e){const t=this.beans,n=t.chartSvc,r=e==="pivotChart";if(!n)return null;const i=this.getLocaleTextFunc.bind(this),o=r?new GUt(t,n,i):new $Ut(t,n,i),a=n.isEnterprise();let s=o.getMenuItem();if(s&&s.subMenu&&!a){const c=u=>({...u,subMenu:u.subMenu?.filter(d=>!d._enterprise).map(d=>c(d))});s=c(s)}const l=this.gos.get("chartToolPanelsDef")?.settingsPanel?.chartGroupsDef;return l&&(s=this.filterAndOrderChartMenu(s,l,o.getConfigLookup())),this.cleanInternals(s)}cleanInternals(e){if(!e)return e;const t=n=>(delete n?._key,delete n?._enterprise,n?.subMenu?.forEach(r=>t(r)),n);return t(e)}buildLookup(e){const t={},n=r=>{t[r._key]=r,r.subMenu&&r.subMenu.forEach(i=>n(i))};return n(e),t}filterAndOrderChartMenu(e,t,n){const r=this.buildLookup(e),i={...e,subMenu:[]};for(const o of Object.keys(t)){const a=t[o],s=n[o];if(s===null)continue;if(s==null){ut(173,{group:o});continue}const l=r[s._key];if(l)if(l.subMenu){const c=a.map(u=>{const d=s[u];if(d==null){ut(174,{group:o,chartType:u});return}return r[d]}).filter(u=>u!==void 0);c.length>0&&(l.subMenu=c,i.subMenu?.push(l))}else i.subMenu?.push(l)}return i.subMenu?.length==0?null:i}},GUt=class{constructor(e,t,n){this.beans=e,this.chartSvc=t,this.getLocaleTextFunc=n}getMenuItem(){const e=this.getLocaleTextFunc(),t=(n,r,i,o,a=!1)=>({name:e(n,r+"‎"),action:()=>this.chartSvc.createPivotChart({chartType:i}),_key:o,_enterprise:a});return{name:e("pivotChart","Pivot Chart"),_key:"pivotChart",subMenu:[{_key:"pivotColumnChart",name:e("columnChart","Column"),subMenu:[t("groupedColumn","Grouped","groupedColumn","pivotGroupedColumn"),t("stackedColumn","Stacked","stackedColumn","pivotStackedColumn"),t("normalizedColumn","100% Stacked","normalizedColumn","pivotNormalizedColumn")]},{_key:"pivotBarChart",name:e("barChart","Bar"),subMenu:[t("groupedBar","Grouped","groupedBar","pivotGroupedBar"),t("stackedBar","Stacked","stackedBar","pivotStackedBar"),t("normalizedBar","100% Stacked","normalizedBar","pivotNormalizedBar")]},{_key:"pivotPieChart",name:e("pieChart","Pie"),subMenu:[t("pie","Pie","pie","pivotPie"),t("donut","Donut","donut","pivotDonut")]},{_key:"pivotLineChart",name:e("lineChart","Line"),subMenu:[t("lineChart","Line","line","pivotLineChart"),t("stackedLine","Stacked","stackedLine","pivotStackedLine"),t("normalizedLine","100% Stacked","normalizedLine","pivotNormalizedLine")]},{_key:"pivotAreaChart",name:e("areaChart","Area"),subMenu:[t("areaChart","Area","area","pivotArea"),t("stackedArea","Stacked","stackedArea","pivotStackedArea"),t("normalizedArea","100% Stacked","normalizedArea","pivotNormalizedArea")]},{_key:"pivotXYChart",name:e("xyChart","X Y (Scatter)"),subMenu:[t("scatter","Scatter","scatter","pivotScatter"),t("bubble","Bubble","bubble","pivotBubble")]},{_key:"pivotStatisticalChart",_enterprise:!1,name:e("statisticalChart","Statistical"),subMenu:[t("histogramChart","Histogram","histogram","pivotHistogram",!1)]},{_key:"pivotHierarchicalChart",_enterprise:!0,name:e("hierarchicalChart","Hierarchical"),subMenu:[t("treemapChart","Treemap","treemap","pivotTreemap",!0),t("sunburstChart","Sunburst","sunburst","pivotSunburst",!0)]},{_key:"pivotFunnel",name:e("funnel","Funnel"),subMenu:[t("funnel","Funnel","funnel","pivotFunnel"),t("coneFunnel","Cone Funnel","coneFunnel","pivotConeFunnel"),t("pyramid","Pyramid","pyramid","pivotPyramid")]},{_key:"pivotCombinationChart",name:e("combinationChart","Combination"),subMenu:[t("columnLineCombo","Column & Line","columnLineCombo","pivotColumnLineCombo"),t("AreaColumnCombo","Area & Column","areaColumnCombo","pivotAreaColumnCombo")]}],icon:er("chart",this.beans,void 0)}}getConfigLookup(){return{columnGroup:{_key:"pivotColumnChart",column:"pivotGroupedColumn",stackedColumn:"pivotStackedColumn",normalizedColumn:"pivotNormalizedColumn"},barGroup:{_key:"pivotBarChart",bar:"pivotGroupedBar",stackedBar:"pivotStackedBar",normalizedBar:"pivotNormalizedBar"},pieGroup:{_key:"pivotPieChart",pie:"pivotPie",donut:"pivotDonut",doughnut:"pivotDonut"},lineGroup:{_key:"pivotLineChart",line:"pivotLineChart",stackedLine:"pivotStackedLine",normalizedLine:"pivotNormalizedLine"},areaGroup:{_key:"pivotAreaChart",area:"pivotArea",stackedArea:"pivotStackedArea",normalizedArea:"pivotNormalizedArea"},scatterGroup:{_key:"pivotXYChart",bubble:"pivotBubble",scatter:"pivotScatter"},combinationGroup:{_key:"pivotCombinationChart",columnLineCombo:"pivotColumnLineCombo",areaColumnCombo:"pivotAreaColumnCombo",customCombo:null},hierarchicalGroup:{_key:"pivotHierarchicalChart",treemap:"pivotTreemap",sunburst:"pivotSunburst"},statisticalGroup:{_key:"pivotStatisticalChart",histogram:"pivotHistogram",rangeBar:null,rangeArea:null,boxPlot:null},funnelGroup:{_key:"pivotFunnel",funnel:"pivotFunnel",coneFunnel:"pivotConeFunnel",pyramid:"pivotPyramid"},polarGroup:null,specializedGroup:null}}},$Ut=class{constructor(e,t,n){this.beans=e,this.chartSvc=t,this.getLocaleTextFunc=n}getMenuItem(){const e=this.getLocaleTextFunc(),t=(n,r,i,o,a=!1)=>({name:e(n,r),action:()=>this.chartSvc.createChartFromCurrentRange(i),_key:o,_enterprise:a});return{name:e("chartRange","Chart Range"),_key:"chartRange",subMenu:[{name:e("columnChart","Column"),subMenu:[t("groupedColumn","Grouped","groupedColumn","rangeGroupedColumn"),t("stackedColumn","Stacked","stackedColumn","rangeStackedColumn"),t("normalizedColumn","100% Stacked","normalizedColumn","rangeNormalizedColumn")],_key:"rangeColumnChart"},{name:e("barChart","Bar"),subMenu:[t("groupedBar","Grouped","groupedBar","rangeGroupedBar"),t("stackedBar","Stacked","stackedBar","rangeStackedBar"),t("normalizedBar","100% Stacked","normalizedBar","rangeNormalizedBar")],_key:"rangeBarChart"},{name:e("pieChart","Pie"),subMenu:[t("pie","Pie","pie","rangePie"),t("donut","Donut","donut","rangeDonut")],_key:"rangePieChart"},{name:e("lineChart","Line"),subMenu:[t("lineChart","Line","line","rangeLineChart"),t("stackedLine","Stacked","stackedLine","rangeStackedLine"),t("normalizedLine","100% Stacked","normalizedLine","rangeNormalizedLine")],_key:"rangeLineChart"},{name:e("areaChart","Area"),subMenu:[t("areaChart","Area","area","rangeArea"),t("stackedArea","Stacked","stackedArea","rangeStackedArea"),t("normalizedArea","100% Stacked","normalizedArea","rangeNormalizedArea")],_key:"rangeAreaChart"},{name:e("xyChart","X Y (Scatter)"),subMenu:[t("scatter","Scatter","scatter","rangeScatter"),t("bubble","Bubble","bubble","rangeBubble")],_key:"rangeXYChart"},{name:e("polarChart","Polar"),subMenu:[t("radarLine","Radar Line","radarLine","rangeRadarLine"),t("radarArea","Radar Area","radarArea","rangeRadarArea"),t("nightingale","Nightingale","nightingale","rangeNightingale"),t("radialColumn","Radial Column","radialColumn","rangeRadialColumn"),t("radialBar","Radial Bar","radialBar","rangeRadialBar")],_key:"rangePolarChart",_enterprise:!0},{name:e("statisticalChart","Statistical"),subMenu:[t("boxPlot","Box Plot","boxPlot","rangeBoxPlot",!0),t("histogramChart","Histogram","histogram","rangeHistogram",!1),t("rangeBar","Range Bar","rangeBar","rangeRangeBar",!0),t("rangeArea","Range Area","rangeArea","rangeRangeArea",!0)],_key:"rangeStatisticalChart",_enterprise:!1},{name:e("hierarchicalChart","Hierarchical"),subMenu:[t("treemap","Treemap","treemap","rangeTreemap"),t("sunburst","Sunburst","sunburst","rangeSunburst")],_key:"rangeHierarchicalChart",_enterprise:!0},{name:e("specializedChart","Specialized"),subMenu:[t("heatmap","Heatmap","heatmap","rangeHeatmap"),t("waterfall","Waterfall","waterfall","rangeWaterfall")],_key:"rangeSpecializedChart",_enterprise:!0},{name:e("funnel","Funnel"),subMenu:[t("funnel","Funnel","funnel","rangeFunnel"),t("coneFunnel","Cone Funnel","coneFunnel","rangeConeFunnel"),t("pyramid","Pyramid","pyramid","rangePyramid")],_key:"rangeFunnel",_enterprise:!0},{name:e("combinationChart","Combination"),subMenu:[t("columnLineCombo","Column & Line","columnLineCombo","rangeColumnLineCombo"),t("AreaColumnCombo","Area & Column","areaColumnCombo","rangeAreaColumnCombo")],_key:"rangeCombinationChart"}],icon:er("chart",this.beans,void 0)}}getConfigLookup(){return{columnGroup:{_key:"rangeColumnChart",column:"rangeGroupedColumn",stackedColumn:"rangeStackedColumn",normalizedColumn:"rangeNormalizedColumn"},barGroup:{_key:"rangeBarChart",bar:"rangeGroupedBar",stackedBar:"rangeStackedBar",normalizedBar:"rangeNormalizedBar"},pieGroup:{_key:"rangePieChart",pie:"rangePie",donut:"rangeDonut",doughnut:"rangeDonut"},lineGroup:{_key:"rangeLineChart",line:"rangeLineChart",stackedLine:"rangeStackedLine",normalizedLine:"rangeNormalizedLine"},areaGroup:{_key:"rangeAreaChart",area:"rangeArea",stackedArea:"rangeStackedArea",normalizedArea:"rangeNormalizedArea"},scatterGroup:{_key:"rangeXYChart",bubble:"rangeBubble",scatter:"rangeScatter"},polarGroup:{_key:"rangePolarChart",radarLine:"rangeRadarLine",radarArea:"rangeRadarArea",nightingale:"rangeNightingale",radialColumn:"rangeRadialColumn",radialBar:"rangeRadialBar"},statisticalGroup:{_key:"rangeStatisticalChart",boxPlot:"rangeBoxPlot",histogram:"rangeHistogram",rangeBar:"rangeRangeBar",rangeArea:"rangeRangeArea"},hierarchicalGroup:{_key:"rangeHierarchicalChart",treemap:"rangeTreemap",sunburst:"rangeSunburst"},specializedGroup:{_key:"rangeSpecializedChart",heatmap:"rangeHeatmap",waterfall:"rangeWaterfall"},funnelGroup:{_key:"rangeFunnel",funnel:"rangeFunnel",coneFunnel:"rangeConeFunnel",pyramid:"rangePyramid"},combinationGroup:{_key:"rangeCombinationChart",columnLineCombo:"rangeColumnLineCombo",areaColumnCombo:"rangeAreaColumnCombo",customCombo:null}}}},UUt=class extends dt{constructor(){super(...arguments),this.beanName="colChooserFactory"}createColumnSelectPanel(e,t,n,r){const i=e.createManagedBean(new Hrt),o=r??t?.getColDef().columnChooserParams??{},{contractColumnSelection:a,suppressColumnExpandAll:s,suppressColumnFilter:l,suppressColumnSelectAll:c,suppressSyncLayoutWithGrid:u,columnLayout:d}=o;return i.init(!!n,Vn(this.gos,{suppressColumnMove:!1,suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!a,suppressColumnExpandAll:!!s,suppressColumnFilter:!!l,suppressColumnSelectAll:!!c,suppressSyncLayoutWithGrid:!!d||!!u,onStateUpdated:()=>{}}),"columnMenu"),d&&i.setColumnLayout(d),i}showColumnChooser({column:e,chooserParams:t,eventSource:n,headerPosition:r}){this.hideActiveColumnChooser();const i=this.createColumnSelectPanel(this,e,!0,t),o=this.getLocaleTextFunc(),a=this.beans,{visibleCols:s,focusSvc:l,menuUtils:c}=a,u=s.allCols.indexOf(e),d=e?l.focusedHeader??r??null:null;this.activeColumnChooserDialog=this.createBean(new y6({title:o("chooseColumns","Choose Columns"),component:i,width:300,height:300,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{Md(a,i.getGui())?.focus({preventScroll:!0}),this.dispatchVisibleChangedEvent(!0,e)},closedCallback:p=>{const h=this.activeColumnChooser.getGui();this.destroyBean(this.activeColumnChooser),this.activeColumnChooser=void 0,this.activeColumnChooserDialog=void 0,this.dispatchVisibleChangedEvent(!1,e),e&&c.restoreFocusOnClose({column:e,headerPosition:d,columnIndex:u,eventSource:n},h,p,!0)},postProcessPopupParams:{type:"columnChooser",column:e,eventSource:n}})),this.activeColumnChooser=i}hideActiveColumnChooser(){this.destroyBean(this.activeColumnChooserDialog)}dispatchVisibleChangedEvent(e,t){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:"columnChooser",column:t??null})}},XUt={pinSubMenu:"PinnedColumn",pinLeft:"PinnedColumn",pinRight:"PinnedColumn",clearPinned:"PinnedColumn",pinRowSubMenu:"PinnedRow",pinBottom:"PinnedRow",pinTop:"PinnedRow",unpinRow:"PinnedRow",valueAggSubMenu:"SharedAggregation",autoSizeThis:"ColumnAutoSize",autoSizeAll:"ColumnAutoSize",rowGroup:"SharedRowGrouping",rowUnGroup:"SharedRowGrouping",resetColumns:"CommunityCore",expandAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],contractAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],copy:"Clipboard",copyWithHeaders:"Clipboard",copyWithGroupHeaders:"Clipboard",cut:"Clipboard",paste:"Clipboard",export:["CsvExport","ExcelExport"],csvExport:"CsvExport",excelExport:"ExcelExport",separator:"CommunityCore",pivotChart:"IntegratedCharts",chartRange:"IntegratedCharts",columnFilter:"ColumnFilter",columnChooser:"ColumnMenu",sortAscending:"Sort",sortDescending:"Sort",sortUnSort:"Sort"};function YUt(e,t){const n=XUt[t];n&&e.assertModuleRegistered(n,`menu item '${t}'`)}var OA="separator";function Xrt(e,t){if(e)for(let n=e.length-2;n>=0;n--){const r=e[n]===t,i=e[n+1]===t;r&&i&&e.splice(n+1,1)}}var KUt=class extends dt{constructor(){super(...arguments),this.beanName="menuItemMapper"}mapWithStockItems(e,t,n,r,i){if(!e)return[];const o=[],a=this.getLocaleTextFunc(),{beans:s,gos:l}=this,{pinnedCols:c,colAutosize:u,aggFuncSvc:d,rowGroupColsSvc:p,colNames:h,colModel:g,clipboardSvc:m,expansionSvc:v,focusSvc:y,csvCreator:M,excelCreator:C,menuSvc:x,colChooserFactory:w,sortSvc:S,chartMenuItemMapper:A,valueColsSvc:z,pinnedRowModel:O}=s,T=(I,P,N,F)=>{switch(YUt(l,I),I){case"pinSubMenu":return c&&P?{name:a("pinColumn","Pin Column"),icon:er("menuPin",s,null),subMenu:["clearPinned","pinLeft","pinRight"]}:null;case"pinLeft":return c&&P?{name:a("pinLeft","Pin Left"),action:()=>c.setColsPinned([P],"left",F),checked:!!P&&P.isPinnedLeft()}:null;case"pinRight":return c&&P?{name:a("pinRight","Pin Right"),action:()=>c.setColsPinned([P],"right",F),checked:!!P&&P.isPinnedRight()}:null;case"clearPinned":return c&&P?{name:a("noPin","No Pin"),action:()=>c.setColsPinned([P],null,F),checked:!!P&&!P.isPinned()}:null;case"pinRowSubMenu":{const L=l.get("enableRowPinning"),W=[],H=n?.rowPinned??n?.pinnedSibling?.rowPinned;return H&&W.push("unpinRow"),L&&L!=="bottom"&&H!="top"&&W.push("pinTop"),L&&L!=="top"&&H!="bottom"&&W.push("pinBottom"),O?.isManual()?{name:a("pinRow","Pin Row"),icon:er("rowPin",s,P),subMenu:W}:null}case"pinTop":return O?.isManual()?{name:a("pinTop","Pin to Top"),icon:er("rowPinTop",s,P),action:({node:L,column:W})=>L&&O.pinRow(L,"top",W)}:null;case"pinBottom":return O?.isManual()?{name:a("pinBottom","Pin to Bottom"),icon:er("rowPinBottom",s,P),action:({node:L,column:W})=>L&&O.pinRow(L,"bottom",W)}:null;case"unpinRow":return O?.isManual()?{name:a("unpinRow","Unpin Row"),icon:er("rowUnpin",s,P),action:({node:L,column:W})=>L&&O.pinRow(L,null,W)}:null;case"valueAggSubMenu":return d&&z&&(P?.isPrimary()||P?.getColDef().pivotValueColumn)?{name:a("valueAggregation","Value Aggregation"),icon:er("menuValue",s,null),subMenu:QUt(P,d,z,a),disabled:l.get("functionsReadOnly")}:null;case"autoSizeThis":return u?{name:a("autosizeThisColumn","Autosize This Column"),action:()=>u.autoSizeColumn(P,F,l.get("skipHeaderOnAutoSize"))}:null;case"autoSizeAll":return u?{name:a("autosizeAllColumns","Autosize All Columns"),action:()=>u.autoSizeAllColumns(F,l.get("skipHeaderOnAutoSize"))}:null;case"rowGroup":return p?{name:a("groupBy","Group by")+" "+h.getDisplayNameForColumn(P,"header"),disabled:l.get("functionsReadOnly")||P?.isRowGroupActive()||!P?.getColDef().enableRowGroup,action:()=>p.addColumns([P],F),icon:er("menuAddRowGroup",s,null)}:null;case"rowUnGroup":if(p&&l.isModuleRegistered("SharedRowGrouping")){const L=P?.getColDef().showRowGroup,W=l.get("groupLockGroupColumns");let H,j,G;if(L===!0)H=a("ungroupAll","Un-Group All"),j=l.get("functionsReadOnly")||W===-1||W>=(p.columns.length??0),G=()=>p.setColumns(p.columns.slice(0,W),F);else if(typeof L=="string"){const q=g.getColDefCol(L),$=q!=null?h.getDisplayNameForColumn(q,"header"):L;H=a("ungroupBy","Un-Group by")+" "+$,j=l.get("functionsReadOnly")||gW(q,s),G=()=>{p.removeColumns([L],F)}}else H=a("ungroupBy","Un-Group by")+" "+h.getDisplayNameForColumn(P,"header"),j=l.get("functionsReadOnly")||!P?.isRowGroupActive()||!P?.getColDef().enableRowGroup||gW(P,s),G=()=>p.removeColumns([P],F);return{name:H,disabled:j,action:G,icon:er("menuRemoveRowGroup",s,null)}}else return null;case"resetColumns":return{name:a("resetColumns","Reset Columns"),action:()=>Bet(s,F)};case"expandAll":return v?{name:a("expandAll","Expand All Row Groups"),action:()=>v.expandAll(!0)}:null;case"contractAll":return v?{name:a("collapseAll","Collapse All Row Groups"),action:()=>v.expandAll(!1)}:null;case"copy":return m?{name:a("copy","Copy"),shortcut:a("ctrlC","Ctrl+C"),icon:er("clipboardCopy",s,null),action:()=>m.copyToClipboard()}:null;case"copyWithHeaders":return m?{name:a("copyWithHeaders","Copy with Headers"),icon:er("clipboardCopy",s,null),action:()=>m.copyToClipboard({includeHeaders:!0})}:null;case"copyWithGroupHeaders":return m?{name:a("copyWithGroupHeaders","Copy with Group Headers"),icon:er("clipboardCopy",s,null),action:()=>m.copyToClipboard({includeHeaders:!0,includeGroupHeaders:!0})}:null;case"cut":if(m){const L=y.getFocusedCell(),W=L?lp(s,L):null,H=W?L?.column.isCellEditable(W):!1;return{name:a("cut","Cut"),shortcut:a("ctrlX","Ctrl+X"),icon:er("clipboardCut",s,null),disabled:!H||l.get("suppressCutToClipboard"),action:()=>m.cutToClipboard(void 0,"contextMenu")}}else return null;case"paste":return m?{name:a("paste","Paste"),shortcut:a("ctrlV","Ctrl+V"),disabled:!0,icon:er("clipboardPaste",s,null),action:()=>m.pasteFromClipboard()}:null;case"export":{const L=[];return!l.get("suppressCsvExport")&&M&&L.push("csvExport"),!l.get("suppressExcelExport")&&C&&L.push("excelExport"),L.length?{name:a("export","Export"),subMenu:L,icon:er("save",s,null)}:null}case"csvExport":return M?{name:a("csvExport","CSV Export"),icon:er("csvExport",s,null),action:()=>M.exportDataAsCsv()}:null;case"excelExport":return C?{name:a("excelExport","Excel Export"),icon:er("excelExport",s,null),action:()=>C.exportDataAsExcel()}:null;case"separator":return I;case"pivotChart":case"chartRange":return A.getChartItems(I);case"columnFilter":return x&&P?{name:a("columnFilter","Column Filter"),icon:er("filter",s,null),action:()=>x.showFilterMenu({column:P,buttonElement:N(),containerType:"columnFilter",positionBy:"button"})}:null;case"columnChooser":{const L=y.focusedHeader;return w?{name:a("columnChooser","Choose Columns"),icon:er("columns",s,null),action:()=>w.showColumnChooser({column:P,eventSource:N(),headerPosition:L})}:null}case"sortAscending":return S?{name:a("sortAscending","Sort Ascending"),icon:er("sortAscending",s,null),action:()=>S.setSortForColumn(P,"asc",!1,F)}:null;case"sortDescending":return S?{name:a("sortDescending","Sort Descending"),icon:er("sortDescending",s,null),action:()=>S.setSortForColumn(P,"desc",!1,F)}:null;case"sortUnSort":return S?{name:a("sortUnSort","Clear Sort"),icon:er("sortUnSort",s,null),action:()=>S.setSortForColumn(P,null,!1,F)}:null;default:return ut(176,{key:I}),null}};return e.forEach(I=>{let P;if(typeof I=="string"?P=T(I,t,r,i):P={...I},!P)return;const N=P,{subMenu:F}=N;F&&F instanceof Array&&(N.subMenu=this.mapWithStockItems(F,t,n,r,i)),P!=null&&o.push(P)}),Xrt(o,OA),o}};function QUt(e,t,n,r){let i;if(e.isPrimary())i=e;else{const a=e.getColDef().pivotValueColumn;i=Ut(a)?a:void 0}const o=[];if(i){const a=i.isValueActive(),s=t.getFuncNames(i);o.push({name:r("noAggregation","None"),action:()=>{n.removeColumns([i],"contextMenu"),n.setColumnAggFunc(i,void 0,"contextMenu")},checked:!a}),s.forEach(l=>{o.push({name:r(l,t.getDefaultFuncLabel(l)),action:()=>{n.setColumnAggFunc(i,l,"contextMenu"),n.addColumns([i],"contextMenu")},checked:a&&i.getAggFunc()===l})})}return o}var ZUt=class extends dt{constructor(){super(...arguments),this.beanName="colMenuFactory"}createMenu(e,t,n,r){const i=e.createManagedBean(new M6(0,{column:n??null,node:null,value:null})),o=this.beans.menuItemMapper.mapWithStockItems(t,n??null,null,r,"columnMenu");return i.addMenuItems(o),i}getMenuItems(e=null,t=null){const n=this.getDefaultMenuOptions(e);let r;const i=(e?.getColDef()??t?.getColGroupDef())?.mainMenuItems;if(Array.isArray(i))r=i;else if(typeof i=="function")r=i(Vn(this.gos,{column:e,columnGroup:t,defaultItems:n}));else{const o=this.gos.getCallback("getMainMenuItems");o?r=o({column:e,columnGroup:t,defaultItems:n}):r=n}return Xrt(r,OA),r}getDefaultMenuOptions(e){const t=[],{beans:n,gos:r}=this,{colChooserFactory:i,rowGroupColsSvc:o,colModel:a,expansionSvc:s,sortSvc:l,menuSvc:c,pinnedCols:u,aggFuncSvc:d,colAutosize:p}=n,h=Gu(r),g=()=>{!h&&i&&t.push("columnChooser"),t.push("resetColumns")};if(!e)return g(),t;const{colDef:m}=e,v=u&&!m.lockPinned,y=o?.columns.length??0,M=y>0,C=e.isPrimary(),x=d&&C&&M&&e.isAllowValue()||!C;if(l&&!h&&e.isSortable()){const w=e.getSort();w!=="asc"&&t.push("sortAscending"),w!=="desc"&&t.push("sortDescending"),w&&t.push("sortUnSort"),t.push(OA)}if(c?.isFilterMenuItemEnabled(e)&&(t.push("columnFilter"),t.push(OA)),v&&t.push("pinSubMenu"),x&&t.push("valueAggSubMenu"),(v||x)&&t.push(OA),p&&(t.push("autoSizeThis"),t.push("autoSizeAll"),t.push(OA)),o&&r.isModuleRegistered("SharedRowGrouping")){const w=t.length;m.showRowGroup?t.push("rowUnGroup"):e.isAllowRowGroup()&&C&&(e.isRowGroupActive()?gW(e,n)||t.push("rowUnGroup"):t.push("rowGroup")),t.length>w&&t.push(OA)}return g(),s&&oa(r)&&(r.get("treeData")||y>(a.isPivotMode()?1:0))&&(t.push("expandAll"),t.push("contractAll")),t}},JUt="ag-menu",CRe="ag-context-menu-open",eXt="ag-context-menu-loading-icon",tXt=class extends dt{constructor(){super(...arguments),this.beanName="contextMenuSvc",this.destroyLoadingSpinner=null,this.lastPromise=0}hideActiveMenu(){this.destroyBean(this.activeMenu)}getMenuItems(e,t,n,r){const i=[],{clipboardSvc:o,chartSvc:a,csvCreator:s,excelCreator:l,colModel:c,rangeSvc:u,gos:d}=this.beans;if(Ut(e)&&o&&t&&(d.get("suppressCutToClipboard")||i.push("cut"),i.push("copy","copyWithHeaders","copyWithGroupHeaders","paste","separator")),d.get("enableCharts")&&a&&(c.isPivotMode()&&i.push("pivotChart"),u&&!u.isEmpty()&&i.push("chartRange")),Ut(e)){const m=d.get("enableRowPinning"),v=d.get("isRowPinnable"),y=d.get("grandTotalRow");if(m){const S=e.level>-1&&e.footer,A=e.level===-1&&e.footer;(A&&!(y==="pinnedBottom"||y==="pinnedTop")||!A&&!S)&&(v?.(e)??!0)&&i.push("pinRowSubMenu")}const M=d.get("suppressExcelExport")||!l,C=d.get("suppressCsvExport")||!s;!Cx()&&(!M||!C)&&i.push("export")}const p=i.length?i:void 0,h=t?.getColDef().contextMenuItems;return Array.isArray(h)?h:typeof h=="function"?h(Vn(d,{column:t,node:e,value:n,defaultItems:p,event:r})):d.getCallback("getContextMenuItems")?.({column:t,node:e,value:n,defaultItems:p,event:r})??i}getContextMenuPosition(e,t){const n=this.getRowCtrl(e),r=this.getCellGui(n,t);if(!r)return{x:0,y:n?.getRowYPosition()??0};const i=r.getBoundingClientRect();return{x:i.x+i.width/2,y:i.y+i.height/2}}showContextMenu(e){const t=e.rowNode??null,n=e.column??null;let{anchorToElement:r,value:i,source:o}=e;t&&n&&i==null&&(i=this.beans.valueSvc.getValueForDisplay(n,t).value),r==null&&(r=this.getContextMenuAnchorElement(t,n)),this.beans.menuUtils.onContextMenu({mouseEvent:e.mouseEvent??null,touchEvent:e.touchEvent??null,showMenuCallback:a=>this.showMenu(t,n,i,a,r),source:o})}handleContextMenuMouseEvent(e,t,n,r){const i=r?.rowNode??n?.rowNode??null,o=r?.column??n?.findFullWidthInfoForEvent(e||t)?.column??null,{valueSvc:a,ctrlsSvc:s}=this.beans,l=o?a.getValue(o,i):null,c=s.getGridBodyCtrl(),u=r?r.eGui:c.eGridBody;this.showContextMenu({mouseEvent:e,touchEvent:t,rowNode:i,column:o,value:l,anchorToElement:u,source:"ui"})}showMenu(e,t,n,r,i){const o=this.getMenuItems(e,t,n,r);if(Ukt(o)){const a=this.lastPromise+1;return this.lastPromise=a,this.destroyLoadingSpinner||this.createLoadingIcon(r),o.then(s=>{if(this.lastPromise!==a)return;const{target:l}=r,c=!l;s&&s.length&&(c||x0(l))&&!this.beans.overlays?.isExclusive()&&this.createContextMenu({menuItems:s,node:e,column:t,value:n,mouseEvent:r,anchorToElement:i}),this.destroyLoadingSpinner?.()}),!0}return o===void 0||!o?.length?!1:(this.createContextMenu({menuItems:o,node:e,column:t,value:n,mouseEvent:r,anchorToElement:i}),!0)}createLoadingIcon(e){const{beans:t}=this,n=this.getLocaleTextFunc(),r=er("loadingMenuItems",t),i=Nr({tag:"div",cls:eXt});i.appendChild(r);const o=vz(t),a=bK(t);if(!a){ut(54);return}a.appendChild(i),t.ariaAnnounce?.announceValue(n("ariaLabelLoadingContextMenu","Loading Context Menu"),"contextmenu"),t.environment.applyThemeClasses(i),rhe(i,e,t);const s=l=>{rhe(i,l,t)};o.addEventListener("mousemove",s),this.destroyLoadingSpinner=()=>{o.removeEventListener("mousemove",s),a.removeChild(i),this.destroyLoadingSpinner=null}}createContextMenu(e){const{menuItems:t,node:n,column:r,value:i,mouseEvent:o,anchorToElement:a}=e,{ctrlsSvc:s,focusSvc:l,popupSvc:c}=this.beans,u=s.getGridBodyCtrl().eGridBody,d=new nXt(t,r,n,i);this.createBean(d);const p=d.getGui();r||l.clearFocusedCell();const h={column:r,rowNode:n,type:"contextMenu",mouseEvent:o,ePopup:p,nudgeY:1},g=this.getLocaleTextFunc(),m=c?.addPopup({modal:!0,eChild:p,closeOnEsc:!0,closedCallback:y=>{mK(this.beans,()=>{u.classList.remove(CRe),this.destroyBean(d),this.dispatchVisibleChangedEvent(!1,y===void 0?"api":"ui")})},click:o,positionCallback:()=>{const y=this.gos.get("enableRtl");c?.positionPopupUnderMouseEvent({...h,nudgeX:y?(p.offsetWidth+1)*-1:1})},anchorToElement:a,ariaLabel:g("ariaLabelContextMenu","Context Menu")});m&&(u.classList.add(CRe),d.afterGuiAttached({container:"contextMenu",hidePopup:m.hideFunc})),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=d,d.addEventListener("destroyed",()=>{this.activeMenu===d&&(this.activeMenu=null)}),m&&d.addEventListener("closeMenu",y=>m.hideFunc({mouseEvent:y.mouseEvent??void 0,keyboardEvent:y.keyboardEvent??void 0,forceHide:!0}));const v=o&&o instanceof MouseEvent&&o.type==="mousedown";this.dispatchVisibleChangedEvent(!0,v?"api":"ui")}dispatchVisibleChangedEvent(e,t="ui"){this.eventSvc.dispatchEvent({type:"contextMenuVisibleChanged",visible:e,source:t})}getRowCtrl(e){const{rowIndex:t,rowPinned:n}=e||{};if(t!=null)return this.beans.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n})||void 0}getCellGui(e,t){return!e||!t?void 0:e.getCellCtrl(t)?.eGui||void 0}getContextMenuAnchorElement(e,t){const n=this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody,r=this.getRowCtrl(e);if(!r)return n;const i=this.getCellGui(r,t);return i||(r.isFullWidth()?r.getFullWidthElement():n)}destroy(){this.destroyLoadingSpinner?.(),super.destroy()}},nXt=class extends Gt{constructor(t,n,r,i){super({tag:"div",cls:JUt,role:"presentation"}),this.menuItems=t,this.column=n,this.node=r,this.value=i,this.menuList=null,this.focusedCell=null}postConstruct(){const t=this.createManagedBean(new M6(0,{column:this.column,node:this.node,value:this.value})),n=this.beans.menuItemMapper.mapWithStockItems(this.menuItems,this.column,this.node,()=>this.getGui(),"contextMenu");t.addMenuItems(n),this.appendChild(t),this.menuList=t,t.addEventListener("closeMenu",r=>this.dispatchLocalEvent(r))}afterGuiAttached({hidePopup:t}){t&&this.addDestroyFunc(t),this.focusedCell=this.beans.focusSvc.getFocusedCell();const n=this.menuList;n&&mK(this.beans,()=>zu(n.getGui()))}restoreFocusedCell(){const{beans:t,focusedCell:n}=this,r=t.focusSvc,i=r.getFocusedCell();if(i&&n&&g6(i,n)){const{rowIndex:o,rowPinned:a,column:s}=n;Gx(t)&&r.setFocusedCell({rowIndex:o,column:s,rowPinned:a,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!CK()})}}destroy(){super.destroy(),this.restoreFocusedCell()}};function rXt(e){return{tag:"div",cls:`ag-tabs ${e}`,children:[{tag:"div",ref:"eHeader"},{tag:"div",ref:"eBody",role:"presentation",cls:`ag-tabs-body ${e?`${e}-body`:""}`}]}}var Yrt=class extends Vb{constructor(e){super(rXt(e.cssClass)),this.eHeader=at,this.eBody=at,this.items=[],this.tabbedItemScrollMap=new Map,this.params=e}postConstruct(){this.setupHeader(),this.params.items&&this.params.items.forEach(e=>this.addItem(e)),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),focusInnerElement:this.focusInnerElement.bind(this),focusTrapActive:!0}),this.addDestroyFunc(()=>this.activeItem?.tabbedItem?.afterDetachedCallback?.())}setupHeader(){const{enableCloseButton:e,cssClass:t}=this.params,n=(r,i)=>{r.classList.add(`ag-tabs-${i}`),t&&r.classList.add(`${t}-${i}`)};e?(this.setupCloseButton(n),this.eTabHeader=Nr({tag:"div",role:"presentation"}),n(this.eHeader,"header-wrapper"),this.eHeader.appendChild(this.eTabHeader)):this.eTabHeader=this.eHeader,C0(this.eTabHeader,"tablist"),n(this.eTabHeader,"header")}setupCloseButton(e){const t=Nr({tag:"button"});e(t,"close-button");const n=er("close",this.beans);Es(t,this.params.closeButtonAriaLabel),t.appendChild(n),this.addManagedElementListeners(t,{click:()=>this.params.onCloseClicked?.()});const r=Nr({tag:"div",role:"presentation"});e(r,"close-button-wrapper"),r.appendChild(t),this.eHeader.appendChild(r),this.eCloseButton=t}handleKeyDown(e){switch(e.key){case Qe.RIGHT:case Qe.LEFT:{if(!this.eTabHeader.contains(Gi(this.beans)))return;const t=e.key===Qe.RIGHT,n=this.gos.get("enableRtl"),r=this.items.indexOf(this.activeItem),i=t!==n?Math.min(r+1,this.items.length-1):Math.max(r-1,0);if(r===i)return;e.preventDefault();const o=this.items[i];this.showItemWrapper(o),o.eHeaderButton.focus();break}case Qe.UP:case Qe.DOWN:e.stopPropagation();break}}onTabKeyDown(e){if(e.defaultPrevented)return;const{beans:t,eHeader:n,eBody:r,activeItem:i,params:o}=this,{suppressTrapFocus:a,enableCloseButton:s}=o,l=Gi(t),c=e.target,u=e.shiftKey;if(n.contains(l)){e.preventDefault(),s&&u&&!this.eCloseButton?.contains(l)?this.eCloseButton?.focus():a&&u?zhe(bl(t).body,c)?.focus():this.focusBody(e.shiftKey);return}let d=null;if(Rrt(r,c)&&(u&&(d=zhe(r,c)),!d&&!a&&(d=i.eHeaderButton)),!d&&r.contains(l)&&(d=Md(t,r,!1,u),!d)){a&&!u?this.forceFocusOutOfContainer(u):s&&!u?(e.preventDefault(),this.eCloseButton?.focus()):(e.preventDefault(),this.focusHeader());return}d&&(e.preventDefault(),d.focus())}focusInnerElement(e){return e?this.focusBody(!0):(this.focusHeader(),!0)}focusHeader(e){this.activeItem.eHeaderButton.focus({preventScroll:e})}focusBody(e){return zu(this.eBody,e)}setAfterAttachedParams(e){this.afterAttachedParams=e}showFirstItem(){this.items.length>0&&this.showItemWrapper(this.items[0])}addItem(e){const t=Nr({tag:"span",cls:"ag-tab",role:"tab",attrs:{tabindex:"-1"}});t.appendChild(e.title),this.eTabHeader.appendChild(t),Es(t,e.titleLabel);const n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))}showItem(e){const t=this.items.find(n=>n.tabbedItem===e);t&&this.showItemWrapper(t)}showItemWrapper(e){const{tabbedItem:t,eHeaderButton:n}=e;if(this.params.onItemClicked?.({item:t}),this.activeItem===e){this.params.onActiveItemClicked?.();return}this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),Xi(this.eBody),t.bodyPromise.then(r=>{this.eBody.appendChild(r);const i=!CK();if(this.params.suppressFocusBodyOnOpen||zu(this.eBody,!1,i),t.afterAttachedCallback&&t.afterAttachedCallback(this.afterAttachedParams),this.params.keepScrollPosition){const o=t.getScrollableContainer&&t.getScrollableContainer()||r;[this.lastScrollListener]=this.addManagedElementListeners(o,{scroll:()=>{this.tabbedItemScrollMap.set(t.name,o.scrollTop)}});const a=this.tabbedItemScrollMap.get(t.name);a!==void 0&&setTimeout(()=>{o.scrollTop=a},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),this.activeItem.tabbedItem.afterDetachedCallback?.()),n.classList.add("ag-tab-selected"),this.activeItem=e}},PC="filterMenuTab",DC="generalMenuTab",zA="columnsMenuTab",$G=[DC,PC,zA],iXt=class extends dt{constructor(){super(...arguments),this.beanName="enterpriseMenuFactory"}hideActiveMenu(){this.destroyBean(this.activeMenu)}showMenuAfterMouseEvent(e,t,n,r,i){const{column:o,columnGroup:a}=this.splitColumnOrGroup(e),s=i?"filterMenuTab":void 0;this.showMenu(o,a,l=>{const c=l.getGui();this.beans.popupSvc.positionPopupUnderMouseEvent({type:n,column:o,mouseEvent:t,ePopup:c}),s&&l.showTab?.(s),this.dispatchVisibleChangedEvent(!0,!1,o,a,s)},n,s,void 0,t.target,r)}splitColumnOrGroup(e){const t=e&&vm(e);return{column:t?e:void 0,columnGroup:t?void 0:e}}showMenuAfterButtonClick(e,t,n,r,i){let o=-1,a="left";this.gos.get("enableRtl")&&(o=1,a="right");const s=i?"filterMenuTab":void 0,l=s?[s]:void 0,c=Gu(this.gos),u=(c?9:4)*o,d=c?-23:4,{column:p,columnGroup:h}=this.splitColumnOrGroup(e);this.showMenu(p,h,g=>{const m=g.getGui();this.beans.popupSvc.positionPopupByComponent({type:n,column:p,eventSource:t,ePopup:m,alignSide:a,nudgeX:u,nudgeY:d,position:"under",keepWithinBounds:!0}),s&&g.showTab?.(s),this.dispatchVisibleChangedEvent(!0,!1,p,h,s)},n,s,l,t,r)}showMenu(e,t,n,r,i,o,a,s){const l=this.getMenuParams(e,t,o,a);if(!l)return;const{menu:c,eMenuGui:u,anchorToElement:d,restoreFocusParams:p}=l,h=[],{menuUtils:g,popupSvc:m}=this.beans;h.push(y=>{const M=c.getGui();this.destroyBean(c),e&&(R$(e,!1,"contextMenu"),g.restoreFocusOnClose(p,M,y)),s?.()});const v=this.getLocaleTextFunc();if(m.addPopup({modal:!0,eChild:u,closeOnEsc:!0,closedCallback:y=>{h.forEach(M=>M(y)),this.dispatchVisibleChangedEvent(!1,!1,e,t,i)},afterGuiAttached:y=>c.afterGuiAttached(Object.assign({},{container:r},y)),positionCallback:i?()=>n(c):void 0,ariaLabel:v("ariaLabelColumnMenu","Column Menu")}),i||(c.showTabBasedOnPreviousSelection?.(),n(c)),bet(this.gos)){const y=m.setPopupPositionRelatedToElement(u,d);y&&e&&this.addStopAnchoring(y,e,h)}c.addEventListener("tabSelected",y=>{this.dispatchVisibleChangedEvent(!1,!0,e),this.lastSelectedTab=y.key,this.dispatchVisibleChangedEvent(!0,!0,e)}),e&&R$(e,!0,"contextMenu"),this.activeMenu=c,c.addEventListener("destroyed",()=>{this.activeMenu===c&&(this.activeMenu=null)})}addStopAnchoring(e,t,n){e.then(r=>{t.__addEventListener("leftChanged",r),t.__addEventListener("visibleChanged",r),n.push(()=>{t.__removeEventListener("leftChanged",r),t.__removeEventListener("visibleChanged",r)})})}getMenuParams(e,t,n,r){const{focusSvc:i,visibleCols:o,ctrlsSvc:a}=this.beans,s={column:e,headerPosition:i.focusedHeader,columnIndex:o.allCols.indexOf(e),eventSource:r},l=this.createMenu(e,t,s,n,r);return l?{menu:l,eMenuGui:l.getGui(),anchorToElement:r||a.getGridBodyCtrl().eGridBody,restoreFocusParams:s}:void 0}createMenu(e,t,n,r,i){if(Gu(this.gos))return this.createBean(new oXt(e,n,this.lastSelectedTab,r,i));{const o=this.beans.colMenuFactory.getMenuItems(e,t);return o.length?this.createBean(new aXt(o,e,n,i)):void 0}}dispatchVisibleChangedEvent(e,t,n,r,i){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:t,key:this.lastSelectedTab??i??(Gu(this.gos)?DC:"columnMenu"),column:n??null,columnGroup:r??null})}isMenuEnabled(e){if(!Gu(this.gos))return!0;const t=!this.beans.filterManager?.isFilterAllowed(e),n=e.getColDef().menuTabs??$G;return(t&&n.includes(PC)?n.length-1:n.length)>0}showMenuAfterContextMenuEvent(e,t,n){this.beans.menuUtils.onContextMenu({mouseEvent:t,touchEvent:n,source:"ui",showMenuCallback:r=>(this.showMenuAfterMouseEvent(e,r,"columnMenu"),!0)})}},oXt=class extends dt{constructor(e,t,n,r,i){super(),this.column=e,this.restoreFocusParams=t,this.initialSelection=n,this.restrictTo=r,this.sourceElement=i,this.tabFactories={},this.includeChecks={};const{tabFactories:o,includeChecks:a}=this;o[DC]=this.createMainPanel.bind(this),o[PC]=this.createFilterPanel.bind(this),o[zA]=this.createColumnsPanel.bind(this),a[DC]=()=>!0,a[PC]=()=>e?!!this.beans.filterManager?.isFilterAllowed(e):!1,a[zA]=()=>!0}postConstruct(){const e=this.getTabsToCreate().map(n=>this.createTab(n)),t=new Yrt({items:e,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)});this.tabbedLayout=this.createBean(t),this.mainMenuList?.setParentComponent(t),this.addDestroyFunc(()=>this.destroyBean(t))}getTabsToCreate(){return this.restrictTo?this.restrictTo:(this.column?.getColDef().menuTabs??$G).filter(e=>this.isValidMenuTabItem(e)&&this.isNotSuppressed(e))}isValidMenuTabItem(e){let t=!0,n=$G;return this.restrictTo!=null&&(t=this.restrictTo.indexOf(e)>-1,n=this.restrictTo),t=t&&$G.indexOf(e)>-1,t||ut(175,{menuTabName:e,itemsToConsider:n}),t}isNotSuppressed(e){return this.includeChecks[e]()}createTab(e){return this.tabFactories[e]()}showTabBasedOnPreviousSelection(){this.showTab(this.initialSelection)}showTab(e){const{tabItemColumns:t,tabbedLayout:n,tabItemFilter:r,tabItemGeneral:i}=this;t&&e===zA?n.showItem(t):r&&e===PC?n.showItem(r):i&&e===DC?n.showItem(i):n.showFirstItem()}onTabItemClicked(e){let t=null;switch(e.item){case this.tabItemColumns:t=zA;break;case this.tabItemFilter:t=PC;break;case this.tabItemGeneral:t=DC;break}t&&this.activateTab(t)}activateTab(e){const t={type:"tabSelected",key:e};this.dispatchLocalEvent(t)}createMainPanel(){const{beans:e,column:t}=this,n=e.colMenuFactory,r=n.createMenu(this,n.getMenuItems(t),this.column,()=>this.sourceElement??this.getGui());this.mainMenuList=r,r.addEventListener("closeMenu",this.onHidePopup.bind(this));const i={title:er("legacyMenu",e,t),titleLabel:DC.replace("MenuTab",""),bodyPromise:Dr.resolve(r.getGui()),name:DC};return this.tabItemGeneral=i,i}onHidePopup(e){this.beans.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,e)}createFilterPanel(){const e=this.column?this.createBean(new wK(this.column,"COLUMN_MENU")):null;this.filterComp=e,e?.hasFilter()||pi(119);const t=r=>e?.afterGuiAttached(r),n=()=>e?.afterGuiDetached();return this.tabItemFilter={title:er("filterTab",this.beans,this.column),titleLabel:PC.replace("MenuTab",""),bodyPromise:Dr.resolve(e?.getGui()),afterAttachedCallback:t,afterDetachedCallback:n,name:PC},this.tabItemFilter}createColumnsPanel(){const e=Nr({tag:"div",cls:"ag-menu-column-select-wrapper"}),{beans:t,column:n}=this,i=t.colChooserFactory.createColumnSelectPanel(this,n).getGui();i.classList.add("ag-menu-column-select"),e.appendChild(i);const o={title:er("columns",t,n),titleLabel:zA.replace("MenuTab",""),bodyPromise:Dr.resolve(e),name:zA};return this.tabItemColumns=o,o}afterGuiAttached(e){const{container:t,hidePopup:n}=e;this.tabbedLayout.setAfterAttachedParams({container:t,hidePopup:n}),n&&(this.hidePopupFunc=n,this.addDestroyFunc(n))}getGui(){return this.tabbedLayout.getGui()}destroy(){super.destroy(),this.destroyBean(this.filterComp)}},aXt=class extends Gt{constructor(e,t,n,r){super({tag:"div",ref:"eColumnMenu",cls:"ag-menu ag-column-menu",role:"presentation"}),this.menuItems=e,this.column=t,this.restoreFocusParams=n,this.sourceElement=r,this.eColumnMenu=at}postConstruct(){const e=this.beans.colMenuFactory.createMenu(this,this.menuItems,this.column,()=>this.sourceElement??this.getGui());this.mainMenuList=e,e.addEventListener("closeMenu",this.onHidePopup.bind(this)),this.eColumnMenu.appendChild(e.getGui())}onHidePopup(e){this.beans.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,e)}afterGuiAttached({hidePopup:e}){e&&(this.hidePopupFunc=e,this.addDestroyFunc(e)),zu(this.mainMenuList.getGui())}};function sXt(e,t){const{contextMenuSvc:n}=e;if(!n)return;const{rowNode:r,column:i,value:o,x:a,y:s}=t||{};let{x:l,y:c}=n.getContextMenuPosition(r,i);a!=null&&(l=a),s!=null&&(c=s),n.showContextMenu({mouseEvent:new MouseEvent("mousedown",{clientX:l,clientY:c}),rowNode:r,column:i,value:o,source:"api"})}function lXt(e,t){e.colChooserFactory?.showColumnChooser({chooserParams:t})}function cXt(e){e.colChooserFactory?.hideActiveColumnChooser()}var uXt=class extends dt{constructor(){super(...arguments),this.beanName="menuUtils"}restoreFocusOnClose(e,t,n,r){const{eventSource:i}=e,o=n instanceof KeyboardEvent;if(!r&&!o||!i)return;const a=Gi(this.beans);!t.contains(a)&&!Gx(this.beans)||this.focusHeaderCell(e)}closePopupAndRestoreFocusOnSelect(e,t,n){let r;n&&n.keyboardEvent&&(r=n.keyboardEvent),e(r&&{keyboardEvent:r});const i=this.beans,o=i.focusSvc,a=o.getFocusedCell();if(Gx(i))if(a){const{rowIndex:s,rowPinned:l,column:c}=a;o.setFocusedCell({rowIndex:s,column:c,rowPinned:l,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}else this.focusHeaderCell(t)}onContextMenu(e){const{mouseEvent:t,touchEvent:n,showMenuCallback:r,source:i}=e;if(!this.gos.get("allowContextMenuWithControlKey")&&t&&(t.ctrlKey||t.metaKey)||(t&&this.blockMiddleClickScrollsIfNeeded(t),i==="ui"&&this.gos.get("suppressContextMenu")))return;const o=t??n.touches[0];if(r(o)){const a=t??n;a&&a.cancelable&&a.preventDefault()}}async focusHeaderCell(e){const{column:t,columnIndex:n,headerPosition:r,eventSource:i}=e,{visibleCols:o,headerNavigation:a,focusSvc:s}=this.beans,l=await o.allCols.some(c=>c===t);if(this.isAlive()){if(t?.isAlive()&&l&&i&&x0(i)){const c=uye(i);c&&(a?.scrollToColumn(t),c.focus())}else if(r&&n!==-1){const c=o.allCols,u=c[n]||zr(c);u&&s.focusHeaderPosition({headerPosition:{headerRowIndex:r.headerRowIndex,column:u}})}}}blockMiddleClickScrollsIfNeeded(e){this.gos.get("suppressMiddleClickScrolls")&&e.which===2&&e.preventDefault()}},Krt={moduleName:"MenuCore",version:wi,beans:[KUt,VUt,uXt],icons:{chart:"chart",columns:"columns",loadingMenuItems:"loading",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",save:"save",csvExport:"csv",excelExport:"excel",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},dependsOn:[es,dM,Pnt,NK]},dXt={moduleName:"ColumnMenu",version:wi,beans:[iXt,ZUt,UUt],icons:{ensureColumnVisible:"column-arrow",legacyMenu:"menu",filterTab:"filter",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate"},apiFunctions:{showColumnChooser:lXt,hideColumnChooser:cXt},dependsOn:[Krt,v3,Rye]},pXt={moduleName:"ContextMenu",version:wi,beans:[tXt],apiFunctions:{showContextMenu:sXt},dependsOn:[Krt]},xRe=class extends Cw{constructor(){super({tag:"div",cls:"ag-cell-edit-wrapper"}),this.isAsync=!1}init(e){this.params=e;const{cellStartedEdit:t,values:n,eventKey:r}=e;Yi(n)&&ut(180);const{params:i,valuesPromise:o}=this.buildRichSelectParams(),a=this.createManagedBean(new Hye(i));this.richSelect=a,a.addCss("ag-cell-editor"),this.appendChild(a),o&&(this.isAsync=!0,o.then(s=>{a.setValueList({valueList:s,refresh:!0});const l=this.getSearchStringCallback(s);l&&a.setSearchStringCreator(l),this.processEventKey(r)})),this.addManagedListeners(a,{fieldPickerValueSelected:this.onEditorPickerValueSelected.bind(this)}),this.focusAfterAttached=t}onEditorPickerValueSelected(e){setTimeout(()=>this.params.stopEditing(!e.fromEnterKey))}buildRichSelectParams(){const e=this.params,{cellRenderer:t,cellHeight:n,value:r,values:i,formatValue:o,searchDebounceDelay:a,valueListGap:s,valueListMaxHeight:l,valueListMaxWidth:c,allowTyping:u,filterList:d,searchType:p,highlightMatch:h,valuePlaceholder:g,eventKey:m,multiSelect:v,suppressDeselectAll:y,suppressMultiSelectPillRenderer:M}=e,C={value:r,cellRenderer:t,cellRowHeight:n,searchDebounceDelay:a,valueFormatter:o,pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"virtual-list",pickerGap:s,allowTyping:u,filterList:d,searchType:p,highlightMatch:h,maxPickerHeight:l,maxPickerWidth:c,placeholder:g,initialInputValue:m?.length===1?m:void 0,multiSelect:v,suppressDeselectAll:y,suppressMultiSelectPillRenderer:M};let x,w;return typeof i=="function"?x=i(e):x=i??[],Array.isArray(x)?(C.valueList=x,C.searchStringCreator=this.getSearchStringCallback(x)):w=x,v&&u&&(e.allowTyping=C.allowTyping=!1,ut(181)),{params:C,valuesPromise:w}}getSearchStringCallback(e){if(typeof e[0]!="object")return;const t=this.params,{colDef:n,formatValue:r}=t;if(n.cellEditorParams?.formatValue)return o=>o.map(r);const{keyCreator:i}=n;if(i){ut(266);const{column:o,node:a,data:s}=t;return l=>l.map(c=>{const u=Vn(this.gos,{value:c,colDef:n,column:o,node:a,data:s});return i(u)})}return o=>o.map(r)}afterGuiAttached(){const{focusAfterAttached:e,params:t}=this;setTimeout(()=>{if(!this.isAlive())return;const n=this.richSelect,{allowTyping:r,eventKey:i}=t;if(e){const o=n.getFocusableElement();o.focus(),r&&(!i||i.length!==1)&&o.select()}n.showPicker(),this.isAsync||this.processEventKey(i)})}processEventKey(e){e&&e?.length===1&&this.richSelect.searchTextFromString(e)}focusIn(){this.richSelect.getFocusableElement().focus()}getValue(){const{params:e}=this,t=this.richSelect.getValue();return e.parseValue?.(t)??t}isPopup(){return!1}},hXt={moduleName:"RichSelect",version:wi,beans:[],userComponents:{agRichSelect:xRe,agRichSelectCellEditor:xRe},icons:{richSelectOpen:"small-down",richSelectRemove:"cancel"},dependsOn:[es,pM]},nO="__AG_SELECT_ALL__",rO="__AG_ADD_SELECTION_TO_FILTER__",fXt={loadingOoo:"Loading...",blanks:"(Blanks)",searchOoo:"Search...",selectAll:"(Select All)",selectAllSearchResults:"(Select All Search Results)",addCurrentSelectionToFilter:"Add current selection to filter",noMatches:"No matches."},gXt={tag:"div",cls:"ag-set-filter-item",attrs:{"aria-hidden":"true"},children:[{tag:"span",cls:"ag-set-filter-group-icons",children:[{tag:"span",ref:"eGroupClosedIcon",cls:"ag-set-filter-group-closed-icon"},{tag:"span",ref:"eGroupOpenedIcon",cls:"ag-set-filter-group-opened-icon"},{tag:"span",ref:"eGroupIndeterminateIcon",cls:"ag-set-filter-group-indeterminate-icon"}]},{tag:"ag-checkbox",ref:"eCheckbox",cls:"ag-set-filter-item-checkbox"}]},mXt={tag:"div",cls:"ag-set-filter-item",children:[{tag:"ag-checkbox",ref:"eCheckbox",cls:"ag-set-filter-item-checkbox"}]},vXt=class extends Gt{constructor(e){super(e.isGroup?gXt:mXt,[Rm]),this.eCheckbox=at,this.eGroupOpenedIcon=at,this.eGroupClosedIcon=at,this.eGroupIndeterminateIcon=at,this.formattedValue=null,this.focusWrapper=e.focusWrapper,this.value=e.value,this.params=e.params,this.translate=e.translate,this.valueFormatter=e.valueFormatter,this.item=e.item,this.isSelected=e.isSelected,this.isTree=e.isTree,this.depth=e.depth??0,this.isGroup=e.isGroup,this.groupsExist=e.groupsExist,this.isExpanded=e.isExpanded,this.hasIndeterminateExpandState=e.hasIndeterminateExpandState}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getColDef:()=>this.params.colDef,getColumn:()=>this.params.column,getLocation:()=>"setFilterValue",shouldDisplayTooltip:()=>this.shouldDisplayTooltip?.()??!0,getValueFormatted:()=>this.formattedValue,getAdditionalParams:()=>this.isTree?{level:this.depth}:{}})),this.addDestroyFunc(()=>this.destroyCellRendererComponent?.()),this.render(),this.eCheckbox.setLabelEllipsis(!0).setValue(this.isSelected,!0).setDisabled(!!this.params.readOnly).getInputElement().setAttribute("tabindex","-1"),this.refreshVariableAriaLabels(),this.isTree&&(this.depth>0&&(this.addCss("ag-set-filter-indent-"+this.depth),this.getGui().style.setProperty("--ag-indentation-level",String(this.depth))),this.isGroup?this.setupExpansion():this.groupsExist&&this.addCss("ag-set-filter-add-group-indent"),cK(this.getAriaElement(),this.depth+1)),this.refreshAriaChecked(),!this.params.readOnly&&this.eCheckbox.onValueChange(e=>this.onCheckboxChanged(!!e))}getFocusableElement(){return this.focusWrapper}setupExpansion(){const{eGroupClosedIcon:e,eGroupOpenedIcon:t,eGroupIndeterminateIcon:n,hasIndeterminateExpandState:r,beans:i}=this;e.appendChild(Ax("setFilterGroupClosed",i,null)),t.appendChild(Ax("setFilterGroupOpen",i,null));const o=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(e,{click:o}),this.addManagedElementListeners(t,{click:o}),r&&(n.appendChild(Ax("setFilterGroupIndeterminate",i,null)),this.addManagedElementListeners(n,{click:o})),this.setExpandedIcons(),this.refreshAriaExpanded()}onExpandOrContractClicked(){this.setExpanded(!this.isExpanded)}setExpanded(e,t){if(this.isGroup&&e!==this.isExpanded){this.isExpanded=e;const n={type:"expandedChanged",isExpanded:!!e,item:this.item};t||this.dispatchLocalEvent(n),this.setExpandedIcons(),this.refreshAriaExpanded()}}setExpandedIcons(){const{isExpanded:e,hasIndeterminateExpandState:t,eGroupClosedIcon:n,eGroupOpenedIcon:r,eGroupIndeterminateIcon:i}=this;Nn(n,t?e===!1:!e),Nn(r,e===!0),t&&Nn(i,e===void 0)}onCheckboxChanged(e){this.isSelected=e;const t={type:"selectionChanged",isSelected:e,item:this.item};this.dispatchLocalEvent(t),this.refreshVariableAriaLabels(),this.refreshAriaChecked()}toggleSelected(){this.params.readOnly||this.setSelected(!this.isSelected)}setSelected(e,t){this.isSelected=e,this.eCheckbox.setValue(e,t),this.refreshAriaChecked()}refreshVariableAriaLabels(){if(!this.isTree)return;const e=this.getLocaleTextFunc(),t=this.eCheckbox.getValue(),n=t===void 0?e("ariaIndeterminate","indeterminate"):t?e("ariaVisible","visible"):e("ariaHidden","hidden"),r=e("ariaToggleVisibility","Press SPACE to toggle visibility");Hx(this.eCheckbox.getInputElement(),void 0),this.eCheckbox.setInputAriaLabel(`${r} (${n})`)}setupFixedAriaLabels(e){if(!this.isTree)return;const n=this.getLocaleTextFunc()("ariaFilterValue","Filter Value"),r=this.getAriaElement();Es(r,`${e} ${n}`),lK(r,this.eCheckbox.getInputElement().id)}refreshAriaChecked(){const e=this.getAriaElement();GJe(e,this.eCheckbox.getValue())}refreshAriaExpanded(){d1(this.getAriaElement(),!!this.isExpanded)}refresh(e,t,n){this.item=e,t!==this.isSelected&&this.setSelected(t,!0),this.setExpanded(n,!0);const{cellRendererComponent:r,cellRendererParams:i,beans:o,params:a}=this;if(this.valueFunction){const s=this.valueFunction();this.setTooltipAndCellRendererParams(s,s),r||this.renderCellWithoutCellRenderer()}if(r){const s=tP(o.userCompFactory,a,i);if(!r.refresh?.(s?.params??i)){const c=r;this.renderCell(),this.destroyBean(c)}}}render(){const{params:{column:e}}=this;let{value:t}=this,n=null;typeof t=="function"?(this.valueFunction=t,n=this.valueFunction(),t=n):this.isTree?n=ap(t):n=this.getFormattedValue(e,t),this.formattedValue=n,this.setTooltipAndCellRendererParams(t,n),this.renderCell()}setTooltipAndCellRendererParams(e,t){const n=this.gos;if(this.params.showTooltips&&(!_N(n)||!this.params.cellRenderer)){const r=t??ap(e);this.shouldDisplayTooltip=TK(n,()=>this.eCheckbox.getGui().querySelector(".ag-label")),this.tooltipFeature?.setTooltipAndRefresh(r)}this.cellRendererParams=Vn(n,{value:e,valueFormatted:t,colDef:this.params.colDef,column:this.params.column,setTooltip:(r,i)=>{n.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=i,this.tooltipFeature?.setTooltipAndRefresh(r)}})}getFormattedValue(e,t){return this.beans.valueSvc.formatValue(e,null,t,this.valueFormatter,!1)}renderCell(){const t=tP(this.beans.userCompFactory,this.params,this.cellRendererParams)?.newAgStackInstance();if(t==null){this.renderCellWithoutCellRenderer();return}t.then(n=>{n&&(this.cellRendererComponent=n,this.eCheckbox.setLabel(n.getGui()),this.destroyCellRendererComponent=()=>this.destroyBean(n))})}renderCellWithoutCellRenderer(){const{valueFormatted:e,value:t}=this.cellRendererParams;let n=e??t??this.translate("blanks");typeof n!="string"&&(ut(208),n=""),this.eCheckbox.setLabel(n),this.setupFixedAriaLabels(n)}getComponentHolder(){return this.params.column.getColDef()}},Qrt=class{getModelAsString(e,t){const{values:n}=e||t.getModel()||{},r=t.getValueModel();if(n==null||r==null)return"";const i=n.filter(s=>r.isKeyAvailable(s)),o=i.length,a=i.slice(0,10).map(s=>t.getFormattedValue(s));return`(${o}) ${a.join(",")}${o>10?",...":""}`}};function Rhe(e,t,n){let r=e;return r?(r=r.map(i=>ap(zc(i))),!t&&n&&r.some(i=>i==null)?zr(r)==null?null:r.filter(i=>i!=null):r):null}var bXt=class{constructor(e,t,n,r,i,o,a,s,l,c){this.rowModel=e,this.filterParams=t,this.createKey=n,this.caseFormat=r,this.valueSvc=i,this.treeDataOrGrouping=o,this.treeData=a,this.groupAllowUnbalanced=s,this.addManagedEventListeners=l,this.rowGroupColsSvc=c}extractUniqueValuesAsync(e,t){return new Dr(n=>{if(this.rowModel.isRowDataLoaded())n(this.extractUniqueValues(e,t));else{const[r]=this.addManagedEventListeners({rowCountReady:()=>{r?.(),n(this.extractUniqueValues(e,t))}})}})}extractUniqueValues(e,t){const n=new Map,r=this.extractExistingFormattedKeys(t),i=new Set,o=this.treeData,a=this.rowGroupColsSvc?.columns,s=(l,c)=>{const u=this.caseFormat(l);if(!i.has(u)){i.add(u);let d=l,p=zc(c);const h=r?.get(u);h!=null&&(d=h,p=t.get(h)),n.set(d,p)}};return this.rowModel.forEachLeafNode(l=>{if(!l.data||!e(l))return;if(this.treeDataOrGrouping){this.addValueForTreeDataOrGrouping(l,o,a,s);return}const c=this.getValue(l);c!=null&&Array.isArray(c)?(c.forEach(u=>{s(this.createKey(u,l),u)}),c.length===0&&s(null,null)):s(this.createKey(c,l),c)}),n}addValueForTreeDataOrGrouping(e,t,n=[],r){let i;if(t){if(e.childrenAfterGroup?.length)return;i=e.getRoute()??[e.key??e.id]}else i=n.map(a=>this.valueSvc.getKeyForNode(a,e)),i.push(this.getValue(e));const o=Rhe(i,t,this.groupAllowUnbalanced);r(this.createKey(o),o)}getValue(e){return this.filterParams.getValue(e)}extractExistingFormattedKeys(e){if(!e)return null;const t=new Map;return e.forEach((n,r)=>{t.set(this.caseFormat(r),r)}),t}},yXt=class{constructor({caseFormat:e}){this.filteringKeys=null,this.filteringKeysCaseFormatted=null,this.hasNoAppliedFilteringKeys=!1,this.caseFormat=e}allFilteringKeys(){return this.filteringKeys}allFilteringKeysCaseFormatted(){return this.filteringKeysCaseFormatted}setFilteringKeys(e){this.filteringKeys=new Set(e),this.hasNoAppliedFilteringKeys=!this.filteringKeys||this.filteringKeys.size===0,this.filteringKeysCaseFormatted=new Set,this.filteringKeys.forEach(t=>this.filteringKeysCaseFormatted.add(this.caseFormat(t)))}addFilteringKey(e){this.filteringKeys==null&&(this.filteringKeys=new Set,this.filteringKeysCaseFormatted=new Set),this.filteringKeys.add(e),this.filteringKeysCaseFormatted.add(this.caseFormat(e)),this.hasNoAppliedFilteringKeys&&(this.hasNoAppliedFilteringKeys=!1)}hasCaseFormattedFilteringKey(e){return this.filteringKeysCaseFormatted.has(this.caseFormat(e))}hasFilteringKey(e){return this.filteringKeys.has(e)}reset(){this.filteringKeys=null,this.filteringKeysCaseFormatted=null,this.hasNoAppliedFilteringKeys=!1}},MXt=class{constructor(e,t,n,r){this.valueSvc=e,this.valueFormatter=t,this.formatter=n,this.column=r,this.displayedKeys=[]}updateDisplayedValuesToAllAvailable(e,t,n){this.displayedKeys=Array.from(n)}updateDisplayedValuesToMatchMiniFilter(e,t,n,r,i){this.displayedKeys=[];for(const o of n)if(o==null)i&&this.displayedKeys.push(o);else{const a=e(o),s=this.valueSvc.formatValue(this.column,null,a,this.valueFormatter,!1),l=this.formatter(s);r(l)&&this.displayedKeys.push(o)}}getDisplayedValueCount(){return this.displayedKeys.length}getDisplayedItem(e){return this.displayedKeys[e]}getSelectAllItem(){return nO}getAddSelectionToFilterItem(){return rO}getDisplayedKeys(){return this.displayedKeys}forEachDisplayedKey(e){this.displayedKeys.forEach(e)}someDisplayedKey(e){return this.displayedKeys.some(e)}hasGroups(){return!1}refresh(){}},CXt=e=>Yi(e)?null:!(e instanceof Date)||isNaN(e.getTime())?["NaN"]:[String(e.getFullYear()),String(e.getMonth()+1),String(e.getDate())],wRe=class{constructor(e,t,n,r){this.formatter=e,this.treeListPathGetter=t,this.treeListFormatter=n,this.treeDataOrGrouping=r,this.allDisplayedItemsTree=[],this.activeDisplayedItemsFlat=[],this.selectAllItem={depth:0,filterPasses:!0,available:!0,treeKey:nO,children:this.allDisplayedItemsTree,expanded:!0,key:nO,parentTreeKeys:[]},this.addSelectionToFilterItem={depth:0,filterPasses:!0,available:!0,treeKey:rO,expanded:!0,key:rO,parentTreeKeys:[]}}updateOnParamsChange(e){this.treeListFormatter=e}updateDisplayedValuesToAllAvailable(e,t,n,r){r==="reload"?this.generateItemTree(e,t,n):r==="otherFilter"?(this.updateAvailable(n),this.updateExpandAll()):r==="miniFilter"&&(this.resetFilter(),this.updateExpandAll()),this.flattenItems()}updateDisplayedValuesToMatchMiniFilter(e,t,n,r,i,o){o==="reload"?this.generateItemTree(e,t,n):o==="otherFilter"&&this.updateAvailable(n),this.updateFilter(r,i),this.updateExpandAll(),this.flattenItems()}generateItemTree(e,t,n){this.allDisplayedItemsTree=[],this.groupsExist=!1;const r=this.getTreeListPathGetter(e,n);for(const i of t){const o=e(i),a=r(o)??[null];a.length>1&&(this.groupsExist=!0);const s=n.has(i);let l=this.allDisplayedItemsTree,c,u=[];a.forEach((d,p)=>{l||(l=[],c.children=l),c=l.find(h=>h.treeKey?.toUpperCase()===d?.toUpperCase()),c||(c={treeKey:d,depth:p,filterPasses:!0,expanded:!1,available:s,parentTreeKeys:u},p===a.length-1&&(c.key=i),l.push(c)),l=c.children,u=[...u,d]})}this.updateAvailable(n),this.selectAllItem.children=this.allDisplayedItemsTree,this.selectAllItem.expanded=!1}getTreeListPathGetter(e,t){if(this.treeListPathGetter)return this.treeListPathGetter;if(this.treeDataOrGrouping)return r=>r;let n=!1;for(const r of t){const i=e(r);if(i instanceof Date){n=!0;break}else if(i!=null)break}return n?CXt:(ut(211),r=>[String(r)])}flattenItems(){this.activeDisplayedItemsFlat=[];const e=t=>{t.forEach(n=>{!n.filterPasses||!n.available||(this.activeDisplayedItemsFlat.push(n),n.children&&n.expanded&&e(n.children))})};e(this.allDisplayedItemsTree)}resetFilter(){const e=t=>{t.children&&t.children.forEach(n=>{e(n)}),t.filterPasses=!0};this.allDisplayedItemsTree.forEach(t=>e(t))}updateFilter(e,t){const n=r=>r.available?r.treeKey==null?t:e(this.formatter(this.treeListFormatter?this.treeListFormatter(r.treeKey,r.depth,r.parentTreeKeys):r.treeKey)):!1;this.allDisplayedItemsTree.forEach(r=>this.recursiveItemCheck(r,!1,n,"filterPasses"))}getDisplayedValueCount(){return this.activeDisplayedItemsFlat.length}getDisplayedItem(e){return this.activeDisplayedItemsFlat[e]}getSelectAllItem(){return this.selectAllItem}getAddSelectionToFilterItem(){return this.addSelectionToFilterItem}getDisplayedKeys(){const e=[];return this.forEachDisplayedKey(t=>e.push(t)),e}forEachDisplayedKey(e){const t=(n,r)=>{n.children?(!n.expanded||!r)&&n.children.forEach(i=>{i.filterPasses&&t(i,!1)}):e(n.key)};this.activeDisplayedItemsFlat.forEach(n=>t(n,!0))}someDisplayedKey(e){const t=(n,r)=>{if(n.children){if(!n.expanded||!r)return n.children.some(i=>i.filterPasses?t(i,!1):!1)}else return e(n.key);return!1};return this.activeDisplayedItemsFlat.some(n=>t(n,!0))}hasGroups(){return this.groupsExist}refresh(){this.updateExpandAll(),this.flattenItems()}updateExpandAll(){const e=(n,r,i)=>{for(const o of n){if(!o.filterPasses||!o.available||!o.children)continue;if(r=r||!!o.expanded,i=i||!o.expanded,r&&i)return;const a=e(o.children,r,i);if(a===void 0)return;a?r=!0:i=!0}return r&&i?void 0:r},t=this.getSelectAllItem();t.expanded=e(t.children,!1,!1)}recursiveItemCheck(e,t,n,r){let i=!1;e.children&&e.children.forEach(a=>{const s=this.recursiveItemCheck(a,t||n(e),n,r);i=i||s});const o=t||i||n(e);return e[r]=o,o}updateAvailable(e){const t=n=>e.has(n.key);this.allDisplayedItemsTree.forEach(n=>this.recursiveItemCheck(n,!1,t,"available"))}},xXt=class{constructor(e){this.localEventService=new Wy,this.miniFilterText=null,this.addCurrentSelectionToFilter=!1,this.providedValues=null,this.allValues=new Map,this.availableKeys=new Set,this.selectedKeys=new Set,this.initialised=!1;const{usingComplexObjects:t,rowGroupColsSvc:n,valueSvc:r,treeDataTreeList:i,groupingTreeList:o,filterParams:a,gos:s,valueFormatter:l,addManagedEventListeners:c}=e,{column:u,colDef:d,textFormatter:p,doesRowPassOtherFilter:h,suppressSorting:g,comparator:m,rowModel:v,values:y,caseSensitive:M,treeList:C,treeListPathGetter:x,treeListFormatter:w}=a;this.filterParams=a,this.gos=s,this.setIsLoading=e.setIsLoading,this.translate=e.translate,this.caseFormat=e.caseFormat,this.createKey=e.createKey,this.usingComplexObjects=!!e.usingComplexObjects,this.formatter=p??(O=>O??null),this.doesRowPassOtherFilters=h,this.suppressSorting=g||!1,this.filteringKeys=new yXt({caseFormat:this.caseFormat});const S=m??d.comparator,A=!!i||!!o;this.compareByValue=!!(t&&S||A||C&&!x),A&&!S?this.entryComparator=this.createTreeDataOrGroupingComparator():C&&!x&&!S?this.entryComparator=([O,T],[I,P])=>BG(T,P):this.entryComparator=([O,T],[I,P])=>S(T,P),this.keyComparator=S??BG,this.caseSensitive=!!M;const z=s.get("groupAllowUnbalanced");oa(s)&&(this.clientSideValuesExtractor=new bXt(v,this.filterParams,this.createKey,this.caseFormat,r,A,!!i,z,c,n)),y==null?this.valuesType=2:(this.valuesType=Array.isArray(y)?0:1,this.providedValues=y),this.displayValueModel=C?new wRe(this.formatter,x,w,i||o):new MXt(r,l,this.formatter,u),this.updateAllValues().then(O=>this.resetSelectionState(O||[]))}addEventListener(e,t,n){this.localEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.localEventService.removeEventListener(e,t,n)}updateOnParamsChange(e){return new Dr(t=>{const{values:n,textFormatter:r,suppressSorting:i,treeListFormatter:o}=e,a=this.providedValues,s=this.suppressSorting;if(this.filterParams=e,this.formatter=r??(l=>l??null),this.suppressSorting=i||!1,this.providedValues=n??null,this.displayValueModel instanceof wRe&&this.displayValueModel.updateOnParamsChange(o),this.providedValues!==a||this.suppressSorting!==s){!n||n.length===0?(this.valuesType=2,this.providedValues=null):this.valuesType=Array.isArray(n)?0:1;const l=this.getModel();this.updateAllValues().then(()=>{this.setModel(l).then(()=>t())})}else t()})}refreshValues(){return new Dr(e=>{this.allValuesPromise.then(()=>{const t=this.getModel();this.updateAllValues(),this.setModel(t).then(()=>e())})})}overrideValues(e){return new Dr(t=>{this.allValuesPromise.then(()=>{this.valuesType=0,this.providedValues=e,this.refreshValues().then(()=>t())})})}refreshAfterAnyFilterChanged(){return this.showAvailableOnly()?this.allValuesPromise.then(e=>(this.updateAvailableKeys(e??[],"otherFilter"),!0)):Dr.resolve(!1)}isInitialised(){return this.initialised}updateAllValues(){return this.allValuesPromise=new Dr(e=>{switch(this.valuesType){case 2:this.getValuesFromRowsAsync(!1).then(t=>e(this.processAllValues(t)));break;case 0:{e(this.processAllValues(this.uniqueValues(this.validateProvidedValues(this.providedValues))));break}case 1:{this.setIsLoading(!0);const t=this.providedValues,{column:n,colDef:r}=this.filterParams,i=Vn(this.gos,{success:o=>{this.setIsLoading(!1),e(this.processAllValues(this.uniqueValues(this.validateProvidedValues(o))))},colDef:r,column:n});window.setTimeout(()=>t(i),0);break}}}),this.allValuesPromise.then(e=>this.updateAvailableKeys(e||[],"reload")).then(()=>this.initialised=!0),this.allValuesPromise}processAllValues(e){const t=this.sortKeys(e);return this.allValues=e??new Map,t}validateProvidedValues(e){if(this.usingComplexObjects&&e?.length){const t=e[0];t&&typeof t!="object"&&typeof t!="function"&&(this.createKey(t)==null?ut(209):ut(210))}return e}setValuesType(e){this.valuesType=e}getValuesType(){return this.valuesType}isKeyAvailable(e){return this.availableKeys.has(e)}showAvailableOnly(){return this.valuesType===2}updateAvailableKeys(e,t){const n=this.showAvailableOnly()?this.sortKeys(this.getValuesFromRows(!0)):e;this.availableKeys=new Set(n),this.localEventService.dispatchEvent({type:"availableValuesChanged"}),this.updateDisplayedValues(t,e)}sortKeys(e){const t=e??new Map;if(this.suppressSorting)return Array.from(t.keys());let n;return this.compareByValue?n=Array.from(t.entries()).sort(this.entryComparator).map(([r])=>r):n=Array.from(t.keys()).sort(this.keyComparator),this.filterParams.excelMode&&t.has(null)&&(n=n.filter(r=>r!=null),n.push(null)),n}getParamsForValuesFromRows(e=!1){if(!this.clientSideValuesExtractor)return pi(113),null;const t=r=>!e||this.doesRowPassOtherFilters(r),n=e&&!this.caseSensitive?this.allValues:void 0;return{predicate:t,existingValues:n}}getValuesFromRows(e=!1){const t=this.getParamsForValuesFromRows(e);return t?this.clientSideValuesExtractor.extractUniqueValues(t.predicate,t.existingValues):null}getValuesFromRowsAsync(e=!1){const t=this.getParamsForValuesFromRows(e);return t?this.clientSideValuesExtractor.extractUniqueValuesAsync(t.predicate,t.existingValues):Dr.resolve(null)}setMiniFilter(e){return e=zc(e),this.miniFilterText===e?!1:(e===null&&this.setAddCurrentSelectionToFilter(!1),this.miniFilterText=e,this.updateDisplayedValues("miniFilter"),!0)}getMiniFilter(){return this.miniFilterText}updateDisplayedValues(e,t){if(e==="expansion"){this.displayValueModel.refresh();return}if(this.miniFilterText==null){this.displayValueModel.updateDisplayedValuesToAllAvailable(o=>this.getValue(o),t,this.availableKeys,e);return}const n=this.caseFormat(this.formatter(this.miniFilterText)||""),r=o=>o!=null&&this.caseFormat(o).indexOf(n)>=0,i=!!this.filterParams.excelMode&&r(this.translate("blanks"));this.displayValueModel.updateDisplayedValuesToMatchMiniFilter(o=>this.getValue(o),t,this.availableKeys,r,i,e)}getDisplayedValueCount(){return this.displayValueModel.getDisplayedValueCount()}getDisplayedItem(e){return this.displayValueModel.getDisplayedItem(e)}getSelectAllItem(){return this.displayValueModel.getSelectAllItem()}getAddSelectionToFilterItem(){return this.displayValueModel.getAddSelectionToFilterItem()}hasSelections(){return this.filterParams.defaultToNothingSelected?this.selectedKeys.size>0:this.allValues.size!==this.selectedKeys.size}getKeys(){return Array.from(this.allValues.keys())}getValues(){return Array.from(this.allValues.values())}getValue(e){return this.allValues.get(e)}setAddCurrentSelectionToFilter(e){this.addCurrentSelectionToFilter=e}isInWindowsExcelMode(){return this.filterParams.excelMode==="windows"}isAddCurrentSelectionToFilterChecked(){return this.isInWindowsExcelMode()&&this.addCurrentSelectionToFilter}showAddCurrentSelectionToFilter(){return this.isInWindowsExcelMode()&&Ut(this.miniFilterText)&&this.miniFilterText.length>0}selectAllMatchingMiniFilter(e=!1){this.miniFilterText==null?this.selectedKeys=new Set(this.allValues.keys()):(e&&this.selectedKeys.clear(),this.displayValueModel.forEachDisplayedKey(t=>this.selectedKeys.add(t)))}deselectAllMatchingMiniFilter(){this.miniFilterText==null?this.selectedKeys.clear():this.displayValueModel.forEachDisplayedKey(e=>this.selectedKeys.delete(e))}selectKey(e){this.selectedKeys.add(e)}deselectKey(e){this.filterParams.excelMode&&this.isEverythingVisibleSelected()&&this.resetSelectionState(this.displayValueModel.getDisplayedKeys()),this.selectedKeys.delete(e)}isKeySelected(e){return this.selectedKeys.has(e)}isEverythingVisibleSelected(){return!this.displayValueModel.someDisplayedKey(e=>!this.isKeySelected(e))}isNothingVisibleSelected(){return!this.displayValueModel.someDisplayedKey(e=>this.isKeySelected(e))}getModel(){if(!this.hasSelections())return null;const e=this.isAddCurrentSelectionToFilterChecked()?this.filteringKeys.allFilteringKeys():null;if(e&&e.size>0){if(this.selectedKeys){const t=new Set([...Array.from(e),...Array.from(this.selectedKeys).filter(n=>!e.has(n))]);return Array.from(t)}return Array.from(e)}return Array.from(this.selectedKeys)}setModel(e){return this.allValuesPromise.then(t=>{if(e==null)this.resetSelectionState(t??[]);else{this.selectedKeys.clear();const n=new Map;this.allValues.forEach((r,i)=>{n.set(this.caseFormat(i),i)}),e.forEach(r=>{const i=this.caseFormat(zc(r)),o=n.get(i);o!==void 0&&this.selectKey(o)})}})}uniqueValues(e){const t=new Map,n=new Set;return(e??[]).forEach(r=>{const i=zc(r),o=this.createKey(i),a=this.caseFormat(o);n.has(a)||(n.add(a),t.set(o,i))}),t}resetSelectionState(e){this.filterParams.defaultToNothingSelected?this.selectedKeys.clear():this.selectedKeys=new Set(e)}hasGroups(){return this.displayValueModel.hasGroups()}createTreeDataOrGroupingComparator(){return([e,t],[n,r])=>{if(t==null)return r==null?0:-1;if(r==null)return 1;for(let i=0;i<t.length;i++){if(i>=r.length)return 1;const o=BG(t[i],r[i]);if(o!==0)return o}return 0}}setAppliedModelKeys(e){this.filteringKeys.setFilteringKeys(e)}addToAppliedModelKeys(e){this.filteringKeys.addFilteringKey(e)}getAppliedModelKeys(){return this.filteringKeys.allFilteringKeys()}getCaseFormattedAppliedModelKeys(){return this.filteringKeys.allFilteringKeysCaseFormatted()}hasAppliedModelKey(e){return this.filteringKeys.hasCaseFormattedFilteringKey(e)}hasAnyAppliedModelKey(){return!this.filteringKeys.hasNoAppliedFilteringKeys}},Zrt=class extends AK{constructor(){super("setFilter"),this.filterType="set",this.eMiniFilter=at,this.eFilterLoading=at,this.eFilterLoadingIcon=at,this.eSetFilterList=at,this.eFilterNoMatches=at,this.caseSensitive=!1,this.treeDataTreeList=!1,this.groupingTreeList=!1,this.hardRefreshVirtualList=!1,this.noValueFormatterSupplied=!1,this.filterModelFormatter=new Qrt,this.updateSetFilterOnParamsChange=e=>{this.setFilterParams=e,this.caseSensitive=!!e.caseSensitive;const t=e.keyCreator??e.colDef.keyCreator;this.setValueFormatter(e.valueFormatter,t,!!e.treeList,!!e.colDef.refData);const n=e.column.getId().startsWith(jy);this.treeDataTreeList=this.gos.get("treeData")&&!!e.treeList&&n,this.groupingTreeList=!!this.rowGroupColsSvc?.columns.length&&!!e.treeList&&n,this.createKey=this.generateCreateKey(t,this.treeDataTreeList||this.groupingTreeList)}}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc,this.dataTypeSvc=e.dataTypeSvc}postConstruct(){super.postConstruct()}updateUiVisibility(){}createBodyTemplate(){return{tag:"div",cls:"ag-set-filter",children:[{tag:"div",ref:"eFilterLoading",cls:"ag-filter-loading ag-loading ag-hidden",children:[{tag:"span",ref:"eFilterLoadingIcon",cls:"ag-loading-icon"},{tag:"span",cls:"ag-loading-text",children:this.translateForSetFilter("loadingOoo")}]},{tag:"ag-input-text-field",ref:"eMiniFilter",cls:"ag-mini-filter"},{tag:"div",ref:"eFilterNoMatches",cls:"ag-filter-no-matches ag-hidden",children:this.translateForSetFilter("noMatches")},{tag:"div",ref:"eSetFilterList",cls:"ag-set-filter-list",role:"presentation"}]}}getAgComponents(){return[Vf]}handleKeyDown(e){if(super.handleKeyDown(e),!e.defaultPrevented)switch(e.key){case Qe.SPACE:this.handleKeySpace(e);break;case Qe.ENTER:this.handleKeyEnter(e);break;case Qe.LEFT:this.handleKeyLeft(e);break;case Qe.RIGHT:this.handleKeyRight(e);break}}handleKeySpace(e){this.getComponentForKeyEvent(e)?.toggleSelected()}handleKeyEnter(e){const{excelMode:t,readOnly:n}=this.setFilterParams;!t||n||(e.preventDefault(),this.onBtApply(!1,!1,e),this.setFilterParams.excelMode==="mac"&&this.eMiniFilter.getInputElement().select())}handleKeyLeft(e){this.getComponentForKeyEvent(e)?.setExpanded(!1)}handleKeyRight(e){this.getComponentForKeyEvent(e)?.setExpanded(!0)}getComponentForKeyEvent(e){if(!this.eSetFilterList.contains(Gi(this.beans)))return;const t=this.virtualList.getLastFocusedRow();if(t==null)return;const n=this.virtualList.getComponentAt(t);if(n==null)return;e.preventDefault();const{readOnly:r}=this.setFilterParams;if(!r)return n}getCssIdentifier(){return"set-filter"}setModel(e){return e==null&&this.valueModel.getModel()==null?(this.setMiniFilter(null),Dr.resolve()):super.setModel(e)}refresh(e){if(this.applyExcelModeOptions(e),!super.refresh(e))return!1;const t=this.setFilterParams;return["treeList","treeListPathGetter","caseSensitive","comparator","excelMode"].some(r=>e[r]!==t?.[r])||this.haveColDefParamsChanged(e)?!1:(super.updateParams(e),this.updateSetFilterOnParamsChange(e),this.updateMiniFilter(),e.suppressSelectAll!==t?.suppressSelectAll&&this.createVirtualListModel(e),this.valueModel.updateOnParamsChange(e).then(()=>{this.isAlive()&&this.refreshFilterValues()}),!0)}haveColDefParamsChanged(e){const{colDef:t,keyCreator:n}=e,{colDef:r,keyCreator:i}=this.setFilterParams,o=n??t.keyCreator,a=i??r?.keyCreator,s=t.filterValueGetter!==r?.filterValueGetter,l=o!==a,c=!!this.dataTypeSvc&&!!o&&this.dataTypeSvc.getFormatValue(t.cellDataType)===o&&t.valueFormatter!==r?.valueFormatter;return s||l||c}setModelAndRefresh(e){return this.valueModel.setModel(e).then(()=>{this.isAlive()&&this.checkAndRefreshVirtualList()})}resetUiToDefaults(){return this.setMiniFilter(null),this.setModelAndRefresh(null)}setModelIntoUi(e){this.setMiniFilter(null);const t=e==null?null:e.values;return this.setModelAndRefresh(t)}getModelFromUi(){const e=this.valueModel.getModel();return e?{values:e,filterType:this.filterType}:null}getValueModel(){return this.valueModel}areModelsEqual(e,t){return e==null&&t==null?!0:e!=null&&t!=null&&yd(e.values,t.values)}setParams(e){this.applyExcelModeOptions(e),super.setParams(e),this.updateSetFilterOnParamsChange(e);const t=e.keyCreator??e.colDef.keyCreator;this.valueModel=new xXt({filterParams:e,setIsLoading:n=>this.setIsLoading(n),translate:n=>this.translateForSetFilter(n),caseFormat:n=>this.caseFormat(n),createKey:this.createKey,valueFormatter:this.valueFormatter,usingComplexObjects:!!t,gos:this.gos,rowGroupColsSvc:this.rowGroupColsSvc,valueSvc:this.valueSvc,treeDataTreeList:this.treeDataTreeList,groupingTreeList:this.groupingTreeList,addManagedEventListeners:n=>this.addManagedEventListeners(n)}),this.initialiseFilterBodyUi(),this.addEventListenersForDataChanges()}onAddCurrentSelectionToFilterChange(e){this.valueModel.setAddCurrentSelectionToFilter(e)}setValueFormatter(e,t,n,r){let i=e;if(!i){if(t&&!n){pi(249);return}this.noValueFormatterSupplied=!0,r||(i=o=>ap(o.value))}this.valueFormatter=i}generateCreateKey(e,t){return t&&!e?(pi(250),()=>null):e?(n,r=null)=>{const i=this.getKeyCreatorParams(n,r);return zc(e(i))}:n=>zc(ap(n))}getFormattedValue(e){let t=this.valueModel.getValue(e);this.noValueFormatterSupplied&&(this.treeDataTreeList||this.groupingTreeList)&&Array.isArray(t)&&(t=zr(t));const n=this.valueSvc.formatValue(this.setFilterParams.column,null,t,this.valueFormatter,!1);return n??ap(t)??this.translateForSetFilter("blanks")}applyExcelModeOptions(e){e.excelMode==="windows"?(e.buttons||(e.buttons=["apply","cancel"]),e.closeOnApply==null&&(e.closeOnApply=!0)):e.excelMode==="mac"&&(e.buttons||(e.buttons=["reset"]),e.applyMiniFilterWhileTyping==null&&(e.applyMiniFilterWhileTyping=!0),e.debounceMs==null&&(e.debounceMs=500)),e.excelMode&&e.defaultToNothingSelected&&(e.defaultToNothingSelected=!1,ut(207))}addEventListenersForDataChanges(){if(!this.isValuesTakenFromGrid())return;this.addManagedPropertyListeners(["groupAllowUnbalanced"],()=>{this.syncAfterDataChange()});const e=Ml(this,this.syncAfterDataChange.bind(this),0);this.addManagedEventListeners({cellValueChanged:t=>{t.column===this.setFilterParams.column&&e()}})}syncAfterDataChange(){const e=!this.applyActive||this.areModelsEqual(this.getModel(),this.getModelFromUi());return this.valueModel.refreshValues().then(()=>{this.isAlive()&&(this.checkAndRefreshVirtualList(),e&&this.onBtApply(!1,!0))})}setIsLoading(e){Nn(this.eFilterLoading,e),e||(this.hardRefreshVirtualList=!0)}initialiseFilterBodyUi(){this.initVirtualList(),this.initMiniFilter(),this.initLoading()}initLoading(){const e=er("setFilterLoading",this.beans,this.setFilterParams.column);e&&this.eFilterLoadingIcon.appendChild(e)}initVirtualList(){const t=this.getLocaleTextFunc()("ariaFilterList","Filter List"),n=!!this.setFilterParams.treeList,r=this.virtualList=this.createBean(new fD({cssIdentifier:"filter",ariaRole:n?"tree":"listbox",listName:t})),i=this.eSetFilterList;n&&i.classList.add("ag-set-filter-tree-list"),i&&i.appendChild(r.getGui());const{cellHeight:o}=this.setFilterParams;o!=null&&r.setRowHeight(o);const a=(l,c)=>this.createSetListItem(l,n,c);r.setComponentCreator(a);const s=(l,c)=>this.updateSetListItem(l,c);r.setComponentUpdater(s),this.createVirtualListModel(this.setFilterParams)}createVirtualListModel(e){let t;e.suppressSelectAll?t=new wXt(this.valueModel):t=new SXt(this.valueModel,()=>this.isSelectAllSelected()),e.treeList&&(t=new AXt(t)),this.virtualList.setModel(t)}getSelectAllLabel(){const e=this.valueModel.getMiniFilter()==null||!this.setFilterParams.excelMode?"selectAll":"selectAllSearchResults";return this.translateForSetFilter(e)}getAddSelectionToFilterLabel(){return this.translateForSetFilter("addCurrentSelectionToFilter")}createSetListItem(e,t,n){const r=this.valueModel.hasGroups(),{isSelected:i,isExpanded:o}=this.isSelectedExpanded(e),{value:a,depth:s,isGroup:l,hasIndeterminateExpandState:c,selectedListener:u,expandedListener:d}=this.newSetListItemAttributes(e),p={focusWrapper:n,value:a,params:this.setFilterParams,translate:g=>this.translateForSetFilter(g),valueFormatter:this.valueFormatter,item:e,isSelected:i,isTree:t,depth:s,groupsExist:r,isGroup:l,isExpanded:o,hasIndeterminateExpandState:c},h=this.createBean(new vXt(p));return h.addEventListener("selectionChanged",u),d&&h.addEventListener("expandedChanged",d),h}newSetTreeItemAttributes(e){const t=this.valueModel.hasGroups();return e.key===nO?{value:()=>this.getSelectAllLabel(),isGroup:t,depth:e.depth,hasIndeterminateExpandState:!0,selectedListener:n=>this.onSelectAll(n.isSelected),expandedListener:n=>this.onExpandAll(n.item,n.isExpanded)}:e.key===rO?{value:()=>this.getAddSelectionToFilterLabel(),depth:e.depth,isGroup:!1,hasIndeterminateExpandState:!1,selectedListener:n=>{this.onAddCurrentSelectionToFilterChange(n.isSelected)}}:e.children?{value:this.setFilterParams.treeListFormatter?.(e.treeKey,e.depth,e.parentTreeKeys)??e.treeKey,depth:e.depth,isGroup:!0,selectedListener:n=>this.onGroupItemSelected(n.item,n.isSelected),expandedListener:n=>this.onExpandedChanged(n.item,n.isExpanded)}:{value:this.setFilterParams.treeListFormatter?.(e.treeKey,e.depth,e.parentTreeKeys)??e.treeKey,depth:e.depth,selectedListener:n=>this.onItemSelected(n.item.key,n.isSelected)}}newSetListItemAttributes(e){return this.isSetFilterModelTreeItem(e)?this.newSetTreeItemAttributes(e):e===nO?{value:()=>this.getSelectAllLabel(),selectedListener:t=>this.onSelectAll(t.isSelected)}:e===rO?{value:()=>this.getAddSelectionToFilterLabel(),selectedListener:t=>{this.onAddCurrentSelectionToFilterChange(t.isSelected)}}:{value:this.valueModel.getValue(e),selectedListener:t=>this.onItemSelected(t.item,t.isSelected)}}updateSetListItem(e,t){const{isSelected:n,isExpanded:r}=this.isSelectedExpanded(e);t.refresh(e,n,r)}isSelectedExpanded(e){let t,n;return this.isSetFilterModelTreeItem(e)?(n=e.expanded,e.key===nO?t=this.isSelectAllSelected():e.key===rO?t=this.valueModel.isAddCurrentSelectionToFilterChecked():e.children?t=this.areAllChildrenSelected(e):t=this.valueModel.isKeySelected(e.key)):e===nO?t=this.isSelectAllSelected():e===rO?t=this.valueModel.isAddCurrentSelectionToFilterChecked():t=this.valueModel.isKeySelected(e),{isSelected:t,isExpanded:n}}isSetFilterModelTreeItem(e){return e?.treeKey!==void 0}initMiniFilter(){const{eMiniFilter:e}=this,t=this.getLocaleTextFunc();e.setDisplayed(!this.setFilterParams.suppressMiniFilter),e.setValue(this.valueModel.getMiniFilter()),e.onValueChange(()=>this.onMiniFilterInput()),e.setInputAriaLabel(t("ariaSearchFilterValues","Search filter values")),this.addManagedElementListeners(e.getInputElement(),{keydown:n=>this.onMiniFilterKeyDown(n)})}updateMiniFilter(){const{eMiniFilter:e}=this;e.isDisplayed()!==!this.setFilterParams.suppressMiniFilter&&e.setDisplayed(!this.setFilterParams.suppressMiniFilter);const t=this.valueModel.getMiniFilter();e.getValue()!==t&&e.setValue(t)}afterGuiAttached(e){super.afterGuiAttached(e),this.resetExpansion(),this.refreshVirtualList();const{eMiniFilter:t}=this;t.setInputPlaceholder(this.translateForSetFilter("searchOoo")),(!e||!e.suppressFocus)&&(t.isDisplayed()?t.getFocusableElement().focus():this.virtualList.awaitStable(()=>this.virtualList.focusRow(0)))}afterGuiDetached(){super.afterGuiDetached(),this.setFilterParams.excelMode&&this.resetMiniFilter();const e=this.getModel();(this.setFilterParams.excelMode||!this.areModelsEqual(e,this.getModelFromUi()))&&(this.resetUiToActiveModel(e),this.showOrHideResults())}applyModel(e="api"){this.setFilterParams.excelMode&&e!=="rowDataUpdated"&&this.valueModel.isEverythingVisibleSelected()&&this.valueModel.selectAllMatchingMiniFilter();const t=this.valueModel.showAddCurrentSelectionToFilter()&&this.valueModel.isAddCurrentSelectionToFilterChecked();if(t&&!this.getModel())return!1;const n=super.applyModel(e),r=this.getModel();return r?(t||this.valueModel.setAppliedModelKeys(new Set),r.values.forEach(i=>{this.valueModel.addToAppliedModelKeys(i)})):t||this.valueModel.setAppliedModelKeys(null),n}isModelValid(e){return this.setFilterParams.excelMode?e==null||e.values.length>0:!0}doesFilterPass(e){if(!this.valueModel.getCaseFormattedAppliedModelKeys())return!0;if(!this.valueModel.hasAnyAppliedModelKey())return!1;const{node:t}=e;if(this.treeDataTreeList)return this.doesFilterPassForTreeData(t);if(this.groupingTreeList)return this.doesFilterPassForGrouping(t);const n=this.getValueFromNode(t);return n!=null&&Array.isArray(n)?n.length===0?this.valueModel.hasAppliedModelKey(null):n.some(r=>this.isInAppliedModel(this.createKey(r,t))):this.isInAppliedModel(this.createKey(n,t))}doesFilterPassForTreeData(e){return e.childrenAfterGroup?.length?!1:this.isInAppliedModel(this.createKey(Rhe(e.getRoute()??[e.key??e.id],!0,this.gos.get("groupAllowUnbalanced"))))}doesFilterPassForGrouping(e){const t=(this.rowGroupColsSvc?.columns??[]).map(n=>this.valueSvc.getKeyForNode(n,e));return t.push(this.getValueFromNode(e)),this.isInAppliedModel(this.createKey(Rhe(t,!1,this.gos.get("groupAllowUnbalanced"))))}isInAppliedModel(e){return this.valueModel.hasAppliedModelKey(e)}getValueFromNode(e){return this.setFilterParams.getValue(e)}getKeyCreatorParams(e,t=null){const{colDef:n,column:r,api:i,context:o}=this.setFilterParams;return{value:e,colDef:n,column:r,node:t,data:t?.data,api:i,context:o}}onNewRowsLoaded(){this.isValuesTakenFromGrid()&&this.syncAfterDataChange()}isValuesTakenFromGrid(){return this.valueModel.getValuesType()===2}setFilterValues(e){this.valueModel.overrideValues(e).then(()=>{this.isAlive()&&(this.checkAndRefreshVirtualList(),this.onUiChanged())})}resetFilterValues(){this.valueModel.setValuesType(2),this.syncAfterDataChange()}refreshFilterValues(){this.valueModel.isInitialised()&&this.valueModel.refreshValues().then(()=>{this.isAlive()&&(this.hardRefreshVirtualList=!0,this.checkAndRefreshVirtualList(),this.onUiChanged())})}onAnyFilterChanged(){setTimeout(()=>{this.isAlive()&&this.valueModel.refreshAfterAnyFilterChanged().then(e=>{e&&this.isAlive()&&(this.checkAndRefreshVirtualList(),this.showOrHideResults())})},0)}onMiniFilterInput(){if(!this.valueModel.setMiniFilter(this.eMiniFilter.getValue()))return;const{applyMiniFilterWhileTyping:e,readOnly:t}=this.setFilterParams;!t&&e?this.filterOnAllVisibleValues(!1):this.updateUiAfterMiniFilterChange()}updateUiAfterMiniFilterChange(){const{excelMode:e,readOnly:t}=this.setFilterParams;e==null||t?this.checkAndRefreshVirtualList():this.valueModel.getMiniFilter()==null?this.resetUiToActiveModel(this.getModel()):(this.valueModel.selectAllMatchingMiniFilter(!0),this.checkAndRefreshVirtualList(),this.onUiChanged()),this.showOrHideResults()}showOrHideResults(){const e=this.valueModel.getMiniFilter()!=null&&this.valueModel.getDisplayedValueCount()<1;Nn(this.eFilterNoMatches,e),Nn(this.eSetFilterList,!e)}resetMiniFilter(){this.eMiniFilter.setValue(null,!0),this.valueModel.setMiniFilter(null)}resetUiToActiveModel(e,t){this.setModelAndRefresh(e==null?null:e.values).then(()=>{this.isAlive()&&(this.onUiChanged(!1,"prevent"),t?.())})}handleCancelEnd(e){this.setMiniFilter(null),super.handleCancelEnd(e)}onMiniFilterKeyDown(e){const{excelMode:t,readOnly:n}=this.setFilterParams;e.key===Qe.ENTER&&!t&&!n&&this.filterOnAllVisibleValues()}filterOnAllVisibleValues(e=!0){this.valueModel.selectAllMatchingMiniFilter(!0),this.checkAndRefreshVirtualList(),this.onUiChanged(!1,e?"immediately":"debounce"),this.showOrHideResults()}focusRowIfAlive(e){return e==null?Promise.resolve():new Promise(t=>{window.setTimeout(()=>{this.isAlive()&&this.virtualList.focusRow(e),t()},0)})}onSelectAll(e){e?this.valueModel.selectAllMatchingMiniFilter():this.valueModel.deselectAllMatchingMiniFilter(),this.refreshAfterSelection()}onGroupItemSelected(e,t){const n=r=>{r.filterPasses&&(r.children?r.children.forEach(i=>n(i)):this.selectItem(r.key,t))};n(e),this.refreshAfterSelection()}onItemSelected(e,t){this.selectItem(e,t),this.refreshAfterSelection()}selectItem(e,t){t?this.valueModel.selectKey(e):this.valueModel.deselectKey(e)}onExpandAll(e,t){const n=r=>{r.filterPasses&&r.available&&r.children&&(r.children.forEach(i=>n(i)),r.expanded=t)};n(e),this.refreshAfterExpansion()}onExpandedChanged(e,t){e.expanded=t,this.refreshAfterExpansion()}refreshAfterExpansion(){const e=this.virtualList.getLastFocusedRow();this.valueModel.updateDisplayedValues("expansion"),this.checkAndRefreshVirtualList(),this.focusRowIfAlive(e)}refreshAfterSelection(){const e=this.virtualList.getLastFocusedRow();this.checkAndRefreshVirtualList(),this.onUiChanged(),this.focusRowIfAlive(e)}setMiniFilter(e){this.eMiniFilter.setValue(e),this.onMiniFilterInput()}getMiniFilter(){return this.valueModel.getMiniFilter()}checkAndRefreshVirtualList(){this.virtualList.refresh(!this.hardRefreshVirtualList),this.hardRefreshVirtualList&&(this.hardRefreshVirtualList=!1)}getFilterKeys(){return this.valueModel.getKeys()}getFilterValues(){return this.valueModel.getValues()}getValues(){return this.getFilterKeys()}refreshVirtualList(){this.setFilterParams.refreshValuesOnOpen?this.refreshFilterValues():this.checkAndRefreshVirtualList()}translateForSetFilter(e){return this.getLocaleTextFunc()(e,fXt[e])}isSelectAllSelected(){if(this.setFilterParams.defaultToNothingSelected){if(this.valueModel.hasSelections()&&this.valueModel.isEverythingVisibleSelected())return!0;if(this.valueModel.isNothingVisibleSelected())return!1}else{if(this.valueModel.hasSelections()&&this.valueModel.isNothingVisibleSelected())return!1;if(this.valueModel.isEverythingVisibleSelected())return!0}}areAllChildrenSelected(e){const t=n=>{if(n.children){let r=!1,i=!1;return n.children.some(a=>{if(!a.filterPasses||!a.available)return!1;const s=t(a);return s===void 0?!0:(s?r=!0:i=!0,r&&i)})?void 0:r}else return this.valueModel.isKeySelected(n.key)};return this.setFilterParams.defaultToNothingSelected?this.valueModel.hasSelections()&&t(e):t(e)}destroy(){this.virtualList=this.destroyBean(this.virtualList),super.destroy()}caseFormat(e){return e==null||typeof e!="string"||this.caseSensitive?e:e.toUpperCase()}resetExpansion(){if(!this.setFilterParams.treeList)return;const e=this.valueModel.getSelectAllItem();if(this.isSetFilterModelTreeItem(e)){const t=n=>{n.children&&(n.children.forEach(r=>t(r)),n.expanded=!1)};t(e),this.valueModel.updateDisplayedValues("expansion")}}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e,this)}getPositionableElement(){return this.eSetFilterList}},wXt=class{constructor(e){this.model=e}getRowCount(){return this.model.getDisplayedValueCount()}getRow(e){return this.model.getDisplayedItem(e)}areRowsEqual(e,t){return e===t}},SXt=class{constructor(e,t){this.model=e,this.isSelectAllSelected=t}getRowCount(){const t=this.model.showAddCurrentSelectionToFilter()?2:1;return this.model.getDisplayedValueCount()+t}getRow(e){if(e===0)return this.model.getSelectAllItem();const t=this.model.showAddCurrentSelectionToFilter(),n=t?2:1;return e===1&&t?this.model.getAddSelectionToFilterItem():this.model.getDisplayedItem(e-n)}areRowsEqual(e,t){return e===t}},AXt=class{constructor(e){this.model=e}getRowCount(){return this.model.getRowCount()}getRow(e){return this.model.getRow(e)}areRowsEqual(e,t){return e==null&&t==null?!0:e!=null&&t!=null&&e.treeKey===t.treeKey&&e.depth===t.depth}},OXt={tag:"div",cls:"ag-floating-filter-input ag-set-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},zXt=class extends Gt{constructor(){super(OXt,[Vf]),this.eFloatingFilterText=at,this.availableValuesListenerAdded=!1,this.filterModelFormatter=new Qrt}wireBeans(e){this.colNames=e.colNames}init(e){this.params=e,this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams(e)}setParams(e){const t=this.colNames.getDisplayNameForColumn(e.column,"header",!0),n=this.getLocaleTextFunc();this.eFloatingFilterText.setInputAriaLabel(`${t} ${n("ariaFilterInput","Filter Input")}`)}refresh(e){this.params=e,this.setParams(e)}onParentModelChanged(e){this.updateFloatingFilterText(e)}parentSetFilterInstance(e){this.params.parentFilterInstance(t=>{if(!(t instanceof Zrt)){pi(248);return}e(t)})}addAvailableValuesListener(){this.parentSetFilterInstance(e=>{const t=e.getValueModel();t&&this.addManagedListeners(t,{availableValuesChanged:()=>this.updateFloatingFilterText()})}),this.availableValuesListenerAdded=!0}updateFloatingFilterText(e){this.availableValuesListenerAdded||this.addAvailableValuesListener(),this.parentSetFilterInstance(t=>{this.eFloatingFilterText.setValue(this.filterModelFormatter.getModelAsString(e,t))})}},TXt={moduleName:"SetFilter",version:wi,userComponents:{agSetColumnFilter:Zrt,agSetColumnFloatingFilter:zXt},icons:{setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",setFilterLoading:"loading"},dependsOn:[es,xw]},EXt=".ag-status-bar{border-top:var(--ag-footer-row-border);display:flex;justify-content:space-between;line-height:1.5;overflow:hidden;padding-left:calc(var(--ag-spacing)*4);padding-right:calc(var(--ag-spacing)*4)}.ag-status-panel,:where(.ag-status-panel.ag-status-panel-aggregations .ag-status-name-value){display:inline-flex}.ag-status-name-value{color:var(--ag-status-bar-label-color);font-weight:var(--ag-status-bar-label-font-weight);margin-left:var(--ag-spacing);margin-right:var(--ag-spacing);padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding);white-space:nowrap}.ag-status-name-value-value{color:var(--ag-status-bar-value-color);font-weight:var(--ag-status-bar-value-font-weight)}.ag-status-bar-left{display:inline-flex}.ag-status-bar-center{display:inline-flex;text-align:center}.ag-status-bar-right{display:inline-flex}";function RXt(e,t,n){return e.getCompDetails(t,IXt,void 0,n,!0)}var IXt={name:"statusPanel",optionalMethods:["refresh"]},PXt={tag:"div",cls:"ag-status-bar",children:[{tag:"div",ref:"eStatusBarLeft",cls:"ag-status-bar-left",role:"status"},{tag:"div",ref:"eStatusBarCenter",cls:"ag-status-bar-center",role:"status"},{tag:"div",ref:"eStatusBarRight",cls:"ag-status-bar-right",role:"status"}]},DXt=class extends Gt{constructor(){super(PXt),this.updateQueued=!1,this.panelsPromise=Dr.resolve(),this.eStatusBarLeft=at,this.eStatusBarCenter=at,this.eStatusBarRight=at,this.compDestroyFunctions={},this.registerCSS(EXt)}wireBeans(e){this.userCompFactory=e.userCompFactory,this.statusBarSvc=e.statusBarSvc}postConstruct(){this.processStatusPanels(new Map),this.addManagedPropertyListeners(["statusBar"],this.handleStatusBarChanged.bind(this))}processStatusPanels(e){const t=this.gos.get("statusBar")?.statusPanels;if(t){const n=t.filter(o=>o.align==="left"),r=t.filter(o=>o.align==="center"),i=t.filter(o=>!o.align||o.align==="right");this.panelsPromise=Dr.all([this.createAndRenderComponents(n,this.eStatusBarLeft,e),this.createAndRenderComponents(r,this.eStatusBarCenter,e),this.createAndRenderComponents(i,this.eStatusBarRight,e)])}else this.setDisplayed(!1)}handleStatusBarChanged(){this.updateQueued||(this.updateQueued=!0,this.panelsPromise.then(()=>{this.updateStatusBar(),this.updateQueued=!1}))}updateStatusBar(){const e=this.gos.get("statusBar")?.statusPanels,t=Array.isArray(e)&&e.length>0;this.setDisplayed(t);const n=new Map;t&&e.forEach(r=>{const i=r.key??r.statusPanel,o=this.statusBarSvc.getStatusPanel(i);if(o?.refresh){const a=Vn(this.gos,{...r.statusPanelParams??{},key:i});o.refresh(a)&&(n.set(i,o),delete this.compDestroyFunctions[i],Rs(o.getGui()))}}),this.resetStatusBar(),t&&this.processStatusPanels(n)}resetStatusBar(){Xi(this.eStatusBarLeft),Xi(this.eStatusBarCenter),Xi(this.eStatusBarRight),this.destroyComponents(),this.statusBarSvc.unregisterAllComponents()}destroy(){this.destroyComponents(),super.destroy()}destroyComponents(){Object.values(this.compDestroyFunctions).forEach(e=>e()),this.compDestroyFunctions={}}createAndRenderComponents(e,t,n){const r=[];return e.forEach(i=>{const o=i.key||i.statusPanel,a=n.get(o);let s;if(a)s=Dr.resolve(a);else{const l=RXt(this.userCompFactory,i,Vn(this.gos,{key:o}));if(l==null)return;s=l.newAgStackInstance()}r.push({key:o,promise:s})}),Dr.all(r.map(i=>i.promise)).then(()=>{r.forEach(i=>{i.promise.then(o=>{const a=()=>{this.destroyBean(o)};this.isAlive()?(this.statusBarSvc.registerStatusPanel(i.key,o),t.appendChild(o.getGui()),this.compDestroyFunctions[i.key]=a):a()})})})}},kXt={selector:"AG-STATUS-BAR",component:DXt},LXt={tag:"div",cls:"ag-status-name-value",children:[{tag:"span",ref:"eLabel"},": ",{tag:"span",ref:"eValue",cls:"ag-status-name-value-value"}]},C6=class extends Gt{constructor(){super(LXt),this.eLabel=at,this.eValue=at}setLabel(e,t){this.setDisplayed(!1),this.eLabel.textContent=this.getLocaleTextFunc()(e,t)}setValue(e,t){this.eValue.textContent=this.valueFormatter(Vn(this.gos,{value:e,totalRows:t,key:this.key}))}},_Xt={selector:"AG-NAME-VALUE",component:C6},Jrt=e=>{let t=0;return e.forEachNodeAfterFilter(n=>{n.data&&t++}),t},x6=e=>{let t=0;return e.forEachNode(n=>{n.data&&t++}),t};function NXt(e,t){return typeof e!="number"?"":Cz(Math.round(e*100)/100,t)}var FXt={tag:"div",cls:"ag-status-panel ag-status-panel-aggregations",children:[{tag:"ag-name-value",ref:"avgAggregationComp"},{tag:"ag-name-value",ref:"countAggregationComp"},{tag:"ag-name-value",ref:"minAggregationComp"},{tag:"ag-name-value",ref:"maxAggregationComp"},{tag:"ag-name-value",ref:"sumAggregationComp"}]},WXt=class extends Gt{constructor(){super(FXt,[_Xt]),this.sumAggregationComp=at,this.countAggregationComp=at,this.minAggregationComp=at,this.maxAggregationComp=at,this.avgAggregationComp=at}postConstruct(){if(!oa(this.gos)&&!Au(this.gos)){ut(221);return}this.avgAggregationComp.setLabel("avg","Average"),this.countAggregationComp.setLabel("count","Count"),this.minAggregationComp.setLabel("min","Min"),this.maxAggregationComp.setLabel("max","Max"),this.sumAggregationComp.setLabel("sum","Sum"),this.addManagedEventListeners({cellSelectionChanged:this.onCellSelectionChanged.bind(this),modelUpdated:this.onCellSelectionChanged.bind(this)})}init(e){this.refresh(e)}refresh(e){this.params=e;const t=e.valueFormatter??(({value:r})=>NXt(r,this.getLocaleTextFunc.bind(this))),n=["avg","count","min","max","sum"];for(const r of n){const i=this.getAllowedAggregationValueComponent(r);i&&(i.key=r,i.valueFormatter=t.bind(this))}return this.onCellSelectionChanged(),!0}setAggregationComponentValue(e,t,n){const r=this.getAllowedAggregationValueComponent(e),i=x6(this.beans.rowModel);Ut(r)&&r?(r.setValue(t,i),r.setDisplayed(n)):this.getAggregationValueComponent(e)?.setDisplayed(!1)}getAllowedAggregationValueComponent(e){const{aggFuncs:t}=this.params;return!t||t.includes(e)?this.getAggregationValueComponent(e):null}getAggregationValueComponent(e){const t=`${e}AggregationComp`;return this[t]}onCellSelectionChanged(){const e=this.beans,{rangeSvc:t,valueSvc:n}=e,r=t?.getCellRanges();let i=0,o=0,a=0,s=null,l=null;const c={};if(r?.length&&t)for(let p=0;p<r.length;p++){const h=r[p];let g=t.getRangeStartRow(h);const m=t.getRangeEndRow(h);for(;!(Yi(g)||!g||t0(m,g)||!g||!h.columns);)h.columns.forEach(y=>{if(g===null)return;const M=EC({rowPinned:g.rowPinned,column:y,rowIndex:g.rowIndex});if(c[M])return;c[M]=!0;const C=lp(e,g);if(Yi(C))return;let x=n.getValue(y,C);Yi(x)||x===""||(o++,!(typeof x=="object"&&"value"in x&&(x=x.value,x===""))&&(typeof x=="string"&&(x=Number(x)),typeof x=="number"&&!isNaN(x)&&(i+=x,(l===null||x>l)&&(l=x),(s===null||x<s)&&(s=x),a++)))}),g=Gp(e,g)}const u=o>1,d=a>1;this.setAggregationComponentValue("count",o,u),this.setAggregationComponentValue("sum",i,d),this.setAggregationComponentValue("min",s,d),this.setAggregationComponentValue("max",l,d),this.setAggregationComponentValue("avg",i/a,d)}},qXt=class extends C6{postConstruct(){if(this.setLabel("filteredRows","Filtered"),!oa(this.gos)){ut(222);return}this.addCss("ag-status-panel"),this.addCss("ag-status-panel-filtered-row-count"),this.setDisplayed(!0);const e=this.onDataChanged.bind(this);this.addManagedEventListeners({modelUpdated:e})}onDataChanged(){const{rowModel:e}=this.beans,t=x6(e),n=Jrt(e);this.setValue(n,t),this.setDisplayed(t!==n)}init(e){this.refresh(e),this.onDataChanged()}updateValueFormatter(e){this.valueFormatter=e??(({value:t})=>Cz(t,this.getLocaleTextFunc.bind(this)))}refresh(e){const{key:t,valueFormatter:n}=e;return this.key=t,this.updateValueFormatter(n),!0}},BXt=class extends C6{postConstruct(){const e=this.gos;if(!oa(e)&&!Au(e)){ut(223);return}this.setLabel("selectedRows","Selected"),this.addCss("ag-status-panel"),this.addCss("ag-status-panel-selected-row-count");const t=this.onRowSelectionChanged.bind(this);this.addManagedEventListeners({modelUpdated:t,selectionChanged:t})}onRowSelectionChanged(){const{selectionSvc:e,rowModel:t}=this.beans,n=e?.getSelectionCount()??0,r=x6(t);if(this.setValue(n,r),n<0){this.setDisplayed(!0);return}this.setDisplayed(n>0)}init(e){this.refresh(e),this.onRowSelectionChanged()}updateValueFormatter(e){this.valueFormatter=e??(({value:t})=>t==null||t>=0?Cz(t,this.getLocaleTextFunc.bind(this)):this.getLocaleTextFunc()("statusBarLastRowUnknown","?"))}refresh(e){const{key:t,valueFormatter:n}=e;return this.key=t,this.updateValueFormatter(n),!0}},jXt=class extends C6{postConstruct(){if(!oa(this.gos)){ut(224);return}this.setLabel("totalAndFilteredRows","Rows"),this.addCss("ag-status-panel"),this.addCss("ag-status-panel-total-and-filtered-row-count"),this.setDisplayed(!0),this.addManagedEventListeners({modelUpdated:this.onDataChanged.bind(this)})}onDataChanged(){const{rowModel:e}=this.beans,t=Jrt(e),n=x6(e);this.setValue(t,n)}init(e){this.refresh(e),this.onDataChanged()}updateValueFormatter(e){this.valueFormatter=e??(({value:t,totalRows:n})=>{const r=this.getLocaleTextFunc.bind(this),i=Cz(t,r),o=Cz(n??t,r);if(t===n)return i;const a=r();return`${i} ${a("of","of")} ${o}`})}refresh(e){const{key:t,valueFormatter:n}=e;return this.key=t,this.updateValueFormatter(n),!0}},HXt=class extends C6{postConstruct(){if(this.setLabel("totalRows","Total Rows"),!oa(this.gos)){ut(225);return}this.addCss("ag-status-panel"),this.addCss("ag-status-panel-total-row-count"),this.setDisplayed(!0),this.addManagedEventListeners({modelUpdated:this.onDataChanged.bind(this)})}onDataChanged(){const e=x6(this.beans.rowModel);this.setValue(e,e)}init(e){this.refresh(e),this.onDataChanged()}updateValueFormatter(e){this.valueFormatter=e??(({value:t})=>Cz(t,this.getLocaleTextFunc.bind(this)))}refresh(e){const{key:t,valueFormatter:n}=e;return this.key=t,this.updateValueFormatter(n),!0}};function VXt(e,t){const n=e.statusBarSvc?.getStatusPanel(t);return yz(n)}var GXt=class extends dt{constructor(){super(),this.beanName="statusBarSvc",this.comps=new Map}registerStatusPanel(e,t){this.comps.set(e,t)}unregisterStatusPanel(e){this.comps.delete(e)}unregisterAllComponents(){this.comps.clear()}getStatusPanel(e){return this.comps.get(e)}destroy(){this.unregisterAllComponents(),super.destroy()}},$Xt={moduleName:"StatusBar",version:wi,beans:[GXt],userComponents:{agAggregationComponent:WXt,agTotalRowCountComponent:HXt,agFilteredRowCountComponent:qXt,agTotalAndFilteredRowCountComponent:jXt,agSelectedRowCountComponent:BXt},selectors:[kXt],apiFunctions:{getStatusPanel:VXt},dependsOn:[es,RK]};function eit(e){return e.excelCreator?.getFactoryMode()==="MULTI_SHEET"?(ut(161),!1):!0}function UXt(e,t){if(eit(e))return e.excelCreator?.getDataAsExcel(t)}function XXt(e,t){eit(e)&&e.excelCreator?.exportDataAsExcel(t)}function YXt(e,t){return e.excelCreator?.setFactoryMode("MULTI_SHEET"),e.excelCreator?.getSheetDataForExcel(t)}function KXt(e,t){return e.excelCreator?.getMultipleSheetsAsExcel(t)}function QXt(e,t){e.excelCreator?.exportMultipleSheetsAsExcel(t)}var ZXt={moduleName:"ExcelExport",version:wi,beans:[E$t],apiFunctions:{getDataAsExcel:UXt,exportDataAsExcel:XXt,getSheetDataForExcel:YXt,getMultipleSheetsAsExcel:KXt,exportMultipleSheetsAsExcel:QXt},dependsOn:[ert,es]};function JXt(e){const t=e.cssIdentifier||"default",n=e.direction||"vertical";return{tag:"div",cls:`ag-group ag-${t}-group`,role:"presentation",children:[{tag:"div",ref:"eToolbar",cls:`ag-group-toolbar ag-${t}-group-toolbar`,children:[{tag:"ag-checkbox",ref:"cbGroupEnabled"}]},{tag:"div",ref:"eContainer",cls:`ag-group-container ag-group-container-${n} ag-${t}-group-container`}]}}var Gy=class extends Gt{constructor(e={}){super(JXt(e),[Rm]),this.params=e,this.suppressEnabledCheckbox=!0,this.suppressToggleExpandOnEnableChange=!1,this.eToolbar=at,this.cbGroupEnabled=at,this.eContainer=at;const{enabled:t,items:n,suppressEnabledCheckbox:r,expanded:i,suppressToggleExpandOnEnableChange:o,useToggle:a}=e;this.cssIdentifier=e.cssIdentifier||"default",this.enabled=t??!0,this.items=n||[],this.useToggle=a??!1,this.alignItems=e.alignItems||"center",this.expanded=i??!0,r!=null&&(this.suppressEnabledCheckbox=r),o!=null&&(this.suppressToggleExpandOnEnableChange=o)}postConstruct(){if(this.setupTitleBar(),this.items.length){const i=this.items;this.items=[],this.addItems(i)}const e=this.getLocaleTextFunc();this.cbGroupEnabled.setLabel(e("enabled","Enabled")),this.enabled&&this.setEnabled(this.enabled,void 0,!0),this.setAlignItems(this.alignItems);const{onEnableChange:t,onExpandedChange:n,suppressOpenCloseIcons:r}=this.params;this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(r??!1),this.refreshChildDisplay(),Nn(this.eContainer,this.expanded),this.cbGroupEnabled.onValueChange(i=>{this.setEnabled(i,!0,this.suppressToggleExpandOnEnableChange),this.dispatchEnableChangeEvent(i)}),t!=null&&this.onEnableChange(t),n!=null&&this.onExpandedChange(n)}refreshChildDisplay(){Nn(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),this.eTitleBar?.refreshOnExpand(this.expanded)}isExpanded(){return this.expanded}setAlignItems(e){this.alignItems!==e&&this.removeCss(`ag-group-item-alignment-${this.alignItems}`),this.alignItems=e;const t=`ag-group-item-alignment-${this.alignItems}`;return this.addCss(t),this}toggleGroupExpand(e,t){if(this.eTitleBar?.isSuppressCollapse()&&!this.useToggle)e=!0,t=!0;else if(e=e??!this.expanded,this.expanded===e)return this;return this.expanded=e,this.refreshChildDisplay(),Nn(this.eContainer,e),t||this.dispatchLocalEvent({type:e?"expanded":"collapsed"}),this}addItems(e){e.forEach(t=>this.addItem(t))}prependItem(e){this.insertItem(e,!0)}addItem(e){this.insertItem(e,!1)}insertItem(e,t){const n=this.eContainer,r=e instanceof Gt?e.getGui():e;r.classList.add("ag-group-item",`ag-${this.cssIdentifier}-group-item`),t?(n.insertAdjacentElement("afterbegin",r),this.items.unshift(r)):(n.appendChild(r),this.items.push(r))}hideItem(e,t){const n=this.items[t];Nn(n,!e)}getItemIndex(e){const t=e instanceof Gt?e.getGui():e;return this.items.indexOf(t)}setTitle(e){return this.eTitleBar?.setTitle(e),this}addTitleBarWidget(e){return this.eTitleBar?.addWidget(e),this}addCssClassToTitleBar(e){this.eTitleBar?.addCss(e)}dispatchEnableChangeEvent(e){const t={type:"enableChange",enabled:e};this.dispatchLocalEvent(t)}setEnabled(e,t,n){return this.enabled=e,this.refreshDisabledStyles(),n||this.toggleGroupExpand(e),t||(this.cbGroupEnabled.setValue(e),this.eToggle?.setValue(e)),this}isEnabled(){return this.enabled}onEnableChange(e){return this.addManagedListeners(this,{enableChange:t=>e(t.enabled)}),this}onExpandedChange(e){return this.addManagedListeners(this,{expanded:()=>e(!0),collapsed:()=>e(!1)}),this}hideEnabledCheckbox(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this}hideOpenCloseIcons(e){return this.eTitleBar?.hideOpenCloseIcons(e),this}refreshDisabledStyles(){const e=!this.enabled;this.eContainer.classList.toggle("ag-disabled",e),this.eTitleBar?.refreshDisabledStyles(this.suppressEnabledCheckbox&&e),this.eContainer.classList.toggle("ag-disabled-group-container",e)}setupTitleBar(){const e=this.useToggle?this.createToggleTitleBar():this.createDefaultTitleBar();this.eToolbar.insertAdjacentElement("beforebegin",e.getGui())}createDefaultTitleBar(){const e=this.createManagedBean(new tYt(this.params));return this.eTitleBar=e,e.refreshOnExpand(this.expanded),this.addManagedListeners(e,{expandedChanged:t=>this.toggleGroupExpand(t.expanded)}),e}createToggleTitleBar(){const e=this.createManagedBean(new m3({value:this.enabled,label:this.params.title,labelAlignment:"left",labelWidth:"flex",onValueChange:t=>{this.setEnabled(t,!0),this.dispatchEnableChangeEvent(t)}}));return e.addCss("ag-group-title-bar"),e.addCss(`ag-${this.params.cssIdentifier??"default"}-group-title-bar ag-unselectable`),this.eToggle=e,this.toggleGroupExpand(this.enabled),e}},Mre="ag-disabled-group-title-bar";function eYt(e){const t=e.cssIdentifier??"default";return{tag:"div",cls:`ag-group-title-bar ag-${t}-group-title-bar ag-unselectable`,role:e.suppressKeyboardNavigation?"presentation":"role",children:[{tag:"span",ref:"eGroupOpenedIcon",cls:`ag-group-title-bar-icon ag-${t}-group-title-bar-icon`,role:"presentation"},{tag:"span",ref:"eGroupClosedIcon",cls:`ag-group-title-bar-icon ag-${t}-group-title-bar-icon`,role:"presentation"},{tag:"span",ref:"eTitle",cls:`ag-group-title ag-${t}-group-title`}]}}var tYt=class extends Gt{constructor(e={}){super(eYt(e)),this.suppressOpenCloseIcons=!1,this.suppressKeyboardNavigation=!1,this.eGroupOpenedIcon=at,this.eGroupClosedIcon=at,this.eTitle=at;const{title:t,suppressOpenCloseIcons:n,suppressKeyboardNavigation:r}=e;t&&t.length>0&&(this.title=t),n!=null&&(this.suppressOpenCloseIcons=n),this.suppressKeyboardNavigation=r??!1}postConstruct(){this.setTitle(this.title),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()}setupExpandContract(){this.eGroupClosedIcon.appendChild(Ax("accordionClosed",this.beans,null)),this.eGroupOpenedIcon.appendChild(Ax("accordionOpen",this.beans,null)),this.addManagedElementListeners(this.getGui(),{click:()=>this.dispatchExpandChanged(),keydown:e=>{switch(e.key){case Qe.ENTER:case Qe.SPACE:e.preventDefault(),this.dispatchExpandChanged();break;case Qe.RIGHT:case Qe.LEFT:e.preventDefault(),this.dispatchExpandChanged(e.key===Qe.RIGHT);break}}})}refreshOnExpand(e){this.refreshAriaStatus(e),this.refreshOpenCloseIcons(e)}refreshAriaStatus(e){this.suppressOpenCloseIcons||d1(this.getGui(),e)}refreshOpenCloseIcons(e){const t=!this.suppressOpenCloseIcons;Nn(this.eGroupOpenedIcon,t&&e),Nn(this.eGroupClosedIcon,t&&!e)}isSuppressCollapse(){return this.suppressOpenCloseIcons}dispatchExpandChanged(e){const t={type:"expandedChanged",expanded:e};this.dispatchLocalEvent(t)}setTitle(e){const t=this.getGui(),n=!!e&&e.length>0;e=n?e:void 0,this.eTitle.textContent=e??"",Nn(t,n),e!==this.title&&(this.title=e);const r=t.classList.contains(Mre);return this.refreshDisabledStyles(r),this}addWidget(e){return this.getGui().appendChild(e),this}hideOpenCloseIcons(e){return this.suppressOpenCloseIcons=e,e&&this.dispatchExpandChanged(!0),this}refreshDisabledStyles(e){const t=this.getGui();e?(t.classList.add(Mre),t.removeAttribute("tabindex")):(t.classList.remove(Mre),typeof this.title=="string"&&!this.suppressKeyboardNavigation?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex"))}},Ks={selector:"AG-GROUP-COMPONENT",component:Gy};function tit(e){const{filters:t}=e;return t&&t.length>0?t:[{filter:"agTextColumnFilter"},{filter:"agSetColumnFilter"}]}function SRe(e,t){if(e!=null)for(let n=e.length-1;n>=0;n--)t(e[n],n)}function nYt(e,t){return t.title!=null?t.title:e instanceof AK?e.getFilterTitle():"Filter"}var nit=class extends Vb{constructor(){super({tag:"div",cls:"ag-multi-filter ag-menu-list-compact"}),this.filterType="multi",this.filterDefs=[],this.filters=[],this.guiDestroyFuncs=[],this.filterGuis=[],this.activeFilterIndices=[],this.lastActivatedMenuItem=null,this.afterFiltersReadyFuncs=[]}postConstruct(){this.initialiseTabGuard({onFocusIn:e=>this.onFocusIn(e)})}init(e){this.params=e,this.filterDefs=tit(e);const{column:t,filterChangedCallback:n}=e;this.column=t,this.filterChangedCallback=n;const r=[];return this.filterDefs.forEach((i,o)=>{const a=this.createFilter(i,o);a!=null&&r.push(a)}),new Dr(i=>{Dr.all(r).then(o=>{this.filters=o,this.refreshGui("columnMenu").then(()=>{i()})})}).then(()=>{this.afterFiltersReadyFuncs.forEach(i=>i()),this.afterFiltersReadyFuncs.length=0})}refreshGui(e){return e===this.lastOpenedInContainer?Dr.resolve():(this.tabGuardFeature.removeAllChildrenExceptTabGuards(),this.destroyChildren(),Dr.all(this.filters.map((t,n)=>{const r=this.filterDefs[n],i=nYt(t,r);let o;if(r.display==="subMenu"&&e!=="toolPanel")o=this.insertFilterMenu(t,i).then(a=>a.getGui());else if(r.display==="subMenu"||r.display==="accordion"){const a=this.insertFilterGroup(t,i);o=Dr.resolve(a.getGui())}else o=Dr.resolve(t.getGui());return o})).then(t=>{t.forEach((n,r)=>{r>0&&this.appendChild(Nr({tag:"div",cls:"ag-filter-separator"})),this.appendChild(n)}),this.filterGuis=t,this.lastOpenedInContainer=e}))}destroyChildren(){this.guiDestroyFuncs.forEach(e=>e()),this.guiDestroyFuncs.length=0,this.filterGuis.length=0}insertFilterMenu(e,t){const n=this.createBean(new Ehe);return n.init({menuItemDef:{name:t,subMenu:[],subMenuRole:"dialog",cssClasses:["ag-multi-filter-menu-item"],menuItem:Drt,menuItemParams:{cssClassPrefix:"ag-compact-menu-option",isCompact:!0}},level:0,isAnotherSubMenuOpen:()=>!1,childComponent:e,contextParams:{column:null,node:null,value:null}}).then(()=>{n.setParentComponent(this),this.guiDestroyFuncs.push(()=>this.destroyBean(n)),this.addManagedListeners(n,{menuItemActivated:i=>{this.lastActivatedMenuItem&&this.lastActivatedMenuItem!==i.menuItem&&this.lastActivatedMenuItem.deactivate(),this.lastActivatedMenuItem=i.menuItem}});const r=n.getGui();return n.addManagedElementListeners(r,{keydown:i=>{const{key:o}=i;switch(o){case Qe.UP:case Qe.RIGHT:case Qe.DOWN:case Qe.LEFT:i.preventDefault(),o===Qe.RIGHT&&n.openSubMenu(!0);break}},focusin:()=>n.activate(),focusout:()=>{!n.isSubMenuOpen()&&!n.isSubMenuOpening()&&n.deactivate()}}),n})}insertFilterGroup(e,t){const n=this.createBean(new Gy({title:t,cssIdentifier:"multi-filter"}));return this.guiDestroyFuncs.push(()=>this.destroyBean(n)),n.addItem(e.getGui()),n.toggleGroupExpand(!1),e.afterGuiAttached&&n.addManagedListeners(n,{expanded:()=>e.afterGuiAttached({container:this.lastOpenedInContainer,suppressFocus:!0,hidePopup:this.hidePopup})}),n}isFilterActive(){return this.filters.some(e=>e.isFilterActive())}getLastActiveFilterIndex(){const e=this.activeFilterIndices;return e.length>0?e[e.length-1]:null}doesFilterPass(e,t){let n=!0;return this.filters.forEach(r=>{!n||r===t||!r.isFilterActive()||(n=r.doesFilterPass(e))}),n}getModelFromUi(){return{filterType:this.filterType,filterModels:this.filters.map(t=>{const n=t;return typeof n.getModelFromUi=="function"?n.getModelFromUi():null})}}getModel(){return this.isFilterActive()?{filterType:this.filterType,filterModels:this.filters.map(t=>t.isFilterActive()?t.getModel():null)}:null}setModel(e){const t=(r,i)=>new Dr(o=>{const a=r.setModel(i);a?a.then(()=>o()):o()});let n=[];return e==null?n=this.filters.map((r,i)=>t(r,null).then(()=>{this.updateActiveList(i)})):this.filters.forEach((r,i)=>{const o=e.filterModels.length>i?e.filterModels[i]:null,a=t(r,o).then(()=>{this.updateActiveList(i)});n.push(a)}),Dr.all(n).then(()=>{})}applyModel(e="api"){let t=!1;return this.filters.forEach(n=>{n instanceof AK&&(t=n.applyModel(e)||t)}),t}getChildFilterInstance(e){return this.filters[e]}afterGuiAttached(e){let t;e?(this.hidePopup=e.hidePopup,t=this.refreshGui(e.container)):(this.hidePopup=void 0,t=Dr.resolve());const n=e?.suppressFocus;t.then(()=>{const{filterDefs:r,filters:i,filterGuis:o,beans:a}=this;let s=!!n;r&&SRe(r,(c,u)=>{const d=u===0,p=c.display&&c.display!=="inline",h=n||!d||p,g={...e??{},suppressFocus:h},m=i?.[u];if(m&&(this.executeFunctionIfExistsOnFilter(m,"afterGuiAttached",g),d&&!h&&(s=!0)),!n&&d&&p){const v=o[u];v&&(zu(v)||v.focus({preventScroll:!0}),s=!0)}});const l=Gi(a);!s&&(Gx(a)||this.getGui().contains(l))&&this.forceFocusOutOfContainer(!0)})}afterGuiDetached(){this.executeFunctionIfExists("afterGuiDetached")}onAnyFilterChanged(){this.executeFunctionIfExists("onAnyFilterChanged")}onNewRowsLoaded(){this.executeFunctionIfExists("onNewRowsLoaded")}destroy(){this.filters.forEach(e=>this.destroyBean(e)),this.filters.length=0,this.destroyChildren(),this.hidePopup=void 0,super.destroy()}executeFunctionIfExists(e,...t){SRe(this.filters,n=>{this.executeFunctionIfExistsOnFilter(n,e,t)})}executeFunctionIfExistsOnFilter(e,t,...n){const r=e[t];typeof r=="function"&&r.apply(e,n)}createFilter(e,t){const{filterModifiedCallback:n,doesRowPassOtherFilter:r}=this.params,{filterManager:i,userCompFactory:o}=this.beans;let a;const s={...i.createFilterParams(this.column,this.column.getColDef()),filterModifiedCallback:n,filterChangedCallback:u=>{this.executeWhenAllFiltersReady(()=>this.filterChanged(t,u))},doesRowPassOtherFilter:u=>r(u)&&this.doesFilterPass({node:u,data:u.data},a)},l=Uet(o,e,s,"agTextColumnFilter");if(!l)return null;const c=l.newAgStackInstance();return c.then(u=>{if(u&&(a=u,e.display==="subMenu")){const d=u.getGui();C0(d,"dialog")}}),c}executeWhenAllFiltersReady(e){(this.filters?.length??0)>0?e():this.afterFiltersReadyFuncs.push(e)}updateActiveList(e){const{filters:t,activeFilterIndices:n}=this,r=t[e];Ou(n,e),r.isFilterActive()&&n.push(e)}filterChanged(e,t){this.updateActiveList(e),this.filterChangedCallback(t);const n=this.filters[e];this.filters.forEach(r=>{r!==n&&typeof r.onAnyFilterChanged=="function"&&r.onAnyFilterChanged()})}onFocusIn(e){const t=this.lastActivatedMenuItem;t!=null&&!t.getGui().contains(e.target)&&(t.deactivate(),this.lastActivatedMenuItem=null)}getModelAsString(e){if(!this.filters||!e?.filterModels?.length)return"";const t=this.getLastActiveFilterIndex()??0;return this.filters[t].getModelAsString?.(e.filterModels[t])??""}},rYt={tag:"div",cls:"ag-multi-floating-filter ag-floating-filter-input"},iYt=class extends Gt{constructor(){super(rYt),this.floatingFilters=[],this.compDetailsList=[]}init(e){this.params=e;const{compDetailsList:t}=this.getCompDetailsList(e);return this.setParams(t)}setParams(e){const t=[];return e.forEach(n=>{const r=n?.newAgStackInstance();r!=null&&(this.compDetailsList.push(n),t.push(r))}),Dr.all(t).then(n=>{n.forEach((r,i)=>{this.floatingFilters.push(r);const o=r.getGui();this.appendChild(o),i>0&&Nn(o,!1)})})}refresh(e){this.params=e;const{compDetailsList:t,floatingFilterParamsList:n}=this.getCompDetailsList(e);t.length===this.compDetailsList.length&&t.every((i,o)=>!this.beans.filterManager?.areFilterCompsDifferent(this.compDetailsList[o],i))?n.forEach((i,o)=>{this.floatingFilters[o].refresh?.(i)}):(Xi(this.getGui()),this.destroyBeans(this.floatingFilters),this.floatingFilters=[],this.compDetailsList=[],this.setParams(t))}getCompDetailsList(e){const t=[],n=[],r=e.filterParams,i=e.currentParentModel;return tit(r).forEach((o,a)=>{const s={...e,parentFilterInstance:c=>{this.parentMultiFilterInstance(u=>{const d=u.getChildFilterInstance(a);d!=null&&c(d)})},currentParentModel:()=>i()?.filterModels?.[a]??null};eu(s.filterParams,o.filterParams);const l=this.getCompDetails(o,s);l&&(t.push(l),n.push(s))}),{compDetailsList:t,floatingFilterParamsList:n}}onParentModelChanged(e,t){t&&t.afterFloatingFilter||this.parentMultiFilterInstance(n=>{if(e==null)this.floatingFilters.forEach((r,i)=>{r.onParentModelChanged(null,t),Nn(r.getGui(),i===0)});else{const r=n.getLastActiveFilterIndex();this.floatingFilters.forEach((i,o)=>{const a=e.filterModels.length>o?e.filterModels[o]:null;i.onParentModelChanged(a,t);const s=r==null?o===0:o===r;Nn(i.getGui(),s)})}})}destroy(){this.destroyBeans(this.floatingFilters),this.floatingFilters.length=0,super.destroy()}getCompDetails(e,t){const{filterManager:n,frameworkOverrides:r,userCompFactory:i}=this.beans,o=vtt(r,e,()=>n.getDefaultFloatingFilter(this.params.column))??"agReadOnlyFloatingFilter";return Xet(i,e,t,o)}parentMultiFilterInstance(e){this.params.parentFilterInstance(t=>{t instanceof nit||pi(120),e(t)})}},oYt={moduleName:"MultiFilter",version:wi,userComponents:{agMultiColumnFilter:nit,agMultiColumnFloatingFilter:iYt},dependsOn:[es,xw,NK]},aYt=class extends dt{constructor(){super(...arguments),this.beanName="aggColNameSvc"}getHeaderName(e,t){if(this.gos.get("suppressAggFuncInHeader"))return t;const{valueColsSvc:n,colModel:r,rowGroupColsSvc:i}=this.beans,o=e.getColDef().pivotValueColumn,a=Ut(o);let s=null,l;if(a){const c=n?.columns??[],u=this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&c.length===1,d=e.getColDef().pivotTotalColumnIds!==void 0;if(u&&!d)return t;s=o?o.getAggFunc():null,l=!0}else{const c=e.isValueActive(),u=r.isPivotMode()||i?.columns.length!==0;c&&u?(s=e.getAggFunc(),l=!0):l=!1}if(l){const c=typeof s=="string"?s:"func";return`${this.getLocaleTextFunc()(c,c)}(${t})`}return t}},sYt={sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"},lYt=class extends dt{constructor(){super(...arguments),this.beanName="aggFuncSvc",this.aggFuncsMap={},this.initialised=!1}postConstruct(){this.init()}init(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gos.get("aggFuncs")))}initialiseWithDefaultAggregations(){const e=this.aggFuncsMap;e.sum=cYt,e.first=uYt,e.last=dYt,e.min=pYt,e.max=hYt,e.count=fYt,e.avg=gYt,this.initialised=!0}isAggFuncPossible(e,t){const r=this.getFuncNames(e).includes(t),i=Ut(this.aggFuncsMap[t]);return r&&i}getDefaultFuncLabel(e){return sYt[e]??e}getDefaultAggFunc(e){const t=e.getColDef().defaultAggFunc;if(Ut(t)&&this.isAggFuncPossible(e,t))return t;if(this.isAggFuncPossible(e,"sum"))return"sum";const n=this.getFuncNames(e);return n?.length?n[0]:null}addAggFuncs(e){if(this.init(),!!e)for(const t of Object.keys(e))this.aggFuncsMap[t]=e[t]}getAggFunc(e){return this.init(),this.aggFuncsMap[e]}getFuncNames(e){const t=e.getColDef().allowedAggFuncs;return t??Object.keys(this.aggFuncsMap).sort()}clear(){this.aggFuncsMap={}}};function cYt(e){const{values:t}=e;let n=null;for(let r=0;r<t.length;r++){const i=t[r];typeof i=="number"?n===null?n=i:n+=typeof n=="number"?i:BigInt(i):typeof i=="bigint"&&(n===null?n=i:n=(typeof n=="bigint"?n:BigInt(n))+i)}return n}function uYt(e){return e.values.length>0?e.values[0]:null}function dYt(e){return e.values.length>0?zr(e.values):null}function pYt(e){const{values:t}=e;let n=null;for(let r=0;r<t.length;r++){const i=t[r];(typeof i=="number"||typeof i=="bigint")&&(n===null||n>i)&&(n=i)}return n}function hYt(e){const{values:t}=e;let n=null;for(let r=0;r<t.length;r++){const i=t[r];(typeof i=="number"||typeof i=="bigint")&&(n===null||n<i)&&(n=i)}return n}function fYt(e){const{values:t}=e;let n=0;for(let i=0;i<t.length;i++){const o=t[i];n+=o!=null&&typeof o.value=="number"?o.value:1}const r=e.rowNode?.aggData?.[e.column.getColId()];return r&&r.value===n?r:{value:n,toString:function(){return this.value.toString()},toNumber:function(){return this.value}}}function gYt(e){const{values:t}=e;let n=0,r=0;for(let a=0;a<t.length;a++){const s=t[a];let l=null;typeof s=="number"||typeof s=="bigint"?(l=s,r++):s!=null&&(typeof s.value=="number"||typeof s.value=="bigint")&&typeof s.count=="number"&&(l=s.value*(typeof s.value=="number"?s.count:BigInt(s.count)),r+=s.count),typeof l=="number"?n+=typeof n=="number"?l:BigInt(l):typeof l=="bigint"&&(n=(typeof n=="bigint"?n:BigInt(n))+l)}let i=null;r>0&&(i=n/(typeof n=="number"?r:BigInt(r)));const o=e.rowNode?.aggData?.[e.column?.getColId()];return o&&o.count===r&&o.value===i?o:{count:r,value:i,toString:function(){return typeof this.value=="number"||typeof this.value=="bigint"?this.value.toString():""},toNumber:function(){return this.value}}}function mYt(e,t){e.aggFuncSvc&&e.aggFuncSvc.addAggFuncs(t)}function vYt(e){e.aggFuncSvc&&e.aggFuncSvc.clear()}function bYt(e,t,n){e.valueColsSvc?.setColumnAggFunc?.(t,n,"api")}function sI(e,t,n,r,i,o){const a=typeof n=="string"?e.aggFuncSvc.getAggFunc(n):n;if(typeof a!="function")return pi(109,{aggFuncOrString:n}),null;const s=Vn(e.gos,{values:t,column:r,colDef:r.colDef,pivotResultColumn:o,rowNode:i,data:i?.data});return a(s)}var yYt=class extends dt{constructor(){super(...arguments),this.beanName="aggStage",this.refreshProps=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","suppressAggFilteredOnly","grandTotalRow"]),this.step="aggregate"}wireBeans(e){this.colModel=e.colModel,this.pivotColsSvc=e.pivotColsSvc,this.valueColsSvc=e.valueColsSvc,this.pivotResultCols=e.pivotResultCols,this.valueSvc=e.valueSvc}execute(e){const t=!this.valueColsSvc?.columns?.length,n=!this.gos.getCallback("getGroupRowAgg");if(t&&n&&e.changedPath?.active)return;const r=this.createAggDetails(e);this.recursivelyCreateAggData(r)}createAggDetails(e){const t=this.colModel.isPivotActive(),n=this.valueColsSvc?.columns,r=t&&this.pivotColsSvc?this.pivotColsSvc.columns:[];return{alwaysAggregateAtRootLevel:this.gos.get("alwaysAggregateAtRootLevel"),groupIncludeTotalFooter:!!K2e(this.gos),changedPath:e.changedPath,valueColumns:n??[],pivotColumns:r,filteredOnly:!this.isSuppressAggFilteredOnly(),userAggFunc:this.gos.getCallback("getGroupRowAgg")}}isSuppressAggFilteredOnly(){return lW(this.gos)!==void 0||this.gos.get("suppressAggFilteredOnly")}recursivelyCreateAggData(e){const t=n=>{if(!n.hasChildren()){n.aggData&&this.setAggData(n,null);return}if(n.level===-1&&!e.groupIncludeTotalFooter){const o=!this.colModel.isPivotMode();if(!e.alwaysAggregateAtRootLevel&&o){this.setAggData(n,null);return}}this.aggregateRowNode(n,e)};e.changedPath.forEachChangedNodeDepthFirst(t,!0)}aggregateRowNode(e,t){const n=t.valueColumns.length===0,r=t.pivotColumns.length===0;let i;t.userAggFunc?i=t.userAggFunc({nodes:e.childrenAfterFilter}):n?i=null:r?i=this.aggregateRowNodeUsingValuesOnly(e,t):i=this.aggregateRowNodeUsingValuesAndPivot(e),this.setAggData(e,i),e.sibling&&this.setAggData(e.sibling,i)}aggregateRowNodeUsingValuesAndPivot(e){const t={},n=this.pivotResultCols?.getPivotResultCols()?.list??[];let r=!0;const i=this.beans;for(let o=0;o<n.length;o++){const a=n[o],s=a.getColDef();if(s.pivotTotalColumnIds!=null){r=!1;continue}const l=s.pivotKeys??[];let c;e.leafGroup?c=this.getValuesFromMappedSet(e.childrenMapped,l,s.pivotValueColumn):c=this.getValuesPivotNonLeaf(e,s.colId),t[s.colId]=sI(i,c,s.pivotValueColumn.getAggFunc(),s.pivotValueColumn,e,a)}if(!r)for(let o=0;o<n.length;o++){const a=n[o],s=a.getColDef();if(s.pivotTotalColumnIds==null||!s.pivotTotalColumnIds.length)continue;const l=s.pivotTotalColumnIds.map(c=>t[c]);t[s.colId]=sI(i,l,s.pivotValueColumn.getAggFunc(),s.pivotValueColumn,e,a)}return t}aggregateRowNodeUsingValuesOnly(e,t){const n={},{changedPath:r,valueColumns:i,filteredOnly:o}=t,a=r.active?r.getValueColumnsForNode(e,i):i,s=r.active?r.getNotValueColumnsForNode(e,i):null,l=this.getValuesNormal(e,a,o),c=e.aggData,u=this.beans;return a.forEach((d,p)=>{n[d.getId()]=sI(u,l[p],d.getAggFunc(),d,e)}),s&&c&&s.forEach(d=>{n[d.getId()]=c[d.getId()]}),n}getValuesPivotNonLeaf(e,t){return e.childrenAfterFilter.map(n=>n.aggData[t])}getValuesFromMappedSet(e,t,n){let r=e;for(let i=0;i<t.length;i++){const o=t[i];r=r?r[o]:null}return r?r.map(i=>this.valueSvc.getValue(n,i)):[]}getValuesNormal(e,t,n){const r=[];t.forEach(()=>r.push([]));const i=t.length,o=n?e.childrenAfterFilter:e.childrenAfterGroup,a=o.length;for(let s=0;s<a;s++){const l=o[s];for(let c=0;c<i;c++){const u=t[c],d=this.valueSvc.getValue(u,l);r[c].push(d)}}return r}setAggData(e,t){const n=e.aggData;if(e.aggData=t,e.__localEventService){const r=i=>{const o=e.aggData?e.aggData[i]:void 0,a=n?n[i]:void 0;if(o===a)return;const s=this.colModel.getColById(i);s&&e.dispatchCellChangedEvent(s,o,a)};if(n)for(const i of Object.keys(n))r(i);if(t)for(const i of Object.keys(t))(!n||!(i in n))&&r(i)}}},MYt=class extends dt{constructor(){super(...arguments),this.beanName="filterAggStage",this.refreshProps=new Set([]),this.step="filter_aggregates"}wireBeans(e){this.filterManager=e.filterManager}execute(e){const t=this.beans.colModel.isPivotMode(),n=this.filterManager?.isAggregateFilterPresent()||this.filterManager?.isAggregateQuickFilterPresent(),r=c=>!c.node.group,i=c=>c.node.leafGroup,o=lW(this.gos)||(t?i:r),{changedPath:a}=e,s=(c,u=!1)=>{c.childrenAfterFilter&&(c.childrenAfterAggFilter=c.childrenAfterFilter,u&&c.childrenAfterAggFilter.forEach(d=>s(d,u)),this.setAllChildrenCount(c)),c.sibling&&(c.sibling.childrenAfterAggFilter=c.childrenAfterAggFilter)},l=c=>{c.childrenAfterAggFilter=c.childrenAfterFilter?.filter(u=>o({node:u})&&this.filterManager.doesRowPassAggregateFilters({rowNode:u})?(s(u,!0),!0):u.childrenAfterAggFilter?.length)||null,this.setAllChildrenCount(c),c.sibling&&(c.sibling.childrenAfterAggFilter=c.childrenAfterAggFilter)};a.forEachChangedNodeDepthFirst(n?l:s,!0)}setAllChildrenCountTreeData(e){const t=e.childrenAfterAggFilter;let n=0;if(t){const r=t.length;n=r;for(let i=0;i<r;++i)n+=t[i].allChildrenCount??0}e.setAllChildrenCount(n===0&&e.level>=0?null:n)}setAllChildrenCountGridGrouping(e){let t=0;e.childrenAfterAggFilter.forEach(n=>{n.group?t+=n.allChildrenCount:t++}),e.setAllChildrenCount(t)}setAllChildrenCount(e){if(!e.hasChildren()){e.setAllChildrenCount(null);return}this.gos.get("treeData")?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)}};function Ry(e,t){if(e.sibling)return;const n=htt(e,t);n.footer=!0,n.setRowTop(null),n.setRowIndex(null),n.oldRowTop=null,n.id="rowGroupFooter_"+e.id,n.sibling=e,e.sibling=n}function Uye(e){e.sibling&&(e.sibling.setRowTop(null),e.sibling.setRowIndex(null),e.sibling=void 0)}var CYt=class extends dt{constructor(){super(...arguments),this.beanName="footerSvc"}addTotalRows(e,t,n,r,i,o){let a=e;if(i){const c=r&&K2e(this.gos);return xYt(o,c)&&(Ry(t,this.beans),n(t.sibling,a++)),a}const s=QI(this.gos);return(r&&s({node:t}))===o&&(Ry(t,this.beans),n(t.sibling,a++)),a}getTopDisplayIndex(e,t,n,r){let i=t;if(e[0].footer){if(t===0)return 0;i-=1}const o=e[e.length-1],a=i>=n.length;return o.footer&&a?o.rowIndex:r(i)}doesCellShowTotalPrefix(e,t){return!e.footer||!t?.getColDef().showRowGroup?!1:this.gos.get("treeData")?!0:e.level===-1?this.beans.showRowGroupCols?.getShowRowGroupCols()[0]===t:!!e.rowGroupColumn&&t&&t.isRowGroupDisplayed(e.rowGroupColumn.getId())}applyTotalPrefix(e,t,n,r){const i=r.getColDef().cellRendererParams?.totalValueGetter;if(i){const o=Vn(this.gos,{column:r,node:n,value:e,formattedValue:t});if(typeof i==="function")return i(o);if(typeof i=="string")return this.beans.expressionSvc?.evaluate(i,o);ut(179)}return n.level===-1?this.getLocaleTextFunc()("footerTotal","Total")+" ":this.getTotalValue(t??e)??""}getTotalValue(e){return this.getLocaleTextFunc()("footerTotal","Total")+" "+(e??"")}};function xYt(e,t){switch(t){case"top":case"pinnedTop":return e==="top";case"bottom":case"pinnedBottom":return e==="bottom";default:return!1}}var rit=class extends aye{constructor(){super(...arguments),this.beanName="valueColsSvc",this.eventName="columnValueChanged",this.columnProcessors={set:(e,t,n)=>this.setValueActive(t,e,n),add:(e,t,n)=>this.setValueActive(!0,e,n),remove:(e,t,n)=>this.setValueActive(!1,e,n)},this.columnExtractors={setFlagFunc:(e,t,n)=>this.setColValueActive(e,t,n),getIndexFunc:()=>{},getInitialIndexFunc:()=>{},getValueFunc:e=>{const t=e.aggFunc;if(t===null||t==="")return null;if(t!==void 0)return!!t},getInitialValueFunc:e=>e.initialAggFunc!=null&&e.initialAggFunc!=""},this.modifyColumnsNoEventsCallbacks={addCol:e=>this.columns.push(e),removeCol:e=>Ou(this.columns,e)}}extractCols(e,t){return this.columns=super.extractCols(e,t),this.columns.forEach(n=>{const r=n.getColDef();r.aggFunc!=null&&r.aggFunc!=""?this.setColAggFunc(n,r.aggFunc):n.getAggFunc()||this.setColAggFunc(n,r.initialAggFunc)}),this.columns}setColumnAggFunc(e,t,n){if(!e)return;const r=this.colModel.getColDefCol(e);r&&(this.setColAggFunc(r,t),this.dispatchColumnChangedEvent(this.eventSvc,this.eventName,[r],n))}syncColumnWithState(e,t,n){const r=n("aggFunc").value1;r!==void 0&&(typeof r=="string"?(this.setColAggFunc(e,r),e.isValueActive()||(this.setColValueActive(e,!0,t),this.modifyColumnsNoEventsCallbacks.addCol(e))):(Ut(r)&&ut(33),e.isValueActive()&&(this.setColValueActive(e,!1,t),this.modifyColumnsNoEventsCallbacks.removeCol(e))))}setValueActive(e,t,n){if(e!==t.isValueActive()&&(this.setColValueActive(t,e,n),e&&!t.getAggFunc()&&this.aggFuncSvc)){const r=this.aggFuncSvc.getDefaultAggFunc(t);this.setColAggFunc(t,r)}}setColAggFunc(e,t){e.aggFunc=t,e.dispatchStateUpdatedEvent("aggFunc")}setColValueActive(e,t,n){e.aggregationActive!==t&&(e.aggregationActive=t,e.dispatchColEvent("columnValueChanged",n))}},Xye={moduleName:"SharedAggregation",version:wi,beans:[lYt,aYt,CYt,rit],apiFunctions:{addAggFuncs:mYt,clearAggFuncs:vYt,setColumnAggFunc:bYt},dependsOn:[es]},iit={moduleName:"Aggregation",version:wi,beans:[yYt,MYt],rowModels:["clientSide"],dependsOn:[Xye]},oit=class extends aye{constructor(){super(...arguments),this.beanName="pivotColsSvc",this.eventName="columnPivotChanged",this.columnProcessors={set:(e,t,n)=>this.setColPivotActive(e,t,n),add:(e,t,n)=>this.setColPivotActive(e,!0,n),remove:(e,t,n)=>this.setColPivotActive(e,!1,n)},this.columnOrdering={enableProp:"pivot",initialEnableProp:"initialPivot",indexProp:"pivotIndex",initialIndexProp:"initialPivotIndex"},this.columnExtractors={setFlagFunc:(e,t,n)=>this.setColPivotActive(e,t,n),getIndexFunc:e=>e.pivotIndex,getInitialIndexFunc:e=>e.initialPivotIndex,getValueFunc:e=>e.pivot,getInitialValueFunc:e=>e.initialPivot},this.modifyColumnsNoEventsCallbacks={addCol:e=>this.columns.push(e),removeCol:e=>Ou(this.columns,e)}}syncColumnWithState(e,t,n,r){const{value1:i,value2:o}=n("pivot","pivotIndex");(i!==void 0||o!==void 0)&&(typeof o=="number"||i?(e.isPivotActive()||(this.setColPivotActive(e,!0,t),this.modifyColumnsNoEventsCallbacks.addCol(e)),r&&typeof o=="number"&&(r[e.getId()]=o)):e.isPivotActive()&&(this.setColPivotActive(e,!1,t),this.modifyColumnsNoEventsCallbacks.removeCol(e)))}setColPivotActive(e,t,n){e.pivotActive!==t&&(e.pivotActive=t,e.dispatchColEvent("columnPivotChanged",n)),e.dispatchStateUpdatedEvent("pivot")}},wYt=class extends aye{constructor(){super(...arguments),this.beanName="rowGroupColsSvc",this.eventName="columnRowGroupChanged",this.columnProcessors={set:(e,t,n)=>this.setActive(t,e,n),add:(e,t,n)=>this.setActive(!0,e,n),remove:(e,t,n)=>this.setActive(!1,e,n)},this.columnOrdering={enableProp:"rowGroup",initialEnableProp:"initialRowGroup",indexProp:"rowGroupIndex",initialIndexProp:"initialRowGroupIndex"},this.columnExtractors={setFlagFunc:(e,t,n)=>this.setColRowGroupActive(e,t,n),getIndexFunc:e=>e.rowGroupIndex,getInitialIndexFunc:e=>e.initialRowGroupIndex,getValueFunc:e=>e.rowGroup,getInitialValueFunc:e=>e.initialRowGroup},this.modifyColumnsNoEventsCallbacks={addCol:e=>this.columns.push(e),removeCol:e=>Ou(this.columns,e)}}moveColumn(e,t,n){if(this.columns.length===0)return;const r=this.columns[e],i=this.columns.slice(e,t);this.columns.splice(e,1),this.columns.splice(t,0,r),this.updateIndexMap(),this.eventSvc.dispatchEvent({type:this.eventName,columns:i,column:i.length===1?i[0]:null,source:n})}syncColumnWithState(e,t,n,r){const{value1:i,value2:o}=n("rowGroup","rowGroupIndex");(i!==void 0||o!==void 0)&&(typeof o=="number"||i?(e.isRowGroupActive()||(this.setColRowGroupActive(e,!0,t),this.modifyColumnsNoEventsCallbacks.addCol(e)),r&&typeof o=="number"&&(r[e.getId()]=o)):e.isRowGroupActive()&&(this.setColRowGroupActive(e,!1,t),this.modifyColumnsNoEventsCallbacks.removeCol(e)))}setActive(e,t,n){e!==t.isRowGroupActive()&&(this.setColRowGroupActive(t,e,n),get(this.gos,e)&&this.colModel.setColsVisible([t],!e,n))}setColRowGroupActive(e,t,n){e.rowGroupActive!==t&&(e.rowGroupActive=t,e.dispatchColEvent("columnRowGroupChanged",n)),e.dispatchStateUpdatedEvent("rowGroup")}},SYt=class extends dt{constructor(){super(...arguments),this.beanName="autoColSvc"}postConstruct(){this.addManagedPropertyListener("autoGroupColumnDef",this.updateColumns.bind(this))}addColumns(e){this.columns!=null&&(e.list=this.columns.list.concat(e.list),e.tree=this.columns.tree.concat(e.tree),iye(e))}createColumns(e,t){const n=this.beans,{colModel:r,gos:i,rowGroupColsSvc:o,colGroupSvc:a}=n,s=r.isPivotMode(),l=Z2e(i,s),c=s?i.get("pivotSuppressAutoColumn"):this.isSuppressAutoCol(),u=o?.columns,p=!(u&&u.length>0||i.get("treeData"))||c||l,h=()=>{this.columns&&(zb(n,this.columns.tree),this.columns=null)};if(p){h();return}const g=this.generateAutoCols(u),m=rye(g,this.columns?.list||null),v=e.treeDepth,M=(this.columns?this.columns.treeDepth:-1)==v;if(m&&M)return;h();const C=a?.findDepth(e.tree)??0,x=a?.balanceTreeForAutoCols(g,C)??[];this.columns={list:g,tree:x,treeDepth:C,map:{}},t(S=>{if(!S)return null;const A=S.filter(z=>!MK(z));return[...g,...A]})}updateColumns(e){const t=xx(e.source);this.columns?.list.forEach((n,r)=>this.updateOneAutoCol(n,r,t))}getColumn(e){return this.columns?.list.find(t=>oye(t,e))??null}getColumns(){return this.columns?.list??null}generateAutoCols(e=[]){const t=[],n=this.gos.get("treeData");let r=Q2e(this.gos);return n&&r&&(ut(182),r=!1),r?e.forEach((i,o)=>{t.push(this.createOneAutoCol(i,o))}):t.push(this.createOneAutoCol()),t}isSuppressAutoCol(){const e=this.gos;return e.get("groupDisplayType")==="custom"?!0:e.get("treeDataDisplayType")==="custom"}createOneAutoCol(e,t){let n;e?n=`${jy}-${e.getId()}`:n=jy;const r=this.createAutoColDef(n,e,t);r.colId=n;const i=new h3(r,null,n,!0);return this.createBean(i),i}updateOneAutoCol(e,t,n){const r=e.getColDef(),i=typeof r.showRowGroup=="string"?r.showRowGroup:void 0,o=this.beans,a=i!=null?o.colModel.getColDefCol(i):void 0,s=e.getId(),l=this.createAutoColDef(s,a??void 0,t);e.setColDef(l,null,n),m0(o,{state:[{colId:s,...l}]},n)}createAutoColDef(e,t,n){let r=this.createBaseColDef(t);const i=this.gos.get("autoGroupColumnDef");eu(r,i),r=JI(this.beans,r,e,!0),this.gos.get("treeData")||Yi(r.field)&&Yi(r.valueGetter)&&Yi(r.filterValueGetter)&&r.filter!=="agGroupColumnFilter"&&(r.filter=!1),n&&n>0&&(r.headerCheckboxSelection=!1);const o=Yg(this.gos),a=r.valueGetter||r.field!=null;return o&&!a&&(r.sortIndex=void 0,r.initialSort=void 0),r}createBaseColDef(e){const t=this.gos.get("autoGroupColumnDef"),r={headerName:this.getLocaleTextFunc()("group","Group"),showRowGroup:e?.getColId()??!0};return t&&(t.cellRenderer||t.cellRendererSelector)||(r.cellRenderer="agGroupCellRenderer"),e&&(r.headerName=this.beans.colNames.getDisplayNameForColumn(e,"header")??void 0,r.headerValueGetter=e.colDef.headerValueGetter),r}destroy(){zb(this.beans,this.columns?.tree),super.destroy()}},ait=class extends dt{addExpandedCss(e,t){t.isExpandable()&&(e.push("ag-row-group"),e.push(t.expanded?"ag-row-group-expanded":"ag-row-group-contracted"))}getRowExpandedListeners(e){const{rowNode:t}=e,n=this.updateExpandedCss.bind(this,e,t);return{expandedChanged:n,hasChildrenChanged:n}}setExpanded(e,t,n,r){if(e.expanded===t)return;e.expanded=t,e.dispatchRowEvent("expandedChanged");const i={...ptt(e,this.gos,"rowGroupOpened"),expanded:t,event:n||null};this.dispatchExpandedEvent(i,r)}isExpandable(e){return e.footer?!1:this.beans.colModel.isPivotMode()?e.hasChildren()&&!e.leafGroup:e.hasChildren()||e.master}updateExpandedCss(e,t){const n=t.isExpandable(),r=t.expanded==!0;e.forEachGui(void 0,i=>{const o=i.rowComp;o.toggleCss("ag-row-group",n),o.toggleCss("ag-row-group-expanded",n&&r),o.toggleCss("ag-row-group-contracted",n&&!r),d1(i.element,n&&r)})}},AYt=class extends ait{constructor(){super(...arguments),this.beanName="expansionSvc",this.events=[]}wireBeans(e){this.rowModel=e.rowModel}expandRows(e){const t=new Set(e);this.rowModel.forEachNode(n=>{n.id&&t.has(n.id)&&(n.expanded=!0)}),this.onGroupExpandedOrCollapsed()}expandAll(e){const{gos:t,colModel:n,eventSvc:r}=this.beans,i=this.rowModel,o=t.get("treeData"),a=n.isPivotActive(),s=c=>{c&&c.forEach(u=>{const d=()=>{u.expanded=e,s(u.childrenAfterGroup)};if(o){Ut(u.childrenAfterGroup)&&d();return}if(a){!u.leafGroup&&d();return}u.group&&d()})},l=i.rootNode;l&&s(l.childrenAfterGroup),i.refreshModel({step:"map"}),r.dispatchEvent({type:"expandOrCollapseAll",source:e?"expandAll":"collapseAll"})}onGroupExpandedOrCollapsed(){this.rowModel.refreshModel({step:"map"})}dispatchExpandedEvent(e,t){this.events.push(e);const n=()=>{this.rowModel.onRowGroupOpened(),this.events.forEach(i=>this.eventSvc.dispatchEvent(i));const r=this.events.map(i=>i.node);this.beans.rowRenderer.refreshCells({rowNodes:r}),this.events=[]};t?n():(this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.debounce(n)),this.dispatchExpandedDebounced())}debounce(e){const t=this.beans.animationFrameSvc;if(!t)return()=>window.setTimeout(e,0);let n=!1;return()=>{if(!t.active){window.setTimeout(e,0);return}n||(n=!0,t.addDestroyTask(()=>{n=!1,e()}))}}};function sit(e){let t=e.get("groupHideParentOfSingleChild");return t||(t=e.get("groupRemoveSingleChildren"),!t&&e.get("groupRemoveLowestSingleChildren")&&(t="leafGroupsOnly")),{groupHideParentOfSingleChild:t,isGroupMultiAutoColumn:Q2e(e),hideOpenParents:e.get("groupHideOpenParents"),grandTotalRow:K2e(e),groupTotalRow:QI(e)}}function lit(e,t,n){return e.groupHideParentOfSingleChild===!0&&n&&t.childrenAfterGroup.length===1}function cit(e,t,n){return e.groupHideParentOfSingleChild==="leafGroupsOnly"&&n&&t.leafGroup&&t.childrenAfterGroup.length===1}function uit(e,t,n,r,i,o){const a=r&&!n,s=r&&t.leafGroup,l=e.hideOpenParents&&t.expanded&&!t.master&&!s;return!a&&!l&&!i&&!o}var OYt=class extends dt{constructor(){super(...arguments),this.beanName="flattenStage",this.refreshProps=new Set(["groupHideParentOfSingleChild","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupTotalRow","masterDetail"]),this.step="map"}execute(e){const t=e.rowNode,n=[],r=this.beans.colModel.isPivotMode(),i=r&&t.leafGroup&&t.aggData,o=i?[t]:t.childrenAfterSort,a=sit(this.gos);this.recursivelyAddToRowsToDisplay(a,o,n,r,0);const s=n.length>0,l=a.grandTotalRow;if(!i&&s&&l)if(Ry(t,this.beans),l==="pinnedBottom"||l==="pinnedTop")this.beans.pinnedRowModel?.setGrandTotalPinned(l==="pinnedBottom"?"bottom":"top");else{const u=l==="top";this.addRowNodeToRowsToDisplay(a,t.sibling,n,0,u)}return n}recursivelyAddToRowsToDisplay(e,t,n,r,i){if(t?.length)for(let o=0;o<t.length;o++){const a=t[o],s=a.hasChildren(),l=lit(e,a,s),c=cit(e,a,s);if(uit(e,a,s,r,l,c)&&this.addRowNodeToRowsToDisplay(e,a,n,i),!(r&&a.leafGroup))if(s){const d=l||c;if(a.expanded||d){const p=e.groupTotalRow({node:a});p||Uye(a);const h=d?i:i+1;p==="top"&&(Ry(a,this.beans),this.addRowNodeToRowsToDisplay(e,a.sibling,n,h)),this.recursivelyAddToRowsToDisplay(e,a.childrenAfterSort,n,r,h),p==="bottom"&&(Ry(a,this.beans),this.addRowNodeToRowsToDisplay(e,a.sibling,n,h))}}else{const d=this.beans.masterDetailSvc?.getDetail(a);d&&this.addRowNodeToRowsToDisplay(e,d,n,i)}}}addRowNodeToRowsToDisplay(e,t,n,r,i){i?n.unshift(t):n.push(t),t.setUiLevel(e.isGroupMultiAutoColumn?0:r)}},zYt=class extends dt{constructor(){super(...arguments),this.beanName="groupStage",this.refreshProps=new Set(["groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType","treeData","treeDataChildrenField","treeDataParentIdField"]),this.step="group",this.approach=null,this.strategy=void 0}destroy(){super.destroy(),this.strategy=void 0,this.approach=null}createStrategy(){const{beans:e,approach:t}=this;let n;switch(t){case"treeSelfRef":n="treeParentIdStrategy";break;case"group":n="groupStrategy";break}if(n){const r=e.registry.createDynamicBean(n,!1);return this.createOptionalManagedBean(r),r}}execute(e){let t=this.strategy;const n=Met(this.gos);return this.approach!==n&&(this.approach=n,this.destroyBean(t),t&&this.approach!=="treeNested"&&this.approach!=="treePath"&&TYt(e.rowNode),t=this.createStrategy(),this.strategy=t),t?.execute(e),!!t}},TYt=e=>{const t=e.allLeafChildren,n=e.sibling;e.treeNodeFlags=0,e.childrenAfterGroup=t,e.childrenMapped=null,e.groupData=null,n&&(n.childrenAfterGroup=e.childrenAfterGroup,n.childrenAfterAggFilter=e.childrenAfterAggFilter,n.childrenAfterFilter=e.childrenAfterFilter,n.childrenAfterSort=e.childrenAfterSort,n.childrenMapped=null,n.groupData=null);for(const r of t){const i=r.sibling;ARe(r),i&&ARe(i),r.parent=e,r.level=0,r.key=null,r.treeNodeFlags=0,(r.group||r.hasChildren())&&(r.group=!1,r.updateHasChildren())}e.updateHasChildren()},ARe=e=>{e.allLeafChildren=null,e.childrenAfterGroup=null,e.childrenAfterAggFilter=null,e.childrenAfterFilter=null,e.childrenAfterSort=null,e.childrenMapped=null,e.groupData&&(e.groupData=null)};function ORe(e,t,n){let r=e;const i=r.level-t.level;if(i<=0||!n.get("groupHideOpenParents"))return!1;for(let a=0;a<i;a++){if(!(r.parent?.getFirstChild()===r))return!1;r=r.parent}return r===t}var dit=class extends dt{constructor(){super(...arguments),this.indentClass=null}init(e,t,n,r,i,o,a){this.params=a,this.eGui=t,this.eCheckbox=n,this.eExpanded=r,this.eContracted=i,this.comp=e,this.compClass=o;const{node:s,column:l}=a;if(this.node=s,this.displayedNode=s,!this.isEmbeddedRowMismatch()){if(s.footer){this.initFooterCell();return}if(!l){this.initFullWidthCell();return}this.displayedNode=this.beans.showRowGroupColValueSvc?.getDisplayedNode(s,l)??this.node,this.setupExpand(),this.setupCheckbox(),this.addGroupValue(),this.setupIndent()}}initFooterCell(){const{node:e}=this.params;this.addGroupValue(),this.setupIndent(),e.level===-1||this.comp.toggleCss("ag-row-group-leaf-indent",!0)}initFullWidthCell(){const e=()=>{const{rowDragSvc:t}=this.beans;if(!this.params.rowDrag||!t)return;const n=t.createRowDragComp(()=>this.params.value,this.params.node);this.createManagedBean(n),this.eGui.insertAdjacentElement("afterbegin",n.getGui())};this.setupExpand(),e(),this.setupCheckbox(),this.addGroupValue(),this.setupIndent()}getCellAriaRole(){const e=this.params.colDef?.cellAriaRole,t=this.params.column?.getColDef().cellAriaRole;return e||t||"gridcell"}isEmbeddedRowMismatch(){if(!this.params.fullWidth||!this.gos.get("embedFullWidthRows"))return!1;const{visibleCols:e}=this.beans,t=this.params.pinned==="left",n=this.params.pinned==="right",r=!t&&!n;return this.gos.get("enableRtl")?e.isPinningLeft()?!n:!r:e.isPinningLeft()?!t:!r}addGroupValue(){const{params:{value:e,valueFormatted:t}}=this,n=this.getInnerCompDetails();this.comp.setInnerRenderer(n,t??e??null)}setupExpand(){const{colModel:e}=this.beans,{eGridCell:t,column:n,suppressDoubleClickExpand:r}=this.params,i=(c,u)=>{const d=er(c,this.beans,null);d&&(u.appendChild(d),this.addDestroyFunc(()=>u.removeChild(d)))};i("groupExpanded",this.eExpanded),i("groupContracted",this.eContracted);const o=this.comp,a=()=>{if(!this.isExpandable())return;const u=this.displayedNode.expanded;o.setExpandedDisplayed(u),o.setContractedDisplayed(!u),d1(t,!!this.displayedNode.expanded)},s=()=>{const c=this.isExpandable();o.toggleCss("ag-cell-expandable",c),o.toggleCss("ag-row-group",c);const u=!c&&e.isPivotMode();o.toggleCss("ag-pivot-leaf-group",u);const d=!e.isPivotMode()&&(!this.displayedNode.footer||this.displayedNode.level!==-1);o.toggleCss("ag-row-group-leaf-indent",!c&&d);const p=this.getChildCount(),h=p>0?`(${p})`:"";o.setChildCount(h),c?a():(o.setExpandedDisplayed(!1),o.setContractedDisplayed(!1),WJe(t))};(()=>{!(n?.isCellEditable(this.displayedNode)&&this.gos.get("enableGroupEdit"))&&!r&&this.addManagedListeners(t,{dblclick:this.onCellDblClicked.bind(this)}),this.addManagedListeners(this.eExpanded,{click:this.onExpandClicked.bind(this)}),this.addManagedListeners(this.eContracted,{click:this.onExpandClicked.bind(this)}),this.addManagedListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedListeners(this.displayedNode,{allChildrenCountChanged:s,masterChanged:s,groupChanged:s,hasChildrenChanged:s,expandedChanged:a})})(),s()}getInnerCompDetails(){const{userCompFactory:e,findSvc:t}=this.beans,n=this.params;if(n.fullWidth){const l=this.gos.get("groupRowRendererParams"),c=WH(e,l,n);return c||(t?.isMatch(n.node,null)?WH(e,{...l,innerRenderer:"agFindCellRenderer"},n):void 0)}const r=l=>l&&l.componentClass==this.compClass,i=WH(e,n,n);if(i&&!r(i))return i;const{displayedNode:{rowGroupColumn:o}}=this,a=o?.colDef,s=o&&n.column?.isRowGroupDisplayed(o.getId());if(a&&s){const l=tP(e,a,n);if(l)if(r(l)){if(a?.cellRendererParams?.innerRenderer)return WH(e,a.cellRendererParams,n)}else return l}if(t?.isMatch(n.node,n.column))return tP(e,{...a??n.colDef,cellRenderer:"agFindCellRenderer"},n)}getChildCount(){const{column:e,suppressCount:t}=this.params;if(t)return 0;const{allChildrenCount:n,rowGroupColumn:r}=this.displayedNode;return!((n??0)>0&&(!r||!e||e?.isRowGroupDisplayed(r.getId())))||this.gos.get("showOpenedGroup")&&this.displayedNode!==this.node&&!ORe(this.node,this.displayedNode,this.gos)?0:n??0}isExpandable(){const{node:e,column:t,colDef:n}=this.params;if(!this.displayedNode.isExpandable()||e.rowPinned)return!1;if(!t)return!0;if(e.hasChildren()&&n){const{showRowGroup:o}=n;if(!o)return!1;if(o===!0)return!0}return e===this.displayedNode?e.rowGroupColumn&&t?.isRowGroupDisplayed(e.rowGroupColumn.getId())?!0:e.master?n?.showRowGroup===!0||n?.showRowGroup==null:!1:ORe(this.node,this.displayedNode,this.gos)}setupIndent(){const{suppressPadding:e,node:t,colDef:n}=this.params;if(e)return;const r=()=>{let i=0;n&&n.showRowGroup!==!0?i=0:i=t.uiLevel;const o="ag-row-group-indent-"+i;o!==this.indentClass&&(this.indentClass&&this.comp.toggleCss(this.indentClass,!1),this.indentClass=o,this.comp.toggleCss(o,!0),this.eGui.style.setProperty("--ag-indentation-level",String(i)))};this.addManagedListeners(t,{uiLevelChanged:r.bind(this)}),r()}setupCheckbox(){const{node:e}=this.params;!e.footer&&!e.rowPinned&&!e.detail&&(this.addManagedPropertyListener("rowSelection",({currentValue:n,previousValue:r})=>{const i=typeof n=="object"?n:void 0,o=typeof r=="object"?r:void 0;i?.checkboxLocation!==o?.checkboxLocation&&(this.destroyCheckbox(),this.addCheckbox())}),this.addCheckbox())}addCheckbox(){const{selectionSvc:e}=this.beans;if(!e||!Kp(this.gos))return;const{node:t,column:n}=this.params,r=this.gos.get("rowSelection"),i=cW(r);if(i==="selectionColumn")return;if(i==="autoGroupColumn"){const c=n?.getColDef().showRowGroup!=null,u=!n&&t.group;if(!(c||u))return}const o=typeof r=="object"?kO(r):this.params.checkbox;if(!(typeof o=="function"||o===!0))return;if(typeof n?.getColDef().showRowGroup=="string"&&!this.isExpandable()){this.comp.setCheckboxSpacing(!0);return}const l=e.createCheckboxSelectionComponent();this.cbComp=l,this.createBean(l),l.init({rowNode:t,column:n,overrides:{isVisible:o,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(l.getGui()),this.comp.setCheckboxVisible(!0)}destroyCheckbox(){this.comp.setCheckboxSpacing(!1),this.comp.setCheckboxVisible(!1),this.cbComp&&this.eCheckbox.removeChild(this.cbComp.getGui()),this.cbComp=this.destroyBean(this.cbComp)}onExpandClicked(e){rh(e)||(Cl(e),this.onExpandOrContract(e))}onKeyDown(e){!(e.key===Qe.ENTER)||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)}onCellDblClicked(e){if(rh(e))return;ohe(this.eExpanded,e)||ohe(this.eContracted,e)||this.onExpandOrContract(e)}onExpandOrContract(e){if(!this.isExpandable())return;const t=this.displayedNode,n=!t.expanded;!n&&t.sticky&&this.beans.ctrlsSvc.getScrollFeature().setVerticalScrollPosition(t.rowTop-t.stickyRowTop),t.setExpanded(n,e)}destroy(){super.destroy(),this.destroyCheckbox()}},EYt={tag:"span",cls:"ag-cell-wrapper",children:[{tag:"span",ref:"eExpanded",cls:"ag-group-expanded ag-hidden"},{tag:"span",ref:"eContracted",cls:"ag-group-contracted ag-hidden"},{tag:"span",ref:"eCheckbox",cls:"ag-group-checkbox ag-invisible"},{tag:"span",ref:"eValue",cls:"ag-group-value"},{tag:"span",ref:"eChildCount",cls:"ag-group-child-count"}]},zRe=class extends Gt{constructor(){super(EYt),this.eExpanded=at,this.eContracted=at,this.eCheckbox=at,this.eValue=at,this.eChildCount=at}init(t){const n={setInnerRenderer:(a,s)=>this.setRenderDetails(a,s),setChildCount:a=>this.eChildCount.textContent=a,toggleCss:(a,s)=>this.toggleCss(a,s),setContractedDisplayed:a=>Nn(this.eContracted,a),setExpandedDisplayed:a=>Nn(this.eExpanded,a),setCheckboxVisible:a=>this.eCheckbox.classList.toggle("ag-invisible",!a),setCheckboxSpacing:a=>this.eCheckbox.classList.toggle("ag-group-checkbox-spacing",a)},r=this.createManagedBean(new dit),i=!t.colDef,o=this.getGui();r.init(n,o,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,t),i&&C0(o,r.getCellAriaRole())}setRenderDetails(t,n){t?t.newAgStackInstance().then(r=>{if(!r)return;const i=()=>this.destroyBean(r);this.isAlive()?(this.eValue.appendChild(r.getGui()),this.addDestroyFunc(i)):i()}):this.eValue.innerText=n}destroy(){this.destroyBean(this.innerCellRenderer),super.destroy()}refresh(){return!1}},RYt=".ag-group-checkbox-spacing{width:var(--ag-icon-size)}:where(.ag-ltr) .ag-group-checkbox-spacing{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-checkbox-spacing{margin-left:var(--ag-cell-widget-spacing)}",IYt=class extends dt{constructor(){super(...arguments),this.beanName="showRowGroupColValueSvc"}getGroupValue(e,t){if(!t)return e.group?{displayedNode:e,value:e.groupValue}:null;const n=this.beans.valueSvc,r=t.colDef.showRowGroup;if(!r)return null;if(e.level===-1&&e.footer)return{displayedNode:e,value:null};if(typeof r=="string"){if((this.beans.rowGroupColsSvc?.getColumnIndex(r)??-1)>e.level)return null;const a=this.getDisplayedNode(e,t,!0);if(a)return{displayedNode:a,value:n.getValue(t,a)}}const i=n.getValue(t,e);if(i==null){const o=this.getDisplayedNode(e,t);if(o)return{displayedNode:o,value:n.getValue(t,o)}}return{displayedNode:e,value:i}}formatAndPrefixGroupColValue(e,t,n=!1){const r=this.formatGroupColValue(e,t,n),{value:i,displayedNode:o}=e,a=this.beans.footerSvc;return a?.doesCellShowTotalPrefix(o,t)?a.applyTotalPrefix(i,r,o,t):o.footer&&o.level===-1?null:r}formatGroupColValue(e,t,n=!1){const r=this.beans.valueSvc,{displayedNode:i,value:o}=e,a=i.rowGroupColumn,s=i.group&&!t;if(a&&(s||t?.isRowGroupDisplayed(a.colId))){if(n&&a.colDef.useValueFormatterForExport===!1)return null;const c=r.formatValue(a,i,o);return c==null&&i.key===""?this.getLocaleTextFunc()("blanks","(Blanks)"):c}return!t||i.group||n&&t.colDef.useValueFormatterForExport===!1?null:r.formatValue(t,i,o)}getDisplayedNode(e,t,n=!1){const r=this.gos,i=r.get("groupHideOpenParents"),o=r.get("showOpenedGroup")&&!n;if(!i&&!o)return;const a=t.colDef.showRowGroup;if(a===!0)return e.group?void 0:e.parent??void 0;let s=e;for(;s&&s.rowGroupColumn?.getId()!=a;){const l=s===s.parent?.getFirstChild();if(!o&&!l)return;s=s.parent}if(s!==e)return s??void 0}},PYt=class extends dt{constructor(){super(...arguments),this.beanName="showRowGroupCols"}refresh(){this.showRowGroupCols=[],this.showRowGroupColsMap={};const{colModel:e,rowGroupColsSvc:t}=this.beans;e.getCols().forEach(n=>{const i=n.getColDef().showRowGroup,o=typeof i=="string";!o&&!(i===!0)||(this.showRowGroupCols.push(n),o?this.showRowGroupColsMap[i]=n:t&&t.columns.forEach(s=>{this.showRowGroupColsMap[s.getId()]=n}))})}getShowRowGroupCols(){return this.showRowGroupCols}getShowRowGroupCol(e){return this.showRowGroupColsMap[e]}getSourceColumnsForGroupColumn(e){const t=e.getColDef().showRowGroup;if(!t)return null;const{rowGroupColsSvc:n,colModel:r}=this.beans;if(t===!0&&n)return n.columns.slice(0);const i=r.getColDefCol(t);return i?[i]:null}isRowGroupDisplayed(e,t){const{colDef:n}=e;if(n?.showRowGroup==null)return!1;const r=n.showRowGroup===!0,i=n.showRowGroup===t;return r||i}},DYt=class extends dt{constructor(e,t){super(),this.createRowCon=e,this.destroyRowCtrls=t,this.stickyTopRowCtrls=[],this.stickyBottomRowCtrls=[],this.extraTopHeight=0,this.extraBottomHeight=0}postConstruct(){this.isClientSide=oa(this.gos),this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl}),this.resetStickyContainers()}setOffsetTop(e){this.extraTopHeight!==e&&(this.extraTopHeight=e,this.eventSvc.dispatchEvent({type:"stickyTopOffsetChanged",offset:e}))}setOffsetBottom(e){this.extraBottomHeight!==e&&(this.extraBottomHeight=e)}resetOffsets(){this.setOffsetBottom(0),this.setOffsetTop(0)}getLastPixelOfGroup(e){return this.isClientSide?LYt(e):kYt(e)}getFirstPixelOfGroup(e){return e.footer?e.sibling.rowTop+e.sibling.rowHeight-1:e.hasChildren()?e.rowTop-1:0}updateStickyRows(e){const t=e==="top";let n=0;if(!this.canRowsBeSticky())return this.refreshNodesAndContainerHeight(e,new Set,n);const{rowModel:r,rowRenderer:i,pinnedRowModel:o}=this.beans,a=t?i.firstVisibleVPixel-this.extraTopHeight:i.lastVisibleVPixel-this.extraTopHeight,s=new Set,l=p=>{if(s.add(p),t){const h=this.getLastPixelOfGroup(p),g=a+n+p.rowHeight;h<g?p.stickyRowTop=n+(h-g):p.stickyRowTop=n}else{const h=this.getFirstPixelOfGroup(p),g=a-(n+p.rowHeight);h>g?p.stickyRowTop=n-(h-g):p.stickyRowTop=n}n=0,s.forEach(h=>{const g=h.stickyRowTop+h.rowHeight;n<g&&(n=g)})},c=this.areFooterRowsStickySuppressed(),u=this.gos.get("suppressGroupRowsSticky"),d=p=>{if(!p.displayed)return!1;if(p.footer){if(c===!0||c==="grand"&&p.level===-1||c==="group"&&p.level>-1)return!1;const h=p.sibling.rowIndex?p.sibling.rowIndex+1===p.rowIndex:!1;return e==="bottom"&&h||p.level===-1&&o?.getGrandTotalPinned()?!1:!s.has(p)}return p.isExpandable()?u===!0||e==="bottom"?!1:!s.has(p)&&p.expanded:!1};for(let p=0;p<100;p++){let h=a+n;t||(h=a-n);const g=r.getRowIndexAtPixel(h),m=r.getRow(g);if(m==null)break;const y=this.getStickyAncestors(m).find(C=>(t?C.rowIndex<g:C.rowIndex>g)&&d(C));if(y){l(y);continue}if((t?m.rowTop<h:m.rowTop+m.rowHeight>h)&&d(m)){l(m);continue}break}return t||s.forEach(p=>{p.stickyRowTop=n-(p.stickyRowTop+p.rowHeight)}),this.refreshNodesAndContainerHeight(e,s,n)}areFooterRowsStickySuppressed(){const e=this.gos.get("suppressStickyTotalRow");if(e===!0)return!0;const t=e==="group",n=e==="grand";return t&&n?!0:n?"grand":t?"group":!1}canRowsBeSticky(){const e=yK(this.gos),t=this.areFooterRowsStickySuppressed(),n=this.gos.get("suppressGroupRowsSticky");return e&&(!t||!n)}getStickyAncestors(e){const t=[];let n=e.footer?e.sibling:e.parent;for(;n;)n.sibling&&t.push(n.sibling),t.push(n),n=n.parent;return t.reverse()}checkStickyRows(){const e=this.updateStickyRows("top"),t=this.updateStickyRows("bottom");return e||t}destroyStickyCtrls(){this.resetStickyContainers()}resetStickyContainers(){this.refreshNodesAndContainerHeight("top",new Set,0),this.refreshNodesAndContainerHeight("bottom",new Set,0)}refreshStickyNode(e){const t=new Set;if(this.stickyTopRowCtrls.some(n=>n.rowNode===e)){for(let n=0;n<this.stickyTopRowCtrls.length;n++){const r=this.stickyTopRowCtrls[n].rowNode;r!==e&&t.add(r)}this.refreshNodesAndContainerHeight("top",t,this.topContainerHeight)&&this.checkStickyRows();return}for(let n=0;n<this.stickyBottomRowCtrls.length;n++){const r=this.stickyBottomRowCtrls[n].rowNode;r!==e&&t.add(r)}this.refreshNodesAndContainerHeight("bottom",t,this.bottomContainerHeight)&&this.checkStickyRows()}refreshNodesAndContainerHeight(e,t,n){const r=e==="top",i=r?this.stickyTopRowCtrls:this.stickyBottomRowCtrls,o={},a=[];for(let h=0;h<i.length;h++){const g=i[h].rowNode;if(!t.has(g)){o[g.id]=i[h],g.sticky=!1;continue}a.push(i[h])}const s=new Set;for(let h=0;h<a.length;h++)s.add(a[h].rowNode);const l=[];t.forEach(h=>{s.has(h)||(h.sticky=!0,l.push(this.createRowCon(h,!1,!1)))});let c=!!l.length||a.length!==i.length;r?this.topContainerHeight!==n&&(this.topContainerHeight=n,this.gridBodyCtrl.setStickyTopHeight(n),c=!0):this.bottomContainerHeight!==n&&(this.bottomContainerHeight=n,this.gridBodyCtrl.setStickyBottomHeight(n),c=!0),this.destroyRowCtrls(o,!1);const u=[...a,...l];u.sort((h,g)=>g.rowNode.rowIndex-h.rowNode.rowIndex),r||u.reverse(),u.forEach(h=>h.setRowTop(h.rowNode.stickyRowTop));const d=this.beans.pageBounds;let p=0;return r?(t.forEach(h=>{h.rowIndex<d.getFirstRow()&&(p+=h.rowHeight)}),p>this.topContainerHeight&&(p=this.topContainerHeight),this.setOffsetTop(p)):(t.forEach(h=>{h.rowIndex>d.getLastRow()&&(p+=h.rowHeight)}),p>this.bottomContainerHeight&&(p=this.bottomContainerHeight),this.setOffsetBottom(p)),c?(r?this.stickyTopRowCtrls=u:this.stickyBottomRowCtrls=u,!0):!1}ensureRowHeightsValid(){let e=!1;const t=n=>{const r=n.rowNode;if(r.rowHeightEstimated){const i=vd(this.beans,r);r.setRowHeight(i.height),e=!0}};return this.stickyTopRowCtrls.forEach(t),this.stickyBottomRowCtrls.forEach(t),e}};function kYt(e){if(e.isExpandable()||e.footer){if(e.master&&e.detailNode)return e.detailNode.rowTop+e.detailNode.rowHeight;if(!e.sibling||Math.abs(e.sibling.rowIndex-e.rowIndex)===1){let n=e.childStore?.getStoreBounds();return e.footer&&(n=e.sibling.childStore?.getStoreBounds()),(n?.heightPx??0)+(n?.topPx??0)}return e.footer?e.rowTop+e.rowHeight:e.sibling.rowTop+e.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}function LYt(e){if(e.isExpandable()||e.footer){if(e.footer&&e.rowIndex===0)return Number.MAX_SAFE_INTEGER;if(!e.sibling||Math.abs(e.sibling.rowIndex-e.rowIndex)===1){let r=e.footer?e.sibling:e;for(;r.isExpandable()&&r.expanded;)if(r.master&&r.detailNode)r=r.detailNode;else if(r.childrenAfterSort){if(r.childrenAfterSort.length===0)break;r=zr(r.childrenAfterSort)}return r.rowTop+r.rowHeight}return e.footer?e.rowTop+e.rowHeight:e.sibling.rowTop+e.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}var _Yt=class extends dt{constructor(){super(...arguments),this.beanName="stickyRowSvc"}createStickyRowFeature(e,t,n){const r=this.gos;if(yK(r)&&oa(r)||Au(r))return e.createManagedBean(new DYt(t,n))}},pit={moduleName:"GroupCellRenderer",version:wi,userComponents:{agGroupRowRenderer:zRe,agGroupCellRenderer:zRe},dynamicBeans:{groupCellRendererCtrl:dit},icons:{groupContracted:"tree-closed",groupExpanded:"tree-open"},css:[RYt],dependsOn:[es]},hit={moduleName:"GroupColumn",version:wi,beans:[SYt,PYt,IYt,wYt,oit,rit],dependsOn:[es,pit]},FK={moduleName:"ClientSideRowModelHierarchy",version:wi,rowModels:["clientSide"],beans:[zYt,OYt,AYt],dependsOn:[es]},Yye={moduleName:"StickyRow",version:wi,beans:[_Yt]},NYt=class extends Gt{constructor(){super()}postConstruct(){this.setGui(this.createNorthPanel());const e=this.onRowGroupChanged.bind(this);this.addManagedEventListeners({columnRowGroupChanged:e,newColumnsLoaded:e}),this.addManagedPropertyListener("rowGroupPanelShow",e),this.addManagedPropertyListener("pivotPanelShow",()=>this.onPivotPanelShow()),this.onRowGroupChanged()}createNorthPanel(){const e=Nr({tag:"div",cls:"ag-column-drop-wrapper",role:"presentation"}),t=new Urt(!0);this.rowGroupComp=this.createManagedBean(t);const n=new $rt(!0);this.pivotComp=this.createManagedBean(n),e.appendChild(t.getGui()),e.appendChild(n.getGui());const r=this.onDropPanelVisible.bind(this);return this.addManagedListeners(t,{displayChanged:r}),this.addManagedListeners(n,{displayChanged:r}),this.onDropPanelVisible(),e}onDropPanelVisible(){const{rowGroupComp:e,pivotComp:t}=this,n=e.isDisplayed()&&t.isDisplayed(),r="ag-column-drop-horizontal-half-width";e.toggleCss(r,n),t.toggleCss(r,n)}onRowGroupChanged(){const e=this.rowGroupComp;if(!e)return;const t=this.gos.get("rowGroupPanelShow");if(t==="always")e.setDisplayed(!0);else if(t==="onlyWhenGrouping"){const n=this.beans.rowGroupColsSvc?.columns?.length!==0;e.setDisplayed(n)}else e.setDisplayed(!1)}onPivotPanelShow(){const e=this.pivotComp;if(!e)return;const t=this.gos.get("pivotPanelShow");if(t==="always")e.setDisplayed(!0);else if(t==="onlyWhenPivoting"){const n=this.beans.colModel.isPivotActive();e.setDisplayed(n)}else e.setDisplayed(!1)}},FYt={selector:"AG-GRID-HEADER-DROP-ZONES",component:NYt},WYt={tag:"div",cls:"ag-group-filter",children:[{tag:"div",ref:"eGroupField"},{tag:"div",ref:"eUnderlyingFilter"}]},qYt=class extends Vb{constructor(){super(WYt),this.filterType="group",this.eGroupField=at,this.eUnderlyingFilter=at}wireBeans(e){this.filterManager=e.filterManager,this.showRowGroupCols=e.showRowGroupCols}postConstruct(){this.initialiseTabGuard({})}init(e){return this.updateParams(e).then(()=>{this.addManagedEventListeners({columnRowGroupChanged:()=>this.onColumnRowGroupChanged(),filterDestroyed:t=>this.onFilterDestroyed(t)})})}refresh(e){return this.updateParams(e),!0}updateParams(e){return this.params=e,this.validateParams(),this.updateGroups()}validateParams(){const{colDef:e}=this.params;e.field&&ut(234),e.filterValueGetter&&ut(235),e.filterParams&&ut(236)}updateGroups(){const e=this.updateGroupField();return this.getUnderlyingFilters(e)}getSourceColumns(){if(this.groupColumn=this.params.column,this.gos.get("treeData"))return ut(237),[];const e=this.showRowGroupCols?.getSourceColumnsForGroupColumn(this.groupColumn);return e||(ut(183),[])}updateGroupField(){const e=this.eGroupField;Xi(e),this.eGroupFieldSelect&&this.destroyBean(this.eGroupFieldSelect);const t=this.getSourceColumns(),n=t.filter(r=>r.isFilterAllowed());return n.length?(t.length===1?(this.selectedColumn=n[0],Nn(e,!1)):((!this.selectedColumn||!n.some(r=>r.getId()===this.selectedColumn.getId()))&&(this.selectedColumn=n[0]),this.createGroupFieldSelectElement(n),e.appendChild(this.eGroupFieldSelect.getGui()),e.appendChild(Nr({tag:"div",cls:"ag-filter-separator"})),Nn(e,!0)),n):(this.selectedColumn=void 0,Nn(e,!1),null)}createGroupFieldSelectElement(e){const t=this.createManagedBean(new l1);this.eGroupFieldSelect=t;const n=this.getLocaleTextFunc();t.setLabel(n("groupFilterSelect","Select field:")),t.setLabelAlignment("top"),t.addOptions(e.map(r=>({value:r.getId(),text:this.beans.colNames.getDisplayNameForColumn(r,"groupFilter",!1)??void 0}))),t.setValue(this.selectedColumn.getId()),t.onValueChange(r=>this.updateSelectedColumn(r)),t.addCss("ag-group-filter-field-select-wrapper"),e.length===1&&t.setDisabled(!0)}getUnderlyingFilters(e){if(!e)return this.filterColumnPairs=void 0,this.selectedFilter=void 0,this.beans.colFilter?.setColFilterActive(this.groupColumn,!1,"columnRowGroupChanged"),Dr.resolve();const t=[],n=[];return e.forEach(r=>{const i=this.filterManager.getOrCreateFilterWrapper(r);i?.filterPromise&&t.push(i.filterPromise.then(o=>(o&&n.push({filter:o,column:r}),r.getId()===this.selectedColumn.getId()&&(this.selectedFilter=o??void 0),o)))}),Dr.all(t).then(()=>{this.filterColumnPairs=n,this.beans.colFilter?.setColFilterActive(this.groupColumn,this.isFilterActive(),"columnRowGroupChanged")})}addUnderlyingFilterElement(){if(Xi(this.eUnderlyingFilter),!this.selectedColumn)return Dr.resolve();const e=this.createManagedBean(new wK(this.selectedColumn,"COLUMN_MENU"));return this.filterWrapperComp=e,e.hasFilter()?(this.eUnderlyingFilter.appendChild(e.getGui()),e.getFilter()?.then(()=>{e.afterGuiAttached?.(this.afterGuiAttachedParams),!this.afterGuiAttachedParams?.suppressFocus&&this.eGroupFieldSelect&&!this.eGroupFieldSelect.isDisabled()&&this.eGroupFieldSelect.getFocusableElement().focus()})??Dr.resolve()):Dr.resolve()}updateSelectedColumn(e){if(!e)return;this.filterWrapperComp?.afterGuiDetached(),this.destroyBean(this.filterWrapperComp);const t=this.getFilterColumnPair(e);this.selectedColumn=t?.column,this.selectedFilter=t?.filter,this.dispatchLocalEvent({type:"selectedColumnChanged"}),this.addUnderlyingFilterElement()}isFilterActive(){return!!this.filterColumnPairs?.some(({filter:e})=>e.isFilterActive())}doesFilterPass(){return!0}getModel(){return null}setModel(){return Dr.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.addUnderlyingFilterElement()}afterGuiDetached(){Xi(this.eUnderlyingFilter),this.selectedFilter?.afterGuiDetached?.()}onColumnRowGroupChanged(){this.updateGroups().then(()=>{this.dispatchLocalEvent({type:"columnRowGroupChanged"})})}onFilterDestroyed({column:e,source:t}){if(t==="gridDestroyed")return;const n=e.getColId();this.filterColumnPairs?.some(({column:r})=>r.getColId()===n)&&setTimeout(()=>{this.isAlive()&&this.updateGroups()})}getFilterColumnPair(e){if(e)return this.filterColumnPairs?.find(({column:t})=>t.getId()===e)}getSelectedFilter(){return this.selectedFilter}getSelectedColumn(){return this.selectedColumn}isFilterAllowed(){return!!this.selectedColumn}},BYt={tag:"div",ref:"eFloatingFilter",cls:"ag-group-floating-filter ag-floating-filter-input",role:"presentation"},jYt=class extends Gt{constructor(){super(BYt),this.eFloatingFilter=at,this.haveAddedColumnListeners=!1}wireBeans(e){this.filterManager=e.filterManager}init(e){this.params=e;const t=Q2e(this.gos);return new Dr(n=>{this.params.parentFilterInstance(r=>{this.parentFilterInstance=r,t?this.setupUnderlyingFloatingFilterElement().then(()=>n()):(this.setupReadOnlyFloatingFilterElement(),n())})}).then(()=>{const n=this.onColChange.bind(this);this.addManagedListeners(this.parentFilterInstance,{selectedColumnChanged:n,columnRowGroupChanged:n})})}refresh(e){this.params=e,this.setParams()}setParams(){const e=this.beans.colNames.getDisplayNameForColumn(this.params.column,"header",!0),t=this.getLocaleTextFunc();this.eFloatingFilterText?.setInputAriaLabel(`${e} ${t("ariaFilterInput","Filter Input")}`)}setupReadOnlyFloatingFilterElement(){this.eFloatingFilterText||(this.eFloatingFilterText=this.createManagedBean(new Im),this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams()),this.updateDisplayedValue(),this.eFloatingFilter.appendChild(this.eFloatingFilterText.getGui())}setupUnderlyingFloatingFilterElement(){this.showingUnderlyingFloatingFilter=!1,this.underlyingFloatingFilter=void 0,Xi(this.eFloatingFilter);const e=this.parentFilterInstance.getSelectedColumn();if(e&&!e.isVisible()){const t=this.filterManager.getFloatingFilterCompDetails(e,this.params.showParentFilter);if(t)return this.haveAddedColumnListeners||(this.haveAddedColumnListeners=!0,this.addManagedListeners(e,{visibleChanged:this.onColumnVisibleChanged.bind(this),colDefChanged:this.onColDefChanged.bind(this)})),t.newAgStackInstance().then(n=>{this.underlyingFloatingFilter=n,this.underlyingFloatingFilter?.onParentModelChanged(this.parentFilterInstance.getSelectedFilter()?.getModel()),this.appendChild(n.getGui()),this.showingUnderlyingFloatingFilter=!0})}return this.setupReadOnlyFloatingFilterElement(),Dr.resolve()}onColumnVisibleChanged(){this.setupUnderlyingFloatingFilterElement()}onColDefChanged(e){if(!e.column)return;const t=this.filterManager.getFloatingFilterCompDetails(e.column,this.params.showParentFilter);t&&this.underlyingFloatingFilter?.refresh?.(t.params)}onParentModelChanged(e,t){this.showingUnderlyingFloatingFilter?this.underlyingFloatingFilter?.onParentModelChanged(this.parentFilterInstance.getSelectedFilter()?.getModel(),t):this.updateDisplayedValue()}updateDisplayedValue(){const{eFloatingFilterText:e,parentFilterInstance:t}=this;if(!t||!e)return;const n=t.getSelectedFilter();if(!n){e.setValue(""),e.setDisplayed(!1);return}if(e.setDisplayed(!0),n.getModelAsString){const r=n.getModel();e.setValue(r==null?"":n.getModelAsString(r))}else e.setValue("")}onColChange(){this.showingUnderlyingFloatingFilter||this.updateDisplayedValue()}},Cre=class{constructor(){this.allSets=new Map}removeFromChildrenAfterGroup(e,t){const n=this.getSet(e);(n.fromChildrenAfterGroup??(n.fromChildrenAfterGroup=new Set)).add(t)}isRemoveFromAllLeafChildren(e,t){return!!this.allSets.get(e)?.fromAllLeafChildren?.has(t)}preventRemoveFromAllLeafChildren(e,t){this.allSets.get(e)?.fromAllLeafChildren?.delete(t)}removeFromAllLeafChildren(e,t){const n=this.getSet(e);(n.fromAllLeafChildren??(n.fromAllLeafChildren=new Set)).add(t)}getSet(e){let t=this.allSets.get(e);return t||(t={fromChildrenAfterGroup:null,fromAllLeafChildren:null},this.allSets.set(e,t)),t}getAllParents(){return Array.from(this.allSets.keys())}flush(){const e=this.allSets;for(const t of e.keys()){const n=e.get(t);if(n){const{fromChildrenAfterGroup:r,fromAllLeafChildren:i}=n,{childrenAfterGroup:o,allLeafChildren:a}=t;o&&r&&(TRe(o,r),t.updateHasChildren()),a&&i&&TRe(a,i)}}e.clear()}};function TRe(e,t){let n=0;for(let r=0,i=e.length;r<i;++r){const o=e[r];t.has(o)||(e[n++]=o)}e.length=n}function HYt(e){if(!e)return!1;const t=e.length;if(t<2)return!1;let n=!1;for(let r=1;r<t;r++)if(ERe(e[r-1],e[r])>0){n=!0;break}return n?(e.sort(ERe),!0):!1}function ERe(e,t){const n=e.sourceRowIndex,r=t.sourceRowIndex,i=n>=0,o=r>=0,a=i&&o,s=!i&&!o;return a?n-r:s?e.__objectId-t.__objectId:i?1:-1}var VYt=class extends dt{wireBeans(e){this.colModel=e.colModel,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc,this.selectionSvc=e.selectionSvc,this.showRowGroupCols=e.showRowGroupCols}execute(e){const t=this.createGroupingDetails(e),n=e.changedRowNodes;n?this.handleDeltaUpdate(t,n):this.shotgunResetEverything(t,!!e.afterColumnsChanged);const r=e.changedPath;this.positionLeafsAndGroups(r),this.orderGroups(t),this.selectionSvc?.updateSelectableAfterGrouping(r)}positionLeafsAndGroups(e){e.forEachChangedNodeDepthFirst(t=>{if(t.childrenAfterGroup){const n=[],r=[];let i;t.childrenAfterGroup.forEach(o=>{o.childrenAfterGroup?.length?o.key===""&&!i?i=o:r.push(o):n.push(o)}),i&&r.push(i),t.childrenAfterGroup=[...n,...r]}},!1)}createGroupingDetails(e){const{rowNode:t,changedPath:n,rowNodesOrderChanged:r}=e,i=this.rowGroupColsSvc?.columns;return{expandByDefault:this.gos.get("groupDefaultExpanded"),groupedCols:i,rootNode:t,pivotMode:this.colModel.isPivotMode(),groupedColCount:i?.length??0,rowNodesOrderChanged:!!r,changedPath:n,groupAllowUnbalanced:this.gos.get("groupAllowUnbalanced"),isGroupOpenByDefault:this.gos.getCallback("isGroupOpenByDefault"),initialGroupOrderComparator:this.gos.getCallback("initialGroupOrderComparator"),keyCreators:i?.map(a=>a.getColDef().keyCreator)??[]}}handleDeltaUpdate(e,{removals:t,updates:n,adds:r}){const i=new Cre;t.size&&this.removeNodes(t,e,i);for(const s of n)this.moveNodeInWrongPath(s,e,i);const o=e.changedPath;for(const s of r)this.insertOneNode(s,e),o.active&&o.addParentNode(s.parent);const a=i.getAllParents();i.flush(),this.removeEmptyGroups(a,e),e.rowNodesOrderChanged&&this.sortChildren(e)}sortChildren(e){e.changedPath.forEachChangedNodeDepthFirst(t=>{HYt(t.childrenAfterGroup)&&e.changedPath.addParentNode(t)},!1,!0)}orderGroups(e){const t=e.initialGroupOrderComparator;Ut(t)&&n(e.rootNode);function n(r){Ut(r.childrenAfterGroup)&&!r.leafGroup&&(r.childrenAfterGroup.sort((o,a)=>t({nodeA:o,nodeB:a})),r.childrenAfterGroup.forEach(o=>n(o)))}}getExistingPathForNode(e,t){const n=[];let r=e.parent;for(;r&&r!==t.rootNode;)n.push({key:r.key,rowGroupColumn:r.rowGroupColumn,field:r.field}),r=r.parent;return n.reverse(),n}moveNodeInWrongPath(e,t,n){t.changedPath.active&&t.changedPath.addParentNode(e.parent);const r=s=>s.key,i=this.getExistingPathForNode(e,t).map(r),o=this.getGroupInfo(e,t).map(r);yd(i,o)||this.moveNode(e,t,n)}moveNode(e,t,n){if(this.removeNodesFromParents([e],t,n),this.insertOneNode(e,t,n),e.setData(e.data),t.changedPath.active){const r=e.parent;t.changedPath.addParentNode(r)}}removeNodes(e,t,n){if(this.removeNodesFromParents(e,t,n),t.changedPath.active)for(const r of e)t.changedPath.addParentNode(r.parent)}forEachParentGroup(e,t,n){let r=t;for(;r&&r!==e.rootNode;)n(r),r=r.parent}removeNodesFromParents(e,t,n){const r=n==null,i=n||new Cre;for(const o of e)this.removeFromParent(o,i),this.forEachParentGroup(t,o.parent,a=>{i.removeFromAllLeafChildren(a,o)});r&&i.flush()}removeEmptyGroups(e,t){let n=!0;const r=i=>{const o=this.getChildrenMappedKey(i.key,i.rowGroupColumn),a=i.parent;return(a?.childrenMapped?!a.childrenMapped[o]:!0)?!1:!!i.group&&(i.childrenAfterGroup?.length??0)===0};for(;n;){n=!1;const i=new Cre;e.forEach(o=>{this.forEachParentGroup(t,o,a=>{r(a)&&(n=!0,this.removeFromParent(a,i),this.selectionSvc?.setNodesSelected({nodes:[a],newValue:!1,source:"rowGroupChanged"}))})}),i.flush()}}removeFromParent(e,t){e.parent&&(t?t.removeFromChildrenAfterGroup(e.parent,e):(Ou(e.parent.childrenAfterGroup,e),e.parent.updateHasChildren()));const n=this.getChildrenMappedKey(e.key,e.rowGroupColumn);e.parent?.childrenMapped&&delete e.parent.childrenMapped[n],e.setRowTop(null),e.setRowIndex(null)}addToParent(e,t){const n=this.getChildrenMappedKey(e.key,e.rowGroupColumn);t?.childrenMapped&&t.childrenMapped[n]!==e&&(t.childrenMapped[n]=e,t.childrenAfterGroup.push(e),Gye(t,this.beans,!0))}areGroupColsEqual(e,t){return e==null||t==null||e.pivotMode!==t.pivotMode?!1:yd(e.groupedCols,t.groupedCols)&&yd(e.keyCreators,t.keyCreators)}checkAllGroupDataAfterColsChanged(e){const t=n=>{n&&n.forEach(r=>{if(!r.group)return;const o={field:r.field,key:r.key,rowGroupColumn:r.rowGroupColumn,leafNode:r.allLeafChildren?.[0]};this.setGroupData(r,o),t(r.childrenAfterGroup)})};t(e.rootNode.childrenAfterGroup)}shotgunResetEverything(e,t){if(this.noChangeInGroupingColumns(e,t))return;this.selectionSvc?.filterFromSelection?.(o=>!o.group);const{groupedCols:n}=e,r=e.rootNode;r.leafGroup=n.length===0,r.childrenAfterGroup=[],r.childrenMapped={},r.updateHasChildren();const i=r.sibling;i&&(i.childrenAfterGroup=r.childrenAfterGroup,i.childrenMapped=r.childrenMapped),this.insertNodes(r.allLeafChildren,e)}noChangeInGroupingColumns(e,t){let n=!1;const r=this.showRowGroupCols.getShowRowGroupCols(),i=r?r.map(o=>o.getId()).join("-"):"";return t&&(n=this.areGroupColsEqual(e,this.oldGroupingDetails),this.oldGroupDisplayColIds!==i&&this.checkAllGroupDataAfterColsChanged(e)),this.oldGroupingDetails=e,this.oldGroupDisplayColIds=i,n}insertNodes(e,t){e.forEach(n=>{this.insertOneNode(n,t),t.changedPath.active&&t.changedPath.addParentNode(n.parent)})}insertOneNode(e,t,n){const r=this.getGroupInfo(e,t),i=this.findParentForNode(e,r,t,n);i.group||ut(184,{parentGroupData:i.data,childNodeData:e.data}),e.parent=i,e.level=r.length,i.childrenAfterGroup.push(e),i.updateHasChildren()}findParentForNode(e,t,n,r){let i=n.rootNode;return t.forEach((o,a)=>{i=this.getOrCreateNextNode(i,o,a,n),r?.isRemoveFromAllLeafChildren(i,e)?r?.preventRemoveFromAllLeafChildren(i,e):i.allLeafChildren.push(e)}),i}getOrCreateNextNode(e,t,n,r){const i=this.getChildrenMappedKey(t.key,t.rowGroupColumn);let o=e?.childrenMapped?.[i];return o||(o=this.createGroup(t,e,n,r),this.addToParent(o,e)),o}createGroup(e,t,n,r){const i=new vp(this.beans);return i.group=!0,i.field=e.field,i.rowGroupColumn=e.rowGroupColumn,this.setGroupData(i,e),i.key=e.key,i.id=this.createGroupId(i,t,n),i.level=n,i.leafGroup=n===r.groupedColCount-1,i.allLeafChildren=[],i.setAllChildrenCount(0),i.rowGroupIndex=n,i.childrenAfterGroup=[],i.childrenMapped={},i.updateHasChildren(),i.parent=t,this.setExpandedInitialValue(r,i),i}createGroupId(e,t,n){const r=(i,o)=>{if(!i.rowGroupColumn)return null;const a=o?r(o,o.parent):null;return`${a==null?"":a+"-"}${i.rowGroupColumn.getColId()}-${i.key}`};return pW+r(e,t)}setGroupData(e,t){const n=t.rowGroupColumn;n&&t.leafNode&&(e.groupValue=this.valueSvc.getValue(n,t.leafNode)),e.groupData={},this.showRowGroupCols.getShowRowGroupCols().forEach(i=>{const o=e.rowGroupColumn;o!==null&&i.isRowGroupDisplayed(o.getId())&&(e.groupData[i.getColId()]=this.valueSvc.getValue(o,t.leafNode))})}getChildrenMappedKey(e,t){return t?t.getId()+"-"+e:e}setExpandedInitialValue(e,t){if(e.pivotMode&&t.leafGroup){t.expanded=!1;return}const n=e.isGroupOpenByDefault;if(n){const r={rowNode:t,field:t.field,key:t.key,level:t.level,rowGroupColumn:t.rowGroupColumn};t.expanded=n(r)==!0;return}if(e.expandByDefault===-1){t.expanded=!0;return}t.expanded=t.level<e.expandByDefault}getGroupInfo(e,t){const n=[];return t.groupedCols.forEach(r=>{let i=this.valueSvc.getKeyForNode(r,e),o=i!=null&&i!=="";if((t.pivotMode||!t.groupAllowUnbalanced)&&!o&&(i="",o=!0),o){const s={key:i,field:r.getColDef().field,rowGroupColumn:r,leafNode:e};n.push(s)}}),n}};function GYt(e,t){e.rowGroupColsSvc?.setColumns(t,"api")}function $Yt(e,t){e.rowGroupColsSvc?.removeColumns(t,"api")}function UYt(e,t){e.rowGroupColsSvc?.addColumns(t,"api")}function XYt(e,t,n){e.rowGroupColsSvc?.moveColumn?.(t,n,"api")}function YYt(e){return e.rowGroupColsSvc?.columns??[]}var fit={moduleName:"SharedRowGrouping",version:wi,apiFunctions:{setRowGroupColumns:GYt,removeRowGroupColumns:$Yt,addRowGroupColumns:UYt,getRowGroupColumns:YYt,moveRowGroupColumn:XYt},dependsOn:[es,Xye,hit,Yye]},git={moduleName:"RowGrouping",version:wi,dynamicBeans:{groupStrategy:VYt},rowModels:["clientSide"],dependsOn:[fit,iit,FK]},KYt={moduleName:"RowGroupingPanel",version:wi,selectors:[FYt],icons:{pivotPanel:"pivot",rowGroupPanel:"group",panelDelimiter:"small-right",panelDelimiterRtl:"small-left"},dependsOn:[es,dM]},QYt={moduleName:"GroupFilter",version:wi,userComponents:{agGroupColumnFilter:qYt,agGroupColumnFloatingFilter:jYt},dependsOn:[es,xw]},ZYt=class extends dt{constructor(){super(...arguments),this.beanName="rowModel",this.firstRow=-1,this.lastRow=-1,this.rowCount=-1,this.rowNodesByIndex={}}ensureRowHeightsValid(e,t,n,r){return!1}postConstruct(){const e=this.beans;this.rowHeight=sp(e),this.addManagedEventListeners({viewportChanged:this.onViewportChanged.bind(this)}),this.addManagedPropertyListener("viewportDatasource",()=>this.updateDatasource()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=sp(e),this.updateRowHeights()})}start(){this.updateDatasource()}isLastRowIndexKnown(){return!0}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){const e=this.datasource;e&&(e.destroy?.(),this.beans.rowRenderer.datasourceChanged(),this.firstRow=-1,this.lastRow=-1)}updateDatasource(){const e=this.gos.get("viewportDatasource");e&&this.setViewportDatasource(e)}getPageSize(){return this.gos.get("viewportRowModelPageSize")}getBufferSize(){return this.gos.get("viewportRowModelBufferSize")}calculateFirstRow(e){const t=this.getBufferSize(),n=this.getPageSize(),r=e-t;return r<0?0:Math.floor(r/n)*n}calculateLastRow(e){if(e===-1)return e;const t=this.getBufferSize(),n=this.getPageSize(),r=e+t,i=Math.ceil(r/n)*n,o=this.rowCount-1;return Math.min(i,o)}onViewportChanged(e){const t=this.calculateFirstRow(e.firstRow),n=this.calculateLastRow(e.lastRow);(this.firstRow!==t||this.lastRow!==n)&&(this.firstRow=t,this.lastRow=n,this.purgeRowsNotInViewport(),this.datasource?.setViewportRange(this.firstRow,this.lastRow))}purgeRowsNotInViewport(){const e=this.rowNodesByIndex;Object.keys(e).forEach(t=>{const n=parseInt(t,10);if(n<this.firstRow||n>this.lastRow){if(this.isRowFocused(n))return;delete e[n]}})}isRowFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();return!t||t.rowPinned!=null?!1:t.rowIndex===e}setViewportDatasource(e){this.destroyDatasource(),this.datasource=e,this.rowCount=-1,e.init?e.init({setRowCount:this.setRowCount.bind(this),setRowData:this.setRowData.bind(this),getRow:this.getRow.bind(this)}):ut(226)}getType(){return"viewport"}getRow(e){return this.rowNodesByIndex[e]||(this.rowNodesByIndex[e]=this.createBlankRowNode(e)),this.rowNodesByIndex[e]}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n)}),t}getRowCount(){return this.rowCount===-1?0:this.rowCount}getRowIndexAtPixel(e){return this.rowHeight!==0?Math.floor(e/this.rowHeight):0}getRowBounds(e){const t=this.rowHeight;return{rowHeight:t,rowTop:t*e}}updateRowHeights(){const e=this.rowHeight;this.forEachNode(t=>{t.setRowHeight(e),t.setRowTop(e*t.rowIndex)}),this.eventSvc.dispatchEvent({type:"modelUpdated",newData:!1,newPage:!1,keepRenderedRows:!0,animate:!1})}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}isEmpty(){return this.rowCount>0}isRowsToRender(){return this.rowCount>0}getNodesInRangeForSelection(e,t){const n=e.rowIndex,r=t.rowIndex,i=n<this.firstRow||n>this.lastRow,o=r<this.firstRow||r>this.lastRow;if(i||o)return[];const a=[],s=n<=r?n:r,l=n<=r?r:n;for(let c=s;c<=l;c++)a.push(this.rowNodesByIndex[c]);return a}forEachNode(e){let t=0;Object.keys(this.rowNodesByIndex).forEach(n=>{const r=parseInt(n,10),i=this.rowNodesByIndex[r];e(i,t),t++})}setRowData(e){const t=this.rowNodesByIndex;for(const n of Object.keys(e)){const r=e[n],i=parseInt(n,10);if(i>=this.firstRow&&i<=this.lastRow){let o=t[i];Yi(o)&&(o=this.createBlankRowNode(i),t[i]=o),o.setDataAndId(r,i.toString())}}}createBlankRowNode(e){const t=new vp(this.beans),n=this.rowHeight;return t.setRowHeight(n),t.setRowTop(n*e),t.setRowIndex(e),t}setRowCount(e,t=!1){if(e===this.rowCount)return;this.rowCount=e;const n=this.eventSvc;n.dispatchEventOnce({type:"rowCountReady"}),n.dispatchEvent({type:"modelUpdated",newData:!1,newPage:!1,keepRenderedRows:t,animate:!1})}isRowPresent(e){return!!this.getRowNode(e.id)}},JYt={moduleName:"ViewportRowModel",version:wi,rowModels:["viewport"],beans:[ZYt],dependsOn:[es]};function eKt(e,t){e.clipboardSvc?.copyToClipboard(t)}function tKt(e,t){e.clipboardSvc?.cutToClipboard(t)}function nKt(e,t){e.clipboardSvc?.copySelectedRowsToClipboard(t)}function rKt(e,t){e.clipboardSvc?.copySelectedRangeToClipboard(t)}function iKt(e){e.clipboardSvc?.copyRangeDown()}function oKt(e){e.clipboardSvc?.pasteFromClipboard()}var xre="paste",wre="dragCopy",RRe="clipboard";function aKt(e,t=","){const n=[],r=o=>o==="\r"||o===`
`;let i=!1;if(e==="")return[[""]];for(let o=0,a=0,s=0;s<e.length;s++){const l=e[s-1],c=e[s],u=e[s+1],d=()=>{n[o]||(n[o]=[]),n[o][a]||(n[o][a]="")};if(d(),c==='"'&&(i?u==='"'?(n[o][a]+='"',s++):i=!1:(l===void 0||l===t||r(l))&&(i=!0)),!i&&c!=='"'){if(c===t){a++,d();continue}else if(r(c)){a=0,o++,d(),c==="\r"&&u===`
`&&s++;continue}}n[o][a]+=c}return n}var sKt=class extends dt{constructor(){super(...arguments),this.beanName="clipboardSvc",this.clientSideRowModel=null,this.gridCtrl=null,this.lastPasteOperationTime=0,this.navigatorApiFailed=!1}postConstruct(){const{gos:e,rowModel:t,ctrlsSvc:n}=this.beans;oa(e)&&(this.clientSideRowModel=t),n.whenReady(this,r=>{this.gridCtrl=r.gridCtrl})}destroy(){super.destroy(),this.clientSideRowModel=null,this.gridCtrl=null}pasteFromClipboard(){!this.gos.get("suppressClipboardApi")&&!this.navigatorApiFailed&&navigator.clipboard&&navigator.clipboard.readText?navigator.clipboard.readText().then(this.processClipboardData.bind(this)).catch(t=>{ut(40,{e:t,method:"readText"}),this.navigatorApiFailed=!0,this.pasteFromClipboardLegacy()}):this.pasteFromClipboardLegacy()}pasteFromClipboardLegacy(){let e=!1;const t=n=>{const r=Date.now();r-this.lastPasteOperationTime<50&&(e=!0,n.preventDefault()),this.lastPasteOperationTime=r};this.executeOnTempElement(n=>{n.addEventListener("paste",t),n.focus({preventScroll:!0})},n=>{const r=n.value;e?this.refocusLastFocusedCell():this.processClipboardData(r),n.removeEventListener("paste",t)})}refocusLastFocusedCell(){const{focusSvc:e}=this.beans,t=e.getFocusedCell();t&&e.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0})}getClipboardDelimiter(){const e=this.gos.get("clipboardDelimiter");return Ut(e)?e:"	"}processClipboardData(e){if(e==null)return;let t=aKt(e,this.getClipboardDelimiter());const n=this.gos.getCallback("processDataFromClipboard");if(n&&(t=n({data:t})),t==null)return;this.gos.get("suppressLastEmptyLineOnPaste")&&this.removeLastLineIfBlank(t);const{rangeSvc:r}=this.beans,i=(o,a,s,l)=>{r?.isMoreThanOneCell()&&!this.hasOnlyOneValueToPaste(t)?this.pasteIntoActiveRange(r,t,o,a,l):this.pasteStartingFromFocusedCell(t,o,a,s,l)};this.doPasteOperation(i)}doPasteOperation(e){const t="clipboard",{eventSvc:n,focusSvc:r,rowRenderer:i,gos:o}=this.beans;n.dispatchEvent({type:"pasteStart",source:t});const{clientSideRowModel:a}=this,s=a?.rootNode,l=s&&new Mz(o.get("aggregateOnlyChangedColumns"),s),c={},u=[],d=r.getFocusedCell();e(c,u,d,l);const p=[...u];l&&(a.doAggregate(l),l.forEachChangedNodeDepthFirst(h=>{p.push(h)})),i.refreshCells({rowNodes:p}),this.dispatchFlashCells(c),this.fireRowChanged(u),this.refocusLastFocusedCell(),n.dispatchEvent({type:"pasteEnd",source:t})}pasteIntoActiveRange(e,t,n,r,i){const o=this.getRangeSize(e)%t.length!=0;let a=0,s=0;const l=(c,u,d,p)=>{if(p-a>=t.length){if(o)return;a+=s,s=0}const g=t[p-a];r.push(u);const m=this.gos.getCallback("processCellFromClipboard");d.forEach((v,y)=>{if(!v.isCellEditable(u)||v.isSuppressPaste(u))return;y>=g.length&&(y=y%g.length);const M=this.processCell(u,v,g[y],wre,m,!0);u.setDataValue(v,M,xre),i&&i.addParentNode(u.parent,[v]);const{rowIndex:C,rowPinned:x}=c,w=EC({rowIndex:C,column:v,rowPinned:x});n[w]=!0}),s++};this.iterateActiveRanges(!1,l)}getDisplayedColumnsStartingAt(e){let t=e;const n=[],r=this.beans.visibleCols;for(;t!=null;)n.push(t),t=r.getColAfter(t);return n}pasteStartingFromFocusedCell(e,t,n,r,i){if(!r)return;const o={rowIndex:r.rowIndex,rowPinned:r.rowPinned},a=this.getDisplayedColumnsStartingAt(r.column);this.isPasteSingleValueIntoRange(e)?this.pasteSingleValueIntoRange(e,n,t,i):this.pasteMultipleValues(e,o,n,a,t,RRe,i)}isPasteSingleValueIntoRange(e){const t=this.beans.rangeSvc;return this.hasOnlyOneValueToPaste(e)&&!!t&&!t.isEmpty()}pasteSingleValueIntoRange(e,t,n,r){const i=e[0][0],o=(a,s,l)=>{t.push(s),l.forEach(c=>this.updateCellValue(s,c,i,n,RRe,r))};this.iterateActiveRanges(!1,o)}hasOnlyOneValueToPaste(e){return e.length===1&&e[0].length===1}copyRangeDown(){const{rangeSvc:e,gos:t,valueSvc:n}=this.beans;if(!e||e.isEmpty())return;const r=[],i=(o,a,s,l)=>{const c=t.getCallback("processCellForClipboard"),u=t.getCallback("processCellFromClipboard"),d=(p,h,g)=>{r.length?(a.push(h),g.forEach((m,v)=>{if(!m.isCellEditable(h)||m.isSuppressPaste(h))return;const y=this.processCell(h,m,r[v],wre,u,!0);h.setDataValue(m,y,xre),l&&l.addParentNode(h.parent,[m]);const{rowIndex:M,rowPinned:C}=p,x=EC({rowIndex:M,column:m,rowPinned:C});o[x]=!0})):g.forEach(m=>{const v=this.processCell(h,m,n.getValue(m,h),wre,c,!1,!0);r.push(v)})};this.iterateActiveRanges(!0,d)};this.doPasteOperation(i)}removeLastLineIfBlank(e){const t=zr(e);if(t&&t.length===1&&t[0]===""){if(e.length===1)return;Ou(e,t)}}fireRowChanged(e){this.gos.get("editType")==="fullRow"&&e.forEach(t=>{this.eventSvc.dispatchEvent({type:"rowValueChanged",node:t,data:t.data,rowIndex:t.rowIndex,rowPinned:t.rowPinned})})}pasteMultipleValues(e,t,n,r,i,o,a){let s=t;const l=this.beans,{gos:c}=l,u=this.clientSideRowModel!=null&&!c.get("enableGroupEdit")&&!c.get("treeData"),d=()=>{for(;;){if(!s)return null;const p=lp(l,s);if(s=Gp(l,{rowPinned:s.rowPinned,rowIndex:s.rowIndex}),p==null)return null;if(!(p.detail||p.footer||u&&p.group))return p}};e.forEach(p=>{const h=d();h&&(p.forEach((g,m)=>this.updateCellValue(h,r[m],g,i,o,a)),n.push(h))})}updateCellValue(e,t,n,r,i,o){if(!e||!t||!t.isCellEditable(e)||t.isSuppressPaste(e))return;const a=this.processCell(e,t,n,i,this.gos.getCallback("processCellFromClipboard"),!0);e.setDataValue(t,a,xre);const{rowIndex:s,rowPinned:l}=e,c=EC({rowIndex:s,column:t,rowPinned:l});r[c]=!0,o&&o.addParentNode(e.parent,[t])}copyToClipboard(e={}){this.copyOrCutToClipboard(e)}cutToClipboard(e={},t="api"){this.gos.get("suppressCutToClipboard")||(this.eventSvc.dispatchEvent({type:"cutStart",source:t}),this.copyOrCutToClipboard(e,!0),this.eventSvc.dispatchEvent({type:"cutEnd",source:t}))}copyOrCutToClipboard(e,t){let{includeHeaders:n,includeGroupHeaders:r}=e;const{gos:i,focusSvc:o}=this.beans;n==null&&(n=i.get("copyHeadersToClipboard")),r==null&&(r=i.get("copyGroupHeadersToClipboard"));const a={includeHeaders:n,includeGroupHeaders:r},s=i.get("rowSelection"),l=i.get("cellSelection");let c=null;this.shouldCopyCells(l,s)?(this.copySelectedRangeToClipboard(a),c=0):this.shouldCopyRows(s)?(this.copySelectedRowsToClipboard(a),c=1):o.isAnyCellFocused()&&(this.copyFocusedCellToClipboard(a),c=2),t&&c!==null&&this.clearCellsAfterCopy(c)}shouldCopyCells(e,t){const{rangeSvc:n,selectionSvc:r,gos:i}=this.beans;if(!n||n.isEmpty())return!1;if(e)return!(typeof t=="object"&&t.copySelectedRows&&!r?.isEmpty());{const o=i.get("suppressCopySingleCellRanges");return!(!n.isMoreThanOneCell()&&o)}}shouldCopyRows(e){const{selectionSvc:t,gos:n}=this.beans;return t?.isEmpty()??!0?!1:e&&typeof e!="string"?e.copySelectedRows??!1:!n.get("suppressCopyRowsToClipboard")}clearCellsAfterCopy(e){const t=this.beans,{rangeSvc:n,focusSvc:r,eventSvc:i}=t;if(i.dispatchEvent({type:"keyShortcutChangedCellStart"}),e===0)n.clearCellRangeCellValues({cellEventSource:"clipboardSvc"});else if(e===1)this.clearSelectedRows();else{const o=r.getFocusedCell();if(o==null)return;const a=lp(t,o);a&&this.clearCellValue(a,o.column)}i.dispatchEvent({type:"keyShortcutChangedCellEnd"})}clearSelectedRows(){const{selectionSvc:e,visibleCols:t}=this.beans,n=e?.getSelectedNodes()??[],r=t.allCols;for(const i of n)for(const o of r)this.clearCellValue(i,o)}clearCellValue(e,t){if(!t.isCellEditable(e))return;const n=this.beans.valueSvc.getDeleteValue(t,e);e.setDataValue(t,n,"clipboardSvc")}iterateActiveRanges(e,t,n){const r=this.beans.rangeSvc;if(!r||r.isEmpty())return;const i=r.getCellRanges();e?this.iterateActiveRange(i[0],t,n,!0):i.forEach((o,a)=>this.iterateActiveRange(o,t,n,a===i.length-1))}iterateActiveRange(e,t,n,r){const{beans:i}=this,{rangeSvc:o}=i;if(!o)return;let a=o.getRangeStartRow(e);const s=o.getRangeEndRow(e);n&&e.columns&&n(e.columns);let l=0,c=!1;for(;!c&&a!=null;){const u=lp(i,a);c=$c(a,s),t(a,u,e.columns,l++,c&&r),a=Gp(i,a)}}copySelectedRangeToClipboard(e={}){const t=this.beans.rangeSvc;if(!t||t.isEmpty())return;const n=t.areAllRangesAbleToMerge(),{data:r,cellsToFlash:i}=n?this.buildDataFromMergedRanges(t,e):this.buildDataFromRanges(t,e);this.copyDataToClipboard(r),this.dispatchFlashCells(i)}buildDataFromMergedRanges(e,t){const n=new Set,r=e.getCellRanges(),i=new Map,o=[],a={};r.forEach(u=>{u.columns.forEach(h=>n.add(h));const{rowPositions:d,cellsToFlash:p}=this.getRangeRowPositionsAndCellsToFlash(e,u);d.forEach(h=>{const g=`${h.rowIndex}-${h.rowPinned||"null"}`;i.get(g)||(i.set(g,!0),o.push(h))}),Object.assign(a,p)});const s=this.beans.visibleCols.allCols,l=Array.from(n);return l.sort((u,d)=>{const p=s.indexOf(u),h=s.indexOf(d);return p-h}),{data:this.buildExportParams({columns:l,rowPositions:o,includeHeaders:t.includeHeaders,includeGroupHeaders:t.includeGroupHeaders}),cellsToFlash:a}}buildDataFromRanges(e,t){const n=e.getCellRanges(),r=[],i={};return n.forEach(o=>{const{rowPositions:a,cellsToFlash:s}=this.getRangeRowPositionsAndCellsToFlash(e,o);Object.assign(i,s),r.push(this.buildExportParams({columns:o.columns,rowPositions:a,includeHeaders:t.includeHeaders,includeGroupHeaders:t.includeGroupHeaders}))}),{data:r.join(`
`),cellsToFlash:i}}getRangeRowPositionsAndCellsToFlash(e,t){const n=[],r={},i=e.getRangeStartRow(t),o=e.getRangeEndRow(t);let a=i;for(;a&&(n.push(a),t.columns.forEach(s=>{const{rowIndex:l,rowPinned:c}=a,u=EC({rowIndex:l,column:s,rowPinned:c});r[u]=!0}),!$c(a,o));)a=Gp(this.beans,a);return{rowPositions:n,cellsToFlash:r}}getCellsToFlashFromRowNodes(e){const t=this.beans.visibleCols.allCols,n={};for(let r=0;r<e.length;r++){const{level:i,rowIndex:o,rowPinned:a,sibling:s}=e[r],l=i===-1?s.rowIndex:o;if(l!=null)for(let c=0;c<t.length;c++){const u=t[c],d=EC({rowIndex:l,column:u,rowPinned:a});n[d]=!0}}return n}copyFocusedCellToClipboard(e={}){let t=this.beans.focusSvc.getFocusedCell();if(t==null)return;t=this.beans.rowSpanSvc?.getCellStart(t)??t;const n=EC(t),r={rowPinned:t.rowPinned,rowIndex:t.rowIndex},i=t.column,o=this.buildExportParams({columns:[i],rowPositions:[r],includeHeaders:e.includeHeaders,includeGroupHeaders:e.includeGroupHeaders});this.copyDataToClipboard(o),this.dispatchFlashCells({[n]:!0})}copySelectedRowsToClipboard(e={}){const{columnKeys:t,includeHeaders:n,includeGroupHeaders:r}=e,i=this.buildExportParams({columns:t,includeHeaders:n,includeGroupHeaders:r});this.copyDataToClipboard(i);const o=this.beans.selectionSvc?.getSelectedNodes()||[];this.dispatchFlashCells(this.getCellsToFlashFromRowNodes(o))}buildExportParams(e){const{columns:t,rowPositions:n,includeHeaders:r=!1,includeGroupHeaders:i=!1}=e,{gos:o,csvCreator:a}=this.beans,s=({node:c,column:u})=>{const{value:d,valueFormatted:p}=this.beans.valueSvc.getValueForDisplay(u,c,!0);return p??d??""},l={columnKeys:t,rowPositions:n,skipColumnHeaders:!r,skipColumnGroupHeaders:!i,suppressQuotes:!0,columnSeparator:this.getClipboardDelimiter(),onlySelected:!n,processCellCallback:o.getCallback("processCellForClipboard"),processRowGroupCallback:s,processHeaderCallback:o.getCallback("processHeaderForClipboard"),processGroupHeaderCallback:o.getCallback("processGroupHeaderForClipboard")};return a.getDataAsCsv(l,!0)}dispatchFlashCells(e){window.setTimeout(()=>{this.eventSvc.dispatchEvent({type:"flashCells",cells:e})},0)}processCell(e,t,n,r,i,o,a){const s=this.beans.valueSvc;return i?i({column:t,node:e,value:n,type:r,formatValue:c=>s.formatValue(t,e??null,c)??c,parseValue:c=>s.parseValue(t,e??null,c,s.getValue(t,e))}):o&&t.getColDef().useValueParserForImport!==!1?s.parseValue(t,e??null,n,s.getValue(t,e)):a&&t.getColDef().useValueFormatterForExport!==!1?s.formatValue(t,e??null,n)??n:n}copyDataToClipboard(e){const t=this.gos.getCallback("sendToClipboard");if(t){t({data:e});return}if(!this.gos.get("suppressClipboardApi")&&navigator.clipboard){navigator.clipboard.writeText(e).catch(r=>{ut(40,{e:r,method:"writeText"}),this.copyDataToClipboardLegacy(e)});return}this.copyDataToClipboardLegacy(e)}copyDataToClipboardLegacy(e){this.executeOnTempElement(t=>{const n=bl(this.beans),r=Gi(this.beans);t.value=e||" ",t.select(),t.focus({preventScroll:!0}),n.execCommand("copy")||ut(41),r!=null&&r.focus!=null&&r.focus({preventScroll:!0})})}executeOnTempElement(e,t){if(!this.gridCtrl)return;const n=bl(this.beans),r=n.createElement("textarea"),i=r.style;i.width="1px",i.height="1px";const o=n.documentElement;i.top=o.scrollTop+"px",i.left=o.scrollLeft+"px",i.position="absolute",i.opacity="0";const a=this.gridCtrl.getGui();a.appendChild(r);try{e(r)}catch{ut(42)}t?window.setTimeout(()=>{t(r),a.removeChild(r)},100):a.removeChild(r)}getRangeSize(e){const t=e.getCellRanges();let n=0,r=0;return t.length>0&&(n=e.getRangeStartRow(t[0]).rowIndex,r=e.getRangeEndRow(t[0]).rowIndex),n-r+1}},lKt={moduleName:"Clipboard",version:wi,beans:[sKt],apiFunctions:{copyToClipboard:eKt,cutToClipboard:tKt,copySelectedRowsToClipboard:nKt,copySelectedRangeToClipboard:rKt,copySelectedRangeDown:iKt,pasteFromClipboard:oKt},dependsOn:[es,trt,RK,nrt]},cKt='.ag-row-number-cell{background-color:var(--ag-header-background-color);border:none;color:var(--ag-header-text-color);font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}:where(.ag-ltr) .ag-row-number-cell{text-align:right}:where(.ag-rtl) .ag-row-number-cell{text-align:left}.ag-row-numbers-resizer{bottom:-2px;cursor:ns-resize;height:4px;position:absolute;width:100%}:where(.ag-ltr) .ag-row-numbers-resizer{left:0}:where(.ag-rtl) .ag-row-numbers-resizer{right:0}:where(.ag-row-number-header.ag-row-number-selection-enabled){cursor:cell}.ag-row-number-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-row-number-range-selected{background-color:var(--ag-row-numbers-selected-color)}:where(.ag-ltr){.ag-row-number-header,:where(.ag-cell.ag-row-number-cell):not(.ag-cell-last-left-pinned){border-right:var(--ag-pinned-column-border)}:where(.ag-cell.ag-row-number-cell.ag-row-number-selection-enabled){cursor:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxLjUiPjxwYXRoIGQ9Ik0zLjQ0NSA4LjkxMVY3LjQwOUg5Ljc1VjYuMDE0bDIuNTM1IDIuMTQ2LTIuNTM1IDIuMTQ2VjguOTExeiIgc3R5bGU9InN0cm9rZTojZmZmO3N0cm9rZS13aWR0aDouNDFweCIgdHJhbnNmb3JtPSJtYXRyaXgoMS41Nzg0IDAgMCAxLjg2NDI5IC00LjQxMyAtNy4yMTIpIi8+PC9zdmc+"),auto}}:where(.ag-rtl){.ag-row-number-header,:where(.ag-cell.ag-row-number-cell):not(.ag-cell-first-right-pinned){border-left:var(--ag-pinned-column-border)}:where(.ag-cell.ag-row-number-cell.ag-row-number-selection-enabled){cursor:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxLjUiPjxwYXRoIGQ9Ik01Ljk3OSA4LjkxMXYxLjM5NUwzLjQ0NSA4LjE2bDIuNTM0LTIuMTQ2djEuMzk1aDYuMzA2djEuNTAyeiIgc3R5bGU9InN0cm9rZTojZmZmO3N0cm9rZS13aWR0aDouNDFweCIgdHJhbnNmb3JtPSJtYXRyaXgoMS41Nzg0IDAgMCAxLjg2NDI5IC00LjQxMyAtNy4yMTIpIi8+PC9zdmc+"),auto}}',uKt={tag:"div",cls:"ag-row-numbers-resizer"},dKt=class extends Gt{constructor(e){super(uKt),this.cellCtrl=e,this.initialYPosition=-1,this.dragging=!1}postConstruct(){const{beans:e,cellCtrl:t}=this,{dragSvc:n,environment:r}=e;this.defaultRowHeight=r.getDefaultRowHeight(),n.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:this.onDragging.bind(this),onDragStop:this.onDragStop.bind(this),onDragCancel:this.onDragCancel.bind(this)});const i=t.getRowPosition();this.node=lp(this.beans,i)}onDragStart(e){this.node&&(this.dragging=!0,this.initialHeight=this.node.rowHeight,this.beans.eventSvc.dispatchEvent({type:"rowResizeStarted",node:this.node,event:e,rowHeight:this.initialHeight}))}onDragging(e){const{clientY:t}=e;if(this.initialYPosition===-1||!this.dragging){this.initialYPosition=t;return}const{beans:n,initialHeight:r,initialYPosition:i,defaultRowHeight:o,node:a}=this;if(r==null)return;const s=a?.rowHeight,l=Math.max(r-(i-t),o);if(s===l)return;a?.setRowHeight(l);const{rowRenderer:c,rowModel:u,pinnedRowModel:d}=n,p=!!a?.rowPinned;p&&c.redraw({afterScroll:!0}),(!p||d?.isManual())&&u.onRowHeightChanged({animate:!1})}onDragStop(e){this.beans.eventSvc.dispatchEvent({type:"rowResizeEnded",node:this.node,event:e,rowHeight:this.node?.rowHeight}),this.clearDragDetails()}onDragCancel(){this.clearDragDetails()}clearDragDetails(){this.initialYPosition=-1,this.initialHeight=null,this.dragging=!1}destroy(){this.clearDragDetails(),this.node=void 0,super.destroy()}};function mit(e){const t=e.get("rowNumbers");return!(!t||typeof t!="object"||!t.enableRowResizer)}var pKt=class{constructor(e,t){this.beans=e,this.cellCtrl=t}refreshRowResizer(){!mit(this.beans.gos)||!this.isRowResizeSupported(this.cellCtrl.rowNode)?this.removeRowResizerFromCellComp():this.addResizerToCellComp()}isRowResizeSupported(e){const{pinnedRowModel:t,rowModel:n,visibleCols:r}=this.beans,i=!!n.onRowHeightChanged;return r.autoHeightCols.length?(ut(276),!1):e.rowPinned!=null?t?.isManual()?i:!0:i}addResizerToCellComp(){const{beans:e,cellCtrl:t}=this,{eGui:n}=t;let{rowResizer:r}=this;if(!r){if(r=e.registry.createDynamicBean("rowNumberRowResizer",!1,t),!r)return;this.rowResizer=e.context.createBean(r)}n.appendChild(r.getGui())}removeRowResizerFromCellComp(){if(!this.rowResizer)return;const{eGui:e}=this.cellCtrl;e.removeChild(this.rowResizer.getGui()),this.rowResizer=this.beans.context.destroyBean(this.rowResizer)}destroy(){this.removeRowResizerFromCellComp()}},hKt=class extends dt{constructor(){super(...arguments),this.beanName="rowNumbersSvc",this.isIntegratedWithSelection=!1}postConstruct(){const e=Ml(this,this.refreshCells.bind(this,!1,!0),10);this.addManagedEventListeners({modelUpdated:e,rangeSelectionChanged:()=>this.refreshCells(!0),pinnedRowsChanged:e}),this.addManagedPropertyListeners(["rowNumbers","cellSelection"],t=>{this.refreshSelectionIntegration(),this.updateColumns(t)}),this.refreshSelectionIntegration()}addColumns(e){this.columns!=null&&(e.list=this.columns.list.concat(e.list),e.tree=this.columns.tree.concat(e.tree),iye(e))}createColumns(e,t){if(!this.gos.get("rowNumbers"))return;const n=()=>{zb(this.beans,this.columns?.tree),this.columns=null},r=e.treeDepth,o=(this.columns?.treeDepth??-1)==r,a=this.generateRowNumberCols();if(rye(a,this.columns?.list??[])&&o)return;n();const{colGroupSvc:l}=this.beans,c=l?.findDepth(e.tree)??0,u=l?.balanceTreeForAutoCols(a,c)??[];this.columns={list:a,tree:u,treeDepth:c,map:{}},t(p=>{if(!p)return null;const h=p.filter(g=>!p0(g));return[...a,...h]})}handleMouseDownOnCell(e,t){return!this.isIntegratedWithSelection||t.target.classList.contains("ag-row-numbers-resizer")?!1:(t.shiftKey||setTimeout(()=>{this.focusFirstRenderedCellAtRowPosition(e)}),!0)}updateColumns(e){const t=xx(e.source);this.refreshSelectionIntegration(),this.columns?.list.forEach(n=>{const r=this.createRowNumbersColDef();n.setColDef(r,null,t),m0(this.beans,{state:[{colId:n.getColId(),...r}]},t)})}getColumn(){return this.columns?.list.find(p0)??null}getColumns(){return this.columns?.list??null}setupForHeader(e){const{column:t,eGridHeader:n}=e.params;p0(t)&&(Es(n,"Row Number"),this.addManagedElementListeners(n,{click:this.onHeaderClick.bind(this),keydown:this.onHeaderKeyDown.bind(this),focus:this.onHeaderFocus.bind(this)}))}createRowNumbersRowResizerFeature(e,t){if(mit(this.gos))return new pKt(e,t)}refreshSelectionIntegration(){const{beans:e}=this,{gos:t,rangeSvc:n}=e,r=t.get("cellSelection");this.refreshRowNumberOverrides(),this.isIntegratedWithSelection=!!n&&!!r&&!this.isSuppressCellSelectionIntegration}refreshRowNumberOverrides(){const e=this.gos.get("rowNumbers");if(this.rowNumberOverrides={},!e||typeof e!="object")return;e.suppressCellSelectionIntegration&&(this.isSuppressCellSelectionIntegration=!0);const t=["contextMenuItems","context","onCellClicked","onCellContextMenu","onCellDoubleClicked","headerTooltip","headerStyle","headerComponent","headerComponentParams","suppressHeaderKeyboardEvent","tooltipField","tooltipValueGetter","tooltipComponent","tooltipComponentParams","valueGetter","valueFormatter","width","maxWidth","minWidth","resizable"];for(const n of t)e[n]!=null&&(this.rowNumberOverrides[n]=e[n])}onHeaderFocus(){this.beans.ariaAnnounce?.announceValue("Press Space to select all cells","ariaSelectAllCells")}onHeaderKeyDown(e){!this.isIntegratedWithSelection||e.key!==Qe.SPACE||uhe(this.beans)}onHeaderClick(){this.isIntegratedWithSelection&&uhe(this.beans)}refreshCells(e,t){const n=this.getColumn();if(n){if(t){const r=this.beans.autoWidthCalc?.getPreferredWidthForElements([this.createDummyElement(n)],2);r!=null&&this.beans.colResize?.setColumnWidths([{key:n,newWidth:r}],!1,!0,"rowNumbersService")}this.beans.rowRenderer.refreshCells({columns:[n],force:e})}}createDummyElement(e){const t=Nr({tag:"div",cls:"ag-cell-value ag-cell"});let n=String(this.beans.rowModel.getRowCount()+1);if(typeof this.rowNumberOverrides.valueFormatter=="function"){const r=Vn(this.beans.gos,{data:void 0,value:n,node:null,column:e,colDef:e.colDef});n=this.rowNumberOverrides.valueFormatter(r)}return t.textContent=n,t}createRowNumbersColDef(){const{gos:e,contextMenuSvc:t}=this.beans,n=e.get("enableRtl");return{minWidth:60,width:60,resizable:!1,valueGetter:this.valueGetter,contextMenuItems:this.isIntegratedWithSelection||!t?void 0:()=>[],...this.rowNumberOverrides,colId:tye,chartDataType:"excluded",suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPinned:!0,pinned:n?"right":"left",lockPosition:n?"right":"left",editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,suppressSizeToFit:!0,suppressHeaderContextMenu:!0,suppressNavigable:!0,headerClass:this.getHeaderClass(),cellClass:this.getCellClass.bind(this),cellAriaRole:"rowheader"}}valueGetter(e){const t=e.node;if(t?.rowPinned&&t.pinnedSibling){const{rowIndex:n}=t.pinnedSibling;return`${n==null?"-":n+1}`}return String((t?.rowIndex||0)+1)}getHeaderClass(){const e=["ag-row-number-header"];return this.isIntegratedWithSelection&&e.push("ag-row-number-selection-enabled"),e}getCellClass(e){const{beans:t}=this,{rangeSvc:n,gos:r}=t,{node:i}=e,o=["ag-row-number-cell"],a=r.get("cellSelection");if(!n||!a)return o;this.isIntegratedWithSelection&&o.push("ag-row-number-selection-enabled");const s=n.getCellRanges();if(!s.length)return o;const l=this.beans.visibleCols.allCols.length-1,c=typeof a=="object"&&a.enableHeaderHighlight;for(const u of s)n.isRowInRange(i.rowIndex,i.rowPinned,u)&&(c&&o.push("ag-row-number-range-highlight"),u.columns.length===l&&o.push("ag-row-number-range-selected"));return o}generateRowNumberCols(){const{gos:e}=this;if(!e.get("rowNumbers"))return[];const t=this.createRowNumbersColDef(),n=t.colId;e.validateColDef(t,n,!0);const r=new h3(t,null,n,!1);return this.createBean(r),[r]}focusFirstRenderedCellAtRowPosition(e){const{beans:t,gos:n}=this,{visibleCols:r,colViewport:i}=t,o=n.get("enableRtl")?r.rightCols:r.leftCols;let a;if(o.length==1){const u=lp(t,e);if(!u)return;a=i.getColsWithinViewport(u)}else a=o;const s=a.find(u=>!p0(u));if(!s)return;const{rowPinned:l,rowIndex:c}=e;t.focusSvc.setFocusedCell({rowIndex:c,rowPinned:l,column:s,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}destroy(){zb(this.beans,this.columns?.tree),this.rowNumberOverrides=null,super.destroy()}},fKt={moduleName:"RowNumbers",version:wi,beans:[hKt],dynamicBeans:{rowNumberRowResizer:dKt},dependsOn:[es,ort,v3],css:[cKt]},gKt={tag:"div",cls:"ag-filter-toolpanel-search",role:"presentation",children:[{tag:"div",ref:"eExpand",cls:"ag-filter-toolpanel-expand"},{tag:"ag-input-text-field",ref:"eFilterTextField",cls:"ag-filter-toolpanel-search-input"}]},mKt=class extends Gt{constructor(){super(...arguments),this.eExpand=at,this.eFilterTextField=at}postConstruct(){this.setTemplate(gKt,[Vf]);const e=this.getLocaleTextFunc();this.eFilterTextField.setAutoComplete(!1).setInputAriaLabel(e("ariaFilterColumnsInput","Filter Columns Input")).onValueChange(this.onSearchTextChanged.bind(this)),this.createExpandIcons(),this.setExpandState(0),this.addManagedElementListeners(this.eExpand,{click:this.onExpandClicked.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)})}init(e){this.params=e,this.beans.colModel.ready&&this.showOrHideOptions()}createExpandIcons(){const{eExpand:e,beans:t}=this;e.appendChild(this.eExpandChecked=er("accordionOpen",t)),e.appendChild(this.eExpandUnchecked=er("accordionClosed",t)),e.appendChild(this.eExpandIndeterminate=er("accordionIndeterminate",t))}showOrHideOptions(){const{params:e,eFilterTextField:t}=this,n=!e.suppressFilterSearch,r=!e.suppressExpandAll,i=this.getLocaleTextFunc();t.setInputPlaceholder(i("searchOoo","Search..."));const o=s=>s.getOriginalParent()&&s.isFilterAllowed(),a=this.beans.colModel.getCols().some(o);Nn(t.getGui(),n),Nn(this.eExpand,r&&a)}onSearchTextChanged(){this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=Ml(this,()=>this.dispatchLocalEvent({type:"searchChanged",searchText:this.eFilterTextField.getValue()}),300)),this.onSearchTextChangedDebounced()}onExpandClicked(){const e=this.currentExpandState===0?{type:"collapseAll"}:{type:"expandAll"};this.dispatchLocalEvent(e)}setExpandState(e){this.currentExpandState=e,Nn(this.eExpandChecked,e===0),Nn(this.eExpandUnchecked,e===1),Nn(this.eExpandIndeterminate,e===2)}},vKt={selector:"AG-FILTERS-TOOL-PANEL-HEADER",component:mKt},bKt={tag:"div",cls:"ag-filter-toolpanel-instance",children:[{tag:"div",ref:"eFilterToolPanelHeader",cls:"ag-filter-toolpanel-header ag-filter-toolpanel-instance-header",role:"button",attrs:{"aria-expanded":"false"},children:[{tag:"div",ref:"eExpand",cls:"ag-filter-toolpanel-expand"},{tag:"span",ref:"eFilterName",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilterIcon",cls:"ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon",attrs:{"aria-hidden":"true"}}]},{tag:"div",ref:"agFilterToolPanelBody",cls:"ag-filter-toolpanel-instance-body ag-filter"}]},vit=class extends Gt{constructor(e,t){super(bKt),this.hideHeader=e,this.expandedCallback=t,this.eFilterToolPanelHeader=at,this.eFilterName=at,this.agFilterToolPanelBody=at,this.eFilterIcon=at,this.eExpand=at,this.expanded=!1}postConstruct(){const{beans:e,eExpand:t}=this,n=er("accordionOpen",e);this.eExpandChecked=n;const r=er("accordionClosed",e);this.eExpandUnchecked=r,t.appendChild(n),t.appendChild(r)}setColumn(e){this.column=e;const{beans:t,eFilterToolPanelHeader:n,eFilterIcon:r,eExpandChecked:i,hideHeader:o}=this;this.eFilterName.innerText=t.colNames.getDisplayNameForColumn(e,"filterToolPanel",!1)||"",this.addManagedListeners(n,{click:this.toggleExpanded.bind(this),keydown:this.onKeyDown.bind(this)}),this.addManagedEventListeners({filterOpened:this.onFilterOpened.bind(this)}),this.addInIcon("filterActive",r,e),Nn(r,this.isFilterActive(),{skipAriaHidden:!0}),Nn(i,!1),o?(Nn(n,!1),n.removeAttribute("tabindex")):n.setAttribute("tabindex","0"),this.addManagedListeners(e,{filterChanged:this.onFilterChanged.bind(this)})}onKeyDown(e){const{key:t}=e,{ENTER:n,SPACE:r,LEFT:i,RIGHT:o}=Qe;t!==n&&t!==r&&t!==i&&t!==o||(e.preventDefault(),t===n||t===r?this.toggleExpanded():t===Qe.LEFT?this.collapse():this.expand())}getColumn(){return this.column}getColumnFilterName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"filterToolPanel",!1)}addCssClassToTitleBar(e){this.eFilterToolPanelHeader.classList.add(e)}addInIcon(e,t,n){if(t==null)return;const r=er(e,this.beans,n);t.appendChild(r)}isFilterActive(){return!!this.beans.filterManager?.isFilterActive(this.column)}onFilterChanged(){Nn(this.eFilterIcon,this.isFilterActive(),{skipAriaHidden:!0}),this.dispatchLocalEvent({type:"filterChanged"})}toggleExpanded(){this.expanded?this.collapse():this.expand()}expand(){this.expanded||(this.expanded=!0,d1(this.eFilterToolPanelHeader,!0),Nn(this.eExpandChecked,!0),Nn(this.eExpandUnchecked,!1),this.addFilterElement(),this.expandedCallback())}addFilterElement(e){const t=Nr({tag:"div",cls:"ag-filter-toolpanel-instance-filter"}),n=this.createManagedBean(new wK(this.column,"TOOLBAR"));this.filterWrapperComp=n,n.hasFilter()&&n.getFilter()?.then(r=>{this.underlyingFilter=r,r&&(t.appendChild(n.getGui()),this.agFilterToolPanelBody.appendChild(t),n.afterGuiAttached({container:"toolPanel",suppressFocus:e}))})}collapse(){if(!this.expanded)return;this.expanded=!1,d1(this.eFilterToolPanelHeader,!1),this.removeFilterElement(),Nn(this.eExpandChecked,!1),Nn(this.eExpandUnchecked,!0);const e=this.filterWrapperComp;e?.afterGuiDetached(),this.destroyBean(e),this.expandedCallback()}removeFilterElement(){Xi(this.agFilterToolPanelBody)}isExpanded(){return this.expanded}refreshFilter(e){if(!this.expanded)return;const t=this.underlyingFilter;t&&(e?typeof t.refreshVirtualList=="function"&&t.refreshVirtualList():t.afterGuiDetached?.())}onFilterOpened(e){e.source==="COLUMN_MENU"&&e.column===this.column&&this.expanded&&this.collapse()}},tC=class bit extends Gt{constructor(t,n,r,i,o){super(),this.columnGroup=t,this.childFilterComps=n,this.expandedCallback=r,this.depth=i,this.showingColumn=o,this.filterGroupComp=at}postConstruct(){const t={cssIdentifier:"filter-toolpanel",direction:"vertical"};this.setTemplate({tag:"div",cls:"ag-filter-toolpanel-group-wrapper",children:[{tag:"ag-group-component",ref:"filterGroupComp"}]},[Ks],{filterGroupComp:t}),this.setGroupTitle();const{filterGroupComp:n,depth:r,childFilterComps:i,gos:o}=this;n.setAlignItems("stretch"),n.addCss(`ag-filter-toolpanel-group-level-${r}`),n.getGui().style.setProperty("--ag-indentation-level",String(r)),n.addCssClassToTitleBar(`ag-filter-toolpanel-group-level-${r}-header`),i.forEach(a=>{n.addItem(a),a.addCssClassToTitleBar(`ag-filter-toolpanel-group-level-${r+1}-header`),a.getGui().style.setProperty("--ag-indentation-level",String(r+1))}),this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"filterToolPanelColumnGroup",shouldDisplayTooltip:TK(o,()=>n.getGui().querySelector(".ag-group-title"))})),this.refreshFilterClass(),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip(),this.addInIcon("filterActive")}setupTooltip(){if(!this.showingColumn)return;const t=()=>{this.tooltipFeature?.setTooltipAndRefresh(this.columnGroup.getColDef().headerTooltip)};t(),this.addManagedEventListeners({newColumnsLoaded:t})}addCssClassToTitleBar(t){this.filterGroupComp.addCssClassToTitleBar(t)}refreshFilters(t){this.childFilterComps.forEach(n=>{n instanceof bit?n.refreshFilters(t):n.refreshFilter(t)})}isColumnGroup(){return zs(this.columnGroup)}isExpanded(){return this.filterGroupComp.isExpanded()}getChildren(){return this.childFilterComps}getFilterGroupName(){return this.filterGroupName??""}getFilterGroupId(){return this.columnGroup.getId()}hideGroupItem(t,n){this.filterGroupComp.hideItem(t,n)}hideGroup(t){this.setDisplayed(!t)}addInIcon(t){const n=er(t,this.beans);n&&n.classList.add("ag-filter-toolpanel-group-instance-header-icon"),this.filterGroupComp.addTitleBarWidget(n)}forEachToolPanelFilterChild(t){this.childFilterComps.forEach(n=>{n instanceof vit&&t(n)})}addExpandCollapseListeners(){const t=this.isColumnGroup()?()=>this.expandedCallback():()=>this.forEachToolPanelFilterChild(r=>r.expand()),n=this.isColumnGroup()?()=>this.expandedCallback():()=>this.forEachToolPanelFilterChild(r=>r.collapse());this.addManagedListeners(this.filterGroupComp,{expanded:t,collapsed:n})}getColumns(){return zs(this.columnGroup)?this.columnGroup.getLeafColumns():[this.columnGroup]}addFilterChangedListeners(){this.getColumns().forEach(t=>{this.addManagedListeners(t,{filterChanged:()=>this.refreshFilterClass()})}),zs(this.columnGroup)||this.addManagedEventListeners({filterOpened:this.onFilterOpened.bind(this)})}refreshFilterClass(){const t=this.getColumns(),n=()=>t.some(r=>r.isFilterActive());this.filterGroupComp.toggleCss("ag-has-filter",n())}onFilterOpened(t){t.source==="COLUMN_MENU"&&t.column===this.columnGroup&&this.isExpanded()&&this.collapse()}expand(){this.filterGroupComp.toggleGroupExpand(!0)}collapse(){this.filterGroupComp.toggleGroupExpand(!1)}setGroupTitle(){const t=this.columnGroup,n=zs(t)?this.getColumnGroupName(t):this.getColumnName(t);this.filterGroupName=n,this.filterGroupComp.setTitle(n||"")}getColumnGroupName(t){return this.beans.colNames.getDisplayNameForProvidedColumnGroup(null,t,"filterToolPanel")}getColumnName(t){return this.beans.colNames.getDisplayNameForColumn(t,"filterToolPanel",!1)}destroyFilters(){this.childFilterComps=this.destroyBeans(this.childFilterComps),Xi(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}},yKt=class extends Gt{constructor(){super({tag:"div",cls:"ag-filter-list-panel"}),this.initialised=!1,this.hasLoadedInitialState=!1,this.isInitialState=!1,this.filterGroupComps=[],this.suppressOnColumnsChanged=!1,this.onColumnsChangedPending=!1}wireBeans(e){this.colModel=e.colModel}init(e){this.initialised=!0;const t=Vn(this.gos,{suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1});eu(t,e),this.params=t,t.suppressSyncLayoutWithGrid||this.addManagedEventListeners({columnMoved:()=>this.onColumnsChanged()}),this.addManagedEventListeners({newColumnsLoaded:()=>this.onColumnsChanged(),toolPanelVisibleChanged:n=>{n.key==="filters"&&this.refreshFilters(n.visible)},dragStarted:()=>{this.suppressOnColumnsChanged=!0},dragStopped:()=>{this.suppressOnColumnsChanged=!1,this.onColumnsChangedPending&&(this.onColumnsChangedPending=!1,this.onColumnsChanged())}}),this.colModel.ready&&this.onColumnsChanged()}onColumnsChanged(){if(this.suppressOnColumnsChanged){this.onColumnsChangedPending=!0;return}const e=this.colModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!e?this.syncFilterLayout():this.buildTreeFromProvidedColumnDefs(),this.refreshAriaLabel()}syncFilterLayout(){_rt(this.colModel,this.setFiltersLayout.bind(this)),this.refreshAriaLabel()}buildTreeFromProvidedColumnDefs(){const e=this.colModel.getColDefColTree();this.recreateFilters(e)}setFiltersLayout(e){const t=Lrt(this.colModel,e);this.recreateFilters(t)}recreateFilters(e){const t=Gi(this.beans);this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!this.params.initialState);const n=this.getExpansionState();this.destroyFilters();const r=this.recursivelyAddComps(e,0,n);this.filterGroupComps=r;const i=r.length;i&&(r.forEach(a=>this.appendChild(a)),this.setFirstAndLastVisible(0,i-1));const o=this.searchFilterText;Ut(o)&&this.searchFilters(o),this.fireExpandedEvent(),this.getGui().contains(t)&&t.focus(),this.isInitialState=!1,this.refreshAriaLabel()}recursivelyAddComps(e,t,n){return e.map(r=>{if(zs(r))return this.recursivelyAddFilterGroupComps(r,t,n)?.flatMap(l=>l)??[];const i=r;if(!this.shouldDisplayFilter(i))return[];const o=t===0,a=new vit(o,()=>this.onFilterExpanded());if(this.createBean(a),a.setColumn(i),n.get(i.getId())&&a.expand(),t>0)return a;const s=this.createBean(new tC(i,[a],this.onGroupExpanded.bind(this),t,!0));return s.addCssClassToTitleBar("ag-filter-toolpanel-header"),n.get(s.getFilterGroupId())||s.collapse(),s}).flatMap(r=>r)}refreshAriaLabel(){const e=this.getLocaleTextFunc(),t=e("ariaFilterPanelList","Filter List"),n=e("filters","Filters"),l=this.getGui().querySelectorAll(".ag-filter-toolpanel-group-item:not(.ag-filter-toolpanel-group-wrapper, .ag-hidden)").length;Es(this.getAriaElement(),`${t} ${l} ${n}`)}recursivelyAddFilterGroupComps(e,t,n){if(!this.filtersExistInChildren(e.getChildren()))return;const r=e.getColGroupDef();if(r&&r.suppressFiltersToolPanel)return[];const i=e.isPadding()?t:t+1,o=this.recursivelyAddComps(e.getChildren(),i,n).flatMap(l=>l);if(e.isPadding())return o;const a=new tC(e,o,this.onGroupExpanded.bind(this),t,!1);this.createBean(a),a.addCssClassToTitleBar("ag-filter-toolpanel-header");const s=n.get(a.getFilterGroupId());return(this.isInitialState&&!s||s===!1)&&a.collapse(),[a]}filtersExistInChildren(e){return e.some(t=>zs(t)?this.filtersExistInChildren(t.getChildren()):this.shouldDisplayFilter(t))}shouldDisplayFilter(e){const t=e.getColDef()&&e.getColDef().suppressFiltersToolPanel;return e.isFilterAllowed()&&!t}getExpansionState(){const e=new Map;if(this.isInitialState){const{expandedColIds:n,expandedGroupIds:r}=this.params.initialState;return n.forEach(i=>e.set(i,!0)),r.forEach(i=>e.set(i,!0)),e}const t=n=>{e.set(n.getFilterGroupId(),n.isExpanded()),n.getChildren().forEach(r=>{r instanceof tC?t(r):e.set(r.getColumn().getId(),r.isExpanded())})};return this.filterGroupComps.forEach(t),e}refresh(){}setVisible(e){super.setDisplayed(e),e&&!this.initialised&&this.init(this.params)}expandFilterGroups(e,t){const n=[],r=i=>{const o=i.getFilterGroupId();(!t||t.includes(o))&&(e&&i.isColumnGroup()?i.expand():i.collapse(),n.push(o)),i.getChildren().forEach(s=>{s instanceof tC&&r(s)})};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){const i=t.filter(o=>n.indexOf(o)<0);i.length>0&&ut(166,{unrecognisedGroupIds:i})}}expandFilters(e,t){const n=[],r=i=>{if(i instanceof tC){let s=!1;return i.getChildren().forEach(l=>{r(l)&&(e?(i.expand(),s=!0):i.isColumnGroup()||i.collapse())}),s}const o=i.getColumn().getColId(),a=!t||t.includes(o);return a&&(e?i.expand():i.collapse(),n.push(o)),a};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){const i=t.filter(o=>n.indexOf(o)<0);i.length>0&&ut(167,{unrecognisedColIds:i})}}onGroupExpanded(){this.fireExpandedEvent()}onFilterExpanded(){this.dispatchLocalEvent({type:"filterExpanded"})}fireExpandedEvent(){let e=0,t=0;const n=i=>{i.isColumnGroup()&&(i.isExpanded()?e++:t++,i.getChildren().forEach(o=>{o instanceof tC&&n(o)}))};this.filterGroupComps.forEach(n);let r;e>0&&t>0?r=2:t>0?r=1:r=0,this.dispatchLocalEvent({type:"groupExpanded",state:r})}performFilterSearch(e){this.searchFilterText=Ut(e)?e.toLowerCase():null,this.searchFilters(this.searchFilterText)}searchFilters(e){const t=o=>!Ut(e)||o.toLowerCase().indexOf(e)!==-1,n=(o,a)=>{if(!(o instanceof tC))return t(o.getColumnFilterName()||"");const s=o.getChildren(),l=t(o.getFilterGroupName()),c=a||l;if(c){o.hideGroup(!1);for(let d=0;d<s.length;d++)n(s[d],c),o.hideGroupItem(!1,d);return!0}let u=!1;return s.forEach((d,p)=>{const h=n(d,a);o.hideGroupItem(!h,p),h&&(u=!0)}),o.hideGroup(!u),u};let r,i;this.filterGroupComps.forEach((o,a)=>{n(o,!1);const s=o.getGui()?.classList.contains("ag-hidden");r===void 0?s||(r=a,i=a):!s&&i!==a&&(i=a)}),this.setFirstAndLastVisible(r,i),this.refreshAriaLabel()}setFirstAndLastVisible(e,t){this.filterGroupComps.forEach((n,r)=>{n.removeCss("ag-first-group-visible"),n.removeCss("ag-last-group-visible"),r===e&&n.addCss("ag-first-group-visible"),r===t&&n.addCss("ag-last-group-visible")})}refreshFilters(e){this.filterGroupComps.forEach(t=>t.refreshFilters(e))}getExpandedFiltersAndGroups(){const e=[],t=new Set,n=r=>{if(r instanceof tC){r.getChildren().forEach(o=>n(o));const i=r.getFilterGroupId();r.isExpanded()&&!t.has(i)&&e.push(i)}else r.isExpanded()&&t.add(r.getColumn().getColId())};return this.filterGroupComps.forEach(n),{expandedGroupIds:e,expandedColIds:Array.from(t)}}destroyFilters(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),Xi(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}},MKt={selector:"AG-FILTERS-TOOL-PANEL-LIST",component:yKt},CKt=".ag-filter-toolpanel{flex:1 1 0px;min-width:0}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{align-items:center;color:var(--ag-header-text-color);display:flex;font-weight:var(--ag-header-font-weight);padding:0 var(--ag-spacing);>*{align-items:center;display:flex}}.ag-filter-toolpanel-header{padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing);position:relative;&:focus-visible{border-radius:var(--ag-border-radius);box-shadow:inset var(--ag-focus-shadow)}}:where(.ag-ltr) .ag-filter-toolpanel-group-instance-header-icon,:where(.ag-ltr) .ag-filter-toolpanel-instance-header-icon{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-group-instance-header-icon,:where(.ag-rtl) .ag-filter-toolpanel-instance-header-icon{margin-right:var(--ag-spacing)}.ag-filter-toolpanel-search{min-height:var(--ag-header-height);padding-bottom:var(--ag-spacing);padding-top:var(--ag-widget-container-vertical-padding)}:where(.ag-filter-toolpanel-group:not(.ag-has-filter)>.ag-group-title-bar) .ag-filter-toolpanel-group-instance-header-icon{display:none}.ag-filter-toolpanel-search-input{flex-grow:1;height:calc(var(--ag-spacing)*4)}:where(.ag-ltr) .ag-filter-toolpanel-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-group-title-bar-icon{margin-left:var(--ag-spacing)}.ag-filter-toolpanel-expand{cursor:pointer}:where(.ag-ltr) .ag-filter-toolpanel-expand{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-expand{margin-left:var(--ag-spacing)}:where(.ag-ltr) .ag-filter-toolpanel-group-title-bar,:where(.ag-ltr) .ag-filter-toolpanel-instance-header{padding-left:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-filter-toolpanel-group-title-bar,:where(.ag-rtl) .ag-filter-toolpanel-instance-header{padding-right:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}:where(.ag-ltr) .ag-filter-toolpanel-instance-body{margin-left:var(--ag-filter-tool-panel-group-indent)}:where(.ag-rtl) .ag-filter-toolpanel-instance-body{margin-right:var(--ag-filter-tool-panel-group-indent)}.ag-filter-toolpanel-instance-filter{background-color:var(--ag-chrome-background-color)}.ag-filter-toolpanel-group-level-0{border-top:none}",xKt={tag:"div",cls:"ag-filter-toolpanel",children:[{tag:"ag-filters-tool-panel-header",ref:"filtersToolPanelHeaderPanel"},{tag:"ag-filters-tool-panel-list",ref:"filtersToolPanelListPanel"}]},wKt=class extends Gt{constructor(){super(xKt,[vKt,MKt]),this.filtersToolPanelHeaderPanel=at,this.filtersToolPanelListPanel=at,this.initialised=!1,this.listenerDestroyFuncs=[],this.registerCSS(CKt)}init(e){this.initialised&&(this.listenerDestroyFuncs.forEach(s=>s()),this.listenerDestroyFuncs=[]),this.initialised=!0;const n={...Vn(this.gos,{suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1}),...e};this.params=n;const{filtersToolPanelHeaderPanel:r,filtersToolPanelListPanel:i}=this;r.init(n),i.init(n);const o=n.suppressExpandAll,a=n.suppressFilterSearch;o&&a&&r.setDisplayed(!1),this.listenerDestroyFuncs.push(...this.addManagedListeners(r,{expandAll:()=>i.expandFilterGroups(!0),collapseAll:()=>i.expandFilterGroups(!1),searchChanged:s=>i.performFilterSearch(s.searchText)}),...this.addManagedListeners(i,{filterExpanded:n.onStateUpdated,groupExpanded:s=>{r.setExpandState(s.state),n.onStateUpdated()}}))}setVisible(e){super.setDisplayed(e),e&&!this.initialised&&this.init(this.params)}setFilterLayout(e){this.filtersToolPanelListPanel.setFiltersLayout(e)}expandFilterGroups(e){this.filtersToolPanelListPanel.expandFilterGroups(!0,e)}collapseFilterGroups(e){this.filtersToolPanelListPanel.expandFilterGroups(!1,e)}expandFilters(e){this.filtersToolPanelListPanel.expandFilters(!0,e)}collapseFilters(e){this.filtersToolPanelListPanel.expandFilters(!1,e)}syncLayoutWithGrid(){this.filtersToolPanelListPanel.syncFilterLayout()}refresh(e){return this.init(e),!0}getState(){return this.filtersToolPanelListPanel.getExpandedFiltersAndGroups()}},SKt={moduleName:"FiltersToolPanel",version:wi,userComponents:{agFiltersToolPanel:wKt},icons:{filtersToolPanel:"filter"},dependsOn:[Vye,es,xw]},yit=class extends dt{constructor(){super(...arguments),this.loadRowDataVersion=0}wireBeans(e){this.environment=e.environment}init(e,t){this.params=t,this.comp=e,t.pinned==null&&(this.setAutoHeightClasses(),this.setupRefreshStrategy(),this.createDetailGrid(),this.loadRowData(),this.addManagedEventListeners({fullWidthRowFocused:this.onFullWidthRowFocused.bind(this)}))}onFullWidthRowFocused(e){const t=this.params,n={rowIndex:t.node.rowIndex,rowPinned:t.node.rowPinned},r={rowIndex:e.rowIndex,rowPinned:e.rowPinned};$c(n,r)&&zu(this.comp.getGui(),e.fromBelow)}setAutoHeightClasses(){const e=this.gos.get("detailRowAutoHeight"),t=e?"ag-details-row-auto-height":"ag-details-row-fixed-height",n=e?"ag-details-grid-auto-height":"ag-details-grid-fixed-height",r=this.comp;r.toggleCss(t,!0),r.toggleDetailGridCss(n,!0)}setupRefreshStrategy(){const e=this.params.refreshStrategy;if(e=="everything"||e=="nothing"||e=="rows"){this.refreshStrategy=e;return}e!=null&&ut(170,{providedStrategy:e}),this.refreshStrategy="rows"}createDetailGrid(){const{params:e,gos:t}=this;if(Yi(e.detailGridOptions)){ut(171);return}const n=t.get("theme"),r=e.detailGridOptions.theme;r&&r!==n&&ut(267);const i={themeStyleContainer:this.environment.eStyleContainer,...e.detailGridOptions,theme:n};t.get("detailRowAutoHeight")&&(i.domLayout="autoHeight"),this.comp.setDetailGrid(i)}registerDetailWithMaster(e){const{params:t,beans:{selectionSvc:n,findSvc:r}}=this,i=t.node.id,o=t.api,a={id:i,api:e},s=t.node;if(o.isDestroyed())return;o.addDetailGridInfo(i,a),s.detailGridInfo=a;const l=s.parent;r?.registerDetailGrid(s,e);function c(){l&&n?.refreshMasterNodeState(l)}function u({node:d,source:p}){d!==l||p==="masterDetail"||e.isDestroyed()||n?.setDetailSelectionState(l,t.detailGridOptions,e)}e.addEventListener("firstDataRendered",()=>{e.isDestroyed()||o.isDestroyed()||(n?.setDetailSelectionState(l,t.detailGridOptions,e),e.addEventListener("selectionChanged",c),o.addEventListener("rowSelected",u))}),this.addDestroyFunc(()=>{s.detailGridInfo===a&&(o.isDestroyed()||o.removeDetailGridInfo(i),s.detailGridInfo=null)})}loadRowData(){this.loadRowDataVersion++;const e=this.loadRowDataVersion,t=this.params;if(t.detailGridOptions?.rowModelType==="serverSide"){t.node.detailGridInfo?.api?.refreshServerSide({purge:!0});return}const n=t.getDetailRowData;if(!n){ut(172);return}const r=o=>{this.loadRowDataVersion===e&&this.comp.setRowData(o)},i={node:t.node,data:t.node.data,successCallback:r,context:Vn(this.gos,{}).context};n(i)}refresh(){switch(this.refreshStrategy){case"nothing":return!0;case"everything":return!1}return this.loadRowData(),!0}},AKt=class{constructor(e){this.parentWrapper=e}wrap(e,t,n,r){return this.parentWrapper.wrap(e,t,n,r)}},OKt={tag:"div",cls:"ag-details-row"},zKt={tag:"div",cls:"ag-details-row",role:"gridcell",children:[{tag:"div",ref:"eDetailGrid",cls:"ag-details-grid",role:"presentation"}]},TKt=class extends Gt{constructor(){super(...arguments),this.eDetailGrid=at}wireBeans(t){this.context=t.context}init(t){this.params=t,this.selectAndSetTemplate();const n={toggleCss:(r,i)=>this.toggleCss(r,i),toggleDetailGridCss:(r,i)=>this.eDetailGrid.classList.toggle(r,i),setDetailGrid:r=>this.setDetailGrid(r),setRowData:r=>this.setRowData(r),getGui:()=>this.eDetailGrid};this.ctrl=this.createManagedBean(new yit),this.ctrl.init(n,t)}refresh(){return this.ctrl?.refresh()??!1}selectAndSetTemplate(){const t=this.params;if(t.pinned){this.setTemplate(OKt);return}const n=()=>{this.setTemplate(zKt)};if(Yi(t.template))n();else if(typeof t.template=="string")this.setTemplate(t.template,[]);else if(typeof t.template=="function"){const r=t.template,i=r(t);this.setTemplate(i,[])}else ut(168),n();this.eDetailGrid==null&&ut(169)}setDetailGrid(t){if(!this.eDetailGrid)return;const n=this.context.getBean("frameworkCompWrapper"),r=new AKt(n),{frameworkOverrides:i}=this.beans,o=i6t(this.eDetailGrid,t,{frameworkOverrides:i,providedBeanInstances:{frameworkCompWrapper:r},modules:Zet(this.params.api.getGridId(),t.rowModelType??"clientSide")});this.detailApi=o,this.ctrl?.registerDetailWithMaster(o),this.addDestroyFunc(()=>{o.destroy()})}setRowData(t){this.detailApi?.setGridOption("rowData",t)}};function WK(e,t){const n=e.masterDetailSvc?.store;return n?t(n):void 0}function EKt(e,t,n){WK(e,r=>{r[t]=n})}function RKt(e,t){WK(e,n=>{delete n[t]})}function IKt(e,t){return WK(e,n=>n[t])}function PKt(e,t){WK(e,n=>{let r=0;Object.values(n).forEach(i=>{i&&t(i,r++)})})}var DKt=".ag-details-row{width:100%}.ag-details-row-fixed-height{height:100%}.ag-details-grid{width:100%}.ag-details-grid-fixed-height{height:100%}",kKt=class extends dt{constructor(){super(...arguments),this.beanName="masterDetailSvc",this.store={}}isEnabled(){const e=this.gos;return e.get("masterDetail")&&!e.get("treeData")}postConstruct(){oa(this.gos)&&(this.enabled=this.isEnabled(),this.addManagedEventListeners({beforeRefreshModel:this.beforeRefreshModel.bind(this)}))}beforeRefreshModel({params:e}){if(e.changedProps){const t=this.isEnabled();if(this.enabled!==t){this.setMasters(null);return}}e.rowDataUpdated&&this.setMasters(e.changedRowNodes)}setMasters(e){const t=this.isEnabled();this.enabled=t;const n=this.gos,r=n.get("isRowMaster"),i=n.get("groupDefaultExpanded"),o=(a,s,l)=>{const c=a.master;let u=t;if(t)if(s||l){if(r){const d=a.data;u=!!d&&!!r(d)}}else u=c;if(u&&s)if(i===-1)a.expanded=!0;else{const d=this.beans.rowGroupColsSvc?.columns.length??0;a.expanded=d<i}else!u&&c&&(a.expanded=!1);u!==c&&(a.master=u,a.dispatchRowEvent("masterChanged"))};if(e){for(const a of e.updates)o(a,!1,!0);for(const a of e.adds)o(a,!0,!1)}else{const a=Pm(this.beans)?.rootNode?.allLeafChildren;if(a)for(let s=0,l=a.length;s<l;++s)o(a[s],!0,!1)}}getDetail(e){if(!e.master||!e.expanded)return null;let t=e.detailNode;return t||(t=new vp(this.beans),t.detail=!0,t.selectable=!1,t.parent=e,Ut(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t)}setupDetailRowAutoHeight(e,t){const{gos:n,beans:r}=this;if(!n.get("detailRowAutoHeight"))return;const i=()=>{const a=t.clientHeight;if(a!=null&&a>0){const s=()=>{const{rowModel:l}=this.beans,{rowNode:c}=e;c.setRowHeight(a),(oa(n)||Au(n))&&l.onRowHeightChanged()};window.setTimeout(s,0)}},o=Hf(r,t,i);e.addDestroyFunc(o),i()}destroy(){this.store={},super.destroy()}},LKt={moduleName:"SharedMasterDetail",version:wi,beans:[kKt],userComponents:{agDetailCellRenderer:TKt},dynamicBeans:{detailCellRendererCtrl:yit},apiFunctions:{addDetailGridInfo:EKt,removeDetailGridInfo:RKt,getDetailGridInfo:IKt,forEachDetailGridInfo:PKt},dependsOn:[es,pit,Yye],css:[DKt]},_Kt={moduleName:"MasterDetail",version:wi,dependsOn:[LKt,FK,art]},Mit=class extends Gt{constructor(){super(...arguments),this.changedCalculatedValues=!1,this.dragging=!1,this.shouldDestroyOnEndDragging=!1}postConstruct(){const{dragSvc:e,rangeSvc:t}=this.beans;e.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:n=>{this.dragging=!0,t.autoScrollService.check(n),this.changedCalculatedValues&&(this.onDrag(n),this.changedCalculatedValues=!1)},onDragStop:n=>{this.dragging=!1,this.onDragEnd(n),this.clearDragProperties(),this.shouldDestroyOnEndDragging&&this.destroy()},onDragCancel:()=>{this.dragging=!1,this.onDragCancel(),this.clearDragProperties()}}),this.addManagedElementListeners(this.getGui(),{mousedown:this.preventRangeExtension.bind(this)})}getLastCellHovered(){return this.lastCellHovered}preventRangeExtension(e){e.stopPropagation()}onDragStart(e){[this.cellHoverListener]=this.addManagedElementListeners(this.beans.ctrlsSvc.get("gridCtrl").getGui(),{mousemove:this.updateValuesOnMove.bind(this)}),document.body.classList.add(this.getDraggingCssClass())}getDraggingCssClass(){return`ag-dragging-${this.type===0?"fill":"range"}-handle`}updateValuesOnMove(e){const t=stt(this.gos,e);!t||this.shouldSkipCell(t)||this.lastCellHovered&&g6(t,this.lastCellHovered)||(this.lastCellHovered=t,this.changedCalculatedValues=!0)}clearDragProperties(){this.clearValues(),this.beans.rangeSvc.autoScrollService.ensureCleared(),document.body.classList.remove(this.getDraggingCssClass())}getType(){return this.type}refresh(e){const t=this.cellCtrl,n=this.getGui(),r=zr(this.beans.rangeSvc.getCellRanges()),i=r.startRow,o=r.endRow;if(i&&o&&(t0(o,i)?(this.rangeStartRow=o,this.rangeEndRow=i):(this.rangeStartRow=i,this.rangeEndRow=o)),t!==e||!x0(n)){this.cellCtrl=e;const a=e.comp.getParentOfValue();a&&a.appendChild(n)}this.cellRange=r}clearValues(){this.lastCellHovered=void 0,this.removeListeners()}removeListeners(){const e=this.cellHoverListener;e&&(e(),this.cellHoverListener=void 0)}destroy(){if(!this.shouldDestroyOnEndDragging&&this.dragging){Nn(this.getGui(),!1),this.shouldDestroyOnEndDragging=!0;return}this.shouldDestroyOnEndDragging=!1,super.destroy(),this.removeListeners();const e=this.getGui();e.parentElement?.removeChild(e)}};function NKt(e){const t=e.length;let n=0;if(t<=1)return e;for(let d=0;d<e.length;d++){const p=e[d],h=p.toString().split("e-");if(h.length>1){n=Math.max(n,parseInt(h[1],10));continue}Math.floor(p)!==p&&(n=Math.max(n,p.toString().split(".")[1].length))}let r=0,i=0,o=0,a=0,s=0;for(let d=0;d<t;d++)s=e[d],r+=d,i+=s,a+=d*d,o+=d*s;const l=(t*o-r*i)/(t*a-r*r),c=i/t-l*r/t,u=[];for(let d=0;d<=t;d++)u.push(parseFloat((d*l+c).toFixed(n)));return u}var FKt={tag:"div",cls:"ag-fill-handle"},WKt=class extends Mit{constructor(){super(FKt),this.markedCells=[],this.cellValues=[],this.isUp=!1,this.isLeft=!1,this.isReduce=!1,this.type=0}updateValuesOnMove(e){super.updateValuesOnMove(e),this.initialXY||(this.initialXY=O$(this.beans,e));const{x:t,y:n}=this.initialXY,{x:r,y:i}=O$(this.beans,e),o=Math.abs(t-r),a=Math.abs(n-i),s=this.getFillHandleDirection();let l;s==="xy"?l=o>a?"x":"y":l=s,l!==this.dragAxis&&(this.dragAxis=l,this.changedCalculatedValues=!0)}shouldSkipCell(e){return p0(e.column)}onDrag(e){if(!this.initialPosition){const n=this.cellCtrl;if(!n)return;this.initialPosition=n.cellPosition}const t=this.getLastCellHovered();t&&this.markPathFrom(this.initialPosition,t)}onDragEnd(e){if(this.initialXY=null,!this.markedCells.length)return;const t=this.dragAxis==="x",{cellRange:n,rangeStartRow:r,rangeEndRow:i,beans:o}=this,a=n.columns.length;let s;const{rangeSvc:l,eventSvc:c}=o;if(!this.isUp&&!this.isLeft)s=l.createCellRangeFromCellRangeParams({rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,columnStart:n.columns[0],rowEndIndex:t?i.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:t?i.rowPinned:this.lastCellMarked.rowPinned,columnEnd:t?this.lastCellMarked.column:n.columns[a-1]});else{const u=t?r:this.lastCellMarked;s=l.createCellRangeFromCellRangeParams({rowStartIndex:u.rowIndex,rowStartPinned:u.rowPinned,columnStart:t?this.lastCellMarked.column:n.columns[0],rowEndIndex:i.rowIndex,rowEndPinned:i.rowPinned,columnEnd:n.columns[a-1]})}s&&(c.dispatchEvent({type:"fillStart"}),this.handleValueChanged(n,s,e),l.setCellRanges([s]),c.dispatchEvent({type:"fillEnd",initialRange:n,finalRange:s}))}onDragCancel(){this.initialXY=null,this.markedCells.length&&this.clearMarkedPath()}getFillHandleDirection(){const e=Gne(this.gos)?.direction;return e?e!=="x"&&e!=="y"&&e!=="xy"?(ut(177),"xy"):e:"xy"}handleValueChanged(e,t,n){const{beans:r}=this,{rangeSvc:i,gos:o,valueSvc:a}=r,s=i.getRangeEndRow(e),l=i.getRangeStartRow(e),c=i.getRangeEndRow(t),u=i.getRangeStartRow(t),d=this.dragAxis==="y";if(this.isReduce&&!Gne(o)?.suppressClearOnFillReduction){const w=d?e.columns:e.columns.filter(A=>t.columns.indexOf(A)<0),S=d?Gp(r,c):u;S&&this.clearCellsInRange(S,s,w);return}const p=[],h=[],g=[],m=[];let v=!0,y=0;const M=()=>{p.length=0,h.length=0,g.length=0,m.length=0,y=0},C=(w,S)=>{let A=this.isUp?s:l,z=!1;for(d&&(v=!0,M());!z&&A;){const O=lp(r,A);if(!O)break;d&&w?x(p,w,O,()=>!$c(A,this.isUp?l:s)):S&&(v=!0,M(),S.forEach(T=>x(p,T,O,()=>T!==(this.isLeft?e.columns[0]:zr(e.columns))))),z=$c(A,this.isUp?u:c),A=this.isUp?Sx(this.beans,A):Gp(r,A)}},x=(w,S,A,z)=>{let O,T=!1;if(v)O=a.getValue(S,A),h.push(O),g.push(a.getValue(S,A,!0)),m.push(a.formatValue(S,A,O)),v=z();else{const{value:I,fromUserFunction:P,sourceCol:N,sourceRowNode:F}=this.processValues({event:n,values:w,initialValues:h,initialNonAggregatedValues:g,initialFormattedValues:m,col:S,rowNode:A,idx:y++});if(O=I,S.isCellEditable(A)){const L=a.getValue(S,A);if(!P){if(N){const W=N.getColDef();if(W.useValueFormatterForExport!==!1&&W.valueFormatter){const H=a.formatValue(N,F,O);H!=null&&(O=H)}}S.getColDef().useValueParserForImport!==!1&&(O=a.parseValue(S,A,N?O:ap(O),L))}!P||L!==O?A.setDataValue(S,O,"rangeSvc"):T=!0}}T||w.push({value:O,column:S,rowNode:A})};if(d)e.columns.forEach(w=>{C(w)});else{const w=this.isLeft?[...t.columns].reverse():t.columns;C(void 0,w)}}clearCellsInRange(e,t,n){const r={startRow:e,endRow:t,columns:n,startColumn:n[0]};this.beans.rangeSvc.clearCellRangeCellValues({cellRanges:[r]})}processValues(e){const{event:t,values:n,initialValues:r,initialNonAggregatedValues:i,initialFormattedValues:o,col:a,rowNode:s,idx:l}=e,c=Gne(this.gos)?.setFillValue,u=this.dragAxis==="y";let d;if(u?d=this.isUp?"up":"down":d=this.isLeft?"left":"right",c){const h=Vn(this.gos,{event:t,values:n.map(({value:m})=>m),initialValues:r,initialNonAggregatedValues:i,initialFormattedValues:o,currentIndex:l,currentCellValue:this.beans.valueSvc.getValue(a,s),direction:d,column:a,rowNode:s}),g=c(h);if(g!==!1)return{value:g,fromUserFunction:!0}}const p=!n.some(({value:h})=>{const g=parseFloat(h);return isNaN(g)||g.toString()!==h.toString()});if(t.altKey||!p){if(p&&r.length===1){const v=this.isUp||this.isLeft?-1:1;return{value:parseFloat(zr(n).value)+1*v,fromUserFunction:!1}}const{value:h,column:g,rowNode:m}=n[l%n.length];return{value:h,fromUserFunction:!1,sourceCol:g,sourceRowNode:m}}return{value:zr(NKt(n.map(({value:h})=>Number(h)))),fromUserFunction:!1}}clearValues(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,super.clearValues()}clearMarkedPath(){this.markedCells.forEach(e=>{if(!e.isAlive())return;const{comp:t}=e;t.toggleCss("ag-selection-fill-top",!1),t.toggleCss("ag-selection-fill-right",!1),t.toggleCss("ag-selection-fill-bottom",!1),t.toggleCss("ag-selection-fill-left",!1)}),this.markedCells.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1}clearCellValues(){this.cellValues.length=0}markPathFrom(e,t){if(this.clearMarkedPath(),this.clearCellValues(),this.dragAxis==="y"){if($c(t,e))return;const n=t0(t,e),{rangeStartRow:r,rangeEndRow:i}=this;n&&(t.rowPinned==r.rowPinned&&t.rowIndex>=r.rowIndex||r.rowPinned!=i.rowPinned&&t.rowPinned==i.rowPinned&&t.rowIndex<=i.rowIndex)?(this.reduceVertical(e,t),this.isReduce=!0):(this.extendVertical(e,t,n),this.isReduce=!1)}else{const n=e.column,r=t.column;if(n===r)return;const i=this.beans.visibleCols.allCols,o=i.indexOf(n),a=i.indexOf(r);a<=o&&a>=i.indexOf(this.cellRange.columns[0])?(this.reduceHorizontal(e,t),this.isReduce=!0):(this.extendHorizontal(e,t,a<o),this.isReduce=!1)}this.lastCellMarked=t}extendVertical(e,t,n){const r=this.beans,{rangeSvc:i}=r;let o=e;do{const a=this.cellRange,s=a.columns.length;for(let l=0;l<s;l++){const c=a.columns[l],d={...{rowIndex:o.rowIndex,rowPinned:o.rowPinned},column:c},p=i.isCellInSpecificRange(d,a),h=$c(o,e);if(n&&(this.isUp=!0),!h){const g=Kv(r,d);if(g){this.markedCells.push(g);const m=g.comp;p||(m.toggleCss("ag-selection-fill-left",l===0),m.toggleCss("ag-selection-fill-right",l===s-1)),m.toggleCss(n?"ag-selection-fill-top":"ag-selection-fill-bottom",$c(o,t))}}}if($c(o,t))break}while(o=n?Sx(this.beans,o):Gp(r,o))}reduceVertical(e,t){let n=e;const r=this.beans;do{const i=this.cellRange,o=i.columns.length,a=$c(n,t);for(let s=0;s<o;s++){const c={...{rowIndex:n.rowIndex,rowPinned:n.rowPinned},column:i.columns[s]},u=Kv(r,c);u&&(this.markedCells.push(u),u.comp.toggleCss("ag-selection-fill-bottom",$c(n,t)))}if(a)break}while(n=Sx(r,n))}extendHorizontal(e,t,n){const r=this.beans,{visibleCols:i}=r,o=i.allCols,a=o.indexOf(n?t.column:e.column),s=o.indexOf(n?this.cellRange.columns[0]:t.column),l=n?0:1,c=o.slice(a+l,s+l),{rangeStartRow:u,rangeEndRow:d}=this;c.forEach(p=>{let h=u,g=!1;do{g=$c(h,d);const m=Kv(r,{rowIndex:h.rowIndex,rowPinned:h.rowPinned,column:p});if(m){this.markedCells.push(m);const v=m.comp;v.toggleCss("ag-selection-fill-top",$c(h,u)),v.toggleCss("ag-selection-fill-bottom",$c(h,d)),n?(this.isLeft=!0,v.toggleCss("ag-selection-fill-left",p===c[0])):v.toggleCss("ag-selection-fill-right",p===zr(c))}h=Gp(r,h)}while(!g)})}reduceHorizontal(e,t){const n=this.beans,{visibleCols:r}=n,i=r.allCols,o=i.indexOf(t.column),a=i.indexOf(e.column),s=i.slice(o,a),{rangeStartRow:l,rangeEndRow:c}=this;s.forEach(u=>{let d=l,p=!1;do{p=$c(d,c);const h=Kv(this.beans,{rowIndex:d.rowIndex,rowPinned:d.rowPinned,column:u});h&&(this.markedCells.push(h),h.comp.toggleCss("ag-selection-fill-right",u===s[0])),d=Gp(n,d)}while(!p)})}refresh(e){const t=this.beans.rangeSvc.getCellRanges()[0];if(!t.startRow||!t.endRow){this.destroy();return}super.refresh(e)}},qKt=class extends Mit{constructor(){super({tag:"div",cls:"ag-range-handle"}),this.type=1,this.rangeFixed=!1}onDrag(e){const t=this.getLastCellHovered();if(!t)return;const n=this.beans.rangeSvc,r=n.getCellRanges(),i=zr(r);this.rangeFixed||(this.fixRangeStartEnd(i),this.rangeFixed=!0),this.endPosition={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column},r.length===2&&r[0].type===hf.DIMENSION&&i.type===hf.VALUE&&!$c(this.endPosition,n.getRangeEndRow(i))&&n.updateRangeEnd(r[0],{...this.endPosition,column:r[0].columns[0]},!0),n.extendLatestRangeToCell(this.endPosition)}shouldSkipCell(e){return!1}onDragEnd(e){const t=zr(this.beans.rangeSvc.getCellRanges());this.fixRangeStartEnd(t),this.rangeFixed=!1}onDragCancel(){this.rangeFixed=!1}fixRangeStartEnd(e){const t=this.beans.rangeSvc,n=t.getRangeStartRow(e),r=t.getRangeEndRow(e),i=e.columns[0];e.startRow=n,e.endRow=r,e.startColumn=i}},BKt=".ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing),.ag-cell-range-selected.ag-cell-range-chart,.ag-cell-range-selected:not(.ag-cell-focus){background-color:var(--ag-range-selection-background-color);&.ag-cell-range-chart{background-color:var(--ag-range-selection-chart-background-color)!important;&.ag-cell-range-chart-category{background-color:var(--ag-range-selection-chart-category-background-color)!important}}}.ag-cell-range-selected-1.ag-cell-range-chart,.ag-cell-range-selected-1:not(.ag-cell-focus),.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected-2.ag-cell-range-chart,.ag-cell-range-selected-2:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-3.ag-cell-range-chart,.ag-cell-range-selected-3:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-4.ag-cell-range-chart,.ag-cell-range-selected-4:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell){&.ag-cell-range-top{border-top-color:var(--ag-range-selection-border-color);border-top-style:var(--ag-range-selection-border-style)}&.ag-cell-range-right{border-right-color:var(--ag-range-selection-border-color);border-right-style:var(--ag-range-selection-border-style)}&.ag-cell-range-bottom{border-bottom-color:var(--ag-range-selection-border-color);border-bottom-style:var(--ag-range-selection-border-style)}&.ag-cell-range-left{border-left-color:var(--ag-range-selection-border-color);border-left-style:var(--ag-range-selection-border-style)}}.ag-cell.ag-selection-fill-top,.ag-cell.ag-selection-fill-top.ag-cell-range-selected{border-top:1px dashed;border-top-color:var(--ag-range-selection-border-color)}:where(.ag-ltr) .ag-cell.ag-selection-fill-right,:where(.ag-ltr) .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}:where(.ag-rtl) .ag-cell.ag-selection-fill-right,:where(.ag-rtl) .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-cell.ag-selection-fill-bottom,.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected{border-bottom:1px dashed;border-bottom-color:var(--ag-range-selection-border-color)}:where(.ag-ltr) .ag-cell.ag-selection-fill-left,:where(.ag-ltr) .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}:where(.ag-rtl) .ag-cell.ag-selection-fill-left,:where(.ag-rtl) .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-fill-handle,.ag-range-handle{background-color:var(--ag-range-selection-border-color);bottom:-1px;height:6px;position:absolute;width:6px}:where(.ag-ltr) .ag-fill-handle,:where(.ag-ltr) .ag-range-handle{right:-1px}:where(.ag-rtl) .ag-fill-handle,:where(.ag-rtl) .ag-range-handle{left:-1px}.ag-fill-handle{cursor:cell}:where(.ag-ltr) .ag-range-handle{cursor:nwse-resize}:where(.ag-rtl) .ag-range-handle{cursor:nesw-resize}";function jKt(e){return e.rangeSvc?.getCellRanges()??null}function HKt(e,t){e.rangeSvc?.addCellRange(t)}function IRe(e){e.rangeSvc?.removeAllCellRanges()}var JL="ag-cell-range-selected",VKt="ag-cell-range-chart",GKt="ag-cell-range-single-cell",$Kt="ag-cell-range-chart-category",UKt="ag-cell-range-handle",XKt="ag-cell-range-top",YKt="ag-cell-range-right",KKt="ag-cell-range-bottom",QKt="ag-cell-range-left";function ZKt(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t.handle?.mode==="range":!1:e.get("enableRangeHandle")}function PRe(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t.handle?.mode==="fill":!1:e.get("enableFillHandle")}var JKt=class{constructor(e,t){this.beans=e,this.cellCtrl=t,this.rangeSvc=e.rangeSvc}setComp(e){this.cellComp=e,this.eGui=this.cellCtrl.eGui,this.onCellSelectionChanged()}onCellSelectionChanged(){const e=this.cellComp;if(!e)return;const{rangeSvc:t,cellCtrl:n,eGui:r}=this,i=t.getCellRangeCount(n.cellPosition);this.rangeCount=i;const o=this.getHasChartRange();this.hasChartRange=o,e.toggleCss(JL,i!==0),e.toggleCss(`${JL}-1`,i===1),e.toggleCss(`${JL}-2`,i===2),e.toggleCss(`${JL}-3`,i===3),e.toggleCss(`${JL}-4`,i>=4),e.toggleCss(VKt,o),sW(r,i>0?!0:void 0),e.toggleCss(GKt,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle()}updateRangeBorders(){const e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,r=!t&&e.right,i=!t&&e.bottom,o=!t&&e.left,a=this.cellComp;a.toggleCss(XKt,n),a.toggleCss(YKt,r),a.toggleCss(KKt,i),a.toggleCss(QKt,o)}isSingleCell(){const{rangeSvc:e}=this;return this.rangeCount===1&&!!e&&!e.isMoreThanOneCell()}getHasChartRange(){const{rangeSvc:e}=this;if(!this.rangeCount||!e)return!1;const t=e.getCellRanges();return t.length>0&&t.every(n=>[hf.DIMENSION,hf.VALUE].includes(n.type))}updateRangeBordersIfRangeCount(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())}getRangeBorders(){const e=this.beans.gos.get("enableRtl");let t=!1,n=!1,r=!1,i=!1;const{rangeSvc:o,beans:{visibleCols:a},cellCtrl:{cellPosition:s}}=this,l=s.column,c=o.getCellRanges().filter(p=>o.isCellInSpecificRange(s,p));if(!c.length)return{top:t,right:n,bottom:r,left:i};let u,d;e?(u=a.getColAfter(l),d=a.getColBefore(l)):(u=a.getColBefore(l),d=a.getColAfter(l)),u||(i=!0),d||(n=!0);for(let p=0;p<c.length&&!(t&&n&&r&&i);p++){const h=c[p],g=o.getRangeStartRow(h),m=o.getRangeEndRow(h);!t&&$c(g,s)&&(t=!0),!r&&$c(m,s)&&(r=!0),!i&&u&&h.columns.indexOf(u)<0&&(i=!0),!n&&d&&h.columns.indexOf(d)<0&&(n=!0)}return{top:t,right:n,bottom:r,left:i}}refreshHandle(){if(this.beans.context.isDestroyed())return;const e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.toggleCss(UKt,!!this.selectionHandle)}shouldHaveSelectionHandle(){const e=this.beans.gos,t=this.rangeSvc,n=t.getCellRanges(),r=n.length;if(this.rangeCount<1||r<1)return!1;const i=zr(n),{cellPosition:o}=this.cellCtrl,a=PRe(e)&&!this.cellCtrl.column.isSuppressFillHandle(),s=ZKt(e);let l=r===1&&!this.cellCtrl.editing&&(a||s);if(this.hasChartRange){const u=n[0].type===hf.DIMENSION&&t.isCellInSpecificRange(o,n[0]);this.cellComp.toggleCss($Kt,u),l=i.type===hf.VALUE}return l&&i.endRow!=null&&t.isContiguousRange(i)&&t.isBottomRightCell(i,o)}addSelectionHandle(){const{beans:e,rangeSvc:t}=this,n=zr(t.getCellRanges()).type,i=PRe(e.gos)&&Yi(n)?0:1;if(this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle=e.context.destroyBean(this.selectionHandle)),!this.selectionHandle){const o=e.registry.createDynamicBean(i===0?"fillHandle":"rangeHandle",!1);o&&(this.selectionHandle=e.context.createBean(o))}this.selectionHandle?.refresh(this.cellCtrl)}destroy(){this.beans.context.destroyBean(this.selectionHandle)}},eQt=class extends dt{constructor(e){super(),this.eContainer=e}postConstruct(){const{beans:e,gos:t,eContainer:n}=this,r=e.rangeSvc,i={eElement:n,onDragStart:r.onDragStart.bind(r),onDragStop:r.onDragStop.bind(r),onDragging:r.onDragging.bind(r)},o=e.dragSvc,a=o.addDragSource.bind(o,i),s=o.removeDragSource.bind(o,i);this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{r1(t)?a():s()}),this.addDestroyFunc(s),r1(t)&&a()}},tQt=class extends dt{constructor(e,t){super(),this.column=e,this.comp=t,this.columnMap=new Map,this.isActive=!1,this.resetColumnMap()}postConstruct(){this.addManagedPropertyListener("cellSelection",()=>{this.refreshActive()}),this.refreshActive(),this.setupRangeHeaderHighlight()}resetColumnMap(){this.columnMap.clear();let e;this.column.isColumn?e=[this.column]:e=this.column.getDisplayedLeafColumns();for(const t of e)this.columnMap.set(t,!1)}refreshActive(){const{gos:e,rangeSvc:t}=this.beans,n=e.get("cellSelection");this.isActive=!!(n&&t&&typeof n=="object"&&n.enableHeaderHighlight)}setupRangeHeaderHighlight(){const e=this.onRangeSelectionChanged.bind(this);this.addManagedEventListeners({rangeSelectionChanged:e,columnPinned:e,columnMoved:e,columnGroupOpened:e}),e()}onRangeSelectionChanged(){if(!this.isActive)return;this.resetColumnMap();const e=this.beans.rangeSvc.getCellRanges();let t=!1,n=!0;for(const r of e){if(t)break;for(const i of r.columns)this.columnMap.has(i)&&(this.columnMap.set(i,!0),t||(t=!0))}for(const r of Array.from(this.columnMap.values()))if(r===!1){n=!1;break}this.comp.toggleCss("ag-header-range-highlight",t&&n)}destroy(){super.destroy(),this.comp=null,this.column=null}},nQt=class extends dt{constructor(){super(...arguments),this.beanName="rangeSvc",this.cellRanges=[],this.bodyScrollListener=this.onBodyScroll.bind(this),this.dragging=!1,this.intersectionRange=!1}wireBeans(e){this.rowModel=e.rowModel,this.dragSvc=e.dragSvc,this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.cellNavigation=e.cellNavigation,this.ctrlsSvc=e.ctrlsSvc,this.valueSvc=e.valueSvc}postConstruct(){const e=this.onColumnsChanged.bind(this),t=()=>this.removeAllCellRanges(),n=this.refreshLastRangeStart.bind(this);this.addManagedEventListeners({newColumnsLoaded:e,columnVisible:e,columnValueChanged:e,columnPivotModeChanged:t,columnRowGroupChanged:t,columnPivotChanged:t,columnGroupOpened:n,columnMoved:n,columnPinned:n}),this.ctrlsSvc.whenReady(this,r=>{const i=r.gridBodyCtrl;this.autoScrollService=new pye({scrollContainer:i.eBodyViewport,scrollAxis:"xy",getVerticalPosition:()=>i.scrollFeature.getVScrollPosition().top,setVerticalPosition:o=>i.scrollFeature.setVerticalScrollPosition(o),getHorizontalPosition:()=>i.scrollFeature.getHScrollPosition().left,setHorizontalPosition:o=>i.scrollFeature.setHorizontalScrollPosition(o),shouldSkipVerticalScroll:()=>!Uu(this.gos,"normal"),shouldSkipHorizontalScroll:()=>!i.scrollFeature.isHorizontalScrollShowing()})})}onDragStart(e){if(!r1(this.gos))return;const{ctrlKey:t,metaKey:n,shiftKey:r}=e,i=t||n,a=!NH(this.gos)?i:!1,s=r&&!!this.cellRanges?.length;!a&&(!s||Ut(zr(this.cellRanges).type))&&this.removeAllCellRanges(!0);const l=this.dragSvc.startTarget;if(l&&this.updateValuesOnMove(l),!!this.lastCellHovered){if(this.dragging=!0,this.lastMouseEvent=e,this.intersectionRange=a&&this.getCellRangeCount(this.lastCellHovered)>1,s||this.setNewestRangeStartCell(this.lastCellHovered),this.cellRanges.length>0)this.draggingRange=zr(this.cellRanges);else{const c={rowIndex:this.lastCellHovered.rowIndex,rowPinned:this.lastCellHovered.rowPinned},u=this.getColumnsFromModel([this.lastCellHovered.column]);if(!u||!u.length)return;this.draggingRange={startRow:c,endRow:c,columns:u,startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.ctrlsSvc.getGridBodyCtrl().eBodyViewport.addEventListener("scroll",this.bodyScrollListener,{passive:!0}),this.dispatchChangedEvent(!0,!1,this.draggingRange.id)}}onDragging(e){const{dragging:t,lastCellHovered:n,newestRangeStartCell:r,autoScrollService:i,cellHasChanged:o}=this;if(!t||!e)return;this.updateValuesOnMove(e.target),this.lastMouseEvent=e;const a=h=>n&&n.rowPinned===h&&r.rowPinned===h,s=a("top")||a("bottom");if(i.check(e,s),!o||!n)return;const l=r?.column,c=n?.column,u=this.calculateColumnsBetween(l,c);if(!u)return;const{rowIndex:d,rowPinned:p}=n;this.draggingRange.endRow={rowIndex:d,rowPinned:p},this.draggingRange.columns=u,this.dispatchChangedEvent(!1,!1,this.draggingRange.id)}onDragStop(){if(!this.dragging)return;const{id:e}=this.draggingRange;this.autoScrollService.ensureCleared(),this.ctrlsSvc.getGridBodyCtrl().eBodyViewport.removeEventListener("scroll",this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.lastCellHovered=void 0,this.intersectionRange&&(this.intersectionRange=!1,this.intersectLastRange()),this.dispatchChangedEvent(!1,!0,e)}onColumnsChanged(){this.refreshLastRangeStart();const e=this.visibleCols.allCols;this.cellRanges.forEach(n=>{const r=n.columns;n.columns=n.columns.filter(o=>o.isVisible()&&e.indexOf(o)!==-1),!yd(r,n.columns)&&this.dispatchChangedEvent(!1,!0,n.id)});const t=this.cellRanges.length;this.cellRanges=this.cellRanges.filter(n=>n.columns.length>0),t>this.cellRanges.length&&this.dispatchChangedEvent(!1,!0)}refreshLastRangeStart(){const e=zr(this.cellRanges);e&&this.refreshRangeStart(e)}isContiguousRange(e){const t=e.columns;if(!t.length)return!1;const n=this.visibleCols.allCols,r=t.map(i=>n.indexOf(i)).sort((i,o)=>i-o);return zr(r)-r[0]+1===t.length}getRangeStartRow(e){return e.startRow&&e.endRow?t0(e.startRow,e.endRow)?e.startRow:e.endRow:{rowIndex:0,rowPinned:(this.beans.pinnedRowModel?.getPinnedTopRowCount()??0)>0?"top":null}}getRangeEndRow(e){if(e.startRow&&e.endRow)return t0(e.startRow,e.endRow)?e.endRow:e.startRow;const t=this.beans.pinnedRowModel?.getPinnedBottomRowCount()??0;return t>0?{rowIndex:t-1,rowPinned:"bottom"}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}}setRangeToCell(e,t=!1){const{gos:n}=this;if(!r1(n))return;const r=n.get("rowNumbers"),i=p0(e.column);r&&this.setSelectionMode(i);const o=this.calculateColumnsBetween(e.column,e.column);if(!o)return;(NH(this.gos)||!t||Yi(this.cellRanges))&&this.removeAllCellRanges(!0);const s={rowIndex:e.rowIndex,rowPinned:e.rowPinned},l={startRow:s,endRow:s,columns:o,startColumn:e.column};this.cellRanges.push(l),this.setNewestRangeStartCell(e),this.onDragStop(),this.dispatchChangedEvent(!0,!0)}extendLatestRangeToCell(e){if(this.isEmpty()||!this.newestRangeStartCell)return;const t=zr(this.cellRanges);this.setSelectionMode(p0(e.column)),this.updateRangeEnd(t,e)}updateRangeEnd(e,t,n=!1){const r=t.column,i=this.calculateColumnsBetween(e.startColumn,r);!i||this.isLastCellOfRange(e,t)||(e.columns=i,e.endRow={rowIndex:t.rowIndex,rowPinned:t.rowPinned},n||this.dispatchChangedEvent(!0,!0,e.id))}getRangeEdgeColumns(e){const t=this.visibleCols.allCols,n=e.columns.map(r=>t.indexOf(r)).filter(r=>r>-1).sort((r,i)=>r-i);return{left:t[n[0]],right:t[zr(n)]}}extendLatestRangeInDirection(e){if(this.isEmpty()||!this.newestRangeStartCell)return;const t=e.key,n=e.ctrlKey||e.metaKey,r=zr(this.cellRanges),i=this.newestRangeStartCell,o=r.columns[0],a=zr(r.columns),s=r.endRow.rowIndex,l=r.endRow.rowPinned,u={column:i.column===o?a:o,rowIndex:s,rowPinned:l},d=this.cellNavigation.getNextCellToFocus(t,u,n);if(d)return this.setCellRange({rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,rowEndIndex:d.rowIndex,rowEndPinned:d.rowPinned,columnStart:i.column,columnEnd:d.column}),d}setCellRange(e){r1(this.gos)&&(this.removeAllCellRanges(!0),this.addCellRange(e))}setCellRanges(e){if(!yd(this.cellRanges,e)&&this.verifyCellRanges(this.gos)){this.removeAllCellRanges(!0);for(const t of e){if(t.columns&&t.startRow){const n=this.getColumnsFromModel(t.columns);if(!n||n.length===0)continue;t.columns=n;const{startRow:r}=t;this.setNewestRangeStartCell({rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:t.columns[0]})}this.cellRanges.push(t)}this.dispatchChangedEvent(!1,!0)}}clearCellRangeCellValues(e){const{beans:t,valueSvc:n,eventSvc:r}=this,{cellEventSource:i="rangeSvc",dispatchWrapperEvents:o,wrapperEventSource:a="deleteKey"}=e;let{cellRanges:s}=e;o&&(r.dispatchEvent({type:"cellSelectionDeleteStart",source:a}),r.dispatchEvent({type:"rangeDeleteStart",source:a})),s||(s=this.cellRanges),s.forEach(l=>{this.forEachRowInRange(l,c=>{const u=lp(t,c);if(u)for(let d=0;d<l.columns.length;d++){const p=this.getColumnFromModel(l.columns[d]);if(!p||!p.isCellEditable(u))continue;const h=n.getDeleteValue(p,u);u.setDataValue(p,h,i)}})}),o&&(r.dispatchEvent({type:"cellSelectionDeleteEnd",source:a}),r.dispatchEvent({type:"rangeDeleteEnd",source:a}))}createCellRangeFromCellRangeParams(e){return this.createPartialCellRangeFromRangeParams(e,!1)}createPartialCellRangeFromRangeParams(e,t){const{columns:n,columnStart:r,columnEnd:i,rowStartIndex:o,rowStartPinned:a,rowEndIndex:s,rowEndPinned:l}=e,c=this.getColumnsFromParams(n,r,i);if(!c||!t&&c.columns.length===0)return;const{columns:u,startsOnTheRight:d}=c,p=this.createRowPosition(o,a),h=this.createRowPosition(s,l);return{startRow:p,endRow:h,columns:u,startColumn:this.getColumnFromModel(r)??(d?zr(u):u[0])}}addCellRange(e){const t=this.gos;if(!r1(t)||!this.verifyCellRanges(t))return;this.setSelectionMode(!1);const n=this.createCellRangeFromCellRangeParams(e);n&&(n.startRow&&this.setNewestRangeStartCell({rowIndex:n.startRow.rowIndex,rowPinned:n.startRow.rowPinned,column:n.startColumn}),this.cellRanges.push(n),this.dispatchChangedEvent(!1,!0,n.id))}getCellRanges(){return this.cellRanges}isEmpty(){return this.cellRanges.length===0}isMoreThanOneCell(){const e=this.cellRanges.length;if(e===0)return!1;if(e>1)return!0;const t=this.cellRanges[0],n=this.getRangeStartRow(t),r=this.getRangeEndRow(t);return n.rowPinned!==r.rowPinned||n.rowIndex!==r.rowIndex||t.columns.length!==1}areAllRangesAbleToMerge(){const e=new Map;if(this.cellRanges.length<=1)return!0;this.cellRanges.forEach(r=>{this.forEachRowInRange(r,i=>{const o=`${i.rowPinned||"normal"}_${i.rowIndex}`,a=e.get(o),s=r.columns.map(l=>l.getId());if(a){const l=s.filter(c=>a.indexOf(c)===-1);a.push(...l)}else e.set(o,s)})});let n;for(const r of e.values()){const i=r.sort().join();if(n===void 0){n=i;continue}if(n!==i)return!1}return!0}removeAllCellRanges(e){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,e||this.dispatchChangedEvent(!1,!0))}isCellInAnyRange(e){return this.getCellRangeCount(e)>0}isCellInSpecificRange(e,t){const n=t.columns!==null&&t.columns.includes(e.column),r=this.isRowInRange(e.rowIndex,e.rowPinned,t);return n&&r}isBottomRightCell(e,t){const n=this.visibleCols.allCols,r=e.columns.map(c=>n.indexOf(c)).sort((c,u)=>c-u),{startRow:i,endRow:o}=e,a=t0(i,o)?o:i,s=n.indexOf(t.column)===zr(r),l=t.rowIndex===a.rowIndex&&zc(t.rowPinned)===zc(a.rowPinned);return s&&l}getCellRangeCount(e){return this.isEmpty()?0:this.cellRanges.filter(t=>this.isCellInSpecificRange(e,t)).length}isRowInRange(e,t,n){const r=this.getRangeStartRow(n),i=this.getRangeEndRow(n),o={rowIndex:e,rowPinned:t||null},a=o.rowIndex===r.rowIndex&&o.rowPinned==r.rowPinned,s=o.rowIndex===i.rowIndex&&o.rowPinned==i.rowPinned;if(a||s)return!0;const l=!t0(o,r),c=t0(o,i);return l&&c}intersectLastRange(e){if(e&&this.dragging||NH(this.gos)||this.isEmpty())return;const t=zr(this.cellRanges),n=this.getRangeStartRow(t),r=this.getRangeEndRow(t),i=[];this.cellRanges.slice(0,-1).forEach(o=>{const a=this.getRangeStartRow(o),s=this.getRangeEndRow(o),l=o.columns,c=l.filter(d=>t.columns.indexOf(d)===-1);if(c.length===l.length){i.push(o);return}if(t0(r,a)||t0(s,n)){i.push(o);return}const u=i.length;if(t0(a,n)){const d={columns:[...l],startColumn:t.startColumn,startRow:{...a},endRow:Sx(this.beans,n)};i.push(d)}if(c.length>0){const d={columns:c,startColumn:c.includes(t.startColumn)?t.startColumn:c[0],startRow:this.rowMax([{...n},{...a}]),endRow:this.rowMin([{...r},{...s}])};i.push(d)}t0(r,s)&&i.push({columns:[...l],startColumn:t.startColumn,startRow:Gp(this.beans,r),endRow:{...s}}),i.length-u===1&&(i[i.length-1].id=o.id)}),this.cellRanges=i,e&&this.dispatchChangedEvent(!1,!0)}createRangeHighlightFeature(e,t,n){e.createManagedBean(new tQt(t,n))}setSelectionMode(e){this.selectionMode=e?1:0}refreshRangeStart(e){const{startColumn:t,columns:n}=e,r=(l,c)=>{const u=e.columns.filter(d=>d!==l);l?(e.startColumn=l,e.columns=c?[l,...u]:[...u,l]):e.columns=u},{left:i,right:o}=this.getRangeEdgeColumns(e);if(t===n[0]&&t!==i){r(i,!0);return}if(t===zr(n)&&t===o){r(o,!1);return}}setNewestRangeStartCell(e){this.newestRangeStartCell=e}getColumnsFromParams(e,t,n){const r=!e&&!t&&!n;let i,o=!1;return r||e?i=this.getColumnsFromModel(r?void 0:e):t&&n&&(i=this.calculateColumnsBetween(t,n),i&&i.length&&(o=i[0]!==this.getColumnFromModel(t))),i?{columns:i,startsOnTheRight:o}:void 0}createRowPosition(e,t){return e!=null?{rowIndex:e,rowPinned:t}:void 0}verifyCellRanges(e){const t=mkt(e)&&NH(e)&&this.cellRanges.length>1;return t&&ut(93),!t}forEachRowInRange(e,t){const n=this.getRangeStartRow(e),r=this.getRangeEndRow(e);let i=n;for(;i&&(t(i),!$c(i,r));)i=Gp(this.beans,i)}onBodyScroll(){this.dragging&&this.lastMouseEvent&&this.onDragging(this.lastMouseEvent)}isLastCellOfRange(e,t){const{startRow:n,endRow:r}=e,i=t0(n,r)?r:n,o=t.rowIndex===i.rowIndex&&t.rowPinned===i.rowPinned,a=e.columns[0],s=zr(e.columns),l=e.startColumn===a?s:a;return t.column===l&&o}rowMax(e){let t;return e.forEach(n=>{(t===void 0||t0(t,n))&&(t=n)}),t}rowMin(e){let t;return e.forEach(n=>{(t===void 0||t0(n,t))&&(t=n)}),t}updateValuesOnMove(e){const t=dye(this.gos,e),n=t?.cellPosition;if(this.cellHasChanged=!1,!(!n||this.lastCellHovered&&g6(n,this.lastCellHovered))){if(t?.editing){this.dragSvc.cancelDrag(e);return}this.lastCellHovered&&(this.cellHasChanged=!0),this.lastCellHovered=n}}shouldSkipCurrentColumn(e){return p0(e)}dispatchChangedEvent(e,t,n){this.eventSvc.dispatchEvent({type:"cellSelectionChanged",started:e,finished:t,id:n}),this.eventSvc.dispatchEvent({type:"rangeSelectionChanged",started:e,finished:t,id:n})}getColumnFromModel(e){return typeof e=="string"?this.colModel.getCol(e):e}getColumnsFromModel(e){const{gos:t,visibleCols:n}=this,r=t.get("rowNumbers");(!e||this.selectionMode===1)&&(e=n.allCols);const i=[];for(const o of e){const a=this.getColumnFromModel(o);!a||r&&this.shouldSkipCurrentColumn(a)||i.push(a)}return i.length?i:void 0}calculateColumnsBetween(e,t){const n=this.visibleCols.allCols,r=this.getColumnFromModel(e),i=this.getColumnFromModel(t),o=r===i,a=n.indexOf(r);if(a<0){ut(178,{colId:r.getId()});return}const s=o?a:n.indexOf(i);if(s<0){ut(178,{colId:i.getId()});return}if(o||this.selectionMode===1)return this.getColumnsFromModel([r]);const l=Math.min(a,s),c=l===a?s:a,u=[];for(let d=l;d<=c;d++)u.push(n[d]);return this.getColumnsFromModel(u)}createDragListenerFeature(e){return new eQt(e)}createCellRangeFeature(e,t){return new JKt(e,t)}},Cit={moduleName:"CellSelection",version:wi,beans:[nQt],dynamicBeans:{fillHandle:WKt,rangeHandle:qKt},apiFunctions:{getCellRanges:jKt,addCellRange:HKt,clearRangeSelection:IRe,clearCellSelection:IRe},dependsOn:[es,RK,Eye],css:[BKt]},rQt={tag:"div",cls:"ag-loading",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},iQt=class extends Gt{constructor(){super(rQt),this.eLoadingIcon=at,this.eLoadingText=at}init(e){e.node.failedLoad?this.setupFailed():this.setupLoading()}setupFailed(){this.eLoadingText.textContent=this.getLocaleTextFunc()("loadingError","ERR")}setupLoading(){const e=er("groupLoading",this.beans,null);e&&this.eLoadingIcon.appendChild(e),this.eLoadingText.textContent=this.getLocaleTextFunc()("loadingOoo","Loading")}refresh(e){return!1}},oQt={tag:"div",cls:"ag-skeleton-container"},aQt=class extends Gt{constructor(){super(oQt)}init(e){const t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc(()=>Hx(e.eParentOfValue)),Hx(e.eParentOfValue,t),e.node.failedLoad?this.setupFailed():this.setupLoading(e)}setupFailed(){const e=this.getLocaleTextFunc();this.getGui().textContent=e("loadingError","ERR");const t=e("ariaSkeletonCellLoadingFailed","Row failed to load");Es(this.getGui(),t)}setupLoading(e){const t=Nr({tag:"div",cls:"ag-skeleton-effect"}),n=e.node.rowIndex;if(n!=null){const o=75+25*(n%2===0?Math.sin(n):Math.cos(n));t.style.width=`${o}%`}this.getGui().appendChild(t);const i=this.getLocaleTextFunc()("ariaSkeletonCellLoading","Row data is loading");Es(this.getGui(),i)}refresh(e){return!1}},sQt={moduleName:"LoadingCellRenderer",version:wi,userComponents:{agLoadingCellRenderer:iQt},icons:{groupLoading:"loading"},dependsOn:[es]},lQt={moduleName:"SkeletonCellRenderer",version:wi,userComponents:{agSkeletonCellRenderer:aQt},dependsOn:[es]};function cQt(e){return e.colModel.isPivotMode()}function uQt(e,t,n){return e.pivotResultCols?.lookupPivotResultCol(t,n)??null}function dQt(e,t){e.valueColsSvc?.setColumns(t,"api")}function pQt(e){return e.valueColsSvc?.columns??[]}function hQt(e,t){e.valueColsSvc?.removeColumns(t,"api")}function fQt(e,t){e.valueColsSvc?.addColumns(t,"api")}function gQt(e,t){e.pivotColsSvc?.setColumns(t,"api")}function mQt(e,t){e.pivotColsSvc?.removeColumns(t,"api")}function vQt(e,t){e.pivotColsSvc?.addColumns(t,"api")}function bQt(e){return e.pivotColsSvc?.columns??[]}function yQt(e,t){e.pivotResultCols?.setPivotResultCols(t,"api")}function MQt(e){const t=e.pivotResultCols?.getPivotResultCols();return t?t.list:null}var DRe="PivotRowTotal_",CQt=({headerName:e},{headerName:t})=>e&&!t?1:!e&&t?-1:!e&&!t?0:e<t?-1:e>t?1:0,xQt=e=>(t,n)=>e(t.headerName,n.headerName),wQt=class extends dt{constructor(){super(...arguments),this.beanName="pivotColDefSvc"}wireBeans(e){this.colModel=e.colModel,this.pivotColsSvc=e.pivotColsSvc,this.valueColsSvc=e.valueColsSvc,this.colNames=e.colNames}postConstruct(){const e=()=>this.gos.get("serverSidePivotResultFieldSeparator")??"_";this.fieldSeparator=e(),this.addManagedPropertyListener("serverSidePivotResultFieldSeparator",()=>{this.fieldSeparator=e()});const t=()=>this.gos.get("pivotDefaultExpanded");this.pivotDefaultExpanded=t(),this.addManagedPropertyListener("pivotDefaultExpanded",()=>{this.pivotDefaultExpanded=t()})}createPivotColumnDefs(e){const t=this.createPivotColumnsFromUniqueValues(e);function n(o,a=[]){return o.forEach(s=>{s.children!==void 0?n(s.children,a):a.push(s)}),a}const r=n(t);this.addRowGroupTotals(t,r),this.addExpandablePivotGroups(t,r),this.addPivotTotalsToGroups(t,r);const i=r.map(o=>({...o}));return{pivotColumnGroupDefs:t,pivotColumnDefs:i}}createPivotColumnsFromUniqueValues(e){const t=this.pivotColsSvc?.columns??[],n=t.length;return this.recursivelyBuildGroup(0,e,[],n,t)}recursivelyBuildGroup(e,t,n,r,i){if(e>=r)return this.buildMeasureCols(n);const{pivotComparator:o}=i[e].getColDef(),a=o?xQt(o):CQt,s=this.valueColsSvc?.columns;if(s?.length===1&&this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&e===r-1){const c=[];for(const u of t.keys()){const d=[...n,u],p=this.createColDef(s[0],u,d);p.columnGroupShow="open",c.push(p)}return c.sort(a),c}const l=[];for(const c of t.keys()){const u=this.pivotDefaultExpanded===-1||e<this.pivotDefaultExpanded,d=[...n,c];l.push({children:this.recursivelyBuildGroup(e+1,t.get(c),d,r,i),headerName:c,pivotKeys:d,columnGroupShow:"open",openByDefault:u,groupId:this.generateColumnGroupId(d)})}return l.sort(a),l}buildMeasureCols(e){const t=this.valueColsSvc?.columns??[];return t.length===0?[this.createColDef(null,"-",e)]:t.map(n=>{const r=this.colNames.getDisplayNameForColumn(n,"header");return{...this.createColDef(n,r,e),columnGroupShow:"open"}})}addExpandablePivotGroups(e,t){const n=this.gos.get("suppressExpandablePivotGroups");if(n||this.gos.get("pivotColumnGroupTotals"))return;const r=(i,o,a)=>{if("children"in i){const{valueColsSvc:c}=this,{columns:u=[]}=c??{},d=new Map;i.children.forEach(g=>{r(g,o,d)});const p=!i.children.some(g=>g.children),h=p&&u.length===1&&this.gos.get("removePivotHeaderRowWhenSingleValueColumn");u.forEach(g=>{const m=this.colNames.getDisplayNameForColumn(g,"header"),v=this.createColDef(g,m,i.pivotKeys);v.pivotTotalColumnIds=d.get(g.getColId()),v.columnGroupShow=n?"open":"closed",v.aggFunc=g.getAggFunc(),(!p||h)&&(i.children.push(v),o.push(v))}),this.merge(a,d);return}if(!i.pivotValueColumn)return;const s=i.pivotValueColumn.getColId();a.has(s)?a.get(s).push(i.colId):a.set(s,[i.colId])};e.forEach(i=>{r(i,t,new Map)})}addPivotTotalsToGroups(e,t){if(!this.gos.get("pivotColumnGroupTotals"))return;const n=this.gos.get("pivotColumnGroupTotals")==="after",r=this.valueColsSvc?.columns,i=r?.map(o=>o.getAggFunc());if(!(!i||i.length<1||!this.sameAggFuncs(i))&&r){const o=r[0];e.forEach(a=>{this.recursivelyAddPivotTotal(a,t,o,n)})}}recursivelyAddPivotTotal(e,t,n,r){const i=e;if(!i.children){const a=e;return a.colId?[a.colId]:null}let o=[];if(i.children.forEach(a=>{const s=this.recursivelyAddPivotTotal(a,t,n,r);s&&(o=o.concat(s))}),i.children.length>1){const s=this.getLocaleTextFunc()("pivotColumnGroupTotals","Total"),l=this.createColDef(n,s,e.pivotKeys,!0);l.pivotTotalColumnIds=o,l.aggFunc=n.getAggFunc(),l.columnGroupShow=this.gos.get("suppressExpandablePivotGroups")?"open":void 0;const c=e.children;r?c.push(l):c.unshift(l),t.push(l)}return o}addRowGroupTotals(e,t){if(!this.gos.get("pivotRowTotals"))return;const n=this.gos.get("pivotRowTotals")==="after",i=(this.valueColsSvc?.columns??[]).slice();n||i.reverse();const o=i.length>1||!this.gos.get("removePivotHeaderRowWhenSingleValueColumn");for(let a=0;a<i.length;a++){const s=i[a],l=this.colNames.getDisplayNameForColumn(s,"header"),c=this.createColDef(s,l,[]),u=[];for(let p=0;p<t.length;p++){const h=t[p];h.pivotValueColumn===s&&u.push(h.colId)}c.pivotTotalColumnIds=u,c.colId=DRe+c.colId;const d=o?{children:[c],pivotKeys:[],groupId:`${DRe}_pivotGroup_${s.getColId()}`}:c;t.push(c),n?e.push(d):e.unshift(d)}}createColDef(e,t,n,r=!1){const i={};if(e){const o=e.getColDef();Object.assign(i,o),i.hide=!1}return i.headerName=t,i.colId=this.generateColumnId(n||[],e&&!r?e.getColId():""),i.field=i.colId,i.valueGetter=o=>o.data?.[o.colDef.field],i.pivotKeys=n,i.pivotValueColumn=e,i.filter===!0&&(i.filter="agNumberColumnFilter"),i}sameAggFuncs(e){if(e.length==1)return!0;for(let t=1;t<e.length;t++)if(e[t]!==e[0])return!1;return!0}merge(e,t){t.forEach((n,r)=>{const o=[...e.has(r)?e.get(r):[],...n];e.set(r,o)})}generateColumnGroupId(e){return`pivotGroup_${(this.pivotColsSvc?.columns??[]).map(n=>n.getColId()).join("-")}_${e.join("-")}`}generateColumnId(e,t){return`pivot_${(this.pivotColsSvc?.columns??[]).map(r=>r.getColId()).join("-")}_${e.join("-")}_${t}`}createColDefsFromFields(e){const t=new Map;for(let i=0;i<e.length;i++){const a=e[i].split(this.fieldSeparator);let s=t;for(let l=0;l<a.length;l++){const c=a[l];let u=s.get(c);u||(u=new Map,s.set(c,u)),s=u}}const n=(i,o,a,s)=>{const l=[];for(const[d,p]of a){const h=n(`${i}${this.fieldSeparator}${d}`,d,p,s+1);l.push(h)}if(l.length===0){const d=this.colModel.getColDefCol(o);if(d){const h=this.colNames.getDisplayNameForColumn(d,"header")??o,g=this.createColDef(d,h,void 0,!1);return g.colId=i,g.aggFunc=d.getAggFunc(),g.valueGetter=m=>m.data?.[i],g}return{colId:i,headerName:o,valueGetter:h=>h.data?.[i]}}return this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&l.length===1&&"colId"in l[0]?(l[0].headerName=o,l[0]):{openByDefault:this.pivotDefaultExpanded===-1||s<this.pivotDefaultExpanded,groupId:i,headerName:o,children:l}},r=[];for(const[i,o]of t){const a=n(i,i,o,0);r.push(a)}return r}},SQt=class extends dt{constructor(){super(...arguments),this.beanName="pivotResultCols"}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols}destroy(){zb(this.beans,this.pivotResultCols?.tree),super.destroy()}isPivotResultColsPresent(){return this.pivotResultCols!=null}lookupPivotResultCol(e,t){if(this.pivotResultCols==null)return null;const n=this.colModel.getColDefCol(t);let r=null;return this.pivotResultCols.list.forEach(i=>{const o=i.getColDef().pivotKeys,a=i.getColDef().pivotValueColumn;yd(o,e)&&a===n&&(r=i)}),r}getPivotResultCols(){return this.pivotResultCols}getPivotResultCol(e){return this.pivotResultCols?this.colModel.getColFromCollection(e,this.pivotResultCols):null}setPivotResultCols(e,t){if(this.colModel.ready&&!(e==null&&this.pivotResultCols==null)){if(e){this.processPivotResultColDef(e);const r=(t==="api"?Ret:_kt)(this.beans,e,!1,this.pivotResultCols?.tree||this.previousPivotResultCols||void 0,t);zb(this.beans,this.pivotResultCols?.tree,r.columnTree);const i=r.columnTree,o=r.treeDepth,a=nye(i),s={};this.pivotResultCols={tree:i,treeDepth:o,list:a,map:s},this.pivotResultCols.list.forEach(c=>this.pivotResultCols.map[c.getId()]=c);const l=!!this.previousPivotResultCols;this.previousPivotResultCols=null,this.colModel.refreshCols(!l)}else this.previousPivotResultCols=this.pivotResultCols?this.pivotResultCols.tree:null,this.pivotResultCols=null,this.colModel.refreshCols(!1);this.visibleCols.refresh(t)}}processPivotResultColDef(e){const t=this.gos.get("processPivotResultColDef"),n=this.gos.get("processPivotResultColGroupDef");if(!t&&!n)return;const r=i=>{i.forEach(o=>{if(Ut(o.children)){const s=o;n&&n(s),r(s.children)}else t&&t(o)})};e&&r(e)}},kRe="Exceeded maximum allowed pivot column count.",UG=e=>{const t={};return e.forEach((n,r)=>t[r]=n instanceof Map?UG(n):n),t},AQt=class extends dt{constructor(){super(...arguments),this.beanName="pivotStage",this.refreshProps=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),this.step="pivot",this.uniqueValues=new Map,this.lastTimeFailed=!1,this.maxUniqueValues=-1,this.currentUniqueCount=0}wireBeans(e){this.valueSvc=e.valueSvc,this.colModel=e.colModel,this.pivotResultCols=e.pivotResultCols,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueColsSvc=e.valueColsSvc,this.pivotColsSvc=e.pivotColsSvc,this.pivotColDefSvc=e.pivotColDefSvc}execute(e){const t=e.changedPath;this.colModel.isPivotActive()?this.executePivotOn(t):this.executePivotOff(t)}executePivotOff(e){this.aggregationColumnsHashLastTime=null,this.uniqueValues=new Map,this.pivotResultCols.isPivotResultColsPresent()&&(this.pivotResultCols.setPivotResultCols(null,"rowModelUpdated"),e&&(e.active=!1))}executePivotOn(e){const t=this.valueColsSvc?.columns.length??1,n=this.gos.get("pivotMaxGeneratedColumns");this.maxUniqueValues=n===-1?-1:n/t;let r;try{r=this.bucketUpRowNodes(e)}catch(y){if(y.message===kRe){this.pivotResultCols.setPivotResultCols([],"rowModelUpdated"),this.eventSvc.dispatchEvent({type:"pivotMaxColumnsExceeded",message:y.message}),this.lastTimeFailed=!0;return}throw y}const i=this.setUniqueValues(r),o=this.valueColsSvc?.columns??[],a=o.map(y=>`${y.getId()}-${y.getColDef().headerName}`).join("#"),s=o.map(y=>y.getAggFunc().toString()).join("#"),l=this.aggregationColumnsHashLastTime!==a,c=this.aggregationFuncsHashLastTime!==s;this.aggregationColumnsHashLastTime=a,this.aggregationFuncsHashLastTime=s;const u=(this.rowGroupColsSvc?.columns??[]).map(y=>y.getId()).join("#"),d=u!==this.groupColumnsHashLastTime;this.groupColumnsHashLastTime=u;const p=this.gos.get("pivotRowTotals"),h=this.gos.get("pivotColumnGroupTotals"),g=this.gos.get("suppressExpandablePivotGroups"),m=this.gos.get("removePivotHeaderRowWhenSingleValueColumn"),v=p!==this.pivotRowTotalsLastTime||h!==this.pivotColumnGroupTotalsLastTime||g!==this.suppressExpandablePivotGroupsLastTime||m!==this.removePivotHeaderRowWhenSingleValueColumnLastTime;if(this.pivotRowTotalsLastTime=p,this.pivotColumnGroupTotalsLastTime=h,this.suppressExpandablePivotGroupsLastTime=g,this.removePivotHeaderRowWhenSingleValueColumnLastTime=m,this.lastTimeFailed||i||l||d||c||v){const{pivotColumnGroupDefs:y,pivotColumnDefs:M}=this.pivotColDefSvc.createPivotColumnDefs(this.uniqueValues);this.pivotColumnDefs=M,this.pivotResultCols.setPivotResultCols(y,"rowModelUpdated"),e&&(e.active=!1)}this.lastTimeFailed=!1}setUniqueValues(e){const t=JSON.stringify(UG(this.uniqueValues)),n=JSON.stringify(UG(e));return t!==n?(this.uniqueValues=e,!0):!1}bucketUpRowNodes(e){this.currentUniqueCount=0;const t=new Map;e.forEachChangedNodeDepthFirst(r=>{r.leafGroup&&(r.childrenMapped=null)});const n=r=>{r.leafGroup?this.bucketRowNode(r,t):r.childrenAfterFilter?.forEach(n)};return e.executeFromRootNode(n),t}bucketRowNode(e,t){const n=this.pivotColsSvc?.columns;n?.length===0?e.childrenMapped=null:e.childrenMapped=UG(this.bucketChildren(e.childrenAfterFilter,n,0,t)),e.sibling&&(e.sibling.childrenMapped=e.childrenMapped)}bucketChildren(e,t=[],n,r){const i=new Map,o=t[n];if(e.forEach(s=>{let l=this.valueSvc.getKeyForNode(o,s);if(Yi(l)&&(l=""),!r.get(l)){this.currentUniqueCount+=1,r.set(l,new Map);const c=this.maxUniqueValues!==-1,u=this.currentUniqueCount>this.maxUniqueValues;if(c&&u)throw Error(kRe)}i.has(l)||i.set(l,[]),i.get(l).push(s)}),n===t.length-1)return i;const a=new Map;for(const s of i.keys())a.set(s,this.bucketChildren(i.get(s),t,n+1,r.get(s)));return a}getPivotColumnDefs(){return this.pivotColumnDefs}},xit={moduleName:"SharedPivot",version:wi,beans:[SQt,wQt,oit],apiFunctions:{isPivotMode:cQt,getPivotResultColumn:uQt,setValueColumns:dQt,getValueColumns:pQt,removeValueColumns:hQt,addValueColumns:fQt,setPivotColumns:gQt,removePivotColumns:mQt,addPivotColumns:vQt,getPivotColumns:bQt,setPivotResultColumns:yQt,getPivotResultColumns:MQt},dependsOn:[fit,Qtt]},OQt={moduleName:"Pivot",version:wi,rowModels:["clientSide"],beans:[AQt],dependsOn:[xit,git,FK]},zQt=(e,t)=>e.treeNode.sourceIdx-t.treeNode.sourceIdx,TQt=my.values(),EQt=class Ihe{constructor(t,n){this.parent=t,this.key=n,this.children=null,this.invalidatedHead=null,this.invalidatedNext=void 0,this.row=null,this.oldRow=null,this.duplicateRows=null,this.childrenAfterGroup=my,this.allLeafChildren=null,this.childrenChanged=!1,this.leafChildrenChanged=!1,this.sourceIdx=-1}get size(){return this.children?.size??0}isEmptyFillerNode(){return!this.row?.data&&!this.children?.size}enumChildren(){return this.children?.values()??TQt}upsertKey(t){typeof t!="string"&&(t=String(t));let n=this.children?.get(t);return n||(n=new Ihe(this,t),(this.children??(this.children=new Map))?.set(n.key,n)),n}appendKey(t){const n=this.children;typeof t!="string"&&(t=String(t));let r=n?.get(t);return r?(n.delete(t),n.set(t,r)):(r=new Ihe(this,t),(this.children??(this.children=new Map))?.set(r.key,r)),r}destroy(){const{row:t,parent:n}=this;t!==null&&t.treeNode===this&&(t.treeNode=null),n!==null&&(this.parent=null,n.children?.delete(this.key))}setRow(t){const n=this.row;return n===t?!1:(n!==null&&(n.treeNode=null),t!==null&&(t.treeNode=this),this.row=t,!0)}removeRow(t){const{row:n,duplicateRows:r}=this;if(n===t){if(this.row=null,r!==null)for(const i of r){this.row=i,r.delete(i);break}}else if(!r?.delete(t))return!1;return r?.size===0&&(this.duplicateRows=null),t.treeNode=null,!0}addDuplicateRow(t){let n=this.duplicateRows;if(n===null)n=new Set,this.duplicateRows=n;else if(n.has(t))return!1;return n.add(t),t.treeNode=this,t.childrenAfterGroup=my,t.allLeafChildren=null,!0}sortFirstDuplicateRow(){const t=this.duplicateRows,n=this.row;if(!n||!t)return n;let r=n;for(const i of t)i.sourceRowIndex<r.sourceRowIndex&&(r=i);return r!==n&&(t.delete(r),t.add(n),this.row=r),r}dequeueInvalidated(){for(;;){const t=this.invalidatedHead;if(!t)return null;if(this.invalidatedHead=t.invalidatedNext??null,t.parent===this)return t.invalidatedNext=void 0,t}}invalidate(){let t=this,n=this.parent;for(;n!==null&&t.invalidatedNext===void 0;)t.invalidatedNext=n.invalidatedHead,n.invalidatedHead=t,t=n,n=t.parent}invalidateOrder(){const t=this.parent;!t||t.childrenChanged||((t.children?.size??0)>1||(this.children?.size??0)>1||!t.row?.data)&&(t.childrenChanged=!0,t.invalidate())}getNewSourceIdx(){const t=this.row;return t?.data?t.sourceRowIndex:this.childrenAfterGroup[0]?.treeNode?.sourceIdx??this.sourceIdx}updateChildrenAfterGroup(t,n){this.childrenChanged=!1;const r=t&&this.children?.size;if(!r)return this.childrenAfterGroup.length===0?!1:(this.childrenAfterGroup=n?[]:my,this.leafChildrenChanged=!0,!0);let i=!1,o=this.childrenAfterGroup;o===my?(o=new Array(r),this.childrenAfterGroup=o,i=!0):o.length!==r&&(o.length=r,i=!0);let a=0,s=-1,l=!1;for(const c of this.enumChildren()){const u=c.getNewSourceIdx();u<s&&(l=!0),s=u,c.sourceIdx=u;const d=c.row;o[a]!==d&&(o[a]=d,i=!0),++a}return i&&(this.leafChildrenChanged=!0),l&&this.reorderChildrenList(o),i||l}reorderChildrenList(t){const n=t.length,r=this.children;t.sort(zQt),r.clear();for(let i=0;i<n;++i){const o=t[i].treeNode;r.set(o.key,o)}}updateAllLeafChildren(){const{parent:t,childrenAfterGroup:n}=this;this.leafChildrenChanged=!1;let r=!1;const i=n.length;if(i===0)this.allLeafChildren&&(r||(r=this.allLeafChildren.length!==0),this.allLeafChildren=null);else{const o=this.allLeafChildren??(this.allLeafChildren=[]),a=o.length;let s=0;for(let l=0;l<i;++l){const c=n[l],u=c.treeNode?.allLeafChildren,d=u?.length;if(c.data&&((s>=a||o[s]!==c)&&(o[s]=c,r=!0),++s),d)for(let p=0;p<d;++p){const h=u[p];(s>=a||o[s]!==h)&&(o[s]=h,r=!0),++s}}a!==s&&(o.length=s,r=!0)}r&&t&&(t.leafChildrenChanged=!0)}},RQt=e=>(e.treeNodeFlags&1)!==0,wit=e=>(e.treeNodeFlags&2)!==0,LRe=e=>(e.treeNodeFlags&4)!==0,IQt=e=>(e.treeNodeFlags&8)!==0,_Re=e=>(e.treeNodeFlags&16)!==0,NRe=(e,t)=>{t?e.treeNodeFlags|=2:e.treeNodeFlags&=-3},PQt=e=>{const t=e.treeNodeFlags;(t&1)!==0&&(e.treeNodeFlags=t|4)},DQt=e=>{const t=e.treeNodeFlags;(t&1)!==0&&(e.treeNodeFlags=t|12)},N2=e=>{e&&(e.treeNodeFlags|=16)},FRe=e=>{const t=e.level<0,n=e.treeNodeFlags,r=(n&1)!==0;if(e.treeNodeFlags=1|n&-29,!r||t){const i=e.childrenAfterGroup;e.childrenAfterFilter=i,e.childrenAfterAggFilter=i,e.childrenAfterSort=i}if(t){const i=e.sibling;i&&(i.childrenAfterGroup=e.childrenAfterGroup,i.childrenMapped=e.childrenMapped)}},e4=e=>{e.treeNodeFlags=0},kQt=(e,t,n)=>{if(t!==n&&t!==null&&t.group&&wit(t)&&!e.isGroupOpenByDefault)return t.expanded;const r=e.isGroupOpenByDefault;return r?r({rowNode:n,field:n.field,key:n.key,level:n.level,rowGroupColumn:n.rowGroupColumn})==!0:e.expandByDefault===-1||n.level<e.expandByDefault},Sit=class extends _tt{constructor(){super(...arguments),this.oldGroupDisplayColIds="",this.rowsPendingDestruction=null,this.treeCommitPending=!0,this.treeRoot=null}activate(e){super.activate(e),this.treeSetRootNode(e),this.treeCommitPending=!0}treeSetRootNode(e){let t=this.treeRoot;t||(t=new EQt(null,""),t.childrenChanged=!0,this.treeRoot=t),t.row=e,e.treeNode=t}destroy(){super.destroy(),this.treeRoot=null,this.rowsPendingDestruction=null,this.oldGroupDisplayColIds=""}deactivate(){const{treeRoot:e,rootNode:t}=this;e&&(t&&e.removeRow(t),this.treeDestroy(e),e.destroy()),t&&e4(t),this.commitDestroyedRows(),super.deactivate(),this.treeRoot=null,this.oldGroupDisplayColIds=""}treeSetRow(e,t,n){const r=e.row;if(e===this.treeRoot)return!1;let i=!1;if(r!==t){const o=t.treeNode;o!==null&&o!==e&&(o.removeRow(t),o.invalidate()),r===null?(e.setRow(t),i=!0):r.data?e.addDuplicateRow(t)&&(i=!0):(e.setRow(t),this.destroyRow(r,!0),i=!0)}return!n&&!LRe(t)&&(PQt(t),i=!0),i&&e.invalidate(),this.rowsPendingDestruction?.delete(t),i}treeRemove(e,t){if(e===this.treeRoot)return;let n=!1;if(e.removeRow(t)){const r=e.parent;r&&(r.childrenChanged=!0),this.destroyRow(t,!t.data),n=!0}n&&e.invalidate()}treeCommit(e){const{treeRoot:t,rootNode:n}=this;if(!t||!n)return;this.treeCommitPending=!1;const r=this.treeData,i=e?.active?e:null,o={rootNode:n,activeChangedPath:i,treeData:r,expandByDefault:this.gos.get("groupDefaultExpanded"),isGroupOpenByDefault:this.gos.getCallback("isGroupOpenByDefault")};this.treeCommitChildren(o,t,!1,0);const a=t.row;a&&(r&&(a.leafGroup=!1),t.childrenChanged&&t.updateChildrenAfterGroup(r,!0)&&N2(a),(r||!i)&&(a.childrenAfterGroup=t.childrenAfterGroup),i&&_Re(a)&&i.addParentNode(a),FRe(a),a.updateHasChildren()),this.commitDestroyedRows(),r&&this.beans.selectionSvc?.updateSelectableAfterGrouping(e)}treeCommitChildren(e,t,n,r){for(;;){const i=t.dequeueInvalidated();if(i===null)break;i.parent===t&&this.treeCommitChild(e,i,n||!(t.row?.expanded??!0),r)}t.childrenChanged||(t.childrenChanged=(e.treeData?t.size:0)!==t.row.childrenAfterGroup?.length)}treeCommitChild(e,t,n,r){if(t.isEmptyFillerNode()){this.treeClear(t);return}if(this.treeCommitPreOrder(e,t,r),this.treeCommitChildren(e,t,n,r+1),t.isEmptyFillerNode()){this.treeClear(t);return}this.treeCommitPostOrder(e,t,n)}treeCommitPreOrder(e,t,n){let r=t.row;if(r===null?(r=this.createFillerRow(t,n),t.setRow(r)):(r=t.sortFirstDuplicateRow(),r.allChildrenCount===void 0&&(r.allChildrenCount=null)),e.treeData){if(r.level=n,r.parent=t.parent.row,t.oldRow!==r)for(const o of t.enumChildren()){const a=o.row;a!==null&&(a.parent=r)}const i=t.key;r.key!==i?(r.key=i,DQt(r),this.setGroupData(r,i)):r.groupData||this.setGroupData(r,i)}else e.activeChangedPath||(r.level=0,r.parent=e.rootNode,r.key=t.key)}treeCommitPostOrder(e,t,n){const r=t.parent,i=t.row,o=t.oldRow,a=i.group;if(t.childrenChanged&&t.updateChildrenAfterGroup(e.treeData,!1)&&N2(i),t.leafChildrenChanged&&t.updateAllLeafChildren(),e.treeData||!e.activeChangedPath){i.childrenAfterGroup=t.childrenAfterGroup,i.allLeafChildren=t.allLeafChildren;const c=t.childrenAfterGroup.length>0,u=c||!i.data;a!==u?(N2(i),Gye(i,this.beans,u),!u&&!i.expanded&&NRe(i,!1)):i.hasChildren()!==c&&(N2(i),i.updateHasChildren()),u&&!wit(i)&&(i.expanded=kQt(e,o,i),NRe(i,!0)),LRe(i)&&(N2(r.row),IQt(i)&&i.setData(i.data))}o!==i&&(t.oldRow=i,o!==null&&(a||t.size!==0)&&N2(i),r.childrenChanged=!0,N2(r.row)),_Re(i)&&(this.treeData?e.activeChangedPath?.addParentNode(i):N2(e.rootNode)),FRe(i),t.duplicateRows?.size&&!t.duplicateRowsWarned&&(t.duplicateRowsWarned=!0,ut(186,{rowId:i.id,rowData:i.data,duplicateRowsData:Array.from(t.duplicateRows).map(c=>c.data)})),n&&i.rowIndex!==null&&i.clearRowTopAndRowIndex();const s=t.getNewSourceIdx(),l=t.sourceIdx;l!==s&&(t.sourceIdx=s,l!==-1&&(r.childrenChanged=!0))}createFillerRow(e,t){const n=new vp(this.beans);n.key=e.key,n.group=!0,n.field=null,n.leafGroup=!1,n.rowGroupIndex=null,n.allChildrenCount=null;let r=t+"-"+e.key,i=e.parent;for(;i!==null;){const o=i.parent;if(o===null)break;--t,r=`${t}-${i.key}-${r}`,i=o}return n.id=pW+r,n}setGroupData(e,t){e.groupValue=t;const n={};e.groupData=n;const r=this.beans.showRowGroupCols?.getShowRowGroupCols();if(r)for(const i of r)n[i.getColId()]=t}treeClear(e){const{parent:t,oldRow:n}=e;if(t!==null&&n!==null&&(t.childrenChanged=!0,t.row!==null&&N2(t.row)),e!==this.treeRoot){let r=e.row;for(;r!==null&&e.removeRow(r);)this.destroyRow(r,!r.data),r=e.row}for(const r of e.enumChildren())this.treeClear(r);e.destroy()}treeDestroy(e){const{row:t,duplicateRows:n}=e;if(t&&(e!==this.treeRoot&&!t.data?this.destroyRow(t,!0):e4(t)),n)for(const r of n)e!==this.treeRoot&&!r.data?this.destroyRow(r,!0):e4(r);for(const r of e.enumChildren())this.treeDestroy(r);e.destroy()}destroyRow(e,t){if(e.isSelected())t=!1;else if(!RQt(e)){e4(e);return}if(!t){(this.rowsPendingDestruction??(this.rowsPendingDestruction=new Set)).add(e);return}e4(e),e.clearRowTopAndRowIndex(),e.groupData=null}commitDestroyedRows(){const{rowsPendingDestruction:e}=this;let t=null;if(e!==null){for(const n of e)this.destroyRow(n,!0),n.isSelected()&&(t??(t=[])).push(n);this.rowsPendingDestruction=null}t&&this.deselectNodes(t)}refreshModel(e,t){if(t&&this.treeCommitPending&&this.treeCommit(e.changedPath),!!e.afterColumnsChanged)if(this.treeData){const n=this.beans.showRowGroupCols?.getShowRowGroupCols()?.map(r=>r.getId()).join("-")??"";if(this.oldGroupDisplayColIds!==n){this.oldGroupDisplayColIds=n;const r=this.rootNode?.childrenAfterGroup;if(r)for(let i=0,o=r.length??0;i<o;++i){const a=r[i],s=a.treeNode;s&&this.setGroupData(a,s.key)}}}else this.oldGroupDisplayColIds=""}},LQt=e=>{if(typeof e!="string"||!e.length)return[];const t=e.split(".");return t.includes("__proto__")?[]:t},Ait=e=>{const t=LQt(e);let n=null;const r=t.length-1;return r===0?n=i=>i?.[e]:r>0?n=i=>{let o=i;for(let a=0;a<=r&&o!==null&&o!==void 0;++a)if(o=o[t[a]],a<r&&typeof o!="object"&&o!==void 0)return null;return o}:n=()=>{},n.path=e,n},_Qt=class extends Sit{constructor(){super(...arguments),this.beanName="csrmChildrenTreeNodeSvc",this.childrenGetter=null}get treeData(){return this.gos.get("treeData")}extractRowData(){const e=this.treeRoot;return e&&Array.from(e.enumChildren(),t=>t.row.data)}destroy(){super.destroy(),this.childrenGetter=null}activate(e){const t=this.childrenGetter,n=this.gos.get("treeDataChildrenField");(!t||t.path!==n)&&(this.childrenGetter=Ait(n)),super.activate(e)}updateRowData(e,t){return ut(268),{changedRowNodes:t,rowNodeTransaction:{add:[],remove:[],update:[]},rowsInserted:!1}}loadNewRowData(e){const t=this.treeRoot,n=this.rootNode,r=this.childrenGetter,i=new Map,o=[];n.allLeafChildren=o,this.treeClear(t),this.treeSetRootNode(n);const a=(s,l)=>{let c=i.get(l);if(c!==void 0){pi(2,{nodeId:c.id});return}c=this.createRowNode(l,o.length),i.set(l,c),o.push(c),s=s.upsertKey(c.id),this.treeSetRow(s,c,!0);const u=r?.(l);if(u)for(let d=0,p=u.length;d<p;++d)a(s,u[d])};for(let s=0,l=e.length;s<l;++s)a(t,e[s]);this.treeCommitPending=!0}setImmutableRowData(e,t){this.dispatchRowDataUpdateStartedEvent(t);const n=this.gos,r=this.treeRoot,i=this.rootNode,o=this.childrenGetter,a=qy(n),s=!n.get("suppressMaintainUnsortedOrder"),l=new Map,c=new Mz(!1,i);e.changedPath=c;const u=e.changedRowNodes,d=i.allLeafChildren,p=[],h=[];let g=!1,m=!1;const M=s?(w,S,A)=>{const z=S?.length;let O=!0,T=-1;for(let I=0;I<z;++I){const P=C(w,S[I],A);P>=0&&(P<T&&(O=!1),T=P)}O||(g=!0,w.childrenChanged||(w.childrenChanged=!0,w.invalidate()))}:(w,S,A)=>{for(let z=0,O=S.length;z<O;++z)C(w,S[z],A)},C=(w,S,A)=>{let z=l.get(S);if(z!==void 0)return ut(2,{nodeId:z.id}),-1;const O=a({data:S,level:A});let T=!1;z=this.getRowNode(O),z?z.data!==S&&(u.update(z),z.updateData(S),!z.selectable&&z.isSelected()&&h.push(z)):(z=this.createRowNode(S,-1),u.add(z),T=!0),l.set(S,z);let I,P;s?(P=w.appendKey(z.id),I=z.sourceRowIndex,z.sourceRowIndex=p.push(z)-1):(P=w.upsertKey(z.id),I=-1),this.treeSetRow(P,z,T)&&(m=!0);const N=o?.(S);return N&&M(P,N,A+1),I};if(M(r,t,0),d)for(let w=0,S=d.length;w<S;++w){const A=d[w],z=A.treeNode;if(z){const O=A.data;O&&!l.has(O)&&(A.pinnedSibling&&this.beans.pinnedRowModel?.pinRow(A.pinnedSibling,null),u.remove(A),this.treeRemove(z,A))}}if(!s){const w=S=>{for(const A of S.enumChildren()){const z=A.row;z&&(z.sourceRowIndex=p.push(z)-1,w(A))}};w(r)}i.allLeafChildren=p,r.allLeafChildren=p,h.length&&this.deselectNodes(h),this.treeCommitPending=!0;const x=i.sibling;x&&(x.allLeafChildren=p),(m||g)&&(e.rowDataUpdated=!0,e.rowNodesOrderChanged||(e.rowNodesOrderChanged=g))}refreshModel(e,t){const n=this.rootNode;if(n&&e.changedProps?.has("treeData")&&!e.newData){this.treeSetRootNode(n);const r=this.treeRoot,i=n.allLeafChildren;if(i)for(let o=0,a=i.length;o<a;++o){const s=i[o];s.groupData=null,s.treeNode?.invalidate()}r.childrenChanged=!0,this.treeCommitPending=!0}super.refreshModel(e,t)}},NQt=class extends Sit{constructor(){super(...arguments),this.beanName="csrmPathTreeNodeSvc"}loadNewRowData(e){const t=this.rootNode,n=this.treeRoot;this.treeClear(n),this.treeSetRootNode(t),super.loadNewRowData(e);const r=t.allLeafChildren,i=this.gos.get("getDataPath");for(let o=0,a=r.length;o<a;++o)this.addOrUpdateRow(i,r[o],!0);this.treeCommitPending=!0}get treeData(){const e=this.gos;return e.get("treeData")&&!!e.get("getDataPath")}refreshModel(e,t){const n=e.changedRowNodes;n&&this.executeTransactions(n,e.rowNodesOrderChanged),super.refreshModel(e,t)}executeTransactions(e,t){const n=this.treeRoot;if(!n)return;this.treeSetRootNode(this.rootNode);for(const o of e.removals){const a=o.treeNode;a&&this.treeRemove(a,o)}const r=this.gos.get("getDataPath");for(const o of e.updates)this.addOrUpdateRow(r,o,!1);for(const o of e.adds)this.addOrUpdateRow(r,o,!0);const i=n.row?.allLeafChildren;if(t&&i)for(let o=0,a=i.length;o<a;++o){const s=i[o].treeNode;s&&s.sourceIdx!==o&&s.invalidateOrder()}this.treeCommitPending=!0}addOrUpdateRow(e,t,n){const r=this.treeRoot;if(!this.treeData){this.treeSetRow(r.upsertKey(t.id),t,n);return}const i=e?.(t.data),o=i?.length;if(!o)ut(185,{data:t.data});else{let a=0,s=r;do s=s.upsertKey(i[a++]);while(a<o);this.treeSetRow(s,t,n)}}},F$=2147483648,Kye=1073741824,QH=536870912,W$=536870911,FQt=class extends dt{constructor(){super(...arguments),this.parentIdGetter=null,this.oldGroupDisplayColIds=null}destroy(){super.destroy(),this.parentIdGetter=null,this.oldGroupDisplayColIds=null}execute(e){const t=e.rowNode;let n=!e.changedRowNodes,r=t.childrenAfterGroup;(!r||r===t.allLeafChildren)&&(n=!0,t.childrenAfterGroup=r=[]);let i=!1;(e.afterColumnsChanged||this.oldGroupDisplayColIds===null)&&(i=this.updateGroupDisplayColsIds());let o=this.parentIdGetter;const a=this.gos.get("treeDataParentIdField");(!o||o.path!==a)&&(o=Ait(a));const s=!this.gos.get("getRowId");s||VQt(this.beans.rowModel,e,o,n),r.length=t.treeNodeFlags&W$,t.treeNodeFlags=0;const l=this.gos.get("groupDefaultExpanded"),c=this.gos.getCallback("isGroupOpenByDefault"),u=e.changedPath?.active?e.changedPath:void 0;let d=0;const p=(h,g)=>{++d;let m=h.treeNodeFlags;const v=h.childrenAfterGroup??(h.childrenAfterGroup=my),y=m&W$;let M=(m&Kye)!==0;v.length!==y&&(v.length=y,M=!0);let C=M||(m&F$)!==0,x=M;h.treeNodeFlags=m&QH,h.level=g++;let w=0;for(let T=0;T<y;++T){const I=v[T];p(I,g)&&(x=!0),w+=(I.allLeafChildren?.length??0)+1}let S=h.allLeafChildren;(S===v||S===void 0)&&(S=h.allLeafChildren=null),(x||(S?.length??0)!==w)&&(x=jQt(h,S,w));const A=h.id;(h.key!==A||!h.groupData||i)&&(C=!0,h.key=A,this.setGroupData(h,A));const z=h.group,O=y>0;return z!==O?(C=!0,Gye(h,this.beans,O),!O&&!h.expanded&&(m=h.treeNodeFlags&=~QH)):h.hasChildren()!==O&&(C=!0,h.updateHasChildren()),O&&(m&QH)===0&&(h.treeNodeFlags|=QH,h.expanded=HQt(c,l,h)),(M||x||n)&&BQt(h,v),C&&u?.addParentNode(h),x};for(let h=0,g=r.length;h<g;++h)p(r[h],0);n&&qQt(t,r),d!==t.allLeafChildren.length&&!s&&WQt(t,p)}updateGroupDisplayColsIds(){const e=this.beans.showRowGroupCols?.getShowRowGroupCols()?.map(t=>t.getId()).join("-")??"";return this.oldGroupDisplayColIds!==e?(this.oldGroupDisplayColIds=e,!0):!1}setGroupData(e,t){const n={};e.groupData=n;const r=this.beans.showRowGroupCols?.getShowRowGroupCols();if(r)for(const i of r)n[i.getColId()]=t}},WQt=(e,t)=>{const n=new Set,r=o=>{n.add(o);for(const a of o.childrenAfterGroup)r(a)};r(e);const i=e.childrenAfterGroup;i.length=0;for(const o of e.allLeafChildren)if(n.has(o))o.parent===e&&i.push(o);else{const a=o.parent;ut(270,{id:o.id,parentId:a.id}),a.childrenAfterGroup=a.childrenAfterGroup.filter(s=>s!==o),a.treeNodeFlags=a.treeNodeFlags-1|Kye|F$,o.parent=e,t(o,0),r(o),i.push(o)}},qQt=(e,t)=>{e.childrenAfterFilter=t,e.childrenAfterAggFilter=t,e.childrenAfterSort=t;const n=e.sibling;n&&(n.childrenAfterGroup=e.childrenAfterGroup,n.childrenAfterAggFilter=e.childrenAfterAggFilter,n.childrenAfterSort=e.childrenAfterSort)},BQt=(e,t)=>{e.allLeafChildren??(e.allLeafChildren=null),e.childrenAfterFilter??(e.childrenAfterFilter=t),e.childrenAfterAggFilter??(e.childrenAfterAggFilter=t),e.childrenAfterSort??(e.childrenAfterSort=t);const n=e.sibling;n&&(n.allLeafChildren=e.allLeafChildren,n.childrenAfterGroup=e.childrenAfterGroup,n.childrenAfterAggFilter=e.childrenAfterAggFilter,n.childrenAfterFilter=e.childrenAfterFilter,n.childrenAfterSort=e.childrenAfterSort)},jQt=(e,t,n)=>{if(n===0)return t?(e.allLeafChildren=null,!!t?.length):!1;let r=!1;t?t.length!==n&&(t.length=n,r=!0):(t=e.allLeafChildren=new Array(n),r=!0);let i=0;const o=e.childrenAfterGroup;if(o)for(const a of o){r||(r=t[i]!==a),t[i++]=a;const s=a.allLeafChildren;if(s)for(const l of s)r||(r=t[i]!==l),t[i++]=l}return r},HQt=(e,t,n)=>e?e({rowNode:n,field:n.field,key:n.key,level:n.level,rowGroupColumn:n.rowGroupColumn})==!0:t===-1||n.level<t,VQt=(e,{rowNode:t,changedRowNodes:n},r,i)=>{const o=n?.updates,a=n?.adds,s=t.allLeafChildren;for(let l=0,c=s.length;l<c;++l){const u=s[l],d=o?.has(u)||a?.has(u),p=u.parent;let h;if(d||i){const y=r(u.data);y==null?h=t:(h=e.getRowNode(y),h||(ut(271,{id:u.id,parentId:y}),h=t))}else h=u.parent??t;let g=h.treeNodeFlags;const m=g&W$;g=g&~W$|m+1;let v=h.childrenAfterGroup;(!v||v===my)&&(h.childrenAfterGroup=v=[]),(v.length<=m||v[m]!==u)&&(v[m]=u,g|=Kye),(d||u.parent!==h)&&(u.parent=h,g|=F$,p!==h&&p!==null&&(p.treeNodeFlags|=F$)),h.treeNodeFlags=g}},Oit={moduleName:"SharedTreeData",version:wi,dependsOn:[es,Xye,hit,Yye]},GQt={moduleName:"TreeData",version:wi,beans:[NQt,_Qt],dynamicBeans:{treeParentIdStrategy:FQt},rowModels:["clientSide"],dependsOn:[Oit,iit,FK]},$Qt="ag-Grid-MissingKey",UQt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmBlockUtils"}wireBeans(e){this.valueSvc=e.valueSvc,this.showRowGroupCols=e.showRowGroupCols,this.nodeManager=e.ssrmNodeManager,this.expansionSvc=e.expansionSvc,this.serverSideRowModel=e.rowModel,this.storeFactory=e.ssrmStoreFactory}createRowNode(e){const t=new vp(this.beans),n=e.rowHeight!=null?e.rowHeight:sp(this.beans);return t.setRowHeight(n),t.group=e.group,t.leafGroup=e.leafGroup,t.level=e.level,t.uiLevel=e.level,t.parent=e.parent,t.stub=!0,t.__needsRefreshWhenVisible=!1,t.group&&(t.expanded=!1,t.field=e.field,t.rowGroupColumn=e.rowGroupColumn,t.rowGroupIndex=e.level),t}destroyRowNode(e,t=!1){e.childStore&&!t&&(this.destroyBean(e.childStore),e.childStore=null),e.sibling&&!e.footer&&this.destroyRowNode(e.sibling,!1),e.clearRowTopAndRowIndex(),e.id!=null&&this.nodeManager.removeNode(e)}setTreeGroupInfo(e){e.updateHasChildren();const t=this.gos.get("getServerSideGroupKey"),n=e.hasChildren();n&&t!=null&&(e.key=t(e.data)),!n&&e.childStore!=null&&(this.destroyBean(e.childStore),e.childStore=null,e.expanded=!1)}setRowGroupInfo(e){if(e.key=this.valueSvc.getValue(e.rowGroupColumn,e),(e.key===null||e.key===void 0)&&vK(()=>{ut(190,{rowGroupId:e.rowGroupColumn?.getId(),data:e.data})},"SSBlock-BadKey"),this.gos.get("groupAllowUnbalanced")&&e.key===""){const i=this.serverSideRowModel.getParams();e.childStore=this.createBean(this.storeFactory.createStore(i,e))}QI(this.beans.gos)({node:e})&&(Ry(e,this.beans),e.sibling&&(e.sibling.uiLevel=e.uiLevel+1))}setMasterDetailInfo(e){const t=this.gos.get("isRowMaster");t!=null?e.master=t(e.data):e.master=!0}updateDataIntoRowNode(e,t){e.updateData(t),this.gos.get("treeData")?(this.setTreeGroupInfo(e),this.setChildCountIntoRowNode(e),this.updateRowFooter(e)):e.group?(this.setChildCountIntoRowNode(e),this.updateRowFooter(e)):this.gos.get("masterDetail")}updateRowFooter(e){if(!e.footer){if(e.group&&QI(this.beans.gos)({node:e})&&!e.sibling){Ry(e,this.beans);return}e.sibling&&Uye(e)}}setDataIntoRowNode(e,t,n,r){e.stub=!1;const i=this.gos.get("treeData");e.setDataAndId(t,n),i?this.setTreeGroupInfo(e):e.group?this.setRowGroupInfo(e):this.gos.get("masterDetail")&&this.setMasterDetailInfo(e),(i||e.group)&&(this.setGroupDataIntoRowNode(e),this.setChildCountIntoRowNode(e)),Ut(t)&&(e.setRowHeight(vd(this.beans,e,!1,r).height),e.sibling?.setRowHeight(vd(this.beans,e.sibling,!1,r).height))}setChildCountIntoRowNode(e){const t=this.gos.get("getChildCount");t&&e.setAllChildrenCount(t(e.data))}setGroupDataIntoRowNode(e){e.groupValue=e.key;const t=this.showRowGroupCols?.getShowRowGroupCols()??[],n=this.gos.get("treeData");t.forEach(r=>{if(e.groupData==null&&(e.groupData={}),n)e.groupData[r.getColId()]=e.key;else if(r.isRowGroupDisplayed(e.rowGroupColumn.getId())){const i=this.valueSvc.getValue(e.rowGroupColumn,e);e.groupData[r.getColId()]=i}})}clearDisplayIndex(e){e.clearRowTopAndRowIndex(),e.hasChildren()&&!!e.childStore&&e.childStore?.clearDisplayIndexes(),e.master&&e.detailNode&&e.detailNode?.clearRowTopAndRowIndex()}setDisplayIndex(e,t,n,r){const i=this.gos.get("groupAllowUnbalanced")&&e.group&&e.key==="";if(this.gos.get("groupHideOpenParents")&&e.group&&e.expanded||i?(e.setRowIndex(null),e.setRowTop(null)):(e.setRowIndex(t.value++),e.setRowTop(n.value),n.value+=e.rowHeight),e.setUiLevel(r),e.footer)return;if(e.master&&(e.expanded&&e.detailNode?(e.detailNode.setRowIndex(t.value++),e.detailNode.setRowTop(n.value),n.value+=e.detailNode.rowHeight):e.detailNode&&e.detailNode.clearRowTopAndRowIndex()),e.hasChildren()&&!!e.childStore){const l=e.childStore;e.expanded||i?l.setDisplayIndexes(t,n,i?r:r+1):l.clearDisplayIndexes()}}extractRowBounds(e,t){const n=r=>({rowHeight:r.rowHeight,rowTop:r.rowTop});if(e.rowIndex===t)return n(e);if(e.hasChildren()&&e.expanded&&e.childStore){const r=e.childStore;if(r.isDisplayIndexInStore(t))return r.getRowBounds(t)}else if(e.master&&e.expanded&&e.detailNode&&e.detailNode.rowIndex===t)return n(e.detailNode)}isPixelInNodeRange(e,t){return!Ut(e.rowTop)||!Ut(e.rowHeight)?!1:t>=e.rowTop&&t<e.rowTop+e.rowHeight}getIndexAtPixel(e,t){if(this.isPixelInNodeRange(e,t))return e.rowIndex;const n=e.master&&e.expanded,r=e.detailNode;if(n&&r&&this.isPixelInNodeRange(r,t))return r.rowIndex;if(e.hasChildren()&&e.expanded&&e.childStore){const i=e.childStore;if(i.isPixelInRange(t))return i.getRowIndexAtPixel(t)}return null}createNodeIdPrefix(e){const t=[];let n=e;for(;n&&n.level>=0;)n.key===""?t.push($Qt):t.push(n.key),n=n.parent;if(t.length>0)return t.reverse().join("-")}checkOpenByDefault(e){return this.expansionSvc?.checkOpenByDefault(e)}},XQt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmExpandListener"}wireBeans(e){this.serverSideRowModel=e.rowModel,this.storeFactory=e.ssrmStoreFactory}postConstruct(){Au(this.gos)&&this.addManagedEventListeners({rowGroupOpened:this.onRowGroupOpened.bind(this)})}onRowGroupOpened(e){const t=e.node;if(t.expanded){if(t.master)this.createDetailNode(t);else if(Yi(t.childStore)){const n=this.serverSideRowModel.getParams();t.childStore=this.createBean(this.storeFactory.createStore(n,t))}}else this.gos.get("purgeClosedRowNodes")&&Ut(t.childStore)&&(t.childStore=this.destroyBean(t.childStore));this.eventSvc.dispatchEvent({type:"storeUpdated"})}createDetailNode(e){if(Ut(e.detailNode))return e.detailNode;const t=new vp(this.beans);t.detail=!0,t.selectable=!1,t.parent=e,Ut(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1;const n=200,r=vd(this.beans,t).height;return t.rowHeight=r||n,e.detailNode=t,t}},YQt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmFilterListener"}wireBeans(e){this.serverSideRowModel=e.rowModel,this.filterManager=e.filterManager,this.listenerUtils=e.ssrmListenerUtils}postConstruct(){Au(this.gos)&&this.addManagedEventListeners({advancedFilterEnabledChanged:()=>this.onFilterChanged(!0),filterChanged:()=>this.onFilterChanged()})}onFilterChanged(e){const t=this.serverSideRowModel.getParams();if(!t)return;const n=t.filterModel;let r,i;if(this.filterManager?.isAdvFilterEnabled()){r=this.filterManager.getAdvFilterModel();const l=e?Object.keys(n??{}):this.getAdvancedFilterColumns(n),c=this.getAdvancedFilterColumns(r);l.forEach(u=>c.add(u)),i=Array.from(c)}else if(r=this.filterManager?.getFilterModel()??{},e){const l=this.getAdvancedFilterColumns(n);Object.keys(r).forEach(c=>l.add(c)),i=Array.from(l)}else i=this.findChangedColumns(n,r);const o=this.listenerUtils.isSortingWithValueColumn(i),a=this.listenerUtils.isSortingWithSecondaryColumn(i),s={valueColChanged:o,secondaryColChanged:a,changedColumns:i};this.serverSideRowModel.refreshAfterFilter(r,s)}findChangedColumns(e,t){const n={};Object.keys(e).forEach(i=>n[i]=!0),Object.keys(t).forEach(i=>n[i]=!0);const r=[];return Object.keys(n).forEach(i=>{const o=JSON.stringify(e[i]),a=JSON.stringify(t[i]);o!=a&&r.push(i)}),r}getAdvancedFilterColumns(e){const t=new Set;if(!e)return t;const n=r=>{r.filterType==="join"?r.conditions.forEach(i=>n(i)):t.add(r.colId)};return n(e),t}},KQt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmListenerUtils"}wireBeans(e){this.pivotResultCols=e.pivotResultCols,this.valueColsSvc=e.valueColsSvc}isSortingWithValueColumn(e){const t=(this.valueColsSvc?.columns??[]).map(n=>n.getColId());for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1}isSortingWithSecondaryColumn(e){const t=this.pivotResultCols?.getPivotResultCols();if(!t)return!1;const n=t.list.map(r=>r.getColId());for(let r=0;r<e.length;r++)if(n.indexOf(e[r])>-1)return!0;return!1}},QQt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmSortSvc"}wireBeans(e){this.sortSvc=e.sortSvc,this.serverSideRowModel=e.rowModel,this.listenerUtils=e.ssrmListenerUtils}postConstruct(){Au(this.gos)&&this.addManagedEventListeners({sortChanged:this.onSortChanged.bind(this)})}onSortChanged(){const e=this.serverSideRowModel.getParams();if(!e)return;const t=this.sortSvc.getSortModel(),n=e.sortModel,r=this.findChangedColumnsInSort(t,n),i=this.listenerUtils.isSortingWithValueColumn(r),o=this.listenerUtils.isSortingWithSecondaryColumn(r),a={valueColChanged:i,secondaryColChanged:o,changedColumns:r};this.serverSideRowModel.refreshAfterSort(t,a)}findChangedColumnsInSort(e,t){let n=[];[e,t].forEach(o=>{if(o){const a=o.map(s=>s.colId);n=n.concat(a)}});const r=(o,a)=>{const s=o?o.sort:null,l=a?a.sort:null;return s!==l},i=(o,a)=>{const s=o?t.indexOf(o):-1,l=a?e.indexOf(a):-1;return s!==l};return n.filter(o=>{const a=t.find(l=>l.colId===o),s=e.find(l=>l.colId===o);return r(a,s)||i(a,s)})}},ZQt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmNodeManager",this.rowNodes=new Map}addRowNode(e){const t=e.id;this.rowNodes.has(t)&&ut(187,{rowId:t,firstData:this.rowNodes.get(t).data,secondData:e.data}),this.rowNodes.set(t,e)}removeNode(e){const t=e.id;this.rowNodes.delete(t)}destroy(){this.clear(),super.destroy()}clear(){this.rowNodes.clear(),super.destroy()}},JQt=class extends dt{constructor(){super(...arguments),this.beanName="rowModel",this.pauseStoreUpdateListening=!1,this.started=!1,this.managingPivotResultColumns=!1,this.onRowHeightChanged_debounced=Ml(this,this.onRowHeightChanged.bind(this),100)}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.pivotResultCols=e.pivotResultCols,this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc,this.valueColsSvc=e.valueColsSvc,this.filterManager=e.filterManager,this.sortSvc=e.sortSvc,this.rowRenderer=e.rowRenderer,this.nodeManager=e.ssrmNodeManager,this.storeFactory=e.ssrmStoreFactory,this.pivotColDefSvc=e.pivotColDefSvc}ensureRowHeightsValid(){return!1}start(){this.started=!0,this.updateDatasource()}destroyDatasource(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=void 0)}postConstruct(){const e=this.resetRootStore.bind(this);this.addManagedEventListeners({newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.onStoreUpdated.bind(this),columnValueChanged:e,columnPivotChanged:e,columnRowGroupChanged:e,columnPivotModeChanged:e}),this.addManagedPropertyListeners(["masterDetail","treeData","removePivotHeaderRowWhenSingleValueColumn","cacheBlockSize"],e),this.addManagedPropertyListeners(["groupAllowUnbalanced","groupTotalRow"],()=>this.onStoreUpdated()),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights()),this.verifyProps(),this.addManagedPropertyListener("serverSideDatasource",()=>this.updateDatasource())}updateDatasource(){const e=this.gos.get("serverSideDatasource");e&&this.setDatasource(e)}verifyProps(){Kp(this.gos)&&!this.gos.exists("getRowId")&&ut(188)}setDatasource(e){this.started&&(this.destroyDatasource(),this.datasource=e,this.resetRootStore())}applyRowData(e,t,n){const r=this.getRootStore();if(!r)return;const i=r.getChildStore(n);i&&i.applyRowData(e,t,e.rowData.length)}isLastRowIndexKnown(){const e=this.getRootStore();return e?e.isLastRowIndexKnown():!1}onColumnEverything(){if(!this.storeParams){this.resetRootStore();return}const e=this.columnsToValueObjects(this.rowGroupColsSvc?.columns),t=this.columnsToValueObjects(this.valueColsSvc?.columns),n=this.columnsToValueObjects(this.pivotColsSvc?.columns),r=c=>{const u={};c.oldCols.forEach(h=>u[h.id]=h);const d=c.newCols.every(h=>{const g=u[h.id];return g&&delete u[h.id],g&&g.field===h.field&&g.aggFunc===h.aggFunc}),p=!c.allowRemovedColumns&&!!Object.values(u).length;return d&&!p},i=!gz(this.storeParams.sortModel,this.sortSvc?.getSortModel()??[]),o=!r({oldCols:this.storeParams.rowGroupCols,newCols:e}),a=!r({oldCols:this.storeParams.pivotCols,newCols:n}),s=!!e?.length&&!r({oldCols:this.storeParams.valueCols,newCols:t,allowRemovedColumns:!0});if(i||o||a||s)this.resetRootStore();else{const c=this.createStoreParams();this.storeParams.rowGroupCols=c.rowGroupCols,this.storeParams.pivotCols=c.pivotCols,this.storeParams.valueCols=c.valueCols}}destroyRootStore(){!this.rootNode||!this.rootNode.childStore||(this.rootNode.childStore=this.destroyBean(this.rootNode.childStore),this.nodeManager.clear())}refreshAfterSort(e,t){this.storeParams&&(this.storeParams.sortModel=e);const n=this.getRootStore();n&&(n.refreshAfterSort(t),this.onStoreUpdated())}generateSecondaryColumns(e){if(!this.pivotColDefSvc){this.gos.assertModuleRegistered("SharedPivot",2);return}const t=this.pivotColDefSvc.createColDefsFromFields(e);this.managingPivotResultColumns=!0,this.pivotResultCols?.setPivotResultCols(t,"rowModelUpdated")}resetRowHeights(){const e=this.resetRowHeightsForAllRowNodes(),t=vd(this.beans,this.rootNode);if(this.rootNode.setRowHeight(t.height,t.estimated),this.rootNode.sibling){const n=vd(this.beans,this.rootNode.sibling);this.rootNode.sibling.setRowHeight(n.height,n.estimated)}e&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{const n=vd(this.beans,t);t.setRowHeight(n.height,n.estimated);const r=t.detailNode;if(r){const i=vd(this.beans,r);r.setRowHeight(i.height,i.estimated)}if(t.sibling){const i=vd(this.beans,t.sibling);r?.setRowHeight(i.height,i.estimated)}e=!0}),e}resetRootStore(){this.destroyRootStore(),this.rootNode=new vp(this.beans),this.rootNode.group=!0,this.rootNode.level=-1,this.datasource&&(this.storeParams=this.createStoreParams(),this.rootNode.childStore=this.createBean(this.storeFactory.createStore(this.storeParams,this.rootNode)),this.updateRowIndexesAndBounds()),this.managingPivotResultColumns&&(this.pivotResultCols?.setPivotResultCols(null,"api"),this.managingPivotResultColumns=!1),this.dispatchModelUpdated(!0)}columnsToValueObjects(e=[]){return e.map(t=>({id:t.getId(),aggFunc:t.getAggFunc(),displayName:this.colNames.getDisplayNameForColumn(t,"model"),field:t.getColDef().field}))}createStoreParams(){const e=this.columnsToValueObjects(this.rowGroupColsSvc?.columns),t=this.columnsToValueObjects(this.valueColsSvc?.columns),n=this.columnsToValueObjects(this.pivotColsSvc?.columns),r=Y2e(this.gos);return{valueCols:t,rowGroupCols:e,pivotCols:n,pivotMode:this.colModel.isPivotMode(),filterModel:this.filterManager?.isAdvFilterEnabled()?this.filterManager?.getAdvFilterModel():this.filterManager?.getFilterModel()??{},sortModel:this.sortSvc?.getSortModel()??[],datasource:this.datasource,lastAccessedSequence:{value:0},dynamicRowHeight:r}}getParams(){return this.storeParams}dispatchModelUpdated(e=!1){this.eventSvc.dispatchEvent({type:"modelUpdated",animate:!e,keepRenderedRows:!e,newPage:!1,newData:!1})}onStoreUpdated(){this.pauseStoreUpdateListening||(this.updateRowIndexesAndBounds(),this.dispatchModelUpdated())}onRowHeightChanged(){this.updateRowIndexesAndBounds(),this.dispatchModelUpdated()}updateRowIndexesAndBounds(){const e=this.getRootStore();e&&e.setDisplayIndexes({value:0},{value:0},0)}retryLoads(){const e=this.getRootStore();e&&(e.retryLoads(),this.onStoreUpdated())}getRow(e){const t=this.getRootStore();if(t)return t.getRowUsingDisplayIndex(e)}setPaused(e){this.pauseStoreUpdateListening=e}expandAll(e){this.pauseStoreUpdateListening=!0,this.forEachNode(t=>{t.stub||t.hasChildren()&&t.setExpanded(e)}),this.pauseStoreUpdateListening=!1,this.onStoreUpdated()}refreshAfterFilter(e,t){this.storeParams&&(this.storeParams.filterModel=e);const n=this.getRootStore();n&&(n.refreshAfterFilter(t),this.onStoreUpdated())}getRootStore(){return this.rootNode?.childStore}getRowCount(){const e=this.getRootStore();return e?e.getDisplayIndexEnd():0}getTopLevelRowCount(){const e=this.getRootStore();return e?e.getRowCount():1}getTopLevelRowDisplayedIndex(e){const t=this.getRootStore();return t?t.getTopLevelRowDisplayedIndex(e):e}getRowBounds(e){const t=this.getRootStore();return t?t.getRowBounds(e):{rowTop:0,rowHeight:sp(this.beans)}}getBlockStates(){const e=this.getRootStore();if(!e)return;const t={};return e.forEachStoreDeep(n=>{const r=n.getBlockStates();for(const i of Object.keys(r))t[i]=r[i]}),t}getRowIndexAtPixel(e){const t=this.getRootStore();return e<=0||!t?0:t.getRowIndexAtPixel(e)}isEmpty(){return!1}isRowsToRender(){return this.getRootStore()!=null&&this.getRowCount()>0}getType(){return"serverSide"}forEachNode(e){const t=this.getRootStore();t&&t.forEachNodeDeep(e)}forEachDisplayedNode(e){const t=(n,r)=>{n.stub||!n.displayed||e(n,r)};this.forEachNode(t)}forEachNodeAfterFilterAndSort(e,t=!1){const n=this.getRootStore();n&&n.forEachNodeDeepAfterFilterAndSort(e,void 0,t)}executeOnStore(e,t){if(!this.started)return!1;const n=this.getRootStore();if(!n)return!0;const r=n.getChildStore(e);return r&&t(r),!0}refreshStore(e={}){const t=e.route?e.route:[];this.executeOnStore(t,n=>n.refreshStore(e.purge==!0))}getStoreState(){const e=[],t=this.getRootStore();return t&&t.addStoreStates(e),e}getNodesInRangeForSelection(e,t){const n=e.rowIndex,r=t.rowIndex;if(n===null&&r===null)return[];if(r===null)return e?[e]:[];if(n===null)return[t];const i=[],[o,a]=[n,r].sort((s,l)=>s-l);return this.forEachNode(s=>{const l=s.rowIndex;l==null||s.stub||l>=o&&l<=a&&i.push(s)}),i.length!==a-o+1?null:i}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n),n.detailNode&&n.detailNode.id===e&&(t=n.detailNode)}),t}isRowPresent(e){return!!this.getRowNode(e.id)}setRowCount(e,t){const n=this.getRootStore();n&&n.setRowCount(e,t)}destroy(){this.destroyDatasource(),this.destroyRootStore(),super.destroy()}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}};function eZt(e){return e.selectionSvc?.getSelectionState()??null}function tZt(e,t){e.selectionSvc?.setSelectionState(t,"api")}function nZt(e,t){return e.ssrmTxnManager?.applyTransaction(t)}function rZt(e,t){const n=t.startRow??0,r=t.route??[];if(n<0){ut(189,{startRow:n});return}hD(e)?.applyRowData(t.successParams,n,r)}function iZt(e,t,n){return e.ssrmTxnManager?.applyTransactionAsync(t,n)}function oZt(e){hD(e)?.retryLoads()}function aZt(e){return e.ssrmTxnManager?.flushAsyncTransactions()}function sZt(e,t){hD(e)?.refreshStore(t)}function lZt(e){return hD(e)?.getStoreState()??[]}var cZt=class extends ait{constructor(){super(...arguments),this.beanName="expansionSvc",this.queuedRowIds=new Set}wireBeans(e){this.serverSideRowModel=e.rowModel}postConstruct(){this.addManagedEventListeners({columnRowGroupChanged:()=>{this.queuedRowIds.clear()}})}checkOpenByDefault(e){if(!e.isExpandable())return;if(this.queuedRowIds.has(e.id)){this.queuedRowIds.delete(e.id),e.setExpanded(!0);return}const t=this.gos.getCallback("isServerSideGroupOpenByDefault");if(!t)return;const n={data:e.data,rowNode:e};t(n)&&e.setExpanded(!0)}expandRows(e){e.forEach(t=>{const n=this.serverSideRowModel.getRowNode(t);n?n.setExpanded(!0):this.queuedRowIds.add(t)})}expandAll(e){this.serverSideRowModel.expandAll(e)}onGroupExpandedOrCollapsed(){}dispatchExpandedEvent(e){this.eventSvc.dispatchEvent(e),this.beans.rowRenderer.refreshCells({rowNodes:[e.node]})}},Sre=class extends dt{constructor(e){super(),this.selectionCtx=e,this.selectedState={selectAll:!1,toggledNodes:new Set},this.selectAllUsed=!1,this.selectedNodes={}}getSelectedState(){return{selectAll:this.selectedState.selectAll,toggledNodes:[...this.selectedState.toggledNodes]}}setSelectedState(e){if(typeof e!="object"){pi(116);return}if(!("selectAll"in e)){pi(116);return}if(typeof e.selectAll!="boolean"){pi(117);return}if(!("toggledNodes"in e)||!Array.isArray(e.toggledNodes))return ut(197);const t={selectAll:e.selectAll,toggledNodes:new Set};e.toggledNodes.forEach(r=>{typeof r=="string"?t.toggledNodes.add(r):ut(196,{key:r})});const n=t.selectAll||t.toggledNodes.size>1;if(eye(this.gos)&&!By(this.gos)&&n){ut(130);return}this.selectedState=t}deleteSelectionStateFromParent(e,t){if(this.selectedState.toggledNodes.size===0)return!1;let n=!1;return t.forEach(r=>{this.selectedState.toggledNodes.delete(r)&&(n=!0)}),n}setNodesSelected(e){const{nodes:t,clearSelection:n,newValue:r,source:i}=e;if(t.length===0)return 0;const o=n&&r;if(!By(this.gos)||o){if(t.length>1)return pi(130),0;const s=t[0],l=s.footer?s.sibling:s;return r&&l.selectable?(this.selectedNodes={[l.id]:l},this.selectedState={selectAll:!1,toggledNodes:new Set([l.id])}):(this.selectedNodes={},this.selectedState={selectAll:!1,toggledNodes:new Set}),1}const a=(s,l=r)=>{const c=s.footer?s.sibling:s;l&&c.selectable?this.selectedNodes[c.id]=c:delete this.selectedNodes[c.id],l===this.selectedState.selectAll||!c.selectable?this.selectedState.toggledNodes.delete(c.id):this.selectedState.toggledNodes.add(c.id)};return t.forEach(s=>a(s)),t.length===1&&i==="api"&&this.selectionCtx.setRoot(t[0].footer?t[0].sibling:t[0]),1}processNewRow(e){this.selectedNodes[e.id]&&(this.selectedNodes[e.id]=e)}isNodeSelected(e){const t=this.selectedState.toggledNodes.has(e.id);return this.selectedState.selectAll?!t:t}getSelectedNodes(e=!1,t=!0){const{selectedState:{selectAll:n},selectedNodes:r,selectAllUsed:i}=this;return t&&i&&ut(199),e&&n?null:Object.values(r)}getSelectedRows(){return(this.getSelectedNodes()??[]).map(e=>e.data)}getSelectionCount(){return this.selectedState.selectAll?-1:this.selectedState.toggledNodes.size}isEmpty(){return!this.selectedState.selectAll&&!this.selectedState.toggledNodes?.size}selectAllRowNodes(){this.reset(!0)}deselectAllRowNodes(){this.reset(!1)}reset(e){this.selectedState={selectAll:e,toggledNodes:new Set},this.selectedNodes={},this.selectAllUsed||(this.selectAllUsed=e)}getSelectAllState(){return this.selectedState.selectAll?this.selectedState.toggledNodes.size>0?null:!0:this.selectedState.toggledNodes.size>0?null:!1}},ZH=class extends dt{constructor(e){super(),this.selectionCtx=e,this.selectedState={selectAllChildren:!1,toggledNodes:new Map}}wireBeans(e){this.rowModel=e.rowModel,this.rowGroupColsSvc=e.rowGroupColsSvc,this.filterManager=e.filterManager,this.selectionSvc=e.selectionSvc}postConstruct(){this.addManagedEventListeners({modelUpdated:()=>this.removeRedundantState(),columnRowGroupChanged:()=>this.selectionSvc.reset("rowGroupChanged")})}getSelectedState(){const{gos:e,rowGroupColsSvc:t,selectedState:n}=this,r=e.get("treeData"),i=(o,a,s)=>{const l={nodeId:s};if((r||t&&a<=t.columns.length)&&(l.selectAllChildren=o.selectAllChildren),o.toggledNodes.size){const c=[];o.toggledNodes.forEach((u,d)=>{const p=i(u,a+1,d);c.push(p)}),l.toggledNodes=c}return l};return i(n,0)}setSelectedState(e){if("selectAll"in e){pi(111);return}const t=(n,r)=>{if(typeof n!="object")throw pi(243),new Error;if("selectAllChildren"in n&&typeof n.selectAllChildren!="boolean")throw pi(244),new Error;if("toggledNodes"in n){if(!Array.isArray(n.toggledNodes))throw pi(245),new Error;if(!n.toggledNodes.every(l=>typeof l=="object"&&"nodeId"in l&&typeof l.nodeId=="string"))throw pi(246),new Error}const i=n.selectAllChildren??!r,o=n.toggledNodes?.map(s=>[s.nodeId,t(s,i)]);if(o?.some(([,s])=>i===s.selectAllChildren&&s.toggledNodes.size===0))throw pi(247),new Error;return{selectAllChildren:i,toggledNodes:new Map(o)}};try{this.selectedState=t(e,!!e.selectAllChildren)}catch{}}deleteSelectionStateFromParent(e,t){let n=this.selectedState;const r=[...e];for(;n&&r.length;)n=n.toggledNodes.get(r.pop());if(!n)return!1;let i=!1;return t.forEach(o=>{n?.toggledNodes.delete(o)&&(i=!0)}),i&&this.removeRedundantState(),i}setNodesSelected({nodes:e,newValue:t,clearSelection:n,source:r}){if(e.length===0)return 0;const i=n&&t;if(!By(this.gos)||i){if(e.length>1)return pi(130),0;this.deselectAllRowNodes()}return e.forEach(o=>{const a=o.footer?o.sibling:o,s=this.getRouteToNode(a);this.recursivelySelectNode(s,this.selectedState,t)}),this.removeRedundantState(),e.length===1&&r==="api"&&this.selectionCtx.setRoot(e[0].footer?e[0].sibling:e[0]),1}isNodeSelected(e){const t=this.getRouteToNode(e);return this.isNodePathSelected(t,this.selectedState)}isNodePathSelected([e,...t],n){if(t.length===0){const r=n.toggledNodes.has(e.id);if(e.hasChildren()){const i=n.toggledNodes.get(e.id);if(i&&i.toggledNodes.size)return}return n.selectAllChildren?!r:r}if(n.toggledNodes.has(e.id)){const r=n.toggledNodes.get(e.id);if(r)return this.isNodePathSelected(t,r)}return n.selectAllChildren}getRouteToNode(e){const t=[];let n=e;for(;n.parent;)t.push(n),n=n.parent;return t.reverse()}removeRedundantState(){if(this.filterManager?.isAnyFilterPresent())return;const e=(t=this.selectedState,n,r)=>{if(t.toggledNodes.forEach((a,s)=>{e(a,s,t)}),n){const s=this.rowModel.getRowNode(n)?.childStore;if(s?.isLastRowIndexKnown()&&t.toggledNodes.size>=s.getRowCount()){for(const u of t.toggledNodes.entries()){const[d,p]=u;if(p.toggledNodes.size>0||!this.rowModel.getRowNode(d))return}t.selectAllChildren=!t.selectAllChildren,t.toggledNodes.clear()}}const i=t.toggledNodes.size===0,o=r?.selectAllChildren===t.selectAllChildren;i&&o&&r?.toggledNodes.delete(n)};e()}recursivelySelectNode([e,...t],n,r){if(!e)return;if(!t.length){const s=e.selectable;if(n.selectAllChildren===r||!s){n.toggledNodes.delete(e.id);return}const c={selectAllChildren:r,toggledNodes:new Map};n.toggledNodes.set(e.id,c);return}const o=n.toggledNodes.has(e.id),a=n.toggledNodes.get(e.id)??{selectAllChildren:n.selectAllChildren,toggledNodes:new Map};o||n.toggledNodes.set(e.id,a),this.recursivelySelectNode(t,a,r),n.selectAllChildren===a.selectAllChildren&&a.toggledNodes.size===0&&n.toggledNodes.delete(e.id)}getSelectedNodes(e=!1){if(ut(202),this.selectedState.selectAllChildren&&e)return null;const t=[];return this.rowModel.forEachNode(n=>{n.isSelected()&&t.push(n)}),t}processNewRow(){}getSelectedRows(){return this.getSelectedNodes()?.map(e=>e.data)??[]}getSelectionCount(){return-1}isEmpty(){return!this.selectedState.selectAllChildren&&!this.selectedState.toggledNodes?.size}selectAllRowNodes(){this.reset(!0)}deselectAllRowNodes(){this.reset(!1)}reset(e){this.selectedState={selectAllChildren:e,toggledNodes:new Map}}getSelectAllState(){return this.selectedState.selectAllChildren?this.selectedState.toggledNodes.size>0?null:!0:this.selectedState.toggledNodes.size>0?null:!1}},uZt=class extends Ntt{constructor(){super(...arguments),this.beanName="selectionSvc"}postConstruct(){super.postConstruct(),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],()=>{const n=bz(this.gos),r=n&&this.selectionStrategy instanceof Sre?ZH:!n&&this.selectionStrategy instanceof ZH?Sre:void 0;r&&(this.destroyBean(this.selectionStrategy),this.selectionStrategy=this.createManagedBean(new r(this.selectionCtx)),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api"))}),this.addManagedPropertyListeners(["rowSelection"],()=>{const n=ZI(this.gos);n!==this.selectionMode&&(this.selectionMode=n,this.deselectAllRowNodes({source:"api"}))}),this.selectionMode=ZI(this.gos);const t=bz(this.gos)?ZH:Sre;this.selectionStrategy=this.createManagedBean(new t(this.selectionCtx))}handleSelectionEvent(e,t,n){if(this.isRowSelectionBlocked(t))return 0;let r=0;const i=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,n);return i==null?0:(this.selectionCtx.selectAll=!1,"select"in i?(i.reset?this.selectionStrategy.deselectAllRowNodes({source:"api"}):this.selectionStrategy.setNodesSelected({nodes:i.deselect,newValue:!1,source:n}),r=this.selectionStrategy.setNodesSelected({nodes:i.select,newValue:!0,source:n})):r=this.selectionStrategy.setNodesSelected({nodes:[i.node],newValue:i.newValue,clearSelection:i.clearSelection,event:e,source:n}),this.shotgunResetNodeSelectionState(n),this.dispatchSelectionChanged(n),r)}getSelectionState(){return this.selectionStrategy.getSelectedState()}setSelectionState(e,t){if(!Kp(this.gos)){ut(132);return}Array.isArray(e)||(this.selectionStrategy.setSelectedState(e),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged(t))}setNodesSelected(e){if(!Kp(this.gos)&&e.newValue)return ut(132),0;const{nodes:t,...n}=e;if(t.length>1&&this.selectionMode!=="multiRow")return ut(130),0;const r={nodes:t.filter(o=>o.selectable),...n};if(!r.nodes.length)return 0;const i=this.selectionStrategy.setNodesSelected(r);return this.shotgunResetNodeSelectionState(r.source),this.dispatchSelectionChanged(r.source),i}deleteSelectionStateFromParent(e,t){this.selectionStrategy.deleteSelectionStateFromParent(e,t)&&(this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api"))}shotgunResetNodeSelectionState(e){this.beans.rowModel.forEachNode(t=>{if(t.stub)return;const n=this.selectionStrategy.isNodeSelected(t);n!==t.isSelected()&&this.selectRowNode(t,n,void 0,e)})}getSelectedNodes(){return this.selectionStrategy.getSelectedNodes()??[]}getSelectedRows(){return this.selectionStrategy.getSelectedRows()}getSelectionCount(){return this.selectionStrategy.getSelectionCount()}syncInRowNode(e){this.selectionStrategy.processNewRow(e);const t=this.selectionStrategy.isNodeSelected(e);if(t!=!1&&!e.selectable){this.selectionStrategy.setNodesSelected({nodes:[e],newValue:!1,source:"api"}),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api");return}e.__selected=t}reset(){this.selectionStrategy.deselectAllRowNodes({source:"api"}),this.selectionCtx.reset()}isEmpty(){return this.selectionStrategy.isEmpty()}hasNodesToSelect(){return!0}selectAllRowNodes(e){if(!Kp(this.gos)){ut(132);return}if(WRe(e),eye(this.gos)&&!By(this.gos))return ut(130);this.selectionStrategy.selectAllRowNodes(e),this.selectionCtx.selectAll=!0,this.beans.rowModel.forEachNode(t=>{t.stub||this.selectRowNode(t,!0,void 0,e.source)}),this.dispatchSelectionChanged(e.source)}deselectAllRowNodes(e){WRe(e),this.selectionStrategy.deselectAllRowNodes(e),this.selectionCtx.selectAll=!1,this.beans.rowModel.forEachNode(t=>{t.stub||this.selectRowNode(t,!1,void 0,e.source)}),this.dispatchSelectionChanged(e.source)}getSelectAllState(e){return this.selectionStrategy.getSelectAllState(e)}getBestCostNodeSelection(){return ut(194,{method:"getBestCostNodeSelection"})}updateSelectable(){if(!Kp(this.gos))return;const e=[];this.beans.rowModel.forEachNode(t=>{!this.updateRowSelectable(t,!0)&&t.isSelected()&&e.push(t)}),e.length&&this.setNodesSelected({nodes:e,newValue:!1,source:"selectableChanged"})}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.selectionStrategy instanceof ZH?null:this.selectionStrategy.getSelectedNodes(!0,!1),serverSideState:this.getSelectionState()})}updateSelectableAfterGrouping(){return pi(194,{method:"updateSelectableAfterGrouping"})}refreshMasterNodeState(){}setDetailSelectionState(){}};function WRe({selectAll:e}){(e==="filtered"||e==="currentPage")&&ut(195,{justCurrentPage:e==="currentPage"})}var dZt=class extends dt{constructor(){super(...arguments),this.beanName="rowChildrenSvc"}getHasChildrenValue(e){const t=this.gos.get("treeData"),n=this.gos.get("isServerSideGroup");return!e.stub&&!e.footer&&(t?!!n&&n(e.data):!!e.group)}},pZt=class extends dt{constructor(){super(...arguments),this.beanName="lazyBlockLoadingSvc",this.outboundRequests=0,this.cacheLoadingNodesMap=new Map,this.isCheckQueued=!1,this.nextBlockToLoad=void 0}wireBeans(e){this.rowRenderer=e.rowRenderer,this.rowModel=e.rowModel}postConstruct(){this.maxOutboundRequests=fet(this.gos)}subscribe(e){this.cacheLoadingNodesMap.set(e,new Set)}unsubscribe(e){this.cacheLoadingNodesMap.delete(e)}queueLoadCheck(){this.isCheckQueued||(this.isCheckQueued=!0,setTimeout(()=>{this.queueLoadAction(),this.isCheckQueued=!1}))}onLoadComplete(){this.outboundRequests-=1,this.queueLoadCheck()}hasAvailableLoadBandwidth(){return this.maxOutboundRequests===void 0?!0:this.outboundRequests<this.maxOutboundRequests}queueLoadAction(){const e=this.getBlockToLoad();if(!e)return;const t=this.nextBlockToLoad&&this.nextBlockToLoad.cache===e.cache&&this.nextBlockToLoad.index===e.index;if(!t&&(!this.nextBlockToLoad||!t)){this.nextBlockToLoad=e,window.clearTimeout(this.loaderTimeout);const n=Number(this.nextBlockToLoad.index),r=this.nextBlockToLoad.cache,i=e.index+e.cache.getBlockSize();this.loaderTimeout=window.setTimeout(()=>{r.isAlive()&&(this.loaderTimeout=void 0,this.attemptLoad(r,n,i),this.nextBlockToLoad=void 0)},this.gos.get("blockLoadDebounceMillis"))}}attemptLoad(e,t,n){this.hasAvailableLoadBandwidth()&&(this.executeLoad(e,t,n),this.queueLoadCheck())}executeLoad(e,t,n){const r=e.getSsrmParams(),i={startRow:t,endRow:n,rowGroupCols:r.rowGroupCols,valueCols:r.valueCols,pivotCols:r.pivotCols,pivotMode:r.pivotMode,groupKeys:e.store.getParentNode().getRoute()??[],filterModel:r.filterModel,sortModel:r.sortModel},o=this.cacheLoadingNodesMap.get(e),a=()=>{for(let d=0;d<n-t;d++)o.delete(t+d)},s=()=>{for(let d=0;d<n-t;d++)o.add(t+d)},l=d=>{this.onLoadComplete(),e.onLoadSuccess(t,n-t,d),a()},c=()=>{this.onLoadComplete(),e.onLoadFailed(t,n-t),a()},u=Vn(this.gos,{request:i,success:l,fail:c,parentNode:e.store.getParentNode()});s(),this.outboundRequests+=1,e.getSsrmParams().datasource?.getRows(u)}getBlockToLoad(){const e=this.rowRenderer.firstRenderedRow,t=this.rowRenderer.lastRenderedRow;for(let s=e;s<=t;s++){const l=this.rowModel.getRow(s);if(!l)continue;const c=l.parent?.childStore;if(!c)continue;const u=c.getCache(),d=u.getNodes().getBy("node",l);if(!(!d||this.cacheLoadingNodesMap.get(u)?.has(d.index))&&(l.__needsRefreshWhenVisible||l.stub&&!l.failedLoad))return{cache:u,index:u.getBlockStartIndex(d.index)}}let n=null,r=null,i=Number.MAX_SAFE_INTEGER;for(const s of this.cacheLoadingNodesMap.keys())s.getNodesToRefresh().forEach(c=>{if(c.rowIndex==null){r=c,n=s;return}const u=s.getNodes().getBy("node",c);if(!u||this.cacheLoadingNodesMap.get(s)?.has(u.index))return;const p=Math.abs(e-c.rowIndex),h=Math.abs(c.rowIndex-t);p<i&&(r=c,i=p,n=s),h<i&&(r=c,i=h,n=s)});if(!n)return;const o=n,a=o.getNodes().getBy("node",r)?.index;return a==null?void 0:{cache:o,index:o.getBlockStartIndex(a)}}isRowLoading(e,t){return this.cacheLoadingNodesMap.get(e)?.has(t)??!1}},hZt=class{constructor(...e){this.indexes=e,this.maps=new Map(this.indexes.map(t=>[t,new Map]))}getSize(){return this.maps.get(this.indexes[0]).size}getBy(e,t){return this.maps.get(e).get(t)}set(e){this.indexes.forEach(t=>{this.maps.get(t).set(e[t],e)})}delete(e){this.indexes.forEach(t=>{this.maps.get(t).delete(e[t])})}clear(){this.maps.forEach(e=>e.clear())}getIterator(e){return this.maps.get(e).values()}forEach(e){const t=this.getIterator(this.indexes[0]);let n;for(;(n=t.next())&&!n.done;)e(n.value)}find(e){const t=this.getIterator(this.indexes[0]);let n;for(;(n=t.next())&&!n.done;)if(e(n.value))return n.value}filter(e){const t=this.getIterator(this.indexes[0]);let n;const r=[];for(;(n=t.next())&&!n.done;)e(n.value)&&r.push(n.value);return r}},fZt=100,Are=class extends dt{constructor(e,t,n,r){super(),this.live=!0,this.removedNodeCache=new Map,this.store=e,this.numberOfRows=t,this.isLastRowKnown=n,this.storeParams=r}wireBeans(e){this.rowRenderer=e.rowRenderer,this.blockUtils=e.ssrmBlockUtils,this.focusSvc=e.focusSvc,this.nodeManager=e.ssrmNodeManager,this.serverSideRowModel=e.rowModel,this.rowNodeSorter=e.rowNodeSorter,this.sortSvc=e.sortSvc,this.lazyBlockLoadingSvc=e.lazyBlockLoadingSvc,this.colModel=e.colModel}postConstruct(){this.lazyBlockLoadingSvc.subscribe(this),this.nodeMap=new hZt("index","id","node"),this.nodeDisplayIndexMap=new Map,this.nodesToRefresh=new Set,this.defaultNodeIdPrefix=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),this.getRowIdFunc=qy(this.gos),this.isMasterDetail=this.gos.get("masterDetail")}destroy(){this.lazyBlockLoadingSvc.unsubscribe(this),this.numberOfRows=0,this.nodeMap.forEach(e=>this.blockUtils.destroyRowNode(e.node)),this.nodeMap.clear(),this.nodeDisplayIndexMap.clear(),this.nodesToRefresh.clear(),this.live=!1,super.destroy()}getRowByDisplayIndex(e){if(!this.store.isDisplayIndexInStore(e))return;const t=this.nodeDisplayIndexMap.get(e);if(t)return(t.stub||t.__needsRefreshWhenVisible)&&this.lazyBlockLoadingSvc.queueLoadCheck(),t;if(this.gos.get("groupHideOpenParents")||this.gos.get("groupAllowUnbalanced")){const l=this.nodeMap.find(c=>!!c.node.childStore?.isDisplayIndexInStore(e));if(l)return l.node.childStore?.getRowUsingDisplayIndex(e)}if(e===this.store.getDisplayIndexStart())return this.createStubNode(0,e);const r=this.nodeDisplayIndexMap.get(e-1);if(r){if(this.isMasterDetail&&r.master&&r.expanded)return r.detailNode;if(r.expanded&&r.childStore?.isDisplayIndexInStore(e))return r.childStore?.getRowUsingDisplayIndex(e);const l=this.nodeMap.getBy("node",r);return this.createStubNode(l.index+1,e)}const i=this.getSurroundingNodesByDisplayIndex(e);if(i==null){const l=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(l,e)}const{previousNode:o,nextNode:a}=i;if(o&&o.node.expanded&&o.node.childStore?.isDisplayIndexInStore(e))return o.node.childStore?.getRowUsingDisplayIndex(e);if(a){const l=a.node.rowIndex-e,c=a.index-l;return this.createStubNode(c,e)}const s=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(s,e)}createStubNode(e,t){const n=this.store.getRowBounds(t),r=this.createRowAtIndex(e,null,i=>{i.setRowIndex(t),i.setRowTop(n.rowTop),this.nodeDisplayIndexMap.set(t,i)});if(e===0&&this.gos.get("groupHideOpenParents")){const i=this.store.getParentNode().groupData;if(i)for(const o of Object.keys(i))vRe(r,this.colModel,o,i[o])}return this.lazyBlockLoadingSvc.queueLoadCheck(),r}getRowByStoreIndex(e){return this.nodeMap.getBy("index",e)?.node}skipDisplayIndexes(e,t,n){if(e===0)return;const r=sp(this.beans);t.value+=e,n.value+=e*r}setDisplayIndexes(e,t,n){this.nodeDisplayIndexMap.clear();const r={};this.nodeMap.forEach(a=>{r[a.index]=a.node});let i=-1;for(const a of Object.keys(r)){const s=r[a],l=Number(a),c=l-1-i;this.skipDisplayIndexes(c,e,t);const u=l===0;if(s.setFirstChild(u),u&&this.gos.get("groupHideOpenParents")){const d=this.store.getParentNode().groupData;if(d)for(const p of Object.keys(d))vRe(s,this.colModel,p,u?d[p]:void 0)}this.blockUtils.setDisplayIndex(s,e,t,n),s.rowIndex!=null&&this.nodeDisplayIndexMap.set(s.rowIndex,s),i=l}const o=this.numberOfRows-1-i;this.skipDisplayIndexes(o,e,t),this.purgeExcessRows()}getRowCount(){return this.numberOfRows}setRowCount(e,t){this.numberOfRows=e,t!=null&&(this.isLastRowKnown=t,t===!1&&(this.numberOfRows+=1)),this.fireStoreUpdatedEvent()}getNodes(){return this.nodeMap}getNodeCachedByDisplayIndex(e){return this.nodeDisplayIndexMap.get(e)??null}getNodesToRefresh(){return this.nodesToRefresh}getSurroundingNodesByDisplayIndex(e){let t,n;return this.nodeMap.forEach(r=>{if(e>r.node.rowIndex){(n==null||n.node.rowIndex<r.node.rowIndex)&&(n=r);return}if(t==null||t.node.rowIndex>r.node.rowIndex){t=r;return}}),!n&&!t?null:{previousNode:n,nextNode:t}}getDisplayIndexFromStoreIndex(e){const t=this.nodeMap.getBy("index",e);if(t)return t.node.rowIndex;let n,r;if(this.nodeMap.forEach(a=>{if(e>a.index){(r==null||r.index<a.index)&&(r=a);return}if(n==null||n.index>a.index){n=a;return}}),!n)return this.store.getDisplayIndexEnd()-(this.numberOfRows-e);if(!r)return this.store.getDisplayIndexStart()+e;const i=e-r.index;return(r.node.childStore?.getDisplayIndexEnd()??r.node.rowIndex)+i}createRowAtIndex(e,t,n){const r=this.nodeMap.getBy("index",e);if(r){const{node:o}=r;if(o.__needsRefreshWhenVisible=!1,this.doesNodeMatch(t,o))return this.blockUtils.updateDataIntoRowNode(o,t),this.nodesToRefresh.delete(o),o;if(this.getRowIdFunc==null&&o.hasChildren()&&o.expanded)return this.nodesToRefresh.delete(o),o;this.destroyRowAtIndex(e)}if(t&&this.getRowIdFunc!=null){const o=this.getRowId(t),a=o&&this.removedNodeCache?.get(o);if(a)return this.removedNodeCache?.delete(o),this.blockUtils.updateDataIntoRowNode(a,t),this.nodeMap.set({id:a.id,node:a,index:e}),this.nodesToRefresh.delete(a),a.__needsRefreshWhenVisible=!1,a;const s=this.nodeMap.getBy("id",o);if(s){this.nodeMap.delete(s);const{node:l,index:c}=s;return this.blockUtils.updateDataIntoRowNode(l,t),this.nodeMap.set({id:l.id,node:l,index:e}),this.nodesToRefresh.delete(l),l.__needsRefreshWhenVisible=!1,this.getBlockStartIndex(c)===this.getBlockStartIndex(e)||this.markBlockForVerify(c),l}}const i=this.blockUtils.createRowNode(this.store.getRowDetails());if(t!=null){const o=this.getPrefixedId(this.store.getIdSequence().value++);this.blockUtils.setDataIntoRowNode(i,t,o,void 0),this.serverSideRowModel.setPaused(!0),this.blockUtils.checkOpenByDefault(i),this.serverSideRowModel.setPaused(!1),this.nodeManager.addRowNode(i)}return this.nodeMap.set({id:i.id,node:i,index:e}),n&&n(i),i}getBlockStates(){const e={},t={};this.nodeMap.forEach(({node:o,index:a})=>{const s=this.getBlockStartIndex(a);!o.stub&&!o.failedLoad&&(e[s]=(e[s]??0)+1);let l="loaded";o.failedLoad?l="failed":this.lazyBlockLoadingSvc.isRowLoading(this,s)?l="loading":(this.nodesToRefresh.has(o)||o.stub)&&(l="needsLoading"),t[s]||(t[s]=new Set),t[s].add(l)});const n={loading:4,failed:3,needsLoading:2,loaded:1},r=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),i={};for(const o of Object.keys(t)){const s=[...t[o]].sort((u,d)=>(n[u]??0)-(n[d]??0))[0],l=Number(o)/this.getBlockSize(),c=r?`${r}-${l}`:String(l);i[c]={blockNumber:l,startRow:Number(o),endRow:Number(o)+this.getBlockSize(),pageStatus:s,loadedRowCount:e[o]??0}}return i}destroyRowAtIndex(e){const t=this.nodeMap.getBy("index",e);t&&(this.nodeMap.delete(t),this.nodeDisplayIndexMap.delete(t.node.rowIndex),this.nodesToRefresh.size>0?this.removedNodeCache.set(t.node.id,t.node):this.blockUtils.destroyRowNode(t.node),this.nodesToRefresh.delete(t.node))}getSsrmParams(){return this.store.getSsrmParams()}getPrefixedId(e){return this.defaultNodeIdPrefix?this.defaultNodeIdPrefix+"-"+e:e.toString()}markBlockForVerify(e){const[t,n]=this.getBlockBounds(e);this.nodeMap.filter(i=>i.index>=t&&i.index<n).forEach(({node:i})=>{i.__needsRefreshWhenVisible=!0})}doesNodeMatch(e,t){if(t.stub)return!1;const n=this.getRowId(e);return n===null?t.data===e:t.id===n}purgeStubsOutsideOfViewport(){const{firstRenderedRow:e,lastRenderedRow:t}=this.rowRenderer,n=this.getBlockStartIndex(e),[,r]=this.getBlockBounds(t);this.nodeMap.forEach(i=>{this.lazyBlockLoadingSvc.isRowLoading(this,i.index)||i.node.failedLoad||i.node.stub&&(i.index<n||i.index>r)&&this.destroyRowAtIndex(i.index)})}getBlocksDistanceFromRow(e,t){const n={};return e.forEach(({node:r,index:i})=>{const[o,a]=this.getBlockBounds(i);if(o in n)return;const s=Math.abs(r.rowIndex-t);let l;const c=this.nodeMap.getBy("index",[a-1]);c&&(l=Math.abs(c.node.rowIndex-t));const u=l==null||s<l?s:l;n[o]=u}),Object.entries(n)}purgeExcessRows(){if(this.purgeStubsOutsideOfViewport(),this.store.getDisplayIndexEnd()==null||this.storeParams.maxBlocksInCache==null)return;const{firstRenderedRow:e,lastRenderedRow:t}=this.rowRenderer,n=new Set,r=new Set;this.nodeMap.forEach(({index:h,node:g})=>{const m=this.getBlockStartIndex(h);n.add(m),g.rowIndex>=e&&g.rowIndex<=t&&r.add(m)});const i=Math.max(r.size,this.storeParams.maxBlocksInCache??0),a=n.size-i;if(a<=0)return;let s=Number.MAX_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;r.forEach(h=>{s>h&&(s=h),l<h&&(l=h)});const c=this.nodeMap.filter(({node:h,index:g})=>{const m=this.getBlockStartIndex(g);return!(m>=s&&m<=l)&&!this.isNodeCached(h)});if(c.length===0)return;const u=e+(t-e)/2,d=this.getBlocksDistanceFromRow(c,u),p=this.getBlockSize();d.sort((h,g)=>Math.sign(g[1]-h[1]));for(let h=0;h<Math.min(a,d.length);h++){const g=Number(d[h][0]);for(let m=g;m<g+p;m++){const v=this.nodeMap.getBy("index",m);!v||this.isNodeCached(v.node)||this.destroyRowAtIndex(m)}}}isNodeFocused(e){const t=this.focusSvc.getFocusCellToUseAfterRefresh();return!t||t.rowPinned!=null?!1:t.rowIndex===e.rowIndex}isNodeCached(e){const t=this.gos.get("groupAllowUnbalanced")&&e.key==="";return e.isExpandable()&&e.expanded||this.isNodeFocused(e)||t}extractDuplicateIds(e){if(this.getRowIdFunc==null)return[];const t=new Set,n=new Set;return e.forEach(r=>{const i=this.getRowId(r);if(t.has(i)){n.add(i);return}t.add(i)}),[...n]}onLoadSuccess(e,t,n){if(!this.live)return;const r=n.groupLevelInfo;if(this.store.setStoreInfo(r),this.getRowIdFunc!=null){const a=this.extractDuplicateIds(n.rowData);if(a.length>0){const s=a.join(", ");ut(205,{duplicateIdText:s}),this.onLoadFailed(e,t);return}}n.pivotResultFields&&this.serverSideRowModel.generateSecondaryColumns(n.pivotResultFields);const i=this.nodesToRefresh.size>0;if(n.rowData.forEach((a,s)=>{const l=e+s,c=this.nodeMap.getBy("index",l);if(c?.node?.stub){this.createRowAtIndex(l,a);return}if(c&&this.doesNodeMatch(a,c.node)){this.blockUtils.updateDataIntoRowNode(c.node,a),this.nodesToRefresh.delete(c.node),c.node.__needsRefreshWhenVisible=!1;return}this.createRowAtIndex(l,a)}),n.rowCount!=null&&n.rowCount!==-1)this.numberOfRows=n.rowCount,this.isLastRowKnown=!0;else if(t>n.rowData.length)this.numberOfRows=e+n.rowData.length,this.isLastRowKnown=!0;else if(!this.isLastRowKnown){const a=e+n.rowData.length+1;a>this.numberOfRows&&(this.numberOfRows=a)}this.isLastRowKnown&&this.nodeMap.filter(s=>s.index>=this.numberOfRows).forEach(s=>this.destroyRowAtIndex(s.index)),this.fireStoreUpdatedEvent();const o=this.nodesToRefresh.size===0;i&&o&&this.fireRefreshFinishedEvent()}fireRefreshFinishedEvent(){this.nodesToRefresh.size===0&&(this.removedNodeCache.forEach(t=>{this.blockUtils.destroyRowNode(t)}),this.removedNodeCache=new Map,this.store.fireRefreshFinishedEvent())}isStoreFullyLoaded(){const e=this.isLastRowKnown,t=this.nodeMap.getSize()===this.numberOfRows;if(!e||!t||this.nodesToRefresh.size>0)return;let n=-1;return this.nodeMap.find(i=>(n+=1,!!(i.index!==n||i.node.__needsRefreshWhenVisible||i.node.stub)))==null}isLastRowIndexKnown(){return this.isLastRowKnown}onLoadFailed(e,t){if(!this.live)return;const n=this.nodesToRefresh.size>0;for(let i=e;i<e+t&&i<this.getRowCount();i++){let{node:o}=this.nodeMap.getBy("index",i)??{};o&&this.nodesToRefresh.delete(o),(!o||!o.stub)&&(o&&!o.stub&&this.destroyRowAtIndex(i),o=this.createRowAtIndex(i)),o.__needsRefreshWhenVisible=!1,o.failedLoad=!0}const r=this.nodesToRefresh.size===0;n&&r&&this.fireRefreshFinishedEvent(),this.fireStoreUpdatedEvent()}markNodesForRefresh(){this.nodeMap.forEach(e=>{e.node.stub&&!e.node.failedLoad||this.nodesToRefresh.add(e.node)}),this.lazyBlockLoadingSvc.queueLoadCheck(),this.isLastRowKnown&&this.numberOfRows===0&&(this.numberOfRows=1,this.isLastRowKnown=!1,this.fireStoreUpdatedEvent())}isNodeInCache(e){return!!this.nodeMap.getBy("id",e)}fireStoreUpdatedEvent(){this.live&&this.store.fireStoreUpdatedEvent()}getRowId(e){if(this.getRowIdFunc==null)return null;const{level:t}=this.store.getRowDetails(),n=this.store.getParentNode().getRoute()??[];return this.getRowIdFunc({data:e,parentKeys:n.length>0?n:void 0,level:t})}getOrderedNodeMap(){const e={};return this.nodeMap.forEach(t=>e[t.index]=t),e}clearDisplayIndexes(){this.nodeDisplayIndexMap.clear()}clientSideSortRows(){const e=this.sortSvc?.getSortOptions()??[];if(!e.some(i=>i.sort!=null)||!this.rowNodeSorter)return;const n=new Array(this.nodeMap.getSize());this.nodeMap.forEach(i=>n[i.index]=i.node),this.nodeMap.clear(),this.rowNodeSorter.doFullSort(n,e).forEach((i,o)=>{this.nodeMap.set({id:i.id,node:i,index:o})})}updateRowNodes(e){const t=[];return e.forEach(n=>{const r=this.getRowId(n),i=this.nodeMap.getBy("id",r);i&&(this.blockUtils.updateDataIntoRowNode(i.node,n),t.push(i.node))}),t}insertRowNodes(e,t){const n=this.store.getRowCount()-(this.store.getParentNode().sibling?1:0),r=t==null&&this.isLastRowKnown?n:t;if(r==null||n<r)return[];const i={};e.forEach(l=>{const c=this.getRowId(l);c&&this.isNodeInCache(c)||(i[c]=l)});const o=Object.values(i),a=o.length;if(a===0)return[];const s=this.nodeMap.filter(l=>l.index>=r);return s.forEach(l=>this.nodeMap.delete(l)),s.forEach(l=>{this.nodeMap.set({node:l.node,index:l.index+a,id:l.id})}),this.numberOfRows+=a,o.map((l,c)=>this.createRowAtIndex(r+c,l))}removeRowNodes(e){const t=[],n=[];let r=0;const i=[...e],o=this.getOrderedNodeMap();let a=-1;for(const s of Object.keys(o)){a+=1;const l=o[s],c=i.findIndex(d=>d===l.id);if(c!==-1){i.splice(c,1),this.destroyRowAtIndex(Number(s)),t.push(l.node),r+=1;continue}if(r===0)continue;const u=Number(s);a!==u&&n.push(l.node),this.nodeMap.delete(l),this.nodeMap.set({id:l.id,node:l.node,index:u-r})}return this.numberOfRows-=this.isLastRowIndexKnown()?e.length:r,i.length>0&&n.length>0&&(n.forEach(s=>s.__needsRefreshWhenVisible=!0),this.lazyBlockLoadingSvc.queueLoadCheck()),t}getBlockSize(){return this.storeParams.cacheBlockSize||fZt}getBlockStartIndex(e){const t=this.getBlockSize();return e-e%t}getBlockBounds(e){const t=this.getBlockStartIndex(e),n=this.getBlockSize();return[t,t+n]}},gZt=class extends dt{constructor(e,t,n){super(),this.idSequence={value:0},this.ssrmParams=e,this.parentRowNode=n,this.storeParams=t,this.level=n.level+1,this.group=e.rowGroupCols?this.level<e.rowGroupCols.length:!1,this.leafGroup=e.rowGroupCols?this.level===e.rowGroupCols.length-1:!1,this.info={}}wireBeans(e){this.blockUtils=e.ssrmBlockUtils,this.storeUtils=e.ssrmStoreUtils,this.selectionSvc=e.selectionSvc,this.rowGroupColsSvc=e.rowGroupColsSvc}postConstruct(){let e=1;if(this.level===0&&(e=this.storeUtils.getServerSideInitialRowCount()??1,this.eventSvc.dispatchEventOnce({type:"rowCountReady"})),this.cache=this.createManagedBean(new Are(this,e,!1,this.storeParams)),!this.gos.get("treeData")&&this.group&&this.rowGroupColsSvc){const n=this.ssrmParams.rowGroupCols[this.level];this.groupField=n.field,this.rowGroupColumn=this.rowGroupColsSvc.columns[this.level]}}destroy(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.destroyBean(this.cache),super.destroy()}applyRowData(e,t,n){this.cache.onLoadSuccess(t,n,e)}applyTransaction(e){const t=qy(this.gos);if(!t)return ut(206),{status:kv.Cancelled};const n=this.gos.getCallback("isApplyServerSideTransaction");if(n){const u={transaction:e,parentNode:this.parentRowNode,groupLevelInfo:this.info};if(!n(u))return{status:kv.Cancelled}}const r=this.cache.isStoreFullyLoaded();let i;e.update?.length&&(i=this.cache.updateRowNodes(e.update));let o;if(e.add?.length){let u=e.addIndex;u!=null&&u<0&&(u=void 0),o=this.cache.insertRowNodes(e.add,u)}let a;if(e.remove?.length){const u=e.remove.map(p=>t({level:this.level,parentKeys:this.parentRowNode.getRoute()??[],data:p})),d=[...new Set(u)];a=this.cache.removeRowNodes(d)}const s=this.gos.get("serverSideEnableClientSideSort"),l=i?.length||o?.length;return r&&s&&l&&this.cache.clientSideSortRows(),this.updateSelectionAfterTransaction(i,a),{status:kv.Applied,update:i,add:o,remove:a}}updateSelectionAfterTransaction(e,t){if(!this.selectionSvc)return;const n=[];e?.forEach(r=>{r.isSelected()&&!r.selectable&&n.push(r)}),t?.forEach(r=>{r.isSelected()&&n.push(r)}),n.length&&this.selectionSvc.setNodesSelected({newValue:!1,clearSelection:!1,nodes:n,source:"rowDataChanged"})}clearDisplayIndexes(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.cache.getNodes().forEach(e=>this.blockUtils.clearDisplayIndex(e.node)),this.parentRowNode.sibling&&this.blockUtils.clearDisplayIndex(this.parentRowNode.sibling),this.cache.clearDisplayIndexes()}getDisplayIndexStart(){return this.displayIndexStart}getDisplayIndexEnd(){return this.displayIndexEnd}getRowCount(){return this.parentRowNode.sibling?this.cache.getRowCount()+1:this.cache.getRowCount()}setRowCount(e,t){this.cache.setRowCount(e,t)}isDisplayIndexInStore(e){return this.cache.getRowCount()===0?!1:this.displayIndexStart<=e&&e<this.getDisplayIndexEnd()}setDisplayIndexes(e,t,n){this.displayIndexStart=e.value,this.topPx=t.value;const r=this.parentRowNode.level>-1&&QI(this.gos)({node:this.parentRowNode});r||Uye(this.parentRowNode),r==="top"&&(Ry(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,e,t,n)),this.cache.setDisplayIndexes(e,t,n),r==="bottom"&&(Ry(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,e,t,n)),this.displayIndexEnd=e.value,this.heightPx=t.value-this.topPx}forEachStoreDeep(e,t={value:0}){e(this,t.value++),this.cache.getNodes().forEach(n=>{const r=n.node.childStore;r&&r.forEachStoreDeep(e,t)})}forEachNodeDeep(e,t={value:0}){this.cache.getNodes().forEach(n=>{e(n.node,t.value++);const r=n.node.childStore;r&&r.forEachNodeDeep(e,t)})}forEachNodeDeepAfterFilterAndSort(e,t={value:0},n=!1){const r=this.parentRowNode.level>-1&&QI(this.gos)({node:this.parentRowNode});r==="top"&&e(this.parentRowNode.sibling,t.value++);const i=this.cache.getOrderedNodeMap();for(const o of Object.values(i)){e(o.node,t.value++);const a=o.node.childStore;a&&a.forEachNodeDeepAfterFilterAndSort(e,t,n)}r==="bottom"&&e(this.parentRowNode.sibling,t.value++)}retryLoads(){this.cache.getNodes().forEach(({node:e})=>{e.failedLoad&&(e.failedLoad=!1,e.__needsRefreshWhenVisible=!0,e.stub=!0)}),this.forEachChildStoreShallow(e=>e.retryLoads()),this.fireStoreUpdatedEvent()}getRowUsingDisplayIndex(e){return this.parentRowNode.sibling&&e===this.parentRowNode.sibling.rowIndex?this.parentRowNode.sibling:this.cache.getRowByDisplayIndex(e)}getRowBounds(e){if(!this.isDisplayIndexInStore(e))return null;const t=this.cache.getNodeCachedByDisplayIndex(e);if(t){const s=this.blockUtils.extractRowBounds(t,e);if(s)return s}const{previousNode:n,nextNode:r}=this.cache.getSurroundingNodesByDisplayIndex(e)??{};if(n){const s=this.blockUtils.extractRowBounds(n.node,e);if(s!=null)return s}const i=sp(this.beans);if(r){const s=(r.node.rowIndex-e)*i;return{rowTop:r.node.rowTop-s,rowHeight:i}}const o=this.topPx+this.heightPx,a=(this.getDisplayIndexEnd()-e)*i;return{rowTop:o-a,rowHeight:i}}isPixelInRange(e){return e>=this.topPx&&e<this.topPx+this.heightPx}getRowIndexAtPixel(e){if(e<this.topPx)return this.getDisplayIndexStart();if(e>=this.topPx+this.heightPx)return this.getDisplayIndexEnd()-1;if(this.parentRowNode.sibling&&e>this.parentRowNode.sibling.rowTop&&e<this.parentRowNode.sibling.rowTop+this.parentRowNode.sibling.rowHeight)return this.parentRowNode.sibling.rowIndex;let t=Number.MAX_SAFE_INTEGER,n=null,r=Number.MAX_SAFE_INTEGER,i=null;if(this.cache.getNodes().forEach(({node:l})=>{const c=Math.abs(e-l.rowTop);if(l.rowTop<e){c<t&&(t=c,n=l);return}c<r&&(r=c,i=l)}),n=n,i=i,n){const l=this.blockUtils.getIndexAtPixel(n,e);if(l!=null)return l}const o=sp(this.beans);if(i){const l=i.rowTop,c=Math.ceil((l-e)/o);return i.rowIndex-c}const a=this.topPx+this.heightPx,s=Math.floor((a-e)/o);return this.getDisplayIndexEnd()-s}getChildStore(e){return this.storeUtils.getChildStore(e,this,t=>{const n=this.cache.getNodes().find(r=>r.node.key==t);return n?n.node:null})}forEachChildStoreShallow(e){this.cache.getNodes().forEach(({node:t})=>{t.childStore&&e(t.childStore)})}refreshAfterSort(e){if(this.storeUtils.isServerSideSortAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)){const n=this.cache.isStoreFullyLoaded(),r=this.gos.get("serverSideEnableClientSideSort");if(!(n&&r)){const o=this.cache.getRowCount(),a=this.cache.isLastRowIndexKnown();this.destroyBean(this.cache),this.cache=this.createManagedBean(new Are(this,o,a,this.storeParams));return}this.cache.clientSideSortRows()}this.forEachChildStoreShallow(n=>n.refreshAfterSort(e))}refreshAfterFilter(e){if(!this.storeUtils.isServerSideOnlyRefreshFilteredGroups()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)){this.refreshStore(!0);return}this.forEachChildStoreShallow(n=>n.refreshAfterFilter(e))}refreshStore(e){if(e){this.destroyBean(this.cache),this.cache=this.createManagedBean(new Are(this,1,!1,this.storeParams)),this.fireStoreUpdatedEvent();return}this.cache.markNodesForRefresh()}getTopLevelRowDisplayedIndex(e){return this.cache.getDisplayIndexFromStoreIndex(e)??e}isLastRowIndexKnown(){return this.cache.isLastRowIndexKnown()}getRowNodesInRange(e,t){return this.cache.getNodes().filter(({node:n})=>n.rowIndex>=e.rowIndex&&n.rowIndex<=t.rowIndex).map(({node:n})=>n)}addStoreStates(e){e.push({route:this.parentRowNode.getRoute()??[],rowCount:this.getRowCount(),lastRowIndexKnown:this.isLastRowIndexKnown(),info:this.info,maxBlocksInCache:this.storeParams.maxBlocksInCache,cacheBlockSize:this.storeParams.cacheBlockSize}),this.forEachChildStoreShallow(t=>t.addStoreStates(e))}getIdSequence(){return this.idSequence}getParentNode(){return this.parentRowNode}getRowDetails(){return{field:this.groupField,group:this.group,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn}}getSsrmParams(){return this.ssrmParams}setStoreInfo(e){e&&Object.assign(this.info,e)}fireStoreUpdatedEvent(){this.eventSvc.dispatchEvent({type:"storeUpdated"})}fireRefreshFinishedEvent(){this.eventSvc.dispatchEvent({type:"storeRefreshed",route:this.parentRowNode.getRoute()})}getBlockStates(){return this.cache.getBlockStates()}getStoreBounds(){return{topPx:this.topPx,heightPx:this.heightPx}}getCache(){return this.cache}getFirstNode(){return this.cache.getNodes().getBy("index",0)?.node??null}},mZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmStoreFactory"}wireBeans(e){this.colModel=e.colModel,this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc,this.rowAutoHeight=e.rowAutoHeight}createStore(e,t){const n=this.getStoreParams(e,t);return new gZt(e,n,t)}getStoreParams(e,t){const n=this.getLevelSpecificParams(t),r=this.getBlockSize(n),i=this.getMaxBlocksInCache(e,n);return{cacheBlockSize:r,maxBlocksInCache:i}}getMaxBlocksInCache(e,t){const n=t&&t.maxBlocksInCache!=null?t.maxBlocksInCache:this.gos.get("maxBlocksInCache");if(n!=null&&n>=0){if(e.dynamicRowHeight){ut(203);return}if(this.rowAutoHeight?.active){ut(204);return}return n}}getBlockSize(e){const t=e&&e.cacheBlockSize!=null?e.cacheBlockSize:this.gos.get("cacheBlockSize");return t!=null&&t>0?t:100}getLevelSpecificParams(e){const t=this.gos.getCallback("getServerSideGroupLevelParams");if(!t)return;const n={level:e.level+1,parentRowNode:e.level>=0?e:void 0,rowGroupColumns:this.rowGroupColsSvc?.columns??[],pivotColumns:this.pivotColsSvc?.columns??[],pivotMode:this.colModel.isPivotMode()};return t(n)}},vZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmStoreUtils"}wireBeans(e){this.colModel=e.colModel,this.serverSideRowModel=e.rowModel,this.storeFactory=e.ssrmStoreFactory}getChildStore(e,t,n){if(!e?.length)return t;const r=e[0],i=n(r);if(i){if(e.length===1&&!i.childStore){const s=this.serverSideRowModel.getParams();i.childStore=this.createBean(this.storeFactory.createStore(s,i))}const o=e.slice(1,e.length),a=i.childStore;return a?a.getChildStore(o):null}return null}isServerRefreshNeeded(e,t,n){if(n.valueColChanged||n.secondaryColChanged)return!0;const r=e.level+1;if(!(r<t.length))return!0;const a=t[r].id;return n.changedColumns.indexOf(a)>-1?!0:this.colModel.getCols().filter(u=>u.getColDef().showRowGroup&&n.changedColumns.includes(u.getId())).map(u=>u.getColDef().showRowGroup).some(u=>u===!0||u===a)}getServerSideInitialRowCount(){return this.gos.get("serverSideInitialRowCount")}isServerSideSortAllLevels(){return this.gos.get("serverSideSortAllLevels")&&Au(this.gos)}isServerSideOnlyRefreshFilteredGroups(){return this.gos.get("serverSideOnlyRefreshFilteredGroups")&&Au(this.gos)}},bZt=class extends dt{constructor(){super(...arguments),this.beanName="ssrmTxnManager",this.asyncTransactions=[]}wireBeans(e){this.valueCache=e.valueCache,this.serverSideRowModel=e.rowModel,this.selectionSvc=e.selectionSvc}postConstruct(){Au(this.gos)}applyTransactionAsync(e,t){this.asyncTransactionsTimeout==null&&this.scheduleExecuteAsync(),this.asyncTransactions.push({transaction:e,callback:t})}scheduleExecuteAsync(){const e=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimeout=window.setTimeout(()=>{this.executeAsyncTransactions()},e)}executeAsyncTransactions(){if(!this.asyncTransactions)return;const e=[],t=[],n=[];let r=!1;this.asyncTransactions.forEach(i=>{let o;if(this.serverSideRowModel.executeOnStore(i.transaction.route,l=>{o=l.applyTransaction(i.transaction)})?o==null&&(o={status:kv.StoreNotFound}):o={status:kv.StoreNotStarted},t.push(o),o.status==kv.StoreLoading){n.push(i);return}i.callback&&e.push(()=>i.callback(o)),o.status===kv.Applied&&(r=!0)}),e.length>0&&window.setTimeout(()=>{e.forEach(i=>i())},0),this.asyncTransactionsTimeout=void 0,this.asyncTransactions=n,r&&(this.valueCache?.onDataChanged(),this.eventSvc.dispatchEvent({type:"storeUpdated"})),t.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:t})}flushAsyncTransactions(){this.asyncTransactionsTimeout!=null&&clearTimeout(this.asyncTransactionsTimeout),this.executeAsyncTransactions()}applyTransaction(e){let t;if(this.serverSideRowModel.executeOnStore(e.route,r=>{t=r.applyTransaction(e)}))if(t){if(this.valueCache?.onDataChanged(),t.remove&&this.selectionSvc){const r=t.remove.map(i=>i.id);this.selectionSvc.deleteSelectionStateFromParent(e.route||[],r)}return this.eventSvc.dispatchEvent({type:"storeUpdated"}),t}else return{status:kv.StoreNotFound};else return{status:kv.StoreNotStarted}}},yZt={moduleName:"ServerSideRowModel",version:wi,rowModels:["serverSide"],beans:[JQt,XQt,vZt,UQt,ZQt,bZt,YQt,mZt,KQt,uZt,pZt,dZt,cZt,QQt],dependsOn:[es,Lye,Knt,xit,Oit,sQt,lQt]},MZt={moduleName:"ServerSideRowModelApi",version:wi,apiFunctions:{getServerSideSelectionState:eZt,setServerSideSelectionState:tZt,applyServerSideTransaction:nZt,applyServerSideTransactionAsync:iZt,applyServerSideRowData:rZt,retryServerSideLoads:oZt,flushServerSideAsyncTransactions:aZt,refreshServerSide:sZt,getServerSideGroupLevelState:lZt},dependsOn:[es,Qnt,Znt]},CZt=".ag-sparkline-wrapper{height:100%;line-height:normal;position:absolute;top:0;width:100%}",Ore=Symbol("WrappedFunctionMarker"),qRe=(e,t)=>{if(e[Ore])return e;const n=(...r)=>t(e,...r);return n[Ore]=Ore,n};function xZt(e){return{content:`${e.xValue} ${e.yValue}`}}function wZt(e){return{content:`${e.yValue}`}}var SZt=class extends Gt{constructor(){super({tag:"div",cls:"ag-sparkline-wrapper",children:[{tag:"span",ref:"eSparkline"}]}),this.eSparkline=at,this.cachedWidth=0,this.cachedHeight=0,this.dataRef=[],this.processedData=[]}postConstruct(){this.env=this.beans.environment,this.addManagedPropertyListeners(["chartThemeOverrides","chartThemes","styleNonce"],()=>this.refresh(this.params))}createListener(e=!0){return()=>this.updateSize(this.params?.column?.getActualWidth()??0,(this.params?.node.rowHeight??0)-2,e)}initGridObserver(){const e=this.createListener(),t=this.createListener(!1),n=this.params?.column,r=this.params?.node;n.__addEventListener("columnStateUpdated",e),r.__addEventListener("heightChanged",e),this.addDestroyFunc(()=>{n.__removeEventListener("columnStateUpdated",e),r.__removeEventListener("heightChanged",e)}),t()}updateSize(e,t,n=!0){if(e-=this.env.getCellPadding(),e!==this.cachedWidth||t!==this.cachedHeight){this.cachedWidth=e,this.cachedHeight=t;const r=this.refresh.bind(this);n?v$(()=>this.isAlive()&&r()):r()}}init(e){this.params=e,this.initGridObserver()}refresh(e=this.params){var t;this.params=e;const n=this.cachedWidth,r=this.cachedHeight,i=this.gos.get("styleNonce");if(!this.sparklineInstance&&e&&n>0&&r>0){if(this.sparklineOptions={container:this.eSparkline,width:n,height:r,...e.sparklineOptions,...i?{styleNonce:i}:{},data:this.processData(e.value)},(t=this.sparklineOptions).type??(t.type="line"),this.sparklineOptions.tooltip?.renderer)this.wrapTooltipRenderer();else{const a=this.getDefaultTooltipRenderer();this.sparklineOptions.tooltip={...this.sparklineOptions.tooltip,renderer:a}}const o=this.sparklineOptions?.theme;return this.sparklineOptions.type==="bar"&&this.sparklineOptions.itemStyler?this.wrapItemStyler(this.sparklineOptions):o?.overrides?.bar?.series?.itemStyler&&this.wrapItemStyler(o.overrides.bar.series),this.sparklineInstance=e.createSparkline(this.sparklineOptions),!0}else if(this.sparklineInstance)return this.sparklineInstance.update({...this.sparklineOptions,data:this.processData(e?.value),width:n,height:r,...i?{styleNonce:i}:{}}),!0;return!1}processData(e=[]){return e.length===0?e:(this.dataRef!==e&&(this.dataRef=e,this.processedData=Array.isArray(e[0])?e.filter(t=>t!=null):e),this.processedData)}createContext(){return{data:this.params?.data,cellData:this.params?.value}}getDefaultTooltipRenderer(e){const t=e?.title,n=this.sparklineOptions.xKey,r=Array.isArray(this.sparklineOptions.data?.[0]);return!t&&(n||r)?xZt:wZt}wrapItemStyler(e){e.itemStyler=qRe(e.itemStyler,(t,n)=>t({...n,context:this.createContext()}))}wrapTooltipRenderer(){this.sparklineOptions.tooltip={...this.sparklineOptions.tooltip,renderer:qRe(this.sparklineOptions.tooltip.renderer,(e,t)=>{const n=e({...t,context:this.createContext()});return typeof n=="string"?n:{...this.getDefaultTooltipRenderer(n)(t),...n}})}}destroy(){super.destroy(),this.sparklineInstance?.destroy()}},BRe="Sparklines",AZt={moduleName:BRe,version:wi,dependsOn:[es],validate:()=>({isValid:!1,message:uet(258)}),with:e=>(e.setup(),{moduleName:BRe,version:wi,dependsOn:[es],css:[CZt],userComponents:{agSparklineCellRenderer:{classImp:SZt,params:{createSparkline:e.createSparkline}}},validate:()=>({isValid:!0})})},OZt=".ag-find-cell{display:block;overflow:hidden;text-overflow:ellipsis}.ag-find-match{background-color:var(--ag-find-match-background-color);color:var(--ag-find-match-color)}.ag-find-active-match{background-color:var(--ag-find-active-match-background-color);color:var(--ag-find-active-match-color)}";function zZt(e){e.findSvc?.next()}function TZt(e){e.findSvc?.previous()}function EZt(e){return e.findSvc?.totalMatches??0}function RZt(e,t,n){e.findSvc?.goTo(t,n)}function IZt(e){e.findSvc?.clearActive()}function PZt(e){return e.findSvc?.activeMatch}function DZt(e,t){const{node:n,column:r}=t;return e.findSvc?.getNumMatches(n,r)??0}function kZt(e,t){return e.findSvc?.getParts(t)??[]}function LZt(e){return e.findSvc?.refresh(!0)}var _Zt={tag:"span",cls:"ag-find-cell"},NZt=class extends Gt{constructor(){super(_Zt)}init(e){this.refresh(e)}refresh(e){const{node:t,column:n}=e,{findSvc:r,valueSvc:i}=this.beans,{value:o,valueFormatted:a}=i.getValueForDisplay(n,t,!0),s=a??o??"",l=this.getGui();Xi(l);const c=r?.getParts({value:s,node:t,column:n??null});if(!c)return l.textContent=Df(s)??"",l.classList.remove("ag-find-cell-active-match"),!0;let u=!1;for(const{value:d,match:p,activeMatch:h}of c){const g=Df(d)??"";if(p){const m=Nr({tag:"mark",cls:"ag-find-match"});m.textContent=g,h&&(m.classList.add("ag-find-active-match"),u=!0),l.appendChild(m)}else l.appendChild(document.createTextNode(g))}return l.classList.toggle("ag-find-cell-active-match",u),!0}};function jRe(e){return e?.toLocaleLowerCase()}function t4(e,t,n){const r=t(Df(n));let i=0;if(r?.length){let o=-1;for(;o=r.indexOf(e,o+1),o!=-1;)i++}return i}var FZt=class extends dt{constructor(){super(...arguments),this.beanName="findSvc",this.active=!1,this.topMatches=new Map,this.topNodes=[],this.topNumMatches=0,this.centerMatches=new Map,this.centerNodes=[],this.centerNumMatches=0,this.bottomMatches=new Map,this.bottomNodes=[],this.caseFormat=jRe,this.scrollOnRefresh=!1,this.totalMatches=0}postConstruct(){if(!oa(this.gos))return;const e=this.refresh.bind(this,!1),t=this.refresh.bind(this,!0),n=Ml(this,()=>{this.isAlive()&&t()},0);this.refreshDebounced=n,this.addManagedPropertyListener("findSearchValue",e),this.addManagedPropertyListener("findOptions",({currentValue:i,previousValue:o})=>{gz(i,o)||e()}),this.addManagedPropertyListeners(["groupSuppressBlankHeader","showOpenedGroup"],t),this.addManagedEventListeners({modelUpdated:t,displayedColumnsChanged:t,pinnedRowDataChanged:t,cellValueChanged:n,rowNodeDataChanged:n});const r=this.beans.rowSpanSvc;r&&this.addManagedListeners(r,{spannedCellsUpdated:n}),e()}next(){this.findAcrossContainers(!1,["top",null,"bottom"],1,1)}previous(){this.findAcrossContainers(!0,["bottom",null,"top"],this.totalMatches,-1)}goTo(e,t){if(!t&&e===this.activeMatch?.numOverall)return;const{topMatches:n,topNumMatches:r,centerMatches:i,centerNumMatches:o,bottomMatches:a}=this;if(e<=r){this.goToInContainer(n,e,0);return}if(e<=o){this.goToInContainer(i,e,r);return}this.goToInContainer(a,e,r+o)}clearActive(){this.activeMatch&&this.setActive(void 0)}isMatch(e,t){return this.active&&!!this.getMatches(e.rowPinned).get(e)?.some(([n])=>n===t)}getNumMatches(e,t){return this.getMatches(e.rowPinned).get(e)?.find(([n])=>n===t)?.[1]??0}getParts(e){const{value:t,node:n,column:r,precedingNumMatches:i}=e,o=this.findSearchValue,a=Df(t)??"";if(Yi(o))return[{value:a}];const s=this.caseFormat(a)??"",l=this.getActiveMatchNum(n,r)-(i??0);let c=0,u=0;const d=o.length,p=[];for(;;){const h=s.indexOf(o,c);if(h!=-1){u++,h>c&&p.push({value:a.slice(c,h)});const g=h+d;p.push({value:a.slice(h,g),match:!0,activeMatch:u===l}),c=g}else return c<a.length&&p.push({value:a.slice(c)}),p}}registerDetailGrid(e,t){const n=this.gos;if(!oa(n))return;const r=()=>n.get("findOptions")?.searchDetail,i=o=>{const s=this.centerMatches.get(e)?.[0]?.[1]??0;o!==s&&this.refreshDebounced()};t.addEventListener("findChanged",o=>{t.isDestroyed()||!this.isAlive()||!this.active||!r()||i(o.totalMatches)}),t.addEventListener("gridPreDestroyed",()=>{if(!this.isAlive()||!this.active||!r())return;const o=e.parent,a=this.findSearchValue;if(!o||!a)return;const s=n.get("detailCellRendererParams")?.getFindMatches?.({node:o,data:o.data,findSearchValue:n.get("findSearchValue"),updateMatches:this.refreshDebounced,getMatchesForValue:l=>t4(a,this.caseFormat,l)})??0;i(s)}),r()&&t.setGridOption("findSearchValue",n.get("findSearchValue"))}refresh(e){const t=new Set([...this.topNodes,...this.centerNodes,...this.bottomNodes]);this.topNodes=[],this.centerNodes=[],this.bottomNodes=[];const{topNodes:n,topMatches:r,centerMatches:i,centerNodes:o,bottomNodes:a,bottomMatches:s,beans:{gos:l,visibleCols:c,rowModel:u,valueSvc:d,pinnedRowModel:p,pagination:h,rowSpanSvc:g,masterDetailSvc:m,colModel:v},findSearchValue:y}=this,M=l.get("findOptions"),C=M?.caseSensitive?U=>U??void 0:jRe;this.caseFormat=C;const x=l.get("findSearchValue"),w=C(x?.trim());this.findSearchValue=w,r.clear(),i.clear(),s.clear();const S=e?this.activeMatch:void 0;this.activeMatch=void 0;const A=l.get("masterDetail")&&M?.searchDetail&&m;if(Yi(w)){if(this.active=!1,this.topNumMatches=0,this.centerNumMatches=0,this.totalMatches=0,this.refreshRows(t),A){const U=m.store;for(const X of Object.keys(U))U[X]?.api?.findClearActive()}Yi(y)||this.dispatchFindChanged();return}const z=c.allCols,O=l.getCallback("isFullWidthRow"),T=l.get("detailCellRendererParams"),I=l.get("fullWidthCellRendererParams"),P=l.get("groupRowRendererParams"),N=sit(l),F=v.isPivotMode();let L=0,W,H,j=!1;const G=(U,X,Q,re)=>{if(!Q)return;let ee=W.get(U);ee||(ee=[],W.set(U,ee),H.push(U),re||t.add(U)),ee.push([X,Q]),L+=Q},q=U=>{if(j){let ee=U.rowIndex,se=U.parent;for(;ee==null&&se;)ee=se.rowIndex,se=se.parent;if(ee==null||!h.isRowInPage(ee))return}const X=U.hasChildren();if(!uit(N,U,X,F,lit(N,U,X),cit(N,U,X)))return;const Q=U.data;if(O?.({rowNode:U})){if(I){const ee=I.getFindMatches?.({node:U,data:Q,findSearchValue:x,updateMatches:this.refreshDebounced,getMatchesForValue:se=>t4(w,C,se)})??0;G(U,null,ee)}return}if(J2e(l,U,F)){let ee;const se=P?.getFindText;if(se){const te=d.getValueForDisplay(void 0,U).value;ee=se(Vn(l,{value:te,node:U,data:Q,column:null,colDef:null,getValueFormatted:()=>{const{valueFormatted:ce}=d.getValueForDisplay(void 0,U,!0);return ce}}))}else{const{value:te,valueFormatted:ce}=d.getValueForDisplay(void 0,U,!0);ee=ce??te}const pe=t4(w,C,ee);G(U,null,pe);return}const re=U.level>0&&l.get("groupHideOpenParents")&&U.parent?.getFirstChild()===U&&!U.parent?.expanded;for(const ee of z){if(p0(ee)||f3(ee))continue;const se=g?.getCellSpan(ee,U);if(se&&se.firstNode!==U||ee.colDef.showRowGroup&&re)continue;let pe;const te=ee.colDef,ce=te.getFindText;if(ce){const ae=d.getValueForDisplay(ee,U).value;pe=ce(Vn(l,{value:ae,node:U,data:Q,column:ee,colDef:te,getValueFormatted:()=>{const{valueFormatted:ne}=d.getValueForDisplay(ee,U,!0);return ne}}))}else{const{value:ae,valueFormatted:ne}=d.getValueForDisplay(ee,U,!0);pe=ne??ae}const oe=t4(w,C,pe);G(U,ee,oe)}if(U.master&&A){const ee=U.detailNode;if(ee){const se=ee.detailGridInfo?.api;if(se){se.setGridOption("findSearchValue",x);const pe=se.findGetTotalMatches();G(ee,null,pe);return}}if(T){const se=T.getFindMatches?.({node:U,data:Q,findSearchValue:x,updateMatches:this.refreshDebounced,getMatchesForValue:pe=>t4(w,C,pe)})??0;G(ee??{parent:U,dummy:!0},null,se,!ee)}}};W=r,H=n,p?.forEachPinnedRow("top",q),this.topNumMatches=L;let $=L;W=i,H=o,L=0,j=!!h&&!!M?.currentPageOnly,u.forEachNodeAfterFilterAndSort(q,!0),this.centerNumMatches=L,$+=L,W=s,H=a,L=0,j=!1,p?.forEachPinnedRow("bottom",q),$+=L,this.totalMatches=$,this.active=!0,this.refreshRows(t),S&&this.resetActiveMatch(S),this.dispatchFindChanged()}resetActiveMatch(e){const{column:t,numInMatch:n}=e;let r=e.node;if(r.dummy){const c=r.parent?.detailNode;if(!c)return;r=c}const i=r.rowPinned??null;if(!this.getMatches(i)?.get(r)?.some(([c,u])=>c===t&&u>=n))return;let a=0;i==null?a=this.topNumMatches:i==="bottom"&&(a=this.topNumMatches+this.centerNumMatches),(()=>{const c=this.getMatches(i);for(const u of c.keys()){const d=u===r,p=c.get(u);for(const[h,g]of p){if(d&&h===t){a+=n;return}a+=g}}})();const l={...e,node:r,numOverall:a};this.activeMatch=l,this.refreshRows(new Set([r]),t==null?void 0:new Set([t])),this.scrollOnRefresh&&(this.scrollOnRefresh=!1,this.scrollToActive(l)),this.setDetailActive(l)}refreshRows(e,t){e.size&&this.beans.rowRenderer.refreshCells({rowNodes:[...e],columns:t?[...t]:void 0,force:!0,suppressFlash:!0})}findAcrossContainers(e,t,n,r){if(!this.totalMatches){this.setActive();return}const i=this.activeMatch;let o=t;if(i){const{column:a,node:s,numInMatch:l,numOverall:c}=i,u=s.rowPinned??null,d=c+r;if(this.findInContainer(u,e,d,s,a,l))return;const h=t.indexOf(u),g=t.length;if(t.slice(h+1,g).some(v=>this.findInContainer(v,e,d)))return;o=t.slice(0,h+1)}o.some(a=>this.findInContainer(a,e,n))}findInContainer(e,t,n,r,i,o){const a=this.getMatches(e),s=this.getRowNodes(e),l=t?-1:1;if(r!=null){const p=a.get(r),h=p?.findIndex(([m])=>m===i);if(h!=null&&h!=-1){const[m,v]=p[h];if(t?o>1:o<v)return this.setActive({column:m,node:r,numInMatch:o+l,numOverall:n}),!0}const g=h!=null&&h!=-1?p?.[h+l]:void 0;if(g){const[m,v]=g;return this.setActive({column:m,node:r,numInMatch:t?v:1,numOverall:n}),!0}}let c;if(r==null)c=s[t?s.length-1:0];else{const p=s.findIndex(h=>h===r);c=s[p+l]}if(c==null)return!1;const u=a.get(c),d=u?.[t?u.length-1:0];if(d){const[p,h]=d;return this.setActive({column:p,node:c,numInMatch:t?h:1,numOverall:n}),!0}return!1}dispatchFindChanged(){const{eventSvc:e,activeMatch:t,totalMatches:n,findSearchValue:r}=this;e.dispatchEvent({type:"findChanged",activeMatch:t,totalMatches:n,findSearchValue:r})}setActive(e){if(e&&e.node.rowIndex==null){const n=e.node;let r=n.footer?n.sibling:n.parent;for(;r&&r.level!==-1;)r.expanded=!0,r=r.parent;this.activeMatch=e,this.scrollOnRefresh=!0,this.beans.expansionSvc?.onGroupExpandedOrCollapsed();return}const t=this.activeMatch;this.activeMatch=e,this.refreshAndScrollToActive(e,t),e&&this.setDetailActive(e),this.dispatchFindChanged()}setDetailActive({node:e,numInMatch:t}){e.detail&&e.detailGridInfo?.api?.findGoTo(t)}refreshAndScrollToActive(e,t){if(e||t){const n=new Set,r=new Set;let i=!1;const o=a=>{if(!a)return;const{node:s,column:l}=a;n.add(s),l==null?i=!0:r.add(l)};o(e),o(t),this.refreshRows(n,i?void 0:r)}e&&this.scrollToActive(e)}scrollToActive({node:{rowPinned:e,rowIndex:t},column:n}){const{ctrlsSvc:r,pagination:i,gos:o}=this.beans,a=r.getScrollFeature();e==null&&t!=null&&(i&&!o.get("findOptions")?.currentPageOnly&&!i.isRowInPage(t)&&i.goToPageWithIndex(t),a.ensureIndexVisible(t)),a.ensureColumnVisible(n)}goToInContainer(e,t,n){let r=n;for(const i of e.keys()){const o=e.get(i);for(const[a,s]of o){if(t<=r+s){this.setActive({column:a,node:i,numInMatch:t-r,numOverall:t});return}r+=s}}}getMatches(e){return e==="top"?this.topMatches:e==="bottom"?this.bottomMatches:this.centerMatches}getRowNodes(e){return e==="top"?this.topNodes:e==="bottom"?this.bottomNodes:this.centerNodes}getActiveMatchNum(e,t){const n=this.activeMatch;return n!=null&&n.node===e&&n.column===t?n.numInMatch:0}destroy(){this.topMatches.clear(),this.topNodes.length=0,this.centerMatches.clear(),this.centerNodes.length=0,this.bottomMatches.clear(),this.bottomNodes.length=0,this.activeMatch=void 0,super.destroy()}},WZt={moduleName:"FindCore",version:wi,rowModels:["clientSide"],beans:[FZt],userComponents:{agFindCellRenderer:NZt},css:[OZt]},qZt={moduleName:"Find",version:wi,apiFunctions:{findGetTotalMatches:EZt,findGoTo:RZt,findNext:zZt,findPrevious:TZt,findGetActiveMatch:PZt,findGetNumMatches:DZt,findGetParts:kZt,findClearActive:IZt,findRefresh:LZt},dependsOn:[WZt]},BZt=class extends dt{constructor(e){super(),this.beanName="agChartsExports",this.isEnterprise=!1,this.create=e.create,this._Theme=e._Theme,this._Scene=e._Scene,this.isEnterprise=e.isEnterprise,this._Util=e._Util}};function HRe(e){return e.chart!=null?e.chart:e}function $A(e,t,n){if(e==null)return n;const r=t.split(".");let i=e;for(;r.length>1;)if(i=i[r.shift()],i==null)return n;const o=i[r[0]];return o??n}function jZt(e,t,n){if(e==null)return;const r=t.split(".");let i=e;r.forEach((o,a)=>{i[o]||(i[o]={}),a<r.length-1&&(i=i[o])}),i[r[r.length-1]]=n}var HZt={column:"bar",groupedColumn:"bar",stackedColumn:"bar",normalizedColumn:"bar",bar:"bar",groupedBar:"bar",stackedBar:"bar",normalizedBar:"bar",line:"line",stackedLine:"line",normalizedLine:"line",scatter:"scatter",bubble:"bubble",pie:"pie",donut:"donut",doughnut:"donut",area:"area",stackedArea:"area",normalizedArea:"area",histogram:"histogram",radarLine:"radar-line",radarArea:"radar-area",nightingale:"nightingale",radialColumn:"radial-column",radialBar:"radial-bar",sunburst:"sunburst",rangeBar:"range-bar",rangeArea:"range-area",boxPlot:"box-plot",treemap:"treemap",heatmap:"heatmap",waterfall:"waterfall",funnel:"funnel",coneFunnel:"cone-funnel",pyramid:"pyramid"},VZt=new Set(["columnLineCombo","areaColumnCombo","customCombo"]),GZt=["grouped","stacked","normalized"],zit={area:{isCartesian:!0,canInvert:!0},bar:{isCartesian:!0,canInvert:!0},histogram:{isCartesian:!0},line:{isCartesian:!0,canInvert:!0},pie:{isPie:!0},donut:{isPie:!0,canInvert:!0},scatter:{isCartesian:!0},bubble:{isCartesian:!0},"radial-column":{isPolar:!0,isEnterprise:!0,isRadial:!0,canInvert:!0},"radial-bar":{isPolar:!0,isEnterprise:!0,isRadial:!0,canInvert:!0},"radar-line":{isPolar:!0,isEnterprise:!0,canInvert:!0},"radar-area":{isPolar:!0,isEnterprise:!0,canInvert:!0},nightingale:{isPolar:!0,isEnterprise:!0,canInvert:!0},"range-bar":{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},"range-area":{isCartesian:!0,isEnterprise:!0},"box-plot":{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},treemap:{isEnterprise:!0,isHierarchical:!0},sunburst:{isEnterprise:!0,isHierarchical:!0},heatmap:{isCartesian:!0,isEnterprise:!0},waterfall:{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},funnel:{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},"cone-funnel":{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},pyramid:{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0}};function $Zt(e){return!!zit[e]}function Qye(e){return VZt.has(e)}function ww(e,t){return!!zit[e]?.[t]}function UZt(e){return ww(Us(e),"isEnterprise")}var XZt=new Set(["stackedColumn","normalizedColumn","stackedBar","normalizedBar"]);function YZt(e){return XZt.has(e)}function ix(e){return ww(e,"isCartesian")}function Phe(e){return e==="funnel"||e==="cone-funnel"||e==="pyramid"}function Dhe(e){return ww(e,"isPolar")}function KZt(e){return ww(e,"isRadial")}function iO(e){return ww(e,"isHierarchical")}function mW(e){return e==="doughnut"?"donut":e}function Tit(e){return HZt[e]}function Us(e){return Tit(e)??"line"}function Eit(e){return ww(e,"isPie")}function QZt(e){return e==="pie"||e==="waterfall"||e==="histogram"||e==="funnel"||e==="coneFunnel"||e==="pyramid"}function khe(e){return iO(Us(e))?void 0:1}function q$(e){return iO(Us(e))?2:QZt(e)?1:void 0}function Rit(e){return!Qye(e)&&ww(Us(e),"canInvert")}function ZZt(e){return ww(Us(e),"canSwitchDirection")}function Zye(e){switch(e){case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":case"stackedLine":case"normalizedLine":case"stackedArea":case"normalizedArea":return`${e}Full`;case"doughnut":return"donut";case"areaColumnCombo":return"AreaColumnCombo";default:return e}}var Iit=["number","category","grouped-category","log","time"];function JZt(e){switch(e){case"bar":case"stackedBar":case"normalizedBar":return["number","category"];case"groupedBar":return["number","grouped-category"];case"column":case"stackedColumn":case"normalizedColumn":case"line":case"stackedLine":case"normalizedLine":case"area":case"stackedArea":case"normalizedArea":case"histogram":return["category","number"];case"groupedColumn":return["grouped-category","number"];case"scatter":case"bubble":return["number","number"];default:return}}function eJt(e,t,n,r,i){const{chartOptionsToRestore:o,chartPaletteToRestore:a,chartThemeToRestore:s,agChartsExports:l}=e,c=aJt(e),u=Jye(c,l._Theme),d=u?{baseTheme:c}:Pit(e,c)??{},p=e.getGridOptionsChartThemeOverrides(),h=e.apiChartThemeOverrides,g=Us(e.chartType),m=e.crossFiltering?nJt(t,e,g):void 0,M=[u?iJt(e,n,(()=>{const C=x=>x?Object.keys(x).some(w=>$A(x[w],"title.enabled",!1)):!1;return C(p)||C(h)})()):void 0,oJt(),r,m,p,h,{...o??{}},i].filter(C=>!!C).reduce((C,x)=>({baseTheme:C,overrides:x}),d);if(a&&c===s){const C=e.agChartsExports._Theme.getChartTheme(d).palette;tJt(a,C)||(M.palette=a)}return M}function tJt(e,t){const n=(r,i)=>r===i?!0:r?.length!==i?.length?!1:r?.every((o,a)=>o===i?.[a])??!1;return n(e.fills,t.fills)&&n(e.strokes,t.strokes)}function Jye(e,t){return Object.keys(t.themes).includes(e)}function nJt(e,t,n){const i={tooltip:{delay:500},legend:{listeners:{legendItemClick:a=>{const s=e.getChart(),l=[a.seriesId,`${a.seriesId}-filtered-out`];s.series.filter(c=>l.includes(c.id)).forEach(c=>c.toggleSeriesItem(void 0,"category",a.itemId,void 0))}}},listeners:{click:a=>t.crossFilterCallback(a,!0)}};if(n==="pie"||n==="donut")return{[n]:{series:{fills:{$if:[{$eq:[{$value:"$index"},0]},{$map:[{$mix:[{$value:"$1"},{$ref:"backgroundColor"},.7]},{$palette:"fills"}]},{$palette:"fills"}]},strokes:{$if:[{$eq:[{$value:"$index"},0]},{$map:[{$mix:[{$value:"$1"},{$ref:"backgroundColor"},.7]},{$palette:"strokes"}]},{$palette:"strokes"}]}},...i}};const o={};return n!=="line"&&(o.fill={$if:[{$isEven:[{$value:"$index"}]},{$palette:"fill"},{$mix:[{$path:["../$prevIndex/fill",{$palette:"fill"}]},{$ref:"backgroundColor"},.7]}]}),{[n]:{series:{stroke:{$if:[{$isEven:[{$value:"$index"}]},{$palette:"stroke"},{$mix:[{$path:["../$prevIndex/fill",{$palette:"stroke"}]},{$ref:"backgroundColor"},.7]}]},...o},...i}}}var rJt=Iit.reduce((e,t)=>({...e,[t]:{title:{_enabledFromTheme:!0}}}),{});function iJt(e,t,n){const r=e.getExtraPaddingDirections();return{common:{...t?{animation:{duration:500}}:void 0,axes:rJt,padding:{top:!n&&r.includes("top")?40:20,right:r.includes("right")?30:20,bottom:r.includes("bottom")?40:20,left:r.includes("left")?30:20}}}}function oJt(){return{pie:{series:{title:{_enabledFromTheme:!0},calloutLabel:{_enabledFromTheme:!0},sectorLabel:{enabled:!1,_enabledFromTheme:!0}}},donut:{series:{title:{_enabledFromTheme:!0},calloutLabel:{_enabledFromTheme:!0},sectorLabel:{enabled:!1,_enabledFromTheme:!0}}}}}function aJt(e){let t=e.getChartThemeName();const n=e.getChartThemes();return n.includes(t)||(t=n[0]),t}function Pit(e,t){const{customChartThemes:n}=e,r=n&&n[t];return r||ut(140,{name:t}),r}var gD=class{constructor(e){this.chartProxyParams=e,this.clearThemeOverrides=!1,this.agChartsExports=e.agChartsExports,this.chart=e.chartInstance,this.chartType=e.chartType,this.crossFiltering=e.crossFiltering,this.crossFilterCallback=e.crossFilterCallback,this.standaloneChartType=Us(this.chartType),this.chart==null?this.chart=e.agChartsExports.create(this.getCommonChartOptions()):this.clearThemeOverrides=!0}crossFilteringReset(){}update(e){this.getChartRef().update(this.getUpdateOptions(e,this.getCommonChartOptions(e.updatedOverrides)))}updateThemeOverrides(e){this.getChartRef().updateDelta({theme:{overrides:e}})}getChart(){return HRe(this.chart)}getChartRef(){return this.chart}downloadChart(e,t,n){const{chart:r}=this,i=HRe(r),o=t||(i.title?i.title.text:"chart"),{width:a,height:s}=e||{};r.download({width:a,height:s,fileName:o,fileFormat:n})}getChartImageDataURL(e){return this.getChart().getCanvasDataURL(e)}getChartOptions(){return this.chart.getOptions()}getChartThemeOverrides(){return this.getChartOptions().theme.overrides??{}}getChartPalette(){return this.agChartsExports._Theme.getChartTheme(this.getChartOptions().theme).palette}setPaired(e){const t=Us(this.chartProxyParams.chartType);this.chart.updateDelta({theme:{overrides:{[t]:{paired:e}}}})}isPaired(){const e=Us(this.chartProxyParams.chartType);return $A(this.getChartThemeOverrides(),`${e}.paired`,!0)}lookupCustomChartTheme(e){return Pit(this.chartProxyParams,e)}getSeriesGroupType(){}transformCategoryData(e,t){return e.map((n,r)=>{const i=n[t],o=i&&i.toString?i.toString():"",a={...n};return a[t]={id:r,value:i,toString:()=>o},a})}getCommonChartOptions(e){const t=this.clearThemeOverrides?{}:this.chart?.getOptions()??{},n=this.chart!=null?this.getActiveFormattingPanelOverrides():void 0;this.clearThemeOverrides=!1;const r=this.chartProxyParams.styleNonce,i=eJt(this.chartProxyParams,this,this.agChartsExports.isEnterprise,this.getChartThemeDefaults(),e??n),o={...t,mode:"integrated",...r?{styleNonce:r}:{}};return this.chartProxyParams.suppressFieldDotNotation!==void 0&&(o.suppressFieldDotNotation=this.chartProxyParams.suppressFieldDotNotation),o.theme=i,o.container=this.chartProxyParams.parentElement,o}getChartThemeDefaults(){const e=this.getSeriesChartThemeDefaults(),t=e?{[this.standaloneChartType]:e}:{},n={enabled:!0,snap:!0,label:{enabled:!1}},r=this.agChartsExports.isEnterprise?{zoom:{enabled:!0},animation:{enabled:!0,duration:500},axes:{number:{crosshair:n},category:{crosshair:n},log:{crosshair:n},time:{crosshair:n}}}:{};return r.minHeight=0,r.minWidth=0,r.navigator={enabled:!1},{common:r,...t}}getSeriesChartThemeDefaults(){}getActiveFormattingPanelOverrides(){return this.clearThemeOverrides?{}:this.chart?.getOptions().theme?.overrides??{}}destroy({keepChartInstance:e=!1}={}){if(e)return this.chart.resetAnimations(),this.chart;this.destroyChart()}destroyChart(){this.chart&&(this.chart.destroy(),this.chart=void 0)}},Sw=class extends gD{constructor(){super(...arguments),this.crossFilteringAllPoints=new Set,this.crossFilteringSelectedPoints=[]}getUpdateOptions(e,t){const n=this.getAxes(e,t);return{...t,data:this.getData(e,n),axes:n,series:this.getSeries(e)}}getData(e,t){const n=["area","line"].includes(this.standaloneChartType);return this.crossFiltering&&n?this.getCrossFilterData(e):this.getDataTransformedData(e,t)}getDataTransformedData(e,t){const n=t[0].type,{categories:r,data:i}=e,[o]=r;switch(n){case"category":return this.transformCategoryData(i,o.id);case"time":return this.transformTimeData(i,o.id);default:return i}}getXAxisType(e){return e.grouping?"grouped-category":this.isXAxisOfType(e,"time",t=>t instanceof Date)?"time":this.isXAxisOfType(e,"number")?"number":"category"}isXAxisOfType(e,t,n){const[r]=e.categories;if(r?.chartDataType)return r.chartDataType===t;if(!n)return!1;const i=e.data[0];return i?n(i[r.id]):!1}transformTimeData(e,t){return e[0]?.[t]instanceof Date?e:e.map(r=>{const i=r[t];return typeof i=="string"?{...r,[t]:new Date(i)}:r})}crossFilteringReset(){this.crossFilteringSelectedPoints=[],this.crossFilteringAllPoints.clear()}crossFilteringPointSelected(e){return this.crossFilteringSelectedPoints.length==0||this.crossFilteringSelectedPoints.includes(e)}crossFilteringDeselectedPoints(){return this.crossFilteringSelectedPoints.length>0&&this.crossFilteringAllPoints.size!==this.crossFilteringSelectedPoints.length}extractLineAreaCrossFilterSeries(e,t){const[n]=t.categories,r=i=>this.standaloneChartType==="area"?t.getCrossFilteringContext().lastSelectedChartId===t.chartId?i+"-total":i:i+"-total";return e.map(i=>(i.yKey=r(i.yKey),i.listeners={nodeClick:o=>{const a=o.datum[i.xKey],s=o.event.metaKey||o.event.ctrlKey;this.crossFilteringAddSelectedPoint(s,a),this.crossFilterCallback(o)}},i.marker={itemStyler:o=>{const a=o.datum[n.id];return{fill:o.highlighted?"yellow":o.fill,size:o.highlighted?14:this.crossFilteringPointSelected(a)?8:0}}},this.standaloneChartType==="area"&&(i.fillOpacity=this.crossFilteringDeselectedPoints()?.3:1),this.standaloneChartType==="line"&&(i.strokeOpacity=this.crossFilteringDeselectedPoints()?.3:1),i))}getCrossFilterData(e){this.crossFilteringAllPoints.clear();const[t]=e.categories,n=e.fields[0].colId,r=`${n}-filtered-out`,i=e.getCrossFilteringContext().lastSelectedChartId;return e.data.map(o=>{const a=o[t.id];this.crossFilteringAllPoints.add(a);const s=this.crossFilteringPointSelected(a);return this.standaloneChartType==="area"&&i===e.chartId&&(o[`${n}-total`]=s?o[n]:o[n]+o[r]),this.standaloneChartType==="line"&&(o[`${n}-total`]=s?o[n]:o[n]+o[r]),o})}crossFilteringAddSelectedPoint(e,t){e?this.crossFilteringSelectedPoints.push(t):this.crossFilteringSelectedPoints=[t]}isHorizontal(e){const t=this.standaloneChartType;if(t!=="waterfall"&&t!=="box-plot"&&t!=="range-bar")return!1;const n=e.theme,r=i=>{const o=i?.overrides?.[t]?.series?.direction;return o!=null?o==="horizontal":typeof i?.baseTheme=="object"?r(i.baseTheme):!1};return r(n)}},sJt=class extends Sw{getSeries(e){const t=e.fields[0];return[{type:this.standaloneChartType,xKey:t.colId,xName:t.displayName,yName:this.chartProxyParams.translate("histogramFrequency"),areaPlot:!1}]}getAxes(e){return[{type:"number",position:"bottom"},{type:"number",position:"left"}]}},lJt=class extends Sw{getAxes(e,t){return[{type:this.getXAxisType(e),position:this.isHorizontal(t)?"left":"bottom"},{type:"number",position:this.isHorizontal(t)?"bottom":"left"}]}getSeries(e){const[t]=e.categories,[n]=e.fields;return[{type:this.standaloneChartType,xKey:t.id,xName:t.name,yKey:n.colId,yName:n.displayName??void 0}]}},cJt=class extends gD{getUpdateOptions(e,t){return{...t,data:this.transformFunnelCategories(e),series:this.getSeries(e)}}transformFunnelCategories(e){const{data:t}=e,[{id:n}]=e.categories;return t.map((r,i)=>({...r,[n]:{name:r[n],id:i,toString:()=>r[n]}}))}getSeriesChartThemeDefaults(){const e={crosshair:{enabled:!1}};return{zoom:{enabled:!1},...this.chartType!=="pyramid"&&{axes:{category:e,number:e}}}}getSeries(e){const[{id:t}]=e.categories,[{colId:n}]=e.fields;return[{type:this.standaloneChartType,stageKey:t,valueKey:n}]}},XG="AG-GRID-DEFAULT-LABEL-KEY";function uJt(e,t){const n=Dit(e,r,i);return eMe(n);function r(a){return t.length}function i(a,s){const l=t[s],c=a[l];return o(c)}function o(a){return a==null?null:String(a)}}function dJt(e,t){const n=Dit(e,r,i);return eMe(n);function r(o){return t(o)?.length??0}function i(o,a){const s=t(o);if(!s)return null;const l=s.length-1-a;return s[l]}}function eMe(e,t=null,n){const{depth:r,rootValues:i,value:o,children:a}=e;if(i)return i.map(l=>({[XG]:t,...l}));if(r===0)return[{[XG]:t,...o}];const s=[];for(const[l,c]of a.entries())s.push(...eMe(c,l,!0));return n?[{[XG]:t,children:s,...o??{}}]:s}function Dit(e,t,n){const r={depth:0,children:new Map};return e.forEach(o=>{const a=t(o);i(o,a,n,0,r)}),r;function i(o,a,s,l,c){if(l===a)return l===0?(c.rootValues||(c.rootValues=[]),c.rootValues.push(o)):c.value=o,c;{const u=s(o,l),d=c.children.get(u),p=i(o,a,s,l+1,d||{depth:0,children:new Map});return c.children.set(u,p),c.depth=Math.max(1+p.depth,c.depth),c}}}var pJt=class extends gD{getUpdateOptions(e,t){const{fields:n}=e,[r,i]=n;return{...t,series:this.getSeries(r,i),data:this.getData(e,r,i)}}getSeriesChartThemeDefaults(){return{gradientLegend:{gradient:{preferredLength:200},position:"right"}}}getSeries(e,t){return[{type:this.standaloneChartType,labelKey:XG,sizeKey:e?.colId,sizeName:e?.displayName??void 0,colorKey:t?.colId,colorName:t?.displayName??void 0}]}getData(e,t,n){const{categories:r,data:i,groupData:o,grouping:a}=e;if(a){const s=n?i.concat(o?.map(l=>{const c={...l};return delete c[t.colId],c})??[]):i;return dJt(s,l=>l[jy]?.labels??null)}else{const s=r.map(({id:l})=>l);return uJt(i,s)}}},hJt=class extends gD{getAxes(e){const t=this.standaloneChartType==="radial-bar";return[{type:t?"angle-number":"angle-category"},{type:t?"radius-category":"radius-number"}]}getSeries(e){const{fields:t,categories:n,seriesGroupType:r}=e,[i]=n,o=this.standaloneChartType==="radial-bar",a=this.getSeriesGroupTypeOptions(r);return t.map(s=>({type:this.standaloneChartType,angleKey:o?s.colId:i.id,angleName:o?s.displayName??void 0:i.name,radiusKey:o?i.id:s.colId,radiusName:o?i.name:s.displayName??void 0,...a}))}getSeriesGroupType(){const e=this.standaloneChartType;if(!["nightingale","radial-bar","radial-column"].includes(e))return;const t=this.getChart().series?.[0]?.properties.toJson(),n=()=>t.normalizedTo?"normalized":"stacked";return e==="nightingale"?t.grouped?"grouped":n():t.stacked?n():"grouped"}getUpdateOptions(e,t){const n=this.getAxes(e);return{...t,data:this.getData(e,n),axes:n,series:this.getSeries(e)}}getData(e,t){if(t.some(r=>r.type==="angle-category"||r.type==="radius-category")){const[r]=e.categories;return this.transformCategoryData(e.data,r.id)}else return e.data}getSeriesGroupTypeOptions(e){return e?{grouped:e==="grouped"||void 0,stacked:e!=="grouped"||void 0,normalizedTo:e==="normalized"?100:void 0}:{}}};function fJt(e,t){return e.reduce((n,r,i,o)=>n.concat(t(r,i,o)),new Array)}var gJt="AG-GRID-DEFAULT-HEATMAP-CATEGORY-KEY",mJt="AG-GRID-DEFAULT-HEATMAP-SERIES-KEY",vJt="AG-GRID-DEFAULT-HEATMAP-VALUE-KEY",bJt=class extends gD{getUpdateOptions(e,t){const n=mJt,r=vJt,i=gJt;return{...t,series:this.getSeries(e,n,r,i),data:this.getData(e,n,r,i)}}getSeries(e,t,n,r){const[i]=e.categories;return[{type:this.standaloneChartType,yKey:r,xKey:t,colorKey:n,yName:i.name,xName:void 0,colorName:void 0}]}getData(e,t,n,r){const[i]=e.categories;return fJt(e.data,(o,a)=>{const s=o[i.id],l=s==null?"":String(s),c={id:a,value:s,toString:()=>l};return e.fields.map(({colId:u,displayName:d})=>({...o,[t]:d,[n]:o[u],[r]:c}))})}getSeriesChartThemeDefaults(){return{gradientLegend:{gradient:{preferredLength:200},position:"right"},series:{tooltip:{renderer:yJt}}}}};function yJt(e){const{xKey:t,yKey:n,colorKey:r,yName:i,datum:o}=e;return{title:"",data:[{label:i,value:o[n]},{label:o[t],value:r&&o[r]}].map(({label:s,value:l})=>({label:String(s),value:String(l)}))}}var MJt=class extends dt{wireBeans(e){this.sortSvc=e.sortSvc,this.gridRowModel=e.rowModel,this.colModel=e.colModel,this.valueSvc=e.valueSvc,this.pivotResultCols=e.pivotResultCols,this.rowNodeSorter=e.rowNodeSorter}getData(e){if(e.crossFiltering){if(e.grouping)return ut(141),{chartData:[],colNames:{}};if(!oa(this.gos))return ut(142),{chartData:[],colNames:{}}}Au(this.gos)&&e.pivoting&&this.updatePivotKeysForSSRM();const n=this.extractRowsFromGridRowModel(e);return n.chartData=this.aggregateRowsByDimension(e,n.chartData),n}extractRowsFromGridRowModel(e){const{crossFiltering:t,startRow:n,endRow:r,valueCols:i,dimensionCols:o,grouping:a}=e;let s=[];const l={},c={},u={};let d={},p=[],h;if(t)d=this.getFilteredRowNodes(),p=this.getAllRowNodes(),h=p.length;else{const M=this.gridRowModel.getRowCount()-1;n===r&&n===0&&o.length===0&&i.length===0?h=0:h=(r>=0?Math.min(r,M):M)-n+1}h>0&&i.forEach(M=>{let C=[];const x=M.getColDef().pivotKeys;x&&(C=x.slice());const w=M.getColDef().headerName;w&&C.push(w),C.length>0&&(l[M.getId()]=C)});let g=0,m=0;const v={};for(let M=0;M<h;M++){const C=t?p[M]:this.gridRowModel.getRow(M+n);if(C.footer||C.detail){g++;continue}const x={};o.forEach(w=>{const S=w.colId,A=this.colModel.getCol(S);if(A){const z=this.valueSvc.getValue(A,C);if(a){const O=z?.toString?String(z.toString()):" ",T=this.getGroupLabels(C,O),I=T.slice().reverse(),P={value:I,id:m++,toString:()=>I.filter(Boolean).join(" - ")},N=P.toString(),F=v[N];x[S]=F||(v[N]=P),C.group&&(c[T.toString()]=M-g);const L=T.slice(1,T.length).toString();L&&(u[L]=c[L])}else x[S]=z}else x[Rb]=M+1}),i.forEach(w=>{const S=w.getColId();if(t){const A=S+"-filtered-out",z=this.valueSvc.getValue(w,C);let O=z;z!=null&&(typeof z.toNumber=="function"?O=z.toNumber():typeof z.value=="number"&&(O=z.value)),d[C.id]?(x[S]=O,x[A]=e.aggFunc||e.isScatter?void 0:0):(x[S]=e.aggFunc||e.isScatter?void 0:0,x[A]=O)}else{let A=this.valueSvc.getValue(w,C);A&&typeof A.value=="number"&&(A=A.value),A&&Object.prototype.hasOwnProperty.call(A,"toString")&&(A=parseFloat(A.toString())),x[S]=A!=null&&typeof A.toNumber=="function"?A.toNumber():A}}),s.push(x)}let y;if(a){const M=Object.values(u),C=s;s=[],y=[];for(let x=0;x<C.length;x++)(M.includes(x)?y:s).push(C[x])}return{chartData:s,colNames:l,groupChartData:y}}aggregateRowsByDimension(e,t){const n=e.dimensionCols;if(!e.aggFunc||n.length===0)return t;const r=zr(n),i=r&&r.colId,o={},a=[];return t.forEach(s=>{let l=o;n.forEach(c=>{const u=c.colId,d=s[u];if(u===i){let p=l[d];p||(p={__children:[]},n.forEach(h=>{const g=h.colId;p[g]=s[g]}),l[d]=p,a.push(p)),p.__children.push(s)}else l[d]||(l[d]={}),l=l[d]})}),this.gos.assertModuleRegistered("SharedAggregation",1)&&a.forEach(s=>e.valueCols.forEach(l=>{const c=l.getColId();if(e.crossFiltering){const u=s.__children.filter(m=>typeof m[c]<"u").map(m=>m[c]),d=sI(this.beans,u,e.aggFunc,l);s[c]=d&&typeof d.value<"u"?d.value:d;const p=`${c}-filtered-out`,h=s.__children.filter(m=>typeof m[p]<"u").map(m=>m[p]),g=sI(this.beans,h,e.aggFunc,l);s[p]=g&&typeof g.value<"u"?g.value:g}else{const u=s.__children.map(p=>p[c]),d=sI(this.beans,u,e.aggFunc,l);s[c]=d&&typeof d.value<"u"?d.value:d}})),a}updatePivotKeysForSSRM(){const e=this.pivotResultCols?.getPivotResultCols()?.list;if(!e)return;const t=this.extractPivotKeySeparator(e);e.forEach(n=>{if(t==="")n.getColDef().pivotKeys=[];else{const r=n.getColId().split(t);n.getColDef().pivotKeys=r.slice(0,r.length-1)}})}extractPivotKeySeparator(e){if(e.length===0)return"";const t=(r,i)=>{const o=r.getGroupId();return r.getParent()?t(r.getParent(),o):i.split(o)[1][0]},n=e[0];return n.getParent()==null?"":t(n.getParent(),n.getColId())}getGroupLabels(e,t){const n=[t];for(;e&&e.level!==0;)if(e=e.parent,e)if(e.group){const r=this.colModel.getCol(jy);if(r){const i=this.valueSvc.getValue(r,e),o=i?.toString?String(i.toString()):" ";n.push(o)}}else n.push(e.key);return n}getFilteredRowNodes(){const e={};return this.gridRowModel.forEachNodeAfterFilterAndSort(t=>{e[t.id]=t}),e}getAllRowNodes(){const e=[];return this.gridRowModel.forEachNode(t=>{e.push(t)}),this.sortRowNodes(e)}sortRowNodes(e){const t=this.sortSvc?.getSortOptions();return!t||t.length==0||!this.rowNodeSorter?e:this.rowNodeSorter.doFullSort(e,t)}},CJt=class extends dt{constructor(){super(...arguments),this.beanName="chartColSvc",this.valueColsWithoutSeriesType=new Set}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.valueSvc=e.valueSvc}postConstruct(){const e=()=>this.valueColsWithoutSeriesType.clear();this.addManagedEventListeners({newColumnsLoaded:e,rowDataUpdated:e})}getColumn(e){return this.colModel.getColDefCol(e)}getAllDisplayedColumns(){return this.beans.visibleCols.allCols}getColDisplayName(e,t){const n="chart",r=this.colNames.getDisplayNameForColumn(e,n);if(t){const i=[r],o=a=>{if(!a)return;const s=this.colNames.getDisplayNameForColumnGroup(a,n);s?.length&&(i.unshift(s),o(a.getParent()))};return o(e.getParent()),i.join(" - ")}return r}getRowGroupColumns(){return this.beans.rowGroupColsSvc?.columns??[]}getGroupDisplayColumns(){return this.beans.showRowGroupCols?.getShowRowGroupCols()??[]}isPivotMode(){return this.colModel.isPivotMode()}isPivotActive(){return this.colModel.isPivotActive()}getChartColumns(){const e=this.colModel.getCols(),t=new Set,n=new Set;return e.forEach(r=>{const i=r.getColDef(),o=i.chartDataType;if(o)switch(o){case"category":case"time":t.add(r);return;case"series":n.add(r);return;case"excluded":return;default:ut(153,{chartDataType:o});break}if(i.colId==="ag-Grid-AutoColumn"){t.add(r);return}if(!r.isPrimary()){n.add(r);return}(this.isInferredValueCol(r)?n:t).add(r)}),{dimensionCols:t,valueCols:n}}isInferredValueCol(e){const t=e.getColId();if(t==="ag-Grid-AutoColumn")return!1;const n=lp(this.beans,{rowIndex:0,rowPinned:null});if(!n)return this.valueColsWithoutSeriesType.has(t);let r=this.valueSvc.getValue(e,n);r==null&&(r=this.extractLeafData(n,e)),r!=null&&(typeof r.toNumber=="function"?r=r.toNumber():typeof r.value=="number"&&(r=r.value));const i=typeof r=="number"||e.colDef.cellDataType==="number"||["series","time"].includes(e.colDef.chartDataType);return i?this.valueColsWithoutSeriesType.add(t):r==null&&e.colDef.cellDataType!=="number"&&ut(265,{colId:t}),i}extractLeafData(e,t){if(!e.allLeafChildren)return null;for(let n=0;n<e.allLeafChildren.length;n++){const r=e.allLeafChildren[n],i=this.valueSvc.getValue(t,r);if(i!=null)return i}return null}destroy(){this.valueColsWithoutSeriesType.clear(),super.destroy()}},xJt=new Set(["line","groupedColumn","stackedColumn","area","stackedArea"]),wJt=class extends dt{constructor(e){super(),this.suppressComboChartWarnings=!1,this.chartDataModel=e,this.seriesChartTypes=e.params.seriesChartTypes??[]}postConstruct(){this.initComboCharts()}update(e){this.seriesChartTypes=e??this.seriesChartTypes,this.initComboCharts(),this.updateSeriesChartTypes()}initComboCharts(){const e=this.seriesChartTypes&&this.seriesChartTypes.length>0;(this.chartDataModel.chartType==="customCombo"||e)&&(this.chartDataModel.chartType="customCombo",this.savedCustomSeriesChartTypes=this.seriesChartTypes||[])}updateSeriesChartTypes(){if(this.chartDataModel.isComboChart()){if(this.seriesChartTypes=this.seriesChartTypes.map(e=>{const t=["groupedColumn","stackedColumn","stackedArea"].includes(e.chartType);return e.secondaryAxis=t?!1:e.secondaryAxis,e}),this.chartDataModel.chartType==="customCombo"){this.updateSeriesChartTypesForCustomCombo();return}this.updateChartSeriesTypesForBuiltInCombos()}}updateSeriesChartTypesForCustomCombo(){!(this.seriesChartTypes&&this.seriesChartTypes.length>0)&&!this.suppressComboChartWarnings&&ut(150),this.seriesChartTypes=this.seriesChartTypes.map(r=>(xJt.has(r.chartType)||(ut(151,{chartType:r.chartType}),r.chartType="line"),r));const t=r=>{(!this.savedCustomSeriesChartTypes||this.savedCustomSeriesChartTypes.length===0)&&(this.savedCustomSeriesChartTypes=this.seriesChartTypes);const i=this.savedCustomSeriesChartTypes.find(o=>o.colId===r.colId);return i||(r.selected&&!this.suppressComboChartWarnings&&ut(152,{colId:r.colId}),{colId:r.colId,chartType:"line",secondaryAxis:!1})},n=this.chartDataModel.valueColState.map(t);this.seriesChartTypes=n,this.savedCustomSeriesChartTypes=n,this.suppressComboChartWarnings=!0}updateChartSeriesTypesForBuiltInCombos(){const{chartType:e,valueColState:t}=this.chartDataModel,n=e==="columnLineCombo"?"groupedColumn":"stackedArea",r=e==="columnLineCombo"?"line":"groupedColumn",i=t.filter(a=>a.selected),o=Math.ceil(i.length/2);this.seriesChartTypes=i.map((a,s)=>{const l=s>=o?r:n;return{colId:a.colId,chartType:l,secondaryAxis:!1}})}},Rb="AG-GRID-DEFAULT-CATEGORY",SJt=class extends dt{constructor(e){super(),this.unlinked=!1,this.chartData=[],this.valueColState=[],this.dimensionColState=[],this.colNames={},this.crossFiltering=!1,this.grouping=!1,this.params=e,this.chartId=e.chartId,this.setParams(e)}wireBeans(e){this.rangeSvc=e.rangeSvc,this.chartTranslation=e.chartTranslation}setParams(e){const{chartType:t,pivotChart:n,chartThemeName:r,switchCategorySeries:i,aggFunc:o,cellRange:a,suppressChartRanges:s,unlinkChart:l,crossFiltering:c,seriesGroupType:u}=e;this.chartType=t,this.pivotChart=n??!1,this.chartThemeName=r,this.switchCategorySeries=!!i,this.aggFunc=o,this.referenceCellRange=a,this.suppliedCellRange=a,this.suppressChartRanges=s??!1,this.unlinked=!!l,this.crossFiltering=!!c,this.seriesGroupType=u}postConstruct(){this.datasource=this.createManagedBean(new MJt),this.chartColSvc=this.createManagedBean(new CJt),this.comboChartModel=this.createManagedBean(new wJt(this)),this.updateCellRanges({setColsFromRange:!0}),this.updateData()}updateModel(e){const{cellRange:t,seriesChartTypes:n}=e;t!==this.suppliedCellRange&&(this.dimensionCellRange=void 0,this.valueCellRange=void 0),this.setParams(e),this.updateSelectedDimensions(t?.columns),this.updateCellRanges({setColsFromRange:!0}),(this.isComboChart()||n)&&this.comboChartModel.update(n),this.unlinked||this.updateData()}updateCellRanges(e){const{updatedColState:t,resetOrder:n,maintainColState:r,setColsFromRange:i}=e??{};this.valueCellRange&&(this.referenceCellRange=this.valueCellRange);const{dimensionCols:o,valueCols:a}=this.chartColSvc.getChartColumns(),s=this.getAllColumnsFromRanges();t&&this.updateColumnState(t,n),this.setDimensionCellRange(o,s,t),this.setValueCellRange(a,s,i),!t&&!r&&(this.resetColumnState(),this.syncDimensionCellRange()),this.comboChartModel.updateSeriesChartTypes()}updateData(){const{startRow:e,endRow:t}=this.getRowIndexes();this.pivotChart&&this.resetColumnState(),this.grouping=this.isGrouping();const n={aggFunc:this.aggFunc,dimensionCols:this.getSelectedDimensions(),grouping:this.grouping,pivoting:this.isPivotActive(),crossFiltering:this.crossFiltering,valueCols:this.getSelectedValueCols(),startRow:e,endRow:t,isScatter:["scatter","bubble"].includes(this.chartType)},{chartData:r,colNames:i,groupChartData:o}=this.datasource.getData(n);this.chartData=r,this.groupChartData=o,this.colNames=i,this.categoryAxisType=void 0}isGrouping(){const e=this.gos.get("treeData"),t=e?null:this.chartColSvc.getRowGroupColumns(),n=e||t&&t.length>0,r=this.getSelectedDimensions().map(({colId:a})=>a),o=this.chartColSvc.getGroupDisplayColumns().map(a=>a.getColId()).some(a=>r.includes(a));return!!n&&o}getSelectedValueCols(){return this.valueColState.filter(e=>e.selected).map(e=>e.column)}getSelectedDimensions(){return this.dimensionColState.filter(e=>e.selected)}getColDisplayName(e,t){return this.chartColSvc.getColDisplayName(e,t)}isPivotMode(){return this.chartColSvc.isPivotMode()}getChartDataType(e){const t=this.chartColSvc.getColumn(e);return t?t.getColDef().chartDataType:void 0}isPivotActive(){return this.chartColSvc.isPivotActive()}createCellRange(e,...t){return{id:this.chartId,startRow:this.referenceCellRange.startRow,endRow:this.referenceCellRange.endRow,columns:t,startColumn:e===hf.DIMENSION||this.referenceCellRange.startColumn==null?t[0]:this.referenceCellRange.startColumn,type:e}}getAllColumnsFromRanges(){if(this.pivotChart)return new Set(this.chartColSvc.getAllDisplayedColumns());const e=this.dimensionCellRange||this.valueCellRange?[]:this.referenceCellRange.columns;return this.dimensionCellRange&&e.push(...this.dimensionCellRange.columns),this.valueCellRange&&e.push(...this.valueCellRange.columns),new Set(e)}getRowIndexes(){let e=0,t=0;const{rangeSvc:n,valueCellRange:r,dimensionCellRange:i}=this,o=r||i;if(n&&o){e=n.getRangeStartRow(o).rowIndex;const a=n.getRangeEndRow(o);t=a.rowPinned==="bottom"?-1:a.rowIndex}return{startRow:e,endRow:t}}resetColumnState(){const{dimensionCols:e,valueCols:t}=this.chartColSvc.getChartColumns(),n=this.getAllColumnsFromRanges(),r=this.valueColState.length<1;this.dimensionColState=[],this.valueColState=[];const i=iO(Us(this.chartType));let o=!1,a=1;const s=this.suppliedCellRange.columns[0];e.forEach(u=>{const d=u.getColId()==="ag-Grid-AutoColumn";let p=!1;this.crossFiltering&&this.aggFunc?s.getColId()===u.getColId()&&(p=!0):p=d?!0:(!o||i)&&n.has(u),this.dimensionColState.push({column:u,colId:u.getColId(),displayName:this.getColDisplayName(u),selected:p,order:a++}),p&&(o=!0)});const l={colId:Rb,displayName:this.chartTranslation.translate("defaultCategory"),selected:!o,order:0};this.dimensionColState.unshift(l);const c=this.referenceCellRange.columns.filter(u=>t.has(u));t.forEach(u=>{r&&this.referenceCellRange.columns.includes(u)&&(u=c.shift()),this.valueColState.push({column:u,colId:u.getColId(),displayName:this.getColDisplayName(u),selected:n.has(u),order:a++})})}updateColumnState(e,t){const n=c=>c.colId===e.colId,{dimensionColState:r,valueColState:i}=this,o=r.find(n),a=i.find(n);if(o)if(iO(Us(this.chartType)))o.selected=e.selected;else{const u=e.selected?o:r.filter(d=>d!==o).find(({selected:d})=>d);r.forEach(d=>d.selected=d===u)}else a&&(a.selected=e.selected);const s=[...r,...i],l=[];t||(s.forEach((c,u)=>{u===e.order&&l.push(e.colId),c.colId!==e.colId&&l.push(c.colId)}),s.forEach(c=>{const u=l.indexOf(c.colId);c.order=u>=0?l.indexOf(c.colId):s.length-1})),this.reorderColState()}reorderColState(){const e=(t,n)=>t.order-n.order;this.dimensionColState.sort(e),this.valueColState.sort(e)}setDimensionCellRange(e,t,n){this.dimensionCellRange=void 0;const r=iO(Us(this.chartType));if(!n&&!this.dimensionColState.length){const s=new Array;e.forEach(l=>{s.length>0&&!r||!t.has(l)||s.push(l)}),s.length>0&&(this.dimensionCellRange=this.createCellRange(hf.DIMENSION,...s));return}let i=n?[n]:[];if(this.crossFiltering&&this.aggFunc){const s=this.suppliedCellRange.columns[0];i=this.dimensionColState.filter(l=>l.colId===s.getColId())}else(r||i.length===0||i.some(({column:s})=>!s||!e.has(s)))&&(i=this.dimensionColState.filter(s=>s.selected));const o=i.length===1?i[0].colId===Rb:!1,a=i.map(({column:s})=>s).filter(s=>s!=null);a.length>0&&!o&&(this.dimensionCellRange=this.createCellRange(hf.DIMENSION,...a))}setValueCellRange(e,t,n){this.valueCellRange=void 0;const r=[],i=q$(this.chartType);let o=0;if(e.forEach(a=>{n?(i==null||o<i)&&t.has(a)&&(r.push(a),o++):this.valueColState.some(s=>s.selected&&s.colId===a.getColId())&&r.push(a)}),r.length>0){let a=[];this.valueColState.length>0?a=this.valueColState.map(s=>s.colId):t.forEach(s=>a.push(s.getColId())),r.sort((s,l)=>a.indexOf(s.getColId())-a.indexOf(l.getColId())),this.valueCellRange=this.createCellRange(hf.VALUE,...r)}}resetCellRanges(e,t){if(!e&&!t)return;const{dimensionCols:n,valueCols:r}=this.chartColSvc.getChartColumns(),i=this.getAllColumnsFromRanges();e&&this.setDimensionCellRange(n,i),t&&this.setValueCellRange(r,i)}updateSelectedDimensions(e){const t=new Set(e.map(r=>r.getColId()));if(iO(Us(this.chartType))){const r=this.dimensionColState.filter(o=>t.has(o.colId)),i=new Set(r.map(o=>o.colId));this.dimensionColState=this.dimensionColState.map(o=>({...o,selected:i.has(o.colId)}))}else{const i=(this.dimensionColState.find(o=>t.has(o.colId))||this.dimensionColState[0]).colId;this.dimensionColState=this.dimensionColState.map(o=>({...o,selected:o.colId===i}))}}syncDimensionCellRange(){const e=this.getSelectedDimensions();if(e.length===0)return;const t=e.map(({column:n})=>n).filter(n=>n!=null);t.length>0&&(this.dimensionCellRange=this.createCellRange(hf.DIMENSION,...t))}isComboChart(e){return Qye(e??this.chartType)}},kit=class extends Sw{getAxes(e,t){return[{type:this.getXAxisType(e),position:this.isHorizontal(t)?"left":"bottom"},{type:"number",position:this.isHorizontal(t)?"bottom":"left"}]}computeSeriesStatistics(e,t){const{data:n,fields:r}=e,[i]=e.categories,o=i.id||Rb,a=this.groupDataByCategory(o,n);return Array.from(a).map(([s,l])=>{const c={[i.id]:s};return r.forEach((u,d)=>{const p=l.map(g=>g[u.colId]).filter(g=>typeof g=="number"&&!isNaN(g)),h=t(p);for(const g of Object.keys(h)){const m=`${g}:${d}`;c[m]=p.length>0?h[g]:null}}),c})}groupDataByCategory(e,t){const n=r=>{if(e===Rb)return 1;const i=r[e];return i==null?"":i instanceof Date?i.getTime():i};return t.reduce((r,i)=>{const o=n(i),a=r.get(o);return a?a.push(i):r.set(o,[i]),r},new Map)}},AJt=class extends kit{getSeries(e){const[t]=e.categories;return e.fields.map((n,r)=>({type:this.standaloneChartType,xKey:t.id,xName:t.name,yName:n.displayName??void 0,minName:"Min",q1Name:"Q1",medianName:"Median",q3Name:"Q3",maxName:"Max",minKey:`min:${r}`,q1Key:`q1:${r}`,medianKey:`median:${r}`,q3Key:`q3:${r}`,maxKey:`max:${r}`}))}getData(e){return this.computeSeriesStatistics(e,t=>{const n=t.sort((r,i)=>r-i);return{min:n[0],q1:this.quantile(n,.25),median:this.quantile(n,.5),q3:this.quantile(n,.75),max:n[n.length-1]}})}quantile(e,t){const n=(e.length-1)*t,r=Math.floor(n),i=n-r;return e[r+1]!==void 0?e[r]+i*(e[r+1]-e[r]):e[r]}},OJt=class extends kit{getSeries(e){const[t]=e.categories;return e.fields.map((n,r)=>({type:this.standaloneChartType,xKey:t.id,xName:t.name,yName:n.displayName??void 0,yLowName:"Min",yHighName:"Max",yLowKey:`min:${r}`,yHighKey:`max:${r}`}))}getData(e){return this.computeSeriesStatistics(e,t=>({min:Math.min(...t),max:Math.max(...t)}))}},zJt=class extends dt{constructor(){super(...arguments),this.beanName="enterpriseChartProxyFactory"}createChartProxy(e){switch(e.chartType){case"histogram":return new sJt(e);case"radarLine":case"radarArea":case"nightingale":case"radialColumn":case"radialBar":return new hJt(e);case"rangeBar":case"rangeArea":return new OJt(e);case"boxPlot":return new AJt(e);case"treemap":case"sunburst":return new pJt(e);case"heatmap":return new bJt(e);case"waterfall":return new lJt(e);case"funnel":case"coneFunnel":case"pyramid":return new cJt(e)}}},Lit=class extends dt{constructor(e,t,n,r){super(),this.chartController=e,this.eGui=t,this.cssClass=n,this.createPanels=r,this.panels=[]}postConstruct(){this.addManagedListeners(this.chartController,{chartUpdated:()=>this.refreshPanels(!0),chartApiUpdate:()=>this.refreshPanels(!1)})}addComponent(e){this.createBean(e),this.panels.push(e),e.addCss(this.cssClass),this.eGui.appendChild(e.getGui())}refreshPanels(e){const t=this.chartController.getChartType(),n=this.chartController.isGrouping(),r=Us(t);e&&t===this.chartType&&n===this.isGrouping||(this.destroyPanels(),this.createPanels(t,r),this.chartType=t,this.isGrouping=n)}destroyPanels(){this.panels.forEach(e=>{Rs(e.getGui()),this.destroyBean(e)}),this.panels=[]}destroy(){this.destroyPanels(),super.destroy()}},TJt=class extends Gt{constructor(e){super(),this.chartMenuParamsFactory=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuParamsFactory.addEnableParams("animation.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("animation"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.chartMenuParamsFactory.getDefaultNumberInputParams("animation.duration","durationMillis",{min:0});this.setTemplate(`<div>
            <ag-group-component data-ref="animationGroup">
                <ag-input-number-field data-ref="animationHeightInput"></ag-input>
            </ag-group-component>
        </div>`,[Ks,zK],{animationGroup:e,animationHeightInput:t})}},EJt={tag:"div",cls:"ag-color-input",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:"input",ref:"eInput",cls:"ag-input-field-input"},{tag:"div",ref:"eColor",cls:"ag-color-input-color"}]}]},RJt=class extends Im{constructor(){super({template:EJt}),this.eColor=at}wireBeans(e){this.chartTranslation=e.chartTranslation,this.color=e.agChartsExports._Util.Color}setColor(e){const t=e.toRgbaString();this.setValue(this.color.fromString(t).toHexString().toUpperCase(),!0),this.eColor.style.backgroundColor=t}setValue(e,t){const n=this.color.validColorString(e??"");return this.eInput.setCustomValidity(n?"":this.chartTranslation.translate("invalidColor")),super.setValue(e,t),n&&!t&&this.dispatchLocalEvent({type:"colorChanged"}),this}onColorChanged(e){this.addManagedListeners(this,{colorChanged:()=>e(this.color.fromString(this.value))})}},IJt={selector:"AG-COLOR-INPUT",component:RJt},VRe=8,JH=[],PJt=class extends Gt{constructor(e){super(`<div class="ag-color-panel" tabindex="-1">
            <div data-ref="spectrumColor" class="ag-spectrum-color">
                <div class="ag-spectrum-sat ag-spectrum-fill">
                    <div data-ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">
                        <div data-ref="spectrumDragger" class="ag-spectrum-dragger"></div>
                    </div>
                </div>
            </div>
            <div class="ag-spectrum-tools">
                <div data-ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">
                    <div class="ag-spectrum-hue-background"></div>
                    <div data-ref="spectrumHueSlider" class="ag-spectrum-slider"></div>
                </div>
                <div data-ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">
                    <div class="ag-spectrum-alpha-background"></div>
                    <div data-ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>
                </div>
                <ag-color-input data-ref="colorInput"></ag-color-input>
                <div data-ref="recentColors" class="ag-recent-colors"></div>
            </div>
        </div>`,[IJt]),this.H=1,this.S=1,this.B=1,this.A=1,this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1,this.colorChanged=!1,this.spectrumColor=at,this.spectrumVal=at,this.spectrumDragger=at,this.spectrumHue=at,this.spectrumHueSlider=at,this.spectrumAlpha=at,this.spectrumAlphaSlider=at,this.colorInput=at,this.recentColors=at,this.picker=e.picker}wireBeans(e){this._Color=e.agChartsExports._Util.Color}postConstruct(){this.initTabIndex(),this.initRecentColors(),this.addGuiEventListener("focus",()=>this.spectrumColor.focus()),this.addGuiEventListener("keydown",e=>{e.key===Qe.ENTER&&!e.defaultPrevented&&this.destroy()}),this.addManagedListeners(this.spectrumColor,{keydown:e=>this.moveDragger(e)}),this.addManagedListeners(this.spectrumAlphaSlider,{keydown:e=>this.moveAlphaSlider(e)}),this.addManagedListeners(this.spectrumHueSlider,{keydown:e=>this.moveHueSlider(e)}),this.addManagedListeners(this.spectrumVal,{mousedown:this.onSpectrumDraggerDown.bind(this)}),this.addManagedListeners(this.spectrumHue,{mousedown:this.onSpectrumHueDown.bind(this)}),this.addManagedListeners(this.spectrumAlpha,{mousedown:this.onSpectrumAlphaDown.bind(this)}),this.addGuiEventListener("mousemove",e=>{this.onSpectrumDraggerMove(e),this.onSpectrumHueMove(e),this.onSpectrumAlphaMove(e)}),this.addManagedListeners(document,{mouseup:this.onMouseUp.bind(this)}),this.colorInput.onColorChanged(this.setColor.bind(this)),this.addManagedListeners(this.recentColors,{click:this.onRecentColorClick.bind(this),keydown:e=>{(e.key===Qe.ENTER||e.key===Qe.SPACE)&&(e.preventDefault(),this.onRecentColorClick(e))}})}initTabIndex(){const e=this.tabIndex=this.gos.get("tabIndex").toString();this.spectrumColor.setAttribute("tabindex",e),this.spectrumHueSlider.setAttribute("tabindex",e),this.spectrumAlphaSlider.setAttribute("tabindex",e)}refreshSpectrumRect(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()}refreshHueRect(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()}refreshAlphaRect(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()}onSpectrumDraggerDown(e){e.preventDefault(),this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)}onSpectrumDraggerMove(e){this.isSpectrumDragging&&this.moveDragger(e)}onSpectrumHueDown(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)}onSpectrumHueMove(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)}onSpectrumAlphaDown(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)}onSpectrumAlphaMove(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)}onMouseUp(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1}moveDragger(e){const t=this.spectrumValRect;if(!t)return;let n,r;if(e instanceof MouseEvent)n=e.clientX-t.left,r=e.clientY-t.top;else{const i=e.key===Qe.LEFT,o=e.key===Qe.RIGHT,a=e.key===Qe.UP,s=e.key===Qe.DOWN,l=a||s,c=i||o;if(!l&&!c)return;e.preventDefault();const{x:u,y:d}=this.getSpectrumValue();n=u+(c?i?-5:5:0),r=d+(l?a?-5:5:0)}n=Math.max(n,0),n=Math.min(n,t.width),r=Math.max(r,0),r=Math.min(r,t.height),this.setSpectrumValue(n/t.width,1-r/t.height)}moveHueSlider(e){const t=this.spectrumHueRect;if(!t)return;const n=this.moveSlider(this.spectrumHueSlider,e);n!=null&&(this.H=1-n/t.width,this.update())}moveAlphaSlider(e){const t=this.spectrumAlphaRect;if(!t)return;const n=this.moveSlider(this.spectrumAlphaSlider,e);n!=null&&(this.A=n/t.width,this.update())}moveSlider(e,t){const n=e.getBoundingClientRect(),r=e.parentElement?.getBoundingClientRect();if(!e||!r)return null;const i=n.width/2;let o;if(t instanceof MouseEvent)o=Math.floor(t.clientX-r.left);else{const a=t.key===Qe.LEFT,s=t.key===Qe.RIGHT;if(!a&&!s)return null;t.preventDefault();const l=a?-5:5;o=parseFloat(e.style.left)+i+l}return o=Math.max(o,0),o=Math.min(o,r.width),e.style.left=o-i+"px",o}update(e){const{A:t,S:n,B:r,H:i,_Color:o}=this,a=i*360,s=o.fromHSB(a,n,r,t),l=s.toRgbaString(),u=o.fromHSB(a,n,r).toRgbaString(),p=o.fromHSB(a,1,1).toRgbaString(),h=this.picker;o.fromString(h.getValue()).toRgbaString()!==l&&(this.colorChanged=!0),h.setValue(l),this.spectrumColor.style.backgroundColor=p,this.spectrumDragger.style.backgroundColor=u,this.spectrumHueSlider.style.backgroundColor=p,this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color-from",o.fromHSB(a,n,r,0).toRgbaString()),this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color-to",u),this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color",l),e||this.colorInput.setColor(s)}setSpectrumValue(e,t,n){const r=this.spectrumValRect||this.refreshSpectrumRect();if(r==null)return;const i=this.spectrumDragger,o=i.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,i.style.left=e*r.width-o.width/2+"px",i.style.top=(1-t)*r.height-o.height/2+"px",this.update(n)}getSpectrumValue(){const e=this.spectrumDragger,t=e.getBoundingClientRect(),n=parseFloat(e.style.left)+t.width/2,r=parseFloat(e.style.top)+t.height/2;return{x:n,y:r}}initRecentColors(){const e=JH,t=e.map((n,r)=>`<div class="ag-recent-color" id=${r} style="background-color: ${n}; width: 15px; height: 15px;" recent-color="${n}" tabIndex="${this.tabIndex}"></div>`);this.recentColors.innerHTML=t.join(""),Nn(this.recentColors,!!e.length)}setValue(e){const t=this._Color.fromString(e);this.setColor(t,!0)}setColor(e,t){const[n,r,i]=e.toHSB();this.H=(isNaN(n)?0:n)/360,this.A=e.a;const o=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=`${(this.H-1)*-o.width-this.spectrumHueSlider.getBoundingClientRect().width/2}px`,this.spectrumAlphaSlider.style.left=`${this.A*a.width-this.spectrumAlphaSlider.getBoundingClientRect().width/2}px`,this.setSpectrumValue(r,i,!t)}onRecentColorClick(e){const t=e.target;if(!Ut(t.id))return;const n=parseInt(t.id,10);this.setValue(JH[n]),this.destroy()}addRecentColor(){const t=this._Color.fromHSB(this.H*360,this.S,this.B,this.A).toRgbaString();let n=JH;!this.colorChanged||n[0]===t||(n=n.filter(r=>r!=t),n=[t].concat(n),n.length>VRe&&(n=n.slice(0,VRe)),JH=n)}destroy(){this.addRecentColor(),super.destroy()}},_it=class extends Tye{constructor(e){super({pickerAriaLabelKey:"ariaLabelColorPicker",pickerAriaLabelValue:"Color Picker",pickerType:"ag-list",className:"ag-color-picker",pickerIcon:"chartsColorPicker",...e})}postConstruct(){this.eDisplayFieldColor=Nr({tag:"span",cls:"ag-color-picker-color"}),this.eDisplayFieldText=Nr({tag:"span",cls:"ag-color-picker-value"}),this.eDisplayField.append(this.eDisplayFieldColor,this.eDisplayFieldText),super.postConstruct(),this.value&&this.setValue(this.value)}createPickerComponent(){const e=this.eWrapper.getBoundingClientRect(),t=this.beans.popupSvc.getParentRect();return this.createBean(new y6({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:e.right-t.left-190,y:e.top-t.top-250-(this.config.pickerGap??0),postProcessPopupParams:{type:"colorPicker",eventSource:this.eWrapper}}))}renderAndPositionPicker(){const e=this.pickerComponent,t=this.createBean(new PJt({picker:this}));return e.addCss("ag-color-dialog"),t.addDestroyFunc(()=>{e.isAlive()&&this.destroyBean(e)}),e.setParentComponent(this),e.setBodyComponent(t),t.setValue(this.getValue()),t.getGui().focus(),e.addDestroyFunc(()=>{this.isDestroyingPicker?this.isDestroyingPicker=!1:(this.beforeHidePicker(),this.isDestroyingPicker=!0,t.isAlive()&&this.destroyBean(t),this.isAlive()&&this.getFocusableElement().focus())}),()=>this.pickerComponent?.close()}setValue(e){return this.value===e?this:(this.eDisplayFieldColor.style.backgroundColor=e,this.eDisplayFieldText.textContent=this.beans.agChartsExports._Util.Color.fromString(e).toHexString().toUpperCase(),super.setValue(e))}getValue(){return this.value}},Gb={selector:"AG-COLOR-PICKER",component:_it},DJt=class extends Gt{constructor(e){super(),this.chartMenuParamsFactory=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuParamsFactory.addEnableParams("crosshair.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("crosshair"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.chartMenuParamsFactory.getDefaultCheckboxParams("crosshair.label.enabled","crosshairLabel"),n=this.chartMenuParamsFactory.getDefaultCheckboxParams("crosshair.snap","crosshairSnap"),r=this.chartMenuParamsFactory.getDefaultColorPickerParams("crosshair.stroke","color");this.setTemplate(`<div>
            <ag-group-component data-ref="crosshairGroup">
                <ag-checkbox data-ref="crosshairLabelCheckbox"></ag-checkbox>
                <ag-checkbox data-ref="crosshairSnapCheckbox"></ag-checkbox>
                <ag-color-picker data-ref="crosshairStrokeColorPicker"></ag-color-picker>
            </ag-group-component>
        </div>`,[Ks,Rm,Gb],{crosshairGroup:e,crosshairLabelCheckbox:t,crosshairSnapCheckbox:n,crosshairStrokeColorPicker:r})}},kJt=class extends nx{constructor(e){super(e,"ag-range-field","range")}postConstruct(){super.postConstruct();const{min:e,max:t,step:n}=this.config;e!=null&&this.setMinValue(e),t!=null&&this.setMaxValue(t),this.setStep(n||1)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>{const t=e.target.value;this.setValue(t)}})}setMinValue(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this}setMaxValue(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this}setStep(e){return this.eInput.setAttribute("step",e.toString()),this}setValue(e,t){this.min!=null&&(e=Math.max(parseFloat(e),this.min).toString()),this.max!=null&&(e=Math.min(parseFloat(e),this.max).toString());const n=super.setValue(e,t);return this.eInput.value=e,n}},LJt={selector:"AG-INPUT-RANGE",component:kJt},jp=class extends zye{constructor(e){super(e,`<div class="ag-slider">
            <label data-ref="eLabel"></label>
            <div class="ag-wrapper ag-slider-wrapper">
                <ag-input-range data-ref="eSlider"></ag-input-range>
                <ag-input-number-field data-ref="eText"></ag-input-number-field>
            </div>
        </div>`,[LJt,zK]),this.eLabel=at,this.eSlider=at,this.eText=at,this.labelAlignment="top"}postConstruct(){super.postConstruct(),this.eSlider.addCss("ag-slider-field");const{minValue:e,maxValue:t,textFieldWidth:n,step:r,value:i,onValueChange:o}=this.config;e!=null&&this.setMinValue(e),t!=null&&this.setMaxValue(t),n!=null&&this.setTextFieldWidth(n),r!=null&&this.setStep(r),i!=null&&this.setValue(i),o!=null&&this.onValueChange(o)}onValueChange(e){return this.addManagedListeners(this.eText,{fieldValueChanged:()=>{const t=parseFloat(this.eText.getValue());this.eSlider.setValue(t.toString(),!0),e(t||0)}}),this.addManagedListeners(this.eSlider,{fieldValueChanged:()=>{const t=this.eSlider.getValue();this.eText.setValue(t,!0),e(parseFloat(t))}}),this}setSliderWidth(e){return this.eSlider.setWidth(e),this}setTextFieldWidth(e){return this.eText.setWidth(e),this}setMinValue(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this}setMaxValue(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this}getValue(){return this.eText.getValue()}setValue(e,t){return this.getValue()===e?this:(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}setStep(e){return this.eSlider.setStep(e),this.eText.setStep(e),this}},yp={selector:"AG-SLIDER",component:jp},_Jt=class extends Gt{constructor(e){super(),this.chartMenuParamsFactory=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuParamsFactory.addEnableParams("navigator.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("navigator"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.chartMenuParamsFactory.getDefaultSliderParams("navigator.height","height",60);t.minValue=10;const n=this.chartMenuParamsFactory.getDefaultCheckboxParams("navigator.miniChart.enabled","miniChart");this.setTemplate(`<div>
            <ag-group-component data-ref="navigatorGroup">
                <ag-slider data-ref="navigatorHeightSlider"></ag-slider>
                <ag-checkbox data-ref="navigatorMiniChartCheckbox"></ag-checkbox>
            </ag-group-component>
        </div>`,[Ks,yp,Rm],{navigatorGroup:e,navigatorHeightSlider:t,navigatorMiniChartCheckbox:n})}},NJt=class extends Gt{constructor(e){super(),this.chartMenuParamsFactory=e,this.zoomScrollingStepInput=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuParamsFactory.addEnableParams("zoom.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("zoom"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.chartMenuParamsFactory.getDefaultCheckboxParams("zoom.enableScrolling","scrollingZoom"),n=this.chartMenuParamsFactory.getDefaultSliderParams("zoom.scrollingStep","scrollingStep",1);n.step=.01,n.minValue=n.step;const r=this.chartMenuParamsFactory.getDefaultCheckboxParams("zoom.enableSelecting","selectingZoom");t.onValueChange=(i=>o=>{i&&(i(o),this.zoomScrollingStepInput.setDisabled(!o))})(t.onValueChange),this.setTemplate(`<div>
            <ag-group-component data-ref="zoomGroup">
                <ag-checkbox data-ref="zoomSelectingCheckbox"></ag-checkbox>
                <ag-checkbox data-ref="zoomScrollingCheckbox"></ag-checkbox>
                <ag-slider data-ref="zoomScrollingStepInput"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,Rm,yp],{zoomGroup:e,zoomScrollingCheckbox:t,zoomScrollingStepInput:n,zoomSelectingCheckbox:r}),this.zoomScrollingStepInput.setDisabled(!t.value)}},FJt=["navigator","zoom","animation","crosshair"],WJt=class extends Gt{constructor(e){super('<div class="ag-chart-advanced-settings-wrapper"></div>'),this.chartMenuContext=e}postConstruct(){this.chartPanelFeature=this.createManagedBean(new Lit(this.chartMenuContext.chartController,this.getGui(),"ag-chart-advanced-settings-section",(e,t)=>this.createPanels(e,t))),this.chartPanelFeature.refreshPanels()}createPanels(e,t){FJt.forEach(n=>{if(!this.isGroupPanelShownForSeries(n,t))return;const r=this.createPanel(n);this.chartPanelFeature.addComponent(r)})}isGroupPanelShownForSeries(e,t){return e==="animation"||ix(t)&&!Phe(t)}createPanel(e){const{chartMenuParamsFactory:t,chartAxisMenuParamsFactory:n}=this.chartMenuContext;switch(e){case"navigator":return new _Jt(t);case"zoom":return new NJt(t);case"animation":return new TJt(t);case"crosshair":return new DJt(n)}}},qJt=class extends dt{constructor(){super(...arguments),this.beanName="advSettingsMenuFactory"}showMenu(e,t){this.hideMenu();const n=this.createBean(new BJt(e));this.activeDialog=this.createBean(new y6({title:this.beans.chartTranslation.translate("advancedSettings"),component:n,width:300,height:400,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{lm(n.getGui())[0]?.focus()},closedCallback:()=>{this.activeMenu=this.destroyBean(this.activeMenu),this.activeDialog=void 0,t?.focus({preventScroll:!0})}})),this.activeMenu=n}hideMenu(){this.activeDialog&&this.destroyBean(this.activeDialog)}destroy(){this.activeMenu=this.destroyBean(this.activeMenu),this.activeDialog=this.destroyBean(this.activeDialog),super.destroy()}},BJt=class extends Vb{constructor(e){super('<div class="ag-chart-advanced-settings"></div>'),this.chartMenuContext=e}postConstruct(){this.advancedSettingsPanel=this.createManagedBean(new WJt(this.chartMenuContext)),this.getGui().appendChild(this.advancedSettingsPanel.getGui()),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),focusTrapActive:!0})}onTabKeyDown(e){if(e.defaultPrevented)return;e.preventDefault();const t=e.shiftKey,n=this.advancedSettingsPanel.getGui(),r=Md(this.beans,n,!1,t);if(r)r.focus();else{const i=lm(n);i.length&&i[t?i.length-1:0].focus()}}},jJt=class extends dt{constructor(){super(...arguments),this.beanName="chartMenuListFactory"}wireBeans(e){this.popupSvc=e.popupSvc,this.chartMenuSvc=e.chartMenuSvc,this.chartTranslation=e.chartTranslation}showMenuList(e){const{eventSource:t,showMenu:n,chartMenuContext:r}=e,i=this.chartMenuSvc.doChartToolPanelsExist(r.chartController),o=this.mapWithStockItems(this.getMenuItems(r.chartController,i),r,n,t,i);if(!o.length)return;const a=this.createBean(new HJt(o));this.activeChartMenuList=a;let s=-1,l="left";this.gos.get("enableRtl")&&(s=1,l="right");const c=a.getGui();this.popupSvc.addPopup({modal:!0,eChild:c,closeOnEsc:!0,closedCallback:()=>{this.destroyBean(a),this.activeChartMenuList=void 0,Gx(this.beans)&&t.focus({preventScroll:!0})},afterGuiAttached:u=>a.afterGuiAttached(u),positionCallback:()=>{this.popupSvc.positionPopupByComponent({type:"chartMenu",eventSource:t,ePopup:c,alignSide:l,nudgeX:4*s,nudgeY:4,position:"under",keepWithinBounds:!0})},ariaLabel:"Chart Menu"})}getMenuItems(e,t){const n=[...t?["chartEdit"]:[],...e.isEnterprise()?["chartAdvancedSettings"]:[],e.isChartLinked()?"chartUnlink":"chartLink","chartDownload"],r=this.gos.get("chartMenuItems");return r?Array.isArray(r)?r:r(Vn(this.gos,{defaultItems:n})):n}mapWithStockItems(e,t,n,r,i){if(!e)return[];const o=[];return e.forEach(a=>{let s;if(typeof a=="string"?s=this.getStockMenuItem(a,t,n,r,i):s={...a},!s)return;const{subMenu:l}=s;Array.isArray(l)&&(s.subMenu=this.mapWithStockItems(l,t,n,r,i)),o.push(s)}),o}getStockMenuItem(e,t,n,r,i){switch(e){case"chartEdit":return i?this.createMenuItem(this.chartTranslation.translate("chartEdit"),"chartsMenuEdit",n):null;case"chartAdvancedSettings":return this.createMenuItem(this.chartTranslation.translate("chartAdvancedSettings"),"chartsMenuAdvancedSettings",()=>this.chartMenuSvc.openAdvancedSettings(t,r));case"chartUnlink":return t.chartController.isChartLinked()?this.createMenuItem(this.chartTranslation.translate("chartUnlink"),"unlinked",()=>this.chartMenuSvc.toggleLinked(t)):null;case"chartLink":return t.chartController.isChartLinked()?null:this.createMenuItem(this.chartTranslation.translate("chartLink"),"linked",()=>this.chartMenuSvc.toggleLinked(t));case"chartDownload":return this.createMenuItem(this.chartTranslation.translate("chartDownload"),"chartsDownload",()=>this.chartMenuSvc.downloadChart(t))}return null}createMenuItem(e,t,n){return{name:e,icon:er(t,this.beans,null),action:n}}destroy(){this.destroyBean(this.activeChartMenuList),super.destroy()}},HJt=class extends Gt{constructor(e){super(`
            <div data-ref="eChartsMenu" role="presentation" class="ag-menu ag-chart-menu-popup"></div>
        `),this.menuItems=e,this.eChartsMenu=at}postConstruct(){this.mainMenuList=this.createManagedBean(new M6(0)),this.mainMenuList.addMenuItems(this.menuItems),this.mainMenuList.addEventListener("closeMenu",this.onHidePopup.bind(this)),this.eChartsMenu.appendChild(this.mainMenuList.getGui())}onHidePopup(){this.hidePopupFunc?.()}afterGuiAttached({hidePopup:e}){e&&(this.hidePopupFunc=e,this.addDestroyFunc(e)),zu(this.mainMenuList.getGui())}},VJt=class extends dt{constructor(){super(...arguments),this.beanName="chartCrossFilterSvc"}wireBeans(e){this.colModel=e.colModel,this.valueSvc=e.valueSvc,this.filterManager=e.filterManager,oa(this.gos,e.rowModel)&&(this.clientSideRowModel=e.rowModel)}filter(e,t=!1){const n=this.filterManager?.getFilterModel()??{};if(t){this.resetFilters(n);return}const r=this.extractFilterColId(e);this.isValidColumnFilter(r)?this.updateFilters(n,e,r):ut(154,{colId:r})}resetFilters(e){Object.keys(e).length>0&&(this.filterManager?.setFilterModel(null),this.filterManager?.onFilterChanged({source:"api"}))}updateFilters(e,t,n){const r=this.extractFilterColId(t),i=t.datum[r];if(i===void 0)return;const o=i.toString();if(t.event.metaKey||t.event.ctrlKey){const a=this.getCurrentGridValuesForCategory(n),s=a.includes(o);let l;s?l=a.filter(c=>c!==o):(l=a,l.push(o)),e[n]=this.getUpdatedFilterModel(n,l)}else{const a=[o];e={[n]:this.getUpdatedFilterModel(n,a)}}this.filterManager?.setFilterModel(e)}getUpdatedFilterModel(e,t){return this.getColumnFilterType(e)==="agMultiColumnFilter"?{filterType:"multi",filterModels:[null,{filterType:"set",values:t}]}:{filterType:"set",values:t}}getCurrentGridValuesForCategory(e){const t=[],n=this.getColumnById(e);return this.clientSideRowModel?.forEachNodeAfterFilter(r=>{if(n&&!r.group){const i=this.valueSvc.getValue(n,r)+"";t.includes(i)||t.push(i)}}),t}extractFilterColId(e){return e.xKey||e.calloutLabelKey}isValidColumnFilter(e){e.indexOf("-filtered-out")&&(e=e.replace("-filtered-out",""));const t=this.getColumnFilterType(e);return typeof t=="boolean"?t:["agSetColumnFilter","agMultiColumnFilter"].includes(t)}getColumnFilterType(e){const t=this.getColumnById(e);if(t)return t.getColDef().filter}getColumnById(e){return this.colModel.getCol(e)}},GJt=["chartUnlink","chartLink","chartDownload","chartMenu"],YG={settings:"chartSettings",data:"chartData",format:"chartFormat"},$Jt=class extends dt{constructor(){super(...arguments),this.beanName="chartMenuSvc"}wireBeans(e){this.advSettingsMenuFactory=e.advSettingsMenuFactory}downloadChart(e,t,n,r){e.chartController.getChartProxy().downloadChart(t,n,r)}toggleLinked(e){e.chartController.detachChartRange()}openAdvancedSettings(e,t){this.advSettingsMenuFactory?.showMenu(e,t)}hideAdvancedSettings(){this.advSettingsMenuFactory?.hideMenu()}getChartToolbarOptions(){const e=["chartMenu"],t=this.gos.getCallback("getChartToolbarItems");return t?t({defaultItems:e}).filter(r=>GJt.includes(r)?!0:(ut(155,{option:r}),!1)):e}getChartToolPanels(e){const t=this.gos.get("chartToolPanelsDef");let r=t?.panels?.map(a=>{const s=YG[a];return s||ut(156,{panel:a}),s}).filter(a=>!!a)??Object.values(YG);e.isPivotChart()&&(r=r.filter(a=>a!=="chartData"));const i=t?.defaultToolPanel,o=i&&YG[i]||r[0];return{panels:r,defaultPanel:o}}doesChartToolbarExist(){return this.getChartToolbarOptions().length>0}doChartToolPanelsExist(e){const{panels:t}=this.getChartToolPanels(e);return t.length>0}},UJt={pivotChartTitle:"Pivot Chart",rangeChartTitle:"Range Chart",settings:"Chart",data:"Set Up",format:"Customize",categories:"Categories",defaultCategory:"(None)",series:"Series",switchCategorySeries:"Switch Category / Series",categoryValues:"Category Values",seriesLabels:"Series Labels",aggregate:"Aggregate",xyValues:"X Y Values",paired:"Paired Mode",axis:"Axis",xAxis:"Horizontal Axis",yAxis:"Vertical Axis",polarAxis:"Polar Axis",radiusAxis:"Radius Axis",navigator:"Navigator",zoom:"Zoom",animation:"Animation",crosshair:"Crosshair",color:"Color",thickness:"Thickness",preferredLength:"Preferred Length",xType:"X Type",axisType:"Axis Type",automatic:"Automatic",category:"Category",number:"Number",time:"Time",timeFormat:"Time Format",autoRotate:"Auto Rotate",labelRotation:"Rotation",circle:"Circle",polygon:"Polygon",square:"Square",cross:"Cross",diamond:"Diamond",plus:"Plus",triangle:"Triangle",heart:"Heart",orientation:"Orientation",fixed:"Fixed",parallel:"Parallel",perpendicular:"Perpendicular",radiusAxisPosition:"Position",ticks:"Ticks",gridLines:"Grid Lines",width:"Width",height:"Height",length:"Length",padding:"Padding",spacing:"Spacing",chartStyle:"Chart Style",title:"Title",chartTitles:"Titles",chartTitle:"Chart Title",chartSubtitle:"Subtitle",horizontalAxisTitle:"Horizontal Axis Title",verticalAxisTitle:"Vertical Axis Title",polarAxisTitle:"Polar Axis Title",titlePlaceholder:"Chart Title",background:"Background",font:"Font",weight:"Weight",top:"Top",right:"Right",bottom:"Bottom",left:"Left",labels:"Labels",calloutLabels:"Callout Labels",sectorLabels:"Sector Labels",positionRatio:"Position Ratio",size:"Size",shape:"Shape",minSize:"Minimum Size",maxSize:"Maximum Size",legend:"Legend",position:"Position",markerSize:"Marker Size",markerStroke:"Marker Stroke",markerPadding:"Marker Padding",itemSpacing:"Item Spacing",itemPaddingX:"Item Padding X",itemPaddingY:"Item Padding Y",layoutHorizontalSpacing:"Horizontal Spacing",layoutVerticalSpacing:"Vertical Spacing",strokeWidth:"Stroke Width",offset:"Offset",offsets:"Offsets",tooltips:"Tooltips",callout:"Callout",markers:"Markers",shadow:"Shadow",blur:"Blur",xOffset:"X Offset",yOffset:"Y Offset",lineWidth:"Line Width",lineDash:"Line Dash",lineDashOffset:"Dash Offset",scrollingZoom:"Scrolling",scrollingStep:"Scrolling Step",selectingZoom:"Selecting",durationMillis:"Duration (ms)",crosshairLabel:"Label",crosshairSnap:"Snap to Node",normal:"Normal",bold:"Bold",italic:"Italic",boldItalic:"Bold Italic",predefined:"Predefined",fillOpacity:"Fill Opacity",strokeColor:"Line Color",strokeOpacity:"Line Opacity",miniChart:"Mini-Chart",histogramBinCount:"Bin count",connectorLine:"Connector Line",seriesItems:"Series Items",seriesItemType:"Item Type",seriesItemPositive:"Positive",seriesItemNegative:"Negative",seriesItemLabels:"Item Labels",columnGroup:"Column",barGroup:"Bar",pieGroup:"Pie",lineGroup:"Line",scatterGroup:"X Y (Scatter)",areaGroup:"Area",polarGroup:"Polar",statisticalGroup:"Statistical",hierarchicalGroup:"Hierarchical",specializedGroup:"Specialized",combinationGroup:"Combination",groupedColumnTooltip:"Grouped",stackedColumnTooltip:"Stacked",normalizedColumnTooltip:"100% Stacked",groupedBarTooltip:"Grouped",stackedBarTooltip:"Stacked",normalizedBarTooltip:"100% Stacked",pieTooltip:"Pie",donutTooltip:"Donut",lineTooltip:"Line",stackedLineTooltip:"Stacked",normalizedLineTooltip:"100% Stacked",groupedAreaTooltip:"Area",stackedAreaTooltip:"Stacked",normalizedAreaTooltip:"100% Stacked",scatterTooltip:"Scatter",bubbleTooltip:"Bubble",histogramTooltip:"Histogram",radialColumnTooltip:"Radial Column",radialBarTooltip:"Radial Bar",radarLineTooltip:"Radar Line",radarAreaTooltip:"Radar Area",nightingaleTooltip:"Nightingale",rangeBarTooltip:"Range Bar",rangeAreaTooltip:"Range Area",boxPlotTooltip:"Box Plot",treemapTooltip:"Treemap",sunburstTooltip:"Sunburst",waterfallTooltip:"Waterfall",heatmapTooltip:"Heatmap",columnLineComboTooltip:"Column & Line",areaColumnComboTooltip:"Area & Column",customComboTooltip:"Custom Combination",innerRadius:"Inner Radius",startAngle:"Start Angle",endAngle:"End Angle",reverseDirection:"Reverse Direction",groupPadding:"Group Padding",seriesPadding:"Series Padding",tile:"Tile",whisker:"Whisker",cap:"Cap",capLengthRatio:"Length Ratio",labelPlacement:"Placement",inside:"Inside",outside:"Outside",noDataToChart:"No data available to be charted.",pivotChartRequiresPivotMode:"Pivot Chart requires Pivot Mode enabled.",chartSettingsToolbarTooltip:"Menu",chartLinkToolbarTooltip:"Linked to Grid",chartUnlinkToolbarTooltip:"Unlinked from Grid",chartDownloadToolbarTooltip:"Download Chart",chartMenuToolbarTooltip:"Menu",chartEdit:"Edit Chart",chartAdvancedSettings:"Advanced Settings",chartLink:"Link to Grid",chartUnlink:"Unlink from Grid",chartDownload:"Download Chart",histogramFrequency:"Frequency",seriesChartType:"Series Chart Type",seriesType:"Series Type",secondaryAxis:"Secondary Axis",seriesAdd:"Add a series",categoryAdd:"Add a category",bar:"Bar",column:"Column",histogram:"Histogram",advancedSettings:"Advanced Settings",direction:"Direction",horizontal:"Horizontal",vertical:"Vertical",seriesGroupType:"Group Type",groupedSeriesGroupType:"Grouped",stackedSeriesGroupType:"Stacked",normalizedSeriesGroupType:"100% Stacked",legendEnabled:"Enabled",invalidColor:"Color value is invalid",groupedColumnFull:"Grouped Column",stackedColumnFull:"Stacked Column",normalizedColumnFull:"100% Stacked Column",groupedBarFull:"Grouped Bar",stackedBarFull:"Stacked Bar",normalizedBarFull:"100% Stacked Bar",stackedAreaFull:"Stacked Area",normalizedAreaFull:"100% Stacked Area",stackedLineFull:"Stacked Line",normalizedLineFull:"100% Stacked Line",customCombo:"Custom Combination",funnel:"Funnel",coneFunnel:"Cone Funnel",pyramid:"Pyramid",funnelGroup:"Funnel",funnelTooltip:"Funnel",coneFunnelTooltip:"Cone Funnel",pyramidTooltip:"Pyramid",dropOff:"Drop-Off",stageLabels:"Stage Labels",reverse:"Reverse",groupedColumn:"Grouped",stackedColumn:"Stacked",pie:"Pie",donut:"Donut",line:"Line",scatter:"Scatter",bubble:"Bubble",area:"Area",stackedArea:"Stacked",radarLine:"Radar Line",radarArea:"Radar Area",nightingale:"Nightingale",radialColumn:"Radial Column",radialBar:"Radial Bar",boxPlot:"Box Plot",rangeBar:"Range Bar",rangeArea:"Range Area",treemap:"Treemap",sunburst:"Sunburst",waterfall:"Waterfall",heatmap:"Heatmap",columnLineCombo:"Column & Line",AreaColumnCombo:"Area & Column",ariaChartMenuClose:"Close Chart Edit Menu",ariaChartSelected:"Selected",group:"Group",timeFormatSlashesDDMMYYYY:"DD/MM/YYYY",timeFormatSlashesMMDDYYYY:"MM/DD/YYYY",timeFormatSlashesDDMMYY:"DD/MM/YY",timeFormatSlashesMMDDYY:"MM/DD/YY",timeFormatDotsDDMYY:"DD.M.YY",timeFormatDotsMDDYY:"M.DD.YY",timeFormatDashesYYYYMMDD:"YYYY-MM-DD",timeFormatSpacesDDMMMMYYYY:"DD MMMM YYYY",timeFormatHHMMSS:"HH:MM:SS",timeFormatHHMMSSAmPm:"HH:MM:SS AM/PM",sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"},XJt=class extends dt{constructor(){super(...arguments),this.beanName="chartTranslation"}translate(e){const t=this.getLocaleTextFunc(),n=UJt[e];return t(e,n)}},mD=e=>t=>t==null?!0:e(t),GRe=e=>typeof e=="string",Nit=e=>typeof e=="boolean",YJt=e=>typeof e=="object",py=(e,t)=>n=>`AG Grid - unable to update chart as invalid params supplied:  \`${e}: ${n}\`, expected ${t}.`,Fit=e=>`${e} is not supported in AG Charts Community ('ag-charts-enterprise' hasn't been loaded). See https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/ for more details.`,KJt=["doughnut"],tMe=["type","chartId","chartType","chartThemeName","chartThemeOverrides","unlinkChart"];function QJt(e){return!!Tit(e)||Qye(e)}function ZJt(e){return KJt.includes(e)}var JJt=mD(e=>{if(QJt(e))return!0;if(ZJt(e)){const t=mW(e);return ab(`The chart type '${e}' has been deprecated. Please use '${t}' instead.`),t}return!1}),een=mD(e=>typeof e=="object"),ten=mD(e=>typeof e=="object"),nen=mD(e=>typeof e=="string"||typeof e=="function"),Wit=e=>({property:"chartType",validationFn:mD(t=>e||!t||!UZt(t)),warnMessage:t=>Fit(`The '${t}' chart type`)}),qit=e=>({property:"switchCategorySeries",validationFn:mD(t=>{if(!t||e)return!0}),warnMessage:()=>Fit("'switchCategorySeries' has been ignored as it"),warnIfFixed:!0}),nMe=()=>[{property:"chartId",validationFn:GRe,warnMessage:py("chartId","string")},{property:"chartType",validationFn:JJt,warnMessage:py("chartType","ChartType")},{property:"chartThemeName",validationFn:GRe,warnMessage:py("chartThemeName","string")},{property:"chartThemeOverrides",validationFn:een,warnMessage:py("chartThemeOverrides","AgChartThemeOverrides")},{property:"unlinkChart",validationFn:Nit,warnMessage:py("unlinkChart","boolean")}],Bit=e=>[{property:"cellRange",validationFn:ten,warnMessage:py("cellRange","ChartParamsCellRange")},{property:"suppressChartRanges",validationFn:Nit,warnMessage:py("suppressChartRanges","boolean")},{property:"aggFunc",validationFn:nen,warnMessage:py("aggFunc","string or IAggFunc")},qit(e)];function ren(e,t){switch(e.type){case"rangeChartUpdate":return oen(e,t);case"pivotChartUpdate":return aen(e);case"crossFilterChartUpdate":return sen(e,t);default:return ab(`Invalid value supplied for 'type': ${e.type}. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.`),!1}}function ien(e,t){return qK(e,[Wit(t),qit(t)])}function oen(e,t){const n=[...nMe(),Wit(t),...Bit(t),{property:"seriesChartTypes",validationFn:r=>r===void 0||Array.isArray(r)&&r.every(YJt),warnMessage:py("seriesChartTypes","Array of SeriesChartType")}];return qK(e,n,[...tMe,"cellRange","suppressChartRanges","switchCategorySeries","aggFunc","seriesChartTypes","seriesGroupType"],"UpdateRangeChartParams")}function aen(e){const t=[...nMe()];return qK(e,t,[...tMe],"UpdatePivotChartParams")}function sen(e,t){const n=[...nMe(),...Bit(t)];return qK(e,n,[...tMe,"cellRange","suppressChartRanges","aggFunc"],"UpdateCrossFilterChartParams")}function qK(e,t,n,r){let i;for(const o of t){const{property:a,validationFn:s,warnMessage:l,warnIfFixed:c}=o;if(a in e){const u=e[a],d=s(u);if(d===!0)continue;if(d===!1)return ab(l(u)),!1;i=i||{...e},i[a]=d,c&&ab(l(u))}}if(n){for(const o of Object.keys(e))if(!n.includes(o))return ab(`Unexpected property supplied. ${r} does not contain: \`${o}\`.`),!1}return i||!0}var jit=["ag-default","ag-material","ag-sheets","ag-polychroma","ag-vivid"],len=class extends dt{constructor(e){super(),this.model=e,this.isEnterprise=()=>this.agChartsExports.isEnterprise}wireBeans(e){this.rangeSvc=e.rangeSvc,this.agChartsExports=e.agChartsExports}postConstruct(){this.setChartRange(),this.model.unlinked&&this.rangeSvc&&this.rangeSvc.setCellRanges([]);const e=this.updateForGridChange.bind(this,{});this.addManagedEventListeners({cellSelectionChanged:t=>{t.id&&t.id===this.model.chartId&&this.updateForRangeChange()},columnMoved:e,columnPinned:e,columnVisible:e,columnRowGroupChanged:e,modelUpdated:e,cellValueChanged:this.updateForDataChange.bind(this)})}update(e){if(!this.validUpdateType(e))return!1;const t=ren(e,this.agChartsExports.isEnterprise);if(!t)return!1;const n=t===!0?e:t;return this.applyValidatedChartParams(n),!0}applyValidatedChartParams(e){const{chartId:t,chartType:n,chartThemeName:r,unlinkChart:i}=e,a={...{chartId:t,pivotChart:this.model.pivotChart,chartType:n??this.model.chartType,chartThemeName:r??this.model.chartThemeName,unlinkChart:i??this.model.unlinked,cellRange:this.model.suppliedCellRange,switchCategorySeries:this.model.switchCategorySeries,aggFunc:this.model.aggFunc,seriesChartTypes:void 0,suppressChartRanges:!1,crossFiltering:!1}};switch(e.type){case"rangeChartUpdate":a.cellRange=this.createCellRange(e)??this.model.suppliedCellRange,a.switchCategorySeries=e.switchCategorySeries??this.model.switchCategorySeries,a.aggFunc=e.aggFunc??this.model.aggFunc,a.seriesChartTypes=e.seriesChartTypes,a.suppressChartRanges=e.suppressChartRanges??this.model.suppressChartRanges,a.seriesGroupType=e.seriesGroupType??this.model.seriesGroupType;break;case"crossFilterChartUpdate":a.cellRange=this.createCellRange(e)??this.model.suppliedCellRange,a.switchCategorySeries=!1,a.aggFunc=e.aggFunc??this.model.aggFunc,a.crossFiltering=!0,a.suppressChartRanges=e.suppressChartRanges??this.model.suppressChartRanges;break;case"pivotChartUpdate":a.switchCategorySeries=!1;break}this.model.updateModel(a),a.unlinkChart||a.suppressChartRanges?this.rangeSvc?.setCellRanges([]):this.setChartRange()}updateForGridChange(e){if(this.model.unlinked)return;const{maintainColState:t,setColsFromRange:n}=e??{};this.model.updateCellRanges({maintainColState:t,setColsFromRange:n}),this.model.updateData(),this.setChartRange()}updateForDataChange(){this.model.unlinked||(this.model.updateData(),this.raiseChartModelUpdateEvent())}updateForRangeChange(){this.updateForGridChange({setColsFromRange:!0}),this.raiseChartRangeSelectionChangedEvent()}updateForPanelChange(e){this.model.updateCellRanges(e),this.model.updateData(),e.skipAnimation&&this.getChartProxy().getChartRef().skipAnimations(),this.setChartRange(),this.raiseChartRangeSelectionChangedEvent()}updateThemeOverrides(e){this.chartProxy.updateThemeOverrides(e)}getChartUpdateParams(e){const n=this.getSelectedValueColState().map(a=>({colId:a.colId,displayName:a.displayName})),r=this.getChartData(),i=this.getSelectedDimensions(),o={data:r,groupData:this.model.groupChartData,grouping:this.isGrouping(),categories:i.map(a=>({id:a.colId,name:a.displayName,chartDataType:this.model.categoryAxisType??this.model.getChartDataType(a.colId)})),fields:n,chartId:this.getChartId(),getCrossFilteringContext:()=>({lastSelectedChartId:"xxx"}),seriesChartTypes:this.getSeriesChartTypes(),updatedOverrides:e,seriesGroupType:this.model.seriesGroupType};return this.isCategorySeriesSwitched()?this.invertCategorySeriesParams(o):o}invertCategorySeriesParams(e){const[t]=e.categories,n=[{id:Rb,name:""}],r=e.data.map((o,a)=>{const s=`${t.id}:${a}`,l=o[t.id],c=l==null?"":String(l);return{colId:s,displayName:c}}),i=e.fields.map(o=>{const a={[Rb]:o.displayName};for(const[s,l]of e.data.entries()){const c=`${t.id}:${s}`,u=l[o.colId];a[c]=u}return a});return{...e,categories:n,fields:r,data:i}}getChartModel(){const e=this.model.pivotChart?"pivot":"range",t=this.isComboChart()?this.model.comboChartModel.seriesChartTypes:void 0;return{modelType:e,chartId:this.model.chartId,chartType:this.model.chartType,chartThemeName:this.getChartThemeName(),chartOptions:this.chartProxy?.getChartThemeOverrides(),chartPalette:this.chartProxy?.getChartPalette(),cellRange:this.getCellRangeParams(),switchCategorySeries:this.model.switchCategorySeries,suppressChartRanges:this.model.suppressChartRanges,aggFunc:this.model.aggFunc,unlinkChart:this.model.unlinked,seriesChartTypes:t,seriesGroupType:this.model.seriesGroupType}}getChartId(){return this.model.chartId}getChartData(){return this.model.chartData}getChartType(){return this.model.chartType}setChartType(e){this.updateMultiSeriesAndCategory(this.model.chartType,e),this.model.chartType=e,this.model.comboChartModel.updateSeriesChartTypes(),this.model.switchCategorySeries=!1,this.model.categoryAxisType=void 0,this.model.seriesGroupType=void 0,this.raiseChartModelUpdateEvent()}isCategorySeriesSwitched(){return this.model.switchCategorySeries&&!this.model.isGrouping()}switchCategorySeries(e){Rit(this.getChartType())&&(this.model.switchCategorySeries=e,this.raiseChartModelUpdateEvent())}getAggFunc(){return this.model.aggFunc}setAggFunc(e,t){this.model.aggFunc!==e&&(this.model.aggFunc=e,!t&&(this.model.updateData(),this.raiseChartModelUpdateEvent()))}updateMultiSeriesAndCategory(e,t){const n=(s,l)=>{let c=0;for(const u of s)u.selected&&(c>=l?u.selected=!1:c++);c===0&&(s[0].selected=!0)},r=khe(t),i=q$(t),o=r!=null&&(khe(e)??100)>(r??100),a=i!=null&&(q$(e)??100)>(i??100);o&&n(this.model.dimensionColState,r),a&&n(this.model.valueColState,i),(o||a)&&(this.model.resetCellRanges(o,a),this.setChartRange(!0))}setChartThemeName(e,t){this.model.chartThemeName=e,t||this.raiseChartModelUpdateEvent()}getChartThemeName(){return this.model.chartThemeName}isPivotChart(){return this.model.pivotChart}isPivotMode(){return this.model.isPivotMode()}isGrouping(){return this.model.isGrouping()}isCrossFilterChart(){return this.model.crossFiltering}getThemeNames(){return this.gos.get("chartThemes")||jit}getThemes(){return this.getThemeNames().map(t=>{const r=Jye(t,this.agChartsExports._Theme)?t:this.chartProxy.lookupCustomChartTheme(t);return this.agChartsExports._Theme.getChartTheme(r)})}getPalettes(){return this.getThemes().map(t=>t.palette)}getValueColState(){return this.model.valueColState.map(this.displayNameMapper.bind(this))}getSelectedValueColState(){return this.getValueColState().filter(e=>e.selected)}getSelectedDimensions(){return this.model.getSelectedDimensions()}displayNameMapper(e){const{column:t}=e;if(t)e.displayName=this.model.getColDisplayName(t,this.model.isPivotMode());else{const n=this.model.colNames[e.colId];e.displayName=n?n.join(" - "):this.model.getColDisplayName(t)}return e}getColStateForMenu(){return{dimensionCols:this.model.dimensionColState,valueCols:this.getValueColState()}}setChartRange(e=!1){this.rangeSvc&&!this.model.suppressChartRanges&&!this.model.unlinked&&this.rangeSvc.setCellRanges(this.getCellRanges()),e||this.raiseChartModelUpdateEvent()}detachChartRange(){this.model.unlinked=!this.model.unlinked,this.model.unlinked?this.rangeSvc&&this.rangeSvc.setCellRanges([]):this.updateForGridChange(),this.dispatchLocalEvent({type:"chartLinkedChanged"})}setChartProxy(e){this.chartProxy=e}getChartProxy(){return this.chartProxy}isActiveXYChart(){return["scatter","bubble"].includes(this.getChartType())}isChartLinked(){return!this.model.unlinked}customComboExists(){const e=this.model.comboChartModel.savedCustomSeriesChartTypes;return e&&e.length>0}getSeriesChartTypes(){return this.model.comboChartModel.seriesChartTypes}isComboChart(e){return this.model.isComboChart(e)}updateSeriesChartType(e,t,n){const r=this.model.comboChartModel.seriesChartTypes.find(i=>i.colId===e);if(r){const i=this.model.chartType!=="customCombo";i&&(this.model.chartType="customCombo");const o=r.chartType;t!=null&&(r.chartType=t),n!=null&&(r.secondaryAxis=n),this.model.comboChartModel.savedCustomSeriesChartTypes=this.model.comboChartModel.seriesChartTypes,this.model.comboChartModel.updateSeriesChartTypes(),this.updateForDataChange(),i&&this.dispatchLocalEvent({type:"chartTypeChanged"}),o!==t&&this.dispatchLocalEvent({type:"chartSeriesChartTypeChanged"}),this.raiseChartOptionsChangedEvent()}}getActiveSeriesChartTypes(){const e=this.getSelectedValueColState().map(t=>t.colId);return this.getSeriesChartTypes().filter(t=>e.includes(t.colId))}getChartSeriesTypes(e){const t=e??this.getChartType();return this.isComboChart(t)?["line","bar","area"]:[Us(t)]}getChartSeriesType(){const e=this.getSeriesChartTypes();if(e.length===0)return"bar";const t=e[0].chartType;return t==="columnLineCombo"?"bar":t==="areaColumnCombo"?"area":Us(t)}getCellRanges(){return[this.model.dimensionCellRange,this.model.valueCellRange].filter(e=>e)}createCellRange(e){return e.cellRange&&this.rangeSvc?.createPartialCellRangeFromRangeParams(e.cellRange,!0)}validUpdateType(e){if(!e.type)return ut(136),!1;const t={"Range Chart":()=>!this.isPivotChart()&&!this.isCrossFilterChart(),"Pivot Chart":()=>this.isPivotChart(),"Cross Filter Chart":()=>this.isCrossFilterChart()},n=Object.keys(t).find(i=>t[i]())??"Range Chart",r=e.type===`${n[0].toLowerCase()}${n.slice(1).replace(/ /g,"")}Update`;return r||ut(137,{currentChartType:n,type:e.type}),r}getCellRangeParams(){const e=this.getCellRanges(),t=e[0],n=t&&t.startRow||null,r=t&&t.endRow||null;return{rowStartIndex:n&&n.rowIndex,rowStartPinned:n&&n.rowPinned,rowEndIndex:r&&r.rowIndex,rowEndPinned:r&&r.rowPinned,columns:e.reduce((i,o)=>i.concat(o.columns.map(a=>a.getId())),[])}}setCategoryAxisType(e){this.model.categoryAxisType=e,this.raiseChartModelUpdateEvent()}getSeriesGroupType(){return this.model.seriesGroupType??this.chartProxy.getSeriesGroupType()}setSeriesGroupType(e){this.model.seriesGroupType=e,this.raiseChartModelUpdateEvent()}raiseChartModelUpdateEvent(){this.dispatchLocalEvent({type:"chartModelUpdate"}),this.raiseChartOptionsChangedEvent()}raiseChartUpdatedEvent(){this.dispatchLocalEvent({type:"chartUpdated"})}raiseChartApiUpdateEvent(){this.dispatchLocalEvent({type:"chartApiUpdate"})}raiseChartOptionsChangedEvent(){const{chartId:e,chartType:t}=this.getChartModel();this.eventSvc.dispatchEvent({type:"chartOptionsChanged",chartId:e,chartType:t,chartThemeName:this.getChartThemeName(),chartOptions:this.chartProxy?.getChartThemeOverrides()})}raiseChartRangeSelectionChangedEvent(){this.eventSvc.dispatchEvent({type:"chartRangeSelectionChanged",id:this.model.chartId,chartId:this.model.chartId,cellRange:this.getCellRangeParams()})}destroy(){super.destroy(),this.rangeSvc&&this.rangeSvc.setCellRanges([])}},cen=class extends Sw{getAxes(e){const t=[{type:this.getXAxisType(e),position:"bottom"},{type:"number",position:"left"}];if(this.isNormalised()){const n=t[1];n.label={...n.label,formatter:r=>Math.round(r.value)+"%"}}return t}getSeries(e){const[t]=e.categories,n=e.fields.map(r=>({type:this.standaloneChartType,xKey:t.id,xName:t.name,yKey:r.colId,yName:r.displayName,normalizedTo:this.chartType==="normalizedArea"?100:void 0,stacked:["normalizedArea","stackedArea"].includes(this.chartType)}));return this.crossFiltering?this.extractLineAreaCrossFilterSeries(n,e):n}isNormalised(){return!this.crossFiltering&&this.chartType==="normalizedArea"}},uen=new Set(["bar","groupedBar","stackedBar","normalizedBar"]),den=class extends Sw{getAxes(e){const t=[{type:this.getXAxisType(e),position:this.isHorizontal()?"left":"bottom"},{type:"number",position:this.isHorizontal()?"bottom":"left"}];if(this.isNormalised()){const n=t[1];n.label={...n.label,formatter:r=>Math.round(r.value)+"%"}}return t}getSeries(e){const[t]=e.categories,n=e.fields.map(r=>({type:this.standaloneChartType,direction:this.isHorizontal()?"horizontal":"vertical",stacked:this.crossFiltering||YZt(this.chartType),normalizedTo:this.isNormalised()?100:void 0,xKey:t.id,xName:t.name,yKey:r.colId,yName:r.displayName}));return this.crossFiltering?this.extractCrossFilterSeries(n):n}extractCrossFilterSeries(e){const t=[];for(let n=0;n<e.length;n++){const i={...e[n],listeners:{nodeClick:this.crossFilterCallback}},o={...i,yKey:`${i.yKey}-filtered-out`,showInLegend:!1};t.push(i),t.push(o)}return t}isNormalised(){const e=["normalizedColumn","normalizedBar"];return!this.crossFiltering&&e.includes(this.chartType)}isHorizontal(){return uen.has(this.chartType)}},pen=class extends Sw{getAxes(e){const t=[{type:this.getXAxisType(e),position:"bottom"},{type:"number",position:"left"}];if(this.isNormalised()){const n=t[1];n.label={...n.label,formatter:r=>Math.round(r.value)+"%"}}return t}getSeries(e){const[t]=e.categories,n=["normalizedLine","stackedLine"].includes(this.chartType),r=e.fields.map(i=>({type:this.standaloneChartType,xKey:t.id,xName:t.name,yKey:i.colId,yName:i.displayName,normalizedTo:n&&this.isNormalised()?100:void 0,stacked:n}));return this.crossFiltering?this.extractLineAreaCrossFilterSeries(r,e):r}isNormalised(){const e=["normalizedLine"];return!this.crossFiltering&&e.includes(this.chartType)}},hen=class extends Sw{getAxes(e){return[{type:"number",position:"bottom"},{type:"number",position:"left"}]}getSeries(e){const[t]=e.categories,n=this.isPaired(),r=this.getSeriesDefinitions(e.fields,n),i=t.id===Rb?void 0:t,o=r.map(a=>a?.sizeField?{type:"bubble",xKey:a.xField.colId,xName:a.xField.displayName??void 0,yKey:a.yField.colId,yName:a.yField.displayName??void 0,title:`${a.yField.displayName} vs ${a.xField.displayName}`,sizeKey:a.sizeField.colId,sizeName:a.sizeField.displayName??"",labelKey:i?i.id:a.yField.colId,labelName:i?i.name:void 0}:{type:"scatter",xKey:a.xField.colId,xName:a.xField.displayName??void 0,yKey:a.yField.colId,yName:a.yField.displayName??void 0,title:`${a.yField.displayName} vs ${a.xField.displayName}`,labelKey:i?i.id:a.yField.colId,labelName:i?i.name:void 0});return this.crossFiltering?this.extractCrossFilterSeries(o,e):o}extractCrossFilterSeries(e,t){const{data:n}=t,r=l=>`${l}-filtered-out`,i=(l,c)=>{const u=[1/0,-1/0];if(c!=null)for(const d of l){const p=d[c]??d[r(c)];p<u[0]&&(u[0]=p),p>u[1]&&(u[1]=p)}if(u[0]<=u[1])return u},o=l=>{let c;if(l.type==="bubble"){const{sizeKey:u}=l;c=i(n,u)}return{...l,domain:c,highlightStyle:{item:{fill:"yellow"}},listeners:{...l.listeners,nodeClick:this.crossFilterCallback}}},a=l=>{const{yKey:c,xKey:u}=l;let d={};return l.type==="bubble"&&(d={sizeKey:r(l.sizeKey)}),{...l,...d,yKey:r(c),xKey:r(u),showInLegend:!1,listeners:{...l.listeners,nodeClick:p=>{const h=p.datum[r(u)],g={...p,xKey:u,datum:{...p.datum,[u]:h}};this.crossFilterCallback(g)}}}},s=e.map(o);return[...s,...s.map(a)]}getSeriesDefinitions(e,t){if(e.length<2)return[];const n=this.chartType==="bubble";if(t)return n?e.map((i,o)=>o%3===0?{xField:i,yField:e[o+1],sizeField:e[o+2]}:null).filter(i=>i&&i.yField&&i.sizeField):e.map((i,o)=>o%2===0?{xField:i,yField:e[o+1]}:null).filter(i=>i&&i.yField);const r=e[0];return n?e.map((i,o)=>o%2===1?{xField:r,yField:i,sizeField:e[o+1]}:null).filter(i=>i&&i.sizeField):e.filter((i,o)=>o>0).map(i=>({xField:r,yField:i}))}},fen=class extends Sw{getAxes(e){const t=e?e.fields:[],n=new Map(t.map(a=>[a.colId,a])),{primaryYKeys:r,secondaryYKeys:i}=this.getYKeys(t,e.seriesChartTypes),o=[{type:this.getXAxisType(e),position:"bottom"}];return r.length>0&&o.push({type:"number",keys:r,position:"left"}),i.length>0&&i.forEach(a=>{const s=n.get(a);if(!(s&&s.colId===a))return;const c={type:"number",keys:[a],position:"right"};o.push(c)}),o}getSeries(e){const{fields:t,seriesChartTypes:n}=e,[r]=e.categories;return t.map(i=>{const o=n.find(a=>a.colId===i.colId);if(o){const a=o.chartType,l=["groupedColumn","groupedBar"].includes(a)?{grouped:!0}:{};return{type:Us(a),xKey:r.id,yKey:i.colId,yName:i.displayName,stacked:["stackedArea","stackedColumn"].includes(a),...l}}})}getYKeys(e,t){const n=[],r=[];return e.forEach(i=>{const o=i.colId,a=t.find(s=>s.colId===o);a&&(a.secondaryAxis?r.push(o):n.push(o))}),{primaryYKeys:n,secondaryYKeys:r}}};function gen(e){const t=e.currentOffset;e.currentOffset-=e.offsetAmount;const n=e.currentOffset;return e.currentOffset-=e.offsetAmount,{outerRadiusOffset:t,innerRadiusOffset:n}}var men=class extends gD{getUpdateOptions(e,t){return{...t,data:this.crossFiltering?this.getCrossFilterData(e):e.data,series:this.getSeries(e)}}getSeries(e){const[t]=e.categories,n=e.fields.length,r={currentOffset:0,offsetAmount:n>1?20:40},i=this.getFields(e).map(o=>{const a={type:this.standaloneChartType,angleKey:o.colId,angleName:o.displayName,sectorLabelKey:o.colId,calloutLabelName:t.name,calloutLabelKey:t.id};if(this.chartType==="donut"||this.chartType==="doughnut"){const{outerRadiusOffset:s,innerRadiusOffset:l}=gen(r),c=o.displayName?{title:{text:o.displayName,showInLegend:n>1}}:void 0;return{...a,type:"donut",outerRadiusOffset:s,innerRadiusOffset:l,...c}}return a});return this.crossFiltering?this.extractCrossFilterSeries(i):i}getCrossFilterData(e){const t=e.fields[0].colId,n=`${t}-filtered-out`;return e.data.map(r=>{const i=r[t]+r[n];return r[`${t}-total`]=i,r[n]=1,r[t]=r[t]/i,r})}extractCrossFilterSeries(e){const t=e[0],n=t.angleKey,r={...t,radiusMin:0,radiusMax:1,listeners:{nodeClick:this.crossFilterCallback},legendItemKey:t.calloutLabelKey,angleKey:`${n}-total`},i={...r,radiusKey:n,sectorLabelKey:`${n}-total`};return[{...r,radiusKey:`${n}-filtered-out`,showInLegend:!1},i]}getFields(e){return this.chartType==="pie"?e.fields.slice(0,1):e.fields}},ven=class extends Gt{constructor(){super('<div class="ag-chart-menu" data-ref="eMenu"></div>'),this.eMenu=at,this.buttonListenersDestroyFuncs=[]}wireBeans(e){this.chartTranslation=e.chartTranslation}updateParams(e){const{buttons:t}=e;this.createButtons(t)}createButtons(e){this.buttonListenersDestroyFuncs.forEach(n=>n?.()),this.buttonListenersDestroyFuncs=[];const t=this.eMenu;Xi(t),e.forEach(n=>{const{buttonName:r,iconName:i,callback:o}=n,a=this.createButton(i),s=this.chartTranslation.translate(r+"ToolbarTooltip");s&&a instanceof HTMLElement&&(a.title=s),this.buttonListenersDestroyFuncs.push(...this.addManagedElementListeners(a,{click:l=>o(l.currentTarget)})),t.appendChild(a)})}createButton(e){const t=er(e,this.beans);t.classList.add("ag-chart-menu-icon");const n=Nr({tag:"button",attrs:{type:"button"},cls:"ag-chart-menu-toolbar-button"});return n.appendChild(t),n}destroy(){this.buttonListenersDestroyFuncs=[],super.destroy()}},ben=".ag-pill-select{display:flex;flex-direction:column}:where(.ag-pill-select){.ag-column-drop-list{padding:0}.ag-select{padding-top:var(--ag-spacing)}.ag-picker-field-wrapper{background-color:transparent;border:0}.ag-picker-field-display{cursor:pointer;font-weight:500}.ag-picker-field-display,.ag-picker-field-icon{color:var(--ag-chart-menu-label-color)}}",yen=class extends Gt{constructor(e){super('<div class="ag-pill-select" role="presentation"></div>'),this.config=e??{};const{selectedValueList:t,valueFormatter:n,valueList:r}=this.config;this.selectedValues=t??[],this.valueList=r??[],this.valueFormatter=n??(i=>sm(i)),this.registerCSS(ben)}postConstruct(){const{ariaLabel:e,onValuesChange:t,dragSourceId:n}=this.config;this.dropZonePanel=this.createManagedBean(new Cen({getValues:()=>this.selectedValues,setValues:i=>this.updateValues(i),isDraggable:()=>this.selectedValues.length>1},i=>this.valueFormatter(i),e,n)),this.getGui().appendChild(this.dropZonePanel.getGui()),this.initSelect(),t!=null&&(this.onValuesChange=t)}setValues(e,t){const{added:n,removed:r,updated:i}=this.getChanges(this.valueList,e);let o=!1;return(n.length||r.length||i.length)&&(o=!0),this.valueList=e,this.updateValues(t,o,!0),this}setValueFormatter(e){return this.valueFormatter=e,this}initSelect(){const e=this.createSelectOptions();if(!e.length)return!1;const{selectPlaceholder:t}=this.config;return this.eSelect=this.createBean(new l1({options:e,placeholder:t,onValueChange:n=>this.addValue(n),pickerIcon:"chartsMenuAdd"})),this.getGui().appendChild(this.eSelect.getGui()),!0}createSelectOptions(){const e=[],{maxSelection:t}=this.config;return t&&this.selectedValues.length>=t||this.valueList.forEach(n=>{this.selectedValues.includes(n)||e.push({value:n,text:this.valueFormatter(n)})}),e}addValue(e){this.dropZonePanel.addItem(e)}updateValues(e,t,n){const r=this.selectedValues;this.selectedValues=e;const i=this.getChanges(r,e),o=t||i.added.length||i.removed.length,a=Gi(this.beans),s=this.eSelect?.getGui().contains(a),l=this.dropZonePanel?.getGui().contains(a);n||this.onValuesChange?.(i);const c=o?!this.refreshSelect():!1;this.dropZonePanel.refreshGui(),o&&s&&(c?this.dropZonePanel.focusList(!0):this.eSelect?.getFocusableElement().focus()),l&&!e.length&&this.eSelect?.getFocusableElement().focus()}getChanges(e,t){const n=t.filter(o=>!e.includes(o)),r=e.filter(o=>!t.includes(o)),i=t.filter((o,a)=>e[a]!==o);return{added:n,removed:r,updated:i,selected:t}}refreshSelect(){if(!this.eSelect)return this.initSelect();const e=this.createSelectOptions();return e.length?(this.eSelect.clearOptions().addOptions(e).setValue(void 0,!0),!0):(Rs(this.eSelect.getGui()),this.eSelect=this.destroyBean(this.eSelect),!1)}destroy(){this.destroyBean(this.eSelect),super.destroy()}},Men=class extends Grt{constructor(e,t,n,r,i,o){super(t,n,!1),this.value=e,this.valueFormatter=r,this.draggable=i,this.sourceId=o}getItem(){return this.value}getDisplayName(){return this.valueFormatter(this.value)}getAriaDisplayName(){return this.getDisplayName()}getTooltip(){}createGetDragItem(){return()=>({value:this.value})}getDragSourceType(){return bm.ChartPanel}getDragSourceId(){return this.sourceId}isMovable(){return this.isDraggable()}isDraggable(){return this.draggable}},Cen=class extends Vrt{constructor(e,t,n,r){super(!1),this.model=e,this.valueFormatter=t,this.ariaLabel=n,this.sourceId=r}postConstruct(){super.init()}isItemDroppable(e,t){return this.isSourceEventFromTarget(t)||this.sourceId!=null&&this.sourceId===t.dragSource.sourceId}updateItems(e){this.model.setValues(e)}getExistingItems(){return this.model.getValues()}getIconName(){return this.isPotentialDndItems()?"move":"notAllowed"}getAriaLabel(){return this.ariaLabel}createPillComponent(e,t,n){return new Men(e,t,n,this.valueFormatter,this.model.isDraggable(),this.sourceId)}getItems(e){return[e.value]}isInterestedIn(e){return e===bm.ChartPanel}},Hit=class extends Gt{constructor(e,t,n,r){super(r),this.chartController=e,this.allowMultipleSelection=t,this.maxSelection=n}wireBeans(e){this.chartTranslation=e.chartTranslation}addItem(e){this.groupComp.addItem(e)}createGroup(e,t,n,r,i){if(this.allowMultipleSelection){const o=e.filter(a=>a.selected);this.valuePillSelect=this.groupComp.createManagedBean(new yen({valueList:e,selectedValueList:o,valueFormatter:t,selectPlaceholder:this.chartTranslation.translate(n),dragSourceId:r,onValuesChange:a=>this.onValueChange(a),maxSelection:this.maxSelection})),this.groupComp.addItem(this.valuePillSelect)}else{const o=this.createValueSelectParams(e);o.onValueChange=a=>{e.forEach(s=>{s.selected=!1}),a.selected=!0,a.colId===Rb&&this.chartController.setAggFunc(void 0,!0),this.chartController.updateForPanelChange({updatedColState:a,skipAnimation:i?.()})},this.valueSelect=this.groupComp.createManagedBean(new l1(o)),this.groupComp.addItem(this.valueSelect)}}refreshValueSelect(e){if(!this.valueSelect)return;const{options:t,value:n}=this.createValueSelectParams(e);this.valueSelect.clearOptions().addOptions(t).setValue(n,!0)}createValueSelectParams(e){let t;return{options:e.map(r=>{const i=r.displayName??"";return r.selected&&(t=r),{value:r,text:i}}),value:t}}onValueChange({added:e,updated:t,removed:n,selected:r}){let i,o;const a=()=>{r.forEach((s,l)=>{s.order=l}),o=!0};e.length?(i=e[0],i.selected=!0,a()):n.length?(i=n[0],i.selected=!1):t.length&&(a(),i=t[0]),i&&this.chartController.updateForPanelChange({updatedColState:i,resetOrder:o})}destroy(){this.valuePillSelect=void 0,this.valueSelect=void 0,super.destroy()}},xen="sum",wen=class extends Hit{constructor(e,t,n,r,i){super(e,n,void 0,'<div id="categoriesGroup"></div>'),this.title=t,this.dimensionCols=r,this.isOpen=i}postConstruct(){this.groupComp=this.createBean(new Gy({title:this.title,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen})),this.createGroup(this.dimensionCols,e=>e.displayName??"","categoryAdd","categorySelect",()=>!this.chartController.getAggFunc()),this.createAggFuncControls(this.dimensionCols),this.getGui().appendChild(this.groupComp.getGui())}refresh(e){this.valuePillSelect?.setValues(e,e.filter(t=>t.selected)),this.refreshValueSelect(e),this.refreshAggFuncControls(e,this.chartController.getAggFunc())}createAggFuncControls(e){const t=this.chartController.getAggFunc();this.groupComp.addItem(this.aggFuncToggle=this.createBean(new m3({label:this.chartTranslation.translate("aggregate"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:t!=null,onValueChange:n=>{const r=n?xen:void 0;this.chartController.setAggFunc(r),this.aggFuncSelect?.setValue(r,!0),this.aggFuncSelect?.setDisplayed(r!=null)}}))),this.groupComp.addItem(this.aggFuncSelect=this.createBean(new l1({options:[{value:"sum",text:this.chartTranslation.translate("sum")},{value:"first",text:this.chartTranslation.translate("first")},{value:"last",text:this.chartTranslation.translate("last")},{value:"min",text:this.chartTranslation.translate("min")},{value:"max",text:this.chartTranslation.translate("max")},{value:"count",text:this.chartTranslation.translate("count")},{value:"avg",text:this.chartTranslation.translate("avg")}],value:typeof t=="string"?t:void 0,onValueChange:n=>{this.chartController.setAggFunc(n)}}))),this.refreshAggFuncControls(e,t)}refreshAggFuncControls(e,t){const r=e.filter(i=>i.selected).some(i=>i.colId!==Rb);this.aggFuncToggle?.setValue(t!=null),this.aggFuncSelect?.setValue(typeof t=="string"?t:void 0,!0),this.aggFuncToggle?.setDisplayed(r),this.aggFuncSelect?.setDisplayed(r&&t!=null)}clearAggFuncControls(){this.aggFuncToggle=this.destroyBean(this.aggFuncToggle),this.aggFuncSelect=this.destroyBean(this.aggFuncSelect)}destroy(){this.clearAggFuncControls(),this.groupComp=this.destroyBean(this.groupComp),super.destroy()}},Az=class extends dt{constructor(e){super(),this.chartOptionsProxy=e}wireBeans(e){this.chartTranslation=e.chartTranslation}getDefaultColorPickerParams(e,t,n){return this.addValueParams(e,{label:this.chartTranslation.translate(t??"color"),labelWidth:"flex",inputWidth:"flex",labelAlignment:"top",pickerGap:6},n)}getDefaultNumberInputParams(e,t,n){return this.addValueParams(e,{label:this.chartTranslation.translate(t),labelAlignment:"top",labelWidth:"flex",inputWidth:"flex",precision:n?.precision,step:n?.step,min:n?.min,max:n?.max},{parseInputValue:r=>{const i=Number(r);return isNaN(i)?void 0:i},formatInputValue:r=>r==null?"":`${r}`})}getDefaultSliderParams(e,t,n,r){let i=this.chartOptionsProxy.getValue(e)??0;r&&Array.isArray(i)&&(i=i[0]);const o=this.getDefaultSliderParamsWithoutValueParams(i,t,n);return o.onValueChange=a=>this.chartOptionsProxy.setValue(e,r?[a]:a),o}getDefaultSliderParamsWithoutValueParams(e,t,n){return{label:this.chartTranslation.translate(t),minValue:0,maxValue:Math.max(e,n),textFieldWidth:45,value:`${e}`}}getDefaultCheckboxParams(e,t,n){const r=this.chartOptionsProxy.getValue(e),i={label:this.chartTranslation.translate(t),value:r,readOnly:n?.readOnly,passive:n?.passive};return i.onValueChange=o=>{this.chartOptionsProxy.setValue(e,typeof o=="boolean"?o:void 0)},i}getDefaultToggleParams(e,t,n){const r=this.chartOptionsProxy.getValue(e),i={label:this.chartTranslation.translate(t),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:r,readOnly:n?.readOnly,passive:n?.passive};return i.onValueChange=o=>{this.chartOptionsProxy.setValue(e,typeof o=="boolean"?o:void 0)},i}getDefaultSelectParams(e,t,n){return this.getDefaultSelectParamsWithoutValueParams(t,n,this.chartOptionsProxy.getValue(e),r=>{this.chartOptionsProxy.setValue(e,r)})}getDefaultSelectParamsWithoutValueParams(e,t,n,r){return{label:this.chartTranslation.translate(e),labelAlignment:"top",options:t,pickerGap:6,value:n,onValueChange:r}}getDefaultFontPanelParams(e,t){const n=r=>`${e}.${r}`;return this.addEnableParams(n("enabled"),{name:this.chartTranslation.translate(t),suppressEnabledCheckbox:!1,chartMenuParamsFactory:this,keyMapper:n})}addValueParams(e,t,n){const r=this.chartOptionsProxy.getValue(e);return t.value=n?.formatInputValue?n.formatInputValue(r):r,t.onValueChange=i=>{const o=n?.parseInputValue?n.parseInputValue(i):i;this.chartOptionsProxy.setValue(e,o)},t}addEnableParams(e,t){return t.enabled=this.chartOptionsProxy.getValue(e)??!1,t.onEnableChange=n=>this.chartOptionsProxy.setValue(e,n),t}getChartOptions(){return this.chartOptionsProxy}},Sen=class extends Gt{constructor(e,t){super(),this.chartMenuContext=e,this.isOpen=t,this.chartSpecificGroup=at,this.hasContent=!1}wireBeans(e){this.chartTranslation=e.chartTranslation,this.chartSvc=e.chartSvc}postConstruct(){const t={title:this.getTitle(),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen,items:[...this.createDirectionSelect(),this.createReverseSelect(),this.createGroupTypeSelect()]};this.setTemplate(`
            <div id="chartSpecificGroup">
                <ag-group-component data-ref="chartSpecificGroup"></ag-group-component>
            </div>`,[Ks],{chartSpecificGroup:t}),this.setDisplayed(this.hasContent)}refresh(){this.hasContent=!1,this.chartSpecificGroup.setTitle(this.getTitle()),this.updateDirectionSelect(),this.updateReverseSelect(),this.updateGroupTypeSelect(),this.setDisplayed(this.hasContent)}getTitle(){const e=this.chartMenuContext.chartController.getChartType();return this.chartTranslation.translate(Zye(e))}createDirectionSelect(){if(!this.chartSvc.isEnterprise())return[];const{chartOptionsService:e,chartController:t}=this.chartMenuContext,n=e.getSeriesOptionsProxy(()=>Us(t.getChartType())),r=this.createManagedBean(new Az(n)),i=["horizontal","vertical"].map(s=>({value:s,text:this.chartTranslation.translate(s)})),o=r.getDefaultSelectParams("direction","direction",i),a=o.onValueChange;return o.onValueChange=s=>{a(s),t.raiseChartModelUpdateEvent()},this.directionSelect=this.createManagedBean(new l1(o)),this.updateDirectionSelect(),[this.directionSelect]}createReverseSelect(){const{chartMenuParamsFactory:e}=this.chartMenuContext,t=e.getDefaultToggleParams("series.reverse","reverse");return this.reverseToggle=this.createManagedBean(new m3(t)),this.updateReverseSelect(),this.reverseToggle}updateReverseSelect(){const e=this.chartMenuContext.chartController.getChartType()==="pyramid";this.updateDisplayed(this.reverseToggle,e)}updateDirectionSelect(){const e=ZZt(this.chartMenuContext.chartController.getChartType());this.updateDisplayed(this.directionSelect,e)}createGroupTypeSelect(){const{chartController:e,chartMenuParamsFactory:t}=this.chartMenuContext;return this.groupTypeSelect=this.createManagedBean(new l1(t.getDefaultSelectParamsWithoutValueParams("seriesGroupType",GZt.map(n=>({value:n,text:this.chartTranslation.translate(`${n}SeriesGroupType`)})),e.getSeriesGroupType(),n=>e.setSeriesGroupType(n)))),this.updateGroupTypeSelect(),this.groupTypeSelect}updateGroupTypeSelect(){const e=["radialColumn","radialBar","nightingale"].includes(this.chartMenuContext.chartController.getChartType());this.updateDisplayed(this.groupTypeSelect,e)}updateDisplayed(e,t){e?.setDisplayed(t),e&&(this.hasContent=this.hasContent||t)}},Aen=class extends Gt{constructor(e,t,n){super('<div id="seriesChartTypeGroup"></div>'),this.chartController=e,this.columns=t,this.isOpen=n,this.selectedColIds=[],this.chartTypeComps=new Map,this.secondaryAxisComps=new Map}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){this.createSeriesChartTypeGroup(this.columns)}refresh(e){yd(this.getValidColIds(e),this.selectedColIds)?this.refreshComps():this.recreate(e)}recreate(e){this.isOpen=this.seriesChartTypeGroupComp.isExpanded(),Xi(this.getGui()),this.destroyBean(this.seriesChartTypeGroupComp),this.columns=e,this.selectedColIds=[],this.clearComps(),this.postConstruct()}getValidColIds(e){const t=this.chartController.getSeriesChartTypes();return e.filter(n=>n.selected&&!!t.filter(r=>r.colId===n.colId)[0]).map(({colId:n})=>n)}createSeriesChartTypeGroup(e){this.seriesChartTypeGroupComp=this.createBean(new Gy({title:this.chartTranslation.translate("seriesChartType"),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen}));const t=this.chartController.getSeriesChartTypes();e.forEach(n=>{if(!n.selected)return;const r=t.filter(c=>c.colId===n.colId)[0];if(!r)return;this.selectedColIds.push(n.colId);const i=this.seriesChartTypeGroupComp.createManagedBean(new Gy({title:n.displayName,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!0,cssIdentifier:"charts-format-sub-level"})),o=c=>["groupedColumn","stackedColumn","stackedArea"].includes(c),a=this.seriesChartTypeGroupComp.createManagedBean(new g3({label:this.chartTranslation.translate("secondaryAxis"),labelWidth:"flex",disabled:o(r.chartType),value:!!r.secondaryAxis,onValueChange:c=>this.chartController.updateSeriesChartType(n.colId,void 0,c)}));i.addItem(a);const s=["line","area","stackedArea","groupedColumn","stackedColumn"].map(c=>({value:c,text:this.chartTranslation.translate(Zye(c))})),l=i.createManagedBean(new l1({options:s,value:r.chartType,onValueChange:c=>this.chartController.updateSeriesChartType(n.colId,c)}));i.addItem(l),this.seriesChartTypeGroupComp.addItem(i),this.chartTypeComps.set(n.colId,l),this.secondaryAxisComps.set(n.colId,a)}),this.getGui().appendChild(this.seriesChartTypeGroupComp.getGui())}refreshComps(){const e=this.chartController.getSeriesChartTypes();this.selectedColIds.forEach(t=>{const n=e.find(o=>o.colId===t);if(!n)return;const r=this.chartTypeComps.get(t),i=this.secondaryAxisComps.get(t);r?.setValue(n.chartType),i?.setValue(!!n.secondaryAxis),i?.setDisabled(this.isSecondaryAxisDisabled(n.chartType))})}clearComps(){this.chartTypeComps.clear(),this.secondaryAxisComps.clear()}isSecondaryAxisDisabled(e){return["groupedColumn","stackedColumn","stackedArea"].includes(e)}destroy(){this.clearComps(),this.seriesChartTypeGroupComp=this.destroyBean(this.seriesChartTypeGroupComp),super.destroy()}},Oen=class extends Hit{constructor(e,t,n,r,i,o,a){super(e,r,i,'<div id="seriesGroup"></div>'),this.chartOptionsService=t,this.title=n,this.valueCols=o,this.isOpen=a}postConstruct(){if(this.groupComp=this.createBean(new Gy({title:this.title,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen})),this.chartController.isActiveXYChart()){const e=this.groupComp.createManagedBean(new m3({label:this.chartTranslation.translate("paired"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:this.chartOptionsService.getPairedMode(),onValueChange:t=>{this.chartOptionsService.setPairedMode(!!t),this.chartController.updateForGridChange({maintainColState:!0})}}));this.groupComp.addItem(e)}this.createGroup(this.valueCols,this.generateGetSeriesLabel(this.valueCols),"seriesAdd","seriesSelect"),this.getGui().appendChild(this.groupComp.getGui())}refresh(e){this.valuePillSelect?.setValueFormatter(this.generateGetSeriesLabel(e)),this.valuePillSelect?.setValues(e,e.filter(t=>t.selected)),this.refreshValueSelect(e)}generateGetSeriesLabel(e){if(!this.chartController.isActiveXYChart())return o=>o.displayName??"";const t=e.filter(o=>o.selected),n=this.chartController.getChartType()==="bubble",r=this.chartOptionsService.getPairedMode(),i=new Map;return i.set(0,"X"),i.set(1,"Y"),i.set(2,"size"),o=>{const a=o.displayName??"";if(!o.selected)return a;const s=t.indexOf(o);if(s===-1)return a;let l;return r?l=i.get(s%(n?3:2)):s===0?l="X":l=n&&s%2===0?"size":"Y",`${a} (${l})`}}destroy(){this.groupComp=this.destroyBean(this.groupComp),super.destroy()}},zen={groups:[{type:"categories",isOpen:!0},{type:"series",isOpen:!0},{type:"seriesChartType",isOpen:!0},{type:"chartSpecific",isOpen:!0}]},Ten=class extends Gt{constructor(e){super('<div class="ag-chart-data-wrapper ag-scrollable-container"></div>'),this.chartMenuContext=e,this.isSwitchCategorySeriesToggled=!1,this.restoreSwitchCategorySeriesToggleFocus=!1,this.panels=[],this.chartController=e.chartController}wireBeans(e){this.chartTranslation=e.chartTranslation,this.chartSvc=e.chartSvc}postConstruct(){this.createSwitchCategorySeriesToggle(),this.isSwitchCategorySeriesToggled=this.chartController.isCategorySeriesSwitched(),this.updatePanels();const e=this.updatePanels.bind(this);this.addManagedListeners(this.chartController,{chartModelUpdate:e,chartApiUpdate:e})}destroy(){this.clearPanelComponents(),super.destroy()}updatePanels(){const e=this.chartType,t=this.isSwitchCategorySeriesToggled,{dimensionCols:n,valueCols:r}=this.chartController.getColStateForMenu();this.chartType=this.chartController.getChartType(),this.isSwitchCategorySeriesToggled=this.chartController.isCategorySeriesSwitched();const i=this.isSwitchCategorySeriesToggled!==t;this.canRefresh(e,this.chartType)&&!i?(this.categoriesDataPanel?.refresh(n),this.seriesDataPanel?.refresh(r),this.seriesChartTypePanel?.refresh(r),this.chartSpecificPanel?.refresh()):this.recreatePanels(n,r);const o=Rit(this.chartType)&&this.chartSvc.isEnterprise()&&!this.chartController.isGrouping();Nn(this.switchCategorySeriesToggle.getGui(),o),i&&this.switchCategorySeriesToggle?.setValue(this.chartController.isCategorySeriesSwitched()),this.restoreSwitchCategorySeriesToggleFocus&&(this.restoreSwitchCategorySeriesToggleFocus=!1,o&&this.switchCategorySeriesToggle.getFocusableElement().focus())}canRefresh(e,t){if(e===void 0)return!1;if(e===t)return!0;const n=r=>["columnLineCombo","areaColumnCombo","customCombo"].includes(r);return!!(n(e)&&n(t))}recreatePanels(e,t){this.clearPanelComponents();const{chartType:n}=this;if(!n)return;const r=this.chartController.isCategorySeriesSwitched();this.getDataPanelDef().groups?.forEach(({type:i,isOpen:o})=>{i===(r?"series":"categories")?(this.categoriesDataPanel=this.createBean(new wen(this.chartController,this.getCategoryGroupTitle(r),this.getCategoryGroupMultipleSelect(n,r),e,o)),this.panels.push(this.categoriesDataPanel)):i===(r?"categories":"series")?(this.seriesDataPanel=this.createBean(new Oen(this.chartController,this.chartMenuContext.chartOptionsService,this.getSeriesGroupTitle(r),this.getSeriesGroupMultipleSelect(n,r),this.getSeriesGroupMaxSelection(n,r),t,o)),this.panels.push(this.seriesDataPanel)):i==="seriesChartType"?this.chartController.isComboChart()&&(this.seriesChartTypePanel=this.createBean(new Aen(this.chartController,t,o)),this.panels.push(this.seriesChartTypePanel)):i==="chartSpecific"?(this.chartSpecificPanel=this.createBean(new Sen(this.chartMenuContext,o)),this.panels.push(this.chartSpecificPanel)):ut(144,{type:i})}),(r?this.categoriesDataPanel:this.seriesDataPanel)?.addItem(this.switchCategorySeriesToggle.getGui()),this.addPanelComponents()}addPanelComponents(){if(!this.panels.length)return;const t=bl(this.beans).createDocumentFragment();for(const n of this.panels)n.addCss("ag-chart-data-section"),t.appendChild(n.getGui());this.getGui().appendChild(t)}clearPanelComponents(){const e=this.getGui();this.panels.forEach(t=>{e.removeChild(t.getGui()),this.destroyBean(t)}),this.panels=[]}getDataPanelDef(){return this.gos.get("chartToolPanelsDef")?.dataPanel??zen}getCategoryGroupTitle(e){return e?this.chartTranslation.translate("seriesLabels"):this.chartTranslation.translate(this.chartController.isActiveXYChart()?"labels":"categories")}getCategoryGroupMultipleSelect(e,t){return t?!1:khe(e)!==1}getSeriesGroupTitle(e){return e?this.chartTranslation.translate("categoryValues"):this.chartTranslation.translate(this.chartController.isActiveXYChart()?"xyValues":"series")}getSeriesGroupMultipleSelect(e,t){return this.getSeriesGroupMaxSelection(e,t)!==1}getSeriesGroupMaxSelection(e,t){if(!t)return q$(e)}createSwitchCategorySeriesToggle(){this.switchCategorySeriesToggle=this.createManagedBean(new m3({label:this.chartTranslation.translate("switchCategorySeries"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:this.chartController.isCategorySeriesSwitched(),onValueChange:e=>{this.restoreSwitchCategorySeriesToggleFocus=!0,this.chartController.switchCategorySeries(e)}}))}},Een=class extends zye{constructor(e){super(e,`<div class="ag-angle-select">
            <div data-ref="eLabel"></div>
            <div class="ag-wrapper ag-angle-select-wrapper">
                <div class="ag-angle-select-field">
                    <div data-ref="eParentCircle" class="ag-angle-select-parent-circle">
                        <div data-ref="eChildCircle" class="ag-angle-select-child-circle"></div>
                    </div>
                </div>
                <ag-input-number-field data-ref="eAngleValue"></ag-input-number-field>
            </div>
        </div>`,[zK]),this.eLabel=at,this.eParentCircle=at,this.eChildCircle=at,this.eAngleValue=at,this.radius=0,this.offsetX=0,this.offsetY=0}wireBeans(e){this.dragSvc=e.dragSvc}postConstruct(){super.postConstruct();const{value:e,onValueChange:t}=this.config;e!=null&&this.setValue(e,void 0,!0),t!=null&&this.onValueChange(t),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:()=>{this.parentCircleRect=this.eParentCircle.getBoundingClientRect()},onDragging:n=>this.calculateAngleDrag(n),onDragStop:()=>{}},this.dragSvc?.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(`${this.degrees}`).onValueChange(n=>{(n==null||n==="")&&(n="0"),n=this.eAngleValue.normalizeValue(n);let r=parseFloat(n);r>180&&(r=r-360),this.setValue(r)}),this.updateNumberInput(),Ut(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListeners(this,{fieldValueChanged:()=>{this.eAngleValue.getInputElement().contains(Gi(this.beans))||this.updateNumberInput()}})}updateNumberInput(){const e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())}positionChildCircle(e){const t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,r=t.width/2,i=t.height/2;n.style.left=`${r+Math.cos(e)*8}px`,n.style.top=`${i+Math.sin(e)*8}px`}calculatePolar(){const e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)}calculateCartesian(){const e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)}setOffsetX(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this}setOffsetY(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this}calculateAngleDrag(e){const t=this.parentCircleRect,n=t.width/2,r=t.height/2,i=e.clientX-t.left,o=e.clientY-t.top,a=i-n,s=o-r,l=Math.atan2(s,a);this.setValue(l,!0)}toDegrees(e){return e/Math.PI*180}toRadians(e){return e/180*Math.PI}normalizeNegativeValue(e){return e<0?360+e:e}normalizeAngle180(e){return e%=Math.PI*2,e<-Math.PI?e+=Math.PI*2:e>=Math.PI&&(e-=Math.PI*2),e}getRadius(){return this.radius}setRadius(e){return this.radius===e?this:(this.radius=e,this.calculateCartesian(),this)}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>{e(this.degrees)}}),this}getValue(e){return e?this.toRadians(this.degrees):this.degrees}setValue(e,t,n){let r;return t?r=e:r=this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(r),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(r),n||this.dispatchLocalEvent({type:"fieldValueChanged"})),this}setWidth(e){return am(this.getGui(),e),this}setDisabled(e){return super.setDisabled(e),this.eAngleValue.setDisabled(e),this}destroy(){this.dragSvc?.removeDragSource(this.dragListener),super.destroy()}};function Ren(e){return e[0].toUpperCase()+e.substring(1).toLowerCase()}var zx=class extends Gt{constructor(e){super(),this.params=e,this.fontGroup=at,this.activeComps=[],this.chartOptions=e.chartMenuParamsFactory.getChartOptions()}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{cssIdentifier:e="charts-format-sub-level",name:t,enabled:n,onEnableChange:r,suppressEnabledCheckbox:i,chartMenuParamsFactory:o,keyMapper:a}=this.params,s={cssIdentifier:e,direction:"vertical",suppressOpenCloseIcons:!0,title:t,enabled:n,suppressEnabledCheckbox:!0,onEnableChange:l=>{r&&r(l)},useToggle:!i};this.setTemplate(`<div class="ag-font-panel">
        <ag-group-component data-ref="fontGroup">
            <ag-select data-ref="familySelect"></ag-select>
            <ag-select data-ref="weightStyleSelect"></ag-select>
            <div class="ag-charts-font-size-color">
                <ag-select data-ref="sizeSelect"></ag-select>
                <ag-color-picker data-ref="colorPicker"></ag-color-picker>
            </div>
        </ag-group-component>
    </div>`,[Ks,v6,Gb],{fontGroup:s,familySelect:this.getFamilySelectParams(),weightStyleSelect:this.getWeightStyleSelectParams(),sizeSelect:this.getSizeSelectParams(),colorPicker:o.getDefaultColorPickerParams(a("color"))}),this.toggleCss("ag-font-panel-no-header",!t)}addItem(e,t){t?this.fontGroup.prependItem(e):this.fontGroup.addItem(e),this.activeComps.push(e)}setEnabled(e){this.fontGroup.setEnabled(e)}getFamilySelectParams(){const e=["Arial, sans-serif","Aria Black, sans-serif","Book Antiqua,  serif","Charcoal, sans-serif","Comic Sans MS, cursive","Courier, monospace","Courier New, monospace","Gadget, sans-serif","Geneva, sans-serif","Helvetica, sans-serif","Impact, sans-serif","Lucida Console, monospace","Lucida Grande, sans-serif","Lucida Sans Unicode,  sans-serif","Monaco, monospace","Palatino Linotype, serif","Palatino, serif","Times New Roman, serif","Times, serif","Verdana, sans-serif"],t=this.getInitialFontValue("fontFamily");let n=e[0];if(t){const o=e.map(a=>a.toLowerCase()).indexOf(t.toLowerCase());if(o>=0)n=e[o];else{const a=Ren(t);e.push(a),n=a}}const r=e.sort().map(i=>({value:i,text:i}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("font",r,`${n}`,i=>this.setFont({fontFamily:i}))}getSizeSelectParams(){const e=[8,10,12,14,16,18,20,22,24,26,28,30,32,34,36],t=this.getInitialFontValue("fontSize");e.includes(t)||e.push(t);const n=e.sort((r,i)=>r-i).map(r=>({value:`${r}`,text:`${r}`}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("size",n,`${t}`,r=>this.setFont({fontSize:parseInt(r,10)}))}getWeightStyleSelectParams(){const e=this.getInitialFontValue("fontWeight")??"normal",t=this.getInitialFontValue("fontStyle")??"normal",n=[{name:"normal",weight:"normal",style:"normal"},{name:"bold",weight:"bold",style:"normal"},{name:"italic",weight:"normal",style:"italic"},{name:"boldItalic",weight:"bold",style:"italic"}];let r=n.find(o=>o.weight===e&&o.style===t);r||(r={name:"predefined",weight:e,style:t},n.unshift(r));const i=n.map(o=>({value:o.name,text:this.chartTranslation.translate(o.name)}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("weight",i,r.name,o=>{const a=n.find(s=>s.name===o);this.setFont({fontWeight:a.weight,fontStyle:a.style})})}destroyActiveComps(){this.activeComps.forEach(e=>{Rs(e.getGui()),this.destroyBean(e)})}destroy(){this.destroyActiveComps(),super.destroy()}setFont(e){const{keyMapper:t}=this.params;for(const n of Object.keys(e)){const r=e[n];r&&this.chartOptions.setValue(t(n),r)}}getInitialFontValue(e){const{keyMapper:t}=this.params;return this.chartOptions.getValue(t(e))}},Ien=class extends Gt{constructor(e){super(),this.chartMenuUtils=e,this.axisTicksSizeSlider=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{chartMenuUtils:e}=this,t=e.addEnableParams("tick.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("ticks"),suppressEnabledCheckbox:!0,useToggle:!0}),n=e.getDefaultColorPickerParams("tick.stroke"),r=e.getDefaultSliderParams("tick.width","width",10),i=e.getDefaultSliderParams("tick.size","length",30);this.setTemplate(`<div>
            <ag-group-component data-ref="axisTicksGroup">
                <ag-color-picker data-ref="axisTicksColorPicker"></ag-color-picker>
                <ag-slider data-ref="axisTicksWidthSlider"></ag-slider>
                <ag-slider data-ref="axisTicksSizeSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,Gb,yp],{axisTicksGroup:t,axisTicksColorPicker:n,axisTicksWidthSlider:r,axisTicksSizeSlider:i})}setTickSizeSliderDisplayed(e){this.axisTicksSizeSlider.setDisplayed(e)}},Pen=class extends Gt{constructor(e){super(),this.chartMenuUtils=e,this.chartOptions=e.getChartOptions()}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuUtils.addEnableParams("gridLine.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("gridLines"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.getGridLineColorPickerParams("color"),n=this.getGridLineWidthSliderParams("thickness"),r=this.getGridLineDashSliderParams("lineDash");this.setTemplate(`<div>
            <ag-group-component data-ref="gridLineGroup">
                <ag-color-picker data-ref="gridLineColorPicker"></ag-color-picker>
                <ag-slider data-ref="gridLineWidthSlider"></ag-slider>
                <ag-slider data-ref="gridLineLineDashSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,Gb,yp],{gridLineGroup:e,gridLineColorPicker:t,gridLineWidthSlider:n,gridLineLineDashSlider:r})}getGridLineColorPickerParams(e){return this.chartMenuUtils.getDefaultColorPickerParams("gridLine.style",e,{formatInputValue:t=>t?.[0]?.stroke,parseInputValue:t=>{const n=this.chartOptions.getValue("gridLine.style")??[];return n.length===0?[{stroke:t,lineDash:[]}]:[{...n[0],stroke:t}]}})}getGridLineWidthSliderParams(e){return this.chartMenuUtils.getDefaultSliderParams("gridLine.width",e,10)}getGridLineDashSliderParams(e){const n=this.chartOptions.getValue("gridLine.style")?.[0]?.lineDash?.[0],r=this.chartMenuUtils.getDefaultSliderParamsWithoutValueParams(n??0,e,30);return r.onValueChange=i=>{const o=this.chartOptions.getValue("gridLine.style.0.stroke");this.chartOptions.setValue("gridLine.style",[{lineDash:[i],stroke:o}])},r}},Den="%d %B %Y",e8=class extends Gt{constructor(e,t){super(),this.axisType=e,this.options=t,this.axisGroup=at,this.axisTypeSelect=at,this.axisPositionSelect=at,this.axisTimeFormatSelect=at,this.activePanels=[],this.updateFuncs=[];const{chartOptionsService:n,seriesType:r,chartController:i}=t;this.chartOptionsService=n,this.chartController=i,this.chartOptionsSeriesProxy=n.getSeriesOptionsProxy(()=>r)}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{isExpandedOnInit:e,chartOptionsService:t,registerGroupComponent:n}=this.options,r=this.axisType,i={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate(r),expanded:e,suppressEnabledCheckbox:!0},o=t.getCartesianAxisOptionsProxy(this.axisType),a=this.createManagedBean(new Az(o)),s=this.createManagedBean(new Az(t.getCartesianAxisThemeOverridesProxy(this.axisType))),l=this.getAxisTypeSelectParams(a,t.getCartesianAxisAppliedThemeOverridesProxy(this.axisType)),c=this.getAxisPositionSelectParams(a),u=this.getAxisTimeFormatSelectParams(a),d=this.getAxisColorInputParams(s),p=this.getAxisLineWidthSliderParams(s);this.setTemplate(`<div>
            <ag-group-component data-ref="axisGroup">
                <ag-select data-ref="axisTypeSelect"></ag-select>
                <ag-select data-ref="axisTimeFormatSelect"></ag-select>
                <ag-select data-ref="axisPositionSelect"></ag-select>
                <ag-color-picker data-ref="axisColorInput"></ag-color-picker>
                <ag-slider data-ref="axisLineWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,v6,Gb,yp],{axisGroup:i,axisTypeSelect:l??void 0,axisPositionSelect:c??void 0,axisTimeFormatSelect:u??void 0,axisColorInput:d,axisLineWidthSlider:p}),n(this.axisGroup),this.axisTypeSelect.setDisplayed(!!l.options?.length),c||this.removeTemplateComponent(this.axisPositionSelect);const h=()=>{const m=o.getValue("type")==="time";Nn(this.axisTimeFormatSelect.getGui(),m)};u?(h(),this.addManagedEventListeners({chartOptionsChanged:()=>{h()}})):this.removeTemplateComponent(this.axisTimeFormatSelect),this.initGridLines(s),this.initAxisTicks(s),this.initAxisLabels(s);const g=()=>this.updateFuncs.forEach(m=>m());this.addManagedListeners(this.chartController,{chartUpdated:g,chartModelUpdate:()=>setTimeout(()=>{this.isAlive()&&(this.refreshAxisTypeSelect(a),h())})})}getAxisTypeSelectParams(e,t){const n=e.getChartOptions(),r=this.getAxisTypeSelectOptions(),i=e.getDefaultSelectParams("type","axisType",r);return i.onValueChange=o=>{const a=n.getValue("type");if(o===a)return;const s=t.getValue("*"),l=a==="time",c=o==="time",u=l!==c?c?Den:void 0:null;if(this.chartOptionsService.setCartesianCategoryAxisType(this.axisType,o),u!==null){const d=n.getValue("label")??{};n.setValue("label",{...d,format:u})}t.setValue("*",s)},i}refreshAxisTypeSelect(e){const t=this.getAxisTypeSelectOptions(),n=!!t.length;this.axisTypeSelect.setDisplayed(n),n&&this.axisTypeSelect.clearOptions().addOptions(t).setValue(e.getChartOptions().getValue("type"))}getAxisTypeSelectOptions(){const e=this.chartController,t=e.getChartType(),n=()=>{const r=e.getChartData()[0];return r?e.getSelectedDimensions().every(i=>!isNaN(parseFloat(r[i.colId]))):!1};return["heatmap","histogram","boxPlot","rangeBar","scatter","bubble"].includes(t)||e.isGrouping()||!this.isCategoryAxis()||e.isCategorySeriesSwitched()||!n()?[]:["category","number","time"].map(r=>({value:r,text:this.translate(r)}))}isCategoryAxis(){const e=this.chartOptionsSeriesProxy.getValue("direction")==="horizontal";return e&&this.axisType==="yAxis"||!e&&this.axisType==="xAxis"}getAxisPositionSelectParams(e){const t=((n,r)=>{switch(n){case"heatmap":return null;default:switch(r){case"xAxis":return[{value:"top",text:this.translate("top")},{value:"bottom",text:this.translate("bottom")}];case"yAxis":return[{value:"left",text:this.translate("left")},{value:"right",text:this.translate("right")}]}}})(this.chartController.getChartType(),this.axisType);return t?e.getDefaultSelectParams("position","position",t):null}getAxisTimeFormatSelectParams(e){if(!this.isCategoryAxis())return null;const t=[{value:"%d/%m/%Y",text:this.translate("timeFormatSlashesDDMMYYYY")},{value:"%m/%d/%Y",text:this.translate("timeFormatSlashesMMDDYYYY")},{value:"%d/%m/%y",text:this.translate("timeFormatSlashesDDMMYY")},{value:"%m/%d/%y",text:this.translate("timeFormatSlashesMMDDYY")},{value:"%d.%e.%y",text:this.translate("timeFormatDotsDDMYY")},{value:"%e.%d.%y",text:this.translate("timeFormatDotsMDDYY")},{value:"%Y-%m-%d",text:this.translate("timeFormatDashesYYYYMMDD")},{value:"%d %B %Y",text:this.translate("timeFormatSpacesDDMMMMYYYY")},{value:"%H:%M:%S",text:this.translate("timeFormatHHMMSS")},{value:"%I:%M:%S %p",text:this.translate("timeFormatHHMMSSAmPm")}];return e.getDefaultSelectParams("label.format","timeFormat",t)}getAxisColorInputParams(e){return e.getDefaultColorPickerParams("line.stroke")}getAxisLineWidthSliderParams(e){const t=e.getChartOptions(),n=()=>t.getValue("line.enabled")?t.getValue("line.width"):null,r=o=>{t.setValues([{expression:"line.enabled",value:o!=null},{expression:"line.width",value:o??0}])},i=e.getDefaultSliderParamsWithoutValueParams(n()??0,"thickness",10);return i.onValueChange=o=>{r(o===0?null:o)},i}initGridLines(e){if(this.chartController.getChartType()==="heatmap")return;const n=this.createBean(new Pen(e));this.axisGroup.addItem(n),this.activePanels.push(n)}initAxisTicks(e){if(!this.hasConfigurableAxisTicks())return;const t=this.createBean(new Ien(e));this.axisGroup.addItem(t),this.activePanels.push(t);const n=()=>t.setTickSizeSliderDisplayed(this.isGroupedCategoryAxis());this.updateFuncs.push(n),n()}hasConfigurableAxisTicks(){switch(this.chartController.getChartType()){case"radarLine":case"radarArea":case"rangeBar":case"boxPlot":case"waterfall":return!1;default:return!0}}initAxisLabels(e){const t={name:this.translate("labels"),enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:e,keyMapper:r=>`label.${r}`},n=this.createBean(new zx(t));this.axisGroup.addItem(n),this.activePanels.push(n),this.addAdditionalLabelComps(n,e)}addAdditionalLabelComps(e,t){this.addLabelPadding(e,t);const n=this.createRotationWidget("labelRotation",t),r=this.initLabelRotation(n,t);e.addItem(r),e.addItem(n)}initLabelRotation(e,t){const n=t.getChartOptions(),r=()=>n.getValue("label.rotation"),i=()=>n.getValue("label.autoRotate"),o=u=>{u&&(this.prevRotation=r()),n.setValues([{expression:"label.autoRotate",value:u},{expression:"label.rotation",value:u?void 0:this.prevRotation}]),e.setDisplayed(!u)},s=typeof r()=="number"?!1:i(),l=this.createBean(new g3({label:this.translate("autoRotate"),value:s,onValueChange:o}));e.setDisplayed(!s);const c=()=>l.setDisplayed(this.isGroupedCategoryAxis());return this.updateFuncs.push(c),c(),l}createRotationWidget(e,t){const n=t.getChartOptions(),r=()=>n.getValue("label.rotation"),i=l=>n.setValue("label.rotation",l),a=`${this.chartTranslation.translate(e)} °`,s=new Een({label:a,labelWidth:"flex",value:r()??0,onValueChange:i});return this.updateFuncs.push(()=>{s.setValue(r()??0)}),this.createBean(s)}isGroupedCategoryAxis(){return this.chartOptionsService.getCartesianAxisOptionsProxy(this.axisType).getValue("type")==="grouped-category"?!this.isCategoryAxis():!0}addLabelPadding(e,t){const n=this.createBean(new jp(t.getDefaultSliderParams("label.spacing","padding",30)));e.addItem(n)}translate(e){return this.chartTranslation.translate(e)}removeTemplateComponent(e){Rs(e.getGui()),this.destroyBean(e)}destroyActivePanels(){this.activePanels.forEach(e=>{Rs(e.getGui()),this.destroyBean(e)})}destroy(){this.destroyActivePanels(),super.destroy()}},ken=class extends Gt{constructor(e){super(),this.options=e,this.axisGroup=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{isExpandedOnInit:e,chartAxisMenuParamsFactory:t,registerGroupComponent:n}=this.options,r={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate("polarAxis"),expanded:e,suppressEnabledCheckbox:!0},i=t.getDefaultColorPickerParams("line.stroke"),o=t.getDefaultSliderParams("line.width","thickness",10);this.setTemplate(`<div>
            <ag-group-component data-ref="axisGroup">
                <ag-color-picker data-ref="axisColorInput"></ag-color-picker>
                <ag-slider data-ref="axisLineWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,Gb,yp],{axisGroup:r,axisColorInput:i,axisLineWidthSlider:o}),n(this.axisGroup),this.initAxis(),this.initAxisLabels(),this.initRadiusAxis()}initAxis(){const e=this.options.chartController.getChartType();if(["radarLine","radarArea"].includes(e)){const n=[{value:"circle",text:this.translate("circle")},{value:"polygon",text:this.translate("polygon")}];this.axisGroup.addItem(this.createSelect({labelKey:"shape",options:n,property:"shape"}))}e!=="pie"&&this.axisGroup.addItem(this.createSlider({labelKey:"innerRadius",defaultMaxValue:1,property:"innerRadiusRatio"}))}initAxisLabels(){const e={name:this.translate("labels"),enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:this.options.chartAxisMenuParamsFactory,keyMapper:r=>`label.${r}`},t=this.createManagedBean(new zx(e)),n=this.createOrientationWidget();t.addItem(n),this.axisGroup.addItem(t)}createOrientationWidget(){const e=[{value:"fixed",text:this.translate("fixed")},{value:"parallel",text:this.translate("parallel")},{value:"perpendicular",text:this.translate("perpendicular")}];return this.createSelect({labelKey:"orientation",options:e,property:"label.orientation"})}initRadiusAxis(){const e=Us(this.options.chartController.getChartType());if(!KZt(e))return;const t=[this.createSlider({labelKey:"groupPadding",defaultMaxValue:1,property:"paddingInner"}),this.createSlider({labelKey:"seriesPadding",defaultMaxValue:1,property:"groupPaddingInner"})],n=this.createManagedBean(new Gy({cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,enabled:!0,suppressEnabledCheckbox:!0,title:this.translate("padding"),items:t})).hideEnabledCheckbox(!0).hideOpenCloseIcons(!0);this.axisGroup.addItem(n)}createSlider(e){const{labelKey:t,defaultMaxValue:n,step:r=.05,property:i}=e,o=this.options.chartAxisMenuParamsFactory.getDefaultSliderParams(i,t,n);return o.step=r,this.createManagedBean(new jp(o))}createSelect(e){const{labelKey:t,options:n,property:r}=e;return this.createManagedBean(new l1(this.options.chartAxisMenuParamsFactory.getDefaultSelectParams(r,t,n)))}translate(e){return this.chartTranslation.translate(e)}},Len=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuUtils.addEnableParams("background.visible",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("background"),suppressEnabledCheckbox:!0,useToggle:!0}),t=this.chartMenuUtils.getDefaultColorPickerParams("background.fill");this.setTemplate(`<div>
            <ag-group-component data-ref="chartBackgroundGroup">
                <ag-color-picker data-ref="colorPicker"></ag-color-picker>
            </ag-group-component>
        <div>`,[Ks,Gb],{chartBackgroundGroup:e,colorPicker:t})}},_en=class extends Gt{constructor(e,t){super(),this.chartMenuUtils=e,this.chartController=t,this.paddingTopSlider=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("padding"),suppressEnabledCheckbox:!0},t=n=>this.chartMenuUtils.getDefaultSliderParams("padding."+n,n,200);this.setTemplate(`<div>
            <ag-group-component data-ref="chartPaddingGroup">
                <ag-slider data-ref="paddingTopSlider"></ag-slider>
                <ag-slider data-ref="paddingRightSlider"></ag-slider>
                <ag-slider data-ref="paddingBottomSlider"></ag-slider>
                <ag-slider data-ref="paddingLeftSlider"></ag-slider>
            </ag-group-component>
        <div>`,[Ks,yp],{chartPaddingGroup:e,paddingTopSlider:t("top"),paddingRightSlider:t("right"),paddingBottomSlider:t("bottom"),paddingLeftSlider:t("left")}),this.addManagedEventListeners({chartOptionsChanged:n=>{this.updateTopPadding(n.chartOptions)}})}updateTopPadding(e){const t=[...this.chartController.getChartSeriesTypes(),"common"].map(n=>e?.[n]?.padding?.top).find(n=>n!=null);t!=null&&this.paddingTopSlider.setValue(`${t}`)}},Nen=class extends Gt{constructor(e){super(),this.options=e,this.chartGroup=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{chartController:e,chartMenuParamsFactory:t,isExpandedOnInit:n,registerGroupComponent:r}=this.options,i={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("chartStyle"),expanded:n,suppressEnabledCheckbox:!0,items:[this.createManagedBean(new _en(t,e)),this.createManagedBean(new Len(t))]};this.setTemplate(`<div>
            <ag-group-component data-ref="chartGroup"></ag-group-component>
        </div>`,[Ks],{chartGroup:i}),r(this.chartGroup)}},Fen=class extends dt{constructor(e){super(),this.groupContainer=e,this.id=0,this.groupComponents=new Map}addGroupComponent(e){const t=this.id++;this.groupComponents.set(t,e),e.isExpanded()&&(this.expandedGroupComponent=t),e.onExpandedChange(n=>{if(n){const r=this.expandedGroupComponent;if(this.expandedGroupComponent=t,r!=null){const i=e.getGui(),o=i.offsetTop-this.groupContainer.parentElement.scrollTop;this.groupComponents.get(r)?.toggleGroupExpand(!1,!0);let a=i.offsetTop-o;a<0&&(a=0),a!==this.groupContainer.parentElement.scrollTop&&(this.groupContainer.parentElement.scrollTop=a)}}else this.expandedGroupComponent=void 0})}destroy(){this.groupComponents.clear(),super.destroy()}},Wen=class extends Gt{constructor(e,t){super(),this.options=e,this.chartMenuContext=t,this.legendGroup=at,this.enabledGroup=at,this.isGradient=["treemap","sunburst","heatmap"].includes(e.seriesType),this.key=this.isGradient?"gradientLegend":"legend",this.chartController=t.chartController}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{chartMenuParamsFactory:e,isExpandedOnInit:t,registerGroupComponent:n}=this.options,r=this.createManagedBean(new l1(e.getDefaultSelectParams(`${this.key}.position`,"position",["top","right","bottom","left"].map(a=>({value:a,text:this.chartTranslation.translate(a)})))));this.enabledGroup=this.createManagedBean(new Gy(e.addEnableParams(`${this.key}.enabled`,{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("legendEnabled"),suppressEnabledCheckbox:!0,useToggle:!0,items:[this.createLabelPanel(e),r,...this.getItems(e)]})));const i={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("legend"),suppressEnabledCheckbox:!0,expanded:t,items:[this.enabledGroup]};this.setTemplate(`<div>
            <ag-group-component data-ref="legendGroup">
            </ag-group-component>
        </div>`,[Ks],{legendGroup:i}),n(this.legendGroup);const o=this.updateLegendEnabledState.bind(this);this.addManagedListeners(this.chartController,{chartModelUpdate:o,chartApiUpdate:o})}updateLegendEnabledState(){const{valueCols:e}=this.chartController.getColStateForMenu();this.enabledGroup.setEnabled(e.filter(t=>t.selected).length>1)}getItems(e){const t=(n,r,i)=>this.createManagedBean(new jp(e.getDefaultSliderParams(`${this.key}.${n}`,r,i)));return this.isGradient?[this.createManagedBean(new g3(e.addValueParams("gradientLegend.reverseOrder",{label:this.chartTranslation.translate("reverseDirection"),labelWidth:"flex"}))),t("gradient.thickness","thickness",40),t("gradient.preferredLength","preferredLength",300),t("spacing","spacing",200)]:[t("spacing","spacing",200),t("item.marker.size","markerSize",40),t("item.marker.strokeWidth","markerStroke",10),t("item.marker.padding","itemSpacing",20),t("item.paddingX","layoutHorizontalSpacing",50),t("item.paddingY","layoutVerticalSpacing",50)]}createLabelPanel(e){const t=this.isGradient?"gradientLegend.scale.label":"legend.item.label",n={enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:e,keyMapper:r=>`${t}.${r}`,cssIdentifier:"charts-format-sub-level-no-header"};return this.createManagedBean(new zx(n))}},qen=class extends Gt{constructor(e){super(),this.params=e,this.toggleableGroup=at,this.activeComps=[],this.chartOptions=e.chartMenuParamsFactory.getChartOptions()}postConstruct(){const{tag:e,cssIdentifier:t="charts-format-sub-level",title:n,suppressEnabledCheckbox:r}=this.params,i=this.params.chartMenuParamsFactory.addEnableParams(`${e}.enabled`,{cssIdentifier:t,direction:"vertical",suppressOpenCloseIcons:!0,title:n,suppressEnabledCheckbox:!0,useToggle:!r});this.setTemplate(`<div class="ag-toggleable-group-panel">
                <ag-group-component data-ref="toggleableGroup">
                </ag-group-component>
            </div>`,[Ks],{toggleableGroup:i}),this.toggleCss("ag-toggleable-group-panel-no-header",!n)}addItem(e,t){t?this.toggleableGroup.prependItem(e):this.toggleableGroup.addItem(e),this.activeComps.push(e)}setEnabled(e){this.toggleableGroup.setEnabled(e)}destroyActiveComps(){this.activeComps.forEach(e=>{Rs(e.getGui()),this.destroyBean(e)})}destroy(){this.destroyActiveComps(),super.destroy()}},Ben=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("callout"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="calloutGroup">
                <ag-slider data-ref="calloutLengthSlider"></ag-slider>
                <ag-slider data-ref="calloutStrokeWidthSlider"></ag-slider>
                <ag-slider data-ref="labelOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,yp],{calloutGroup:e,calloutLengthSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLine.length","length",40),calloutStrokeWidthSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLine.strokeWidth","strokeWidth",10),labelOffsetSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLabel.offset","offset",30)})}},jen=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("cap"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0},t=this.chartMenuUtils.getDefaultSliderParams("cap.lengthRatio","capLengthRatio",1);t.step=.05,this.setTemplate(`<div>
            <ag-group-component data-ref="capsGroup">
                <ag-slider data-ref="capLengthRatioSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,yp],{capsGroup:e,capLengthRatioSlider:t})}},Hen=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("connectorLine"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="lineGroup">
                <ag-color-picker data-ref="lineColorPicker"></ag-color-picker>
                <ag-slider data-ref="lineStrokeWidthSlider"></ag-slider>
                <ag-slider data-ref="lineOpacitySlider"></ag-slider>
                <ag-slider data-ref="lineDashSlider"></ag-slider>                
            </ag-group-component>
        </div>`,[Ks,Gb,yp],{lineGroup:e,lineColorPicker:this.chartMenuUtils.getDefaultColorPickerParams("line.stroke"),lineStrokeWidthSlider:this.getSliderParams("strokeWidth",10,"line.strokeWidth"),lineDashSlider:this.getSliderParams("lineDash",30,"line.lineDash",1,!0),lineOpacitySlider:this.getSliderParams("strokeOpacity",1,"line.strokeOpacity",.05)})}getSliderParams(e,t,n,r=1,i=!1){const o=this.chartMenuUtils.getDefaultSliderParams(n,e,t,i);return o.step=r,o}};function Vit(e){return["square","circle","cross","diamond","plus","triangle","heart"].map(t=>({value:t,text:e.translate(t)}))}var Ven=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.chartMenuUtils.addEnableParams("marker.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("markers"),suppressEnabledCheckbox:!0,useToggle:!0,suppressOpenCloseIcons:!0});this.setTemplate(`<div>
            <ag-group-component data-ref="seriesMarkersGroup">
                <ag-select data-ref="seriesMarkerShapeSelect"></ag-select>
                <ag-slider data-ref="seriesMarkerSizeSlider"></ag-slider>
                <ag-slider data-ref="seriesMarkerStrokeWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,v6,yp],{seriesMarkersGroup:e,seriesMarkerShapeSelect:this.chartMenuUtils.getDefaultSelectParams("marker.shape","shape",Vit(this.chartTranslation)),seriesMarkerSizeSlider:this.chartMenuUtils.getDefaultSliderParams("marker.size","size",60),seriesMarkerStrokeWidthSlider:this.chartMenuUtils.getDefaultSliderParams("marker.strokeWidth","strokeWidth",10)})}},Gen=class extends Gt{constructor(e){super(),this.chartMenuUtils=e,this.seriesItemsGroup=at,this.activePanels=[]}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("seriesItems"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="seriesItemsGroup">
                <ag-select data-ref="seriesItemSelect"></ag-select>
            </ag-group-component>
        </div>`,[Ks,v6],{seriesItemsGroup:e,seriesItemSelect:this.getSeriesItemsParams()}),this.initSeriesControls()}getSeriesItemsParams(){const e=[{value:"positive",text:this.chartTranslation.translate("seriesItemPositive")},{value:"negative",text:this.chartTranslation.translate("seriesItemNegative")}],t=n=>{this.destroyActivePanels(),this.initSeriesControls(n)};return this.chartMenuUtils.getDefaultSelectParamsWithoutValueParams("seriesItemType",e,"positive",t)}initSeriesControls(e="positive"){this.initSlider("strokeWidth",10,`item.${e}.strokeWidth`),this.initSlider("lineDash",30,`item.${e}.lineDash`,1,!0),this.initSlider("strokeOpacity",1,`item.${e}.strokeOpacity`,.05,!1),this.initSlider("fillOpacity",1,`item.${e}.fillOpacity`,.05,!1),this.initItemLabels(e)}initSlider(e,t,n,r=1,i=!1){const o=this.chartMenuUtils.getDefaultSliderParams(n,e,t,i);o.step=r;const a=this.seriesItemsGroup.createManagedBean(new jp(o));this.seriesItemsGroup.addItem(a),this.activePanels.push(a)}initItemLabels(e){const t=this.chartMenuUtils.getDefaultFontPanelParams(`item.${e}.label`,"seriesItemLabels"),n=this.createBean(new zx(t));this.seriesItemsGroup.addItem(n),this.activePanels.push(n)}destroyActivePanels(){this.activePanels.forEach(e=>{Rs(e.getGui()),this.destroyBean(e)})}destroy(){this.destroyActivePanels(),super.destroy()}},$en=class extends Gt{constructor(e,t="shadow"){super(),this.chartMenuUtils=e,this.propertyKey=t}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e=this.propertyKey,t=this.chartMenuUtils.addEnableParams(`${e}.enabled`,{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("shadow"),suppressEnabledCheckbox:!0,useToggle:!0}),n=this.chartMenuUtils.getDefaultColorPickerParams(`${e}.color`);this.setTemplate(`<div>
            <ag-group-component data-ref="shadowGroup">
                <ag-color-picker data-ref="shadowColorPicker"></ag-color-picker>
                <ag-slider data-ref="shadowBlurSlider"></ag-slider>
                <ag-slider data-ref="shadowXOffsetSlider"></ag-slider>
                <ag-slider data-ref="shadowYOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,Gb,yp],{shadowGroup:t,shadowColorPicker:n,shadowBlurSlider:this.getSliderParams("blur",0,20),shadowXOffsetSlider:this.getSliderParams("xOffset",-10,10),shadowYOffsetSlider:this.getSliderParams("yOffset",-10,10)})}getSliderParams(e,t,n){const r=`${this.propertyKey}.${e}`,i=this.chartMenuUtils.getDefaultSliderParams(r,e,n);return i.minValue=t,i}},Uen=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="groupSpacing">
                <ag-slider data-ref="groupPaddingSlider"></ag-slider>
                <ag-slider data-ref="groupSpacingSlider"></ag-slider>
            </ag-group-component>
            <ag-group-component data-ref="tileSpacing">
                <ag-slider data-ref="tilePaddingSlider"></ag-slider>
                <ag-slider data-ref="tileSpacingSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,yp],{groupSpacing:{...e,title:this.chartTranslation.translate("group")},tileSpacing:{...e,title:this.chartTranslation.translate("tile")},groupPaddingSlider:this.getSliderParams("padding","group.padding"),groupSpacingSlider:this.getSliderParams("spacing","group.gap"),tilePaddingSlider:this.getSliderParams("padding","tile.padding"),tileSpacingSlider:this.getSliderParams("spacing","tile.gap")})}getSliderParams(e,t){return this.chartMenuUtils.getDefaultSliderParams(t,e,10)}},Xen=class extends Gt{constructor(e){super(),this.chartMenuUtils=e}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const e={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("whisker"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="whiskersGroup">
                <ag-color-picker data-ref="whiskerColorPicker"></ag-color-picker>
                <ag-slider data-ref="whiskerThicknessSlider"></ag-slider>
                <ag-slider data-ref="whiskerOpacitySlider"></ag-slider>
                <ag-slider data-ref="whiskerLineDashSlider"></ag-slider>
                <ag-slider data-ref="whiskerLineDashOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[Ks,Gb,yp],{whiskersGroup:e,whiskerColorPicker:this.chartMenuUtils.getDefaultColorPickerParams("whisker.stroke"),whiskerThicknessSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.strokeWidth","strokeWidth",10),whiskerOpacitySlider:this.chartMenuUtils.getDefaultSliderParams("whisker.strokeOpacity","strokeOpacity",1),whiskerLineDashSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.lineDash","lineDash",30,!0),whiskerLineDashOffsetSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.lineDashOffset","lineDashOffset",30)})}},dl="tooltips",cd="strokeWidth",n4="lineWidth",Hd="lineDash",uu="lineOpacity",Vd="fillOpacity",Bc="labels",F2="shadow",t8="stageLabels",r4="markers",Yen=class extends Gt{constructor(e){super(),this.options=e,this.seriesGroup=at,this.activePanels=[],this.widgetFuncs={lineWidth:()=>this.initStrokeWidth(n4),[cd]:()=>this.initStrokeWidth("strokeWidth"),lineColor:()=>this.initLineColor(),[Hd]:()=>this.initLineDash(),[uu]:()=>this.initOpacity("strokeOpacity"),[Vd]:()=>this.initOpacity("fillOpacity"),markers:()=>new Ven(this.chartMenuUtils),[Bc]:()=>this.initLabels(),sectorLabels:()=>this.initSectorLabels(),[F2]:()=>new $en(this.chartMenuUtils),[dl]:()=>this.initTooltips(),bins:()=>this.initBins(),whiskers:()=>new Xen(this.chartMenuUtils),caps:()=>new jen(this.chartMenuUtils),connectorLine:()=>new Hen(this.chartMenuUtils),seriesItems:()=>new Gen(this.chartMenuUtils),tileSpacing:()=>new Uen(this.chartMenuUtils),shape:()=>this.initShape(),size:()=>this.initSize("size","size"),minSize:()=>this.initSize("size","minSize"),maxSize:()=>this.initSize("maxSize","maxSize"),dropoff:()=>this.initDropOff(),stageLabels:()=>this.initStageLabels()},this.seriesWidgetMappings={bar:[dl,cd,Hd,uu,Vd,Bc,F2],pie:[dl,cd,uu,Vd,Bc,"sectorLabels",F2],donut:[dl,cd,uu,Vd,Bc,"sectorLabels",F2],line:[dl,n4,Hd,uu,r4,Bc],scatter:[dl,"shape","size",cd,Bc],bubble:[dl,"shape","minSize","maxSize",cd,Bc],area:[dl,n4,Hd,uu,Vd,r4,Bc,F2],histogram:[dl,"bins",cd,Hd,uu,Vd,Bc,F2],"radial-column":[dl,cd,Hd,uu,Vd,Bc],"radial-bar":[dl,cd,Hd,uu,Vd,Bc],"radar-line":[dl,cd,Hd,uu,r4,Bc],"radar-area":[dl,cd,Hd,uu,Vd,r4,Bc],nightingale:[dl,cd,Hd,uu,Vd,Bc],"box-plot":[dl,cd,Hd,uu,Vd,"whiskers","caps"],"range-bar":[dl,cd,Hd,uu,Vd,Bc],"range-area":[dl,n4,Hd,uu,Vd,r4,Bc,F2],treemap:[dl,"tileSpacing"],sunburst:[dl],heatmap:[dl,Bc,"lineColor",n4,uu],waterfall:[dl,"connectorLine","seriesItems"],funnel:[dl,cd,Hd,uu,Vd,Bc,"dropoff",t8,F2],"cone-funnel":[dl,cd,Hd,uu,Vd,Bc,t8],pyramid:[dl,cd,Hd,uu,Vd,Bc,t8,F2]},this.seriesType=e.seriesType}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{isExpandedOnInit:e,chartOptionsService:t,chartController:n,registerGroupComponent:r}=this.options,i={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate("series"),expanded:e,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="seriesGroup">
            </ag-group-component>
        </div>`,[Ks],{seriesGroup:i}),r(this.seriesGroup),this.chartMenuUtils=this.createManagedBean(new Az(t.getSeriesOptionsProxy(()=>this.seriesType))),this.addManagedListeners(n,{chartSeriesChartTypeChanged:this.refreshWidgets.bind(this)}),this.refreshWidgets()}refreshWidgets(){const{chartController:e}=this.options;this.destroyActivePanels(),e.getChartProxy().getChart().waitForUpdate().then(()=>{this.isAlive()&&(e.isComboChart()&&(this.updateSeriesType(),this.initSeriesSelect()),(this.seriesWidgetMappings[this.seriesType]??[]).forEach(r=>{const i=this.widgetFuncs[r]();let o;if(Array.isArray(i)){const a=this.createBean(i[0]);o=a,i[1](a)}else o=this.createBean(i);this.seriesGroup.addItem(o),this.activePanels.push(o)}))}).catch(n=>pi(105,{e:n}))}initSeriesSelect(){const e=this.createBean(new l1(this.chartMenuUtils.getDefaultSelectParamsWithoutValueParams("seriesType",this.getSeriesSelectOptions(),`${this.seriesType}`,t=>{this.seriesType=t,this.refreshWidgets()})));this.seriesGroup.addItem(e),this.activePanels.push(e)}initTooltips(){return new m3(this.chartMenuUtils.addValueParams("tooltip.enabled",{label:this.translate("tooltips"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex"}))}initLineColor(){return new _it(this.chartMenuUtils.getDefaultColorPickerParams("stroke","strokeColor"))}initStrokeWidth(e,t){return new jp(this.chartMenuUtils.getDefaultSliderParams(t?`${t}.${e}`:"strokeWidth",e,10))}initLineDash(e){return new jp(this.chartMenuUtils.getDefaultSliderParams(e?`${e}.lineDash`:"lineDash","lineDash",30,!0))}initOpacity(e,t){const n=this.chartMenuUtils.getDefaultSliderParams(t?`${t}.${e}`:e,e,1);return n.step=.05,new jp(n)}initDropOff(){return[new qen({tag:"dropOff",cssIdentifier:"charts-format-sub-level",title:this.translate("dropOff"),suppressEnabledCheckbox:!1,chartMenuParamsFactory:this.chartMenuUtils}),n=>{[this.initStrokeWidth("strokeWidth","dropOff"),this.initLineDash("dropOff"),this.initOpacity("strokeOpacity","dropOff"),this.initOpacity("fillOpacity","dropOff")].forEach(r=>{const i=n.createManagedBean(r);n.addItem(i),this.activePanels.push(i)})}]}initLabels(){const e=Eit(this.seriesType),t=e?"calloutLabel":"label",n=e?"calloutLabels":"labels",r=this.chartMenuUtils.getDefaultFontPanelParams(t,n);return[new zx(r),a=>{if(e){const s=a.createManagedBean(new Ben(this.chartMenuUtils));a.addItem(s),this.activePanels.push(s)}if(this.seriesType==="range-bar"){const s=[{value:"inside",text:this.translate("inside")},{value:"outside",text:this.translate("outside")}],l=a.createManagedBean(new l1(this.chartMenuUtils.getDefaultSelectParams("label.placement","labelPlacement",s)));a.addItem(l),this.activePanels.push(l);const c=a.createManagedBean(new jp(this.chartMenuUtils.getDefaultSliderParams("label.padding","padding",200)));a.addItem(c),this.activePanels.push(c)}}]}initSectorLabels(){const e=this.chartMenuUtils.getDefaultFontPanelParams("sectorLabel","sectorLabels");return[new zx(e),r=>{const i=this.chartMenuUtils.getDefaultSliderParams("sectorLabel.positionRatio","positionRatio",1);i.step=.05;const o=r.createManagedBean(new jp(i));r.addItem(o)}]}initStageLabels(){return new zx(this.chartMenuUtils.getDefaultFontPanelParams("stageLabel",t8))}initBins(){const e=this.chartMenuUtils.getDefaultSliderParams("binCount","histogramBinCount",20),t=this.chartMenuUtils.getChartOptions(),n=(t.getValue("bins")??t.getValue("calculatedBins",!0)).length;return e.value=`${n}`,e.maxValue=Math.max(n,20),new jp(e)}initShape(){return new l1(this.chartMenuUtils.getDefaultSelectParams("shape","shape",Vit(this.chartTranslation)))}initSize(e,t){return new jp(this.chartMenuUtils.getDefaultSliderParams(e,t,60))}getSeriesSelectOptions(){const e=this.getActiveSeriesTypes();return["area","bar","line"].filter(t=>e.includes(t)).map(t=>({value:t,text:this.translate(t)}))}updateSeriesType(){const e=this.getActiveSeriesTypes();!e.includes(this.seriesType)&&e.length>0&&(this.seriesType=e[0])}getActiveSeriesTypes(){return this.options.chartController.getActiveSeriesChartTypes().map(e=>Us(e.chartType))}translate(e){return this.chartTranslation.translate(e)}destroyActivePanels(){this.activePanels.forEach(e=>{Rs(e.getGui()),this.destroyBean(e)})}destroy(){this.destroyActivePanels(),super.destroy()}},G5=class extends Gt{constructor(e,t,n){super("<div></div>"),this.chartMenuUtils=e,this.name=t,this.key=n,this.chartOptions=e.getChartOptions()}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){this.initFontPanel()}hasTitle(){const e=this.chartOptions.getValue(this.key);return e&&e.enabled&&e.text&&e.text.length>0}initFontPanel(){const e=this.hasTitle(),t={name:this.chartTranslation.translate(this.name),enabled:e,suppressEnabledCheckbox:!1,chartMenuParamsFactory:this.chartMenuUtils,keyMapper:n=>`${this.key}.${n}`,onEnableChange:n=>this.onEnableChange(n)};this.fontPanel=this.createManagedBean(new zx(t)),this.fontPanel.addItem(this.createBean(new Im(this.getTextInputParams())),!0),this.fontPanel.addItem(this.createBean(new jp(this.getSpacingSliderParams()))),this.getGui().appendChild(this.fontPanel.getGui())}getTextInputParams(){return this.chartMenuUtils.addValueParams(`${this.key}.text`,{label:this.chartTranslation.translate("title"),labelAlignment:"top"})}getSpacingSliderParams(){return this.chartMenuUtils.getDefaultSliderParams(`${this.key}.spacing`,"spacing",100)}onEnableChange(e){this.chartOptions.setValue(`${this.key}.enabled`,e)}},Ken=class extends G5{wireBeans(e){super.wireBeans(e),this.chartMenuSvc=e.chartMenuSvc}postConstruct(){this.titlePlaceholder=this.chartTranslation.translate("titlePlaceholder"),super.postConstruct(),this.addManagedEventListeners({chartTitleEdit:()=>{this.fontPanel.setEnabled(this.hasTitle())}})}getTextInputParams(){const e=super.getTextInputParams();return this.shouldOverrideTextWithPlaceholder(e.value)&&(e.value=this.titlePlaceholder),e}getSpacingSliderParams(){const e=super.getSpacingSliderParams();return e.value="10",e}onEnableChange(e){if(this.chartMenuSvc.doesChartToolbarExist()){const n=this.chartOptions.getValue("padding.top");this.chartOptions.setValue("padding.top",e?n-20:n+20)}this.chartOptions.setValue(`${this.key}.enabled`,e);const t=this.chartOptions.getValue(`${this.key}.text`);e&&this.shouldOverrideTextWithPlaceholder(t)&&this.chartOptions.setValue(`${this.key}.text`,this.titlePlaceholder)}shouldOverrideTextWithPlaceholder(e){return e==="Title"||e?.trim().length===0}},Qen=class extends Gt{constructor(e){super(),this.options=e,this.titleGroup=at}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){const{chartMenuParamsFactory:e,chartAxisMenuParamsFactory:t,chartOptionsService:n,seriesType:r,isExpandedOnInit:i=!1,registerGroupComponent:o}=this.options,a=[];if(ix(r)&&r!=="pyramid"){const l=c=>this.createManagedBean(new Az(n.getCartesianAxisThemeOverridesProxy(c)));a.push(this.createManagedBean(new G5(l("xAxis"),"horizontalAxisTitle","title"))),a.push(this.createManagedBean(new G5(l("yAxis"),"verticalAxisTitle","title")))}else Dhe(r)&&a.push(this.createManagedBean(new G5(t,"polarAxisTitle","title")));const s={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("chartTitles"),expanded:i,suppressEnabledCheckbox:!0,items:[this.createManagedBean(new Ken(e,"chartTitle","title")),this.createManagedBean(new G5(e,"chartSubtitle","subtitle")),...a]};this.setTemplate(`<div>
            <ag-group-component data-ref="titleGroup"></ag-group-component>
        </div>`,[Ks],{titleGroup:s}),o(this.titleGroup)}},Zen={groups:[{type:"chart"},{type:"titles"},{type:"legend"},{type:"series"},{type:"axis"}]},$Re=["axis","horizontalAxis","verticalAxis"],Jen=class extends Gt{constructor(e){super('<div class="ag-chart-format-wrapper"></div>'),this.chartMenuContext=e}postConstruct(){this.groupExpansionFeature=this.createManagedBean(new Fen(this.getGui())),this.chartPanelFeature=this.createManagedBean(new Lit(this.chartMenuContext.chartController,this.getGui(),"ag-chart-format-section",(e,t)=>this.createPanels(t))),this.chartPanelFeature.refreshPanels()}createPanels(e){let t=!1;this.getFormatPanelDef().groups?.forEach(({type:n,isOpen:r=!1})=>{if(!this.isGroupPanelShownInSeries(n,e))return;r&&(t&&ut(145,{group:n}),t=!0);const i=a=>this.groupExpansionFeature.addGroupComponent(a),o={...this.chartMenuContext,isExpandedOnInit:r,seriesType:e,registerGroupComponent:i};switch(n){case"chart":this.chartPanelFeature.addComponent(new Nen(o));break;case"titles":this.chartPanelFeature.addComponent(new Qen(o));break;case"legend":this.chartPanelFeature.addComponent(new Wen(o,this.chartMenuContext));break;case"axis":Dhe(e)?this.chartPanelFeature.addComponent(new ken(o)):ix(e)&&(this.chartPanelFeature.addComponent(new e8("xAxis",o)),this.chartPanelFeature.addComponent(new e8("yAxis",o)));break;case"horizontalAxis":this.chartPanelFeature.addComponent(new e8("xAxis",o));break;case"verticalAxis":this.chartPanelFeature.addComponent(new e8("yAxis",o));break;case"series":this.chartPanelFeature.addComponent(new Yen(o));break;default:ut(147,{group:n})}})}getFormatPanelDef(){const e=this.gos.get("chartToolPanelsDef")?.formatPanel;return e||Zen}isGroupPanelShownInSeries(e,t){const n=["chart","titles","legend","series"].includes(e)||ix(t)&&$Re.includes(e)||Dhe(t)&&e==="axis",r=Phe(t)&&e==="legend"||Phe(t)&&$Re.includes(e);return n&&!r}},etn="ag-chart-mini-thumbnail-canvas",b3=class extends Gt{constructor(e,t,n){super(),this.agChartsExports=t,this.tooltipName=n,this.size=58,this.padding=5;const{_Scene:r}=t;this.root=new r.Group;const i=new r.Scene({width:this.size,height:this.size});i.canvas.element.classList.add(etn),i.setRoot(this.root),i.setContainer(e),this.scene=i}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){this.scene.canvas.element.title=this.chartTranslation.translate(this.tooltipName);try{this.scene.render()}catch(e){pi(108,{e})}}};function w6(e){const{stacked:t,size:n,padding:r,xScalePadding:i,xScaleDomain:o,yScaleDomain:a,agChartsExports:{_Scene:s}}=e,l=new s.CategoryScale;l.domain=o,l.range=[r,n-r],l.paddingInner=i,l.paddingOuter=i;const c=new s.LinearScale;c.domain=a,c.range=[n-r,r];const u=(d,p,h)=>d.map((g,m)=>{const v=h.convert(g),y=new s.Rect;return y.x=p.convert(m),y.y=v,y.width=p.bandwidth,y.height=h.convert(0)-v,y.strokeWidth=0,y.crisp=!0,y});return t?e.data.map(d=>u(d,l,c)):u(e.data,l,c)}function ttn(e,t,n,r){const i=[],o=[];t.forEach(l=>{l.forEach(([c,u])=>{i.push(c),o.push(u)})});const a=new e.LinearScale;a.domain=[Math.min(...i),Math.max(...i)],a.range=[r,n-r];const s=new e.LinearScale;return s.domain=[Math.min(...o),Math.max(...o)],s.range=[n-r,r],{xScale:a,yScale:s}}function Git(e,t,n,r){const i=[0,t[0].length-1],o=t.reduce((l,c)=>(c.forEach(u=>{u<l[0]&&(l[0]=u),u>l[1]&&(l[1]=u)}),l),[1/0,-1/0]);o[0]--,o[o.length-1]++;const a=new e.LinearScale;a.domain=i,a.range=[r,n-r];const s=new e.LinearScale;return s.domain=o,s.range=[n-r,r],{xScale:a,yScale:s}}function $it(e,t,n){return e.map(r=>r.map((i,o)=>[o>0?"lineTo":"moveTo",t.convert(o),n.convert(i)]))}function ntn(e,t,n){return e.map(([r,i],o)=>[o>0?"lineTo":"moveTo",t.convert(r),n.convert(i)])}function rtn(e){const t=e[0],n=e[1],r=zr(e);return(n[1]!==r[1]||n[2]!==r[2])&&e.push([t[0],n[1],n[2]]),e}function Uit(e,t){const n=new e.Path;return t.forEach(([r,i,o])=>n.path[r](i,o)),n}function itn(e,t,n){return e.map((r,i,o)=>{const s=[...n?otn(o,i,t):Xit(r,t)].reverse().map(([u,d,p])=>["lineTo",d,p]),l=r[0],c=zr(s);return(l[1]!==c[1]||l[2]!==c[2])&&s.push(["lineTo",l[1],l[2]]),[...r,...s]})}function otn(e,t,n){return t===0?Xit(e[t],n):[...e[t-1]]}function Xit(e,t){return e.map(([n,r])=>[n,r,t.convert(0)])}function Yit(e,t){const n=Uit(e,t);return n.fill=void 0,n.lineCap="round",n.strokeWidth=3,n}function atn({_Scene:e},t,n,r,i){const{xScale:o,yScale:a}=ttn(e,n,r,i),u=n.map(p=>ntn(p,o,a)).map(p=>rtn(p)).map(p=>Yit(e,p)).reduce((p,h)=>p.concat(h),[]),d=new e.Group;return d.setClipRect(new e.BBox(i,i,r-i*2,r-i*2)),d.append(u),t.append(d),u}function rMe({_Scene:e},t,n,r,i){const{xScale:o,yScale:a}=Git(e,n,r,i),l=$it(n,o,a).map(u=>Yit(e,u)),c=new e.Group;return c.setClipRect(new e.BBox(i,i,r-i*2,r-i*2)),c.append(l),t.append(c),l}function stn(e,t,n,r,i,o=!1){const{xScale:a,yScale:s}=Git(e,n,r,i),l=itn($it(n,a,s),s,o),c=new e.Group;c.setClipRect(new e.BBox(i,i,r-i*2,r-i*2));const u=l.map(d=>Uit(e,d));return c.append(u),t.append(c),u}function Kit(e){return e.map((t,n,r)=>t.map((i,o)=>r.slice(0,n+1).reduce((a,s)=>a+s[o],0)))}function Qit(e){const t=e.map((n,r)=>e.reduce((i,o)=>Math.max(i,o[r]),0));return e.map(n=>n.map((r,i)=>r/t[i]*19))}function Zit(e,t,n,r,i,o,a=0){const{_Scene:s}=e,l=new s.LinearScale;l.domain=[0,7],l.range=[-Math.PI,Math.PI].map(g=>g+Math.PI/2);const c=new s.LinearScale;c.domain=[0,10],c.range=[i,o];const u=[],d=r/2,p=n.map(g=>{const m=new s.Path;return m.strokeWidth=1,m.strokeOpacity=.5,m.lineCap="round",m.fill=void 0,m.fillOpacity=.8,g.forEach((v,y)=>{const M=l.convert(y),C=i+o-c.convert(v),x=C*Math.cos(M)+d,w=C*Math.sin(M)+d;if(m.path[y>0?"lineTo":"moveTo"](x,w),a>0){const S=new s.Marker({shape:"circle"});S.x=x,S.y=w,S.size=a,u.push(S)}}),m.path.closePath(),m}),h=new s.Group;return h.append([...p,...u]),t.append(h),{paths:p,markers:u}}function BK(e){let[t,n]=[1/0,-1/0];return{processedData:e.reduce((i,o,a)=>{const s=a>0?i[a-1]:void 0;i[a]??(i[a]=[]);const l=i[a];return o.forEach((c,u)=>{s&&(c+=s[u]),l[u]=c,l[u]<t&&(t=l[u]),l[u]>n&&(n=l[u])}),i},[]),min:t,max:n}}var ltn=[[[13,16],[13,12],[3,12],[3,16]],[[12,11],[12,7],[4,7],[4,11]],[[10.125,6],[10.125,1.5],[5.875,1.5],[5.875,6]]],iMe=class extends b3{constructor(e,t,n,r,i,o="funnelTooltip",a=ltn){super(e,t,o),this.shapes=atn(t,this.root,a,this.size,this.padding),this.updateColors(n,r)}updateColors(e,t){this.shapes.forEach(n=>{n.fill=e[0],n.stroke=t[0],n.strokeWidth=0})}},ctn={chartType:"funnel",miniChart:iMe},utn=[[[13,16],[10.75,11.5],[5.25,11.5],[3,16]],[[10.75,11.5],[8.875,6],[7.125,6],[5.25,11.5]],[[8.875,6],[8.875,1.5],[7.125,1.5],[7.125,6]]],dtn=class extends iMe{constructor(e,t,n,r,i,o="coneFunnelTooltip"){super(e,t,n,r,i,o,utn)}updateColors(e,t){this.shapes.forEach((n,r)=>{n.fill=e[0],n.fillOpacity=1-r*.2,n.stroke=t[0],n.strokeWidth=0})}},ptn={chartType:"coneFunnel",miniChart:dtn},htn=[[[8,16],[10,12],[6,12]],[[10.5,11],[12.5,7],[3.5,7],[5.5,11]],[[13,6],[15.5,1.5],[.5,1.5],[3,6]]],ftn=class extends iMe{constructor(e,t,n,r,i,o="pyramidTooltip"){super(e,t,n,r,i,o,htn)}updateColors(e,t){this.shapes.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r],n.strokeWidth=0})}},gtn={chartType:"pyramid",miniChart:ftn},v1=class extends b3{constructor(e,t,n){super(e,t,n),this.stroke="gray",this.axisOvershoot=3}postConstruct(){const{_Scene:e}=this.agChartsExports,t=this.size,n=this.padding,r=new e.Line;r.x1=n,r.y1=n,r.x2=n,r.y2=t-n+this.axisOvershoot,r.stroke=this.stroke;const i=new e.Line;i.x1=n-this.axisOvershoot+1,i.y1=t-n,i.x2=t-n+1,i.y2=t-n,i.stroke=this.stroke;const o=this.root;o.append(r),o.append(i),super.postConstruct()}},mtn=class extends v1{constructor(e,t,n,r){super(e,t,"groupedColumnTooltip"),this.columnData=[2,3,4];const{root:i,columnData:o,size:a,padding:s}=this;this.columns=w6({stacked:!1,data:o,size:a,padding:s,xScaleDomain:[0,1,2],yScaleDomain:[0,4],xScalePadding:.3,agChartsExports:t}),i.append(this.columns),this.updateColors(n,r)}updateColors(e,t){this.columns.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]})}},vtn={chartType:"groupedColumn",miniChart:mtn},btn=[[8,12,16],[6,9,12],[2,3,4]],Jit=class extends v1{constructor(e,t,n,r,i,o=btn,a=[0,16],s="stackedColumnTooltip"){super(e,t,s);const{root:l,size:c,padding:u}=this;this.stackedColumns=w6({stacked:!0,data:o,size:c,padding:u,xScaleDomain:[0,1,2],yScaleDomain:a,xScalePadding:.3,agChartsExports:t}),l.append(Tet(this.stackedColumns)),this.updateColors(n,r)}updateColors(e,t){this.stackedColumns.forEach((n,r)=>n.forEach(i=>{i.fill=e[r],i.stroke=t[r]}))}},ytn={chartType:"stackedColumn",miniChart:Jit},Mtn=[[10,10,10],[6,7,8],[2,4,6]],Ctn=class extends Jit{constructor(e,t,n,r,i){super(e,t,n,r,i,Mtn,[0,10],"normalizedColumnTooltip")}},xtn={chartType:"normalizedColumn",miniChart:Ctn},wtn=class extends v1{constructor(e,t,n,r){super(e,t,"groupedBarTooltip");const{_Scene:i}=t,o=this.padding,a=this.size,s=[2,3,4],l=new i.CategoryScale;l.domain=[0,1,2],l.range=[o,a-o],l.paddingInner=.3,l.paddingOuter=.3;const c=new i.LinearScale;c.domain=[0,4],c.range=[a-o,o];const u=c.convert(0),d=l.bandwidth;this.bars=s.map((p,h)=>{const g=new i.Rect;return g.x=o,g.y=l.convert(h),g.width=u-c.convert(p),g.height=d,g.strokeWidth=0,g.crisp=!0,g}),this.updateColors(n,r),this.root.append(this.bars)}updateColors(e,t){this.bars.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]})}},Stn={chartType:"groupedBar",miniChart:wtn},Atn=[[8,12,16],[6,9,12],[2,3,4]],eot=class extends v1{constructor(e,t,n,r,i,o=Atn,a=[0,16],s="stackedBarTooltip"){super(e,t,s);const{_Scene:l}=t,c=this.size,u=this.padding,d=new l.CategoryScale;d.domain=[0,1,2],d.range=[u,c-u],d.paddingInner=.3,d.paddingOuter=.3;const p=new l.LinearScale;p.domain=a,p.range=[c-u,u];const h=p.convert(0),g=d.bandwidth;this.bars=o.map(m=>m.map((v,y)=>{const M=new l.Rect;return M.x=u,M.y=d.convert(y),M.width=h-p.convert(v),M.height=g,M.strokeWidth=0,M.crisp=!0,M})),this.updateColors(n,r),this.root.append(Tet(this.bars))}updateColors(e,t){this.bars.forEach((n,r)=>n.forEach(i=>{i.fill=e[r],i.stroke=t[r]}))}},Otn={chartType:"stackedBar",miniChart:eot},ztn=[[10,10,10],[6,7,8],[2,4,6]],Ttn=class extends eot{constructor(e,t,n,r,i){super(e,t,n,r,i,ztn,[0,10],"normalizedBarTooltip")}},Etn={chartType:"normalizedBar",miniChart:Ttn},tot=class extends b3{constructor(e,t,n,r,i,o=.6,a="donutTooltip"){super(e,t,a);const{size:s,padding:l,agChartsExports:{_Scene:c}}=this,u=(s-l*2)/2,d=u+l,p=c.toRadians,h=[[p(-90),p(30)],[p(30),p(120)],[p(120),p(180)],[p(180),p(210)],[p(210),p(240)],[p(240),p(270)]];this.sectors=h.map(([g,m])=>{const v=new c.Sector;return v.centerX=d,v.centerY=d,v.innerRadius=u*o,v.outerRadius=u,v.startAngle=g,v.endAngle=m,v.stroke=void 0,v.strokeWidth=0,v.inset=.75,v}),this.updateColors(n,r),this.root.append(this.sectors)}updateColors(e,t){this.sectors.forEach((n,r)=>{n.fill=e[r%e.length],n.stroke=t[r%t.length]})}},URe={chartType:"donut",miniChart:tot},Rtn=class extends tot{constructor(e,t,n,r,i){super(e,t,n,r,i,0,"pieTooltip")}},Itn={chartType:"pie",miniChart:Rtn},oMe=[[1,3,5],[2,6,4],[5,3,1]],aMe=class extends v1{constructor(e,t,n,r,i,o=oMe,a="lineTooltip"){super(e,t,a);const{size:s,padding:l,root:c}=this;this.lines=rMe(t,c,o,s,l),this.updateColors(n,r)}updateColors(e,t){this.lines.forEach((n,r)=>{n.stroke=e[r]})}},Ptn={chartType:"line",miniChart:aMe},not=Kit(oMe),Dtn=class extends aMe{constructor(e,t,n,r,i,o=not,a="stackedLineTooltip"){super(e,t,n,r,i,o,a)}},ktn={chartType:"stackedLine",miniChart:Dtn},Ltn=Qit(not),_tn=class extends aMe{constructor(e,t,n,r,i,o=Ltn,a="normalizedLineTooltip"){super(e,t,n,r,i,o,a)}},Ntn={chartType:"normalizedLine",miniChart:_tn},Ftn=class extends v1{constructor(e,t,n,r){super(e,t,"scatterTooltip");const{size:i,padding:o,agChartsExports:{_Scene:a}}=this,s=[[[.3,3],[1.1,.9],[2,.4],[3.4,2.4]],[[0,.3],[1,2],[2.4,1.4],[3,0]]],l=new a.LinearScale;l.domain=[-.5,4],l.range=[o*2,i-o];const c=new a.LinearScale;c.domain=[-.5,3.5],c.range=[i-o,o];const u=[];s.forEach(p=>{p.forEach(([h,g])=>{const m=new a.Arc;m.strokeWidth=0,m.centerX=l.convert(h),m.centerY=c.convert(g),m.radius=2.5,u.push(m)})}),this.points=u,this.updateColors(n,r);const d=new a.Group;d.setClipRect(new a.BBox(o,o,i-o*2,i-o*2)),d.append(this.points),this.root.append(d)}updateColors(e,t){this.points.forEach((n,r)=>{n.stroke=t[r%t.length],n.fill=e[r%e.length]})}},Wtn={chartType:"scatter",miniChart:Ftn},qtn=class extends v1{constructor(e,t,n,r){super(e,t,"bubbleTooltip");const{size:i,padding:o,agChartsExports:{_Scene:a}}=this,s=[[[.1,.3,5],[.5,.4,7],[.2,.8,7]],[[.8,.7,5],[.7,.3,9]]],l=new a.LinearScale;l.domain=[0,1],l.range=[o*2,i-o];const c=new a.LinearScale;c.domain=[0,1],c.range=[i-o,o];const u=[];s.forEach(p=>{p.forEach(([h,g,m])=>{const v=new a.Arc;v.strokeWidth=0,v.centerX=l.convert(h),v.centerY=c.convert(g),v.radius=m,v.fillOpacity=.7,u.push(v)})}),this.points=u,this.updateColors(n,r);const d=new a.Group;d.setClipRect(new a.BBox(o,o,i-o*2,i-o*2)),d.append(this.points),this.root.append(d)}updateColors(e,t){this.points.forEach((n,r)=>{n.stroke=t[r%t.length],n.fill=e[r%e.length]})}},Btn={chartType:"bubble",miniChart:qtn},rot=oMe,iot=class extends v1{constructor(e,t,n,r,i,o=rot,a="groupedAreaTooltip",s=!1){super(e,t,a),this.areas=stn(t._Scene,this.root,o,this.size,this.padding,s),this.updateColors(n,r)}updateColors(e,t){this.areas.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r],n.strokeWidth=1,n.strokeOpacity=.75,n.fillOpacity=.7})}},jtn={chartType:"area",miniChart:iot},oot=Kit(rot),aot=class extends iot{constructor(e,t,n,r,i,o=oot,a="stackedAreaTooltip"){super(e,t,n,r,i,o,a,!0)}updateColors(e,t){this.areas.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]})}},Htn={chartType:"stackedArea",miniChart:aot},Vtn=Qit(oot),Gtn=class extends aot{constructor(e,t,n,r,i,o=Vtn,a="normalizedAreaTooltip"){super(e,t,n,r,i,o,a)}},$tn={chartType:"normalizedArea",miniChart:Gtn},Utn=class extends v1{constructor(e,t,n,r){super(e,t,"histogramTooltip");const{padding:i,size:o,agChartsExports:{_Scene:a}}=this,s=[2,5,11,13,10,6,1],l=new a.LinearScale;l.domain=[0,s.length],l.range=[i,o-i];const c=new a.LinearScale;c.domain=[0,s.reduce((d,p)=>Math.max(d,p),0)],c.range=[o-i,i];const u=c.convert(0);this.bars=s.map((d,p)=>{const h=c.convert(d),g=l.convert(p),m=l.convert(p+1),v=new a.Rect;return v.x=g,v.y=h,v.width=m-g,v.height=u-h,v.strokeWidth=1,v.strokeOpacity=.75,v.crisp=!0,v}),this.updateColors(n,r),this.root.append(this.bars)}updateColors([e],[t]){this.bars.forEach(n=>{n.fill=e,n.stroke=t})}},Xtn={chartType:"histogram",miniChart:Utn},vD=class extends b3{constructor(e,t,n){super(e,t,n),this.stroke="gray",this.showRadiusAxisLine=!0,this.showAngleAxisLines=!0}postConstruct(){const{_Scene:e}=this.agChartsExports,t=this.size,n=this.padding,r=n*2,i=(t-r)/2,o=this.showAngleAxisLines?[i,i*.8,i*.6,i*.4]:[],a=new e.Line;a.x1=t/2,a.y1=n,a.x2=t/2,a.y2=t-n-i-o[o.length-1],a.stroke=this.stroke,a.strokeOpacity=.5,a.fill=void 0,a.visible=this.showRadiusAxisLine;const s=n+i;this.gridLines=o.map((c,u)=>{const d=new e.Path;return d.path.arc(s,s,c,0,2*Math.PI),d.strokeWidth=1,d.stroke=this.stroke,d.strokeOpacity=u===0?.5:.2,d.fill=void 0,d});const l=this.root;l.append(a),this.gridLines.length>0&&l.append(this.gridLines),super.postConstruct()}},Ytn=class extends vD{constructor(e,t,n,r){super(e,t,"radialColumnTooltip"),this.data=[[6,8,10,2,6,5],[4,4,3,6,4,4],[5,4,2,9,8,9]],this.showRadiusAxisLine=!1;const{padding:i,size:o,data:a,agChartsExports:{_Scene:s}}=this,l=(o-i*2)/2,u=l*.4,d=new s.CategoryScale;d.domain=a[0].map((y,M)=>M),d.range=[0,2*Math.PI],d.paddingInner=0,d.paddingOuter=0;const p=d.bandwidth*.7,{processedData:h,max:g}=BK(a),m=new s.LinearScale;m.domain=[0,g],m.range=[u,l];const v=this.size/2;this.series=h.map((y,M)=>{const x=M===0?void 0:h[M-1],w=new s.TranslatableGroup({zIndex:1e6}),S=y.map((A,z)=>{const O=x?.[z],T=m.convert(A),I=m.convert(O??0),P=d.convert(z),N=P+p,F=s.getRadialColumnWidth(P,N,l,.5,.5),L=new s.RadialColumnShape;return L.columnWidth=F,L.innerRadius=I,L.outerRadius=T,L.startAngle=P,L.endAngle=N,L.isBeveled=!0,L.axisInnerRadius=u,L.axisOuterRadius=l,L.stroke=void 0,L.strokeWidth=0,L});return w.append(S),w.translationX=v,w.translationY=v,w}),this.root.append(this.series),this.updateColors(n,r)}updateColors(e,t){this.series.forEach((n,r)=>{for(const i of n.children())i.fill=e[r%e.length],i.stroke=t[r%t.length]})}},Ktn={chartType:"radialColumn",miniChart:Ytn},Qtn=class extends vD{constructor(e,t,n,r){super(e,t,"radialBarTooltip"),this.data=[[6,8,10],[4,4,3],[5,4,2]],this.showRadiusAxisLine=!1;const{size:i,padding:o,data:a,agChartsExports:{_Scene:s}}=this,l=(i-o)/2,u=l*.4,d=new s.CategoryScale;d.domain=a[0].map((C,x)=>x),d.range=[u,l],d.paddingInner=.5,d.paddingOuter=0;const p=d.bandwidth,{processedData:h,max:g}=BK(a),m=new s.LinearScale;m.domain=[0,Math.ceil(g*1.5)];const v=3/2*Math.PI,y=v+2*Math.PI;m.range=[v,y];const M=i/2;this.series=h.map((C,x)=>{const w=x<0?void 0:h[x-1],S=new s.Group({zIndex:1e6}),A=C.map((z,O)=>{const T=w?.[O]??0,I=d.convert(O),P=I-p,N=m.convert(T),F=m.convert(z),L=new s.Sector;return L.centerX=M,L.centerY=M,L.innerRadius=P,L.outerRadius=I,L.startAngle=N,L.endAngle=F,L.stroke=void 0,L.strokeWidth=0,L});return S.append(A),S}),this.root.append(this.series),this.updateColors(n,r)}updateColors(e,t){this.series.forEach((n,r)=>{for(const i of n.children())i.fill=e[r%e.length],i.stroke=t[r%t.length]})}},Ztn={chartType:"radialBar",miniChart:Qtn},Jtn=class extends vD{constructor(e,t,n,r){super(e,t,"radarLineTooltip"),this.markerSize=4,this.data=[[8,7,8,7,8,8,7,8],[6,8,5,10,6,7,4,6],[0,3,3,5,4,4,2,0]],this.showRadiusAxisLine=!1;const{size:i,padding:o,root:a,data:s}=this,l=(i-o*2)/2,c=0,{paths:u,markers:d}=Zit(t,a,s,i,l,c,this.markerSize);this.lines=u,this.markers=d,this.updateColors(n,r)}updateColors(e,t){this.lines.forEach((n,r)=>{const i=this.data[r].length;n.stroke=e[r];const o=r*i,a=o+i;this.markers.slice(o,a).forEach(l=>{l.stroke=t[r],l.fill=e[r]})})}},enn={chartType:"radarLine",miniChart:Jtn},tnn=class extends vD{constructor(e,t,n,r){super(e,t,"radarAreaTooltip"),this.data=[[8,10,5,7,4,1,5,8],[1,1,2,7,7,8,10,1],[4,5,9,9,4,2,3,4]];const{size:i,padding:o,root:a,data:s}=this;this.showRadiusAxisLine=!1;const l=(i-o*2)/2,c=l-i*.3;this.areas=Zit(t,a,s,i,l,c).paths,this.updateColors(n,r)}updateColors(e,t){this.areas.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]})}},nnn={chartType:"radarArea",miniChart:tnn},rnn=class extends vD{constructor(e,t,n,r){super(e,t,"nightingaleTooltip"),this.data=[[6,10,9,8,7,8],[4,6,5,4,5,5],[3,5,4,3,4,7]],this.showRadiusAxisLine=!1;const{size:i,padding:o,data:a,agChartsExports:{_Scene:s}}=this,l=(i-o*2)/2,c=new s.CategoryScale;c.domain=a[0].map((m,v)=>v),c.range=[-Math.PI,Math.PI],c.paddingInner=0,c.paddingOuter=0;const u=c.bandwidth*.7,{processedData:d,max:p}=BK(a),h=new s.LinearScale;h.domain=[0,p],h.range=[0,l];const g=i/2;this.series=d.map((m,v)=>{const y=v<0?void 0:d[v-1],M=new s.Group({zIndex:1e6}),C=m.map((x,w)=>{const S=y?.[w],A=h.convert(x),z=h.convert(S??0),O=c.convert(w),T=O+u,I=new s.Sector;return I.centerX=g,I.centerY=g,I.innerRadius=z,I.outerRadius=A,I.startAngle=O,I.endAngle=T,I.stroke=void 0,I.strokeWidth=0,I});return M.append(C),M}),this.root.append(this.series),this.updateColors(n,r)}updateColors(e,t){this.series.forEach((n,r)=>{for(const i of n.children())i.fill=e[r%e.length],i.stroke=t[r%t.length]})}},inn={chartType:"nightingale",miniChart:rnn},onn=class extends v1{constructor(e,t,n,r){super(e,t,"rangeBarTooltip");const i=[3,3.5,3];this.bars=this.createRangeBar(this.root,i,this.size,this.padding,"vertical"),this.updateColors(n,r)}updateColors(e,t){this.bars.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]})}createRangeBar(e,t,n,r,i){const o=i==="horizontal",a=2*r,{_Scene:s}=this.agChartsExports,l=new s.CategoryScale;l.domain=t.map((g,m)=>m),l.range=[r,n-r],l.paddingInner=.3,l.paddingOuter=.3;const c=.7,u=1.3,d=new s.LinearScale;d.domain=[t.reduce((g,m)=>Math.min(g,m),1/0)*c,t.reduce((g,m)=>Math.max(g,m),0)*u],d.range=[a,n-a];const p=l.bandwidth,h=t.map((g,m)=>{const[v,y]=[g*c,g*u],M=l.convert(m),C=d.convert(v),x=d.convert(y)-C,w=new s.Rect;return w.x=o?C:M,w.y=o?M:C,w.width=o?x:p,w.height=o?p:x,w.strokeWidth=0,w.crisp=!0,w});return e.append(h),h}},ann={chartType:"rangeBar",miniChart:onn},snn=class extends v1{constructor(e,t,n,r){super(e,t,"rangeAreaTooltip");const i=4,o=[zre({offset:.375*i,length:i,pattern:{low:3,high:5,period:i}}),zre({offset:.375*i,length:i,pattern:{low:2.25,high:4.25,period:i}}),zre({offset:.75*i,length:i,pattern:{low:2.5,high:4.5,period:i}})],a=1.75,s=o.map(u=>u.map(([d,p])=>({x:d,low:p-.5*a,high:p+.5*a}))),{lines:l,areas:c}=this.createRangeArea(this.root,s,this.size,this.padding);this.lines=l,this.areas=c,this.updateColors(n,r)}updateColors(e,t){e=YRe(e,1,2),t=YRe(t,1,2),this.lines.forEach(([n,r],i)=>{n.fill=void 0,n.stroke=t[i],r.fill=void 0,r.stroke=t[i]}),this.areas.forEach((n,r)=>{n.fill=e[r]})}createRangeArea(e,t,n,r){const i=t.reduce((m,v)=>v.reduce((y,{x:M})=>Math.min(y,M),m),1/0),o=t.reduce((m,v)=>v.reduce((y,{x:M})=>Math.max(y,M),m),-1/0),a=t.reduce((m,v)=>v.reduce((y,{low:M})=>Math.min(y,M),m),1/0),s=t.reduce((m,v)=>v.reduce((y,{high:M})=>Math.max(y,M),m),-1/0),{_Scene:l}=this.agChartsExports,c=new l.LinearScale;c.domain=[i,o],c.range=[r,n-r];const u=2*r,d=new l.LinearScale;d.domain=[a,s],d.range=[n-u,u];const p=[],h=[];return t.map(m=>{const v=new l.Path,y=new l.Path,M=new l.Path;return p.push([v,y]),h.push(M),v.strokeWidth=0,y.strokeWidth=0,M.strokeWidth=0,M.fillOpacity=.8,v.path.clear(),y.path.clear(),M.path.clear(),m.map((C,x)=>{const{x:w,low:S,high:A}=C,z=c.convert(w),O=d.convert(S),T=d.convert(A),I=x>0?"lineTo":"moveTo";return v.path[I](z,T),y.path[I](z,O),M.path[I](z,T),[z,O]})}).forEach((m,v)=>{const y=m.length-1,M=h[v];for(let C=y;C>=0;C--){const[x,w]=m[C];M.path.lineTo(x,w)}}),e.append(h.concat(...p)),{lines:p,areas:h}}};function zre(e){const{offset:t,length:n,pattern:r}=e,i=s(t,n,r),o=0,a=n;return(i.length===0||i[0][0]!==o)&&i.unshift(l(o,t,r)),i[i.length-1][0]!==a&&i.push(l(a,t,r)),i;function s(u,d,p){const{period:h}=p,g=u/h,v=[0,.5].map(M=>M-g).map(XRe).sort((M,C)=>M-C);return Array.from({length:Math.floor(v.length*(h/d))},(M,C)=>v[C%v.length]+Math.floor(C/v.length)).map(M=>M*h).map(M=>l(M,u,p))}function l(u,d,p){return[u,c(d+u,p)]}function c(u,d){const{low:p,high:h,period:g}=d,m=XRe(u/g),v=m>.5?1-2*(m-.5):2*m;return p+(h-p)*v}}function XRe(e){const t=e%1;return t<0?t+1:t}function YRe(e,t,n){const r=[...e],i=r[t];return r[t]=r[n],r[n]=i,r}var lnn={chartType:"rangeArea",miniChart:snn},cnn=class extends v1{constructor(e,t,n,r,i){super(e,t,"boxPlotTooltip");const{size:o,padding:a,agChartsExports:{_Scene:s}}=this,l=[11,11.5,10.5],c=1.2,u=1.1,d=.9,p=.8,h=new s.LinearScale;h.domain=[l.reduce((y,M)=>Math.min(y,M),1/0)*p,l.reduce((y,M)=>Math.max(y,M),0)*c],h.range=[o-1.5*a,a];const g=new s.CategoryScale;g.domain=l.map((y,M)=>M),g.range=[a,o-a],g.paddingInner=.4,g.paddingOuter=.2;const m=Math.round(g.bandwidth),v=Math.round(g.bandwidth/2);this.boxPlotGroups=l.map((y,M)=>{const[C,x,w,S]=[y*p,y*d,y*u,y*c],A=Math.round(h.convert(w)),z=Math.round(g.convert(M)),O=Math.round(z+m),T=Math.round(h.convert(x)),I=Math.round(h.convert(C)),P=Math.round(h.convert(y)),N=Math.round(h.convert(S)),F=z+v,L=new s.Group,W=new s.Rect,H=new s.Line,j=new s.Line,G=new s.Line,q=new s.Line,$=new s.Line;return W.x=z,W.y=A,W.width=m,W.height=T-A,W.strokeWidth=1,W.strokeOpacity=.75,W.crisp=!0,this.setLineProperties(H,z,O,P,P),this.setLineProperties(j,F,F,N,A),this.setLineProperties(G,F,F,I,T),this.setLineProperties(q,z,O,N,N),this.setLineProperties($,z,O,I,I),L.append([W,H,j,G,q,$]),L}),this.updateColors(n,r,i),this.root.append(this.boxPlotGroups)}updateColors(e,t,n){const{_Theme:r}=this.agChartsExports;this.boxPlotGroups.forEach((i,o)=>{for(const a of i.children()){const s=e[o%e.length];a.fill=n?s:r.resolveOperation({$mix:[s,{$ref:"backgroundColor"},.7]}),a.stroke=t[o%t.length]}})}setLineProperties(e,t,n,r,i){e.x1=t,e.x2=n,e.y1=r,e.y2=i,e.strokeOpacity=.75}},unn={chartType:"boxPlot",miniChart:cnn},dnn=class extends b3{constructor(e,t,n,r,i){super(e,t,"treemapTooltip");const{size:o,padding:a,agChartsExports:{_Scene:s}}=this,l=[[1,1],[3,2,1]],u=l.length%2===0?.3:.2,d=[a,o-a],p=l.length,h=p*(p+1)/2,g=u/(p-1),m=d[1]-d[0],v=m-u;let y=d[0];this.rects=l.reduce((C,x,w)=>{C??(C=[]);const S=(p-w)/h,A=v*S,z=x.length,O=x.reduce((F,L)=>F+=L,0),T=u/(z-1||1),I=z>1?m-u:m;let P=d[0];const N=x.map(F=>{const L=new s.Rect,W=I*F/O;return L.x=y,L.y=P,L.width=A,L.height=W,L.strokeWidth=.75,L.crisp=!0,P+=W+T,L});return y+=A+g,C.push(...N),C},[]),this.updateColors(n,r,i);const M=new s.Group;M.setClipRect(new s.BBox(a,a,o-a,o-a)),M.append(this.rects),this.root.append(M)}updateColors(e,t,n){const{_Theme:r}=this.agChartsExports;this.rects.forEach((i,o)=>{i.fill=e[o%t.length],i.stroke=n?t[o%t.length]:r.resolveOperation({$ref:"backgroundColor"})})}},pnn={chartType:"treemap",miniChart:dnn},hnn=class extends vD{constructor(e,t,n,r){super(e,t,"sunburstTooltip"),this.data=[[[],[]],[[],[]],[[],[]]],this.angleOffset=-Math.PI/2,this.innerRadiusRatio=0,this.showRadiusAxisLine=!1,this.showAngleAxisLines=!1;const{data:i,size:o,padding:a,angleOffset:s,innerRadiusRatio:l,agChartsExports:{_Scene:c}}=this,u=(o-a*2)/2,d=[s+0,s+2*Math.PI],p=Math.abs(d[1]-d[0]),h=[u*l,u],g=Math.abs(h[1]-h[0]);let m=0;const v=(w,S)=>{w.forEach(A=>{const z=S+1;m=Math.max(m,z),v(A,z)})};v(i,0);const y=g/m,M=this.size/2,C=d[0];this.series=[];const x=(w,S,A,z,O)=>{if(!Array.isArray(w))return;const I=S+1;let P=A;w.forEach((N,F,L)=>{let W=O;W||(W=new c.Group,this.series.push(W));const H=h[0]+S*y,j=h[0]+I*y,G=1/L.length,q=P,$=q+z*G,U=new c.Sector;U.centerX=M,U.centerY=M,U.innerRadius=H,U.outerRadius=j,U.startAngle=q,U.endAngle=$,U.stroke=void 0,U.strokeWidth=0,U.inset=.75,P=$,W.append(U),x(N,I,q,Math.abs($-q),W)})};x(i,0,C,p),this.root.append(this.series),this.updateColors(n,r)}updateColors(e,t){this.series.forEach((n,r)=>{for(const i of n.children())i.fill=e[r%e.length],i.stroke=t[r%t.length]})}},fnn={chartType:"sunburst",miniChart:hnn},gnn=class extends b3{constructor(e,t,n,r,i){super(e,t,"heatmapTooltip");const{size:o,padding:a,agChartsExports:{_Scene:s}}=this,l=3,c=Array.from({length:l},(v,y)=>Array.from({length:l},(M,C)=>C)),u=c.map((v,y)=>y),d=new s.CategoryScale;d.domain=u,d.range=[a,o-a],d.paddingInner=.01,d.paddingOuter=.1;const p=new s.CategoryScale;p.domain=u,p.range=[a,o-a],p.paddingInner=.01,p.paddingOuter=.1;const h=d.bandwidth??0,g=p.bandwidth??0;this.rects=c.reduce((v,y,M)=>{v??(v=[]);const C=y.map((x,w)=>{const S=new s.Rect;return S.x=d.convert(M),S.y=p.convert(w),S.width=h,S.height=g,S.strokeWidth=0,S.crisp=!0,S});return v.push(...C),v},[]),this.updateColors(n,r,i);const m=new s.Group;m.setClipRect(new s.BBox(a,a,o-a,o-a)),m.append(this.rects),this.root.append(m)}updateColors(e,t,n){const{_Theme:r,_Util:i}=this.agChartsExports,o=n?[e[0],e[1]]:r.resolveOperation({$palette:"divergingColors"}),a=n?t[0]:r.resolveOperation({$ref:"backgroundColor"}),s=i.interpolateColor(o[0],o[1]);this.rects.forEach((l,c)=>{l.fill=s(c*.2),l.stroke=a})}},mnn={chartType:"heatmap",miniChart:gnn},vnn=class extends v1{constructor(e,t,n,r,i){super(e,t,"waterfallTooltip"),this.data=[4,3,-3,6,-3],this.bars=this.createWaterfall(this.root,this.data,this.size,this.padding,"vertical").bars,this.updateColors(n,r,i)}updateColors(e,t,n){const{data:r,agChartsExports:{_Theme:i}}=this,o={fill:n?e[0]:i.resolveOperation({$palette:"altUp.fill"}),stroke:n?t[0]:i.resolveOperation({$palette:"altUp.stroke"})},a={fill:n?e[1]:i.resolveOperation({$palette:"altDown.fill"}),stroke:n?t[1]:i.resolveOperation({$palette:"altDown.stroke"})};this.bars.forEach((s,l)=>{const c=r[l]>=0;s.fill=c?o.fill:a.fill,s.stroke=c?o.stroke:a.stroke})}createWaterfall(e,t,n,r,i){const o=2*r,{processedData:a,min:s,max:l}=BK(t.map(C=>[C])),c=a.reduce((C,x)=>C.concat(x),[]),{_Scene:u}=this.agChartsExports,d=new u.LinearScale;d.domain=[Math.min(s,0),l],d.range=[n-o,o];const p=new u.CategoryScale;p.domain=t.map((C,x)=>x),p.range=[r,n-r],p.paddingInner=.2,p.paddingOuter=.3;const h=p.bandwidth,g=new u.Path;g.stroke="#575757",g.strokeWidth=0;const m=Math.floor(g.strokeWidth)%2/2,v=g.path;v.clear();const y=i==="horizontal",M=c.map((C,x)=>{const w=x>0?c[x-1]:0,A=t[x]>0,z=Math.round(d.convert(C)),O=Math.round(d.convert(w)),T=(A?z:O)-m,I=(A?O:z)+m,P=Math.abs(I-T),N=p.convert(x),F=new u.Rect;F.x=y?T:N,F.y=y?N:T,F.width=y?P:h,F.height=y?h:P,F.strokeWidth=0,F.crisp=!0;const L=z+m,W=O+m;if(x>0){const G=y?W:F.x,q=y?F.y:W;v.lineTo(G,q)}const H=y?L:F.x,j=y?F.y:L;return v.moveTo(H,j),F});return e.append([g,...M]),{bars:M}}},bnn={chartType:"waterfall",miniChart:vnn},ynn=class extends v1{constructor(e,t,n,r){super(e,t,"columnLineComboTooltip"),this.columnData=[3,4],this.lineData=[[5,4,6,5,4]];const{root:i,columnData:o,lineData:a,size:s,padding:l}=this;this.columns=w6({stacked:!1,data:o,size:s,padding:l,xScaleDomain:[0,1],yScaleDomain:[0,4],xScalePadding:.5,agChartsExports:t}),i.append(this.columns),this.lines=rMe(t,i,a,s,l),this.updateColors(n,r)}updateColors(e,t){this.columns.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]}),this.lines.forEach((n,r)=>{n.stroke=e[r+2]})}},Mnn={chartType:"columnLineCombo",miniChart:ynn},Cnn=class extends v1{constructor(e,t,n,r){super(e,t,"areaColumnComboTooltip"),this.columnData=[3,4.5],this.areaData=[[5,4,6,5,4]];const{root:i,columnData:o,areaData:a,size:s,padding:l,agChartsExports:{_Scene:c}}=this;this.columns=w6({stacked:!1,data:o,size:s,padding:l,xScaleDomain:[0,1],yScaleDomain:[0,6],xScalePadding:.5,agChartsExports:t});const u=new c.CategoryScale;u.range=[l,s-l],u.domain=[0,1,2,3,4],u.paddingInner=1,u.paddingOuter=0;const d=new c.LinearScale;d.range=[s-l,l],d.domain=[0,6];const p=[],h=d.convert(0),g=u.convert(0);a.forEach((y,M)=>{const C=p[M]||(p[M]=[]);y.forEach((w,S)=>{const A=w,z=S,O=u.convert(z),T=d.convert(A);C[S]={x:O,y:T}});const x=u.convert(y.length-1);p[M].push({x,y:h},{x:g,y:h})}),this.areas=p.map(y=>{const M=new c.Path;M.strokeWidth=0,M.fillOpacity=.8;const C=M.path;return y.forEach((x,w)=>C[w>0?"lineTo":"moveTo"](x.x,x.y)),M});const m=new c.Group;m.setClipRect(new c.BBox(l,l,s-l*2,s-l*2));const v=new c.Group;v.setClipRect(new c.BBox(l,l,s-l*2,s-l*2)),m.append(this.areas),v.append(this.columns),i.append(m),i.append(v),this.updateColors(n,r)}updateColors(e,t){this.areas.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]}),this.columns.forEach((n,r)=>{n.fill=e[r+1],n.stroke=t[r+1]})}},xnn={chartType:"areaColumnCombo",miniChart:Cnn},wnn=class extends b3{constructor(e,t,n,r){super(e,t,"customComboTooltip"),this.columnData=[3,4],this.lineData=[[5,4,6,5,4]];const{root:i,columnData:o,lineData:a,size:s,padding:l,agChartsExports:{_Scene:c}}=this;this.columns=w6({stacked:!1,data:o,size:s,padding:l,xScaleDomain:[0,1],yScaleDomain:[0,4],xScalePadding:.5,agChartsExports:t}),i.append(this.columns),this.lines=rMe(this.agChartsExports,i,a,s,l);const u="grey",d=3,p=new c.Line;p.x1=l,p.y1=l,p.x2=l,p.y2=s-l+d,p.stroke=u;const h=new c.Line;h.x1=l-d+1,h.y1=s-l,h.x2=s-l+1,h.y2=s-l,h.stroke=u;const g=new c.Path;this.buildPenIconPath(g),g.fill="whitesmoke",g.stroke="darkslategrey",g.strokeWidth=1,i.append([h,p,g]),this.updateColors(n,r)}updateColors(e,t){this.columns.forEach((n,r)=>{n.fill=e[r],n.stroke=t[r]}),this.lines.forEach((n,r)=>{n.stroke=e[r+2]})}buildPenIconPath(e){const{path:t}=e;t.moveTo(25.76,43.46),t.lineTo(31.27,48.53),t.moveTo(49.86,22),t.lineTo(49.86,22),t.cubicCurveTo(49.01994659053345,21.317514933510974,47.89593834348529,21.09645997825817,46.86,21.41),t.lineTo(46.86,21.41),t.cubicCurveTo(45.55460035985361,21.77260167850787,44.38777081121966,22.517979360321792,43.51,23.55),t.lineTo(25.51,43.8),t.lineTo(25.43,43.89),t.lineTo(23.01,51.89),t.lineTo(22.83,52.46),t.lineTo(31.02,48.86),t.lineTo(49.02,28.52),t.lineTo(49.02,28.52),t.cubicCurveTo(49.940716461596224,27.521914221246085,50.54302631059587,26.2720342455763,50.75,24.93),t.lineTo(50.75,24.93),t.cubicCurveTo(50.95363374988308,23.866379846512814,50.62080640232334,22.77066734274871,49.86,22),t.closePath(),t.moveTo(41.76,25.5),t.lineTo(47.34,30.5),t.moveTo(40.74,26.65),t.lineTo(46.25,31.71)}},Snn={chartType:"customCombo",miniChart:wnn},KRe={columnGroup:{column:{range:!0,pivot:!0,enterprise:!1,icon:vtn},stackedColumn:{range:!0,pivot:!0,enterprise:!1,icon:ytn},normalizedColumn:{range:!0,pivot:!0,enterprise:!1,icon:xtn}},barGroup:{bar:{range:!0,pivot:!0,enterprise:!1,icon:Stn},stackedBar:{range:!0,pivot:!0,enterprise:!1,icon:Otn},normalizedBar:{range:!0,pivot:!0,enterprise:!1,icon:Etn}},pieGroup:{pie:{range:!0,pivot:!0,enterprise:!1,icon:Itn},donut:{range:!0,pivot:!0,enterprise:!1,icon:URe},doughnut:{range:!0,pivot:!0,enterprise:!1,icon:URe}},lineGroup:{line:{range:!0,pivot:!0,enterprise:!1,icon:Ptn},stackedLine:{range:!0,pivot:!0,enterprise:!1,icon:ktn},normalizedLine:{range:!0,pivot:!0,enterprise:!1,icon:Ntn}},scatterGroup:{scatter:{range:!0,pivot:!0,enterprise:!1,icon:Wtn},bubble:{range:!0,pivot:!0,enterprise:!1,icon:Btn}},areaGroup:{area:{range:!0,pivot:!0,enterprise:!1,icon:jtn},stackedArea:{range:!0,pivot:!0,enterprise:!1,icon:Htn},normalizedArea:{range:!0,pivot:!0,enterprise:!1,icon:$tn}},polarGroup:{radarLine:{range:!0,pivot:!1,enterprise:!0,icon:enn},radarArea:{range:!0,pivot:!1,enterprise:!0,icon:nnn},nightingale:{range:!0,pivot:!1,enterprise:!0,icon:inn},radialColumn:{range:!0,pivot:!1,enterprise:!0,icon:Ktn},radialBar:{range:!0,pivot:!1,enterprise:!0,icon:Ztn}},statisticalGroup:{boxPlot:{range:!0,pivot:!1,enterprise:!0,icon:unn},histogram:{range:!0,pivot:!1,enterprise:!1,icon:Xtn},rangeBar:{range:!0,pivot:!1,enterprise:!0,icon:ann},rangeArea:{range:!0,pivot:!1,enterprise:!0,icon:lnn}},hierarchicalGroup:{treemap:{range:!0,pivot:!0,enterprise:!0,icon:pnn},sunburst:{range:!0,pivot:!0,enterprise:!0,icon:fnn}},specializedGroup:{heatmap:{range:!0,pivot:!1,enterprise:!0,icon:mnn},waterfall:{range:!0,pivot:!1,enterprise:!0,icon:bnn}},combinationGroup:{columnLineCombo:{range:!0,pivot:!0,enterprise:!1,icon:Mnn},areaColumnCombo:{range:!0,pivot:!0,enterprise:!1,icon:xnn},customCombo:{range:!0,pivot:!0,enterprise:!1,icon:Snn}},funnelGroup:{funnel:{range:!0,pivot:!1,enterprise:!0,icon:ctn},coneFunnel:{range:!0,pivot:!1,enterprise:!0,icon:ptn},pyramid:{range:!0,pivot:!1,enterprise:!0,icon:gtn}}},Ann={columnGroup:["column","stackedColumn","normalizedColumn"],barGroup:["bar","stackedBar","normalizedBar"],pieGroup:["pie","donut"],lineGroup:["line","stackedLine","normalizedLine"],areaGroup:["area","stackedArea","normalizedArea"],scatterGroup:["scatter","bubble"],polarGroup:["radarLine","radarArea","nightingale","radialColumn","radialBar"],statisticalGroup:["boxPlot","histogram","rangeBar","rangeArea"],hierarchicalGroup:["treemap","sunburst"],specializedGroup:["heatmap","waterfall"],funnelGroup:["funnel","coneFunnel","pyramid"],combinationGroup:["columnLineCombo","areaColumnCombo","customCombo"]},Onn=class extends Gt{constructor(e,t,n,r,i=Ann){super('<div class="ag-chart-settings-mini-wrapper"></div>'),this.wrappers=new Map,this.chartController=e,this.fills=t,this.strokes=n,this.isCustomTheme=r,this.chartGroups={...i}}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){!this.chartController.customComboExists()&&this.chartGroups.combinationGroup&&(this.chartGroups.combinationGroup=this.chartGroups.combinationGroup.filter(o=>o!=="customCombo"));const e=this.getGui(),t=this.chartController.isEnterprise(),n=this.chartController.isPivotChart(),r=!n,i=Object.keys(this.chartGroups).map(o=>{const a=o in KRe?KRe[o]:void 0;if(!a)return ut(148,{group:o}),null;const l=(this.chartGroups[o]??[]).map(c=>{const u=c in a?a[c]:void 0;return u?!t&&u.enterprise?null:r&&u.range||n&&u.pivot?u:null:(ut(149,{group:o,chartType:c}),null)}).filter(c=>c!=null);return l.length===0?null:{label:this.chartTranslation.translate(o),items:l}}).filter(o=>o!=null);for(const{label:o,items:a}of i){const s=this.createBean(new Gy({title:o,suppressEnabledCheckbox:!0,enabled:!0,suppressOpenCloseIcons:!0,cssIdentifier:"charts-settings",direction:"horizontal",suppressKeyboardNavigation:!0}));for(const l of a){const{miniChart:c,chartType:u}=l.icon,d=document.createElement("div");d.classList.add("ag-chart-mini-thumbnail"),d.setAttribute("tabindex","0"),d.setAttribute("role","button");const p=u,h=()=>{this.chartController.setChartType(p),this.updateSelectedMiniChart()};this.addManagedListeners(d,{click:h,keydown:g=>{(g.key==Qe.ENTER||g.key===Qe.SPACE)&&(g.preventDefault(),h())}}),this.wrappers.set(p,d),this.createBean(new c(d,this.beans.agChartsExports,this.fills,this.strokes,this.isCustomTheme)),s.addItem(d)}e.appendChild(s.getGui())}this.updateSelectedMiniChart()}updateSelectedMiniChart(){const e=this.chartController.getChartType();this.wrappers.forEach((t,n)=>{const r=n===e;t.classList.toggle("ag-selected",r);const i=this.chartTranslation.translate(Zye(n)),o=r?`${i}. ${this.chartTranslation.translate("ariaChartSelected")}`:i;Es(t,o)})}destroy(){this.wrappers.clear(),super.destroy()}},znn=class extends Gt{constructor(e){super(`<div class="ag-chart-settings-wrapper">
            <div data-ref="eMiniChartsContainer" class="ag-chart-settings-mini-charts-container ag-scrollable-container"></div>
            <div data-ref="eNavBar" class="ag-chart-settings-nav-bar">
                <div data-ref="ePrevBtn" class="ag-chart-settings-prev">
                    <button type="button" class="ag-button ag-chart-settings-prev-button"></button>
                </div>
                <div data-ref="eCardSelector" class="ag-chart-settings-card-selector"></div>
                <div data-ref="eNextBtn" class="ag-chart-settings-next">
                    <button type="button" class="ag-button ag-chart-settings-next-button"></button>
                </div>
            </div>
        </div>`),this.chartController=e,this.eMiniChartsContainer=at,this.eNavBar=at,this.eCardSelector=at,this.ePrevBtn=at,this.eNextBtn=at,this.miniChartsContainers=[],this.cardItems=[],this.activePaletteIndex=0,this.palettes=[],this.themes=[]}postConstruct(){this.resetPalettes(),this.ePrevBtn.insertAdjacentElement("afterbegin",er("chartsThemePrevious",this.beans)),this.eNextBtn.insertAdjacentElement("afterbegin",er("chartsThemeNext",this.beans)),this.addManagedElementListeners(this.ePrevBtn,{click:()=>this.setActivePalette(this.getPrev(),"left")}),this.addManagedElementListeners(this.eNextBtn,{click:()=>this.setActivePalette(this.getNext(),"right")});const e=()=>this.resetPalettes(!0);this.addManagedListeners(this.chartController,{chartTypeChanged:e,chartApiUpdate:e}),this.scrollSelectedIntoView()}scrollSelectedIntoView(){setTimeout(()=>{const e=r=>!r.getGui().classList.contains("ag-hidden"),n=this.miniChartsContainers.find(e).getGui().querySelector(".ag-selected");if(n){const r=n.offsetParent;r&&this.eMiniChartsContainer.scrollTo(0,r.offsetTop)}},250)}resetPalettes(e){const t=this.chartController.getPalettes(),n=this.gos.get("chartToolPanelsDef")?.settingsPanel?.chartGroupsDef;if(yd(t,this.palettes)&&!e||this.isAnimating)return;this.palettes=t,this.themes=this.chartController.getThemeNames(),this.activePaletteIndex=this.themes.findIndex(i=>i===this.chartController.getChartThemeName()),this.cardItems=[],Xi(this.eCardSelector),this.destroyMiniCharts();const{themes:r}=this;this.palettes.forEach((i,o)=>{const a=this.activePaletteIndex===o,{fills:s=[],strokes:l=[]}=i,c=r[o],u=!Jye(c,this.beans.agChartsExports._Theme),d=this.createBean(new Onn(this.chartController,s,l,u,n));this.miniChartsContainers.push(d),this.eMiniChartsContainer.appendChild(d.getGui()),this.addCardLink(o),a?d.updateSelectedMiniChart():d.setDisplayed(!1)}),Nn(this.eNavBar,this.palettes.length>1),h$(this.cardItems[this.activePaletteIndex],"ag-selected","ag-not-selected")}addCardLink(e){const t=document.createElement("div");t.classList.add("ag-chart-settings-card-item"),this.addManagedElementListeners(t,{click:()=>{this.setActivePalette(e,e<this.activePaletteIndex?"left":"right")}}),this.eCardSelector.appendChild(t),this.cardItems.push(t)}getPrev(){let e=this.activePaletteIndex-1;return e<0&&(e=this.palettes.length-1),e}getNext(){let e=this.activePaletteIndex+1;return e>=this.palettes.length&&(e=0),e}setActivePalette(e,t){if(this.isAnimating||this.activePaletteIndex===e)return;h$(this.cardItems[e],"ag-selected","ag-not-selected");const n=this.miniChartsContainers[this.activePaletteIndex],r=n.getGui(),i=this.miniChartsContainers[e],o=i.getGui();n.updateSelectedMiniChart(),i.updateSelectedMiniChart();const a=t==="left"?-1:1,s=o.style.left=`${fz(this.getGui())*a}px`;this.activePaletteIndex=e,this.isAnimating=!0;const l="ag-animating";i.setDisplayed(!0),n.addCss(l),i.addCss(l),this.chartController.setChartThemeName(this.themes[e]),window.setTimeout(()=>{r.style.left=`${-parseFloat(s)}px`,o.style.left="0px"},0),window.setTimeout(()=>{this.isAnimating=!1,n.removeCss(l),i.removeCss(l),n.setDisplayed(!1)},300)}destroyMiniCharts(){Xi(this.eMiniChartsContainer),this.miniChartsContainers=this.destroyBeans(this.miniChartsContainers)}destroy(){this.destroyMiniCharts(),super.destroy()}},Tnn="data",Enn="format",Rnn=class extends Gt{constructor(e,t){super(),this.panels=e,this.chartMenuContext=t,this.tabs=[]}wireBeans(e){this.chartTranslation=e.chartTranslation}postConstruct(){this.panels.forEach(e=>{const t=e.replace("chart","").toLowerCase(),n=this.createPanel(t),r=this.createTab(e,t,n);this.tabs.push(r),this.addDestroyFunc(()=>this.destroyBean(n))}),this.tabbedLayout=new Yrt({items:this.tabs,cssClass:"ag-chart-tabbed-menu",keepScrollPosition:!0,suppressFocusBodyOnOpen:!0,suppressTrapFocus:!0,enableCloseButton:!0,closeButtonAriaLabel:this.chartTranslation.translate("ariaChartMenuClose"),onCloseClicked:()=>{this.eventSource?.focus({preventScroll:!0}),this.dispatchLocalEvent({type:"closed"})}}),this.createBean(this.tabbedLayout)}createTab(e,t,n){const r=Nr({tag:"div",cls:`ag-chart-tab ag-chart-${t}`});this.createBean(n),r.appendChild(n.getGui());const i=this.chartTranslation.translate(t);return{title:Nr({tag:"div",children:i}),titleLabel:i,bodyPromise:Dr.resolve(r),getScrollableContainer:()=>r.querySelector(".ag-scrollable-container")||r,name:e}}showTab(e){const t=this.tabs[e];this.tabbedLayout.showItem(t)}getGui(){return this.tabbedLayout&&this.tabbedLayout.getGui()}showMenu(e,t){this.eventSource=e,t||this.tabbedLayout?.focusHeader(!0)}destroy(){this.parentComponent&&this.parentComponent.isAlive()&&this.destroyBean(this.parentComponent),super.destroy()}createPanel(e){switch(e){case Tnn:return new Ten(this.chartMenuContext);case Enn:return new Jen(this.chartMenuContext);default:return new znn(this.chartMenuContext.chartController)}}},Inn=class extends Gt{constructor(e,t,n){super('<div class="ag-chart-menu-wrapper"></div>'),this.eChartContainer=e,this.eMenuPanelContainer=t,this.chartMenuContext=n,this.buttons={chartLink:{iconName:"linked",callback:()=>this.chartMenuSvc.toggleLinked(this.chartMenuContext)},chartUnlink:{iconName:"unlinked",callback:()=>this.chartMenuSvc.toggleLinked(this.chartMenuContext)},chartDownload:{iconName:"chartsDownload",callback:()=>this.chartMenuSvc.downloadChart(this.chartMenuContext)},chartMenu:{iconName:"chartsMenu",callback:r=>this.showMenuList(r)}},this.panels=[],this.menuVisible=!1,this.chartController=n.chartController}wireBeans(e){this.chartMenuSvc=e.chartMenuSvc,this.chartMenuListFactory=e.chartMenuListFactory,this.environment=e.environment}postConstruct(){this.chartToolbar=this.createManagedBean(new ven),this.getGui().appendChild(this.chartToolbar.getGui()),this.refreshToolbarAndPanels(),this.addManagedEventListeners({chartCreated:e=>{e.chartId===this.chartController.getChartId()&&this.gos.get("chartToolPanelsDef")?.defaultToolPanel&&this.showMenu({panel:this.defaultPanel,suppressFocus:!0})}}),this.addManagedListeners(this.chartController,{chartLinkedChanged:this.refreshToolbarAndPanels.bind(this)}),this.refreshMenuClasses(),this.addManagedListeners(this.chartController,{chartApiUpdate:this.refreshToolbarAndPanels.bind(this)})}isVisible(){return this.menuVisible}getExtraPaddingDirections(){return["chartMenu","chartLink","chartUnlink","chartDownload"].some(e=>this.chartToolbarOptions.includes(e))?["top"]:[]}refreshToolbarAndPanels(){this.initToolbarOptionsAndPanels(),this.updateToolbar()}initToolbarOptionsAndPanels(){const{panels:e,defaultPanel:t}=this.chartMenuSvc.getChartToolPanels(this.chartController);this.panels=e,this.defaultPanel=t,this.chartToolbarOptions=this.chartMenuSvc.getChartToolbarOptions()}updateToolbar(){const e=this.chartToolbarOptions.map(t=>{const{iconName:n,callback:r}=this.buttons[t];return{buttonName:t,iconName:n,callback:r}});this.chartToolbar.updateParams({buttons:e})}createMenuPanel(e){const t=this.menuPanel=this.createBean(new xrt({height:"100%",closable:!0,hideTitleBar:!0,cssIdentifier:"chart-menu"}));return t.setParentComponent(this),this.eMenuPanelContainer.appendChild(t.getGui()),this.tabbedMenu=this.createBean(new Rnn(this.panels,this.chartMenuContext)),this.addManagedListeners(this.tabbedMenu,{closed:()=>{this.hideMenu()}}),this.addManagedListeners(t,{destroyed:()=>this.destroyBean(this.tabbedMenu)}),new Dr(n=>{window.setTimeout(()=>{t.setBodyComponent(this.tabbedMenu),this.tabbedMenu.showTab(e),n(t)},100)})}showContainer(e,t){this.menuPanel&&(this.menuVisible=!0,this.refreshMenuClasses(),this.tabbedMenu.showMenu(e,t))}showMenu(e){const{panel:t,eventSource:n,suppressFocus:r}=e??{};if(this.menuPanel&&!t)this.showContainer(n,r);else{const i=t||this.defaultPanel;let o=this.panels.indexOf(i);o<0&&(ut(143,{panel:t}),o=this.panels.indexOf(this.defaultPanel)),this.menuPanel?(this.tabbedMenu.showTab(o),this.showContainer(n,r)):this.createMenuPanel(o).then(()=>this.showContainer(n,r))}}hideMenu(){this.menuVisible=!1,this.refreshMenuClasses()}refreshMenuClasses(){this.eChartContainer.classList.toggle("ag-chart-menu-visible",this.menuVisible),this.eChartContainer.classList.toggle("ag-chart-menu-hidden",!this.menuVisible)}showMenuList(e){this.chartMenuListFactory.showMenuList({eventSource:e,showMenu:()=>this.showMenu({eventSource:e}),chartMenuContext:this.chartMenuContext})}destroy(){super.destroy(),this.menuPanel&&this.menuPanel.isAlive()&&this.destroyBean(this.menuPanel),this.tabbedMenu&&this.tabbedMenu.isAlive()&&this.destroyBean(this.tabbedMenu)}},sot=["number","category","time","grouped-category"],Pnn=["angle-category","angle-number","radius-category","radius-number"],Dnn=[...sot,...Pnn],knn=class extends dt{constructor(e){super(),this.chartController=e}getChartThemeOverridesProxy(){return{getValue:e=>this.getChartOption(e),setValue:(e,t)=>this.setChartThemeOverrides([{expression:e,value:t}]),setValues:e=>this.setChartThemeOverrides(e)}}getAxisThemeOverridesProxy(){return{getValue:e=>this.getAxisProperty(e),setValue:(e,t)=>this.setAxisThemeOverrides([{expression:e,value:t}]),setValues:e=>this.setAxisThemeOverrides(e)}}getCartesianAxisOptionsProxy(e){return{getValue:t=>this.getCartesianAxisProperty(e,t),setValue:(t,n)=>this.setCartesianAxisOptions(e,[{expression:t,value:n}]),setValues:t=>this.setCartesianAxisOptions(e,t)}}getCartesianAxisThemeOverridesProxy(e){return{getValue:t=>this.getCartesianAxisProperty(e,t),setValue:(t,n)=>this.setCartesianAxisThemeOverrides(e,[{expression:t,value:n}]),setValues:t=>this.setCartesianAxisThemeOverrides(e,t)}}getCartesianAxisAppliedThemeOverridesProxy(e){return{getValue:t=>this.getCartesianAxisThemeOverride(e,t==="*"?null:t),setValue:(t,n)=>this.setCartesianAxisThemeOverrides(e,[{expression:t==="*"?null:t,value:n}]),setValues:t=>this.setCartesianAxisThemeOverrides(e,t)}}getSeriesOptionsProxy(e){return{getValue:(t,n)=>this.getSeriesOption(e(),t,n),setValue:(t,n)=>this.setSeriesOptions(e(),[{expression:t,value:n}]),setValues:t=>this.setSeriesOptions(e(),t)}}getPersistedChartThemeOverrides(e,t,n,r){const i=this.getRetainedChartThemeOverrideKeys(n,r),o=this.getRetainedChartAxisThemeOverrideKeys(null,n,r),a=this.createChartOptions();for(const s of i){const l=this.retrieveChartOptionsThemeOverride(e,n,s);l!==void 0&&this.assignChartOptionsThemeOverride(a,r,s,l)}return t&&this.assignPersistedAxisOverrides({existingAxes:t,retainedChartAxisThemeOverrideKeys:o,existingChartOptions:e,targetChartOptions:a,existingChartType:n,targetChartType:r}),a.theme.overrides}assignPersistedAxisOverrides(e){const{existingAxes:t,retainedChartAxisThemeOverrideKeys:n,existingChartOptions:r,targetChartOptions:i,existingChartType:o,targetChartType:a}=e;for(const{expression:s,targetAxisTypes:l}of n)for(const c of t.map(u=>u.type)){const u=this.retrieveChartOptionsThemeOverride(r,o,["axes",c,s].join("."));if(u!==void 0)for(const d of l)this.assignChartOptionsThemeOverride(i,a,["axes",d,s].join("."),u)}}getRetainedChartThemeOverrideKeys(e,t){const n=["animation"],r=["zoom","navigator"],i=((o,a)=>{const s=new Array;return ix(Us(o))&&ix(Us(a))&&s.push(...r),s})(e,t);return[...n,...i]}getRetainedChartAxisThemeOverrideKeys(e,t,n){return ix(Us(t))&&ix(Us(n))?this.getRetainedCartesianAxisThemeOverrideKeys(e).map(i=>({expression:i,targetAxisTypes:sot})):[]}getRetainedCartesianAxisThemeOverrideKeys(e){const t=e==="xAxis"?["",".top",".bottom"]:e==="yAxis"?["",".left",".right"]:["",".left",".right",".top",".bottom"],n=["crosshair"],r=new Array;for(const i of n)for(const o of t)r.push(`${i}${o}`);return r}getChartOption(e){return $A(this.getChart(),e,void 0)}setChartThemeOverrides(e){const t=this.getChartType(),n=this.createChartOptions();for(const{expression:r,value:i}of e)this.assignChartOptionsThemeOverride(n,t,r,i);this.applyChartOptions(n)}applyChartOptions(e,t){if(Object.keys(e).length===0)return;this.updateChart(e),!t?.silent&&this.raiseChartOptionsChangedEvent()}awaitChartOptionUpdate(e){this.chartController.getChartProxy().getChart().waitForUpdate().then(()=>e()).catch(n=>pi(108,{e:n}))}getAxisProperty(e){return $A(this.getChart().axes?.[0],e,void 0)}setAxisThemeOverrides(e){const t=this.getChart(),n=this.getChartType(),r=this.createChartOptions();for(const{expression:i,value:o}of e){const a=t.axes?.filter(s=>{const l=i.split(".");let c=s;for(const u of l){if(!(u in c))return!1;c=c[u]}return!0});if(a)for(const s of a)this.isValidAxisType(s)&&this.assignChartAxisThemeOverride(r,n,s.type,null,i,o)}this.applyChartOptions(r)}getCartesianAxisProperty(e,t){const n=this.getChartAxes(),r=this.getCartesianAxis(n,e);return $A(r,t,void 0)}getCartesianAxisThemeOverride(e,t){const n=this.getChartAxes(),r=this.getCartesianAxis(n,e);if(!r||!this.isValidAxisType(r))return;const i=this.getChartType(),o=this.getChart().getOptions();return this.retrieveChartAxisThemeOverride(o,i,r.type,e==="yAxis"?["left","right"]:["bottom","top"],t)}setCartesianAxisThemeOverrides(e,t){const n=this.getChartAxes(),r=this.getCartesianAxis(n,e);if(!r||!this.isValidAxisType(r))return;const i=this.getChartType(),o=this.createChartOptions();for(const{expression:a,value:s}of t)this.assignChartAxisThemeOverride(o,i,r.type,e==="yAxis"?["left","right"]:["bottom","top"],a,s);this.applyChartOptions(o)}setCartesianAxisOptions(e,t){this.updateCartesianAxisOptions(e,(n,r,i)=>{const o=r.indexOf(i);for(const{expression:a,value:s}of t)this.assignChartOption(n,`axes.${o}.${a}`,s)})}updateCartesianAxisOptions(e,t){const n=this.getChart().getOptions(),r="axes"in n?n.axes:void 0;if(!n||!r)return;const i=this.getChartAxes(),o=this.getCartesianAxis(i,e);if(!o)return;const a=this.createChartOptions();a.axes=r,t(a,i,o,n),this.applyChartOptions(a)}setCartesianCategoryAxisType(e,t){this.updateCartesianAxisOptions(e,(n,r,i,o)=>{const a=this.getChartType();this.assignPersistedAxisOverrides({existingAxes:[i],retainedChartAxisThemeOverrideKeys:this.getRetainedChartAxisThemeOverrideKeys(e,a,a),existingChartOptions:o,targetChartOptions:n,existingChartType:a,targetChartType:a}),this.assignChartOption(n,"axes.0.type",t),this.chartController.setCategoryAxisType(t)})}getCartesianAxis(e,t){if(!(e.length<2))switch(t){case"xAxis":return e[0].direction==="x"?e[0]:e[1];case"yAxis":return e[1].direction==="y"?e[1]:e[0]}}getSeriesOption(e,t,n){const r=this.getChart().series.find(i=>Lnn(e,i));return $A(n?r:r?.properties.toJson(),t,void 0)}setSeriesOptions(e,t){const n=this.createChartOptions();for(const{expression:r,value:i}of t)this.assignChartOptionsSeriesThemeOverride(n,e,`series.${r}`,i);this.applyChartOptions(n)}getPairedMode(){return this.chartController.getChartProxy().isPaired()}setPairedMode(e){this.chartController.getChartProxy().setPaired(e)}getChartAxes(){return this.getChart().axes??[]}retrieveChartAxisThemeOverride(e,t,n,r,i){if(r)for(const o of r){const a=this.retrieveChartOptionsThemeOverride(e,t,["axes",n,o,...i?[i]:[]].join("."));if(a!==void 0)return a}else return this.retrieveChartOptionsThemeOverride(e,t,["axes",n,...i?[i]:[]].join("."))}assignChartAxisThemeOverride(e,t,n,r,i,o){if(r)for(const a of r)this.assignChartOptionsThemeOverride(e,t,["axes",n,a,...i?[i]:[]].join("."),o);else this.assignChartOptionsThemeOverride(e,t,["axes",n,...i?[i]:[]].join("."),o)}isValidAxisType(e){return Dnn.includes(e.type)}getChartType(){return this.chartController.getChartType()}getChart(){return this.chartController.getChartProxy().getChart()}updateChart(e){const t=this.chartController.getChartProxy().getChartRef();t.skipAnimations(),t.updateDelta(e)}createChartOptions(){return{theme:{overrides:{}}}}retrieveChartOptionsThemeOverride(e,t,n){const r=this.getChartThemeOverridesSeriesTypeKeys(t);for(const i of r){const o=this.retrieveChartOptionsSeriesThemeOverride(e,i,n);if(o!==void 0)return o}}assignChartOptionsThemeOverride(e,t,n,r){const i=this.getChartThemeOverridesSeriesTypeKeys(t);for(const o of i)this.assignChartOptionsSeriesThemeOverride(e,o,n,r)}retrieveChartOptionsSeriesThemeOverride(e,t,n){return this.retrieveChartOption(e,["theme","overrides",t,...n?[n]:[]].join("."))}assignChartOptionsSeriesThemeOverride(e,t,n,r){this.assignChartOption(e,["theme","overrides",t,...n?[n]:[]].join("."),r)}getChartThemeOverridesSeriesTypeKeys(e){const t=this.chartController.getChartSeriesTypes(e);return this.chartController.isComboChart()&&t.push("common"),t}retrieveChartOption(e,t){return $A(e,t,void 0)}assignChartOption(e,t,n){jZt(e,t,n)}raiseChartOptionsChangedEvent(){const e=this.chartController.getChartModel();this.eventSvc.dispatchEvent({type:"chartOptionsChanged",chartId:e.chartId,chartType:e.chartType,chartThemeName:this.chartController.getChartThemeName(),chartOptions:e.chartOptions})}};function Lnn(e,t){return $Zt(e)&&t.type===e}var _nn=class extends Gt{constructor(e){super(`
            <div style="height: 100%; width: 100%;">
                <div class="ag-chart" data-ref="eWrapper">
                    <div data-ref="eChartContainer" class="ag-chart-components-wrapper ag-chart-menu-hidden">
                        <div data-ref="eChart" class="ag-chart-canvas-wrapper"></div>
                        <div data-ref="eEmpty" class="ag-chart-empty-text ag-unselectable"></div>
                    </div>
                    <div data-ref="eMenuContainer" class="ag-chart-docked-container"></div>
                </div>
            </div>
            `),this.eChart=at,this.eWrapper=at,this.eChartContainer=at,this.eMenuContainer=at,this.eEmpty=at,this.params=e}wireBeans(e){this.crossFilterService=e.chartCrossFilterSvc,this.chartTranslation=e.chartTranslation,this.chartMenuSvc=e.chartMenuSvc,this.focusSvc=e.focusSvc,this.popupSvc=e.popupSvc,this.enterpriseChartProxyFactory=e.enterpriseChartProxyFactory,this.environment=e.environment}postConstruct(){const e={...this.params,chartType:mW(this.params.chartType),chartThemeName:this.getThemeName()},t=this.gos.get("enableRtl");this.eWrapper.classList.add(t?"ag-rtl":"ag-ltr");const n=this.createBean(new SJt(e));this.chartController=this.createManagedBean(new len(n)),this.chartOptionsService=this.createManagedBean(new knn(this.chartController)),this.validateCustomThemes(),this.createChart(),this.params.insideDialog?this.addDialog():(this.addManagedEventListeners({gridStylesChanged:this.updateTheme.bind(this)}),this.updateTheme()),this.addMenu(),this.addManagedElementListeners(this.getGui(),{focusin:this.setActiveChartCellRange.bind(this)}),this.addManagedListeners(this.chartController,{chartModelUpdate:this.update.bind(this)}),this.addManagedPropertyListeners(["chartThemeOverrides","chartThemes"],this.reactivePropertyUpdate.bind(this)),this.update(),this.raiseChartCreatedEvent()}updateTheme(){this.environment.applyThemeClasses(this.getGui())}createChart(){let e;this.chartProxy&&(e=this.chartProxy.destroy({keepChartInstance:!0}));const t=(i,o)=>{const a=this.params.crossFilteringContext;a.lastSelectedChartId=o?"":this.chartController.getChartId(),o&&this.params.crossFilteringResetCallback(),this.crossFilterService.filter(i,o)},n=this.chartController.getChartType(),r={agChartsExports:this.beans.agChartsExports,chartType:n,chartInstance:e,getChartThemeName:this.getChartThemeName.bind(this),getChartThemes:this.getChartThemes.bind(this),customChartThemes:this.gos.get("customChartThemes"),styleNonce:this.gos.get("styleNonce"),getGridOptionsChartThemeOverrides:()=>this.getGridOptionsChartThemeOverrides(),getExtraPaddingDirections:()=>this.chartMenu?.getExtraPaddingDirections()??[],apiChartThemeOverrides:this.params.chartThemeOverrides,crossFiltering:this.params.crossFiltering??!1,crossFilterCallback:t,parentElement:this.eChart,grouping:this.chartController.isGrouping(),chartThemeToRestore:this.params.chartThemeName,chartOptionsToRestore:this.params.chartOptionsToRestore,chartPaletteToRestore:this.params.chartPaletteToRestore,seriesChartTypes:this.chartController.getSeriesChartTypes(),suppressFieldDotNotation:this.gos.get("suppressFieldDotNotation"),translate:i=>this.chartTranslation.translate(i)};if(this.params.chartOptionsToRestore=void 0,this.chartType=n,this.chartProxy=this.createChartProxy(r),!this.chartProxy){ut(138,{chartType:r.chartType});return}this.chartController.setChartProxy(this.chartProxy),this.createMenuContext()}createMenuContext(){if(this.chartMenuContext)return;const e=this.createManagedBean(new Az(this.chartOptionsService.getChartThemeOverridesProxy())),t=this.createManagedBean(new Az(this.chartOptionsService.getAxisThemeOverridesProxy()));this.chartMenuContext={chartController:this.chartController,chartOptionsService:this.chartOptionsService,chartMenuParamsFactory:e,chartAxisMenuParamsFactory:t}}getChartThemeName(){return this.chartController.getChartThemeName()}getChartThemes(){return this.chartController.getThemeNames()}getGridOptionsChartThemeOverrides(){return this.gos.get("chartThemeOverrides")}createChartProxy(e){const{chartType:t}=e;switch(t){case"column":case"bar":case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":return new den(e);case"pie":case"donut":case"doughnut":return new men(e);case"area":case"stackedArea":case"normalizedArea":return new cen(e);case"line":case"stackedLine":case"normalizedLine":return new pen(e);case"scatter":case"bubble":return new hen(e);case"columnLineCombo":case"areaColumnCombo":case"customCombo":return new fen(e)}const n=this.enterpriseChartProxyFactory?.createChartProxy(e);if(!n)throw Of(251,{chartType:t});return n}addDialog(){const e=this.chartTranslation.translate(this.params.pivotChart?"pivotChartTitle":"rangeChartTitle"),{width:t,height:n}=this.getBestDialogSize(),r=this.params.focusDialogOnOpen?()=>setTimeout(()=>zu(this.getGui())):void 0;this.chartDialog=new y6({resizable:!0,movable:!0,maximizable:!0,title:e,width:t,height:n,component:this,centered:!0,closable:!0,afterGuiAttached:r,postProcessPopupParams:{type:"chart"}}),this.createBean(this.chartDialog),this.chartDialog.addEventListener("destroyed",()=>{this.destroy(),this.chartMenuSvc.hideAdvancedSettings();const i=this.focusSvc.getFocusedCell();setTimeout(()=>{this.focusSvc.isAlive()&&(i?this.focusSvc.setFocusedCell({...i,forceBrowserFocus:!0}):rtt(this.beans))})})}getBestDialogSize(){const e=this.popupSvc.getPopupParent(),t=fz(e)*.75,n=fK(e)*.75,r=.553,i=this.chartProxy.getChart();let o=this.params.insideDialog?850:i.width,a=this.params.insideDialog?470:i.height;return(o>t||a>n)&&(o=Math.min(o,t),a=Math.round(o*r),a>n&&(a=n,o=Math.min(o,Math.round(a/r)))),{width:o,height:a}}addMenu(){this.params.crossFiltering||(this.chartMenu=this.createBean(new Inn(this.eChartContainer,this.eMenuContainer,this.chartMenuContext)),this.eChartContainer.appendChild(this.chartMenu.getGui()))}update(e){if(e?.chartId&&!this.chartController.update(e))return;const t=this.chartTypeChanged(e),n=t||this.chartEmpty?(i=>{const o=this.chartType,a=i,s=this.chartProxy.getChart(),l=s?.getOptions(),c=s?.axes;return this.chartOptionsService.getPersistedChartThemeOverrides(l,c,o,a??o)})(t):void 0;t&&this.createChart(),n&&e?.chartThemeOverrides&&eu(n,e.chartThemeOverrides);const r=n??e?.chartThemeOverrides;this.updateChart(r),e?.chartId&&this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartApiUpdateEvent()})}updateChart(e){const{chartProxy:t}=this,n=this.chartController.getSelectedValueColState(),r=this.chartController.getChartData(),i=this.handleEmptyChart(r,n.length);if(this.chartEmpty=i,i){e&&this.chartController.updateThemeOverrides(e);return}const o=this.chartController.getChartUpdateParams(e);t.update(o),this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartUpdatedEvent()})}chartTypeChanged(e){const[t,n]=[this.chartController.getChartType(),e?.chartType],r=n?mW(n):void 0;return this.chartType!==t?r??t:r&&t!==r?r:null}getChartModel(){return this.chartController.getChartModel()}getChartImageDataURL(e){return this.chartProxy.getChartImageDataURL(e)}handleEmptyChart(e,t){const n=this.chartController.isPivotChart()&&!this.chartController.isPivotMode(),r=this.chartController.getChartType();let i=1;this.chartController.isActiveXYChart()?i=r==="bubble"?3:2:iO(Us(r))&&(i=0);const o=t<i||e.length===0;if(this.eChart){const a=n||o;Nn(this.eChart,!a),Nn(this.eEmpty,a)}return n?(this.eEmpty.textContent=this.chartTranslation.translate("pivotChartRequiresPivotMode"),!0):o?(this.eEmpty.textContent=this.chartTranslation.translate("noDataToChart"),!0):!1}downloadChart(e,t,n){this.chartProxy.downloadChart(e,t,n)}openChartToolPanel(e){const t=e&&YG[e];this.chartMenu.showMenu({panel:t})}closeChartToolPanel(){this.chartMenu.hideMenu()}getChartId(){return this.chartController.getChartId()}getUnderlyingChart(){return this.chartProxy.getChartRef()}crossFilteringReset(){this.chartProxy.crossFilteringReset()}setActiveChartCellRange(e){this.getGui().contains(e.relatedTarget)||this.chartController.setChartRange(!0)}getThemeName(){const e=this.gos.get("chartThemes")||jit;if(e.length===0)throw new Error(Of(254));const{chartThemeName:t}=this.params;return e.includes(t)?t:e[0]}getAllKeysInObjects(e){const t={};return e.filter(n=>n!=null).forEach(n=>{Object.keys(n).forEach(r=>t[r]=null)}),Object.keys(t)}validateCustomThemes(){const e=this.getChartThemes(),t=this.gos.get("customChartThemes");t&&this.getAllKeysInObjects([t]).forEach(n=>{e.includes(n)||ut(139,{customThemeName:n})})}reactivePropertyUpdate(){this.chartController.setChartThemeName(this.getThemeName(),!0);const e=this.getChartId(),t=this.chartController.isCrossFilterChart()?"crossFilter":this.getChartModel().modelType,n=this.gos.get("chartThemeOverrides")||{};this.update({type:`${t}ChartUpdate`,chartId:e,chartThemeOverrides:n})}raiseChartCreatedEvent(){this.chartProxy.getChart().waitForUpdate().then(()=>{this.eventSvc.dispatchEvent({type:"chartCreated",chartId:this.chartController.getChartId()})})}raiseChartDestroyedEvent(){this.eventSvc.dispatchEvent({type:"chartDestroyed",chartId:this.chartController.getChartId()})}destroy(){super.destroy(),this.chartProxy&&this.chartProxy.destroy(),this.destroyBean(this.chartMenu),this.chartDialog&&this.chartDialog.isAlive()&&this.destroyBean(this.chartDialog),this.onDestroyColorSchemeChangeListener?.();const e=this.getGui();Xi(e),Rs(e),this.raiseChartDestroyedEvent()}};function Nnn(e){return e.version,e.version==null&&(e.version=Znn(e)),e=Gd("23.0.0",e,Fnn),e=Gd("24.0.0",e,Wnn),e=Gd("25.1.0",e,qnn),e=Gd("26.0.0",e,Bnn),e=Gd("26.1.0",e,jnn),e=Gd("26.2.0",e,Hnn),e=Gd("28.0.0",e,Vnn),e=Gd("28.2.0",e,Gnn),e=Gd("29.0.0",e,$nn),e=Gd("29.1.0",e,lot),e=Gd("29.2.0",e,cot),e=Gd("30.0.0",e,Unn),e=Gd("31.0.0",e,Xnn),e=Gd("32.0.0",e,Ynn),e=Gd("33.0.0",e,Knn),e=Qnn(e),e=Gd(wi,e,t=>t),e}function Fnn(e){return e=fd("chartOptions.legend.item.marker.type","shape",e),e=fd("chartOptions.seriesDefaults.marker.type","shape",e),e=fd("chartOptions.legend.padding","spacing",e),e}function Wnn(e){e=gs("chartOptions.seriesDefaults.marker.minSize",e);const{chartType:t,chartPalette:n,chartOptions:{xAxis:r,yAxis:i,...o},...a}=e,l=JZt(t)?.map((u,d)=>({type:u,...d===0?r:i}));return{chartType:t,chartThemeName:{borneo:"ag-default",material:"ag-material",bright:"ag-vivid"}[n]??"ag-default",chartOptions:{...o,axes:l,xAxis:r,yAxis:i},...a}}function qnn(e){return e=fd("chartOptions.seriesDefaults.label.minRequiredAngle","minAngle",e),e}function Bnn(e){return e=vy("chartOptions.seriesDefaults.highlightStyle",e,({dimOpacity:n,...r})=>({...r,...n!=null?{series:{dimOpacity:n}}:{}})),e=gs("chart",e),e=gs("chartOptions.seriesDefaults.tooltipClass",e),e=gs("chartOptions.seriesDefaults.tooltipTracking",e),e=ZRe("chartOptions.axes[].label.rotation",0,e),e=ZRe("chartOptions.axes[].label.rotation",335,e),e}function jnn(e){const t=({item:n,series:r,...i})=>({item:{...i,...n},...r?{series:r}:{}});return e=vy("chartOptions.seriesDefaults.highlightStyle",e,t),e=vy("chartOptions.series[].highlightStyle",e,t),e}function Hnn(e){e=KG("chartOptions.seriesDefaults.fill.opacity","chartOptions.seriesDefaults.fillOpacity",e),e=KG("chartOptions.seriesDefaults.stroke.opacity","chartOptions.seriesDefaults.strokeOpacity",e),e=KG("chartOptions.seriesDefaults.stroke.width","chartOptions.seriesDefaults.strokeWidth",e),e=gs("chartOptions.seriesDefaults.fill",e),e=gs("chartOptions.seriesDefaults.stroke",e),e=gs("chartOptions.seriesDefaults.callout.colors",e),e=gs("chartOptions.xAxis",e),e=gs("chartOptions.yAxis",e);const{chartType:t,chartOptions:{axes:n,series:r,seriesDefaults:i,...o},...a}=e,s=mW(t),l=Us(s),c=[l],u={};if(!Eit(l)){const p={top:{},bottom:{},left:{},right:{}},h=n.map(({type:g,...m})=>({[g]:{...p,...m}})).reduce(eIe,{});Iit.filter(g=>h[g]==null).forEach(g=>{h[g]={...p}}),u.axes=h}const d=c.map(p=>({[p]:{...u,series:i,...o}})).reduce(eIe,{});return e={...a,chartType:s,chartOptions:d},e}function Vnn(e){return e=gs("chartOptions.*.title.padding",e),e=gs("chartOptions.*.subtitle.padding",e),e=gs("chartOptions.*.axes.*.title.padding",e),e=sMe("chartOptions.*.axes.*.title.enabled",!1,e),e}function Gnn(e){return e=fd("chartOptions.pie.series.callout","calloutLine",e),e=fd("chartOptions.pie.series.label","calloutLabel",e),e=fd("chartOptions.pie.series.labelKey","sectorLabelKey",e),e=fd("chartOptions.pie.series.labelName","sectorLabelName",e),e=fd("chartOptions.donut.series.callout","calloutLine",e),e=fd("chartOptions.donut.series.label","calloutLabel",e),e=fd("chartOptions.donut.series.labelKey","sectorLabelKey",e),e=fd("chartOptions.donut.series.labelName","sectorLabelName",e),e}function $nn(e){return e=i4("chartOptions.scatter.series.fill","chartOptions.scatter.series.marker.fill",e),e=i4("chartOptions.scatter.series.fillOpacity","chartOptions.scatter.series.marker.fillOpacity",e),e=i4("chartOptions.scatter.series.stroke","chartOptions.scatter.series.marker.stroke",e),e=i4("chartOptions.scatter.series.strokeOpacity","chartOptions.scatter.series.marker.strokeOpacity",e),e=i4("chartOptions.scatter.series.strokeWidth","chartOptions.scatter.series.marker.strokeWidth",e),e=KG("chartOptions.scatter.series.paired","chartOptions.scatter.paired",e),e}function lot(e){return e=gs("chartOptions.axes[].tick.count",e),e}function cot(e){return e=vy("chartOptions.*.tooltip",e,({tracking:n,...r})=>{const i={...r};return n===!1?(i.position??(i.position={type:"pointer"}),i.range??(i.range="nearest")):n===!0&&(i.position??(i.position={type:"node"}),i.range??(i.range="nearest")),i}),e}function Unn(e){return e=fd("chartOptions.pie.series.labelKey","sectorLabelKey",e),e=fd("chartOptions.pie.series.labelName","sectorLabelName",e),e=lot(e),e=cot(e),e=gs("chartOptions.*.series.flipXY",e),e=uot("chartOptions.common.legend.enabled",!0,e),e=sMe("chartOptions.common.legend.position","right",e),e}function Xnn(e){const t={"ag-pastel":"ag-sheets","ag-solar":"ag-polychroma"},n=fd("chartOptions.column","bar",e),r=t[n.chartThemeName]||n.chartThemeName;return{...n,chartThemeName:r}}function Ynn(e){return e=ym("chartOptions.*.autoSize",!0,e,(t,n)=>{t[n]===!0||t[n]===!1&&(t.minHeight=600,t.minWidth=300),delete t[n]}),e}function Knn(e){return e=gs("chartOptions.*.axes.category.label.format",e),e=gs("chartOptions.*.axes.category.crosshair.label.format",e),e=gs("chartOptions.*.axes.angle-category.label.format",e),e=gs("chartOptions.*.axes.radius-category.label.format",e),e=fd("chartOptions.*.axes.*.label.padding","spacing",e),e=fd("chartOptions.*.navigator.miniChart.label.padding","spacing",e),e=gs("chartOptions.*.axes.*.crossLines.label.className",e),e=ym("chartOptions.*.axes.*.crossLines.label.position",!0,e,(t,n)=>{typeof t[n]=="string"&&(t[n]=t[n].replace(/([A-Z])/,"-$1").toLowerCase())}),e=gs("chartOptions.bullet",e),e=JRe("chartOptions.bar.series.label.placement",e,{inside:"inside-center",outside:"inside-end"}),e=JRe("chartOptions.waterfall.series.item.*.label.placement",e,{inside:"inside-center",start:"outside-start",end:"outside-end"}),e=gs("chartOptions.*.navigator.min",e),e=gs("chartOptions.*.navigator.max",e),e=gs("chartOptions.*.zoom.ratioX",e),e=gs("chartOptions.*.zoom.ratioY",e),e=gs("chartOptions.*.zoom.rangeX",e),e=gs("chartOptions.*.zoom.rangeY",e),e}function Qnn(e){return e=gs("chartOptions.*.width",e),e=gs("chartOptions.*.height",e),e=sMe("chartOptions.*.axes.category.label.autoRotate",!0,e),e}function Znn(e){const t=e;if(e.version!=null)return e.version;const n=(c,...u)=>Object.keys(c||{}).some(d=>u.includes(d)),r=t.chartOptions,i=n(r,"seriesDefaults")?r?.seriesDefaults:r?.[Object.keys(r)[0]],o={"27.0.0":n(t,"seriesChartTypes"),"26.2.0":!n(r,"seriesDefaults"),"26.1.0":n(i?.highlightStyle,"item"),"26.0.0":n(i?.highlightStyle,"series"),"25.1.0":n(i?.label,"minAngle"),"25.0.0":n(t,"modelType","aggFunc","unlinkChart","suppressChartRanges")||n(i,"lineDash","lineDashOffset"),"24.0.0":n(t,"chartThemeName","chart")||n(r,"series"),"23.2.0":n(r,"navigator"),"23.0.0":n(r?.legend?.item?.marker,"shape"),"22.1.0":n(t,"chartPalette","chartType")},a="27.1.0",s=Object.entries(o).filter(([c,u])=>u),[l=a]=s[0];return l}function Gd(e,t,n){if(QRe(e)>QRe(t.version)){const r=n(t);return r.version=e,r}return t}function Jnn(e){const t=e.includes("-beta")?e.replace(/-beta.*/,""):e,n=typeof t=="string"?t.split(".").map(r=>Number(r)):[];if(n.length!==3||n.some(r=>isNaN(r)))throw new Error(Of(253,{version:t}));return{major:n[0],minor:n[1],patch:n[2]}}function QRe(e){const{major:t,minor:n,patch:r}=Jnn(e);return t*1e4+n*100+r}function ZRe(e,t,n){return ym(e,!0,n,(r,i)=>{r[i]===t&&delete r[i]})}function sMe(e,t,n){return ym(e,!1,n,(r,i)=>{r[i]==null&&(r[i]=t)})}function uot(e,t,n){typeof e=="string"&&(e=e.split("."));const r=e[0];return e.length>1&&(n[r]=uot(e.slice(1),t,n[r]??{})),Object.keys(n).includes(r)||(n[r]=t),n}function KG(e,t,n){let r,i=!1;return n=ym(e,!0,n,(o,a)=>{i=!0,r=o[a],delete o[a]}),i?ym(t,!1,n,(o,a)=>{o[a]=r}):n}function i4(e,t,n){let r,i=!1;return n=ym(e,!0,n,(o,a)=>{i=!0,r=o[a],delete o[a]}),i?ym(t,!1,n,(o,a)=>{o[a]===void 0&&(o[a]=r)}):n}function fd(e,t,n){return ym(e,!0,n,(r,i)=>{r[t]=r[i],delete r[i]})}function gs(e,t){return ym(e,!0,t,(n,r)=>delete n[r])}function ym(e,t,n,r){const i=e instanceof Array?e:e.split("."),o=i.slice(0,i.length-1),a=i[i.length-1];return vy(o,n,s=>{const l=Object.keys(s).includes(a);if(t&&!l)return s;const c={...s};return r(c,a),c})}function vy(e,t,n){const r=e instanceof Array?e:e.split(".");if(t={...t},r.length===0)return n(t);if(r[0].startsWith("{")){const i=r[0].substring(1,r[0].lastIndexOf("}")).split(",");for(const o of i)t[o]!=null&&(t[o]=vy(r.slice(1),t[o],n))}else if(r[0].endsWith("[]")){const i=r[0].substring(0,e[0].indexOf("["));t[i]instanceof Array&&(t[i]=t[i].map(o=>vy(r.slice(1),o,n)))}else if(r[0]==="*")for(const i of Object.keys(t))t[i]=vy(r.slice(1),t[i],n);else t[r[0]]!=null&&(t[r[0]]=vy(r.slice(1),t[r[0]],n));return t}function JRe(e,t,n){return ym(e,!0,t,(r,i)=>{typeof r[i]=="string"&&(r[i]=n[i]??i)})}var eIe=(e,t)=>({...e,...t}),ern=class extends dt{constructor(){super(...arguments),this.beanName="chartSvc",this.activeCharts=new Set,this.activeChartComps=new Set,this.crossFilteringContext={lastSelectedChartId:""},this.isEnterprise=()=>this.agChartsExports.isEnterprise}wireBeans(e){this.visibleCols=e.visibleCols,this.rangeSvc=e.rangeSvc,this.agChartsExports=e.agChartsExports}updateChart(e){if(this.activeChartComps.size===0){ut(124);return}const t=[...this.activeChartComps].find(n=>n.getChartId()===e.chartId);if(!t){ut(125,{chartId:e.chartId});return}t.update(e)}getChartModels(){const e=[],t=n=>({...n,version:wi});return this.activeChartComps.forEach(n=>e.push(t(n.getChartModel()))),e}getChartRef(e){let t;return this.activeCharts.forEach(n=>{n.chartId===e&&(t=n)}),t}getChartComp(e){let t;return this.activeChartComps.forEach(n=>{n.getChartId()===e&&(t=n)}),t}getChartImageDataURL(e){let t;return this.activeChartComps.forEach(n=>{n.getChartId()===e.chartId&&(t=n.getChartImageDataURL(e.fileFormat))}),t}downloadChart(e){Array.from(this.activeChartComps).find(n=>n.getChartId()===e.chartId)?.downloadChart(e.dimensions,e.fileName,e.fileFormat)}openChartToolPanel(e){Array.from(this.activeChartComps).find(n=>n.getChartId()===e.chartId)?.openChartToolPanel(e.panel)}closeChartToolPanel(e){Array.from(this.activeChartComps).find(n=>n.getChartId()===e)?.closeChartToolPanel()}createChartFromCurrentRange(e="groupedColumn",t){const n=this.getSelectedRange();return this.createChart({cellRange:n,chartType:e,focusDialogOnOpen:!t})}restoreChart(e,t){if(!e){ut(126);return}e.version!==wi&&(e=Nnn(e));let n,r,i,o;if(e.modelType==="pivot"?(this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"}),n=this.createCellRange(void 0,!0),r=!0,i=!0):(n=this.createCellRange(e.cellRange),o=e.chartPalette,i=e.suppressChartRanges),!!n)return this.createChart({...e,cellRange:n,pivotChart:r,suppressChartRanges:i,chartContainer:t,chartOptionsToRestore:e.chartOptions,chartPaletteToRestore:o})}createRangeChart(e,t){const n=this.createCellRange(e.cellRange);if(n)return this.createChart({...e,cellRange:n,focusDialogOnOpen:!t})}createPivotChart(e,t){this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"});const n=this.createCellRange(void 0,!0);if(n)return this.createChart({...e,cellRange:n,pivotChart:!0,suppressChartRanges:!0,focusDialogOnOpen:!t})}createCrossFilterChart(e,t){const n=this.createCellRange(e.cellRange);if(!n)return;const i=typeof e.suppressChartRanges<"u"&&e.suppressChartRanges!==null?e.suppressChartRanges:!0;return this.createChart({...e,cellRange:n,suppressChartRanges:i,crossFiltering:!0,focusDialogOnOpen:!t})}createChart(e){const t=ien(e,this.agChartsExports.isEnterprise);if(!t)return;e=t===!0?e:t;const{chartType:n,chartContainer:r}=e,i=this.gos.getCallback("createChartContainer"),o={...e,chartId:this.generateId(),chartType:mW(n),insideDialog:!(r||i),crossFilteringContext:this.crossFilteringContext,crossFilteringResetCallback:()=>this.activeChartComps.forEach(l=>l.crossFilteringReset())},a=new _nn(o);this.createBean(a);const s=this.createChartRef(a);return r?r.appendChild(s.chartElement):i?i(s):a.addEventListener("destroyed",()=>{this.activeChartComps.delete(a),this.activeCharts.delete(s)}),s}createChartRef(e){const t={destroyChart:()=>{this.activeCharts.has(t)&&(this.destroyBean(e),this.activeChartComps.delete(e),this.activeCharts.delete(t))},focusChart:()=>{zu(e.getGui())},chartElement:e.getGui(),chart:e.getUnderlyingChart(),chartId:e.getChartModel().chartId};return this.activeCharts.add(t),this.activeChartComps.add(e),t}getSelectedRange(){const e=this.rangeSvc?.getCellRanges();if(!e||e.length===0)return{columns:[]};const t=new Set;let n=Number.MAX_VALUE,r=-Number.MAX_VALUE;if(e.forEach(({startRow:o,endRow:a,columns:s})=>{if(!(o&&a))return;s.forEach(p=>t.add(p));let{rowIndex:l,rowPinned:c}=o,{rowIndex:u,rowPinned:d}=a;if(c==="top"){if(d==="top")return;l=0}if(d==="bottom"){if(c==="bottom")return;u=this.beans.pageBounds.getLastRow()}l!==void 0&&(n=Math.min(n,l)),u!==void 0&&(r=Math.max(r,u))}),n===Number.MAX_VALUE||r===-Number.MAX_VALUE)return{columns:[]};const i=Array.from(t);return{columns:i,startColumn:i[0],startRow:{rowIndex:n,rowPinned:void 0},endRow:{rowIndex:r,rowPinned:void 0}}}generateId(){return`id-${Math.random().toString(36).substring(2,18)}`}createCellRange(e,t){const n=t?{rowStartIndex:null,rowStartPinned:void 0,rowEndIndex:null,rowEndPinned:void 0,columns:this.visibleCols.allCols.map(i=>i.getColId())}:e,r=n&&this.rangeSvc?.createPartialCellRangeFromRangeParams(n,!0);return r||ut(127,{allRange:t}),r}destroy(){this.activeCharts.forEach(e=>e.destroyChart()),super.destroy()}};function trn(e){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.getChartModels())}function nrn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.getChartRef(t))}function rrn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.getChartImageDataURL(t))}function irn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.downloadChart(t))}function orn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.openChartToolPanel(t))}function arn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.closeChartToolPanel(t.chartId))}function srn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.createRangeChart(t,!0))}function lrn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.createPivotChart(t,!0))}function crn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.createCrossFilterChart(t,!0))}function urn(e,t){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.updateChart(t))}function drn(e,t,n){return e.frameworkOverrides.wrapIncoming(()=>e.chartSvc?.restoreChart(t,n))}var prn=`.ag-chart{display:flex;height:100%;position:relative;width:100%}.ag-chart-components-wrapper{display:flex}.ag-chart-canvas-wrapper,.ag-chart-components-wrapper{flex:1 1 auto;position:relative}.ag-chart-menu{background:var(--ag-background-color);background-color:color-mix(in srgb,transparent,var(--ag-background-color) 30%);border-radius:var(--ag-border-radius);display:flex;flex-direction:row;gap:20px;padding:4px 2px;position:absolute;top:8px;width:auto;--ag-icon-size:20px}:where(.ag-ltr) .ag-chart-menu{justify-content:right;right:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}:where(.ag-rtl) .ag-chart-menu{justify-content:left;left:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}.ag-chart-docked-container{min-width:var(--ag-chart-menu-panel-width);position:relative}:where(.ag-chart-menu-hidden)~.ag-chart-docked-container{display:none}.ag-chart-tabbed-menu{display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.ag-chart-tabbed-menu-header{cursor:default;flex:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-tabbed-menu-body{align-items:stretch;display:flex;flex:1 1 auto;overflow:hidden;position:relative;&:after{background:linear-gradient(var(--ag-background-color),transparent);content:"";display:block;height:16px;left:0;position:absolute;right:0;top:0}}.ag-chart-tab{overflow:hidden;overflow-y:auto;width:100%}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;width:100%}.ag-chart-settings-nav-bar{align-items:center;border-top:1px solid var(--ag-border-color);display:flex;height:30px;padding:0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-chart-settings-card-selector{align-items:center;display:flex;flex:1 1 auto;height:100%;justify-content:space-around;padding:0 10px}.ag-chart-settings-card-item{background-color:var(--ag-foreground-color);border-radius:4px;cursor:pointer;height:8px;position:relative;width:8px;&.ag-not-selected{opacity:.2}&:before{background-color:transparent;content:" ";display:block;height:20px;left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;width:20px}&.ag-selected{background-color:var(--ag-accent-color)}}.ag-chart-settings-next,.ag-chart-settings-prev{flex:none;position:relative;&:focus-within{border-radius:1px;box-shadow:var(--ag-focus-shadow)}}.ag-chart-settings-next-button,.ag-chart-settings-prev-button{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}.ag-chart-settings-mini-charts-container{flex:1 1 auto;overflow:hidden auto;position:relative}.ag-chart-settings-mini-wrapper{display:flex;flex-direction:column;left:0;min-height:100%;overflow:hidden;padding-bottom:var(--ag-widget-container-vertical-padding);position:absolute;top:0;width:100%;&.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}}.ag-chart-mini-thumbnail{border:1px solid var(--ag-border-color);border-radius:5px;cursor:pointer;padding:1px;&.ag-selected{border-color:var(--ag-accent-color);border-width:2px;padding:unset}&:focus-visible{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper,.ag-chart-format-wrapper{display:flex;flex-direction:column;padding-bottom:16px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper{height:100%;overflow-y:auto}.ag-chart-advanced-settings{background-color:var(--ag-chrome-background-color)}.ag-chart-advanced-settings,.ag-chart-advanced-settings-wrapper{width:100%}.ag-chart-advanced-settings-wrapper{padding-bottom:0}.ag-chart-advanced-settings-section{border-bottom:1px solid var(--ag-border-color);display:flex;margin:0;padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding)}.ag-chart-empty-text{align-items:center;background-color:var(--ag-background-color);display:flex;height:100%;justify-content:center;top:0;width:100%}.ag-charts-font-size-color{align-self:stretch;display:flex;justify-content:space-between}.ag-charts-data-group-item{padding-bottom:var(--ag-widget-container-vertical-padding);position:relative}.ag-charts-data-group-item:where(:not(:last-child)){margin-bottom:var(--ag-spacing)}.ag-chart-menu-icon{border-radius:var(--ag-border-radius);cursor:pointer;margin:2px 0;opacity:.8;&:hover{opacity:1}}.ag-chart-menu-toolbar-button{background-color:unset;border:0;border-radius:1px;padding:0 2px}.ag-chart-data-column-drag-handle{margin-left:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-title-bar{background-color:unset;position:relative}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding)*.5) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group-item:where(:not(.ag-charts-format-sub-level-group,.ag-pill-select,.ag-select)){height:var(--ag-list-item-height)}.ag-charts-data-group-item:where(.ag-picker-field){margin-top:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-container,.ag-charts-format-top-level-group-container{margin-left:calc(var(--ag-spacing)*2);padding:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-item,.ag-charts-format-top-level-group-item{margin:var(--ag-spacing) 0}.ag-charts-format-sub-level-group-container{display:flex;flex-direction:column;padding:var(--ag-widget-vertical-spacing) 0}.ag-charts-settings-group-container{display:grid;grid-template-columns:60px 1fr 60px 1fr 60px;padding:var(--ag-spacing);row-gap:8px;:where(.ag-chart-mini-thumbnail:nth-child(3n+1)){grid-column:1}:where(.ag-chart-mini-thumbnail:nth-child(3n+2)){grid-column:3}:where(.ag-chart-mini-thumbnail:nth-child(3n+3)){grid-column:5}}.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0;:where(.ag-label:not(.ag-group-title-bar)){color:var(--ag-chart-menu-label-color)}:where(.ag-label-align-top .ag-label){margin-bottom:var(--ag-widget-vertical-spacing);margin-top:calc(var(--ag-widget-vertical-spacing)*.5)}:where(.ag-slider.ag-label-align-top .ag-label){margin-bottom:0}:where(label){display:inline-block}}.ag-chart-menu-panel{--ag-panel-background-color:var(--ag-chrome-background-color)}:where(.ag-ltr) .ag-chart-menu-panel{border-left:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-chart-menu-panel{border-right:1px solid var(--ag-border-color)}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar{border-top:none;font-weight:500;padding:0 calc(var(--ag-spacing)*1.5)}.ag-charts-format-sub-level-group-title-bar{background:none;font-weight:500;padding:var(--ag-widget-vertical-spacing) 0}.ag-chart-data-wrapper,.ag-chart-format-wrapper,.ag-charts-data-group-container,.ag-charts-data-group-title-bar,.ag-charts-format-sub-level-group,.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-group-item:last-child,.ag-charts-format-top-level-group,.ag-charts-format-top-level-group-item,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container{margin:0;padding:0}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-title-bar{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:relative}.ag-charts-data-group,.ag-charts-format-top-level-group{border-top:1px solid var(--ag-border-color)}:where(.ag-charts-data-group) .ag-charts-data-group-container,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container,:where(.ag-charts-settings-group) .ag-charts-settings-group-container{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-no-header-group-container>*,.ag-charts-format-top-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-advanced-settings-top-level-group-container{margin:0}:where(.ag-charts-advanced-settings-top-level-group){.ag-charts-advanced-settings-top-level-group-container,.ag-charts-advanced-settings-top-level-group-title-bar{padding:0 var(--ag-widget-container-horizontal-padding)}}.ag-charts-advanced-settings-top-level-group-item{margin-bottom:0;margin-top:calc(var(--ag-widget-vertical-spacing)*2)}.ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-angle-select{align-items:center;display:flex}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-border-color);border-radius:12px;display:block;height:24px;position:relative;width:24px}.ag-angle-select-child-circle{background-color:var(--ag-foreground-color);border-radius:3px;height:6px;left:12px;margin-left:-3px;margin-top:-4px;position:absolute;top:4px;width:6px}.ag-slider-wrapper{display:flex;:where(.ag-input-field){flex:1 1 auto}}.ag-color-panel{display:flex;flex-direction:column;padding:var(--ag-spacing);text-align:center;width:100%}.ag-spectrum-color{cursor:default;flex:1 1 auto;overflow:visible;position:relative}.ag-spectrum-fill{inset:0;position:absolute}.ag-spectrum-val{background-image:linear-gradient(0deg,#000,hsla(20,42%,65%,0));cursor:pointer}.ag-spectrum-dragger{background:#000;border:3px solid #fff;border-radius:18px;box-shadow:0 0 2px 0 rgba(0,0,0,.24);cursor:pointer;height:18px;pointer-events:none;position:absolute;width:18px}.ag-spectrum-alpha,.ag-spectrum-hue{cursor:default}.ag-spectrum-hue-background{background:linear-gradient(270deg,red 3%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);height:100%;width:100%}.ag-spectrum-alpha-background{background:linear-gradient(to right,var(--ag-internal-spectrum-alpha-color-from),var(--ag-internal-spectrum-alpha-color-to)),url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>') 0 0 /4px 4px;height:100%;width:100%}.ag-spectrum-tool{border-radius:2px;cursor:pointer;height:11px;margin-bottom:10px;position:relative}.ag-spectrum-slider{border:2px solid #fff;border-radius:13px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:13px;margin-top:-12px;pointer-events:none;position:absolute;width:13px}:where(.ag-spectrum-alpha) .ag-spectrum-slider{background:linear-gradient(to bottom,var(--ag-internal-spectrum-alpha-color),var(--ag-internal-spectrum-alpha-color)) var(--ag-background-color)}.ag-recent-colors{display:flex;gap:6px;margin-bottom:2px;margin-left:var(--ag-spacing);margin-right:var(--ag-spacing)}.ag-recent-color{border:1px solid var(--ag-border-color);cursor:pointer}.ag-angle-select[disabled]{opacity:.5;pointer-events:none}:where(.ag-ltr) .ag-angle-select-field,:where(.ag-ltr) .ag-slider-field{margin-right:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-angle-select-field,:where(.ag-rtl) .ag-slider-field{margin-left:calc(var(--ag-spacing)*2)}.ag-color-dialog{border-radius:5px}:where(.ag-color-picker){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}.ag-picker-field-display{align-items:center;display:flex;flex-direction:row;min-height:var(--ag-list-item-height)}}:where(.ag-ltr) .ag-color-picker-color,:where(.ag-ltr) .ag-color-picker-value{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-color-picker-color,:where(.ag-rtl) .ag-color-picker-value{margin-left:var(--ag-spacing)}.ag-spectrum-tools{padding-bottom:0;padding-left:0;padding-right:0}.ag-spectrum-alpha-background,.ag-spectrum-hue-background{border-radius:2px}.ag-color-input-color,.ag-color-picker-color,.ag-recent-color{border-radius:4px}.ag-spectrum-sat{background-image:linear-gradient(90deg,#fff,hsla(20,42%,65%,0))}.ag-recent-color,.ag-spectrum-color,.ag-spectrum-slider{&:where(:not(:disabled,[readonly])):focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-color-input-color,.ag-color-picker-color{border:1px solid var(--ag-border-color);border-radius:2px;height:var(--ag-icon-size);width:var(--ag-icon-size)}:where(.ag-color-input){.ag-color-input-color{position:absolute}}:where(.ag-ltr) :where(.ag-color-input){.ag-input-field-input{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-color-input){.ag-input-field-input{padding-right:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-right:var(--ag-spacing)}}.ag-range-field{align-items:center;display:flex;:where(.ag-input-wrapper){height:100%}}.ag-range-field-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;height:100%;overflow:visible;padding:0;width:100%;&:disabled{opacity:.5}}.ag-range-field-input{&::-webkit-slider-runnable-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-webkit-slider-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-webkit-slider-runnable-track{background-color:var(--ag-accent-color)}}.ag-range-field-input{&::-moz-range-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-moz-ag-range-thumb{-moz-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-moz-ag-range-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-moz-ag-range-track{background-color:var(--ag-accent-color)}}`,dot=28,pot=6;function Lhe(e){return e&&e.match(/\d+\.\d+\.\d+/)}function hrn({gridMajorVersion:e,chartsMajorVersion:t}){const n=parseInt(e,10),r=parseInt(t,10),i=n-dot,o=r-pot,a=i>=0;return i===o&&a}function frn(e){if(!Lhe(e))return;const[t,n]=e.split(".")||[],r=`${t}.${n}.x`,o=parseInt(t,10)-dot+pot;if(o<0)return;const s=`${o}.${n}.x`;return{gridMajorMinor:r,chartsMajorMinor:s}}function n8({type:e,gridVersion:t,chartsVersion:n}){const r="AG Grid: AG Grid version is incompatible. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.",i=frn(t);if(!i)return r;const{gridMajorMinor:o,chartsMajorMinor:a}=i;return e==="incompatible"?`AG Grid version ${t} and AG Charts version ${n} is not supported. AG Grid version ${o} should be used with AG Chart ${a}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:e==="invalidCharts"?`AG Grid version ${o} should be used with AG Chart ${a} not ${n}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:r}function grn({gridVersion:e,chartsVersion:t}){if(!Lhe(t))return{isValid:!1,message:n8({type:"invalidCharts",gridVersion:e,chartsVersion:t})};if(!Lhe(e))return{isValid:!1,message:n8({type:"invalidGrid",gridVersion:e,chartsVersion:t})};const[n,r]=e.split(".")||[],[i,o,a]=t.split(".")||[],s=hrn({gridMajorVersion:n,chartsMajorVersion:i});return s&&r===o||a.includes("beta")?{isValid:!0}:!s||r!==o?{isValid:!1,message:n8({type:"incompatible",gridVersion:e,chartsVersion:t})}:{isValid:!1,message:n8({type:"invalid",gridVersion:e,chartsVersion:t})}}var mrn={linked:"linked",unlinked:"unlinked",chartsMenu:"menu-alt",chartsDownload:"save",chartsMenuEdit:"chart",chartsMenuAdvancedSettings:"settings",chartsMenuAdd:"plus",chartsColorPicker:"small-down",chartsThemePrevious:"previous",chartsThemeNext:"next"},vrn={getChartModels:trn,getChartRef:nrn,getChartImageDataURL:rrn,downloadChart:irn,openChartToolPanel:orn,closeChartToolPanel:arn,createRangeChart:srn,createPivotChart:lrn,createCrossFilterChart:crn,updateChart:urn,restoreChart:drn},tIe=[Cit,es,v3,dM,NK],nIe="IntegratedCharts",brn={moduleName:nIe,version:wi,dependsOn:tIe,validate:()=>({isValid:!1,message:uet(257)}),with:e=>{if(e.setup(),e.setGridContext?.(!0),e.isEnterprise&&e.setLicenseKey){const t={setLicenseKey:e.setLicenseKey};V5.setChartsLicenseManager(t)}return{moduleName:nIe,version:wi,icons:mrn,apiFunctions:vrn,dependsOn:tIe,css:[prn],validate:()=>grn({gridVersion:wi,chartsVersion:e.VERSION}),beans:[BZt.bind(null,e),ern,XJt,VJt,jJt,$Jt,zJt,qJt]}}},rIe=[Z8t,lKt,HUt,ZXt,SKt,_Kt,dXt,pXt,Cit,hXt,fKt,git,KYt,QYt,yZt,MZt,TXt,oYt,I9t,Vye,$Xt,JYt,OQt,GQt,qZt],iIe="AllEnterprise",yrn={with:e=>({moduleName:iIe,version:wi,dependsOn:[...rIe,brn.with(e),AZt.with(e)]}),moduleName:iIe,version:wi,dependsOn:rIe},B$={black:"#000",white:"#fff"},Tre={300:"#e57373",500:"#f44336",700:"#d32f2f"},Ere={A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Rre={300:"#7986cb",500:"#3f51b5",700:"#303f9f"},Ire={300:"#64b5f6",500:"#2196f3",700:"#1976d2"},Pre={300:"#81c784",500:"#4caf50",700:"#388e3c"},Dre={300:"#ffb74d",500:"#ff9800",700:"#f57c00"},lMe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}function p1(e){"@babel/helpers - typeof";return p1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p1(e)}function kre(e){return e&&p1(e)==="object"&&e.constructor===Object}function Ux(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},r=n.clone?Y({},e):e;return kre(e)&&kre(t)&&Object.keys(t).forEach(function(i){i!=="__proto__"&&(kre(t[i])&&i in e?r[i]=Ux(e[i],t[i],n):r[i]=t[i])}),r}var Lre={exports:{}},_re,oIe;function Mrn(){if(oIe)return _re;oIe=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _re=e,_re}var Nre,aIe;function Crn(){if(aIe)return Nre;aIe=1;var e=Mrn();function t(){}function n(){}return n.resetWarningCache=t,Nre=function(){function r(a,s,l,c,u,d){if(d!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Nre}var sIe;function xrn(){return sIe||(sIe=1,Lre.exports=Crn()()),Lre.exports}var UA=xrn();const Z=qn(UA);function wrn(e,t){if(p1(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(p1(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oz(e){var t=wrn(e,"string");return p1(t)=="symbol"?t:t+""}function tn(e,t,n){return(t=Oz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iP(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var Fre={exports:{}},ps={};/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var lIe;function Srn(){if(lIe)return ps;lIe=1;var e=60103,t=60106,n=60107,r=60108,i=60114,o=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,h=60122,g=60117,m=60129,v=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),n=y("react.fragment"),r=y("react.strict_mode"),i=y("react.profiler"),o=y("react.provider"),a=y("react.context"),s=y("react.forward_ref"),l=y("react.suspense"),c=y("react.suspense_list"),u=y("react.memo"),d=y("react.lazy"),p=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),m=y("react.debug_trace_mode"),v=y("react.legacy_hidden")}function M(N){if(typeof N=="object"&&N!==null){var F=N.$$typeof;switch(F){case e:switch(N=N.type,N){case n:case i:case r:case l:case c:return N;default:switch(N=N&&N.$$typeof,N){case a:case s:case d:case u:case o:return N;default:return F}}case t:return F}}}var C=o,x=e,w=s,S=n,A=d,z=u,O=t,T=i,I=r,P=l;return ps.ContextConsumer=a,ps.ContextProvider=C,ps.Element=x,ps.ForwardRef=w,ps.Fragment=S,ps.Lazy=A,ps.Memo=z,ps.Portal=O,ps.Profiler=T,ps.StrictMode=I,ps.Suspense=P,ps.isAsyncMode=function(){return!1},ps.isConcurrentMode=function(){return!1},ps.isContextConsumer=function(N){return M(N)===a},ps.isContextProvider=function(N){return M(N)===o},ps.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===e},ps.isForwardRef=function(N){return M(N)===s},ps.isFragment=function(N){return M(N)===n},ps.isLazy=function(N){return M(N)===d},ps.isMemo=function(N){return M(N)===u},ps.isPortal=function(N){return M(N)===t},ps.isProfiler=function(N){return M(N)===i},ps.isStrictMode=function(N){return M(N)===r},ps.isSuspense=function(N){return M(N)===l},ps.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===n||N===i||N===m||N===r||N===l||N===c||N===v||typeof N=="object"&&N!==null&&(N.$$typeof===d||N.$$typeof===u||N.$$typeof===o||N.$$typeof===a||N.$$typeof===s||N.$$typeof===g||N.$$typeof===p||N[0]===h)},ps.typeOf=M,ps}var cIe;function Arn(){return cIe||(cIe=1,Fre.exports=Srn()),Fre.exports}Arn();function cMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Orn(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(function(r){return r+r})),n?"rgb".concat(n.length===4?"a":"","(").concat(n.map(function(r,i){return i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3}).join(", "),")"):""}function zrn(e){e=zz(e);var t=e,n=t.values,r=n[0],i=n[1]/100,o=n[2]/100,a=i*Math.min(o,1-o),s=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(d+r/30)%12;return o-a*Math.max(Math.min(p-3,9-p,1),-1)},l="rgb",c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(n[3])),jK({type:l,values:c})}function zz(e){if(e.type)return e;if(e.charAt(0)==="#")return zz(Orn(e));var t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla"].indexOf(n)===-1)throw new Error(iP(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map(function(i){return parseFloat(i)}),{type:n,values:r}}function jK(e){var t=e.type,n=e.values;return t.indexOf("rgb")!==-1?n=n.map(function(r,i){return i<3?parseInt(r,10):r}):t.indexOf("hsl")!==-1&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Trn(e,t){var n=_he(e),r=_he(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _he(e){e=zz(e);var t=e.type==="hsl"?zz(zrn(e)).values:e.values;return t=t.map(function(n){return n/=255,n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function TA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.15;return _he(e)>.5?vW(e,t):bW(e,t)}function Ern(e,t){return jo(e,t)}function jo(e,t){return e=zz(e),t=cMe(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.values[3]=t,jK(e)}function vW(e,t){if(e=zz(e),t=cMe(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)e.values[n]*=1-t;return jK(e)}function bW(e,t){if(e=zz(e),t=cMe(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return jK(e)}function Lt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fn(e,t){if(e==null)return{};var n,r,i=Lt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var o0=["xs","sm","md","lg","xl"];function Rrn(e){var t=e.values,n=t===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=r===void 0?"px":r,o=e.step,a=o===void 0?5:o,s=fn(e,["values","unit","step"]);function l(h){var g=typeof n[h]=="number"?n[h]:h;return"@media (min-width:".concat(g).concat(i,")")}function c(h){var g=o0.indexOf(h)+1,m=n[o0[g]];if(g===o0.length)return l("xs");var v=typeof m=="number"&&g>0?m:h;return"@media (max-width:".concat(v-a/100).concat(i,")")}function u(h,g){var m=o0.indexOf(g);return m===o0.length-1?l(h):"@media (min-width:".concat(typeof n[h]=="number"?n[h]:h).concat(i,") and ")+"(max-width:".concat((m!==-1&&typeof n[o0[m+1]]=="number"?n[o0[m+1]]:g)-a/100).concat(i,")")}function d(h){return u(h,h)}function p(h){return n[h]}return Y({keys:o0,values:n,up:l,down:c,between:u,only:d,width:p},s)}function Irn(e,t,n){var r;return Y({gutters:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",`
      paddingLeft: theme.spacing(2),
      paddingRight: theme.spacing(2),
      [theme.breakpoints.up('sm')]: {
        paddingLeft: theme.spacing(3),
        paddingRight: theme.spacing(3),
      },
      `].join(`
`)),Y({paddingLeft:t(2),paddingRight:t(2)},o,tn({},e.up("sm"),Y({paddingLeft:t(3),paddingRight:t(3)},o[e.up("sm")])))},toolbar:(r={minHeight:56},tn(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),tn(r,e.up("sm"),{minHeight:64}),r)},n)}var uIe={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:B$.white,default:lMe[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Wre={text:{primary:B$.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:lMe[800],default:"#303030"},action:{active:B$.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function dIe(e,t,n,r){var i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=bW(e.main,i):t==="dark"&&(e.dark=vW(e.main,o)))}function Prn(e){var t=e.primary,n=t===void 0?{light:Rre[300],main:Rre[500],dark:Rre[700]}:t,r=e.secondary,i=r===void 0?{light:Ere.A200,main:Ere.A400,dark:Ere.A700}:r,o=e.error,a=o===void 0?{light:Tre[300],main:Tre[500],dark:Tre[700]}:o,s=e.warning,l=s===void 0?{light:Dre[300],main:Dre[500],dark:Dre[700]}:s,c=e.info,u=c===void 0?{light:Ire[300],main:Ire[500],dark:Ire[700]}:c,d=e.success,p=d===void 0?{light:Pre[300],main:Pre[500],dark:Pre[700]}:d,h=e.type,g=h===void 0?"light":h,m=e.contrastThreshold,v=m===void 0?3:m,y=e.tonalOffset,M=y===void 0?.2:y,C=fn(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(z){var O=Trn(z,Wre.text.primary)>=v?Wre.text.primary:uIe.text.primary;return O}var w=function(O){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(O=Y({},O),!O.main&&O[T]&&(O.main=O[T]),!O.main)throw new Error(iP(4,T));if(typeof O.main!="string")throw new Error(iP(5,JSON.stringify(O.main)));return dIe(O,"light",I,M),dIe(O,"dark",P,M),O.contrastText||(O.contrastText=x(O.main)),O},S={dark:Wre,light:uIe},A=Ux(Y({common:B$,type:g,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(u),success:w(p),grey:lMe,contrastThreshold:v,getContrastText:x,augmentColor:w,tonalOffset:M},S[g]),C);return A}function hot(e){return Math.round(e*1e5)/1e5}function Drn(e){return hot(e)}var pIe={textTransform:"uppercase"},hIe='"Roboto", "Helvetica", "Arial", sans-serif';function krn(e,t){var n=typeof t=="function"?t(e):t,r=n.fontFamily,i=r===void 0?hIe:r,o=n.fontSize,a=o===void 0?14:o,s=n.fontWeightLight,l=s===void 0?300:s,c=n.fontWeightRegular,u=c===void 0?400:c,d=n.fontWeightMedium,p=d===void 0?500:d,h=n.fontWeightBold,g=h===void 0?700:h,m=n.htmlFontSize,v=m===void 0?16:m,y=n.allVariants,M=n.pxToRem,C=fn(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=M||function(z){return"".concat(z/v*x,"rem")},S=function(O,T,I,P,N){return Y({fontFamily:i,fontWeight:O,fontSize:w(T),lineHeight:I},i===hIe?{letterSpacing:"".concat(hot(P/T),"em")}:{},N,y)},A={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(u,48,1.167,0),h4:S(u,34,1.235,.25),h5:S(u,24,1.334,0),h6:S(p,20,1.6,.15),subtitle1:S(u,16,1.75,.15),subtitle2:S(p,14,1.57,.1),body1:S(u,16,1.5,.15),body2:S(u,14,1.43,.15),button:S(p,14,1.75,.4,pIe),caption:S(u,12,1.66,.4),overline:S(u,12,2.66,1,pIe)};return Ux(Y({htmlFontSize:v,pxToRem:w,round:Drn,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:g},A),C,{clone:!1})}var Lrn=.2,_rn=.14,Nrn=.12;function pl(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(Lrn,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(_rn,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(Nrn,")")].join(",")}var Frn=["none",pl(0,2,1,-1,0,1,1,0,0,1,3,0),pl(0,3,1,-2,0,2,2,0,0,1,5,0),pl(0,3,3,-2,0,3,4,0,0,1,8,0),pl(0,2,4,-1,0,4,5,0,0,1,10,0),pl(0,3,5,-1,0,5,8,0,0,1,14,0),pl(0,3,5,-1,0,6,10,0,0,1,18,0),pl(0,4,5,-2,0,7,10,1,0,2,16,1),pl(0,5,5,-3,0,8,10,1,0,3,14,2),pl(0,5,6,-3,0,9,12,1,0,3,16,2),pl(0,6,6,-3,0,10,14,1,0,4,18,3),pl(0,6,7,-4,0,11,15,1,0,4,20,3),pl(0,7,8,-4,0,12,17,2,0,5,22,4),pl(0,7,8,-4,0,13,19,2,0,5,24,4),pl(0,7,9,-4,0,14,21,2,0,5,26,4),pl(0,8,9,-5,0,15,22,2,0,6,28,5),pl(0,8,10,-5,0,16,24,2,0,6,30,5),pl(0,8,11,-5,0,17,26,2,0,6,32,5),pl(0,9,11,-5,0,18,28,2,0,7,34,6),pl(0,9,12,-6,0,19,29,2,0,7,36,6),pl(0,10,13,-6,0,20,31,3,0,8,38,7),pl(0,10,13,-6,0,21,33,3,0,8,40,7),pl(0,10,14,-6,0,22,35,3,0,8,42,7),pl(0,11,14,-7,0,23,36,3,0,9,44,8),pl(0,11,15,-7,0,24,38,3,0,9,46,8)],Wrn={borderRadius:4};function Nhe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qrn(e){if(Array.isArray(e))return Nhe(e)}function Brn(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uMe(e,t){if(e){if(typeof e=="string")return Nhe(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nhe(e,t):void 0}}function jrn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S6(e){return qrn(e)||Brn(e)||uMe(e)||jrn()}function j$(e,t){return t?Ux(e,t,{clone:!1}):e}var Hrn={xs:0,sm:600,md:960,lg:1280,xl:1920},fIe={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(Hrn[t],"px)")}};function fot(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||fIe;return t.reduce(function(a,s,l){return a[r.up(r.keys[l])]=n(t[l]),a},{})}if(p1(t)==="object"){var i=e.theme.breakpoints||fIe;return Object.keys(t).reduce(function(a,s){return a[i.up(s)]=n(t[s]),a},{})}var o=n(t);return o}function gIe(e,t){return!t||typeof t!="string"?null:t.split(".").reduce(function(n,r){return n&&n[r]?n[r]:null},e)}function Fr(e){var t=e.prop,n=e.cssProperty,r=n===void 0?e.prop:n,i=e.themeKey,o=e.transform,a=function(l){if(l[t]==null)return null;var c=l[t],u=l.theme,d=gIe(u,i)||{},p=function(g){var m;return typeof d=="function"?m=d(g):Array.isArray(d)?m=d[g]||g:(m=gIe(d,g)||g,o&&(m=o(m))),r===!1?m:tn({},r,m)};return fot(l,c,p)};return a.propTypes={},a.filterProps=[t],a}function hM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(o){return t.reduce(function(a,s){var l=s(o);return l?j$(a,l):a},{})};return r.propTypes={},r.filterProps=t.reduce(function(i,o){return i.concat(o.filterProps)},[]),r}function A6(e){return typeof e!="number"?e:"".concat(e,"px solid")}var Vrn=Fr({prop:"border",themeKey:"borders",transform:A6}),Grn=Fr({prop:"borderTop",themeKey:"borders",transform:A6}),$rn=Fr({prop:"borderRight",themeKey:"borders",transform:A6}),Urn=Fr({prop:"borderBottom",themeKey:"borders",transform:A6}),Xrn=Fr({prop:"borderLeft",themeKey:"borders",transform:A6}),Yrn=Fr({prop:"borderColor",themeKey:"palette"}),Krn=Fr({prop:"borderRadius",themeKey:"shape"}),Qrn=hM(Vrn,Grn,$rn,Urn,Xrn,Yrn,Krn);function mIe(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function Zrn(e){var t=function(r){var i=e(r);return r.css?Y({},j$(i,e(Y({theme:r.theme},r.css))),mIe(r.css,[e.filterProps])):r.sx?Y({},j$(i,e(Y({theme:r.theme},r.sx))),mIe(r.sx,[e.filterProps])):i};return t.propTypes={},t.filterProps=["css","sx"].concat(S6(e.filterProps)),t}var Jrn=Fr({prop:"displayPrint",cssProperty:!1,transform:function(t){return{"@media print":{display:t}}}}),ein=Fr({prop:"display"}),tin=Fr({prop:"overflow"}),nin=Fr({prop:"textOverflow"}),rin=Fr({prop:"visibility"}),iin=Fr({prop:"whiteSpace"});const oin=hM(Jrn,ein,tin,nin,rin,iin);var ain=Fr({prop:"flexBasis"}),sin=Fr({prop:"flexDirection"}),lin=Fr({prop:"flexWrap"}),cin=Fr({prop:"justifyContent"}),uin=Fr({prop:"alignItems"}),din=Fr({prop:"alignContent"}),pin=Fr({prop:"order"}),hin=Fr({prop:"flex"}),fin=Fr({prop:"flexGrow"}),gin=Fr({prop:"flexShrink"}),min=Fr({prop:"alignSelf"}),vin=Fr({prop:"justifyItems"}),bin=Fr({prop:"justifySelf"}),yin=hM(ain,sin,lin,cin,uin,din,pin,hin,fin,gin,min,vin,bin),Min=Fr({prop:"gridGap"}),Cin=Fr({prop:"gridColumnGap"}),xin=Fr({prop:"gridRowGap"}),win=Fr({prop:"gridColumn"}),Sin=Fr({prop:"gridRow"}),Ain=Fr({prop:"gridAutoFlow"}),Oin=Fr({prop:"gridAutoColumns"}),zin=Fr({prop:"gridAutoRows"}),Tin=Fr({prop:"gridTemplateColumns"}),Ein=Fr({prop:"gridTemplateRows"}),Rin=Fr({prop:"gridTemplateAreas"}),Iin=Fr({prop:"gridArea"}),Pin=hM(Min,Cin,xin,win,Sin,Ain,Oin,zin,Tin,Ein,Rin,Iin),Din=Fr({prop:"color",themeKey:"palette"}),kin=Fr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Lin=hM(Din,kin),_in=Fr({prop:"position"}),Nin=Fr({prop:"zIndex",themeKey:"zIndex"}),Fin=Fr({prop:"top"}),Win=Fr({prop:"right"}),qin=Fr({prop:"bottom"}),Bin=Fr({prop:"left"});const jin=hM(_in,Nin,Fin,Win,qin,Bin);var Hin=Fr({prop:"boxShadow",themeKey:"shadows"});function Aw(e){return e<=1?"".concat(e*100,"%"):e}var Vin=Fr({prop:"width",transform:Aw}),Gin=Fr({prop:"maxWidth",transform:Aw}),$in=Fr({prop:"minWidth",transform:Aw}),Uin=Fr({prop:"height",transform:Aw}),Xin=Fr({prop:"maxHeight",transform:Aw}),Yin=Fr({prop:"minHeight",transform:Aw});Fr({prop:"size",cssProperty:"width",transform:Aw});Fr({prop:"size",cssProperty:"height",transform:Aw});var Kin=Fr({prop:"boxSizing"}),Qin=hM(Vin,Gin,$in,Uin,Xin,Yin,Kin);function Zin(e){if(Array.isArray(e))return e}function Jin(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function eon(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xu(e,t){return Zin(e)||Jin(e,t)||uMe(e,t)||eon()}function ton(e){var t={};return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var non={m:"margin",p:"padding"},ron={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vIe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ion=ton(function(e){if(e.length>2)if(vIe[e])e=vIe[e];else return[e];var t=e.split(""),n=Xu(t,2),r=n[0],i=n[1],o=non[r],a=ron[i]||"";return Array.isArray(a)?a.map(function(s){return o+s}):[o+a]}),got=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function mot(e){var t=e.spacing||8;return typeof t=="number"?function(n){return t*n}:Array.isArray(t)?function(n){return t[n]}:typeof t=="function"?t:function(){}}function oon(e,t){if(typeof t=="string"||t==null)return t;var n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:"-".concat(r)}function aon(e,t){return function(n){return e.reduce(function(r,i){return r[i]=oon(t,n),r},{})}}function dMe(e){var t=e.theme,n=mot(t);return Object.keys(e).map(function(r){if(got.indexOf(r)===-1)return null;var i=ion(r),o=aon(i,n),a=e[r];return fot(e,a,o)}).reduce(j$,{})}dMe.propTypes={};dMe.filterProps=got;var son=Fr({prop:"fontFamily",themeKey:"typography"}),lon=Fr({prop:"fontSize",themeKey:"typography"}),con=Fr({prop:"fontStyle",themeKey:"typography"}),uon=Fr({prop:"fontWeight",themeKey:"typography"}),don=Fr({prop:"letterSpacing"}),pon=Fr({prop:"lineHeight"}),hon=Fr({prop:"textAlign"}),fon=hM(son,lon,con,uon,don,pon,hon);function gon(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=mot({spacing:e}),n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.length===0?t(1):o.length===1?t(o[0]):o.map(function(s){if(typeof s=="string")return s;var l=t(s);return typeof l=="number"?"".concat(l,"px"):l}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var bIe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},lh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yIe(e){return"".concat(Math.round(e),"ms")}const mon={easing:bIe,duration:lh,create:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.duration,i=r===void 0?lh.standard:r,o=n.easing,a=o===void 0?bIe.easeInOut:o,s=n.delay,l=s===void 0?0:s;return fn(n,["duration","easing","delay"]),(Array.isArray(t)?t:[t]).map(function(c){return"".concat(c," ").concat(typeof i=="string"?i:yIe(i)," ").concat(a," ").concat(typeof l=="string"?l:yIe(l))}).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var n=t/36;return Math.round((4+15*Math.pow(n,.25)+n/5)*10)}};var vot={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function y3(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.breakpoints,n=t===void 0?{}:t,r=e.mixins,i=r===void 0?{}:r,o=e.palette,a=o===void 0?{}:o,s=e.spacing,l=e.typography,c=l===void 0?{}:l,u=fn(e,["breakpoints","mixins","palette","spacing","typography"]),d=Prn(a),p=Rrn(n),h=gon(s),g=Ux({breakpoints:p,direction:"ltr",mixins:Irn(p,h,i),overrides:{},palette:d,props:{},shadows:Frn,typography:krn(d,c),spacing:h,shape:Wrn,transitions:mon,zIndex:vot},u),m=arguments.length,v=new Array(m>1?m-1:0),y=1;y<m;y++)v[y-1]=arguments[y];return g=v.reduce(function(M,C){return Ux(M,C)},g),g}function von(){return y3.apply(void 0,arguments)}var bon=typeof Symbol=="function"&&Symbol.for;const bot=bon?Symbol.for("mui.nested"):"__THEME_NESTED__";var yon=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Mon(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.disableGlobal,n=t===void 0?!1:t,r=e.productionPrefix,i=r===void 0?"jss":r,o=e.seed,a=o===void 0?"":o,s=a===""?"":"".concat(a,"-"),l=0,c=function(){return l+=1,l};return function(u,d){var p=d.options.name;if(p&&p.indexOf("Mui")===0&&!d.options.link&&!n){if(yon.indexOf(u.key)!==-1)return"Mui-".concat(u.key);var h="".concat(s).concat(p,"-").concat(u.key);return!d.options.theme[bot]||a!==""?h:"".concat(h,"-").concat(c())}return"".concat(s).concat(i).concat(c())}}function HK(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i=t.props[n],o;for(o in i)r[o]===void 0&&(r[o]=i[o]);return r}var MIe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O6=(typeof window>"u"?"undefined":MIe(window))==="object"&&(typeof document>"u"?"undefined":MIe(document))==="object"&&document.nodeType===9;function CIe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oz(r.key),r)}}function so(e,t,n){return t&&CIe(e.prototype,t),n&&CIe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function H$(e,t){return H$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},H$(e,t)}function pa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,H$(e,t)}function xn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Con={}.constructor;function Fhe(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Fhe);if(e.constructor!==Con)return e;var t={};for(var n in e)t[n]=Fhe(e[n]);return t}function pMe(e,t,n){e===void 0&&(e="unnamed");var r=n.jss,i=Fhe(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var xIe=function(t,n){for(var r="",i=0;i<t.length&&t[i]!=="!important";i++)r&&(r+=n),r+=t[i];return r},qO=function(t){if(!Array.isArray(t))return t;var n="";if(Array.isArray(t[0]))for(var r=0;r<t.length&&t[r]!=="!important";r++)n&&(n+=", "),n+=xIe(t[r]," ");else n=xIe(t,", ");return t[t.length-1]==="!important"&&(n+=" !important"),n};function bD(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
`,space:" "}}function o4(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function yW(e,t,n){n===void 0&&(n={});var r="";if(!t)return r;var i=n,o=i.indent,a=o===void 0?0:o,s=t.fallbacks;n.format===!1&&(a=-1/0);var l=bD(n),c=l.linebreak,u=l.space;if(e&&a++,s)if(Array.isArray(s))for(var d=0;d<s.length;d++){var p=s[d];for(var h in p){var g=p[h];g!=null&&(r&&(r+=c),r+=o4(h+":"+u+qO(g)+";",a))}}else for(var m in s){var v=s[m];v!=null&&(r&&(r+=c),r+=o4(m+":"+u+qO(v)+";",a))}for(var y in t){var M=t[y];M!=null&&y!=="fallbacks"&&(r&&(r+=c),r+=o4(y+":"+u+qO(M)+";",a))}return!r&&!n.allowEmpty||!e?r:(a--,r&&(r=""+c+r+c),o4(""+e+u+"{"+r,a)+o4("}",a))}var xon=/([[\].#*$><+~=|^:(),"'`\s])/g,wIe=typeof CSS<"u"&&CSS.escape,hMe=(function(e){return wIe?wIe(e):e.replace(xon,"\\$1")}),yot=(function(){function e(n,r,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=n,this.options=i,this.style=r,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var t=e.prototype;return t.prop=function(r,i,o){if(i===void 0)return this.style[r];var a=o?o.force:!1;if(!a&&this.style[r]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,r,this));var l=s==null||s===!1,c=r in this.style;if(l&&!c&&!a)return this;var u=l&&c;if(u?delete this.style[r]:this.style[r]=s,this.renderable&&this.renderer)return u?this.renderer.removeProperty(this.renderable,r):this.renderer.setProperty(this.renderable,r,s),this;var d=this.options.sheet;return d&&d.attached,this},e})(),Whe=(function(e){pa(t,e);function t(r,i,o){var a;a=e.call(this,r,i,o)||this;var s=o.selector,l=o.scoped,c=o.sheet,u=o.generateId;return s?a.selectorText=s:l!==!1&&(a.id=u(xn(xn(a)),c),a.selectorText="."+hMe(a.id)),a}var n=t.prototype;return n.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},n.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=qO(a))}return i},n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?Y({},i,{allowEmpty:!0}):i;return yW(this.selectorText,this.style,s)},so(t,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t})(yot),won={onCreateRule:function(t,n,r){return t[0]==="@"||r.parent&&r.parent.type==="keyframes"?null:new Whe(t,n,r)}},qre={indent:1,children:!0},Son=/@([\w-]+)/,Aon=(function(){function e(n,r,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(Son);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new VK(Y({},i,{parent:this}));for(var a in r)this.rules.add(a,r[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.indexOf=function(r){return this.rules.indexOf(r)},t.addRule=function(r,i,o){var a=this.rules.add(r,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(r,i,o){var a=this.rules.replace(r,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(r){r===void 0&&(r=qre);var i=bD(r),o=i.linebreak;if(r.indent==null&&(r.indent=qre.indent),r.children==null&&(r.children=qre.children),r.children===!1)return this.query+" {}";var a=this.rules.toString(r);return a?this.query+" {"+o+a+o+"}":""},e})(),Oon=/@container|@media|@supports\s+/,zon={onCreateRule:function(t,n,r){return Oon.test(t)?new Aon(t,n,r):null}},Bre={indent:1,children:!0},Ton=/@keyframes\s+([\w-]+)/,qhe=(function(){function e(n,r,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(Ton);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,l=i.generateId;this.id=a===!1?this.name:hMe(l(this,s)),this.rules=new VK(Y({},i,{parent:this}));for(var c in r)this.rules.add(c,r[c],Y({},i,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(r){r===void 0&&(r=Bre);var i=bD(r),o=i.linebreak;if(r.indent==null&&(r.indent=Bre.indent),r.children==null&&(r.children=Bre.children),r.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(r);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},e})(),Eon=/@keyframes\s+/,Ron=/\$([\w-]+)/g,Bhe=function(t,n){return typeof t=="string"?t.replace(Ron,function(r,i){return i in n?n[i]:r}):t},SIe=function(t,n,r){var i=t[n],o=Bhe(i,r);o!==i&&(t[n]=o)},Ion={onCreateRule:function(t,n,r){return typeof t=="string"&&Eon.test(t)?new qhe(t,n,r):null},onProcessStyle:function(t,n,r){return n.type!=="style"||!r||("animation-name"in t&&SIe(t,"animation-name",r.keyframes),"animation"in t&&SIe(t,"animation",r.keyframes)),t},onChangeValue:function(t,n,r){var i=r.options.sheet;if(!i)return t;switch(n){case"animation":return Bhe(t,i.keyframes);case"animation-name":return Bhe(t,i.keyframes);default:return t}}},Pon=(function(e){pa(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?Y({},i,{allowEmpty:!0}):i;return yW(this.key,this.style,s)},t})(yot),Don={onCreateRule:function(t,n,r){return r.parent&&r.parent.type==="keyframes"?new Pon(t,n,r):null}},kon=(function(){function e(n,r,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=r,this.options=i}var t=e.prototype;return t.toString=function(r){var i=bD(r),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=yW(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return yW(this.at,this.style,r)},e})(),Lon=/@font-face/,_on={onCreateRule:function(t,n,r){return Lon.test(t)?new kon(t,n,r):null}},Non=(function(){function e(n,r,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=r,this.options=i}var t=e.prototype;return t.toString=function(r){return yW(this.key,this.style,r)},e})(),Fon={onCreateRule:function(t,n,r){return t==="@viewport"||t==="@-ms-viewport"?new Non(t,n,r):null}},Won=(function(){function e(n,r,i){this.type="simple",this.isProcessed=!1,this.key=n,this.value=r,this.options=i}var t=e.prototype;return t.toString=function(r){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
`);return i}return this.key+" "+this.value+";"},e})(),qon={"@charset":!0,"@import":!0,"@namespace":!0},Bon={onCreateRule:function(t,n,r){return t in qon?new Won(t,n,r):null}},AIe=[won,zon,Ion,Don,_on,Fon,Bon],jon={process:!0},OIe={force:!0,process:!0},VK=(function(){function e(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var t=e.prototype;return t.add=function(r,i,o){var a=this.options,s=a.parent,l=a.sheet,c=a.jss,u=a.Renderer,d=a.generateId,p=a.scoped,h=Y({classes:this.classes,parent:s,sheet:l,jss:c,Renderer:u,generateId:d,scoped:p,name:r,keyframes:this.keyframes,selector:void 0},o),g=r;r in this.raw&&(g=r+"-d"+this.counter++),this.raw[g]=i,g in this.classes&&(h.selector="."+hMe(this.classes[g]));var m=pMe(g,i,h);if(!m)return null;this.register(m);var v=h.index===void 0?this.index.length:h.index;return this.index.splice(v,0,m),m},t.replace=function(r,i,o){var a=this.get(r),s=this.index.indexOf(a);a&&this.remove(a);var l=o;return s!==-1&&(l=Y({},o,{index:s})),this.add(r,i,l)},t.get=function(r){return this.map[r]},t.remove=function(r){this.unregister(r),delete this.raw[r.key],this.index.splice(this.index.indexOf(r),1)},t.indexOf=function(r){return this.index.indexOf(r)},t.process=function(){var r=this.options.jss.plugins;this.index.slice(0).forEach(r.onProcessRule,r)},t.register=function(r){this.map[r.key]=r,r instanceof Whe?(this.map[r.selector]=r,r.id&&(this.classes[r.key]=r.id)):r instanceof qhe&&this.keyframes&&(this.keyframes[r.name]=r.id)},t.unregister=function(r){delete this.map[r.key],r instanceof Whe?(delete this.map[r.selector],delete this.classes[r.key]):r instanceof qhe&&delete this.keyframes[r.name]},t.update=function(){var r,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(r=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],r=null),r)this.updateOne(this.get(r),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},t.updateOne=function(r,i,o){o===void 0&&(o=jon);var a=this.options,s=a.jss.plugins,l=a.sheet;if(r.rules instanceof e){r.rules.update(i,o);return}var c=r.style;if(s.onUpdate(i,r,l,o),o.process&&c&&c!==r.style){s.onProcessStyle(r.style,r,l);for(var u in r.style){var d=r.style[u],p=c[u];d!==p&&r.prop(u,d,OIe)}for(var h in c){var g=r.style[h],m=c[h];g==null&&g!==m&&r.prop(h,null,OIe)}}},t.toString=function(r){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=bD(r),l=s.linebreak,c=0;c<this.index.length;c++){var u=this.index[c],d=u.toString(r);!d&&!a||(i&&(i+=l),i+=d)}return i},e})(),Mot=(function(){function e(n,r){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Y({},r,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),r.Renderer&&(this.renderer=new r.Renderer(this)),this.rules=new VK(this.options);for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(r,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(r,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},t.replaceRule=function(r,i,o){var a=this.rules.get(r);if(!a)return this.addRule(r,i,o);var s=this.rules.replace(r,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},t.insertRule=function(r){this.renderer&&this.renderer.insertRule(r)},t.addRules=function(r,i){var o=[];for(var a in r){var s=this.addRule(a,r[a],i);s&&o.push(s)}return o},t.getRule=function(r){return this.rules.get(r)},t.deleteRule=function(r){var i=typeof r=="object"?r:this.rules.get(r);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},t.indexOf=function(r){return this.rules.indexOf(r)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var r;return(r=this.rules).update.apply(r,arguments),this},t.updateOne=function(r,i,o){return this.rules.updateOne(r,i,o),this},t.toString=function(r){return this.rules.toString(r)},e})(),Hon=(function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(r,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](r,i,o);if(s)return s}return null},t.onProcessRule=function(r){if(!r.isProcessed){for(var i=r.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](r,i);r.style&&this.onProcessStyle(r.style,r,i),r.isProcessed=!0}},t.onProcessStyle=function(r,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},t.onProcessSheet=function(r){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](r)},t.onUpdate=function(r,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](r,i,o,a)},t.onChangeValue=function(r,i,o){for(var a=r,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},t.use=function(r,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(r)===-1&&(o.push(r),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var l in s)l in a&&a[l].push(s[l]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e})(),Von=(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(r){var i=this.registry,o=r.options.index;if(i.indexOf(r)===-1){if(i.length===0||o>=this.index){i.push(r);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,r);return}}},t.reset=function(){this.registry=[]},t.remove=function(r){var i=this.registry.indexOf(r);this.registry.splice(i,1)},t.toString=function(r){for(var i=r===void 0?{}:r,o=i.attached,a=Lt(i,["attached"]),s=bD(a),l=s.linebreak,c="",u=0;u<this.registry.length;u++){var d=this.registry[u];o!=null&&d.attached!==o||(c&&(c+=l),c+=d.toString(a))}return c},so(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e})(),jN=new Von,jhe=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),Hhe="2f1acc6c3a606b082e5eef5e54414ffb";jhe[Hhe]==null&&(jhe[Hhe]=0);var zIe=jhe[Hhe]++,TIe=function(t){t===void 0&&(t={});var n=0,r=function(o,a){n+=1;var s="",l="";return a&&(a.options.classNamePrefix&&(l=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),t.minify?""+(l||"c")+zIe+s+n:l+o.key+"-"+zIe+(s?"-"+s:"")+"-"+n};return r},Cot=function(t){var n;return function(){return n||(n=t()),n}},Gon=function(t,n){try{return t.attributeStyleMap?t.attributeStyleMap.get(n):t.style.getPropertyValue(n)}catch{return""}},$on=function(t,n,r){try{var i=r;if(Array.isArray(r)&&(i=qO(r)),t.attributeStyleMap)t.attributeStyleMap.set(n,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;t.style.setProperty(n,a,o>-1?"important":"")}}catch{return!1}return!0},Uon=function(t,n){try{t.attributeStyleMap?t.attributeStyleMap.delete(n):t.style.removeProperty(n)}catch{}},Xon=function(t,n){return t.selectorText=n,t.selectorText===n},xot=Cot(function(){return document.querySelector("head")});function Yon(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function Kon(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function Qon(e){for(var t=xot(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(r.nodeType===8&&r.nodeValue.trim()===e)return r}return null}function Zon(e){var t=jN.registry;if(t.length>0){var n=Yon(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=Kon(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&typeof r=="string"){var i=Qon(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function Jon(e,t){var n=t.insertionPoint,r=Zon(t);if(r!==!1&&r.parent){r.parent.insertBefore(e,r.node);return}if(n&&typeof n.nodeType=="number"){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling);return}xot().appendChild(e)}var ean=Cot(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),EIe=function(t,n,r){try{"insertRule"in t?t.insertRule(n,r):"appendRule"in t&&t.appendRule(n)}catch{return!1}return t.cssRules[r]},RIe=function(t,n){var r=t.cssRules.length;return n===void 0||n>r?r:n},tan=function(){var t=document.createElement("style");return t.textContent=`
`,t},nan=(function(){function e(n){this.getPropertyValue=Gon,this.setProperty=$on,this.removeProperty=Uon,this.setSelector=Xon,this.hasInsertedRules=!1,this.cssRules=[],n&&jN.add(n),this.sheet=n;var r=this.sheet?this.sheet.options:{},i=r.media,o=r.meta,a=r.element;this.element=a||tan(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=ean();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){Jon(this.element,this.sheet.options);var r=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&r&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var r=this.element.parentNode;r&&r.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
`)}},t.deploy=function(){var r=this.sheet;if(r){if(r.options.link){this.insertRules(r.rules);return}this.element.textContent=`
`+r.toString()+`
`}},t.insertRules=function(r,i){for(var o=0;o<r.index.length;o++)this.insertRule(r.index[o],o,i)},t.insertRule=function(r,i,o){if(o===void 0&&(o=this.element.sheet),r.rules){var a=r,s=o;if(r.type==="conditional"||r.type==="keyframes"){var l=RIe(o,i);if(s=EIe(o,a.toString({children:!1}),l),s===!1)return!1;this.refCssRule(r,l,s)}return this.insertRules(a.rules,s),s}var c=r.toString();if(!c)return!1;var u=RIe(o,i),d=EIe(o,c,u);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(r,u,d),d)},t.refCssRule=function(r,i,o){r.renderable=o,r.options.parent instanceof Mot&&this.cssRules.splice(i,0,o)},t.deleteRule=function(r){var i=this.element.sheet,o=this.indexOf(r);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},t.indexOf=function(r){return this.cssRules.indexOf(r)},t.replaceRule=function(r,i){var o=this.indexOf(r);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},t.getRules=function(){return this.element.sheet.cssRules},e})(),ran=0,ian=(function(){function e(n){this.id=ran++,this.version="10.10.0",this.plugins=new Hon,this.options={id:{minify:!1},createGenerateId:TIe,Renderer:O6?nan:null,plugins:[]},this.generateId=TIe({minify:!1});for(var r=0;r<AIe.length;r++)this.plugins.use(AIe[r],{queue:"internal"});this.setup(n)}var t=e.prototype;return t.setup=function(r){return r===void 0&&(r={}),r.createGenerateId&&(this.options.createGenerateId=r.createGenerateId),r.id&&(this.options.id=Y({},this.options.id,r.id)),(r.createGenerateId||r.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),r.insertionPoint!=null&&(this.options.insertionPoint=r.insertionPoint),"Renderer"in r&&(this.options.Renderer=r.Renderer),r.plugins&&this.use.apply(this,r.plugins),this},t.createStyleSheet=function(r,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=jN.index===0?0:jN.index+1);var s=new Mot(r,Y({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},t.removeStyleSheet=function(r){return r.detach(),jN.remove(r),this},t.createRule=function(r,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof r=="object")return this.createRule(void 0,r,i);var a=Y({},o,{name:r,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=pMe(r,i,a);return s&&this.plugins.onProcessRule(s),s},t.use=function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(s){r.plugins.use(s)}),this},e})(),wot=function(t){return new ian(t)},fMe=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Sot(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if(i==="function")t||(t={}),t[n]=r;else if(i==="object"&&r!==null&&!Array.isArray(r)){var o=Sot(r);o&&(t||(t={}),t[n]=o)}}return t}/**
 * A better abstraction over CSS.
 *
 * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
 * @website https://github.com/cssinjs/jss
 * @license MIT
 */wot();var Aot=Date.now(),jre="fnValues"+Aot,Hre="fnStyle"+ ++Aot,oan=function(){return{onCreateRule:function(n,r,i){if(typeof r!="function")return null;var o=pMe(n,{},i);return o[Hre]=r,o},onProcessStyle:function(n,r){if(jre in r||Hre in r)return n;var i={};for(var o in n){var a=n[o];typeof a=="function"&&(delete n[o],i[o]=a)}return r[jre]=i,n},onUpdate:function(n,r,i,o){var a=r,s=a[Hre];s&&(a.style=s(n)||{});var l=a[jre];if(l)for(var c in l)a.prop(c,l[c](n),o)}}},Tx="@global",Vhe="@global ",aan=(function(){function e(n,r,i){this.type="global",this.at=Tx,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new VK(Y({},i,{parent:this}));for(var o in r)this.rules.add(o,r[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.addRule=function(r,i,o){var a=this.rules.add(r,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(r,i,o){var a=this.rules.replace(r,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(r){return this.rules.indexOf(r)},t.toString=function(r){return this.rules.toString(r)},e})(),san=(function(){function e(n,r,i){this.type="global",this.at=Tx,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(Vhe.length);this.rule=i.jss.createRule(o,r,Y({},i,{parent:this}))}var t=e.prototype;return t.toString=function(r){return this.rule?this.rule.toString(r):""},e})(),lan=/\s*,\s*/g;function Oot(e,t){for(var n=e.split(lan),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function can(e,t){var n=e.options,r=e.style,i=r?r[Tx]:null;if(i){for(var o in i)t.addRule(o,i[o],Y({},n,{selector:Oot(o,e.selector)}));delete r[Tx]}}function uan(e,t){var n=e.options,r=e.style;for(var i in r)if(!(i[0]!=="@"||i.substr(0,Tx.length)!==Tx)){var o=Oot(i.substr(Tx.length),e.selector);t.addRule(o,r[i],Y({},n,{selector:o})),delete r[i]}}function dan(){function e(n,r,i){if(!n)return null;if(n===Tx)return new aan(n,r,i);if(n[0]==="@"&&n.substr(0,Vhe.length)===Vhe)return new san(n,r,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=n),null}function t(n,r){n.type!=="style"||!r||(can(n,r),uan(n,r))}return{onCreateRule:e,onProcessRule:t}}var IIe=/\s*,\s*/g,pan=/&/g,han=/\$([\w-]+)/g;function fan(){function e(i,o){return function(a,s){var l=i.getRule(s)||o&&o.getRule(s);return l?l.selector:s}}function t(i,o){for(var a=o.split(IIe),s=i.split(IIe),l="",c=0;c<a.length;c++)for(var u=a[c],d=0;d<s.length;d++){var p=s[d];l&&(l+=", "),l+=p.indexOf("&")!==-1?p.replace(pan,u):u+" "+p}return l}function n(i,o,a){if(a)return Y({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var l=Y({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete l.name,l}function r(i,o,a){if(o.type!=="style")return i;var s=o,l=s.options.parent,c,u;for(var d in i){var p=d.indexOf("&")!==-1,h=d[0]==="@";if(!(!p&&!h)){if(c=n(s,l,c),p){var g=t(d,s.selector);u||(u=e(l,a)),g=g.replace(han,u);var m=s.key+"-"+d;"replaceRule"in l?l.replaceRule(m,i[d],Y({},c,{selector:g})):l.addRule(m,i[d],Y({},c,{selector:g}))}else h&&l.addRule(d,{},c).addRule(s.key,i[d],{selector:s.selector});delete i[d]}}return i}return{onProcessStyle:r}}var gan=/[A-Z]/g,man=/^ms-/,Vre={};function van(e){return"-"+e.toLowerCase()}function zot(e){if(Vre.hasOwnProperty(e))return Vre[e];var t=e.replace(gan,van);return Vre[e]=man.test(t)?"-"+t:t}function V$(e){var t={};for(var n in e){var r=n.indexOf("--")===0?n:zot(n);t[r]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(V$):t.fallbacks=V$(e.fallbacks)),t}function ban(){function e(n){if(Array.isArray(n)){for(var r=0;r<n.length;r++)n[r]=V$(n[r]);return n}return V$(n)}function t(n,r,i){if(r.indexOf("--")===0)return n;var o=zot(r);return r===o?n:(i.prop(o,n),null)}return{onProcessStyle:e,onChangeValue:t}}var rn=fMe&&CSS?CSS.px:"px",r8=fMe&&CSS?CSS.ms:"ms",gE=fMe&&CSS?CSS.percent:"%",yan={"animation-delay":r8,"animation-duration":r8,"background-position":rn,"background-position-x":rn,"background-position-y":rn,"background-size":rn,border:rn,"border-bottom":rn,"border-bottom-left-radius":rn,"border-bottom-right-radius":rn,"border-bottom-width":rn,"border-left":rn,"border-left-width":rn,"border-radius":rn,"border-right":rn,"border-right-width":rn,"border-top":rn,"border-top-left-radius":rn,"border-top-right-radius":rn,"border-top-width":rn,"border-width":rn,"border-block":rn,"border-block-end":rn,"border-block-end-width":rn,"border-block-start":rn,"border-block-start-width":rn,"border-block-width":rn,"border-inline":rn,"border-inline-end":rn,"border-inline-end-width":rn,"border-inline-start":rn,"border-inline-start-width":rn,"border-inline-width":rn,"border-start-start-radius":rn,"border-start-end-radius":rn,"border-end-start-radius":rn,"border-end-end-radius":rn,margin:rn,"margin-bottom":rn,"margin-left":rn,"margin-right":rn,"margin-top":rn,"margin-block":rn,"margin-block-end":rn,"margin-block-start":rn,"margin-inline":rn,"margin-inline-end":rn,"margin-inline-start":rn,padding:rn,"padding-bottom":rn,"padding-left":rn,"padding-right":rn,"padding-top":rn,"padding-block":rn,"padding-block-end":rn,"padding-block-start":rn,"padding-inline":rn,"padding-inline-end":rn,"padding-inline-start":rn,"mask-position-x":rn,"mask-position-y":rn,"mask-size":rn,height:rn,width:rn,"min-height":rn,"max-height":rn,"min-width":rn,"max-width":rn,bottom:rn,left:rn,top:rn,right:rn,inset:rn,"inset-block":rn,"inset-block-end":rn,"inset-block-start":rn,"inset-inline":rn,"inset-inline-end":rn,"inset-inline-start":rn,"box-shadow":rn,"text-shadow":rn,"column-gap":rn,"column-rule":rn,"column-rule-width":rn,"column-width":rn,"font-size":rn,"font-size-delta":rn,"letter-spacing":rn,"text-decoration-thickness":rn,"text-indent":rn,"text-stroke":rn,"text-stroke-width":rn,"word-spacing":rn,motion:rn,"motion-offset":rn,outline:rn,"outline-offset":rn,"outline-width":rn,perspective:rn,"perspective-origin-x":gE,"perspective-origin-y":gE,"transform-origin":gE,"transform-origin-x":gE,"transform-origin-y":gE,"transform-origin-z":gE,"transition-delay":r8,"transition-duration":r8,"vertical-align":rn,"flex-basis":rn,"shape-margin":rn,size:rn,gap:rn,grid:rn,"grid-gap":rn,"row-gap":rn,"grid-row-gap":rn,"grid-column-gap":rn,"grid-template-rows":rn,"grid-template-columns":rn,"grid-auto-rows":rn,"grid-auto-columns":rn,"box-shadow-x":rn,"box-shadow-y":rn,"box-shadow-blur":rn,"box-shadow-spread":rn,"font-line-height":rn,"text-shadow-x":rn,"text-shadow-y":rn,"text-shadow-blur":rn};function Tot(e){var t=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var Man=Tot(yan);function HN(e,t,n){if(t==null)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=HN(e,t[r],n);else if(typeof t=="object")if(e==="fallbacks")for(var i in t)t[i]=HN(i,t[i],n);else for(var o in t)t[o]=HN(e+"-"+o,t[o],n);else if(typeof t=="number"&&isNaN(t)===!1){var a=n[e]||Man[e];return a&&!(t===0&&a===rn)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function Can(e){e===void 0&&(e={});var t=Tot(e);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=HN(a,i[a],t);return i}function r(i,o){return HN(o,i,t)}return{onProcessStyle:n,onChangeValue:r}}var $5="",Ghe="",Eot="",Rot="",xan=O6&&"ontouchstart"in document.documentElement;if(O6){var Gre={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},wan=document.createElement("p"),$re=wan.style,San="Transform";for(var Ure in Gre)if(Ure+San in $re){$5=Ure,Ghe=Gre[Ure];break}$5==="Webkit"&&"msHyphens"in $re&&($5="ms",Ghe=Gre.ms,Rot="edge"),$5==="Webkit"&&"-apple-trailing-word"in $re&&(Eot="apple")}var go={js:$5,css:Ghe,vendor:Eot,browser:Rot,isTouch:xan};function Aan(e){return e[1]==="-"||go.js==="ms"?e:"@"+go.css+"keyframes"+e.substr(10)}var Oan={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:go.js==="ms"?"-webkit-"+t:go.css+t}},zan={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:go.js==="Webkit"?go.css+"print-"+t:t}},Tan=/[-\s]+(.)?/g;function Ean(e,t){return t?t.toUpperCase():""}function gMe(e){return e.replace(Tan,Ean)}function Xx(e){return gMe("-"+e)}var Ran={noPrefill:["mask"],supportedProperty:function(t,n){if(!/^mask/.test(t))return!1;if(go.js==="Webkit"){var r="mask-image";if(gMe(r)in n)return t;if(go.js+Xx(r)in n)return go.css+t}return t}},Ian={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:go.vendor==="apple"&&!go.isTouch?go.css+t:t}},Pan={noPrefill:["transform"],supportedProperty:function(t,n,r){return t!=="transform"?!1:r.transform?t:go.css+t}},Dan={noPrefill:["transition"],supportedProperty:function(t,n,r){return t!=="transition"?!1:r.transition?t:go.css+t}},kan={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:go.js==="Webkit"||go.js==="ms"&&go.browser!=="edge"?go.css+t:t}},Lan={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:go.js==="Moz"||go.js==="ms"||go.vendor==="apple"?go.css+t:t}},_an={supportedProperty:function(t,n){if(!/^break-/.test(t))return!1;if(go.js==="Webkit"){var r="WebkitColumn"+Xx(t);return r in n?go.css+"column-"+t:!1}if(go.js==="Moz"){var i="page"+Xx(t);return i in n?"page-"+t:!1}return!1}},Nan={supportedProperty:function(t,n){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(go.js==="Moz")return t;var r=t.replace("-inline","");return go.js+Xx(r)in n?go.css+r:!1}},Fan={supportedProperty:function(t,n){return gMe(t)in n?t:!1}},Wan={supportedProperty:function(t,n){var r=Xx(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:go.js+r in n?go.css+t:go.js!=="Webkit"&&"Webkit"+r in n?"-webkit-"+t:!1}},qan={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:go.js==="ms"?""+go.css+t:t}},Ban={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:go.js==="ms"?go.css+"scroll-chaining":t}},jan={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Han={supportedProperty:function(t,n){var r=jan[t];return r&&go.js+Xx(r)in n?go.css+r:!1}},Iot={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Van=Object.keys(Iot),Gan=function(t){return go.css+t},$an={supportedProperty:function(t,n,r){var i=r.multiple;if(Van.indexOf(t)>-1){var o=Iot[t];if(!Array.isArray(o))return go.js+Xx(o)in n?go.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(go.js+Xx(o[0])in n))return!1;return o.map(Gan)}return!1}},Pot=[Oan,zan,Ran,Ian,Pan,Dan,kan,Lan,_an,Nan,Fan,Wan,qan,Ban,Han,$an],PIe=Pot.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Uan=Pot.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,S6(t.noPrefill)),e},[]),U5,XA={};if(O6){U5=document.createElement("p");var Xre=window.getComputedStyle(document.documentElement,"");for(var Yre in Xre)isNaN(Yre)||(XA[Xre[Yre]]=Xre[Yre]);Uan.forEach(function(e){return delete XA[e]})}function $he(e,t){if(t===void 0&&(t={}),!U5)return e;if(XA[e]!=null)return XA[e];(e==="transition"||e==="transform")&&(t[e]=e in U5.style);for(var n=0;n<PIe.length&&(XA[e]=PIe[n](e,U5.style,t),!XA[e]);n++);try{U5.style[e]=""}catch{return!1}return XA[e]}var mE={},Xan={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Yan=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,CC;function Kan(e,t,n){if(t==="var")return"var";if(t==="all")return"all";if(n==="all")return", all";var r=t?$he(t):", "+$he(n);return r||t||n}O6&&(CC=document.createElement("p"));function DIe(e,t){var n=t;if(!CC||e==="content")return t;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var r=e+n;if(mE[r]!=null)return mE[r];try{CC.style[e]=n}catch{return mE[r]=!1,!1}if(Xan[e])n=n.replace(Yan,Kan);else if(CC.style[e]===""&&(n=go.css+n,n==="-ms-flex"&&(CC.style[e]="-ms-flexbox"),CC.style[e]=n,CC.style[e]===""))return mE[r]=!1,!1;return CC.style[e]="",mE[r]=n,mE[r]}function Qan(){function e(i){if(i.type==="keyframes"){var o=i;o.at=Aan(o.at)}}function t(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(t);continue}var s=!1,l=$he(o);l&&l!==o&&(s=!0);var c=!1,u=DIe(l,qO(a));u&&u!==a&&(c=!0),(s||c)&&(s&&delete i[o],i[l||o]=u||a)}return i}function n(i,o){return o.type!=="style"?i:t(i)}function r(i,o){return DIe(o,qO(i))||i}return{onProcessRule:e,onProcessStyle:n,onChangeValue:r}}function Zan(){var e=function(n,r){return n.length===r.length?n>r?1:-1:n.length-r.length};return{onProcessStyle:function(n,r){if(r.type!=="style")return n;for(var i={},o=Object.keys(n).sort(e),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}function Jan(){return{plugins:[oan(),dan(),fan(),ban(),Can(),typeof window>"u"?null:Qan(),Zan()]}}var b=Wr();const E=qn(b),MW=nDt({__proto__:null,default:E},[b]);function mMe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=Y({},t);return Object.keys(n).forEach(function(i){n[i]&&(r[i]="".concat(t[i]," ").concat(n[i]))}),r}var RR={set:function(t,n,r,i){var o=t.get(n);o||(o=new Map,t.set(n,o)),o.set(r,i)},get:function(t,n,r){var i=t.get(n);return i?i.get(r):void 0},delete:function(t,n,r){var i=t.get(n);i.delete(r)}},Dot=E.createContext(null);function M3(){var e=E.useContext(Dot);return e}var esn=wot(Jan()),tsn=Mon(),nsn=new Map,rsn={disableGeneration:!1,generateClassName:tsn,jss:esn,sheetsCache:null,sheetsManager:nsn,sheetsRegistry:null},isn=E.createContext(rsn),kIe=-1e9;function osn(){return kIe+=1,kIe}var asn={};function ssn(e){var t=typeof e=="function";return{create:function(r,i){var o;try{o=t?e(r):e}catch(l){throw l}if(!i||!r.overrides||!r.overrides[i])return o;var a=r.overrides[i],s=Y({},o);return Object.keys(a).forEach(function(l){s[l]=Ux(s[l],a[l])}),s},options:{}}}function lsn(e,t,n){var r=e.state,i=e.stylesOptions;if(i.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=mMe({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function csn(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=RR.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},RR.set(i.sheetsManager,o,r,s));var l=Y({},o.options,i,{theme:r,flip:typeof i.flip=="boolean"?i.flip:r.direction==="rtl"});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=i.sheetsRegistry;if(s.refs===0){var u;i.sheetsCache&&(u=RR.get(i.sheetsCache,o,r));var d=o.create(r,a);u||(u=i.jss.createStyleSheet(d,Y({link:!1},l)),u.attach(),i.sheetsCache&&RR.set(i.sheetsCache,o,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Sot(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,Y({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=mMe({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function usn(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function dsn(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=RR.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;o.refs===0&&(RR.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function psn(e,t){var n=E.useRef([]),r,i=E.useMemo(function(){return{}},t);n.current!==i&&(n.current=i,r=e()),E.useEffect(function(){return function(){r&&r()}},[i])}function vMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=o===void 0?asn:o,s=fn(t,["name","classNamePrefix","Component","defaultTheme"]),l=ssn(e),c=n||r||"makeStyles";l.options={index:osn(),name:n,meta:c,classNamePrefix:c};var u=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=M3()||a,g=Y({},E.useContext(isn),s),m=E.useRef(),v=E.useRef();psn(function(){var M={name:n,state:{},stylesCreator:l,stylesOptions:g,theme:h};return csn(M,p),v.current=!1,m.current=M,function(){dsn(M)}},[h,l]),E.useEffect(function(){v.current&&usn(m.current,p),v.current=!0});var y=lsn(m.current,p.classes,i);return y};return u}function Eo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kot(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=kot(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function $t(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=kot(e))&&(r&&(r+=" "),r+=t);return r}var Kre={exports:{}},Ua={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var LIe;function hsn(){if(LIe)return Ua;LIe=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case t:switch(w=w.type,w){case l:case c:case r:case o:case i:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case g:case h:case a:return w;default:return S}}case n:return S}}}function x(w){return C(w)===c}return Ua.AsyncMode=l,Ua.ConcurrentMode=c,Ua.ContextConsumer=s,Ua.ContextProvider=a,Ua.Element=t,Ua.ForwardRef=u,Ua.Fragment=r,Ua.Lazy=g,Ua.Memo=h,Ua.Portal=n,Ua.Profiler=o,Ua.StrictMode=i,Ua.Suspense=d,Ua.isAsyncMode=function(w){return x(w)||C(w)===l},Ua.isConcurrentMode=x,Ua.isContextConsumer=function(w){return C(w)===s},Ua.isContextProvider=function(w){return C(w)===a},Ua.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Ua.isForwardRef=function(w){return C(w)===u},Ua.isFragment=function(w){return C(w)===r},Ua.isLazy=function(w){return C(w)===g},Ua.isMemo=function(w){return C(w)===h},Ua.isPortal=function(w){return C(w)===n},Ua.isProfiler=function(w){return C(w)===o},Ua.isStrictMode=function(w){return C(w)===i},Ua.isSuspense=function(w){return C(w)===d},Ua.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===o||w===i||w===d||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===h||w.$$typeof===a||w.$$typeof===s||w.$$typeof===u||w.$$typeof===v||w.$$typeof===y||w.$$typeof===M||w.$$typeof===m)},Ua.typeOf=C,Ua}var _Ie;function fsn(){return _Ie||(_Ie=1,Kre.exports=hsn()),Kre.exports}var Qre,NIe;function gsn(){if(NIe)return Qre;NIe=1;var e=fsn(),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},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;function h(g,m,v){if(typeof m!="string"){if(p){var y=d(m);y&&y!==p&&h(g,y,v)}var M=l(m);c&&(M=M.concat(c(m)));for(var C=a(g),x=a(m),w=0;w<M.length;++w){var S=M[w];if(!n[S]&&!(v&&v[S])&&!(x&&x[S])&&!(C&&C[S])){var A=u(m,S);try{s(g,S,A)}catch{}}}}return g}return Qre=h,Qre}var msn=gsn();const bMe=qn(msn);function vsn(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function bsn(e){var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.name,a=fn(i,["name"]),s=o,l=typeof r=="function"?function(p){return{root:function(g){return r(Y({theme:p},g))}}}:{root:r},c=vMe(l,Y({Component:e,name:o||e.displayName,classNamePrefix:s},a)),u;r.filterProps&&(u=r.filterProps,delete r.filterProps),r.propTypes&&(r.propTypes,delete r.propTypes);var d=E.forwardRef(function(h,g){var m=h.children,v=h.className,y=h.clone,M=h.component,C=fn(h,["children","className","clone","component"]),x=c(h),w=$t(x.root,v),S=C;if(u&&(S=vsn(S,u)),y)return E.cloneElement(m,Y({className:$t(m.props.className,w)},S));if(typeof m=="function")return m(Y({className:w},S));var A=M||e;return E.createElement(A,Y({ref:g,className:w},S),m)});return bMe(d,e),d};return t}function ysn(e,t){if(typeof t=="function"){var n=t(e);return n}return Y({},e,t)}function C3(e){var t=e.children,n=e.theme,r=M3(),i=E.useMemo(function(){var o=r===null?n:ysn(r,n);return o!=null&&(o[bot]=r!==null),o},[n,r]);return E.createElement(Dot.Provider,{value:i},t)}var Msn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(r){var i=n.defaultTheme,o=n.withTheme,a=o===void 0?!1:o,s=n.name,l=fn(n,["defaultTheme","withTheme","name"]),c=s,u=vMe(t,Y({defaultTheme:i,Component:r,name:s||r.displayName,classNamePrefix:c},l)),d=E.forwardRef(function(h,g){h.classes;var m=h.innerRef,v=fn(h,["classes","innerRef"]),y=u(Y({},r.defaultProps,h)),M,C=v;return(typeof s=="string"||a)&&(M=M3()||i,s&&(C=HK({theme:M,name:s,props:v})),a&&!C.theme&&(C.theme=M)),E.createElement(r,Y({ref:m||g,classes:y},C))});return bMe(d,r),d}};function Mp(e){return e}var GK=y3();function Rt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return vMe(e,Y({defaultTheme:GK},t))}var Lot=function(t){var n=bsn(t);return function(r,i){return n(r,Y({defaultTheme:GK},i))}};function oc(){var e=M3()||GK;return e}function or(e,t){return Msn(e,Y({defaultTheme:GK},t))}function $r(e){if(typeof e!="string")throw new Error(iP(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Yx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(r,i){return i==null?r:function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r.apply(this,s),i.apply(this,s)}},function(){})}var Csn=function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}},_ot=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=a===void 0?"inherit":a,l=t.component,c=l===void 0?"svg":l,u=t.fontSize,d=u===void 0?"medium":u,p=t.htmlColor,h=t.titleAccess,g=t.viewBox,m=g===void 0?"0 0 24 24":g,v=fn(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return b.createElement(c,Y({className:$t(i.root,o,s!=="inherit"&&i["color".concat($r(s))],d!=="default"&&d!=="medium"&&i["fontSize".concat($r(d))]),focusable:"false",viewBox:m,color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},v),r,h?b.createElement("title",null,h):null)});_ot.muiName="SvgIcon";const Tz=or(Csn,{name:"MuiSvgIcon"})(_ot);function $i(e,t){var n=function(i,o){return E.createElement(Tz,Y({ref:o},i),e)};return n.muiName=Tz.muiName,E.memo(E.forwardRef(n))}function $y(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,n;function r(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=this,l=function(){e.apply(s,o)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=function(){clearTimeout(n)},r}function xsn(e,t){return function(){return null}}function VN(e,t){return b.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function bd(e){return e&&e.ownerDocument||document}function $K(e){var t=bd(e);return t.defaultView||window}function wsn(e){return function(){return null}}function Uy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ssn(e,t,n,r,i){return null}function lb(e){var t=e.controlled,n=e.default;e.name,e.state;var r=b.useRef(t!==void 0),i=r.current,o=b.useState(n),a=o[0],s=o[1],l=i?t:a,c=b.useCallback(function(u){i||s(u)},[]);return[l,c]}var Asn=typeof window<"u"?b.useLayoutEffect:b.useEffect;function ms(e){var t=b.useRef(e);return Asn(function(){t.current=e}),b.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function Ba(e,t){return b.useMemo(function(){return e==null&&t==null?null:function(n){Uy(e,n),Uy(t,n)}},[e,t])}function yMe(e){var t=b.useState(e),n=t[0],r=t[1],i=e||n;return b.useEffect(function(){n==null&&r("mui-".concat(Math.round(Math.random()*1e5)))},[n]),i}var Zre={exports:{}},_p={},Jre={exports:{}},eie={};/** @license React v0.20.2
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var FIe;function Osn(){return FIe||(FIe=1,(function(e){var t,n,r,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var $=e.unstable_now();l(!0,$),l=null}catch(U){throw setTimeout(u,0),U}};t=function($){l!==null?setTimeout(t,0,$):(l=$,setTimeout(u,0))},n=function($,U){c=setTimeout($,U)},r=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if(typeof console<"u"){var h=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof h!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,y=5,M=0;e.unstable_shouldYield=function(){return e.unstable_now()>=M},i=function(){},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<$?Math.floor(1e3/$):5};var C=new MessageChannel,x=C.port2;C.port1.onmessage=function(){if(m!==null){var $=e.unstable_now();M=$+y;try{m(!0,$)?x.postMessage(null):(g=!1,m=null)}catch(U){throw x.postMessage(null),U}}else g=!1},t=function($){m=$,g||(g=!0,x.postMessage(null))},n=function($,U){v=d(function(){$(e.unstable_now())},U)},r=function(){p(v),v=-1}}function w($,U){var X=$.length;$.push(U);e:for(;;){var Q=X-1>>>1,re=$[Q];if(re!==void 0&&0<z(re,U))$[Q]=U,$[X]=re,X=Q;else break e}}function S($){return $=$[0],$===void 0?null:$}function A($){var U=$[0];if(U!==void 0){var X=$.pop();if(X!==U){$[0]=X;e:for(var Q=0,re=$.length;Q<re;){var ee=2*(Q+1)-1,se=$[ee],pe=ee+1,te=$[pe];if(se!==void 0&&0>z(se,X))te!==void 0&&0>z(te,se)?($[Q]=te,$[pe]=X,Q=pe):($[Q]=se,$[ee]=X,Q=ee);else if(te!==void 0&&0>z(te,X))$[Q]=te,$[pe]=X,Q=pe;else break e}}return U}return null}function z($,U){var X=$.sortIndex-U.sortIndex;return X!==0?X:$.id-U.id}var O=[],T=[],I=1,P=null,N=3,F=!1,L=!1,W=!1;function H($){for(var U=S(T);U!==null;){if(U.callback===null)A(T);else if(U.startTime<=$)A(T),U.sortIndex=U.expirationTime,w(O,U);else break;U=S(T)}}function j($){if(W=!1,H($),!L)if(S(O)!==null)L=!0,t(G);else{var U=S(T);U!==null&&n(j,U.startTime-$)}}function G($,U){L=!1,W&&(W=!1,r()),F=!0;var X=N;try{for(H(U),P=S(O);P!==null&&(!(P.expirationTime>U)||$&&!e.unstable_shouldYield());){var Q=P.callback;if(typeof Q=="function"){P.callback=null,N=P.priorityLevel;var re=Q(P.expirationTime<=U);U=e.unstable_now(),typeof re=="function"?P.callback=re:P===S(O)&&A(O),H(U)}else A(O);P=S(O)}if(P!==null)var ee=!0;else{var se=S(T);se!==null&&n(j,se.startTime-U),ee=!1}return ee}finally{P=null,N=X,F=!1}}var q=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){L||F||(L=!0,t(G))},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_getFirstCallbackNode=function(){return S(O)},e.unstable_next=function($){switch(N){case 1:case 2:case 3:var U=3;break;default:U=N}var X=N;N=U;try{return $()}finally{N=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=q,e.unstable_runWithPriority=function($,U){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var X=N;N=$;try{return U()}finally{N=X}},e.unstable_scheduleCallback=function($,U,X){var Q=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?Q+X:Q):X=Q,$){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=X+re,$={id:I++,callback:U,priorityLevel:$,startTime:X,expirationTime:re,sortIndex:-1},X>Q?($.sortIndex=X,w(T,$),S(O)===null&&$===S(T)&&(W?r():W=!0,n(j,X-Q))):($.sortIndex=re,w(O,$),L||F||(L=!0,t(G))),$},e.unstable_wrapCallback=function($){var U=N;return function(){var X=N;N=U;try{return $.apply(this,arguments)}finally{N=X}}}})(eie)),eie}var WIe;function zsn(){return WIe||(WIe=1,Jre.exports=Osn()),Jre.exports}/** @license React v17.0.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qIe;function Tsn(){if(qIe)return _p;qIe=1;var e=Wr(),t=aK(),n=zsn();function r(R){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+R,V=1;V<arguments.length;V++)_+="&args[]="+encodeURIComponent(arguments[V]);return"Minified React error #"+R+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!e)throw Error(r(227));var i=new Set,o={};function a(R,_){s(R,_),s(R+"Capture",_)}function s(R,_){for(o[R]=_,R=0;R<_.length;R++)i.add(_[R])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u=Object.prototype.hasOwnProperty,d={},p={};function h(R){return u.call(p,R)?!0:u.call(d,R)?!1:c.test(R)?p[R]=!0:(d[R]=!0,!1)}function g(R,_,V,J){if(V!==null&&V.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return J?!1:V!==null?!V.acceptsBooleans:(R=R.toLowerCase().slice(0,5),R!=="data-"&&R!=="aria-");default:return!1}}function m(R,_,V,J){if(_===null||typeof _>"u"||g(R,_,V,J))return!0;if(J)return!1;if(V!==null)switch(V.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function v(R,_,V,J,fe,xe,Pe){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=J,this.attributeNamespace=fe,this.mustUseProperty=V,this.propertyName=R,this.type=_,this.sanitizeURL=xe,this.removeEmptyString=Pe}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(R){y[R]=new v(R,0,!1,R,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(R){var _=R[0];y[_]=new v(_,1,!1,R[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(R){y[R]=new v(R,2,!1,R.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(R){y[R]=new v(R,2,!1,R,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(R){y[R]=new v(R,3,!1,R.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(R){y[R]=new v(R,3,!0,R,null,!1,!1)}),["capture","download"].forEach(function(R){y[R]=new v(R,4,!1,R,null,!1,!1)}),["cols","rows","size","span"].forEach(function(R){y[R]=new v(R,6,!1,R,null,!1,!1)}),["rowSpan","start"].forEach(function(R){y[R]=new v(R,5,!1,R.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function C(R){return R[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(R){var _=R.replace(M,C);y[_]=new v(_,1,!1,R,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(R){var _=R.replace(M,C);y[_]=new v(_,1,!1,R,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(R){var _=R.replace(M,C);y[_]=new v(_,1,!1,R,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(R){y[R]=new v(R,1,!1,R.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(R){y[R]=new v(R,1,!1,R.toLowerCase(),null,!0,!0)});function x(R,_,V,J){var fe=y.hasOwnProperty(_)?y[_]:null,xe=fe!==null?fe.type===0:J?!1:!(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N");xe||(m(_,V,fe,J)&&(V=null),J||fe===null?h(_)&&(V===null?R.removeAttribute(_):R.setAttribute(_,""+V)):fe.mustUseProperty?R[fe.propertyName]=V===null?fe.type===3?!1:"":V:(_=fe.attributeName,J=fe.attributeNamespace,V===null?R.removeAttribute(_):(fe=fe.type,V=fe===3||fe===4&&V===!0?"":""+V,J?R.setAttributeNS(J,_,V):R.setAttribute(_,V))))}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,A=60106,z=60107,O=60108,T=60114,I=60109,P=60110,N=60112,F=60113,L=60120,W=60115,H=60116,j=60121,G=60128,q=60129,$=60130,U=60131;if(typeof Symbol=="function"&&Symbol.for){var X=Symbol.for;S=X("react.element"),A=X("react.portal"),z=X("react.fragment"),O=X("react.strict_mode"),T=X("react.profiler"),I=X("react.provider"),P=X("react.context"),N=X("react.forward_ref"),F=X("react.suspense"),L=X("react.suspense_list"),W=X("react.memo"),H=X("react.lazy"),j=X("react.block"),X("react.scope"),G=X("react.opaque.id"),q=X("react.debug_trace_mode"),$=X("react.offscreen"),U=X("react.legacy_hidden")}var Q=typeof Symbol=="function"&&Symbol.iterator;function re(R){return R===null||typeof R!="object"?null:(R=Q&&R[Q]||R["@@iterator"],typeof R=="function"?R:null)}var ee;function se(R){if(ee===void 0)try{throw Error()}catch(V){var _=V.stack.trim().match(/\n( *(at )?)/);ee=_&&_[1]||""}return`
`+ee+R}var pe=!1;function te(R,_){if(!R||pe)return"";pe=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(pt){var J=pt}Reflect.construct(R,[],_)}else{try{_.call()}catch(pt){J=pt}R.call(_.prototype)}else{try{throw Error()}catch(pt){J=pt}R()}}catch(pt){if(pt&&J&&typeof pt.stack=="string"){for(var fe=pt.stack.split(`
`),xe=J.stack.split(`
`),Pe=fe.length-1,$e=xe.length-1;1<=Pe&&0<=$e&&fe[Pe]!==xe[$e];)$e--;for(;1<=Pe&&0<=$e;Pe--,$e--)if(fe[Pe]!==xe[$e]){if(Pe!==1||$e!==1)do if(Pe--,$e--,0>$e||fe[Pe]!==xe[$e])return`
`+fe[Pe].replace(" at new "," at ");while(1<=Pe&&0<=$e);break}}}finally{pe=!1,Error.prepareStackTrace=V}return(R=R?R.displayName||R.name:"")?se(R):""}function ce(R){switch(R.tag){case 5:return se(R.type);case 16:return se("Lazy");case 13:return se("Suspense");case 19:return se("SuspenseList");case 0:case 2:case 15:return R=te(R.type,!1),R;case 11:return R=te(R.type.render,!1),R;case 22:return R=te(R.type._render,!1),R;case 1:return R=te(R.type,!0),R;default:return""}}function oe(R){if(R==null)return null;if(typeof R=="function")return R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case z:return"Fragment";case A:return"Portal";case T:return"Profiler";case O:return"StrictMode";case F:return"Suspense";case L:return"SuspenseList"}if(typeof R=="object")switch(R.$$typeof){case P:return(R.displayName||"Context")+".Consumer";case I:return(R._context.displayName||"Context")+".Provider";case N:var _=R.render;return _=_.displayName||_.name||"",R.displayName||(_!==""?"ForwardRef("+_+")":"ForwardRef");case W:return oe(R.type);case j:return oe(R._render);case H:_=R._payload,R=R._init;try{return oe(R(_))}catch{}}return null}function ae(R){switch(typeof R){case"boolean":case"number":case"object":case"string":case"undefined":return R;default:return""}}function ne(R){var _=R.type;return(R=R.nodeName)&&R.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function le(R){var _=ne(R)?"checked":"value",V=Object.getOwnPropertyDescriptor(R.constructor.prototype,_),J=""+R[_];if(!R.hasOwnProperty(_)&&typeof V<"u"&&typeof V.get=="function"&&typeof V.set=="function"){var fe=V.get,xe=V.set;return Object.defineProperty(R,_,{configurable:!0,get:function(){return fe.call(this)},set:function(Pe){J=""+Pe,xe.call(this,Pe)}}),Object.defineProperty(R,_,{enumerable:V.enumerable}),{getValue:function(){return J},setValue:function(Pe){J=""+Pe},stopTracking:function(){R._valueTracker=null,delete R[_]}}}}function he(R){R._valueTracker||(R._valueTracker=le(R))}function be(R){if(!R)return!1;var _=R._valueTracker;if(!_)return!0;var V=_.getValue(),J="";return R&&(J=ne(R)?R.checked?"true":"false":R.value),R=J,R!==V?(_.setValue(R),!0):!1}function me(R){if(R=R||(typeof document<"u"?document:void 0),typeof R>"u")return null;try{return R.activeElement||R.body}catch{return R.body}}function Me(R,_){var V=_.checked;return t({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:V??R._wrapperState.initialChecked})}function Oe(R,_){var V=_.defaultValue==null?"":_.defaultValue,J=_.checked!=null?_.checked:_.defaultChecked;V=ae(_.value!=null?_.value:V),R._wrapperState={initialChecked:J,initialValue:V,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function de(R,_){_=_.checked,_!=null&&x(R,"checked",_,!1)}function ie(R,_){de(R,_);var V=ae(_.value),J=_.type;if(V!=null)J==="number"?(V===0&&R.value===""||R.value!=V)&&(R.value=""+V):R.value!==""+V&&(R.value=""+V);else if(J==="submit"||J==="reset"){R.removeAttribute("value");return}_.hasOwnProperty("value")?Ae(R,_.type,V):_.hasOwnProperty("defaultValue")&&Ae(R,_.type,ae(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(R.defaultChecked=!!_.defaultChecked)}function ue(R,_,V){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var J=_.type;if(!(J!=="submit"&&J!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+R._wrapperState.initialValue,V||_===R.value||(R.value=_),R.defaultValue=_}V=R.name,V!==""&&(R.name=""),R.defaultChecked=!!R._wrapperState.initialChecked,V!==""&&(R.name=V)}function Ae(R,_,V){(_!=="number"||me(R.ownerDocument)!==R)&&(V==null?R.defaultValue=""+R._wrapperState.initialValue:R.defaultValue!==""+V&&(R.defaultValue=""+V))}function Ce(R){var _="";return e.Children.forEach(R,function(V){V!=null&&(_+=V)}),_}function Ee(R,_){return R=t({children:void 0},_),(_=Ce(_.children))&&(R.children=_),R}function Ge(R,_,V,J){if(R=R.options,_){_={};for(var fe=0;fe<V.length;fe++)_["$"+V[fe]]=!0;for(V=0;V<R.length;V++)fe=_.hasOwnProperty("$"+R[V].value),R[V].selected!==fe&&(R[V].selected=fe),fe&&J&&(R[V].defaultSelected=!0)}else{for(V=""+ae(V),_=null,fe=0;fe<R.length;fe++){if(R[fe].value===V){R[fe].selected=!0,J&&(R[fe].defaultSelected=!0);return}_!==null||R[fe].disabled||(_=R[fe])}_!==null&&(_.selected=!0)}}function _e(R,_){if(_.dangerouslySetInnerHTML!=null)throw Error(r(91));return t({},_,{value:void 0,defaultValue:void 0,children:""+R._wrapperState.initialValue})}function Ie(R,_){var V=_.value;if(V==null){if(V=_.children,_=_.defaultValue,V!=null){if(_!=null)throw Error(r(92));if(Array.isArray(V)){if(!(1>=V.length))throw Error(r(93));V=V[0]}_=V}_==null&&(_=""),V=_}R._wrapperState={initialValue:ae(V)}}function Le(R,_){var V=ae(_.value),J=ae(_.defaultValue);V!=null&&(V=""+V,V!==R.value&&(R.value=V),_.defaultValue==null&&R.defaultValue!==V&&(R.defaultValue=V)),J!=null&&(R.defaultValue=""+J)}function we(R){var _=R.textContent;_===R._wrapperState.initialValue&&_!==""&&_!==null&&(R.value=_)}var ve={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function De(R){switch(R){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ze(R,_){return R==null||R==="http://www.w3.org/1999/xhtml"?De(_):R==="http://www.w3.org/2000/svg"&&_==="foreignObject"?"http://www.w3.org/1999/xhtml":R}var Ve,Ke=(function(R){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(_,V,J,fe){MSApp.execUnsafeLocalFunction(function(){return R(_,V,J,fe)})}:R})(function(R,_){if(R.namespaceURI!==ve.svg||"innerHTML"in R)R.innerHTML=_;else{for(Ve=Ve||document.createElement("div"),Ve.innerHTML="<svg>"+_.valueOf().toString()+"</svg>",_=Ve.firstChild;R.firstChild;)R.removeChild(R.firstChild);for(;_.firstChild;)R.appendChild(_.firstChild)}});function et(R,_){if(_){var V=R.firstChild;if(V&&V===R.lastChild&&V.nodeType===3){V.nodeValue=_;return}}R.textContent=_}var it={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ft=["Webkit","ms","Moz","O"];Object.keys(it).forEach(function(R){Ft.forEach(function(_){_=_+R.charAt(0).toUpperCase()+R.substring(1),it[_]=it[R]})});function Pt(R,_,V){return _==null||typeof _=="boolean"||_===""?"":V||typeof _!="number"||_===0||it.hasOwnProperty(R)&&it[R]?(""+_).trim():_+"px"}function Qn(R,_){R=R.style;for(var V in _)if(_.hasOwnProperty(V)){var J=V.indexOf("--")===0,fe=Pt(V,_[V],J);V==="float"&&(V="cssFloat"),J?R.setProperty(V,fe):R[V]=fe}}var ir=t({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jn(R,_){if(_){if(ir[R]&&(_.children!=null||_.dangerouslySetInnerHTML!=null))throw Error(r(137,R));if(_.dangerouslySetInnerHTML!=null){if(_.children!=null)throw Error(r(60));if(!(typeof _.dangerouslySetInnerHTML=="object"&&"__html"in _.dangerouslySetInnerHTML))throw Error(r(61))}if(_.style!=null&&typeof _.style!="object")throw Error(r(62))}}function Zn(R,_){if(R.indexOf("-")===-1)return typeof _.is=="string";switch(R){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Br(R){return R=R.target||R.srcElement||window,R.correspondingUseElement&&(R=R.correspondingUseElement),R.nodeType===3?R.parentNode:R}var vr=null,Ne=null,He=null;function Xe(R){if(R=xh(R)){if(typeof vr!="function")throw Error(r(280));var _=R.stateNode;_&&(_=Qm(_),vr(R.stateNode,R.type,_))}}function ct(R){Ne?He?He.push(R):He=[R]:Ne=R}function lt(){if(Ne){var R=Ne,_=He;if(He=Ne=null,Xe(R),_)for(R=0;R<_.length;R++)Xe(_[R])}}function Je(R,_){return R(_)}function ft(R,_,V,J,fe){return R(_,V,J,fe)}function Tt(){}var St=Je,un=!1,$n=!1;function Yr(){(Ne!==null||He!==null)&&(Tt(),lt())}function yr(R,_,V){if($n)return R(_,V);$n=!0;try{return St(R,_,V)}finally{$n=!1,Yr()}}function dr(R,_){var V=R.stateNode;if(V===null)return null;var J=Qm(V);if(J===null)return null;V=J[_];e:switch(_){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(J=!J.disabled)||(R=R.type,J=!(R==="button"||R==="input"||R==="select"||R==="textarea")),R=!J;break e;default:R=!1}if(R)return null;if(V&&typeof V!="function")throw Error(r(231,_,typeof V));return V}var si=!1;if(l)try{var Go={};Object.defineProperty(Go,"passive",{get:function(){si=!0}}),window.addEventListener("test",Go,Go),window.removeEventListener("test",Go,Go)}catch{si=!1}function $o(R,_,V,J,fe,xe,Pe,$e,pt){var Bt=Array.prototype.slice.call(arguments,3);try{_.apply(V,Bt)}catch(gr){this.onError(gr)}}var Ki=!1,di=null,Dt=!1,It=null,Hn={onError:function(R){Ki=!0,di=R}};function jr(R,_,V,J,fe,xe,Pe,$e,pt){Ki=!1,di=null,$o.apply(Hn,arguments)}function Jr(R,_,V,J,fe,xe,Pe,$e,pt){if(jr.apply(this,arguments),Ki){if(Ki){var Bt=di;Ki=!1,di=null}else throw Error(r(198));Dt||(Dt=!0,It=Bt)}}function Ca(R){var _=R,V=R;if(R.alternate)for(;_.return;)_=_.return;else{R=_;do _=R,(_.flags&1026)!==0&&(V=_.return),R=_.return;while(R)}return _.tag===3?V:null}function Uo(R){if(R.tag===13){var _=R.memoizedState;if(_===null&&(R=R.alternate,R!==null&&(_=R.memoizedState)),_!==null)return _.dehydrated}return null}function La(R){if(Ca(R)!==R)throw Error(r(188))}function od(R){var _=R.alternate;if(!_){if(_=Ca(R),_===null)throw Error(r(188));return _!==R?null:R}for(var V=R,J=_;;){var fe=V.return;if(fe===null)break;var xe=fe.alternate;if(xe===null){if(J=fe.return,J!==null){V=J;continue}break}if(fe.child===xe.child){for(xe=fe.child;xe;){if(xe===V)return La(fe),R;if(xe===J)return La(fe),_;xe=xe.sibling}throw Error(r(188))}if(V.return!==J.return)V=fe,J=xe;else{for(var Pe=!1,$e=fe.child;$e;){if($e===V){Pe=!0,V=fe,J=xe;break}if($e===J){Pe=!0,J=fe,V=xe;break}$e=$e.sibling}if(!Pe){for($e=xe.child;$e;){if($e===V){Pe=!0,V=xe,J=fe;break}if($e===J){Pe=!0,J=xe,V=fe;break}$e=$e.sibling}if(!Pe)throw Error(r(189))}}if(V.alternate!==J)throw Error(r(190))}if(V.tag!==3)throw Error(r(188));return V.stateNode.current===V?R:_}function Lu(R){if(R=od(R),!R)return null;for(var _=R;;){if(_.tag===5||_.tag===6)return _;if(_.child)_.child.return=_,_=_.child;else{if(_===R)break;for(;!_.sibling;){if(!_.return||_.return===R)return null;_=_.return}_.sibling.return=_.return,_=_.sibling}}return null}function kc(R,_){for(var V=R.alternate;_!==null;){if(_===R||_===V)return!0;_=_.return}return!1}var Dd,fi,_s,_u,kd=!1,ou=[],ws=null,au=null,Un=null,wn=new Map,nn=new Map,Lr=[],Ss="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Va(R,_,V,J,fe){return{blockedOn:R,domEventName:_,eventSystemFlags:V|16,nativeEvent:fe,targetContainers:[J]}}function xa(R,_){switch(R){case"focusin":case"focusout":ws=null;break;case"dragenter":case"dragleave":au=null;break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":wn.delete(_.pointerId);break;case"gotpointercapture":case"lostpointercapture":nn.delete(_.pointerId)}}function Lc(R,_,V,J,fe,xe){return R===null||R.nativeEvent!==xe?(R=Va(_,V,J,fe,xe),_!==null&&(_=xh(_),_!==null&&fi(_)),R):(R.eventSystemFlags|=J,_=R.targetContainers,fe!==null&&_.indexOf(fe)===-1&&_.push(fe),R)}function lc(R,_,V,J,fe){switch(_){case"focusin":return ws=Lc(ws,R,_,V,J,fe),!0;case"dragenter":return au=Lc(au,R,_,V,J,fe),!0;case"mouseover":return Un=Lc(Un,R,_,V,J,fe),!0;case"pointerover":var xe=fe.pointerId;return wn.set(xe,Lc(wn.get(xe)||null,R,_,V,J,fe)),!0;case"gotpointercapture":return xe=fe.pointerId,nn.set(xe,Lc(nn.get(xe)||null,R,_,V,J,fe)),!0}return!1}function C1(R){var _=fg(R.target);if(_!==null){var V=Ca(_);if(V!==null){if(_=V.tag,_===13){if(_=Uo(V),_!==null){R.blockedOn=_,_u(R.lanePriority,function(){n.unstable_runWithPriority(R.priority,function(){_s(V)})});return}}else if(_===3&&V.stateNode.hydrate){R.blockedOn=V.tag===3?V.stateNode.containerInfo:null;return}}}R.blockedOn=null}function zp(R){if(R.blockedOn!==null)return!1;for(var _=R.targetContainers;0<_.length;){var V=yT(R.domEventName,R.eventSystemFlags,_[0],R.nativeEvent);if(V!==null)return _=xh(V),_!==null&&fi(_),R.blockedOn=V,!1;_.shift()}return!0}function RM(R,_,V){zp(R)&&V.delete(_)}function Re(){for(kd=!1;0<ou.length;){var R=ou[0];if(R.blockedOn!==null){R=xh(R.blockedOn),R!==null&&Dd(R);break}for(var _=R.targetContainers;0<_.length;){var V=yT(R.domEventName,R.eventSystemFlags,_[0],R.nativeEvent);if(V!==null){R.blockedOn=V;break}_.shift()}R.blockedOn===null&&ou.shift()}ws!==null&&zp(ws)&&(ws=null),au!==null&&zp(au)&&(au=null),Un!==null&&zp(Un)&&(Un=null),wn.forEach(RM),nn.forEach(RM)}function qe(R,_){R.blockedOn===_&&(R.blockedOn=null,kd||(kd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Re)))}function st(R){function _(fe){return qe(fe,R)}if(0<ou.length){qe(ou[0],R);for(var V=1;V<ou.length;V++){var J=ou[V];J.blockedOn===R&&(J.blockedOn=null)}}for(ws!==null&&qe(ws,R),au!==null&&qe(au,R),Un!==null&&qe(Un,R),wn.forEach(_),nn.forEach(_),V=0;V<Lr.length;V++)J=Lr[V],J.blockedOn===R&&(J.blockedOn=null);for(;0<Lr.length&&(V=Lr[0],V.blockedOn===null);)C1(V),V.blockedOn===null&&Lr.shift()}function _t(R,_){var V={};return V[R.toLowerCase()]=_.toLowerCase(),V["Webkit"+R]="webkit"+_,V["Moz"+R]="moz"+_,V}var hn={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionend:_t("Transition","TransitionEnd")},hr={},eo={};l&&(eo=document.createElement("div").style,"AnimationEvent"in window||(delete hn.animationend.animation,delete hn.animationiteration.animation,delete hn.animationstart.animation),"TransitionEvent"in window||delete hn.transitionend.transition);function Ns(R){if(hr[R])return hr[R];if(!hn[R])return R;var _=hn[R],V;for(V in _)if(_.hasOwnProperty(V)&&V in eo)return hr[R]=_[V];return R}var Al=Ns("animationend"),cc=Ns("animationiteration"),P0=Ns("animationstart"),Aj=Ns("transitionend"),Oj=new Map,gT=new Map,kte=["abort","abort",Al,"animationEnd",cc,"animationIteration",P0,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Aj,"transitionEnd","waiting","waiting"];function Lk(R,_){for(var V=0;V<R.length;V+=2){var J=R[V],fe=R[V+1];fe="on"+(fe[0].toUpperCase()+fe.slice(1)),gT.set(J,_),Oj.set(J,fe),a(fe,[J])}}var Lte=n.unstable_now;Lte();var us=8;function Hm(R){if((1&R)!==0)return us=15,1;if((2&R)!==0)return us=14,2;if((4&R)!==0)return us=13,4;var _=24&R;return _!==0?(us=12,_):(R&32)!==0?(us=11,32):(_=192&R,_!==0?(us=10,_):(R&256)!==0?(us=9,256):(_=3584&R,_!==0?(us=8,_):(R&4096)!==0?(us=7,4096):(_=4186112&R,_!==0?(us=6,_):(_=62914560&R,_!==0?(us=5,_):R&67108864?(us=4,67108864):(R&134217728)!==0?(us=3,134217728):(_=805306368&R,_!==0?(us=2,_):(1073741824&R)!==0?(us=1,1073741824):(us=8,R))))))}function _te(R){switch(R){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Nte(R){switch(R){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(r(358,R))}}function Vw(R,_){var V=R.pendingLanes;if(V===0)return us=0;var J=0,fe=0,xe=R.expiredLanes,Pe=R.suspendedLanes,$e=R.pingedLanes;if(xe!==0)J=xe,fe=us=15;else if(xe=V&134217727,xe!==0){var pt=xe&~Pe;pt!==0?(J=Hm(pt),fe=us):($e&=xe,$e!==0&&(J=Hm($e),fe=us))}else xe=V&~Pe,xe!==0?(J=Hm(xe),fe=us):$e!==0&&(J=Hm($e),fe=us);if(J===0)return 0;if(J=31-Vm(J),J=V&((0>J?0:1<<J)<<1)-1,_!==0&&_!==J&&(_&Pe)===0){if(Hm(_),fe<=us)return _;us=fe}if(_=R.entangledLanes,_!==0)for(R=R.entanglements,_&=J;0<_;)V=31-Vm(_),fe=1<<V,J|=R[V],_&=~fe;return J}function zj(R){return R=R.pendingLanes&-1073741825,R!==0?R:R&1073741824?1073741824:0}function mT(R,_){switch(R){case 15:return 1;case 14:return 2;case 12:return R=wa(24&~_),R===0?mT(10,_):R;case 10:return R=wa(192&~_),R===0?mT(8,_):R;case 8:return R=wa(3584&~_),R===0&&(R=wa(4186112&~_),R===0&&(R=512)),R;case 2:return _=wa(805306368&~_),_===0&&(_=268435456),_}throw Error(r(358,R))}function wa(R){return R&-R}function Ga(R){for(var _=[],V=0;31>V;V++)_.push(R);return _}function vT(R,_,V){R.pendingLanes|=_;var J=_-1;R.suspendedLanes&=J,R.pingedLanes&=J,R=R.eventTimes,_=31-Vm(_),R[_]=V}var Vm=Math.clz32?Math.clz32:qte,Fte=Math.log,Wte=Math.LN2;function qte(R){return R===0?32:31-(Fte(R)/Wte|0)|0}var Bte=n.unstable_UserBlockingPriority,Tj=n.unstable_runWithPriority,bT=!0;function su(R,_,V,J){un||Tt();var fe=lg,xe=un;un=!0;try{ft(fe,R,_,V,J)}finally{(un=xe)||Yr()}}function _k(R,_,V,J){Tj(Bte,lg.bind(null,R,_,V,J))}function lg(R,_,V,J){if(bT){var fe;if((fe=(_&4)===0)&&0<ou.length&&-1<Ss.indexOf(R))R=Va(null,R,_,V,J),ou.push(R);else{var xe=yT(R,_,V,J);if(xe===null)fe&&xa(R,J);else{if(fe){if(-1<Ss.indexOf(R)){R=Va(xe,R,_,V,J),ou.push(R);return}if(lc(xe,R,_,V,J))return;xa(R,J)}Kk(R,_,J,null,V)}}}}function yT(R,_,V,J){var fe=Br(J);if(fe=fg(fe),fe!==null){var xe=Ca(fe);if(xe===null)fe=null;else{var Pe=xe.tag;if(Pe===13){if(fe=Uo(xe),fe!==null)return fe;fe=null}else if(Pe===3){if(xe.stateNode.hydrate)return xe.tag===3?xe.stateNode.containerInfo:null;fe=null}else xe!==fe&&(fe=null)}}return Kk(R,_,J,fe,V),null}var bh=null,Ld=null,Gw=null;function Nk(){if(Gw)return Gw;var R,_=Ld,V=_.length,J,fe="value"in bh?bh.value:bh.textContent,xe=fe.length;for(R=0;R<V&&_[R]===fe[R];R++);var Pe=V-R;for(J=1;J<=Pe&&_[V-J]===fe[xe-J];J++);return Gw=fe.slice(R,1<J?1-J:void 0)}function $w(R){var _=R.keyCode;return"charCode"in R?(R=R.charCode,R===0&&_===13&&(R=13)):R=_,R===10&&(R=13),32<=R||R===13?R:0}function Uw(){return!0}function Fk(){return!1}function _d(R){function _(V,J,fe,xe,Pe){this._reactName=V,this._targetInst=fe,this.type=J,this.nativeEvent=xe,this.target=Pe,this.currentTarget=null;for(var $e in R)R.hasOwnProperty($e)&&(V=R[$e],this[$e]=V?V(xe):xe[$e]);return this.isDefaultPrevented=(xe.defaultPrevented!=null?xe.defaultPrevented:xe.returnValue===!1)?Uw:Fk,this.isPropagationStopped=Fk,this}return t(_.prototype,{preventDefault:function(){this.defaultPrevented=!0;var V=this.nativeEvent;V&&(V.preventDefault?V.preventDefault():typeof V.returnValue!="unknown"&&(V.returnValue=!1),this.isDefaultPrevented=Uw)},stopPropagation:function(){var V=this.nativeEvent;V&&(V.stopPropagation?V.stopPropagation():typeof V.cancelBubble!="unknown"&&(V.cancelBubble=!0),this.isPropagationStopped=Uw)},persist:function(){},isPersistent:Uw}),_}var _c={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(R){return R.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wk=_d(_c),Nu=t({},_c,{view:0,detail:0}),jte=_d(Nu),MT,yh,Gm,IM=t({},Nu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yw,button:0,buttons:0,relatedTarget:function(R){return R.relatedTarget===void 0?R.fromElement===R.srcElement?R.toElement:R.fromElement:R.relatedTarget},movementX:function(R){return"movementX"in R?R.movementX:(R!==Gm&&(Gm&&R.type==="mousemove"?(MT=R.screenX-Gm.screenX,yh=R.screenY-Gm.screenY):yh=MT=0,Gm=R),MT)},movementY:function(R){return"movementY"in R?R.movementY:yh}}),As=_d(IM),$m=t({},IM,{dataTransfer:0}),qk=_d($m),Hte=t({},Nu,{relatedTarget:0}),Xw=_d(Hte),Vte=t({},_c,{animationName:0,elapsedTime:0,pseudoElement:0}),Gte=_d(Vte),$te=t({},_c,{clipboardData:function(R){return"clipboardData"in R?R.clipboardData:window.clipboardData}}),Ej=_d($te),CT=t({},_c,{data:0}),h2=_d(CT),Ute={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rj={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ij={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bk(R){var _=this.nativeEvent;return _.getModifierState?_.getModifierState(R):(R=Ij[R])?!!_[R]:!1}function Yw(){return Bk}var Pj=t({},Nu,{key:function(R){if(R.key){var _=Ute[R.key]||R.key;if(_!=="Unidentified")return _}return R.type==="keypress"?(R=$w(R),R===13?"Enter":String.fromCharCode(R)):R.type==="keydown"||R.type==="keyup"?Rj[R.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yw,charCode:function(R){return R.type==="keypress"?$w(R):0},keyCode:function(R){return R.type==="keydown"||R.type==="keyup"?R.keyCode:0},which:function(R){return R.type==="keypress"?$w(R):R.type==="keydown"||R.type==="keyup"?R.keyCode:0}}),Xte=_d(Pj),jk=t({},IM,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xT=_d(jk),Yte=t({},Nu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yw}),Dj=_d(Yte),D0=t({},_c,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hk=_d(D0),Kw=t({},IM,{deltaX:function(R){return"deltaX"in R?R.deltaX:"wheelDeltaX"in R?-R.wheelDeltaX:0},deltaY:function(R){return"deltaY"in R?R.deltaY:"wheelDeltaY"in R?-R.wheelDeltaY:"wheelDelta"in R?-R.wheelDelta:0},deltaZ:0,deltaMode:0}),kj=_d(Kw),Lj=[9,13,27,32],Vk=l&&"CompositionEvent"in window,Qw=null;l&&"documentMode"in document&&(Qw=document.documentMode);var Kte=l&&"TextEvent"in window&&!Qw,_j=l&&(!Vk||Qw&&8<Qw&&11>=Qw),Nj=" ",f2=!1;function Fj(R,_){switch(R){case"keyup":return Lj.indexOf(_.keyCode)!==-1;case"keydown":return _.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wj(R){return R=R.detail,typeof R=="object"&&"data"in R?R.data:null}var Um=!1;function qj(R,_){switch(R){case"compositionend":return Wj(_);case"keypress":return _.which!==32?null:(f2=!0,Nj);case"textInput":return R=_.data,R===Nj&&f2?null:R;default:return null}}function Xm(R,_){if(Um)return R==="compositionend"||!Vk&&Fj(R,_)?(R=Nk(),Gw=Ld=bh=null,Um=!1,R):null;switch(R){case"paste":return null;case"keypress":if(!(_.ctrlKey||_.altKey||_.metaKey)||_.ctrlKey&&_.altKey){if(_.char&&1<_.char.length)return _.char;if(_.which)return String.fromCharCode(_.which)}return null;case"compositionend":return _j&&_.locale!=="ko"?null:_.data;default:return null}}var wT={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bj(R){var _=R&&R.nodeName&&R.nodeName.toLowerCase();return _==="input"?!!wT[R.type]:_==="textarea"}function jj(R,_,V,J){ct(J),_=Ch(_,"onChange"),0<_.length&&(V=new Wk("onChange","change",null,V,J),R.push({event:V,listeners:_}))}var Zw=null,Mh=null;function Tp(R){iS(R,0)}function Jw(R){var _=wh(R);if(be(_))return R}function Qte(R,_){if(R==="change")return _}var Hj=!1;if(l){var Gk;if(l){var $k="oninput"in document;if(!$k){var Vj=document.createElement("div");Vj.setAttribute("oninput","return;"),$k=typeof Vj.oninput=="function"}Gk=$k}else Gk=!1;Hj=Gk&&(!document.documentMode||9<document.documentMode)}function g2(){Zw&&(Zw.detachEvent("onpropertychange",wt),Mh=Zw=null)}function wt(R){if(R.propertyName==="value"&&Jw(Mh)){var _=[];if(jj(_,Mh,R,Br(R)),R=Tp,un)R(_);else{un=!0;try{Je(R,_)}finally{un=!1,Yr()}}}}function Zt(R,_,V){R==="focusin"?(g2(),Zw=_,Mh=V,Zw.attachEvent("onpropertychange",wt)):R==="focusout"&&g2()}function Wt(R){if(R==="selectionchange"||R==="keyup"||R==="keydown")return Jw(Mh)}function Mr(R,_){if(R==="click")return Jw(_)}function Fi(R,_){if(R==="input"||R==="change")return Jw(_)}function ga(R,_){return R===_&&(R!==0||1/R===1/_)||R!==R&&_!==_}var Sa=typeof Object.is=="function"?Object.is:ga,ns=Object.prototype.hasOwnProperty;function m2(R,_){if(Sa(R,_))return!0;if(typeof R!="object"||R===null||typeof _!="object"||_===null)return!1;var V=Object.keys(R),J=Object.keys(_);if(V.length!==J.length)return!1;for(J=0;J<V.length;J++)if(!ns.call(_,V[J])||!Sa(R[V[J]],_[V[J]]))return!1;return!0}function Gj(R){for(;R&&R.firstChild;)R=R.firstChild;return R}function k0(R,_){var V=Gj(R);R=0;for(var J;V;){if(V.nodeType===3){if(J=R+V.textContent.length,R<=_&&J>=_)return{node:V,offset:_-R};R=J}e:{for(;V;){if(V.nextSibling){V=V.nextSibling;break e}V=V.parentNode}V=void 0}V=Gj(V)}}function eS(R,_){return R&&_?R===_?!0:R&&R.nodeType===3?!1:_&&_.nodeType===3?eS(R,_.parentNode):"contains"in R?R.contains(_):R.compareDocumentPosition?!!(R.compareDocumentPosition(_)&16):!1:!1}function $j(){for(var R=window,_=me();_ instanceof R.HTMLIFrameElement;){try{var V=typeof _.contentWindow.location.href=="string"}catch{V=!1}if(V)R=_.contentWindow;else break;_=me(R.document)}return _}function Ym(R){var _=R&&R.nodeName&&R.nodeName.toLowerCase();return _&&(_==="input"&&(R.type==="text"||R.type==="search"||R.type==="tel"||R.type==="url"||R.type==="password")||_==="textarea"||R.contentEditable==="true")}var ST=l&&"documentMode"in document&&11>=document.documentMode,cg=null,ma=null,tS=null,AT=!1;function nS(R,_,V){var J=V.window===V?V.document:V.nodeType===9?V:V.ownerDocument;AT||cg==null||cg!==me(J)||(J=cg,"selectionStart"in J&&Ym(J)?J={start:J.selectionStart,end:J.selectionEnd}:(J=(J.ownerDocument&&J.ownerDocument.defaultView||window).getSelection(),J={anchorNode:J.anchorNode,anchorOffset:J.anchorOffset,focusNode:J.focusNode,focusOffset:J.focusOffset}),tS&&m2(tS,J)||(tS=J,J=Ch(ma,"onSelect"),0<J.length&&(_=new Wk("onSelect","select",null,_,V),R.push({event:_,listeners:J}),_.target=cg)))}Lk("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lk("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lk(kte,2);for(var Uj="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Uk=0;Uk<Uj.length;Uk++)gT.set(Uj[Uk],0);s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rS="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),OT=new Set("cancel close invalid load scroll toggle".split(" ").concat(rS));function ug(R,_,V){var J=R.type||"unknown-event";R.currentTarget=V,Jr(J,_,void 0,R),R.currentTarget=null}function iS(R,_){_=(_&4)!==0;for(var V=0;V<R.length;V++){var J=R[V],fe=J.event;J=J.listeners;e:{var xe=void 0;if(_)for(var Pe=J.length-1;0<=Pe;Pe--){var $e=J[Pe],pt=$e.instance,Bt=$e.currentTarget;if($e=$e.listener,pt!==xe&&fe.isPropagationStopped())break e;ug(fe,$e,Bt),xe=pt}else for(Pe=0;Pe<J.length;Pe++){if($e=J[Pe],pt=$e.instance,Bt=$e.currentTarget,$e=$e.listener,pt!==xe&&fe.isPropagationStopped())break e;ug(fe,$e,Bt),xe=pt}}}if(Dt)throw R=It,Dt=!1,It=null,R}function ds(R,_){var V=cS(_),J=R+"__bubble";V.has(J)||(aS(_,R,2,!1),V.add(J))}var oS="_reactListening"+Math.random().toString(36).slice(2);function Xk(R){R[oS]||(R[oS]=!0,i.forEach(function(_){OT.has(_)||Yk(_,!1,R,null),Yk(_,!0,R,null)}))}function Yk(R,_,V,J){var fe=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,xe=V;R==="selectionchange"&&V.nodeType!==9&&(xe=V.ownerDocument);var Pe=cS(xe),$e=R+"__"+(_?"capture":"bubble");Pe.has($e)||(_&&(fe|=4),aS(xe,R,fe,_),Pe.add($e))}function aS(R,_,V,J){var fe=gT.get(_);switch(fe===void 0?2:fe){case 0:fe=su;break;case 1:fe=_k;break;default:fe=lg}V=fe.bind(null,_,V,R),fe=void 0,!si||_!=="touchstart"&&_!=="touchmove"&&_!=="wheel"||(fe=!0),J?fe!==void 0?R.addEventListener(_,V,{capture:!0,passive:fe}):R.addEventListener(_,V,!0):fe!==void 0?R.addEventListener(_,V,{passive:fe}):R.addEventListener(_,V,!1)}function Kk(R,_,V,J,fe){var xe=J;if((_&1)===0&&(_&2)===0&&J!==null)e:for(;;){if(J===null)return;var Pe=J.tag;if(Pe===3||Pe===4){var $e=J.stateNode.containerInfo;if($e===fe||$e.nodeType===8&&$e.parentNode===fe)break;if(Pe===4)for(Pe=J.return;Pe!==null;){var pt=Pe.tag;if((pt===3||pt===4)&&(pt=Pe.stateNode.containerInfo,pt===fe||pt.nodeType===8&&pt.parentNode===fe))return;Pe=Pe.return}for(;$e!==null;){if(Pe=fg($e),Pe===null)return;if(pt=Pe.tag,pt===5||pt===6){J=xe=Pe;continue e}$e=$e.parentNode}}J=J.return}yr(function(){var Bt=xe,gr=Br(V),Ai=[];e:{var gn=Oj.get(R);if(gn!==void 0){var Hr=Wk,Ti=R;switch(R){case"keypress":if($w(V)===0)break e;case"keydown":case"keyup":Hr=Xte;break;case"focusin":Ti="focus",Hr=Xw;break;case"focusout":Ti="blur",Hr=Xw;break;case"beforeblur":case"afterblur":Hr=Xw;break;case"click":if(V.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Hr=As;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Hr=qk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Hr=Dj;break;case Al:case cc:case P0:Hr=Gte;break;case Aj:Hr=Hk;break;case"scroll":Hr=jte;break;case"wheel":Hr=kj;break;case"copy":case"cut":case"paste":Hr=Ej;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Hr=xT}var vi=(_&4)!==0,Et=!vi&&R==="scroll",vt=vi?gn!==null?gn+"Capture":null:gn;vi=[];for(var zt=Bt,an;zt!==null;){an=zt;var cn=an.stateNode;if(an.tag===5&&cn!==null&&(an=cn,vt!==null&&(cn=dr(zt,vt),cn!=null&&vi.push(dg(zt,cn,an)))),Et)break;zt=zt.return}0<vi.length&&(gn=new Hr(gn,Ti,null,V,gr),Ai.push({event:gn,listeners:vi}))}}if((_&7)===0){e:{if(gn=R==="mouseover"||R==="pointerover",Hr=R==="mouseout"||R==="pointerout",gn&&(_&16)===0&&(Ti=V.relatedTarget||V.fromElement)&&(fg(Ti)||Ti[Km]))break e;if((Hr||gn)&&(gn=gr.window===gr?gr:(gn=gr.ownerDocument)?gn.defaultView||gn.parentWindow:window,Hr?(Ti=V.relatedTarget||V.toElement,Hr=Bt,Ti=Ti?fg(Ti):null,Ti!==null&&(Et=Ca(Ti),Ti!==Et||Ti.tag!==5&&Ti.tag!==6)&&(Ti=null)):(Hr=null,Ti=Bt),Hr!==Ti)){if(vi=As,cn="onMouseLeave",vt="onMouseEnter",zt="mouse",(R==="pointerout"||R==="pointerover")&&(vi=xT,cn="onPointerLeave",vt="onPointerEnter",zt="pointer"),Et=Hr==null?gn:wh(Hr),an=Ti==null?gn:wh(Ti),gn=new vi(cn,zt+"leave",Hr,V,gr),gn.target=Et,gn.relatedTarget=an,cn=null,fg(gr)===Bt&&(vi=new vi(vt,zt+"enter",Ti,V,gr),vi.target=an,vi.relatedTarget=Et,cn=vi),Et=cn,Hr&&Ti)t:{for(vi=Hr,vt=Ti,zt=0,an=vi;an;an=pg(an))zt++;for(an=0,cn=vt;cn;cn=pg(cn))an++;for(;0<zt-an;)vi=pg(vi),zt--;for(;0<an-zt;)vt=pg(vt),an--;for(;zt--;){if(vi===vt||vt!==null&&vi===vt.alternate)break t;vi=pg(vi),vt=pg(vt)}vi=null}else vi=null;Hr!==null&&Xj(Ai,gn,Hr,vi,!1),Ti!==null&&Et!==null&&Xj(Ai,Et,Ti,vi,!0)}}e:{if(gn=Bt?wh(Bt):window,Hr=gn.nodeName&&gn.nodeName.toLowerCase(),Hr==="select"||Hr==="input"&&gn.type==="file")var ki=Qte;else if(Bj(gn))if(Hj)ki=Fi;else{ki=Wt;var Rr=Zt}else(Hr=gn.nodeName)&&Hr.toLowerCase()==="input"&&(gn.type==="checkbox"||gn.type==="radio")&&(ki=Mr);if(ki&&(ki=ki(R,Bt))){jj(Ai,ki,V,gr);break e}Rr&&Rr(R,gn,Bt),R==="focusout"&&(Rr=gn._wrapperState)&&Rr.controlled&&gn.type==="number"&&Ae(gn,"number",gn.value)}switch(Rr=Bt?wh(Bt):window,R){case"focusin":(Bj(Rr)||Rr.contentEditable==="true")&&(cg=Rr,ma=Bt,tS=null);break;case"focusout":tS=ma=cg=null;break;case"mousedown":AT=!0;break;case"contextmenu":case"mouseup":case"dragend":AT=!1,nS(Ai,V,gr);break;case"selectionchange":if(ST)break;case"keydown":case"keyup":nS(Ai,V,gr)}var Oi;if(Vk)e:{switch(R){case"compositionstart":var Co="onCompositionStart";break e;case"compositionend":Co="onCompositionEnd";break e;case"compositionupdate":Co="onCompositionUpdate";break e}Co=void 0}else Um?Fj(R,V)&&(Co="onCompositionEnd"):R==="keydown"&&V.keyCode===229&&(Co="onCompositionStart");Co&&(_j&&V.locale!=="ko"&&(Um||Co!=="onCompositionStart"?Co==="onCompositionEnd"&&Um&&(Oi=Nk()):(bh=gr,Ld="value"in bh?bh.value:bh.textContent,Um=!0)),Rr=Ch(Bt,Co),0<Rr.length&&(Co=new h2(Co,R,null,V,gr),Ai.push({event:Co,listeners:Rr}),Oi?Co.data=Oi:(Oi=Wj(V),Oi!==null&&(Co.data=Oi)))),(Oi=Kte?qj(R,V):Xm(R,V))&&(Bt=Ch(Bt,"onBeforeInput"),0<Bt.length&&(gr=new h2("onBeforeInput","beforeinput",null,V,gr),Ai.push({event:gr,listeners:Bt}),gr.data=Oi))}iS(Ai,_)})}function dg(R,_,V){return{instance:R,listener:_,currentTarget:V}}function Ch(R,_){for(var V=_+"Capture",J=[];R!==null;){var fe=R,xe=fe.stateNode;fe.tag===5&&xe!==null&&(fe=xe,xe=dr(R,V),xe!=null&&J.unshift(dg(R,xe,fe)),xe=dr(R,_),xe!=null&&J.push(dg(R,xe,fe))),R=R.return}return J}function pg(R){if(R===null)return null;do R=R.return;while(R&&R.tag!==5);return R||null}function Xj(R,_,V,J,fe){for(var xe=_._reactName,Pe=[];V!==null&&V!==J;){var $e=V,pt=$e.alternate,Bt=$e.stateNode;if(pt!==null&&pt===J)break;$e.tag===5&&Bt!==null&&($e=Bt,fe?(pt=dr(V,xe),pt!=null&&Pe.unshift(dg(V,pt,$e))):fe||(pt=dr(V,xe),pt!=null&&Pe.push(dg(V,pt,$e)))),V=V.return}Pe.length!==0&&R.push({event:_,listeners:Pe})}function zT(){}var Qk=null,PM=null;function sS(R,_){switch(R){case"button":case"input":case"select":case"textarea":return!!_.autoFocus}return!1}function lS(R,_){return R==="textarea"||R==="option"||R==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var Yj=typeof setTimeout=="function"?setTimeout:void 0,Kj=typeof clearTimeout=="function"?clearTimeout:void 0;function Zk(R){R.nodeType===1?R.textContent="":R.nodeType===9&&(R=R.body,R!=null&&(R.textContent=""))}function DM(R){for(;R!=null;R=R.nextSibling){var _=R.nodeType;if(_===1||_===3)break}return R}function Vl(R){R=R.previousSibling;for(var _=0;R;){if(R.nodeType===8){var V=R.data;if(V==="$"||V==="$!"||V==="$?"){if(_===0)return R;_--}else V==="/$"&&_++}R=R.previousSibling}return null}var Nc=0;function Zte(R){return{$$typeof:G,toString:R,valueOf:R}}var TT=Math.random().toString(36).slice(2),hg="__reactFiber$"+TT,ET="__reactProps$"+TT,Km="__reactContainer$"+TT,kM="__reactEvents$"+TT;function fg(R){var _=R[hg];if(_)return _;for(var V=R.parentNode;V;){if(_=V[Km]||V[hg]){if(V=_.alternate,_.child!==null||V!==null&&V.child!==null)for(R=Vl(R);R!==null;){if(V=R[hg])return V;R=Vl(R)}return _}R=V,V=R.parentNode}return null}function xh(R){return R=R[hg]||R[Km],!R||R.tag!==5&&R.tag!==6&&R.tag!==13&&R.tag!==3?null:R}function wh(R){if(R.tag===5||R.tag===6)return R.stateNode;throw Error(r(33))}function Qm(R){return R[ET]||null}function cS(R){var _=R[kM];return _===void 0&&(_=R[kM]=new Set),_}var Zm=[],LM=-1;function Jm(R){return{current:R}}function Os(R){0>LM||(R.current=Zm[LM],Zm[LM]=null,LM--)}function ll(R,_){LM++,Zm[LM]=R.current,R.current=_}var ev={},uc=Jm(ev),Fc=Jm(!1),tv=ev;function ke(R,_){var V=R.type.contextTypes;if(!V)return ev;var J=R.stateNode;if(J&&J.__reactInternalMemoizedUnmaskedChildContext===_)return J.__reactInternalMemoizedMaskedChildContext;var fe={},xe;for(xe in V)fe[xe]=_[xe];return J&&(R=R.stateNode,R.__reactInternalMemoizedUnmaskedChildContext=_,R.__reactInternalMemoizedMaskedChildContext=fe),fe}function dc(R){return R=R.childContextTypes,R!=null}function v2(){Os(Fc),Os(uc)}function L0(R,_,V){if(uc.current!==ev)throw Error(r(168));ll(uc,_),ll(Fc,V)}function Oo(R,_,V){var J=R.stateNode;if(R=_.childContextTypes,typeof J.getChildContext!="function")return V;J=J.getChildContext();for(var fe in J)if(!(fe in R))throw Error(r(108,oe(_)||"Unknown",fe));return t({},V,J)}function RT(R){return R=(R=R.stateNode)&&R.__reactInternalMemoizedMergedChildContext||ev,tv=uc.current,ll(uc,R),ll(Fc,Fc.current),!0}function Qj(R,_,V){var J=R.stateNode;if(!J)throw Error(r(169));V?(R=Oo(R,_,tv),J.__reactInternalMemoizedMergedChildContext=R,Os(Fc),Os(uc),ll(uc,R)):Os(Fc),ll(Fc,V)}var Jk=null,_0=null,Jte=n.unstable_runWithPriority,eL=n.unstable_scheduleCallback,tL=n.unstable_cancelCallback,ene=n.unstable_shouldYield,Zj=n.unstable_requestPaint,Ep=n.unstable_now,tne=n.unstable_getCurrentPriorityLevel,IT=n.unstable_ImmediatePriority,Jj=n.unstable_UserBlockingPriority,eH=n.unstable_NormalPriority,tH=n.unstable_LowPriority,Sh=n.unstable_IdlePriority,nL={},nne=Zj!==void 0?Zj:function(){},gg=null,PT=null,rL=!1,nv=Ep(),Fu=1e4>nv?Ep:function(){return Ep()-nv};function _M(){switch(tne()){case IT:return 99;case Jj:return 98;case eH:return 97;case tH:return 96;case Sh:return 95;default:throw Error(r(332))}}function x1(R){switch(R){case 99:return IT;case 98:return Jj;case 97:return eH;case 96:return tH;case 95:return Sh;default:throw Error(r(332))}}function b2(R,_){return R=x1(R),Jte(R,_)}function uS(R,_,V){return R=x1(R),eL(R,_,V)}function Ah(){if(PT!==null){var R=PT;PT=null,tL(R)}nH()}function nH(){if(!rL&&gg!==null){rL=!0;var R=0;try{var _=gg;b2(99,function(){for(;R<_.length;R++){var V=_[R];do V=V(!0);while(V!==null)}}),gg=null}catch(V){throw gg!==null&&(gg=gg.slice(R+1)),eL(IT,Ah),V}finally{rL=!1}}}var rne=w.ReactCurrentBatchConfig;function w1(R,_){if(R&&R.defaultProps){_=t({},_),R=R.defaultProps;for(var V in R)_[V]===void 0&&(_[V]=R[V]);return _}return _}var dS=Jm(null),DT=null,NM=null,FM=null;function y2(){FM=NM=DT=null}function WM(R){var _=dS.current;Os(dS),R.type._context._currentValue=_}function rH(R,_){for(;R!==null;){var V=R.alternate;if((R.childLanes&_)===_){if(V===null||(V.childLanes&_)===_)break;V.childLanes|=_}else R.childLanes|=_,V!==null&&(V.childLanes|=_);R=R.return}}function M2(R,_){DT=R,FM=NM=null,R=R.dependencies,R!==null&&R.firstContext!==null&&((R.lanes&_)!==0&&(Wc=!0),R.firstContext=null)}function S1(R,_){if(FM!==R&&_!==!1&&_!==0)if((typeof _!="number"||_===1073741823)&&(FM=R,_=1073741823),_={context:R,observedBits:_,next:null},NM===null){if(DT===null)throw Error(r(308));NM=_,DT.dependencies={lanes:0,firstContext:_,responders:null}}else NM=NM.next=_;return R._currentValue}var Wu=!1;function pS(R){R.updateQueue={baseState:R.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function rv(R,_){R=R.updateQueue,_.updateQueue===R&&(_.updateQueue={baseState:R.baseState,firstBaseUpdate:R.firstBaseUpdate,lastBaseUpdate:R.lastBaseUpdate,shared:R.shared,effects:R.effects})}function pc(R,_){return{eventTime:R,lane:_,tag:0,payload:null,callback:null,next:null}}function iv(R,_){if(R=R.updateQueue,R!==null){R=R.shared;var V=R.pending;V===null?_.next=_:(_.next=V.next,V.next=_),R.pending=_}}function iL(R,_){var V=R.updateQueue,J=R.alternate;if(J!==null&&(J=J.updateQueue,V===J)){var fe=null,xe=null;if(V=V.firstBaseUpdate,V!==null){do{var Pe={eventTime:V.eventTime,lane:V.lane,tag:V.tag,payload:V.payload,callback:V.callback,next:null};xe===null?fe=xe=Pe:xe=xe.next=Pe,V=V.next}while(V!==null);xe===null?fe=xe=_:xe=xe.next=_}else fe=xe=_;V={baseState:J.baseState,firstBaseUpdate:fe,lastBaseUpdate:xe,shared:J.shared,effects:J.effects},R.updateQueue=V;return}R=V.lastBaseUpdate,R===null?V.firstBaseUpdate=_:R.next=_,V.lastBaseUpdate=_}function qM(R,_,V,J){var fe=R.updateQueue;Wu=!1;var xe=fe.firstBaseUpdate,Pe=fe.lastBaseUpdate,$e=fe.shared.pending;if($e!==null){fe.shared.pending=null;var pt=$e,Bt=pt.next;pt.next=null,Pe===null?xe=Bt:Pe.next=Bt,Pe=pt;var gr=R.alternate;if(gr!==null){gr=gr.updateQueue;var Ai=gr.lastBaseUpdate;Ai!==Pe&&(Ai===null?gr.firstBaseUpdate=Bt:Ai.next=Bt,gr.lastBaseUpdate=pt)}}if(xe!==null){Ai=fe.baseState,Pe=0,gr=Bt=pt=null;do{$e=xe.lane;var gn=xe.eventTime;if((J&$e)===$e){gr!==null&&(gr=gr.next={eventTime:gn,lane:0,tag:xe.tag,payload:xe.payload,callback:xe.callback,next:null});e:{var Hr=R,Ti=xe;switch($e=_,gn=V,Ti.tag){case 1:if(Hr=Ti.payload,typeof Hr=="function"){Ai=Hr.call(gn,Ai,$e);break e}Ai=Hr;break e;case 3:Hr.flags=Hr.flags&-4097|64;case 0:if(Hr=Ti.payload,$e=typeof Hr=="function"?Hr.call(gn,Ai,$e):Hr,$e==null)break e;Ai=t({},Ai,$e);break e;case 2:Wu=!0}}xe.callback!==null&&(R.flags|=32,$e=fe.effects,$e===null?fe.effects=[xe]:$e.push(xe))}else gn={eventTime:gn,lane:$e,tag:xe.tag,payload:xe.payload,callback:xe.callback,next:null},gr===null?(Bt=gr=gn,pt=Ai):gr=gr.next=gn,Pe|=$e;if(xe=xe.next,xe===null){if($e=fe.shared.pending,$e===null)break;xe=$e.next,$e.next=null,fe.lastBaseUpdate=$e,fe.shared.pending=null}}while(!0);gr===null&&(pt=Ai),fe.baseState=pt,fe.firstBaseUpdate=Bt,fe.lastBaseUpdate=gr,E2|=Pe,R.lanes=Pe,R.memoizedState=Ai}}function BM(R,_,V){if(R=_.effects,_.effects=null,R!==null)for(_=0;_<R.length;_++){var J=R[_],fe=J.callback;if(fe!==null){if(J.callback=null,J=V,typeof fe!="function")throw Error(r(191,fe));fe.call(J)}}}var mg=new e.Component().refs;function hS(R,_,V,J){_=R.memoizedState,V=V(J,_),V=V==null?_:t({},_,V),R.memoizedState=V,R.lanes===0&&(R.updateQueue.baseState=V)}var kT={isMounted:function(R){return(R=R._reactInternals)?Ca(R)===R:!1},enqueueSetState:function(R,_,V){R=R._reactInternals;var J=F0(),fe=xg(R),xe=pc(J,fe);xe.payload=_,V!=null&&(xe.callback=V),iv(R,xe),wg(R,fe,J)},enqueueReplaceState:function(R,_,V){R=R._reactInternals;var J=F0(),fe=xg(R),xe=pc(J,fe);xe.tag=1,xe.payload=_,V!=null&&(xe.callback=V),iv(R,xe),wg(R,fe,J)},enqueueForceUpdate:function(R,_){R=R._reactInternals;var V=F0(),J=xg(R),fe=pc(V,J);fe.tag=2,_!=null&&(fe.callback=_),iv(R,fe),wg(R,J,V)}};function fS(R,_,V,J,fe,xe,Pe){return R=R.stateNode,typeof R.shouldComponentUpdate=="function"?R.shouldComponentUpdate(J,xe,Pe):_.prototype&&_.prototype.isPureReactComponent?!m2(V,J)||!m2(fe,xe):!0}function iH(R,_,V){var J=!1,fe=ev,xe=_.contextType;return typeof xe=="object"&&xe!==null?xe=S1(xe):(fe=dc(_)?tv:uc.current,J=_.contextTypes,xe=(J=J!=null)?ke(R,fe):ev),_=new _(V,xe),R.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=kT,R.stateNode=_,_._reactInternals=R,J&&(R=R.stateNode,R.__reactInternalMemoizedUnmaskedChildContext=fe,R.__reactInternalMemoizedMaskedChildContext=xe),_}function oL(R,_,V,J){R=_.state,typeof _.componentWillReceiveProps=="function"&&_.componentWillReceiveProps(V,J),typeof _.UNSAFE_componentWillReceiveProps=="function"&&_.UNSAFE_componentWillReceiveProps(V,J),_.state!==R&&kT.enqueueReplaceState(_,_.state,null)}function hc(R,_,V,J){var fe=R.stateNode;fe.props=V,fe.state=R.memoizedState,fe.refs=mg,pS(R);var xe=_.contextType;typeof xe=="object"&&xe!==null?fe.context=S1(xe):(xe=dc(_)?tv:uc.current,fe.context=ke(R,xe)),qM(R,V,fe,J),fe.state=R.memoizedState,xe=_.getDerivedStateFromProps,typeof xe=="function"&&(hS(R,_,xe,V),fe.state=R.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof fe.getSnapshotBeforeUpdate=="function"||typeof fe.UNSAFE_componentWillMount!="function"&&typeof fe.componentWillMount!="function"||(_=fe.state,typeof fe.componentWillMount=="function"&&fe.componentWillMount(),typeof fe.UNSAFE_componentWillMount=="function"&&fe.UNSAFE_componentWillMount(),_!==fe.state&&kT.enqueueReplaceState(fe,fe.state,null),qM(R,V,fe,J),fe.state=R.memoizedState),typeof fe.componentDidMount=="function"&&(R.flags|=4)}var jM=Array.isArray;function HM(R,_,V){if(R=V.ref,R!==null&&typeof R!="function"&&typeof R!="object"){if(V._owner){if(V=V._owner,V){if(V.tag!==1)throw Error(r(309));var J=V.stateNode}if(!J)throw Error(r(147,R));var fe=""+R;return _!==null&&_.ref!==null&&typeof _.ref=="function"&&_.ref._stringRef===fe?_.ref:(_=function(xe){var Pe=J.refs;Pe===mg&&(Pe=J.refs={}),xe===null?delete Pe[fe]:Pe[fe]=xe},_._stringRef=fe,_)}if(typeof R!="string")throw Error(r(284));if(!V._owner)throw Error(r(290,R))}return R}function N0(R,_){if(R.type!=="textarea")throw Error(r(31,Object.prototype.toString.call(_)==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":_))}function LT(R){function _(Et,vt){if(R){var zt=Et.lastEffect;zt!==null?(zt.nextEffect=vt,Et.lastEffect=vt):Et.firstEffect=Et.lastEffect=vt,vt.nextEffect=null,vt.flags=8}}function V(Et,vt){if(!R)return null;for(;vt!==null;)_(Et,vt),vt=vt.sibling;return null}function J(Et,vt){for(Et=new Map;vt!==null;)vt.key!==null?Et.set(vt.key,vt):Et.set(vt.index,vt),vt=vt.sibling;return Et}function fe(Et,vt){return Et=cv(Et,vt),Et.index=0,Et.sibling=null,Et}function xe(Et,vt,zt){return Et.index=zt,R?(zt=Et.alternate,zt!==null?(zt=zt.index,zt<vt?(Et.flags=2,vt):zt):(Et.flags=2,vt)):vt}function Pe(Et){return R&&Et.alternate===null&&(Et.flags=2),Et}function $e(Et,vt,zt,an){return vt===null||vt.tag!==6?(vt=BL(zt,Et.mode,an),vt.return=Et,vt):(vt=fe(vt,zt),vt.return=Et,vt)}function pt(Et,vt,zt,an){return vt!==null&&vt.elementType===zt.type?(an=fe(vt,zt.props),an.ref=HM(Et,vt,zt),an.return=Et,an):(an=oE(zt.type,zt.key,zt.props,null,Et.mode,an),an.ref=HM(Et,vt,zt),an.return=Et,an)}function Bt(Et,vt,zt,an){return vt===null||vt.tag!==4||vt.stateNode.containerInfo!==zt.containerInfo||vt.stateNode.implementation!==zt.implementation?(vt=jL(zt,Et.mode,an),vt.return=Et,vt):(vt=fe(vt,zt.children||[]),vt.return=Et,vt)}function gr(Et,vt,zt,an,cn){return vt===null||vt.tag!==7?(vt=QM(zt,Et.mode,an,cn),vt.return=Et,vt):(vt=fe(vt,zt),vt.return=Et,vt)}function Ai(Et,vt,zt){if(typeof vt=="string"||typeof vt=="number")return vt=BL(""+vt,Et.mode,zt),vt.return=Et,vt;if(typeof vt=="object"&&vt!==null){switch(vt.$$typeof){case S:return zt=oE(vt.type,vt.key,vt.props,null,Et.mode,zt),zt.ref=HM(Et,null,vt),zt.return=Et,zt;case A:return vt=jL(vt,Et.mode,zt),vt.return=Et,vt}if(jM(vt)||re(vt))return vt=QM(vt,Et.mode,zt,null),vt.return=Et,vt;N0(Et,vt)}return null}function gn(Et,vt,zt,an){var cn=vt!==null?vt.key:null;if(typeof zt=="string"||typeof zt=="number")return cn!==null?null:$e(Et,vt,""+zt,an);if(typeof zt=="object"&&zt!==null){switch(zt.$$typeof){case S:return zt.key===cn?zt.type===z?gr(Et,vt,zt.props.children,an,cn):pt(Et,vt,zt,an):null;case A:return zt.key===cn?Bt(Et,vt,zt,an):null}if(jM(zt)||re(zt))return cn!==null?null:gr(Et,vt,zt,an,null);N0(Et,zt)}return null}function Hr(Et,vt,zt,an,cn){if(typeof an=="string"||typeof an=="number")return Et=Et.get(zt)||null,$e(vt,Et,""+an,cn);if(typeof an=="object"&&an!==null){switch(an.$$typeof){case S:return Et=Et.get(an.key===null?zt:an.key)||null,an.type===z?gr(vt,Et,an.props.children,cn,an.key):pt(vt,Et,an,cn);case A:return Et=Et.get(an.key===null?zt:an.key)||null,Bt(vt,Et,an,cn)}if(jM(an)||re(an))return Et=Et.get(zt)||null,gr(vt,Et,an,cn,null);N0(vt,an)}return null}function Ti(Et,vt,zt,an){for(var cn=null,ki=null,Rr=vt,Oi=vt=0,Co=null;Rr!==null&&Oi<zt.length;Oi++){Rr.index>Oi?(Co=Rr,Rr=null):Co=Rr.sibling;var Qi=gn(Et,Rr,zt[Oi],an);if(Qi===null){Rr===null&&(Rr=Co);break}R&&Rr&&Qi.alternate===null&&_(Et,Rr),vt=xe(Qi,vt,Oi),ki===null?cn=Qi:ki.sibling=Qi,ki=Qi,Rr=Co}if(Oi===zt.length)return V(Et,Rr),cn;if(Rr===null){for(;Oi<zt.length;Oi++)Rr=Ai(Et,zt[Oi],an),Rr!==null&&(vt=xe(Rr,vt,Oi),ki===null?cn=Rr:ki.sibling=Rr,ki=Rr);return cn}for(Rr=J(Et,Rr);Oi<zt.length;Oi++)Co=Hr(Rr,Et,Oi,zt[Oi],an),Co!==null&&(R&&Co.alternate!==null&&Rr.delete(Co.key===null?Oi:Co.key),vt=xe(Co,vt,Oi),ki===null?cn=Co:ki.sibling=Co,ki=Co);return R&&Rr.forEach(function(uv){return _(Et,uv)}),cn}function vi(Et,vt,zt,an){var cn=re(zt);if(typeof cn!="function")throw Error(r(150));if(zt=cn.call(zt),zt==null)throw Error(r(151));for(var ki=cn=null,Rr=vt,Oi=vt=0,Co=null,Qi=zt.next();Rr!==null&&!Qi.done;Oi++,Qi=zt.next()){Rr.index>Oi?(Co=Rr,Rr=null):Co=Rr.sibling;var uv=gn(Et,Rr,Qi.value,an);if(uv===null){Rr===null&&(Rr=Co);break}R&&Rr&&uv.alternate===null&&_(Et,Rr),vt=xe(uv,vt,Oi),ki===null?cn=uv:ki.sibling=uv,ki=uv,Rr=Co}if(Qi.done)return V(Et,Rr),cn;if(Rr===null){for(;!Qi.done;Oi++,Qi=zt.next())Qi=Ai(Et,Qi.value,an),Qi!==null&&(vt=xe(Qi,vt,Oi),ki===null?cn=Qi:ki.sibling=Qi,ki=Qi);return cn}for(Rr=J(Et,Rr);!Qi.done;Oi++,Qi=zt.next())Qi=Hr(Rr,Et,Oi,Qi.value,an),Qi!==null&&(R&&Qi.alternate!==null&&Rr.delete(Qi.key===null?Oi:Qi.key),vt=xe(Qi,vt,Oi),ki===null?cn=Qi:ki.sibling=Qi,ki=Qi);return R&&Rr.forEach(function(Mne){return _(Et,Mne)}),cn}return function(Et,vt,zt,an){var cn=typeof zt=="object"&&zt!==null&&zt.type===z&&zt.key===null;cn&&(zt=zt.props.children);var ki=typeof zt=="object"&&zt!==null;if(ki)switch(zt.$$typeof){case S:e:{for(ki=zt.key,cn=vt;cn!==null;){if(cn.key===ki){switch(cn.tag){case 7:if(zt.type===z){V(Et,cn.sibling),vt=fe(cn,zt.props.children),vt.return=Et,Et=vt;break e}break;default:if(cn.elementType===zt.type){V(Et,cn.sibling),vt=fe(cn,zt.props),vt.ref=HM(Et,cn,zt),vt.return=Et,Et=vt;break e}}V(Et,cn);break}else _(Et,cn);cn=cn.sibling}zt.type===z?(vt=QM(zt.props.children,Et.mode,an,zt.key),vt.return=Et,Et=vt):(an=oE(zt.type,zt.key,zt.props,null,Et.mode,an),an.ref=HM(Et,vt,zt),an.return=Et,Et=an)}return Pe(Et);case A:e:{for(cn=zt.key;vt!==null;){if(vt.key===cn)if(vt.tag===4&&vt.stateNode.containerInfo===zt.containerInfo&&vt.stateNode.implementation===zt.implementation){V(Et,vt.sibling),vt=fe(vt,zt.children||[]),vt.return=Et,Et=vt;break e}else{V(Et,vt);break}else _(Et,vt);vt=vt.sibling}vt=jL(zt,Et.mode,an),vt.return=Et,Et=vt}return Pe(Et)}if(typeof zt=="string"||typeof zt=="number")return zt=""+zt,vt!==null&&vt.tag===6?(V(Et,vt.sibling),vt=fe(vt,zt),vt.return=Et,Et=vt):(V(Et,vt),vt=BL(zt,Et.mode,an),vt.return=Et,Et=vt),Pe(Et);if(jM(zt))return Ti(Et,vt,zt,an);if(re(zt))return vi(Et,vt,zt,an);if(ki&&N0(Et,zt),typeof zt>"u"&&!cn)switch(Et.tag){case 1:case 22:case 0:case 11:case 15:throw Error(r(152,oe(Et.type)||"Component"))}return V(Et,vt)}}var C2=LT(!0),ov=LT(!1),VM={},Fs=Jm(VM),x2=Jm(VM),gS=Jm(VM);function w2(R){if(R===VM)throw Error(r(174));return R}function aL(R,_){switch(ll(gS,_),ll(x2,R),ll(Fs,VM),R=_.nodeType,R){case 9:case 11:_=(_=_.documentElement)?_.namespaceURI:ze(null,"");break;default:R=R===8?_.parentNode:_,_=R.namespaceURI||null,R=R.tagName,_=ze(_,R)}Os(Fs),ll(Fs,_)}function av(){Os(Fs),Os(x2),Os(gS)}function oH(R){w2(gS.current);var _=w2(Fs.current),V=ze(_,R.type);_!==V&&(ll(x2,R),ll(Fs,V))}function S2(R){x2.current===R&&(Os(Fs),Os(x2))}var Qs=Jm(0);function _T(R){for(var _=R;_!==null;){if(_.tag===13){var V=_.memoizedState;if(V!==null&&(V=V.dehydrated,V===null||V.data==="$?"||V.data==="$!"))return _}else if(_.tag===19&&_.memoizedProps.revealOrder!==void 0){if((_.flags&64)!==0)return _}else if(_.child!==null){_.child.return=_,_=_.child;continue}if(_===R)break;for(;_.sibling===null;){if(_.return===null||_.return===R)return null;_=_.return}_.sibling.return=_.return,_=_.sibling}return null}var vg=null,A1=null,Oh=!1;function aH(R,_){var V=E1(5,null,null,0);V.elementType="DELETED",V.type="DELETED",V.stateNode=_,V.return=R,V.flags=8,R.lastEffect!==null?(R.lastEffect.nextEffect=V,R.lastEffect=V):R.firstEffect=R.lastEffect=V}function NT(R,_){switch(R.tag){case 5:var V=R.type;return _=_.nodeType!==1||V.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(R.stateNode=_,!0):!1;case 6:return _=R.pendingProps===""||_.nodeType!==3?null:_,_!==null?(R.stateNode=_,!0):!1;case 13:return!1;default:return!1}}function FT(R){if(Oh){var _=A1;if(_){var V=_;if(!NT(R,_)){if(_=DM(V.nextSibling),!_||!NT(R,_)){R.flags=R.flags&-1025|2,Oh=!1,vg=R;return}aH(vg,V)}vg=R,A1=DM(_.firstChild)}else R.flags=R.flags&-1025|2,Oh=!1,vg=R}}function sH(R){for(R=R.return;R!==null&&R.tag!==5&&R.tag!==3&&R.tag!==13;)R=R.return;vg=R}function WT(R){if(R!==vg)return!1;if(!Oh)return sH(R),Oh=!0,!1;var _=R.type;if(R.tag!==5||_!=="head"&&_!=="body"&&!lS(_,R.memoizedProps))for(_=A1;_;)aH(R,_),_=DM(_.nextSibling);if(sH(R),R.tag===13){if(R=R.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(r(317));e:{for(R=R.nextSibling,_=0;R;){if(R.nodeType===8){var V=R.data;if(V==="/$"){if(_===0){A1=DM(R.nextSibling);break e}_--}else V!=="$"&&V!=="$!"&&V!=="$?"||_++}R=R.nextSibling}A1=null}}else A1=vg?DM(R.stateNode.nextSibling):null;return!0}function sL(){A1=vg=null,Oh=!1}var A2=[];function mS(){for(var R=0;R<A2.length;R++)A2[R]._workInProgressVersionPrimary=null;A2.length=0}var vS=w.ReactCurrentDispatcher,Nd=w.ReactCurrentBatchConfig,GM=0,cl=null,lu=null,Gl=null,qT=!1,$M=!1;function ad(){throw Error(r(321))}function lL(R,_){if(_===null)return!1;for(var V=0;V<_.length&&V<R.length;V++)if(!Sa(R[V],_[V]))return!1;return!0}function BT(R,_,V,J,fe,xe){if(GM=xe,cl=_,_.memoizedState=null,_.updateQueue=null,_.lanes=0,vS.current=R===null||R.memoizedState===null?hL:dH,R=V(J,fe),$M){xe=0;do{if($M=!1,!(25>xe))throw Error(r(301));xe+=1,Gl=lu=null,_.updateQueue=null,vS.current=fL,R=V(J,fe)}while($M)}if(vS.current=MS,_=lu!==null&&lu.next!==null,GM=0,Gl=lu=cl=null,qT=!1,_)throw Error(r(300));return R}function O2(){var R={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gl===null?cl.memoizedState=Gl=R:Gl=Gl.next=R,Gl}function bg(){if(lu===null){var R=cl.alternate;R=R!==null?R.memoizedState:null}else R=lu.next;var _=Gl===null?cl.memoizedState:Gl.next;if(_!==null)Gl=_,lu=R;else{if(R===null)throw Error(r(310));lu=R,R={memoizedState:lu.memoizedState,baseState:lu.baseState,baseQueue:lu.baseQueue,queue:lu.queue,next:null},Gl===null?cl.memoizedState=Gl=R:Gl=Gl.next=R}return Gl}function Rp(R,_){return typeof _=="function"?_(R):_}function z2(R){var _=bg(),V=_.queue;if(V===null)throw Error(r(311));V.lastRenderedReducer=R;var J=lu,fe=J.baseQueue,xe=V.pending;if(xe!==null){if(fe!==null){var Pe=fe.next;fe.next=xe.next,xe.next=Pe}J.baseQueue=fe=xe,V.pending=null}if(fe!==null){fe=fe.next,J=J.baseState;var $e=Pe=xe=null,pt=fe;do{var Bt=pt.lane;if((GM&Bt)===Bt)$e!==null&&($e=$e.next={lane:0,action:pt.action,eagerReducer:pt.eagerReducer,eagerState:pt.eagerState,next:null}),J=pt.eagerReducer===R?pt.eagerState:R(J,pt.action);else{var gr={lane:Bt,action:pt.action,eagerReducer:pt.eagerReducer,eagerState:pt.eagerState,next:null};$e===null?(Pe=$e=gr,xe=J):$e=$e.next=gr,cl.lanes|=Bt,E2|=Bt}pt=pt.next}while(pt!==null&&pt!==fe);$e===null?xe=J:$e.next=Pe,Sa(J,_.memoizedState)||(Wc=!0),_.memoizedState=J,_.baseState=xe,_.baseQueue=$e,V.lastRenderedState=J}return[_.memoizedState,V.dispatch]}function bS(R){var _=bg(),V=_.queue;if(V===null)throw Error(r(311));V.lastRenderedReducer=R;var J=V.dispatch,fe=V.pending,xe=_.memoizedState;if(fe!==null){V.pending=null;var Pe=fe=fe.next;do xe=R(xe,Pe.action),Pe=Pe.next;while(Pe!==fe);Sa(xe,_.memoizedState)||(Wc=!0),_.memoizedState=xe,_.baseQueue===null&&(_.baseState=xe),V.lastRenderedState=xe}return[xe,J]}function jT(R,_,V){var J=_._getVersion;J=J(_._source);var fe=_._workInProgressVersionPrimary;if(fe!==null?R=fe===J:(R=R.mutableReadLanes,(R=(GM&R)===R)&&(_._workInProgressVersionPrimary=J,A2.push(_))),R)return V(_._source);throw A2.push(_),Error(r(350))}function co(R,_,V,J){var fe=cu;if(fe===null)throw Error(r(349));var xe=_._getVersion,Pe=xe(_._source),$e=vS.current,pt=$e.useState(function(){return jT(fe,_,V)}),Bt=pt[1],gr=pt[0];pt=Gl;var Ai=R.memoizedState,gn=Ai.refs,Hr=gn.getSnapshot,Ti=Ai.source;Ai=Ai.subscribe;var vi=cl;return R.memoizedState={refs:gn,source:_,subscribe:J},$e.useEffect(function(){gn.getSnapshot=V,gn.setSnapshot=Bt;var Et=xe(_._source);if(!Sa(Pe,Et)){Et=V(_._source),Sa(gr,Et)||(Bt(Et),Et=xg(vi),fe.mutableReadLanes|=Et&fe.pendingLanes),Et=fe.mutableReadLanes,fe.entangledLanes|=Et;for(var vt=fe.entanglements,zt=Et;0<zt;){var an=31-Vm(zt),cn=1<<an;vt[an]|=Et,zt&=~cn}}},[V,_,J]),$e.useEffect(function(){return J(_._source,function(){var Et=gn.getSnapshot,vt=gn.setSnapshot;try{vt(Et(_._source));var zt=xg(vi);fe.mutableReadLanes|=zt&fe.pendingLanes}catch(an){vt(function(){throw an})}})},[_,J]),Sa(Hr,V)&&Sa(Ti,_)&&Sa(Ai,J)||(R={pending:null,dispatch:null,lastRenderedReducer:Rp,lastRenderedState:gr},R.dispatch=Bt=UM.bind(null,cl,R),pt.queue=R,pt.baseQueue=null,gr=jT(fe,_,V),pt.memoizedState=pt.baseState=gr),gr}function lH(R,_,V){var J=bg();return co(J,R,_,V)}function yS(R){var _=O2();return typeof R=="function"&&(R=R()),_.memoizedState=_.baseState=R,R=_.queue={pending:null,dispatch:null,lastRenderedReducer:Rp,lastRenderedState:R},R=R.dispatch=UM.bind(null,cl,R),[_.memoizedState,R]}function sv(R,_,V,J){return R={tag:R,create:_,destroy:V,deps:J,next:null},_=cl.updateQueue,_===null?(_={lastEffect:null},cl.updateQueue=_,_.lastEffect=R.next=R):(V=_.lastEffect,V===null?_.lastEffect=R.next=R:(J=V.next,V.next=R,R.next=J,_.lastEffect=R)),R}function cL(R){var _=O2();return R={current:R},_.memoizedState=R}function HT(){return bg().memoizedState}function uL(R,_,V,J){var fe=O2();cl.flags|=R,fe.memoizedState=sv(1|_,V,void 0,J===void 0?null:J)}function Fd(R,_,V,J){var fe=bg();J=J===void 0?null:J;var xe=void 0;if(lu!==null){var Pe=lu.memoizedState;if(xe=Pe.destroy,J!==null&&lL(J,Pe.deps)){sv(_,V,xe,J);return}}cl.flags|=R,fe.memoizedState=sv(1|_,V,xe,J)}function cH(R,_){return uL(516,4,R,_)}function T2(R,_){return Fd(516,4,R,_)}function VT(R,_){return Fd(4,2,R,_)}function dL(R,_){if(typeof _=="function")return R=R(),_(R),function(){_(null)};if(_!=null)return R=R(),_.current=R,function(){_.current=null}}function pL(R,_,V){return V=V!=null?V.concat([R]):null,Fd(4,2,dL.bind(null,_,R),V)}function sd(){}function yg(R,_){var V=bg();_=_===void 0?null:_;var J=V.memoizedState;return J!==null&&_!==null&&lL(_,J[1])?J[0]:(V.memoizedState=[R,_],R)}function GT(R,_){var V=bg();_=_===void 0?null:_;var J=V.memoizedState;return J!==null&&_!==null&&lL(_,J[1])?J[0]:(R=R(),V.memoizedState=[R,_],R)}function uH(R,_){var V=_M();b2(98>V?98:V,function(){R(!0)}),b2(97<V?97:V,function(){var J=Nd.transition;Nd.transition=1;try{R(!1),_()}finally{Nd.transition=J}})}function UM(R,_,V){var J=F0(),fe=xg(R),xe={lane:fe,action:V,eagerReducer:null,eagerState:null,next:null},Pe=_.pending;if(Pe===null?xe.next=xe:(xe.next=Pe.next,Pe.next=xe),_.pending=xe,Pe=R.alternate,R===cl||Pe!==null&&Pe===cl)$M=qT=!0;else{if(R.lanes===0&&(Pe===null||Pe.lanes===0)&&(Pe=_.lastRenderedReducer,Pe!==null))try{var $e=_.lastRenderedState,pt=Pe($e,V);if(xe.eagerReducer=Pe,xe.eagerState=pt,Sa(pt,$e))return}catch{}finally{}wg(R,fe,J)}}var MS={readContext:S1,useCallback:ad,useContext:ad,useEffect:ad,useImperativeHandle:ad,useLayoutEffect:ad,useMemo:ad,useReducer:ad,useRef:ad,useState:ad,useDebugValue:ad,useDeferredValue:ad,useTransition:ad,useMutableSource:ad,useOpaqueIdentifier:ad,unstable_isNewReconciler:!1},hL={readContext:S1,useCallback:function(R,_){return O2().memoizedState=[R,_===void 0?null:_],R},useContext:S1,useEffect:cH,useImperativeHandle:function(R,_,V){return V=V!=null?V.concat([R]):null,uL(4,2,dL.bind(null,_,R),V)},useLayoutEffect:function(R,_){return uL(4,2,R,_)},useMemo:function(R,_){var V=O2();return _=_===void 0?null:_,R=R(),V.memoizedState=[R,_],R},useReducer:function(R,_,V){var J=O2();return _=V!==void 0?V(_):_,J.memoizedState=J.baseState=_,R=J.queue={pending:null,dispatch:null,lastRenderedReducer:R,lastRenderedState:_},R=R.dispatch=UM.bind(null,cl,R),[J.memoizedState,R]},useRef:cL,useState:yS,useDebugValue:sd,useDeferredValue:function(R){var _=yS(R),V=_[0],J=_[1];return cH(function(){var fe=Nd.transition;Nd.transition=1;try{J(R)}finally{Nd.transition=fe}},[R]),V},useTransition:function(){var R=yS(!1),_=R[0];return R=uH.bind(null,R[1]),cL(R),[R,_]},useMutableSource:function(R,_,V){var J=O2();return J.memoizedState={refs:{getSnapshot:_,setSnapshot:null},source:R,subscribe:V},co(J,R,_,V)},useOpaqueIdentifier:function(){if(Oh){var R=!1,_=Zte(function(){throw R||(R=!0,V("r:"+(Nc++).toString(36))),Error(r(355))}),V=yS(_)[1];return(cl.mode&2)===0&&(cl.flags|=516,sv(5,function(){V("r:"+(Nc++).toString(36))},void 0,null)),_}return _="r:"+(Nc++).toString(36),yS(_),_},unstable_isNewReconciler:!1},dH={readContext:S1,useCallback:yg,useContext:S1,useEffect:T2,useImperativeHandle:pL,useLayoutEffect:VT,useMemo:GT,useReducer:z2,useRef:HT,useState:function(){return z2(Rp)},useDebugValue:sd,useDeferredValue:function(R){var _=z2(Rp),V=_[0],J=_[1];return T2(function(){var fe=Nd.transition;Nd.transition=1;try{J(R)}finally{Nd.transition=fe}},[R]),V},useTransition:function(){var R=z2(Rp)[0];return[HT().current,R]},useMutableSource:lH,useOpaqueIdentifier:function(){return z2(Rp)[0]},unstable_isNewReconciler:!1},fL={readContext:S1,useCallback:yg,useContext:S1,useEffect:T2,useImperativeHandle:pL,useLayoutEffect:VT,useMemo:GT,useReducer:bS,useRef:HT,useState:function(){return bS(Rp)},useDebugValue:sd,useDeferredValue:function(R){var _=bS(Rp),V=_[0],J=_[1];return T2(function(){var fe=Nd.transition;Nd.transition=1;try{J(R)}finally{Nd.transition=fe}},[R]),V},useTransition:function(){var R=bS(Rp)[0];return[HT().current,R]},useMutableSource:lH,useOpaqueIdentifier:function(){return bS(Rp)[0]},unstable_isNewReconciler:!1},gL=w.ReactCurrentOwner,Wc=!1;function Wd(R,_,V,J){_.child=R===null?ov(_,null,V,J):C2(_,R.child,V,J)}function Mg(R,_,V,J,fe){V=V.render;var xe=_.ref;return M2(_,fe),J=BT(R,_,V,J,xe,fe),R!==null&&!Wc?(_.updateQueue=R.updateQueue,_.flags&=-517,R.lanes&=~fe,qd(R,_,fe)):(_.flags|=1,Wd(R,_,J,fe),_.child)}function mL(R,_,V,J,fe,xe){if(R===null){var Pe=V.type;return typeof Pe=="function"&&!qL(Pe)&&Pe.defaultProps===void 0&&V.compare===null&&V.defaultProps===void 0?(_.tag=15,_.type=Pe,vL(R,_,Pe,J,fe,xe)):(R=oE(V.type,null,J,_,_.mode,xe),R.ref=_.ref,R.return=_,_.child=R)}return Pe=R.child,(fe&xe)===0&&(fe=Pe.memoizedProps,V=V.compare,V=V!==null?V:m2,V(fe,J)&&R.ref===_.ref)?qd(R,_,xe):(_.flags|=1,R=cv(Pe,J),R.ref=_.ref,R.return=_,_.child=R)}function vL(R,_,V,J,fe,xe){if(R!==null&&m2(R.memoizedProps,J)&&R.ref===_.ref)if(Wc=!1,(xe&fe)!==0)(R.flags&16384)!==0&&(Wc=!0);else return _.lanes=R.lanes,qd(R,_,xe);return bL(R,_,V,J,xe)}function CS(R,_,V){var J=_.pendingProps,fe=J.children,xe=R!==null?R.memoizedState:null;if(J.mode==="hidden"||J.mode==="unstable-defer-without-hiding")if((_.mode&4)===0)_.memoizedState={baseLanes:0},kS(_,V);else if((V&1073741824)!==0)_.memoizedState={baseLanes:0},kS(_,xe!==null?xe.baseLanes:V);else return R=xe!==null?xe.baseLanes|V:V,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:R},kS(_,R),null;else xe!==null?(J=xe.baseLanes|V,_.memoizedState=null):J=V,kS(_,J);return Wd(R,_,fe,V),_.child}function pH(R,_){var V=_.ref;(R===null&&V!==null||R!==null&&R.ref!==V)&&(_.flags|=128)}function bL(R,_,V,J,fe){var xe=dc(V)?tv:uc.current;return xe=ke(_,xe),M2(_,fe),V=BT(R,_,V,J,xe,fe),R!==null&&!Wc?(_.updateQueue=R.updateQueue,_.flags&=-517,R.lanes&=~fe,qd(R,_,fe)):(_.flags|=1,Wd(R,_,V,fe),_.child)}function hH(R,_,V,J,fe){if(dc(V)){var xe=!0;RT(_)}else xe=!1;if(M2(_,fe),_.stateNode===null)R!==null&&(R.alternate=null,_.alternate=null,_.flags|=2),iH(_,V,J),hc(_,V,J,fe),J=!0;else if(R===null){var Pe=_.stateNode,$e=_.memoizedProps;Pe.props=$e;var pt=Pe.context,Bt=V.contextType;typeof Bt=="object"&&Bt!==null?Bt=S1(Bt):(Bt=dc(V)?tv:uc.current,Bt=ke(_,Bt));var gr=V.getDerivedStateFromProps,Ai=typeof gr=="function"||typeof Pe.getSnapshotBeforeUpdate=="function";Ai||typeof Pe.UNSAFE_componentWillReceiveProps!="function"&&typeof Pe.componentWillReceiveProps!="function"||($e!==J||pt!==Bt)&&oL(_,Pe,J,Bt),Wu=!1;var gn=_.memoizedState;Pe.state=gn,qM(_,J,Pe,fe),pt=_.memoizedState,$e!==J||gn!==pt||Fc.current||Wu?(typeof gr=="function"&&(hS(_,V,gr,J),pt=_.memoizedState),($e=Wu||fS(_,V,$e,J,gn,pt,Bt))?(Ai||typeof Pe.UNSAFE_componentWillMount!="function"&&typeof Pe.componentWillMount!="function"||(typeof Pe.componentWillMount=="function"&&Pe.componentWillMount(),typeof Pe.UNSAFE_componentWillMount=="function"&&Pe.UNSAFE_componentWillMount()),typeof Pe.componentDidMount=="function"&&(_.flags|=4)):(typeof Pe.componentDidMount=="function"&&(_.flags|=4),_.memoizedProps=J,_.memoizedState=pt),Pe.props=J,Pe.state=pt,Pe.context=Bt,J=$e):(typeof Pe.componentDidMount=="function"&&(_.flags|=4),J=!1)}else{Pe=_.stateNode,rv(R,_),$e=_.memoizedProps,Bt=_.type===_.elementType?$e:w1(_.type,$e),Pe.props=Bt,Ai=_.pendingProps,gn=Pe.context,pt=V.contextType,typeof pt=="object"&&pt!==null?pt=S1(pt):(pt=dc(V)?tv:uc.current,pt=ke(_,pt));var Hr=V.getDerivedStateFromProps;(gr=typeof Hr=="function"||typeof Pe.getSnapshotBeforeUpdate=="function")||typeof Pe.UNSAFE_componentWillReceiveProps!="function"&&typeof Pe.componentWillReceiveProps!="function"||($e!==Ai||gn!==pt)&&oL(_,Pe,J,pt),Wu=!1,gn=_.memoizedState,Pe.state=gn,qM(_,J,Pe,fe);var Ti=_.memoizedState;$e!==Ai||gn!==Ti||Fc.current||Wu?(typeof Hr=="function"&&(hS(_,V,Hr,J),Ti=_.memoizedState),(Bt=Wu||fS(_,V,Bt,J,gn,Ti,pt))?(gr||typeof Pe.UNSAFE_componentWillUpdate!="function"&&typeof Pe.componentWillUpdate!="function"||(typeof Pe.componentWillUpdate=="function"&&Pe.componentWillUpdate(J,Ti,pt),typeof Pe.UNSAFE_componentWillUpdate=="function"&&Pe.UNSAFE_componentWillUpdate(J,Ti,pt)),typeof Pe.componentDidUpdate=="function"&&(_.flags|=4),typeof Pe.getSnapshotBeforeUpdate=="function"&&(_.flags|=256)):(typeof Pe.componentDidUpdate!="function"||$e===R.memoizedProps&&gn===R.memoizedState||(_.flags|=4),typeof Pe.getSnapshotBeforeUpdate!="function"||$e===R.memoizedProps&&gn===R.memoizedState||(_.flags|=256),_.memoizedProps=J,_.memoizedState=Ti),Pe.props=J,Pe.state=Ti,Pe.context=pt,J=Bt):(typeof Pe.componentDidUpdate!="function"||$e===R.memoizedProps&&gn===R.memoizedState||(_.flags|=4),typeof Pe.getSnapshotBeforeUpdate!="function"||$e===R.memoizedProps&&gn===R.memoizedState||(_.flags|=256),J=!1)}return $T(R,_,V,J,xe,fe)}function $T(R,_,V,J,fe,xe){pH(R,_);var Pe=(_.flags&64)!==0;if(!J&&!Pe)return fe&&Qj(_,V,!1),qd(R,_,xe);J=_.stateNode,gL.current=_;var $e=Pe&&typeof V.getDerivedStateFromError!="function"?null:J.render();return _.flags|=1,R!==null&&Pe?(_.child=C2(_,R.child,null,xe),_.child=C2(_,null,$e,xe)):Wd(R,_,$e,xe),_.memoizedState=J.state,fe&&Qj(_,V,!0),_.child}function yL(R){var _=R.stateNode;_.pendingContext?L0(R,_.pendingContext,_.pendingContext!==_.context):_.context&&L0(R,_.context,!1),aL(R,_.containerInfo)}var UT={dehydrated:null,retryLane:0};function ML(R,_,V){var J=_.pendingProps,fe=Qs.current,xe=!1,Pe;return(Pe=(_.flags&64)!==0)||(Pe=R!==null&&R.memoizedState===null?!1:(fe&2)!==0),Pe?(xe=!0,_.flags&=-65):R!==null&&R.memoizedState===null||J.fallback===void 0||J.unstable_avoidThisFallback===!0||(fe|=1),ll(Qs,fe&1),R===null?(J.fallback!==void 0&&FT(_),R=J.children,fe=J.fallback,xe?(R=CL(_,R,fe,V),_.child.memoizedState={baseLanes:V},_.memoizedState=UT,R):typeof J.unstable_expectedLoadTime=="number"?(R=CL(_,R,fe,V),_.child.memoizedState={baseLanes:V},_.memoizedState=UT,_.lanes=33554432,R):(V=jd({mode:"visible",children:R},_.mode,V,null),V.return=_,_.child=V)):R.memoizedState!==null?xe?(J=Ip(R,_,J.children,J.fallback,V),xe=_.child,fe=R.child.memoizedState,xe.memoizedState=fe===null?{baseLanes:V}:{baseLanes:fe.baseLanes|V},xe.childLanes=R.childLanes&~V,_.memoizedState=UT,J):(V=ld(R,_,J.children,V),_.memoizedState=null,V):xe?(J=Ip(R,_,J.children,J.fallback,V),xe=_.child,fe=R.child.memoizedState,xe.memoizedState=fe===null?{baseLanes:V}:{baseLanes:fe.baseLanes|V},xe.childLanes=R.childLanes&~V,_.memoizedState=UT,J):(V=ld(R,_,J.children,V),_.memoizedState=null,V)}function CL(R,_,V,J){var fe=R.mode,xe=R.child;return _={mode:"hidden",children:_},(fe&2)===0&&xe!==null?(xe.childLanes=0,xe.pendingProps=_):xe=jd(_,fe,0,null),V=QM(V,fe,J,null),xe.return=R,V.return=R,xe.sibling=V,R.child=xe,V}function ld(R,_,V,J){var fe=R.child;return R=fe.sibling,V=cv(fe,{mode:"visible",children:V}),(_.mode&2)===0&&(V.lanes=J),V.return=_,V.sibling=null,R!==null&&(R.nextEffect=null,R.flags=8,_.firstEffect=_.lastEffect=R),_.child=V}function Ip(R,_,V,J,fe){var xe=_.mode,Pe=R.child;R=Pe.sibling;var $e={mode:"hidden",children:V};return(xe&2)===0&&_.child!==Pe?(V=_.child,V.childLanes=0,V.pendingProps=$e,Pe=V.lastEffect,Pe!==null?(_.firstEffect=V.firstEffect,_.lastEffect=Pe,Pe.nextEffect=null):_.firstEffect=_.lastEffect=null):V=cv(Pe,$e),R!==null?J=cv(R,J):(J=QM(J,xe,fe,null),J.flags|=2),J.return=_,V.return=_,V.sibling=J,_.child=V,J}function fH(R,_){R.lanes|=_;var V=R.alternate;V!==null&&(V.lanes|=_),rH(R.return,_)}function xL(R,_,V,J,fe,xe){var Pe=R.memoizedState;Pe===null?R.memoizedState={isBackwards:_,rendering:null,renderingStartTime:0,last:J,tail:V,tailMode:fe,lastEffect:xe}:(Pe.isBackwards=_,Pe.rendering=null,Pe.renderingStartTime=0,Pe.last=J,Pe.tail=V,Pe.tailMode=fe,Pe.lastEffect=xe)}function xS(R,_,V){var J=_.pendingProps,fe=J.revealOrder,xe=J.tail;if(Wd(R,_,J.children,V),J=Qs.current,(J&2)!==0)J=J&1|2,_.flags|=64;else{if(R!==null&&(R.flags&64)!==0)e:for(R=_.child;R!==null;){if(R.tag===13)R.memoizedState!==null&&fH(R,V);else if(R.tag===19)fH(R,V);else if(R.child!==null){R.child.return=R,R=R.child;continue}if(R===_)break e;for(;R.sibling===null;){if(R.return===null||R.return===_)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}J&=1}if(ll(Qs,J),(_.mode&2)===0)_.memoizedState=null;else switch(fe){case"forwards":for(V=_.child,fe=null;V!==null;)R=V.alternate,R!==null&&_T(R)===null&&(fe=V),V=V.sibling;V=fe,V===null?(fe=_.child,_.child=null):(fe=V.sibling,V.sibling=null),xL(_,!1,fe,V,xe,_.lastEffect);break;case"backwards":for(V=null,fe=_.child,_.child=null;fe!==null;){if(R=fe.alternate,R!==null&&_T(R)===null){_.child=fe;break}R=fe.sibling,fe.sibling=V,V=fe,fe=R}xL(_,!0,V,null,xe,_.lastEffect);break;case"together":xL(_,!1,null,null,void 0,_.lastEffect);break;default:_.memoizedState=null}return _.child}function qd(R,_,V){if(R!==null&&(_.dependencies=R.dependencies),E2|=_.lanes,(V&_.childLanes)!==0){if(R!==null&&_.child!==R.child)throw Error(r(153));if(_.child!==null){for(R=_.child,V=cv(R,R.pendingProps),_.child=V,V.return=_;R.sibling!==null;)R=R.sibling,V=V.sibling=cv(R,R.pendingProps),V.return=_;V.sibling=null}return _.child}return null}var wL,XT,gH,SL;wL=function(R,_){for(var V=_.child;V!==null;){if(V.tag===5||V.tag===6)R.appendChild(V.stateNode);else if(V.tag!==4&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===_)break;for(;V.sibling===null;){if(V.return===null||V.return===_)return;V=V.return}V.sibling.return=V.return,V=V.sibling}},XT=function(){},gH=function(R,_,V,J){var fe=R.memoizedProps;if(fe!==J){R=_.stateNode,w2(Fs.current);var xe=null;switch(V){case"input":fe=Me(R,fe),J=Me(R,J),xe=[];break;case"option":fe=Ee(R,fe),J=Ee(R,J),xe=[];break;case"select":fe=t({},fe,{value:void 0}),J=t({},J,{value:void 0}),xe=[];break;case"textarea":fe=_e(R,fe),J=_e(R,J),xe=[];break;default:typeof fe.onClick!="function"&&typeof J.onClick=="function"&&(R.onclick=zT)}jn(V,J);var Pe;V=null;for(Bt in fe)if(!J.hasOwnProperty(Bt)&&fe.hasOwnProperty(Bt)&&fe[Bt]!=null)if(Bt==="style"){var $e=fe[Bt];for(Pe in $e)$e.hasOwnProperty(Pe)&&(V||(V={}),V[Pe]="")}else Bt!=="dangerouslySetInnerHTML"&&Bt!=="children"&&Bt!=="suppressContentEditableWarning"&&Bt!=="suppressHydrationWarning"&&Bt!=="autoFocus"&&(o.hasOwnProperty(Bt)?xe||(xe=[]):(xe=xe||[]).push(Bt,null));for(Bt in J){var pt=J[Bt];if($e=fe?.[Bt],J.hasOwnProperty(Bt)&&pt!==$e&&(pt!=null||$e!=null))if(Bt==="style")if($e){for(Pe in $e)!$e.hasOwnProperty(Pe)||pt&&pt.hasOwnProperty(Pe)||(V||(V={}),V[Pe]="");for(Pe in pt)pt.hasOwnProperty(Pe)&&$e[Pe]!==pt[Pe]&&(V||(V={}),V[Pe]=pt[Pe])}else V||(xe||(xe=[]),xe.push(Bt,V)),V=pt;else Bt==="dangerouslySetInnerHTML"?(pt=pt?pt.__html:void 0,$e=$e?$e.__html:void 0,pt!=null&&$e!==pt&&(xe=xe||[]).push(Bt,pt)):Bt==="children"?typeof pt!="string"&&typeof pt!="number"||(xe=xe||[]).push(Bt,""+pt):Bt!=="suppressContentEditableWarning"&&Bt!=="suppressHydrationWarning"&&(o.hasOwnProperty(Bt)?(pt!=null&&Bt==="onScroll"&&ds("scroll",R),xe||$e===pt||(xe=[])):typeof pt=="object"&&pt!==null&&pt.$$typeof===G?pt.toString():(xe=xe||[]).push(Bt,pt))}V&&(xe=xe||[]).push("style",V);var Bt=xe;(_.updateQueue=Bt)&&(_.flags|=4)}},SL=function(R,_,V,J){V!==J&&(_.flags|=4)};function zh(R,_){if(!Oh)switch(R.tailMode){case"hidden":_=R.tail;for(var V=null;_!==null;)_.alternate!==null&&(V=_),_=_.sibling;V===null?R.tail=null:V.sibling=null;break;case"collapsed":V=R.tail;for(var J=null;V!==null;)V.alternate!==null&&(J=V),V=V.sibling;J===null?_||R.tail===null?R.tail=null:R.tail.sibling=null:J.sibling=null}}function wS(R,_,V){var J=_.pendingProps;switch(_.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return dc(_.type)&&v2(),null;case 3:return av(),Os(Fc),Os(uc),mS(),J=_.stateNode,J.pendingContext&&(J.context=J.pendingContext,J.pendingContext=null),(R===null||R.child===null)&&(WT(_)?_.flags|=4:J.hydrate||(_.flags|=256)),XT(_),null;case 5:S2(_);var fe=w2(gS.current);if(V=_.type,R!==null&&_.stateNode!=null)gH(R,_,V,J,fe),R.ref!==_.ref&&(_.flags|=128);else{if(!J){if(_.stateNode===null)throw Error(r(166));return null}if(R=w2(Fs.current),WT(_)){J=_.stateNode,V=_.type;var xe=_.memoizedProps;switch(J[hg]=_,J[ET]=xe,V){case"dialog":ds("cancel",J),ds("close",J);break;case"iframe":case"object":case"embed":ds("load",J);break;case"video":case"audio":for(R=0;R<rS.length;R++)ds(rS[R],J);break;case"source":ds("error",J);break;case"img":case"image":case"link":ds("error",J),ds("load",J);break;case"details":ds("toggle",J);break;case"input":Oe(J,xe),ds("invalid",J);break;case"select":J._wrapperState={wasMultiple:!!xe.multiple},ds("invalid",J);break;case"textarea":Ie(J,xe),ds("invalid",J)}jn(V,xe),R=null;for(var Pe in xe)xe.hasOwnProperty(Pe)&&(fe=xe[Pe],Pe==="children"?typeof fe=="string"?J.textContent!==fe&&(R=["children",fe]):typeof fe=="number"&&J.textContent!==""+fe&&(R=["children",""+fe]):o.hasOwnProperty(Pe)&&fe!=null&&Pe==="onScroll"&&ds("scroll",J));switch(V){case"input":he(J),ue(J,xe,!0);break;case"textarea":he(J),we(J);break;case"select":case"option":break;default:typeof xe.onClick=="function"&&(J.onclick=zT)}J=R,_.updateQueue=J,J!==null&&(_.flags|=4)}else{switch(Pe=fe.nodeType===9?fe:fe.ownerDocument,R===ve.html&&(R=De(V)),R===ve.html?V==="script"?(R=Pe.createElement("div"),R.innerHTML="<script><\/script>",R=R.removeChild(R.firstChild)):typeof J.is=="string"?R=Pe.createElement(V,{is:J.is}):(R=Pe.createElement(V),V==="select"&&(Pe=R,J.multiple?Pe.multiple=!0:J.size&&(Pe.size=J.size))):R=Pe.createElementNS(R,V),R[hg]=_,R[ET]=J,wL(R,_,!1,!1),_.stateNode=R,Pe=Zn(V,J),V){case"dialog":ds("cancel",R),ds("close",R),fe=J;break;case"iframe":case"object":case"embed":ds("load",R),fe=J;break;case"video":case"audio":for(fe=0;fe<rS.length;fe++)ds(rS[fe],R);fe=J;break;case"source":ds("error",R),fe=J;break;case"img":case"image":case"link":ds("error",R),ds("load",R),fe=J;break;case"details":ds("toggle",R),fe=J;break;case"input":Oe(R,J),fe=Me(R,J),ds("invalid",R);break;case"option":fe=Ee(R,J);break;case"select":R._wrapperState={wasMultiple:!!J.multiple},fe=t({},J,{value:void 0}),ds("invalid",R);break;case"textarea":Ie(R,J),fe=_e(R,J),ds("invalid",R);break;default:fe=J}jn(V,fe);var $e=fe;for(xe in $e)if($e.hasOwnProperty(xe)){var pt=$e[xe];xe==="style"?Qn(R,pt):xe==="dangerouslySetInnerHTML"?(pt=pt?pt.__html:void 0,pt!=null&&Ke(R,pt)):xe==="children"?typeof pt=="string"?(V!=="textarea"||pt!=="")&&et(R,pt):typeof pt=="number"&&et(R,""+pt):xe!=="suppressContentEditableWarning"&&xe!=="suppressHydrationWarning"&&xe!=="autoFocus"&&(o.hasOwnProperty(xe)?pt!=null&&xe==="onScroll"&&ds("scroll",R):pt!=null&&x(R,xe,pt,Pe))}switch(V){case"input":he(R),ue(R,J,!1);break;case"textarea":he(R),we(R);break;case"option":J.value!=null&&R.setAttribute("value",""+ae(J.value));break;case"select":R.multiple=!!J.multiple,xe=J.value,xe!=null?Ge(R,!!J.multiple,xe,!1):J.defaultValue!=null&&Ge(R,!!J.multiple,J.defaultValue,!0);break;default:typeof fe.onClick=="function"&&(R.onclick=zT)}sS(V,J)&&(_.flags|=4)}_.ref!==null&&(_.flags|=128)}return null;case 6:if(R&&_.stateNode!=null)SL(R,_,R.memoizedProps,J);else{if(typeof J!="string"&&_.stateNode===null)throw Error(r(166));V=w2(gS.current),w2(Fs.current),WT(_)?(J=_.stateNode,V=_.memoizedProps,J[hg]=_,J.nodeValue!==V&&(_.flags|=4)):(J=(V.nodeType===9?V:V.ownerDocument).createTextNode(J),J[hg]=_,_.stateNode=J)}return null;case 13:return Os(Qs),J=_.memoizedState,(_.flags&64)!==0?(_.lanes=V,_):(J=J!==null,V=!1,R===null?_.memoizedProps.fallback!==void 0&&WT(_):V=R.memoizedState!==null,J&&!V&&(_.mode&2)!==0&&(R===null&&_.memoizedProps.unstable_avoidThisFallback!==!0||(Qs.current&1)!==0?fc===0&&(fc=3):((fc===0||fc===3)&&(fc=4),cu===null||(E2&134217727)===0&&(R2&134217727)===0||Ih(cu,Ol))),(J||V)&&(_.flags|=4),null);case 4:return av(),XT(_),R===null&&Xk(_.stateNode.containerInfo),null;case 10:return WM(_),null;case 17:return dc(_.type)&&v2(),null;case 19:if(Os(Qs),J=_.memoizedState,J===null)return null;if(xe=(_.flags&64)!==0,Pe=J.rendering,Pe===null)if(xe)zh(J,!1);else{if(fc!==0||R!==null&&(R.flags&64)!==0)for(R=_.child;R!==null;){if(Pe=_T(R),Pe!==null){for(_.flags|=64,zh(J,!1),xe=Pe.updateQueue,xe!==null&&(_.updateQueue=xe,_.flags|=4),J.lastEffect===null&&(_.firstEffect=null),_.lastEffect=J.lastEffect,J=V,V=_.child;V!==null;)xe=V,R=J,xe.flags&=2,xe.nextEffect=null,xe.firstEffect=null,xe.lastEffect=null,Pe=xe.alternate,Pe===null?(xe.childLanes=0,xe.lanes=R,xe.child=null,xe.memoizedProps=null,xe.memoizedState=null,xe.updateQueue=null,xe.dependencies=null,xe.stateNode=null):(xe.childLanes=Pe.childLanes,xe.lanes=Pe.lanes,xe.child=Pe.child,xe.memoizedProps=Pe.memoizedProps,xe.memoizedState=Pe.memoizedState,xe.updateQueue=Pe.updateQueue,xe.type=Pe.type,R=Pe.dependencies,xe.dependencies=R===null?null:{lanes:R.lanes,firstContext:R.firstContext}),V=V.sibling;return ll(Qs,Qs.current&1|2),_.child}R=R.sibling}J.tail!==null&&Fu()>eE&&(_.flags|=64,xe=!0,zh(J,!1),_.lanes=33554432)}else{if(!xe)if(R=_T(Pe),R!==null){if(_.flags|=64,xe=!0,V=R.updateQueue,V!==null&&(_.updateQueue=V,_.flags|=4),zh(J,!0),J.tail===null&&J.tailMode==="hidden"&&!Pe.alternate&&!Oh)return _=_.lastEffect=J.lastEffect,_!==null&&(_.nextEffect=null),null}else 2*Fu()-J.renderingStartTime>eE&&V!==1073741824&&(_.flags|=64,xe=!0,zh(J,!1),_.lanes=33554432);J.isBackwards?(Pe.sibling=_.child,_.child=Pe):(V=J.last,V!==null?V.sibling=Pe:_.child=Pe,J.last=Pe)}return J.tail!==null?(V=J.tail,J.rendering=V,J.tail=V.sibling,J.lastEffect=_.lastEffect,J.renderingStartTime=Fu(),V.sibling=null,_=Qs.current,ll(Qs,xe?_&1|2:_&1),V):null;case 23:case 24:return z1(),R!==null&&R.memoizedState!==null!=(_.memoizedState!==null)&&J.mode!=="unstable-defer-without-hiding"&&(_.flags|=4),null}throw Error(r(156,_.tag))}function ine(R){switch(R.tag){case 1:dc(R.type)&&v2();var _=R.flags;return _&4096?(R.flags=_&-4097|64,R):null;case 3:if(av(),Os(Fc),Os(uc),mS(),_=R.flags,(_&64)!==0)throw Error(r(285));return R.flags=_&-4097|64,R;case 5:return S2(R),null;case 13:return Os(Qs),_=R.flags,_&4096?(R.flags=_&-4097|64,R):null;case 19:return Os(Qs),null;case 4:return av(),null;case 10:return WM(R),null;case 23:case 24:return z1(),null;default:return null}}function YT(R,_){try{var V="",J=_;do V+=ce(J),J=J.return;while(J);var fe=V}catch(xe){fe=`
Error generating stack: `+xe.message+`
`+xe.stack}return{value:R,source:_,stack:fe}}function KT(R,_){try{console.error(_.value)}catch(V){setTimeout(function(){throw V})}}var QT=typeof WeakMap=="function"?WeakMap:Map;function AL(R,_,V){V=pc(-1,V),V.tag=3,V.payload={element:null};var J=_.value;return V.callback=function(){tE||(tE=!0,kL=J),KT(R,_)},V}function SS(R,_,V){V=pc(-1,V),V.tag=3;var J=R.type.getDerivedStateFromError;if(typeof J=="function"){var fe=_.value;V.payload=function(){return KT(R,_),J(fe)}}var xe=R.stateNode;return xe!==null&&typeof xe.componentDidCatch=="function"&&(V.callback=function(){typeof J!="function"&&(Eh===null?Eh=new Set([this]):Eh.add(this),KT(R,_));var Pe=_.stack;this.componentDidCatch(_.value,{componentStack:Pe!==null?Pe:""})}),V}var OL=typeof WeakSet=="function"?WeakSet:Set;function AS(R){var _=R.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(V){Sg(R,V)}else _.current=null}function one(R,_){switch(_.tag){case 0:case 11:case 15:case 22:return;case 1:if(_.flags&256&&R!==null){var V=R.memoizedProps,J=R.memoizedState;R=_.stateNode,_=R.getSnapshotBeforeUpdate(_.elementType===_.type?V:w1(_.type,V),J),R.__reactInternalSnapshotBeforeUpdate=_}return;case 3:_.flags&256&&Zk(_.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(r(163))}function mH(R,_,V){switch(V.tag){case 0:case 11:case 15:case 22:if(_=V.updateQueue,_=_!==null?_.lastEffect:null,_!==null){R=_=_.next;do{if((R.tag&3)===3){var J=R.create;R.destroy=J()}R=R.next}while(R!==_)}if(_=V.updateQueue,_=_!==null?_.lastEffect:null,_!==null){R=_=_.next;do{var fe=R;J=fe.next,fe=fe.tag,(fe&4)!==0&&(fe&1)!==0&&(xH(V,R),pne(V,R)),R=J}while(R!==_)}return;case 1:R=V.stateNode,V.flags&4&&(_===null?R.componentDidMount():(J=V.elementType===V.type?_.memoizedProps:w1(V.type,_.memoizedProps),R.componentDidUpdate(J,_.memoizedState,R.__reactInternalSnapshotBeforeUpdate))),_=V.updateQueue,_!==null&&BM(V,_,R);return;case 3:if(_=V.updateQueue,_!==null){if(R=null,V.child!==null)switch(V.child.tag){case 5:R=V.child.stateNode;break;case 1:R=V.child.stateNode}BM(V,_,R)}return;case 5:R=V.stateNode,_===null&&V.flags&4&&sS(V.type,V.memoizedProps)&&R.focus();return;case 6:return;case 4:return;case 12:return;case 13:V.memoizedState===null&&(V=V.alternate,V!==null&&(V=V.memoizedState,V!==null&&(V=V.dehydrated,V!==null&&st(V))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(r(163))}function OS(R,_){for(var V=R;;){if(V.tag===5){var J=V.stateNode;if(_)J=J.style,typeof J.setProperty=="function"?J.setProperty("display","none","important"):J.display="none";else{J=V.stateNode;var fe=V.memoizedProps.style;fe=fe!=null&&fe.hasOwnProperty("display")?fe.display:null,J.style.display=Pt("display",fe)}}else if(V.tag===6)V.stateNode.nodeValue=_?"":V.memoizedProps;else if((V.tag!==23&&V.tag!==24||V.memoizedState===null||V===R)&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===R)break;for(;V.sibling===null;){if(V.return===null||V.return===R)return;V=V.return}V.sibling.return=V.return,V=V.sibling}}function zL(R,_){if(_0&&typeof _0.onCommitFiberUnmount=="function")try{_0.onCommitFiberUnmount(Jk,_)}catch{}switch(_.tag){case 0:case 11:case 14:case 15:case 22:if(R=_.updateQueue,R!==null&&(R=R.lastEffect,R!==null)){var V=R=R.next;do{var J=V,fe=J.destroy;if(J=J.tag,fe!==void 0)if((J&4)!==0)xH(_,V);else{J=_;try{fe()}catch(xe){Sg(J,xe)}}V=V.next}while(V!==R)}break;case 1:if(AS(_),R=_.stateNode,typeof R.componentWillUnmount=="function")try{R.props=_.memoizedProps,R.state=_.memoizedState,R.componentWillUnmount()}catch(xe){Sg(_,xe)}break;case 5:AS(_);break;case 4:EL(R,_)}}function ZT(R){R.alternate=null,R.child=null,R.dependencies=null,R.firstEffect=null,R.lastEffect=null,R.memoizedProps=null,R.memoizedState=null,R.pendingProps=null,R.return=null,R.updateQueue=null}function vH(R){return R.tag===5||R.tag===3||R.tag===4}function TL(R){e:{for(var _=R.return;_!==null;){if(vH(_))break e;_=_.return}throw Error(r(160))}var V=_;switch(_=V.stateNode,V.tag){case 5:var J=!1;break;case 3:_=_.containerInfo,J=!0;break;case 4:_=_.containerInfo,J=!0;break;default:throw Error(r(161))}V.flags&16&&(et(_,""),V.flags&=-17);e:t:for(V=R;;){for(;V.sibling===null;){if(V.return===null||vH(V.return)){V=null;break e}V=V.return}for(V.sibling.return=V.return,V=V.sibling;V.tag!==5&&V.tag!==6&&V.tag!==18;){if(V.flags&2||V.child===null||V.tag===4)continue t;V.child.return=V,V=V.child}if(!(V.flags&2)){V=V.stateNode;break e}}J?Pp(R,V,_):JT(R,V,_)}function Pp(R,_,V){var J=R.tag,fe=J===5||J===6;if(fe)R=fe?R.stateNode:R.stateNode.instance,_?V.nodeType===8?V.parentNode.insertBefore(R,_):V.insertBefore(R,_):(V.nodeType===8?(_=V.parentNode,_.insertBefore(R,V)):(_=V,_.appendChild(R)),V=V._reactRootContainer,V!=null||_.onclick!==null||(_.onclick=zT));else if(J!==4&&(R=R.child,R!==null))for(Pp(R,_,V),R=R.sibling;R!==null;)Pp(R,_,V),R=R.sibling}function JT(R,_,V){var J=R.tag,fe=J===5||J===6;if(fe)R=fe?R.stateNode:R.stateNode.instance,_?V.insertBefore(R,_):V.appendChild(R);else if(J!==4&&(R=R.child,R!==null))for(JT(R,_,V),R=R.sibling;R!==null;)JT(R,_,V),R=R.sibling}function EL(R,_){for(var V=_,J=!1,fe,xe;;){if(!J){J=V.return;e:for(;;){if(J===null)throw Error(r(160));switch(fe=J.stateNode,J.tag){case 5:xe=!1;break e;case 3:fe=fe.containerInfo,xe=!0;break e;case 4:fe=fe.containerInfo,xe=!0;break e}J=J.return}J=!0}if(V.tag===5||V.tag===6){e:for(var Pe=R,$e=V,pt=$e;;)if(zL(Pe,pt),pt.child!==null&&pt.tag!==4)pt.child.return=pt,pt=pt.child;else{if(pt===$e)break e;for(;pt.sibling===null;){if(pt.return===null||pt.return===$e)break e;pt=pt.return}pt.sibling.return=pt.return,pt=pt.sibling}xe?(Pe=fe,$e=V.stateNode,Pe.nodeType===8?Pe.parentNode.removeChild($e):Pe.removeChild($e)):fe.removeChild(V.stateNode)}else if(V.tag===4){if(V.child!==null){fe=V.stateNode.containerInfo,xe=!0,V.child.return=V,V=V.child;continue}}else if(zL(R,V),V.child!==null){V.child.return=V,V=V.child;continue}if(V===_)break;for(;V.sibling===null;){if(V.return===null||V.return===_)return;V=V.return,V.tag===4&&(J=!1)}V.sibling.return=V.return,V=V.sibling}}function RL(R,_){switch(_.tag){case 0:case 11:case 14:case 15:case 22:var V=_.updateQueue;if(V=V!==null?V.lastEffect:null,V!==null){var J=V=V.next;do(J.tag&3)===3&&(R=J.destroy,J.destroy=void 0,R!==void 0&&R()),J=J.next;while(J!==V)}return;case 1:return;case 5:if(V=_.stateNode,V!=null){J=_.memoizedProps;var fe=R!==null?R.memoizedProps:J;R=_.type;var xe=_.updateQueue;if(_.updateQueue=null,xe!==null){for(V[ET]=J,R==="input"&&J.type==="radio"&&J.name!=null&&de(V,J),Zn(R,fe),_=Zn(R,J),fe=0;fe<xe.length;fe+=2){var Pe=xe[fe],$e=xe[fe+1];Pe==="style"?Qn(V,$e):Pe==="dangerouslySetInnerHTML"?Ke(V,$e):Pe==="children"?et(V,$e):x(V,Pe,$e,_)}switch(R){case"input":ie(V,J);break;case"textarea":Le(V,J);break;case"select":R=V._wrapperState.wasMultiple,V._wrapperState.wasMultiple=!!J.multiple,xe=J.value,xe!=null?Ge(V,!!J.multiple,xe,!1):R!==!!J.multiple&&(J.defaultValue!=null?Ge(V,!!J.multiple,J.defaultValue,!0):Ge(V,!!J.multiple,J.multiple?[]:"",!1))}}}return;case 6:if(_.stateNode===null)throw Error(r(162));_.stateNode.nodeValue=_.memoizedProps;return;case 3:V=_.stateNode,V.hydrate&&(V.hydrate=!1,st(V.containerInfo));return;case 12:return;case 13:_.memoizedState!==null&&(DL=Fu(),OS(_.child,!0)),IL(_);return;case 19:IL(_);return;case 17:return;case 23:case 24:OS(_,_.memoizedState!==null);return}throw Error(r(163))}function IL(R){var _=R.updateQueue;if(_!==null){R.updateQueue=null;var V=R.stateNode;V===null&&(V=R.stateNode=new OL),_.forEach(function(J){var fe=fne.bind(null,R,J);V.has(J)||(V.add(J),J.then(fe,fe))})}}function ane(R,_){return R!==null&&(R=R.memoizedState,R===null||R.dehydrated!==null)?(_=_.memoizedState,_!==null&&_.dehydrated===null):!1}var sne=Math.ceil,O1=w.ReactCurrentDispatcher,zS=w.ReactCurrentOwner,yi=0,cu=null,ul=null,Ol=0,Kr=0,XM=Jm(0),fc=0,Th=null,YM=0,E2=0,R2=0,qc=0,PL=null,DL=0,eE=1/0;function KM(){eE=Fu()+500}var wr=null,tE=!1,kL=null,Eh=null,qu=!1,gc=null,I2=90,LL=[],TS=[],Cg=null,ES=0,P2=null,RS=-1,Rh=0,nE=0,IS=null,rE=!1;function F0(){return(yi&48)!==0?Fu():RS!==-1?RS:RS=Fu()}function xg(R){if(R=R.mode,(R&2)===0)return 1;if((R&4)===0)return _M()===99?1:2;if(Rh===0&&(Rh=YM),rne.transition!==0){nE!==0&&(nE=PL!==null?PL.pendingLanes:0),R=Rh;var _=4186112&~nE;return _&=-_,_===0&&(R=4186112&~R,_=R&-R,_===0&&(_=8192)),_}return R=_M(),(yi&4)!==0&&R===98?R=mT(12,Rh):(R=_te(R),R=mT(R,Rh)),R}function wg(R,_,V){if(50<ES)throw ES=0,P2=null,Error(r(185));if(R=iE(R,_),R===null)return null;vT(R,_,V),R===cu&&(R2|=_,fc===4&&Ih(R,Ol));var J=_M();_===1?(yi&8)!==0&&(yi&48)===0?PS(R):(Bd(R,V),yi===0&&(KM(),Ah())):((yi&4)===0||J!==98&&J!==99||(Cg===null?Cg=new Set([R]):Cg.add(R)),Bd(R,V)),PL=R}function iE(R,_){R.lanes|=_;var V=R.alternate;for(V!==null&&(V.lanes|=_),V=R,R=R.return;R!==null;)R.childLanes|=_,V=R.alternate,V!==null&&(V.childLanes|=_),V=R,R=R.return;return V.tag===3?V.stateNode:null}function Bd(R,_){for(var V=R.callbackNode,J=R.suspendedLanes,fe=R.pingedLanes,xe=R.expirationTimes,Pe=R.pendingLanes;0<Pe;){var $e=31-Vm(Pe),pt=1<<$e,Bt=xe[$e];if(Bt===-1){if((pt&J)===0||(pt&fe)!==0){Bt=_,Hm(pt);var gr=us;xe[$e]=10<=gr?Bt+250:6<=gr?Bt+5e3:-1}}else Bt<=_&&(R.expiredLanes|=pt);Pe&=~pt}if(J=Vw(R,R===cu?Ol:0),_=us,J===0)V!==null&&(V!==nL&&tL(V),R.callbackNode=null,R.callbackPriority=0);else{if(V!==null){if(R.callbackPriority===_)return;V!==nL&&tL(V)}_===15?(V=PS.bind(null,R),gg===null?(gg=[V],PT=eL(IT,nH)):gg.push(V),V=nL):_===14?V=uS(99,PS.bind(null,R)):(V=Nte(_),V=uS(V,_L.bind(null,R))),R.callbackPriority=_,R.callbackNode=V}}function _L(R){if(RS=-1,nE=Rh=0,(yi&48)!==0)throw Error(r(327));var _=R.callbackNode;if(lv()&&R.callbackNode!==_)return null;var V=Vw(R,R===cu?Ol:0);if(V===0)return null;var J=V,fe=yi;yi|=16;var xe=FL();(cu!==R||Ol!==J)&&(KM(),T1(R,J));do try{cne();break}catch($e){yH(R,$e)}while(!0);if(y2(),O1.current=xe,yi=fe,ul!==null?J=0:(cu=null,Ol=0,J=fc),(YM&R2)!==0)T1(R,0);else if(J!==0){if(J===2&&(yi|=64,R.hydrate&&(R.hydrate=!1,Zk(R.containerInfo)),V=zj(R),V!==0&&(J=LS(R,V))),J===1)throw _=Th,T1(R,0),Ih(R,V),Bd(R,Fu()),_;switch(R.finishedWork=R.current.alternate,R.finishedLanes=V,J){case 0:case 1:throw Error(r(345));case 2:D2(R);break;case 3:if(Ih(R,V),(V&62914560)===V&&(J=DL+500-Fu(),10<J)){if(Vw(R,0)!==0)break;if(fe=R.suspendedLanes,(fe&V)!==V){F0(),R.pingedLanes|=R.suspendedLanes&fe;break}R.timeoutHandle=Yj(D2.bind(null,R),J);break}D2(R);break;case 4:if(Ih(R,V),(V&4186112)===V)break;for(J=R.eventTimes,fe=-1;0<V;){var Pe=31-Vm(V);xe=1<<Pe,Pe=J[Pe],Pe>fe&&(fe=Pe),V&=~xe}if(V=fe,V=Fu()-V,V=(120>V?120:480>V?480:1080>V?1080:1920>V?1920:3e3>V?3e3:4320>V?4320:1960*sne(V/1960))-V,10<V){R.timeoutHandle=Yj(D2.bind(null,R),V);break}D2(R);break;case 5:D2(R);break;default:throw Error(r(329))}}return Bd(R,Fu()),R.callbackNode===_?_L.bind(null,R):null}function Ih(R,_){for(_&=~qc,_&=~R2,R.suspendedLanes|=_,R.pingedLanes&=~_,R=R.expirationTimes;0<_;){var V=31-Vm(_),J=1<<V;R[V]=-1,_&=~J}}function PS(R){if((yi&48)!==0)throw Error(r(327));if(lv(),R===cu&&(R.expiredLanes&Ol)!==0){var _=Ol,V=LS(R,_);(YM&R2)!==0&&(_=Vw(R,_),V=LS(R,_))}else _=Vw(R,0),V=LS(R,_);if(R.tag!==0&&V===2&&(yi|=64,R.hydrate&&(R.hydrate=!1,Zk(R.containerInfo)),_=zj(R),_!==0&&(V=LS(R,_))),V===1)throw V=Th,T1(R,0),Ih(R,_),Bd(R,Fu()),V;return R.finishedWork=R.current.alternate,R.finishedLanes=_,D2(R),Bd(R,Fu()),null}function bH(){if(Cg!==null){var R=Cg;Cg=null,R.forEach(function(_){_.expiredLanes|=24&_.pendingLanes,Bd(_,Fu())})}Ah()}function NL(R,_){var V=yi;yi|=1;try{return R(_)}finally{yi=V,yi===0&&(KM(),Ah())}}function DS(R,_){var V=yi;yi&=-2,yi|=8;try{return R(_)}finally{yi=V,yi===0&&(KM(),Ah())}}function kS(R,_){ll(XM,Kr),Kr|=_,YM|=_}function z1(){Kr=XM.current,Os(XM)}function T1(R,_){R.finishedWork=null,R.finishedLanes=0;var V=R.timeoutHandle;if(V!==-1&&(R.timeoutHandle=-1,Kj(V)),ul!==null)for(V=ul.return;V!==null;){var J=V;switch(J.tag){case 1:J=J.type.childContextTypes,J!=null&&v2();break;case 3:av(),Os(Fc),Os(uc),mS();break;case 5:S2(J);break;case 4:av();break;case 13:Os(Qs);break;case 19:Os(Qs);break;case 10:WM(J);break;case 23:case 24:z1()}V=V.return}cu=R,ul=cv(R.current,null),Ol=Kr=YM=_,fc=0,Th=null,qc=R2=E2=0}function yH(R,_){do{var V=ul;try{if(y2(),vS.current=MS,qT){for(var J=cl.memoizedState;J!==null;){var fe=J.queue;fe!==null&&(fe.pending=null),J=J.next}qT=!1}if(GM=0,Gl=lu=cl=null,$M=!1,zS.current=null,V===null||V.return===null){fc=1,Th=_,ul=null;break}e:{var xe=R,Pe=V.return,$e=V,pt=_;if(_=Ol,$e.flags|=2048,$e.firstEffect=$e.lastEffect=null,pt!==null&&typeof pt=="object"&&typeof pt.then=="function"){var Bt=pt;if(($e.mode&2)===0){var gr=$e.alternate;gr?($e.updateQueue=gr.updateQueue,$e.memoizedState=gr.memoizedState,$e.lanes=gr.lanes):($e.updateQueue=null,$e.memoizedState=null)}var Ai=(Qs.current&1)!==0,gn=Pe;do{var Hr;if(Hr=gn.tag===13){var Ti=gn.memoizedState;if(Ti!==null)Hr=Ti.dehydrated!==null;else{var vi=gn.memoizedProps;Hr=vi.fallback===void 0?!1:vi.unstable_avoidThisFallback!==!0?!0:!Ai}}if(Hr){var Et=gn.updateQueue;if(Et===null){var vt=new Set;vt.add(Bt),gn.updateQueue=vt}else Et.add(Bt);if((gn.mode&2)===0){if(gn.flags|=64,$e.flags|=16384,$e.flags&=-2981,$e.tag===1)if($e.alternate===null)$e.tag=17;else{var zt=pc(-1,1);zt.tag=2,iv($e,zt)}$e.lanes|=1;break e}pt=void 0,$e=_;var an=xe.pingCache;if(an===null?(an=xe.pingCache=new QT,pt=new Set,an.set(Bt,pt)):(pt=an.get(Bt),pt===void 0&&(pt=new Set,an.set(Bt,pt))),!pt.has($e)){pt.add($e);var cn=hne.bind(null,xe,Bt,$e);Bt.then(cn,cn)}gn.flags|=4096,gn.lanes=_;break e}gn=gn.return}while(gn!==null);pt=Error((oe($e.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}fc!==5&&(fc=2),pt=YT(pt,$e),gn=Pe;do{switch(gn.tag){case 3:xe=pt,gn.flags|=4096,_&=-_,gn.lanes|=_;var ki=AL(gn,xe,_);iL(gn,ki);break e;case 1:xe=pt;var Rr=gn.type,Oi=gn.stateNode;if((gn.flags&64)===0&&(typeof Rr.getDerivedStateFromError=="function"||Oi!==null&&typeof Oi.componentDidCatch=="function"&&(Eh===null||!Eh.has(Oi)))){gn.flags|=4096,_&=-_,gn.lanes|=_;var Co=SS(gn,xe,_);iL(gn,Co);break e}}gn=gn.return}while(gn!==null)}CH(V)}catch(Qi){_=Qi,ul===V&&V!==null&&(ul=V=V.return);continue}break}while(!0)}function FL(){var R=O1.current;return O1.current=MS,R===null?MS:R}function LS(R,_){var V=yi;yi|=16;var J=FL();cu===R&&Ol===_||T1(R,_);do try{lne();break}catch(fe){yH(R,fe)}while(!0);if(y2(),yi=V,O1.current=J,ul!==null)throw Error(r(261));return cu=null,Ol=0,fc}function lne(){for(;ul!==null;)MH(ul)}function cne(){for(;ul!==null&&!ene();)MH(ul)}function MH(R){var _=SH(R.alternate,R,Kr);R.memoizedProps=R.pendingProps,_===null?CH(R):ul=_,zS.current=null}function CH(R){var _=R;do{var V=_.alternate;if(R=_.return,(_.flags&2048)===0){if(V=wS(V,_,Kr),V!==null){ul=V;return}if(V=_,V.tag!==24&&V.tag!==23||V.memoizedState===null||(Kr&1073741824)!==0||(V.mode&4)===0){for(var J=0,fe=V.child;fe!==null;)J|=fe.lanes|fe.childLanes,fe=fe.sibling;V.childLanes=J}R!==null&&(R.flags&2048)===0&&(R.firstEffect===null&&(R.firstEffect=_.firstEffect),_.lastEffect!==null&&(R.lastEffect!==null&&(R.lastEffect.nextEffect=_.firstEffect),R.lastEffect=_.lastEffect),1<_.flags&&(R.lastEffect!==null?R.lastEffect.nextEffect=_:R.firstEffect=_,R.lastEffect=_))}else{if(V=ine(_),V!==null){V.flags&=2047,ul=V;return}R!==null&&(R.firstEffect=R.lastEffect=null,R.flags|=2048)}if(_=_.sibling,_!==null){ul=_;return}ul=_=R}while(_!==null);fc===0&&(fc=5)}function D2(R){var _=_M();return b2(99,une.bind(null,R,_)),null}function une(R,_){do lv();while(gc!==null);if((yi&48)!==0)throw Error(r(327));var V=R.finishedWork;if(V===null)return null;if(R.finishedWork=null,R.finishedLanes=0,V===R.current)throw Error(r(177));R.callbackNode=null;var J=V.lanes|V.childLanes,fe=J,xe=R.pendingLanes&~fe;R.pendingLanes=fe,R.suspendedLanes=0,R.pingedLanes=0,R.expiredLanes&=fe,R.mutableReadLanes&=fe,R.entangledLanes&=fe,fe=R.entanglements;for(var Pe=R.eventTimes,$e=R.expirationTimes;0<xe;){var pt=31-Vm(xe),Bt=1<<pt;fe[pt]=0,Pe[pt]=-1,$e[pt]=-1,xe&=~Bt}if(Cg!==null&&(J&24)===0&&Cg.has(R)&&Cg.delete(R),R===cu&&(ul=cu=null,Ol=0),1<V.flags?V.lastEffect!==null?(V.lastEffect.nextEffect=V,J=V.firstEffect):J=V:J=V.firstEffect,J!==null){if(fe=yi,yi|=32,zS.current=null,Qk=bT,Pe=$j(),Ym(Pe)){if("selectionStart"in Pe)$e={start:Pe.selectionStart,end:Pe.selectionEnd};else e:if($e=($e=Pe.ownerDocument)&&$e.defaultView||window,(Bt=$e.getSelection&&$e.getSelection())&&Bt.rangeCount!==0){$e=Bt.anchorNode,xe=Bt.anchorOffset,pt=Bt.focusNode,Bt=Bt.focusOffset;try{$e.nodeType,pt.nodeType}catch{$e=null;break e}var gr=0,Ai=-1,gn=-1,Hr=0,Ti=0,vi=Pe,Et=null;t:for(;;){for(var vt;vi!==$e||xe!==0&&vi.nodeType!==3||(Ai=gr+xe),vi!==pt||Bt!==0&&vi.nodeType!==3||(gn=gr+Bt),vi.nodeType===3&&(gr+=vi.nodeValue.length),(vt=vi.firstChild)!==null;)Et=vi,vi=vt;for(;;){if(vi===Pe)break t;if(Et===$e&&++Hr===xe&&(Ai=gr),Et===pt&&++Ti===Bt&&(gn=gr),(vt=vi.nextSibling)!==null)break;vi=Et,Et=vi.parentNode}vi=vt}$e=Ai===-1||gn===-1?null:{start:Ai,end:gn}}else $e=null;$e=$e||{start:0,end:0}}else $e=null;PM={focusedElem:Pe,selectionRange:$e},bT=!1,IS=null,rE=!1,wr=J;do try{dne()}catch(Qi){if(wr===null)throw Error(r(330));Sg(wr,Qi),wr=wr.nextEffect}while(wr!==null);IS=null,wr=J;do try{for(Pe=R;wr!==null;){var zt=wr.flags;if(zt&16&&et(wr.stateNode,""),zt&128){var an=wr.alternate;if(an!==null){var cn=an.ref;cn!==null&&(typeof cn=="function"?cn(null):cn.current=null)}}switch(zt&1038){case 2:TL(wr),wr.flags&=-3;break;case 6:TL(wr),wr.flags&=-3,RL(wr.alternate,wr);break;case 1024:wr.flags&=-1025;break;case 1028:wr.flags&=-1025,RL(wr.alternate,wr);break;case 4:RL(wr.alternate,wr);break;case 8:$e=wr,EL(Pe,$e);var ki=$e.alternate;ZT($e),ki!==null&&ZT(ki)}wr=wr.nextEffect}}catch(Qi){if(wr===null)throw Error(r(330));Sg(wr,Qi),wr=wr.nextEffect}while(wr!==null);if(cn=PM,an=$j(),zt=cn.focusedElem,Pe=cn.selectionRange,an!==zt&&zt&&zt.ownerDocument&&eS(zt.ownerDocument.documentElement,zt)){for(Pe!==null&&Ym(zt)&&(an=Pe.start,cn=Pe.end,cn===void 0&&(cn=an),"selectionStart"in zt?(zt.selectionStart=an,zt.selectionEnd=Math.min(cn,zt.value.length)):(cn=(an=zt.ownerDocument||document)&&an.defaultView||window,cn.getSelection&&(cn=cn.getSelection(),$e=zt.textContent.length,ki=Math.min(Pe.start,$e),Pe=Pe.end===void 0?ki:Math.min(Pe.end,$e),!cn.extend&&ki>Pe&&($e=Pe,Pe=ki,ki=$e),$e=k0(zt,ki),xe=k0(zt,Pe),$e&&xe&&(cn.rangeCount!==1||cn.anchorNode!==$e.node||cn.anchorOffset!==$e.offset||cn.focusNode!==xe.node||cn.focusOffset!==xe.offset)&&(an=an.createRange(),an.setStart($e.node,$e.offset),cn.removeAllRanges(),ki>Pe?(cn.addRange(an),cn.extend(xe.node,xe.offset)):(an.setEnd(xe.node,xe.offset),cn.addRange(an)))))),an=[],cn=zt;cn=cn.parentNode;)cn.nodeType===1&&an.push({element:cn,left:cn.scrollLeft,top:cn.scrollTop});for(typeof zt.focus=="function"&&zt.focus(),zt=0;zt<an.length;zt++)cn=an[zt],cn.element.scrollLeft=cn.left,cn.element.scrollTop=cn.top}bT=!!Qk,PM=Qk=null,R.current=V,wr=J;do try{for(zt=R;wr!==null;){var Rr=wr.flags;if(Rr&36&&mH(zt,wr.alternate,wr),Rr&128){an=void 0;var Oi=wr.ref;if(Oi!==null){var Co=wr.stateNode;switch(wr.tag){case 5:an=Co;break;default:an=Co}typeof Oi=="function"?Oi(an):Oi.current=an}}wr=wr.nextEffect}}catch(Qi){if(wr===null)throw Error(r(330));Sg(wr,Qi),wr=wr.nextEffect}while(wr!==null);wr=null,nne(),yi=fe}else R.current=V;if(qu)qu=!1,gc=R,I2=_;else for(wr=J;wr!==null;)_=wr.nextEffect,wr.nextEffect=null,wr.flags&8&&(Rr=wr,Rr.sibling=null,Rr.stateNode=null),wr=_;if(J=R.pendingLanes,J===0&&(Eh=null),J===1?R===P2?ES++:(ES=0,P2=R):ES=0,V=V.stateNode,_0&&typeof _0.onCommitFiberRoot=="function")try{_0.onCommitFiberRoot(Jk,V,void 0,(V.current.flags&64)===64)}catch{}if(Bd(R,Fu()),tE)throw tE=!1,R=kL,kL=null,R;return(yi&8)!==0||Ah(),null}function dne(){for(;wr!==null;){var R=wr.alternate;rE||IS===null||((wr.flags&8)!==0?kc(wr,IS)&&(rE=!0):wr.tag===13&&ane(R,wr)&&kc(wr,IS)&&(rE=!0));var _=wr.flags;(_&256)!==0&&one(R,wr),(_&512)===0||qu||(qu=!0,uS(97,function(){return lv(),null})),wr=wr.nextEffect}}function lv(){if(I2!==90){var R=97<I2?97:I2;return I2=90,b2(R,wH)}return!1}function pne(R,_){LL.push(_,R),qu||(qu=!0,uS(97,function(){return lv(),null}))}function xH(R,_){TS.push(_,R),qu||(qu=!0,uS(97,function(){return lv(),null}))}function wH(){if(gc===null)return!1;var R=gc;if(gc=null,(yi&48)!==0)throw Error(r(331));var _=yi;yi|=32;var V=TS;TS=[];for(var J=0;J<V.length;J+=2){var fe=V[J],xe=V[J+1],Pe=fe.destroy;if(fe.destroy=void 0,typeof Pe=="function")try{Pe()}catch(pt){if(xe===null)throw Error(r(330));Sg(xe,pt)}}for(V=LL,LL=[],J=0;J<V.length;J+=2){fe=V[J],xe=V[J+1];try{var $e=fe.create;fe.destroy=$e()}catch(pt){if(xe===null)throw Error(r(330));Sg(xe,pt)}}for($e=R.current.firstEffect;$e!==null;)R=$e.nextEffect,$e.nextEffect=null,$e.flags&8&&($e.sibling=null,$e.stateNode=null),$e=R;return yi=_,Ah(),!0}function WL(R,_,V){_=YT(V,_),_=AL(R,_,1),iv(R,_),_=F0(),R=iE(R,1),R!==null&&(vT(R,1,_),Bd(R,_))}function Sg(R,_){if(R.tag===3)WL(R,R,_);else for(var V=R.return;V!==null;){if(V.tag===3){WL(V,R,_);break}else if(V.tag===1){var J=V.stateNode;if(typeof V.type.getDerivedStateFromError=="function"||typeof J.componentDidCatch=="function"&&(Eh===null||!Eh.has(J))){R=YT(_,R);var fe=SS(V,R,1);if(iv(V,fe),fe=F0(),V=iE(V,1),V!==null)vT(V,1,fe),Bd(V,fe);else if(typeof J.componentDidCatch=="function"&&(Eh===null||!Eh.has(J)))try{J.componentDidCatch(_,R)}catch{}break}}V=V.return}}function hne(R,_,V){var J=R.pingCache;J!==null&&J.delete(_),_=F0(),R.pingedLanes|=R.suspendedLanes&V,cu===R&&(Ol&V)===V&&(fc===4||fc===3&&(Ol&62914560)===Ol&&500>Fu()-DL?T1(R,0):qc|=V),Bd(R,_)}function fne(R,_){var V=R.stateNode;V!==null&&V.delete(_),_=0,_===0&&(_=R.mode,(_&2)===0?_=1:(_&4)===0?_=_M()===99?1:2:(Rh===0&&(Rh=YM),_=wa(62914560&~Rh),_===0&&(_=4194304))),V=F0(),R=iE(R,_),R!==null&&(vT(R,_,V),Bd(R,V))}var SH;SH=function(R,_,V){var J=_.lanes;if(R!==null)if(R.memoizedProps!==_.pendingProps||Fc.current)Wc=!0;else if((V&J)!==0)Wc=(R.flags&16384)!==0;else{switch(Wc=!1,_.tag){case 3:yL(_),sL();break;case 5:oH(_);break;case 1:dc(_.type)&&RT(_);break;case 4:aL(_,_.stateNode.containerInfo);break;case 10:J=_.memoizedProps.value;var fe=_.type._context;ll(dS,fe._currentValue),fe._currentValue=J;break;case 13:if(_.memoizedState!==null)return(V&_.child.childLanes)!==0?ML(R,_,V):(ll(Qs,Qs.current&1),_=qd(R,_,V),_!==null?_.sibling:null);ll(Qs,Qs.current&1);break;case 19:if(J=(V&_.childLanes)!==0,(R.flags&64)!==0){if(J)return xS(R,_,V);_.flags|=64}if(fe=_.memoizedState,fe!==null&&(fe.rendering=null,fe.tail=null,fe.lastEffect=null),ll(Qs,Qs.current),J)break;return null;case 23:case 24:return _.lanes=0,CS(R,_,V)}return qd(R,_,V)}else Wc=!1;switch(_.lanes=0,_.tag){case 2:if(J=_.type,R!==null&&(R.alternate=null,_.alternate=null,_.flags|=2),R=_.pendingProps,fe=ke(_,uc.current),M2(_,V),fe=BT(null,_,J,R,fe,V),_.flags|=1,typeof fe=="object"&&fe!==null&&typeof fe.render=="function"&&fe.$$typeof===void 0){if(_.tag=1,_.memoizedState=null,_.updateQueue=null,dc(J)){var xe=!0;RT(_)}else xe=!1;_.memoizedState=fe.state!==null&&fe.state!==void 0?fe.state:null,pS(_);var Pe=J.getDerivedStateFromProps;typeof Pe=="function"&&hS(_,J,Pe,R),fe.updater=kT,_.stateNode=fe,fe._reactInternals=_,hc(_,J,R,V),_=$T(null,_,J,!0,xe,V)}else _.tag=0,Wd(null,_,fe,V),_=_.child;return _;case 16:fe=_.elementType;e:{switch(R!==null&&(R.alternate=null,_.alternate=null,_.flags|=2),R=_.pendingProps,xe=fe._init,fe=xe(fe._payload),_.type=fe,xe=_.tag=gne(fe),R=w1(fe,R),xe){case 0:_=bL(null,_,fe,R,V);break e;case 1:_=hH(null,_,fe,R,V);break e;case 11:_=Mg(null,_,fe,R,V);break e;case 14:_=mL(null,_,fe,w1(fe.type,R),J,V);break e}throw Error(r(306,fe,""))}return _;case 0:return J=_.type,fe=_.pendingProps,fe=_.elementType===J?fe:w1(J,fe),bL(R,_,J,fe,V);case 1:return J=_.type,fe=_.pendingProps,fe=_.elementType===J?fe:w1(J,fe),hH(R,_,J,fe,V);case 3:if(yL(_),J=_.updateQueue,R===null||J===null)throw Error(r(282));if(J=_.pendingProps,fe=_.memoizedState,fe=fe!==null?fe.element:null,rv(R,_),qM(_,J,null,V),J=_.memoizedState.element,J===fe)sL(),_=qd(R,_,V);else{if(fe=_.stateNode,(xe=fe.hydrate)&&(A1=DM(_.stateNode.containerInfo.firstChild),vg=_,xe=Oh=!0),xe){if(R=fe.mutableSourceEagerHydrationData,R!=null)for(fe=0;fe<R.length;fe+=2)xe=R[fe],xe._workInProgressVersionPrimary=R[fe+1],A2.push(xe);for(V=ov(_,null,J,V),_.child=V;V;)V.flags=V.flags&-3|1024,V=V.sibling}else Wd(R,_,J,V),sL();_=_.child}return _;case 5:return oH(_),R===null&&FT(_),J=_.type,fe=_.pendingProps,xe=R!==null?R.memoizedProps:null,Pe=fe.children,lS(J,fe)?Pe=null:xe!==null&&lS(J,xe)&&(_.flags|=16),pH(R,_),Wd(R,_,Pe,V),_.child;case 6:return R===null&&FT(_),null;case 13:return ML(R,_,V);case 4:return aL(_,_.stateNode.containerInfo),J=_.pendingProps,R===null?_.child=C2(_,null,J,V):Wd(R,_,J,V),_.child;case 11:return J=_.type,fe=_.pendingProps,fe=_.elementType===J?fe:w1(J,fe),Mg(R,_,J,fe,V);case 7:return Wd(R,_,_.pendingProps,V),_.child;case 8:return Wd(R,_,_.pendingProps.children,V),_.child;case 12:return Wd(R,_,_.pendingProps.children,V),_.child;case 10:e:{J=_.type._context,fe=_.pendingProps,Pe=_.memoizedProps,xe=fe.value;var $e=_.type._context;if(ll(dS,$e._currentValue),$e._currentValue=xe,Pe!==null)if($e=Pe.value,xe=Sa($e,xe)?0:(typeof J._calculateChangedBits=="function"?J._calculateChangedBits($e,xe):1073741823)|0,xe===0){if(Pe.children===fe.children&&!Fc.current){_=qd(R,_,V);break e}}else for($e=_.child,$e!==null&&($e.return=_);$e!==null;){var pt=$e.dependencies;if(pt!==null){Pe=$e.child;for(var Bt=pt.firstContext;Bt!==null;){if(Bt.context===J&&(Bt.observedBits&xe)!==0){$e.tag===1&&(Bt=pc(-1,V&-V),Bt.tag=2,iv($e,Bt)),$e.lanes|=V,Bt=$e.alternate,Bt!==null&&(Bt.lanes|=V),rH($e.return,V),pt.lanes|=V;break}Bt=Bt.next}}else Pe=$e.tag===10&&$e.type===_.type?null:$e.child;if(Pe!==null)Pe.return=$e;else for(Pe=$e;Pe!==null;){if(Pe===_){Pe=null;break}if($e=Pe.sibling,$e!==null){$e.return=Pe.return,Pe=$e;break}Pe=Pe.return}$e=Pe}Wd(R,_,fe.children,V),_=_.child}return _;case 9:return fe=_.type,xe=_.pendingProps,J=xe.children,M2(_,V),fe=S1(fe,xe.unstable_observedBits),J=J(fe),_.flags|=1,Wd(R,_,J,V),_.child;case 14:return fe=_.type,xe=w1(fe,_.pendingProps),xe=w1(fe.type,xe),mL(R,_,fe,xe,J,V);case 15:return vL(R,_,_.type,_.pendingProps,J,V);case 17:return J=_.type,fe=_.pendingProps,fe=_.elementType===J?fe:w1(J,fe),R!==null&&(R.alternate=null,_.alternate=null,_.flags|=2),_.tag=1,dc(J)?(R=!0,RT(_)):R=!1,M2(_,V),iH(_,J,fe),hc(_,J,fe,V),$T(null,_,J,!0,R,V);case 19:return xS(R,_,V);case 23:return CS(R,_,V);case 24:return CS(R,_,V)}throw Error(r(156,_.tag))};function AH(R,_,V,J){this.tag=R,this.key=V,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=_,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=J,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function E1(R,_,V,J){return new AH(R,_,V,J)}function qL(R){return R=R.prototype,!(!R||!R.isReactComponent)}function gne(R){if(typeof R=="function")return qL(R)?1:0;if(R!=null){if(R=R.$$typeof,R===N)return 11;if(R===W)return 14}return 2}function cv(R,_){var V=R.alternate;return V===null?(V=E1(R.tag,_,R.key,R.mode),V.elementType=R.elementType,V.type=R.type,V.stateNode=R.stateNode,V.alternate=R,R.alternate=V):(V.pendingProps=_,V.type=R.type,V.flags=0,V.nextEffect=null,V.firstEffect=null,V.lastEffect=null),V.childLanes=R.childLanes,V.lanes=R.lanes,V.child=R.child,V.memoizedProps=R.memoizedProps,V.memoizedState=R.memoizedState,V.updateQueue=R.updateQueue,_=R.dependencies,V.dependencies=_===null?null:{lanes:_.lanes,firstContext:_.firstContext},V.sibling=R.sibling,V.index=R.index,V.ref=R.ref,V}function oE(R,_,V,J,fe,xe){var Pe=2;if(J=R,typeof R=="function")qL(R)&&(Pe=1);else if(typeof R=="string")Pe=5;else e:switch(R){case z:return QM(V.children,fe,xe,_);case q:Pe=8,fe|=16;break;case O:Pe=8,fe|=1;break;case T:return R=E1(12,V,_,fe|8),R.elementType=T,R.type=T,R.lanes=xe,R;case F:return R=E1(13,V,_,fe),R.type=F,R.elementType=F,R.lanes=xe,R;case L:return R=E1(19,V,_,fe),R.elementType=L,R.lanes=xe,R;case $:return jd(V,fe,xe,_);case U:return R=E1(24,V,_,fe),R.elementType=U,R.lanes=xe,R;default:if(typeof R=="object"&&R!==null)switch(R.$$typeof){case I:Pe=10;break e;case P:Pe=9;break e;case N:Pe=11;break e;case W:Pe=14;break e;case H:Pe=16,J=null;break e;case j:Pe=22;break e}throw Error(r(130,R==null?R:typeof R,""))}return _=E1(Pe,V,_,fe),_.elementType=R,_.type=J,_.lanes=xe,_}function QM(R,_,V,J){return R=E1(7,R,J,_),R.lanes=V,R}function jd(R,_,V,J){return R=E1(23,R,J,_),R.elementType=$,R.lanes=V,R}function BL(R,_,V){return R=E1(6,R,null,_),R.lanes=V,R}function jL(R,_,V){return _=E1(4,R.children!==null?R.children:[],R.key,_),_.lanes=V,_.stateNode={containerInfo:R.containerInfo,pendingChildren:null,implementation:R.implementation},_}function mne(R,_,V){this.tag=_,this.containerInfo=R,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=V,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ga(0),this.expirationTimes=Ga(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ga(0),this.mutableSourceEagerHydrationData=null}function OH(R,_,V){var J=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:J==null?null:""+J,children:R,containerInfo:_,implementation:V}}function aE(R,_,V,J){var fe=_.current,xe=F0(),Pe=xg(fe);e:if(V){V=V._reactInternals;t:{if(Ca(V)!==V||V.tag!==1)throw Error(r(170));var $e=V;do{switch($e.tag){case 3:$e=$e.stateNode.context;break t;case 1:if(dc($e.type)){$e=$e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}$e=$e.return}while($e!==null);throw Error(r(171))}if(V.tag===1){var pt=V.type;if(dc(pt)){V=Oo(V,pt,$e);break e}}V=$e}else V=ev;return _.context===null?_.context=V:_.pendingContext=V,_=pc(xe,Pe),_.payload={element:R},J=J===void 0?null:J,J!==null&&(_.callback=J),iv(fe,_),wg(fe,Pe,xe),Pe}function HL(R){if(R=R.current,!R.child)return null;switch(R.child.tag){case 5:return R.child.stateNode;default:return R.child.stateNode}}function zH(R,_){if(R=R.memoizedState,R!==null&&R.dehydrated!==null){var V=R.retryLane;R.retryLane=V!==0&&V<_?V:_}}function VL(R,_){zH(R,_),(R=R.alternate)&&zH(R,_)}function GL(){return null}function $L(R,_,V){var J=V!=null&&V.hydrationOptions!=null&&V.hydrationOptions.mutableSources||null;if(V=new mne(R,_,V!=null&&V.hydrate===!0),_=E1(3,null,null,_===2?7:_===1?3:0),V.current=_,_.stateNode=V,pS(_),R[Km]=V.current,Xk(R.nodeType===8?R.parentNode:R),J)for(R=0;R<J.length;R++){_=J[R];var fe=_._getVersion;fe=fe(_._source),V.mutableSourceEagerHydrationData==null?V.mutableSourceEagerHydrationData=[_,fe]:V.mutableSourceEagerHydrationData.push(_,fe)}this._internalRoot=V}$L.prototype.render=function(R){aE(R,this._internalRoot,null,null)},$L.prototype.unmount=function(){var R=this._internalRoot,_=R.containerInfo;aE(null,R,null,function(){_[Km]=null})};function _S(R){return!(!R||R.nodeType!==1&&R.nodeType!==9&&R.nodeType!==11&&(R.nodeType!==8||R.nodeValue!==" react-mount-point-unstable "))}function vne(R,_){if(_||(_=R?R.nodeType===9?R.documentElement:R.firstChild:null,_=!(!_||_.nodeType!==1||!_.hasAttribute("data-reactroot"))),!_)for(var V;V=R.lastChild;)R.removeChild(V);return new $L(R,0,_?{hydrate:!0}:void 0)}function sE(R,_,V,J,fe){var xe=V._reactRootContainer;if(xe){var Pe=xe._internalRoot;if(typeof fe=="function"){var $e=fe;fe=function(){var Bt=HL(Pe);$e.call(Bt)}}aE(_,Pe,R,fe)}else{if(xe=V._reactRootContainer=vne(V,J),Pe=xe._internalRoot,typeof fe=="function"){var pt=fe;fe=function(){var Bt=HL(Pe);pt.call(Bt)}}DS(function(){aE(_,Pe,R,fe)})}return HL(Pe)}Dd=function(R){if(R.tag===13){var _=F0();wg(R,4,_),VL(R,4)}},fi=function(R){if(R.tag===13){var _=F0();wg(R,67108864,_),VL(R,67108864)}},_s=function(R){if(R.tag===13){var _=F0(),V=xg(R);wg(R,V,_),VL(R,V)}},_u=function(R,_){return _()},vr=function(R,_,V){switch(_){case"input":if(ie(R,V),_=V.name,V.type==="radio"&&_!=null){for(V=R;V.parentNode;)V=V.parentNode;for(V=V.querySelectorAll("input[name="+JSON.stringify(""+_)+'][type="radio"]'),_=0;_<V.length;_++){var J=V[_];if(J!==R&&J.form===R.form){var fe=Qm(J);if(!fe)throw Error(r(90));be(J),ie(J,fe)}}}break;case"textarea":Le(R,V);break;case"select":_=V.value,_!=null&&Ge(R,!!V.multiple,_,!1)}},Je=NL,ft=function(R,_,V,J,fe){var xe=yi;yi|=4;try{return b2(98,R.bind(null,_,V,J,fe))}finally{yi=xe,yi===0&&(KM(),Ah())}},Tt=function(){(yi&49)===0&&(bH(),lv())},St=function(R,_){var V=yi;yi|=2;try{return R(_)}finally{yi=V,yi===0&&(KM(),Ah())}};function TH(R,_){var V=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_S(_))throw Error(r(200));return OH(R,_,null,V)}var bne={Events:[xh,wh,Qm,ct,lt,lv,{current:!1}]},NS={findFiberByHostInstance:fg,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},yne={bundleType:NS.bundleType,version:NS.version,rendererPackageName:NS.rendererPackageName,rendererConfig:NS.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(R){return R=Lu(R),R===null?null:R.stateNode},findFiberByHostInstance:NS.findFiberByHostInstance||GL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lE=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lE.isDisabled&&lE.supportsFiber)try{Jk=lE.inject(yne),_0=lE}catch{}}return _p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bne,_p.createPortal=TH,_p.findDOMNode=function(R){if(R==null)return null;if(R.nodeType===1)return R;var _=R._reactInternals;if(_===void 0)throw typeof R.render=="function"?Error(r(188)):Error(r(268,Object.keys(R)));return R=Lu(_),R=R===null?null:R.stateNode,R},_p.flushSync=function(R,_){var V=yi;if((V&48)!==0)return R(_);yi|=1;try{if(R)return b2(99,R.bind(null,_))}finally{yi=V,Ah()}},_p.hydrate=function(R,_,V){if(!_S(_))throw Error(r(200));return sE(null,R,_,!0,V)},_p.render=function(R,_,V){if(!_S(_))throw Error(r(200));return sE(null,R,_,!1,V)},_p.unmountComponentAtNode=function(R){if(!_S(R))throw Error(r(40));return R._reactRootContainer?(DS(function(){sE(null,null,R,!1,function(){R._reactRootContainer=null,R[Km]=null})}),!0):!1},_p.unstable_batchedUpdates=NL,_p.unstable_createPortal=function(R,_){return TH(R,_,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},_p.unstable_renderSubtreeIntoContainer=function(R,_,V,J){if(!_S(V))throw Error(r(200));if(R==null||R._reactInternals===void 0)throw Error(r(38));return sE(R,_,V,!1,J)},_p.version="17.0.2",_p}var BIe;function Esn(){if(BIe)return Zre.exports;BIe=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Zre.exports=Tsn(),Zre.exports}var ql=Esn();const IR=qn(ql);var UK=!0,Uhe=!1,jIe=null,Rsn={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Isn(e){var t=e.type,n=e.tagName;return!!(n==="INPUT"&&Rsn[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Psn(e){e.metaKey||e.altKey||e.ctrlKey||(UK=!0)}function tie(){UK=!1}function Dsn(){this.visibilityState==="hidden"&&Uhe&&(UK=!0)}function ksn(e){e.addEventListener("keydown",Psn,!0),e.addEventListener("mousedown",tie,!0),e.addEventListener("pointerdown",tie,!0),e.addEventListener("touchstart",tie,!0),e.addEventListener("visibilitychange",Dsn,!0)}function Lsn(e){var t=e.target;try{return t.matches(":focus-visible")}catch{}return UK||Isn(t)}function _sn(){Uhe=!0,window.clearTimeout(jIe),jIe=window.setTimeout(function(){Uhe=!1},100)}function XK(){var e=b.useCallback(function(t){var n=ql.findDOMNode(t);n!=null&&ksn(n.ownerDocument)},[]);return{isFocusVisible:Lsn,onBlurVisible:_sn,ref:e}}const Nsn=Object.freeze(Object.defineProperty({__proto__:null,capitalize:$r,createChainedFunction:Yx,createSvgIcon:$i,debounce:$y,deprecatedPropType:xsn,isMuiElement:VN,ownerDocument:bd,ownerWindow:$K,requirePropFactory:wsn,setRef:Uy,unstable_useId:yMe,unsupportedProp:Ssn,useControlled:lb,useEventCallback:ms,useForkRef:Ba,useIsFocusVisible:XK},Symbol.toStringTag,{value:"Module"}));function Fsn(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Wsn(e,t){e.classList?e.classList.add(t):Fsn(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function HIe(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qsn(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=HIe(e.className,t):e.setAttribute("class",HIe(e.className&&e.className.baseVal||"",t))}const VIe={disabled:!1},G$=E.createContext(null);var Not=function(t){return t.scrollTop},X5="unmounted",EA="exited",RA="entering",vR="entered",Xhe="exiting",b1=(function(e){pa(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=EA,o.appearStatus=RA):l=vR:r.unmountOnExit||r.mountOnEnter?l=X5:l=EA,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===X5?{status:EA}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==RA&&a!==vR&&(o=RA):(a===RA||a===vR)&&(o=Xhe)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===RA){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:IR.findDOMNode(this);a&&Not(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EA&&this.setState({status:X5})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[IR.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||VIe.disabled){this.safeSetState({status:vR},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:RA},function(){o.props.onEntering(c,u),o.onTransitionEnd(p,function(){o.safeSetState({status:vR},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:IR.findDOMNode(this);if(!o||VIe.disabled){this.safeSetState({status:EA},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Xhe},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:EA},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:IR.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===X5)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Lt(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(G$.Provider,{value:null},typeof a=="function"?a(i,s):E.cloneElement(E.Children.only(a),s))},t})(E.Component);b1.contextType=G$;b1.propTypes={};function vE(){}b1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vE,onEntering:vE,onEntered:vE,onExit:vE,onExiting:vE,onExited:vE};b1.UNMOUNTED=X5;b1.EXITED=EA;b1.ENTERING=RA;b1.ENTERED=vR;b1.EXITING=Xhe;var Bsn=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Wsn(t,r)})},nie=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return qsn(t,r)})},YK=(function(e){pa(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1];r.removeClasses(u,"exit"),r.addClass(u,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(s,l)},r.onEntering=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1],p=d?"appear":"enter";r.addClass(u,p,"active"),r.props.onEntering&&r.props.onEntering(s,l)},r.onEntered=function(s,l){var c=r.resolveArguments(s,l),u=c[0],d=c[1],p=d?"appear":"enter";r.removeClasses(u,p),r.addClass(u,p,"done"),r.props.onEntered&&r.props.onEntered(s,l)},r.onExit=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(s)},r.onExiting=function(s){var l=r.resolveArguments(s),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(s)},r.onExited=function(s){var l=r.resolveArguments(s),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(s)},r.resolveArguments=function(s,l){return r.props.nodeRef?[r.props.nodeRef.current,s]:[s,l]},r.getClassNames=function(s){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+s:l[s],p=c?d+"-active":l[s+"Active"],h=c?d+"-done":l[s+"Done"];return{baseClassName:d,activeClassName:p,doneClassName:h}},r}var n=t.prototype;return n.addClass=function(i,o,a){var s=this.getClassNames(o)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;o==="appear"&&a==="done"&&c&&(s+=" "+c),a==="active"&&i&&Not(i),s&&(this.appliedClasses[o][a]=s,Bsn(i,s))},n.removeClasses=function(i,o){var a=this.appliedClasses[o],s=a.base,l=a.active,c=a.done;this.appliedClasses[o]={},s&&nie(i,s),l&&nie(i,l),c&&nie(i,c)},n.render=function(){var i=this.props;i.classNames;var o=Lt(i,["classNames"]);return E.createElement(b1,Y({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(E.Component);YK.defaultProps={classNames:""};YK.propTypes={};function MMe(e,t){var n=function(o){return t&&b.isValidElement(o)?t(o):o},r=Object.create(null);return e&&b.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function jsn(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}function oO(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Hsn(e,t){return MMe(e.children,function(n){return b.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:oO(n,"appear",e),enter:oO(n,"enter",e),exit:oO(n,"exit",e)})})}function Vsn(e,t,n){var r=MMe(e.children),i=jsn(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(b.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=b.isValidElement(c)&&!c.props.in;l&&(!s||u)?i[o]=b.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:oO(a,"exit",e),enter:oO(a,"enter",e)}):!l&&s&&!u?i[o]=b.cloneElement(a,{in:!1}):l&&s&&b.isValidElement(c)&&(i[o]=b.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:oO(a,"exit",e),enter:oO(a,"enter",e)}))}}),i}var Gsn=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},$sn={component:"div",childFactory:function(t){return t}},x3=(function(e){pa(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(xn(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}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(i,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?Hsn(i,s):Vsn(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=MMe(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=Y({},s.children);return delete l[i.key],{children:l}}))},n.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=Lt(i,["component","childFactory"]),l=this.state.contextValue,c=Gsn(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?E.createElement(G$.Provider,{value:l},c):E.createElement(G$.Provider,{value:l},E.createElement(o,s,c))},t})(E.Component);x3.propTypes={};x3.defaultProps=$sn;var CMe=function(t){return t.scrollTop};function Kx(e,t){var n=e.timeout,r=e.style,i=r===void 0?{}:r;return{duration:i.transitionDuration||typeof n=="number"?n:n[t.mode]||0,delay:i.transitionDelay}}var Usn=function(t){return{root:{height:0,overflow:"hidden",transition:t.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}},Fot=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.collapsedHeight,s=t.collapsedSize,l=s===void 0?"0px":s,c=t.component,u=c===void 0?"div":c,d=t.disableStrictModeCompat,p=d===void 0?!1:d,h=t.in,g=t.onEnter,m=t.onEntered,v=t.onEntering,y=t.onExit,M=t.onExited,C=t.onExiting,x=t.style,w=t.timeout,S=w===void 0?lh.standard:w,A=t.TransitionComponent,z=A===void 0?b1:A,O=fn(t,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=oc(),I=b.useRef(),P=b.useRef(null),N=b.useRef(),F=typeof(a||l)=="number"?"".concat(a||l,"px"):a||l;b.useEffect(function(){return function(){clearTimeout(I.current)}},[]);var L=T.unstable_strictMode&&!p,W=b.useRef(null),H=Ba(n,L?W:void 0),j=function(se){return function(pe,te){if(se){var ce=L?[W.current,pe]:[pe,te],oe=Xu(ce,2),ae=oe[0],ne=oe[1];ne===void 0?se(ae):se(ae,ne)}}},G=j(function(ee,se){ee.style.height=F,g&&g(ee,se)}),q=j(function(ee,se){var pe=P.current?P.current.clientHeight:0,te=Kx({style:x,timeout:S},{mode:"enter"}),ce=te.duration;if(S==="auto"){var oe=T.transitions.getAutoHeightDuration(pe);ee.style.transitionDuration="".concat(oe,"ms"),N.current=oe}else ee.style.transitionDuration=typeof ce=="string"?ce:"".concat(ce,"ms");ee.style.height="".concat(pe,"px"),v&&v(ee,se)}),$=j(function(ee,se){ee.style.height="auto",m&&m(ee,se)}),U=j(function(ee){var se=P.current?P.current.clientHeight:0;ee.style.height="".concat(se,"px"),y&&y(ee)}),X=j(M),Q=j(function(ee){var se=P.current?P.current.clientHeight:0,pe=Kx({style:x,timeout:S},{mode:"exit"}),te=pe.duration;if(S==="auto"){var ce=T.transitions.getAutoHeightDuration(se);ee.style.transitionDuration="".concat(ce,"ms"),N.current=ce}else ee.style.transitionDuration=typeof te=="string"?te:"".concat(te,"ms");ee.style.height=F,C&&C(ee)}),re=function(se,pe){var te=L?se:pe;S==="auto"&&(I.current=setTimeout(te,N.current||0))};return b.createElement(z,Y({in:h,onEnter:G,onEntered:$,onEntering:q,onExit:U,onExited:X,onExiting:Q,addEndListener:re,nodeRef:L?W:void 0,timeout:S==="auto"?null:S},O),function(ee,se){return b.createElement(u,Y({className:$t(i.root,i.container,o,{entered:i.entered,exited:!h&&F==="0px"&&i.hidden}[ee]),style:Y({minHeight:F},x),ref:H},se),b.createElement("div",{className:i.wrapper,ref:P},b.createElement("div",{className:i.wrapperInner},r)))})});Fot.muiSupportAuto=!0;const xMe=or(Usn,{name:"MuiCollapse"})(Fot);var Xsn=function(t){var n={};return t.shadows.forEach(function(r,i){n["elevation".concat(i)]={boxShadow:r}}),Y({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},n)},Ysn=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.component,a=o===void 0?"div":o,s=t.square,l=s===void 0?!1:s,c=t.elevation,u=c===void 0?1:c,d=t.variant,p=d===void 0?"elevation":d,h=fn(t,["classes","className","component","square","elevation","variant"]);return b.createElement(a,Y({className:$t(r.root,i,p==="outlined"?r.outlined:r["elevation".concat(u)],!l&&r.rounded),ref:n},h))});const kt=or(Xsn,{name:"MuiPaper"})(Ysn);var Ksn=typeof window>"u"?b.useEffect:b.useLayoutEffect;function Qsn(e){var t=e.classes,n=e.pulsate,r=n===void 0?!1:n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=l===void 0?function(){}:l,u=e.timeout,d=b.useState(!1),p=d[0],h=d[1],g=$t(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},v=$t(t.child,p&&t.childLeaving,r&&t.childPulsate),y=ms(c);return Ksn(function(){if(!s){h(!0);var M=setTimeout(y,u);return function(){clearTimeout(M)}}},[y,s,u]),b.createElement("span",{className:g,style:m},b.createElement("span",{className:v}))}var Yhe=550,Zsn=80,Jsn=function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(Yhe,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(Yhe,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},eln=b.forwardRef(function(t,n){var r=t.center,i=r===void 0?!1:r,o=t.classes,a=t.className,s=fn(t,["center","classes","className"]),l=b.useState([]),c=l[0],u=l[1],d=b.useRef(0),p=b.useRef(null);b.useEffect(function(){p.current&&(p.current(),p.current=null)},[c]);var h=b.useRef(!1),g=b.useRef(null),m=b.useRef(null),v=b.useRef(null);b.useEffect(function(){return function(){clearTimeout(g.current)}},[]);var y=b.useCallback(function(w){var S=w.pulsate,A=w.rippleX,z=w.rippleY,O=w.rippleSize,T=w.cb;u(function(I){return[].concat(S6(I),[b.createElement(Qsn,{key:d.current,classes:o,timeout:Yhe,pulsate:S,rippleX:A,rippleY:z,rippleSize:O})])}),d.current+=1,p.current=T},[o]),M=b.useCallback(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=arguments.length>2?arguments[2]:void 0,z=S.pulsate,O=z===void 0?!1:z,T=S.center,I=T===void 0?i||S.pulsate:T,P=S.fakeElement,N=P===void 0?!1:P;if(w.type==="mousedown"&&h.current){h.current=!1;return}w.type==="touchstart"&&(h.current=!0);var F=N?null:v.current,L=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0},W,H,j;if(I||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)W=Math.round(L.width/2),H=Math.round(L.height/2);else{var G=w.touches?w.touches[0]:w,q=G.clientX,$=G.clientY;W=Math.round(q-L.left),H=Math.round($-L.top)}if(I)j=Math.sqrt((2*Math.pow(L.width,2)+Math.pow(L.height,2))/3),j%2===0&&(j+=1);else{var U=Math.max(Math.abs((F?F.clientWidth:0)-W),W)*2+2,X=Math.max(Math.abs((F?F.clientHeight:0)-H),H)*2+2;j=Math.sqrt(Math.pow(U,2)+Math.pow(X,2))}w.touches?m.current===null&&(m.current=function(){y({pulsate:O,rippleX:W,rippleY:H,rippleSize:j,cb:A})},g.current=setTimeout(function(){m.current&&(m.current(),m.current=null)},Zsn)):y({pulsate:O,rippleX:W,rippleY:H,rippleSize:j,cb:A})},[i,y]),C=b.useCallback(function(){M({},{pulsate:!0})},[M]),x=b.useCallback(function(w,S){if(clearTimeout(g.current),w.type==="touchend"&&m.current){w.persist(),m.current(),m.current=null,g.current=setTimeout(function(){x(w,S)});return}m.current=null,u(function(A){return A.length>0?A.slice(1):A}),p.current=S},[]);return b.useImperativeHandle(n,function(){return{pulsate:C,start:M,stop:x}},[C,M,x]),b.createElement("span",Y({className:$t(o.root,a),ref:v},s),b.createElement(x3,{component:null,exit:!0},c))});const tln=or(Jsn,{flip:!1,name:"MuiTouchRipple"})(b.memo(eln));var nln={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},rln=b.forwardRef(function(t,n){var r=t.action,i=t.buttonRef,o=t.centerRipple,a=o===void 0?!1:o,s=t.children,l=t.classes,c=t.className,u=t.component,d=u===void 0?"button":u,p=t.disabled,h=p===void 0?!1:p,g=t.disableRipple,m=g===void 0?!1:g,v=t.disableTouchRipple,y=v===void 0?!1:v,M=t.focusRipple,C=M===void 0?!1:M,x=t.focusVisibleClassName,w=t.onBlur,S=t.onClick,A=t.onFocus,z=t.onFocusVisible,O=t.onKeyDown,T=t.onKeyUp,I=t.onMouseDown,P=t.onMouseLeave,N=t.onMouseUp,F=t.onTouchEnd,L=t.onTouchMove,W=t.onTouchStart,H=t.onDragLeave,j=t.tabIndex,G=j===void 0?0:j,q=t.TouchRippleProps,$=t.type,U=$===void 0?"button":$,X=fn(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Q=b.useRef(null);function re(){return ql.findDOMNode(Q.current)}var ee=b.useRef(null),se=b.useState(!1),pe=se[0],te=se[1];h&&pe&&te(!1);var ce=XK(),oe=ce.isFocusVisible,ae=ce.onBlurVisible,ne=ce.ref;b.useImperativeHandle(r,function(){return{focusVisible:function(){te(!0),Q.current.focus()}}},[]),b.useEffect(function(){pe&&C&&!m&&ee.current.pulsate()},[m,C,pe]);function le(it,Ft){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y;return ms(function(Qn){Ft&&Ft(Qn);var ir=Pt;return!ir&&ee.current&&ee.current[it](Qn),!0})}var he=le("start",I),be=le("stop",H),me=le("stop",N),Me=le("stop",function(it){pe&&it.preventDefault(),P&&P(it)}),Oe=le("start",W),de=le("stop",F),ie=le("stop",L),ue=le("stop",function(it){pe&&(ae(it),te(!1)),w&&w(it)},!1),Ae=ms(function(it){Q.current||(Q.current=it.currentTarget),oe(it)&&(te(!0),z&&z(it)),A&&A(it)}),Ce=function(){var Ft=re();return d&&d!=="button"&&!(Ft.tagName==="A"&&Ft.href)},Ee=b.useRef(!1),Ge=ms(function(it){C&&!Ee.current&&pe&&ee.current&&it.key===" "&&(Ee.current=!0,it.persist(),ee.current.stop(it,function(){ee.current.start(it)})),it.target===it.currentTarget&&Ce()&&it.key===" "&&it.preventDefault(),O&&O(it),it.target===it.currentTarget&&Ce()&&it.key==="Enter"&&!h&&(it.preventDefault(),S&&S(it))}),_e=ms(function(it){C&&it.key===" "&&ee.current&&pe&&!it.defaultPrevented&&(Ee.current=!1,it.persist(),ee.current.stop(it,function(){ee.current.pulsate(it)})),T&&T(it),S&&it.target===it.currentTarget&&Ce()&&it.key===" "&&!it.defaultPrevented&&S(it)}),Ie=d;Ie==="button"&&X.href&&(Ie="a");var Le={};Ie==="button"?(Le.type=U,Le.disabled=h):((Ie!=="a"||!X.href)&&(Le.role="button"),Le["aria-disabled"]=h);var we=Ba(i,n),ve=Ba(ne,Q),De=Ba(we,ve),ze=b.useState(!1),Ve=ze[0],Ke=ze[1];b.useEffect(function(){Ke(!0)},[]);var et=Ve&&!m&&!h;return b.createElement(Ie,Y({className:$t(l.root,c,pe&&[l.focusVisible,x],h&&l.disabled),onBlur:ue,onClick:S,onFocus:Ae,onKeyDown:Ge,onKeyUp:_e,onMouseDown:he,onMouseLeave:Me,onMouseUp:me,onDragLeave:be,onTouchEnd:de,onTouchMove:ie,onTouchStart:Oe,ref:De,tabIndex:h?-1:G},Le,X),s,et?b.createElement(tln,Y({ref:ee,center:a},q)):null)});const Ez=or(nln,{name:"MuiButtonBase"})(rln);var iln=function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:jo(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:jo(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:jo(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}},oln=b.forwardRef(function(t,n){var r=t.edge,i=r===void 0?!1:r,o=t.children,a=t.classes,s=t.className,l=t.color,c=l===void 0?"default":l,u=t.disabled,d=u===void 0?!1:u,p=t.disableFocusRipple,h=p===void 0?!1:p,g=t.size,m=g===void 0?"medium":g,v=fn(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return b.createElement(Ez,Y({className:$t(a.root,s,c!=="default"&&a["color".concat($r(c))],d&&a.disabled,m==="small"&&a["size".concat($r(m))],{start:a.edgeStart,end:a.edgeEnd}[i]),centerRipple:!0,focusRipple:!h,disabled:d,ref:n},v),b.createElement("span",{className:a.label},o))});const yn=or(iln,{name:"MuiIconButton"})(oln);var aln=function(t){var n=t.palette.type==="light"?t.palette.grey[100]:t.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:t.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:n,color:t.palette.getContrastText(n)},colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}},sln=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.color,a=o===void 0?"primary":o,s=t.position,l=s===void 0?"fixed":s,c=fn(t,["classes","className","color","position"]);return b.createElement(kt,Y({square:!0,component:"header",elevation:4,className:$t(r.root,r["position".concat($r(l))],r["color".concat($r(a))],i,l==="fixed"&&"mui-fixed"),ref:n},c))});const wMe=or(aln,{name:"MuiAppBar"})(sln);var lln={entering:{opacity:1},entered:{opacity:1}},cln={enter:lh.enteringScreen,exit:lh.leavingScreen},Wot=b.forwardRef(function(t,n){var r=t.children,i=t.disableStrictModeCompat,o=i===void 0?!1:i,a=t.in,s=t.onEnter,l=t.onEntered,c=t.onEntering,u=t.onExit,d=t.onExited,p=t.onExiting,h=t.style,g=t.TransitionComponent,m=g===void 0?b1:g,v=t.timeout,y=v===void 0?cln:v,M=fn(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),C=oc(),x=C.unstable_strictMode&&!o,w=b.useRef(null),S=Ba(r.ref,n),A=Ba(x?w:void 0,S),z=function(W){return function(H,j){if(W){var G=x?[w.current,H]:[H,j],q=Xu(G,2),$=q[0],U=q[1];U===void 0?W($):W($,U)}}},O=z(c),T=z(function(L,W){CMe(L);var H=Kx({style:h,timeout:y},{mode:"enter"});L.style.webkitTransition=C.transitions.create("opacity",H),L.style.transition=C.transitions.create("opacity",H),s&&s(L,W)}),I=z(l),P=z(p),N=z(function(L){var W=Kx({style:h,timeout:y},{mode:"exit"});L.style.webkitTransition=C.transitions.create("opacity",W),L.style.transition=C.transitions.create("opacity",W),u&&u(L)}),F=z(d);return b.createElement(m,Y({appear:!0,in:a,nodeRef:x?w:void 0,onEnter:T,onEntered:I,onEntering:O,onExit:N,onExited:F,onExiting:P,timeout:y},M),function(L,W){return b.cloneElement(r,Y({style:Y({opacity:0,visibility:L==="exited"&&!a?"hidden":void 0},lln[L],h,r.props.style),ref:A},W))})}),uln={root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},dln=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.invisible,s=a===void 0?!1:a,l=t.open,c=t.transitionDuration,u=t.TransitionComponent,d=u===void 0?Wot:u,p=fn(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return b.createElement(d,Y({in:l,timeout:c},p),b.createElement("div",{className:$t(i.root,o,s&&i.invisible),"aria-hidden":!0,ref:n},r))});const z6=or(uln,{name:"MuiBackdrop"})(dln);var rie=10,iie=4,pln=function(t){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:rie*2,lineHeight:1,padding:"0 6px",height:rie*2,borderRadius:rie,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},colorError:{backgroundColor:t.palette.error.main,color:t.palette.error.contrastText},dot:{borderRadius:iie,height:iie*2,minWidth:iie*2,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightRectangular:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightRectangular:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftRectangular:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftRectangular:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightCircular:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightCircular:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftCircular:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftCircular:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}},hln=b.forwardRef(function(t,n){var r=t.anchorOrigin,i=r===void 0?{vertical:"top",horizontal:"right"}:r,o=t.badgeContent,a=t.children,s=t.classes,l=t.className,c=t.color,u=c===void 0?"default":c,d=t.component,p=d===void 0?"span":d,h=t.invisible,g=t.max,m=g===void 0?99:g,v=t.overlap,y=v===void 0?"rectangle":v,M=t.showZero,C=M===void 0?!1:M,x=t.variant,w=x===void 0?"standard":x,S=fn(t,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),A=h;h==null&&(o===0&&!C||o==null&&w!=="dot")&&(A=!0);var z="";return w!=="dot"&&(z=o>m?"".concat(m,"+"):o),b.createElement(p,Y({className:$t(s.root,l),ref:n},S),a,b.createElement("span",{className:$t(s.badge,s["".concat(i.horizontal).concat($r(i.vertical),"}")],s["anchorOrigin".concat($r(i.vertical)).concat($r(i.horizontal)).concat($r(y))],u!=="default"&&s["color".concat($r(u))],A&&s.invisible,w==="dot"&&s.dot)},z))});const qot=or(pln,{name:"MuiBadge"})(hln);var fln=Zrn(hM(Qrn,oin,yin,Pin,jin,Lin,Hin,Qin,dMe,fon)),Tn=Lot("div")(fln,{name:"MuiBox"}),gln=function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},GIe={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},mln=b.forwardRef(function(t,n){var r=t.align,i=r===void 0?"inherit":r,o=t.classes,a=t.className,s=t.color,l=s===void 0?"initial":s,c=t.component,u=t.display,d=u===void 0?"initial":u,p=t.gutterBottom,h=p===void 0?!1:p,g=t.noWrap,m=g===void 0?!1:g,v=t.paragraph,y=v===void 0?!1:v,M=t.variant,C=M===void 0?"body1":M,x=t.variantMapping,w=x===void 0?GIe:x,S=fn(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),A=c||(y?"p":w[C]||GIe[C])||"span";return b.createElement(A,Y({className:$t(o.root,a,C!=="inherit"&&o[C],l!=="initial"&&o["color".concat($r(l))],m&&o.noWrap,h&&o.gutterBottom,y&&o.paragraph,i!=="inherit"&&o["align".concat($r(i))],d!=="initial"&&o["display".concat($r(d))]),ref:n},S))});const bt=or(gln,{name:"MuiTypography"})(mln);var vln=function(t){return{root:Y({},t.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:t.shape.borderRadius,color:t.palette.text.primary,transition:t.transitions.create(["background-color","box-shadow","border"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:jo(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:t.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:jo(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:jo(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(t.palette.action.disabledBackground)}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(jo(t.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.primary.main),backgroundColor:jo(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(jo(t.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.secondary.main),backgroundColor:jo(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(t.palette.action.disabled)}},contained:{color:t.palette.getContrastText(t.palette.grey[300]),backgroundColor:t.palette.grey[300],boxShadow:t.shadows[2],"&:hover":{backgroundColor:t.palette.grey.A100,boxShadow:t.shadows[4],"@media (hover: none)":{boxShadow:t.shadows[2],backgroundColor:t.palette.grey[300]},"&$disabled":{backgroundColor:t.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:t.shadows[6]},"&:active":{boxShadow:t.shadows[8]},"&$disabled":{color:t.palette.action.disabled,boxShadow:t.shadows[0],backgroundColor:t.palette.action.disabledBackground}},containedPrimary:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,"@media (hover: none)":{backgroundColor:t.palette.primary.main}}},containedSecondary:{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.main,"&:hover":{backgroundColor:t.palette.secondary.dark,"@media (hover: none)":{backgroundColor:t.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}},bln=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=a===void 0?"default":a,l=t.component,c=l===void 0?"button":l,u=t.disabled,d=u===void 0?!1:u,p=t.disableElevation,h=p===void 0?!1:p,g=t.disableFocusRipple,m=g===void 0?!1:g,v=t.endIcon,y=t.focusVisibleClassName,M=t.fullWidth,C=M===void 0?!1:M,x=t.size,w=x===void 0?"medium":x,S=t.startIcon,A=t.type,z=A===void 0?"button":A,O=t.variant,T=O===void 0?"text":O,I=fn(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),P=S&&b.createElement("span",{className:$t(i.startIcon,i["iconSize".concat($r(w))])},S),N=v&&b.createElement("span",{className:$t(i.endIcon,i["iconSize".concat($r(w))])},v);return b.createElement(Ez,Y({className:$t(i.root,i[T],o,s==="inherit"?i.colorInherit:s!=="default"&&i["".concat(T).concat($r(s))],w!=="medium"&&[i["".concat(T,"Size").concat($r(w))],i["size".concat($r(w))]],h&&i.disableElevation,d&&i.disabled,C&&i.fullWidth),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:$t(i.focusVisible,y),ref:n,type:z},I),b.createElement("span",{className:i.label},P,r,N))});const Fe=or(vln,{name:"MuiButton"})(bln);Fe.styles;var yln=function(t){return{root:{display:"inline-flex",borderRadius:t.shape.borderRadius},contained:{boxShadow:t.shadows[2]},disableElevation:{boxShadow:"none"},disabled:{},fullWidth:{width:"100%"},vertical:{flexDirection:"column"},grouped:{minWidth:40},groupedHorizontal:{"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0},"&:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0}},groupedText:{},groupedTextHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:jo(t.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:jo(t.palette.secondary.main,.5)}},groupedOutlined:{},groupedOutlinedHorizontal:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedVertical:{"&:not(:first-child)":{marginTop:-1},"&:not(:last-child)":{borderBottomColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:t.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:t.palette.secondary.main}},groupedContained:{boxShadow:"none"},groupedContainedHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(t.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(t.palette.action.disabled)}}},groupedContainedVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(t.palette.grey[400]),"&$disabled":{borderBottom:"1px solid ".concat(t.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderColor:t.palette.primary.dark}},groupedContainedSecondary:{"&:not(:last-child)":{borderColor:t.palette.secondary.dark}}}},Mln=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=a===void 0?"default":a,l=t.component,c=l===void 0?"div":l,u=t.disabled,d=u===void 0?!1:u,p=t.disableElevation,h=p===void 0?!1:p,g=t.disableFocusRipple,m=g===void 0?!1:g,v=t.disableRipple,y=v===void 0?!1:v,M=t.fullWidth,C=M===void 0?!1:M,x=t.orientation,w=x===void 0?"horizontal":x,S=t.size,A=S===void 0?"medium":S,z=t.variant,O=z===void 0?"outlined":z,T=fn(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"]),I=$t(i.grouped,i["grouped".concat($r(w))],i["grouped".concat($r(O))],i["grouped".concat($r(O)).concat($r(w))],i["grouped".concat($r(O)).concat(s!=="default"?$r(s):"")],d&&i.disabled);return b.createElement(c,Y({role:"group",className:$t(i.root,o,C&&i.fullWidth,h&&i.disableElevation,O==="contained"&&i.contained,w==="vertical"&&i.vertical),ref:n},T),b.Children.map(r,function(P){return b.isValidElement(P)?b.cloneElement(P,{className:$t(I,P.props.className),color:P.props.color||s,disabled:P.props.disabled||d,disableElevation:P.props.disableElevation||h,disableFocusRipple:m,disableRipple:y,fullWidth:C,size:P.props.size||A,variant:P.props.variant||O}):null}))});const T6=or(yln,{name:"MuiButtonGroup"})(Mln);var Cln={root:{overflow:"hidden"}},xln=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.raised,a=o===void 0?!1:o,s=fn(t,["classes","className","raised"]);return b.createElement(kt,Y({className:$t(r.root,i),elevation:a?8:1,ref:n},s))});const yD=or(Cln,{name:"MuiCard"})(xln);var wln={root:{padding:16,"&:last-child":{paddingBottom:24}}},Sln=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.component,a=o===void 0?"div":o,s=fn(t,["classes","className","component"]);return b.createElement(a,Y({className:$t(r.root,i),ref:n},s))});const MD=or(wln,{name:"MuiCardContent"})(Sln);var E6=b.createContext();function Bot(){return b.useContext(E6)}function w3(){return b.useContext(E6)}var Aln={root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},Oln=b.forwardRef(function(t,n){var r=t.autoFocus,i=t.checked,o=t.checkedIcon,a=t.classes,s=t.className,l=t.defaultChecked,c=t.disabled,u=t.icon,d=t.id,p=t.inputProps,h=t.inputRef,g=t.name,m=t.onBlur,v=t.onChange,y=t.onFocus,M=t.readOnly,C=t.required,x=t.tabIndex,w=t.type,S=t.value,A=fn(t,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),z=lb({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),O=Xu(z,2),T=O[0],I=O[1],P=w3(),N=function(G){y&&y(G),P&&P.onFocus&&P.onFocus(G)},F=function(G){m&&m(G),P&&P.onBlur&&P.onBlur(G)},L=function(G){var q=G.target.checked;I(q),v&&v(G,q)},W=c;P&&typeof W>"u"&&(W=P.disabled);var H=w==="checkbox"||w==="radio";return b.createElement(yn,Y({component:"span",className:$t(a.root,s,T&&a.checked,W&&a.disabled),disabled:W,tabIndex:null,role:void 0,onFocus:N,onBlur:F,ref:n},A),b.createElement("input",Y({autoFocus:r,checked:i,defaultChecked:l,className:a.input,disabled:W,id:H&&d,name:g,onChange:L,readOnly:M,ref:h,required:C,tabIndex:x,type:w,value:S},p)),T?o:u)});const jot=or(Aln,{name:"PrivateSwitchBase"})(Oln),zln=$i(b.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),Tln=$i(b.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Eln=$i(b.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));var Rln=function(t){return{root:{color:t.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:t.palette.primary.main,"&:hover":{backgroundColor:jo(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}},colorSecondary:{"&$checked":{color:t.palette.secondary.main,"&:hover":{backgroundColor:jo(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}}}},Iln=b.createElement(Tln,null),Pln=b.createElement(zln,null),Dln=b.createElement(Eln,null),kln=b.forwardRef(function(t,n){var r=t.checkedIcon,i=r===void 0?Iln:r,o=t.classes,a=t.color,s=a===void 0?"secondary":a,l=t.icon,c=l===void 0?Pln:l,u=t.indeterminate,d=u===void 0?!1:u,p=t.indeterminateIcon,h=p===void 0?Dln:p,g=t.inputProps,m=t.size,v=m===void 0?"medium":m,y=fn(t,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),M=d?h:c,C=d?h:i;return b.createElement(jot,Y({type:"checkbox",classes:{root:$t(o.root,o["color".concat($r(s))],d&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:s,inputProps:Y({"data-indeterminate":d},g),icon:b.cloneElement(M,{fontSize:M.props.fontSize===void 0&&v==="small"?v:M.props.fontSize}),checkedIcon:b.cloneElement(C,{fontSize:C.props.fontSize===void 0&&v==="small"?v:C.props.fontSize}),ref:n},y))});const Qr=or(Rln,{name:"MuiCheckbox"})(kln),Lln=$i(b.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));var _ln=function(t){var n=t.palette.type==="light"?t.palette.grey[300]:t.palette.grey[700],r=jo(t.palette.text.primary,.26);return{root:{fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:t.palette.getContrastText(n),backgroundColor:n,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:t.palette.type==="light"?t.palette.grey[700]:t.palette.grey[300],fontSize:t.typography.pxToRem(12)},"& $avatarColorPrimary":{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.dark},"& $avatarColorSecondary":{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:TA(n,.08)},"&:active":{boxShadow:t.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:TA(t.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:TA(t.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:TA(n,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:TA(t.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:TA(t.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat(t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:jo(t.palette.text.primary,t.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(t.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:jo(t.palette.primary.main,t.palette.action.hoverOpacity)}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(t.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:jo(t.palette.secondary.main,t.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:t.palette.type==="light"?t.palette.grey[700]:t.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:r,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:jo(r,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:jo(t.palette.primary.contrastText,.7),"&:hover, &:active":{color:t.palette.primary.contrastText}},deleteIconColorSecondary:{color:jo(t.palette.secondary.contrastText,.7),"&:hover, &:active":{color:t.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:jo(t.palette.primary.main,.7),"&:hover, &:active":{color:t.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:jo(t.palette.secondary.main,.7),"&:hover, &:active":{color:t.palette.secondary.main}}}};function $Ie(e){return e.key==="Backspace"||e.key==="Delete"}var Nln=b.forwardRef(function(t,n){var r=t.avatar,i=t.classes,o=t.className,a=t.clickable,s=t.color,l=s===void 0?"default":s,c=t.component,u=t.deleteIcon,d=t.disabled,p=d===void 0?!1:d,h=t.icon,g=t.label,m=t.onClick,v=t.onDelete,y=t.onKeyDown,M=t.onKeyUp,C=t.size,x=C===void 0?"medium":C,w=t.variant,S=w===void 0?"default":w,A=fn(t,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),z=b.useRef(null),O=Ba(z,n),T=function(U){U.stopPropagation(),v&&v(U)},I=function(U){U.currentTarget===U.target&&$Ie(U)&&U.preventDefault(),y&&y(U)},P=function(U){U.currentTarget===U.target&&(v&&$Ie(U)?v(U):U.key==="Escape"&&z.current&&z.current.blur()),M&&M(U)},N=a!==!1&&m?!0:a,F=x==="small",L=c||(N?Ez:"div"),W=L===Ez?{component:"div"}:{},H=null;if(v){var j=$t(l!=="default"&&(S==="default"?i["deleteIconColor".concat($r(l))]:i["deleteIconOutlinedColor".concat($r(l))]),F&&i.deleteIconSmall);H=u&&b.isValidElement(u)?b.cloneElement(u,{className:$t(u.props.className,i.deleteIcon,j),onClick:T}):b.createElement(Lln,{className:$t(i.deleteIcon,j),onClick:T})}var G=null;r&&b.isValidElement(r)&&(G=b.cloneElement(r,{className:$t(i.avatar,r.props.className,F&&i.avatarSmall,l!=="default"&&i["avatarColor".concat($r(l))])}));var q=null;return h&&b.isValidElement(h)&&(q=b.cloneElement(h,{className:$t(i.icon,h.props.className,F&&i.iconSmall,l!=="default"&&i["iconColor".concat($r(l))])})),b.createElement(L,Y({role:N||v?"button":void 0,className:$t(i.root,o,l!=="default"&&[i["color".concat($r(l))],N&&i["clickableColor".concat($r(l))],v&&i["deletableColor".concat($r(l))]],S!=="default"&&[i.outlined,{primary:i.outlinedPrimary,secondary:i.outlinedSecondary}[l]],p&&i.disabled,F&&i.sizeSmall,N&&i.clickable,v&&i.deletable),"aria-disabled":p?!0:void 0,tabIndex:N||v?0:void 0,onClick:m,onKeyDown:I,onKeyUp:P,ref:O},W,A),G||q,b.createElement("span",{className:$t(i.label,F&&i.labelSmall)},g),H)});const fM=or(_ln,{name:"MuiChip"})(Nln);var nC=44,Fln=function(t){return{root:{display:"inline-block"},static:{transition:t.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:t.transitions.create("transform")},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:t.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:t.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}},Wln=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.color,a=o===void 0?"primary":o,s=t.disableShrink,l=s===void 0?!1:s,c=t.size,u=c===void 0?40:c,d=t.style,p=t.thickness,h=p===void 0?3.6:p,g=t.value,m=g===void 0?0:g,v=t.variant,y=v===void 0?"indeterminate":v,M=fn(t,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),C={},x={},w={};if(y==="determinate"||y==="static"){var S=2*Math.PI*((nC-h)/2);C.strokeDasharray=S.toFixed(3),w["aria-valuenow"]=Math.round(m),C.strokeDashoffset="".concat(((100-m)/100*S).toFixed(3),"px"),x.transform="rotate(-90deg)"}return b.createElement("div",Y({className:$t(r.root,i,a!=="inherit"&&r["color".concat($r(a))],{determinate:r.determinate,indeterminate:r.indeterminate,static:r.static}[y]),style:Y({width:u,height:u},x,d),ref:n,role:"progressbar"},w,M),b.createElement("svg",{className:r.svg,viewBox:"".concat(nC/2," ").concat(nC/2," ").concat(nC," ").concat(nC)},b.createElement("circle",{className:$t(r.circle,l&&r.circleDisableShrink,{determinate:r.circleDeterminate,indeterminate:r.circleIndeterminate,static:r.circleStatic}[y]),style:C,cx:nC,cy:nC,r:(nC-h)/2,fill:"none",strokeWidth:h})))});const Kt=or(Fln,{name:"MuiCircularProgress",flip:!1})(Wln);function UIe(e){return e.substring(2).toLowerCase()}function qln(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}function Bln(e){var t=e.children,n=e.disableReactTree,r=n===void 0?!1:n,i=e.mouseEvent,o=i===void 0?"onClick":i,a=e.onClickAway,s=e.touchEvent,l=s===void 0?"onTouchEnd":s,c=b.useRef(!1),u=b.useRef(null),d=b.useRef(!1),p=b.useRef(!1);b.useEffect(function(){return setTimeout(function(){d.current=!0},0),function(){d.current=!1}},[]);var h=b.useCallback(function(M){u.current=ql.findDOMNode(M)},[]),g=Ba(t.ref,h),m=ms(function(M){var C=p.current;if(p.current=!1,!(!d.current||!u.current||qln(M))){if(c.current){c.current=!1;return}var x;if(M.composedPath)x=M.composedPath().indexOf(u.current)>-1;else{var w=bd(u.current);x=!w.documentElement.contains(M.target)||u.current.contains(M.target)}!x&&(r||!C)&&a(M)}}),v=function(C){return function(x){p.current=!0;var w=t.props[C];w&&w(x)}},y={ref:g};return l!==!1&&(y[l]=v(l)),b.useEffect(function(){if(l!==!1){var M=UIe(l),C=bd(u.current),x=function(){c.current=!0};return C.addEventListener(M,m),C.addEventListener("touchmove",x),function(){C.removeEventListener(M,m),C.removeEventListener("touchmove",x)}}},[m,l]),o!==!1&&(y[o]=v(o)),b.useEffect(function(){if(o!==!1){var M=UIe(o),C=bd(u.current);return C.addEventListener(M,m),function(){C.removeEventListener(M,m)}}},[m,o]),b.createElement(b.Fragment,null,b.cloneElement(t,y))}var jln=function(t){return{root:tn({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:t.spacing(2),paddingRight:t.spacing(2),display:"block"},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(t.breakpoints.values).reduce(function(n,r){var i=t.breakpoints.values[r];return i!==0&&(n[t.breakpoints.up(r)]={maxWidth:i}),n},{}),maxWidthXs:tn({},t.breakpoints.up("xs"),{maxWidth:Math.max(t.breakpoints.values.xs,444)}),maxWidthSm:tn({},t.breakpoints.up("sm"),{maxWidth:t.breakpoints.values.sm}),maxWidthMd:tn({},t.breakpoints.up("md"),{maxWidth:t.breakpoints.values.md}),maxWidthLg:tn({},t.breakpoints.up("lg"),{maxWidth:t.breakpoints.values.lg}),maxWidthXl:tn({},t.breakpoints.up("xl"),{maxWidth:t.breakpoints.values.xl})}},Hln=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.component,a=o===void 0?"div":o,s=t.disableGutters,l=s===void 0?!1:s,c=t.fixed,u=c===void 0?!1:c,d=t.maxWidth,p=d===void 0?"lg":d,h=fn(t,["classes","className","component","disableGutters","fixed","maxWidth"]);return b.createElement(a,Y({className:$t(r.root,i,u&&r.fixed,l&&r.disableGutters,p!==!1&&r["maxWidth".concat($r(String(p)))]),ref:n},h))});const Vln=or(jln,{name:"MuiContainer"})(Hln);var Gln={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},$ln=function(t){return Y({color:t.palette.text.primary},t.typography.body2,{backgroundColor:t.palette.background.default,"@media print":{backgroundColor:t.palette.common.white}})},Uln=function(t){return{"@global":{html:Gln,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:Y({margin:0},$ln(t),{"&::backdrop":{backgroundColor:t.palette.background.default}})}}};function Xln(e){var t=e.children,n=t===void 0?null:t;return e.classes,b.createElement(b.Fragment,null,n)}const Hot=or(Uln,{name:"MuiCssBaseline"})(Xln);function Yln(e){return e=typeof e=="function"?e():e,ql.findDOMNode(e)}var oie=typeof window<"u"?b.useLayoutEffect:b.useEffect,Vot=b.forwardRef(function(t,n){var r=t.children,i=t.container,o=t.disablePortal,a=o===void 0?!1:o,s=t.onRendered,l=b.useState(null),c=l[0],u=l[1],d=Ba(b.isValidElement(r)?r.ref:null,n);return oie(function(){a||u(Yln(i)||document.body)},[i,a]),oie(function(){if(c&&!a)return Uy(n,c),function(){Uy(n,null)}},[n,c,a]),oie(function(){s&&(c||a)&&s()},[s,c,a]),a?b.isValidElement(r)?b.cloneElement(r,{ref:d}):r:c&&ql.createPortal(r,c)});function Got(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function Kln(e){var t=bd(e);return t.body===e?$K(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function GN(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function XIe(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function YIe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(S6(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(s){s.nodeType===1&&o.indexOf(s)===-1&&a.indexOf(s.tagName)===-1&&GN(s,i)})}function aie(e,t){var n=-1;return e.some(function(r,i){return t(r)?(n=i,!0):!1}),n}function Qln(e,t){var n=[],r=[],i=e.container,o;if(!t.disableScrollLock){if(Kln(i)){var a=Got();n.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(XIe(i)+a,"px"),o=bd(i).querySelectorAll(".mui-fixed"),[].forEach.call(o,function(u){r.push(u.style.paddingRight),u.style.paddingRight="".concat(XIe(u)+a,"px")})}var s=i.parentElement,l=s.nodeName==="HTML"&&window.getComputedStyle(s)["overflow-y"]==="scroll"?s:i;n.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}var c=function(){o&&[].forEach.call(o,function(d,p){r[p]?d.style.paddingRight=r[p]:d.style.removeProperty("padding-right")}),n.forEach(function(d){var p=d.value,h=d.el,g=d.key;p?h.style.setProperty(g,p):h.style.removeProperty(g)})};return c}function Zln(e){var t=[];return[].forEach.call(e.children,function(n){n.getAttribute&&n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}var Jln=(function(){function e(){Eo(this,e),this.modals=[],this.containers=[]}return so(e,[{key:"add",value:function(n,r){var i=this.modals.indexOf(n);if(i!==-1)return i;i=this.modals.length,this.modals.push(n),n.modalRef&&GN(n.modalRef,!1);var o=Zln(r);YIe(r,n.mountNode,n.modalRef,o,!0);var a=aie(this.containers,function(s){return s.container===r});return a!==-1?(this.containers[a].modals.push(n),i):(this.containers.push({modals:[n],container:r,restore:null,hiddenSiblingNodes:o}),i)}},{key:"mount",value:function(n,r){var i=aie(this.containers,function(a){return a.modals.indexOf(n)!==-1}),o=this.containers[i];o.restore||(o.restore=Qln(o,r))}},{key:"remove",value:function(n){var r=this.modals.indexOf(n);if(r===-1)return r;var i=aie(this.containers,function(s){return s.modals.indexOf(n)!==-1}),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(n),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),n.modalRef&&GN(n.modalRef,!0),YIe(o.container,n.mountNode,n.modalRef,o.hiddenSiblingNodes,!1),this.containers.splice(i,1);else{var a=o.modals[o.modals.length-1];a.modalRef&&GN(a.modalRef,!1)}return r}},{key:"isTopModal",value:function(n){return this.modals.length>0&&this.modals[this.modals.length-1]===n}}]),e})();function ecn(e){var t=e.children,n=e.disableAutoFocus,r=n===void 0?!1:n,i=e.disableEnforceFocus,o=i===void 0?!1:i,a=e.disableRestoreFocus,s=a===void 0?!1:a,l=e.getDoc,c=e.isEnabled,u=e.open,d=b.useRef(),p=b.useRef(null),h=b.useRef(null),g=b.useRef(),m=b.useRef(null),v=b.useCallback(function(C){m.current=ql.findDOMNode(C)},[]),y=Ba(t.ref,v),M=b.useRef();return b.useEffect(function(){M.current=u},[u]),!M.current&&u&&typeof window<"u"&&(g.current=l().activeElement),b.useEffect(function(){if(u){var C=bd(m.current);!r&&m.current&&!m.current.contains(C.activeElement)&&(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var x=function(){var z=m.current;if(z!==null){if(!C.hasFocus()||o||!c()||d.current){d.current=!1;return}m.current&&!m.current.contains(C.activeElement)&&m.current.focus()}},w=function(z){o||!c()||z.keyCode!==9||C.activeElement===m.current&&(d.current=!0,z.shiftKey?h.current.focus():p.current.focus())};C.addEventListener("focus",x,!0),C.addEventListener("keydown",w,!0);var S=setInterval(function(){x()},50);return function(){clearInterval(S),C.removeEventListener("focus",x,!0),C.removeEventListener("keydown",w,!0),s||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}},[r,o,s,c,u]),b.createElement(b.Fragment,null,b.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),b.cloneElement(t,{ref:y}),b.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var KIe={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},tcn=b.forwardRef(function(t,n){var r=t.invisible,i=r===void 0?!1:r,o=t.open,a=fn(t,["invisible","open"]);return o?b.createElement("div",Y({"aria-hidden":!0,ref:n},a,{style:Y({},KIe.root,i?KIe.invisible:{},a.style)})):null});function ncn(e){return e=typeof e=="function"?e():e,ql.findDOMNode(e)}function rcn(e){return e.children?e.children.props.hasOwnProperty("in"):!1}var icn=new Jln,ocn=function(t){return{root:{position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}},SMe=b.forwardRef(function(t,n){var r=M3(),i=HK({name:"MuiModal",props:Y({},t),theme:r}),o=i.BackdropComponent,a=o===void 0?tcn:o,s=i.BackdropProps,l=i.children,c=i.closeAfterTransition,u=c===void 0?!1:c,d=i.container,p=i.disableAutoFocus,h=p===void 0?!1:p,g=i.disableBackdropClick,m=g===void 0?!1:g,v=i.disableEnforceFocus,y=v===void 0?!1:v,M=i.disableEscapeKeyDown,C=M===void 0?!1:M,x=i.disablePortal,w=x===void 0?!1:x,S=i.disableRestoreFocus,A=S===void 0?!1:S,z=i.disableScrollLock,O=z===void 0?!1:z,T=i.hideBackdrop,I=T===void 0?!1:T,P=i.keepMounted,N=P===void 0?!1:P,F=i.manager,L=F===void 0?icn:F,W=i.onBackdropClick,H=i.onClose,j=i.onEscapeKeyDown,G=i.onRendered,q=i.open,$=fn(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),U=b.useState(!0),X=U[0],Q=U[1],re=b.useRef({}),ee=b.useRef(null),se=b.useRef(null),pe=Ba(se,n),te=rcn(i),ce=function(){return bd(ee.current)},oe=function(){return re.current.modalRef=se.current,re.current.mountNode=ee.current,re.current},ae=function(){L.mount(oe(),{disableScrollLock:O}),se.current.scrollTop=0},ne=ms(function(){var Ae=ncn(d)||ce().body;L.add(oe(),Ae),se.current&&ae()}),le=b.useCallback(function(){return L.isTopModal(oe())},[L]),he=ms(function(Ae){ee.current=Ae,Ae&&(G&&G(),q&&le()?ae():GN(se.current,!0))}),be=b.useCallback(function(){L.remove(oe())},[L]);if(b.useEffect(function(){return function(){be()}},[be]),b.useEffect(function(){q?ne():(!te||!u)&&be()},[q,be,te,u,ne]),!N&&!q&&(!te||X))return null;var me=function(){Q(!1)},Me=function(){Q(!0),u&&be()},Oe=function(Ce){Ce.target===Ce.currentTarget&&(W&&W(Ce),!m&&H&&H(Ce,"backdropClick"))},de=function(Ce){Ce.key!=="Escape"||!le()||(j&&j(Ce),C||(Ce.stopPropagation(),H&&H(Ce,"escapeKeyDown")))},ie=ocn(r||{zIndex:vot}),ue={};return l.props.tabIndex===void 0&&(ue.tabIndex=l.props.tabIndex||"-1"),te&&(ue.onEnter=Yx(me,l.props.onEnter),ue.onExited=Yx(Me,l.props.onExited)),b.createElement(Vot,{ref:he,container:d,disablePortal:w},b.createElement("div",Y({ref:pe,onKeyDown:de,role:"presentation"},$,{style:Y({},ie.root,!q&&X?ie.hidden:{},$.style)}),I?null:b.createElement(a,Y({open:q,onClick:Oe},s)),b.createElement(ecn,{disableEnforceFocus:y,disableAutoFocus:h,disableRestoreFocus:A,getDoc:ce,isEnabled:le,open:q},b.cloneElement(l,ue))))}),acn=function(t){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(t.breakpoints.values.xs,444),"&$paperScrollBody":tn({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:t.breakpoints.values.sm,"&$paperScrollBody":tn({},t.breakpoints.down(t.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:t.breakpoints.values.md,"&$paperScrollBody":tn({},t.breakpoints.down(t.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:t.breakpoints.values.lg,"&$paperScrollBody":tn({},t.breakpoints.down(t.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:t.breakpoints.values.xl,"&$paperScrollBody":tn({},t.breakpoints.down(t.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}},scn={enter:lh.enteringScreen,exit:lh.leavingScreen},lcn=b.forwardRef(function(t,n){var r=t.BackdropProps,i=t.children,o=t.classes,a=t.className,s=t.disableBackdropClick,l=s===void 0?!1:s,c=t.disableEscapeKeyDown,u=c===void 0?!1:c,d=t.fullScreen,p=d===void 0?!1:d,h=t.fullWidth,g=h===void 0?!1:h,m=t.maxWidth,v=m===void 0?"sm":m,y=t.onBackdropClick,M=t.onClose,C=t.onEnter,x=t.onEntered,w=t.onEntering,S=t.onEscapeKeyDown,A=t.onExit,z=t.onExited,O=t.onExiting,T=t.open,I=t.PaperComponent,P=I===void 0?kt:I,N=t.PaperProps,F=N===void 0?{}:N,L=t.scroll,W=L===void 0?"paper":L,H=t.TransitionComponent,j=H===void 0?Wot:H,G=t.transitionDuration,q=G===void 0?scn:G,$=t.TransitionProps,U=t["aria-describedby"],X=t["aria-labelledby"],Q=fn(t,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),re=b.useRef(),ee=function(te){re.current=te.target},se=function(te){te.target===te.currentTarget&&te.target===re.current&&(re.current=null,y&&y(te),!l&&M&&M(te,"backdropClick"))};return b.createElement(SMe,Y({className:$t(o.root,a),BackdropComponent:z6,BackdropProps:Y({transitionDuration:q},r),closeAfterTransition:!0},l?{disableBackdropClick:l}:{},{disableEscapeKeyDown:u,onEscapeKeyDown:S,onClose:M,open:T,ref:n},Q),b.createElement(j,Y({appear:!0,in:T,timeout:q,onEnter:C,onEntering:w,onEntered:x,onExit:A,onExiting:O,onExited:z,role:"none presentation"},$),b.createElement("div",{className:$t(o.container,o["scroll".concat($r(W))]),onMouseUp:se,onMouseDown:ee},b.createElement(P,Y({elevation:24,role:"dialog","aria-describedby":U,"aria-labelledby":X},F,{className:$t(o.paper,o["paperScroll".concat($r(W))],o["paperWidth".concat($r(String(v)))],F.className,p&&o.paperFullScreen,g&&o.paperFullWidth)}),i))))});const Qu=or(acn,{name:"MuiDialog"})(lcn);var ccn={root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},ucn=b.forwardRef(function(t,n){var r=t.disableSpacing,i=r===void 0?!1:r,o=t.classes,a=t.className,s=fn(t,["disableSpacing","classes","className"]);return b.createElement("div",Y({className:$t(o.root,a,!i&&o.spacing),ref:n},s))});const Td=or(ccn,{name:"MuiDialogActions"})(ucn);var dcn=function(t){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(t.palette.divider),borderBottom:"1px solid ".concat(t.palette.divider)}}},pcn=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.dividers,a=o===void 0?!1:o,s=fn(t,["classes","className","dividers"]);return b.createElement("div",Y({className:$t(r.root,i,a&&r.dividers),ref:n},s))});const ru=or(dcn,{name:"MuiDialogContent"})(pcn);var hcn={root:{marginBottom:12}},fcn=b.forwardRef(function(t,n){return b.createElement(bt,Y({component:"p",variant:"body1",color:"textSecondary",ref:n},t))});const gM=or(hcn,{name:"MuiDialogContentText"})(fcn);var gcn={root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},mcn=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.disableTypography,s=a===void 0?!1:a,l=fn(t,["children","classes","className","disableTypography"]);return b.createElement("div",Y({className:$t(i.root,o),ref:n},l),s?r:b.createElement(bt,{component:"h2",variant:"h6"},r))});const T0=or(gcn,{name:"MuiDialogTitle"})(mcn);var vcn=function(t){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:t.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:jo(t.palette.divider,.08)},middle:{marginLeft:t.spacing(2),marginRight:t.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}},bcn=b.forwardRef(function(t,n){var r=t.absolute,i=r===void 0?!1:r,o=t.classes,a=t.className,s=t.component,l=s===void 0?"hr":s,c=t.flexItem,u=c===void 0?!1:c,d=t.light,p=d===void 0?!1:d,h=t.orientation,g=h===void 0?"horizontal":h,m=t.role,v=m===void 0?l!=="hr"?"separator":void 0:m,y=t.variant,M=y===void 0?"fullWidth":y,C=fn(t,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return b.createElement(l,Y({className:$t(o.root,a,M!=="fullWidth"&&o[M],i&&o.absolute,u&&o.flexItem,p&&o.light,g==="vertical"&&o.vertical),role:v,ref:n},C))});const ua=or(vcn,{name:"MuiDivider"})(bcn);function ycn(e,t){var n=t.getBoundingClientRect(),r;if(t.fakeTransform)r=t.fakeTransform;else{var i=window.getComputedStyle(t);r=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(r&&r!=="none"&&typeof r=="string"){var s=r.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return e==="left"?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-n.left,"px)"):e==="right"?"translateX(-".concat(n.left+n.width-o,"px)"):e==="up"?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-n.top,"px)"):"translateY(-".concat(n.top+n.height-a,"px)")}function i8(e,t){var n=ycn(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var Mcn={enter:lh.enteringScreen,exit:lh.leavingScreen},Ccn=b.forwardRef(function(t,n){var r=t.children,i=t.direction,o=i===void 0?"down":i,a=t.in,s=t.onEnter,l=t.onEntered,c=t.onEntering,u=t.onExit,d=t.onExited,p=t.onExiting,h=t.style,g=t.timeout,m=g===void 0?Mcn:g,v=t.TransitionComponent,y=v===void 0?b1:v,M=fn(t,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),C=oc(),x=b.useRef(null),w=b.useCallback(function(W){x.current=ql.findDOMNode(W)},[]),S=Ba(r.ref,w),A=Ba(S,n),z=function(H){return function(j){H&&(j===void 0?H(x.current):H(x.current,j))}},O=z(function(W,H){i8(o,W),CMe(W),s&&s(W,H)}),T=z(function(W,H){var j=Kx({timeout:m,style:h},{mode:"enter"});W.style.webkitTransition=C.transitions.create("-webkit-transform",Y({},j,{easing:C.transitions.easing.easeOut})),W.style.transition=C.transitions.create("transform",Y({},j,{easing:C.transitions.easing.easeOut})),W.style.webkitTransform="none",W.style.transform="none",c&&c(W,H)}),I=z(l),P=z(p),N=z(function(W){var H=Kx({timeout:m,style:h},{mode:"exit"});W.style.webkitTransition=C.transitions.create("-webkit-transform",Y({},H,{easing:C.transitions.easing.sharp})),W.style.transition=C.transitions.create("transform",Y({},H,{easing:C.transitions.easing.sharp})),i8(o,W),u&&u(W)}),F=z(function(W){W.style.webkitTransition="",W.style.transition="",d&&d(W)}),L=b.useCallback(function(){x.current&&i8(o,x.current)},[o]);return b.useEffect(function(){if(!(a||o==="down"||o==="right")){var W=$y(function(){x.current&&i8(o,x.current)});return window.addEventListener("resize",W),function(){W.clear(),window.removeEventListener("resize",W)}}},[o,a]),b.useEffect(function(){a||L()},[a,L]),b.createElement(y,Y({nodeRef:x,onEnter:O,onEntered:I,onEntering:T,onExit:N,onExited:F,onExiting:P,appear:!0,in:a,timeout:m},M),function(W,H){return b.cloneElement(r,Y({ref:A,style:Y({visibility:W==="exited"&&!a?"hidden":void 0},h,r.props.style)},H))})}),xcn=function(t){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:t.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(t.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(t.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(t.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(t.palette.divider)},modal:{}}},$ot={left:"right",right:"left",top:"down",bottom:"up"};function wcn(e){return["left","right"].indexOf(e)!==-1}function Scn(e,t){return e.direction==="rtl"&&wcn(t)?$ot[t]:t}var Acn={enter:lh.enteringScreen,exit:lh.leavingScreen},Ocn=b.forwardRef(function(t,n){var r=t.anchor,i=r===void 0?"left":r,o=t.BackdropProps,a=t.children,s=t.classes,l=t.className,c=t.elevation,u=c===void 0?16:c,d=t.ModalProps;d=d===void 0?{}:d;var p=d.BackdropProps,h=fn(d,["BackdropProps"]),g=t.onClose,m=t.open,v=m===void 0?!1:m,y=t.PaperProps,M=y===void 0?{}:y,C=t.SlideProps,x=t.TransitionComponent,w=x===void 0?Ccn:x,S=t.transitionDuration,A=S===void 0?Acn:S,z=t.variant,O=z===void 0?"temporary":z,T=fn(t,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),I=oc(),P=b.useRef(!1);b.useEffect(function(){P.current=!0},[]);var N=Scn(I,i),F=b.createElement(kt,Y({elevation:O==="temporary"?u:0,square:!0},M,{className:$t(s.paper,s["paperAnchor".concat($r(N))],M.className,O!=="temporary"&&s["paperAnchorDocked".concat($r(N))])}),a);if(O==="permanent")return b.createElement("div",Y({className:$t(s.root,s.docked,l),ref:n},T),F);var L=b.createElement(w,Y({in:v,direction:$ot[N],timeout:A,appear:P.current},C),F);return O==="persistent"?b.createElement("div",Y({className:$t(s.root,s.docked,l),ref:n},T),L):b.createElement(SMe,Y({BackdropProps:Y({},o,p,{transitionDuration:A}),BackdropComponent:z6,className:$t(s.root,s.modal,l),open:v,onClose:g,ref:n},T,h),L)});const Uot=or(xcn,{name:"MuiDrawer",flip:!1})(Ocn);function CD(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce(function(i,o){return i[o]=t[o],r&&typeof t[o]>"u"&&(i[o]=r[o]),i},{})}function o8(e,t){return parseInt(e[t],10)||0}var zcn=typeof window<"u"?b.useLayoutEffect:b.useEffect,Tcn={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}},AMe=b.forwardRef(function(t,n){var r=t.onChange,i=t.rows,o=t.rowsMax,a=t.rowsMin,s=t.maxRows,l=t.minRows,c=l===void 0?1:l,u=t.style,d=t.value,p=fn(t,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=s||o,g=i||a||c,m=b.useRef(d!=null),v=m.current,y=b.useRef(null),M=Ba(n,y),C=b.useRef(null),x=b.useRef(0),w=b.useState({}),S=w[0],A=w[1],z=b.useCallback(function(){var T=y.current,I=window.getComputedStyle(T),P=C.current;P.style.width=I.width,P.value=T.value||t.placeholder||"x",P.value.slice(-1)===`
`&&(P.value+=" ");var N=I["box-sizing"],F=o8(I,"padding-bottom")+o8(I,"padding-top"),L=o8(I,"border-bottom-width")+o8(I,"border-top-width"),W=P.scrollHeight-F;P.value="x";var H=P.scrollHeight-F,j=W;g&&(j=Math.max(Number(g)*H,j)),h&&(j=Math.min(Number(h)*H,j)),j=Math.max(j,H);var G=j+(N==="border-box"?F+L:0),q=Math.abs(j-W)<=1;A(function($){return x.current<20&&(G>0&&Math.abs(($.outerHeightStyle||0)-G)>1||$.overflow!==q)?(x.current+=1,{overflow:q,outerHeightStyle:G}):$})},[h,g,t.placeholder]);b.useEffect(function(){var T=$y(function(){x.current=0,z()});return window.addEventListener("resize",T),function(){T.clear(),window.removeEventListener("resize",T)}},[z]),zcn(function(){z()}),b.useEffect(function(){x.current=0},[d]);var O=function(I){x.current=0,v||z(),r&&r(I)};return b.createElement(b.Fragment,null,b.createElement("textarea",Y({value:d,onChange:O,ref:M,rows:g,style:Y({height:S.outerHeightStyle,overflow:S.overflow?"hidden":null},u)},p)),b.createElement("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:C,tabIndex:-1,style:Y({},Tcn.shadow,u)}))});function QIe(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function OMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e&&(QIe(e.value)&&e.value!==""||t&&QIe(e.defaultValue)&&e.defaultValue!=="")}function Ecn(e){return e.startAdornment}var Rcn=function(t){var n=t.palette.type==="light",r={color:"currentColor",opacity:n?.42:.5,transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},i={opacity:"0 !important"},o={opacity:n?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Y({},t.typography.body1,{color:t.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:t.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},Icn=typeof window>"u"?b.useEffect:b.useLayoutEffect,Pcn=b.forwardRef(function(t,n){var r=t["aria-describedby"],i=t.autoComplete,o=t.autoFocus,a=t.classes,s=t.className;t.color;var l=t.defaultValue,c=t.disabled,u=t.endAdornment;t.error;var d=t.fullWidth,p=d===void 0?!1:d,h=t.id,g=t.inputComponent,m=g===void 0?"input":g,v=t.inputProps,y=v===void 0?{}:v,M=t.inputRef;t.margin;var C=t.multiline,x=C===void 0?!1:C,w=t.name,S=t.onBlur,A=t.onChange,z=t.onClick,O=t.onFocus,T=t.onKeyDown,I=t.onKeyUp,P=t.placeholder,N=t.readOnly,F=t.renderSuffix,L=t.rows,W=t.rowsMax,H=t.rowsMin,j=t.maxRows,G=t.minRows,q=t.startAdornment,$=t.type,U=$===void 0?"text":$,X=t.value,Q=fn(t,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),re=y.value!=null?y.value:X,ee=b.useRef(re!=null),se=ee.current,pe=b.useRef(),te=b.useCallback(function(Ie){},[]),ce=Ba(y.ref,te),oe=Ba(M,ce),ae=Ba(pe,oe),ne=b.useState(!1),le=ne[0],he=ne[1],be=Bot(),me=CD({props:t,muiFormControl:be,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});me.focused=be?be.focused:le,b.useEffect(function(){!be&&c&&le&&(he(!1),S&&S())},[be,c,le,S]);var Me=be&&be.onFilled,Oe=be&&be.onEmpty,de=b.useCallback(function(Ie){OMe(Ie)?Me&&Me():Oe&&Oe()},[Me,Oe]);Icn(function(){se&&de({value:re})},[re,de,se]);var ie=function(Le){if(me.disabled){Le.stopPropagation();return}O&&O(Le),y.onFocus&&y.onFocus(Le),be&&be.onFocus?be.onFocus(Le):he(!0)},ue=function(Le){S&&S(Le),y.onBlur&&y.onBlur(Le),be&&be.onBlur?be.onBlur(Le):he(!1)},Ae=function(Le){if(!se){var we=Le.target||pe.current;if(we==null)throw new Error(iP(1));de({value:we.value})}for(var ve=arguments.length,De=new Array(ve>1?ve-1:0),ze=1;ze<ve;ze++)De[ze-1]=arguments[ze];y.onChange&&y.onChange.apply(y,[Le].concat(De)),A&&A.apply(void 0,[Le].concat(De))};b.useEffect(function(){de(pe.current)},[]);var Ce=function(Le){pe.current&&Le.currentTarget===Le.target&&pe.current.focus(),z&&z(Le)},Ee=m,Ge=Y({},y,{ref:ae});typeof Ee!="string"?Ge=Y({inputRef:ae,type:U},Ge,{ref:null}):x?L&&!j&&!G&&!W&&!H?Ee="textarea":(Ge=Y({minRows:L||G,rowsMax:W,maxRows:j},Ge),Ee=AMe):Ge=Y({type:U},Ge);var _e=function(Le){de(Le.animationName==="mui-auto-fill-cancel"?pe.current:{value:"x"})};return b.useEffect(function(){be&&be.setAdornedStart(!!q)},[be,q]),b.createElement("div",Y({className:$t(a.root,a["color".concat($r(me.color||"primary"))],s,me.disabled&&a.disabled,me.error&&a.error,p&&a.fullWidth,me.focused&&a.focused,be&&a.formControl,x&&a.multiline,q&&a.adornedStart,u&&a.adornedEnd,me.margin==="dense"&&a.marginDense),onClick:Ce,ref:n},Q),q,b.createElement(E6.Provider,{value:null},b.createElement(Ee,Y({"aria-invalid":me.error,"aria-describedby":r,autoComplete:i,autoFocus:o,defaultValue:l,disabled:me.disabled,id:h,onAnimationStart:_e,name:w,placeholder:P,readOnly:N,required:me.required,rows:L,value:re,onKeyDown:T,onKeyUp:I},Ge,{className:$t(a.input,y.className,me.disabled&&a.disabled,x&&a.inputMultiline,me.hiddenLabel&&a.inputHiddenLabel,q&&a.inputAdornedStart,u&&a.inputAdornedEnd,U==="search"&&a.inputTypeSearch,me.margin==="dense"&&a.inputMarginDense),onBlur:ue,onChange:Ae,onFocus:ie}))),u,F?F(Y({},me,{startAdornment:q})):null)});const zMe=or(Rcn,{name:"MuiInputBase"})(Pcn);var Dcn=function(t){var n=t.palette.type==="light",r=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:i,borderTopLeftRadius:t.shape.borderRadius,borderTopRightRadius:t.shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:n?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:i}},"&$focused":{backgroundColor:n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:t.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(t.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:t.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(t.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:t.palette.type==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.type==="light"?null:"#fff",caretColor:t.palette.type==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},Xot=b.forwardRef(function(t,n){var r=t.disableUnderline,i=t.classes,o=t.fullWidth,a=o===void 0?!1:o,s=t.inputComponent,l=s===void 0?"input":s,c=t.multiline,u=c===void 0?!1:c,d=t.type,p=d===void 0?"text":d,h=fn(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return b.createElement(zMe,Y({classes:Y({},i,{root:$t(i.root,!r&&i.underline),underline:null}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:p},h))});Xot.muiName="Input";const Yot=or(Dcn,{name:"MuiFilledInput"})(Xot);var kcn={root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},Lcn=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.color,s=a===void 0?"primary":a,l=t.component,c=l===void 0?"div":l,u=t.disabled,d=u===void 0?!1:u,p=t.error,h=p===void 0?!1:p,g=t.fullWidth,m=g===void 0?!1:g,v=t.focused,y=t.hiddenLabel,M=y===void 0?!1:y,C=t.margin,x=C===void 0?"none":C,w=t.required,S=w===void 0?!1:w,A=t.size,z=t.variant,O=z===void 0?"standard":z,T=fn(t,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),I=b.useState(function(){var re=!1;return r&&b.Children.forEach(r,function(ee){if(VN(ee,["Input","Select"])){var se=VN(ee,["Select"])?ee.props.input:ee;se&&Ecn(se.props)&&(re=!0)}}),re}),P=I[0],N=I[1],F=b.useState(function(){var re=!1;return r&&b.Children.forEach(r,function(ee){VN(ee,["Input","Select"])&&OMe(ee.props,!0)&&(re=!0)}),re}),L=F[0],W=F[1],H=b.useState(!1),j=H[0],G=H[1],q=v!==void 0?v:j;d&&q&&G(!1);var $,U=b.useCallback(function(){W(!0)},[]),X=b.useCallback(function(){W(!1)},[]),Q={adornedStart:P,setAdornedStart:N,color:s,disabled:d,error:h,filled:L,focused:q,fullWidth:m,hiddenLabel:M,margin:(A==="small"?"dense":void 0)||x,onBlur:function(){G(!1)},onEmpty:X,onFilled:U,onFocus:function(){G(!0)},registerEffect:$,required:S,variant:O};return b.createElement(E6.Provider,{value:Q},b.createElement(c,Y({className:$t(i.root,o,x!=="none"&&i["margin".concat($r(x))],m&&i.fullWidth),ref:n},T),r))});const ja=or(kcn,{name:"MuiFormControl"})(Lcn);var _cn=function(t){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:t.palette.text.disabled}}}},Ncn=b.forwardRef(function(t,n){t.checked;var r=t.classes,i=t.className,o=t.control,a=t.disabled;t.inputRef;var s=t.label,l=t.labelPlacement,c=l===void 0?"end":l;t.name,t.onChange,t.value;var u=fn(t,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),d=w3(),p=a;typeof p>"u"&&typeof o.props.disabled<"u"&&(p=o.props.disabled),typeof p>"u"&&d&&(p=d.disabled);var h={disabled:p};return["checked","name","onChange","value","inputRef"].forEach(function(g){typeof o.props[g]>"u"&&typeof t[g]<"u"&&(h[g]=t[g])}),b.createElement("label",Y({className:$t(r.root,i,c!=="end"&&r["labelPlacement".concat($r(c))],p&&r.disabled),ref:n},u),b.cloneElement(o,h),b.createElement(bt,{component:"span",className:$t(r.label,p&&r.disabled)},s))});const Io=or(_cn,{name:"MuiFormControlLabel"})(Ncn);var Fcn={root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},Wcn=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.row,a=o===void 0?!1:o,s=fn(t,["classes","className","row"]);return b.createElement("div",Y({className:$t(r.root,i,a&&r.row),ref:n},s))});const xD=or(Fcn,{name:"MuiFormGroup"})(Wcn);var qcn=function(t){return{root:Y({color:t.palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:t.palette.text.disabled},"&$error":{color:t.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},Bcn=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.component,s=a===void 0?"p":a;t.disabled,t.error,t.filled,t.focused,t.margin,t.required,t.variant;var l=fn(t,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"]),c=w3(),u=CD({props:t,muiFormControl:c,states:["variant","margin","disabled","error","filled","focused","required"]});return b.createElement(s,Y({className:$t(i.root,(u.variant==="filled"||u.variant==="outlined")&&i.contained,o,u.disabled&&i.disabled,u.error&&i.error,u.filled&&i.filled,u.focused&&i.focused,u.required&&i.required,u.margin==="dense"&&i.marginDense),ref:n},l),r===" "?b.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):r)});const KK=or(qcn,{name:"MuiFormHelperText"})(Bcn);var jcn=function(t){return{root:Y({color:t.palette.text.secondary},t.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:t.palette.primary.main},"&$disabled":{color:t.palette.text.disabled},"&$error":{color:t.palette.error.main}}),colorSecondary:{"&$focused":{color:t.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:t.palette.error.main}}}},Hcn=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className;t.color;var a=t.component,s=a===void 0?"label":a;t.disabled,t.error,t.filled,t.focused,t.required;var l=fn(t,["children","classes","className","color","component","disabled","error","filled","focused","required"]),c=w3(),u=CD({props:t,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]});return b.createElement(s,Y({className:$t(i.root,i["color".concat($r(u.color||"primary"))],o,u.disabled&&i.disabled,u.error&&i.error,u.filled&&i.filled,u.focused&&i.focused,u.required&&i.required),ref:n},l),r,u.required&&b.createElement("span",{"aria-hidden":!0,className:$t(i.asterisk,u.error&&i.error)}," ","*"))});const Vcn=or(jcn,{name:"MuiFormLabel"})(Hcn);var Gcn=[0,1,2,3,4,5,6,7,8,9,10],$cn=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Ucn(e,t,n){var r={};$cn.forEach(function(i){var o="grid-".concat(n,"-").concat(i);if(i===!0){r[o]={flexBasis:0,flexGrow:1,maxWidth:"100%"};return}if(i==="auto"){r[o]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};return}var a="".concat(Math.round(i/12*1e8)/1e6,"%");r[o]={flexBasis:a,flexGrow:0,maxWidth:a}}),n==="xs"?Y(e,r):e[t.breakpoints.up(n)]=r}function sie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}function Xcn(e,t){var n={};return Gcn.forEach(function(r){var i=e.spacing(r);i!==0&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(sie(i,2)),width:"calc(100% + ".concat(sie(i),")"),"& > $item":{padding:sie(i,2)}})}),n}var Ycn=function(t){return Y({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},Xcn(t,"xs"),t.breakpoints.keys.reduce(function(n,r){return Ucn(n,t,r),n},{}))},Kcn=b.forwardRef(function(t,n){var r=t.alignContent,i=r===void 0?"stretch":r,o=t.alignItems,a=o===void 0?"stretch":o,s=t.classes,l=t.className,c=t.component,u=c===void 0?"div":c,d=t.container,p=d===void 0?!1:d,h=t.direction,g=h===void 0?"row":h,m=t.item,v=m===void 0?!1:m,y=t.justify,M=t.justifyContent,C=M===void 0?"flex-start":M,x=t.lg,w=x===void 0?!1:x,S=t.md,A=S===void 0?!1:S,z=t.sm,O=z===void 0?!1:z,T=t.spacing,I=T===void 0?0:T,P=t.wrap,N=P===void 0?"wrap":P,F=t.xl,L=F===void 0?!1:F,W=t.xs,H=W===void 0?!1:W,j=t.zeroMinWidth,G=j===void 0?!1:j,q=fn(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),$=$t(s.root,l,p&&[s.container,I!==0&&s["spacing-xs-".concat(String(I))]],v&&s.item,G&&s.zeroMinWidth,g!=="row"&&s["direction-xs-".concat(String(g))],N!=="wrap"&&s["wrap-xs-".concat(String(N))],a!=="stretch"&&s["align-items-xs-".concat(String(a))],i!=="stretch"&&s["align-content-xs-".concat(String(i))],(y||C)!=="flex-start"&&s["justify-content-xs-".concat(String(y||C))],H!==!1&&s["grid-xs-".concat(String(H))],O!==!1&&s["grid-sm-".concat(String(O))],A!==!1&&s["grid-md-".concat(String(A))],w!==!1&&s["grid-lg-".concat(String(w))],L!==!1&&s["grid-xl-".concat(String(L))]);return b.createElement(u,Y({className:$,ref:n},q))}),D=or(Ycn,{name:"MuiGrid"})(Kcn);function Khe(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Qcn={entering:{opacity:1,transform:Khe(1)},entered:{opacity:1,transform:"none"}},QK=b.forwardRef(function(t,n){var r=t.children,i=t.disableStrictModeCompat,o=i===void 0?!1:i,a=t.in,s=t.onEnter,l=t.onEntered,c=t.onEntering,u=t.onExit,d=t.onExited,p=t.onExiting,h=t.style,g=t.timeout,m=g===void 0?"auto":g,v=t.TransitionComponent,y=v===void 0?b1:v,M=fn(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),C=b.useRef(),x=b.useRef(),w=oc(),S=w.unstable_strictMode&&!o,A=b.useRef(null),z=Ba(r.ref,n),O=Ba(S?A:void 0,z),T=function(G){return function(q,$){if(G){var U=S?[A.current,q]:[q,$],X=Xu(U,2),Q=X[0],re=X[1];re===void 0?G(Q):G(Q,re)}}},I=T(c),P=T(function(j,G){CMe(j);var q=Kx({style:h,timeout:m},{mode:"enter"}),$=q.duration,U=q.delay,X;m==="auto"?(X=w.transitions.getAutoHeightDuration(j.clientHeight),x.current=X):X=$,j.style.transition=[w.transitions.create("opacity",{duration:X,delay:U}),w.transitions.create("transform",{duration:X*.666,delay:U})].join(","),s&&s(j,G)}),N=T(l),F=T(p),L=T(function(j){var G=Kx({style:h,timeout:m},{mode:"exit"}),q=G.duration,$=G.delay,U;m==="auto"?(U=w.transitions.getAutoHeightDuration(j.clientHeight),x.current=U):U=q,j.style.transition=[w.transitions.create("opacity",{duration:U,delay:$}),w.transitions.create("transform",{duration:U*.666,delay:$||U*.333})].join(","),j.style.opacity="0",j.style.transform=Khe(.75),u&&u(j)}),W=T(d),H=function(G,q){var $=S?G:q;m==="auto"&&(C.current=setTimeout($,x.current||0))};return b.useEffect(function(){return function(){clearTimeout(C.current)}},[]),b.createElement(y,Y({appear:!0,in:a,nodeRef:S?A:void 0,onEnter:P,onEntered:N,onEntering:I,onExit:L,onExited:W,onExiting:F,addEndListener:H,timeout:m==="auto"?null:m},M),function(j,G){return b.cloneElement(r,Y({style:Y({opacity:0,transform:Khe(.75),visibility:j==="exited"&&!a?"hidden":void 0},Qcn[j],h,r.props.style),ref:O},G))})});QK.muiSupportAuto=!0;function Kot(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=M3(),r=HK({theme:n,name:"MuiUseMediaQuery",props:{}}),i=typeof e=="function"?e(n):e;i=i.replace(/^@media( ?)/m,"");var o=typeof window<"u"&&typeof window.matchMedia<"u",a=Y({},r,t),s=a.defaultMatches,l=s===void 0?!1:s,c=a.matchMedia,u=c===void 0?o?window.matchMedia:null:c,d=a.noSsr,p=d===void 0?!1:d,h=a.ssrMatchMedia,g=h===void 0?null:h,m=b.useState(function(){return p&&o?u(i).matches:g?g(i).matches:l}),v=m[0],y=m[1];return b.useEffect(function(){var M=!0;if(o){var C=u(i),x=function(){M&&y(C.matches)};return x(),C.addListener(x),function(){M=!1,C.removeListener(x)}}},[i,u,o]),v}var Zcn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r?o0.indexOf(t)<=o0.indexOf(n):o0.indexOf(t)<o0.indexOf(n)},Jcn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r?o0.indexOf(n)<=o0.indexOf(t):o0.indexOf(n)<o0.indexOf(t)},eun=typeof window>"u"?b.useEffect:b.useLayoutEffect,tun=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(n){var r=t.withTheme,i=r===void 0?!1:r,o=t.noSSR,a=o===void 0?!1:o,s=t.initialWidth;function l(c){var u=oc(),d=c.theme||u,p=HK({theme:d,name:"MuiWithWidth",props:Y({},c)}),h=p.initialWidth,g=p.width,m=fn(p,["initialWidth","width"]),v=b.useState(!1),y=v[0],M=v[1];eun(function(){M(!0)},[]);var C=d.breakpoints.keys.slice().reverse(),x=C.reduce(function(S,A){var z=Kot(d.breakpoints.up(A));return!S&&z?A:S},null),w=Y({width:g||(y||a?x:void 0)||h||s},i?{theme:d}:{},m);return w.width===void 0?null:b.createElement(n,w)}return bMe(l,n),l}};function Qot(e){var t=e.children,n=e.only,r=e.width,i=oc(),o=!0;if(n)if(Array.isArray(n))for(var a=0;a<n.length;a+=1){var s=n[a];if(r===s){o=!1;break}}else n&&r===n&&(o=!1);if(o)for(var l=0;l<i.breakpoints.keys.length;l+=1){var c=i.breakpoints.keys[l],u=e["".concat(c,"Up")],d=e["".concat(c,"Down")];if(u&&Zcn(c,r)||d&&Jcn(c,r)){o=!1;break}}return o?t:null}Qot.propTypes={children:Z.node,className:Z.string,implementation:Z.oneOf(["js","css"]),initialWidth:Z.oneOf(["xs","sm","md","lg","xl"]),lgDown:Z.bool,lgUp:Z.bool,mdDown:Z.bool,mdUp:Z.bool,only:Z.oneOfType([Z.oneOf(["xs","sm","md","lg","xl"]),Z.arrayOf(Z.oneOf(["xs","sm","md","lg","xl"]))]),smDown:Z.bool,smUp:Z.bool,width:Z.string.isRequired,xlDown:Z.bool,xlUp:Z.bool,xsDown:Z.bool,xsUp:Z.bool};const nun=tun()(Qot);var run=function(t){var n={display:"none"};return t.breakpoints.keys.reduce(function(r,i){return r["only".concat($r(i))]=tn({},t.breakpoints.only(i),n),r["".concat(i,"Up")]=tn({},t.breakpoints.up(i),n),r["".concat(i,"Down")]=tn({},t.breakpoints.down(i),n),r},{})};function iun(e){var t=e.children,n=e.classes,r=e.className,i=e.only;fn(e,["children","classes","className","only"]);var o=oc(),a=[];r&&a.push(r);for(var s=0;s<o.breakpoints.keys.length;s+=1){var l=o.breakpoints.keys[s],c=e["".concat(l,"Up")],u=e["".concat(l,"Down")];c&&a.push(n["".concat(l,"Up")]),u&&a.push(n["".concat(l,"Down")])}if(i){var d=Array.isArray(i)?i:[i];d.forEach(function(p){a.push(n["only".concat($r(p))])})}return b.createElement("div",{className:a.join(" ")},t)}const oun=or(run,{name:"PrivateHiddenCss"})(iun);function ZIe(e){var t=e.implementation,n=t===void 0?"js":t,r=e.lgDown,i=r===void 0?!1:r,o=e.lgUp,a=o===void 0?!1:o,s=e.mdDown,l=s===void 0?!1:s,c=e.mdUp,u=c===void 0?!1:c,d=e.smDown,p=d===void 0?!1:d,h=e.smUp,g=h===void 0?!1:h,m=e.xlDown,v=m===void 0?!1:m,y=e.xlUp,M=y===void 0?!1:y,C=e.xsDown,x=C===void 0?!1:C,w=e.xsUp,S=w===void 0?!1:w,A=fn(e,["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);return n==="js"?b.createElement(nun,Y({lgDown:i,lgUp:a,mdDown:l,mdUp:u,smDown:p,smUp:g,xlDown:v,xlUp:M,xsDown:x,xsUp:S},A)):b.createElement(oun,Y({lgDown:i,lgUp:a,mdDown:l,mdUp:u,smDown:p,smUp:g,xlDown:v,xlUp:M,xsDown:x,xsUp:S},A))}var aun=function(t){var n=t.palette.type==="light",r=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:t.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(t.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:t.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(t.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(r)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}},Zot=b.forwardRef(function(t,n){var r=t.disableUnderline,i=t.classes,o=t.fullWidth,a=o===void 0?!1:o,s=t.inputComponent,l=s===void 0?"input":s,c=t.multiline,u=c===void 0?!1:c,d=t.type,p=d===void 0?"text":d,h=fn(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return b.createElement(zMe,Y({classes:Y({},i,{root:$t(i.root,!r&&i.underline),underline:null}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:p},h))});Zot.muiName="Input";const R6=or(aun,{name:"MuiInput"})(Zot);var sun={root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},lun=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.component,s=a===void 0?"div":a,l=t.disablePointerEvents,c=l===void 0?!1:l,u=t.disableTypography,d=u===void 0?!1:u,p=t.position,h=t.variant,g=fn(t,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),m=Bot()||{},v=h;return h&&m.variant,m&&!v&&(v=m.variant),b.createElement(E6.Provider,{value:null},b.createElement(s,Y({className:$t(i.root,o,p==="end"?i.positionEnd:i.positionStart,c&&i.disablePointerEvents,m.hiddenLabel&&i.hiddenLabel,v==="filled"&&i.filled,m.margin==="dense"&&i.marginDense),ref:n},g),typeof r=="string"&&!d?b.createElement(bt,{color:"textSecondary"},r):r))});const nc=or(sun,{name:"MuiInputAdornment"})(lun);var cun=function(t){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:t.transitions.create(["color","transform"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}},uun=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.disableAnimation,a=o===void 0?!1:o;t.margin;var s=t.shrink;t.variant;var l=fn(t,["classes","className","disableAnimation","margin","shrink","variant"]),c=w3(),u=s;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);var d=CD({props:t,muiFormControl:c,states:["margin","variant"]});return b.createElement(Vcn,Y({"data-shrink":u,className:$t(r.root,i,c&&r.formControl,!a&&r.animated,u&&r.shrink,d.margin==="dense"&&r.marginDense,{filled:r.filled,outlined:r.outlined}[d.variant]),classes:{focused:r.focused,disabled:r.disabled,error:r.error,required:r.required,asterisk:r.asterisk},ref:n},l))});const il=or(cun,{name:"MuiInputLabel"})(uun);var lI=b.createContext({}),dun={root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},pun=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.component,s=a===void 0?"ul":a,l=t.dense,c=l===void 0?!1:l,u=t.disablePadding,d=u===void 0?!1:u,p=t.subheader,h=fn(t,["children","classes","className","component","dense","disablePadding","subheader"]),g=b.useMemo(function(){return{dense:c}},[c]);return b.createElement(lI.Provider,{value:g},b.createElement(s,Y({className:$t(i.root,o,c&&i.dense,!d&&i.padding,p&&i.subheader),ref:n},h),p,r))});const tp=or(dun,{name:"MuiList"})(pun);var hun=function(t){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:t.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:t.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(t.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:t.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},fun=typeof window>"u"?b.useEffect:b.useLayoutEffect,gun=b.forwardRef(function(t,n){var r=t.alignItems,i=r===void 0?"center":r,o=t.autoFocus,a=o===void 0?!1:o,s=t.button,l=s===void 0?!1:s,c=t.children,u=t.classes,d=t.className,p=t.component,h=t.ContainerComponent,g=h===void 0?"li":h,m=t.ContainerProps;m=m===void 0?{}:m;var v=m.className,y=fn(m,["className"]),M=t.dense,C=M===void 0?!1:M,x=t.disabled,w=x===void 0?!1:x,S=t.disableGutters,A=S===void 0?!1:S,z=t.divider,O=z===void 0?!1:z,T=t.focusVisibleClassName,I=t.selected,P=I===void 0?!1:I,N=fn(t,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),F=b.useContext(lI),L={dense:C||F.dense||!1,alignItems:i},W=b.useRef(null);fun(function(){a&&W.current&&W.current.focus()},[a]);var H=b.Children.toArray(c),j=H.length&&VN(H[H.length-1],["ListItemSecondaryAction"]),G=b.useCallback(function(X){W.current=ql.findDOMNode(X)},[]),q=Ba(G,n),$=Y({className:$t(u.root,d,L.dense&&u.dense,!A&&u.gutters,O&&u.divider,w&&u.disabled,l&&u.button,i!=="center"&&u.alignItemsFlexStart,j&&u.secondaryAction,P&&u.selected),disabled:w},N),U=p||"li";return l&&($.component=p||"div",$.focusVisibleClassName=$t(u.focusVisible,T),U=Ez),j?(U=!$.component&&!p?"div":U,g==="li"&&(U==="li"?U="div":$.component==="li"&&($.component="div")),b.createElement(lI.Provider,{value:L},b.createElement(g,Y({className:$t(u.container,v),ref:q},y),b.createElement(U,$,H),H.pop()))):b.createElement(lI.Provider,{value:L},b.createElement(U,Y({ref:q},$),H))});const ya=or(hun,{name:"MuiListItem"})(gun);var mun=function(t){return{root:{minWidth:56,color:t.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}},vun=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=fn(t,["classes","className"]),a=b.useContext(lI);return b.createElement("div",Y({className:$t(r.root,i,a.alignItems==="flex-start"&&r.alignItemsFlexStart),ref:n},o))});const $0=or(mun,{name:"MuiListItemIcon"})(vun);var bun={root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},Jot=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=fn(t,["classes","className"]);return b.createElement("div",Y({className:$t(r.root,i),ref:n},o))});Jot.muiName="ListItemSecondaryAction";const yun=or(bun,{name:"MuiListItemSecondaryAction"})(Jot);var Mun={root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},Cun=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.disableTypography,s=a===void 0?!1:a,l=t.inset,c=l===void 0?!1:l,u=t.primary,d=t.primaryTypographyProps,p=t.secondary,h=t.secondaryTypographyProps,g=fn(t,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=b.useContext(lI),v=m.dense,y=u??r;y!=null&&y.type!==bt&&!s&&(y=b.createElement(bt,Y({variant:v?"body2":"body1",className:i.primary,component:"span",display:"block"},d),y));var M=p;return M!=null&&M.type!==bt&&!s&&(M=b.createElement(bt,Y({variant:"body2",className:i.secondary,color:"textSecondary",display:"block"},h),M)),b.createElement("div",Y({className:$t(i.root,o,v&&i.dense,c&&i.inset,y&&M&&i.multiline),ref:n},g),y,M)});const na=or(Mun,{name:"MuiListItemText"})(Cun);var xun=function(t){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:t.palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},colorPrimary:{color:t.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}},wun=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.color,a=o===void 0?"default":o,s=t.component,l=s===void 0?"li":s,c=t.disableGutters,u=c===void 0?!1:c,d=t.disableSticky,p=d===void 0?!1:d,h=t.inset,g=h===void 0?!1:h,m=fn(t,["classes","className","color","component","disableGutters","disableSticky","inset"]);return b.createElement(l,Y({className:$t(r.root,i,a!=="default"&&r["color".concat($r(a))],g&&r.inset,!p&&r.sticky,!u&&r.gutters),ref:n},m))});const qv=or(xun,{name:"MuiListSubheader"})(wun);function JIe(e,t){var n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ePe(e,t){var n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function tPe(e){return[e.horizontal,e.vertical].map(function(t){return typeof t=="number"?"".concat(t,"px"):t}).join(" ")}function Sun(e,t){for(var n=t,r=0;n&&n!==e;)n=n.parentElement,r+=n.scrollTop;return r}function lie(e){return typeof e=="function"?e():e}var Aun={root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},Oun=b.forwardRef(function(t,n){var r=t.action,i=t.anchorEl,o=t.anchorOrigin,a=o===void 0?{vertical:"top",horizontal:"left"}:o,s=t.anchorPosition,l=t.anchorReference,c=l===void 0?"anchorEl":l,u=t.children,d=t.classes,p=t.className,h=t.container,g=t.elevation,m=g===void 0?8:g,v=t.getContentAnchorEl,y=t.marginThreshold,M=y===void 0?16:y,C=t.onEnter,x=t.onEntered,w=t.onEntering,S=t.onExit,A=t.onExited,z=t.onExiting,O=t.open,T=t.PaperProps,I=T===void 0?{}:T,P=t.transformOrigin,N=P===void 0?{vertical:"top",horizontal:"left"}:P,F=t.TransitionComponent,L=F===void 0?QK:F,W=t.transitionDuration,H=W===void 0?"auto":W,j=t.TransitionProps,G=j===void 0?{}:j,q=fn(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),$=b.useRef(),U=b.useCallback(function(oe){if(c==="anchorPosition")return s;var ae=lie(i),ne=ae&&ae.nodeType===1?ae:bd($.current).body,le=ne.getBoundingClientRect(),he=oe===0?a.vertical:"center";return{top:le.top+JIe(le,he),left:le.left+ePe(le,a.horizontal)}},[i,a.horizontal,a.vertical,s,c]),X=b.useCallback(function(oe){var ae=0;if(v&&c==="anchorEl"){var ne=v(oe);if(ne&&oe.contains(ne)){var le=Sun(oe,ne);ae=ne.offsetTop+ne.clientHeight/2-le||0}}return ae},[a.vertical,c,v]),Q=b.useCallback(function(oe){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{vertical:JIe(oe,N.vertical)+ae,horizontal:ePe(oe,N.horizontal)}},[N.horizontal,N.vertical]),re=b.useCallback(function(oe){var ae=X(oe),ne={width:oe.offsetWidth,height:oe.offsetHeight},le=Q(ne,ae);if(c==="none")return{top:null,left:null,transformOrigin:tPe(le)};var he=U(ae),be=he.top-le.vertical,me=he.left-le.horizontal,Me=be+ne.height,Oe=me+ne.width,de=$K(lie(i)),ie=de.innerHeight-M,ue=de.innerWidth-M;if(be<M){var Ae=be-M;be-=Ae,le.vertical+=Ae}else if(Me>ie){var Ce=Me-ie;be-=Ce,le.vertical+=Ce}if(me<M){var Ee=me-M;me-=Ee,le.horizontal+=Ee}else if(Oe>ue){var Ge=Oe-ue;me-=Ge,le.horizontal+=Ge}return{top:"".concat(Math.round(be),"px"),left:"".concat(Math.round(me),"px"),transformOrigin:tPe(le)}},[i,c,U,X,Q,M]),ee=b.useCallback(function(){var oe=$.current;if(oe){var ae=re(oe);ae.top!==null&&(oe.style.top=ae.top),ae.left!==null&&(oe.style.left=ae.left),oe.style.transformOrigin=ae.transformOrigin}},[re]),se=function(ae,ne){w&&w(ae,ne),ee()},pe=b.useCallback(function(oe){$.current=ql.findDOMNode(oe)},[]);b.useEffect(function(){O&&ee()}),b.useImperativeHandle(r,function(){return O?{updatePosition:function(){ee()}}:null},[O,ee]),b.useEffect(function(){if(O){var oe=$y(function(){ee()});return window.addEventListener("resize",oe),function(){oe.clear(),window.removeEventListener("resize",oe)}}},[O,ee]);var te=H;H==="auto"&&!L.muiSupportAuto&&(te=void 0);var ce=h||(i?bd(lie(i)).body:void 0);return b.createElement(SMe,Y({container:ce,open:O,ref:n,BackdropProps:{invisible:!0},className:$t(d.root,p)},q),b.createElement(L,Y({appear:!0,in:O,onEnter:C,onEntered:x,onExit:S,onExited:A,onExiting:z,timeout:te},G,{onEntering:Yx(se,G.onEntering)}),b.createElement(kt,Y({elevation:m,ref:pe},I,{className:$t(d.paper,I.className)}),u)))});const S3=or(Aun,{name:"MuiPopover"})(Oun);function cie(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nPe(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eat(e,t){if(t===void 0)return!0;var n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function a4(e,t,n,r,i,o){for(var a=!1,s=i(e,t,t?n:!1);s;){if(s===e.firstChild){if(a)return;a=!0}var l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!eat(s,o)||l)s=i(e,s,n);else{s.focus();return}}}var zun=typeof window>"u"?b.useEffect:b.useLayoutEffect,TMe=b.forwardRef(function(t,n){var r=t.actions,i=t.autoFocus,o=i===void 0?!1:i,a=t.autoFocusItem,s=a===void 0?!1:a,l=t.children,c=t.className,u=t.disabledItemsFocusable,d=u===void 0?!1:u,p=t.disableListWrap,h=p===void 0?!1:p,g=t.onKeyDown,m=t.variant,v=m===void 0?"selectedMenu":m,y=fn(t,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),M=b.useRef(null),C=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});zun(function(){o&&M.current.focus()},[o]),b.useImperativeHandle(r,function(){return{adjustStyleForScrollbar:function(T,I){var P=!M.current.style.width;if(T.clientHeight<M.current.clientHeight&&P){var N="".concat(Got(),"px");M.current.style[I.direction==="rtl"?"paddingLeft":"paddingRight"]=N,M.current.style.width="calc(100% + ".concat(N,")")}return M.current}}},[]);var x=function(T){var I=M.current,P=T.key,N=bd(I).activeElement;if(P==="ArrowDown")T.preventDefault(),a4(I,N,h,d,cie);else if(P==="ArrowUp")T.preventDefault(),a4(I,N,h,d,nPe);else if(P==="Home")T.preventDefault(),a4(I,null,h,d,cie);else if(P==="End")T.preventDefault(),a4(I,null,h,d,nPe);else if(P.length===1){var F=C.current,L=P.toLowerCase(),W=performance.now();F.keys.length>0&&(W-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&L!==F.keys[0]&&(F.repeating=!1)),F.lastTime=W,F.keys.push(L);var H=N&&!F.repeating&&eat(N,F);F.previousKeyMatched&&(H||a4(I,N,!1,d,cie,F))?T.preventDefault():F.previousKeyMatched=!1}g&&g(T)},w=b.useCallback(function(O){M.current=ql.findDOMNode(O)},[]),S=Ba(w,n),A=-1;b.Children.forEach(l,function(O,T){b.isValidElement(O)&&(O.props.disabled||(v==="selectedMenu"&&O.props.selected||A===-1)&&(A=T))});var z=b.Children.map(l,function(O,T){if(T===A){var I={};return s&&(I.autoFocus=!0),O.props.tabIndex===void 0&&v==="selectedMenu"&&(I.tabIndex=0),b.cloneElement(O,I)}return O});return b.createElement(tp,Y({role:"menu",ref:S,className:c,onKeyDown:x,tabIndex:o?0:-1},y),z)}),rPe={vertical:"top",horizontal:"right"},iPe={vertical:"top",horizontal:"left"},Tun={paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},Eun=b.forwardRef(function(t,n){var r=t.autoFocus,i=r===void 0?!0:r,o=t.children,a=t.classes,s=t.disableAutoFocusItem,l=s===void 0?!1:s,c=t.MenuListProps,u=c===void 0?{}:c,d=t.onClose,p=t.onEntering,h=t.open,g=t.PaperProps,m=g===void 0?{}:g,v=t.PopoverClasses,y=t.transitionDuration,M=y===void 0?"auto":y,C=t.TransitionProps;C=C===void 0?{}:C;var x=C.onEntering,w=fn(C,["onEntering"]),S=t.variant,A=S===void 0?"selectedMenu":S,z=fn(t,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),O=oc(),T=i&&!l&&h,I=b.useRef(null),P=b.useRef(null),N=function(){return P.current},F=function(G,q){I.current&&I.current.adjustStyleForScrollbar(G,O),p&&p(G,q),x&&x(G,q)},L=function(G){G.key==="Tab"&&(G.preventDefault(),d&&d(G,"tabKeyDown"))},W=-1;b.Children.map(o,function(j,G){b.isValidElement(j)&&(j.props.disabled||(A!=="menu"&&j.props.selected||W===-1)&&(W=G))});var H=b.Children.map(o,function(j,G){return G===W?b.cloneElement(j,{ref:function($){P.current=ql.findDOMNode($),Uy(j.ref,$)}}):j});return b.createElement(S3,Y({getContentAnchorEl:N,classes:v,onClose:d,TransitionProps:Y({onEntering:F},w),anchorOrigin:O.direction==="rtl"?rPe:iPe,transformOrigin:O.direction==="rtl"?rPe:iPe,PaperProps:Y({},m,{classes:Y({},m.classes,{root:a.paper})}),open:h,ref:n,transitionDuration:M},z),b.createElement(TMe,Y({onKeyDown:L,actions:I,autoFocus:i&&(W===-1||l),autoFocusItem:T,variant:A},u,{className:$t(a.list,u.className)}),H))});const $$=or(Tun,{name:"MuiMenu"})(Eun);var Run=function(t){return{root:Y({},t.typography.body1,tn({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},t.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Y({},t.typography.body2,{minHeight:"auto"})}},Iun=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.component,a=o===void 0?"li":o,s=t.disableGutters,l=s===void 0?!1:s,c=t.ListItemClasses,u=t.role,d=u===void 0?"menuitem":u,p=t.selected,h=t.tabIndex,g=fn(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]),m;return t.disabled||(m=h!==void 0?h:-1),b.createElement(ya,Y({button:!0,role:d,tabIndex:m,component:a,selected:p,disableGutters:l,classes:Y({dense:r.dense},c),className:$t(r.root,i,p&&r.selected,!l&&r.gutters),ref:n},g))});const sr=or(Run,{name:"MuiMenuItem"})(Iun);var tat=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.disabled,a=t.IconComponent,s=t.inputRef,l=t.variant,c=l===void 0?"standard":l,u=fn(t,["classes","className","disabled","IconComponent","inputRef","variant"]);return b.createElement(b.Fragment,null,b.createElement("select",Y({className:$t(r.root,r.select,r[c],i,o&&r.disabled),disabled:o,ref:s||n},u)),t.multiple?null:b.createElement(a,{className:$t(r.icon,r["icon".concat($r(c))],o&&r.disabled)}))});const nat=$i(b.createElement("path",{d:"M7 10l5 5 5-5z"}));var rat=function(t){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:t.palette.type==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:t.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:t.palette.action.active,"&$disabled":{color:t.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Pun=b.createElement(R6,null),iat=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.IconComponent,a=o===void 0?nat:o,s=t.input,l=s===void 0?Pun:s,c=t.inputProps;t.variant;var u=fn(t,["children","classes","IconComponent","input","inputProps","variant"]),d=w3(),p=CD({props:t,muiFormControl:d,states:["variant"]});return b.cloneElement(l,Y({inputComponent:tat,inputProps:Y({children:r,classes:i,IconComponent:a,variant:p.variant,type:void 0},c,l?l.props.inputProps:{}),ref:n},u))});iat.muiName="Select";or(rat,{name:"MuiNativeSelect"})(iat);var Dun=function(t){return{root:{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"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}},kun=b.forwardRef(function(t,n){t.children;var r=t.classes,i=t.className,o=t.label,a=t.labelWidth,s=t.notched,l=t.style,c=fn(t,["children","classes","className","label","labelWidth","notched","style"]),u=oc(),d=u.direction==="rtl"?"right":"left";if(o!==void 0)return b.createElement("fieldset",Y({"aria-hidden":!0,className:$t(r.root,i),ref:n,style:l},c),b.createElement("legend",{className:$t(r.legendLabelled,s&&r.legendNotched)},o?b.createElement("span",null,o):b.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var p=a>0?a*.75+8:.01;return b.createElement("fieldset",Y({"aria-hidden":!0,style:Y(tn({},"padding".concat($r(d)),8),l),className:$t(r.root,i),ref:n},c),b.createElement("legend",{className:r.legend,style:{width:s?p:.01}},b.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))});const Lun=or(Dun,{name:"PrivateNotchedOutline"})(kun);var _un=function(t){var n=t.palette.type==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:t.shape.borderRadius,"&:hover $notchedOutline":{borderColor:t.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:n}},"&$focused $notchedOutline":{borderColor:t.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:t.palette.error.main},"&$disabled $notchedOutline":{borderColor:t.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:t.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:n},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:t.palette.type==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.type==="light"?null:"#fff",caretColor:t.palette.type==="light"?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},oat=b.forwardRef(function(t,n){var r=t.classes,i=t.fullWidth,o=i===void 0?!1:i,a=t.inputComponent,s=a===void 0?"input":a,l=t.label,c=t.labelWidth,u=c===void 0?0:c,d=t.multiline,p=d===void 0?!1:d,h=t.notched,g=t.type,m=g===void 0?"text":g,v=fn(t,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return b.createElement(zMe,Y({renderSuffix:function(M){return b.createElement(Lun,{className:r.notchedOutline,label:l,labelWidth:u,notched:typeof h<"u"?h:!!(M.startAdornment||M.filled||M.focused)})},classes:Y({},r,{root:$t(r.root,r.underline),notchedOutline:null}),fullWidth:o,inputComponent:s,multiline:p,ref:n,type:m},v))});oat.muiName="Input";const aat=or(_un,{name:"MuiOutlinedInput"})(oat);/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.16.1-lts
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */var I6=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Nun=(function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(I6&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0})();function Fun(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Wun(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Nun))}}var qun=I6&&window.Promise,Bun=qun?Fun:Wun;function sat(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function A3(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function EMe(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function P6(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=A3(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:P6(EMe(e))}function lat(e){return e&&e.referenceNode?e.referenceNode:e}var oPe=I6&&!!(window.MSInputMethodContext&&document.documentMode),aPe=I6&&/MSIE 10/.test(navigator.userAgent);function wD(e){return e===11?oPe:e===10?aPe:oPe||aPe}function oP(e){if(!e)return document.documentElement;for(var t=wD(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&A3(n,"position")==="static"?oP(n):n}function jun(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||oP(e.firstElementChild)===e}function Qhe(e){return e.parentNode!==null?Qhe(e.parentNode):e}function U$(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return jun(a)?a:oP(a);var s=Qhe(e);return s.host?U$(s.host,t):U$(e,Qhe(t).host)}function aP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function Hun(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=aP(t,"top"),i=aP(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function sPe(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function lPe(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],wD(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function cat(e){var t=e.body,n=e.documentElement,r=wD(10)&&getComputedStyle(n);return{height:lPe("Height",t,n,r),width:lPe("Width",t,n,r)}}var Vun=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Gun=(function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),sP=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},vf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Qx(e){return vf({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Zhe(e){var t={};try{if(wD(10)){t=e.getBoundingClientRect();var n=aP(e,"top"),r=aP(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?cat(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=A3(e);l-=sPe(u,"x"),c-=sPe(u,"y"),i.width-=l,i.height-=c}return Qx(i)}function RMe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=wD(10),i=t.nodeName==="HTML",o=Zhe(e),a=Zhe(t),s=P6(e),l=A3(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Qx({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(d=Hun(d,t)),d}function $un(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=RMe(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:aP(n),s=t?0:aP(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return Qx(l)}function uat(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(A3(e,"position")==="fixed")return!0;var n=EMe(e);return n?uat(n):!1}function dat(e){if(!e||!e.parentElement||wD())return document.documentElement;for(var t=e.parentElement;t&&A3(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function IMe(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?dat(e):U$(e,lat(t));if(r==="viewport")o=$un(a,i);else{var s=void 0;r==="scrollParent"?(s=P6(EMe(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=RMe(s,a,i);if(s.nodeName==="HTML"&&!uat(a)){var c=cat(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}else o=l}n=n||0;var p=typeof n=="number";return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function Uun(e){var t=e.width,n=e.height;return t*n}function pat(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=IMe(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(p){return vf({key:p},s[p],{area:Uun(s[p])})}).sort(function(p,h){return h.area-p.area}),c=l.filter(function(p){var h=p.width,g=p.height;return h>=n.clientWidth&&g>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function hat(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?dat(t):U$(t,lat(n));return RMe(n,i,r)}function fat(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function X$(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function gat(e,t,n){n=n.split("-")[0];var r=fat(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[c]:i[s]=t[X$(s)],i}function D6(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Xun(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=D6(e,function(i){return i[t]===n});return e.indexOf(r)}function mat(e,t,n){var r=n===void 0?e:e.slice(0,Xun(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&sat(o)&&(t.offsets.popper=Qx(t.offsets.popper),t.offsets.reference=Qx(t.offsets.reference),t=o(t,i))}),t}function Yun(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=hat(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=pat(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=gat(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=mat(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function vat(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function PMe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function Kun(){return this.state.isDestroyed=!0,vat(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[PMe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bat(e){var t=e.ownerDocument;return t?t.defaultView:window}function yat(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||yat(P6(o.parentNode),t,n,r),r.push(o)}function Qun(e,t,n,r){n.updateBound=r,bat(e).addEventListener("resize",n.updateBound,{passive:!0});var i=P6(e);return yat(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Zun(){this.state.eventsEnabled||(this.state=Qun(this.reference,this.options,this.state,this.scheduleUpdate))}function Jun(e,t){return bat(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function edn(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Jun(this.reference,this.state))}function DMe(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Jhe(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&DMe(t[n])&&(r="px"),e.style[n]=t[n]+r})}function tdn(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function ndn(e){return Jhe(e.instance.popper,e.styles),tdn(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Jhe(e.arrowElement,e.arrowStyles),e}function rdn(e,t,n,r,i){var o=hat(i,t,e,n.positionFixed),a=pat(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Jhe(t,{position:n.positionFixed?"fixed":"absolute"}),n}function idn(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(y){return y},l=o(i.width),c=o(r.width),u=["left","right"].indexOf(e.placement)!==-1,d=e.placement.indexOf("-")!==-1,p=l%2===c%2,h=l%2===1&&c%2===1,g=t?u||d||p?o:a:s,m=t?o:s;return{left:g(h&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:g(r.right)}}var odn=I6&&/Firefox/i.test(navigator.userAgent);function adn(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=D6(e.instance.modifiers,function(C){return C.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=o!==void 0?o:t.gpuAcceleration,s=oP(e.instance.popper),l=Zhe(s),c={position:i.position},u=idn(e,window.devicePixelRatio<2||!odn),d=n==="bottom"?"top":"bottom",p=r==="right"?"left":"right",h=PMe("transform"),g=void 0,m=void 0;if(d==="bottom"?s.nodeName==="HTML"?m=-s.clientHeight+u.bottom:m=-l.height+u.bottom:m=u.top,p==="right"?s.nodeName==="HTML"?g=-s.clientWidth+u.right:g=-l.width+u.right:g=u.left,a&&h)c[h]="translate3d("+g+"px, "+m+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var v=d==="bottom"?-1:1,y=p==="right"?-1:1;c[d]=m*v,c[p]=g*y,c.willChange=d+", "+p}var M={"x-placement":e.placement};return e.attributes=vf({},M,e.attributes),e.styles=vf({},c,e.styles),e.arrowStyles=vf({},e.offsets.arrow,e.arrowStyles),e}function Mat(e,t,n){var r=D6(e,function(s){var l=s.name;return l===t}),i=!!r&&e.some(function(s){return s.name===n&&s.enabled&&s.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function sdn(e,t){var n;if(!Mat(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=["left","right"].indexOf(i)!==-1,c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",g=fat(r)[c];s[h]-g<a[d]&&(e.offsets.popper[d]-=a[d]-(s[h]-g)),s[d]+g>a[h]&&(e.offsets.popper[d]+=s[d]+g-a[h]),e.offsets.popper=Qx(e.offsets.popper);var m=s[d]+s[c]/2-g/2,v=A3(e.instance.popper),y=parseFloat(v["margin"+u]),M=parseFloat(v["border"+u+"Width"]),C=m-e.offsets.popper[d]-y-M;return C=Math.max(Math.min(a[c]-g,C),0),e.arrowElement=r,e.offsets.arrow=(n={},sP(n,d,Math.round(C)),sP(n,p,""),n),e}function ldn(e){return e==="end"?"start":e==="start"?"end":e}var Cat=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],uie=Cat.slice(3);function cPe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=uie.indexOf(e),r=uie.slice(n+1).concat(uie.slice(0,n));return t?r.reverse():r}var die={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function cdn(e,t){if(vat(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=IMe(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=X$(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case die.FLIP:a=[r,i];break;case die.CLOCKWISE:a=cPe(r);break;case die.COUNTERCLOCKWISE:a=cPe(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=X$(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p=r==="left"&&d(c.right)>d(u.left)||r==="right"&&d(c.left)<d(u.right)||r==="top"&&d(c.bottom)>d(u.top)||r==="bottom"&&d(c.top)<d(u.bottom),h=d(c.left)<d(n.left),g=d(c.right)>d(n.right),m=d(c.top)<d(n.top),v=d(c.bottom)>d(n.bottom),y=r==="left"&&h||r==="right"&&g||r==="top"&&m||r==="bottom"&&v,M=["top","bottom"].indexOf(r)!==-1,C=!!t.flipVariations&&(M&&o==="start"&&h||M&&o==="end"&&g||!M&&o==="start"&&m||!M&&o==="end"&&v),x=!!t.flipVariationsByContent&&(M&&o==="start"&&g||M&&o==="end"&&h||!M&&o==="start"&&v||!M&&o==="end"&&m),w=C||x;(p||y||w)&&(e.flipped=!0,(p||y)&&(r=a[l+1]),w&&(o=ldn(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=vf({},e.offsets.popper,gat(e.instance.popper,e.offsets.reference,e.placement)),e=mat(e.instance.modifiers,e,"flip"))}),e}function udn(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}function ddn(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=Qx(s);return l[t]/100*o}else if(a==="vh"||a==="vw"){var c=void 0;return a==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*o}else return o}function pdn(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(u){return u.trim()}),s=a.indexOf(D6(a,function(u){return u.search(/,|\s/)!==-1}));a[s]&&a[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=s!==-1?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map(function(u,d){var p=(d===1?!o:o)?"height":"width",h=!1;return u.reduce(function(g,m){return g[g.length-1]===""&&["+","-"].indexOf(m)!==-1?(g[g.length-1]=m,h=!0,g):h?(g[g.length-1]+=m,h=!1,g):g.concat(m)},[]).map(function(g){return ddn(g,p,t,n)})}),c.forEach(function(u,d){u.forEach(function(p,h){DMe(p)&&(i[d]+=p*(u[h-1]==="-"?-1:1))})}),i}function hdn(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return DMe(+n)?l=[+n,0]:l=pdn(n,o,a,s),s==="left"?(o.top+=l[0],o.left-=l[1]):s==="right"?(o.top+=l[0],o.left+=l[1]):s==="top"?(o.left+=l[0],o.top-=l[1]):s==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function fdn(e,t){var n=t.boundariesElement||oP(e.instance.popper);e.instance.reference===n&&(n=oP(n));var r=PMe("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=IMe(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(h){var g=u[h];return u[h]<l[h]&&!t.escapeWithReference&&(g=Math.max(u[h],l[h])),sP({},h,g)},secondary:function(h){var g=h==="right"?"left":"top",m=u[g];return u[h]>l[h]&&!t.escapeWithReference&&(m=Math.min(u[g],l[h]-(h==="right"?u.width:u.height))),sP({},g,m)}};return c.forEach(function(p){var h=["left","top"].indexOf(p)!==-1?"primary":"secondary";u=vf({},u,d[h](p))}),e.offsets.popper=u,e}function gdn(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",c=s?"width":"height",u={start:sP({},l,o[l]),end:sP({},l,o[l]+o[c]-a[c])};e.offsets.popper=vf({},a,u[r])}return e}function mdn(e){if(!Mat(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=D6(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function vdn(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=X$(t),e.offsets.popper=Qx(i),e}var bdn={shift:{order:100,enabled:!0,fn:gdn},offset:{order:200,enabled:!0,fn:hdn,offset:0},preventOverflow:{order:300,enabled:!0,fn:fdn,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:udn},arrow:{order:500,enabled:!0,fn:sdn,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:cdn,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:vdn},hide:{order:800,enabled:!0,fn:mdn},computeStyle:{order:850,enabled:!0,fn:adn,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ndn,onLoad:rdn,gpuAcceleration:void 0}},ydn={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:bdn},ZK=(function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Vun(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Bun(this.update.bind(this)),this.options=vf({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(vf({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=vf({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return vf({name:a},r.options.modifiers[a])}).sort(function(a,s){return a.order-s.order}),this.modifiers.forEach(function(a){a.enabled&&sat(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Gun(e,[{key:"update",value:function(){return Yun.call(this)}},{key:"destroy",value:function(){return Kun.call(this)}},{key:"enableEventListeners",value:function(){return Zun.call(this)}},{key:"disableEventListeners",value:function(){return edn.call(this)}}]),e})();ZK.Utils=(typeof window<"u"?window:global).PopperUtils;ZK.placements=Cat;ZK.Defaults=ydn;function Mdn(e,t){var n=t&&t.direction||"ltr";if(n==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function uPe(e){return typeof e=="function"?e():e}var Cdn=typeof window<"u"?b.useLayoutEffect:b.useEffect,xdn={},xat=b.forwardRef(function(t,n){var r=t.anchorEl,i=t.children,o=t.container,a=t.disablePortal,s=a===void 0?!1:a,l=t.keepMounted,c=l===void 0?!1:l,u=t.modifiers,d=t.open,p=t.placement,h=p===void 0?"bottom":p,g=t.popperOptions,m=g===void 0?xdn:g,v=t.popperRef,y=t.style,M=t.transition,C=M===void 0?!1:M,x=fn(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=b.useRef(null),S=Ba(w,n),A=b.useRef(null),z=Ba(A,v),O=b.useRef(z);Cdn(function(){O.current=z},[z]),b.useImperativeHandle(v,function(){return A.current},[]);var T=b.useState(!0),I=T[0],P=T[1],N=M3(),F=Mdn(h,N),L=b.useState(F),W=L[0],H=L[1];b.useEffect(function(){A.current&&A.current.update()});var j=b.useCallback(function(){if(!(!w.current||!r||!d)){A.current&&(A.current.destroy(),O.current(null));var Q=function(se){H(se.placement)};uPe(r);var re=new ZK(uPe(r),w.current,Y({placement:F},m,{modifiers:Y({},s?{}:{preventOverflow:{boundariesElement:"window"}},u,m.modifiers),onCreate:Yx(Q,m.onCreate),onUpdate:Yx(Q,m.onUpdate)}));O.current(re)}},[r,s,u,d,F,m]),G=b.useCallback(function(Q){Uy(S,Q),j()},[S,j]),q=function(){P(!1)},$=function(){A.current&&(A.current.destroy(),O.current(null))},U=function(){P(!0),$()};if(b.useEffect(function(){return function(){$()}},[]),b.useEffect(function(){!d&&!C&&$()},[d,C]),!c&&!d&&(!C||I))return null;var X={placement:W};return C&&(X.TransitionProps={in:d,onEnter:q,onExited:U}),b.createElement(Vot,{disablePortal:s,container:o},b.createElement("div",Y({ref:G,role:"tooltip"},x,{style:Y({position:"fixed",top:0,left:0,display:!d&&c&&!C?"none":null},y)}),typeof i=="function"?i(X):i))});function Jo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H$(e,t)}function JK(e,t){if(t&&(p1(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xn(e)}function Rz(e){return Rz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rz(e)}function dPe(e,t){return p1(t)==="object"&&t!==null?e===t:String(e)===String(t)}function wdn(e){return e==null||typeof e=="string"&&!e.trim()}var Sdn=b.forwardRef(function(t,n){var r=t["aria-label"],i=t.autoFocus,o=t.autoWidth,a=t.children,s=t.classes,l=t.className,c=t.defaultValue,u=t.disabled,d=t.displayEmpty,p=t.IconComponent,h=t.inputRef,g=t.labelId,m=t.MenuProps,v=m===void 0?{}:m,y=t.multiple,M=t.name,C=t.onBlur,x=t.onChange,w=t.onClose,S=t.onFocus,A=t.onOpen,z=t.open,O=t.readOnly,T=t.renderValue,I=t.SelectDisplayProps,P=I===void 0?{}:I,N=t.tabIndex;t.type;var F=t.value,L=t.variant,W=L===void 0?"standard":L,H=fn(t,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),j=lb({controlled:F,default:c,name:"Select"}),G=Xu(j,2),q=G[0],$=G[1],U=b.useRef(null),X=b.useState(null),Q=X[0],re=X[1],ee=b.useRef(z!=null),se=ee.current,pe=b.useState(),te=pe[0],ce=pe[1],oe=b.useState(!1),ae=oe[0],ne=oe[1],le=Ba(n,h);b.useImperativeHandle(le,function(){return{focus:function(){Q.focus()},node:U.current,value:q}},[Q,q]),b.useEffect(function(){i&&Q&&Q.focus()},[i,Q]),b.useEffect(function(){if(Q){var De=bd(Q).getElementById(g);if(De){var ze=function(){getSelection().isCollapsed&&Q.focus()};return De.addEventListener("click",ze),function(){De.removeEventListener("click",ze)}}}},[g,Q]);var he=function(ze,Ve){ze?A&&A(Ve):w&&w(Ve),se||(ce(o?null:Q.clientWidth),ne(ze))},be=function(ze){ze.button===0&&(ze.preventDefault(),Q.focus(),he(!0,ze))},me=function(ze){he(!1,ze)},Me=b.Children.toArray(a),Oe=function(ze){var Ve=Me.map(function(et){return et.props.value}).indexOf(ze.target.value);if(Ve!==-1){var Ke=Me[Ve];$(Ke.props.value),x&&x(ze,Ke)}},de=function(ze){return function(Ve){y||he(!1,Ve);var Ke;if(y){Ke=Array.isArray(q)?q.slice():[];var et=q.indexOf(ze.props.value);et===-1?Ke.push(ze.props.value):Ke.splice(et,1)}else Ke=ze.props.value;ze.props.onClick&&ze.props.onClick(Ve),q!==Ke&&($(Ke),x&&(Ve.persist(),Object.defineProperty(Ve,"target",{writable:!0,value:{value:Ke,name:M}}),x(Ve,ze)))}},ie=function(ze){if(!O){var Ve=[" ","ArrowUp","ArrowDown","Enter"];Ve.indexOf(ze.key)!==-1&&(ze.preventDefault(),he(!0,ze))}},ue=Q!==null&&(se?z:ae),Ae=function(ze){!ue&&C&&(ze.persist(),Object.defineProperty(ze,"target",{writable:!0,value:{value:q,name:M}}),C(ze))};delete H["aria-invalid"];var Ce,Ee,Ge=[],_e=!1;(OMe({value:q})||d)&&(T?Ce=T(q):_e=!0);var Ie=Me.map(function(De){if(!b.isValidElement(De))return null;var ze;if(y){if(!Array.isArray(q))throw new Error(iP(2));ze=q.some(function(Ve){return dPe(Ve,De.props.value)}),ze&&_e&&Ge.push(De.props.children)}else ze=dPe(q,De.props.value),ze&&_e&&(Ee=De.props.children);return b.cloneElement(De,{"aria-selected":ze?"true":void 0,onClick:de(De),onKeyUp:function(Ke){Ke.key===" "&&Ke.preventDefault(),De.props.onKeyUp&&De.props.onKeyUp(Ke)},role:"option",selected:ze,value:void 0,"data-value":De.props.value})});_e&&(Ce=y?Ge.join(", "):Ee);var Le=te;!o&&se&&Q&&(Le=Q.clientWidth);var we;typeof N<"u"?we=N:we=u?null:0;var ve=P.id||(M?"mui-component-select-".concat(M):void 0);return b.createElement(b.Fragment,null,b.createElement("div",Y({className:$t(s.root,s.select,s.selectMenu,s[W],l,u&&s.disabled),ref:re,tabIndex:we,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":ue?"true":void 0,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[g,ve].filter(Boolean).join(" ")||void 0,onKeyDown:ie,onMouseDown:u||O?null:be,onBlur:Ae,onFocus:S},P,{id:ve}),wdn(Ce)?b.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):Ce),b.createElement("input",Y({value:Array.isArray(q)?q.join(","):q,name:M,ref:U,"aria-hidden":!0,onChange:Oe,tabIndex:-1,className:s.nativeInput,autoFocus:i},H)),b.createElement(p,{className:$t(s.icon,s["icon".concat($r(W))],ue&&s.iconOpen,u&&s.disabled)}),b.createElement($$,Y({id:"menu-".concat(M||""),anchorEl:Q,open:ue,onClose:me},v,{MenuListProps:Y({"aria-labelledby":g,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:Y({},v.PaperProps,{style:Y({minWidth:Le},v.PaperProps!=null?v.PaperProps.style:null)})}),Ie))}),Adn=rat,Odn=b.createElement(R6,null),zdn=b.createElement(Yot,null),wat=b.forwardRef(function e(t,n){var r=t.autoWidth,i=r===void 0?!1:r,o=t.children,a=t.classes,s=t.displayEmpty,l=s===void 0?!1:s,c=t.IconComponent,u=c===void 0?nat:c,d=t.id,p=t.input,h=t.inputProps,g=t.label,m=t.labelId,v=t.labelWidth,y=v===void 0?0:v,M=t.MenuProps,C=t.multiple,x=C===void 0?!1:C,w=t.native,S=w===void 0?!1:w,A=t.onClose,z=t.onOpen,O=t.open,T=t.renderValue,I=t.SelectDisplayProps,P=t.variant,N=P===void 0?"standard":P,F=fn(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),L=S?tat:Sdn,W=w3(),H=CD({props:t,muiFormControl:W,states:["variant"]}),j=H.variant||N,G=p||{standard:Odn,outlined:b.createElement(aat,{label:g,labelWidth:y}),filled:zdn}[j];return b.cloneElement(G,Y({inputComponent:L,inputProps:Y({children:o,IconComponent:u,variant:j,type:void 0,multiple:x},S?{id:d}:{autoWidth:i,displayEmpty:l,labelId:m,MenuProps:M,onClose:A,onOpen:z,open:O,renderValue:T,SelectDisplayProps:Y({id:d},I)},h,{classes:h?mMe({baseClasses:a,newClasses:h.classes,Component:e}):a},p?p.props.inputProps:{}),ref:n},F))});wat.muiName="Select";const ls=or(Adn,{name:"MuiSelect"})(wat);var Tdn=function(t){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Y({zIndex:1},t.typography.body2,{fontSize:t.typography.pxToRem(12),lineHeight:1.2,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:t.palette.primary.contrastText,transform:"rotate(45deg)"}}};function Edn(e){var t=e.children,n=e.classes,r=e.className,i=e.open,o=e.value,a=e.valueLabelDisplay;return a==="off"?t:b.cloneElement(t,{className:$t(t.props.className,(i||a==="on")&&n.open,n.thumb)},b.createElement("span",{className:$t(n.offset,r)},b.createElement("span",{className:n.circle},b.createElement("span",{className:n.label},o))))}const Rdn=or(Tdn,{name:"PrivateValueLabel"})(Edn);function pie(e,t){return e-t}function hie(e,t,n){return Math.min(Math.max(t,e),n)}function pPe(e,t){var n=e.reduce(function(i,o,a){var s=Math.abs(t-o);return i===null||s<i.distance||s===i.distance?{distance:s,index:a}:i},null),r=n.index;return r}function a8(e,t){if(t.current!==void 0&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function s8(e,t,n){return(e-t)*100/(n-t)}function Idn(e,t,n){return(n-t)*e+t}function Pdn(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}function hPe(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Pdn(t)))}function fPe(e){var t=e.values,n=e.source,r=e.newValue,i=e.index;if(t[i]===r)return n;var o=t.slice();return o[i]=r,o}function l8(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;(!t.current.contains(document.activeElement)||Number(document.activeElement.getAttribute("data-index"))!==n)&&t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var c8={horizontal:{offset:function(t){return{left:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},"horizontal-reverse":{offset:function(t){return{right:"".concat(t,"%")}},leap:function(t){return{width:"".concat(t,"%")}}},vertical:{offset:function(t){return{bottom:"".concat(t,"%")}},leap:function(t){return{height:"".concat(t,"%")}}}},gPe=function(t){return t},Ddn=function(t){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:t.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:t.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:t.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:t.palette.type==="light"?bW(t.palette.primary.main,.62):vW(t.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow"],{duration:t.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(jo(t.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(jo(t.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(jo(t.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(jo(t.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:t.palette.background.paper,opacity:.8},markLabel:Y({},t.typography.body2,{color:t.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:t.palette.text.primary}}},kdn=b.forwardRef(function(t,n){var r=t["aria-label"],i=t["aria-labelledby"],o=t["aria-valuetext"],a=t.classes,s=t.className,l=t.color,c=l===void 0?"primary":l,u=t.component,d=u===void 0?"span":u,p=t.defaultValue,h=t.disabled,g=h===void 0?!1:h,m=t.getAriaLabel,v=t.getAriaValueText,y=t.marks,M=y===void 0?!1:y,C=t.max,x=C===void 0?100:C,w=t.min,S=w===void 0?0:w,A=t.name,z=t.onChange,O=t.onChangeCommitted,T=t.onMouseDown,I=t.orientation,P=I===void 0?"horizontal":I,N=t.scale,F=N===void 0?gPe:N,L=t.step,W=L===void 0?1:L,H=t.ThumbComponent,j=H===void 0?"span":H,G=t.track,q=G===void 0?"normal":G,$=t.value,U=t.ValueLabelComponent,X=U===void 0?Rdn:U,Q=t.valueLabelDisplay,re=Q===void 0?"off":Q,ee=t.valueLabelFormat,se=ee===void 0?gPe:ee,pe=fn(t,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),te=oc(),ce=b.useRef(),oe=b.useState(-1),ae=oe[0],ne=oe[1],le=b.useState(-1),he=le[0],be=le[1],me=lb({controlled:$,default:p,name:"Slider"}),Me=Xu(me,2),Oe=Me[0],de=Me[1],ie=Array.isArray(Oe),ue=ie?Oe.slice().sort(pie):[Oe];ue=ue.map(function(lt){return hie(lt,S,x)});var Ae=M===!0&&W!==null?S6(Array(Math.floor((x-S)/W)+1)).map(function(lt,Je){return{value:S+W*Je}}):M||[],Ce=XK(),Ee=Ce.isFocusVisible,Ge=Ce.onBlurVisible,_e=Ce.ref,Ie=b.useState(-1),Le=Ie[0],we=Ie[1],ve=b.useRef(),De=Ba(_e,ve),ze=Ba(n,De),Ve=ms(function(lt){var Je=Number(lt.currentTarget.getAttribute("data-index"));Ee(lt)&&we(Je),be(Je)}),Ke=ms(function(){Le!==-1&&(we(-1),Ge()),be(-1)}),et=ms(function(lt){var Je=Number(lt.currentTarget.getAttribute("data-index"));be(Je)}),it=ms(function(){be(-1)}),Ft=te.direction==="rtl",Pt=ms(function(lt){var Je=Number(lt.currentTarget.getAttribute("data-index")),ft=ue[Je],Tt=(x-S)/10,St=Ae.map(function(si){return si.value}),un=St.indexOf(ft),$n,Yr=Ft?"ArrowLeft":"ArrowRight",yr=Ft?"ArrowRight":"ArrowLeft";switch(lt.key){case"Home":$n=S;break;case"End":$n=x;break;case"PageUp":W&&($n=ft+Tt);break;case"PageDown":W&&($n=ft-Tt);break;case Yr:case"ArrowUp":W?$n=ft+W:$n=St[un+1]||St[St.length-1];break;case yr:case"ArrowDown":W?$n=ft-W:$n=St[un-1]||St[0];break;default:return}if(lt.preventDefault(),W&&($n=hPe($n,W,S)),$n=hie($n,S,x),ie){var dr=$n;$n=fPe({values:ue,source:Oe,newValue:$n,index:Je}).sort(pie),l8({sliderRef:ve,activeIndex:$n.indexOf(dr)})}de($n),we(Je),z&&z(lt,$n),O&&O(lt,$n)}),Qn=b.useRef(),ir=P;Ft&&P!=="vertical"&&(ir+="-reverse");var jn=function(Je){var ft=Je.finger,Tt=Je.move,St=Tt===void 0?!1:Tt,un=Je.values,$n=Je.source,Yr=ve.current,yr=Yr.getBoundingClientRect(),dr=yr.width,si=yr.height,Go=yr.bottom,$o=yr.left,Ki;ir.indexOf("vertical")===0?Ki=(Go-ft.y)/si:Ki=(ft.x-$o)/dr,ir.indexOf("-reverse")!==-1&&(Ki=1-Ki);var di;if(di=Idn(Ki,S,x),W)di=hPe(di,W,S);else{var Dt=Ae.map(function(Jr){return Jr.value}),It=pPe(Dt,di);di=Dt[It]}di=hie(di,S,x);var Hn=0;if(ie){St?Hn=Qn.current:Hn=pPe(un,di);var jr=di;di=fPe({values:un,source:$n,newValue:di,index:Hn}).sort(pie),Hn=di.indexOf(jr),Qn.current=Hn}return{newValue:di,activeIndex:Hn}},Zn=ms(function(lt){var Je=a8(lt,ce);if(Je){var ft=jn({finger:Je,move:!0,values:ue,source:Oe}),Tt=ft.newValue,St=ft.activeIndex;l8({sliderRef:ve,activeIndex:St,setActive:ne}),de(Tt),z&&z(lt,Tt)}}),Br=ms(function(lt){var Je=a8(lt,ce);if(Je){var ft=jn({finger:Je,values:ue,source:Oe}),Tt=ft.newValue;ne(-1),lt.type==="touchend"&&be(-1),O&&O(lt,Tt),ce.current=void 0;var St=bd(ve.current);St.removeEventListener("mousemove",Zn),St.removeEventListener("mouseup",Br),St.removeEventListener("touchmove",Zn),St.removeEventListener("touchend",Br)}}),vr=ms(function(lt){lt.preventDefault();var Je=lt.changedTouches[0];Je!=null&&(ce.current=Je.identifier);var ft=a8(lt,ce),Tt=jn({finger:ft,values:ue,source:Oe}),St=Tt.newValue,un=Tt.activeIndex;l8({sliderRef:ve,activeIndex:un,setActive:ne}),de(St),z&&z(lt,St);var $n=bd(ve.current);$n.addEventListener("touchmove",Zn),$n.addEventListener("touchend",Br)});b.useEffect(function(){var lt=ve.current;lt.addEventListener("touchstart",vr);var Je=bd(lt);return function(){lt.removeEventListener("touchstart",vr),Je.removeEventListener("mousemove",Zn),Je.removeEventListener("mouseup",Br),Je.removeEventListener("touchmove",Zn),Je.removeEventListener("touchend",Br)}},[Br,Zn,vr]);var Ne=ms(function(lt){T&&T(lt),lt.preventDefault();var Je=a8(lt,ce),ft=jn({finger:Je,values:ue,source:Oe}),Tt=ft.newValue,St=ft.activeIndex;l8({sliderRef:ve,activeIndex:St,setActive:ne}),de(Tt),z&&z(lt,Tt);var un=bd(ve.current);un.addEventListener("mousemove",Zn),un.addEventListener("mouseup",Br)}),He=s8(ie?ue[0]:S,S,x),Xe=s8(ue[ue.length-1],S,x)-He,ct=Y({},c8[ir].offset(He),c8[ir].leap(Xe));return b.createElement(d,Y({ref:ze,className:$t(a.root,a["color".concat($r(c))],s,g&&a.disabled,Ae.length>0&&Ae.some(function(lt){return lt.label})&&a.marked,q===!1&&a.trackFalse,P==="vertical"&&a.vertical,q==="inverted"&&a.trackInverted),onMouseDown:Ne},pe),b.createElement("span",{className:a.rail}),b.createElement("span",{className:a.track,style:ct}),b.createElement("input",{value:ue.join(","),name:A,type:"hidden"}),Ae.map(function(lt,Je){var ft=s8(lt.value,S,x),Tt=c8[ir].offset(ft),St;return q===!1?St=ue.indexOf(lt.value)!==-1:St=q==="normal"&&(ie?lt.value>=ue[0]&&lt.value<=ue[ue.length-1]:lt.value<=ue[0])||q==="inverted"&&(ie?lt.value<=ue[0]||lt.value>=ue[ue.length-1]:lt.value>=ue[0]),b.createElement(b.Fragment,{key:lt.value},b.createElement("span",{style:Tt,"data-index":Je,className:$t(a.mark,St&&a.markActive)}),lt.label!=null?b.createElement("span",{"aria-hidden":!0,"data-index":Je,style:Tt,className:$t(a.markLabel,St&&a.markLabelActive)},lt.label):null)}),ue.map(function(lt,Je){var ft=s8(lt,S,x),Tt=c8[ir].offset(ft);return b.createElement(X,{key:Je,valueLabelFormat:se,valueLabelDisplay:re,className:a.valueLabel,value:typeof se=="function"?se(F(lt),Je):se,index:Je,open:he===Je||ae===Je||re==="on",disabled:g},b.createElement(j,{className:$t(a.thumb,a["thumbColor".concat($r(c))],ae===Je&&a.active,g&&a.disabled,Le===Je&&a.focusVisible),tabIndex:g?null:0,role:"slider",style:Tt,"data-index":Je,"aria-label":m?m(Je):r,"aria-labelledby":i,"aria-orientation":P,"aria-valuemax":F(x),"aria-valuemin":F(S),"aria-valuenow":F(lt),"aria-valuetext":v?v(F(lt),Je):o,onKeyDown:Pt,onFocus:Ve,onBlur:Ke,onMouseOver:et,onMouseLeave:it}))}))});const Ldn=or(Ddn,{name:"MuiSlider"})(kdn);var _dn=function(t){var n=t.palette.type==="light"?.8:.98,r=TA(t.palette.background.default,n);return{root:Y({},t.typography.body2,tn({color:t.palette.getContrastText(r),backgroundColor:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:t.shape.borderRadius,flexGrow:1},t.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}},Ndn=b.forwardRef(function(t,n){var r=t.action,i=t.classes,o=t.className,a=t.message,s=t.role,l=s===void 0?"alert":s,c=fn(t,["action","classes","className","message","role"]);return b.createElement(kt,Y({role:l,square:!0,elevation:6,className:$t(i.root,o),ref:n},c),b.createElement("div",{className:i.message},a),r?b.createElement("div",{className:i.action},r):null)});const Fdn=or(_dn,{name:"MuiSnackbarContent"})(Ndn);var Wdn=function(t){var n={top:8},r={bottom:8},i={justifyContent:"flex-end"},o={justifyContent:"flex-start"},a={top:24},s={bottom:24},l={right:24},c={left:24},u={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:t.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Y({},n,tn({},t.breakpoints.up("sm"),Y({},a,u))),anchorOriginBottomCenter:Y({},r,tn({},t.breakpoints.up("sm"),Y({},s,u))),anchorOriginTopRight:Y({},n,i,tn({},t.breakpoints.up("sm"),Y({left:"auto"},a,l))),anchorOriginBottomRight:Y({},r,i,tn({},t.breakpoints.up("sm"),Y({left:"auto"},s,l))),anchorOriginTopLeft:Y({},n,o,tn({},t.breakpoints.up("sm"),Y({right:"auto"},a,c))),anchorOriginBottomLeft:Y({},r,o,tn({},t.breakpoints.up("sm"),Y({right:"auto"},s,c)))}},qdn=b.forwardRef(function(t,n){var r=t.action,i=t.anchorOrigin;i=i===void 0?{vertical:"bottom",horizontal:"center"}:i;var o=i.vertical,a=i.horizontal,s=t.autoHideDuration,l=s===void 0?null:s,c=t.children,u=t.classes,d=t.className,p=t.ClickAwayListenerProps,h=t.ContentProps,g=t.disableWindowBlurListener,m=g===void 0?!1:g,v=t.message,y=t.onClose,M=t.onEnter,C=t.onEntered,x=t.onEntering,w=t.onExit,S=t.onExited,A=t.onExiting,z=t.onMouseEnter,O=t.onMouseLeave,T=t.open,I=t.resumeHideDuration,P=t.TransitionComponent,N=P===void 0?QK:P,F=t.transitionDuration,L=F===void 0?{enter:lh.enteringScreen,exit:lh.leavingScreen}:F,W=t.TransitionProps,H=fn(t,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),j=b.useRef(),G=b.useState(!0),q=G[0],$=G[1],U=ms(function(){y&&y.apply(void 0,arguments)}),X=ms(function(oe){!y||oe==null||(clearTimeout(j.current),j.current=setTimeout(function(){U(null,"timeout")},oe))});b.useEffect(function(){return T&&X(l),function(){clearTimeout(j.current)}},[T,l,X]);var Q=function(){clearTimeout(j.current)},re=b.useCallback(function(){l!=null&&X(I??l*.5)},[l,I,X]),ee=function(ae){z&&z(ae),Q()},se=function(ae){O&&O(ae),re()},pe=function(ae){y&&y(ae,"clickaway")},te=function(){$(!0)},ce=function(){$(!1)};return b.useEffect(function(){if(!m&&T)return window.addEventListener("focus",re),window.addEventListener("blur",Q),function(){window.removeEventListener("focus",re),window.removeEventListener("blur",Q)}},[m,re,T]),!T&&q?null:b.createElement(Bln,Y({onClickAway:pe},p),b.createElement("div",Y({className:$t(u.root,u["anchorOrigin".concat($r(o)).concat($r(a))],d),onMouseEnter:ee,onMouseLeave:se,ref:n},H),b.createElement(N,Y({appear:!0,in:T,onEnter:Yx(ce,M),onEntered:C,onEntering:x,onExit:w,onExited:Yx(te,S),onExiting:A,timeout:L,direction:o==="top"?"down":"up"},W),c||b.createElement(Fdn,Y({message:v,action:r},h)))))});const pr=or(Wdn,{flip:!1,name:"MuiSnackbar"})(qdn);var Bdn=function(t){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:t.palette.type==="light"?t.palette.grey[50]:t.palette.grey[400],transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:t.palette.type==="light"?t.palette.grey[400]:t.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:t.palette.type==="light"?.12:.1}},colorPrimary:{"&$checked":{color:t.palette.primary.main,"&:hover":{backgroundColor:jo(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.type==="light"?t.palette.grey[400]:t.palette.grey[800]},"&$checked + $track":{backgroundColor:t.palette.primary.main},"&$disabled + $track":{backgroundColor:t.palette.type==="light"?t.palette.common.black:t.palette.common.white}},colorSecondary:{"&$checked":{color:t.palette.secondary.main,"&:hover":{backgroundColor:jo(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.type==="light"?t.palette.grey[400]:t.palette.grey[800]},"&$checked + $track":{backgroundColor:t.palette.secondary.main},"&$disabled + $track":{backgroundColor:t.palette.type==="light"?t.palette.common.black:t.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:t.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.palette.type==="light"?t.palette.common.black:t.palette.common.white,opacity:t.palette.type==="light"?.38:.3}}},jdn=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.color,a=o===void 0?"secondary":o,s=t.edge,l=s===void 0?!1:s,c=t.size,u=c===void 0?"medium":c,d=fn(t,["classes","className","color","edge","size"]),p=b.createElement("span",{className:r.thumb});return b.createElement("span",{className:$t(r.root,i,{start:r.edgeStart,end:r.edgeEnd}[l],u==="small"&&r["size".concat($r(u))])},b.createElement(jot,Y({type:"checkbox",icon:p,checkedIcon:p,classes:{root:$t(r.switchBase,r["color".concat($r(a))]),input:r.input,checked:r.checked,disabled:r.disabled},ref:n},d)),b.createElement("span",{className:r.track}))});const Y$=or(Bdn,{name:"MuiSwitch"})(jdn);var Hdn=function(t){var n;return{root:Y({},t.typography.button,(n={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},tn(n,t.breakpoints.up("sm"),{padding:"6px 24px"}),tn(n,"overflow","hidden"),tn(n,"whiteSpace","normal"),tn(n,"textAlign","center"),tn(n,t.breakpoints.up("sm"),{minWidth:160}),n)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:t.palette.text.secondary,"&$selected":{color:t.palette.primary.main},"&$disabled":{color:t.palette.text.disabled}},textColorSecondary:{color:t.palette.text.secondary,"&$selected":{color:t.palette.secondary.main},"&$disabled":{color:t.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:t.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}},Vdn=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.disabled,a=o===void 0?!1:o,s=t.disableFocusRipple,l=s===void 0?!1:s,c=t.fullWidth,u=t.icon,d=t.indicator,p=t.label,h=t.onChange,g=t.onClick,m=t.onFocus,v=t.selected,y=t.selectionFollowsFocus,M=t.textColor,C=M===void 0?"inherit":M,x=t.value,w=t.wrapped,S=w===void 0?!1:w,A=fn(t,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]),z=function(I){h&&h(I,x),g&&g(I)},O=function(I){y&&!v&&h&&h(I,x),m&&m(I)};return b.createElement(Ez,Y({focusRipple:!l,className:$t(r.root,r["textColor".concat($r(C))],i,a&&r.disabled,v&&r.selected,p&&u&&r.labelIcon,c&&r.fullWidth,S&&r.wrapped),ref:n,role:"tab","aria-selected":v,disabled:a,onClick:z,onFocus:O,tabIndex:v?0:-1},A),b.createElement("span",{className:r.wrapper},u,p),d)});const $N=or(Hdn,{name:"MuiTab"})(Vdn);var Gdn=function(t){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:tn({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),regular:t.mixins.toolbar,dense:{minHeight:48}}},$dn=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.component,a=o===void 0?"div":o,s=t.disableGutters,l=s===void 0?!1:s,c=t.variant,u=c===void 0?"regular":c,d=fn(t,["classes","className","component","disableGutters","variant"]);return b.createElement(a,Y({className:$t(r.root,r[u],i,!l&&r.gutters),ref:n},d))});const eQ=or(Gdn,{name:"MuiToolbar"})($dn),Udn=$i(b.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),Xdn=$i(b.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));var bE;function Sat(){if(bE)return bE;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),bE="reverse",e.scrollLeft>0?bE="default":(e.scrollLeft=1,e.scrollLeft===0&&(bE="negative")),document.body.removeChild(e),bE}function mPe(e,t){var n=e.scrollLeft;if(t!=="rtl")return n;var r=Sat();switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function Ydn(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Kdn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},o=r.ease,a=o===void 0?Ydn:o,s=r.duration,l=s===void 0?300:s,c=null,u=t[e],d=!1,p=function(){d=!0},h=function g(m){if(d){i(new Error("Animation cancelled"));return}c===null&&(c=m);var v=Math.min(1,(m-c)/l);if(t[e]=a(v)*(n-u)+u,v>=1){requestAnimationFrame(function(){i(null)});return}requestAnimationFrame(g)};return u===n?(i(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}var Qdn={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Zdn(e){var t=e.onChange,n=fn(e,["onChange"]),r=b.useRef(),i=b.useRef(null),o=function(){r.current=i.current.offsetHeight-i.current.clientHeight};return b.useEffect(function(){var a=$y(function(){var s=r.current;o(),s!==r.current&&t(r.current)});return window.addEventListener("resize",a),function(){a.clear(),window.removeEventListener("resize",a)}},[t]),b.useEffect(function(){o(),t(r.current)},[t]),b.createElement("div",Y({style:Qdn,ref:i},n))}var Jdn=function(t){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},colorPrimary:{backgroundColor:t.palette.primary.main},colorSecondary:{backgroundColor:t.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}},e0n=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.color,a=t.orientation,s=fn(t,["classes","className","color","orientation"]);return b.createElement("span",Y({className:$t(r.root,r["color".concat($r(o))],i,a==="vertical"&&r.vertical),ref:n},s))});const t0n=or(Jdn,{name:"PrivateTabIndicator"})(e0n);var n0n={root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},r0n=b.createElement(Udn,{fontSize:"small"}),i0n=b.createElement(Xdn,{fontSize:"small"}),o0n=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=t.direction,a=t.orientation,s=t.disabled,l=fn(t,["classes","className","direction","orientation","disabled"]);return b.createElement(Ez,Y({component:"div",className:$t(r.root,i,s&&r.disabled,a==="vertical"&&r.vertical),ref:n,role:null,tabIndex:null},l),o==="left"?r0n:i0n)});const a0n=or(n0n,{name:"MuiTabScrollButton"})(o0n);var s0n=function(t){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:tn({},t.breakpoints.down("xs"),{display:"none"}),indicator:{}}},l0n=b.forwardRef(function(t,n){var r=t["aria-label"],i=t["aria-labelledby"],o=t.action,a=t.centered,s=a===void 0?!1:a,l=t.children,c=t.classes,u=t.className,d=t.component,p=d===void 0?"div":d,h=t.indicatorColor,g=h===void 0?"secondary":h,m=t.onChange,v=t.orientation,y=v===void 0?"horizontal":v,M=t.ScrollButtonComponent,C=M===void 0?a0n:M,x=t.scrollButtons,w=x===void 0?"auto":x,S=t.selectionFollowsFocus,A=t.TabIndicatorProps,z=A===void 0?{}:A,O=t.TabScrollButtonProps,T=t.textColor,I=T===void 0?"inherit":T,P=t.value,N=t.variant,F=N===void 0?"standard":N,L=fn(t,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),W=oc(),H=F==="scrollable",j=W.direction==="rtl",G=y==="vertical",q=G?"scrollTop":"scrollLeft",$=G?"top":"left",U=G?"bottom":"right",X=G?"clientHeight":"clientWidth",Q=G?"height":"width",re=b.useState(!1),ee=re[0],se=re[1],pe=b.useState({}),te=pe[0],ce=pe[1],oe=b.useState({start:!1,end:!1}),ae=oe[0],ne=oe[1],le=b.useState({overflow:"hidden",marginBottom:null}),he=le[0],be=le[1],me=new Map,Me=b.useRef(null),Oe=b.useRef(null),de=function(){var it=Me.current,Ft;if(it){var Pt=it.getBoundingClientRect();Ft={clientWidth:it.clientWidth,scrollLeft:it.scrollLeft,scrollTop:it.scrollTop,scrollLeftNormalized:mPe(it,W.direction),scrollWidth:it.scrollWidth,top:Pt.top,bottom:Pt.bottom,left:Pt.left,right:Pt.right}}var Qn;if(it&&P!==!1){var ir=Oe.current.children;if(ir.length>0){var jn=ir[me.get(P)];Qn=jn?jn.getBoundingClientRect():null}}return{tabsMeta:Ft,tabMeta:Qn}},ie=ms(function(){var et,it=de(),Ft=it.tabsMeta,Pt=it.tabMeta,Qn=0;if(Pt&&Ft)if(G)Qn=Pt.top-Ft.top+Ft.scrollTop;else{var ir=j?Ft.scrollLeftNormalized+Ft.clientWidth-Ft.scrollWidth:Ft.scrollLeft;Qn=Pt.left-Ft.left+ir}var jn=(et={},tn(et,$,Qn),tn(et,Q,Pt?Pt[Q]:0),et);if(isNaN(te[$])||isNaN(te[Q]))ce(jn);else{var Zn=Math.abs(te[$]-jn[$]),Br=Math.abs(te[Q]-jn[Q]);(Zn>=1||Br>=1)&&ce(jn)}}),ue=function(it){Kdn(q,Me.current,it)},Ae=function(it){var Ft=Me.current[q];G?Ft+=it:(Ft+=it*(j?-1:1),Ft*=j&&Sat()==="reverse"?-1:1),ue(Ft)},Ce=function(){Ae(-Me.current[X])},Ee=function(){Ae(Me.current[X])},Ge=b.useCallback(function(et){be({overflow:null,marginBottom:-et})},[]),_e=function(){var it={};it.scrollbarSizeListener=H?b.createElement(Zdn,{className:c.scrollable,onChange:Ge}):null;var Ft=ae.start||ae.end,Pt=H&&(w==="auto"&&Ft||w==="desktop"||w==="on");return it.scrollButtonStart=Pt?b.createElement(C,Y({orientation:y,direction:j?"right":"left",onClick:Ce,disabled:!ae.start,className:$t(c.scrollButtons,w!=="on"&&c.scrollButtonsDesktop)},O)):null,it.scrollButtonEnd=Pt?b.createElement(C,Y({orientation:y,direction:j?"left":"right",onClick:Ee,disabled:!ae.end,className:$t(c.scrollButtons,w!=="on"&&c.scrollButtonsDesktop)},O)):null,it},Ie=ms(function(){var et=de(),it=et.tabsMeta,Ft=et.tabMeta;if(!(!Ft||!it)){if(Ft[$]<it[$]){var Pt=it[q]+(Ft[$]-it[$]);ue(Pt)}else if(Ft[U]>it[U]){var Qn=it[q]+(Ft[U]-it[U]);ue(Qn)}}}),Le=ms(function(){if(H&&w!=="off"){var et=Me.current,it=et.scrollTop,Ft=et.scrollHeight,Pt=et.clientHeight,Qn=et.scrollWidth,ir=et.clientWidth,jn,Zn;if(G)jn=it>1,Zn=it<Ft-Pt-1;else{var Br=mPe(Me.current,W.direction);jn=j?Br<Qn-ir-1:Br>1,Zn=j?Br>1:Br<Qn-ir-1}(jn!==ae.start||Zn!==ae.end)&&ne({start:jn,end:Zn})}});b.useEffect(function(){var et=$y(function(){ie(),Le()}),it=$K(Me.current);return it.addEventListener("resize",et),function(){et.clear(),it.removeEventListener("resize",et)}},[ie,Le]);var we=b.useCallback($y(function(){Le()}));b.useEffect(function(){return function(){we.clear()}},[we]),b.useEffect(function(){se(!0)},[]),b.useEffect(function(){ie(),Le()}),b.useEffect(function(){Ie()},[Ie,te]),b.useImperativeHandle(o,function(){return{updateIndicator:ie,updateScrollButtons:Le}},[ie,Le]);var ve=b.createElement(t0n,Y({className:c.indicator,orientation:y,color:g},z,{style:Y({},te,z.style)})),De=0,ze=b.Children.map(l,function(et){if(!b.isValidElement(et))return null;var it=et.props.value===void 0?De:et.props.value;me.set(it,De);var Ft=it===P;return De+=1,b.cloneElement(et,{fullWidth:F==="fullWidth",indicator:Ft&&!ee&&ve,selected:Ft,selectionFollowsFocus:S,onChange:m,textColor:I,value:it})}),Ve=function(it){var Ft=it.target,Pt=Ft.getAttribute("role");if(Pt==="tab"){var Qn=null,ir=y!=="vertical"?"ArrowLeft":"ArrowUp",jn=y!=="vertical"?"ArrowRight":"ArrowDown";switch(y!=="vertical"&&W.direction==="rtl"&&(ir="ArrowRight",jn="ArrowLeft"),it.key){case ir:Qn=Ft.previousElementSibling||Oe.current.lastChild;break;case jn:Qn=Ft.nextElementSibling||Oe.current.firstChild;break;case"Home":Qn=Oe.current.firstChild;break;case"End":Qn=Oe.current.lastChild;break}Qn!==null&&(Qn.focus(),it.preventDefault())}},Ke=_e();return b.createElement(p,Y({className:$t(c.root,u,G&&c.vertical),ref:n},L),Ke.scrollButtonStart,Ke.scrollbarSizeListener,b.createElement("div",{className:$t(c.scroller,H?c.scrollable:c.fixed),style:he,ref:Me,onScroll:we},b.createElement("div",{"aria-label":r,"aria-labelledby":i,className:$t(c.flexContainer,G&&c.flexContainerVertical,s&&!H&&c.centered),onKeyDown:Ve,ref:Oe,role:"tablist"},ze),ee&&ve),Ke.scrollButtonEnd)});const Aat=or(s0n,{name:"MuiTabs"})(l0n);var c0n={standard:R6,filled:Yot,outlined:aat},u0n={root:{}},d0n=b.forwardRef(function(t,n){var r=t.autoComplete,i=t.autoFocus,o=i===void 0?!1:i,a=t.children,s=t.classes,l=t.className,c=t.color,u=c===void 0?"primary":c,d=t.defaultValue,p=t.disabled,h=p===void 0?!1:p,g=t.error,m=g===void 0?!1:g,v=t.FormHelperTextProps,y=t.fullWidth,M=y===void 0?!1:y,C=t.helperText,x=t.hiddenLabel,w=t.id,S=t.InputLabelProps,A=t.inputProps,z=t.InputProps,O=t.inputRef,T=t.label,I=t.multiline,P=I===void 0?!1:I,N=t.name,F=t.onBlur,L=t.onChange,W=t.onFocus,H=t.placeholder,j=t.required,G=j===void 0?!1:j,q=t.rows,$=t.rowsMax,U=t.maxRows,X=t.minRows,Q=t.select,re=Q===void 0?!1:Q,ee=t.SelectProps,se=t.type,pe=t.value,te=t.variant,ce=te===void 0?"standard":te,oe=fn(t,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),ae={};if(ce==="outlined"&&(S&&typeof S.shrink<"u"&&(ae.notched=S.shrink),T)){var ne,le=(ne=S?.required)!==null&&ne!==void 0?ne:G;ae.label=b.createElement(b.Fragment,null,T,le&&" *")}re&&((!ee||!ee.native)&&(ae.id=void 0),ae["aria-describedby"]=void 0);var he=C&&w?"".concat(w,"-helper-text"):void 0,be=T&&w?"".concat(w,"-label"):void 0,me=c0n[ce],Me=b.createElement(me,Y({"aria-describedby":he,autoComplete:r,autoFocus:o,defaultValue:d,fullWidth:M,multiline:P,name:N,rows:q,rowsMax:$,maxRows:U,minRows:X,type:se,value:pe,id:w,inputRef:O,onBlur:F,onChange:L,onFocus:W,placeholder:H,inputProps:A},ae,z));return b.createElement(ja,Y({className:$t(s.root,l),disabled:h,error:m,fullWidth:M,hiddenLabel:x,ref:n,required:G,color:u,variant:ce},oe),T&&b.createElement(il,Y({htmlFor:w,id:be},S),T),re?b.createElement(ls,Y({"aria-describedby":he,id:w,labelId:be,value:pe,input:Me},ee),a):Me,C&&b.createElement(KK,Y({id:he},v),C))});const je=or(u0n,{name:"MuiTextField"})(d0n);function vPe(e){return Math.round(e*1e5)/1e5}function p0n(){return{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}}}var h0n=function(t){return{popper:{zIndex:t.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:p0n(),tooltip:{backgroundColor:jo(t.palette.grey[700],.9),borderRadius:t.shape.borderRadius,color:t.palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(10),lineHeight:"".concat(vPe(14/10),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:jo(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(vPe(16/14),"em"),fontWeight:t.typography.fontWeightRegular},tooltipPlacementLeft:tn({transformOrigin:"right center",margin:"0 24px "},t.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:tn({transformOrigin:"left center",margin:"0 24px"},t.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:tn({transformOrigin:"center bottom",margin:"24px 0"},t.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:tn({transformOrigin:"center top",margin:"24px 0"},t.breakpoints.up("sm"),{margin:"14px 0"})}},u8=!1,fie=null,f0n=b.forwardRef(function(t,n){var r=t.arrow,i=r===void 0?!1:r,o=t.children,a=t.classes,s=t.disableFocusListener,l=s===void 0?!1:s,c=t.disableHoverListener,u=c===void 0?!1:c,d=t.disableTouchListener,p=d===void 0?!1:d,h=t.enterDelay,g=h===void 0?100:h,m=t.enterNextDelay,v=m===void 0?0:m,y=t.enterTouchDelay,M=y===void 0?700:y,C=t.id,x=t.interactive,w=x===void 0?!1:x,S=t.leaveDelay,A=S===void 0?0:S,z=t.leaveTouchDelay,O=z===void 0?1500:z,T=t.onClose,I=t.onOpen,P=t.open,N=t.placement,F=N===void 0?"bottom":N,L=t.PopperComponent,W=L===void 0?xat:L,H=t.PopperProps,j=t.title,G=t.TransitionComponent,q=G===void 0?QK:G,$=t.TransitionProps,U=fn(t,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),X=oc(),Q=b.useState(),re=Q[0],ee=Q[1],se=b.useState(null),pe=se[0],te=se[1],ce=b.useRef(!1),oe=b.useRef(),ae=b.useRef(),ne=b.useRef(),le=b.useRef(),he=lb({controlled:P,default:!1,name:"Tooltip",state:"open"}),be=Xu(he,2),me=be[0],Me=be[1],Oe=me,de=yMe(C);b.useEffect(function(){return function(){clearTimeout(oe.current),clearTimeout(ae.current),clearTimeout(ne.current),clearTimeout(le.current)}},[]);var ie=function(Ne){clearTimeout(fie),u8=!0,Me(!0),I&&I(Ne)},ue=function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(He){var Xe=o.props;He.type==="mouseover"&&Xe.onMouseOver&&Ne&&Xe.onMouseOver(He),!(ce.current&&He.type!=="touchstart")&&(re&&re.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(ne.current),g||u8&&v?(He.persist(),ae.current=setTimeout(function(){ie(He)},u8?v:g)):ie(He))}},Ae=XK(),Ce=Ae.isFocusVisible,Ee=Ae.onBlurVisible,Ge=Ae.ref,_e=b.useState(!1),Ie=_e[0],Le=_e[1],we=function(){Ie&&(Le(!1),Ee())},ve=function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(He){re||ee(He.currentTarget),Ce(He)&&(Le(!0),ue()(He));var Xe=o.props;Xe.onFocus&&Ne&&Xe.onFocus(He)}},De=function(Ne){clearTimeout(fie),fie=setTimeout(function(){u8=!1},800+A),Me(!1),T&&T(Ne),clearTimeout(oe.current),oe.current=setTimeout(function(){ce.current=!1},X.transitions.duration.shortest)},ze=function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return function(He){var Xe=o.props;He.type==="blur"&&(Xe.onBlur&&Ne&&Xe.onBlur(He),we()),He.type==="mouseleave"&&Xe.onMouseLeave&&He.currentTarget===re&&Xe.onMouseLeave(He),clearTimeout(ae.current),clearTimeout(ne.current),He.persist(),ne.current=setTimeout(function(){De(He)},A)}},Ve=function(Ne){ce.current=!0;var He=o.props;He.onTouchStart&&He.onTouchStart(Ne)},Ke=function(Ne){Ve(Ne),clearTimeout(ne.current),clearTimeout(oe.current),clearTimeout(le.current),Ne.persist(),le.current=setTimeout(function(){ue()(Ne)},M)},et=function(Ne){o.props.onTouchEnd&&o.props.onTouchEnd(Ne),clearTimeout(le.current),clearTimeout(ne.current),Ne.persist(),ne.current=setTimeout(function(){De(Ne)},O)},it=Ba(ee,n),Ft=Ba(Ge,it),Pt=b.useCallback(function(vr){Uy(Ft,ql.findDOMNode(vr))},[Ft]),Qn=Ba(o.ref,Pt);j===""&&(Oe=!1);var ir=!Oe&&!u,jn=Y({"aria-describedby":Oe?de:null,title:ir&&typeof j=="string"?j:null},U,o.props,{className:$t(U.className,o.props.className),onTouchStart:Ve,ref:Qn}),Zn={};p||(jn.onTouchStart=Ke,jn.onTouchEnd=et),u||(jn.onMouseOver=ue(),jn.onMouseLeave=ze(),w&&(Zn.onMouseOver=ue(!1),Zn.onMouseLeave=ze(!1))),l||(jn.onFocus=ve(),jn.onBlur=ze(),w&&(Zn.onFocus=ve(!1),Zn.onBlur=ze(!1)));var Br=b.useMemo(function(){return Ux({popperOptions:{modifiers:{arrow:{enabled:!!pe,element:pe}}}},H)},[pe,H]);return b.createElement(b.Fragment,null,b.cloneElement(o,jn),b.createElement(W,Y({className:$t(a.popper,w&&a.popperInteractive,i&&a.popperArrow),placement:F,anchorEl:re,open:re?Oe:!1,id:jn["aria-describedby"],transition:!0},Zn,Br),function(vr){var Ne=vr.placement,He=vr.TransitionProps;return b.createElement(q,Y({timeout:X.transitions.duration.shorter},He,$),b.createElement("div",{className:$t(a.tooltip,a["tooltipPlacement".concat($r(Ne.split("-")[0]))],ce.current&&a.touch,i&&a.tooltipArrow)},j,i?b.createElement("span",{className:a.arrow,ref:te}):null))}))});const tl=or(h0n,{name:"MuiTooltip",flip:!1})(f0n);class SD{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const CW=typeof window>"u"||"Deno"in window;function Kh(){}function g0n(e,t){return typeof e=="function"?e(t):e}function efe(e){return typeof e=="number"&&e>=0&&e!==1/0}function Oat(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Y5(e,t,n){return k6(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function m0n(e,t,n){return k6(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function kC(e,t,n){return k6(e)?[{...t,queryKey:e},n]:[e||{},t]}function bPe(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(k6(a)){if(r){if(t.queryHash!==kMe(a,t.options))return!1}else if(!K$(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function yPe(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(k6(o)){if(!t.options.mutationKey)return!1;if(n){if(aO(t.options.mutationKey)!==aO(o))return!1}else if(!K$(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function kMe(e,t){return(t?.queryKeyHashFn||aO)(e)}function aO(e){return JSON.stringify(e,(t,n)=>tfe(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function K$(e,t){return zat(e,t)}function zat(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!zat(e[n],t[n])):!1}function Tat(e,t){if(e===t)return e;const n=MPe(e)&&MPe(t);if(n||tfe(e)&&tfe(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let s=0;for(let l=0;l<o;l++){const c=n?l:i[l];a[c]=Tat(e[c],t[c]),a[c]===e[c]&&s++}return r===o&&s===r?e:a}return t}function Q$(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function MPe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function tfe(e){if(!CPe(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!CPe(n)||!n.hasOwnProperty("isPrototypeOf"))}function CPe(e){return Object.prototype.toString.call(e)==="[object Object]"}function k6(e){return Array.isArray(e)}function Eat(e){return new Promise(t=>{setTimeout(t,e)})}function xPe(e){Eat(0).then(e)}function v0n(){if(typeof AbortController=="function")return new AbortController}function nfe(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Tat(e,t):t}class b0n extends SD{constructor(){super(),this.setup=t=>{if(!CW&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Z$=new b0n,wPe=["online","offline"];class y0n extends SD{constructor(){super(),this.setup=t=>{if(!CW&&window.addEventListener){const n=()=>t();return wPe.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{wPe.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const J$=new y0n;function M0n(e){return Math.min(1e3*2**e,3e4)}function tQ(e){return(e??"online")==="online"?J$.isOnline():!0}class Rat{constructor(t){this.revert=t?.revert,this.silent=t?.silent}}function QG(e){return e instanceof Rat}function Iat(e){let t=!1,n=0,r=!1,i,o,a;const s=new Promise((v,y)=>{o=v,a=y}),l=v=>{r||(h(new Rat(v)),e.abort==null||e.abort())},c=()=>{t=!0},u=()=>{t=!1},d=()=>!Z$.isFocused()||e.networkMode!=="always"&&!J$.isOnline(),p=v=>{r||(r=!0,e.onSuccess==null||e.onSuccess(v),i?.(),o(v))},h=v=>{r||(r=!0,e.onError==null||e.onError(v),i?.(),a(v))},g=()=>new Promise(v=>{i=y=>{const M=r||!d();return M&&v(y),M},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let v;try{v=e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(p).catch(y=>{var M,C;if(r)return;const x=(M=e.retry)!=null?M:3,w=(C=e.retryDelay)!=null?C:M0n,S=typeof w=="function"?w(n,y):w,A=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,y);if(t||!A){h(y);return}n++,e.onFail==null||e.onFail(n,y),Eat(S).then(()=>{if(d())return g()}).then(()=>{t?h(y):m()})})};return tQ(e.networkMode)?m():g().then(m),{promise:s,cancel:l,continue:()=>i?.()?s:Promise.resolve(),cancelRetry:c,continueRetry:u}}const LMe=console;function C0n(){let e=[],t=0,n=u=>{u()},r=u=>{u()};const i=u=>{let d;t++;try{d=u()}finally{t--,t||s()}return d},o=u=>{t?e.push(u):xPe(()=>{n(u)})},a=u=>(...d)=>{o(()=>{u(...d)})},s=()=>{const u=e;e=[],u.length&&xPe(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:a,schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u}}}const Jl=C0n();class Pat{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),efe(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(CW?1/0:300*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class x0n extends Pat{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||LMe,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||w0n(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=nfe(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(Kh).catch(Kh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Oat(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(g=>g.options.queryFn);h&&this.setOptions(h.options)}const a=v0n(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),u={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(l(u),(r=this.options.behavior)==null||r.onFetch(u),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=u.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=u.fetchOptions)==null?void 0:d.meta})}const p=h=>{if(QG(h)&&h.silent||this.dispatch({type:"error",error:h}),!QG(h)){var g,m,v,y;(g=(m=this.cache.config).onError)==null||g.call(m,h,this),(v=(y=this.cache.config).onSettled)==null||v.call(y,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Iat({fn:u.fetchFn,abort:a?.abort.bind(a),onSuccess:h=>{var g,m,v,y;if(typeof h>"u"){p(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(g=(m=this.cache.config).onSuccess)==null||g.call(m,h,this),(v=(y=this.cache.config).onSettled)==null||v.call(y,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(h,g)=>{this.dispatch({type:"failed",failureCount:h,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,o;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:tQ(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return QG(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Jl.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function w0n(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class S0n extends SD{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const o=n.queryKey,a=(i=n.queryHash)!=null?i:kMe(o,n);let s=this.get(a);return s||(s=new x0n({cache:this,logger:t.getLogger(),queryKey:o,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Jl.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=kC(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>bPe(r,i))}findAll(t,n){const[r]=kC(t,n);return Object.keys(r).length>0?this.queries.filter(i=>bPe(r,i)):this.queries}notify(t){Jl.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){Jl.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Jl.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class A0n extends Pat{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||LMe,this.observers=[],this.state=t.state||Dat(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var A;return this.retryer=Iat({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(z,O)=>{this.dispatch({type:"failed",failureCount:z,error:O})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(A=this.options.retry)!=null?A:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,o,a,s,l,c,u;if(!n){var d,p,h,g;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(p=this.mutationCache.config).onMutate)==null?void 0:d.call(p,this.state.variables,this));const z=await((h=(g=this.options).onMutate)==null?void 0:h.call(g,this.state.variables));z!==this.state.context&&this.dispatch({type:"loading",context:z,variables:this.state.variables})}const A=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,A,this.state.variables,this.state.context,this)),await((o=(a=this.options).onSuccess)==null?void 0:o.call(a,A,this.state.variables,this.state.context)),await((s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,A,null,this.state.variables,this.state.context,this)),await((c=(u=this.options).onSettled)==null?void 0:c.call(u,A,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:A}),A}catch(A){try{var m,v,y,M,C,x,w,S;throw await((m=(v=this.mutationCache.config).onError)==null?void 0:m.call(v,A,this.state.variables,this.state.context,this)),await((y=(M=this.options).onError)==null?void 0:y.call(M,A,this.state.variables,this.state.context)),await((C=(x=this.mutationCache.config).onSettled)==null?void 0:C.call(x,void 0,A,this.state.variables,this.state.context,this)),await((w=(S=this.options).onSettled)==null?void 0:w.call(S,void 0,A,this.state.variables,this.state.context)),A}finally{this.dispatch({type:"error",error:A})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!tQ(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Jl.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Dat(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class O0n extends SD{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new A0n({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Jl.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>yPe(t,n))}findAll(t){return this.mutations.filter(n=>yPe(t,n))}notify(t){Jl.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return Jl.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(Kh)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function z0n(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,c=l?.pageParam,u=l?.direction==="forward",d=l?.direction==="backward",p=((o=e.state.data)==null?void 0:o.pages)||[],h=((a=e.state.data)==null?void 0:a.pageParams)||[];let g=h,m=!1;const v=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var A;if((A=e.signal)!=null&&A.aborted)m=!0;else{var z;(z=e.signal)==null||z.addEventListener("abort",()=>{m=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),M=(S,A,z,O)=>(g=O?[A,...g]:[...g,A],O?[z,...S]:[...S,z]),C=(S,A,z,O)=>{if(m)return Promise.reject("Cancelled");if(typeof z>"u"&&!A&&S.length)return Promise.resolve(S);const T={queryKey:e.queryKey,pageParam:z,meta:e.options.meta};v(T);const I=y(T);return Promise.resolve(I).then(N=>M(S,z,N,O))};let x;if(!p.length)x=C([]);else if(u){const S=typeof c<"u",A=S?c:SPe(e.options,p);x=C(p,S,A)}else if(d){const S=typeof c<"u",A=S?c:T0n(e.options,p);x=C(p,S,A,!0)}else{g=[];const S=typeof e.options.getNextPageParam>"u";x=(s&&p[0]?s(p[0],0,p):!0)?C([],S,h[0]):Promise.resolve(M([],h[0],p[0]));for(let z=1;z<p.length;z++)x=x.then(O=>{if(s&&p[z]?s(p[z],z,p):!0){const I=S?h[z]:SPe(e.options,O);return C(O,S,I)}return Promise.resolve(M(O,h[z],p[z]))})}return x.then(S=>({pages:S,pageParams:g}))}}}}function SPe(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function T0n(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class E0n{constructor(t={}){this.queryCache=t.queryCache||new S0n,this.mutationCache=t.mutationCache||new O0n,this.logger=t.logger||LMe,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Z$.subscribe(()=>{Z$.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=J$.subscribe(()=>{J$.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=kC(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=Y5(t,n,r),o=this.getQueryData(i.queryKey);return o?Promise.resolve(o):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),o=i?.state.data,a=g0n(n,o);if(typeof a>"u")return;const s=Y5(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Jl.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=kC(t,n),i=this.queryCache;Jl.batch(()=>{i.findAll(r).forEach(o=>{i.remove(o)})})}resetQueries(t,n,r){const[i,o]=kC(t,n,r),a=this.queryCache,s={type:"active",...i};return Jl.batch(()=>(a.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(s,o)))}cancelQueries(t,n,r){const[i,o={}]=kC(t,n,r);typeof o.revert>"u"&&(o.revert=!0);const a=Jl.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(o)));return Promise.all(a).then(Kh).catch(Kh)}invalidateQueries(t,n,r){const[i,o]=kC(t,n,r);return Jl.batch(()=>{var a,s;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(a=(s=i.refetchType)!=null?s:i.type)!=null?a:"active"};return this.refetchQueries(l,o)})}refetchQueries(t,n,r){const[i,o]=kC(t,n,r),a=Jl.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var c;return l.fetch(void 0,{...o,cancelRefetch:(c=o?.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}})}));let s=Promise.all(a).then(Kh);return o!=null&&o.throwOnError||(s=s.catch(Kh)),s}fetchQuery(t,n,r){const i=Y5(t,n,r),o=this.defaultQueryOptions(i);typeof o.retry>"u"&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Kh).catch(Kh)}fetchInfiniteQuery(t,n,r){const i=Y5(t,n,r);return i.behavior=z0n(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Kh).catch(Kh)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>aO(t)===aO(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>K$(t,r.queryKey));return n?.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>aO(t)===aO(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>K$(t,r.mutationKey));return n?.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t?.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=kMe(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t?.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class R0n extends SD{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),APe(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rfe(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rfe(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Q$(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const o=this.hasListeners();o&&OPe(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return P0n(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Kh)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),CW||this.currentResult.isStale||!efe(this.options.staleTime))return;const n=Oat(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(CW||this.options.enabled===!1||!efe(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Z$.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,o=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,l=t!==r,c=l?t.state:this.currentQueryInitialState,u=l?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:p,error:h,errorUpdatedAt:g,fetchStatus:m,status:v}=d,y=!1,M=!1,C;if(n._optimisticResults){const z=this.hasListeners(),O=!z&&APe(t,n),T=z&&OPe(t,r,n,i);(O||T)&&(m=tQ(t.options.networkMode)?"fetching":"paused",p||(v="loading")),n._optimisticResults==="isRestoring"&&(m="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&u!=null&&u.isSuccess&&v!=="error")C=u.data,p=u.dataUpdatedAt,v=u.status,y=!0;else if(n.select&&typeof d.data<"u")if(o&&d.data===a?.data&&n.select===this.selectFn)C=this.selectResult;else try{this.selectFn=n.select,C=n.select(d.data),C=nfe(o?.data,C,n),this.selectResult=C,this.selectError=null}catch(z){this.selectError=z}else C=d.data;if(typeof n.placeholderData<"u"&&typeof C>"u"&&v==="loading"){let z;if(o!=null&&o.isPlaceholderData&&n.placeholderData===s?.placeholderData)z=o.data;else if(z=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof z<"u")try{z=n.select(z),this.selectError=null}catch(O){this.selectError=O}typeof z<"u"&&(v="success",C=nfe(o?.data,z,n),M=!0)}this.selectError&&(h=this.selectError,C=this.selectResult,g=Date.now(),v="error");const x=m==="fetching",w=v==="loading",S=v==="error";return{status:v,fetchStatus:m,isLoading:w,isSuccess:v==="success",isError:S,isInitialLoading:w&&x,data:C,dataUpdatedAt:p,error:h,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:S&&d.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:M,isPreviousData:y,isRefetchError:S&&d.dataUpdatedAt!==0,isStale:_Me(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Q$(r,n))return;this.currentResult=r;const i={cache:!0},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!this.trackedProps.size)return!0;const l=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(c=>{const u=c;return this.currentResult[u]!==n[u]&&l.has(u)})};t?.listeners!==!1&&o()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n?.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!QG(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Jl.batch(()=>{if(t.onSuccess){var n,r,i,o;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(o=this.options).onSettled)==null||i.call(o,this.currentResult.data,null)}else if(t.onError){var a,s,l,c;(a=(s=this.options).onError)==null||a.call(s,this.currentResult.error),(l=(c=this.options).onSettled)==null||l.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function I0n(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function APe(e,t){return I0n(e,t)||e.state.dataUpdatedAt>0&&rfe(e,t,t.refetchOnMount)}function rfe(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&_Me(e,t)}return!1}function OPe(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&_Me(e,n)}function _Me(e,t){return e.isStaleByTime(t.staleTime)}function P0n(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Q$(e.getCurrentResult(),t)}let D0n=class extends SD{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Q$(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Dat(),n=t.status==="loading",r={...t,isLoading:n,isPending:n,isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=r}notify(t){Jl.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,o;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(o=this.mutateOptions).onSettled)==null||i.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var a,s,l,c;(a=(s=this.mutateOptions).onError)==null||a.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(c=this.mutateOptions).onSettled)==null||l.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)})})}};var gie={exports:{}},mie={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var zPe;function k0n(){if(zPe)return mie;zPe=1;var e=Wr();function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(d,p){var h=p(),g=r({inst:{value:h,getSnapshot:p}}),m=g[0].inst,v=g[1];return o(function(){m.value=h,m.getSnapshot=p,l(m)&&v({inst:m})},[d,h,p]),i(function(){return l(m)&&v({inst:m}),d(function(){l(m)&&v({inst:m})})},[d]),a(h),h}function l(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!n(d,h)}catch{return!0}}function c(d,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return mie.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,mie}var TPe;function kat(){return TPe||(TPe=1,gie.exports=k0n()),gie.exports}var NMe=kat();const Lat=NMe.useSyncExternalStore,EPe=b.createContext(void 0),_at=b.createContext(!1);function Nat(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=EPe),window.ReactQueryClientContext):EPe)}const Gf=({context:e}={})=>{const t=b.useContext(Nat(e,b.useContext(_at)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},L0n=({client:e,children:t,context:n,contextSharing:r=!1})=>{b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=Nat(n,r);return b.createElement(_at.Provider,{value:!n&&r},b.createElement(i.Provider,{value:e},t))},Fat=b.createContext(!1),_0n=()=>b.useContext(Fat);Fat.Provider;function N0n(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const F0n=b.createContext(N0n()),W0n=()=>b.useContext(F0n);function Wat(e,t){return typeof e=="function"?e(...t):!!e}const q0n=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},B0n=e=>{b.useEffect(()=>{e.clearReset()},[e])},j0n=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Wat(n,[e.error,r]),H0n=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},V0n=(e,t)=>e.isLoading&&e.isFetching&&!t,G0n=(e,t,n)=>e?.suspense&&V0n(t,n),$0n=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function U0n(e,t){const n=Gf({context:e.context}),r=_0n(),i=W0n(),o=n.defaultQueryOptions(e);o._optimisticResults=r?"isRestoring":"optimistic",o.onError&&(o.onError=Jl.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=Jl.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=Jl.batchCalls(o.onSettled)),H0n(o),q0n(o,i),B0n(i);const[a]=b.useState(()=>new t(n,o)),s=a.getOptimisticResult(o);if(Lat(b.useCallback(l=>{const c=r?()=>{}:a.subscribe(Jl.batchCalls(l));return a.updateResult(),c},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),b.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),G0n(o,s,r))throw $0n(o,a,i);if(j0n({result:s,errorResetBoundary:i,useErrorBoundary:o.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return o.notifyOnChangeProps?s:a.trackResult(s)}function Bl(e,t,n){const r=Y5(e,t,n);return U0n(r,R0n)}function aa(e,t,n){const r=m0n(e,t,n),i=Gf({context:r.context}),[o]=b.useState(()=>new D0n(i,r));b.useEffect(()=>{o.setOptions(r)},[o,r]);const a=Lat(b.useCallback(l=>o.subscribe(Jl.batchCalls(l)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),s=b.useCallback((l,c)=>{o.mutate(l,c).catch(X0n)},[o]);if(a.error&&Wat(o.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function X0n(){}var s4={},vie={exports:{}},RPe;function ri(){return RPe||(RPe=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(vie)),vie.exports}var bie={exports:{}},yie={exports:{}},IPe;function Y0n(){return IPe||(IPe=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(yie)),yie.exports}var PPe;function ii(){return PPe||(PPe=1,(function(e){var t=Y0n().default;function n(r,i){if(typeof WeakMap=="function")var o=new WeakMap,a=new WeakMap;return(e.exports=n=function(l,c){if(!c&&l&&l.__esModule)return l;var u,d,p={__proto__:null,default:l};if(l===null||t(l)!="object"&&typeof l!="function")return p;if(u=c?a:o){if(u.has(l))return u.get(l);u.set(l,p)}for(var h in l)h!=="default"&&{}.hasOwnProperty.call(l,h)&&((d=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(l,h))&&(d.get||d.set)?u(p,h,d):p[h]=l[h]);return p},e.exports.__esModule=!0,e.exports.default=e.exports)(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(bie)),bie.exports}var Mie={};const K0n=oK(Nsn);var DPe;function oi(){return DPe||(DPe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=K0n})(Mie)),Mie}var kPe;function Q0n(){if(kPe)return s4;kPe=1;var e=ri(),t=ii();Object.defineProperty(s4,"__esModule",{value:!0}),s4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");return s4.default=i,s4}var Z0n=Q0n();const nQ=qn(Z0n),J0n=$i(b.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),e1n=$i(b.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),t1n=$i(b.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"})),n1n=$i(b.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),qat=$i(b.createElement("path",{d:"M19 6.41L17.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"}));var r1n=function(t){var n=t.palette.type==="light"?vW:bW,r=t.palette.type==="light"?bW:vW;return{root:Y({},t.typography.body2,{borderRadius:t.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:n(t.palette.success.main,.6),backgroundColor:r(t.palette.success.main,.9),"& $icon":{color:t.palette.success.main}},standardInfo:{color:n(t.palette.info.main,.6),backgroundColor:r(t.palette.info.main,.9),"& $icon":{color:t.palette.info.main}},standardWarning:{color:n(t.palette.warning.main,.6),backgroundColor:r(t.palette.warning.main,.9),"& $icon":{color:t.palette.warning.main}},standardError:{color:n(t.palette.error.main,.6),backgroundColor:r(t.palette.error.main,.9),"& $icon":{color:t.palette.error.main}},outlinedSuccess:{color:n(t.palette.success.main,.6),border:"1px solid ".concat(t.palette.success.main),"& $icon":{color:t.palette.success.main}},outlinedInfo:{color:n(t.palette.info.main,.6),border:"1px solid ".concat(t.palette.info.main),"& $icon":{color:t.palette.info.main}},outlinedWarning:{color:n(t.palette.warning.main,.6),border:"1px solid ".concat(t.palette.warning.main),"& $icon":{color:t.palette.warning.main}},outlinedError:{color:n(t.palette.error.main,.6),border:"1px solid ".concat(t.palette.error.main),"& $icon":{color:t.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.success.main},filledInfo:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.info.main},filledWarning:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.warning.main},filledError:{color:"#fff",fontWeight:t.typography.fontWeightMedium,backgroundColor:t.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}},LPe={success:b.createElement(J0n,{fontSize:"inherit"}),warning:b.createElement(e1n,{fontSize:"inherit"}),error:b.createElement(t1n,{fontSize:"inherit"}),info:b.createElement(n1n,{fontSize:"inherit"})},i1n=b.createElement(qat,{fontSize:"small"}),o1n=b.forwardRef(function(t,n){var r=t.action,i=t.children,o=t.classes,a=t.className,s=t.closeText,l=s===void 0?"Close":s,c=t.color,u=t.icon,d=t.iconMapping,p=d===void 0?LPe:d,h=t.onClose,g=t.role,m=g===void 0?"alert":g,v=t.severity,y=v===void 0?"success":v,M=t.variant,C=M===void 0?"standard":M,x=fn(t,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return b.createElement(kt,Y({role:m,square:!0,elevation:0,className:$t(o.root,o["".concat(C).concat($r(c||y))],a),ref:n},x),u!==!1?b.createElement("div",{className:o.icon},u||p[y]||LPe[y]):null,b.createElement("div",{className:o.message},i),r!=null?b.createElement("div",{className:o.action},r):null,r==null&&h?b.createElement("div",{className:o.action},b.createElement(yn,{size:"small","aria-label":l,title:l,color:"inherit",onClick:h},i1n)):null)});const Pr=or(r1n,{name:"MuiAlert"})(o1n),rQ=$i(b.createElement("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.9959.9959 0 00-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"})),iQ=$i(b.createElement("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.9959.9959 0 00-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"})),oQ=$i(b.createElement("path",{d:"M10 17l5-5-5-5v10z"})),a1n=$i(b.createElement("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"})),lP=$i(b.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"})),s1n=$i(b.createElement("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})),l1n=$i(b.createElement("path",{d:"M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"})),Bat=$i(b.createElement("path",{d:"M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"})),c1n=$i(b.createElement("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"})),L6=$i(b.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),aQ=$i(b.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),u1n=$i(b.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"})),FMe=$i(b.createElement("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"})),d1n=$i(b.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})),_Pe=$i(b.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),NPe=$i(b.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),p1n=$i(b.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"})),h1n=$i(b.createElement("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"})),jat=$i(b.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"})),Hat=$i(b.createElement("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"})),f1n=$i(b.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})),Vat=$i(b.createElement("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})),g1n=$i(b.createElement("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"})),Gat=$i(b.createElement("path",{d:"M8 5v14l11-7z"})),m1n=$i(b.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})),v1n=$i(b.createElement("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})),b1n=$i(b.createElement("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})),sQ=$i(b.createElement("path",{d:"M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"})),y1n=$i(b.createElement("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"})),M1n=$i(b.createElement("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"})),$at=$i(b.createElement("path",{d:"M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"})),C1n=$i(b.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})),To=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Uat(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Uat(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ife(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Uat(e))&&(r&&(r+=" "),r+=t);return r}function Iz(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],s=t[o];if(!s)r[o]=a||{};else if(!a)r[o]=s;else{r[o]={...s};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const c=l;r[o][c]=Iz(a[c],s[c],n)}}}else o==="className"&&n&&t.className?r.className=ife(e?.className,t?.className):o==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[o]===void 0&&(r[o]=e[o])}return r}function WMe(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Iz(t.components[n].defaultProps,r)}var Cie={exports:{}},hs={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var FPe;function x1n(){if(FPe)return hs;FPe=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function g(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case e:switch(m=m.type,m){case n:case i:case r:case l:case c:case p:return m;default:switch(m=m&&m.$$typeof,m){case a:case s:case d:case u:return m;case o:return m;default:return v}}case t:return v}}}return hs.ContextConsumer=o,hs.ContextProvider=a,hs.Element=e,hs.ForwardRef=s,hs.Fragment=n,hs.Lazy=d,hs.Memo=u,hs.Portal=t,hs.Profiler=i,hs.StrictMode=r,hs.Suspense=l,hs.SuspenseList=c,hs.isContextConsumer=function(m){return g(m)===o},hs.isContextProvider=function(m){return g(m)===a},hs.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},hs.isForwardRef=function(m){return g(m)===s},hs.isFragment=function(m){return g(m)===n},hs.isLazy=function(m){return g(m)===d},hs.isMemo=function(m){return g(m)===u},hs.isPortal=function(m){return g(m)===t},hs.isProfiler=function(m){return g(m)===i},hs.isStrictMode=function(m){return g(m)===r},hs.isSuspense=function(m){return g(m)===l},hs.isSuspenseList=function(m){return g(m)===c},hs.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===i||m===r||m===l||m===c||typeof m=="object"&&m!==null&&(m.$$typeof===d||m.$$typeof===u||m.$$typeof===a||m.$$typeof===o||m.$$typeof===s||m.$$typeof===h||m.getModuleId!==void 0)},hs.typeOf=g,hs}var WPe;function w1n(){return WPe||(WPe=1,Cie.exports=x1n()),Cie.exports}var Xat=w1n();function Bv(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Yat(e){if(b.isValidElement(e)||Xat.isValidElementType(e)||!Bv(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Yat(e[n])}),t}function v0(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Bv(e)&&Bv(t)&&Object.keys(t).forEach(i=>{b.isValidElement(t[i])||Xat.isValidElementType(t[i])?r[i]=t[i]:Bv(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Bv(e[i])?r[i]=v0(e[i],t[i],n):n.clone?r[i]=Bv(t[i])?Yat(t[i]):t[i]:r[i]=t[i]}),r}const S1n=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function A1n(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=S1n(t),a=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-r/100}${n})`}function u(p){return a.indexOf(p)+1<a.length?c(p,a[a.indexOf(p)+1]):s(p)}function d(p){const h=a.indexOf(p);return h===0?s(a[1]):h===a.length-1?l(a[h]):c(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:o,up:s,down:l,between:c,only:u,not:d,unit:n,...i}}function Xy(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function qPe(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{const o=/min-width:\s*([0-9.]+)/;return+(r.match(o)?.[1]||0)-+(i.match(o)?.[1]||0)});return n.length?n.reduce((r,i)=>{const o=t[i];return delete r[i],r[i]=o,r},{...t}):t}function O1n(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function z1n(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function T1n(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function n(o,a){o.up=(...s)=>t(e.breakpoints.up(...s),a),o.down=(...s)=>t(e.breakpoints.down(...s),a),o.between=(...s)=>t(e.breakpoints.between(...s),a),o.only=(...s)=>t(e.breakpoints.only(...s),a),o.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},i=o=>(n(r,o),r);return n(i),{...e,containerQueries:i}}const E1n={borderRadius:4};function UN(e,t){return t?v0(e,t,{clone:!1}):e}const lQ={xs:0,sm:600,md:900,lg:1200,xl:1536},BPe={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lQ[e]}px)`},R1n={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:lQ[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Yy(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||BPe;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||BPe;return Object.keys(t).reduce((a,s)=>{if(O1n(o.keys,s)){const l=z1n(r.containerQueries?r:R1n,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||lQ).includes(s)){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function I1n(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function jPe(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function jt(e){if(typeof e!="string")throw new Error(Xy(7));return e.charAt(0).toUpperCase()+e.slice(1)}function cQ(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function e9(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=cQ(e,n)||r,t&&(i=t(i,r,e)),i}function Dc(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=cQ(l,r)||{};return Yy(a,s,d=>{let p=e9(c,i,d);return d===p&&typeof d=="string"&&(p=e9(c,i,`${t}${d==="default"?"":jt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function P1n(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const D1n={m:"margin",p:"padding"},k1n={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},HPe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},L1n=P1n(e=>{if(e.length>2)if(HPe[e])e=HPe[e];else return[e];const[t,n]=e.split(""),r=D1n[t],i=k1n[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),qMe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],BMe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qMe,...BMe];function _6(e,t,n,r){const i=cQ(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:typeof i=="string"?i.startsWith("var(")&&o===0?0:i.startsWith("var(")&&o===1?i:`calc(${o} * ${i})`:i*o:Array.isArray(i)?o=>{if(typeof o=="string")return o;const a=Math.abs(o),s=i[a];return o>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof i=="function"?i:()=>{}}function jMe(e){return _6(e,"spacing",8)}function N6(e,t){return typeof t=="string"||t==null?t:e(t)}function _1n(e,t){return n=>e.reduce((r,i)=>(r[i]=N6(t,n),r),{})}function N1n(e,t,n,r){if(!t.includes(n))return null;const i=L1n(n),o=_1n(i,r),a=e[n];return Yy(e,a,o)}function Kat(e,t){const n=jMe(e.theme);return Object.keys(e).map(r=>N1n(e,t,r,n)).reduce(UN,{})}function Ul(e){return Kat(e,qMe)}Ul.propTypes={};Ul.filterProps=qMe;function Xl(e){return Kat(e,BMe)}Xl.propTypes={};Xl.filterProps=BMe;function Qat(e=8,t=jMe({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function uQ(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?UN(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function rf(e){return typeof e!="number"?e:`${e}px solid`}function $f(e,t){return Dc({prop:e,themeKey:"borders",transform:t})}const F1n=$f("border",rf),W1n=$f("borderTop",rf),q1n=$f("borderRight",rf),B1n=$f("borderBottom",rf),j1n=$f("borderLeft",rf),H1n=$f("borderColor"),V1n=$f("borderTopColor"),G1n=$f("borderRightColor"),$1n=$f("borderBottomColor"),U1n=$f("borderLeftColor"),X1n=$f("outline",rf),Y1n=$f("outlineColor"),dQ=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_6(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:N6(t,r)});return Yy(e,e.borderRadius,n)}return null};dQ.propTypes={};dQ.filterProps=["borderRadius"];uQ(F1n,W1n,q1n,B1n,j1n,H1n,V1n,G1n,$1n,U1n,dQ,X1n,Y1n);const pQ=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_6(e.theme,"spacing",8),n=r=>({gap:N6(t,r)});return Yy(e,e.gap,n)}return null};pQ.propTypes={};pQ.filterProps=["gap"];const hQ=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_6(e.theme,"spacing",8),n=r=>({columnGap:N6(t,r)});return Yy(e,e.columnGap,n)}return null};hQ.propTypes={};hQ.filterProps=["columnGap"];const fQ=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_6(e.theme,"spacing",8),n=r=>({rowGap:N6(t,r)});return Yy(e,e.rowGap,n)}return null};fQ.propTypes={};fQ.filterProps=["rowGap"];const K1n=Dc({prop:"gridColumn"}),Q1n=Dc({prop:"gridRow"}),Z1n=Dc({prop:"gridAutoFlow"}),J1n=Dc({prop:"gridAutoColumns"}),epn=Dc({prop:"gridAutoRows"}),tpn=Dc({prop:"gridTemplateColumns"}),npn=Dc({prop:"gridTemplateRows"}),rpn=Dc({prop:"gridTemplateAreas"}),ipn=Dc({prop:"gridArea"});uQ(pQ,hQ,fQ,K1n,Q1n,Z1n,J1n,epn,tpn,npn,rpn,ipn);function cI(e,t){return t==="grey"?t:e}const opn=Dc({prop:"color",themeKey:"palette",transform:cI}),apn=Dc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cI}),spn=Dc({prop:"backgroundColor",themeKey:"palette",transform:cI});uQ(opn,apn,spn);function $p(e){return e<=1&&e!==0?`${e*100}%`:e}const lpn=Dc({prop:"width",transform:$p}),HMe=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||lQ[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:$p(n)}};return Yy(e,e.maxWidth,t)}return null};HMe.filterProps=["maxWidth"];const cpn=Dc({prop:"minWidth",transform:$p}),upn=Dc({prop:"height",transform:$p}),dpn=Dc({prop:"maxHeight",transform:$p}),ppn=Dc({prop:"minHeight",transform:$p});Dc({prop:"size",cssProperty:"width",transform:$p});Dc({prop:"size",cssProperty:"height",transform:$p});const hpn=Dc({prop:"boxSizing"});uQ(lpn,HMe,cpn,upn,dpn,ppn,hpn);const F6={border:{themeKey:"borders",transform:rf},borderTop:{themeKey:"borders",transform:rf},borderRight:{themeKey:"borders",transform:rf},borderBottom:{themeKey:"borders",transform:rf},borderLeft:{themeKey:"borders",transform:rf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dQ},color:{themeKey:"palette",transform:cI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cI},backgroundColor:{themeKey:"palette",transform:cI},p:{style:Xl},pt:{style:Xl},pr:{style:Xl},pb:{style:Xl},pl:{style:Xl},px:{style:Xl},py:{style:Xl},padding:{style:Xl},paddingTop:{style:Xl},paddingRight:{style:Xl},paddingBottom:{style:Xl},paddingLeft:{style:Xl},paddingX:{style:Xl},paddingY:{style:Xl},paddingInline:{style:Xl},paddingInlineStart:{style:Xl},paddingInlineEnd:{style:Xl},paddingBlock:{style:Xl},paddingBlockStart:{style:Xl},paddingBlockEnd:{style:Xl},m:{style:Ul},mt:{style:Ul},mr:{style:Ul},mb:{style:Ul},ml:{style:Ul},mx:{style:Ul},my:{style:Ul},margin:{style:Ul},marginTop:{style:Ul},marginRight:{style:Ul},marginBottom:{style:Ul},marginLeft:{style:Ul},marginX:{style:Ul},marginY:{style:Ul},marginInline:{style:Ul},marginInlineStart:{style:Ul},marginInlineEnd:{style:Ul},marginBlock:{style:Ul},marginBlockStart:{style:Ul},marginBlockEnd:{style:Ul},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pQ},rowGap:{style:fQ},columnGap:{style:hQ},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$p},maxWidth:{style:HMe},minWidth:{transform:$p},height:{transform:$p},maxHeight:{transform:$p},minHeight:{transform:$p},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fpn(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function gpn(e,t){return typeof e=="function"?e(t):e}function mpn(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=cQ(i,c)||{};return d?d(a):Yy(a,r,g=>{let m=e9(p,u,g);return g===m&&typeof g=="string"&&(m=e9(p,u,`${n}${g==="default"?"":jt(g)}`,g)),l===!1?m:{[l]:m}})}function t(n){const{sx:r,theme:i={},nested:o}=n||{};if(!r)return null;const a=i.unstable_sxConfig??F6;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=I1n(i.breakpoints),d=Object.keys(u);let p=u;return Object.keys(c).forEach(h=>{const g=gpn(c[h],i);if(g!=null)if(typeof g=="object")if(a[h])p=UN(p,e(h,g,i,a));else{const m=Yy({theme:i},g,v=>({[h]:v}));fpn(m,g)?p[h]=t({sx:g,theme:i,nested:!0}):p=UN(p,m)}else p=UN(p,e(h,g,i,a))}),!o&&i.modularCssLayers?{"@layer sx":qPe(i,jPe(d,p))}:qPe(i,jPe(d,p))}return Array.isArray(r)?r.map(s):s(r)}return t}const cP=mpn();cP.filterProps=["sx"];function vpn(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function VMe(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e,s=A1n(n),l=Qat(i);let c=v0({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...E1n,...o}},a);return c=T1n(c),c.applyStyles=vpn,c=t.reduce((u,d)=>v0(u,d),c),c.unstable_sxConfig={...F6,...a?.unstable_sxConfig},c.unstable_sx=function(d){return cP({sx:d,theme:this})},c}function bpn(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ypn(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Mpn=(function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ypn(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=bpn(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Qd="-ms-",t9="-moz-",_a="-webkit-",Zat="comm",GMe="rule",$Me="decl",Cpn="@import",Jat="@keyframes",xpn="@layer",wpn=Math.abs,gQ=String.fromCharCode,Spn=Object.assign;function Apn(e,t){return gd(e,0)^45?(((t<<2^gd(e,0))<<2^gd(e,1))<<2^gd(e,2))<<2^gd(e,3):0}function est(e){return e.trim()}function Opn(e,t){return(e=t.exec(e))?e[0]:e}function Na(e,t,n){return e.replace(t,n)}function ofe(e,t){return e.indexOf(t)}function gd(e,t){return e.charCodeAt(t)|0}function xW(e,t,n){return e.slice(t,n)}function Lv(e){return e.length}function UMe(e){return e.length}function d8(e,t){return t.push(e),e}function zpn(e,t){return e.map(t).join("")}var mQ=1,uP=1,tst=0,bp=0,Kc=0,AD="";function vQ(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:mQ,column:uP,length:a,return:""}}function l4(e,t){return Spn(vQ("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tpn(){return Kc}function Epn(){return Kc=bp>0?gd(AD,--bp):0,uP--,Kc===10&&(uP=1,mQ--),Kc}function ih(){return Kc=bp<tst?gd(AD,bp++):0,uP++,Kc===10&&(uP=1,mQ++),Kc}function cb(){return gd(AD,bp)}function ZG(){return bp}function W6(e,t){return xW(AD,e,t)}function wW(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function nst(e){return mQ=uP=1,tst=Lv(AD=e),bp=0,[]}function rst(e){return AD="",e}function JG(e){return est(W6(bp-1,afe(e===91?e+2:e===40?e+1:e)))}function Rpn(e){for(;(Kc=cb())&&Kc<33;)ih();return wW(e)>2||wW(Kc)>3?"":" "}function Ipn(e,t){for(;--t&&ih()&&!(Kc<48||Kc>102||Kc>57&&Kc<65||Kc>70&&Kc<97););return W6(e,ZG()+(t<6&&cb()==32&&ih()==32))}function afe(e){for(;ih();)switch(Kc){case e:return bp;case 34:case 39:e!==34&&e!==39&&afe(Kc);break;case 40:e===41&&afe(e);break;case 92:ih();break}return bp}function Ppn(e,t){for(;ih()&&e+Kc!==57;)if(e+Kc===84&&cb()===47)break;return"/*"+W6(t,bp-1)+"*"+gQ(e===47?e:ih())}function Dpn(e){for(;!wW(cb());)ih();return W6(e,bp)}function kpn(e){return rst(e7("",null,null,null,[""],e=nst(e),0,[0],e))}function e7(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,g=0,m=1,v=1,y=1,M=0,C="",x=i,w=o,S=r,A=C;v;)switch(g=M,M=ih()){case 40:if(g!=108&&gd(A,d-1)==58){ofe(A+=Na(JG(M),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=JG(M);break;case 9:case 10:case 13:case 32:A+=Rpn(g);break;case 92:A+=Ipn(ZG()-1,7);continue;case 47:switch(cb()){case 42:case 47:d8(Lpn(Ppn(ih(),ZG()),t,n),l);break;default:A+="/"}break;case 123*m:s[c++]=Lv(A)*y;case 125*m:case 59:case 0:switch(M){case 0:case 125:v=0;case 59+u:y==-1&&(A=Na(A,/\f/g,"")),h>0&&Lv(A)-d&&d8(h>32?GPe(A+";",r,n,d-1):GPe(Na(A," ","")+";",r,n,d-2),l);break;case 59:A+=";";default:if(d8(S=VPe(A,t,n,c,u,i,s,C,x=[],w=[],d),o),M===123)if(u===0)e7(A,t,S,S,x,o,d,s,w);else switch(p===99&&gd(A,3)===110?100:p){case 100:case 108:case 109:case 115:e7(e,S,S,r&&d8(VPe(e,S,S,0,0,i,s,C,i,x=[],d),w),i,w,d,s,r?x:w);break;default:e7(A,S,S,S,[""],w,0,s,w)}}c=u=h=0,m=y=1,C=A="",d=a;break;case 58:d=1+Lv(A),h=g;default:if(m<1){if(M==123)--m;else if(M==125&&m++==0&&Epn()==125)continue}switch(A+=gQ(M),M*m){case 38:y=u>0?1:(A+="\f",-1);break;case 44:s[c++]=(Lv(A)-1)*y,y=1;break;case 64:cb()===45&&(A+=JG(ih())),p=cb(),u=d=Lv(C=A+=Dpn(ZG())),M++;break;case 45:g===45&&Lv(A)==2&&(m=0)}}return o}function VPe(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=i===0?o:[""],h=UMe(p),g=0,m=0,v=0;g<r;++g)for(var y=0,M=xW(e,d+1,d=wpn(m=a[g])),C=e;y<h;++y)(C=est(m>0?p[y]+" "+M:Na(M,/&\f/g,p[y])))&&(l[v++]=C);return vQ(e,t,n,i===0?GMe:s,l,c,u)}function Lpn(e,t,n){return vQ(e,t,n,Zat,gQ(Tpn()),xW(e,2,-2),0)}function GPe(e,t,n,r){return vQ(e,t,n,$Me,xW(e,0,r),xW(e,r+1,-1),r)}function uI(e,t){for(var n="",r=UMe(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function _pn(e,t,n,r){switch(e.type){case xpn:if(e.children.length)break;case Cpn:case $Me:return e.return=e.return||e.value;case Zat:return"";case Jat:return e.return=e.value+"{"+uI(e.children,r)+"}";case GMe:e.value=e.props.join(",")}return Lv(n=uI(e.children,r))?e.return=e.value+"{"+n+"}":""}function Npn(e){var t=UMe(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function Fpn(e){return function(t){t.root||(t=t.return)&&e(t)}}function ist(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Wpn=function(t,n,r){for(var i=0,o=0;i=o,o=cb(),i===38&&o===12&&(n[r]=1),!wW(o);)ih();return W6(t,bp)},qpn=function(t,n){var r=-1,i=44;do switch(wW(i)){case 0:i===38&&cb()===12&&(n[r]=1),t[r]+=Wpn(bp-1,n,r);break;case 2:t[r]+=JG(i);break;case 4:if(i===44){t[++r]=cb()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=gQ(i)}while(i=ih());return t},Bpn=function(t,n){return rst(qpn(nst(t),n))},$Pe=new WeakMap,jpn=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!$Pe.get(r))&&!i){$Pe.set(t,!0);for(var o=[],a=Bpn(n,o),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},Hpn=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ost(e,t){switch(Apn(e,t)){case 5103:return _a+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _a+e+t9+e+Qd+e+e;case 6828:case 4268:return _a+e+Qd+e+e;case 6165:return _a+e+Qd+"flex-"+e+e;case 5187:return _a+e+Na(e,/(\w+).+(:[^]+)/,_a+"box-$1$2"+Qd+"flex-$1$2")+e;case 5443:return _a+e+Qd+"flex-item-"+Na(e,/flex-|-self/,"")+e;case 4675:return _a+e+Qd+"flex-line-pack"+Na(e,/align-content|flex-|-self/,"")+e;case 5548:return _a+e+Qd+Na(e,"shrink","negative")+e;case 5292:return _a+e+Qd+Na(e,"basis","preferred-size")+e;case 6060:return _a+"box-"+Na(e,"-grow","")+_a+e+Qd+Na(e,"grow","positive")+e;case 4554:return _a+Na(e,/([^-])(transform)/g,"$1"+_a+"$2")+e;case 6187:return Na(Na(Na(e,/(zoom-|grab)/,_a+"$1"),/(image-set)/,_a+"$1"),e,"")+e;case 5495:case 3959:return Na(e,/(image-set\([^]*)/,_a+"$1$`$1");case 4968:return Na(Na(e,/(.+:)(flex-)?(.*)/,_a+"box-pack:$3"+Qd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_a+e+e;case 4095:case 3583:case 4068:case 2532:return Na(e,/(.+)-inline(.+)/,_a+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Lv(e)-1-t>6)switch(gd(e,t+1)){case 109:if(gd(e,t+4)!==45)break;case 102:return Na(e,/(.+:)(.+)-([^]+)/,"$1"+_a+"$2-$3$1"+t9+(gd(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ofe(e,"stretch")?ost(Na(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gd(e,t+1)!==115)break;case 6444:switch(gd(e,Lv(e)-3-(~ofe(e,"!important")&&10))){case 107:return Na(e,":",":"+_a)+e;case 101:return Na(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_a+(gd(e,14)===45?"inline-":"")+"box$3$1"+_a+"$2$3$1"+Qd+"$2box$3")+e}break;case 5936:switch(gd(e,t+11)){case 114:return _a+e+Qd+Na(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _a+e+Qd+Na(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _a+e+Qd+Na(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _a+e+Qd+e+e}return e}var Vpn=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case $Me:t.return=ost(t.value,t.length);break;case Jat:return uI([l4(t,{value:Na(t.value,"@","@"+_a)})],i);case GMe:if(t.length)return zpn(t.props,function(o){switch(Opn(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return uI([l4(t,{props:[Na(o,/:(read-\w+)/,":"+t9+"$1")]})],i);case"::placeholder":return uI([l4(t,{props:[Na(o,/:(plac\w+)/,":"+_a+"input-$1")]}),l4(t,{props:[Na(o,/:(plac\w+)/,":"+t9+"$1")]}),l4(t,{props:[Na(o,/:(plac\w+)/,Qd+"input-$1")]})],i)}return""})}},Gpn=[Vpn],$pn=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||Gpn,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(m)});var l,c=[jpn,Hpn];{var u,d=[_pn,Fpn(function(m){u.insert(m)})],p=Npn(c.concat(i,d)),h=function(v){return uI(kpn(v),p)};l=function(v,y,M,C){u=M,h(v?v+"{"+y.styles+"}":y.styles),C&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new Mpn({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(s),g},Upn=!0;function ast(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var XMe=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Upn===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},YMe=function(t,n,r){XMe(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Xpn(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&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(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 Ypn={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},Kpn=/[A-Z]|^ms/g,Qpn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sst=function(t){return t.charCodeAt(1)===45},UPe=function(t){return t!=null&&typeof t!="boolean"},xie=ist(function(e){return sst(e)?e:e.replace(Kpn,"-$&").toLowerCase()}),XPe=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Qpn,function(r,i,o){return _v={name:i,styles:o,next:_v},i})}return Ypn[t]!==1&&!sst(t)&&typeof n=="number"&&n!==0?n+"px":n};function SW(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return _v={name:i.name,styles:i.styles,next:_v},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)_v={name:a.name,styles:a.styles,next:_v},a=a.next;var s=o.styles+";";return s}return Zpn(e,t,n)}case"function":{if(e!==void 0){var l=_v,c=n(e);return _v=l,SW(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Zpn(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=SW(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":UPe(s)&&(r+=xie(o)+":"+XPe(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)UPe(a[l])&&(r+=xie(o)+":"+XPe(o,a[l])+";");else{var c=SW(e,t,a);switch(o){case"animation":case"animationName":{r+=xie(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var YPe=/label:\s*([^\s;{]+)\s*(;|$)/g,_v;function q6(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";_v=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=SW(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=SW(n,t,e[s]),r){var l=o;i+=l[s]}YPe.lastIndex=0;for(var c="",u;(u=YPe.exec(i))!==null;)c+="-"+u[1];var d=Xpn(i)+c;return{name:d,styles:i,next:_v}}var Jpn=function(t){return t()},lst=MW.useInsertionEffect?MW.useInsertionEffect:!1,cst=lst||Jpn,KPe=lst||b.useLayoutEffect,ust=b.createContext(typeof HTMLElement<"u"?$pn({key:"css"}):null);ust.Provider;var KMe=function(t){return b.forwardRef(function(n,r){var i=b.useContext(ust);return t(n,i,r)})},bQ=b.createContext({}),QMe={}.hasOwnProperty,sfe="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ehn=function(t,n){var r={};for(var i in n)QMe.call(n,i)&&(r[i]=n[i]);return r[sfe]=t,r},thn=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return XMe(n,r,i),cst(function(){return YMe(n,r,i)}),null},nhn=KMe(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[sfe],o=[r],a="";typeof e.className=="string"?a=ast(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=q6(o,void 0,b.useContext(bQ));a+=t.key+"-"+s.name;var l={};for(var c in e)QMe.call(e,c)&&c!=="css"&&c!==sfe&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),b.createElement(b.Fragment,null,b.createElement(thn,{cache:t,serialized:s,isStringTag:typeof i=="string"}),b.createElement(i,l))}),rhn=nhn,QPe=function(t,n){var r=arguments;if(n==null||!QMe.call(n,"css"))return b.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=rhn,o[1]=ehn(t,n);for(var a=2;a<i;a++)o[a]=r[a];return b.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(QPe||(QPe={}));var ihn=KMe(function(e,t){var n=e.styles,r=q6([n],void 0,b.useContext(bQ)),i=b.useRef();return KPe(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),KPe(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&YMe(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Ow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return q6(t)}function Uf(){var e=Ow.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 ohn=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,ahn=ist(function(e){return ohn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),shn=ahn,lhn=function(t){return t!=="theme"},ZPe=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?shn:lhn},JPe=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},chn=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return XMe(n,r,i),cst(function(){return YMe(n,r,i)}),null},uhn=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=JPe(t,n,r),l=s||ZPe(i),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var h=u.length,g=1;g<h;g++)d.push(u[g],p[g])}var m=KMe(function(v,y,M){var C=c&&v.as||i,x="",w=[],S=v;if(v.theme==null){S={};for(var A in v)S[A]=v[A];S.theme=b.useContext(bQ)}typeof v.className=="string"?x=ast(y.registered,w,v.className):v.className!=null&&(x=v.className+" ");var z=q6(d.concat(w),y.registered,S);x+=y.key+"-"+z.name,a!==void 0&&(x+=" "+a);var O=c&&s===void 0?ZPe(C):l,T={};for(var I in v)c&&I==="as"||O(I)&&(T[I]=v[I]);return T.className=x,M&&(T.ref=M),b.createElement(b.Fragment,null,b.createElement(chn,{cache:y,serialized:z,isStringTag:typeof C=="string"}),b.createElement(C,T))});return m.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(v,y){var M=e(v,Y({},n,y,{shouldForwardProp:JPe(m,y,!0)}));return M.apply(void 0,d)},m}},dhn=["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"],lfe=uhn.bind(null);dhn.forEach(function(e){lfe[e]=lfe(e)});function phn(e){return e==null||Object.keys(e).length===0}function hhn(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(phn(i)?n:i):t;return f.jsx(ihn,{styles:r})}function fhn(e,t){return lfe(e,t)}function ghn(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const eDe=[];function Ex(e){return eDe[0]=e,q6(eDe)}function mhn(e){return Object.keys(e).length===0}function dst(e=null){const t=b.useContext(bQ);return!t||mhn(t)?e:t}const vhn=VMe();function ZMe(e=vhn){return dst(e)}function bhn({props:e,name:t,defaultTheme:n,themeId:r}){let i=ZMe(n);return i=i[r]||i,WMe({theme:i,name:t,props:e})}function yhn(e,t,n,r,i){const[o,a]=b.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return To(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),o}const Mhn={...MW},pst=Mhn.useSyncExternalStore;function Chn(e,t,n,r,i){const o=b.useCallback(()=>t,[t]),a=b.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return o},[o,e,r,i,n]),[s,l]=b.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[o,n,e]);return pst(l,s,a)}function hst(e={}){const{themeId:t}=e;return function(r,i={}){let o=dst();o&&t&&(o=o[t]||o);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=WMe({name:"MuiUseMediaQuery",props:i,theme:o});let d=typeof r=="function"?r(o):r;return d=d.replace(/^@media( ?)/m,""),d.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`)),(pst!==void 0?Chn:yhn)(d,s,l,c,u)}}hst();const B6="$$material",JMe=hst({themeId:B6});function wie(e){const t=Ex(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function xhn({styles:e,themeId:t,defaultTheme:n={}}){const r=ZMe(n),i=t&&r[t]||r;let o=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(o)?o=o.map(a=>wie(typeof a=="function"?a(i):a)):o=wie(o)),f.jsx(hhn,{styles:o})}const whn=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??F6;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Shn(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=whn(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return Bv(s)?{...r,...s}:r}:o={...r,...t},{...i,sx:o}}const tDe=e=>e,Ahn=()=>{let e=tDe;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tDe}}},Ohn=Ahn(),zhn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Bn(e,t,n="Mui"){const r=zhn[t];return r?`${n}-${r}`:`${Ohn.generate(e)}-${t}`}function Ln(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Bn(e,i,n)}),r}function fst(e){const{variants:t,...n}=e,r={variants:t,style:Ex(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Ex(i.style))}),r}const Thn=VMe();function t7(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function sO(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ehn(e){return e?(t,n)=>n[e]:null}function Rhn(e,t,n){e.theme=Phn(e.theme)?n:e.theme[t]||e.theme}function n7(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>n7(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?sO(r.style,n):r.style;else{const{variants:o,...a}=r;i=n?sO(Ex(a),n):a}return gst(e,r.variants,[i],n)}return r?.isProcessed?n?sO(Ex(r.style),n):r.style:n?sO(Ex(r),n):r}function gst(e,t,n=[],r=void 0){let i;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(i))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?sO(Ex(a.style(i)),r):a.style(i))):n.push(r?sO(Ex(a.style),r):a.style)}return n}function mst(e={}){const{themeId:t,defaultTheme:n=Thn,rootShouldForwardProp:r=t7,slotShouldForwardProp:i=t7}=e;function o(s){Rhn(s,t,n)}return(s,l={})=>{ghn(s,S=>S.filter(A=>A!==cP));const{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:h=Ehn(khn(u)),...g}=l,m=c&&c.startsWith("Mui")||u?"components":"custom",v=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=p||!1;let M=t7;u==="Root"||u==="root"?M=r:u?M=i:Dhn(s)&&(M=void 0);const C=fhn(s,{shouldForwardProp:M,label:Ihn(),...g}),x=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(z){return n7(z,S,z.theme.modularCssLayers?m:void 0)};if(Bv(S)){const A=fst(S);return function(O){return A.variants?n7(O,A,O.theme.modularCssLayers?m:void 0):O.theme.modularCssLayers?sO(A.style,m):A.style}}return S},w=(...S)=>{const A=[],z=S.map(x),O=[];if(A.push(o),c&&h&&O.push(function(N){const L=N.theme.components?.[c]?.styleOverrides;if(!L)return null;const W={};for(const H in L)W[H]=n7(N,L[H],N.theme.modularCssLayers?"theme":void 0);return h(N,W)}),c&&!v&&O.push(function(N){const L=N.theme?.components?.[c]?.variants;return L?gst(N,L,[],N.theme.modularCssLayers?"theme":void 0):null}),y||O.push(cP),Array.isArray(z[0])){const P=z.shift(),N=new Array(A.length).fill(""),F=new Array(O.length).fill("");let L;L=[...N,...P,...F],L.raw=[...N,...P.raw,...F],A.unshift(L)}const T=[...A,...z,...O],I=C(...T);return s.muiName&&(I.muiName=s.muiName),I};return C.withConfig&&(w.withConfig=C.withConfig),w}}function Ihn(e,t){return void 0}function Phn(e){for(const t in e)return!1;return!0}function Dhn(e){return typeof e=="string"&&e.charCodeAt(0)>96}function khn(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Vo=mst();function Lhn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function eCe(e,t=0,n=1){return Lhn(e,t,n)}function _hn(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Zx(e){if(e.type)return e;if(e.charAt(0)==="#")return Zx(_hn(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Xy(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(Xy(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const Nhn=e=>{const t=Zx(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},K5=(e,t)=>{try{return Nhn(e)}catch{return e}};function yQ(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vst(e){e=Zx(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(c,u=(c+n/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),yQ({type:s,values:l})}function cfe(e){e=Zx(e);let t=e.type==="hsl"||e.type==="hsla"?Zx(vst(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Fhn(e,t){const n=cfe(e),r=cfe(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function wd(e,t){return e=Zx(e),t=eCe(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,yQ(e)}function WS(e,t,n){try{return wd(e,t)}catch{return e}}function j6(e,t){if(e=Zx(e),t=eCe(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return yQ(e)}function rs(e,t,n){try{return j6(e,t)}catch{return e}}function H6(e,t){if(e=Zx(e),t=eCe(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return yQ(e)}function is(e,t,n){try{return H6(e,t)}catch{return e}}function Whn(e,t=.15){return cfe(e)>.5?j6(e,t):H6(e,t)}function p8(e,t,n){try{return Whn(e,t)}catch{return e}}const qhn=b.createContext(),ts=()=>b.useContext(qhn)??!1,Bhn=b.createContext(void 0);function jhn(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Iz(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Iz(i,r,t.components.mergeClassNameAndStyle):r}function Hhn({props:e,name:t}){const n=b.useContext(Bhn);return jhn({props:e,name:t,theme:{components:n}})}let nDe=0;function Vhn(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(nDe+=1,n(`mui-${nDe}`))},[t]),r}const Ghn={...MW},rDe=Ghn.useId;function Hi(e){if(rDe!==void 0){const t=rDe();return e??t}return Vhn(e)}const iDe={theme:void 0};function $hn(e){let t,n;return function(i){let o=t;return(o===void 0||i.theme!==n)&&(iDe.theme=i.theme,o=fst(e(iDe)),t=o,n=i.theme),o}}function Uhn(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const oDe=(e,t,n,r=[])=>{let i=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(i)?i[Number(o)]=n:i&&typeof i=="object"&&(i[o]=n):i&&typeof i=="object"&&(i[o]||(i[o]=r.includes(o)?[]:{}),i=i[o])})},Xhn=(e,t,n)=>{function r(i,o=[],a=[]){Object.entries(i).forEach(([s,l])=>{(!n||n&&!n([...o,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...o,s],Array.isArray(l)?[...a,s]:a):t([...o,s],l,a))})}r(e)},Yhn=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Sie(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};return Xhn(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=Yhn(s,l);Object.assign(i,{[u]:d}),oDe(o,s,`var(${u})`,c),oDe(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:i,vars:o,varsWithDefaults:a}}function Khn(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:p}=Sie(c,t);let h=p;const g={},{[l]:m,...v}=a;if(Object.entries(v||{}).forEach(([x,w])=>{const{vars:S,css:A,varsWithDefaults:z}=Sie(w,t);h=v0(h,z),g[x]={css:A,vars:S}}),m){const{css:x,vars:w,varsWithDefaults:S}=Sie(m,t);h=v0(h,S),g[l]={css:x,vars:w}}function y(x,w){let S=i;if(i==="class"&&(S=".%s"),i==="data"&&(S="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(S=`[${i}="%s"]`),x){if(S==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${a[x]?.palette?.mode||x})`]:{":root":w}};if(S)return e.defaultColorScheme===x?`:root, ${S.replace("%s",String(x))}`:S.replace("%s",String(x))}return":root"}return{vars:h,generateThemeVars:()=>{let x={...u};return Object.entries(g).forEach(([,{vars:w}])=>{x=v0(x,w)}),x},generateStyleSheets:()=>{const x=[],w=e.defaultColorScheme||"light";function S(O,T){Object.keys(T).length&&x.push(typeof O=="string"?{[O]:{...T}}:O)}S(n(void 0,{...d}),d);const{[w]:A,...z}=g;if(A){const{css:O}=A,T=a[w]?.palette?.mode,I=!r&&T?{colorScheme:T,...O}:{...O};S(n(w,{...I}),I)}return Object.entries(z).forEach(([O,{css:T}])=>{const I=a[O]?.palette?.mode,P=!r&&I?{colorScheme:I,...T}:{...T};S(n(O,{...P}),P)}),o&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function Qhn(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Yt(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",s=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,n&&n[c]&&(a+=" "+n[c]))}r[i]=a}return r}function r7(e,t){return b.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const AW={black:"#000",white:"#fff"},Zhn={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},yE={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ME={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},c4={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},CE={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},xE={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},wE={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function bst(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:AW.white,default:AW.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const yst=bst();function Mst(){return{text:{primary:AW.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:AW.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ufe=Mst();function aDe(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=H6(e.main,i):t==="dark"&&(e.dark=j6(e.main,o)))}function sDe(e,t,n,r,i){const o=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(o*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function Jhn(e="light"){return e==="dark"?{main:CE[200],light:CE[50],dark:CE[400]}:{main:CE[700],light:CE[400],dark:CE[800]}}function efn(e="light"){return e==="dark"?{main:yE[200],light:yE[50],dark:yE[400]}:{main:yE[500],light:yE[300],dark:yE[700]}}function tfn(e="light"){return e==="dark"?{main:ME[500],light:ME[300],dark:ME[700]}:{main:ME[700],light:ME[400],dark:ME[800]}}function nfn(e="light"){return e==="dark"?{main:xE[400],light:xE[300],dark:xE[700]}:{main:xE[700],light:xE[500],dark:xE[900]}}function rfn(e="light"){return e==="dark"?{main:wE[400],light:wE[300],dark:wE[700]}:{main:wE[800],light:wE[500],dark:wE[900]}}function ifn(e="light"){return e==="dark"?{main:c4[400],light:c4[300],dark:c4[700]}:{main:"#ed6c02",light:c4[500],dark:c4[900]}}function ofn(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function tCe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...o}=e,a=e.primary||Jhn(t),s=e.secondary||efn(t),l=e.error||tfn(t),c=e.info||nfn(t),u=e.success||rfn(t),d=e.warning||ifn(t);function p(v){return i?ofn(v):Fhn(v,ufe.text.primary)>=n?ufe.text.primary:yst.text.primary}const h=({color:v,name:y,mainShade:M=500,lightShade:C=300,darkShade:x=700})=>{if(v={...v},!v.main&&v[M]&&(v.main=v[M]),!v.hasOwnProperty("main"))throw new Error(Xy(11,y?` (${y})`:"",M));if(typeof v.main!="string")throw new Error(Xy(12,y?` (${y})`:"",JSON.stringify(v.main)));return i?(sDe(i,v,"light",C,r),sDe(i,v,"dark",x,r)):(aDe(v,"light",C,r),aDe(v,"dark",x,r)),v.contrastText||(v.contrastText=p(v.main)),v};let g;return t==="light"?g=bst():t==="dark"&&(g=Mst()),v0({common:{...AW},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:Zhn,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:r,...g},o)}function afn(e){const t={};return Object.entries(e).forEach(r=>{const[i,o]=r;typeof o=="object"&&(t[i]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function sfn(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function lfn(e){return Math.round(e*1e5)/1e5}const lDe={textTransform:"uppercase"},cDe='"Roboto", "Helvetica", "Arial", sans-serif';function cfn(e,t){const{fontFamily:n=cDe,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,p=r/14,h=u||(v=>`${v/l*p}rem`),g=(v,y,M,C,x)=>({fontFamily:n,fontWeight:v,fontSize:h(y),lineHeight:M,...n===cDe?{letterSpacing:`${lfn(C/y)}em`}:{},...x,...c}),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(a,14,1.75,.4,lDe),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,lDe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return v0({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}const ufn=.2,dfn=.14,pfn=.12;function hl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ufn})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${dfn})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${pfn})`].join(",")}const hfn=["none",hl(0,2,1,-1,0,1,1,0,0,1,3,0),hl(0,3,1,-2,0,2,2,0,0,1,5,0),hl(0,3,3,-2,0,3,4,0,0,1,8,0),hl(0,2,4,-1,0,4,5,0,0,1,10,0),hl(0,3,5,-1,0,5,8,0,0,1,14,0),hl(0,3,5,-1,0,6,10,0,0,1,18,0),hl(0,4,5,-2,0,7,10,1,0,2,16,1),hl(0,5,5,-3,0,8,10,1,0,3,14,2),hl(0,5,6,-3,0,9,12,1,0,3,16,2),hl(0,6,6,-3,0,10,14,1,0,4,18,3),hl(0,6,7,-4,0,11,15,1,0,4,20,3),hl(0,7,8,-4,0,12,17,2,0,5,22,4),hl(0,7,8,-4,0,13,19,2,0,5,24,4),hl(0,7,9,-4,0,14,21,2,0,5,26,4),hl(0,8,9,-5,0,15,22,2,0,6,28,5),hl(0,8,10,-5,0,16,24,2,0,6,30,5),hl(0,8,11,-5,0,17,26,2,0,6,32,5),hl(0,9,11,-5,0,18,28,2,0,7,34,6),hl(0,9,12,-6,0,19,29,2,0,7,36,6),hl(0,10,13,-6,0,20,31,3,0,8,38,7),hl(0,10,13,-6,0,21,33,3,0,8,40,7),hl(0,10,14,-6,0,22,35,3,0,8,42,7),hl(0,11,14,-7,0,23,36,3,0,9,44,8),hl(0,11,15,-7,0,24,38,3,0,9,46,8)],ffn={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},gfn={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function uDe(e){return`${Math.round(e)}ms`}function mfn(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function vfn(e){const t={...ffn,...e.easing},n={...gfn,...e.duration};return{getAutoHeightDuration:mfn,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=o;return(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:uDe(a)} ${s} ${typeof l=="string"?l:uDe(l)}`).join(",")},...e,easing:t,duration:n}}const bfn={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yfn(e){return Bv(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Cst(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let o=0;o<i.length;o++){const[a,s]=i[o];!yfn(s)||a.startsWith("unstable_")?delete r[a]:Bv(s)&&(r[a]={...s},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

const theme = ${JSON.stringify(t,null,2)};

theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});

export default theme;`}function dDe(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Mfn=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Cfn(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:wd(t,Mfn(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${dDe(n)})`:H6(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${dDe(n)})`:j6(t,n)}})}function dfe(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:o={},transitions:a={},typography:s={},shape:l,colorSpace:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Xy(20));const d=tCe({...o,colorSpace:c}),p=VMe(e);let h=v0(p,{mixins:sfn(p.breakpoints,r),palette:d,shadows:hfn.slice(),typography:cfn(d,s),transitions:vfn(a),zIndex:{...bfn}});return h=v0(h,u),h=t.reduce((g,m)=>v0(g,m),h),h.unstable_sxConfig={...F6,...u?.unstable_sxConfig},h.unstable_sx=function(m){return cP({sx:m,theme:this})},h.toRuntimeSource=Cst,Cfn(h),h}function pfe(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 xfn=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=pfe(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function xst(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function wst(e){return e==="dark"?xfn:[]}function wfn(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...o}=e,a=tCe({...t,colorSpace:i});return{palette:a,opacity:{...xst(a.mode),...n},overlays:r||wst(a.mode),...o}}function Sfn(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Afn=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Ofn=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Afn(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:o?{[o.replace("%s",t)]:a,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function zfn(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Jt(e,t,n){!e[t]&&n&&(e[t]=n)}function Q5(e){return typeof e!="string"||!e.startsWith("hsl")?e:vst(e)}function W2(e,t){`${t}Channel`in e||(e[`${t}Channel`]=K5(Q5(e[t])))}function Tfn(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const pv=e=>{try{return e()}catch{}},Efn=(e="mui")=>Uhn(e);function Aie(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const o=i==="dark"?"dark":"light";if(!r){t[i]=wfn({...n,palette:{mode:o,...n?.palette},colorSpace:e});return}const{palette:a,...s}=dfe({...r,palette:{mode:o,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...xst(o),...n?.opacity},overlays:n?.overlays||wst(o)},s}function Rfn(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Sfn,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],p=r||(n.light&&d!=="light"?"light":d),h=Efn(o),{[p]:g,light:m,dark:v,...y}=n,M={...y};let C=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(Xy(21,p));let x;a&&(x="oklch");const w=Aie(x,M,C,u,p);m&&!M.light&&Aie(x,M,m,void 0,"light"),v&&!M.dark&&Aie(x,M,v,void 0,"dark");let S={defaultColorScheme:p,...w,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:M,font:{...afn(w.typography),...w.font},spacing:Tfn(u.spacing)};Object.keys(S.colorSchemes).forEach(I=>{const P=S.colorSchemes[I].palette,N=L=>{const W=L.split("-"),H=W[1],j=W[2];return h(L,P[H][j])};P.mode==="light"&&(Jt(P.common,"background","#fff"),Jt(P.common,"onBackground","#000")),P.mode==="dark"&&(Jt(P.common,"background","#000"),Jt(P.common,"onBackground","#fff"));function F(L,W,H){if(x){let j;return L===WS&&(j=`transparent ${((1-H)*100).toFixed(0)}%`),L===rs&&(j=`#000 ${(H*100).toFixed(0)}%`),L===is&&(j=`#fff ${(H*100).toFixed(0)}%`),`color-mix(in ${x}, ${W}, ${j})`}return L(W,H)}if(zfn(P,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),P.mode==="light"){Jt(P.Alert,"errorColor",F(rs,P.error.light,.6)),Jt(P.Alert,"infoColor",F(rs,P.info.light,.6)),Jt(P.Alert,"successColor",F(rs,P.success.light,.6)),Jt(P.Alert,"warningColor",F(rs,P.warning.light,.6)),Jt(P.Alert,"errorFilledBg",N("palette-error-main")),Jt(P.Alert,"infoFilledBg",N("palette-info-main")),Jt(P.Alert,"successFilledBg",N("palette-success-main")),Jt(P.Alert,"warningFilledBg",N("palette-warning-main")),Jt(P.Alert,"errorFilledColor",pv(()=>P.getContrastText(P.error.main))),Jt(P.Alert,"infoFilledColor",pv(()=>P.getContrastText(P.info.main))),Jt(P.Alert,"successFilledColor",pv(()=>P.getContrastText(P.success.main))),Jt(P.Alert,"warningFilledColor",pv(()=>P.getContrastText(P.warning.main))),Jt(P.Alert,"errorStandardBg",F(is,P.error.light,.9)),Jt(P.Alert,"infoStandardBg",F(is,P.info.light,.9)),Jt(P.Alert,"successStandardBg",F(is,P.success.light,.9)),Jt(P.Alert,"warningStandardBg",F(is,P.warning.light,.9)),Jt(P.Alert,"errorIconColor",N("palette-error-main")),Jt(P.Alert,"infoIconColor",N("palette-info-main")),Jt(P.Alert,"successIconColor",N("palette-success-main")),Jt(P.Alert,"warningIconColor",N("palette-warning-main")),Jt(P.AppBar,"defaultBg",N("palette-grey-100")),Jt(P.Avatar,"defaultBg",N("palette-grey-400")),Jt(P.Button,"inheritContainedBg",N("palette-grey-300")),Jt(P.Button,"inheritContainedHoverBg",N("palette-grey-A100")),Jt(P.Chip,"defaultBorder",N("palette-grey-400")),Jt(P.Chip,"defaultAvatarColor",N("palette-grey-700")),Jt(P.Chip,"defaultIconColor",N("palette-grey-700")),Jt(P.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Jt(P.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Jt(P.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Jt(P.LinearProgress,"primaryBg",F(is,P.primary.main,.62)),Jt(P.LinearProgress,"secondaryBg",F(is,P.secondary.main,.62)),Jt(P.LinearProgress,"errorBg",F(is,P.error.main,.62)),Jt(P.LinearProgress,"infoBg",F(is,P.info.main,.62)),Jt(P.LinearProgress,"successBg",F(is,P.success.main,.62)),Jt(P.LinearProgress,"warningBg",F(is,P.warning.main,.62)),Jt(P.Skeleton,"bg",x?F(WS,P.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),Jt(P.Slider,"primaryTrack",F(is,P.primary.main,.62)),Jt(P.Slider,"secondaryTrack",F(is,P.secondary.main,.62)),Jt(P.Slider,"errorTrack",F(is,P.error.main,.62)),Jt(P.Slider,"infoTrack",F(is,P.info.main,.62)),Jt(P.Slider,"successTrack",F(is,P.success.main,.62)),Jt(P.Slider,"warningTrack",F(is,P.warning.main,.62));const L=x?F(rs,P.background.default,.6825):p8(P.background.default,.8);Jt(P.SnackbarContent,"bg",L),Jt(P.SnackbarContent,"color",pv(()=>x?ufe.text.primary:P.getContrastText(L))),Jt(P.SpeedDialAction,"fabHoverBg",p8(P.background.paper,.15)),Jt(P.StepConnector,"border",N("palette-grey-400")),Jt(P.StepContent,"border",N("palette-grey-400")),Jt(P.Switch,"defaultColor",N("palette-common-white")),Jt(P.Switch,"defaultDisabledColor",N("palette-grey-100")),Jt(P.Switch,"primaryDisabledColor",F(is,P.primary.main,.62)),Jt(P.Switch,"secondaryDisabledColor",F(is,P.secondary.main,.62)),Jt(P.Switch,"errorDisabledColor",F(is,P.error.main,.62)),Jt(P.Switch,"infoDisabledColor",F(is,P.info.main,.62)),Jt(P.Switch,"successDisabledColor",F(is,P.success.main,.62)),Jt(P.Switch,"warningDisabledColor",F(is,P.warning.main,.62)),Jt(P.TableCell,"border",F(is,F(WS,P.divider,1),.88)),Jt(P.Tooltip,"bg",F(WS,P.grey[700],.92))}if(P.mode==="dark"){Jt(P.Alert,"errorColor",F(is,P.error.light,.6)),Jt(P.Alert,"infoColor",F(is,P.info.light,.6)),Jt(P.Alert,"successColor",F(is,P.success.light,.6)),Jt(P.Alert,"warningColor",F(is,P.warning.light,.6)),Jt(P.Alert,"errorFilledBg",N("palette-error-dark")),Jt(P.Alert,"infoFilledBg",N("palette-info-dark")),Jt(P.Alert,"successFilledBg",N("palette-success-dark")),Jt(P.Alert,"warningFilledBg",N("palette-warning-dark")),Jt(P.Alert,"errorFilledColor",pv(()=>P.getContrastText(P.error.dark))),Jt(P.Alert,"infoFilledColor",pv(()=>P.getContrastText(P.info.dark))),Jt(P.Alert,"successFilledColor",pv(()=>P.getContrastText(P.success.dark))),Jt(P.Alert,"warningFilledColor",pv(()=>P.getContrastText(P.warning.dark))),Jt(P.Alert,"errorStandardBg",F(rs,P.error.light,.9)),Jt(P.Alert,"infoStandardBg",F(rs,P.info.light,.9)),Jt(P.Alert,"successStandardBg",F(rs,P.success.light,.9)),Jt(P.Alert,"warningStandardBg",F(rs,P.warning.light,.9)),Jt(P.Alert,"errorIconColor",N("palette-error-main")),Jt(P.Alert,"infoIconColor",N("palette-info-main")),Jt(P.Alert,"successIconColor",N("palette-success-main")),Jt(P.Alert,"warningIconColor",N("palette-warning-main")),Jt(P.AppBar,"defaultBg",N("palette-grey-900")),Jt(P.AppBar,"darkBg",N("palette-background-paper")),Jt(P.AppBar,"darkColor",N("palette-text-primary")),Jt(P.Avatar,"defaultBg",N("palette-grey-600")),Jt(P.Button,"inheritContainedBg",N("palette-grey-800")),Jt(P.Button,"inheritContainedHoverBg",N("palette-grey-700")),Jt(P.Chip,"defaultBorder",N("palette-grey-700")),Jt(P.Chip,"defaultAvatarColor",N("palette-grey-300")),Jt(P.Chip,"defaultIconColor",N("palette-grey-300")),Jt(P.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Jt(P.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Jt(P.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Jt(P.LinearProgress,"primaryBg",F(rs,P.primary.main,.5)),Jt(P.LinearProgress,"secondaryBg",F(rs,P.secondary.main,.5)),Jt(P.LinearProgress,"errorBg",F(rs,P.error.main,.5)),Jt(P.LinearProgress,"infoBg",F(rs,P.info.main,.5)),Jt(P.LinearProgress,"successBg",F(rs,P.success.main,.5)),Jt(P.LinearProgress,"warningBg",F(rs,P.warning.main,.5)),Jt(P.Skeleton,"bg",x?F(WS,P.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),Jt(P.Slider,"primaryTrack",F(rs,P.primary.main,.5)),Jt(P.Slider,"secondaryTrack",F(rs,P.secondary.main,.5)),Jt(P.Slider,"errorTrack",F(rs,P.error.main,.5)),Jt(P.Slider,"infoTrack",F(rs,P.info.main,.5)),Jt(P.Slider,"successTrack",F(rs,P.success.main,.5)),Jt(P.Slider,"warningTrack",F(rs,P.warning.main,.5));const L=x?F(is,P.background.default,.985):p8(P.background.default,.98);Jt(P.SnackbarContent,"bg",L),Jt(P.SnackbarContent,"color",pv(()=>x?yst.text.primary:P.getContrastText(L))),Jt(P.SpeedDialAction,"fabHoverBg",p8(P.background.paper,.15)),Jt(P.StepConnector,"border",N("palette-grey-600")),Jt(P.StepContent,"border",N("palette-grey-600")),Jt(P.Switch,"defaultColor",N("palette-grey-300")),Jt(P.Switch,"defaultDisabledColor",N("palette-grey-600")),Jt(P.Switch,"primaryDisabledColor",F(rs,P.primary.main,.55)),Jt(P.Switch,"secondaryDisabledColor",F(rs,P.secondary.main,.55)),Jt(P.Switch,"errorDisabledColor",F(rs,P.error.main,.55)),Jt(P.Switch,"infoDisabledColor",F(rs,P.info.main,.55)),Jt(P.Switch,"successDisabledColor",F(rs,P.success.main,.55)),Jt(P.Switch,"warningDisabledColor",F(rs,P.warning.main,.55)),Jt(P.TableCell,"border",F(rs,F(WS,P.divider,1),.68)),Jt(P.Tooltip,"bg",F(WS,P.grey[700],.92))}W2(P.background,"default"),W2(P.background,"paper"),W2(P.common,"background"),W2(P.common,"onBackground"),W2(P,"divider"),Object.keys(P).forEach(L=>{const W=P[L];L!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&Jt(P[L],"mainChannel",K5(Q5(W.main))),W.light&&Jt(P[L],"lightChannel",K5(Q5(W.light))),W.dark&&Jt(P[L],"darkChannel",K5(Q5(W.dark))),W.contrastText&&Jt(P[L],"contrastTextChannel",K5(Q5(W.contrastText))),L==="text"&&(W2(P[L],"primary"),W2(P[L],"secondary")),L==="action"&&(W.active&&W2(P[L],"active"),W.selected&&W2(P[L],"selected")))})}),S=t.reduce((I,P)=>v0(I,P),S);const A={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Ofn(S),enableContrastVars:a},{vars:z,generateThemeVars:O,generateStyleSheets:T}=Khn(S,A);return S.vars=z,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([I,P])=>{S[I]=P}),S.generateThemeVars=O,S.generateStyleSheets=T,S.generateSpacing=function(){return Qat(u.spacing,jMe(this))},S.getColorSchemeSelector=Qhn(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...F6,...u?.unstable_sxConfig},S.unstable_sx=function(P){return cP({sx:P,theme:this})},S.toRuntimeSource=Cst,S}function pDe(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:tCe({...n===!0?{}:n.palette,mode:t})})}function Ifn(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],c={...i,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return dfe(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=dfe({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},pDe(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},pDe(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),Rfn({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}function Pfn(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Dfn(e){return parseFloat(e)}const MQ=Ifn();function $b(){const e=ZMe(MQ);return e[B6]||e}function Ro({props:e,name:t}){return bhn({props:e,name:t,defaultTheme:MQ,themeId:B6})}function Sst(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cp=e=>Sst(e)&&e!=="classes",rt=mst({themeId:B6,defaultTheme:MQ,rootShouldForwardProp:Cp}),CQ=Z.oneOfType([Z.func,Z.object]);function hDe(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function zw(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Is(e){return e&&e.ownerDocument||document}function Mm(e){return Is(e).defaultView||window}function hfe(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function up(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:o}=b.useRef(t!==void 0),[a,s]=b.useState(n),l=o?t:a,c=b.useCallback(u=>{o||s(u)},[]);return[l,c]}function en(e){const t=b.useRef(e);return To(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Pi(...e){const t=b.useRef(void 0),n=b.useCallback(r=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return o.current=r,()=>{o.current=null}});return()=>{i.forEach(o=>o?.())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const fDe={};function xp(e,t){const n=b.useRef(fDe);return n.current===fDe&&(n.current=e(t)),n}const kfn=[];function V6(e){b.useEffect(e,kfn)}class xQ{static create(){return new xQ}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Qp(){const e=xp(xQ.create).current;return V6(e.disposeEffect),e}function n9(e){try{return e.matches(":focus-visible")}catch{}return!1}function Ast(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function nCe(e){const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current}const Lfn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function dP(e){return typeof e=="string"}function Ost(e,t,n){return e===void 0||dP(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function zst(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function gDe(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Tst(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=ife(n?.className,o,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},m={...n,...i,...r};return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const a=zst({...i,...r}),s=gDe(r),l=gDe(i),c=t(a),u=ife(c?.className,n?.className,o,i?.className,r?.className),d={...c?.style,...n?.style,...i?.style,...r?.style},p={...c,...n,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function Pz(e,t,n){return typeof e=="function"?e(t,n):e}function Ho(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:Pz(n,r),{props:s,internalRef:l}=Tst({...o,externalSlotProps:a}),c=Pi(l,a?.ref,e.additionalProps?.ref);return Ost(t,{...s,ref:c},r)}function O3(e){return parseInt(b.version,10)>=19?e?.props?.ref||null:e?.ref||null}const jv=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Est=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let o;if(e!=null)o=e;else if(i.includes(t))o=t;else if(i.length>0)o=i[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:i,openTo:o}},r9=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},XN=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=r9(a,a.date(void 0,s),e);n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,i)&&(c=i,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,i)&&(u=null),c){if(!o(c))return c;c=a.addDays(c,1)}if(u){if(!o(u))return u;u=a.addDays(u,-1)}}return null},_fn=(e,t)=>t==null||!e.isValid(t)?null:t,w0=(e,t,n)=>t==null||!e.isValid(t)?n:t,Nfn=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),rCe=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},iCe=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),by=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Ffn=["year","month","day"],pP=e=>Ffn.includes(e),OW=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return jv(n,["year"])?i.year:jv(n,["month"])?i.month:jv(n,["day"])?i.dayOfMonth:jv(n,["month","year"])?`${i.month} ${i.year}`:jv(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},Wfn=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Rst=["hours","minutes","seconds"],hP=e=>Rst.includes(e),Z5=e=>Rst.includes(e)||e==="meridiem",qfn=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,zW=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Bfn=(e,t,n,r)=>{const i=zW(r.getHours(e),t,n);return r.setHours(e,i)},mDe=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),G6=(e,t)=>(n,r)=>e?t.isAfter(n,r):mDe(n,t)>mDe(r,t),vDe=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return jv(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:jv(n,["minutes"])?i.minutes:jv(n,["seconds"])?i.seconds:jv(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:jv(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},Gg={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},jfn=e=>Math.max(...e.map(t=>Gg[t.type]??1)),u4=(e,t,n)=>{if(t===Gg.year)return e.startOfYear(n);if(t===Gg.month)return e.startOfMonth(n);if(t===Gg.day)return e.startOfDay(n);let r=n;return t<Gg.minutes&&(r=e.setMinutes(r,0)),t<Gg.seconds&&(r=e.setSeconds(r,0)),t<Gg.milliseconds&&(r=e.setMilliseconds(r,0)),r},Hfn=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:i})=>{let o=i?i():u4(t,n,iCe(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,o)&&(o=u4(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,o)&&(o=u4(t,n,e.maxDate));const a=G6(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,o)&&(o=u4(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:r9(t,o,e.minTime))),e.maxTime!=null&&a(o,e.maxTime)&&(o=u4(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:r9(t,o,e.maxTime))),o},Ist=(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(`
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Vfn=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},wQ=(e,t)=>{const n=[],r=e.date(void 0,"default"),i=e.startOfWeek(r),o=e.endOfWeek(r);let a=i;for(;e.isBefore(a,o);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},Pst=(e,t,n,r)=>{switch(n){case"month":return rCe(e,e.date(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return wQ(e,r);case"meridiem":{const i=e.date(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(o=>e.formatByString(o,r))}default:return[]}},bDe="s",Gfn=["0","1","2","3","4","5","6","7","8","9"],$fn=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),bDe)==="0"?Gfn:Array.from({length:10}).map((r,i)=>e.formatByString(e.setSeconds(t,i),bDe))},Dz=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let i=0;i<e.length;i+=1){r+=e[i];const o=t.indexOf(r);o>-1&&(n.push(o.toString()),r="")}return n.join("")},oCe=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),yDe=(e,t)=>{const n=Dz(e,t);return n!==" "&&!Number.isNaN(Number(n))},Dst=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},kst=(e,t,n,r,i)=>{if(i.type==="day"&&i.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,i.format)}let o=t.toString();return i.hasLeadingZerosInInput&&(o=Dst(o,i.maxLength)),oCe(o,r)},Ufn=(e,t,n,r,i,o,a,s)=>{const l=Vfn(r),c=r==="Home",u=r==="End",d=n.value===""||c||u,p=()=>{const g=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),m=M=>kst(e,M,g,o,n),v=n.type==="minutes"&&s?.minutesStep?s.minutesStep:1;let y;if(d){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?y=g.minimum:y=g.maximum}else y=parseInt(Dz(n.value,o),10)+l*v;return y%v!==0&&((l<0||c)&&(y+=v-(v+y)%v),(l>0||u)&&(y-=y%v)),y>g.maximum?m(g.minimum+(y-g.maximum-1)%(g.maximum-g.minimum+1)):y<g.minimum?m(g.maximum-(g.minimum-y-1)%(g.maximum-g.minimum+1)):m(y)},h=()=>{const g=Pst(e,t,n.type,n.format);if(g.length===0)return n.value;if(d)return l>0||c?g[0]:g[g.length-1];const y=((g.indexOf(n.value)+l)%g.length+g.length)%g.length;return g[y]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():h()},aCe=(e,t,n)=>{let r=e.value||e.placeholder;const i=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(Dz(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!i&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},MDe=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Xfn=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Lst=(e,t,n,r)=>{if(t!=="digit")return!1;const i=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(i,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(i),r).length>1;case"day":return e.formatByString(e.startOfMonth(i),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),r).length>1;case"hours":return e.formatByString(e.setHours(i,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),r).length>1;default:throw new Error("Invalid section type")}},Yfn=(e,t,n)=>{const r=t.some(l=>l.type==="day"),i=[],o=[];for(let l=0;l<t.length;l+=1){const c=t[l];r&&c.type==="weekDay"||(i.push(c.format),o.push(aCe(c,"non-input",n)))}const a=i.join(" "),s=o.join(" ");return e.parse(s,a)},Kfn=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Qfn=(e,t,n)=>{const i=e.map(o=>{const a=aCe(o,n?"input-rtl":"input-ltr",t);return`${o.startSeparator}${a}${o.endSeparator}`}).join("");return n?`⁦${i}⁩`:i},Zfn=(e,t,n)=>{const r=e.date(void 0,n),i=e.endOfYear(r),o=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=rCe(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:Xfn(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(i)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=wQ(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(o);return Dz(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(Dz(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Jfn=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const i=wQ(e,t.format),o=e.formatByString(n,t.format),a=i.indexOf(o),l=i.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const i=e.getHours(n)<12,o=e.getHours(r);return i&&o>=12?e.addHours(r,-12):!i&&o<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},CDe={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},xDe=(e,t,n,r,i)=>[...n].sort((o,a)=>CDe[o.type]-CDe[a.type]).reduce((o,a)=>!i||a.modified?Jfn(e,a,t,o):o,r),egn=()=>navigator.userAgent.toLowerCase().includes("android"),tgn=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,d=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>c>=o&&l.endSeparator?.includes(" ")&&l.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let l=a;l>=o;l-=1)i[l]=s,r[s]=l,s-=1;o=a+1}return e.forEach((l,c)=>{const u=i[c],d=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},ffe=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},ngn=(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}},rgn=(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}},ign=["value","referenceDate"],Tu={emptyValue:null,getTodayValue:iCe,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Lt(e,ign);return t!=null&&r.utils.isValid(t)?t:n??Hfn(r)},cleanValue:_fn,areValuesEqual:Nfn,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)},_st={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:Kfn,getV6InputValueFromSections:Qfn,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)},ogn=["localeText"],gfe=b.createContext(null),Nst=function(t){const{localeText:n}=t,r=Lt(t,ogn),{utils:i,localeText:o}=b.useContext(gfe)??{utils:void 0,localeText:void 0},a=Ro({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:d,localeText:p}=a,h=b.useMemo(()=>Y({},p,o,n),[p,o,n]),g=b.useMemo(()=>{if(!l)return i||null;const y=new l({locale:d,formats:c,instance:u});if(!y.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(`
`));return y},[l,d,c,u,i]),m=b.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),v=b.useMemo(()=>({utils:g,defaultDates:m,localeText:h}),[m,g,h]);return f.jsx(gfe.Provider,{value:v,children:s})},agn=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Y({},e)}}}}),SQ=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:i}=e;return o=>{const a=o!==null&&t.isValid(o)?t.format(o,n):null;return(i??r)(o,t,a)}},Fst={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,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??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"},sgn=Fst;agn(Fst);const z3=()=>{const e=b.useContext(gfe);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(`
`));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(`
`));const t=b.useMemo(()=>Y({},sgn,e.localeText),[e.localeText]);return b.useMemo(()=>Y({},e,{localeText:t}),[e,t])},sa=()=>z3().utils,T3=()=>z3().defaultDates,E3=e=>{const t=sa(),n=b.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Wst(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Wst(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Oa(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Wst(e))&&(r&&(r+=" "),r+=t);return r}function qst(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=qst(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=qst(e))&&(r&&(r+=" "),r+=t);return r}function lgn(e){return f.jsx(xhn,{...e,defaultTheme:MQ,themeId:B6})}function cgn(e){return function(n){return f.jsx(lgn,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function ugn(){return Shn}const kr=$hn;function mi(e){return Hhn(e)}function dgn(e){return typeof e.main=="string"}function pgn(e,t=[]){if(!dgn(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function _l(e=[]){return([,t])=>t&&pgn(t,e)}function hgn(e){return Bn("MuiTypography",e)}const wDe=Ln("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),fgn={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ggn=ugn(),mgn=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${jt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Yt(s,hgn,a)},vgn=rt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${jt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(kr(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${jt(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),SDe={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},i1=b.forwardRef(function(t,n){const{color:r,...i}=mi({props:t,name:"MuiTypography"}),o=!fgn[r],a=ggn({...i,...o&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:p=!1,variant:h="body1",variantMapping:g=SDe,...m}=a,v={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:p,variant:h,variantMapping:g},y=c||(p?"p":g[h]||SDe[h])||"span",M=mgn(v);return f.jsx(vgn,{as:y,ref:n,className:nr(M.root,l),...m,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...m.style}})});function Bst(e){return Bn("MuiPickersToolbar",e)}const bgn=Ln("MuiPickersToolbar",["root","content"]),ygn=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Mgn=e=>{const{classes:t}=e;return Yt({root:["root"],content:["content"]},Bst,t)},Cgn=rt("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"}}]})),xgn=rt("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"}}]}),jst=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,toolbarTitle:a,hidden:s,titleId:l}=r,c=Lt(r,ygn),u=r,d=Mgn(u);return s?null:f.jsxs(Cgn,Y({ref:n,className:Oa(d.root,o),ownerState:u},c,{children:[f.jsx(i1,{color:"text.secondary",variant:"overline",id:l,children:a}),f.jsx(xgn,{className:d.content,ownerState:u,children:i})]}))}),Ed=()=>z3().localeText;function wgn(e){return Bn("MuiDatePickerToolbar",e)}Ln("MuiDatePickerToolbar",["root","title"]);const Sgn=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Agn=e=>{const{classes:t}=e;return Yt({root:["root"],title:["title"]},wgn,t)},Ogn=rt(jst,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zgn=rt(i1,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Tgn=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l,className:c}=r,u=Lt(r,Sgn),d=sa(),p=Ed(),h=Agn(r),g=b.useMemo(()=>{if(!i)return s;const v=OW(d,{format:a,views:l},!0);return d.formatByString(i,v)},[i,a,s,d,l]),m=r;return f.jsx(Ogn,Y({ref:n,toolbarTitle:p.datePickerToolbarTitle,isLandscape:o,className:Oa(h.root,c)},u,{children:f.jsx(zgn,{variant:"h4",align:o?"left":"center",ownerState:m,className:h.title,children:g})}))});function Hst(e,t){const n=sa(),r=T3(),i=Ro({props:e,name:t}),o=b.useMemo(()=>i.localeText?.toolbarTitle==null?i.localeText:Y({},i.localeText,{datePickerToolbarTitle:i.localeText.toolbarTitle}),[i.localeText]);return Y({},i,{localeText:o},Est({views:i.views,openTo:i.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:w0(n,i.minDate,r.minDate),maxDate:w0(n,i.maxDate,r.maxDate),slots:Y({toolbar:Tgn},i.slots)})}const OD=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:i,shouldDisableMonth:o,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,c=r.utils.date(void 0,n),u=w0(r.utils,e.minDate,r.defaultDates.minDate),d=w0(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(i&&i(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};OD.valueManager=Tu;const Vst=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:i,maxTime:o,minutesStep:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u}=r,d=e.utils.date(void 0,n),p=G6(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&p(i,t)):return"minTime";case!!(o&&p(t,o)):return"maxTime";case!!(u&&e.utils.isAfter(t,d)):return"disableFuture";case!!(c&&e.utils.isBefore(t,d)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}};Vst.valueManager=Tu;const AQ=({adapter:e,value:t,timezone:n,props:r})=>{const i=OD({adapter:e,value:t,timezone:n,props:r});return i!==null?i:Vst({adapter:e,value:t,timezone:n,props:r})};AQ.valueManager=Tu;const mfe=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],vfe=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Gst=["minDateTime","maxDateTime"],Egn=[...mfe,...vfe,...Gst],OQ=e=>Egn.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function $st(e){const{props:t,validator:n,value:r,timezone:i,onError:o}=e,a=z3(),s=b.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:i,props:t}),c=n.valueManager.hasError(l);b.useEffect(()=>{o&&!n.valueManager.isSameError(l,s.current)&&o(l,r),s.current=l},[n,o,l,r]);const u=en(d=>n({adapter:a,value:d,timezone:i,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const zQ=b.createContext(void 0);function mh(){return b.useContext(zQ)}function Rgn(e){return Bn("MuiInputAdornment",e)}const bfe=Ln("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ADe;const Ign=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${jt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Pgn=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${jt(i)}`,a,r&&"hiddenLabel",o&&`size${jt(o)}`]};return Yt(s,Rgn,t)},Dgn=rt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Ign})(kr(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${bfe.positionStart}&:not(.${bfe.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),sCe=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,p=mh()||{};let h=u;u&&p.variant,p&&!h&&(h=p.variant);const g={...r,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:h},m=Pgn(g);return f.jsx(zQ.Provider,{value:null,children:f.jsx(Dgn,{as:a,ownerState:g,className:nr(m.root,o),ref:n,...d,children:typeof i=="string"&&!l?f.jsx(i1,{color:"textSecondary",children:i}):f.jsxs(b.Fragment,{children:[c==="start"?ADe||(ADe=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})});function kgn(e){return Bn("MuiSvgIcon",e)}Ln("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lgn=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${jt(t)}`,`fontSize${jt(n)}`]};return Yt(i,kgn,r)},_gn=rt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${jt(n.color)}`],t[`fontSize${jt(n.fontSize)}`]]}})(kr(({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}}]}))),yfe=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...h}=r,g=b.isValidElement(i)&&i.type==="svg",m={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:g},v={};u||(v.viewBox=p);const y=Lgn(m);return f.jsxs(_gn,{as:s,className:nr(y.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...h,...g&&i.props,ownerState:m,children:[g?i.props.children:i,d?f.jsx("title",{children:d}):null]})});yfe.muiName="SvgIcon";function Pu(e,t){function n(r,i){return f.jsx(yfe,{"data-testid":void 0,ref:i,...r,children:e})}return n.muiName=yfe.muiName,b.memo(b.forwardRef(n))}function Ngn(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Ust(e,t){if(!e)return t;function n(a,s){const l={};return Object.keys(s).forEach(c=>{Ngn(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...u)=>{a[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=nr(a?.className,s?.className,l?.className),u=n(l,s);return{...s,...l,...u,...!!c&&{className:c},...s?.style&&l?.style&&{style:{...s.style,...l.style}},...s?.sx&&l?.sx&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,i=n(e,r),o=nr(r?.className,e?.className);return{...t,...e,...i,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}class i9{static create(){return new i9}static use(){const t=xp(i9.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Wgn(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Fgn(){return i9.use()}function Wgn(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function qgn(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=b.useState(!1),p=nr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},g=nr(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),b.useEffect(()=>{if(!s&&l!=null){const m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,s,c]),f.jsx("span",{className:p,style:h,children:f.jsx("span",{className:g})})}const ef=Ln("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Mfe=550,Bgn=80,jgn=Uf`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`,Hgn=Uf`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`,Vgn=Uf`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`,Ggn=rt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),$gn=rt(qgn,{name:"MuiTouchRipple",slot:"Ripple"})`
  opacity: 0;
  position: absolute;

  &.${ef.rippleVisible} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${jgn};
    animation-duration: ${Mfe}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  &.${ef.ripplePulsate} {
    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  }

  & .${ef.child} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${ef.childLeaving} {
    opacity: 0;
    animation-name: ${Hgn};
    animation-duration: ${Mfe}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  & .${ef.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${Vgn};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,Ugn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a,...s}=r,[l,c]=b.useState([]),u=b.useRef(0),d=b.useRef(null);b.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=b.useRef(!1),h=Qp(),g=b.useRef(null),m=b.useRef(null),v=b.useCallback(x=>{const{pulsate:w,rippleX:S,rippleY:A,rippleSize:z,cb:O}=x;c(T=>[...T,f.jsx($gn,{classes:{ripple:nr(o.ripple,ef.ripple),rippleVisible:nr(o.rippleVisible,ef.rippleVisible),ripplePulsate:nr(o.ripplePulsate,ef.ripplePulsate),child:nr(o.child,ef.child),childLeaving:nr(o.childLeaving,ef.childLeaving),childPulsate:nr(o.childPulsate,ef.childPulsate)},timeout:Mfe,pulsate:w,rippleX:S,rippleY:A,rippleSize:z},u.current)]),u.current+=1,d.current=O},[o]),y=b.useCallback((x={},w={},S=()=>{})=>{const{pulsate:A=!1,center:z=i||w.pulsate,fakeElement:O=!1}=w;if(x?.type==="mousedown"&&p.current){p.current=!1;return}x?.type==="touchstart"&&(p.current=!0);const T=O?null:m.current,I=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,N,F;if(z||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)P=Math.round(I.width/2),N=Math.round(I.height/2);else{const{clientX:L,clientY:W}=x.touches&&x.touches.length>0?x.touches[0]:x;P=Math.round(L-I.left),N=Math.round(W-I.top)}if(z)F=Math.sqrt((2*I.width**2+I.height**2)/3),F%2===0&&(F+=1);else{const L=Math.max(Math.abs((T?T.clientWidth:0)-P),P)*2+2,W=Math.max(Math.abs((T?T.clientHeight:0)-N),N)*2+2;F=Math.sqrt(L**2+W**2)}x?.touches?g.current===null&&(g.current=()=>{v({pulsate:A,rippleX:P,rippleY:N,rippleSize:F,cb:S})},h.start(Bgn,()=>{g.current&&(g.current(),g.current=null)})):v({pulsate:A,rippleX:P,rippleY:N,rippleSize:F,cb:S})},[i,v,h]),M=b.useCallback(()=>{y({},{pulsate:!0})},[y]),C=b.useCallback((x,w)=>{if(h.clear(),x?.type==="touchend"&&g.current){g.current(),g.current=null,h.start(0,()=>{C(x,w)});return}g.current=null,c(S=>S.length>0?S.slice(1):S),d.current=w},[h]);return b.useImperativeHandle(n,()=>({pulsate:M,start:y,stop:C}),[M,y,C]),f.jsx(Ggn,{className:nr(ef.root,o.root,a),ref:m,...s,children:f.jsx(x3,{component:null,exit:!0,children:l})})});function Xgn(e){return Bn("MuiButtonBase",e)}const Ygn=Ln("MuiButtonBase",["root","disabled","focusVisible"]),Kgn=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Yt({root:["root",t&&"disabled",n&&"focusVisible"]},Xgn,i);return n&&r&&(a.root+=` ${r}`),a},Qgn=rt("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ygn.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ib=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:g="a",onBlur:m,onClick:v,onContextMenu:y,onDragLeave:M,onFocus:C,onFocusVisible:x,onKeyDown:w,onKeyUp:S,onMouseDown:A,onMouseLeave:z,onMouseUp:O,onTouchEnd:T,onTouchMove:I,onTouchStart:P,tabIndex:N=0,TouchRippleProps:F,touchRippleRef:L,type:W,...H}=r,j=b.useRef(null),G=Fgn(),q=Pi(G.ref,L),[$,U]=b.useState(!1);c&&$&&U(!1),b.useImperativeHandle(i,()=>({focusVisible:()=>{U(!0),j.current.focus()}}),[]);const X=G.shouldMount&&!u&&!c;b.useEffect(()=>{$&&p&&!u&&G.pulsate()},[u,p,$,G]);const Q=q2(G,"start",A,d),re=q2(G,"stop",y,d),ee=q2(G,"stop",M,d),se=q2(G,"stop",O,d),pe=q2(G,"stop",ue=>{$&&ue.preventDefault(),z&&z(ue)},d),te=q2(G,"start",P,d),ce=q2(G,"stop",T,d),oe=q2(G,"stop",I,d),ae=q2(G,"stop",ue=>{n9(ue.target)||U(!1),m&&m(ue)},!1),ne=en(ue=>{j.current||(j.current=ue.currentTarget),n9(ue.target)&&(U(!0),x&&x(ue)),C&&C(ue)}),le=()=>{const ue=j.current;return l&&l!=="button"&&!(ue.tagName==="A"&&ue.href)},he=en(ue=>{p&&!ue.repeat&&$&&ue.key===" "&&G.stop(ue,()=>{G.start(ue)}),ue.target===ue.currentTarget&&le()&&ue.key===" "&&ue.preventDefault(),w&&w(ue),ue.target===ue.currentTarget&&le()&&ue.key==="Enter"&&!c&&(ue.preventDefault(),v&&v(ue))}),be=en(ue=>{p&&ue.key===" "&&$&&!ue.defaultPrevented&&G.stop(ue,()=>{G.pulsate(ue)}),S&&S(ue),v&&ue.target===ue.currentTarget&&le()&&ue.key===" "&&!ue.defaultPrevented&&v(ue)});let me=l;me==="button"&&(H.href||H.to)&&(me=g);const Me={};me==="button"?(Me.type=W===void 0?"button":W,Me.disabled=c):(!H.href&&!H.to&&(Me.role="button"),c&&(Me["aria-disabled"]=c));const Oe=Pi(n,j),de={...r,centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:N,focusVisible:$},ie=Kgn(de);return f.jsxs(Qgn,{as:me,className:nr(ie.root,s),ownerState:de,onBlur:ae,onClick:v,onContextMenu:re,onFocus:ne,onKeyDown:he,onKeyUp:be,onMouseDown:Q,onMouseLeave:pe,onMouseUp:se,onDragLeave:ee,onTouchEnd:ce,onTouchMove:oe,onTouchStart:te,ref:Oe,tabIndex:c?-1:N,type:W,...Me,...H,children:[a,X?f.jsx(Ugn,{ref:q,center:o,...F}):null]})});function q2(e,t,n,r=!1){return en(i=>(n&&n(i),r||e[t](i),!0))}function Zgn(e){return Bn("MuiCircularProgress",e)}Ln("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rC=44,Cfe=Uf`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`,xfe=Uf`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,Jgn=typeof Cfe!="string"?Ow`
        animation: ${Cfe} 1.4s linear infinite;
      `:null,emn=typeof xfe!="string"?Ow`
        animation: ${xfe} 1.4s ease-in-out infinite;
      `:null,tmn=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${jt(r)}`],svg:["svg"],circle:["circle",`circle${jt(n)}`,i&&"circleDisableShrink"]};return Yt(o,Zgn,t)},nmn=rt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${jt(n.color)}`]]}})(kr(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Jgn||{animation:`${Cfe} 1.4s linear infinite`}},...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),rmn=rt("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),imn=rt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${jt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(kr(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:emn||{animation:`${xfe} 1.4s ease-in-out infinite`}}]}))),$6=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...p}=r,h={...r,color:o,disableShrink:a,size:s,thickness:c,value:u,variant:d},g=tmn(h),m={},v={},y={};if(d==="determinate"){const M=2*Math.PI*((rC-c)/2);m.strokeDasharray=M.toFixed(3),y["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*M).toFixed(3)}px`,v.transform="rotate(-90deg)"}return f.jsx(nmn,{className:nr(g.root,i),style:{width:s,height:s,...v,...l},ownerState:h,ref:n,role:"progressbar",...y,...p,children:f.jsx(rmn,{className:g.svg,ownerState:h,viewBox:`${rC/2} ${rC/2} ${rC} ${rC}`,children:f.jsx(imn,{className:g.circle,style:m,ownerState:h,cx:rC,cy:rC,r:(rC-c)/2,fill:"none",strokeWidth:c})})})});function omn(e){return Bn("MuiIconButton",e)}const wfe=Ln("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),amn=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o,loading:a}=e,s={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${jt(r)}`,i&&`edge${jt(i)}`,`size${jt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Yt(s,omn,t)},smn=rt(Ib,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${jt(n.color)}`],n.edge&&t[`edge${jt(n.edge)}`],t[`size${jt(n.size)}`]]}})(kr(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),kr(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${wfe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${wfe.loading}`]:{color:"transparent"}}))),lmn=rt("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Zp=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:d,loading:p=null,loadingIndicator:h,...g}=r,m=Hi(d),v=h??f.jsx($6,{"aria-labelledby":m,color:"inherit",size:16}),y={...r,edge:i,color:s,disabled:l,disableFocusRipple:c,loading:p,loadingIndicator:v,size:u},M=amn(y);return f.jsxs(smn,{id:p?m:d,className:nr(M.root,a),centerRipple:!0,focusRipple:!c,disabled:l||p,ref:n,...g,ownerState:y,children:[typeof p=="boolean"&&f.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:f.jsx(lmn,{className:M.loadingIndicator,ownerState:y,children:p&&v})}),o]})}),Xst=e=>e.scrollTop;function o9(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function Sfe(e){return`scale(${e}, ${e**2})`}const cmn={entering:{opacity:1,transform:Sfe(1)},entered:{opacity:1,transform:"none"}},Oie=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fP=b.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:g,timeout:m="auto",TransitionComponent:v=b1,...y}=t,M=Qp(),C=b.useRef(),x=$b(),w=b.useRef(null),S=Pi(w,O3(o),n),A=L=>W=>{if(L){const H=w.current;W===void 0?L(H):L(H,W)}},z=A(u),O=A((L,W)=>{Xst(L);const{duration:H,delay:j,easing:G}=o9({style:g,timeout:m,easing:a},{mode:"enter"});let q;m==="auto"?(q=x.transitions.getAutoHeightDuration(L.clientHeight),C.current=q):q=H,L.style.transition=[x.transitions.create("opacity",{duration:q,delay:j}),x.transitions.create("transform",{duration:Oie?q:q*.666,delay:j,easing:G})].join(","),l&&l(L,W)}),T=A(c),I=A(h),P=A(L=>{const{duration:W,delay:H,easing:j}=o9({style:g,timeout:m,easing:a},{mode:"exit"});let G;m==="auto"?(G=x.transitions.getAutoHeightDuration(L.clientHeight),C.current=G):G=W,L.style.transition=[x.transitions.create("opacity",{duration:G,delay:H}),x.transitions.create("transform",{duration:Oie?G:G*.666,delay:Oie?H:H||G*.333,easing:j})].join(","),L.style.opacity=0,L.style.transform=Sfe(.75),d&&d(L)}),N=A(p),F=L=>{m==="auto"&&M.start(C.current||0,L),r&&r(w.current,L)};return f.jsx(v,{appear:i,in:s,nodeRef:w,onEnter:O,onEntered:T,onEntering:z,onExit:P,onExited:N,onExiting:I,addEndListener:F,timeout:m==="auto"?null:m,...y,children:(L,{ownerState:W,...H})=>b.cloneElement(o,{style:{opacity:0,transform:Sfe(.75),visibility:L==="exited"&&!s?"hidden":void 0,...cmn[L],...g,...o.props.style},ref:S,...H})})});fP&&(fP.muiSupportAuto=!0);const umn={entering:{opacity:1},entered:{opacity:1}},kz=b.forwardRef(function(t,n){const r=$b(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:g,onExiting:m,style:v,timeout:y=i,TransitionComponent:M=b1,...C}=t,x=b.useRef(null),w=Pi(x,O3(s),n),S=F=>L=>{if(F){const W=x.current;L===void 0?F(W):F(W,L)}},A=S(p),z=S((F,L)=>{Xst(F);const W=o9({style:v,timeout:y,easing:l},{mode:"enter"});F.style.webkitTransition=r.transitions.create("opacity",W),F.style.transition=r.transitions.create("opacity",W),u&&u(F,L)}),O=S(d),T=S(m),I=S(F=>{const L=o9({style:v,timeout:y,easing:l},{mode:"exit"});F.style.webkitTransition=r.transitions.create("opacity",L),F.style.transition=r.transitions.create("opacity",L),h&&h(F)}),P=S(g),N=F=>{o&&o(x.current,F)};return f.jsx(M,{appear:a,in:c,nodeRef:x,onEnter:z,onEntered:O,onEntering:A,onExit:I,onExited:P,onExiting:T,addEndListener:N,timeout:y,...C,children:(F,{ownerState:L,...W})=>b.cloneElement(s,{style:{opacity:0,visibility:F==="exited"&&!c?"hidden":void 0,...umn[F],...v,...s.props.style},ref:w,...W})})});function dmn(e){return Bn("MuiPaper",e)}Ln("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 pmn=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Yt(o,dmn,i)},hmn=rt("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}`]]}})(kr(({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)"}}]}))),R3=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiPaper"}),i=$b(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},p=pmn(d);return f.jsx(hmn,{as:a,ownerState:d,className:nr(p.root,o),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${wd("#fff",pfe(s))}, ${wd("#fff",pfe(s))})`}},...u.style}})});var dp="top",kf="bottom",Lf="right",pp="left",lCe="auto",U6=[dp,kf,Lf,pp],gP="start",TW="end",fmn="clippingParents",Yst="viewport",d4="popper",gmn="reference",ODe=U6.reduce(function(e,t){return e.concat([t+"-"+gP,t+"-"+TW])},[]),Kst=[].concat(U6,[lCe]).reduce(function(e,t){return e.concat([t,t+"-"+gP,t+"-"+TW])},[]),mmn="beforeRead",vmn="read",bmn="afterRead",ymn="beforeMain",Mmn="main",Cmn="afterMain",xmn="beforeWrite",wmn="write",Smn="afterWrite",Amn=[mmn,vmn,bmn,ymn,Mmn,Cmn,xmn,wmn,Smn];function Pb(e){return e?(e.nodeName||"").toLowerCase():null}function ch(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Lz(e){var t=ch(e).Element;return e instanceof t||e instanceof Element}function zf(e){var t=ch(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cCe(e){if(typeof ShadowRoot>"u")return!1;var t=ch(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Omn(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!zf(o)||!Pb(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function zmn(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!zf(i)||!Pb(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Tmn={name:"applyStyles",enabled:!0,phase:"write",fn:Omn,effect:zmn,requires:["computeStyles"]};function ub(e){return e.split("-")[0]}var BO=Math.max,a9=Math.min,mP=Math.round;function Afe(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Qst(){return!/^((?!chrome|android).)*safari/i.test(Afe())}function vP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&zf(e)&&(i=e.offsetWidth>0&&mP(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&mP(r.height)/e.offsetHeight||1);var a=Lz(e)?ch(e):window,s=a.visualViewport,l=!Qst()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function uCe(e){var t=vP(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Zst(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&cCe(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ky(e){return ch(e).getComputedStyle(e)}function Emn(e){return["table","td","th"].indexOf(Pb(e))>=0}function Tw(e){return((Lz(e)?e.ownerDocument:e.document)||window.document).documentElement}function TQ(e){return Pb(e)==="html"?e:e.assignedSlot||e.parentNode||(cCe(e)?e.host:null)||Tw(e)}function zDe(e){return!zf(e)||Ky(e).position==="fixed"?null:e.offsetParent}function Rmn(e){var t=/firefox/i.test(Afe()),n=/Trident/i.test(Afe());if(n&&zf(e)){var r=Ky(e);if(r.position==="fixed")return null}var i=TQ(e);for(cCe(i)&&(i=i.host);zf(i)&&["html","body"].indexOf(Pb(i))<0;){var o=Ky(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function X6(e){for(var t=ch(e),n=zDe(e);n&&Emn(n)&&Ky(n).position==="static";)n=zDe(n);return n&&(Pb(n)==="html"||Pb(n)==="body"&&Ky(n).position==="static")?t:n||Rmn(e)||t}function dCe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function YN(e,t,n){return BO(e,a9(t,n))}function Imn(e,t,n){var r=YN(e,t,n);return r>n?n:r}function Jst(){return{top:0,right:0,bottom:0,left:0}}function elt(e){return Object.assign({},Jst(),e)}function tlt(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Pmn=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,elt(typeof t!="number"?t:tlt(t,U6))};function Dmn(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ub(n.placement),l=dCe(s),c=[pp,Lf].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=Pmn(i.padding,n),p=uCe(o),h=l==="y"?dp:pp,g=l==="y"?kf:Lf,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],y=X6(o),M=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,C=m/2-v/2,x=d[h],w=M-p[u]-d[g],S=M/2-p[u]/2+C,A=YN(x,S,w),z=l;n.modifiersData[r]=(t={},t[z]=A,t.centerOffset=A-S,t)}}function kmn(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Zst(t.elements.popper,i)&&(t.elements.arrow=i))}const Lmn={name:"arrow",enabled:!0,phase:"main",fn:Dmn,effect:kmn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bP(e){return e.split("-")[1]}var _mn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nmn(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:mP(n*i)/i||0,y:mP(r*i)/i||0}}function TDe(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,g=a.y,m=g===void 0?0:g,v=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=v.x,m=v.y;var y=a.hasOwnProperty("x"),M=a.hasOwnProperty("y"),C=pp,x=dp,w=window;if(c){var S=X6(n),A="clientHeight",z="clientWidth";if(S===ch(n)&&(S=Tw(n),Ky(S).position!=="static"&&s==="absolute"&&(A="scrollHeight",z="scrollWidth")),S=S,i===dp||(i===pp||i===Lf)&&o===TW){x=kf;var O=d&&S===w&&w.visualViewport?w.visualViewport.height:S[A];m-=O-r.height,m*=l?1:-1}if(i===pp||(i===dp||i===kf)&&o===TW){C=Lf;var T=d&&S===w&&w.visualViewport?w.visualViewport.width:S[z];h-=T-r.width,h*=l?1:-1}}var I=Object.assign({position:s},c&&_mn),P=u===!0?Nmn({x:h,y:m},ch(n)):{x:h,y:m};if(h=P.x,m=P.y,l){var N;return Object.assign({},I,(N={},N[x]=M?"0":"",N[C]=y?"0":"",N.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",N))}return Object.assign({},I,(t={},t[x]=M?m+"px":"",t[C]=y?h+"px":"",t.transform="",t))}function Fmn(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:ub(t.placement),variation:bP(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,TDe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,TDe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wmn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fmn,data:{}};var h8={passive:!0};function qmn(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ch(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,h8)}),s&&l.addEventListener("resize",n.update,h8),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,h8)}),s&&l.removeEventListener("resize",n.update,h8)}}const Bmn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qmn,data:{}};var jmn={left:"right",right:"left",bottom:"top",top:"bottom"};function i7(e){return e.replace(/left|right|bottom|top/g,function(t){return jmn[t]})}var Hmn={start:"end",end:"start"};function EDe(e){return e.replace(/start|end/g,function(t){return Hmn[t]})}function pCe(e){var t=ch(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function hCe(e){return vP(Tw(e)).left+pCe(e).scrollLeft}function Vmn(e,t){var n=ch(e),r=Tw(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Qst();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+hCe(e),y:l}}function Gmn(e){var t,n=Tw(e),r=pCe(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=BO(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=BO(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+hCe(e),l=-r.scrollTop;return Ky(i||n).direction==="rtl"&&(s+=BO(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function fCe(e){var t=Ky(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function nlt(e){return["html","body","#document"].indexOf(Pb(e))>=0?e.ownerDocument.body:zf(e)&&fCe(e)?e:nlt(TQ(e))}function KN(e,t){var n;t===void 0&&(t=[]);var r=nlt(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ch(r),a=i?[o].concat(o.visualViewport||[],fCe(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(KN(TQ(a)))}function Ofe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $mn(e,t){var n=vP(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function RDe(e,t,n){return t===Yst?Ofe(Vmn(e,n)):Lz(t)?$mn(t,n):Ofe(Gmn(Tw(e)))}function Umn(e){var t=KN(TQ(e)),n=["absolute","fixed"].indexOf(Ky(e).position)>=0,r=n&&zf(e)?X6(e):e;return Lz(r)?t.filter(function(i){return Lz(i)&&Zst(i,r)&&Pb(i)!=="body"}):[]}function Xmn(e,t,n,r){var i=t==="clippingParents"?Umn(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=RDe(e,c,r);return l.top=BO(u.top,l.top),l.right=a9(u.right,l.right),l.bottom=a9(u.bottom,l.bottom),l.left=BO(u.left,l.left),l},RDe(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function rlt(e){var t=e.reference,n=e.element,r=e.placement,i=r?ub(r):null,o=r?bP(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case dp:l={x:a,y:t.y-n.height};break;case kf:l={x:a,y:t.y+t.height};break;case Lf:l={x:t.x+t.width,y:s};break;case pp:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?dCe(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case gP:l[c]=l[c]-(t[u]/2-n[u]/2);break;case TW:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function EW(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?fmn:s,c=n.rootBoundary,u=c===void 0?Yst:c,d=n.elementContext,p=d===void 0?d4:d,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,v=m===void 0?0:m,y=elt(typeof v!="number"?v:tlt(v,U6)),M=p===d4?gmn:d4,C=e.rects.popper,x=e.elements[g?M:p],w=Xmn(Lz(x)?x:x.contextElement||Tw(e.elements.popper),l,u,a),S=vP(e.elements.reference),A=rlt({reference:S,element:C,placement:i}),z=Ofe(Object.assign({},C,A)),O=p===d4?z:S,T={top:w.top-O.top+y.top,bottom:O.bottom-w.bottom+y.bottom,left:w.left-O.left+y.left,right:O.right-w.right+y.right},I=e.modifiersData.offset;if(p===d4&&I){var P=I[i];Object.keys(T).forEach(function(N){var F=[Lf,kf].indexOf(N)>=0?1:-1,L=[dp,kf].indexOf(N)>=0?"y":"x";T[N]+=P[L]*F})}return T}function Ymn(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Kst:l,u=bP(r),d=u?s?ODe:ODe.filter(function(g){return bP(g)===u}):U6,p=d.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=d);var h=p.reduce(function(g,m){return g[m]=EW(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[ub(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function Kmn(e){if(ub(e)===lCe)return[];var t=i7(e);return[EDe(e),t,EDe(t)]}function Qmn(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,m=n.allowedAutoPlacements,v=t.options.placement,y=ub(v),M=y===v,C=l||(M||!g?[i7(v)]:Kmn(v)),x=[v].concat(C).reduce(function(Q,re){return Q.concat(ub(re)===lCe?Ymn(t,{placement:re,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):re)},[]),w=t.rects.reference,S=t.rects.popper,A=new Map,z=!0,O=x[0],T=0;T<x.length;T++){var I=x[T],P=ub(I),N=bP(I)===gP,F=[dp,kf].indexOf(P)>=0,L=F?"width":"height",W=EW(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),H=F?N?Lf:pp:N?kf:dp;w[L]>S[L]&&(H=i7(H));var j=i7(H),G=[];if(o&&G.push(W[P]<=0),s&&G.push(W[H]<=0,W[j]<=0),G.every(function(Q){return Q})){O=I,z=!1;break}A.set(I,G)}if(z)for(var q=g?3:1,$=function(re){var ee=x.find(function(se){var pe=A.get(se);if(pe)return pe.slice(0,re).every(function(te){return te})});if(ee)return O=ee,"break"},U=q;U>0;U--){var X=$(U);if(X==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const Zmn={name:"flip",enabled:!0,phase:"main",fn:Qmn,requiresIfExists:["offset"],data:{_skip:!1}};function IDe(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function PDe(e){return[dp,Lf,kf,pp].some(function(t){return e[t]>=0})}function Jmn(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=EW(t,{elementContext:"reference"}),s=EW(t,{altBoundary:!0}),l=IDe(a,r),c=IDe(s,i,o),u=PDe(l),d=PDe(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const evn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jmn};function tvn(e,t,n){var r=ub(e),i=[pp,dp].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[pp,Lf].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function nvn(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Kst.reduce(function(u,d){return u[d]=tvn(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const rvn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nvn};function ivn(e){var t=e.state,n=e.name;t.modifiersData[n]=rlt({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const ovn={name:"popperOffsets",enabled:!0,phase:"read",fn:ivn,data:{}};function avn(e){return e==="x"?"y":"x"}function svn(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,m=g===void 0?0:g,v=EW(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=ub(t.placement),M=bP(t.placement),C=!M,x=dCe(y),w=avn(x),S=t.modifiersData.popperOffsets,A=t.rects.reference,z=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,T=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(o){var N,F=x==="y"?dp:pp,L=x==="y"?kf:Lf,W=x==="y"?"height":"width",H=S[x],j=H+v[F],G=H-v[L],q=h?-z[W]/2:0,$=M===gP?A[W]:z[W],U=M===gP?-z[W]:-A[W],X=t.elements.arrow,Q=h&&X?uCe(X):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Jst(),ee=re[F],se=re[L],pe=YN(0,A[W],Q[W]),te=C?A[W]/2-q-pe-ee-T.mainAxis:$-pe-ee-T.mainAxis,ce=C?-A[W]/2+q+pe+se+T.mainAxis:U+pe+se+T.mainAxis,oe=t.elements.arrow&&X6(t.elements.arrow),ae=oe?x==="y"?oe.clientTop||0:oe.clientLeft||0:0,ne=(N=I?.[x])!=null?N:0,le=H+te-ne-ae,he=H+ce-ne,be=YN(h?a9(j,le):j,H,h?BO(G,he):G);S[x]=be,P[x]=be-H}if(s){var me,Me=x==="x"?dp:pp,Oe=x==="x"?kf:Lf,de=S[w],ie=w==="y"?"height":"width",ue=de+v[Me],Ae=de-v[Oe],Ce=[dp,pp].indexOf(y)!==-1,Ee=(me=I?.[w])!=null?me:0,Ge=Ce?ue:de-A[ie]-z[ie]-Ee+T.altAxis,_e=Ce?de+A[ie]+z[ie]-Ee-T.altAxis:Ae,Ie=h&&Ce?Imn(Ge,de,_e):YN(h?Ge:ue,de,h?_e:Ae);S[w]=Ie,P[w]=Ie-de}t.modifiersData[r]=P}}const lvn={name:"preventOverflow",enabled:!0,phase:"main",fn:svn,requiresIfExists:["offset"]};function cvn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uvn(e){return e===ch(e)||!zf(e)?pCe(e):cvn(e)}function dvn(e){var t=e.getBoundingClientRect(),n=mP(t.width)/e.offsetWidth||1,r=mP(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pvn(e,t,n){n===void 0&&(n=!1);var r=zf(t),i=zf(t)&&dvn(t),o=Tw(t),a=vP(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Pb(t)!=="body"||fCe(o))&&(s=uvn(t)),zf(t)?(l=vP(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=hCe(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function hvn(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function fvn(e){var t=hvn(e);return Amn.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function gvn(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mvn(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var DDe={placement:"bottom",modifiers:[],strategy:"absolute"};function kDe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function vvn(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?DDe:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},DDe,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,h={state:u,setOptions:function(y){var M=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},o,u.options,M),u.scrollParents={reference:Lz(s)?KN(s):s.contextElement?KN(s.contextElement):[],popper:KN(l)};var C=fvn(mvn([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(x){return x.enabled}),g(),h.update()},forceUpdate:function(){if(!p){var y=u.elements,M=y.reference,C=y.popper;if(kDe(M,C)){u.rects={reference:pvn(M,X6(C),u.options.strategy==="fixed"),popper:uCe(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var w=u.orderedModifiers[x],S=w.fn,A=w.options,z=A===void 0?{}:A,O=w.name;typeof S=="function"&&(u=S({state:u,options:z,name:O,instance:h})||u)}}}},update:gvn(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){m(),p=!0}};if(!kDe(s,l))return h;h.setOptions(c).then(function(v){!p&&c.onFirstUpdate&&c.onFirstUpdate(v)});function g(){u.orderedModifiers.forEach(function(v){var y=v.name,M=v.options,C=M===void 0?{}:M,x=v.effect;if(typeof x=="function"){var w=x({state:u,name:y,instance:h,options:C}),S=function(){};d.push(w||S)}})}function m(){d.forEach(function(v){return v()}),d=[]}return h}}var bvn=[Bmn,ovn,Wmn,Tmn,rvn,Zmn,lvn,Lmn,evn],ilt=vvn({defaultModifiers:bvn});function yvn(e){return typeof e=="function"?e():e}const olt=b.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=b.useState(null),l=Pi(b.isValidElement(r)?O3(r):null,n);if(To(()=>{o||s(yvn(i)||document.body)},[i,o]),To(()=>{if(a&&!o)return hfe(n,a),()=>{hfe(n,null)}},[n,a,o]),o){if(b.isValidElement(r)){const c={ref:l};return b.cloneElement(r,c)}return r}return a&&ql.createPortal(r,a)});function Mvn(e){return Bn("MuiPopper",e)}Ln("MuiPopper",["root"]);function Cvn(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function zfe(e){return typeof e=="function"?e():e}function xvn(e){return e.nodeType!==void 0}const wvn=e=>{const{classes:t}=e;return Yt({root:["root"]},Mvn,t)},Svn={},Avn=b.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:h={},TransitionProps:g,ownerState:m,...v}=t,y=b.useRef(null),M=Pi(y,n),C=b.useRef(null),x=Pi(C,d),w=b.useRef(x);To(()=>{w.current=x},[x]),b.useImperativeHandle(d,()=>C.current,[]);const S=Cvn(c,o),[A,z]=b.useState(S),[O,T]=b.useState(zfe(r));b.useEffect(()=>{C.current&&C.current.forceUpdate()}),b.useEffect(()=>{r&&T(zfe(r))},[r]),To(()=>{if(!O||!l)return;const L=j=>{z(j.placement)};let W=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{L(j)}}];s!=null&&(W=W.concat(s)),u&&u.modifiers!=null&&(W=W.concat(u.modifiers));const H=ilt(O,y.current,{placement:S,...u,modifiers:W});return w.current(H),()=>{H.destroy(),w.current(null)}},[O,a,s,l,u,S]);const I={placement:A};g!==null&&(I.TransitionProps=g);const P=wvn(t),N=h.root??"div",F=Ho({elementType:N,externalSlotProps:p.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:M},ownerState:t,className:P.root});return f.jsx(N,{...F,children:typeof i=="function"?i(I):i})}),Ovn=b.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=Svn,popperRef:h,style:g,transition:m=!1,slotProps:v={},slots:y={},...M}=t,[C,x]=b.useState(!0),w=()=>{x(!1)},S=()=>{x(!0)};if(!l&&!u&&(!m||C))return null;let A;if(o)A=o;else if(r){const T=zfe(r);A=T&&xvn(T)?Is(T).body:Is(null).body}const z=!u&&l&&(!m||C)?"none":void 0,O=m?{in:u,onEnter:w,onExited:S}:void 0;return f.jsx(olt,{disablePortal:s,container:A,children:f.jsx(Avn,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:m?!C:u,placement:d,popperOptions:p,popperRef:h,slotProps:v,slots:y,...M,style:{position:"fixed",top:0,left:0,display:z,...g},TransitionProps:O,children:i})})}),zvn=rt(Ovn,{name:"MuiPopper",slot:"Root"})({}),zD=b.forwardRef(function(t,n){const r=ts(),i=mi({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:g,popperOptions:m,popperRef:v,transition:y,slots:M,slotProps:C,...x}=i,w=M?.root??s?.Root,S={anchorEl:o,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:g,popperOptions:m,popperRef:v,transition:y,...x};return f.jsx(zvn,{as:a,direction:r?"rtl":"ltr",slots:{root:w},slotProps:C??l,...S,ref:n})}),Tvn=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Evn(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Rvn(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Ivn(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Rvn(e))}function Pvn(e){const t=[],n=[];return Array.from(e.querySelectorAll(Tvn)).forEach((r,i)=>{const o=Evn(r);o===-1||!Ivn(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function Dvn(){return!0}function gCe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Pvn,isEnabled:a=Dvn,open:s}=e,l=b.useRef(!1),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),p=b.useRef(null),h=b.useRef(!1),g=b.useRef(null),m=Pi(O3(t),g),v=b.useRef(null);b.useEffect(()=>{!s||!g.current||(h.current=!n)},[n,s]),b.useEffect(()=>{if(!s||!g.current)return;const C=Is(g.current);return g.current.contains(C.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),b.useEffect(()=>{if(!s||!g.current)return;const C=Is(g.current),x=A=>{v.current=A,!(r||!a()||A.key!=="Tab")&&C.activeElement===g.current&&A.shiftKey&&(l.current=!0,u.current&&u.current.focus())},w=()=>{const A=g.current;if(A===null)return;if(!C.hasFocus()||!a()||l.current){l.current=!1;return}if(A.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let z=[];if((C.activeElement===c.current||C.activeElement===u.current)&&(z=o(g.current)),z.length>0){const O=!!(v.current?.shiftKey&&v.current?.key==="Tab"),T=z[0],I=z[z.length-1];typeof T!="string"&&typeof I!="string"&&(O?I.focus():T.focus())}else A.focus()};C.addEventListener("focusin",w),C.addEventListener("keydown",x,!0);const S=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(S),C.removeEventListener("focusin",w),C.removeEventListener("keydown",x,!0)}},[n,r,i,a,s,o]);const y=C=>{d.current===null&&(d.current=C.relatedTarget),h.current=!0,p.current=C.target;const x=t.props.onFocus;x&&x(C)},M=C=>{d.current===null&&(d.current=C.relatedTarget),h.current=!0};return f.jsxs(b.Fragment,{children:[f.jsx("div",{tabIndex:s?0:-1,onFocus:M,ref:c,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:m,onFocus:y}),f.jsx("div",{tabIndex:s?0:-1,onFocus:M,ref:u,"data-testid":"sentinelEnd"})]})}function kvn(e){return Bn("MuiPickersPopper",e)}Ln("MuiPickersPopper",["root","paper"]);function Lvn(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const _vn=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Z0=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Z0(t.shadowRoot):t:null},s9=e=>Array.from(e.children).indexOf(Z0(document)),alt="@media (pointer: fine)",Nvn="@media (prefers-reduced-motion: reduce)",dI=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),LDe=dI&&dI[1]?parseInt(dI[1],10):null,_De=dI&&dI[2]?parseInt(dI[2],10):null,Fvn=LDe&&LDe<10||_De&&_De<13||!1,slt=()=>JMe(Nvn,{defaultMatches:!1})||Fvn,Wvn=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],qvn=e=>{const{classes:t}=e;return Yt({root:["root"],paper:["paper"]},kvn,t)},Bvn=rt(zD,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),jvn=rt(R3,{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 Hvn(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Vvn(e,t){const n=b.useRef(!1),r=b.useRef(!1),i=b.useRef(null),o=b.useRef(!1);b.useEffect(()=>{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=en(l=>{if(!o.current)return;const c=r.current;r.current=!1;const u=Is(i.current);if(!i.current||"clientX"in l&&Hvn(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(i.current)>-1:d=!u.documentElement.contains(l.target)||i.current.contains(l.target),!d&&!c&&t(l)}),s=()=>{r.current=!0};return b.useEffect(()=>{if(e){const l=Is(i.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),b.useEffect(()=>{if(e){const l=Is(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[i,s,s]}const Gvn=b.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Lt(e,Wvn),d=Y({},i,{placement:r}),p=Ho({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return f.jsx(n,Y({},u,p,{onClick:h=>{l(h),p.onClick?.(h)},onTouchStart:h=>{c(h),p.onTouchStart?.(h)},ownerState:d,children:o}))});function $vn(e){const t=Ro({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:i=null,shouldRestoreFocus:o,onBlur:a,onDismiss:s,open:l,role:c,placement:u,slots:d,slotProps:p,reduceAnimations:h}=t;b.useEffect(()=>{function L(W){l&&W.key==="Escape"&&s()}return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[s,l]);const g=b.useRef(null);b.useEffect(()=>{c==="tooltip"||o&&!o()||(l?g.current=Z0(document):g.current&&g.current instanceof HTMLElement&&setTimeout(()=>{g.current instanceof HTMLElement&&g.current.focus()}))},[l,c,o]);const[m,v,y]=Vvn(l,a??s),M=b.useRef(null),C=Pi(M,i),x=Pi(C,m),w=t,S=qvn(w),A=slt(),z=h??A,O=L=>{L.key==="Escape"&&(L.stopPropagation(),s())},T=d?.desktopTransition??z?kz:fP,I=d?.desktopTrapFocus??gCe,P=d?.desktopPaper??jvn,N=d?.popper??Bvn,F=Ho({elementType:N,externalSlotProps:p?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:O},className:S.root,ownerState:t});return f.jsx(N,Y({},F,{children:({TransitionProps:L,placement:W})=>f.jsx(I,Y({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},p?.desktopTrapFocus,{children:f.jsx(T,Y({},L,p?.desktopTransition,{children:f.jsx(Gvn,{PaperComponent:P,ownerState:w,popperPlacement:W,ref:x,onPaperClick:v,onPaperTouchStart:y,paperClasses:S.paper,paperSlotProps:p?.desktopPaper,children:r})}))}))}))}const Uvn=({open:e,onOpen:t,onClose:n})=>{const r=b.useRef(typeof e=="boolean").current,[i,o]=b.useState(!1);b.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[r,e]);const a=b.useCallback(s=>{r||o(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:a}},mCe=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:i,valueManager:o})=>{const a=sa(),s=b.useRef(n),l=t??s.current??o.emptyValue,c=b.useMemo(()=>o.getTimezone(a,l),[a,o,l]),u=en(g=>c==null?g:o.setTimezone(a,c,g));let d;e?d=e:c?d=c:r?d=a.getTimezone(r):d="default";const p=b.useMemo(()=>o.setTimezone(a,d,l),[o,a,d,l]),h=en((g,...m)=>{const v=u(g);i?.(v,...m)});return{value:p,handleValueChange:h,timezone:d}},TD=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:i,onChange:o,valueManager:a})=>{const[s,l]=up({name:e,state:"value",controlled:n,default:r??a.emptyValue}),c=en((u,...d)=>{l(u),o?.(u,...d)});return mCe({timezone:t,value:s,defaultValue:void 0,referenceDate:i,onChange:c,valueManager:a})},Xvn=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?o&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?o?!0:n(r.lastPublishedValue):!1},Yvn=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&o?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Kvn=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},Qvn=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:o,onChange:a,value:s,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:d}=e,{current:p}=b.useRef(l),{current:h}=b.useRef(s!==void 0),[g,m]=b.useState(u),v=sa(),y=z3(),{isOpen:M,setIsOpen:C}=Uvn(e),{timezone:x,value:w,handleValueChange:S}=mCe({timezone:u,value:s,defaultValue:p,referenceDate:d,onChange:a,valueManager:t}),[A,z]=b.useState(()=>{let te;return w!==void 0?te=w:p!==void 0?te=p:te=t.emptyValue,{draft:te,lastPublishedValue:te,lastCommittedValue:te,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),O=t.getTimezone(v,A.draft);g!==u&&(m(u),u&&O&&u!==O&&z(te=>Y({},te,{draft:t.setTimezone(v,u,te.draft)})));const{getValidationErrorForNewValue:T}=$st({props:e,validator:i,timezone:x,value:A.draft,onError:e.onError}),I=en(te=>{const ce={action:te,dateState:A,hasChanged:be=>!t.areValuesEqual(v,te.value,be),isControlled:h,closeOnSelect:c},oe=Xvn(ce),ae=Yvn(ce),ne=Kvn(ce);z(be=>Y({},be,{draft:te.value,lastPublishedValue:oe?te.value:be.lastPublishedValue,lastCommittedValue:ae?te.value:be.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let le=null;const he=()=>(le||(le={validationError:te.name==="setValueFromField"?te.context.validationError:T(te.value)},te.name==="setValueFromShortcut"&&(le.shortcut=te.shortcut)),le);oe&&S(te.value,he()),ae&&o&&o(te.value,he()),ne&&C(!1)});if(A.lastControlledValue!==s){const te=t.areValuesEqual(v,A.draft,w);z(ce=>Y({},ce,{lastControlledValue:s},te?{}:{lastCommittedValue:w,lastPublishedValue:w,draft:w,hasBeenModifiedSinceMount:!0}))}const P=en(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),N=en(()=>{I({value:A.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),F=en(()=>{I({value:A.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),L=en(()=>{I({value:A.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),W=en(()=>{I({value:t.getTodayValue(v,x,n),name:"setValueFromAction",pickerAction:"today"})}),H=en(te=>{te.preventDefault(),C(!0)}),j=en(te=>{te?.preventDefault(),C(!1)}),G=en((te,ce="partial")=>I({name:"setValueFromView",value:te,selectionState:ce})),q=en((te,ce,oe)=>I({name:"setValueFromShortcut",value:te,changeImportance:ce,shortcut:oe})),$=en((te,ce)=>I({name:"setValueFromField",value:te,context:ce})),U={onClear:P,onAccept:N,onDismiss:F,onCancel:L,onSetToday:W,onOpen:H,onClose:j},X={value:A.draft,onChange:$},Q=b.useMemo(()=>t.cleanValue(v,A.draft),[v,t,A.draft]),re={value:Q,onChange:G,onClose:j,open:M},se=Y({},U,{value:Q,onChange:G,onSelectShortcut:q,isValid:te=>{const ce=i({adapter:y,value:te,timezone:x,props:e});return!t.hasError(ce)}}),pe=b.useMemo(()=>({onOpen:H,onClose:j,open:M}),[M,j,H]);return{open:M,fieldProps:X,viewProps:re,layoutProps:se,actions:U,contextValue:pe}};function Y6({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:s}){const l=b.useRef(n),c=b.useRef(i),u=b.useRef(i.includes(n)?n:i[0]),[d,p]=up({name:"useViews",state:"view",controlled:r,default:u.current}),h=b.useRef(o?d:null),[g,m]=up({name:"useViews",state:"focusedView",controlled:a,default:h.current});b.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(A=>!i.includes(A)))&&(p(i.includes(n)?n:i[0]),c.current=i,l.current=n)},[n,p,d,i]);const v=i.indexOf(d),y=i[v-1]??null,M=i[v+1]??null,C=en((A,z)=>{m(z?A:O=>A===O?null:O),s?.(A,z)}),x=en(A=>{C(A,!0),A!==d&&(p(A),t&&t(A))}),w=en(()=>{M&&x(M)}),S=en((A,z,O)=>{const T=z==="finish",I=O?i.indexOf(O)<i.length-1:!!M;if(e(A,T&&I?"partial":z,O),O&&O!==d){const N=i[i.indexOf(O)+1];N&&x(N)}else T&&w()});return{view:d,setView:x,focusedView:g,setFocusedView:C,nextView:M,previousView:y,defaultView:i.includes(n)?n:i[0],goToNextView:w,setValueAndGoToNextView:S}}const Zvn=["className","sx"],Jvn=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:i,fieldRef:o})=>{const{onChange:a,open:s,onClose:l}=t,{view:c,views:u,openTo:d,onViewChange:p,viewRenderers:h,timezone:g}=e,m=Lt(e,Zvn),{view:v,setView:y,defaultView:M,focusedView:C,setFocusedView:x,setValueAndGoToNextView:w}=Y6({view:c,views:u,openTo:d,onChange:a,onViewChange:p,autoFocus:r}),{hasUIView:S,viewModeLookup:A}=b.useMemo(()=>u.reduce((F,L)=>{let W;return h[L]!=null?W="UI":W="field",F.viewModeLookup[L]=W,W==="UI"&&(F.hasUIView=!0),F},{hasUIView:!1,viewModeLookup:{}}),[h,u]),z=b.useMemo(()=>u.reduce((F,L)=>h[L]!=null&&hP(L)?F+1:F,0),[h,u]),O=A[v],T=en(()=>O==="UI"),[I,P]=b.useState(O==="UI"?v:null);return I!==v&&A[v]==="UI"&&P(v),To(()=>{O==="field"&&s&&(l(),setTimeout(()=>{o?.current?.setSelectedSections(v),o?.current?.focusField(v)}))},[v]),To(()=>{if(!s)return;let F=v;O==="field"&&I!=null&&(F=I),F!==M&&A[F]==="UI"&&A[M]==="UI"&&(F=M),F!==v&&y(F),x(F,!0)},[s]),{hasUIView:S,shouldRestoreFocus:T,layoutProps:{views:u,view:I,onViewChange:y},renderCurrentView:()=>{if(I==null)return null;const F=h[I];if(F==null)return null;const L=Y({},m,n,t,{views:u,timezone:g,onChange:w,view:I,onViewChange:y,focusedView:C,onFocusedViewChange:x,showViewSwitcher:z>1,timeViewsCount:z});return i?i(h,I,L):F(L)}}};function NDe(){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 ebn=(e,t)=>{const[n,r]=b.useState(NDe);return To(()=>{const o=()=>{r(NDe())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Lvn(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},tbn=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=ebn(n.views,i),a=ts();return{layoutProps:Y({},n,t,{isLandscape:o,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function nbn(e){const{props:t,pickerValueResponse:n}=e;return b.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 llt=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:i,validator:o,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{const c=Qvn({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o}),u=Jvn({props:e,additionalViewProps:i,autoFocusView:a,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:s}),d=tbn({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),p=nbn({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:c.contextValue,ownerState:p}};function clt(e){return Bn("MuiPickersLayout",e)}const Bg=Ln("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function rbn(e){return Bn("MuiButton",e)}const qS=Ln("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),ibn=b.createContext({}),obn=b.createContext(void 0),abn=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,loading:a,loadingPosition:s,classes:l}=e,c={root:["root",a&&"loading",o,`${o}${jt(t)}`,`size${jt(i)}`,`${o}Size${jt(i)}`,`color${jt(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${jt(s)}`],startIcon:["icon","startIcon",`iconSize${jt(i)}`],endIcon:["icon","endIcon",`iconSize${jt(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Yt(c,rbn,l);return{...l,...u}},ult=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],sbn=rt(Ib,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${jt(n.color)}`],t[`size${jt(n.size)}`],t[`${n.variant}Size${jt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(kr(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${qS.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${qS.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${qS.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${qS.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(_l()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${qS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${qS.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${qS.loading}`]:{color:"transparent"}}}]}})),lbn=rt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${jt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...ult]})),cbn=rt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${jt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ult]})),ubn=rt("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),FDe=rt("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),PR=b.forwardRef(function(t,n){const r=b.useContext(ibn),i=b.useContext(obn),o=Iz(r,t),a=mi({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:g,focusVisibleClassName:m,fullWidth:v=!1,id:y,loading:M=null,loadingIndicator:C,loadingPosition:x="center",size:w="medium",startIcon:S,type:A,variant:z="text",...O}=a,T=Hi(y),I=C??f.jsx($6,{"aria-labelledby":T,color:"inherit",size:16}),P={...a,color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:v,loading:M,loadingIndicator:I,loadingPosition:x,size:w,type:A,variant:z},N=abn(P),F=(S||M&&x==="start")&&f.jsx(lbn,{className:N.startIcon,ownerState:P,children:S||f.jsx(FDe,{className:N.loadingIconPlaceholder,ownerState:P})}),L=(g||M&&x==="end")&&f.jsx(cbn,{className:N.endIcon,ownerState:P,children:g||f.jsx(FDe,{className:N.loadingIconPlaceholder,ownerState:P})}),W=i||"",H=typeof M=="boolean"?f.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:M&&f.jsx(ubn,{className:N.loadingIndicator,ownerState:P,children:I})}):null;return f.jsxs(sbn,{ownerState:P,className:nr(r.className,N.root,u,W),component:c,disabled:d||M,focusRipple:!h,focusVisibleClassName:nr(N.focusVisible,m),ref:n,type:A,id:M?T:y,...O,classes:N,children:[F,x!=="end"&&H,s,x==="end"&&H,L]})});function dbn(e){return Bn("MuiDialogActions",e)}Ln("MuiDialogActions",["root","spacing"]);const pbn=e=>{const{classes:t,disableSpacing:n}=e;return Yt({root:["root",!n&&"spacing"]},dbn,t)},hbn=rt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),fbn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...a}=r,s={...r,disableSpacing:o},l=pbn(s);return f.jsx(hbn,{className:nr(l.root,i),ownerState:s,ref:n,...a})}),gbn=["onAccept","onClear","onCancel","onSetToday","actions"];function mbn(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=Lt(e,gbn),s=Ed();if(o==null||o.length===0)return null;const l=o?.map(c=>{switch(c){case"clear":return f.jsx(PR,{onClick:n,children:s.clearButtonLabel},c);case"cancel":return f.jsx(PR,{onClick:r,children:s.cancelButtonLabel},c);case"accept":return f.jsx(PR,{onClick:t,children:s.okButtonLabel},c);case"today":return f.jsx(PR,{onClick:i,children:s.todayButtonLabel},c);default:return null}});return f.jsx(fbn,Y({},a,{children:l}))}const Iy=b.createContext({});function vbn(e){return Bn("MuiList",e)}Ln("MuiList",["root","padding","dense","subheader"]);const bbn=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Yt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},vbn,t)},ybn=rt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),dlt=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=b.useMemo(()=>({dense:s}),[s]),p={...r,component:a,dense:s,disablePadding:l},h=bbn(p);return f.jsx(Iy.Provider,{value:d,children:f.jsxs(ybn,{as:a,className:nr(h.root,o),ref:n,ownerState:p,...u,children:[c,i]})})});function Mbn(e){return Bn("MuiListItem",e)}Ln("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Cbn=Ln("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function xbn(e){return Bn("MuiListItemSecondaryAction",e)}Ln("MuiListItemSecondaryAction",["root","disableGutters"]);const wbn=e=>{const{disableGutters:t,classes:n}=e;return Yt({root:["root",t&&"disableGutters"]},xbn,n)},Sbn=rt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),plt=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=r,a=b.useContext(Iy),s={...r,disableGutters:a.disableGutters},l=wbn(s);return f.jsx(Sbn,{className:nr(l.root,i),ownerState:s,ref:n,...o})});plt.muiName="ListItemSecondaryAction";const Abn=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Obn=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:a,hasSecondaryAction:s}=e;return Yt({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},Mbn,n)},zbn=rt("div",{name:"MuiListItem",slot:"Root",overridesResolver:Abn})(kr(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Cbn.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Tbn=rt("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ebn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...p}={},dense:h=!1,disableGutters:g=!1,disablePadding:m=!1,divider:v=!1,secondaryAction:y,slotProps:M={},slots:C={},...x}=r,w=b.useContext(Iy),S=b.useMemo(()=>({dense:h||w.dense||!1,alignItems:i,disableGutters:g}),[i,w.dense,h,g]),A=b.useRef(null),z=b.Children.toArray(o),O=z.length&&r7(z[z.length-1],["ListItemSecondaryAction"]),T={...r,alignItems:i,dense:S.dense,disableGutters:g,disablePadding:m,divider:v,hasSecondaryAction:O},I=Obn(T),P=Pi(A,n),N=C.root||l.Root||zbn,F=M.root||c.root||{},L={className:nr(I.root,F.className,a),...x};let W=s||"li";return O?(W=!L.component&&!s?"div":W,u==="li"&&(W==="li"?W="div":L.component==="li"&&(L.component="div")),f.jsx(Iy.Provider,{value:S,children:f.jsxs(Tbn,{as:u,className:nr(I.container,d),ref:P,ownerState:T,...p,children:[f.jsx(N,{...F,...!dP(N)&&{as:W,ownerState:{...T,...F.ownerState}},...L,children:z}),z.pop()]})})):f.jsx(Iy.Provider,{value:S,children:f.jsxs(N,{...F,as:W,ref:P,...!dP(N)&&{ownerState:{...T,...F.ownerState}},...L,children:[z,y&&f.jsx(plt,{children:y})]})})}),Rbn=Pu(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Ibn(e){return Bn("MuiChip",e)}const qo=Ln("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function ni(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=o,h=u[e]||r,g=Pz(d[e],i),{props:{component:m,...v},internalRef:y}=Tst({className:n,...l,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g}),M=Pi(y,g?.ref,t.ref),C=e==="root"?m||c:m,x=Ost(h,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...v,...C&&!s&&{as:C},...C&&s&&{component:C},ref:M},i);return[h,x]}const Pbn=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${jt(r)}`,`color${jt(i)}`,s&&"clickable",s&&`clickableColor${jt(i)}`,a&&"deletable",a&&`deletableColor${jt(i)}`,`${l}${jt(i)}`],label:["label",`label${jt(r)}`],avatar:["avatar",`avatar${jt(r)}`,`avatarColor${jt(i)}`],icon:["icon",`icon${jt(r)}`,`iconColor${jt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${jt(r)}`,`deleteIconColor${jt(i)}`,`deleteIcon${jt(l)}Color${jt(i)}`]};return Yt(c,Ibn,t)},Dbn=rt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${qo.avatar}`]:t.avatar},{[`& .${qo.avatar}`]:t[`avatar${jt(s)}`]},{[`& .${qo.avatar}`]:t[`avatarColor${jt(r)}`]},{[`& .${qo.icon}`]:t.icon},{[`& .${qo.icon}`]:t[`icon${jt(s)}`]},{[`& .${qo.icon}`]:t[`iconColor${jt(i)}`]},{[`& .${qo.deleteIcon}`]:t.deleteIcon},{[`& .${qo.deleteIcon}`]:t[`deleteIcon${jt(s)}`]},{[`& .${qo.deleteIcon}`]:t[`deleteIconColor${jt(r)}`]},{[`& .${qo.deleteIcon}`]:t[`deleteIcon${jt(l)}Color${jt(r)}`]},t.root,t[`size${jt(s)}`],t[`color${jt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${jt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${jt(r)}`],t[l],t[`${l}${jt(r)}`]]}})(kr(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${qo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${qo.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${qo.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${qo.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${qo.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${qo.icon}`]:{marginLeft:5,marginRight:-6},[`& .${qo.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${qo.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${qo.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(_l(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${qo.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${qo.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${qo.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${qo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(_l(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${qo.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${qo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(_l(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${qo.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${qo.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${qo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${qo.avatar}`]:{marginLeft:4},[`& .${qo.avatarSmall}`]:{marginLeft:2},[`& .${qo.icon}`]:{marginLeft:4},[`& .${qo.iconSmall}`]:{marginLeft:2},[`& .${qo.deleteIcon}`]:{marginRight:5},[`& .${qo.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(_l()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${qo.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${qo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${qo.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),kbn=rt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${jt(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function WDe(e){return e.key==="Backspace"||e.key==="Delete"}const EQ=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:h,onDelete:g,onKeyDown:m,onKeyUp:v,size:y="medium",variant:M="filled",tabIndex:C,skipFocusWhenDisabled:x=!1,slots:w={},slotProps:S={},...A}=r,z=b.useRef(null),O=Pi(z,n),T=ee=>{ee.stopPropagation(),g&&g(ee)},I=ee=>{ee.currentTarget===ee.target&&WDe(ee)&&ee.preventDefault(),m&&m(ee)},P=ee=>{ee.currentTarget===ee.target&&g&&WDe(ee)&&g(ee),v&&v(ee)},N=a!==!1&&h?!0:a,F=N||g?Ib:l||"div",L={...r,component:F,disabled:u,size:y,color:s,iconColor:b.isValidElement(d)&&d.props.color||s,onDelete:!!g,clickable:N,variant:M},W=Pbn(L),H=F===Ib?{component:l||"div",focusVisibleClassName:W.focusVisible,...g&&{disableRipple:!0}}:{};let j=null;g&&(j=c&&b.isValidElement(c)?b.cloneElement(c,{className:nr(c.props.className,W.deleteIcon),onClick:T}):f.jsx(Rbn,{className:W.deleteIcon,onClick:T}));let G=null;i&&b.isValidElement(i)&&(G=b.cloneElement(i,{className:nr(W.avatar,i.props.className)}));let q=null;d&&b.isValidElement(d)&&(q=b.cloneElement(d,{className:nr(W.icon,d.props.className)}));const $={slots:w,slotProps:S},[U,X]=ni("root",{elementType:Dbn,externalForwardedProps:{...$,...A},ownerState:L,shouldForwardComponentProp:!0,ref:O,className:nr(W.root,o),additionalProps:{disabled:N&&u?!0:void 0,tabIndex:x&&u?-1:C,...H},getSlotProps:ee=>({...ee,onClick:se=>{ee.onClick?.(se),h?.(se)},onKeyDown:se=>{ee.onKeyDown?.(se),I(se)},onKeyUp:se=>{ee.onKeyUp?.(se),P(se)}})}),[Q,re]=ni("label",{elementType:kbn,externalForwardedProps:$,ownerState:L,className:W.label});return f.jsxs(U,{as:F,...X,children:[G||q,f.jsx(Q,{...re,children:p}),j]})}),RW=36,RQ=2,IQ=320,Lbn=280,PQ=336,hlt=232,J5=48,_bn=["items","changeImportance","isLandscape","onChange","isValid"],Nbn=["getValue"];function Fbn(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:i}=e,o=Lt(e,_bn);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=Lt(s,Nbn);const u=l({isValid:i});return Y({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!i(u)})});return f.jsx(dlt,Y({dense:!0,sx:[{maxHeight:PQ,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>f.jsx(Ebn,{children:f.jsx(EQ,Y({},s))},s.id??s.label))}))}function Wbn(e){return e.view!==null}const qbn=e=>{const{classes:t,isLandscape:n}=e;return Yt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},clt,t)},flt=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:i,onSetToday:o,view:a,views:s,onViewChange:l,value:c,onChange:u,onSelectShortcut:d,isValid:p,isLandscape:h,disabled:g,readOnly:m,children:v,slots:y,slotProps:M}=e,C=qbn(e),x=y?.actionBar??mbn,w=Ho({elementType:x,externalSlotProps:M?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:i,onSetToday:o,actions:t==="desktop"?[]:["cancel","accept"]},className:C.actionBar,ownerState:Y({},e,{wrapperVariant:t})}),S=f.jsx(x,Y({},w)),A=y?.toolbar,z=Ho({elementType:A,externalSlotProps:M?.toolbar,additionalProps:{isLandscape:h,onChange:u,value:c,view:a,onViewChange:l,views:s,disabled:g,readOnly:m},className:C.toolbar,ownerState:Y({},e,{wrapperVariant:t})}),O=Wbn(z)&&A?f.jsx(A,Y({},z)):null,T=v,I=y?.tabs,P=a&&I?f.jsx(I,Y({view:a,onViewChange:l,className:C.tabs},M?.tabs)):null,N=y?.shortcuts??Fbn,F=Ho({elementType:N,externalSlotProps:M?.shortcuts,additionalProps:{isValid:p,isLandscape:h,onChange:d},className:C.shortcuts,ownerState:{isValid:p,isLandscape:h,onChange:d,wrapperVariant:t}}),L=a&&N?f.jsx(N,Y({},F)):null;return{toolbar:O,content:T,tabs:P,actionBar:S,shortcuts:L}},Bbn=e=>{const{isLandscape:t,classes:n}=e;return Yt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},clt,n)},glt=rt("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Bg.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Bg.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Bg.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Bg.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Bg.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Bg.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Bg.shortcuts}`]:{gridColumn:3}}}]}),mlt=rt("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),vlt=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersLayout"}),{toolbar:i,content:o,tabs:a,actionBar:s,shortcuts:l}=flt(r),{sx:c,className:u,isLandscape:d,wrapperVariant:p}=r,h=Bbn(r);return f.jsxs(glt,{ref:n,sx:c,className:Oa(h.root,u),ownerState:r,children:[d?l:i,d?i:l,f.jsx(mlt,{className:h.contentWrapper,children:p==="desktop"?f.jsxs(b.Fragment,{children:[o,a]}):f.jsxs(b.Fragment,{children:[a,o]})}),s]})}),jbn=b.createContext(null);function blt(e){const{contextValue:t,localeText:n,children:r}=e;return f.jsx(jbn.Provider,{value:t,children:f.jsx(Nst,{localeText:n,children:r})})}const Hbn=["props","getOpenDialogAriaText"],Vbn=["ownerState"],Gbn=["ownerState"],ylt=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Lt(e,Hbn);const{slots:i,slotProps:o,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:p,timezone:h,name:g,label:m,inputRef:v,readOnly:y,disabled:M,autoFocus:C,localeText:x,reduceAnimations:w}=t,S=b.useRef(null),A=b.useRef(null),z=Hi(),O=o?.toolbar?.hidden??!1,{open:T,actions:I,hasUIView:P,layoutProps:N,renderCurrentView:F,shouldRestoreFocus:L,fieldProps:W,contextValue:H,ownerState:j}=llt(Y({},r,{props:t,fieldRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),G=i.inputAdornment??sCe,q=Ho({elementType:G,externalSlotProps:o?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),$=Lt(q,Vbn),U=i.openPickerButton??Zp,X=Ho({elementType:U,externalSlotProps:o?.openPickerButton,additionalProps:{disabled:M||y,onClick:T?I.onClose:I.onOpen,"aria-label":n(W.value),edge:$.position},ownerState:t}),Q=Lt(X,Gbn),re=i.openPickerIcon,ee=Ho({elementType:re,externalSlotProps:o?.openPickerIcon,ownerState:j}),se=i.field,pe=Ho({elementType:se,externalSlotProps:o?.field,additionalProps:Y({},W,O&&{id:z},{readOnly:y,disabled:M,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:p,timezone:h,label:m,name:g,autoFocus:C&&!t.open,focused:T?!0:void 0},v?{inputRef:v}:{}),ownerState:t});P&&(pe.InputProps=Y({},pe.InputProps,{ref:S},!t.disableOpenPicker&&{[`${$.position}Adornment`]:f.jsx(G,Y({},$,{children:f.jsx(U,Y({},Q,{children:f.jsx(re,Y({},ee))}))}))}));const te=Y({textField:i.textField,clearIcon:i.clearIcon,clearButton:i.clearButton},pe.slots),ce=i.layout??vlt;let oe=z;O&&(m?oe=`${z}-label`:oe=void 0);const ae=Y({},o,{toolbar:Y({},o?.toolbar,{titleId:z}),popper:Y({"aria-labelledby":oe},o?.popper)}),ne=Pi(A,pe.unstableFieldRef);return{renderPicker:()=>f.jsxs(blt,{contextValue:H,localeText:x,children:[f.jsx(se,Y({},pe,{slots:te,slotProps:ae,unstableFieldRef:ne})),f.jsx($vn,Y({role:"dialog",placement:"bottom-start",anchorEl:S.current},I,{open:T,slots:i,slotProps:ae,shouldRestoreFocus:L,reduceAnimations:w,children:f.jsx(ce,Y({},N,ae?.layout,{slots:i,slotProps:ae,children:F()}))}))]})}},$bn=Pu(f.jsx("path",{d:"M7 10l5 5 5-5z"})),Ubn=Pu(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),Xbn=Pu(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),l9=Pu(f.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"}));Pu(f.jsxs(b.Fragment,{children:[f.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"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const Ybn=Pu(f.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"})),Kbn=Pu(f.jsxs(b.Fragment,{children:[f.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"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),vCe=Pu(f.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"}));function f8(e){return parseInt(e,10)||0}const Qbn={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Zbn(e){for(const t in e)return!1;return!0}function qDe(e){return Zbn(e)||e.outerHeightStyle===0&&!e.overflowing}const Jbn=b.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s,...l}=t,{current:c}=b.useRef(s!=null),u=b.useRef(null),d=Pi(n,u),p=b.useRef(null),h=b.useRef(null),g=b.useCallback(()=>{const C=u.current,x=h.current;if(!C||!x)return;const S=Mm(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=S.width,x.value=C.value||t.placeholder||"x",x.value.slice(-1)===`
`&&(x.value+=" ");const A=S.boxSizing,z=f8(S.paddingBottom)+f8(S.paddingTop),O=f8(S.borderBottomWidth)+f8(S.borderTopWidth),T=x.scrollHeight;x.value="x";const I=x.scrollHeight;let P=T;o&&(P=Math.max(Number(o)*I,P)),i&&(P=Math.min(Number(i)*I,P)),P=Math.max(P,I);const N=P+(A==="border-box"?z+O:0),F=Math.abs(P-T)<=1;return{outerHeightStyle:N,overflowing:F}},[i,o,t.placeholder]),m=en(()=>{const C=u.current,x=g();if(!C||!x||qDe(x))return!1;const w=x.outerHeightStyle;return p.current!=null&&p.current!==w}),v=b.useCallback(()=>{const C=u.current,x=g();if(!C||!x||qDe(x))return;const w=x.outerHeightStyle;p.current!==w&&(p.current=w,C.style.height=`${w}px`),C.style.overflow=x.overflowing?"hidden":""},[g]),y=b.useRef(-1);To(()=>{const C=zw(v),x=u?.current;if(!x)return;const w=Mm(x);w.addEventListener("resize",C);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{m()&&(S.unobserve(x),cancelAnimationFrame(y.current),v(),y.current=requestAnimationFrame(()=>{S.observe(x)}))}),S.observe(x)),()=>{C.clear(),cancelAnimationFrame(y.current),w.removeEventListener("resize",C),S&&S.disconnect()}},[g,v,m]),To(()=>{v()});const M=C=>{c||v();const x=C.target,w=x.value.length,S=x.value.endsWith(`
`),A=x.selectionStart===w;S&&A&&x.setSelectionRange(w,w),r&&r(C)};return f.jsxs(b.Fragment,{children:[f.jsx("textarea",{value:s,onChange:M,ref:d,rows:o,style:a,...l}),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...Qbn.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function I3({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}function BDe(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function c9(e,t=!1){return e&&(BDe(e.value)&&e.value!==""||t&&BDe(e.defaultValue)&&e.defaultValue!=="")}function e2n(e){return e.startAdornment}function t2n(e){return Bn("MuiInputBase",e)}const md=Ln("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var jDe;const DQ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${jt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kQ=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},n2n=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:g}=e,m={root:["root",`color${jt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${jt(p)}`,u&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Yt(m,t2n,t)},LQ=rt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:DQ})(kr(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${md.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),_Q=rt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kQ})(kr(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${md.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${md.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),HDe=cgn({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),K6=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:g,error:m,fullWidth:v=!1,id:y,inputComponent:M="input",inputProps:C={},inputRef:x,margin:w,maxRows:S,minRows:A,multiline:z=!1,name:O,onBlur:T,onChange:I,onClick:P,onFocus:N,onKeyDown:F,onKeyUp:L,placeholder:W,readOnly:H,renderSuffix:j,rows:G,size:q,slotProps:$={},slots:U={},startAdornment:X,type:Q="text",value:re,...ee}=r,se=C.value!=null?C.value:re,{current:pe}=b.useRef(se!=null),te=b.useRef(),ce=b.useCallback(ve=>{},[]),oe=Pi(te,x,C.ref,ce),[ae,ne]=b.useState(!1),le=mh(),he=I3({props:r,muiFormControl:le,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=le?le.focused:ae,b.useEffect(()=>{!le&&p&&ae&&(ne(!1),T&&T())},[le,p,ae,T]);const be=le&&le.onFilled,me=le&&le.onEmpty,Me=b.useCallback(ve=>{c9(ve)?be&&be():me&&me()},[be,me]);To(()=>{pe&&Me({value:se})},[se,Me,pe]);const Oe=ve=>{N&&N(ve),C.onFocus&&C.onFocus(ve),le&&le.onFocus?le.onFocus(ve):ne(!0)},de=ve=>{T&&T(ve),C.onBlur&&C.onBlur(ve),le&&le.onBlur?le.onBlur(ve):ne(!1)},ie=(ve,...De)=>{if(!pe){const ze=ve.target||te.current;if(ze==null)throw new Error(Xy(1));Me({value:ze.value})}C.onChange&&C.onChange(ve,...De),I&&I(ve,...De)};b.useEffect(()=>{Me(te.current)},[]);const ue=ve=>{te.current&&ve.currentTarget===ve.target&&te.current.focus(),P&&P(ve)};let Ae=M,Ce=C;z&&Ae==="input"&&(G?Ce={type:void 0,minRows:G,maxRows:G,...Ce}:Ce={type:void 0,maxRows:S,minRows:A,...Ce},Ae=Jbn);const Ee=ve=>{Me(ve.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};b.useEffect(()=>{le&&le.setAdornedStart(!!X)},[le,X]);const Ge={...r,color:he.color||"primary",disabled:he.disabled,endAdornment:g,error:he.error,focused:he.focused,formControl:le,fullWidth:v,hiddenLabel:he.hiddenLabel,multiline:z,size:he.size,startAdornment:X,type:Q},_e=n2n(Ge),Ie=U.root||c.Root||LQ,Le=$.root||u.root||{},we=U.input||c.Input||_Q;return Ce={...Ce,...$.input??u.input},f.jsxs(b.Fragment,{children:[!h&&typeof HDe=="function"&&(jDe||(jDe=f.jsx(HDe,{}))),f.jsxs(Ie,{...Le,ref:n,onClick:ue,...ee,...!dP(Ie)&&{ownerState:{...Ge,...Le.ownerState}},className:nr(_e.root,Le.className,s,H&&"MuiInputBase-readOnly"),children:[X,f.jsx(zQ.Provider,{value:null,children:f.jsx(we,{"aria-invalid":he.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:d,disabled:he.disabled,id:y,onAnimationStart:Ee,name:O,placeholder:W,readOnly:H,required:he.required,rows:G,value:se,onKeyDown:F,onKeyUp:L,type:Q,...Ce,...!dP(we)&&{as:Ae,ownerState:{...Ge,...Ce.ownerState}},ref:oe,className:nr(_e.input,Ce.className,H&&"MuiInputBase-readOnly"),onBlur:de,onChange:ie,onFocus:Oe})}),g,j?j({...he,startAdornment:X}):null]})]})});function r2n(e){return Bn("MuiInput",e)}const $C={...md,...Ln("MuiInput",["root","underline","input"])},i2n=e=>{const{classes:t,disableUnderline:n}=e,i=Yt({root:["root",!n&&"underline"],input:["input"]},r2n,t);return{...t,...i}},o2n=rt(LQ,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...DQ(e,t),!n.disableUnderline&&t.underline]}})(kr(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,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"},[`&.${$C.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$C.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(.${$C.disabled}, .${$C.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$C.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_l()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),a2n=rt(_Q,{name:"MuiInput",slot:"Input",overridesResolver:kQ})({}),bCe=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:p="text",...h}=r,g=i2n(r),v={root:{ownerState:{disableUnderline:i}}},y=u??a?v0(u??a,v):v,M=d.root??o.Root??o2n,C=d.input??o.Input??a2n;return f.jsx(K6,{slots:{root:M,input:C},slotProps:y,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:p,...h,classes:g})});bCe.muiName="Input";function s2n(e){return Bn("MuiFilledInput",e)}const Hp={...md,...Ln("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},l2n=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:o,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",o==="small"&&`size${jt(o)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=Yt(l,s2n,t);return{...t,...c}},c2n=rt(LQ,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...DQ(e,t),!n.disableUnderline&&t.underline]}})(kr(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Hp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Hp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:a})=>!a.disableUnderline,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"},[`&.${Hp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,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(.${Hp.disabled}, .${Hp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Hp.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_l()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),u2n=rt(_Q,{name:"MuiFilledInput",slot:"Input",overridesResolver:kQ})(kr(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!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",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),yCe=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...g}=r,m={...r,disableUnderline:i,fullWidth:s,inputComponent:c,multiline:u,type:h},v=l2n(r),y={root:{ownerState:m},input:{ownerState:m}},M=d??a?v0(y,d??a):y,C=p.root??o.Root??c2n,x=p.input??o.Input??u2n;return f.jsx(K6,{slots:{root:C,input:x},slotProps:M,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:h,...g,classes:v})});yCe.muiName="Input";var VDe;const d2n=rt("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Cp})({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%"}),p2n=rt("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Cp})(kr(({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 h2n(e){const{children:t,classes:n,className:r,label:i,notched:o,...a}=e,s=i!=null&&i!=="",l={...e,notched:o,withLabel:s};return f.jsx(d2n,{"aria-hidden":!0,className:r,ownerState:l,...a,children:f.jsx(p2n,{ownerState:l,children:s?f.jsx("span",{children:i}):VDe||(VDe=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function f2n(e){return Bn("MuiOutlinedInput",e)}const Gh={...md,...Ln("MuiOutlinedInput",["root","notchedOutline","input"])},g2n=e=>{const{classes:t}=e,r=Yt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},f2n,t);return{...t,...r}},m2n=rt(LQ,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:DQ})(kr(({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 .${Gh.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Gh.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Gh.focused} .${Gh.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(_l()).map(([n])=>({props:{color:n},style:{[`&.${Gh.focused} .${Gh.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Gh.error} .${Gh.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Gh.disabled} .${Gh.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:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),v2n=rt(h2n,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(kr(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),b2n=rt(_Q,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kQ})(kr(({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}}]}))),MCe=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:p="text",...h}=r,g=g2n(r),m=mh(),v=I3({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:m,fullWidth:o,hiddenLabel:v.hiddenLabel,multiline:l,size:v.size,type:p},M=u.root??i.Root??m2n,C=u.input??i.Input??b2n,[x,w]=ni("notchedOutline",{elementType:v2n,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:s!=null&&s!==""&&v.required?f.jsxs(b.Fragment,{children:[s," ","*"]}):s}});return f.jsx(K6,{slots:{root:M,input:C},slotProps:d,renderSuffix:S=>f.jsx(x,{...w,notched:typeof c<"u"?c:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:n,type:p,...h,classes:{...g,notchedOutline:null}})});MCe.muiName="Input";function y2n(e){return Bn("MuiFormLabel",e)}const QN=Ln("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),M2n=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${jt(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return Yt(l,y2n,t)},C2n=rt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(kr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{[`&.${QN.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${QN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${QN.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),x2n=rt("span",{name:"MuiFormLabel",slot:"Asterisk"})(kr(({theme:e})=>({[`&.${QN.error}`]:{color:(e.vars||e).palette.error.main}}))),w2n=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiFormLabel"}),{children:i,className:o,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:p,...h}=r,g=mh(),m=I3({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),v={...r,color:m.color||"primary",component:s,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},y=M2n(v);return f.jsxs(C2n,{as:s,ownerState:v,className:nr(y.root,o),ref:n,...h,children:[i,m.required&&f.jsxs(x2n,{ownerState:v,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function S2n(e){return Bn("MuiInputLabel",e)}Ln("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const A2n=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="medium"&&`size${jt(r)}`,a],asterisk:[s&&"asterisk"]},c=Yt(l,S2n,t);return{...t,...c}},O2n=rt(w2n,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${QN.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(kr(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Ew=b.forwardRef(function(t,n){const r=mi({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:o,shrink:a,variant:s,className:l,...c}=r,u=mh();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const p=I3({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),h={...r,disableAnimation:i,formControl:u,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused},g=A2n(h);return f.jsx(O2n,{"data-shrink":d,ref:n,className:nr(g.root,l),...c,ownerState:h,classes:g})});function z2n(e){return Bn("MuiFormControl",e)}Ln("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const T2n=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${jt(n)}`,r&&"fullWidth"]};return Yt(i,z2n,t)},E2n=rt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${jt(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Rw=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:g=!1,size:m="medium",variant:v="outlined",...y}=r,M={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:g,size:m,variant:v},C=T2n(M),[x,w]=b.useState(()=>{let L=!1;return i&&b.Children.forEach(i,W=>{if(!r7(W,["Input","Select"]))return;const H=r7(W,["Select"])?W.props.input:W;H&&e2n(H.props)&&(L=!0)}),L}),[S,A]=b.useState(()=>{let L=!1;return i&&b.Children.forEach(i,W=>{r7(W,["Input","Select"])&&(c9(W.props,!0)||c9(W.props.inputProps,!0))&&(L=!0)}),L}),[z,O]=b.useState(!1);l&&z&&O(!1);const T=u!==void 0&&!l?u:z;let I;b.useRef(!1);const P=b.useCallback(()=>{A(!0)},[]),N=b.useCallback(()=>{A(!1)},[]),F=b.useMemo(()=>({adornedStart:x,setAdornedStart:w,color:a,disabled:l,error:c,filled:S,focused:T,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{O(!1)},onFocus:()=>{O(!0)},onEmpty:N,onFilled:P,registerEffect:I,required:g,variant:v}),[x,a,l,c,S,T,d,p,I,N,P,g,m,v]);return f.jsx(zQ.Provider,{value:F,children:f.jsx(E2n,{as:s,ownerState:M,className:nr(C.root,o),ref:n,...y,children:i})})});function R2n(e){return Bn("MuiFormHelperText",e)}const GDe=Ln("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $De;const I2n=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",r&&`size${jt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Yt(c,R2n,t)},P2n=rt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${jt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(kr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${GDe.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${GDe.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Mlt=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:p,variant:h,...g}=r,m=mh(),v=I3({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),y={...r,component:a,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete y.ownerState;const M=I2n(y);return f.jsx(P2n,{as:a,className:nr(M.root,o),ref:n,...g,ownerState:y,children:i===" "?$De||($De=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});function zie(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function UDe(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Clt(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function p4(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Clt(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const NQ=b.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=t,h=b.useRef(null),g=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});To(()=>{i&&h.current.focus()},[i]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,{direction:x})=>{const w=!h.current.style.width;if(C.clientHeight<h.current.clientHeight&&w){const S=`${Ast(Mm(C))}px`;h.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=S,h.current.style.width=`calc(100% + ${S})`}return h.current}}),[]);const m=C=>{const x=h.current,w=C.key;if(C.ctrlKey||C.metaKey||C.altKey){u&&u(C);return}const A=Is(x).activeElement;if(w==="ArrowDown")C.preventDefault(),p4(x,A,c,l,zie);else if(w==="ArrowUp")C.preventDefault(),p4(x,A,c,l,UDe);else if(w==="Home")C.preventDefault(),p4(x,null,c,l,zie);else if(w==="End")C.preventDefault(),p4(x,null,c,l,UDe);else if(w.length===1){const z=g.current,O=w.toLowerCase(),T=performance.now();z.keys.length>0&&(T-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&O!==z.keys[0]&&(z.repeating=!1)),z.lastTime=T,z.keys.push(O);const I=A&&!z.repeating&&Clt(A,z);z.previousKeyMatched&&(I||p4(x,A,!1,l,zie,z))?C.preventDefault():z.previousKeyMatched=!1}u&&u(C)},v=Pi(h,n);let y=-1;b.Children.forEach(a,(C,x)=>{if(!b.isValidElement(C)){y===x&&(y+=1,y>=a.length&&(y=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||y===-1)&&(y=x),y===x&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const M=b.Children.map(a,(C,x)=>{if(x===y){const w={};return o&&(w.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(w.tabIndex=0),b.cloneElement(C,w)}return C});return f.jsx(dlt,{role:"menu",ref:v,className:s,onKeyDown:m,tabIndex:i?0:-1,...p,children:M})});function D2n(e){const t=Is(e);return t.body===e?Mm(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ZN(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function XDe(e){return parseInt(Mm(e).getComputedStyle(e).paddingRight,10)||0}function k2n(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function YDe(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=!o.includes(a),l=!k2n(a);s&&l&&ZN(a,i)})}function Tie(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function L2n(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(D2n(r)){const a=Ast(Mm(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${XDe(r)+a}px`;const s=Is(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${XDe(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Is(r).body;else{const a=r.parentElement,s=Mm(r);o=a?.nodeName==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function _2n(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class N2n{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ZN(t.modalRef,!1);const i=_2n(n);YDe(n,t.mount,t.modalRef,i,!0);const o=Tie(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Tie(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=L2n(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Tie(this.containers,a=>a.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&ZN(t.modalRef,n),YDe(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&ZN(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function F2n(e){return Bn("MuiBackdrop",e)}Ln("MuiBackdrop",["root","invisible"]);const W2n=e=>{const{classes:t,invisible:n}=e;return Yt({root:["root",n&&"invisible"]},F2n,t)},q2n=rt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),xlt=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:p={},TransitionComponent:h,transitionDuration:g,...m}=r,v={...r,component:a,invisible:s},y=W2n(v),M={transition:h,root:c.Root,...p},C={...u,...d},x={component:a,slots:M,slotProps:C},[w,S]=ni("root",{elementType:q2n,externalForwardedProps:x,className:nr(y.root,o),ownerState:v}),[A,z]=ni("transition",{elementType:kz,externalForwardedProps:x,ownerState:v});return f.jsx(A,{in:l,timeout:g,...m,...z,children:f.jsx(w,{"aria-hidden":!0,...S,classes:y,ref:n,children:i})})});function B2n(e){return typeof e=="function"?e():e}function j2n(e){return e?e.props.hasOwnProperty("in"):!1}const KDe=()=>{},g8=new N2n;function H2n(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=b.useRef({}),p=b.useRef(null),h=b.useRef(null),g=Pi(h,u),[m,v]=b.useState(!c),y=j2n(s);let M=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(M=!1);const C=()=>Is(p.current),x=()=>(d.current.modalRef=h.current,d.current.mount=p.current,d.current),w=()=>{g8.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},S=en(()=>{const L=B2n(t)||C().body;g8.add(x(),L),h.current&&w()}),A=()=>g8.isTopModal(x()),z=en(L=>{p.current=L,L&&(c&&A()?w():h.current&&ZN(h.current,M))}),O=b.useCallback(()=>{g8.remove(x(),M)},[M]);b.useEffect(()=>()=>{O()},[O]),b.useEffect(()=>{c?S():(!y||!i)&&O()},[c,O,y,i,S]);const T=L=>W=>{L.onKeyDown?.(W),!(W.key!=="Escape"||W.which===229||!A())&&(n||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},I=L=>W=>{L.onClick?.(W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(L={})=>{const W=zst(e);delete W.onTransitionEnter,delete W.onTransitionExited;const H={...W,...L};return{role:"presentation",...H,onKeyDown:T(H),ref:g}},getBackdropProps:(L={})=>{const W=L;return{"aria-hidden":!0,...W,onClick:I(W),open:c}},getTransitionProps:()=>{const L=()=>{v(!1),o&&o()},W=()=>{v(!0),a&&a(),i&&O()};return{onEnter:hDe(L,s?.props.onEnter??KDe),onExited:hDe(W,s?.props.onExited??KDe)}},rootRef:g,portalRef:z,isTopModal:A,exited:m,hasTransition:y}}function V2n(e){return Bn("MuiModal",e)}Ln("MuiModal",["root","hidden","backdrop"]);const G2n=e=>{const{open:t,exited:n,classes:r}=e;return Yt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},V2n,r)},$2n=rt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(kr(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),U2n=rt(xlt,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),wlt=b.forwardRef(function(t,n){const r=mi({name:"MuiModal",props:t}),{BackdropComponent:i=U2n,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:p={},componentsProps:h={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:y=!1,disableRestoreFocus:M=!1,disableScrollLock:C=!1,hideBackdrop:x=!1,keepMounted:w=!1,onClose:S,onTransitionEnter:A,onTransitionExited:z,open:O,slotProps:T={},slots:I={},theme:P,...N}=r,F={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:y,disableRestoreFocus:M,disableScrollLock:C,hideBackdrop:x,keepMounted:w},{getRootProps:L,getBackdropProps:W,getTransitionProps:H,portalRef:j,isTopModal:G,exited:q,hasTransition:$}=H2n({...F,rootRef:n}),U={...F,exited:q},X=G2n(U),Q={};if(c.props.tabIndex===void 0&&(Q.tabIndex="-1"),$){const{onEnter:ce,onExited:oe}=H();Q.onEnter=ce,Q.onExited=oe}const re={slots:{root:p.Root,backdrop:p.Backdrop,...I},slotProps:{...h,...T}},[ee,se]=ni("root",{ref:n,elementType:$2n,externalForwardedProps:{...re,...N,component:d},getSlotProps:L,ownerState:U,className:nr(s,X?.root,!U.open&&U.exited&&X?.hidden)}),[pe,te]=ni("backdrop",{ref:o?.ref,elementType:i,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ce=>W({...ce,onClick:oe=>{ce?.onClick&&ce.onClick(oe)}}),className:nr(o?.className,X?.backdrop),ownerState:U});return!w&&!O&&(!$||q)?null:f.jsx(olt,{ref:j,container:u,disablePortal:y,children:f.jsxs(ee,{...se,children:[!x&&i?f.jsx(pe,{...te}):null,f.jsx(gCe,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:M,isEnabled:G,open:O,children:b.cloneElement(c,Q)})]})})});function X2n(e){return Bn("MuiPopover",e)}Ln("MuiPopover",["root","paper"]);function QDe(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ZDe(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function JDe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function m8(e){return typeof e=="function"?e():e}const Y2n=e=>{const{classes:t}=e;return Yt({root:["root"],paper:["paper"]},X2n,t)},K2n=rt(wlt,{name:"MuiPopover",slot:"Root"})({}),Slt=rt(R3,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Q2n=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:h=16,open:g,PaperProps:m={},slots:v={},slotProps:y={},transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:x="auto",TransitionProps:w={},disableScrollLock:S=!1,...A}=r,z=b.useRef(),O={...r,anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:h,transformOrigin:M,TransitionComponent:C,transitionDuration:x,TransitionProps:w},T=Y2n(O),I=b.useCallback(()=>{if(l==="anchorPosition")return s;const ce=m8(o),ae=(ce&&ce.nodeType===1?ce:Is(z.current).body).getBoundingClientRect();return{top:ae.top+QDe(ae,a.vertical),left:ae.left+ZDe(ae,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),P=b.useCallback(ce=>({vertical:QDe(ce,M.vertical),horizontal:ZDe(ce,M.horizontal)}),[M.horizontal,M.vertical]),N=b.useCallback(ce=>{const oe={width:ce.offsetWidth,height:ce.offsetHeight},ae=P(oe);if(l==="none")return{top:null,left:null,transformOrigin:JDe(ae)};const ne=I();let le=ne.top-ae.vertical,he=ne.left-ae.horizontal;const be=le+oe.height,me=he+oe.width,Me=Mm(m8(o)),Oe=Me.innerHeight-h,de=Me.innerWidth-h;if(h!==null&&le<h){const ie=le-h;le-=ie,ae.vertical+=ie}else if(h!==null&&be>Oe){const ie=be-Oe;le-=ie,ae.vertical+=ie}if(h!==null&&he<h){const ie=he-h;he-=ie,ae.horizontal+=ie}else if(me>de){const ie=me-de;he-=ie,ae.horizontal+=ie}return{top:`${Math.round(le)}px`,left:`${Math.round(he)}px`,transformOrigin:JDe(ae)}},[o,l,I,P,h]),[F,L]=b.useState(g),W=b.useCallback(()=>{const ce=z.current;if(!ce)return;const oe=N(ce);oe.top!==null&&ce.style.setProperty("top",oe.top),oe.left!==null&&(ce.style.left=oe.left),ce.style.transformOrigin=oe.transformOrigin,L(!0)},[N]);b.useEffect(()=>(S&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[o,S,W]);const H=()=>{W()},j=()=>{L(!1)};b.useEffect(()=>{g&&W()}),b.useImperativeHandle(i,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),b.useEffect(()=>{if(!g)return;const ce=zw(()=>{W()}),oe=Mm(m8(o));return oe.addEventListener("resize",ce),()=>{ce.clear(),oe.removeEventListener("resize",ce)}},[o,g,W]);let G=x;const q={slots:{transition:C,...v},slotProps:{transition:w,paper:m,...y}},[$,U]=ni("transition",{elementType:fP,externalForwardedProps:q,ownerState:O,getSlotProps:ce=>({...ce,onEntering:(oe,ae)=>{ce.onEntering?.(oe,ae),H()},onExited:oe=>{ce.onExited?.(oe),j()}}),additionalProps:{appear:!0,in:g}});x==="auto"&&!$.muiSupportAuto&&(G=void 0);const X=d||(o?Is(m8(o)).body:void 0),[Q,{slots:re,slotProps:ee,...se}]=ni("root",{ref:n,elementType:K2n,externalForwardedProps:{...q,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:v.backdrop},slotProps:{backdrop:Ust(typeof y.backdrop=="function"?y.backdrop(O):y.backdrop,{invisible:!0})},container:X,open:g},ownerState:O,className:nr(T.root,u)}),[pe,te]=ni("paper",{ref:z,className:T.paper,elementType:Slt,externalForwardedProps:q,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:F?void 0:{opacity:0}},ownerState:O});return f.jsx(Q,{...se,...!dP(Q)&&{slots:re,slotProps:ee,disableScrollLock:S},children:f.jsx($,{...U,timeout:G,children:f.jsx(pe,{...te,children:c})})})});function Z2n(e){return Bn("MuiMenu",e)}Ln("MuiMenu",["root","paper","list"]);const J2n={vertical:"top",horizontal:"right"},eyn={vertical:"top",horizontal:"left"},tyn=e=>{const{classes:t}=e;return Yt({root:["root"],paper:["paper"],list:["list"]},Z2n,t)},nyn=rt(Q2n,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),ryn=rt(Slt,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),iyn=rt(NQ,{name:"MuiMenu",slot:"List"})({outline:0}),oyn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:g,...m}={},variant:v="selectedMenu",slots:y={},slotProps:M={},...C}=r,x=ts(),w={...r,autoFocus:i,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:v},S=tyn(w),A=i&&!s&&u,z=b.useRef(null),O=(G,q)=>{z.current&&z.current.adjustStyleForScrollbar(G,{direction:x?"rtl":"ltr"}),g&&g(G,q)},T=G=>{G.key==="Tab"&&(G.preventDefault(),c&&c(G,"tabKeyDown"))};let I=-1;b.Children.map(o,(G,q)=>{b.isValidElement(G)&&(G.props.disabled||(v==="selectedMenu"&&G.props.selected||I===-1)&&(I=q))});const P={slots:y,slotProps:{list:l,transition:m,paper:d,...M}},N=Ho({elementType:y.root,externalSlotProps:M.root,ownerState:w,className:[S.root,a]}),[F,L]=ni("paper",{className:S.paper,elementType:ryn,externalForwardedProps:P,shouldForwardComponentProp:!0,ownerState:w}),[W,H]=ni("list",{className:nr(S.list,l.className),elementType:iyn,shouldForwardComponentProp:!0,externalForwardedProps:P,getSlotProps:G=>({...G,onKeyDown:q=>{T(q),G.onKeyDown?.(q)}}),ownerState:w}),j=typeof P.slotProps.transition=="function"?P.slotProps.transition(w):P.slotProps.transition;return f.jsx(nyn,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?J2n:eyn,slots:{root:y.root,paper:F,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:N,paper:L,backdrop:typeof M.backdrop=="function"?M.backdrop(w):M.backdrop,transition:{...j,onEntering:(...G)=>{O(...G),j?.onEntering?.(...G)}}},open:u,ref:n,transitionDuration:h,ownerState:w,...C,classes:p,children:f.jsx(W,{actions:z,autoFocus:i&&(I===-1||s),autoFocusItem:A,variant:v,...H,children:o})})});function ayn(e){return Bn("MuiNativeSelect",e)}const CCe=Ln("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),syn=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${jt(n)}`,o&&"iconOpen",r&&"disabled"]};return Yt(s,ayn,t)},Alt=rt("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${CCe.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}}}]})),lyn=rt(Alt,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cp,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${CCe.multiple}`]:t.multiple}]}})({}),Olt=rt("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${CCe.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}}]})),cyn=rt(Olt,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${jt(n.variant)}`],n.open&&t.iconOpen]}})({}),uyn=b.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:i,variant:l,error:o},d=syn(u);return f.jsxs(b.Fragment,{children:[f.jsx(lyn,{ownerState:u,className:nr(d.select,r),disabled:i,ref:s||n,...c}),t.multiple?null:f.jsx(cyn,{as:a,ownerState:u,className:d.icon})]})});function zlt(e){return Bn("MuiSelect",e)}const h4=Ln("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var eke;const dyn=rt(Alt,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${h4.select}`]:t.select},{[`&.${h4.select}`]:t[n.variant]},{[`&.${h4.error}`]:t.error},{[`&.${h4.multiple}`]:t.multiple}]}})({[`&.${h4.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),pyn=rt(Olt,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${jt(n.variant)}`],n.open&&t.iconOpen]}})({}),hyn=rt("input",{shouldForwardProp:e=>Sst(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function tke(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function fyn(e){return e==null||typeof e=="string"&&!e.trim()}const gyn=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${jt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Yt(s,zlt,t)},myn=b.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:h=!1,IconComponent:g,inputRef:m,labelId:v,MenuProps:y={},multiple:M,name:C,onBlur:x,onChange:w,onClose:S,onFocus:A,onOpen:z,open:O,readOnly:T,renderValue:I,required:P,SelectDisplayProps:N={},tabIndex:F,type:L,value:W,variant:H="standard",...j}=t,[G,q]=up({controlled:W,default:u,name:"Select"}),[$,U]=up({controlled:O,default:c,name:"Select"}),X=b.useRef(null),Q=b.useRef(null),[re,ee]=b.useState(null),{current:se}=b.useRef(O!=null),[pe,te]=b.useState(),ce=Pi(n,m),oe=b.useCallback(Ke=>{Q.current=Ke,Ke&&ee(Ke)},[]),ae=re?.parentNode;b.useImperativeHandle(ce,()=>({focus:()=>{Q.current.focus()},node:X.current,value:G}),[G]),b.useEffect(()=>{c&&$&&re&&!se&&(te(a?null:ae.clientWidth),Q.current.focus())},[re,a]),b.useEffect(()=>{o&&Q.current.focus()},[o]),b.useEffect(()=>{if(!v)return;const Ke=Is(Q.current).getElementById(v);if(Ke){const et=()=>{getSelection().isCollapsed&&Q.current.focus()};return Ke.addEventListener("click",et),()=>{Ke.removeEventListener("click",et)}}},[v]);const ne=(Ke,et)=>{Ke?z&&z(et):S&&S(et),se||(te(a?null:ae.clientWidth),U(Ke))},le=Ke=>{Ke.button===0&&(Ke.preventDefault(),Q.current.focus(),ne(!0,Ke))},he=Ke=>{ne(!1,Ke)},be=b.Children.toArray(s),me=Ke=>{const et=be.find(it=>it.props.value===Ke.target.value);et!==void 0&&(q(et.props.value),w&&w(Ke,et))},Me=Ke=>et=>{let it;if(et.currentTarget.hasAttribute("tabindex")){if(M){it=Array.isArray(G)?G.slice():[];const Ft=G.indexOf(Ke.props.value);Ft===-1?it.push(Ke.props.value):it.splice(Ft,1)}else it=Ke.props.value;if(Ke.props.onClick&&Ke.props.onClick(et),G!==it&&(q(it),w)){const Ft=et.nativeEvent||et,Pt=new Ft.constructor(Ft.type,Ft);Object.defineProperty(Pt,"target",{writable:!0,value:{value:it,name:C}}),w(Pt,Ke)}M||ne(!1,et)}},Oe=Ke=>{T||[" ","ArrowUp","ArrowDown","Enter"].includes(Ke.key)&&(Ke.preventDefault(),ne(!0,Ke))},de=re!==null&&$,ie=Ke=>{!de&&x&&(Object.defineProperty(Ke,"target",{writable:!0,value:{value:G,name:C}}),x(Ke))};delete j["aria-invalid"];let ue,Ae;const Ce=[];let Ee=!1;(c9({value:G})||p)&&(I?ue=I(G):Ee=!0);const Ge=be.map(Ke=>{if(!b.isValidElement(Ke))return null;let et;if(M){if(!Array.isArray(G))throw new Error(Xy(2));et=G.some(it=>tke(it,Ke.props.value)),et&&Ee&&Ce.push(Ke.props.children)}else et=tke(G,Ke.props.value),et&&Ee&&(Ae=Ke.props.children);return b.cloneElement(Ke,{"aria-selected":et?"true":"false",onClick:Me(Ke),onKeyUp:it=>{it.key===" "&&it.preventDefault(),Ke.props.onKeyUp&&Ke.props.onKeyUp(it)},role:"option",selected:et,value:void 0,"data-value":Ke.props.value})});Ee&&(M?Ce.length===0?ue=null:ue=Ce.reduce((Ke,et,it)=>(Ke.push(et),it<Ce.length-1&&Ke.push(", "),Ke),[]):ue=Ae);let _e=pe;!a&&se&&re&&(_e=ae.clientWidth);let Ie;typeof F<"u"?Ie=F:Ie=d?null:0;const Le=N.id||(C?`mui-component-select-${C}`:void 0),we={...t,variant:H,value:G,open:de,error:h},ve=gyn(we),De={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(we):y.slotProps?.paper},ze={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(we):y.slotProps?.list},Ve=Hi();return f.jsxs(b.Fragment,{children:[f.jsx(dyn,{as:"div",ref:oe,tabIndex:Ie,role:"combobox","aria-controls":de?Ve:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":de?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,Le].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:Oe,onMouseDown:d||T?null:le,onBlur:ie,onFocus:A,...N,ownerState:we,className:nr(N.className,ve.select,l),id:Le,children:fyn(ue)?eke||(eke=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ue}),f.jsx(hyn,{"aria-invalid":h,value:Array.isArray(G)?G.join(","):G,name:C,ref:X,"aria-hidden":!0,onChange:me,tabIndex:-1,disabled:d,className:ve.nativeInput,autoFocus:o,required:P,...j,ownerState:we}),f.jsx(pyn,{as:g,className:ve.icon,ownerState:we}),f.jsx(oyn,{id:`menu-${C||""}`,anchorEl:ae,open:de,onClose:he,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":M?"true":void 0,disableListWrap:!0,id:Ve,...ze},paper:{...De,style:{minWidth:_e,...De!=null?De.style:null}}},children:Ge})]})}),Tlt=Pu(f.jsx("path",{d:"M7 10l5 5 5-5z"})),vyn=e=>{const{classes:t}=e,r=Yt({root:["root"]},zlt,t);return{...t,...r}},xCe={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Cp(e)&&e!=="variant"},byn=rt(bCe,xCe)(""),yyn=rt(MCe,xCe)(""),Myn=rt(yCe,xCe)(""),mM=b.forwardRef(function(t,n){const r=mi({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Tlt,id:d,input:p,inputProps:h,label:g,labelId:m,MenuProps:v,multiple:y=!1,native:M=!1,onClose:C,onOpen:x,open:w,renderValue:S,SelectDisplayProps:A,variant:z="outlined",...O}=r,T=M?uyn:myn,I=mh(),P=I3({props:r,muiFormControl:I,states:["variant","error"]}),N=P.variant||z,F={...r,variant:N,classes:a},L=vyn(F),{root:W,...H}=L,j=p||{standard:f.jsx(byn,{ownerState:F}),outlined:f.jsx(yyn,{label:g,ownerState:F}),filled:f.jsx(Myn,{ownerState:F})}[N],G=Pi(n,O3(j));return f.jsx(b.Fragment,{children:b.cloneElement(j,{inputComponent:T,inputProps:{children:o,error:P.error,IconComponent:u,variant:N,type:void 0,multiple:y,...M?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:v,onClose:C,onOpen:x,open:w,renderValue:S,SelectDisplayProps:{id:d,...A}},...h,classes:h?v0(H,h.classes):H,...p?p.props.inputProps:{}},...(y&&M||c)&&N==="outlined"?{notched:!0}:{},ref:G,className:nr(j.props.className,s,L.root),...!p&&{variant:N},...O})})});mM.muiName="Select";function Cyn(e){return Bn("MuiTextField",e)}Ln("MuiTextField",["root"]);const xyn={standard:bCe,filled:yCe,outlined:MCe},wyn=e=>{const{classes:t}=e;return Yt({root:["root"]},Cyn,t)},Syn=rt(Rw,{name:"MuiTextField",slot:"Root"})({}),P3=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:v,inputProps:y,InputProps:M,inputRef:C,label:x,maxRows:w,minRows:S,multiline:A=!1,name:z,onBlur:O,onChange:T,onFocus:I,placeholder:P,required:N=!1,rows:F,select:L=!1,SelectProps:W,slots:H={},slotProps:j={},type:G,value:q,variant:$="outlined",...U}=r,X={...r,autoFocus:o,color:l,disabled:u,error:d,fullWidth:h,multiline:A,required:N,select:L,variant:$},Q=wyn(X),re=Hi(m),ee=g&&re?`${re}-helper-text`:void 0,se=x&&re?`${re}-label`:void 0,pe=xyn[$],te={slots:H,slotProps:{input:M,inputLabel:v,htmlInput:y,formHelperText:p,select:W,...j}},ce={},oe=te.slotProps.inputLabel;$==="outlined"&&(oe&&typeof oe.shrink<"u"&&(ce.notched=oe.shrink),ce.label=x),L&&((!W||!W.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const[ae,ne]=ni("root",{elementType:Syn,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...U},ownerState:X,className:nr(Q.root,s),ref:n,additionalProps:{disabled:u,error:d,fullWidth:h,required:N,color:l,variant:$}}),[le,he]=ni("input",{elementType:pe,externalForwardedProps:te,additionalProps:ce,ownerState:X}),[be,me]=ni("inputLabel",{elementType:Ew,externalForwardedProps:te,ownerState:X}),[Me,Oe]=ni("htmlInput",{elementType:"input",externalForwardedProps:te,ownerState:X}),[de,ie]=ni("formHelperText",{elementType:Mlt,externalForwardedProps:te,ownerState:X}),[ue,Ae]=ni("select",{elementType:mM,externalForwardedProps:te,ownerState:X}),Ce=f.jsx(le,{"aria-describedby":ee,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:h,multiline:A,name:z,rows:F,maxRows:w,minRows:S,type:G,value:q,id:re,inputRef:C,onBlur:O,onChange:T,onFocus:I,placeholder:P,inputProps:Oe,slots:{input:H.htmlInput?Me:void 0},...he});return f.jsxs(ae,{...ne,children:[x!=null&&x!==""&&f.jsx(be,{htmlFor:re,id:se,...me,children:x}),L?f.jsx(ue,{"aria-describedby":ee,id:re,labelId:se,value:q,input:Ce,...Ae,children:a}):Ce,g&&f.jsx(de,{id:ee,...ie,children:g})]})}),Ayn=({utils:e,format:t})=>{let n=10,r=t,i=e.expandFormat(t);for(;i!==r;)if(r=i,i=e.expandFormat(r),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 i},Oyn=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n},zyn=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},Tyn=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:i,now:o,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=Ist(e,a),c=Lst(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",d=t!=null&&e.isValid(t);let p=d?e.formatByString(t,a):"",h=null;if(u)if(c)h=p===""?e.formatByString(o,a).length:p.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);h=l.maxLength,d&&(p=oCe(Dst(Dz(p,i),h),i))}return Y({},l,{format:a,maxLength:h,value:p,placeholder:zyn(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},Eyn=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,i=t.date(void 0),o=[];let a="";const s=Object.keys(t.formatTokenMap).sort((h,g)=>g.length-h.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),d=h=>r.find(g=>g.start<=h&&g.end>=h);let p=0;for(;p<n.length;){const h=d(p),g=h!=null,m=l.exec(n.slice(p))?.[1];if(!g&&m!=null&&c.test(m)){let v=m;for(;v.length>0;){const y=u.exec(v)[1];v=v.slice(y.length),o.push(Tyn(Y({},e,{now:i,token:y,startSeparator:a}))),a=""}p+=m.length}else{const v=n[p];g&&h?.start===p||h?.end===p||(o.length===0?a+=v:o[o.length-1].endSeparator+=v),p+=1}}return o.length===0&&a.length>0&&o.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),o},Ryn=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const i=o=>{let a=o;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=i(r.startSeparator),r.endSeparator=i(r.endSeparator),r}),nke=e=>{let t=Ayn(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Oyn(Y({},e,{expandedFormat:t})),r=Eyn(Y({},e,{expandedFormat:t,escapedParts:n}));return Ryn(Y({},e,{sections:r}))},Iyn=e=>{const t=sa(),n=Ed(),r=z3(),i=ts(),{valueManager:o,fieldValueManager:a,valueType:s,validator:l,internalProps:c,internalProps:{value:u,defaultValue:d,referenceDate:p,onChange:h,format:g,formatDensity:m="dense",selectedSections:v,onSelectedSectionsChange:y,shouldRespectLeadingZeros:M=!1,timezone:C,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:w,value:S,handleValueChange:A}=mCe({timezone:C,value:u,defaultValue:d,referenceDate:p,onChange:h,valueManager:o}),z=b.useMemo(()=>$fn(t),[t]),O=b.useMemo(()=>Zfn(t,z,w),[t,z,w]),T=b.useCallback((re,ee=null)=>a.getSectionsFromValue(t,re,ee,se=>nke({utils:t,localeText:n,localizedDigits:z,format:g,date:se,formatDensity:m,shouldRespectLeadingZeros:M,enableAccessibleFieldDOMStructure:x,isRtl:i})),[a,g,n,z,i,M,t,m,x]),[I,P]=b.useState(()=>{const re=T(S),ee={sections:re,value:S,referenceValue:o.emptyValue,tempValueStrAndroid:null},se=jfn(re),pe=o.getInitialReferenceValue({referenceDate:p,value:S,utils:t,props:c,granularity:se,timezone:w});return Y({},ee,{referenceValue:pe})}),[N,F]=up({controlled:v,default:null,name:"useField",state:"selectedSections"}),L=re=>{F(re),y?.(re)},W=b.useMemo(()=>ffe(N,I.sections),[N,I.sections]),H=W==="all"?0:W,j=({value:re,referenceValue:ee,sections:se})=>{if(P(te=>Y({},te,{sections:se,value:re,referenceValue:ee,tempValueStrAndroid:null})),o.areValuesEqual(t,I.value,re))return;const pe={validationError:l({adapter:r,value:re,timezone:w,props:c})};A(re,pe)},G=(re,ee)=>{const se=[...I.sections];return se[re]=Y({},se[re],{value:ee,modified:!0}),se},q=()=>{j({value:o.emptyValue,referenceValue:I.referenceValue,sections:T(o.emptyValue)})},$=()=>{if(H==null)return;const re=I.sections[H],ee=a.getActiveDateManager(t,I,re),pe=ee.getSections(I.sections).filter(ae=>ae.value!=="").length===(re.value===""?0:1),te=G(H,""),ce=pe?null:t.getInvalidDate(),oe=ee.getNewValuesFromNewActiveDate(ce);j(Y({},oe,{sections:te}))},U=re=>{const ee=(te,ce)=>{const oe=t.parse(te,g);if(oe==null||!t.isValid(oe))return null;const ae=nke({utils:t,localeText:n,localizedDigits:z,format:g,date:oe,formatDensity:m,shouldRespectLeadingZeros:M,enableAccessibleFieldDOMStructure:x,isRtl:i});return xDe(t,oe,ae,ce,!1)},se=a.parseValueStr(re,I.referenceValue,ee),pe=a.updateReferenceValue(t,se,I.referenceValue);j({value:se,referenceValue:pe,sections:T(se,I.sections)})},X=({activeSection:re,newSectionValue:ee,shouldGoToNextSection:se})=>{se&&H<I.sections.length-1&&L(H+1);const pe=a.getActiveDateManager(t,I,re),te=G(H,ee),ce=pe.getSections(te),oe=Yfn(t,ce,z);let ae,ne;if(oe!=null&&t.isValid(oe)){const le=xDe(t,oe,ce,pe.referenceDate,!0);ae=pe.getNewValuesFromNewActiveDate(le),ne=!0}else ae=pe.getNewValuesFromNewActiveDate(oe),ne=(oe!=null&&!t.isValid(oe))!=(pe.date!=null&&!t.isValid(pe.date));return ne?j(Y({},ae,{sections:te})):P(le=>Y({},le,ae,{sections:te,tempValueStrAndroid:null}))},Q=re=>P(ee=>Y({},ee,{tempValueStrAndroid:re}));return b.useEffect(()=>{const re=T(I.value);P(ee=>Y({},ee,{sections:re}))},[g,t.locale,i]),b.useEffect(()=>{let re;o.areValuesEqual(t,I.value,S)?re=o.getTimezone(t,I.value)!==o.getTimezone(t,S):re=!0,re&&P(ee=>Y({},ee,{value:S,referenceValue:a.updateReferenceValue(t,S,ee.referenceValue),sections:T(S)}))},[S]),{state:I,activeSectionIndex:H,parsedSelectedSections:W,setSelectedSections:L,clearValue:q,clearActiveSection:$,updateSectionValue:X,updateValueFromValueStr:U,setTempAndroidValueStr:Q,getSectionsFromValue:T,sectionsValueBoundaries:O,localizedDigits:z,timezone:w}},Pyn=5e3,SE=e=>e.saveQuery!=null,Dyn=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:i,timezone:o})=>{const a=sa(),[s,l]=b.useState(null),c=en(()=>l(null));b.useEffect(()=>{s!=null&&e[s.sectionIndex]?.type!==s.sectionType&&c()},[e,s,c]),b.useEffect(()=>{if(s!=null){const g=setTimeout(()=>c(),Pyn);return()=>{clearTimeout(g)}}return()=>{}},[s,c]);const u=({keyPressed:g,sectionIndex:m},v,y)=>{const M=g.toLowerCase(),C=e[m];if(s!=null&&(!y||y(s.value))&&s.sectionIndex===m){const w=`${s.value}${M}`,S=v(w,C);if(!SE(S))return l({sectionIndex:m,value:w,sectionType:C.type}),S}const x=v(M,C);return SE(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:m,value:M,sectionType:C.type}),SE(x)?null:x)},d=g=>{const m=(M,C,x)=>{const w=C.filter(S=>S.toLowerCase().startsWith(x));return w.length===0?{saveQuery:!1}:{sectionValue:w[0],shouldGoToNextSection:w.length===1}},v=(M,C,x,w)=>{const S=A=>Pst(a,o,C.type,A);if(C.contentType==="letter")return m(C.format,S(C.format),M);if(x&&w!=null&&Ist(a,x).contentType==="letter"){const A=S(x),z=m(x,A,M);return SE(z)?{saveQuery:!1}:Y({},z,{sectionValue:w(z.sectionValue,A)})}return{saveQuery:!1}};return u(g,(M,C)=>{switch(C.type){case"month":{const x=w=>MDe(a,w,a.formats.month,C.format);return v(M,C,a.formats.month,x)}case"weekDay":{const x=(w,S)=>S.indexOf(w).toString();return v(M,C,a.formats.weekday,x)}case"meridiem":return v(M,C);default:return{saveQuery:!1}}})},p=g=>{const m=(y,M)=>{const C=Dz(y,r),x=Number(C),w=n[M.type]({currentDate:null,format:M.format,contentType:M.contentType});if(x>w.maximum)return{saveQuery:!1};if(x<w.minimum)return{saveQuery:!0};const S=x*10>w.maximum||C.length===w.maximum.toString().length;return{sectionValue:kst(a,x,w,r,M),shouldGoToNextSection:S}};return u(g,(y,M)=>{if(M.contentType==="digit"||M.contentType==="digit-with-letter")return m(y,M);if(M.type==="month"){Lst(a,"digit","month","MM");const C=m(y,{type:M.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(SE(C))return C;const x=MDe(a,C.sectionValue,"MM",M.format);return Y({},C,{sectionValue:x})}if(M.type==="weekDay"){const C=m(y,M);if(SE(C))return C;const x=wQ(a,M.format)[Number(C.sectionValue)-1];return Y({},C,{sectionValue:x})}return{saveQuery:!1}},y=>yDe(y,r))};return{applyCharacterEditing:en(g=>{const m=e[g.sectionIndex],y=yDe(g.keyPressed,r)?p(Y({},g,{keyPressed:oCe(g.keyPressed,r)})):d(g);if(y==null){i(null);return}t({activeSection:m,newSectionValue:y.sectionValue,shouldGoToNextSection:y.shouldGoToNextSection})}),resetCharacterQuery:c}},kyn=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:i,onClick:o,onFocus:a,onInput:s,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:d,applyCharacterEditing:p,resetCharacterQuery:h,setSelectedSections:g,parsedSelectedSections:m,state:v,clearActiveSection:y,clearValue:M,updateSectionValue:C,updateValueFromValueStr:x,sectionOrder:w,areAllSectionsEmpty:S,sectionsValueBoundaries:A}=e,z=b.useRef(null),O=Pi(r,z),T=Ed(),I=sa(),P=Hi(),[N,F]=b.useState(!1),L=b.useMemo(()=>({syncSelectionToDOM:()=>{if(!z.current)return;const ne=document.getSelection();if(!ne)return;if(m==null){ne.rangeCount>0&&z.current.getRoot().contains(ne.getRangeAt(0).startContainer)&&ne.removeAllRanges(),N&&z.current.getRoot().blur();return}if(!z.current.getRoot().contains(Z0(document)))return;const le=new window.Range;let he;m==="all"?he=z.current.getRoot():v.sections[m].type==="empty"?he=z.current.getSectionContainer(m):he=z.current.getSectionContent(m),le.selectNodeContents(he),he.focus(),ne.removeAllRanges(),ne.addRange(le)},getActiveSectionIndexFromDOM:()=>{const ne=Z0(document);return!ne||!z.current||!z.current.getRoot().contains(ne)?null:z.current.getSectionIndexFromDOMElement(ne)},focusField:(ne=0)=>{if(!z.current||L.getActiveSectionIndexFromDOM()!=null)return;const le=ffe(ne,v.sections);F(!0),z.current.getSectionContent(le).focus()},setSelectedSections:ne=>{if(!z.current)return;const le=ffe(ne,v.sections);F((le==="all"?0:le)!==null),g(ne)},isFieldFocused:()=>{const ne=Z0(document);return!!z.current&&z.current.getRoot().contains(ne)}}),[m,g,v.sections,N]),W=en(ne=>{if(!z.current)return;const le=v.sections[ne];z.current.getSectionContent(ne).innerHTML=le.value||le.placeholder,L.syncSelectionToDOM()}),H=en((ne,...le)=>{ne.isDefaultPrevented()||!z.current||(F(!0),o?.(ne,...le),m==="all"?setTimeout(()=>{const he=document.getSelection().getRangeAt(0).startOffset;if(he===0){g(w.startIndex);return}let be=0,me=0;for(;me<he&&be<v.sections.length;){const Me=v.sections[be];be+=1,me+=`${Me.startSeparator}${Me.value||Me.placeholder}${Me.endSeparator}`.length}g(be-1)}):N?z.current.getRoot().contains(ne.target)||g(w.startIndex):(F(!0),g(w.startIndex)))}),j=en(ne=>{if(s?.(ne),!z.current||m!=="all")return;const he=ne.target.textContent??"";z.current.getRoot().innerHTML=v.sections.map(be=>`${be.startSeparator}${be.value||be.placeholder}${be.endSeparator}`).join(""),L.syncSelectionToDOM(),he.length===0||he.charCodeAt(0)===10?(h(),M(),g("all")):he.length>1?x(he):(m==="all"&&g(0),p({keyPressed:he,sectionIndex:0}))}),G=en(ne=>{if(l?.(ne),n||m!=="all"){ne.preventDefault();return}const le=ne.clipboardData.getData("text");ne.preventDefault(),h(),x(le)}),q=en((...ne)=>{if(a?.(...ne),N||!z.current)return;F(!0),z.current.getSectionIndexFromDOMElement(Z0(document))!=null||g(w.startIndex)}),$=en((...ne)=>{i?.(...ne),setTimeout(()=>{if(!z.current)return;const le=Z0(document);!z.current.getRoot().contains(le)&&(F(!1),g(null))})}),U=en(ne=>le=>{le.isDefaultPrevented()||g(ne)}),X=en(ne=>{ne.preventDefault()}),Q=en(ne=>()=>{g(ne)}),re=en(ne=>{if(ne.preventDefault(),n||t||typeof m!="number")return;const le=v.sections[m],he=ne.clipboardData.getData("text"),be=/^[a-zA-Z]+$/.test(he),me=/^[0-9]+$/.test(he),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(he);le.contentType==="letter"&&be||le.contentType==="digit"&&me||le.contentType==="digit-with-letter"&&Me?(h(),C({activeSection:le,newSectionValue:he,shouldGoToNextSection:!0})):!be&&!me&&(h(),x(he))}),ee=en(ne=>{ne.preventDefault(),ne.dataTransfer.dropEffect="none"}),se=en(ne=>{if(!z.current)return;const le=ne.target,he=le.textContent??"",be=z.current.getSectionIndexFromDOMElement(le),me=v.sections[be];if(n||!z.current){W(be);return}if(he.length===0){if(me.value===""){W(be);return}const Me=ne.nativeEvent.inputType;if(Me==="insertParagraph"||Me==="insertLineBreak"){W(be);return}h(),y();return}p({keyPressed:he,sectionIndex:be}),W(be)});To(()=>{if(!(!N||!z.current)){if(m==="all")z.current.getRoot().focus();else if(typeof m=="number"){const ne=z.current.getSectionContent(m);ne&&ne.focus()}}},[m,N]);const pe=b.useMemo(()=>v.sections.reduce((ne,le)=>(ne[le.type]=A[le.type]({currentDate:null,contentType:le.contentType,format:le.format}),ne),{}),[A,v.sections]),te=m==="all",ce=b.useMemo(()=>v.sections.map((ne,le)=>{const he=!te&&!t&&!n;return{container:{"data-sectionindex":le,onClick:U(le)},content:{tabIndex:te||le>0?-1:0,contentEditable:!te&&!t&&!n,role:"spinbutton",id:`${P}-${ne.type}`,"aria-labelledby":`${P}-${ne.type}`,"aria-readonly":n,"aria-valuenow":rgn(ne,I),"aria-valuemin":pe[ne.type].minimum,"aria-valuemax":pe[ne.type].maximum,"aria-valuetext":ne.value?ngn(ne,I):T.empty,"aria-label":T[ne.type],"aria-disabled":t,spellCheck:he?!1:void 0,autoCapitalize:he?"off":void 0,autoCorrect:he?"off":void 0,[parseInt(b.version,10)>=17?"enterKeyHint":"enterkeyhint"]:he?"next":void 0,children:ne.value||ne.placeholder,onInput:se,onPaste:re,onFocus:Q(le),onDragOver:ee,onMouseUp:X,inputMode:ne.contentType==="letter"?"text":"numeric"},before:{children:ne.startSeparator},after:{children:ne.endSeparator}}}),[v.sections,Q,re,ee,se,U,X,t,n,te,T,I,pe,P]),oe=en(ne=>{x(ne.target.value)}),ae=b.useMemo(()=>S?"":d.getV7HiddenInputValueFromSections(v.sections),[S,v.sections,d]);return b.useEffect(()=>{if(z.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(`
`));u&&z.current&&z.current.getSectionContent(w.startIndex).focus()},[]),{interactions:L,returnedValue:{autoFocus:u,readOnly:n,focused:c??N,sectionListRef:O,onBlur:$,onClick:H,onFocus:q,onInput:j,onPaste:G,enableAccessibleFieldDOMStructure:!0,elements:ce,tabIndex:m===0?-1:0,contentEditable:te,value:ae,onChange:oe,areAllSectionsEmpty:S}}},DR=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Lyn=(e,t,n)=>{let r=0,i=n?1:0;const o=[];for(let a=0;a<e.length;a+=1){const s=e[a],l=aCe(s,n?"input-rtl":"input-ltr",t),c=`${s.startSeparator}${l}${s.endSeparator}`,u=DR(c).length,d=c.length,p=DR(l),h=i+(p===""?0:l.indexOf(p[0]))+s.startSeparator.length,g=h+p.length;o.push(Y({},s,{start:r,end:r+u,startInInput:h,endInInput:g})),r+=u,i+=d}return o},_yn=e=>{const t=ts(),n=b.useRef(void 0),r=b.useRef(void 0),{forwardedProps:{onFocus:i,onClick:o,onPaste:a,onBlur:s,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:d=!1},parsedSelectedSections:p,activeSectionIndex:h,state:g,fieldValueManager:m,valueManager:v,applyCharacterEditing:y,resetCharacterQuery:M,updateSectionValue:C,updateValueFromValueStr:x,clearActiveSection:w,clearValue:S,setTempAndroidValueStr:A,setSelectedSections:z,getSectionsFromValue:O,areAllSectionsEmpty:T,localizedDigits:I}=e,P=b.useRef(null),N=Pi(l,P),F=b.useMemo(()=>Lyn(g.sections,I,t),[g.sections,I,t]),L=b.useMemo(()=>({syncSelectionToDOM:()=>{if(!P.current)return;if(p==null){P.current.scrollLeft&&(P.current.scrollLeft=0);return}if(P.current!==Z0(document))return;const se=P.current.scrollTop;if(p==="all")P.current.select();else{const pe=F[p],te=pe.type==="empty"?pe.startInInput-pe.startSeparator.length:pe.startInInput,ce=pe.type==="empty"?pe.endInInput+pe.endSeparator.length:pe.endInInput;(te!==P.current.selectionStart||ce!==P.current.selectionEnd)&&P.current===Z0(document)&&P.current.setSelectionRange(te,ce),clearTimeout(r.current),r.current=setTimeout(()=>{P.current&&P.current===Z0(document)&&P.current.selectionStart===P.current.selectionEnd&&(P.current.selectionStart!==te||P.current.selectionEnd!==ce)&&L.syncSelectionToDOM()})}P.current.scrollTop=se},getActiveSectionIndexFromDOM:()=>{const se=P.current.selectionStart??0,pe=P.current.selectionEnd??0;if(se===0&&pe===0)return null;const te=se<=F[0].startInInput?1:F.findIndex(ce=>ce.startInInput-ce.startSeparator.length>se);return te===-1?F.length-1:te-1},focusField:(se=0)=>{Z0(document)!==P.current&&(P.current?.focus(),z(se))},setSelectedSections:se=>z(se),isFieldFocused:()=>P.current===Z0(document)}),[P,p,F,z]),W=()=>{const se=P.current.selectionStart??0;let pe;se<=F[0].startInInput||se>=F[F.length-1].endInInput?pe=1:pe=F.findIndex(ce=>ce.startInInput-ce.startSeparator.length>se);const te=pe===-1?F.length-1:pe-1;z(te)},H=en((...se)=>{i?.(...se);const pe=P.current;clearTimeout(n.current),n.current=setTimeout(()=>{!pe||pe!==P.current||h==null&&(pe.value.length&&Number(pe.selectionEnd)-Number(pe.selectionStart)===pe.value.length?z("all"):W())})}),j=en((se,...pe)=>{se.isDefaultPrevented()||(o?.(se,...pe),W())}),G=en(se=>{if(a?.(se),se.preventDefault(),u||d)return;const pe=se.clipboardData.getData("text");if(typeof p=="number"){const te=g.sections[p],ce=/^[a-zA-Z]+$/.test(pe),oe=/^[0-9]+$/.test(pe),ae=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pe);if(te.contentType==="letter"&&ce||te.contentType==="digit"&&oe||te.contentType==="digit-with-letter"&&ae){M(),C({activeSection:te,newSectionValue:pe,shouldGoToNextSection:!0});return}if(ce||oe)return}M(),x(pe)}),q=en((...se)=>{s?.(...se),z(null)}),$=en(se=>{if(u)return;const pe=se.target.value;if(pe===""){M(),S();return}const te=se.nativeEvent.data,ce=te&&te.length>1,oe=ce?te:pe,ae=DR(oe);if(p==="all"&&z(h),h==null||ce){x(ce?te:ae);return}let ne;if(p==="all"&&ae.length===1)ne=ae;else{const le=DR(m.getV6InputValueFromSections(F,I,t));let he=-1,be=-1;for(let de=0;de<le.length;de+=1)he===-1&&le[de]!==ae[de]&&(he=de),be===-1&&le[le.length-de-1]!==ae[ae.length-de-1]&&(be=de);const me=F[h];if(he<me.start||le.length-be-1>me.end)return;const Oe=ae.length-le.length+me.end-DR(me.endSeparator||"").length;ne=ae.slice(me.start+DR(me.startSeparator||"").length,Oe)}if(ne.length===0){egn()&&A(oe),M(),w();return}y({keyPressed:ne,sectionIndex:h})}),U=b.useMemo(()=>c!==void 0?c:m.getV6InputValueFromSections(O(v.emptyValue),I,t),[c,m,O,v.emptyValue,I,t]),X=b.useMemo(()=>g.tempValueStrAndroid??m.getV6InputValueFromSections(g.sections,I,t),[g.sections,m,g.tempValueStrAndroid,I,t]);b.useEffect(()=>(P.current&&P.current===Z0(document)&&z("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const Q=b.useMemo(()=>h==null||g.sections[h].contentType==="letter"?"text":"numeric",[h,g.sections]),ee=!(P.current&&P.current===Z0(document))&&T;return{interactions:L,returnedValue:{readOnly:u,onBlur:q,onClick:j,onFocus:H,onPaste:G,inputRef:N,enableAccessibleFieldDOMStructure:!1,placeholder:U,inputMode:Q,autoComplete:"off",value:ee?"":X,onChange:$}}},Elt=e=>{const t=sa(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:i,enableAccessibleFieldDOMStructure:o=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:d},fieldValueManager:p,valueManager:h,validator:g}=e,m=ts(),v=Iyn(e),{state:y,activeSectionIndex:M,parsedSelectedSections:C,setSelectedSections:x,clearValue:w,clearActiveSection:S,updateSectionValue:A,setTempAndroidValueStr:z,sectionsValueBoundaries:O,localizedDigits:T,timezone:I}=v,P=Dyn({sections:y.sections,updateSectionValue:A,sectionsValueBoundaries:O,localizedDigits:T,setTempAndroidValueStr:z,timezone:I}),{resetCharacterQuery:N}=P,F=h.areValuesEqual(t,y.value,h.emptyValue),L=o?kyn:_yn,W=b.useMemo(()=>tgn(y.sections,m&&!o),[y.sections,m,o]),{returnedValue:H,interactions:j}=L(Y({},e,v,P,{areAllSectionsEmpty:F,sectionOrder:W})),G=en(re=>{if(l?.(re),!a)switch(!0){case((re.ctrlKey||re.metaKey)&&String.fromCharCode(re.keyCode)==="A"&&!re.shiftKey&&!re.altKey):{re.preventDefault(),x("all");break}case re.key==="ArrowRight":{if(re.preventDefault(),C==null)x(W.startIndex);else if(C==="all")x(W.endIndex);else{const ee=W.neighbors[C].rightIndex;ee!==null&&x(ee)}break}case re.key==="ArrowLeft":{if(re.preventDefault(),C==null)x(W.endIndex);else if(C==="all")x(W.startIndex);else{const ee=W.neighbors[C].leftIndex;ee!==null&&x(ee)}break}case re.key==="Delete":{if(re.preventDefault(),s)break;C==null||C==="all"?w():S(),N();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(re.key):{if(re.preventDefault(),s||M==null)break;C==="all"&&x(M);const ee=y.sections[M],se=p.getActiveDateManager(t,y,ee),pe=Ufn(t,I,ee,re.key,O,T,se.date,{minutesStep:i});A({activeSection:ee,newSectionValue:pe,shouldGoToNextSection:!1});break}}});To(()=>{j.syncSelectionToDOM()});const{hasValidationError:q}=$st({props:n,validator:g,timezone:I,value:y.value,onError:n.onError}),$=b.useMemo(()=>c!==void 0?c:q,[q,c]);b.useEffect(()=>{!$&&M==null&&N()},[y.referenceValue,M,$]),b.useEffect(()=>{y.tempValueStrAndroid!=null&&M!=null&&(N(),S())},[y.sections]),b.useImperativeHandle(r,()=>({getSections:()=>y.sections,getActiveSectionIndex:j.getActiveSectionIndexFromDOM,setSelectedSections:j.setSelectedSections,focusField:j.focusField,isFieldFocused:j.isFieldFocused}));const U=en((re,...ee)=>{re.preventDefault(),d?.(re,...ee),w(),j.isFieldFocused()?x(W.startIndex):j.focusField(0)}),X={onKeyDown:G,onClear:U,error:$,clearable:!!(u&&!F&&!s&&!a)},Q={disabled:a,readOnly:s};return Y({},e.forwardedProps,X,Q,H)},Nyn=["clearable","onClear","InputProps","sx","slots","slotProps"],Fyn=["ownerState"],Rlt=e=>{const t=Ed(),{clearable:n,onClear:r,InputProps:i,sx:o,slots:a,slotProps:s}=e,l=Lt(e,Nyn),c=a?.clearButton??Zp,u=Ho({elementType:c,externalSlotProps:s?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=Lt(u,Fyn),p=a?.clearIcon??vCe,h=Ho({elementType:p,externalSlotProps:s?.clearIcon,ownerState:{}});return Y({},l,{InputProps:Y({},i,{endAdornment:f.jsxs(b.Fragment,{children:[n&&f.jsx(sCe,{position:"end",sx:{marginRight:i?.endAdornment?-1:-1.5},children:f.jsx(c,Y({},d,{onClick:r,children:f.jsx(p,Y({fontSize:"small"},h))}))}),i?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(o)?o:[o]]})},Wyn=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Ilt=(e,t)=>b.useMemo(()=>{const n=Y({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return Wyn.forEach(i),t==="date"?mfe.forEach(i):t==="time"?vfe.forEach(i):t==="date-time"&&(mfe.forEach(i),vfe.forEach(i),Gst.forEach(i)),{forwardedProps:n,internalProps:r}},[e,t]),qyn=e=>{const t=sa(),n=T3();return Y({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:w0(t,e.minDate,n.minDate),maxDate:w0(t,e.maxDate,n.maxDate)})},Byn=e=>{const t=sa(),n=T3(),i=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return Y({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??i,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:w0(t,e.minDateTime??e.minDate,n.minDate),maxDate:w0(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})},jyn=e=>{const t=qyn(e),{forwardedProps:n,internalProps:r}=Ilt(t,"date");return Elt({forwardedProps:n,internalProps:r,valueManager:Tu,fieldValueManager:_st,validator:OD,valueType:"date"})};function Hyn(e){return Bn("MuiPickersTextField",e)}Ln("MuiPickersTextField",["root","focused","disabled","error","required"]);function Vyn(e){return Bn("MuiPickersInputBase",e)}const pI=Ln("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function Gyn(e){return Bn("MuiPickersSectionList",e)}const f4=Ln("MuiPickersSectionList",["root","section","sectionContent"]),$yn=["slots","slotProps","elements","sectionListRef"],Plt=rt("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Dlt=rt("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),klt=rt("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Llt=rt("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),Uyn=e=>{const{classes:t}=e;return Yt({root:["root"],section:["section"],sectionContent:["sectionContent"]},Gyn,t)};function Xyn(e){const{slots:t,slotProps:n,element:r,classes:i}=e,o=t?.section??Dlt,a=Ho({elementType:o,externalSlotProps:n?.section,externalForwardedProps:r.container,className:i.section,ownerState:{}}),s=t?.sectionContent??Llt,l=Ho({elementType:s,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:i.sectionContent,ownerState:{}}),c=t?.sectionSeparator??klt,u=Ho({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=Ho({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return f.jsxs(o,Y({},a,{children:[f.jsx(c,Y({},u)),f.jsx(s,Y({},l)),f.jsx(c,Y({},d))]}))}const Yyn=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersSectionList"}),{slots:i,slotProps:o,elements:a,sectionListRef:s}=r,l=Lt(r,$yn),c=Uyn(r),u=b.useRef(null),d=Pi(n,u),p=m=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return u.current};b.useImperativeHandle(s,()=>({getRoot(){return p("getRoot")},getSectionContainer(m){return p("getSectionContainer").querySelector(`.${f4.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return p("getSectionContent").querySelector(`.${f4.section}[data-sectionindex="${m}"] .${f4.sectionContent}`)},getSectionIndexFromDOMElement(m){const v=p("getSectionIndexFromDOMElement");if(m==null||!v.contains(m))return null;let y=null;return m.classList.contains(f4.section)?y=m:m.classList.contains(f4.sectionContent)&&(y=m.parentElement),y==null?null:Number(y.dataset.sectionindex)}}));const h=i?.root??Plt,g=Ho({elementType:h,externalSlotProps:o?.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return f.jsx(h,Y({},g,{children:g.contentEditable?a.map(({content:m,before:v,after:y})=>`${v.children}${m.children}${y.children}`).join(""):f.jsx(b.Fragment,{children:a.map((m,v)=>f.jsx(Xyn,{slots:i,slotProps:o,element:m,classes:c},v))})}))}),Kyn=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],Qyn=e=>Math.round(e*1e5)/1e5,FQ=rt("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Y({},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:`${Qyn(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),wCe=rt(Plt,{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:r,label:i})=>!t&&!n&&!r&&i==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),Zyn=rt(Dlt,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),Jyn=rt(Llt,{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"})),eMn=rt(klt,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),tMn=rt("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Y({},Lfn)),nMn=e=>{const{focused:t,disabled:n,error:r,classes:i,fullWidth:o,readOnly:a,color:s,size:l,endAdornment:c,startAdornment:u}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",o&&"fullWidth",`color${jt(s)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Yt(d,Vyn,i)},SCe=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersInputBase"}),{elements:i,areAllSectionsEmpty:o,value:a,onChange:s,id:l,endAdornment:c,startAdornment:u,renderSuffix:d,slots:p,slotProps:h,contentEditable:g,tabIndex:m,onInput:v,onPaste:y,onKeyDown:M,name:C,readOnly:x,inputProps:w,inputRef:S,sectionListRef:A}=r,z=Lt(r,Kyn),O=b.useRef(null),T=Pi(n,O),I=Pi(w?.ref,S),P=ts(),N=mh();if(!N)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const F=q=>{if(N.disabled){q.stopPropagation();return}N.onFocus?.(q)};b.useEffect(()=>{N&&N.setAdornedStart(!!u)},[N,u]),b.useEffect(()=>{N&&(o?N.onEmpty():N.onFilled())},[N,o]);const L=Y({},r,N,{isRtl:P}),W=nMn(L),H=p?.root||FQ,j=Ho({elementType:H,externalSlotProps:h?.root,externalForwardedProps:z,additionalProps:{"aria-invalid":N.error,ref:T},className:W.root,ownerState:L}),G=p?.input||wCe;return f.jsxs(H,Y({},j,{children:[u,f.jsx(Yyn,{sectionListRef:A,elements:i,contentEditable:g,tabIndex:m,className:W.sectionsContainer,onFocus:F,onBlur:N.onBlur,onInput:v,onPaste:y,onKeyDown:M,slots:{root:G,section:Zyn,sectionContent:Jyn,sectionSeparator:eMn},slotProps:{root:{ownerState:L},sectionContent:{className:pI.sectionContent},sectionSeparator:({position:q})=>({className:q==="before"?pI.sectionBefore:pI.sectionAfter})}}),c,d?d(Y({},N)):null,f.jsx(tMn,Y({name:C,className:W.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:N.required,disabled:N.disabled},w,{ref:I}))]}))});function rMn(e){return Bn("MuiPickersOutlinedInput",e)}const zg=Y({},pI,Ln("MuiPickersOutlinedInput",["root","notchedOutline","input"])),iMn=["children","className","label","notched","shrink"],oMn=rt("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}}),rke=rt("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),aMn=rt("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 sMn(e){const{className:t,label:n}=e,r=Lt(e,iMn),i=n!=null&&n!=="",o=Y({},e,{withLabel:i});return f.jsx(oMn,Y({"aria-hidden":!0,className:t},r,{ownerState:o,children:f.jsx(aMn,{ownerState:o,children:i?f.jsx(rke,{children:n}):f.jsx(rke,{className:"notranslate",children:"​"})})}))}const lMn=["label","autoFocus","ownerState","notched"],cMn=rt(FQ,{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 .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zg.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${zg.focused} .${zg.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${zg.disabled}`]:{[`& .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${zg.error} .${zg.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:{[`&.${zg.focused}:not(.${zg.error}) .${zg.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),uMn=rt(wCe,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),dMn=e=>{const{classes:t}=e,r=Yt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rMn,t);return Y({},t,r)},_lt=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersOutlinedInput"}),{label:i,ownerState:o,notched:a}=r,s=Lt(r,lMn),l=mh(),c=Y({},r,o,l,{color:l?.color||"primary"}),u=dMn(c);return f.jsx(SCe,Y({slots:{root:cMn,input:uMn},renderSuffix:d=>f.jsx(sMn,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:i!=null&&i!==""&&l?.required?f.jsxs(b.Fragment,{children:[i," ","*"]}):i,ownerState:c})},s,{label:i,classes:u,ref:n}))});_lt.muiName="Input";function pMn(e){return Bn("MuiPickersFilledInput",e)}const BS=Y({},pI,Ln("MuiPickersFilledInput",["root","underline","input"])),hMn=["label","autoFocus","disableUnderline","ownerState"],fMn=rt(FQ,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>t7(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)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${BS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${BS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},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"},[`&.${BS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${BS.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(.${BS.disabled}, .${BS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${BS.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),gMn=rt(wCe,{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}}]}),mMn=e=>{const{classes:t,disableUnderline:n}=e,i=Yt({root:["root",!n&&"underline"],input:["input"]},pMn,t);return Y({},t,i)},Nlt=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersFilledInput"}),{label:i,disableUnderline:o=!1,ownerState:a}=r,s=Lt(r,hMn),l=mh(),c=Y({},r,a,l,{color:l?.color||"primary"}),u=mMn(c);return f.jsx(SCe,Y({slots:{root:fMn,input:gMn},slotProps:{root:{disableUnderline:o}}},s,{label:i,classes:u,ref:n}))});Nlt.muiName="Input";function vMn(e){return Bn("MuiPickersFilledInput",e)}const g4=Y({},pI,Ln("MuiPickersInput",["root","input"])),bMn=["label","autoFocus","disableUnderline","ownerState"],yMn=rt(FQ,{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(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].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"},[`&.${g4.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${g4.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(.${g4.disabled}, .${g4.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${g4.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),MMn=e=>{const{classes:t,disableUnderline:n}=e,i=Yt({root:["root",!n&&"underline"],input:["input"]},vMn,t);return Y({},t,i)},Flt=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersInput"}),{label:i,disableUnderline:o=!1,ownerState:a}=r,s=Lt(r,bMn),l=mh(),c=Y({},r,a,l,{disableUnderline:o,color:l?.color||"primary"}),u=MMn(c);return f.jsx(SCe,Y({slots:{root:yMn}},s,{label:i,classes:u,ref:n}))});Flt.muiName="Input";const CMn=["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"],xMn={standard:Flt,filled:Nlt,outlined:_lt},wMn=rt(Rw,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),SMn=e=>{const{focused:t,disabled:n,classes:r,required:i}=e;return Yt({root:["root",t&&!n&&"focused",n&&"disabled",i&&"required"]},Hyn,r)},Wlt=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersTextField"}),{onFocus:i,onBlur:o,className:a,color:s="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:d=!1,InputProps:p,inputProps:h,inputRef:g,sectionListRef:m,elements:v,areAllSectionsEmpty:y,onClick:M,onKeyDown:C,onKeyUp:x,onPaste:w,onInput:S,endAdornment:A,startAdornment:z,tabIndex:O,contentEditable:T,focused:I,value:P,onChange:N,fullWidth:F,id:L,name:W,helperText:H,FormHelperTextProps:j,label:G,InputLabelProps:q}=r,$=Lt(r,CMn),U=b.useRef(null),X=Pi(n,U),Q=Hi(L),re=H&&Q?`${Q}-helper-text`:void 0,ee=G&&Q?`${Q}-label`:void 0,se=Y({},r,{color:s,disabled:l,error:c,focused:I,required:d,variant:u}),pe=SMn(se),te=xMn[u];return f.jsxs(wMn,Y({className:Oa(pe.root,a),ref:X,focused:I,onFocus:i,onBlur:o,disabled:l,variant:u,error:c,color:s,fullWidth:F,required:d,ownerState:se},$,{children:[f.jsx(Ew,Y({htmlFor:Q,id:ee},q,{children:G})),f.jsx(te,Y({elements:v,areAllSectionsEmpty:y,onClick:M,onKeyDown:C,onKeyUp:x,onInput:S,onPaste:w,endAdornment:A,startAdornment:z,tabIndex:O,contentEditable:T,value:P,onChange:N,id:Q,fullWidth:F,inputProps:h,inputRef:g,sectionListRef:m,label:G,name:W,role:"group","aria-labelledby":ee,"aria-describedby":re,"aria-live":re?"polite":void 0},p)),H&&f.jsx(Mlt,Y({id:re},j,{children:H}))]}))}),AMn=["enableAccessibleFieldDOMStructure"],OMn=["InputProps","readOnly"],zMn=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],qlt=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Lt(e,AMn);if(t){const{InputProps:d,readOnly:p}=n,h=Lt(n,OMn);return Y({},h,{InputProps:Y({},d??{},{readOnly:p})})}const{onPaste:r,onKeyDown:i,inputMode:o,readOnly:a,InputProps:s,inputProps:l,inputRef:c}=n,u=Lt(n,zMn);return Y({},u,{InputProps:Y({},s??{},{readOnly:a}),inputProps:Y({},l??{},{inputMode:o,onPaste:r,onKeyDown:i,ref:c})})},TMn=["slots","slotProps","InputProps","inputProps"],Blt=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiDateField"}),{slots:i,slotProps:o,InputProps:a,inputProps:s}=r,l=Lt(r,TMn),c=r,u=i?.textField??(t.enableAccessibleFieldDOMStructure?Wlt:P3),d=Ho({elementType:u,externalSlotProps:o?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});d.inputProps=Y({},s,d.inputProps),d.InputProps=Y({},a,d.InputProps);const p=jyn(d),h=qlt(p),g=Rlt(Y({},h,{slots:i,slotProps:o}));return f.jsx(u,Y({},g))}),jlt=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=z3();return b.useCallback(c=>OD({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a}})!==null,[l,e,t,n,r,i,o,a,s])},EMn=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return Y({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const o=i.newTimezone;if(n.getTimezone(r.currentMonth)===o)return r;let a=n.setTimezone(r.currentMonth,o);return n.getMonth(a)!==n.getMonth(r.currentMonth)&&(a=n.setMonth(a,n.getMonth(r.currentMonth))),Y({},r,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Y({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return Y({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},RMn=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:o=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:d}=e,p=sa(),h=b.useRef(EMn(!!c,o,p)).current,g=b.useMemo(()=>Tu.getInitialReferenceValue({value:t,utils:p,timezone:d,props:e,referenceDate:n,granularity:Gg.day}),[n,d]),[m,v]=b.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:p.startOfMonth(g),slideDirection:"left"});b.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:p.getTimezone(g)})},[g,p]);const y=b.useCallback(S=>{v(Y({type:"changeMonth"},S)),l&&l(S.newMonth)},[l]),M=b.useCallback(S=>{const A=S;p.isSameMonth(A,m.currentMonth)||y({newMonth:p.startOfMonth(A),direction:p.isAfterDay(A,m.currentMonth)?"left":"right"})},[m.currentMonth,y,p]),C=jlt({shouldDisableDate:u,minDate:s,maxDate:a,disableFuture:r,disablePast:i,timezone:d}),x=b.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),w=en((S,A)=>{C(S)||v({type:"changeFocusedDay",focusedDay:S,withoutMonthSwitchingAnimation:A})});return{referenceDate:g,calendarState:m,changeMonth:M,changeFocusedDay:w,isDateDisabled:C,onMonthSwitchingAnimationEnd:x,handleChangeMonth:y}},IMn=e=>Bn("MuiPickersFadeTransitionGroup",e);Ln("MuiPickersFadeTransitionGroup",["root"]);const PMn=e=>{const{classes:t}=e;return Yt({root:["root"]},IMn,t)},DMn=rt(x3,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Hlt(e){const t=Ro({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=PMn(t),s=$b();return i?n:f.jsx(DMn,{className:Oa(a.root,r),children:f.jsx(kz,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function kMn(e){return Bn("MuiPickersDay",e)}const jS=Ln("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),LMn=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],_Mn=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s;return Yt({root:["root",t&&!c&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},kMn,l)},Vlt=({theme:e})=>Y({},e.typography.caption,{width:RW,height:RW,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})`:wd(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:wd(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${jS.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${jS.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}},[`&.${jS.disabled}:not(.${jS.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${jS.disabled}&.${jS.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${RQ}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${jS.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Glt=(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]},NMn=rt(Ib,{name:"MuiPickersDay",slot:"Root",overridesResolver:Glt})(Vlt),FMn=rt("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Glt})(({theme:e})=>Y({},Vlt({theme:e}),{opacity:0,pointerEvents:"none"})),m4=()=>{},WMn=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:p,onFocus:h=m4,onBlur:g=m4,onKeyDown:m=m4,onMouseDown:v=m4,onMouseEnter:y=m4,outsideCurrentMonth:M,selected:C=!1,showDaysOutsideCurrentMonth:x=!1,children:w,today:S=!1}=r,A=Lt(r,LMn),z=Y({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:c,selected:C,showDaysOutsideCurrentMonth:x,today:S}),O=_Mn(z),T=sa(),I=b.useRef(null),P=Pi(I,n);To(()=>{i&&!s&&!u&&!M&&I.current.focus()},[i,s,u,M]);const N=L=>{v(L),M&&L.preventDefault()},F=L=>{s||p(a),M&&L.currentTarget.focus(),d&&d(L)};return M&&!x?f.jsx(FMn,{className:Oa(O.root,O.hiddenDaySpacingFiller,o),ownerState:z,role:A.role}):f.jsx(NMn,Y({className:Oa(O.root,o),ref:P,centerRipple:!0,disabled:s,tabIndex:C?0:-1,onKeyDown:L=>m(L,a),onFocus:L=>h(L,a),onBlur:L=>g(L,a),onMouseEnter:L=>y(L,a),onClick:F,onMouseDown:N},A,{ownerState:z,children:w||T.format(a,"dayOfMonth")}))}),qMn=b.memo(WMn),BMn=e=>Bn("MuiPickersSlideTransition",e),kh=Ln("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),jMn=["children","className","reduceAnimations","slideDirection","transKey","classes"],HMn=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Yt(r,BMn,t)},VMn=rt(x3,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${kh["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${kh["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${kh.slideEnterActive}`]:t.slideEnterActive},{[`.${kh.slideExit}`]:t.slideExit},{[`.${kh["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${kh["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},[`& .${kh["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${kh["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${kh.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${kh.slideExit}`]:{transform:"translate(0%)"},[`& .${kh["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${kh["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function GMn(e){const t=Ro({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=Lt(t,jMn),s=HMn(t),l=$b();if(i)return f.jsx("div",{className:Oa(s.root,r),children:n});const c={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return f.jsx(VMn,{className:Oa(s.root,r),childFactory:u=>b.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(YK,Y({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},a,{children:n}),o)})}const $Mn=e=>Bn("MuiDayCalendar",e);Ln("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const UMn=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],XMn=["ownerState"],YMn=e=>{const{classes:t}=e;return Yt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},$Mn,t)},$lt=(RW+RQ*2)*6,KMn=rt("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QMn=rt("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),ZMn=rt(i1,{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})),JMn=rt(i1,{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})),eCn=rt(i1,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Y({},e.typography.caption,{width:RW,height:RW,padding:0,margin:`0 ${RQ}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),tCn=rt("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:$lt}),nCn=rt(GMn,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:$lt}),rCn=rt("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),iCn=rt("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${RQ}px 0`,display:"flex",justifyContent:"center"});function oCn(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:i,isDateDisabled:o,currentMonthNumber:a,isViewFocused:s}=e,l=Lt(e,UMn);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:p,slots:h,slotProps:g,timezone:m}=t,v=sa(),y=E3(m),M=r!==null&&v.isSameDay(n,r),C=i.some(P=>v.isSameDay(P,n)),x=v.isSameDay(n,y),w=h?.day??qMn,S=Ho({elementType:w,externalSlotProps:g?.day,additionalProps:Y({disableHighlightToday:u,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:d,"data-timestamp":v.toJsDate(n).valueOf()},l),ownerState:Y({},t,{day:n,selected:C})}),A=Lt(S,XMn),z=b.useMemo(()=>c||o(n),[c,o,n]),O=b.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),T=b.useMemo(()=>{const P=v.startOfMonth(v.setMonth(n,a));return p?v.isSameDay(n,v.startOfWeek(P)):v.isSameDay(n,P)},[a,n,p,v]),I=b.useMemo(()=>{const P=v.endOfMonth(v.setMonth(n,a));return p?v.isSameDay(n,v.endOfWeek(P)):v.isSameDay(n,P)},[a,n,p,v]);return f.jsx(w,Y({},A,{day:n,disabled:z,autoFocus:s&&M,today:x,outsideCurrentMonth:O,isFirstVisibleCell:T,isLastVisibleCell:I,selected:C,tabIndex:M?0:-1,"aria-selected":C,"aria-current":x?"date":void 0}))}function aCn(e){const t=Ro({props:e,name:"MuiDayCalendar"}),n=sa(),{onFocusedDayChange:r,className:i,currentMonth:o,selectedDays:a,focusedDay:s,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:d,reduceAnimations:p,renderLoading:h=()=>f.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:m,disablePast:v,disableFuture:y,minDate:M,maxDate:C,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,dayOfWeekFormatter:A=be=>n.format(be,"weekdayShort").charAt(0).toUpperCase(),hasFocus:z,onFocusedViewChange:O,gridLabelId:T,displayWeekNumber:I,fixedWeekNumber:P,autoFocus:N,timezone:F}=t,L=E3(F),W=YMn(t),H=ts(),j=jlt({shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:S,minDate:M,maxDate:C,disablePast:v,disableFuture:y,timezone:F}),G=Ed(),[q,$]=up({name:"DayCalendar",state:"hasFocus",controlled:z,default:N??!1}),[U,X]=b.useState(()=>s||L),Q=en(be=>{d||c(be)}),re=be=>{j(be)||(r(be),X(be),O?.(!0),$(!0))},ee=en((be,me)=>{switch(be.key){case"ArrowUp":re(n.addDays(me,-7)),be.preventDefault();break;case"ArrowDown":re(n.addDays(me,7)),be.preventDefault();break;case"ArrowLeft":{const Me=n.addDays(me,H?1:-1),Oe=n.addMonths(me,H?1:-1),de=XN({utils:n,date:Me,minDate:H?Me:n.startOfMonth(Oe),maxDate:H?n.endOfMonth(Oe):Me,isDateDisabled:j,timezone:F});re(de||Me),be.preventDefault();break}case"ArrowRight":{const Me=n.addDays(me,H?-1:1),Oe=n.addMonths(me,H?-1:1),de=XN({utils:n,date:Me,minDate:H?n.startOfMonth(Oe):Me,maxDate:H?Me:n.endOfMonth(Oe),isDateDisabled:j,timezone:F});re(de||Me),be.preventDefault();break}case"Home":re(n.startOfWeek(me)),be.preventDefault();break;case"End":re(n.endOfWeek(me)),be.preventDefault();break;case"PageUp":re(n.addMonths(me,1)),be.preventDefault();break;case"PageDown":re(n.addMonths(me,-1)),be.preventDefault();break}}),se=en((be,me)=>re(me)),pe=en((be,me)=>{q&&n.isSameDay(U,me)&&O?.(!1)}),te=n.getMonth(o),ce=n.getYear(o),oe=b.useMemo(()=>a.filter(be=>!!be).map(be=>n.startOfDay(be)),[n,a]),ae=`${ce}-${te}`,ne=b.useMemo(()=>b.createRef(),[ae]),le=b.useMemo(()=>{const be=n.startOfMonth(o),me=n.endOfMonth(o);return j(U)||n.isAfterDay(U,me)||n.isBeforeDay(U,be)?XN({utils:n,date:U,minDate:be,maxDate:me,disablePast:v,disableFuture:y,isDateDisabled:j,timezone:F}):U},[o,y,v,U,j,n,F]),he=b.useMemo(()=>{const be=n.getWeekArray(o);let me=n.addMonths(o,1);for(;P&&be.length<P;){const Me=n.getWeekArray(me),Oe=n.isSameDay(be[be.length-1][0],Me[0][0]);Me.slice(Oe?1:0).forEach(de=>{be.length<P&&be.push(de)}),me=n.addMonths(me,1)}return be},[o,P,n]);return f.jsxs(KMn,{role:"grid","aria-labelledby":T,className:W.root,children:[f.jsxs(QMn,{role:"row",className:W.header,children:[I&&f.jsx(JMn,{variant:"caption",role:"columnheader","aria-label":G.calendarWeekNumberHeaderLabel,className:W.weekNumberLabel,children:G.calendarWeekNumberHeaderText}),Wfn(n,L).map((be,me)=>f.jsx(ZMn,{variant:"caption",role:"columnheader","aria-label":n.format(be,"weekday"),className:W.weekDayLabel,children:A(be)},me.toString()))]}),l?f.jsx(tCn,{className:W.loadingContainer,children:h()}):f.jsx(nCn,Y({transKey:ae,onExited:u,reduceAnimations:p,slideDirection:g,className:Oa(i,W.slideTransition)},m,{nodeRef:ne,children:f.jsx(rCn,{ref:ne,role:"rowgroup",className:W.monthContainer,children:he.map((be,me)=>f.jsxs(iCn,{role:"row",className:W.weekContainer,"aria-rowindex":me+1,children:[I&&f.jsx(eCn,{className:W.weekNumber,role:"rowheader","aria-label":G.calendarWeekNumberAriaLabelText(n.getWeekNumber(be[0])),children:G.calendarWeekNumberText(n.getWeekNumber(be[0]))}),be.map((Me,Oe)=>f.jsx(oCn,{parentProps:t,day:Me,selectedDays:oe,focusableDay:le,onKeyDown:ee,onFocus:se,onBlur:pe,onDaySelect:Q,isDateDisabled:j,currentMonthNumber:te,isViewFocused:q,"aria-colindex":Oe+1},Me.toString()))]},`week-${be[0]}`))})}))]})}function sCn(e){return Bn("MuiPickersMonth",e)}const v8=Ln("MuiPickersMonth",["root","monthButton","disabled","selected"]),lCn=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],cCn=e=>{const{disabled:t,selected:n,classes:r}=e;return Yt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},sCn,r)},uCn=rt("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%"}}]}),dCn=rt("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${v8.disabled}`]:t.disabled},{[`&.${v8.selected}`]:t.selected}]})(({theme:e})=>Y({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})`:wd(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:wd(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${v8.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${v8.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),pCn=b.memo(function(t){const n=Ro({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:p,onBlur:h,"aria-current":g,"aria-label":m,slots:v,slotProps:y}=n,M=Lt(n,lCn),C=b.useRef(null),x=cCn(n);To(()=>{r&&C.current?.focus()},[r]);const w=v?.monthButton??dCn,S=Ho({elementType:w,externalSlotProps:y?.monthButton,additionalProps:{children:o,disabled:a,tabIndex:c,ref:C,type:"button",role:"radio","aria-current":g,"aria-checked":s,"aria-label":m,onClick:A=>u(A,l),onKeyDown:A=>d(A,l),onFocus:A=>p(A,l),onBlur:A=>h(A,l)},ownerState:n,className:x.monthButton});return f.jsx(uCn,Y({className:Oa(x.root,i),ownerState:n},M,{children:f.jsx(w,Y({},S))}))});function hCn(e){return Bn("MuiMonthCalendar",e)}Ln("MuiMonthCalendar",["root"]);const fCn=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],gCn=e=>{const{classes:t}=e;return Yt({root:["root"]},hCn,t)};function mCn(e,t){const n=sa(),r=T3(),i=Ro({props:e,name:t});return Y({disableFuture:!1,disablePast:!1},i,{minDate:w0(n,i.minDate,r.minDate),maxDate:w0(n,i.maxDate,r.maxDate)})}const vCn=rt("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:IQ,boxSizing:"border-box"}),bCn=b.forwardRef(function(t,n){const r=mCn(t,"MuiMonthCalendar"),{className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:p,onChange:h,shouldDisableMonth:g,readOnly:m,autoFocus:v=!1,onMonthFocus:y,hasFocus:M,onFocusedViewChange:C,monthsPerRow:x=3,timezone:w,gridLabelId:S,slots:A,slotProps:z}=r,O=Lt(r,fCn),{value:T,handleValueChange:I,timezone:P}=TD({name:"MonthCalendar",timezone:w,value:o,defaultValue:a,referenceDate:s,onChange:h,valueManager:Tu}),N=E3(P),F=ts(),L=sa(),W=b.useMemo(()=>Tu.getInitialReferenceValue({value:T,utils:L,props:r,timezone:P,referenceDate:s,granularity:Gg.month}),[]),H=r,j=gCn(H),G=b.useMemo(()=>L.getMonth(N),[L,N]),q=b.useMemo(()=>T!=null?L.getMonth(T):null,[T,L]),[$,U]=b.useState(()=>q||L.getMonth(W)),[X,Q]=up({name:"MonthCalendar",state:"hasFocus",controlled:M,default:v??!1}),re=en(ae=>{Q(ae),C&&C(ae)}),ee=b.useCallback(ae=>{const ne=L.startOfMonth(u&&L.isAfter(N,p)?N:p),le=L.startOfMonth(c&&L.isBefore(N,d)?N:d),he=L.startOfMonth(ae);return L.isBefore(he,ne)||L.isAfter(he,le)?!0:g?g(he):!1},[c,u,d,p,N,g,L]),se=en((ae,ne)=>{if(m)return;const le=L.setMonth(T??W,ne);I(le)}),pe=en(ae=>{ee(L.setMonth(T??W,ae))||(U(ae),re(!0),y&&y(ae))});b.useEffect(()=>{U(ae=>q!==null&&ae!==q?q:ae)},[q]);const te=en((ae,ne)=>{switch(ae.key){case"ArrowUp":pe((12+ne-3)%12),ae.preventDefault();break;case"ArrowDown":pe((12+ne+3)%12),ae.preventDefault();break;case"ArrowLeft":pe((12+ne+(F?1:-1))%12),ae.preventDefault();break;case"ArrowRight":pe((12+ne+(F?-1:1))%12),ae.preventDefault();break}}),ce=en((ae,ne)=>{pe(ne)}),oe=en((ae,ne)=>{$===ne&&re(!1)});return f.jsx(vCn,Y({ref:n,className:Oa(j.root,i),ownerState:H,role:"radiogroup","aria-labelledby":S},O,{children:rCe(L,T??W).map(ae=>{const ne=L.getMonth(ae),le=L.format(ae,"monthShort"),he=L.format(ae,"month"),be=ne===q,me=l||ee(ae);return f.jsx(pCn,{selected:be,value:ne,onClick:se,onKeyDown:te,autoFocus:X&&ne===$,disabled:me,tabIndex:ne===$&&!me?0:-1,onFocus:ce,onBlur:oe,"aria-current":G===ne?"date":void 0,"aria-label":he,monthsPerRow:x,slots:A,slotProps:z,children:le},le)})}))});function yCn(e){return Bn("MuiPickersYear",e)}const b8=Ln("MuiPickersYear",["root","yearButton","selected","disabled"]),MCn=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],CCn=e=>{const{disabled:t,selected:n,classes:r}=e;return Yt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},yCn,r)},xCn=rt("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%"}}]}),wCn=rt("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${b8.disabled}`]:t.disabled},{[`&.${b8.selected}`]:t.selected}]})(({theme:e})=>Y({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})`:wd(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:wd(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${b8.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${b8.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),SCn=b.memo(function(t){const n=Ro({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:p,onBlur:h,"aria-current":g,slots:m,slotProps:v}=n,y=Lt(n,MCn),M=b.useRef(null),C=CCn(n);To(()=>{r&&M.current?.focus()},[r]);const x=m?.yearButton??wCn,w=Ho({elementType:x,externalSlotProps:v?.yearButton,additionalProps:{children:o,disabled:a,tabIndex:c,ref:M,type:"button",role:"radio","aria-current":g,"aria-checked":s,onClick:S=>u(S,l),onKeyDown:S=>d(S,l),onFocus:S=>p(S,l),onBlur:S=>h(S,l)},ownerState:n,className:C.yearButton});return f.jsx(xCn,Y({className:Oa(C.root,i),ownerState:n},y,{children:f.jsx(x,Y({},w))}))});function ACn(e){return Bn("MuiYearCalendar",e)}Ln("MuiYearCalendar",["root"]);const OCn=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],zCn=e=>{const{classes:t}=e;return Yt({root:["root"]},ACn,t)};function TCn(e,t){const n=sa(),r=T3(),i=Ro({props:e,name:t});return Y({disablePast:!1,disableFuture:!1},i,{yearsPerRow:i.yearsPerRow??3,minDate:w0(n,i.minDate,r.minDate),maxDate:w0(n,i.maxDate,r.maxDate)})}const ECn=rt("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:IQ,maxHeight:Lbn,boxSizing:"border-box",position:"relative"}),RCn=b.forwardRef(function(t,n){const r=TCn(t,"MuiYearCalendar"),{autoFocus:i,className:o,value:a,defaultValue:s,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:h,onChange:g,readOnly:m,shouldDisableYear:v,onYearFocus:y,hasFocus:M,onFocusedViewChange:C,yearsOrder:x="asc",yearsPerRow:w,timezone:S,gridLabelId:A,slots:z,slotProps:O}=r,T=Lt(r,OCn),{value:I,handleValueChange:P,timezone:N}=TD({name:"YearCalendar",timezone:S,value:a,defaultValue:s,referenceDate:l,onChange:g,valueManager:Tu}),F=E3(N),L=ts(),W=sa(),H=b.useMemo(()=>Tu.getInitialReferenceValue({value:I,utils:W,props:r,timezone:N,referenceDate:l,granularity:Gg.year}),[]),j=r,G=zCn(j),q=b.useMemo(()=>W.getYear(F),[W,F]),$=b.useMemo(()=>I!=null?W.getYear(I):null,[I,W]),[U,X]=b.useState(()=>$||W.getYear(H)),[Q,re]=up({name:"YearCalendar",state:"hasFocus",controlled:M,default:i??!1}),ee=en(Me=>{re(Me),C&&C(Me)}),se=b.useCallback(Me=>{if(d&&W.isBeforeYear(Me,F)||u&&W.isAfterYear(Me,F)||h&&W.isBeforeYear(Me,h)||p&&W.isAfterYear(Me,p))return!0;if(!v)return!1;const Oe=W.startOfYear(Me);return v(Oe)},[u,d,p,h,F,v,W]),pe=en((Me,Oe)=>{if(m)return;const de=W.setYear(I??H,Oe);P(de)}),te=en(Me=>{se(W.setYear(I??H,Me))||(X(Me),ee(!0),y?.(Me))});b.useEffect(()=>{X(Me=>$!==null&&Me!==$?$:Me)},[$]);const ce=x!=="desc"?w*1:w*-1,oe=L&&x==="asc"||!L&&x==="desc"?-1:1,ae=en((Me,Oe)=>{switch(Me.key){case"ArrowUp":te(Oe-ce),Me.preventDefault();break;case"ArrowDown":te(Oe+ce),Me.preventDefault();break;case"ArrowLeft":te(Oe-oe),Me.preventDefault();break;case"ArrowRight":te(Oe+oe),Me.preventDefault();break}}),ne=en((Me,Oe)=>{te(Oe)}),le=en((Me,Oe)=>{U===Oe&&ee(!1)}),he=b.useRef(null),be=Pi(n,he);b.useEffect(()=>{if(i||he.current===null)return;const Me=he.current.querySelector('[tabindex="0"]');if(!Me)return;const Oe=Me.offsetHeight,de=Me.offsetTop,ie=he.current.clientHeight,ue=he.current.scrollTop,Ae=de+Oe;Oe>ie||de<ue||(he.current.scrollTop=Ae-ie/2-Oe/2)},[i]);const me=W.getYearRange([h,p]);return x==="desc"&&me.reverse(),f.jsx(ECn,Y({ref:be,className:Oa(G.root,o),ownerState:j,role:"radiogroup","aria-labelledby":A},T,{children:me.map(Me=>{const Oe=W.getYear(Me),de=Oe===$,ie=c||se(Me);return f.jsx(SCn,{selected:de,value:Oe,onClick:pe,onKeyDown:ae,autoFocus:Q&&Oe===U,disabled:ie,tabIndex:Oe===U&&!ie?0:-1,onFocus:ne,onBlur:le,"aria-current":q===Oe?"date":void 0,yearsPerRow:w,slots:z,slotProps:O,children:W.format(Me,"year")},W.format(Me,"year"))})}))}),ICn=e=>Bn("MuiPickersCalendarHeader",e),PCn=Ln("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function DCn(e){return Bn("MuiPickersArrowSwitcher",e)}Ln("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const kCn=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],LCn=["ownerState"],_Cn=["ownerState"],NCn=rt("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),FCn=rt("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ike=rt(Zp,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),WCn=e=>{const{classes:t}=e;return Yt({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},DCn,t)},Ult=b.forwardRef(function(t,n){const r=ts(),i=Ro({props:t,name:"MuiPickersArrowSwitcher"}),{children:o,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:d,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:g,onGoToPrevious:m,previousLabel:v,labelId:y}=i,M=Lt(i,kCn),C=i,x=WCn(C),w={isDisabled:c,isHidden:u,goTo:d,label:p},S={isDisabled:h,isHidden:g,goTo:m,label:v},A=s?.previousIconButton??ike,z=Ho({elementType:A,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:S.label,"aria-label":S.label,disabled:S.isDisabled,edge:"end",onClick:S.goTo},ownerState:Y({},C,{hidden:S.isHidden}),className:Oa(x.button,x.previousIconButton)}),O=s?.nextIconButton??ike,T=Ho({elementType:O,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:w.label,"aria-label":w.label,disabled:w.isDisabled,edge:"start",onClick:w.goTo},ownerState:Y({},C,{hidden:w.isHidden}),className:Oa(x.button,x.nextIconButton)}),I=s?.leftArrowIcon??Ubn,P=Ho({elementType:I,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:x.leftArrowIcon}),N=Lt(P,LCn),F=s?.rightArrowIcon??Xbn,L=Ho({elementType:F,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:x.rightArrowIcon}),W=Lt(L,_Cn);return f.jsxs(NCn,Y({ref:n,className:Oa(x.root,a),ownerState:C},M,{children:[f.jsx(A,Y({},z,{children:r?f.jsx(F,Y({},W)):f.jsx(I,Y({},N))})),o?f.jsx(i1,{variant:"subtitle1",component:"span",id:y,children:o}):f.jsx(FCn,{className:x.spacer,ownerState:C}),f.jsx(O,Y({},T,{children:r?f.jsx(I,Y({},N)):f.jsx(F,Y({},W))}))]}))});function qCn(e,{disableFuture:t,maxDate:n,timezone:r}){const i=sa();return b.useMemo(()=>{const o=i.date(void 0,r),a=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(a,e)},[t,n,e,i,r])}function BCn(e,{disablePast:t,minDate:n,timezone:r}){const i=sa();return b.useMemo(()=>{const o=i.date(void 0,r),a=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(a,e)},[t,n,e,i,r])}function ACe(e,t,n,r){const i=sa(),o=qfn(e,i),a=b.useCallback(s=>{const l=e==null?null:Bfn(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const jCn=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],HCn=["ownerState"],VCn=e=>{const{classes:t}=e;return Yt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},ICn,t)},GCn=rt("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}),$Cn=rt("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Y({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),UCn=rt("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),XCn=rt(Zp,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${PCn.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),YCn=rt($bn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),KCn=b.forwardRef(function(t,n){const r=Ed(),i=sa(),o=Ro({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:h,onMonthChange:g,onViewChange:m,view:v,reduceAnimations:y,views:M,labelId:C,className:x,timezone:w,format:S=`${i.formats.month} ${i.formats.year}`}=o,A=Lt(o,jCn),z=o,O=VCn(o),T=a?.switchViewButton??XCn,I=Ho({elementType:T,externalSlotProps:s?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:z,className:O.switchViewButton}),P=a?.switchViewIcon??YCn,N=Ho({elementType:P,externalSlotProps:s?.switchViewIcon,ownerState:z,className:O.switchViewIcon}),F=Lt(N,HCn),L=()=>g(i.addMonths(l,1),"left"),W=()=>g(i.addMonths(l,-1),"right"),H=qCn(l,{disableFuture:u,maxDate:p,timezone:w}),j=BCn(l,{disablePast:d,minDate:h,timezone:w}),G=()=>{if(!(M.length===1||!m||c))if(M.length===2)m(M.find($=>$!==v)||M[0]);else{const $=M.indexOf(v)!==0?0:1;m(M[$])}};if(M.length===1&&M[0]==="year")return null;const q=i.formatByString(l,S);return f.jsxs(GCn,Y({},A,{ownerState:z,className:Oa(O.root,x),ref:n,children:[f.jsxs($Cn,{role:"presentation",onClick:G,ownerState:z,"aria-live":"polite",className:O.labelContainer,children:[f.jsx(Hlt,{reduceAnimations:y,transKey:q,children:f.jsx(UCn,{id:C,ownerState:z,className:O.label,children:q})}),M.length>1&&!c&&f.jsx(T,Y({},I,{children:f.jsx(P,Y({},F))}))]}),f.jsx(kz,{in:v==="day",appear:!y,enter:!y,children:f.jsx(Ult,{slots:a,slotProps:s,onGoToPrevious:W,isPreviousDisabled:j,previousLabel:r.previousMonth,onGoToNext:L,isNextDisabled:H,nextLabel:r.nextMonth})})]}))}),WQ=rt("div")({overflow:"hidden",width:IQ,maxHeight:PQ,display:"flex",flexDirection:"column",margin:"0 auto"}),QCn=e=>Bn("MuiDateCalendar",e);Ln("MuiDateCalendar",["root","viewTransitionContainer"]);const ZCn=["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"],JCn=e=>{const{classes:t}=e;return Yt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},QCn,t)};function exn(e,t){const n=sa(),r=T3(),i=slt(),o=Ro({props:e,name:t});return Y({},o,{loading:o.loading??!1,disablePast:o.disablePast??!1,disableFuture:o.disableFuture??!1,openTo:o.openTo??"day",views:o.views??["year","day"],reduceAnimations:o.reduceAnimations??i,renderLoading:o.renderLoading??(()=>f.jsx("span",{children:"..."})),minDate:w0(n,o.minDate,r.minDate),maxDate:w0(n,o.maxDate,r.maxDate)})}const txn=rt(WQ,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:PQ}),nxn=rt(Hlt,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),rxn=b.forwardRef(function(t,n){const r=sa(),i=Hi(),o=exn(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:c,referenceDate:u,disableFuture:d,disablePast:p,onChange:h,onYearChange:g,onMonthChange:m,reduceAnimations:v,shouldDisableDate:y,shouldDisableMonth:M,shouldDisableYear:C,view:x,views:w,openTo:S,className:A,disabled:z,readOnly:O,minDate:T,maxDate:I,disableHighlightToday:P,focusedView:N,onFocusedViewChange:F,showDaysOutsideCurrentMonth:L,fixedWeekNumber:W,dayOfWeekFormatter:H,slots:j,slotProps:G,loading:q,renderLoading:$,displayWeekNumber:U,yearsOrder:X,yearsPerRow:Q,monthsPerRow:re,timezone:ee}=o,se=Lt(o,ZCn),{value:pe,handleValueChange:te,timezone:ce}=TD({name:"DateCalendar",timezone:ee,value:l,defaultValue:c,referenceDate:u,onChange:h,valueManager:Tu}),{view:oe,setView:ae,focusedView:ne,setFocusedView:le,goToNextView:he,setValueAndGoToNextView:be}=Y6({view:x,views:w,openTo:S,onChange:te,onViewChange:s,autoFocus:a,focusedView:N,onFocusedViewChange:F}),{referenceDate:me,calendarState:Me,changeFocusedDay:Oe,changeMonth:de,handleChangeMonth:ie,isDateDisabled:ue,onMonthSwitchingAnimationEnd:Ae}=RMn({value:pe,referenceDate:u,reduceAnimations:v,onMonthChange:m,minDate:T,maxDate:I,shouldDisableDate:y,disablePast:p,disableFuture:d,timezone:ce}),Ce=z&&pe||T,Ee=z&&pe||I,Ge=`${i}-grid-label`,_e=ne!==null,Ie=j?.calendarHeader??KCn,Le=Ho({elementType:Ie,externalSlotProps:G?.calendarHeader,additionalProps:{views:w,view:oe,currentMonth:Me.currentMonth,onViewChange:ae,onMonthChange:(Pt,Qn)=>ie({newMonth:Pt,direction:Qn}),minDate:Ce,maxDate:Ee,disabled:z,disablePast:p,disableFuture:d,reduceAnimations:v,timezone:ce,labelId:Ge},ownerState:o}),we=en(Pt=>{const Qn=r.startOfMonth(Pt),ir=r.endOfMonth(Pt),jn=ue(Pt)?XN({utils:r,date:Pt,minDate:r.isBefore(T,Qn)?Qn:T,maxDate:r.isAfter(I,ir)?ir:I,disablePast:p,disableFuture:d,isDateDisabled:ue,timezone:ce}):Pt;jn?(be(jn,"finish"),m?.(Qn)):(he(),de(Qn)),Oe(jn,!0)}),ve=en(Pt=>{const Qn=r.startOfYear(Pt),ir=r.endOfYear(Pt),jn=ue(Pt)?XN({utils:r,date:Pt,minDate:r.isBefore(T,Qn)?Qn:T,maxDate:r.isAfter(I,ir)?ir:I,disablePast:p,disableFuture:d,isDateDisabled:ue,timezone:ce}):Pt;jn?(be(jn,"finish"),g?.(jn)):(he(),de(Qn)),Oe(jn,!0)}),De=en(Pt=>te(Pt&&r9(r,Pt,pe??me),"finish",oe));b.useEffect(()=>{pe!=null&&r.isValid(pe)&&de(pe)},[pe]);const ze=o,Ve=JCn(ze),Ke={disablePast:p,disableFuture:d,maxDate:I,minDate:T},et={disableHighlightToday:P,readOnly:O,disabled:z,timezone:ce,gridLabelId:Ge,slots:j,slotProps:G},it=b.useRef(oe);b.useEffect(()=>{it.current!==oe&&(ne===it.current&&le(oe,!0),it.current=oe)},[ne,le,oe]);const Ft=b.useMemo(()=>[pe],[pe]);return f.jsxs(txn,Y({ref:n,className:Oa(Ve.root,A),ownerState:ze},se,{children:[f.jsx(Ie,Y({},Le,{slots:j,slotProps:G})),f.jsx(nxn,{reduceAnimations:v,className:Ve.viewTransitionContainer,transKey:oe,ownerState:ze,children:f.jsxs("div",{children:[oe==="year"&&f.jsx(RCn,Y({},Ke,et,{value:pe,onChange:ve,shouldDisableYear:C,hasFocus:_e,onFocusedViewChange:Pt=>le("year",Pt),yearsOrder:X,yearsPerRow:Q,referenceDate:me})),oe==="month"&&f.jsx(bCn,Y({},Ke,et,{hasFocus:_e,className:A,value:pe,onChange:we,shouldDisableMonth:M,onFocusedViewChange:Pt=>le("month",Pt),monthsPerRow:re,referenceDate:me})),oe==="day"&&f.jsx(aCn,Y({},Me,Ke,et,{onMonthSwitchingAnimationEnd:Ae,onFocusedDayChange:Oe,reduceAnimations:v,selectedDays:Ft,onSelectedDaysChange:De,shouldDisableDate:y,shouldDisableMonth:M,shouldDisableYear:C,hasFocus:_e,onFocusedViewChange:Pt=>le("day",Pt),showDaysOutsideCurrentMonth:L,fixedWeekNumber:W,dayOfWeekFormatter:H,displayWeekNumber:U,loading:q,renderLoading:$}))]})})]}))}),Tf=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minDate:h,maxDate:g,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:y,reduceAnimations:M,onMonthChange:C,monthsPerRow:x,onYearChange:w,yearsOrder:S,yearsPerRow:A,slots:z,slotProps:O,loading:T,renderLoading:I,disableHighlightToday:P,readOnly:N,disabled:F,showDaysOutsideCurrentMonth:L,dayOfWeekFormatter:W,sx:H,autoFocus:j,fixedWeekNumber:G,displayWeekNumber:q,timezone:$})=>f.jsx(rxn,{view:e,onViewChange:t,views:n.filter(pP),focusedView:r&&pP(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minDate:h,maxDate:g,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:y,reduceAnimations:M,onMonthChange:C,monthsPerRow:x,onYearChange:w,yearsOrder:S,yearsPerRow:A,slots:z,slotProps:O,loading:T,renderLoading:I,disableHighlightToday:P,readOnly:N,disabled:F,showDaysOutsideCurrentMonth:L,dayOfWeekFormatter:W,sx:H,autoFocus:j,fixedWeekNumber:G,displayWeekNumber:q,timezone:$}),Xlt=b.forwardRef(function(t,n){const r=Ed(),i=sa(),o=Hst(t,"MuiDesktopDatePicker"),a=Y({day:Tf,month:Tf,year:Tf},o.viewRenderers),s=Y({},o,{viewRenderers:a,format:OW(i,o,!1),yearsPerRow:o.yearsPerRow??4,slots:Y({openPickerIcon:l9,field:Blt},o.slots),slotProps:Y({},o.slotProps,{field:c=>Y({},Pz(o.slotProps?.field,c),OQ(o),{ref:n}),toolbar:Y({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:l}=ylt({props:s,valueManager:Tu,valueType:"date",getOpenDialogAriaText:SQ({utils:i,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:OD});return l()});Xlt.propTypes={autoFocus:Z.bool,className:Z.string,closeOnSelect:Z.bool,dayOfWeekFormatter:Z.func,defaultValue:Z.object,disabled:Z.bool,disableFuture:Z.bool,disableHighlightToday:Z.bool,disableOpenPicker:Z.bool,disablePast:Z.bool,displayWeekNumber:Z.bool,enableAccessibleFieldDOMStructure:Z.any,fixedWeekNumber:Z.number,format:Z.string,formatDensity:Z.oneOf(["dense","spacious"]),inputRef:CQ,label:Z.node,loading:Z.bool,localeText:Z.object,maxDate:Z.object,minDate:Z.object,monthsPerRow:Z.oneOf([3,4]),name:Z.string,onAccept:Z.func,onChange:Z.func,onClose:Z.func,onError:Z.func,onMonthChange:Z.func,onOpen:Z.func,onSelectedSectionsChange:Z.func,onViewChange:Z.func,onYearChange:Z.func,open:Z.bool,openTo:Z.oneOf(["day","month","year"]),orientation:Z.oneOf(["landscape","portrait"]),readOnly:Z.bool,reduceAnimations:Z.bool,referenceDate:Z.object,renderLoading:Z.func,selectedSections:Z.oneOfType([Z.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Z.number]),shouldDisableDate:Z.func,shouldDisableMonth:Z.func,shouldDisableYear:Z.func,showDaysOutsideCurrentMonth:Z.bool,slotProps:Z.object,slots:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),timezone:Z.string,value:Z.object,view:Z.oneOf(["day","month","year"]),viewRenderers:Z.shape({day:Z.func,month:Z.func,year:Z.func}),views:Z.arrayOf(Z.oneOf(["day","month","year"]).isRequired),yearsOrder:Z.oneOf(["asc","desc"]),yearsPerRow:Z.oneOf([3,4])};function ixn(e){return Bn("MuiDialogContent",e)}Ln("MuiDialogContent",["root","dividers"]);const oxn=Ln("MuiDialogTitle",["root"]),axn=e=>{const{classes:t,dividers:n}=e;return Yt({root:["root",n&&"dividers"]},ixn,t)},sxn=rt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(kr(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${oxn.root} + &`]:{paddingTop:0}}}]}))),lxn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...a}=r,s={...r,dividers:o},l=axn(s);return f.jsx(sxn,{className:nr(l.root,i),ownerState:s,ref:n,...a})});function cxn(e){return Bn("MuiDialog",e)}const JN=Ln("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),uxn=b.createContext({}),dxn=rt(xlt,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),pxn=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${jt(n)}`],paper:["paper",`paperScroll${jt(n)}`,`paperWidth${jt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Yt(a,cxn,t)},hxn=rt(wlt,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),fxn=rt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${jt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),gxn=rt(R3,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${jt(n.scroll)}`],t[`paperWidth${jt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(kr(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${JN.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${JN.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${JN.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),mxn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiDialog"}),i=$b(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:m=!1,maxWidth:v="sm",onClick:y,onClose:M,open:C,PaperComponent:x=R3,PaperProps:w={},scroll:S="paper",slots:A={},slotProps:z={},TransitionComponent:O=kz,transitionDuration:T=o,TransitionProps:I,...P}=r,N={...r,disableEscapeKeyDown:h,fullScreen:g,fullWidth:m,maxWidth:v,scroll:S},F=pxn(N),L=b.useRef(),W=ne=>{L.current=ne.target===ne.currentTarget},H=ne=>{y&&y(ne),L.current&&(L.current=null,M&&M(ne,"backdropClick"))},j=Hi(s),G=b.useMemo(()=>({titleId:j}),[j]),q={transition:O,...A},$={transition:I,paper:w,backdrop:u,...z},U={slots:q,slotProps:$},[X,Q]=ni("root",{elementType:hxn,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:N,className:nr(F.root,p),ref:n}),[re,ee]=ni("backdrop",{elementType:dxn,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:N}),[se,pe]=ni("paper",{elementType:gxn,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:N,className:nr(F.paper,w.className)}),[te,ce]=ni("container",{elementType:fxn,externalForwardedProps:U,ownerState:N,className:F.container}),[oe,ae]=ni("transition",{elementType:kz,externalForwardedProps:U,ownerState:N,additionalProps:{appear:!0,in:C,timeout:T,role:"presentation"}});return f.jsx(X,{closeAfterTransition:!0,slots:{backdrop:re},slotProps:{backdrop:{transitionDuration:T,as:c,...ee}},disableEscapeKeyDown:h,onClose:M,open:C,onClick:H,...Q,...P,children:f.jsx(oe,{...ae,children:f.jsx(te,{onMouseDown:W,...ce,children:f.jsx(se,{as:x,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":j,"aria-modal":l,...pe,children:f.jsx(uxn.Provider,{value:G,children:d})})})})})}),vxn=rt(mxn)({[`& .${JN.container}`]:{outline:0},[`& .${JN.paper}`]:{outline:0,minWidth:IQ}}),bxn=rt(lxn)({"&:first-of-type":{padding:0}});function yxn(e){const{children:t,onDismiss:n,open:r,slots:i,slotProps:o}=e,a=i?.dialog??vxn,s=i?.mobileTransition??kz;return f.jsx(a,Y({open:r,onClose:n},o?.dialog,{TransitionComponent:s,TransitionProps:o?.mobileTransition,PaperComponent:i?.mobilePaper,PaperProps:o?.mobilePaper,children:f.jsx(bxn,{children:t})}))}const Mxn=["props","getOpenDialogAriaText"],Ylt=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=Lt(e,Mxn);const{slots:i,slotProps:o,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:p,timezone:h,name:g,label:m,inputRef:v,readOnly:y,disabled:M,localeText:C}=t,x=b.useRef(null),w=Hi(),S=o?.toolbar?.hidden??!1,{open:A,actions:z,layoutProps:O,renderCurrentView:T,fieldProps:I,contextValue:P}=llt(Y({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),N=i.field,F=Ho({elementType:N,externalSlotProps:o?.field,additionalProps:Y({},I,S&&{id:w},!(M||y)&&{onClick:z.onOpen,onKeyDown:_vn(z.onOpen)},{readOnly:y??!0,disabled:M,className:a,sx:s,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:d,onSelectedSectionsChange:p,timezone:h,label:m,name:g},v?{inputRef:v}:{}),ownerState:t});F.inputProps=Y({},F.inputProps,{"aria-label":n(I.value)});const L=Y({textField:i.textField},F.slots),W=i.layout??vlt;let H=w;S&&(m?H=`${w}-label`:H=void 0);const j=Y({},o,{toolbar:Y({},o?.toolbar,{titleId:w}),mobilePaper:Y({"aria-labelledby":H},o?.mobilePaper)}),G=Pi(x,F.unstableFieldRef);return{renderPicker:()=>f.jsxs(blt,{contextValue:P,localeText:C,children:[f.jsx(N,Y({},F,{slots:L,slotProps:j,unstableFieldRef:G})),f.jsx(yxn,Y({},z,{open:A,slots:i,slotProps:j,children:f.jsx(W,Y({},O,j?.layout,{slots:i,slotProps:j,children:T()}))}))]})}},Klt=b.forwardRef(function(t,n){const r=Ed(),i=sa(),o=Hst(t,"MuiMobileDatePicker"),a=Y({day:Tf,month:Tf,year:Tf},o.viewRenderers),s=Y({},o,{viewRenderers:a,format:OW(i,o,!1),slots:Y({field:Blt},o.slots),slotProps:Y({},o.slotProps,{field:c=>Y({},Pz(o.slotProps?.field,c),OQ(o),{ref:n}),toolbar:Y({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:l}=Ylt({props:s,valueManager:Tu,valueType:"date",getOpenDialogAriaText:SQ({utils:i,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:s.localeText?.openDatePickerDialogue}),validator:OD});return l()});Klt.propTypes={autoFocus:Z.bool,className:Z.string,closeOnSelect:Z.bool,dayOfWeekFormatter:Z.func,defaultValue:Z.object,disabled:Z.bool,disableFuture:Z.bool,disableHighlightToday:Z.bool,disableOpenPicker:Z.bool,disablePast:Z.bool,displayWeekNumber:Z.bool,enableAccessibleFieldDOMStructure:Z.any,fixedWeekNumber:Z.number,format:Z.string,formatDensity:Z.oneOf(["dense","spacious"]),inputRef:CQ,label:Z.node,loading:Z.bool,localeText:Z.object,maxDate:Z.object,minDate:Z.object,monthsPerRow:Z.oneOf([3,4]),name:Z.string,onAccept:Z.func,onChange:Z.func,onClose:Z.func,onError:Z.func,onMonthChange:Z.func,onOpen:Z.func,onSelectedSectionsChange:Z.func,onViewChange:Z.func,onYearChange:Z.func,open:Z.bool,openTo:Z.oneOf(["day","month","year"]),orientation:Z.oneOf(["landscape","portrait"]),readOnly:Z.bool,reduceAnimations:Z.bool,referenceDate:Z.object,renderLoading:Z.func,selectedSections:Z.oneOfType([Z.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Z.number]),shouldDisableDate:Z.func,shouldDisableMonth:Z.func,shouldDisableYear:Z.func,showDaysOutsideCurrentMonth:Z.bool,slotProps:Z.object,slots:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),timezone:Z.string,value:Z.object,view:Z.oneOf(["day","month","year"]),viewRenderers:Z.shape({day:Z.func,month:Z.func,year:Z.func}),views:Z.arrayOf(Z.oneOf(["day","month","year"]).isRequired),yearsOrder:Z.oneOf(["asc","desc"]),yearsPerRow:Z.oneOf([3,4])};const Cxn=["desktopModeMediaQuery"],_f=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=alt}=r,o=Lt(r,Cxn);return JMe(i,{defaultMatches:!0})?f.jsx(Xlt,Y({ref:n},o)):f.jsx(Klt,Y({ref:n},o))});var Eie={exports:{}},o7={exports:{}};//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var Qlt;function mt(){return Qlt.apply(null,arguments)}function xxn(e){Qlt=e}function Cm(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function jO(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function za(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function OCe(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(za(e,t))return!1;return!0}function j1(e){return e===void 0}function Qy(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Q6(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Zlt(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function ox(e,t){for(var n in t)za(t,n)&&(e[n]=t[n]);return za(t,"toString")&&(e.toString=t.toString),za(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ub(e,t,n,r){return Cct(e,t,n,r,!0).utc()}function wxn(){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 bo(e){return e._pf==null&&(e._pf=wxn()),e._pf}var Tfe;Array.prototype.some?Tfe=Array.prototype.some:Tfe=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function zCe(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=bo(e),n=Tfe.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function qQ(e){var t=Ub(NaN);return e!=null?ox(bo(t),e):bo(t).userInvalidated=!0,t}var oke=mt.momentProperties=[],Rie=!1;function TCe(e,t){var n,r,i,o=oke.length;if(j1(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),j1(t._i)||(e._i=t._i),j1(t._f)||(e._f=t._f),j1(t._l)||(e._l=t._l),j1(t._strict)||(e._strict=t._strict),j1(t._tzm)||(e._tzm=t._tzm),j1(t._isUTC)||(e._isUTC=t._isUTC),j1(t._offset)||(e._offset=t._offset),j1(t._pf)||(e._pf=bo(t)),j1(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=oke[n],i=t[r],j1(i)||(e[r]=i);return e}function Z6(e){TCe(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Rie===!1&&(Rie=!0,mt.updateOffset(this),Rie=!1)}function xm(e){return e instanceof Z6||e!=null&&e._isAMomentObject!=null}function Jlt(e){mt.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Xf(e,t){var n=!0;return ox(function(){if(mt.deprecationHandler!=null&&mt.deprecationHandler(null,e),n){var r=[],i,o,a,s=arguments.length;for(o=0;o<s;o++){if(i="",typeof arguments[o]=="object"){i+=`
[`+o+"] ";for(a in arguments[0])za(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}Jlt(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var ake={};function ect(e,t){mt.deprecationHandler!=null&&mt.deprecationHandler(e,t),ake[e]||(Jlt(t),ake[e]=!0)}mt.suppressDeprecationWarnings=!1;mt.deprecationHandler=null;function Xb(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Sxn(e){var t,n;for(n in e)za(e,n)&&(t=e[n],Xb(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Efe(e,t){var n=ox({},e),r;for(r in t)za(t,r)&&(jO(e[r])&&jO(t[r])?(n[r]={},ox(n[r],e[r]),ox(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)za(e,r)&&!za(t,r)&&jO(e[r])&&(n[r]=ox({},n[r]));return n}function ECe(e){e!=null&&this.set(e)}var Rfe;Object.keys?Rfe=Object.keys:Rfe=function(e){var t,n=[];for(t in e)za(e,t)&&n.push(t);return n};var Axn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Oxn(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Xb(r)?r.call(t,n):r}function Db(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var RCe=/(\[[^\[]*\])|(\\)?([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,y8=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Iie={},hI={};function ai(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(hI[e]=i),t&&(hI[t[0]]=function(){return Db(i.apply(this,arguments),t[1],t[2])}),n&&(hI[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function zxn(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Txn(e){var t=e.match(RCe),n,r;for(n=0,r=t.length;n<r;n++)hI[t[n]]?t[n]=hI[t[n]]:t[n]=zxn(t[n]);return function(i){var o="",a;for(a=0;a<r;a++)o+=Xb(t[a])?t[a].call(i,e):t[a];return o}}function a7(e,t){return e.isValid()?(t=tct(t,e.localeData()),Iie[t]=Iie[t]||Txn(t),Iie[t](e)):e.localeData().invalidDate()}function tct(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(y8.lastIndex=0;n>=0&&y8.test(e);)e=e.replace(y8,r),y8.lastIndex=0,n-=1;return e}var Exn={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 Rxn(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(RCe).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Ixn="Invalid date";function Pxn(){return this._invalidDate}var Dxn="%d",kxn=/\d{1,2}/;function Lxn(e){return this._ordinal.replace("%d",e)}var _xn={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 Nxn(e,t,n,r){var i=this._relativeTime[n];return Xb(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Fxn(e,t){var n=this._relativeTime[e>0?"future":"past"];return Xb(n)?n(t):n.replace(/%s/i,t)}var ske={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 Yf(e){return typeof e=="string"?ske[e]||ske[e.toLowerCase()]:void 0}function ICe(e){var t={},n,r;for(r in e)za(e,r)&&(n=Yf(r),n&&(t[n]=e[r]));return t}var Wxn={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 qxn(e){var t=[],n;for(n in e)za(e,n)&&t.push({unit:n,priority:Wxn[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var nct=/\d/,vh=/\d\d/,rct=/\d{3}/,PCe=/\d{4}/,BQ=/[+-]?\d{6}/,sl=/\d\d?/,ict=/\d\d\d\d?/,oct=/\d\d\d\d\d\d?/,jQ=/\d{1,3}/,DCe=/\d{1,4}/,HQ=/[+-]?\d{1,6}/,ED=/\d+/,VQ=/[+-]?\d+/,Bxn=/Z|[+-]\d\d:?\d\d/gi,GQ=/Z|[+-]\d\d(?::?\d\d)?/gi,jxn=/[+-]?\d+(\.\d{1,3})?/,J6=/[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,RD=/^[1-9]\d?/,kCe=/^([1-9]\d|\d)/,u9;u9={};function Tr(e,t,n){u9[e]=Xb(t)?t:function(r,i){return r&&n?n:t}}function Hxn(e,t){return za(u9,e)?u9[e](t._strict,t._locale):new RegExp(Vxn(e))}function Vxn(e){return Py(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Py(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function of(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Qo(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=of(t)),n}var Ife={};function ys(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Qy(t)&&(r=function(o,a){a[t]=Qo(o)}),i=e.length,n=0;n<i;n++)Ife[e[n]]=r}function eB(e,t){ys(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function Gxn(e,t,n){t!=null&&za(Ife,e)&&Ife[e](t,n._a,n,e)}function $Q(e){return e%4===0&&e%100!==0||e%400===0}var b0=0,yy=1,Hv=2,Cu=3,Jg=4,My=5,lO=6,$xn=7,Uxn=8;ai("Y",0,0,function(){var e=this.year();return e<=9999?Db(e,4):"+"+e});ai(0,["YY",2],0,function(){return this.year()%100});ai(0,["YYYY",4],0,"year");ai(0,["YYYYY",5],0,"year");ai(0,["YYYYYY",6,!0],0,"year");Tr("Y",VQ);Tr("YY",sl,vh);Tr("YYYY",DCe,PCe);Tr("YYYYY",HQ,BQ);Tr("YYYYYY",HQ,BQ);ys(["YYYYY","YYYYYY"],b0);ys("YYYY",function(e,t){t[b0]=e.length===2?mt.parseTwoDigitYear(e):Qo(e)});ys("YY",function(e,t){t[b0]=mt.parseTwoDigitYear(e)});ys("Y",function(e,t){t[b0]=parseInt(e,10)});function eF(e){return $Q(e)?366:365}mt.parseTwoDigitYear=function(e){return Qo(e)+(Qo(e)>68?1900:2e3)};var act=ID("FullYear",!0);function Xxn(){return $Q(this.year())}function ID(e,t){return function(n){return n!=null?(sct(this,e,n),mt.updateOffset(this,t),this):IW(this,e)}}function IW(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function sct(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!$Q(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function Yxn(e){return e=Yf(e),Xb(this[e])?this[e]():this}function Kxn(e,t){if(typeof e=="object"){e=ICe(e);var n=qxn(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Yf(e),Xb(this[e]))return this[e](t);return this}function Qxn(e,t){return(e%t+t)%t}var bc;Array.prototype.indexOf?bc=Array.prototype.indexOf:bc=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function LCe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qxn(t,12);return e+=(t-n)/12,n===1?$Q(e)?29:28:31-n%7%2}ai("M",["MM",2],"Mo",function(){return this.month()+1});ai("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});ai("MMMM",0,0,function(e){return this.localeData().months(this,e)});Tr("M",sl,RD);Tr("MM",sl,vh);Tr("MMM",function(e,t){return t.monthsShortRegex(e)});Tr("MMMM",function(e,t){return t.monthsRegex(e)});ys(["M","MM"],function(e,t){t[yy]=Qo(e)-1});ys(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[yy]=i:bo(n).invalidMonth=e});var Zxn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),lct="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),cct=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Jxn=J6,ewn=J6;function twn(e,t){return e?Cm(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||cct).test(t)?"format":"standalone"][e.month()]:Cm(this._months)?this._months:this._months.standalone}function nwn(e,t){return e?Cm(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[cct.test(t)?"format":"standalone"][e.month()]:Cm(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function rwn(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Ub([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(i=bc.call(this._shortMonthsParse,a),i!==-1?i:null):(i=bc.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=bc.call(this._shortMonthsParse,a),i!==-1?i:(i=bc.call(this._longMonthsParse,a),i!==-1?i:null)):(i=bc.call(this._longMonthsParse,a),i!==-1?i:(i=bc.call(this._shortMonthsParse,a),i!==-1?i:null))}function iwn(e,t,n){var r,i,o;if(this._monthsParseExact)return rwn.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Ub([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function uct(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Qo(t);else if(t=e.localeData().monthsParse(t),!Qy(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,LCe(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function dct(e){return e!=null?(uct(this,e),mt.updateOffset(this,!0),this):IW(this,"Month")}function own(){return LCe(this.year(),this.month())}function awn(e){return this._monthsParseExact?(za(this,"_monthsRegex")||pct.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(za(this,"_monthsShortRegex")||(this._monthsShortRegex=Jxn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function swn(e){return this._monthsParseExact?(za(this,"_monthsRegex")||pct.call(this),e?this._monthsStrictRegex:this._monthsRegex):(za(this,"_monthsRegex")||(this._monthsRegex=ewn),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pct(){function e(l,c){return c.length-l.length}var t=[],n=[],r=[],i,o,a,s;for(i=0;i<12;i++)o=Ub([2e3,i]),a=Py(this.monthsShort(o,"")),s=Py(this.months(o,"")),t.push(a),n.push(s),r.push(s),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function lwn(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function PW(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function d9(e,t,n){var r=7+t-n,i=(7+PW(e,0,r).getUTCDay()-t)%7;return-i+r-1}function hct(e,t,n,r,i){var o=(7+n-r)%7,a=d9(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=eF(l)+s):s>eF(e)?(l=e+1,c=s-eF(e)):(l=e,c=s),{year:l,dayOfYear:c}}function DW(e,t,n){var r=d9(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+Dy(a,t,n)):i>Dy(e.year(),t,n)?(o=i-Dy(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function Dy(e,t,n){var r=d9(e,t,n),i=d9(e+1,t,n);return(eF(e)-r+i)/7}ai("w",["ww",2],"wo","week");ai("W",["WW",2],"Wo","isoWeek");Tr("w",sl,RD);Tr("ww",sl,vh);Tr("W",sl,RD);Tr("WW",sl,vh);eB(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Qo(e)});function cwn(e){return DW(e,this._week.dow,this._week.doy).week}var uwn={dow:0,doy:6};function dwn(){return this._week.dow}function pwn(){return this._week.doy}function hwn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function fwn(e){var t=DW(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ai("d",0,"do","day");ai("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ai("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ai("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ai("e",0,0,"weekday");ai("E",0,0,"isoWeekday");Tr("d",sl);Tr("e",sl);Tr("E",sl);Tr("dd",function(e,t){return t.weekdaysMinRegex(e)});Tr("ddd",function(e,t){return t.weekdaysShortRegex(e)});Tr("dddd",function(e,t){return t.weekdaysRegex(e)});eB(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:bo(n).invalidWeekday=e});eB(["d","e","E"],function(e,t,n,r){t[r]=Qo(e)});function gwn(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function mwn(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function _Ce(e,t){return e.slice(t,7).concat(e.slice(0,t))}var vwn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fct="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),bwn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ywn=J6,Mwn=J6,Cwn=J6;function xwn(e,t){var n=Cm(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?_Ce(n,this._week.dow):e?n[e.day()]:n}function wwn(e){return e===!0?_Ce(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Swn(e){return e===!0?_Ce(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Awn(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Ub([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=bc.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=bc.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=bc.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=bc.call(this._weekdaysParse,a),i!==-1||(i=bc.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=bc.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=bc.call(this._shortWeekdaysParse,a),i!==-1||(i=bc.call(this._weekdaysParse,a),i!==-1)?i:(i=bc.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=bc.call(this._minWeekdaysParse,a),i!==-1||(i=bc.call(this._weekdaysParse,a),i!==-1)?i:(i=bc.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function Own(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Awn.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Ub([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function zwn(e){if(!this.isValid())return e!=null?this:NaN;var t=IW(this,"Day");return e!=null?(e=gwn(e,this.localeData()),this.add(e-t,"d")):t}function Twn(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Ewn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=mwn(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Rwn(e){return this._weekdaysParseExact?(za(this,"_weekdaysRegex")||NCe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(za(this,"_weekdaysRegex")||(this._weekdaysRegex=ywn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Iwn(e){return this._weekdaysParseExact?(za(this,"_weekdaysRegex")||NCe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(za(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Mwn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Pwn(e){return this._weekdaysParseExact?(za(this,"_weekdaysRegex")||NCe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(za(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Cwn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function NCe(){function e(u,d){return d.length-u.length}var t=[],n=[],r=[],i=[],o,a,s,l,c;for(o=0;o<7;o++)a=Ub([2e3,1]).day(o),s=Py(this.weekdaysMin(a,"")),l=Py(this.weekdaysShort(a,"")),c=Py(this.weekdays(a,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function FCe(){return this.hours()%12||12}function Dwn(){return this.hours()||24}ai("H",["HH",2],0,"hour");ai("h",["hh",2],0,FCe);ai("k",["kk",2],0,Dwn);ai("hmm",0,0,function(){return""+FCe.apply(this)+Db(this.minutes(),2)});ai("hmmss",0,0,function(){return""+FCe.apply(this)+Db(this.minutes(),2)+Db(this.seconds(),2)});ai("Hmm",0,0,function(){return""+this.hours()+Db(this.minutes(),2)});ai("Hmmss",0,0,function(){return""+this.hours()+Db(this.minutes(),2)+Db(this.seconds(),2)});function gct(e,t){ai(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}gct("a",!0);gct("A",!1);function mct(e,t){return t._meridiemParse}Tr("a",mct);Tr("A",mct);Tr("H",sl,kCe);Tr("h",sl,RD);Tr("k",sl,RD);Tr("HH",sl,vh);Tr("hh",sl,vh);Tr("kk",sl,vh);Tr("hmm",ict);Tr("hmmss",oct);Tr("Hmm",ict);Tr("Hmmss",oct);ys(["H","HH"],Cu);ys(["k","kk"],function(e,t,n){var r=Qo(e);t[Cu]=r===24?0:r});ys(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ys(["h","hh"],function(e,t,n){t[Cu]=Qo(e),bo(n).bigHour=!0});ys("hmm",function(e,t,n){var r=e.length-2;t[Cu]=Qo(e.substr(0,r)),t[Jg]=Qo(e.substr(r)),bo(n).bigHour=!0});ys("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Cu]=Qo(e.substr(0,r)),t[Jg]=Qo(e.substr(r,2)),t[My]=Qo(e.substr(i)),bo(n).bigHour=!0});ys("Hmm",function(e,t,n){var r=e.length-2;t[Cu]=Qo(e.substr(0,r)),t[Jg]=Qo(e.substr(r))});ys("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Cu]=Qo(e.substr(0,r)),t[Jg]=Qo(e.substr(r,2)),t[My]=Qo(e.substr(i))});function kwn(e){return(e+"").toLowerCase().charAt(0)==="p"}var Lwn=/[ap]\.?m?\.?/i,_wn=ID("Hours",!0);function Nwn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var vct={calendar:Axn,longDateFormat:Exn,invalidDate:Ixn,ordinal:Dxn,dayOfMonthOrdinalParse:kxn,relativeTime:_xn,months:Zxn,monthsShort:lct,week:uwn,weekdays:vwn,weekdaysMin:bwn,weekdaysShort:fct,meridiemParse:Lwn},ml={},v4={},kW;function Fwn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function lke(e){return e&&e.toLowerCase().replace("_","-")}function Wwn(e){for(var t=0,n,r,i,o;t<e.length;){for(o=lke(e[t]).split("-"),n=o.length,r=lke(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=UQ(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&Fwn(o,r)>=n-1)break;n--}t++}return kW}function qwn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function UQ(e){var t=null,n;if(ml[e]===void 0&&typeof module<"u"&&module&&module.exports&&qwn(e))try{t=kW._abbr,n=require,n("./locale/"+e),Rx(t)}catch{ml[e]=null}return ml[e]}function Rx(e,t){var n;return e&&(j1(t)?n=vM(e):n=WCe(e,t),n?kW=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),kW._abbr}function WCe(e,t){if(t!==null){var n,r=vct;if(t.abbr=e,ml[e]!=null)ect("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."),r=ml[e]._config;else if(t.parentLocale!=null)if(ml[t.parentLocale]!=null)r=ml[t.parentLocale]._config;else if(n=UQ(t.parentLocale),n!=null)r=n._config;else return v4[t.parentLocale]||(v4[t.parentLocale]=[]),v4[t.parentLocale].push({name:e,config:t}),null;return ml[e]=new ECe(Efe(r,t)),v4[e]&&v4[e].forEach(function(i){WCe(i.name,i.config)}),Rx(e),ml[e]}else return delete ml[e],null}function Bwn(e,t){if(t!=null){var n,r,i=vct;ml[e]!=null&&ml[e].parentLocale!=null?ml[e].set(Efe(ml[e]._config,t)):(r=UQ(e),r!=null&&(i=r._config),t=Efe(i,t),r==null&&(t.abbr=e),n=new ECe(t),n.parentLocale=ml[e],ml[e]=n),Rx(e)}else ml[e]!=null&&(ml[e].parentLocale!=null?(ml[e]=ml[e].parentLocale,e===Rx()&&Rx(e)):ml[e]!=null&&delete ml[e]);return ml[e]}function vM(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return kW;if(!Cm(e)){if(t=UQ(e),t)return t;e=[e]}return Wwn(e)}function jwn(){return Rfe(ml)}function qCe(e){var t,n=e._a;return n&&bo(e).overflow===-2&&(t=n[yy]<0||n[yy]>11?yy:n[Hv]<1||n[Hv]>LCe(n[b0],n[yy])?Hv:n[Cu]<0||n[Cu]>24||n[Cu]===24&&(n[Jg]!==0||n[My]!==0||n[lO]!==0)?Cu:n[Jg]<0||n[Jg]>59?Jg:n[My]<0||n[My]>59?My:n[lO]<0||n[lO]>999?lO:-1,bo(e)._overflowDayOfYear&&(t<b0||t>Hv)&&(t=Hv),bo(e)._overflowWeeks&&t===-1&&(t=$xn),bo(e)._overflowWeekday&&t===-1&&(t=Uxn),bo(e).overflow=t),e}var Hwn=/^\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)?)?$/,Vwn=/^\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)?)?$/,Gwn=/Z|[+-]\d\d(?::?\d\d)?/,M8=[["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]],Pie=[["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/]],$wn=/^\/?Date\((-?\d+)/i,Uwn=/^(?:(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}))$/,Xwn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bct(e){var t,n,r=e._i,i=Hwn.exec(r)||Vwn.exec(r),o,a,s,l,c=M8.length,u=Pie.length;if(i){for(bo(e).iso=!0,t=0,n=c;t<n;t++)if(M8[t][1].exec(i[1])){a=M8[t][0],o=M8[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(Pie[t][1].exec(i[3])){s=(i[2]||" ")+Pie[t][0];break}if(s==null){e._isValid=!1;return}}if(!o&&s!=null){e._isValid=!1;return}if(i[4])if(Gwn.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=a+(s||"")+(l||""),jCe(e)}else e._isValid=!1}function Ywn(e,t,n,r,i,o){var a=[Kwn(e),lct.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function Kwn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Qwn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Zwn(e,t,n){if(e){var r=fct.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return bo(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Jwn(e,t,n){if(e)return Xwn[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function yct(e){var t=Uwn.exec(Qwn(e._i)),n;if(t){if(n=Ywn(t[4],t[3],t[2],t[5],t[6],t[7]),!Zwn(t[1],n,e))return;e._a=n,e._tzm=Jwn(t[8],t[9],t[10]),e._d=PW.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),bo(e).rfc2822=!0}else e._isValid=!1}function eSn(e){var t=$wn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(bct(e),e._isValid===!1)delete e._isValid;else return;if(yct(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:mt.createFromInputFallback(e)}mt.createFromInputFallback=Xf("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function bR(e,t,n){return e??t??n}function tSn(e){var t=new Date(mt.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function BCe(e){var t,n,r=[],i,o,a;if(!e._d){for(i=tSn(e),e._w&&e._a[Hv]==null&&e._a[yy]==null&&nSn(e),e._dayOfYear!=null&&(a=bR(e._a[b0],i[b0]),(e._dayOfYear>eF(a)||e._dayOfYear===0)&&(bo(e)._overflowDayOfYear=!0),n=PW(a,0,e._dayOfYear),e._a[yy]=n.getUTCMonth(),e._a[Hv]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Cu]===24&&e._a[Jg]===0&&e._a[My]===0&&e._a[lO]===0&&(e._nextDay=!0,e._a[Cu]=0),e._d=(e._useUTC?PW:lwn).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Cu]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(bo(e).weekdayMismatch=!0)}}function nSn(e){var t,n,r,i,o,a,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=bR(t.GG,e._a[b0],DW(ol(),1,4).year),r=bR(t.W,1),i=bR(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=DW(ol(),o,a),n=bR(t.gg,e._a[b0],c.year),r=bR(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>Dy(n,o,a)?bo(e)._overflowWeeks=!0:l!=null?bo(e)._overflowWeekday=!0:(s=hct(n,r,i,o,a),e._a[b0]=s.year,e._dayOfYear=s.dayOfYear)}mt.ISO_8601=function(){};mt.RFC_2822=function(){};function jCe(e){if(e._f===mt.ISO_8601){bct(e);return}if(e._f===mt.RFC_2822){yct(e);return}e._a=[],bo(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=tct(e._f,e._locale).match(RCe)||[],u=i.length,n=0;n<u;n++)o=i[n],r=(t.match(Hxn(o,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&bo(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),hI[o]?(r?bo(e).empty=!1:bo(e).unusedTokens.push(o),Gxn(o,r,e)):e._strict&&!r&&bo(e).unusedTokens.push(o);bo(e).charsLeftOver=s-l,t.length>0&&bo(e).unusedInput.push(t),e._a[Cu]<=12&&bo(e).bigHour===!0&&e._a[Cu]>0&&(bo(e).bigHour=void 0),bo(e).parsedDateParts=e._a.slice(0),bo(e).meridiem=e._meridiem,e._a[Cu]=rSn(e._locale,e._a[Cu],e._meridiem),c=bo(e).era,c!==null&&(e._a[b0]=e._locale.erasConvertYear(c,e._a[b0])),BCe(e),qCe(e)}function rSn(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function iSn(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){bo(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,a=!1,t=TCe({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],jCe(t),zCe(t)&&(a=!0),o+=bo(t).charsLeftOver,o+=bo(t).unusedTokens.length*10,bo(t).score=o,s?o<r&&(r=o,n=t):(r==null||o<r||a)&&(r=o,n=t,a&&(s=!0));ox(e,n||t)}function oSn(e){if(!e._d){var t=ICe(e._i),n=t.day===void 0?t.date:t.day;e._a=Zlt([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),BCe(e)}}function aSn(e){var t=new Z6(qCe(Mct(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Mct(e){var t=e._i,n=e._f;return e._locale=e._locale||vM(e._l),t===null||n===void 0&&t===""?qQ({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),xm(t)?new Z6(qCe(t)):(Q6(t)?e._d=t:Cm(n)?iSn(e):n?jCe(e):sSn(e),zCe(e)||(e._d=null),e))}function sSn(e){var t=e._i;j1(t)?e._d=new Date(mt.now()):Q6(t)?e._d=new Date(t.valueOf()):typeof t=="string"?eSn(e):Cm(t)?(e._a=Zlt(t.slice(0),function(n){return parseInt(n,10)}),BCe(e)):jO(t)?oSn(e):Qy(t)?e._d=new Date(t):mt.createFromInputFallback(e)}function Cct(e,t,n,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(jO(e)&&OCe(e)||Cm(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,aSn(o)}function ol(e,t,n,r){return Cct(e,t,n,r,!1)}var lSn=Xf("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ol.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:qQ()}),cSn=Xf("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ol.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:qQ()});function xct(e,t){var n,r;if(t.length===1&&Cm(t[0])&&(t=t[0]),!t.length)return ol();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function uSn(){var e=[].slice.call(arguments,0);return xct("isBefore",e)}function dSn(){var e=[].slice.call(arguments,0);return xct("isAfter",e)}var pSn=function(){return Date.now?Date.now():+new Date},b4=["year","quarter","month","week","day","hour","minute","second","millisecond"];function hSn(e){var t,n=!1,r,i=b4.length;for(t in e)if(za(e,t)&&!(bc.call(b4,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[b4[r]]){if(n)return!1;parseFloat(e[b4[r]])!==Qo(e[b4[r]])&&(n=!0)}return!0}function fSn(){return this._isValid}function gSn(){return Dm(NaN)}function XQ(e){var t=ICe(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=hSn(t),this._milliseconds=+u+c*1e3+l*6e4+s*1e3*60*60,this._days=+a+o*7,this._months=+i+r*3+n*12,this._data={},this._locale=vM(),this._bubble()}function s7(e){return e instanceof XQ}function Pfe(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function mSn(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,a;for(a=0;a<r;a++)Qo(e[a])!==Qo(t[a])&&o++;return o+i}function wct(e,t){ai(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Db(~~(n/60),2)+t+Db(~~n%60,2)})}wct("Z",":");wct("ZZ","");Tr("Z",GQ);Tr("ZZ",GQ);ys(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=HCe(GQ,e)});var vSn=/([\+\-]|\d\d)/gi;function HCe(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(vSn)||["-",0,0],o=+(i[1]*60)+Qo(i[2]),o===0?0:i[0]==="+"?o:-o)}function VCe(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(xm(e)||Q6(e)?e.valueOf():ol(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),mt.updateOffset(n,!1),n):ol(e).local()}function Dfe(e){return-Math.round(e._d.getTimezoneOffset())}mt.updateOffset=function(){};function bSn(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=HCe(GQ,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Dfe(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Oct(this,Dm(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,mt.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Dfe(this)}function ySn(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function MSn(e){return this.utcOffset(0,e)}function CSn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dfe(this),"m")),this}function xSn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=HCe(Bxn,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wSn(e){return this.isValid()?(e=e?ol(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function SSn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ASn(){if(!j1(this._isDSTShifted))return this._isDSTShifted;var e={},t;return TCe(e,this),e=Mct(e),e._a?(t=e._isUTC?Ub(e._a):ol(e._a),this._isDSTShifted=this.isValid()&&mSn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function OSn(){return this.isValid()?!this._isUTC:!1}function zSn(){return this.isValid()?this._isUTC:!1}function Sct(){return this.isValid()?this._isUTC&&this._offset===0:!1}var TSn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ESn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dm(e,t){var n=e,r=null,i,o,a;return s7(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Qy(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=TSn.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Qo(r[Hv])*i,h:Qo(r[Cu])*i,m:Qo(r[Jg])*i,s:Qo(r[My])*i,ms:Qo(Pfe(r[lO]*1e3))*i}):(r=ESn.exec(e))?(i=r[1]==="-"?-1:1,n={y:HS(r[2],i),M:HS(r[3],i),w:HS(r[4],i),d:HS(r[5],i),h:HS(r[6],i),m:HS(r[7],i),s:HS(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=RSn(ol(n.from),ol(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new XQ(n),s7(e)&&za(e,"_locale")&&(o._locale=e._locale),s7(e)&&za(e,"_isValid")&&(o._isValid=e._isValid),o}Dm.fn=XQ.prototype;Dm.invalid=gSn;function HS(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function cke(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function RSn(e,t){var n;return e.isValid()&&t.isValid()?(t=VCe(t,e),e.isBefore(t)?n=cke(e,t):(n=cke(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Act(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(ect(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=Dm(n,r),Oct(this,i,e),this}}function Oct(e,t,n,r){var i=t._milliseconds,o=Pfe(t._days),a=Pfe(t._months);e.isValid()&&(r=r??!0,a&&uct(e,IW(e,"Month")+a*n),o&&sct(e,"Date",IW(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&mt.updateOffset(e,o||a))}var ISn=Act(1,"add"),PSn=Act(-1,"subtract");function zct(e){return typeof e=="string"||e instanceof String}function DSn(e){return xm(e)||Q6(e)||zct(e)||Qy(e)||LSn(e)||kSn(e)||e===null||e===void 0}function kSn(e){var t=jO(e)&&!OCe(e),n=!1,r=["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,o,a=r.length;for(i=0;i<a;i+=1)o=r[i],n=n||za(e,o);return t&&n}function LSn(e){var t=Cm(e),n=!1;return t&&(n=e.filter(function(r){return!Qy(r)&&zct(e)}).length===0),t&&n}function _Sn(e){var t=jO(e)&&!OCe(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||za(e,o);return t&&n}function NSn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function FSn(e,t){arguments.length===1&&(arguments[0]?DSn(arguments[0])?(e=arguments[0],t=void 0):_Sn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||ol(),r=VCe(n,this).startOf("day"),i=mt.calendarFormat(this,r)||"sameElse",o=t&&(Xb(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,ol(n)))}function WSn(){return new Z6(this)}function qSn(e,t){var n=xm(e)?e:ol(e);return this.isValid()&&n.isValid()?(t=Yf(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function BSn(e,t){var n=xm(e)?e:ol(e);return this.isValid()&&n.isValid()?(t=Yf(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function jSn(e,t,n,r){var i=xm(e)?e:ol(e),o=xm(t)?t:ol(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function HSn(e,t){var n=xm(e)?e:ol(e),r;return this.isValid()&&n.isValid()?(t=Yf(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function VSn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function GSn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function $Sn(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=VCe(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Yf(t),t){case"year":o=l7(this,r)/12;break;case"month":o=l7(this,r);break;case"quarter":o=l7(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:of(o)}function l7(e,t){if(e.date()<t.date())return-l7(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,o;return t-r<0?(i=e.clone().add(n-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),o=(t-r)/(i-r)),-(n+o)||0}mt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";mt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function USn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function XSn(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?a7(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Xb(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",a7(n,"Z")):a7(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function YSn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function KSn(e){e||(e=this.isUtc()?mt.defaultFormatUtc:mt.defaultFormat);var t=a7(this,e);return this.localeData().postformat(t)}function QSn(e,t){return this.isValid()&&(xm(e)&&e.isValid()||ol(e).isValid())?Dm({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ZSn(e){return this.from(ol(),e)}function JSn(e,t){return this.isValid()&&(xm(e)&&e.isValid()||ol(e).isValid())?Dm({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function eAn(e){return this.to(ol(),e)}function Tct(e){var t;return e===void 0?this._locale._abbr:(t=vM(e),t!=null&&(this._locale=t),this)}var Ect=Xf("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Rct(){return this._locale}var p9=1e3,fI=60*p9,h9=60*fI,Ict=(365*400+97)*24*h9;function gI(e,t){return(e%t+t)%t}function Pct(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Ict:new Date(e,t,n).valueOf()}function Dct(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Ict:Date.UTC(e,t,n)}function tAn(e){var t,n;if(e=Yf(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Dct:Pct,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=gI(t+(this._isUTC?0:this.utcOffset()*fI),h9);break;case"minute":t=this._d.valueOf(),t-=gI(t,fI);break;case"second":t=this._d.valueOf(),t-=gI(t,p9);break}return this._d.setTime(t),mt.updateOffset(this,!0),this}function nAn(e){var t,n;if(e=Yf(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Dct:Pct,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=h9-gI(t+(this._isUTC?0:this.utcOffset()*fI),h9)-1;break;case"minute":t=this._d.valueOf(),t+=fI-gI(t,fI)-1;break;case"second":t=this._d.valueOf(),t+=p9-gI(t,p9)-1;break}return this._d.setTime(t),mt.updateOffset(this,!0),this}function rAn(){return this._d.valueOf()-(this._offset||0)*6e4}function iAn(){return Math.floor(this.valueOf()/1e3)}function oAn(){return new Date(this.valueOf())}function aAn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function sAn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function lAn(){return this.isValid()?this.toISOString():null}function cAn(){return zCe(this)}function uAn(){return ox({},bo(this))}function dAn(){return bo(this).overflow}function pAn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ai("N",0,0,"eraAbbr");ai("NN",0,0,"eraAbbr");ai("NNN",0,0,"eraAbbr");ai("NNNN",0,0,"eraName");ai("NNNNN",0,0,"eraNarrow");ai("y",["y",1],"yo","eraYear");ai("y",["yy",2],0,"eraYear");ai("y",["yyy",3],0,"eraYear");ai("y",["yyyy",4],0,"eraYear");Tr("N",GCe);Tr("NN",GCe);Tr("NNN",GCe);Tr("NNNN",wAn);Tr("NNNNN",SAn);ys(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?bo(n).era=i:bo(n).invalidEra=e});Tr("y",ED);Tr("yy",ED);Tr("yyy",ED);Tr("yyyy",ED);Tr("yo",AAn);ys(["y","yy","yyy","yyyy"],b0);ys(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[b0]=n._locale.eraYearOrdinalParse(e,i):t[b0]=parseInt(e,10)});function hAn(e,t){var n,r,i,o=this._eras||vM("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=mt(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=mt(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function fAn(e,t,n){var r,i,o=this.eras(),a,s,l;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(a=o[r].name.toUpperCase(),s=o[r].abbr.toUpperCase(),l=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return o[r];break;case"NNNN":if(a===e)return o[r];break;case"NNNNN":if(l===e)return o[r];break}else if([a,s,l].indexOf(e)>=0)return o[r]}function gAn(e,t){var n=e.since<=e.until?1:-1;return t===void 0?mt(e.since).year():mt(e.since).year()+(t-e.offset)*n}function mAn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function vAn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function bAn(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function yAn(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-mt(i[e].since).year())*n+i[e].offset;return this.year()}function MAn(e){return za(this,"_erasNameRegex")||$Ce.call(this),e?this._erasNameRegex:this._erasRegex}function CAn(e){return za(this,"_erasAbbrRegex")||$Ce.call(this),e?this._erasAbbrRegex:this._erasRegex}function xAn(e){return za(this,"_erasNarrowRegex")||$Ce.call(this),e?this._erasNarrowRegex:this._erasRegex}function GCe(e,t){return t.erasAbbrRegex(e)}function wAn(e,t){return t.erasNameRegex(e)}function SAn(e,t){return t.erasNarrowRegex(e)}function AAn(e,t){return t._eraYearOrdinalRegex||ED}function $Ce(){var e=[],t=[],n=[],r=[],i,o,a,s,l,c=this.eras();for(i=0,o=c.length;i<o;++i)a=Py(c[i].name),s=Py(c[i].abbr),l=Py(c[i].narrow),t.push(a),e.push(s),n.push(l),r.push(a),r.push(s),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ai(0,["gg",2],0,function(){return this.weekYear()%100});ai(0,["GG",2],0,function(){return this.isoWeekYear()%100});function YQ(e,t){ai(0,[e,e.length],0,t)}YQ("gggg","weekYear");YQ("ggggg","weekYear");YQ("GGGG","isoWeekYear");YQ("GGGGG","isoWeekYear");Tr("G",VQ);Tr("g",VQ);Tr("GG",sl,vh);Tr("gg",sl,vh);Tr("GGGG",DCe,PCe);Tr("gggg",DCe,PCe);Tr("GGGGG",HQ,BQ);Tr("ggggg",HQ,BQ);eB(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Qo(e)});eB(["gg","GG"],function(e,t,n,r){t[r]=mt.parseTwoDigitYear(e)});function OAn(e){return kct.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function zAn(e){return kct.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function TAn(){return Dy(this.year(),1,4)}function EAn(){return Dy(this.isoWeekYear(),1,4)}function RAn(){var e=this.localeData()._week;return Dy(this.year(),e.dow,e.doy)}function IAn(){var e=this.localeData()._week;return Dy(this.weekYear(),e.dow,e.doy)}function kct(e,t,n,r,i){var o;return e==null?DW(this,r,i).year:(o=Dy(e,r,i),t>o&&(t=o),PAn.call(this,e,t,n,r,i))}function PAn(e,t,n,r,i){var o=hct(e,t,n,r,i),a=PW(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}ai("Q",0,"Qo","quarter");Tr("Q",nct);ys("Q",function(e,t){t[yy]=(Qo(e)-1)*3});function DAn(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ai("D",["DD",2],"Do","date");Tr("D",sl,RD);Tr("DD",sl,vh);Tr("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ys(["D","DD"],Hv);ys("Do",function(e,t){t[Hv]=Qo(e.match(sl)[0])});var Lct=ID("Date",!0);ai("DDD",["DDDD",3],"DDDo","dayOfYear");Tr("DDD",jQ);Tr("DDDD",rct);ys(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Qo(e)});function kAn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ai("m",["mm",2],0,"minute");Tr("m",sl,kCe);Tr("mm",sl,vh);ys(["m","mm"],Jg);var LAn=ID("Minutes",!1);ai("s",["ss",2],0,"second");Tr("s",sl,kCe);Tr("ss",sl,vh);ys(["s","ss"],My);var _An=ID("Seconds",!1);ai("S",0,0,function(){return~~(this.millisecond()/100)});ai(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ai(0,["SSS",3],0,"millisecond");ai(0,["SSSS",4],0,function(){return this.millisecond()*10});ai(0,["SSSSS",5],0,function(){return this.millisecond()*100});ai(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ai(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ai(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ai(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Tr("S",jQ,nct);Tr("SS",jQ,vh);Tr("SSS",jQ,rct);var ax,_ct;for(ax="SSSS";ax.length<=9;ax+="S")Tr(ax,ED);function NAn(e,t){t[lO]=Qo(("0."+e)*1e3)}for(ax="S";ax.length<=9;ax+="S")ys(ax,NAn);_ct=ID("Milliseconds",!1);ai("z",0,0,"zoneAbbr");ai("zz",0,0,"zoneName");function FAn(){return this._isUTC?"UTC":""}function WAn(){return this._isUTC?"Coordinated Universal Time":""}var In=Z6.prototype;In.add=ISn;In.calendar=FSn;In.clone=WSn;In.diff=$Sn;In.endOf=nAn;In.format=KSn;In.from=QSn;In.fromNow=ZSn;In.to=JSn;In.toNow=eAn;In.get=Yxn;In.invalidAt=dAn;In.isAfter=qSn;In.isBefore=BSn;In.isBetween=jSn;In.isSame=HSn;In.isSameOrAfter=VSn;In.isSameOrBefore=GSn;In.isValid=cAn;In.lang=Ect;In.locale=Tct;In.localeData=Rct;In.max=cSn;In.min=lSn;In.parsingFlags=uAn;In.set=Kxn;In.startOf=tAn;In.subtract=PSn;In.toArray=aAn;In.toObject=sAn;In.toDate=oAn;In.toISOString=XSn;In.inspect=YSn;typeof Symbol<"u"&&Symbol.for!=null&&(In[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});In.toJSON=lAn;In.toString=USn;In.unix=iAn;In.valueOf=rAn;In.creationData=pAn;In.eraName=mAn;In.eraNarrow=vAn;In.eraAbbr=bAn;In.eraYear=yAn;In.year=act;In.isLeapYear=Xxn;In.weekYear=OAn;In.isoWeekYear=zAn;In.quarter=In.quarters=DAn;In.month=dct;In.daysInMonth=own;In.week=In.weeks=hwn;In.isoWeek=In.isoWeeks=fwn;In.weeksInYear=RAn;In.weeksInWeekYear=IAn;In.isoWeeksInYear=TAn;In.isoWeeksInISOWeekYear=EAn;In.date=Lct;In.day=In.days=zwn;In.weekday=Twn;In.isoWeekday=Ewn;In.dayOfYear=kAn;In.hour=In.hours=_wn;In.minute=In.minutes=LAn;In.second=In.seconds=_An;In.millisecond=In.milliseconds=_ct;In.utcOffset=bSn;In.utc=MSn;In.local=CSn;In.parseZone=xSn;In.hasAlignedHourOffset=wSn;In.isDST=SSn;In.isLocal=OSn;In.isUtcOffset=zSn;In.isUtc=Sct;In.isUTC=Sct;In.zoneAbbr=FAn;In.zoneName=WAn;In.dates=Xf("dates accessor is deprecated. Use date instead.",Lct);In.months=Xf("months accessor is deprecated. Use month instead",dct);In.years=Xf("years accessor is deprecated. Use year instead",act);In.zone=Xf("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ySn);In.isDSTShifted=Xf("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ASn);function qAn(e){return ol(e*1e3)}function BAn(){return ol.apply(null,arguments).parseZone()}function Nct(e){return e}var Pa=ECe.prototype;Pa.calendar=Oxn;Pa.longDateFormat=Rxn;Pa.invalidDate=Pxn;Pa.ordinal=Lxn;Pa.preparse=Nct;Pa.postformat=Nct;Pa.relativeTime=Nxn;Pa.pastFuture=Fxn;Pa.set=Sxn;Pa.eras=hAn;Pa.erasParse=fAn;Pa.erasConvertYear=gAn;Pa.erasAbbrRegex=CAn;Pa.erasNameRegex=MAn;Pa.erasNarrowRegex=xAn;Pa.months=twn;Pa.monthsShort=nwn;Pa.monthsParse=iwn;Pa.monthsRegex=swn;Pa.monthsShortRegex=awn;Pa.week=cwn;Pa.firstDayOfYear=pwn;Pa.firstDayOfWeek=dwn;Pa.weekdays=xwn;Pa.weekdaysMin=Swn;Pa.weekdaysShort=wwn;Pa.weekdaysParse=Own;Pa.weekdaysRegex=Rwn;Pa.weekdaysShortRegex=Iwn;Pa.weekdaysMinRegex=Pwn;Pa.isPM=kwn;Pa.meridiem=Nwn;function f9(e,t,n,r){var i=vM(),o=Ub().set(r,t);return i[n](o,e)}function Fct(e,t,n){if(Qy(e)&&(t=e,e=void 0),e=e||"",t!=null)return f9(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=f9(e,r,n,"month");return i}function UCe(e,t,n,r){typeof e=="boolean"?(Qy(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Qy(t)&&(n=t,t=void 0),t=t||"");var i=vM(),o=e?i._week.dow:0,a,s=[];if(n!=null)return f9(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=f9(t,(a+o)%7,r,"day");return s}function jAn(e,t){return Fct(e,t,"months")}function HAn(e,t){return Fct(e,t,"monthsShort")}function VAn(e,t,n){return UCe(e,t,n,"weekdays")}function GAn(e,t,n){return UCe(e,t,n,"weekdaysShort")}function $An(e,t,n){return UCe(e,t,n,"weekdaysMin")}Rx("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(e){var t=e%10,n=Qo(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});mt.lang=Xf("moment.lang is deprecated. Use moment.locale instead.",Rx);mt.langData=Xf("moment.langData is deprecated. Use moment.localeData instead.",vM);var B2=Math.abs;function UAn(){var e=this._data;return this._milliseconds=B2(this._milliseconds),this._days=B2(this._days),this._months=B2(this._months),e.milliseconds=B2(e.milliseconds),e.seconds=B2(e.seconds),e.minutes=B2(e.minutes),e.hours=B2(e.hours),e.months=B2(e.months),e.years=B2(e.years),this}function Wct(e,t,n,r){var i=Dm(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function XAn(e,t){return Wct(this,e,t,1)}function YAn(e,t){return Wct(this,e,t,-1)}function uke(e){return e<0?Math.floor(e):Math.ceil(e)}function KAn(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=uke(kfe(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=of(e/1e3),r.seconds=i%60,o=of(i/60),r.minutes=o%60,a=of(o/60),r.hours=a%24,t+=of(a/24),l=of(qct(t)),n+=l,t-=uke(kfe(l)),s=of(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function qct(e){return e*4800/146097}function kfe(e){return e*146097/4800}function QAn(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Yf(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+qct(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kfe(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function bM(e){return function(){return this.as(e)}}var Bct=bM("ms"),ZAn=bM("s"),JAn=bM("m"),eOn=bM("h"),tOn=bM("d"),nOn=bM("w"),rOn=bM("M"),iOn=bM("Q"),oOn=bM("y"),aOn=Bct;function sOn(){return Dm(this)}function lOn(e){return e=Yf(e),this.isValid()?this[e+"s"]():NaN}function D3(e){return function(){return this.isValid()?this._data[e]:NaN}}var cOn=D3("milliseconds"),uOn=D3("seconds"),dOn=D3("minutes"),pOn=D3("hours"),hOn=D3("days"),fOn=D3("months"),gOn=D3("years");function mOn(){return of(this.days()/7)}var ny=Math.round,kR={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function vOn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function bOn(e,t,n,r){var i=Dm(e).abs(),o=ny(i.as("s")),a=ny(i.as("m")),s=ny(i.as("h")),l=ny(i.as("d")),c=ny(i.as("M")),u=ny(i.as("w")),d=ny(i.as("y")),p=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d],p[2]=t,p[3]=+e>0,p[4]=r,vOn.apply(null,p)}function yOn(e){return e===void 0?ny:typeof e=="function"?(ny=e,!0):!1}function MOn(e,t){return kR[e]===void 0?!1:t===void 0?kR[e]:(kR[e]=t,e==="s"&&(kR.ss=t-1),!0)}function COn(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=kR,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},kR,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=bOn(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var Die=Math.abs;function AE(e){return(e>0)-(e<0)||+e}function KQ(){if(!this.isValid())return this.localeData().invalidDate();var e=Die(this._milliseconds)/1e3,t=Die(this._days),n=Die(this._months),r,i,o,a,s=this.asSeconds(),l,c,u,d;return s?(r=of(e/60),i=of(r/60),e%=60,r%=60,o=of(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=AE(this._months)!==AE(s)?"-":"",u=AE(this._days)!==AE(s)?"-":"",d=AE(this._milliseconds)!==AE(s)?"-":"",l+"P"+(o?c+o+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var ha=XQ.prototype;ha.isValid=fSn;ha.abs=UAn;ha.add=XAn;ha.subtract=YAn;ha.as=QAn;ha.asMilliseconds=Bct;ha.asSeconds=ZAn;ha.asMinutes=JAn;ha.asHours=eOn;ha.asDays=tOn;ha.asWeeks=nOn;ha.asMonths=rOn;ha.asQuarters=iOn;ha.asYears=oOn;ha.valueOf=aOn;ha._bubble=KAn;ha.clone=sOn;ha.get=lOn;ha.milliseconds=cOn;ha.seconds=uOn;ha.minutes=dOn;ha.hours=pOn;ha.days=hOn;ha.weeks=mOn;ha.months=fOn;ha.years=gOn;ha.humanize=COn;ha.toISOString=KQ;ha.toString=KQ;ha.toJSON=KQ;ha.locale=Tct;ha.localeData=Rct;ha.toIsoString=Xf("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",KQ);ha.lang=Ect;ai("X",0,0,"unix");ai("x",0,0,"valueOf");Tr("x",VQ);Tr("X",jxn);ys("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ys("x",function(e,t,n){n._d=new Date(Qo(e))});//! moment.js
mt.version="2.30.1";xxn(ol);mt.fn=In;mt.min=uSn;mt.max=dSn;mt.now=pSn;mt.utc=Ub;mt.unix=qAn;mt.months=jAn;mt.isDate=Q6;mt.locale=Rx;mt.invalid=qQ;mt.duration=Dm;mt.isMoment=xm;mt.weekdays=VAn;mt.parseZone=BAn;mt.localeData=vM;mt.isDuration=s7;mt.monthsShort=HAn;mt.weekdaysMin=$An;mt.defineLocale=WCe;mt.updateLocale=Bwn;mt.locales=jwn;mt.weekdaysShort=GAn;mt.normalizeUnits=Yf;mt.relativeTimeRounding=yOn;mt.relativeTimeThreshold=MOn;mt.calendarFormat=NSn;mt.prototype=In;mt.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"};const xOn=Object.freeze(Object.defineProperty({__proto__:null,default:mt},Symbol.toStringTag,{value:"Module"})),wOn=oK(xOn);var SOn=o7.exports,dke;function AOn(){return dke||(dke=1,(function(e){//! moment-timezone.js
//! version : 0.5.48
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(t,n){e.exports?e.exports=n(wOn):n(t.moment)})(SOn,function(t){t.version===void 0&&t.default&&(t=t.default);var n="0.5.48",r={},i={},o={},a={},s={},l;(!t||typeof t.version!="string")&&ee("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var c=t.version.split("."),u=+c[0],d=+c[1];(u<2||u===2&&d<6)&&ee("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com");function p(ne){return ne>96?ne-87:ne>64?ne-29:ne-48}function h(ne){var le=0,he=ne.split("."),be=he[0],me=he[1]||"",Me=1,Oe,de=0,ie=1;for(ne.charCodeAt(0)===45&&(le=1,ie=-1),le;le<be.length;le++)Oe=p(be.charCodeAt(le)),de=60*de+Oe;for(le=0;le<me.length;le++)Me=Me/60,Oe=p(me.charCodeAt(le)),de+=Oe*Me;return de*ie}function g(ne){for(var le=0;le<ne.length;le++)ne[le]=h(ne[le])}function m(ne,le){for(var he=0;he<le;he++)ne[he]=Math.round((ne[he-1]||0)+ne[he]*6e4);ne[le-1]=1/0}function v(ne,le){var he=[],be;for(be=0;be<le.length;be++)he[be]=ne[le[be]];return he}function y(ne){var le=ne.split("|"),he=le[2].split(" "),be=le[3].split(""),me=le[4].split(" ");return g(he),g(be),g(me),m(me,be.length),{name:le[0],abbrs:v(le[1].split(" "),be),offsets:v(he,be),untils:me,population:le[5]|0}}function M(ne){ne&&this._set(y(ne))}function C(ne,le){var he=le.length;if(ne<le[0])return 0;if(he>1&&le[he-1]===1/0&&ne>=le[he-2])return he-1;if(ne>=le[he-1])return-1;for(var be,me=0,Me=he-1;Me-me>1;)be=Math.floor((me+Me)/2),le[be]<=ne?me=be:Me=be;return Me}M.prototype={_set:function(ne){this.name=ne.name,this.abbrs=ne.abbrs,this.untils=ne.untils,this.offsets=ne.offsets,this.population=ne.population},_index:function(ne){var le=+ne,he=this.untils,be;if(be=C(le,he),be>=0)return be},countries:function(){var ne=this.name;return Object.keys(o).filter(function(le){return o[le].zones.indexOf(ne)!==-1})},parse:function(ne){var le=+ne,he=this.offsets,be=this.untils,me=be.length-1,Me,Oe,de,ie;for(ie=0;ie<me;ie++)if(Me=he[ie],Oe=he[ie+1],de=he[ie&&ie-1],Me<Oe&&se.moveAmbiguousForward?Me=Oe:Me>de&&se.moveInvalidForward&&(Me=de),le<be[ie]-Me*6e4)return he[ie];return he[me]},abbr:function(ne){return this.abbrs[this._index(ne)]},offset:function(ne){return ee("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(ne)]},utcOffset:function(ne){return this.offsets[this._index(ne)]}};function x(ne,le){this.name=ne,this.zones=le}function w(ne){var le=ne.toTimeString(),he=le.match(/\([a-z ]+\)/i);he&&he[0]?(he=he[0].match(/[A-Z]/g),he=he?he.join(""):void 0):(he=le.match(/[A-Z]{3,5}/g),he=he?he[0]:void 0),he==="GMT"&&(he=void 0),this.at=+ne,this.abbr=he,this.offset=ne.getTimezoneOffset()}function S(ne){this.zone=ne,this.offsetScore=0,this.abbrScore=0}S.prototype.scoreOffsetAt=function(ne){this.offsetScore+=Math.abs(this.zone.utcOffset(ne.at)-ne.offset),this.zone.abbr(ne.at).replace(/[^A-Z]/g,"")!==ne.abbr&&this.abbrScore++};function A(ne,le){for(var he,be;be=((le.at-ne.at)/12e4|0)*6e4;)he=new w(new Date(ne.at+be)),he.offset===ne.offset?ne=he:le=he;return ne}function z(){var ne=new Date().getFullYear()-2,le=new w(new Date(ne,0,1)),he=le.offset,be=[le],me,Me,Oe,de;for(de=1;de<48;de++)Oe=new Date(ne,de,1).getTimezoneOffset(),Oe!==he&&(Me=new w(new Date(ne,de,1)),me=A(le,Me),be.push(me),be.push(new w(new Date(me.at+6e4))),le=Me,he=Oe);for(de=0;de<4;de++)be.push(new w(new Date(ne+de,0,1))),be.push(new w(new Date(ne+de,6,1)));return be}function O(ne,le){return ne.offsetScore!==le.offsetScore?ne.offsetScore-le.offsetScore:ne.abbrScore!==le.abbrScore?ne.abbrScore-le.abbrScore:ne.zone.population!==le.zone.population?le.zone.population-ne.zone.population:le.zone.name.localeCompare(ne.zone.name)}function T(ne,le){var he,be;for(g(le),he=0;he<le.length;he++)be=le[he],s[be]=s[be]||{},s[be][ne]=!0}function I(ne){var le=ne.length,he={},be=[],me={},Me,Oe,de,ie;for(Me=0;Me<le;Me++)if(de=ne[Me].offset,!me.hasOwnProperty(de)){ie=s[de]||{};for(Oe in ie)ie.hasOwnProperty(Oe)&&(he[Oe]=!0);me[de]=!0}for(Me in he)he.hasOwnProperty(Me)&&be.push(a[Me]);return be}function P(){try{var ne=Intl.DateTimeFormat().resolvedOptions().timeZone;if(ne&&ne.length>3){var le=a[F(ne)];if(le)return le;ee("Moment Timezone found "+ne+" from the Intl api, but did not have that data loaded.")}}catch{}var he=z(),be=he.length,me=I(he),Me=[],Oe,de,ie;for(de=0;de<me.length;de++){for(Oe=new S(W(me[de])),ie=0;ie<be;ie++)Oe.scoreOffsetAt(he[ie]);Me.push(Oe)}return Me.sort(O),Me.length>0?Me[0].zone.name:void 0}function N(ne){return(!l||ne)&&(l=P()),l}function F(ne){return(ne||"").toLowerCase().replace(/\//g,"_")}function L(ne){var le,he,be,me;for(typeof ne=="string"&&(ne=[ne]),le=0;le<ne.length;le++)be=ne[le].split("|"),he=be[0],me=F(he),r[me]=ne[le],a[me]=he,T(me,be[2].split(" "))}function W(ne,le){ne=F(ne);var he=r[ne],be;return he instanceof M?he:typeof he=="string"?(he=new M(he),r[ne]=he,he):i[ne]&&le!==W&&(be=W(i[ne],W))?(he=r[ne]=new M,he._set(be),he.name=a[ne],he):null}function H(){var ne,le=[];for(ne in a)a.hasOwnProperty(ne)&&(r[ne]||r[i[ne]])&&a[ne]&&le.push(a[ne]);return le.sort()}function j(){return Object.keys(o)}function G(ne){var le,he,be,me;for(typeof ne=="string"&&(ne=[ne]),le=0;le<ne.length;le++)he=ne[le].split("|"),be=F(he[0]),me=F(he[1]),i[be]=me,a[be]=he[0],i[me]=be,a[me]=he[1]}function q(ne){var le,he,be,me;if(!(!ne||!ne.length))for(le=0;le<ne.length;le++)me=ne[le].split("|"),he=me[0].toUpperCase(),be=me[1].split(" "),o[he]=new x(he,be)}function $(ne){return ne=ne.toUpperCase(),o[ne]||null}function U(ne,le){if(ne=$(ne),!ne)return null;var he=ne.zones.sort();return le?he.map(function(be){var me=W(be);return{name:be,offset:me.utcOffset(new Date)}}):he}function X(ne){L(ne.zones),G(ne.links),q(ne.countries),se.dataVersion=ne.version}function Q(ne){return Q.didShowError||(Q.didShowError=!0,ee("moment.tz.zoneExists('"+ne+"') has been deprecated in favor of !moment.tz.zone('"+ne+"')")),!!W(ne)}function re(ne){var le=ne._f==="X"||ne._f==="x";return!!(ne._a&&ne._tzm===void 0&&!le)}function ee(ne){typeof console<"u"&&typeof console.error=="function"&&console.error(ne)}function se(ne){var le=Array.prototype.slice.call(arguments,0,-1),he=arguments[arguments.length-1],be=t.utc.apply(null,le),me;return!t.isMoment(ne)&&re(be)&&(me=W(he))&&be.add(me.parse(be),"minutes"),be.tz(he),be}se.version=n,se.dataVersion="",se._zones=r,se._links=i,se._names=a,se._countries=o,se.add=L,se.link=G,se.load=X,se.zone=W,se.zoneExists=Q,se.guess=N,se.names=H,se.Zone=M,se.unpack=y,se.unpackBase60=h,se.needsOffset=re,se.moveInvalidForward=!0,se.moveAmbiguousForward=!1,se.countries=j,se.zonesForCountry=U;var pe=t.fn;t.tz=se,t.defaultZone=null,t.updateOffset=function(ne,le){var he=t.defaultZone,be;if(ne._z===void 0&&(he&&re(ne)&&!ne._isUTC&&ne.isValid()&&(ne._d=t.utc(ne._a)._d,ne.utc().add(he.parse(ne),"minutes")),ne._z=he),ne._z)if(be=ne._z.utcOffset(ne),Math.abs(be)<16&&(be=be/60),ne.utcOffset!==void 0){var me=ne._z;ne.utcOffset(-be,le),ne._z=me}else ne.zone(be,le)},pe.tz=function(ne,le){if(ne){if(typeof ne!="string")throw new Error("Time zone name must be a string, got "+ne+" ["+typeof ne+"]");return this._z=W(ne),this._z?t.updateOffset(this,le):ee("Moment Timezone has no data for "+ne+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name};function te(ne){return function(){return this._z?this._z.abbr(this):ne.call(this)}}function ce(ne){return function(){return this._z=null,ne.apply(this,arguments)}}function oe(ne){return function(){return arguments.length>0&&(this._z=null),ne.apply(this,arguments)}}pe.zoneName=te(pe.zoneName),pe.zoneAbbr=te(pe.zoneAbbr),pe.utc=ce(pe.utc),pe.local=ce(pe.local),pe.utcOffset=oe(pe.utcOffset),t.tz.setDefault=function(ne){return(u<2||u===2&&d<9)&&ee("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=ne?W(ne):null,t};var ae=t.momentProperties;return Object.prototype.toString.call(ae)==="[object Array]"?(ae.push("_z"),ae.push("_a")):ae&&(ae._z=null),t})})(o7)),o7.exports}const OOn="2025b",zOn=JSON.parse('["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|LMT PMT WET WEST CET CEST|-c.c -9.l 0 -10 -10 -20|01232323232323232454542423234542324|-3bQ0c.c MDA2.P cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.i -20|01|-2sw2a.i|26e5","Africa/Cairo|LMT EET EEST|-25.9 -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBC5.9 1AQM5.9 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0 kSp0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|32e5","Africa/Ceuta|LMT WET WEST CET CEST|l.g 0 -10 -10 -20|0121212121212121212121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2M0M0 GdX0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0|20e4","Africa/Johannesburg|LMT SAST SAST SAST|-1Q -1u -20 -30|0123232|-39EpQ qTcm 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|LMT MMT MMT GMT|H.8 H.8 I.u 0|0123|-3ygng.Q 1usM0 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT LMT GMT WAT|-q.U A.J 0 -10|01232|-3tooq.U 18aoq.U 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|LMT PMT CET CEST|-E.I -9.l -10 -20|01232323232323232323232323232323232|-3zO0E.I 1cBAv.n 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|LMT +0130 SAST SAST CAT WAT|-18.o -1u -20 -30 -20 -10|012324545454545454545454545454545454545454545454545454|-39Ep8.o qTbC.o 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|LMT LMT NST NWT NPT BST BDT AHST HST HDT|-cd.m bK.C b0 a0 a0 b0 a0 a0 a0 90|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVzf.p 1EX1d.m 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|LMT LMT AST AWT APT AHST AHDT YST AKST AKDT|-e0.o 9X.A a0 90 90 a0 90 90 90 80|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVxs.n 1EX20.o 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|LMT AST AWT APT|4o.p 40 30 30|01231|-2Qi7z.z 1IUbz.z 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|LMT CMT -04 -03 -02|3R.M 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343434343|-331U6.c 125cn pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|LMT CMT -04 -03 -02|4n.8 4g.M 40 30 20|012323232323232323232323232323232323232323234343434243432343|-331TA.Q 125bR.E pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|LMT CMT -04 -03 -02|4g.M 4g.M 40 30 20|012323232323232323232323232323232323232323234343434243434343|-331TH.c 125c0 pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|LMT CMT -04 -03 -02|4l.c 4g.M 40 30 20|0123232323232323232323232323232323232323232343434232434343|-331TC.M 125bT.A pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|LMT CMT -04 -03 -02|4r.o 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342343432343|-331Tw.A 125bN.o pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|LMT CMT -04 -03 -02|4z.g 4g.M 40 30 20|012323232323232323232323232323232323232323234343423232432343|-331To.I 125bF.w pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|LMT CMT -04 -03 -02|4A.Q 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343432343|-331Tn.8 125bD.U pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|LMT CMT -04 -03 -02|4l.E 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342434343|-331TC.k 125bT.8 pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|LMT CMT -04 -03 -02|4y.4 4g.M 40 30 20|0123232323232323232323232323232323232323232343434342343432343|-331Tp.U 125bG.I pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|LMT CMT -04 -03 -02|4p.o 4g.M 40 30 20|0123232323232323232323232323232323232323232343434232323432323|-331Ty.A 125bP.o pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|LMT CMT -04 -03 -02|4k.Q 4g.M 40 30 20|01232323232323232323232323232323232323232323434343424343234343|-331TD.8 125bT.U pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|LMT CMT -04 -03 -02|4x.c 4g.M 40 30 20|012323232323232323232323232323232323232323234343434343432343|-331Tq.M 125bH.A pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|LMT AMT -04 -03|3O.E 3O.E 40 30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-3eLw9.k 1FGo0 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0|28e5","America/Panama|LMT CMT EST|5i.8 5j.A 50|012|-3eLuF.Q Iy01.s|15e5","America/Bahia_Banderas|LMT MST CST MDT CDT|71 70 60 60 50|01213121313131313131313131313131313142424242424242424242424242|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 otX0 2bmP0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|LMT BMT -05 -04|4U.g 4U.g 50 40|01232|-3sTv3.I 1eIo0 38yo3.I 1PX0|90e5","America/Boise|LMT PST PDT MST MWT MPT MDT|7I.N 80 70 70 60 60 60|01212134536363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-3tFE0 1nEe0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDT CST CDT EST|0 70 60 60 60 60 50 50|012314141414141414141414141414141414141414141414141414141414567541414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-21Jc0 RO90 8x20 ix0 14HB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST CDT EDT|5L.4 60 50 50 40|01213132431313131313131313131313131313131312|-1UQG0 2q3C0 2tx0 wgP0 1lb0 14p0 1lb0 14o0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|LMT CMT -0430 -04|4r.I 4r.E 4u 40|012323|-3eLvw.g ROnX.U 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|LMT CST CDT EST CWT CPT|5O.A 60 50 50 50 50|012121212121212121212121212121212121213121212121214512121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST MDT CDT|74.k 70 60 60 50|0121312424231313131313131313131313131313131313131313131313132|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|81e4","America/Ciudad_Juarez|LMT MST CST MDT CDT|75.U 70 60 60 50|01213124242313131313131313131313131313131313131313131313131321313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0 cm0 EP0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Costa_Rica|LMT SJMT CST CDT|5A.d 5A.d 60 50|01232323232|-3eLun.L 1fyo0 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Coyhaique|LMT SMT -05 -04 -03|4M.g 4G.J 50 40 30|012131323232323232323434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvb.I MJbS.t fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0|","America/Phoenix|LMT MST MDT MWT|7s.i 70 60 60|012121313121|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|LMT PST PDT PWT PPT MST|80.U 80 70 70 70 70|01213412121212121212121212121212121212121212121212121212125|-3tofX.4 1nspX.4 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|LMT YST YDT YWT YPT YDDT PST PDT MST|9h.E 90 80 80 80 70 80 70 70|0121213415167676767676767676767676767676767676767676767676767676767676767676767676767676767678|-2MSeG.k GWpG.k 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|LMT MST MDT MWT MPT|6X.U 70 60 60 60|012121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFF0 1nEe0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 4Q00 8mp0 8lz0 SN0 1cL0 pHB0 83r0 AU0 5MN0 1Rz0 38N0 Wn0 1qP0 11z0 1o10 11z0 3NA0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|LMT PST PDT PWT PPT MST|8a.L 80 70 70 70 70|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121215|-3tofN.d 1nspN.d 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|LMT CST CDT CWT CPT EST EDT|5I.C 60 50 50 50 50 40|0121212134121212121212121212151565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02 -01|3q.U 30 20 10|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 2so0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|LMT NST NDT NST NDT NWT NPT AST ADT ADDT|41.E 3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|0121343434343434356343434343434343434343434343434343434343437878787878787878787878787878787878787878787879787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787|-3tojW.k 1nspt.c 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|LMT KMT EST EDT AST|4I.w 57.a 50 40 40|01232323232323232323232323232323232323232323232323232323232323232323232323243232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLvf.s RK0m.C 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|LMT QMT -05 -04|5j.k 5e 50 40|01232|-3eLuE.E 1DNzS.E 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|LMT HMT CST CDT|5t.s 5t.A 50 40|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLuu.w 1qx00.8 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST MDT|7n.Q 70 60 60|01213121313131|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 otX0 2bmP0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|LMT CST CDT CWT CPT EST|5K.u 60 50 50 50 50|01212134121212121212121212121212121212151212121212121212121212121212121212121212121212121252121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|LMT CST CDT CWT CPT EST EDT|5J.n 60 50 50 50 50 40|01212134121212121212121215656565656525656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|LMT CST CDT CWT CPT EST EDT|5N.7 60 50 50 50 50 40|012121341212121212121212121215121212121212121212121252125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|LMT CST CDT CWT CPT EST EDT|5L.3 60 50 50 50 50 40|012121341212121212121212121512165652121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|LMT CST CDT CWT CPT EST EDT|5E.g 60 50 50 50 50 40|0121213415656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|LMT CST CDT CWT CPT EST EDT|5O.7 60 50 50 50 50 40|012121341212121212121212121212121565652125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|LMT CST CDT CWT CPT EST EDT|5K.p 60 50 50 50 50 40|012121341212121212121212121212121212121565652165656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDT MDT MST|0 80 70 60 70|01212121212121213434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-FnA0 L3K0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDT CST CDT|0 40 40 50 40 60 50|0123434343434343434343434343434343434343434343434343434343456343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-16K00 7nX0 iv0 14HB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|LMT KMT EST EDT|57.a 57.a 50 40|01232323232323232323232|-3eLuQ.O RK00 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|LMT LMT PST PWT PPT PDT YDT YST AKST AKDT|-f2.j 8V.F 80 70 70 70 80 90 90 80|0123425252525252525252525252625252578989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVwq.s 1EX12.j 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|LMT CST CDT CWT CPT EST EDT|5H.2 60 50 50 50 50 40|01212121213412121212121212121212121212565656565656525656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|LMT CST CDT CWT CPT EST EDT|5D.o 60 50 50 50 50 40|01212134121212121212121212121212121212121212121212121212121212121212121212565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFG0 1nEe0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|LMT CMT BST -04|4w.A 4w.A 3w.A 40|0123|-3eLvr.o 1FIo0 13b0|19e5","America/Lima|LMT LMT -05 -04|58.c 58.A 50 40|01232323232323232|-3eLuP.M JcM0.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|LMT PST PDT PWT PPT|7Q.W 80 70 70 70|0121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFE0 1nEe0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|LMT MMT CST EST CDT|5J.8 5J.c 60 50 50|01232424232324242|-3eLue.Q 1Mhc0.4 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|LMT FFMT AST ADT|44.k 44.k 40 30|01232|-3eLvT.E PTA0 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6u 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST MDT|75.E 70 60 60|01213121313131313131313131313131313131313131313131313131313131|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 otX0 2bmP0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|44e4","America/Menominee|LMT CST CDT CWT CPT EST|5O.r 60 50 50 50 50|012121341212152121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3pdG9.x 1jce9.x 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131|-1UQG0 2q3C0 24n0 wG10 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|11e5","America/Metlakatla|LMT LMT PST PWT PPT PDT AKST AKDT|-fd.G 8K.i 80 70 70 70 90 80|0123425252525252525252525252525252526767672676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-48Pzs.L 1jVwf.5 1EX1d.G 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST MDT CDT CWT|6A.A 70 60 60 50 50|012131242425242424242424242424242424242424242424242424242424242424242|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mxUf.k 2LHcf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|LMT EST AST ADT AWT APT|4j.8 50 40 30 30 30|0123232323232323232323245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3txvE.Q J4ME.Q CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT MST CST MDT CDT|6F.g 70 60 60 50|012131242424242424242424242424242424242424242424242424242424242|-1UQG0 dep0 8lz0 16p0 11z0 1dd0 2gmp0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|LMT EST EDT EWT EPT|5h.w 50 40 40 40|012121212121212121212121212121212121212121212123412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-32B6G.s UFdG.s 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1qL0 11B0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|LMT EST EDT EWT EPT|4U.2 50 40 40 40|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tFH0 1nEe0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nome|LMT LMT NST NWT NPT BST BDT YST AKST AKDT|-cW.m b1.C b0 a0 a0 b0 a0 90 90 80|01234256565656565656565656565656565678989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898989898|-48Pzs.L 1jVyu.p 1EX1W.m 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|LMT MST MDT MWT MPT CST CDT|6L.7 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|LMT MST MDT MWT MPT CST CDT|6J.c 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212125656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|LMT MST MDT MWT MPT CST CDT|6J.D 70 60 60 60 60 50|0121213412121212121212121212121212121212121212121212121212121212121212121212121212565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tFF0 1nEe0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST MDT CDT|6V.E 70 60 60 50|0121312424231313131313131313131313131313131313131313131313132424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-1UQF0 deo0 8lz0 16p0 11z0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0 Rc0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|LMT PPMT EST EDT|4N.k 4N 50 40|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3eLva.E 15RLX.E 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|LMT SMT -05 -04 -03|4H.E 4G.J 50 40 30|01213132323232323232343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvg.k MJbX.5 fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Winnipeg|LMT CST CDT CWT CPT|6s.A 60 50 50 50|0121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3kLtv.o 1a3bv.o WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Rankin_Inlet|-00 CST CDT EST|0 60 50 50|01212121212121212121212121212121212121212121212121212121212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-vDc0 Bjk0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDT EST|0 60 50 50|01212121212121212121212121212121212121212121212121212121212321212121212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-SnA0 103I0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|LMT SMT -05 -04 -03|4G.J 4G.J 50 40 30|0121313232323232323432343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLvh.f MJc0 fJAh.f 5knG.J 1Vzh.f jRAG.J 1pbh.f 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 hX0 1q10 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|LMT SDMT EST EDT -0430 AST|4D.A 4E 50 40 4u 40|012324242424242525|-3eLvk.o 1Jic0.o 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|012132323232323232323232323232323232323232323232323232323232323232323232323232323232323232121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 2pA0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|452","America/Sitka|LMT LMT PST PWT PPT PDT YST AKST AKDT|-eW.L 91.d 80 70 70 70 90 90 80|0123425252525252525252525252525252567878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787|-48Pzs.L 1jVwu 1EX0W.L 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|LMT NST NDT NST NDT NWT NPT NDDT|3u.Q 3u.Q 2u.Q 3u 2u 2u 2u 1u|012121212121212121212121212121212121213434343434343435634343434343434343434343434343434343434343434343434343434343434343434343434343434343437343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3tokt.8 1l020 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Vancouver|LMT PST PDT PWT PPT|8c.s 80 70 70 70|01213412121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3tofL.w 1nspL.w 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|LMT YST YDT YWT YPT YDDT PST PDT MST|90.c 90 80 80 80 70 80 70 70|0121213415167676767676767676767676767676767676767676767676767676767676767676767676767676767678|-2MSeX.M GWpX.M 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 LA0 ytd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Yakutat|LMT LMT YST YWT YPT YDT AKST AKDT|-eF.5 9i.T 90 80 80 80 90 80|0123425252525252525252525252525252526767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-48Pzs.L 1jVwL.G 1EX1F.5 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","Antarctica/Casey|-00 +08 +11|0 -80 -b0|012121212121212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01 14kX 1lf1 14kX 1lf1 13bX|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|LMT PMMT +10|-9M.E -9M.w -a0|012|-3D8VM.E AvA0.8|25e4","Antarctica/Macquarie|-00 AEST AEDT|0 -a0 -b0|0121012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2OPc0 Fb40 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|LMT NZMT NZST NZST NZDT|-bD.4 -bu -cu -c0 -d0|012131313131313131313131313134343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-46jLD.4 2nEO9.4 Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +07 +05|0 -70 -50|01012|-tjA0 1rWh0 1Nj0 1aTv0|25","Europe/Berlin|LMT CET CEST CEMT|-R.s -10 -20 -30|012121212121212321212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-36RcR.s UbWR.s 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|41e5","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|0123232323232323232323212323232323232323232323232321|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 L4m0|15e5","Asia/Amman|LMT EET EEST +03|-2n.I -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212123|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|LMT BMT +03 +04|-2V.E -2V.A -30 -40|0123232323232323232323232323232323232323232323232323232|-3eLCV.E 18ao0.4 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|LMT BMT +07|-6G.4 -6G.4 -70|012|-3D8SG.4 1C000|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|LMT EET EEST|-2m -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3D8Om 1BWom 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|42e4","Asia/Kolkata|LMT HMT MMT IST +0630|-5R.s -5R.k -5l.a -5u -6u|01234343|-4Fg5R.s BKo0.8 1rDcw.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Shanghai|LMT CST CDT|-85.H -80 -90|012121212121212121212121212121|-2M0U5.H Iuo5.H 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|LMT MMT +0530 +06 +0630|-5j.o -5j.w -5u -60 -6u|012342432|-3D8Rj.o 13inX.Q 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|LMT HMT +0630 +0530 +06 +07|-61.E -5R.k -6u -5u -60 -70|01232454|-3eLG1.E 26008.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST +03|-2p.c -20 -30 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212123|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le80 1dnX0 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|","Asia/Gaza|LMT EET EEST IST IDT|-2h.Q -20 -30 -20 -30|0121212121212121212121212121212121234343434343434343434343434343431212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBCh.Q 1Azeh.Q MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 XA0 1qp0 1cN0 1cL0 1a10 1fz0 17d0 1in0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1lb0 14p0 1in0 17d0 1cL0 1cN0 19X0 1fB0 14n0 jB0 2L0 11B0 WL0 gN0 8n0 11B0 TX0 gN0 bb0 11B0 On0 jB0 dX0 11B0 Lz0 gN0 mn0 WN0 IL0 gN0 pb0 WN0 Db0 jB0 rX0 11B0 xz0 gN0 xz0 11B0 rX0 jB0 An0 11B0 pb0 gN0 IL0 WN0 mn0 gN0 Lz0 WN0 gL0 jB0 On0 11B0 bb0 gN0 TX0 11B0 5z0 jB0 WL0 11B0 2L0 jB0 11z0 1ip0 19X0 1cN0 1cL0 17d0 1in0 14p0 1lb0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1nX0 14p0 1in0 17d0 1fz0 1a10 19X0 1fB0 17b0 gN0 2L0 WN0 14n0 gN0 5z0 WN0 WL0 jB0 8n0 11B0 Rb0 gN0 dX0 11B0 Lz0 jB0 gL0 11B0 IL0 jB0 mn0 WN0 FX0 gN0 rX0 WN0 An0 jB0 uL0 11B0 uL0 gN0 An0 11B0 rX0 gN0 Db0 11B0 mn0 jB0 FX0 11B0 jz0 gN0 On0 WN0 dX0 jB0 Rb0 WN0 bb0 jB0 TX0 11B0 5z0 gN0 11z0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|18e5","Asia/Hebron|LMT EET EEST IST IDT|-2k.n -20 -30 -20 -30|012121212121212121212121212121212123434343434343434343434343434343121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBCk.n 1Azek.n MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 XA0 1qp0 1cN0 1cL0 1a10 1fz0 17d0 1in0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1lb0 14p0 1in0 17d0 1cL0 1cN0 19X0 1fB0 14n0 jB0 2L0 11B0 WL0 gN0 8n0 11B0 TX0 gN0 bb0 11B0 On0 jB0 dX0 11B0 Lz0 gN0 mn0 WN0 IL0 gN0 pb0 WN0 Db0 jB0 rX0 11B0 xz0 gN0 xz0 11B0 rX0 jB0 An0 11B0 pb0 gN0 IL0 WN0 mn0 gN0 Lz0 WN0 gL0 jB0 On0 11B0 bb0 gN0 TX0 11B0 5z0 jB0 WL0 11B0 2L0 jB0 11z0 1ip0 19X0 1cN0 1cL0 17d0 1in0 14p0 1lb0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1nX0 14p0 1in0 17d0 1fz0 1a10 19X0 1fB0 17b0 gN0 2L0 WN0 14n0 gN0 5z0 WN0 WL0 jB0 8n0 11B0 Rb0 gN0 dX0 11B0 Lz0 jB0 gL0 11B0 IL0 jB0 mn0 WN0 FX0 gN0 rX0 WN0 An0 jB0 uL0 11B0 uL0 gN0 An0 11B0 rX0 gN0 Db0 11B0 mn0 jB0 FX0 11B0 jz0 gN0 On0 WN0 dX0 jB0 Rb0 WN0 bb0 jB0 TX0 11B0 5z0 gN0 11z0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.u -76.u -70 -80 -90|0123423232|-2yC76.u bK00 1h7b6.u 5lz0 18o0 3Oq0 k5c0 aVX0 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|LMT IMT +07 +08 +09|-6V.5 -6V.5 -70 -80 -90|012343434343434343434343234343434343434343434343434343434343434343|-3D8SV.5 1Bxc0 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|LMT IMT EET EEST +03 +04|-1T.Q -1U.U -20 -30 -30 -40|01232323232323232323232323232323232323232323232345423232323232323232323232323232323232323232323232323232323232323234|-3D8NT.Q 1ePXW.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|LMT BMT +0720 +0730 +09 +08 WIB|-77.c -77.c -7k -7u -90 -80 -70|012343536|-49jH7.c 2hiLL.c luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|LMT JMT IST IDT IDDT|-2k.S -2k.E -20 -30 -40|012323232323232432323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3D8Ok.S 1wvA0.e SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|LMT +04 +0430|-4A.M -40 -4u|012|-3eLEA.M 2dTcA.M|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|LMT SMT +07 +0720 +0730 +09 +08|-6T.p -6T.p -70 -7k -7u -90 -80|01234546|-2M0ST.p aIM0 17anT.p l5XE 17bO 8Fyu 1so10|71e5","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|LMT LMT PST PDT JST|fU.8 -83.Q -80 -90 -90|012323432323232|-54m83.Q 2d8A3.Q 1urM0 un0 bW10 nb0 7qo0 1MM0 klB0 lz0 TwN0 1bb0 uNB0 rz0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 Mv90|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|LMT RMT +0630 +09|-6o.L -6o.L -6u -90|01232|-3D8So.L 1BnA0 SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|LMT CST JST CDT|-86 -80 -90 -90|012131313131313131313131313131313131313131|-30bk6 1FDc6 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|LMT TBMT +03 +04 +05|-2X.b -2X.b -30 -40 -50|01234343434343434343434323232343434343434343434323|-3D8OX.b 1LUM0 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +0430 +04 +05|-3p.I -3p.I -3u -4u -40 -50|012345423232323232323232323232323232323232323232323232323232323232323232|-2btDp.I Llc0 1FHaT.I 1pc0 120u Rc0 Dc0 1iMu JX0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|LMT JST JDT|-9i.X -90 -a0|0121212121|-3jE90 2qSo0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|LMT HMT -02 -01 +00 WET WEST|1G.E 1S.w 20 10 0 0 -10|012323232323232323232323232323232323232323232343234323432343232323232323232323232323232323232323232323434343434343434343434356434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3tomh.k 18aoh.k aPX0 Sp0 M00 1vb0 SN0 1vb0 SN0 1vb0 Td0 1vb0 SN0 1vb0 6600 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1uo0 1c00 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 CT90 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 Ap0 An0 wo0 Eo0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|LMT BMT BST AST ADT|4j.i 4j.i 3j.i 40 30|0121213434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3eLvE.G 16mo0 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|LMT FMT -01 +00 +01 WET WEST|17.A 17.A 10 0 -10 0 -10|01232323232323232323232323232323232323232323234323432343234323232323232323232323232323232323232323232356565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-3tomQ.o 18anQ.o aPX0 Sp0 M00 1vb0 SN0 1vb0 SN0 1vb0 Td0 1vb0 SN0 1vb0 6600 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1uo0 1c00 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 BJ90 1a00 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e4","Atlantic/South_Georgia|LMT -02|2q.8 20|01|-3eLxx.Q|30","Atlantic/Stanley|LMT SMT -04 -03 -02|3P.o 3P.o 40 30 20|0123232323232323434323232323232323232323232323232323232323232323232323|-3eLw8.A S200 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|LMT AEST AEDT|-a4.Q -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-32oW4.Q RlC4.Q xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|LMT ACST ACST ACDT|-9e.k -90 -9u -au|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-32oVe.k ak0e.k H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|LMT AEST AEDT|-ac.8 -a0 -b0|012121212121212121|-32Bmc.8 Ry2c.8 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|LMT AEST ACST ACST ACDT|-9p.M -a0 -90 -9u -au|0123434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-32oVp.M 3Lzp.M 6wp0 H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|LMT AEST AEDT|-9N.g -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-3109N.g Pk1N.g 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|LMT ACST ACST ACDT|-8H.k -90 -9u -au|01232323232|-32oUH.k ajXH.k H1Bu xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|LMT +0845 +0945|-8z.s -8J -9J|01212121212121212121|-30nIz.s PkpO.s xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|LMT AEST +1030 +1130 +11|-aA.k -a0 -au -bu -b0|01232323232424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424|-32oWA.k 3tzAA.k 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|LMT AEST AEDT|-9T.U -a0 -b0|0121212121212121212121|-32BlT.U Ry1T.U xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|LMT AEST AEDT|-9D.Q -a0 -b0|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-32oVD.Q RlBD.Q xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|LMT AWST AWDT|-7H.o -80 -90|01212121212121212121|-30nHH.o PkpH.o xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","Europe/Brussels|LMT BMT WET CET CEST WEST|-h.u -h.u 0 -10 -20 -10|012343434325252525252525252525252525252525252525252525434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3D8Mh.u u1Ah.u SO00 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|21e5","Pacific/Easter|LMT EMT -07 -06 -05|7h.s 7h.s 70 60 50|0123232323232323232323232323234343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-3eLsG.w 1HRc0 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0|30e2","Europe/Athens|LMT AMT EET EEST CEST CET|-1y.Q -1y.Q -20 -30 -20 -10|0123234545232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-30SNy.Q OMM1 CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|35e5","Europe/Dublin|LMT DMT IST GMT BST IST|p.l p.l -y.D 0 -10 -10|012343434343435353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353535353|-3BHby.D 1ra20 Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-10|+10|-a0|0||","Etc/GMT-11|+11|-b0|0||","Etc/GMT-12|+12|-c0|0||","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Etc/GMT-7|+07|-70|0||","Etc/GMT-8|+08|-80|0||","Etc/GMT-9|+09|-90|0||","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+2|-02|20|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Andorra|LMT WET CET CEST|-6.4 0 -10 -20|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2M0M6.4 1Pnc6.4 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/London|LMT GMT BST BDST|1.f 0 -10 -20|01212121212121212121212121212121212121212121212121232323232321212321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-4VgnW.J 2KHdW.J Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|LMT CET CEST|-1m -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3topm 2juLm 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Prague|LMT PMT CET CEST GMT|-V.I -V.I -10 -20 0|0123232323232323232423232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4QbAV.I 1FDc0 XPaV.I 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|13e5","Europe/Bucharest|LMT BMT EET EEST|-1I.o -1I.o -20 -30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3awpI.o 1AU00 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|LMT CET CEST|-1g.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-3cK1g.k 124Lg.k 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|LMT BMT CET CEST|-y.8 -t.K -10 -20|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4HyMy.8 1Dw04.m 1SfAt.K 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|LMT CMT BMT EET EEST CEST CET MSK MSD|-1T.k -1T -1I.o -20 -30 -20 -10 -30 -40|0123434343434343434345656578787878787878787878434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-3D8NT.k 1wNA0.k wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|67e4","Europe/Gibraltar|LMT GMT BST BDST CET CEST|l.o 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123232323232121232121212121212121212145454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-3BHbC.A 1ra1C.A Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|LMT HMT EET EEST|-1D.N -1D.N -20 -30|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3H0ND.N 1Iu00 OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|LMT CET CEST EET EEST MSK MSD +03|-1m -10 -20 -20 -30 -30 -40 -30|012121212121212343565656565656565654343434343434343434343434343434343434343434373|-36Rdm UbXm 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|LMT KMT EET MSK CEST CET MSD EEST|-22.4 -22.4 -20 -30 -20 -10 -40 -30|01234545363636363636363636367272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-3D8O2.4 1LUM0 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o10 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05 MSD MSK MSK|-3i.M -30 -40 -50 -40 -30 -40|0123232323232323232454524545454545454545454545454545454545454565|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 2pz0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212124121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 M00 1vb0 SN0 1vb0 SN0 1vb0 Td0 1vb0 SN0 1vb0 6600 18o0 3I00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1uo0 1c00 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 oiK0 1cM0 1cM0 1fB0 1cM0 1cM0 1cM0 1fA0 1a00 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Europe/Madrid|LMT WET WEST WEMT CET CEST|e.I 0 -10 -20 -10 -20|0121212121212121212321454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2M0M0 G5z0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|62e5","Europe/Malta|LMT CET CEST|-W.4 -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-35rcW.4 SXzW.4 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|LMT MMT EET MSK CEST CET MSD EEST +03|-1O.g -1O -20 -30 -20 -10 -40 -30 -30|012345454363636363636363636372727272727272727272727272727272727272728|-3D8NO.g 1LUM0.g eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Paris|LMT PMT WET WEST CEST CET WEMT|-9.l -9.l 0 -10 -20 -10 -20|01232323232323232323232323232323232323232323232323234545463654545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-3bQ09.l MDA0 cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|11e6","Europe/Moscow|LMT MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|01232434565756865656565656565656565698656565656565656565656565656565656565656a6|-3D8Ou.h 1sQM0 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Riga|LMT RMT LST EET MSK CEST CET MSD EEST|-1A.y -1A.y -2A.y -20 -30 -20 -10 -40 -30|0121213456565647474747474747474838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383838383|-3D8NA.y 1xde0 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|64e4","Europe/Rome|LMT RMT CET CEST|-N.U -N.U -10 -20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-4aU0N.U 15snN.U T000 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|LMT SMT EET MSK CEST CET MSD EEST MSK|-2g.o -2g -20 -30 -20 -10 -40 -30 -40|0123454543636363636363636363272727636363727272727272727272727272727272727283|-3D8Og.o 1LUM0.o eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eN0 1cM0 1cM0 1cM0 1cM0 dV0 WO0 1cM0 1cM0 1fy0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|LMT IMT EET CET CEST EEST|-1x.g -1U.U -20 -10 -20 -30|0123434325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-3D8Nx.g AiLA.k 1UFeU.U WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|12e5","Europe/Tallinn|LMT TMT CET CEST EET MSK MSD EEST|-1D -1D -10 -20 -20 -30 -40 -30|0123214532323565656565656565657474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474|-3D8ND 1wI00 teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Vienna|LMT CET CEST|-15.l -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-36Rd5.l UbX5.l 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|LMT WMT KMT CET EET MSK CEST MSD EEST|-1F.g -1o -1z.A -10 -20 -30 -20 -40 -30|0123435636365757575757575757584848484848484848463648484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484|-3D8NF.g 1u5Ah.g 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05 MSD MSK MSK|-2V.E -30 -40 -50 -40 -30 -40|012323232323232324545452454545454545454545454545454545454545456525|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1fA0 1cM0 2pz0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|LMT WMT CET CEST EET EEST|-1o -1o -10 -20 -20 -30|0123232345423232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-3D8No 1qDA0 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|17e5","Pacific/Honolulu|LMT HST HDT HWT HPT HST|av.q au 9u 9u 9u a0|01213415|-3061s.y 1uMdW.y 8x0 lef0 8wWu iAu 46p0|37e4","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Maldives|LMT MMT +05|-4S -4S -50|012|-3D8QS 3eLA0|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Pacific/Kwajalein|LMT +11 +10 +09 -12 +12|-b9.k -b0 -a0 -90 c0 -c0|0123145|-2M0X9.k 1rDA9.k akp0 6Up0 12ry0 Wan0|14e3","Pacific/Chatham|LMT +1215 +1245 +1345|-cd.M -cf -cJ -dJ|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-46jMd.M 37RbW.M 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT LMT -1130 -11 -10 +14 +13|-cx.4 bq.U bu b0 a0 -e0 -d0|012343456565656565656565656|-38Fox.4 J1A0 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|LMT PMMT +10 +09 +11|-am.g -9M.w -a0 -90 -b0|012324|-3D8Wm.g AvAx.I 1TCLM.w 7CN0 2MQp0|18e4","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|LMT -11 +13|bo.U b0 -d0|012|-2M0Az.4 4ufXz.4|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|012121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0|88e4","Pacific/Tarawa|LMT +12|-bw.4 -c0|01|-2M0Xw.4|29e3","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|LMT LMT GST +09 GDT ChST|el -9D -a0 -90 -b0 -a0|0123242424242424242425|-54m9D 2glc0 1DFbD 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Kiritimati|LMT -1040 -10 +14|at.k aE a0 -e0|0123|-2M0Bu.E 3bIMa.E B7Xk|51e2","Pacific/Kosrae|LMT LMT +11 +09 +10 +12|d8.4 -aP.U -b0 -90 -a0 -c0|0123243252|-54maP.U 2glc0 xsnP.U axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT LMT SST|-cB.c bm.M b0|012|-38FoB.c J1A0|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|LMT +1112 +1130 +1230 +11 +12|-bb.Q -bc -bu -cu -b0 -c0|0123245454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2M0Xb.Q 21ILX.Q W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Palau|LMT LMT +09|f2.4 -8V.U -90|012|-54m8V.U 2glc0|21e3","Pacific/Pitcairn|LMT -0830 -08|8E.k 8u 80|012|-2M0Dj.E 3UVXN.E|56","Pacific/Rarotonga|LMT LMT -1030 -0930 -10|-dk.U aD.4 au 9u a0|01234343434343434343434343434|-2Otpk.U 28zc0 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3"]'),TOn=["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/Reykjavik","Africa/Abidjan|Atlantic/St_Helena","Africa/Abidjan|Iceland","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|CST6CDT","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|MST7MDT","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|America/Yellowknife","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Iqaluit|America/Pangnirtung","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|PST8PDT","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|EST5EDT","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Panama|EST","America/Phoenix|America/Creston","America/Phoenix|MST","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|America/Nipigon","America/Toronto|America/Thunder_Bay","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|America/Rainy_River","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Bangkok|Indian/Christmas","Asia/Brunei|Asia/Kuching","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Dubai|Indian/Mahe","Asia/Dubai|Indian/Reunion","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Rangoon|Indian/Cocos","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Choibalsan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Athens|EET","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Berlin|Arctic/Longyearbyen","Europe/Berlin|Atlantic/Jan_Mayen","Europe/Berlin|Europe/Copenhagen","Europe/Berlin|Europe/Oslo","Europe/Berlin|Europe/Stockholm","Europe/Brussels|CET","Europe/Brussels|Europe/Amsterdam","Europe/Brussels|Europe/Luxembourg","Europe/Brussels|MET","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Kiev|Europe/Kyiv","Europe/Kiev|Europe/Uzhgorod","Europe/Kiev|Europe/Zaporozhye","Europe/Lisbon|Portugal","Europe/Lisbon|WET","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Paris|Europe/Monaco","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Maldives|Indian/Kerguelen","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guadalcanal|Pacific/Pohnpei","Pacific/Guadalcanal|Pacific/Ponape","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|HST","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Pacific/Chuuk","Pacific/Port_Moresby|Pacific/Truk","Pacific/Port_Moresby|Pacific/Yap","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Majuro","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],EOn=["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Puerto_Rico America/Antigua","AI|America/Puerto_Rico America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Troll Antarctica/Vostok Pacific/Auckland Pacific/Port_Moresby Asia/Riyadh Asia/Singapore Antarctica/McMurdo Antarctica/DumontDUrville Antarctica/Syowa","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla Asia/Tokyo","AW|America/Puerto_Rico America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Puerto_Rico America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Kuching Asia/Brunei","BO|America/La_Paz","BQ|America/Puerto_Rico America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Toronto America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Toronto America/Iqaluit America/Winnipeg America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Inuvik America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver America/Panama America/Puerto_Rico America/Phoenix America/Blanc-Sablon America/Atikokan America/Creston","CC|Asia/Yangon Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Coyhaique America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Puerto_Rico America/Curacao","CX|Asia/Bangkok Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Berlin Europe/Copenhagen","DM|America/Puerto_Rico America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Kosrae Pacific/Port_Moresby Pacific/Guadalcanal Pacific/Chuuk Pacific/Pohnpei","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Puerto_Rico America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Abidjan Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Puerto_Rico America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Africa/Abidjan Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Kanton Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Puerto_Rico America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Puerto_Rico America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Brussels Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Paris Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Puerto_Rico America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Tarawa Pacific/Kwajalein Pacific/Majuro","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Puerto_Rico America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Chihuahua America/Ciudad_Juarez America/Ojinaga America/Mazatlan America/Bahia_Banderas America/Hermosillo America/Tijuana","MY|Asia/Kuching Asia/Singapore Asia/Kuala_Lumpur","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Brussels Europe/Amsterdam","NO|Europe/Berlin Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Asia/Dubai Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Asia/Dubai Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Berlin Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Berlin Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Puerto_Rico America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Asia/Dubai Indian/Maldives Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Puerto_Rico America/Port_of_Spain","TV|Pacific/Tarawa Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kyiv","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Tarawa Pacific/Midway Pacific/Wake","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Puerto_Rico America/St_Vincent","VE|America/Caracas","VG|America/Puerto_Rico America/Tortola","VI|America/Puerto_Rico America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Tarawa Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"],ROn={version:OOn,zones:zOn,links:TOn,countries:EOn};var pke;function IOn(){if(pke)return Eie.exports;pke=1;var e=Eie.exports=AOn();return e.tz.load(ROn),Eie.exports}var POn=IOn();const ra=qn(POn);/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function LW(){return LW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LW.apply(this,arguments)}var sx;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(sx||(sx={}));const hke="popstate";function DOn(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return Lfe("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:g9(i)}return LOn(t,n,null,e)}function Tc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jct(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kOn(){return Math.random().toString(36).substr(2,8)}function fke(e,t){return{usr:e.state,key:e.key,idx:t}}function Lfe(e,t,n,r){return n===void 0&&(n=null),LW({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?PD(t):t,{state:n,key:t&&t.key||r||kOn()})}function g9(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function PD(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function LOn(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=sx.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(LW({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=sx.Pop;let v=u(),y=v==null?null:v-c;c=v,l&&l({action:s,location:m.location,delta:y})}function p(v,y){s=sx.Push;let M=Lfe(m.location,v,y);c=u()+1;let C=fke(M,c),x=m.createHref(M);try{a.pushState(C,"",x)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(x)}o&&l&&l({action:s,location:m.location,delta:1})}function h(v,y){s=sx.Replace;let M=Lfe(m.location,v,y);c=u();let C=fke(M,c),x=m.createHref(M);a.replaceState(C,"",x),o&&l&&l({action:s,location:m.location,delta:0})}function g(v){let y=i.location.origin!=="null"?i.location.origin:i.location.href,M=typeof v=="string"?v:g9(v);return M=M.replace(/ $/,"%20"),Tc(y,"No window.location.(origin|href) available to create URL for href: "+M),new URL(M,y)}let m={get action(){return s},get location(){return e(i,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(hke,d),l=v,()=>{i.removeEventListener(hke,d),l=null}},createHref(v){return t(i,v)},createURL:g,encodeLocation(v){let y=g(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(v){return a.go(v)}};return m}var gke;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gke||(gke={}));function _On(e,t,n){return n===void 0&&(n="/"),NOn(e,t,n)}function NOn(e,t,n,r){let i=typeof t=="string"?PD(t):t,o=XCe(i.pathname||"/",n);if(o==null)return null;let a=Hct(e);FOn(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=KOn(o);s=UOn(a[l],c)}return s}function Hct(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Tc(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ix([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(Tc(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Hct(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:GOn(c,o.index),routesMeta:u})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of Vct(o.path))i(o,a,l)}),t}function Vct(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=Vct(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function FOn(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$On(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const WOn=/^:[\w-]+$/,qOn=3,BOn=2,jOn=1,HOn=10,VOn=-2,mke=e=>e==="*";function GOn(e,t){let n=e.split("/"),r=n.length;return n.some(mke)&&(r+=VOn),t&&(r+=BOn),n.filter(i=>!mke(i)).reduce((i,o)=>i+(WOn.test(o)?qOn:o===""?jOn:HOn),r)}function $On(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function UOn(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=XOn({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),p=l.route;if(!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:Ix([o,d.pathname]),pathnameBase:ezn(Ix([o,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(o=Ix([o,d.pathnameBase]))}return a}function XOn(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=YOn(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:p,isOptional:h}=u;if(p==="*"){let m=s[d]||"";a=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const g=s[d];return h&&!g?c[p]=void 0:c[p]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function YOn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),jct(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function KOn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jct(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function XCe(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function QOn(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?PD(e):e;return{pathname:n?n.startsWith("/")?n:ZOn(n,t):t,search:tzn(r),hash:nzn(i)}}function ZOn(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function kie(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function JOn(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function YCe(e,t){let n=JOn(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function KCe(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=PD(e):(i=LW({},e),Tc(!i.pathname||!i.pathname.includes("?"),kie("?","pathname","search",i)),Tc(!i.pathname||!i.pathname.includes("#"),kie("#","pathname","hash",i)),Tc(!i.search||!i.search.includes("#"),kie("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=QOn(i,s),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Ix=e=>e.join("/").replace(/\/\/+/g,"/"),ezn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tzn=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nzn=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rzn(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Gct=["post","put","patch","delete"];new Set(Gct);const izn=["get",...Gct];new Set(izn);/**
 * React Router v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _W(){return _W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_W.apply(this,arguments)}const QCe=b.createContext(null),ozn=b.createContext(null),Iw=b.createContext(null),QQ=b.createContext(null),Yb=b.createContext({outlet:null,matches:[],isDataRoute:!1}),$ct=b.createContext(null);function azn(e,t){let{relative:n}=t===void 0?{}:t;DD()||Tc(!1);let{basename:r,navigator:i}=b.useContext(Iw),{hash:o,pathname:a,search:s}=Xct(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Ix([r,a])),i.createHref({pathname:l,search:s,hash:o})}function DD(){return b.useContext(QQ)!=null}function Pw(){return DD()||Tc(!1),b.useContext(QQ).location}function Uct(e){b.useContext(Iw).static||b.useLayoutEffect(e)}function fa(){let{isDataRoute:e}=b.useContext(Yb);return e?Czn():szn()}function szn(){DD()||Tc(!1);let e=b.useContext(QCe),{basename:t,future:n,navigator:r}=b.useContext(Iw),{matches:i}=b.useContext(Yb),{pathname:o}=Pw(),a=JSON.stringify(YCe(i,n.v7_relativeSplatPath)),s=b.useRef(!1);return Uct(()=>{s.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=KCe(c,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ix([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,o,e])}const lzn=b.createContext(null);function czn(e){let t=b.useContext(Yb).outlet;return t&&b.createElement(lzn.Provider,{value:e},t)}function Ms(){let{matches:e}=b.useContext(Yb),t=e[e.length-1];return t?t.params:{}}function Xct(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Iw),{matches:i}=b.useContext(Yb),{pathname:o}=Pw(),a=JSON.stringify(YCe(i,r.v7_relativeSplatPath));return b.useMemo(()=>KCe(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function uzn(e,t){return dzn(e,t)}function dzn(e,t,n,r){DD()||Tc(!1);let{navigator:i}=b.useContext(Iw),{matches:o}=b.useContext(Yb),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Pw(),u;if(t){var d;let v=typeof t=="string"?PD(t):t;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||Tc(!1),u=v}else u=c;let p=u.pathname||"/",h=p;if(l!=="/"){let v=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let g=_On(e,{pathname:h}),m=mzn(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Ix([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Ix([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n,r);return t&&m?b.createElement(QQ.Provider,{value:{location:_W({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:sx.Pop}},m):m}function pzn(){let e=Mzn(),t=rzn(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const hzn=b.createElement(pzn,null);class fzn extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(Yb.Provider,{value:this.props.routeContext},b.createElement($ct.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gzn(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(QCe);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Yb.Provider,{value:t},r)}function mzn(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&s?.[d.route.id]!==void 0);u>=0||Tc(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let d=a[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:p,errors:h}=n,g=d.route.loader&&p[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||g){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,p)=>{let h,g=!1,m=null,v=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,m=d.route.errorElement||hzn,l&&(c<0&&p===0?(xzn("route-fallback"),g=!0,v=null):c===p&&(g=!0,v=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),M=()=>{let C;return h?C=m:g?C=v:d.route.Component?C=b.createElement(d.route.Component,null):d.route.element?C=d.route.element:C=u,b.createElement(gzn,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:C})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?b.createElement(fzn,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:M(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):M()},null)}var Yct=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Yct||{}),Kct=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Kct||{});function vzn(e){let t=b.useContext(QCe);return t||Tc(!1),t}function bzn(e){let t=b.useContext(ozn);return t||Tc(!1),t}function yzn(e){let t=b.useContext(Yb);return t||Tc(!1),t}function Qct(e){let t=yzn(),n=t.matches[t.matches.length-1];return n.route.id||Tc(!1),n.route.id}function Mzn(){var e;let t=b.useContext($ct),n=bzn(),r=Qct();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Czn(){let{router:e}=vzn(Yct.UseNavigateStable),t=Qct(Kct.UseNavigateStable),n=b.useRef(!1);return Uct(()=>{n.current=!0}),b.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,_W({fromRouteId:t},o)))},[e,t])}const vke={};function xzn(e,t,n){vke[e]||(vke[e]=!0)}function wzn(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function HO(e){let{to:t,replace:n,state:r,relative:i}=e;DD()||Tc(!1);let{future:o,static:a}=b.useContext(Iw),{matches:s}=b.useContext(Yb),{pathname:l}=Pw(),c=fa(),u=KCe(t,YCe(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return b.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function Szn(e){return czn(e.context)}function cr(e){Tc(!1)}function Azn(e){let{basename:t="/",children:n=null,location:r,navigationType:i=sx.Pop,navigator:o,static:a=!1,future:s}=e;DD()&&Tc(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:o,static:a,future:_W({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=PD(r));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:g="default"}=r,m=b.useMemo(()=>{let v=XCe(u,l);return v==null?null:{location:{pathname:v,search:d,hash:p,state:h,key:g},navigationType:i}},[l,u,d,p,h,g,i]);return m==null?null:b.createElement(Iw.Provider,{value:c},b.createElement(QQ.Provider,{children:n,value:m}))}function ZQ(e){let{children:t,location:n}=e;return uzn(_fe(t),n)}new Promise(()=>{});function _fe(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let o=[...t,i];if(r.type===b.Fragment){n.push.apply(n,_fe(r.props.children,o));return}r.type!==cr&&Tc(!1),!r.props.index||!r.props.children||Tc(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=_fe(r.props.children,o)),n.push(a)}),n}/**
 * React Router DOM v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Nfe(){return Nfe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nfe.apply(this,arguments)}function Ozn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function zzn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tzn(e,t){return e.button===0&&(!t||t==="_self")&&!zzn(e)}function Ffe(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Ezn(e,t){let n=Ffe(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const Rzn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Izn="6";try{window.__reactRouterVersion=Izn}catch{}const Pzn="startTransition",bke=MW[Pzn];function Dzn(e){let{basename:t,children:n,future:r,window:i}=e,o=b.useRef();o.current==null&&(o.current=DOn({window:i,v5Compat:!0}));let a=o.current,[s,l]=b.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=b.useCallback(d=>{c&&bke?bke(()=>l(d)):l(d)},[l,c]);return b.useLayoutEffect(()=>a.listen(u),[a,u]),b.useEffect(()=>wzn(r),[r]),b.createElement(Azn,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const kzn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lzn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xo=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,p=Ozn(t,Rzn),{basename:h}=b.useContext(Iw),g,m=!1;if(typeof c=="string"&&Lzn.test(c)&&(g=c,kzn))try{let C=new URL(window.location.href),x=c.startsWith("//")?new URL(C.protocol+c):new URL(c),w=XCe(x.pathname,h);x.origin===C.origin&&w!=null?c=w+x.search+x.hash:m=!0}catch{}let v=azn(c,{relative:i}),y=_zn(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:d});function M(C){r&&r(C),C.defaultPrevented||y(C)}return b.createElement("a",Nfe({},p,{href:g||v,onClick:m||o?r:M,ref:n,target:l}))});var yke;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(yke||(yke={}));var Mke;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Mke||(Mke={}));function _zn(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=fa(),c=Pw(),u=Xct(e,{relative:a});return b.useCallback(d=>{if(Tzn(d,n)){d.preventDefault();let p=r!==void 0?r:g9(c)===g9(u);l(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[c,l,u,r,i,n,e,o,a,s])}function Rd(e){let t=b.useRef(Ffe(e)),n=b.useRef(!1),r=Pw(),i=b.useMemo(()=>Ezn(r.search,n.current?null:t.current),[r.search]),o=fa(),a=b.useCallback((s,l)=>{const c=Ffe(typeof s=="function"?s(i):s);n.current=!0,o("?"+c,l)},[o,i]);return[i,a]}var Zct=typeof global=="object"&&global&&global.Object===Object&&global,Nzn=typeof self=="object"&&self&&self.Object===Object&&self,Kb=Zct||Nzn||Function("return this")(),yP=Kb.Symbol,Jct=Object.prototype,Fzn=Jct.hasOwnProperty,Wzn=Jct.toString,y4=yP?yP.toStringTag:void 0;function qzn(e){var t=Fzn.call(e,y4),n=e[y4];try{e[y4]=void 0;var r=!0}catch{}var i=Wzn.call(e);return r&&(t?e[y4]=n:delete e[y4]),i}var Bzn=Object.prototype,jzn=Bzn.toString;function Hzn(e){return jzn.call(e)}var Vzn="[object Null]",Gzn="[object Undefined]",Cke=yP?yP.toStringTag:void 0;function Dw(e){return e==null?e===void 0?Gzn:Vzn:Cke&&Cke in Object(e)?qzn(e):Hzn(e)}function kD(e){return e!=null&&typeof e=="object"}var $zn="[object Symbol]";function JQ(e){return typeof e=="symbol"||kD(e)&&Dw(e)==$zn}function eut(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var tB=Array.isArray,xke=yP?yP.prototype:void 0,wke=xke?xke.toString:void 0;function tut(e){if(typeof e=="string")return e;if(tB(e))return eut(e,tut)+"";if(JQ(e))return wke?wke.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Uzn=/\s/;function Xzn(e){for(var t=e.length;t--&&Uzn.test(e.charAt(t)););return t}var Yzn=/^\s+/;function Kzn(e){return e&&e.slice(0,Xzn(e)+1).replace(Yzn,"")}function NW(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ske=NaN,Qzn=/^[-+]0x[0-9a-f]+$/i,Zzn=/^0b[01]+$/i,Jzn=/^0o[0-7]+$/i,e3n=parseInt;function m9(e){if(typeof e=="number")return e;if(JQ(e))return Ske;if(NW(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=NW(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Kzn(e);var n=Zzn.test(e);return n||Jzn.test(e)?e3n(e.slice(2),n?2:8):Qzn.test(e)?Ske:+e}var Ake=1/0,t3n=17976931348623157e292;function n3n(e){if(!e)return e===0?e:0;if(e=m9(e),e===Ake||e===-Ake){var t=e<0?-1:1;return t*t3n}return e===e?e:0}function r3n(e){var t=n3n(e),n=t%1;return t===t?n?t-n:t:0}var i3n="[object AsyncFunction]",o3n="[object Function]",a3n="[object GeneratorFunction]",s3n="[object Proxy]";function nut(e){if(!NW(e))return!1;var t=Dw(e);return t==o3n||t==a3n||t==i3n||t==s3n}var Lie=Kb["__core-js_shared__"],Oke=(function(){var e=/[^.]+$/.exec(Lie&&Lie.keys&&Lie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function l3n(e){return!!Oke&&Oke in e}var c3n=Function.prototype,u3n=c3n.toString;function k3(e){if(e!=null){try{return u3n.call(e)}catch{}try{return e+""}catch{}}return""}var d3n=/[\\^$.*+?()[\]{}|]/g,p3n=/^\[object .+?Constructor\]$/,h3n=Function.prototype,f3n=Object.prototype,g3n=h3n.toString,m3n=f3n.hasOwnProperty,v3n=RegExp("^"+g3n.call(m3n).replace(d3n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b3n(e){if(!NW(e)||l3n(e))return!1;var t=nut(e)?v3n:p3n;return t.test(k3(e))}function y3n(e,t){return e?.[t]}function LD(e,t){var n=y3n(e,t);return b3n(n)?n:void 0}var Wfe=LD(Kb,"WeakMap"),M3n=9007199254740991,C3n=/^(?:0|[1-9]\d*)$/;function x3n(e,t){var n=typeof e;return t=t??M3n,!!t&&(n=="number"||n!="symbol"&&C3n.test(e))&&e>-1&&e%1==0&&e<t}function w3n(e,t){return e===t||e!==e&&t!==t}var S3n=9007199254740991;function rut(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=S3n}function iut(e){return e!=null&&rut(e.length)&&!nut(e)}var A3n=Object.prototype;function out(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||A3n;return e===n}function O3n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var z3n="[object Arguments]";function zke(e){return kD(e)&&Dw(e)==z3n}var aut=Object.prototype,T3n=aut.hasOwnProperty,E3n=aut.propertyIsEnumerable,sut=zke((function(){return arguments})())?zke:function(e){return kD(e)&&T3n.call(e,"callee")&&!E3n.call(e,"callee")};function R3n(){return!1}var lut=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tke=lut&&typeof module=="object"&&module&&!module.nodeType&&module,I3n=Tke&&Tke.exports===lut,Eke=I3n?Kb.Buffer:void 0,P3n=Eke?Eke.isBuffer:void 0,cut=P3n||R3n,D3n="[object Arguments]",k3n="[object Array]",L3n="[object Boolean]",_3n="[object Date]",N3n="[object Error]",F3n="[object Function]",W3n="[object Map]",q3n="[object Number]",B3n="[object Object]",j3n="[object RegExp]",H3n="[object Set]",V3n="[object String]",G3n="[object WeakMap]",$3n="[object ArrayBuffer]",U3n="[object DataView]",X3n="[object Float32Array]",Y3n="[object Float64Array]",K3n="[object Int8Array]",Q3n="[object Int16Array]",Z3n="[object Int32Array]",J3n="[object Uint8Array]",eTn="[object Uint8ClampedArray]",tTn="[object Uint16Array]",nTn="[object Uint32Array]",Js={};Js[X3n]=Js[Y3n]=Js[K3n]=Js[Q3n]=Js[Z3n]=Js[J3n]=Js[eTn]=Js[tTn]=Js[nTn]=!0;Js[D3n]=Js[k3n]=Js[$3n]=Js[L3n]=Js[U3n]=Js[_3n]=Js[N3n]=Js[F3n]=Js[W3n]=Js[q3n]=Js[B3n]=Js[j3n]=Js[H3n]=Js[V3n]=Js[G3n]=!1;function rTn(e){return kD(e)&&rut(e.length)&&!!Js[Dw(e)]}function iTn(e){return function(t){return e(t)}}var uut=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tF=uut&&typeof module=="object"&&module&&!module.nodeType&&module,oTn=tF&&tF.exports===uut,_ie=oTn&&Zct.process,Rke=(function(){try{var e=tF&&tF.require&&tF.require("util").types;return e||_ie&&_ie.binding&&_ie.binding("util")}catch{}})(),Ike=Rke&&Rke.isTypedArray,dut=Ike?iTn(Ike):rTn,aTn=Object.prototype,sTn=aTn.hasOwnProperty;function lTn(e,t){var n=tB(e),r=!n&&sut(e),i=!n&&!r&&cut(e),o=!n&&!r&&!i&&dut(e),a=n||r||i||o,s=a?O3n(e.length,String):[],l=s.length;for(var c in e)sTn.call(e,c)&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||x3n(c,l)))&&s.push(c);return s}function cTn(e,t){return function(n){return e(t(n))}}var uTn=cTn(Object.keys,Object),dTn=Object.prototype,pTn=dTn.hasOwnProperty;function put(e){if(!out(e))return uTn(e);var t=[];for(var n in Object(e))pTn.call(e,n)&&n!="constructor"&&t.push(n);return t}function hTn(e){return iut(e)?lTn(e):put(e)}var fTn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gTn=/^\w*$/;function mTn(e,t){if(tB(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||JQ(e)?!0:gTn.test(e)||!fTn.test(e)||t!=null&&e in Object(t)}var FW=LD(Object,"create");function vTn(){this.__data__=FW?FW(null):{},this.size=0}function bTn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var yTn="__lodash_hash_undefined__",MTn=Object.prototype,CTn=MTn.hasOwnProperty;function xTn(e){var t=this.__data__;if(FW){var n=t[e];return n===yTn?void 0:n}return CTn.call(t,e)?t[e]:void 0}var wTn=Object.prototype,STn=wTn.hasOwnProperty;function ATn(e){var t=this.__data__;return FW?t[e]!==void 0:STn.call(t,e)}var OTn="__lodash_hash_undefined__";function zTn(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=FW&&t===void 0?OTn:t,this}function _z(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_z.prototype.clear=vTn;_z.prototype.delete=bTn;_z.prototype.get=xTn;_z.prototype.has=ATn;_z.prototype.set=zTn;function TTn(){this.__data__=[],this.size=0}function eZ(e,t){for(var n=e.length;n--;)if(w3n(e[n][0],t))return n;return-1}var ETn=Array.prototype,RTn=ETn.splice;function ITn(e){var t=this.__data__,n=eZ(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():RTn.call(t,n,1),--this.size,!0}function PTn(e){var t=this.__data__,n=eZ(t,e);return n<0?void 0:t[n][1]}function DTn(e){return eZ(this.__data__,e)>-1}function kTn(e,t){var n=this.__data__,r=eZ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function _D(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_D.prototype.clear=TTn;_D.prototype.delete=ITn;_D.prototype.get=PTn;_D.prototype.has=DTn;_D.prototype.set=kTn;var v9=LD(Kb,"Map");function LTn(){this.size=0,this.__data__={hash:new _z,map:new(v9||_D),string:new _z}}function _Tn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function tZ(e,t){var n=e.__data__;return _Tn(t)?n[typeof t=="string"?"string":"hash"]:n.map}function NTn(e){var t=tZ(this,e).delete(e);return this.size-=t?1:0,t}function FTn(e){return tZ(this,e).get(e)}function WTn(e){return tZ(this,e).has(e)}function qTn(e,t){var n=tZ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function L3(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}L3.prototype.clear=LTn;L3.prototype.delete=NTn;L3.prototype.get=FTn;L3.prototype.has=WTn;L3.prototype.set=qTn;var BTn="Expected a function";function ZCe(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(BTn);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ZCe.Cache||L3),n}ZCe.Cache=L3;var jTn=500;function HTn(e){var t=ZCe(e,function(r){return n.size===jTn&&n.clear(),r}),n=t.cache;return t}var VTn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GTn=/\\(\\)?/g,$Tn=HTn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(VTn,function(n,r,i,o){t.push(i?o.replace(GTn,"$1"):r||n)}),t});function qfe(e){return e==null?"":tut(e)}function UTn(e,t){return tB(e)?e:mTn(e,t)?[e]:$Tn(qfe(e))}function XTn(e){if(typeof e=="string"||JQ(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function YTn(e,t){t=UTn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[XTn(t[n++])];return n&&n==r?e:void 0}function Ot(e,t,n){var r=e==null?void 0:YTn(e,t);return r===void 0?n:r}var KTn=Kb.isFinite,QTn=Math.min;function ZTn(e){var t=Math[e];return function(n,r){if(n=m9(n),r=r==null?0:QTn(r3n(r),292),r&&KTn(n)){var i=(qfe(n)+"e").split("e"),o=t(i[0]+"e"+(+i[1]+r));return i=(qfe(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(n)}}var Bfe=LD(Kb,"DataView"),jfe=LD(Kb,"Promise"),Hfe=LD(Kb,"Set"),Pke="[object Map]",JTn="[object Object]",Dke="[object Promise]",kke="[object Set]",Lke="[object WeakMap]",_ke="[object DataView]",eEn=k3(Bfe),tEn=k3(v9),nEn=k3(jfe),rEn=k3(Hfe),iEn=k3(Wfe),IA=Dw;(Bfe&&IA(new Bfe(new ArrayBuffer(1)))!=_ke||v9&&IA(new v9)!=Pke||jfe&&IA(jfe.resolve())!=Dke||Hfe&&IA(new Hfe)!=kke||Wfe&&IA(new Wfe)!=Lke)&&(IA=function(e){var t=Dw(e),n=t==JTn?e.constructor:void 0,r=n?k3(n):"";if(r)switch(r){case eEn:return _ke;case tEn:return Pke;case nEn:return Dke;case rEn:return kke;case iEn:return Lke}return t});var Nie=function(){return Kb.Date.now()},oEn="Expected a function",aEn=Math.max,sEn=Math.min;function nB(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(oEn);t=m9(t)||0,NW(n)&&(u=!!n.leading,d="maxWait"in n,o=d?aEn(m9(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function h(S){var A=r,z=i;return r=i=void 0,c=S,a=e.apply(z,A),a}function g(S){return c=S,s=setTimeout(y,t),u?h(S):a}function m(S){var A=S-l,z=S-c,O=t-A;return d?sEn(O,o-z):O}function v(S){var A=S-l,z=S-c;return l===void 0||A>=t||A<0||d&&z>=o}function y(){var S=Nie();if(v(S))return M(S);s=setTimeout(y,m(S))}function M(S){return s=void 0,p&&r?h(S):(r=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function x(){return s===void 0?a:M(Nie())}function w(){var S=Nie(),A=v(S);if(r=arguments,i=this,l=S,A){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),a}return w.cancel=C,w.flush=x,w}function lEn(e,t){return eut(t,function(n){return e[n]})}function cEn(e){return e==null?[]:lEn(e,hTn(e))}var uEn="[object Boolean]";function dEn(e){return e===!0||e===!1||kD(e)&&Dw(e)==uEn}var pEn="[object Map]",hEn="[object Set]",fEn=Object.prototype,gEn=fEn.hasOwnProperty;function mEn(e){if(e==null)return!0;if(iut(e)&&(tB(e)||typeof e=="string"||typeof e.splice=="function"||cut(e)||dut(e)||sut(e)))return!e.length;var t=IA(e);if(t==pEn||t==hEn)return!e.size;if(out(e))return!put(e).length;for(var n in e)if(gEn.call(e,n))return!1;return!0}var vEn="[object Number]";function Jx(e){return typeof e=="number"||kD(e)&&Dw(e)==vEn}function Vfe(e){return Jx(e)&&e!=+e}function gi(e){return e==null}var M4=ZTn("round"),bEn=function(t){return{root:{fontWeight:t.typography.fontWeightMedium,marginTop:-2}}},yEn=b.forwardRef(function(t,n){var r=t.classes,i=t.className,o=fn(t,["classes","className"]);return b.createElement(bt,Y({gutterBottom:!0,component:"div",ref:n,className:$t(r.root,i)},o))});const MEn=or(bEn,{name:"MuiAlertTitle"})(yEn),CEn=$i(b.createElement("path",{d:"M7 10l5 5 5-5z"}));function Nke(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function hut(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.ignoreAccents,n=t===void 0?!0:t,r=e.ignoreCase,i=r===void 0?!0:r,o=e.limit,a=e.matchFrom,s=a===void 0?"any":a,l=e.stringify,c=e.trim,u=c===void 0?!1:c;return function(d,p){var h=p.inputValue,g=p.getOptionLabel,m=u?h.trim():h;i&&(m=m.toLowerCase()),n&&(m=Nke(m));var v=d.filter(function(y){var M=(l||g)(y);return i&&(M=M.toLowerCase()),n&&(M=Nke(M)),s==="start"?M.indexOf(m)===0:M.indexOf(m)>-1});return typeof o=="number"?v.slice(0,o):v}}function Fie(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var xEn=hut(),Fke=5;function wEn(e){var t=e.autoComplete,n=t===void 0?!1:t,r=e.autoHighlight,i=r===void 0?!1:r,o=e.autoSelect,a=o===void 0?!1:o,s=e.blurOnSelect,l=s===void 0?!1:s,c=e.clearOnBlur,u=c===void 0?!e.freeSolo:c,d=e.clearOnEscape,p=d===void 0?!1:d,h=e.componentName,g=h===void 0?"useAutocomplete":h,m=e.debug,v=m===void 0?!1:m,y=e.defaultValue,M=y===void 0?e.multiple?[]:null:y,C=e.disableClearable,x=C===void 0?!1:C,w=e.disableCloseOnSelect,S=w===void 0?!1:w,A=e.disabledItemsFocusable,z=A===void 0?!1:A,O=e.disableListWrap,T=O===void 0?!1:O,I=e.filterOptions,P=I===void 0?xEn:I,N=e.filterSelectedOptions,F=N===void 0?!1:N,L=e.freeSolo,W=L===void 0?!1:L,H=e.getOptionDisabled,j=e.getOptionLabel,G=j===void 0?function(Un){return Un}:j,q=e.getOptionSelected,$=q===void 0?function(Un,wn){return Un===wn}:q,U=e.groupBy,X=e.handleHomeEndKeys,Q=X===void 0?!e.freeSolo:X,re=e.id,ee=e.includeInputInList,se=ee===void 0?!1:ee,pe=e.inputValue,te=e.multiple,ce=te===void 0?!1:te,oe=e.onChange,ae=e.onClose,ne=e.onHighlightChange,le=e.onInputChange,he=e.onOpen,be=e.open,me=e.openOnFocus,Me=me===void 0?!1:me,Oe=e.options,de=e.selectOnFocus,ie=de===void 0?!e.freeSolo:de,ue=e.value,Ae=yMe(re),Ce=G,Ee=b.useRef(!1),Ge=b.useRef(!0),_e=b.useRef(null),Ie=b.useRef(null),Le=b.useState(null),we=Le[0],ve=Le[1],De=b.useState(-1),ze=De[0],Ve=De[1],Ke=i?0:-1,et=b.useRef(Ke),it=lb({controlled:ue,default:M,name:g}),Ft=Xu(it,2),Pt=Ft[0],Qn=Ft[1],ir=lb({controlled:pe,default:"",name:g,state:"inputValue"}),jn=Xu(ir,2),Zn=jn[0],Br=jn[1],vr=b.useState(!1),Ne=vr[0],He=vr[1],Xe=ms(function(Un,wn){var nn;if(ce)nn="";else if(wn==null)nn="";else{var Lr=Ce(wn);nn=typeof Lr=="string"?Lr:""}Zn!==nn&&(Br(nn),le&&le(Un,nn,"reset"))});b.useEffect(function(){Xe(null,Pt)},[Pt,Xe]);var ct=lb({controlled:be,default:!1,name:g,state:"open"}),lt=Xu(ct,2),Je=lt[0],ft=lt[1],Tt=!ce&&Pt!=null&&Zn===Ce(Pt),St=Je,un=St?P(Oe.filter(function(Un){return!(F&&(ce?Pt:[Pt]).some(function(wn){return wn!==null&&$(Un,wn)}))}),{inputValue:Tt?"":Zn,getOptionLabel:Ce}):[],$n=ms(function(Un){Un===-1?_e.current.focus():we.querySelector('[data-tag-index="'.concat(Un,'"]')).focus()});b.useEffect(function(){ce&&ze>Pt.length-1&&(Ve(-1),$n(-1))},[Pt,ce,ze,$n]);function Yr(Un,wn){if(!Ie.current||Un===-1)return-1;for(var nn=Un;;){if(wn==="next"&&nn===un.length||wn==="previous"&&nn===-1)return-1;var Lr=Ie.current.querySelector('[data-option-index="'.concat(nn,'"]')),Ss=z?!1:Lr&&(Lr.disabled||Lr.getAttribute("aria-disabled")==="true");if(Lr&&!Lr.hasAttribute("tabindex")||Ss)nn+=wn==="next"?1:-1;else return nn}}var yr=ms(function(Un){var wn=Un.event,nn=Un.index,Lr=Un.reason,Ss=Lr===void 0?"auto":Lr;if(et.current=nn,nn===-1?_e.current.removeAttribute("aria-activedescendant"):_e.current.setAttribute("aria-activedescendant","".concat(Ae,"-option-").concat(nn)),ne&&ne(wn,nn===-1?null:un[nn],Ss),!!Ie.current){var Va=Ie.current.querySelector("[data-focus]");Va&&Va.removeAttribute("data-focus");var xa=Ie.current.parentElement.querySelector('[role="listbox"]');if(xa){if(nn===-1){xa.scrollTop=0;return}var Lc=Ie.current.querySelector('[data-option-index="'.concat(nn,'"]'));if(Lc&&(Lc.setAttribute("data-focus","true"),xa.scrollHeight>xa.clientHeight&&Ss!=="mouse")){var lc=Lc,C1=xa.clientHeight+xa.scrollTop,zp=lc.offsetTop+lc.offsetHeight;zp>C1?xa.scrollTop=zp-xa.clientHeight:lc.offsetTop-lc.offsetHeight*(U?1.3:0)<xa.scrollTop&&(xa.scrollTop=lc.offsetTop-lc.offsetHeight*(U?1.3:0))}}}}),dr=ms(function(Un){var wn=Un.event,nn=Un.diff,Lr=Un.direction,Ss=Lr===void 0?"next":Lr,Va=Un.reason,xa=Va===void 0?"auto":Va;if(St){var Lc=function(){var Re=un.length-1;if(nn==="reset")return Ke;if(nn==="start")return 0;if(nn==="end")return Re;var qe=et.current+nn;return qe<0?qe===-1&&se?-1:T&&et.current!==-1||Math.abs(nn)>1?0:Re:qe>Re?qe===Re+1&&se?-1:T||Math.abs(nn)>1?Re:0:qe},lc=Yr(Lc(),Ss);if(yr({index:lc,reason:xa,event:wn}),n&&nn!=="reset")if(lc===-1)_e.current.value=Zn;else{var C1=Ce(un[lc]);_e.current.value=C1;var zp=C1.toLowerCase().indexOf(Zn.toLowerCase());zp===0&&Zn.length>0&&_e.current.setSelectionRange(Zn.length,C1.length)}}}),si=b.useCallback(function(){if(St){var Un=ce?Pt[0]:Pt;if(un.length===0||Un==null){dr({diff:"reset"});return}if(Ie.current){if(!F&&Un!=null){var wn=un[et.current];if(ce&&wn&&Fie(Pt,function(Lr){return $(wn,Lr)})!==-1)return;var nn=Fie(un,function(Lr){return $(Lr,Un)});nn===-1?dr({diff:"reset"}):yr({index:nn});return}if(et.current>=un.length-1){yr({index:un.length-1});return}yr({index:et.current})}}},[un.length===0,ce?!1:Pt,F,dr,yr,St,Zn,ce]),Go=ms(function(Un){Uy(Ie,Un),Un&&si()});b.useEffect(function(){si()},[si]);var $o=function(wn){Je||(ft(!0),he&&he(wn))},Ki=function(wn,nn){Je&&(ft(!1),ae&&ae(wn,nn))},di=function(wn,nn,Lr,Ss){Pt!==nn&&(oe&&oe(wn,nn,Lr,Ss),Qn(nn))},Dt=b.useRef(!1),It=function(wn,nn){var Lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"select-option",Ss=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"options",Va=Lr,xa=nn;if(ce){xa=Array.isArray(Pt)?Pt.slice():[];var Lc=Fie(xa,function(lc){return $(nn,lc)});Lc===-1?xa.push(nn):Ss!=="freeSolo"&&(xa.splice(Lc,1),Va="remove-option")}Xe(wn,xa),di(wn,xa,Va,{option:nn}),S||Ki(wn,Va),(l===!0||l==="touch"&&Dt.current||l==="mouse"&&!Dt.current)&&_e.current.blur()};function Hn(Un,wn){if(Un===-1)return-1;for(var nn=Un;;){if(wn==="next"&&nn===Pt.length||wn==="previous"&&nn===-1)return-1;var Lr=we.querySelector('[data-tag-index="'.concat(nn,'"]'));if(Lr&&(!Lr.hasAttribute("tabindex")||Lr.disabled||Lr.getAttribute("aria-disabled")==="true"))nn+=wn==="next"?1:-1;else return nn}}var jr=function(wn,nn){if(ce){Ki(wn,"toggleInput");var Lr=ze;ze===-1?Zn===""&&nn==="previous"&&(Lr=Pt.length-1):(Lr+=nn==="next"?1:-1,Lr<0&&(Lr=0),Lr===Pt.length&&(Lr=-1)),Lr=Hn(Lr,nn),Ve(Lr),$n(Lr)}},Jr=function(wn){Ee.current=!0,Br(""),le&&le(wn,"","clear"),di(wn,ce?[]:null,"clear")},Ca=function(wn){return function(nn){switch(ze!==-1&&["ArrowLeft","ArrowRight"].indexOf(nn.key)===-1&&(Ve(-1),$n(-1)),nn.key){case"Home":St&&Q&&(nn.preventDefault(),dr({diff:"start",direction:"next",reason:"keyboard",event:nn}));break;case"End":St&&Q&&(nn.preventDefault(),dr({diff:"end",direction:"previous",reason:"keyboard",event:nn}));break;case"PageUp":nn.preventDefault(),dr({diff:-Fke,direction:"previous",reason:"keyboard",event:nn}),$o(nn);break;case"PageDown":nn.preventDefault(),dr({diff:Fke,direction:"next",reason:"keyboard",event:nn}),$o(nn);break;case"ArrowDown":nn.preventDefault(),dr({diff:1,direction:"next",reason:"keyboard",event:nn}),$o(nn);break;case"ArrowUp":nn.preventDefault(),dr({diff:-1,direction:"previous",reason:"keyboard",event:nn}),$o(nn);break;case"ArrowLeft":jr(nn,"previous");break;case"ArrowRight":jr(nn,"next");break;case"Enter":if(nn.which===229)break;if(et.current!==-1&&St){var Lr=un[et.current],Ss=H?H(Lr):!1;if(nn.preventDefault(),Ss)return;It(nn,Lr,"select-option"),n&&_e.current.setSelectionRange(_e.current.value.length,_e.current.value.length)}else W&&Zn!==""&&Tt===!1&&(ce&&nn.preventDefault(),It(nn,Zn,"create-option","freeSolo"));break;case"Escape":St?(nn.preventDefault(),nn.stopPropagation(),Ki(nn,"escape")):p&&(Zn!==""||ce&&Pt.length>0)&&(nn.preventDefault(),nn.stopPropagation(),Jr(nn));break;case"Backspace":if(ce&&Zn===""&&Pt.length>0){var Va=ze===-1?Pt.length-1:ze,xa=Pt.slice();xa.splice(Va,1),di(nn,xa,"remove-option",{option:Pt[Va]})}break}wn.onKeyDown&&wn.onKeyDown(nn)}},Uo=function(wn){He(!0),Me&&!Ee.current&&$o(wn)},La=function(wn){if(Ie.current!==null&&document.activeElement===Ie.current.parentElement){_e.current.focus();return}He(!1),Ge.current=!0,Ee.current=!1,!(v&&Zn!=="")&&(a&&et.current!==-1&&St?It(wn,un[et.current],"blur"):a&&W&&Zn!==""?It(wn,Zn,"blur","freeSolo"):u&&Xe(wn,Pt),Ki(wn,"blur"))},od=function(wn){var nn=wn.target.value;Zn!==nn&&(Br(nn),le&&le(wn,nn,"input")),nn===""?!x&&!ce&&di(wn,null,"clear"):$o(wn)},Lu=function(wn){yr({event:wn,index:Number(wn.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},kc=function(){Dt.current=!0},Dd=function(wn){var nn=Number(wn.currentTarget.getAttribute("data-option-index"));It(wn,un[nn],"select-option"),Dt.current=!1},fi=function(wn){return function(nn){var Lr=Pt.slice();Lr.splice(wn,1),di(nn,Lr,"remove-option",{option:Pt[wn]})}},_s=function(wn){Je?Ki(wn,"toggleInput"):$o(wn)},_u=function(wn){wn.target.getAttribute("id")!==Ae&&wn.preventDefault()},kd=function(){_e.current.focus(),ie&&Ge.current&&_e.current.selectionEnd-_e.current.selectionStart===0&&_e.current.select(),Ge.current=!1},ou=function(wn){(Zn===""||!Je)&&_s(wn)},ws=W&&Zn.length>0;ws=ws||(ce?Pt.length>0:Pt!==null);var au=un;return U&&(au=un.reduce(function(Un,wn,nn){var Lr=U(wn);return Un.length>0&&Un[Un.length-1].group===Lr?Un[Un.length-1].options.push(wn):Un.push({key:nn,index:nn,group:Lr,options:[wn]}),Un},[])),{getRootProps:function(){var wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Y({"aria-owns":St?"".concat(Ae,"-popup"):null,role:"combobox","aria-expanded":St},wn,{onKeyDown:Ca(wn),onMouseDown:_u,onClick:kd})},getInputLabelProps:function(){return{id:"".concat(Ae,"-label"),htmlFor:Ae}},getInputProps:function(){return{id:Ae,value:Zn,onBlur:La,onFocus:Uo,onChange:od,onMouseDown:ou,"aria-activedescendant":St?"":null,"aria-autocomplete":n?"both":"list","aria-controls":St?"".concat(Ae,"-popup"):null,autoComplete:"off",ref:_e,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Jr}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:_s}},getTagProps:function(wn){var nn=wn.index;return{key:nn,"data-tag-index":nn,tabIndex:-1,onDelete:fi(nn)}},getListboxProps:function(){return{role:"listbox",id:"".concat(Ae,"-popup"),"aria-labelledby":"".concat(Ae,"-label"),ref:Go,onMouseDown:function(nn){nn.preventDefault()}}},getOptionProps:function(wn){var nn=wn.index,Lr=wn.option,Ss=(ce?Pt:[Pt]).some(function(xa){return xa!=null&&$(Lr,xa)}),Va=H?H(Lr):!1;return{key:nn,tabIndex:-1,role:"option",id:"".concat(Ae,"-option-").concat(nn),onMouseOver:Lu,onClick:Dd,onTouchStart:kc,"data-option-index":nn,"aria-disabled":Va,"aria-selected":Ss}},id:Ae,inputValue:Zn,value:Pt,dirty:ws,popupOpen:St,focused:Ne||ze!==-1,anchorEl:we,setAnchorEl:ve,focusedTag:ze,groupedOptions:au}}var SEn=function(t){var n;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:t.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:Y({},t.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:t.palette.text.secondary,padding:"14px 16px"},noOptions:{color:t.palette.text.secondary,padding:"14px 16px"},option:(n={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},tn(n,t.breakpoints.up("sm"),{minHeight:"auto"}),tn(n,'&[aria-selected="true"]',{backgroundColor:t.palette.action.selected}),tn(n,'&[data-focus="true"]',{backgroundColor:t.palette.action.hover}),tn(n,"&:active",{backgroundColor:t.palette.action.selected}),tn(n,'&[aria-disabled="true"]',{opacity:t.palette.action.disabledOpacity,pointerEvents:"none"}),n),groupLabel:{backgroundColor:t.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}};function AEn(e){e.anchorEl,e.open;var t=fn(e,["anchorEl","open"]);return b.createElement("div",t)}var OEn=b.createElement(qat,{fontSize:"small"}),zEn=b.createElement(CEn,null),TEn=b.forwardRef(function(t,n){t.autoComplete,t.autoHighlight,t.autoSelect,t.blurOnSelect;var r=t.ChipProps,i=t.classes,o=t.className,a=t.clearOnBlur;a===void 0&&t.freeSolo,t.clearOnEscape;var s=t.clearText,l=s===void 0?"Clear":s,c=t.closeIcon,u=c===void 0?OEn:c,d=t.closeText,p=d===void 0?"Close":d;t.debug;var h=t.defaultValue;h===void 0&&t.multiple;var g=t.disableClearable,m=g===void 0?!1:g;t.disableCloseOnSelect;var v=t.disabled,y=v===void 0?!1:v;t.disabledItemsFocusable,t.disableListWrap;var M=t.disablePortal,C=M===void 0?!1:M;t.filterOptions,t.filterSelectedOptions;var x=t.forcePopupIcon,w=x===void 0?"auto":x,S=t.freeSolo,A=S===void 0?!1:S,z=t.fullWidth,O=z===void 0?!1:z,T=t.getLimitTagsText,I=T===void 0?function(St){return"+".concat(St)}:T;t.getOptionDisabled;var P=t.getOptionLabel,N=P===void 0?function(St){return St}:P;t.getOptionSelected;var F=t.groupBy,L=t.handleHomeEndKeys;L===void 0&&t.freeSolo,t.id,t.includeInputInList,t.inputValue;var W=t.limitTags,H=W===void 0?-1:W,j=t.ListboxComponent,G=j===void 0?"ul":j,q=t.ListboxProps,$=t.loading,U=$===void 0?!1:$,X=t.loadingText,Q=X===void 0?"Loading…":X,re=t.multiple,ee=re===void 0?!1:re,se=t.noOptionsText,pe=se===void 0?"No options":se;t.onChange,t.onClose,t.onHighlightChange,t.onInputChange,t.onOpen,t.open,t.openOnFocus;var te=t.openText,ce=te===void 0?"Open":te;t.options;var oe=t.PaperComponent,ae=oe===void 0?kt:oe,ne=t.PopperComponent,le=ne===void 0?xat:ne,he=t.popupIcon,be=he===void 0?zEn:he,me=t.renderGroup,Me=t.renderInput,Oe=t.renderOption,de=t.renderTags,ie=t.selectOnFocus;ie===void 0&&t.freeSolo;var ue=t.size,Ae=ue===void 0?"medium":ue;t.value;var Ce=fn(t,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"]),Ee=C?AEn:le,Ge=wEn(Y({},t,{componentName:"Autocomplete"})),_e=Ge.getRootProps,Ie=Ge.getInputProps,Le=Ge.getInputLabelProps,we=Ge.getPopupIndicatorProps,ve=Ge.getClearProps,De=Ge.getTagProps,ze=Ge.getListboxProps,Ve=Ge.getOptionProps,Ke=Ge.value,et=Ge.dirty,it=Ge.id,Ft=Ge.popupOpen,Pt=Ge.focused,Qn=Ge.focusedTag,ir=Ge.anchorEl,jn=Ge.setAnchorEl,Zn=Ge.inputValue,Br=Ge.groupedOptions,vr;if(ee&&Ke.length>0){var Ne=function(un){return Y({className:$t(i.tag,Ae==="small"&&i.tagSizeSmall),disabled:y},De(un))};de?vr=de(Ke,Ne):vr=Ke.map(function(St,un){return b.createElement(fM,Y({label:N(St),size:Ae},Ne({index:un}),r))})}if(H>-1&&Array.isArray(vr)){var He=vr.length-H;!Pt&&He>0&&(vr=vr.splice(0,H),vr.push(b.createElement("span",{className:i.tag,key:vr.length},I(He))))}var Xe=function(un){return b.createElement("li",{key:un.key},b.createElement(qv,{className:i.groupLabel,component:"div"},un.group),b.createElement("ul",{className:i.groupUl},un.children))},ct=me||Xe,lt=Oe||N,Je=function(un,$n){var Yr=Ve({option:un,index:$n});return b.createElement("li",Y({},Yr,{className:i.option}),lt(un,{selected:Yr["aria-selected"],inputValue:Zn}))},ft=!m&&!y,Tt=(!A||w===!0)&&w!==!1;return b.createElement(b.Fragment,null,b.createElement("div",Y({ref:n,className:$t(i.root,o,Pt&&i.focused,O&&i.fullWidth,ft&&i.hasClearIcon,Tt&&i.hasPopupIcon)},_e(Ce)),Me({id:it,disabled:y,fullWidth:!0,size:Ae==="small"?"small":void 0,InputLabelProps:Le(),InputProps:{ref:jn,className:i.inputRoot,startAdornment:vr,endAdornment:b.createElement("div",{className:i.endAdornment},ft?b.createElement(yn,Y({},ve(),{"aria-label":l,title:l,className:$t(i.clearIndicator,et&&i.clearIndicatorDirty)}),u):null,Tt?b.createElement(yn,Y({},we(),{disabled:y,"aria-label":Ft?p:ce,title:Ft?p:ce,className:$t(i.popupIndicator,Ft&&i.popupIndicatorOpen)}),be):null)},inputProps:Y({className:$t(i.input,Qn===-1&&i.inputFocused),disabled:y},Ie())})),Ft&&ir?b.createElement(Ee,{className:$t(i.popper,C&&i.popperDisablePortal),style:{width:ir?ir.clientWidth:null},role:"presentation",anchorEl:ir,open:!0},b.createElement(ae,{className:i.paper},U&&Br.length===0?b.createElement("div",{className:i.loading},Q):null,Br.length===0&&!A&&!U?b.createElement("div",{className:i.noOptions},pe):null,Br.length>0?b.createElement(G,Y({className:i.listbox},ze(),q),Br.map(function(St,un){return F?ct({key:St.key,group:St.group,children:St.options.map(function($n,Yr){return Je($n,St.index+Yr)})}):Je(St,un)})):null)):null)});const Ji=or(SEn,{name:"MuiAutocomplete"})(TEn);var fut=b.createContext({}),EEn=function(t){return{root:{listStyle:"none",margin:0,padding:0,outline:0,WebkitTapHighlightColor:"transparent","&:focus > $content $label":{backgroundColor:t.palette.action.hover},"&$selected > $content $label":{backgroundColor:jo(t.palette.primary.main,t.palette.action.selectedOpacity)},"&$selected > $content $label:hover, &$selected:focus > $content $label":{backgroundColor:jo(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},expanded:{},selected:{},group:{margin:0,padding:0,marginLeft:17},content:{width:"100%",display:"flex",alignItems:"center",cursor:"pointer"},iconContainer:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},label:{width:"100%",paddingLeft:4,position:"relative","&:hover":{backgroundColor:t.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}}},REn=function(t){return t&&t.length===1&&t.match(/\S/)},IEn=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.collapseIcon,s=t.endIcon,l=t.expandIcon,c=t.icon,u=t.label,d=t.nodeId,p=t.onClick,h=t.onLabelClick,g=t.onIconClick,m=t.onFocus,v=t.onKeyDown,y=t.onMouseDown,M=t.TransitionComponent,C=M===void 0?xMe:M,x=t.TransitionProps,w=fn(t,["children","classes","className","collapseIcon","endIcon","expandIcon","icon","label","nodeId","onClick","onLabelClick","onIconClick","onFocus","onKeyDown","onMouseDown","TransitionComponent","TransitionProps"]),S=b.useContext(fut),A=S.icons,z=S.focus,O=S.focusFirstNode,T=S.focusLastNode,I=S.focusNextNode,P=S.focusPreviousNode,N=S.focusByFirstCharacter,F=S.selectNode,L=S.selectRange,W=S.selectNextNode,H=S.selectPreviousNode,j=S.rangeSelectToFirst,G=S.rangeSelectToLast,q=S.selectAllNodes,$=S.expandAllSiblings,U=S.toggleExpansion,X=S.isExpanded,Q=S.isFocused,re=S.isSelected,ee=S.isTabbable,se=S.multiSelect,pe=S.getParent,te=S.mapFirstChar,ce=S.addNodeToNodeMap,oe=S.removeNodeFromNodeMap,ae=b.useRef(null),ne=b.useRef(null),le=Ba(ae,n),he=c,be=!!(Array.isArray(r)?r.length:r),me=X?X(d):!1,Me=Q?Q(d):!1,Oe=ee?ee(d):!1,de=re?re(d):!1,ie=A||{},ue=oc();he||(be?(me?he=a||ie.defaultCollapseIcon:he=l||ie.defaultExpandIcon,he||(he=ie.defaultParentIcon)):he=s||ie.defaultEndIcon);var Ae=function(ve){Me||z(d);var De=se&&(ve.shiftKey||ve.ctrlKey||ve.metaKey);be&&!ve.defaultPrevented&&!(De&&X(d))&&U(ve,d),De?ve.shiftKey?L(ve,{end:d}):F(ve,d,!0):F(ve,d),p&&p(ve)},Ce=function(ve){(ve.shiftKey||ve.ctrlKey||ve.metaKey)&&ve.preventDefault(),y&&y(ve)},Ee=function(ve){return be&&(me?I(d):U(ve)),!0},Ge=function(ve){if(me)return U(ve,d),!0;var De=pe(d);return De?(z(De),!0):!1},_e=function(ve){var De=!1,ze=ve.key;if(!(ve.altKey||ve.currentTarget!==ve.target)){var Ve=ve.ctrlKey||ve.metaKey;switch(ze){case" ":ae.current===ve.currentTarget&&(se&&ve.shiftKey?De=L(ve,{end:d}):se?De=F(ve,d,!0):De=F(ve,d)),ve.stopPropagation();break;case"Enter":ae.current===ve.currentTarget&&be&&(U(ve),De=!0),ve.stopPropagation();break;case"ArrowDown":se&&ve.shiftKey&&W(ve,d),I(d),De=!0;break;case"ArrowUp":se&&ve.shiftKey&&H(ve,d),P(d),De=!0;break;case"ArrowRight":ue.direction==="rtl"?De=Ge(ve):De=Ee(ve);break;case"ArrowLeft":ue.direction==="rtl"?De=Ee(ve):De=Ge(ve);break;case"Home":se&&Ve&&ve.shiftKey&&j(ve,d),O(),De=!0;break;case"End":se&&Ve&&ve.shiftKey&&G(ve,d),T(),De=!0;break;default:ze==="*"?($(ve,d),De=!0):se&&Ve&&ze.toLowerCase()==="a"?De=q(ve):!Ve&&!ve.shiftKey&&REn(ze)&&(N(d,ze),De=!0)}De&&(ve.preventDefault(),ve.stopPropagation()),v&&v(ve)}},Ie=function(ve){!Me&&ve.currentTarget===ve.target&&z(d),m&&m(ve)};b.useEffect(function(){if(ce){var we=[];b.Children.forEach(r,function(ve){b.isValidElement(ve)&&ve.props.nodeId&&we.push(ve.props.nodeId)}),ce(d,we)}},[r,d,ce]),b.useEffect(function(){if(oe)return function(){oe(d)}},[d,oe]),b.useEffect(function(){te&&u&&te(d,ne.current.textContent.substring(0,1).toLowerCase())},[te,d,u]),b.useEffect(function(){Me&&ae.current.focus()},[Me]);var Le;return se?Le=de:de&&(Le=!0),b.createElement("li",Y({className:$t(i.root,o,me&&i.expanded,de&&i.selected),role:"treeitem",onKeyDown:_e,onFocus:Ie,"aria-expanded":be?me:null,"aria-selected":Le,ref:le,tabIndex:Oe?0:-1},w),b.createElement("div",{className:i.content,onClick:Ae,onMouseDown:Ce,ref:ne},b.createElement("div",{onClick:g,className:i.iconContainer},he),b.createElement(bt,{onClick:h,component:"div",className:i.label},u)),r&&b.createElement(C,Y({unmountOnExit:!0,className:i.group,in:me,component:"ul",role:"group"},x),r))});const PEn=or(EEn,{name:"MuiTreeItem"})(IEn);var DEn={root:{padding:0,margin:0,listStyle:"none"}};function kEn(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n]!==t[n])return!0;return!1}var Wke=function(t,n,r){for(var i=n;i<t.length;i+=1)if(r===t[i])return i;return-1},LEn=[],_En=[],NEn=b.forwardRef(function(t,n){var r=t.children,i=t.classes,o=t.className,a=t.defaultCollapseIcon,s=t.defaultEndIcon,l=t.defaultExpanded,c=l===void 0?LEn:l,u=t.defaultExpandIcon,d=t.defaultParentIcon,p=t.defaultSelected,h=p===void 0?_En:p,g=t.disableSelection,m=g===void 0?!1:g,v=t.multiSelect,y=v===void 0?!1:v,M=t.expanded,C=t.onNodeSelect,x=t.onNodeToggle,w=t.selected,S=fn(t,["children","classes","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disableSelection","multiSelect","expanded","onNodeSelect","onNodeToggle","selected"]),A=b.useState(null),z=A[0],O=A[1],T=b.useState(null),I=T[0],P=T[1],N=b.useRef({}),F=b.useRef({}),L=b.useRef([]),W=lb({controlled:M,default:c,name:"TreeView",state:"expanded"}),H=Xu(W,2),j=H[0],G=H[1],q=lb({controlled:w,default:h,name:"TreeView",state:"selected"}),$=Xu(q,2),U=$[0],X=$[1],Q=b.useCallback(function(Ne){return Array.isArray(j)?j.indexOf(Ne)!==-1:!1},[j]),re=b.useCallback(function(Ne){return Array.isArray(U)?U.indexOf(Ne)!==-1:U===Ne},[U]),ee=function(He){return z===He},se=function(He){return I===He},pe=function(He){var Xe=L.current.indexOf(He);return Xe!==-1&&Xe+1<L.current.length?L.current[Xe+1]:null},te=function(He){var Xe=L.current.indexOf(He);return Xe!==-1&&Xe-1>=0?L.current[Xe-1]:null},ce=function(){return L.current[L.current.length-1]},oe=function(){return L.current[0]},ae=function(He){return N.current[He].parent},ne=function(He,Xe){var ct=L.current.indexOf(He),lt=L.current.indexOf(Xe),Je=Math.min(ct,lt),ft=Math.max(ct,lt);return L.current.slice(Je,ft+1)},le=function(He){He&&(O(He),P(He))},he=function(He){return le(pe(He))},be=function(He){return le(te(He))},me=function(){return le(oe())},Me=function(){return le(ce())},Oe=function(He,Xe){var ct,lt,Je=Xe.toLowerCase(),ft=[],Tt=[];Object.keys(F.current).forEach(function(St){var un=F.current[St],$n=N.current[St],Yr=$n.parent?Q($n.parent):!0;Yr&&(ft.push(St),Tt.push(un))}),ct=ft.indexOf(He)+1,ct===N.current.length&&(ct=0),lt=Wke(Tt,ct,Je),lt===-1&&(lt=Wke(Tt,0,Je)),lt>-1&&le(ft[lt])},de=function(He){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,ct;j.indexOf(Xe)!==-1?(ct=j.filter(function(lt){return lt!==Xe}),O(function(lt){var Je=N.current[lt];return lt&&(Je&&Je.parent?Je.parent.id:null)===Xe?Xe:lt})):ct=[Xe].concat(j),x&&x(He,ct),G(ct)},ie=function(He,Xe){var ct=N.current[Xe],lt=N.current[ct.parent],Je;if(lt)Je=lt.children.filter(function(St){return!Q(St)});else{var ft=N.current[-1].children;Je=ft.filter(function(St){return!Q(St)})}var Tt=j.concat(Je);Je.length>0&&(G(Tt),x&&x(He,Tt))},ue=b.useRef(null),Ae=b.useRef(!1),Ce=b.useRef([]),Ee=function(He,Xe){var ct=U,lt=Xe.start,Je=Xe.next,ft=Xe.current;!Je||!ft||(Ce.current.indexOf(ft)===-1&&(Ce.current=[]),Ae.current?Ce.current.indexOf(Je)!==-1?(ct=ct.filter(function(Tt){return Tt===lt||Tt!==ft}),Ce.current=Ce.current.filter(function(Tt){return Tt===lt||Tt!==ft})):(ct.push(Je),Ce.current.push(Je)):(ct.push(Je),Ce.current.push(ft,Je)),C&&C(He,ct),X(ct))},Ge=function(He,Xe){var ct=U,lt=Xe.start,Je=Xe.end;Ae.current&&(ct=U.filter(function(St){return Ce.current.indexOf(St)===-1}));var ft=ne(lt,Je);Ce.current=ft;var Tt=ct.concat(ft);Tt=Tt.filter(function(St,un){return Tt.indexOf(St)===un}),C&&C(He,Tt),X(Tt)},_e=function(He,Xe){var ct=[];U.indexOf(Xe)!==-1?ct=U.filter(function(lt){return lt!==Xe}):ct=[Xe].concat(U),C&&C(He,ct),X(ct)},Ie=function(He,Xe){var ct=y?[Xe]:Xe;C&&C(He,ct),X(ct)},Le=function(He,Xe){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Xe?(ct?_e(He,Xe):Ie(He,Xe),ue.current=Xe,Ae.current=!1,Ce.current=[],!0):!1},we=function(He,Xe){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,lt=Xe.start,Je=lt===void 0?ue.current:lt,ft=Xe.end,Tt=Xe.current;return ct?Ee(He,{start:Je,next:ft,current:Tt}):Ge(He,{start:Je,end:ft}),Ae.current=!0,!0},ve=function(He,Xe){ue.current||(ue.current=Xe);var ct=Ae.current?ue.current:Xe;return we(He,{start:ct,end:oe()})},De=function(He,Xe){ue.current||(ue.current=Xe);var ct=Ae.current?ue.current:Xe;return we(He,{start:ct,end:ce()})},ze=function(He,Xe){return we(He,{end:pe(Xe),current:Xe},!0)},Ve=function(He,Xe){return we(He,{end:te(Xe),current:Xe},!0)},Ke=function(He){return we(He,{start:oe(),end:ce()})},et=function(He,Xe){var ct=N.current[He];N.current[He]=Y({},ct,{children:Xe,id:He}),Xe.forEach(function(lt){var Je=N.current[lt];N.current[lt]=Y({},Je,{parent:He,id:lt})})},it=b.useCallback(function(Ne){var He=N.current[Ne],Xe=[];return He&&(Xe.push(Ne),He.children&&(Xe.concat(He.children),He.children.forEach(function(ct){Xe.concat(it(ct))}))),Xe},[]),Ft=b.useCallback(function(Ne){var He=Y({},F.current);Ne.forEach(function(Xe){He[Xe]&&delete He[Xe]}),F.current=He},[]),Pt=b.useCallback(function(Ne){var He=it(Ne);Ft(He);var Xe=Y({},N.current);He.forEach(function(ct){var lt=Xe[ct];if(lt){if(lt.parent){var Je=Xe[lt.parent];if(Je&&Je.children){var ft=Je.children.filter(function(Tt){return Tt!==ct});Xe[lt.parent]=Y({},Je,{children:ft})}}delete Xe[ct]}}),N.current=Xe,P(function(ct){return ct===Ne?null:ct})},[it,Ft]),Qn=function(He,Xe){F.current[He]=Xe},ir=b.useRef([]),jn=b.useState(!1),Zn=jn[0],Br=jn[1];b.useEffect(function(){var Ne=[];b.Children.forEach(r,function(He){b.isValidElement(He)&&He.props.nodeId&&Ne.push(He.props.nodeId)}),kEn(ir.current,Ne)&&(N.current[-1]={parent:null,children:Ne},Ne.forEach(function(He,Xe){Xe===0&&O(He)}),L.current=N.current[-1].children,ir.current=Ne,Br(!0))},[r]),b.useEffect(function(){var Ne=function He(Xe){for(var ct=[],lt=0;lt<Xe.length;lt+=1){var Je=Xe[lt];ct.push(Je);var ft=N.current[Je].children;Q(Je)&&ft&&(ct=ct.concat(He(ft)))}return ct};Zn&&(L.current=Ne(N.current[-1].children))},[j,Zn,Q,r]);var vr=function(){return!1};return b.createElement(fut.Provider,{value:{icons:{defaultCollapseIcon:a,defaultExpandIcon:u,defaultParentIcon:d,defaultEndIcon:s},focus:le,focusFirstNode:me,focusLastNode:Me,focusNextNode:he,focusPreviousNode:be,focusByFirstCharacter:Oe,expandAllSiblings:ie,toggleExpansion:de,isExpanded:Q,isFocused:se,isSelected:re,selectNode:m?vr:Le,selectRange:m?vr:we,selectNextNode:m?vr:ze,selectPreviousNode:m?vr:Ve,rangeSelectToFirst:m?vr:ve,rangeSelectToLast:m?vr:De,selectAllNodes:m?vr:Ke,isTabbable:ee,multiSelect:y,getParent:ae,mapFirstChar:Qn,addNodeToNodeMap:et,removeNodeFromNodeMap:Pt}},b.createElement("ul",Y({role:"tree","aria-multiselectable":y,className:$t(i.root,o),ref:n},S),r))});const FEn=or(DEn,{name:"MuiTreeView"})(NEn);var C4={},qke;function WEn(){if(qke)return C4;qke=1;var e=ri(),t=ii();Object.defineProperty(C4,"__esModule",{value:!0}),C4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"}),"AccountCircle");return C4.default=i,C4}var qEn=WEn();const BEn=qn(qEn);var Wie,Bke;function jEn(){if(Bke)return Wie;Bke=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var s,l,c;if(Array.isArray(o)){if(s=o.length,s!=a.length)return!1;for(l=s;l--!==0;)if(!i(o[l],a[l]))return!1;return!0}var u;if(t&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(u=o.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=o.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(u=o.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(s=o.length,s!=a.length)return!1;for(l=s;l--!==0;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof a.valueOf=="function")return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof a.toString=="function")return o.toString()===a.toString();if(c=Object.keys(o),s=c.length,s!==Object.keys(a).length)return!1;for(l=s;l--!==0;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(e&&o instanceof Element)return!1;for(l=s;l--!==0;)if(!((c[l]==="_owner"||c[l]==="__v"||c[l]==="__o")&&o.$$typeof)&&!i(o[c[l]],a[c[l]]))return!1;return!0}return o!==o&&a!==a}return Wie=function(a,s){try{return i(a,s)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},Wie}var HEn=jEn();const gut=qn(HEn);var qie,jke;function VEn(){if(jke)return qie;jke=1;var e=function(t,n,r,i,o,a,s,l){if(!t){var c;if(n===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,o,a,s,l],d=0;c=new Error(n.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};return qie=e,qie}var GEn=VEn();const Hke=qn(GEn);var Bie,Vke;function $En(){return Vke||(Vke=1,Bie=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<a.length;c++){var u=a[c];if(!l(u))return!1;var d=t[u],p=n[u];if(o=r?r.call(i,d,p,u):void 0,o===!1||o===void 0&&d!==p)return!1}return!0}),Bie}var UEn=$En();const XEn=qn(UEn);var mut=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(mut||{}),jie={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Gke=Object.values(mut),JCe={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},YEn=Object.entries(JCe).reduce((e,[t,n])=>(e[n]=t,e),{}),em="data-rh",mI={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},vI=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},KEn=e=>{let t=vI(e,"title");const n=vI(e,mI.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=vI(e,mI.DEFAULT_TITLE);return t||r||void 0},QEn=e=>vI(e,mI.ON_CHANGE_CLIENT_STATE)||(()=>{}),Hie=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),ZEn=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;o<i.length;o+=1){const s=i[o].toLowerCase();if(e.indexOf(s)!==-1&&r[s])return n.concat(r)}}return n},[]),JEn=e=>console&&typeof console.warn=="function"&&console.warn(e),x4=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&JEn(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const a={};o.filter(l=>{let c;const u=Object.keys(l);for(let p=0;p<u.length;p+=1){const h=u[p],g=h.toLowerCase();t.indexOf(g)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(g==="rel"&&l[g].toLowerCase()==="stylesheet")&&(c=g),t.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(c=h)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),a[c]||(a[c]={}),r[c][d]?!1:(a[c][d]=!0,!0)}).reverse().forEach(l=>i.push(l));const s=Object.keys(a);for(let l=0;l<s.length;l+=1){const c=s[l],u={...r[c],...a[c]};r[c]=u}return i},[]).reverse()},eRn=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},tRn=e=>({baseTag:ZEn(["href"],e),bodyAttributes:Hie("bodyAttributes",e),defer:vI(e,mI.DEFER),encode:vI(e,mI.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Hie("htmlAttributes",e),linkTags:x4("link",["rel","href"],e),metaTags:x4("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:x4("noscript",["innerHTML"],e),onChangeClientState:QEn(e),scriptTags:x4("script",["src","innerHTML"],e),styleTags:x4("style",["cssText"],e),title:KEn(e),titleAttributes:Hie("titleAttributes",e),prioritizeSeoTags:eRn(e,mI.PRIORITIZE_SEO_TAGS)}),vut=e=>Array.isArray(e)?e.join(""):e,nRn=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Vie=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(nRn(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},$ke=(e,t)=>({...e,[t]:void 0}),rRn=["noscript","script","style"],Gfe=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),but=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),iRn=(e,t,n,r)=>{const i=but(n),o=vut(t);return i?`<${e} ${em}="true" ${i}>${Gfe(o,r)}</${e}>`:`<${e} ${em}="true">${Gfe(o,r)}</${e}>`},oRn=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,a=Object.keys(o).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof o[u]>"u"?u:`${u}="${Gfe(o[u],n)}"`;return c?`${c} ${d}`:d},""),s=o.innerHTML||o.cssText||"",l=rRn.indexOf(e)===-1;return`${r}<${e} ${em}="true" ${a}${l?"/>":`>${s}</${e}>`}`},""),yut=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=JCe[r];return n[i||r]=e[r],n},t),aRn=(e,t,n)=>{const r={key:t,[em]:!0},i=yut(n,r);return[E.createElement("title",i,t)]},c7=(e,t)=>t.map((n,r)=>{const i={key:r,[em]:!0};return Object.keys(n).forEach(o=>{const s=JCe[o]||o;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[o]}),E.createElement(e,i)}),Uh=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>aRn(e,t.title,t.titleAttributes),toString:()=>iRn(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>yut(t),toString:()=>but(t)};default:return{toComponent:()=>c7(e,t),toString:()=>oRn(e,t,n)}}},sRn=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=Vie(e,jie.meta),o=Vie(t,jie.link),a=Vie(n,jie.script);return{priorityMethods:{toComponent:()=>[...c7("meta",i.priority),...c7("link",o.priority),...c7("script",a.priority)],toString:()=>`${Uh("meta",i.priority,r)} ${Uh("link",o.priority,r)} ${Uh("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}},lRn=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:h,linkTags:u,metaTags:d,scriptTags:p}=sRn(e)),{priority:h,base:Uh("base",t,r),bodyAttributes:Uh("bodyAttributes",n,r),htmlAttributes:Uh("htmlAttributes",i,r),link:Uh("link",u,r),meta:Uh("meta",d,r),noscript:Uh("noscript",o,r),script:Uh("script",p,r),style:Uh("style",a,r),title:Uh("title",{title:s,titleAttributes:l},r)}},$fe=lRn,C8=[],Mut=!!(typeof window<"u"&&window.document&&window.document.createElement),Ufe=class{instances=[];canUseDOM=Mut;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?C8:this.instances,add:e=>{(this.canUseDOM?C8:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?C8:this.instances).indexOf(e);(this.canUseDOM?C8:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=$fe({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},cRn={},Cut=E.createContext(cRn),xut=class wut extends b.Component{static canUseDOM=Mut;helmetData;constructor(t){super(t),this.helmetData=new Ufe(this.props.context||{},wut.canUseDOM)}render(){return E.createElement(Cut.Provider,{value:this.helmetData.value},this.props.children)}},OE=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${em}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,d=typeof s[u]>"u"?"":s[u];l.setAttribute(c,d)}l.setAttribute(em,"true"),i.some((c,u)=>(a=u,l.isEqualNode(c)))?i.splice(a,1):o.push(l)}),i.forEach(s=>s.parentNode?.removeChild(s)),o.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:o}},Xfe=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(em),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const s of a){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=o.indexOf(s);c!==-1&&o.splice(c,1)}for(let s=o.length-1;s>=0;s-=1)n.removeAttribute(o[s]);i.length===o.length?n.removeAttribute(em):n.getAttribute(em)!==a.join(",")&&n.setAttribute(em,a.join(","))},uRn=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=vut(e)),Xfe("title",t)},Uke=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:p}=e;Xfe("body",r),Xfe("html",i),uRn(d,p);const h={baseTag:OE("base",n),linkTags:OE("link",o),metaTags:OE("meta",a),noscriptTags:OE("noscript",s),scriptTags:OE("script",c),styleTags:OE("style",u)},g={},m={};Object.keys(h).forEach(v=>{const{newTags:y,oldTags:M}=h[v];y.length&&(g[v]=y),M.length&&(m[v]=h[v].oldTags)}),t&&t(),l(e,g,m)},w4=null,dRn=e=>{w4&&cancelAnimationFrame(w4),e.defer?w4=requestAnimationFrame(()=>{Uke(e,()=>{w4=null})}):(Uke(e),w4=null)},pRn=dRn,Xke=class extends b.Component{rendered=!1;shouldComponentUpdate(e){return!XEn(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=tRn(e.get().map(i=>{const o={...i.props};return delete o.context,o}));xut.canUseDOM?pRn(r):$fe&&(n=$fe(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},hRn=class extends b.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!gut($ke(this.props,"helmetData"),$ke(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Hke(Gke.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Gke.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Hke(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return E.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,a=Object.keys(o).reduce((l,c)=>(l[YEn[c]||c]=o[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,i);break;default:t=this.mapObjectTypeChildren(r,t,a,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof Ufe)){const i=r;r=new Ufe(i.context,!0),delete n.helmetData}return r?E.createElement(Xke,{...n,context:r.value}):E.createElement(Cut.Consumer,null,i=>E.createElement(Xke,{...n,context:i}))}},S4={},Yke;function fRn(){if(Yke)return S4;Yke=1;var e=ri(),t=ii();Object.defineProperty(S4,"__esModule",{value:!0}),S4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");return S4.default=i,S4}var gRn=fRn();const _3=qn(gRn);var E0=E.createContext({}),rB=(e,t,n,r)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const o=e.newAgStackInstance();let a,s,l=!1;return o.then(c=>{if(l){t.destroyBean(c);return}a=c,s=a.getGui(),n.appendChild(s),Kke(r,a)}),()=>{l=!0,a&&(s?.parentElement?.removeChild(s),t.destroyBean(a),r&&Kke(r,void 0))}},Kke=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const n=e;n.current=t}},tf=(...e)=>e.filter(n=>n!=null&&n!=="").join(" "),bf=class Sut{constructor(...t){this.classesMap={},t.forEach(n=>{this.classesMap[n]=!0})}setClass(t,n){if(!!this.classesMap[t]==n)return this;const i=new Sut;return i.classesMap={...this.classesMap},i.classesMap[t]=n,i}toString(){return Object.keys(this.classesMap).filter(n=>this.classesMap[n]).join(" ")}},ND=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,n=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===n()},Yfe=E.version?.split(".")[0],mRn=Yfe==="16"||Yfe==="17";function vRn(){return Yfe==="19"}var u7=!1;function bRn(e){return u7||setTimeout(()=>u7=!1,0),u7=!0,e()}var WW=(e,t)=>{!mRn&&e&&!u7?IR.flushSync(t):t()};function b9(e,t,n){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(n||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const r=[],i=[],o=new Map,a=new Map;for(let s=0;s<t.length;s++){const l=t[s];a.set(l.instanceId,l)}for(let s=0;s<e.length;s++){const l=e[s];o.set(l.instanceId,l),a.has(l.instanceId)&&r.push(l)}for(let s=0;s<t.length;s++){const l=t[s],c=l.instanceId;o.has(c)||i.push(l)}return r.length===e.length&&i.length===0?e:r.length===0&&i.length===t.length?t:r.length===0?i:i.length===0?r:[...r,...i]}var Aut=b.forwardRef((e,t)=>{const{registry:n,context:r}=b.useContext(E0),i=b.useRef(null),o=b.useRef(null),a=b.useRef(null),s=b.useRef(null),l=b.useRef(null),c=b.useRef(),[u,d]=b.useState(),[p,h]=b.useState(),[g,m]=b.useState(),[v,y]=b.useState(()=>new bf),[M,C]=b.useState(()=>new bf("ag-hidden")),[x,w]=b.useState(()=>new bf("ag-hidden")),[S,A]=b.useState(()=>new bf("ag-invisible"));b.useImperativeHandle(t,()=>({refresh(){return!1}})),b.useLayoutEffect(()=>rB(u,r,o.current),[u]);const z=b.useCallback(H=>{if(i.current=H,!H){c.current=r.destroyBean(c.current);return}const j={setInnerRenderer:(q,$)=>{d(q),m($)},setChildCount:q=>h(q),toggleCss:(q,$)=>y(U=>U.setClass(q,$)),setContractedDisplayed:q=>w($=>$.setClass("ag-hidden",!q)),setExpandedDisplayed:q=>C($=>$.setClass("ag-hidden",!q)),setCheckboxVisible:q=>A($=>$.setClass("ag-invisible",!q)),setCheckboxSpacing:q=>A($=>$.setClass("ag-group-checkbox-spacing",q))},G=n.createDynamicBean("groupCellRendererCtrl",!0);G&&(c.current=r.createBean(G),c.current.init(j,H,a.current,s.current,l.current,Aut,e))},[]),O=b.useMemo(()=>`ag-cell-wrapper ${v.toString()}`,[v]),T=b.useMemo(()=>`ag-group-expanded ${M.toString()}`,[M]),I=b.useMemo(()=>`ag-group-contracted ${x.toString()}`,[x]),P=b.useMemo(()=>`ag-group-checkbox ${S.toString()}`,[S]),N=u&&u.componentFromFramework,F=N?u.componentClass:void 0,L=u==null&&g!=null,W=Df(g);return E.createElement("span",{className:O,ref:z,...e.colDef?{}:{role:c.current?.getCellAriaRole()}},E.createElement("span",{className:T,ref:s}),E.createElement("span",{className:I,ref:l}),E.createElement("span",{className:P,ref:a}),E.createElement("span",{className:"ag-group-value",ref:o},L&&E.createElement(E.Fragment,null,W),N&&E.createElement(F,{...u.params})),E.createElement("span",{className:"ag-group-child-count"},p))}),Qke=Aut,exe=b.createContext({setMethods:()=>{}}),yRn=e=>{const{initialProps:t,addUpdateCallback:n,CustomComponentClass:r,setMethods:i}=e,[{key:o,...a},s]=b.useState(t);return b.useEffect(()=>{n(l=>s(l))},[]),E.createElement(exe.Provider,{value:{setMethods:i}},E.createElement(r,{key:o,...a}))},MRn=b.memo(yRn),CRn=0;function Zke(){return`agPortalKey_${++CRn}`}var Out=class{constructor(e,t,n,r){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=n,this.suppressFallbackMethods=!!r,this.statelessComponent=this.isStateless(this.reactComponent),this.key=Zke(),this.portalKey=Zke(),this.instanceCreated=this.isStatelessComponent()?Dr.resolve(!1):new Dr(i=>{this.resolveInstanceCreated=i})}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return typeof Symbol=="function"&&Symbol.for}isStateless(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&t[e]!=null||this.fallbackMethodAvailable(e)}callMethod(e,t){const n=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!n){setTimeout(()=>this.callMethod(e,t));return}const r=n[e];if(r)return r.apply(n,t);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,t&&t[0]?t[0]:{})}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new Dr(t=>this.createReactComponent(t))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=t=>{this.componentInstance=t,this.resolveInstanceCreated?.(!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=ql.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return b.createElement(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const n=this[`${e}Component`];if(!this.suppressFallbackMethods&&n)return n.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function txe(e,t,n){e.forEach(r=>{const i=t[r];i&&(n[r]=i)})}var km=class extends Out{constructor(){super(...arguments),this.awaitUpdateCallback=new Dr(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=MRn}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:n=>this.setMethods(n),addUpdateCallback:n=>{this.updateCallback=()=>(n(this.getProps()),new Dr(r=>{setTimeout(()=>{r()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,txe(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new Dr(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},xRn=class extends km{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},wRn=class extends km{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},SRn=class extends km{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:n,shake:r}=this;return e.label=t,e.icon=n,e.shake=r,e}},ARn=class extends km{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterModifiedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1,this.awaitSetMethodsCallback=new Dr(e=>{this.resolveSetMethodsCallback=e})}isFilterActive(){return this.model!=null}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){this.expectingNewMethods===!1&&this.hasBeenActive&&this.providedMethods?.doesFilterPass!==e?.doesFilterPass&&setTimeout(()=>{this.sourceParams.filterChangedCallback()}),this.expectingNewMethods=!1,super.setMethods(e),this.resolveSetMethodsCallback()}updateModel(e){this.setModel(e).then(()=>this.sourceParams.filterChangedCallback())}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,delete e.filterModifiedCallback,e}};function zut(e,t){e.parentFilterInstance(n=>{(n.setModel(t)||Dr.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var ORn=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=n=>this.updateModel(n)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){txe(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),zut(this.floatingFilterParams,e)}},zRn=class extends km{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),zut(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},TRn=class extends km{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},ERn=class extends km{refresh(e){this.sourceParams=e,this.refreshProps()}},RRn=class extends km{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then(()=>this.sourceParams.onItemActivated())}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},IRn=class extends km{refresh(e){this.sourceParams=e,this.refreshProps()}},PRn=class extends km{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},DRn=class extends km{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function nxe(){ut(231)}var kRn=1e3,LRn=class{constructor(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=n||kRn}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter(t=>t!==e),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,n){this.portals=[...this.portals,e],this.waitForInstance(t,n),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout(()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,n=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){WW(!0,()=>this.refresher()),e.rendered()&&t(e);return}window.setTimeout(()=>{this.waitForInstance(e,t,n)})}}},_Rn=({ctrl:e})=>{const t=e.isAlive(),{context:n}=b.useContext(E0),r=t?e.column.getColId():void 0,[i,o]=b.useState(),[a,s]=b.useState(),l=b.useRef(),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),p=b.useRef(),h=b.useRef();t&&!h.current&&(h.current=new dD(()=>c.current));const g=b.useCallback(M=>{if(c.current=M,l.current=M?n.createBean(new uD):n.destroyBean(l.current),!M||!e.isAlive())return;const C={setWidth:w=>{c.current&&(c.current.style.width=w)},toggleCss:(w,S)=>h.current.toggleCss(w,S),setUserStyles:w=>s(w),setAriaSort:w=>{c.current&&(w?HJe(c.current,w):VJe(c.current))},setUserCompDetails:w=>o(w),getUserCompInstance:()=>p.current||void 0};e.setComp(C,M,u.current,d.current,l.current);const x=e.getSelectAllGui();x&&(u.current?.insertAdjacentElement("afterend",x),l.current.addDestroyFunc(()=>x.remove()))},[]);b.useLayoutEffect(()=>rB(i,n,d.current,p),[i]),b.useEffect(()=>{e.setDragSource(c.current)},[i]);const m=b.useMemo(()=>!!(i?.componentFromFramework&&ND(i.componentClass)),[i]),v=i&&i.componentFromFramework,y=i&&i.componentClass;return E.createElement("div",{ref:g,style:a,className:"ag-header-cell","col-id":r,role:"columnheader"},E.createElement("div",{ref:u,className:"ag-header-cell-resize",role:"presentation"}),E.createElement("div",{ref:d,className:"ag-header-cell-comp-wrapper",role:"presentation"},v&&m&&E.createElement(y,{...i.params}),v&&!m&&E.createElement(y,{...i.params,ref:p})))},NRn=b.memo(_Rn),FRn=({ctrl:e})=>{const{context:t,gos:n}=b.useContext(E0),[r,i]=b.useState(),[o,a]=b.useState(()=>new bf("ag-header-cell","ag-floating-filter")),[s,l]=b.useState(()=>new bf),[c,u]=b.useState(()=>new bf("ag-floating-filter-button","ag-hidden")),[d,p]=b.useState("false"),[h,g]=b.useState(),[,m]=b.useState(1),v=b.useRef(),y=b.useRef(null),M=b.useRef(null),C=b.useRef(null),x=b.useRef(null),w=b.useRef(),S=b.useRef(),A=j=>{j!=null&&w.current&&w.current(j)},z=b.useCallback(j=>{if(y.current=j,v.current=j?t.createBean(new uD):t.destroyBean(v.current),!j)return;S.current=new Dr(q=>{w.current=q});const G={toggleCss:(q,$)=>a(U=>U.setClass(q,$)),setUserStyles:q=>i(q),addOrRemoveBodyCssClass:(q,$)=>l(U=>U.setClass(q,$)),setButtonWrapperDisplayed:q=>{u($=>$.setClass("ag-hidden",!q)),p(q?"false":"true")},setWidth:q=>{y.current&&(y.current.style.width=q)},setCompDetails:q=>g(q),getFloatingFilterComp:()=>S.current?S.current:null,setMenuIcon:q=>x.current?.appendChild(q)};e.setComp(G,j,x.current,M.current,v.current)},[]);b.useLayoutEffect(()=>rB(h,t,M.current,A),[h]);const O=b.useMemo(()=>o.toString(),[o]),T=b.useMemo(()=>s.toString(),[s]),I=b.useMemo(()=>c.toString(),[c]),P=b.useMemo(()=>!!(h&&h.componentFromFramework&&ND(h.componentClass)),[h]),N=b.useMemo(()=>n.get("reactiveCustomComponents"),[]),F=b.useMemo(()=>{if(h)if(N){const j=new ORn(h.params,()=>m(G=>G+1));return A(j),j}else h.componentFromFramework&&nxe()},[h]),L=F?.getProps(),W=h&&h.componentFromFramework,H=h&&h.componentClass;return E.createElement("div",{ref:z,style:r,className:O,role:"gridcell"},E.createElement("div",{ref:M,className:T,role:"presentation"},W&&!N&&E.createElement(H,{...h.params,ref:P?()=>{}:A}),W&&N&&E.createElement(exe.Provider,{value:{setMethods:j=>F.setMethods(j)}},E.createElement(H,{...L}))),E.createElement("div",{ref:C,"aria-hidden":d,className:I,role:"presentation"},E.createElement("button",{ref:x,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},WRn=b.memo(FRn),qRn=({ctrl:e})=>{const{context:t}=b.useContext(E0),[n,r]=b.useState(),[i,o]=b.useState(()=>new bf),[a,s]=b.useState(()=>new bf),[l,c]=b.useState("false"),[u,d]=b.useState(),[p,h]=b.useState(),g=b.useMemo(()=>e.column.getUniqueId(),[]),m=b.useRef(),v=b.useRef(null),y=b.useRef(null),M=b.useRef(null),C=b.useRef(),x=b.useCallback(T=>{if(v.current=T,m.current=T?t.createBean(new uD):t.destroyBean(m.current),!T)return;const I={setWidth:P=>{v.current&&(v.current.style.width=P)},toggleCss:(P,N)=>o(F=>F.setClass(P,N)),setUserStyles:P=>r(P),setHeaderWrapperHidden:P=>{const N=M.current;N&&(P?N.style.setProperty("display","none"):N.style.removeProperty("display"))},setHeaderWrapperMaxHeight:P=>{const N=M.current;N&&(P!=null?N.style.setProperty("max-height",`${P}px`):N.style.removeProperty("max-height"),N.classList.toggle("ag-header-cell-comp-wrapper-limited-height",P!=null))},setUserCompDetails:P=>h(P),setResizableDisplayed:P=>{s(N=>N.setClass("ag-hidden",!P)),c(P?"false":"true")},setAriaExpanded:P=>d(P),getUserCompInstance:()=>C.current||void 0};e.setComp(I,T,y.current,M.current,m.current)},[]);b.useLayoutEffect(()=>rB(p,t,M.current),[p]),b.useEffect(()=>{v.current&&e.setDragSource(v.current)},[p]);const w=b.useMemo(()=>!!(p?.componentFromFramework&&ND(p.componentClass)),[p]),S=b.useMemo(()=>"ag-header-group-cell "+i.toString(),[i]),A=b.useMemo(()=>"ag-header-cell-resize "+a.toString(),[a]),z=p&&p.componentFromFramework,O=p&&p.componentClass;return E.createElement("div",{ref:x,style:n,className:S,"col-id":g,role:"columnheader","aria-expanded":u},E.createElement("div",{ref:M,className:"ag-header-cell-comp-wrapper",role:"presentation"},z&&w&&E.createElement(O,{...p.params}),z&&!w&&E.createElement(O,{...p.params,ref:C})),E.createElement("div",{ref:y,"aria-hidden":l,className:A}))},BRn=b.memo(qRn),jRn=({ctrl:e})=>{const{context:t}=b.useContext(E0),{topOffset:n,rowHeight:r}=b.useMemo(()=>e.getTopAndHeight(),[]),i=e.getAriaRowIndex(),o=e.headerRowClass,[a,s]=b.useState(()=>r+"px"),[l,c]=b.useState(()=>n+"px"),u=b.useRef(null),d=b.useRef(null),[p,h]=b.useState(()=>e.getUpdatedHeaderCtrls()),g=b.useRef(),m=b.useRef(null),v=b.useCallback(C=>{if(m.current=C,g.current=C?t.createBean(new uD):t.destroyBean(g.current),!C)return;const x={setHeight:w=>s(w),setTop:w=>c(w),setHeaderCtrls:(w,S,A)=>{d.current=u.current,u.current=w;const z=b9(d.current,w,S);z!==d.current&&WW(A,()=>h(z))},setWidth:w=>{m.current&&(m.current.style.width=w)}};e.setComp(x,g.current,!1)},[]),y=b.useMemo(()=>({height:a,top:l}),[a,l]),M=b.useCallback(C=>{switch(e.type){case"group":return E.createElement(BRn,{ctrl:C,key:C.instanceId});case"filter":return E.createElement(WRn,{ctrl:C,key:C.instanceId});default:return E.createElement(NRn,{ctrl:C,key:C.instanceId})}},[]);return E.createElement("div",{ref:v,className:o,role:"row",style:y,"aria-rowindex":i},p.map(M))},HRn=b.memo(jRn),VRn=({pinned:e})=>{const[t,n]=b.useState(!0),[r,i]=b.useState([]),{context:o}=b.useContext(E0),a=b.useRef(null),s=b.useRef(null),l=b.useRef(),c=e==="left",u=e==="right",d=!c&&!u,p=b.useCallback(m=>{if(a.current=m,l.current=m?o.createBean(new Ptt(e)):o.destroyBean(l.current),!m)return;const v={setDisplayed:n,setCtrls:y=>i(y),setCenterWidth:y=>{s.current&&(s.current.style.width=y)},setViewportScrollLeft:y=>{a.current&&(a.current.scrollLeft=y)},setPinnedContainerWidth:y=>{a.current&&(a.current.style.width=y,a.current.style.minWidth=y,a.current.style.maxWidth=y)}};l.current.setComp(v,a.current)},[]),h=t?"":"ag-hidden",g=()=>r.map(m=>E.createElement(HRn,{ctrl:m,key:m.instanceId}));return E.createElement(E.Fragment,null,c&&E.createElement("div",{ref:p,className:"ag-pinned-left-header "+h,"aria-hidden":!t,role:"rowgroup"},g()),u&&E.createElement("div",{ref:p,className:"ag-pinned-right-header "+h,"aria-hidden":!t,role:"rowgroup"},g()),d&&E.createElement("div",{ref:p,className:"ag-header-viewport "+h,role:"presentation",tabIndex:-1},E.createElement("div",{ref:s,className:"ag-header-container",role:"rowgroup"},g())))},Gie=b.memo(VRn),GRn=()=>{const[e,t]=b.useState(()=>new bf),[n,r]=b.useState(),{context:i}=b.useContext(E0),o=b.useRef(null),a=b.useRef(),s=b.useCallback(u=>{if(o.current=u,a.current=u?i.createBean(new Rtt):i.destroyBean(a.current),!u)return;const d={toggleCss:(p,h)=>t(g=>g.setClass(p,h)),setHeightAndMinHeight:p=>r(p)};a.current.setComp(d,u,u)},[]),l=b.useMemo(()=>"ag-header "+e.toString(),[e]),c=b.useMemo(()=>({height:n,minHeight:n}),[n]);return E.createElement("div",{ref:s,className:l,style:c,role:"presentation"},E.createElement(Gie,{pinned:"left"}),E.createElement(Gie,{pinned:null}),E.createElement(Gie,{pinned:"right"}))},$Rn=b.memo(GRn),URn=(e,t)=>{b.useEffect(()=>{const n=t.current;if(n){const r=n.parentElement;if(r){const i=document.createComment(e);return r.insertBefore(i,n),()=>{r.removeChild(i)}}}},[e])},YA=URn,XRn=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new Dr(n=>{this.resolveInstanceCreated=n}),this.onValueChange=n=>this.updateValue(n),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){txe(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}setRef(e){this.componentInstance=e,this.resolveInstanceCreated?.(),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached"]}updateValue(e){this.value=e,this.refreshProps()}},YRn=e=>{const t=b.useRef(e),n=b.useRef(),r=b.useRef(!1),i=b.useRef(!1),[,o]=b.useState(0);r.current&&(i.current=!0),b.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),o(a=>a+1),()=>{i.current&&n.current?.()}),[])},KRn=e=>{const[t,n]=b.useState(),r=b.useContext(E0),{context:i,popupSvc:o,localeSvc:a,gos:s,editSvc:l}=r,{editDetails:c,cellCtrl:u,eParentCell:d}=e;return YRn(()=>{const{compDetails:p}=c,h=s.get("stopEditingWhenCellsLoseFocus"),g=i.createBean(l.createPopupEditorWrapper(p.params)),m=g.getGui();if(e.jsChildComp){const A=e.jsChildComp.getGui();A&&m.appendChild(A)}const{column:v,rowNode:y}=u,M={column:v,rowNode:y,type:"popupCellEditor",eventSource:d,ePopup:m,position:c.popupPosition,keepWithinBounds:!0},C=o?.positionPopupByComponent.bind(o,M),x=F2e(a),w=o?.addPopup({modal:h,eChild:m,closeOnEsc:!0,closedCallback:()=>{u.onPopupEditorClosed()},anchorToElement:d,positionCallback:C,ariaLabel:x("ariaLabelCellEditor","Cell Editor")}),S=w?w.hideFunc:void 0;return n(g),e.jsChildComp?.afterGuiAttached?.(),()=>{S?.(),i.destroyBean(g)}}),b.useLayoutEffect(()=>()=>{u.isCellFocused()&&t?.getGui().contains(Gi(r))&&d.focus({preventScroll:!0})},[t]),E.createElement(E.Fragment,null,t&&e.wrappedContent&&ql.createPortal(e.wrappedContent,t.getGui()))},Jke=b.memo(KRn),QRn=(e,t,n,r,i,o)=>{const{context:a}=b.useContext(E0),s=b.useCallback(()=>{const l=i.current;if(!l)return;const c=l.getGui();c&&c.parentElement&&c.parentElement.removeChild(c),a.destroyBean(l),i.current=void 0},[]);b.useEffect(()=>{const l=e!=null,c=e?.compDetails&&!e.compDetails.componentFromFramework,u=t&&n==null;if(!(l&&c&&!u)){s();return}const p=e.compDetails;if(i.current){const g=i.current,v=g.refresh!=null&&e.force==!1?g.refresh(p.params):!1;if(v===!0||v===void 0)return;s()}p.newAgStackInstance().then(g=>{if(!g)return;const m=g.getGui();if(!m)return;(t?n:o.current).appendChild(m),i.current=g})},[e,t,r]),b.useEffect(()=>s,[])},ZRn=QRn,JRn=(e,t,n)=>{const{compProxy:r}=e;n(r);const i=r.getProps(),o=ND(t);return E.createElement(exe.Provider,{value:{setMethods:a=>r.setMethods(a)}},o?E.createElement(t,{...i}):E.createElement(t,{...i,ref:a=>r.setRef(a)}))},eLe=(e,t,n)=>{const r=e.compProxy;return E.createElement(E.Fragment,null,r?JRn(e,t,n):E.createElement(t,{...e.compDetails.params,ref:n}))},eIn=(e,t,n,r,i)=>{const o=e.compDetails,a=o.componentClass,s=o.componentFromFramework&&!e.popup,l=o.componentFromFramework&&e.popup,c=!o.componentFromFramework&&e.popup;return E.createElement(E.Fragment,null,s&&eLe(e,a,t),l&&E.createElement(Jke,{editDetails:e,cellCtrl:r,eParentCell:n,wrappedContent:eLe(e,a,t)}),c&&i&&E.createElement(Jke,{editDetails:e,cellCtrl:r,eParentCell:n,jsChildComp:i}))},tIn=(e,t,n,r,i,o,a)=>{const{compDetails:s,value:l}=e,c=!s,u=s&&s.componentFromFramework,d=s&&s.componentClass,p=l?.toString?l.toString():l,h=()=>E.createElement(E.Fragment,null,c&&E.createElement(E.Fragment,null,p),u&&!o&&E.createElement(d,{...s.params,key:t,ref:r}),u&&o&&E.createElement(d,{...s.params,key:t}));return E.createElement(E.Fragment,null,i?E.createElement("span",{role:"presentation",id:`cell-${n}`,className:"ag-cell-value",ref:a},h()):h())},nIn=({cellCtrl:e,printLayout:t,editingRow:n})=>{const r=b.useContext(E0),{context:i}=r,{column:{colIdSanitised:o},instanceId:a}=e,s=b.useRef(),[l,c]=b.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[u,d]=b.useState(),[p,h]=b.useState(1),[g,m]=b.useState(),[v,y]=b.useState(!1),[M,C]=b.useState(!1),[x,w]=b.useState(!1),[S,A]=b.useState(),z=b.useMemo(()=>e.isForceWrapper(),[e]),O=b.useMemo(()=>e.getCellAriaRole(),[e]),T=b.useRef(null),I=b.useRef(null),P=b.useRef(null),N=b.useRef(),F=b.useRef(),L=b.useRef(),W=b.useRef([]),H=b.useRef(),[j,G]=b.useState(0),q=b.useCallback(ne=>{H.current=ne,G(le=>le+1)},[]),$=l!=null&&(v||x||M),U=z||$,X=b.useCallback(ne=>{if(F.current=ne,ne){const le=ne.isCancelBeforeStart&&ne.isCancelBeforeStart();setTimeout(()=>{le?(e.stopEditing(!0),e.focusCell(!0)):e.cellEditorAttached()})}},[e]),Q=b.useRef();Q.current||(Q.current=new dD(()=>T.current)),ZRn(l,U,H.current,j,N,T);const re=b.useRef();b.useLayoutEffect(()=>{const ne=re.current,le=l;if(re.current=l,ne==null||ne.compDetails==null||le==null||le.compDetails==null)return;const he=ne.compDetails,be=le.compDetails;if(he.componentClass!=be.componentClass||P.current?.refresh==null)return;P.current.refresh(be.params)!=!0&&h(Me=>Me+1)},[l]),b.useLayoutEffect(()=>{if(!(u&&!u.compDetails.componentFromFramework))return;const le=u.compDetails,he=u.popup===!0,be=le.newAgStackInstance();return be.then(me=>{if(!me)return;const Me=me.getGui();X(me),he||((z?L:T).current?.appendChild(Me),me.afterGuiAttached&&me.afterGuiAttached()),A(me)}),()=>{be.then(me=>{const Me=me.getGui();i.destroyBean(me),X(void 0),A(void 0),Me?.parentElement?.removeChild(Me)})}},[u]);const ee=b.useCallback(ne=>{if(L.current=ne,!ne){W.current.forEach(he=>he()),W.current=[];return}const le=he=>{if(he){const be=he.getGui();ne.insertAdjacentElement("afterbegin",be),W.current.push(()=>{i.destroyBean(he),Rs(be)})}return he};if(v){const he=e.createSelectionCheckbox();le(he)}x&&le(e.createDndSource()),M&&le(e.createRowDragComp())},[e,i,x,M,v]),se=b.useCallback(()=>{const ne=!e.isCellSpanning()||I.current,le=T.current;if(s.current=le?i.createBean(new uD):i.destroyBean(s.current),!le||!ne||!e)return;const he={toggleCss:(me,Me)=>Q.current.toggleCss(me,Me),setUserStyles:me=>m(me),getFocusableElement:()=>T.current,setIncludeSelection:me=>y(me),setIncludeRowDrag:me=>C(me),setIncludeDndSource:me=>w(me),getCellEditor:()=>F.current||null,getCellRenderer:()=>P.current??N.current,getParentOfValue:()=>H.current??L.current??T.current,setRenderDetails:(me,Me,Oe)=>{c(de=>de?.compDetails!==me||de?.value!==Me||de?.force!==Oe?{value:Me,compDetails:me,force:Oe}:de)},setEditDetails:(me,Me,Oe,de)=>{if(me){let ie;de?ie=new XRn(me.params,()=>h(ue=>ue+1)):me.componentFromFramework&&nxe(),d({compDetails:me,popup:Me,popupPosition:Oe,compProxy:ie}),Me||c(void 0)}else e.hasBrowserFocus()&&he.getFocusableElement().focus({preventScroll:!0}),d(ue=>{ue?.compProxy&&(F.current=void 0)})}},be=L.current||void 0;e.setComp(he,le,I.current??void 0,be,t,n,s.current)},[]),pe=b.useCallback(ne=>{T.current=ne,se()},[]),te=b.useCallback(ne=>{I.current=ne,se()},[]),ce=b.useMemo(()=>!!(l?.compDetails?.componentFromFramework&&ND(l.compDetails.componentClass)),[l]);b.useLayoutEffect(()=>{T.current&&(Q.current.toggleCss("ag-cell-value",!U),Q.current.toggleCss("ag-cell-inline-editing",!!u&&!u.popup),Q.current.toggleCss("ag-cell-popup-editing",!!u&&!!u.popup),Q.current.toggleCss("ag-cell-not-inline-editing",!u||!!u.popup),e.setInlineEditingCss())});const oe=()=>E.createElement(E.Fragment,null,l!=null&&tIn(l,p,a,P,U,ce,q),u!=null&&eIn(u,X,T.current,e,S)),ae=()=>E.createElement("div",{ref:pe,style:g,role:O,"col-id":o},U?E.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:ee},oe()):oe());return e.isCellSpanning()?E.createElement("div",{ref:te,className:"ag-spanned-cell-wrapper",role:"presentation"},ae()):ae()},rIn=b.memo(nIn),iIn=({rowCtrl:e,containerType:t})=>{const{context:n,gos:r}=b.useContext(E0),i=b.useRef(),o=b.useRef(e.getDomOrder()),a=e.isFullWidth(),s=e.rowNode.displayed,[l,c]=b.useState(()=>s?e.rowNode.getRowIndexString():null),[u,d]=b.useState(()=>e.rowId),[p,h]=b.useState(()=>e.businessKey),[g,m]=b.useState(()=>e.rowStyles),v=b.useRef(null),y=b.useRef(null),[M,C]=b.useState(()=>null),[x,w]=b.useState(),[S,A]=b.useState(()=>s?e.getInitialRowTop(t):void 0),[z,O]=b.useState(()=>s?e.getInitialTransform(t):void 0),T=b.useRef(null),I=b.useRef(),P=b.useRef(!1),[N,F]=b.useState(0);b.useEffect(()=>{if(P.current||!x||N>10)return;const Q=T.current?.firstChild;Q?(e.setupDetailRowAutoHeight(Q),P.current=!0):F(re=>re+1)},[x,N]);const L=b.useRef();L.current||(L.current=new dD(()=>T.current));const W=b.useCallback(Q=>{if(T.current=Q,i.current=Q?n.createBean(new uD):n.destroyBean(i.current),!Q){e.unsetComp(t);return}if(!e.isAlive())return;const re={setTop:A,setTransform:O,toggleCss:(ee,se)=>L.current.toggleCss(ee,se),setDomOrder:ee=>o.current=ee,setRowIndex:c,setRowId:d,setRowBusinessKey:h,setUserStyles:m,setCellCtrls:(ee,se)=>{y.current=v.current,v.current=ee;const pe=b9(y.current,ee,o.current);pe!==y.current&&WW(se,()=>C(pe))},showFullWidth:ee=>w(ee),getFullWidthCellRenderer:()=>I.current,refreshFullWidth:ee=>$.current?(w(se=>({...se,params:ee()})),!0):!I.current||!I.current.refresh?!1:I.current.refresh(ee())};e.setComp(re,Q,t,i.current)},[]);b.useLayoutEffect(()=>rB(x,n,T.current,I),[x]);const H=b.useMemo(()=>{const Q={top:S,transform:z};return Object.assign(Q,g),Q},[S,z,g]),j=a&&x?.componentFromFramework,G=!a&&M!=null,q=b.useMemo(()=>!!(x?.componentFromFramework&&ND(x.componentClass)),[x]),$=b.useRef(!1);b.useEffect(()=>{$.current=q&&!!x&&!!r.get("reactiveCustomComponents")},[q,x]);const U=()=>M?.map(Q=>E.createElement(rIn,{cellCtrl:Q,editingRow:e.editing,printLayout:e.printLayout,key:Q.instanceId})),X=()=>{const Q=x.componentClass;return E.createElement(E.Fragment,null,q?E.createElement(Q,{...x.params}):E.createElement(Q,{...x.params,ref:I}))};return E.createElement("div",{ref:W,role:"row",style:H,"row-index":l,"row-id":u,"row-business-key":p},G&&U(),j&&X())},tLe=b.memo(iIn),oIn=({name:e})=>{const{context:t,gos:n}=b.useContext(E0),r=b.useMemo(()=>pD(e),[e]),i=b.useRef(null),o=b.useRef(null),a=b.useRef(null),s=b.useRef([]),l=b.useRef([]),[c,u]=b.useState(()=>[]),d=!!n.get("enableCellSpan")&&!!r.getSpannedRowCtrls,p=b.useRef([]),h=b.useRef([]),[g,m]=b.useState(()=>[]),v=b.useRef(!1),y=b.useRef(),M=b.useMemo(()=>tf("ag-viewport",Mye(e)),[e]),C=b.useMemo(()=>tf(PN(e)),[e]),x=b.useMemo(()=>tf("ag-spanning-container",ytt(e)),[e]),w=r.type==="center"||d,S=w?i:o;YA(" AG Row Container "+e+" ",S);const A=b.useCallback(()=>{const L=!w||i.current!=null,W=o.current!=null,H=!d||a.current!=null;return L&&W&&H},[]),z=b.useCallback(()=>i.current==null&&o.current==null&&a.current==null,[]),O=b.useCallback(()=>{if(z()&&(y.current=t.destroyBean(y.current)),A()){const L=j=>{const G=b9(l.current,s.current,v.current);G!==l.current&&(l.current=G,WW(j,()=>u(G)))},W=j=>{const G=b9(h.current,p.current,v.current);G!==h.current&&(h.current=G,WW(j,()=>m(G)))},H={setHorizontalScroll:j=>{i.current&&(i.current.scrollLeft=j)},setViewportHeight:j=>{i.current&&(i.current.style.height=j)},setRowCtrls:({rowCtrls:j,useFlushSync:G})=>{const q=!!G&&s.current.length>0&&j.length>0;s.current=j,L(q)},setSpannedRowCtrls:(j,G)=>{const q=!!G&&p.current.length>0&&j.length>0;p.current=j,W(q)},setDomOrder:j=>{v.current!=j&&(v.current=j,L(!1))},setContainerWidth:j=>{o.current&&(o.current.style.width=j)},setOffsetTop:j=>{o.current&&(o.current.style.transform=`translateY(${j})`)}};y.current=t.createBean(new xtt(e)),y.current.setComp(H,o.current,a.current??void 0,i.current)}},[A,z]),T=b.useCallback(L=>{o.current=L,O()},[O]),I=b.useCallback(L=>{a.current=L,O()},[O]),P=b.useCallback(L=>{i.current=L,O()},[O]),N=()=>E.createElement("div",{className:C,ref:T,role:"rowgroup"},c.map(L=>E.createElement(tLe,{rowCtrl:L,containerType:r.type,key:L.instanceId})));if(!w)return N();const F=()=>d&&E.createElement("div",{className:x,ref:I,role:"rowgroup"},g.map(L=>E.createElement(tLe,{rowCtrl:L,containerType:r.type,key:L.instanceId})));return E.createElement("div",{className:M,ref:P,role:"presentation"},N(),F())},aIn=b.memo(oIn),sIn=()=>{const e=b.useContext(E0),{context:t,overlays:n}=e,[r,i]=b.useState(""),[o,a]=b.useState(0),[s,l]=b.useState(0),[c,u]=b.useState("0px"),[d,p]=b.useState("0px"),[h,g]=b.useState("100%"),[m,v]=b.useState("0px"),[y,M]=b.useState("0px"),[C,x]=b.useState("100%"),[w,S]=b.useState(!0),[A,z]=b.useState(!0),[O,T]=b.useState(null),[I,P]=b.useState(""),[N,F]=b.useState(null),[L,W]=b.useState("ag-layout-normal"),H=b.useRef();H.current||(H.current=new dD(()=>j.current));const j=b.useRef(null),G=b.useRef(null),q=b.useRef(null),$=b.useRef(null),U=b.useRef(null),X=b.useRef(null),Q=b.useRef(null),re=b.useRef([]),ee=b.useRef([]);YA(" AG Grid Body ",j),YA(" AG Pinned Top ",G),YA(" AG Sticky Top ",q),YA(" AG Middle ",X),YA(" AG Pinned Bottom ",Q);const se=b.useCallback(ie=>{if(j.current=ie,!ie){re.current=t.destroyBeans(re.current),ee.current.forEach(Ie=>Ie()),ee.current=[];return}if(!t)return;const ue=(Ie,Le)=>{Ie.appendChild(Le),ee.current.push(()=>Ie.removeChild(Le))},Ae=Ie=>{const Le=t.createBean(new Ie);return re.current.push(Le),Le},Ce=(Ie,Le,we)=>{ue(Ie,document.createComment(we)),ue(Ie,Ae(Le).getGui())};Ce(ie,Ott," AG Fake Horizontal Scroll ");const Ee=n?.getOverlayWrapperCompClass();Ee&&Ce(ie,Ee," AG Overlay Wrapper "),U.current&&Ce(U.current,ztt," AG Fake Vertical Scroll ");const Ge={setRowAnimationCssOnBodyViewport:i,setColumnCount:Ie=>{j.current&&BJe(j.current,Ie)},setRowCount:Ie=>{j.current&&qJe(j.current,Ie)},setTopHeight:a,setBottomHeight:l,setStickyTopHeight:u,setStickyTopTop:p,setStickyTopWidth:g,setTopInvisible:S,setBottomInvisible:z,setColumnMovingCss:(Ie,Le)=>H.current.toggleCss(Ie,Le),updateLayoutClasses:W,setAlwaysVerticalScrollClass:T,setPinnedTopBottomOverflowY:P,setCellSelectableCss:(Ie,Le)=>F(Le?Ie:null),setBodyViewportWidth:Ie=>{X.current&&(X.current.style.width=Ie)},registerBodyViewportResizeListener:Ie=>{if(X.current){const Le=Hf(e,X.current,Ie);ee.current.push(()=>Le())}},setStickyBottomHeight:v,setStickyBottomBottom:M,setStickyBottomWidth:x,setGridRootRole:Ie=>ie.setAttribute("role",Ie)},_e=t.createBean(new Stt);re.current.push(_e),_e.setComp(Ge,ie,X.current,G.current,Q.current,q.current,$.current)},[]),pe=b.useMemo(()=>tf("ag-root","ag-unselectable",L),[L]),te=b.useMemo(()=>tf("ag-body-viewport",r,L,O,N),[r,L,O,N]),ce=b.useMemo(()=>tf("ag-body",L),[L]),oe=b.useMemo(()=>tf("ag-floating-top",w?"ag-invisible":null,N),[N,w]),ae=b.useMemo(()=>tf("ag-sticky-top",N),[N]),ne=b.useMemo(()=>tf("ag-sticky-bottom",m==="0px"?"ag-invisible":null,N),[N,m]),le=b.useMemo(()=>tf("ag-floating-bottom",A?"ag-invisible":null,N),[N,A]),he=b.useMemo(()=>({height:o,minHeight:o,overflowY:I}),[o,I]),be=b.useMemo(()=>({height:c,top:d,width:h}),[c,d,h]),me=b.useMemo(()=>({height:m,bottom:y,width:C}),[m,y,C]),Me=b.useMemo(()=>({height:s,minHeight:s,overflowY:I}),[s,I]),Oe=ie=>E.createElement(aIn,{name:ie,key:`${ie}-container`}),de=({section:ie,children:ue,className:Ae,style:Ce})=>E.createElement("div",{ref:ie,className:Ae,role:"presentation",style:Ce},ue.map(Oe));return E.createElement("div",{ref:se,className:pe},E.createElement($Rn,null),de({section:G,className:oe,style:he,children:["topLeft","topCenter","topRight","topFullWidth"]}),E.createElement("div",{className:ce,ref:U,role:"presentation"},de({section:X,className:te,children:["left","center","right","fullWidth"]})),de({section:q,className:ae,style:be,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),de({section:$,className:ne,style:me,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),de({section:Q,className:le,style:Me,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},lIn=b.memo(sIn),cIn=(e,t)=>{const{children:n,eFocusableElement:r,onTabKeyDown:i,gridCtrl:o,forceFocusOutWhenTabGuardsAreEmpty:a,isEmpty:s}=e,{context:l}=b.useContext(E0),c=b.useRef(null),u=b.useRef(null),d=b.useRef(),p=y=>{const M=y==null?void 0:parseInt(y,10).toString();[c,u].forEach(C=>{M===void 0?C.current?.removeAttribute("tabindex"):C.current?.setAttribute("tabindex",M)})};b.useImperativeHandle(t,()=>({forceFocusOutOfContainer(y){d.current?.forceFocusOutOfContainer(y)}}));const h=b.useCallback(()=>{const y=c.current,M=u.current;if(!y&&!M){d.current=l.destroyBean(d.current);return}if(y&&M){const C={setTabIndex:p};d.current=l.createBean(new qtt({comp:C,eTopGuard:y,eBottomGuard:M,eFocusableElement:r,onTabKeyDown:i,forceFocusOutWhenTabGuardsAreEmpty:a,focusInnerElement:x=>o.focusInnerElement(x),isEmpty:s}))}},[]),g=b.useCallback(y=>{c.current=y,h()},[h]),m=b.useCallback(y=>{u.current=y,h()},[h]),v=y=>{const M=y==="top"?FO.TAB_GUARD_TOP:FO.TAB_GUARD_BOTTOM;return E.createElement("div",{className:`${FO.TAB_GUARD} ${M}`,role:"presentation",ref:y==="top"?g:m})};return E.createElement(E.Fragment,null,v("top"),n,v("bottom"))},uIn=b.forwardRef(cIn),dIn=b.memo(uIn),pIn=({context:e})=>{const[t,n]=b.useState(""),[r,i]=b.useState(""),[o,a]=b.useState(null),[s,l]=b.useState(null),[c,u]=b.useState(!1),[d,p]=b.useState(),h=b.useRef(),g=b.useRef(null),m=b.useRef(),[v,y]=b.useState(null),M=b.useRef(()=>{}),C=b.useRef(),x=b.useRef([]),w=b.useCallback(()=>{},[]),S=b.useMemo(()=>e.isDestroyed()?null:e.getBeans(),[e]);YA(" AG Grid ",g);const A=b.useCallback(N=>{if(g.current=N,h.current=N?e.createBean(new Htt):e.destroyBean(h.current),!N||e.isDestroyed())return;const F=h.current;M.current=F.focusInnerElement.bind(F);const L={destroyGridUi:()=>{},setRtlClass:n,forceFocusOutOfContainer:W=>{if(!W&&C.current?.isDisplayed()){C.current.forceFocusOutOfContainer(W);return}m.current?.forceFocusOutOfContainer(W)},updateLayoutClasses:i,getFocusableContainers:()=>{const W=[],H=g.current?.querySelector(".ag-root");return H&&W.push({getGui:()=>H}),x.current.forEach(j=>{j.isDisplayed()&&W.push(j)}),W},setCursor:a,setUserSelect:l};F.setComp(L,N,N),u(!0)},[]);b.useEffect(()=>{const N=h.current,F=g.current;if(!d||!S||!N||!v||!F)return;const L=[],{watermarkSelector:W,paginationSelector:H,sideBarSelector:j,statusBarSelector:G,gridHeaderDropZonesSelector:q}=N.getOptionalSelectors(),$=[];if(q){const X=e.createBean(new q.component),Q=X.getGui();F.insertAdjacentElement("afterbegin",Q),$.push(Q),L.push(X)}if(j){const X=e.createBean(new j.component),Q=X.getGui(),re=v.querySelector(".ag-tab-guard-bottom");re&&(re.insertAdjacentElement("beforebegin",Q),$.push(Q)),L.push(X),x.current.push(X)}const U=X=>{const Q=e.createBean(new X),re=Q.getGui();return F.insertAdjacentElement("beforeend",re),$.push(re),L.push(Q),Q};if(G&&U(G.component),H){const X=U(H.component);C.current=X,x.current.push(X)}return W&&U(W.component),()=>{e.destroyBeans(L),$.forEach(X=>{X.parentElement?.removeChild(X)})}},[d,v,S]);const z=b.useMemo(()=>tf("ag-root-wrapper",t,r),[t,r]),O=b.useMemo(()=>tf("ag-root-wrapper-body","ag-focus-managed",r),[r]),T=b.useMemo(()=>({userSelect:s??"",WebkitUserSelect:s??"",cursor:o??""}),[s,o]),I=b.useCallback(N=>{m.current=N,p(N!==null)},[]),P=b.useCallback(()=>!h.current?.isFocusable(),[]);return E.createElement("div",{ref:A,className:z,style:T,role:"presentation"},E.createElement("div",{className:O,ref:y,role:"presentation"},c&&v&&S&&E.createElement(E0.Provider,{value:S},E.createElement(dIn,{ref:I,eFocusableElement:v,onTabKeyDown:w,gridCtrl:h.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:P},E.createElement(lIn,null)))))},hIn=b.memo(pIn),fIn=class extends dt{wireBeans(e){this.ctrlsSvc=e.ctrlsSvc}areHeaderCellsRendered(){return this.ctrlsSvc.getHeaderRowContainerCtrls().every(e=>e.getAllCtrls().every(t=>t.areCellsRendered()))}},Tut={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},gIn={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...Tut},Eut=new Set(Object.keys(gIn)),mIn=new Set(Object.keys(Tut)),Rut=e=>{const t=b.useRef(),n=b.useRef(null),r=b.useRef(null),i=b.useRef([]),o=b.useRef([]),a=b.useRef(e),s=b.useRef(),l=b.useRef(),c=b.useRef(!1),[u,d]=b.useState(void 0),[,p]=b.useState(0),h=b.useCallback(v=>{if(n.current=v,!v){i.current.forEach(T=>T()),i.current.length=0;return}const y=e.modules||[];r.current||(r.current=new LRn(()=>p(T=>T+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),i.current.push(()=>{r.current?.destroy(),r.current=null}));const M=Mkt(e.gridOptions,e,Object.keys(e).filter(T=>!Eut.has(T))),C=()=>{if(c.current){const T=()=>s.current?.shouldQueueUpdates()?void 0:o.current.shift();let I=T();for(;I;)I(),I=T()}},x=new MIn(C);s.current=x;const w=new fIn,S={providedBeanInstances:{frameworkCompWrapper:new bIn(r.current,M.reactiveCustomComponents??r6t("reactiveCustomComponents")??!0),renderStatus:w},modules:y,frameworkOverrides:x,setThemeOnGridDiv:!0},A=T=>{d(T),T.createBean(w),i.current.push(()=>{T.destroy()}),T.getBean("ctrlsSvc").whenReady({addDestroyFunc:I=>{i.current.push(I)}},()=>{if(T.isDestroyed())return;const I=t.current;I&&e.passGridApi?.(I)})},z=T=>{T.getBean("ctrlsSvc").whenReady({addDestroyFunc:I=>{i.current.push(I)}},()=>{o.current.forEach(I=>I()),o.current.length=0,c.current=!0})},O=new Tnt;M.gridId??(M.gridId=l.current),t.current=O.create(v,M,A,z,S),i.current.push(()=>{t.current=void 0}),t.current&&(l.current=t.current.getGridId())},[]),g=b.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),m=b.useCallback(v=>{c.current&&!s.current?.shouldQueueUpdates()?v():o.current.push(v)},[]);return b.useEffect(()=>{const v=vIn(a.current,e);a.current=e,m(()=>{t.current&&Ckt(v,t.current)})},[e]),E.createElement("div",{style:g,className:e.className,ref:h},u&&!u.isDestroyed()?E.createElement(hIn,{context:u}):null,r.current?.getPortals()??null)};function vIn(e,t){const n={};return Object.keys(t).forEach(r=>{if(Eut.has(r)){mIn.has(r)&&ut(274,{prop:r});return}const i=t[r];e[r]!==i&&(n[r]=i)}),n}var bIn=class extends c6t{constructor(e,t){super(),this.parent=e,this.reactiveCustomComponents=t}createWrapper(e,t){if(this.reactiveCustomComponents){const i=(o=>{switch(o){case"filter":return ARn;case"floatingFilterComponent":return zRn;case"dateComponent":return wRn;case"dragAndDropImageComponent":return SRn;case"loadingOverlayComponent":return ERn;case"noRowsOverlayComponent":return IRn;case"statusPanel":return PRn;case"toolPanel":return DRn;case"menuItem":return RRn;case"cellRenderer":return xRn;case"innerHeaderComponent":return TRn}})(t.name);if(i)return new i(e,this.parent,t)}else switch(t.name){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":nxe();break}const n=!t.cellRenderer&&t.name!=="toolPanel";return new Out(e,this.parent,t,n)}},yIn=b.forwardRef((e,t)=>{const n=b.useContext(E0),{registry:r,context:i,gos:o,rowModel:a}=n,[s,l]=b.useState(()=>new bf),[c,u]=b.useState(()=>new bf),[d,p]=b.useState(),[h,g]=b.useState(),m=b.useRef(),v=b.useRef(null),y=b.useRef(),M=b.useMemo(()=>Zet(e.api.getGridId(),d?.rowModelType??"clientSide"),[e]),C=b.useMemo(()=>s.toString()+" ag-details-row",[s]),x=b.useMemo(()=>c.toString()+" ag-details-grid",[c]);t&&b.useImperativeHandle(t,()=>({refresh(){return m.current?.refresh()??!1}})),e.template&&ut(230);const w=b.useCallback(A=>{if(v.current=A,!A){m.current=i.destroyBean(m.current),y.current?.();return}const z={toggleCss:(T,I)=>l(P=>P.setClass(T,I)),toggleDetailGridCss:(T,I)=>u(P=>P.setClass(T,I)),setDetailGrid:T=>p(T),setRowData:T=>g(T),getGui:()=>v.current},O=r.createDynamicBean("detailCellRendererCtrl",!0);if(O&&(i.createBean(O),O.init(z,e),m.current=O,o.get("detailRowAutoHeight"))){const T=()=>{if(v.current==null)return;const I=v.current.clientHeight;I!=null&&I>0&&setTimeout(()=>{e.node.setRowHeight(I),(oa(o)||Au(o))&&a.onRowHeightChanged()},0)};y.current=Hf(n,A,T),T()}},[]),S=b.useCallback(A=>{m.current?.registerDetailWithMaster(A)},[]);return E.createElement("div",{className:C,ref:w},d&&E.createElement(Rut,{className:x,...d,modules:M,rowData:h,passGridApi:S}))}),MIn=class extends jtt{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:Qke,agGroupRowRenderer:Qke,agDetailCellRenderer:yIn},this.wrapIncoming=(t,n)=>n==="ensureVisible"?bRn(t):t()}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return vRn()}},Kn=class extends b.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e,this.apiListeners.forEach(t=>t(e))}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return E.createElement(Rut,{...this.props,passGridApi:this.setGridApi})}},iB=e=>e.type==="checkbox",cO=e=>e instanceof Date,X0=e=>e==null;const Iut=e=>typeof e=="object";var Ec=e=>!X0(e)&&!Array.isArray(e)&&Iut(e)&&!cO(e),Put=e=>Ec(e)&&e.target?iB(e.target)?e.target.checked:e.target.value:e,CIn=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Dut=(e,t)=>e.has(CIn(t)),xIn=e=>{const t=e.constructor&&e.constructor.prototype;return Ec(t)&&t.hasOwnProperty("isPrototypeOf")},rxe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hu(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(rxe&&(e instanceof Blob||r))&&(n||Ec(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!xIn(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=hu(e[i]));else return e;return t}var nZ=e=>/^\w*$/.test(e),Cc=e=>e===void 0,ixe=e=>Array.isArray(e)?e.filter(Boolean):[],oxe=e=>ixe(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ar=(e,t,n)=>{if(!t||!Ec(e))return n;const r=(nZ(t)?[t]:oxe(t)).reduce((i,o)=>X0(i)?i:i[o],e);return Cc(r)||r===e?Cc(e[t])?n:e[t]:r},Vp=e=>typeof e=="boolean",Ws=(e,t,n)=>{let r=-1;const i=nZ(t)?[t]:oxe(t),o=i.length,a=o-1;for(;++r<o;){const s=i[r];let l=n;if(r!==a){const c=e[s];l=Ec(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const y9={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Kg={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},j2={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},kut=E.createContext(null);kut.displayName="HookFormContext";const axe=()=>E.useContext(kut);var Lut=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Kg.all&&(t._proxyFormState[a]=!r||Kg.all),n&&(n[a]=!0),e[a]}});return i};const sxe=typeof window<"u"?E.useLayoutEffect:E.useEffect;function wIn(e){const t=axe(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=E.useState(n._formState),l=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return sxe(()=>n._subscribe({name:i,formState:l.current,exact:o,callback:c=>{!r&&s({...n._formState,...c})}}),[i,r,o]),E.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),E.useMemo(()=>Lut(a,n,l.current,!1),[a,n])}var Jv=e=>typeof e=="string",_ut=(e,t,n,r,i)=>Jv(e)?(r&&t.watch.add(e),ar(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),ar(n,o))):(r&&(t.watchAll=!0),n),Kfe=e=>X0(e)||!Iut(e);function hy(e,t,n=new WeakSet){if(Kfe(e)||Kfe(t))return e===t;if(cO(e)&&cO(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of r){const a=e[o];if(!i.includes(o))return!1;if(o!=="ref"){const s=t[o];if(cO(a)&&cO(s)||Ec(a)&&Ec(s)||Array.isArray(a)&&Array.isArray(s)?!hy(a,s,n):a!==s)return!1}}return!0}function SIn(e){const t=axe(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a,compute:s}=e||{},l=E.useRef(i),c=E.useRef(s),u=E.useRef(void 0);c.current=s;const d=E.useMemo(()=>n._getWatch(r,l.current),[n,r]),[p,h]=E.useState(c.current?c.current(d):d);return sxe(()=>n._subscribe({name:r,formState:{values:!0},exact:a,callback:g=>{if(!o){const m=_ut(r,n._names,g.values||n._formValues,!1,l.current);if(c.current){const v=c.current(m);hy(v,u.current)||(h(v),u.current=v)}else h(m)}}}),[n,o,r,a]),E.useEffect(()=>n._removeUnmounted()),p}function AIn(e){const t=axe(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o,defaultValue:a}=e,s=Dut(i._names.array,n),l=E.useMemo(()=>ar(i._formValues,n,ar(i._defaultValues,n,a)),[i,n,a]),c=SIn({control:i,name:n,defaultValue:l,exact:!0}),u=wIn({control:i,name:n,exact:!0}),d=E.useRef(e),p=E.useRef(i.register(n,{...e.rules,value:c,...Vp(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const h=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ar(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!ar(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ar(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ar(u.validatingFields,n)},error:{enumerable:!0,get:()=>ar(u.errors,n)}}),[u,n]),g=E.useCallback(M=>p.current.onChange({target:{value:Put(M),name:n},type:y9.CHANGE}),[n]),m=E.useCallback(()=>p.current.onBlur({target:{value:ar(i._formValues,n),name:n},type:y9.BLUR}),[n,i._formValues]),v=E.useCallback(M=>{const C=ar(i._fields,n);C&&M&&(C._f.ref={focus:()=>M.focus&&M.focus(),select:()=>M.select&&M.select(),setCustomValidity:x=>M.setCustomValidity(x),reportValidity:()=>M.reportValidity()})},[i._fields,n]),y=E.useMemo(()=>({name:n,value:c,...Vp(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:g,onBlur:m,ref:v}),[n,r,u.disabled,g,m,v,c]);return E.useEffect(()=>{const M=i._options.shouldUnregister||o;i.register(n,{...d.current.rules,...Vp(d.current.disabled)?{disabled:d.current.disabled}:{}});const C=(x,w)=>{const S=ar(i._fields,x);S&&S._f&&(S._f.mount=w)};if(C(n,!0),M){const x=hu(ar(i._options.defaultValues,n));Ws(i._defaultValues,n,x),Cc(ar(i._formValues,n))&&Ws(i._formValues,n,x)}return!s&&i.register(n),()=>{(s?M&&!i._state.action:M)?i.unregister(n):C(n,!1)}},[n,i,s,o]),E.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),E.useMemo(()=>({field:y,formState:u,fieldState:h}),[y,u,h])}const Ue=e=>e.render(AIn(e));var OIn=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},nF=e=>Array.isArray(e)?e:[e],nLe=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},V1=e=>Ec(e)&&!Object.keys(e).length,lxe=e=>e.type==="file",Qg=e=>typeof e=="function",M9=e=>{if(!rxe)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Nut=e=>e.type==="select-multiple",cxe=e=>e.type==="radio",zIn=e=>cxe(e)||iB(e),$ie=e=>M9(e)&&e.isConnected;function TIn(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Cc(e)?r++:e[t[r++]];return e}function EIn(e){for(const t in e)if(e.hasOwnProperty(t)&&!Cc(e[t]))return!1;return!0}function jc(e,t){const n=Array.isArray(t)?t:nZ(t)?[t]:oxe(t),r=n.length===1?e:TIn(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(Ec(r)&&V1(r)||Array.isArray(r)&&EIn(r))&&jc(e,n.slice(0,-1)),e}var Fut=e=>{for(const t in e)if(Qg(e[t]))return!0;return!1};function C9(e,t={}){const n=Array.isArray(e);if(Ec(e)||n)for(const r in e)Array.isArray(e[r])||Ec(e[r])&&!Fut(e[r])?(t[r]=Array.isArray(e[r])?[]:{},C9(e[r],t[r])):X0(e[r])||(t[r]=!0);return t}function Wut(e,t,n){const r=Array.isArray(e);if(Ec(e)||r)for(const i in e)Array.isArray(e[i])||Ec(e[i])&&!Fut(e[i])?Cc(t)||Kfe(n[i])?n[i]=Array.isArray(e[i])?C9(e[i],[]):{...C9(e[i])}:Wut(e[i],X0(t)?{}:t[i],n[i]):n[i]=!hy(e[i],t[i]);return n}var A4=(e,t)=>Wut(e,t,C9(t));const rLe={value:!1,isValid:!1},iLe={value:!0,isValid:!0};var qut=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Cc(e[0].attributes.value)?Cc(e[0].value)||e[0].value===""?iLe:{value:e[0].value,isValid:!0}:iLe:rLe}return rLe},But=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Cc(e)?e:t?e===""?NaN:e&&+e:n&&Jv(e)?new Date(e):r?r(e):e;const oLe={isValid:!1,value:null};var jut=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,oLe):oLe;function aLe(e){const t=e.ref;return lxe(t)?t.files:cxe(t)?jut(e.refs).value:Nut(t)?[...t.selectedOptions].map(({value:n})=>n):iB(t)?qut(e.refs).value:But(Cc(t.value)?e.ref.value:t.value,e)}var RIn=(e,t,n,r)=>{const i={};for(const o of e){const a=ar(t,o);a&&Ws(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},x9=e=>e instanceof RegExp,O4=e=>Cc(e)?e:x9(e)?e.source:Ec(e)?x9(e.value)?e.value.source:e.value:e,sLe=e=>({isOnSubmit:!e||e===Kg.onSubmit,isOnBlur:e===Kg.onBlur,isOnChange:e===Kg.onChange,isOnAll:e===Kg.all,isOnTouch:e===Kg.onTouched});const lLe="AsyncFunction";var IIn=e=>!!e&&!!e.validate&&!!(Qg(e.validate)&&e.validate.constructor.name===lLe||Ec(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===lLe)),PIn=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),cLe=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const rF=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=ar(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(rF(s,t))break}else if(Ec(s)&&rF(s,t))break}}};function uLe(e,t,n){const r=ar(e,n);if(r||nZ(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=ar(t,o),s=ar(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};if(s&&s.root&&s.root.type)return{name:`${o}.root`,error:s.root};i.pop()}return{name:n}}var DIn=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return V1(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||Kg.all))},kIn=(e,t,n)=>!e||!t||e===t||nF(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),LIn=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,_In=(e,t)=>!ixe(ar(e,t)).length&&jc(e,t),NIn=(e,t,n)=>{const r=nF(ar(e,n));return Ws(r,"root",t[n]),Ws(e,n,r),e},d7=e=>Jv(e);function dLe(e,t,n="validate"){if(d7(e)||Array.isArray(e)&&e.every(d7)||Vp(e)&&!e)return{type:n,message:d7(e)?e:"",ref:t}}var zE=e=>Ec(e)&&!x9(e)?e:{value:e,message:""},pLe=async(e,t,n,r,i,o)=>{const{ref:a,refs:s,required:l,maxLength:c,minLength:u,min:d,max:p,pattern:h,validate:g,name:m,valueAsNumber:v,mount:y}=e._f,M=ar(n,m);if(!y||t.has(m))return{};const C=s?s[0]:a,x=P=>{i&&C.reportValidity&&(C.setCustomValidity(Vp(P)?"":P||""),C.reportValidity())},w={},S=cxe(a),A=iB(a),z=S||A,O=(v||lxe(a))&&Cc(a.value)&&Cc(M)||M9(a)&&a.value===""||M===""||Array.isArray(M)&&!M.length,T=OIn.bind(null,m,r,w),I=(P,N,F,L=j2.maxLength,W=j2.minLength)=>{const H=P?N:F;w[m]={type:P?L:W,message:H,ref:a,...T(P?L:W,H)}};if(o?!Array.isArray(M)||!M.length:l&&(!z&&(O||X0(M))||Vp(M)&&!M||A&&!qut(s).isValid||S&&!jut(s).isValid)){const{value:P,message:N}=d7(l)?{value:!!l,message:l}:zE(l);if(P&&(w[m]={type:j2.required,message:N,ref:C,...T(j2.required,N)},!r))return x(N),w}if(!O&&(!X0(d)||!X0(p))){let P,N;const F=zE(p),L=zE(d);if(!X0(M)&&!isNaN(M)){const W=a.valueAsNumber||M&&+M;X0(F.value)||(P=W>F.value),X0(L.value)||(N=W<L.value)}else{const W=a.valueAsDate||new Date(M),H=q=>new Date(new Date().toDateString()+" "+q),j=a.type=="time",G=a.type=="week";Jv(F.value)&&M&&(P=j?H(M)>H(F.value):G?M>F.value:W>new Date(F.value)),Jv(L.value)&&M&&(N=j?H(M)<H(L.value):G?M<L.value:W<new Date(L.value))}if((P||N)&&(I(!!P,F.message,L.message,j2.max,j2.min),!r))return x(w[m].message),w}if((c||u)&&!O&&(Jv(M)||o&&Array.isArray(M))){const P=zE(c),N=zE(u),F=!X0(P.value)&&M.length>+P.value,L=!X0(N.value)&&M.length<+N.value;if((F||L)&&(I(F,P.message,N.message),!r))return x(w[m].message),w}if(h&&!O&&Jv(M)){const{value:P,message:N}=zE(h);if(x9(P)&&!M.match(P)&&(w[m]={type:j2.pattern,message:N,ref:a,...T(j2.pattern,N)},!r))return x(N),w}if(g){if(Qg(g)){const P=await g(M,n),N=dLe(P,C);if(N&&(w[m]={...N,...T(j2.validate,N.message)},!r))return x(N.message),w}else if(Ec(g)){let P={};for(const N in g){if(!V1(P)&&!r)break;const F=dLe(await g[N](M,n),C,N);F&&(P={...F,...T(N,F.message)},x(F.message),r&&(w[m]=P))}if(!V1(P)&&(w[m]={ref:C,...P},!r))return w}}return x(!0),w};const FIn={mode:Kg.onSubmit,reValidateMode:Kg.onChange,shouldFocusError:!0};function WIn(e={}){let t={...FIn,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Qg(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Ec(t.defaultValues)||Ec(t.values)?hu(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:hu(i),a={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const p={array:nLe(),state:nLe()},h=t.criteriaMode===Kg.all,g=de=>ie=>{clearTimeout(c),c=setTimeout(de,ie)},m=async de=>{if(!t.disabled&&(u.isValid||d.isValid||de)){const ie=t.resolver?V1((await A()).errors):await O(r,!0);ie!==n.isValid&&p.state.next({isValid:ie})}},v=(de,ie)=>{!t.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((de||Array.from(s.mount)).forEach(ue=>{ue&&(ie?Ws(n.validatingFields,ue,ie):jc(n.validatingFields,ue))}),p.state.next({validatingFields:n.validatingFields,isValidating:!V1(n.validatingFields)}))},y=(de,ie=[],ue,Ae,Ce=!0,Ee=!0)=>{if(Ae&&ue&&!t.disabled){if(a.action=!0,Ee&&Array.isArray(ar(r,de))){const Ge=ue(ar(r,de),Ae.argA,Ae.argB);Ce&&Ws(r,de,Ge)}if(Ee&&Array.isArray(ar(n.errors,de))){const Ge=ue(ar(n.errors,de),Ae.argA,Ae.argB);Ce&&Ws(n.errors,de,Ge),_In(n.errors,de)}if((u.touchedFields||d.touchedFields)&&Ee&&Array.isArray(ar(n.touchedFields,de))){const Ge=ue(ar(n.touchedFields,de),Ae.argA,Ae.argB);Ce&&Ws(n.touchedFields,de,Ge)}(u.dirtyFields||d.dirtyFields)&&(n.dirtyFields=A4(i,o)),p.state.next({name:de,isDirty:I(de,ie),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ws(o,de,ie)},M=(de,ie)=>{Ws(n.errors,de,ie),p.state.next({errors:n.errors})},C=de=>{n.errors=de,p.state.next({errors:n.errors,isValid:!1})},x=(de,ie,ue,Ae)=>{const Ce=ar(r,de);if(Ce){const Ee=ar(o,de,Cc(ue)?ar(i,de):ue);Cc(Ee)||Ae&&Ae.defaultChecked||ie?Ws(o,de,ie?Ee:aLe(Ce._f)):F(de,Ee),a.mount&&m()}},w=(de,ie,ue,Ae,Ce)=>{let Ee=!1,Ge=!1;const _e={name:de};if(!t.disabled){if(!ue||Ae){(u.isDirty||d.isDirty)&&(Ge=n.isDirty,n.isDirty=_e.isDirty=I(),Ee=Ge!==_e.isDirty);const Ie=hy(ar(i,de),ie);Ge=!!ar(n.dirtyFields,de),Ie?jc(n.dirtyFields,de):Ws(n.dirtyFields,de,!0),_e.dirtyFields=n.dirtyFields,Ee=Ee||(u.dirtyFields||d.dirtyFields)&&Ge!==!Ie}if(ue){const Ie=ar(n.touchedFields,de);Ie||(Ws(n.touchedFields,de,ue),_e.touchedFields=n.touchedFields,Ee=Ee||(u.touchedFields||d.touchedFields)&&Ie!==ue)}Ee&&Ce&&p.state.next(_e)}return Ee?_e:{}},S=(de,ie,ue,Ae)=>{const Ce=ar(n.errors,de),Ee=(u.isValid||d.isValid)&&Vp(ie)&&n.isValid!==ie;if(t.delayError&&ue?(l=g(()=>M(de,ue)),l(t.delayError)):(clearTimeout(c),l=null,ue?Ws(n.errors,de,ue):jc(n.errors,de)),(ue?!hy(Ce,ue):Ce)||!V1(Ae)||Ee){const Ge={...Ae,...Ee&&Vp(ie)?{isValid:ie}:{},errors:n.errors,name:de};n={...n,...Ge},p.state.next(Ge)}},A=async de=>{v(de,!0);const ie=await t.resolver(o,t.context,RIn(de||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(de),ie},z=async de=>{const{errors:ie}=await A(de);if(de)for(const ue of de){const Ae=ar(ie,ue);Ae?Ws(n.errors,ue,Ae):jc(n.errors,ue)}else n.errors=ie;return ie},O=async(de,ie,ue={valid:!0})=>{for(const Ae in de){const Ce=de[Ae];if(Ce){const{_f:Ee,...Ge}=Ce;if(Ee){const _e=s.array.has(Ee.name),Ie=Ce._f&&IIn(Ce._f);Ie&&u.validatingFields&&v([Ae],!0);const Le=await pLe(Ce,s.disabled,o,h,t.shouldUseNativeValidation&&!ie,_e);if(Ie&&u.validatingFields&&v([Ae]),Le[Ee.name]&&(ue.valid=!1,ie))break;!ie&&(ar(Le,Ee.name)?_e?NIn(n.errors,Le,Ee.name):Ws(n.errors,Ee.name,Le[Ee.name]):jc(n.errors,Ee.name))}!V1(Ge)&&await O(Ge,ie,ue)}}return ue.valid},T=()=>{for(const de of s.unMount){const ie=ar(r,de);ie&&(ie._f.refs?ie._f.refs.every(ue=>!$ie(ue)):!$ie(ie._f.ref))&&se(de)}s.unMount=new Set},I=(de,ie)=>!t.disabled&&(de&&ie&&Ws(o,de,ie),!hy(q(),i)),P=(de,ie,ue)=>_ut(de,s,{...a.mount?o:Cc(ie)?i:Jv(de)?{[de]:ie}:ie},ue,ie),N=de=>ixe(ar(a.mount?o:i,de,t.shouldUnregister?ar(i,de,[]):[])),F=(de,ie,ue={})=>{const Ae=ar(r,de);let Ce=ie;if(Ae){const Ee=Ae._f;Ee&&(!Ee.disabled&&Ws(o,de,But(ie,Ee)),Ce=M9(Ee.ref)&&X0(ie)?"":ie,Nut(Ee.ref)?[...Ee.ref.options].forEach(Ge=>Ge.selected=Ce.includes(Ge.value)):Ee.refs?iB(Ee.ref)?Ee.refs.forEach(Ge=>{(!Ge.defaultChecked||!Ge.disabled)&&(Array.isArray(Ce)?Ge.checked=!!Ce.find(_e=>_e===Ge.value):Ge.checked=Ce===Ge.value||!!Ce)}):Ee.refs.forEach(Ge=>Ge.checked=Ge.value===Ce):lxe(Ee.ref)?Ee.ref.value="":(Ee.ref.value=Ce,Ee.ref.type||p.state.next({name:de,values:hu(o)})))}(ue.shouldDirty||ue.shouldTouch)&&w(de,Ce,ue.shouldTouch,ue.shouldDirty,!0),ue.shouldValidate&&G(de)},L=(de,ie,ue)=>{for(const Ae in ie){if(!ie.hasOwnProperty(Ae))return;const Ce=ie[Ae],Ee=de+"."+Ae,Ge=ar(r,Ee);(s.array.has(de)||Ec(Ce)||Ge&&!Ge._f)&&!cO(Ce)?L(Ee,Ce,ue):F(Ee,Ce,ue)}},W=(de,ie,ue={})=>{const Ae=ar(r,de),Ce=s.array.has(de),Ee=hu(ie);Ws(o,de,Ee),Ce?(p.array.next({name:de,values:hu(o)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&ue.shouldDirty&&p.state.next({name:de,dirtyFields:A4(i,o),isDirty:I(de,Ee)})):Ae&&!Ae._f&&!X0(Ee)?L(de,Ee,ue):F(de,Ee,ue),cLe(de,s)&&p.state.next({...n,name:de}),p.state.next({name:a.mount?de:void 0,values:hu(o)})},H=async de=>{a.mount=!0;const ie=de.target;let ue=ie.name,Ae=!0;const Ce=ar(r,ue),Ee=Ie=>{Ae=Number.isNaN(Ie)||cO(Ie)&&isNaN(Ie.getTime())||hy(Ie,ar(o,ue,Ie))},Ge=sLe(t.mode),_e=sLe(t.reValidateMode);if(Ce){let Ie,Le;const we=ie.type?aLe(Ce._f):Put(de),ve=de.type===y9.BLUR||de.type===y9.FOCUS_OUT,De=!PIn(Ce._f)&&!t.resolver&&!ar(n.errors,ue)&&!Ce._f.deps||LIn(ve,ar(n.touchedFields,ue),n.isSubmitted,_e,Ge),ze=cLe(ue,s,ve);Ws(o,ue,we),ve?(!ie||!ie.readOnly)&&(Ce._f.onBlur&&Ce._f.onBlur(de),l&&l(0)):Ce._f.onChange&&Ce._f.onChange(de);const Ve=w(ue,we,ve),Ke=!V1(Ve)||ze;if(!ve&&p.state.next({name:ue,type:de.type,values:hu(o)}),De)return(u.isValid||d.isValid)&&(t.mode==="onBlur"?ve&&m():ve||m()),Ke&&p.state.next({name:ue,...ze?{}:Ve});if(!ve&&ze&&p.state.next({...n}),t.resolver){const{errors:et}=await A([ue]);if(Ee(we),Ae){const it=uLe(n.errors,r,ue),Ft=uLe(et,r,it.name||ue);Ie=Ft.error,ue=Ft.name,Le=V1(et)}}else v([ue],!0),Ie=(await pLe(Ce,s.disabled,o,h,t.shouldUseNativeValidation))[ue],v([ue]),Ee(we),Ae&&(Ie?Le=!1:(u.isValid||d.isValid)&&(Le=await O(r,!0)));Ae&&(Ce._f.deps&&G(Ce._f.deps),S(ue,Le,Ie,Ve))}},j=(de,ie)=>{if(ar(n.errors,ie)&&de.focus)return de.focus(),1},G=async(de,ie={})=>{let ue,Ae;const Ce=nF(de);if(t.resolver){const Ee=await z(Cc(de)?de:Ce);ue=V1(Ee),Ae=de?!Ce.some(Ge=>ar(Ee,Ge)):ue}else de?(Ae=(await Promise.all(Ce.map(async Ee=>{const Ge=ar(r,Ee);return await O(Ge&&Ge._f?{[Ee]:Ge}:Ge)}))).every(Boolean),!(!Ae&&!n.isValid)&&m()):Ae=ue=await O(r);return p.state.next({...!Jv(de)||(u.isValid||d.isValid)&&ue!==n.isValid?{}:{name:de},...t.resolver||!de?{isValid:ue}:{},errors:n.errors}),ie.shouldFocus&&!Ae&&rF(r,j,de?Ce:s.mount),Ae},q=de=>{const ie={...a.mount?o:i};return Cc(de)?ie:Jv(de)?ar(ie,de):de.map(ue=>ar(ie,ue))},$=(de,ie)=>({invalid:!!ar((ie||n).errors,de),isDirty:!!ar((ie||n).dirtyFields,de),error:ar((ie||n).errors,de),isValidating:!!ar(n.validatingFields,de),isTouched:!!ar((ie||n).touchedFields,de)}),U=de=>{de&&nF(de).forEach(ie=>jc(n.errors,ie)),p.state.next({errors:de?n.errors:{}})},X=(de,ie,ue)=>{const Ae=(ar(r,de,{_f:{}})._f||{}).ref,Ce=ar(n.errors,de)||{},{ref:Ee,message:Ge,type:_e,...Ie}=Ce;Ws(n.errors,de,{...Ie,...ie,ref:Ae}),p.state.next({name:de,errors:n.errors,isValid:!1}),ue&&ue.shouldFocus&&Ae&&Ae.focus&&Ae.focus()},Q=(de,ie)=>Qg(de)?p.state.subscribe({next:ue=>"values"in ue&&de(P(void 0,ie),ue)}):P(de,ie,!0),re=de=>p.state.subscribe({next:ie=>{kIn(de.name,ie.name,de.exact)&&DIn(ie,de.formState||u,me,de.reRenderRoot)&&de.callback({values:{...o},...n,...ie,defaultValues:i})}}).unsubscribe,ee=de=>(a.mount=!0,d={...d,...de.formState},re({...de,formState:d})),se=(de,ie={})=>{for(const ue of de?nF(de):s.mount)s.mount.delete(ue),s.array.delete(ue),ie.keepValue||(jc(r,ue),jc(o,ue)),!ie.keepError&&jc(n.errors,ue),!ie.keepDirty&&jc(n.dirtyFields,ue),!ie.keepTouched&&jc(n.touchedFields,ue),!ie.keepIsValidating&&jc(n.validatingFields,ue),!t.shouldUnregister&&!ie.keepDefaultValue&&jc(i,ue);p.state.next({values:hu(o)}),p.state.next({...n,...ie.keepDirty?{isDirty:I()}:{}}),!ie.keepIsValid&&m()},pe=({disabled:de,name:ie})=>{(Vp(de)&&a.mount||de||s.disabled.has(ie))&&(de?s.disabled.add(ie):s.disabled.delete(ie))},te=(de,ie={})=>{let ue=ar(r,de);const Ae=Vp(ie.disabled)||Vp(t.disabled);return Ws(r,de,{...ue||{},_f:{...ue&&ue._f?ue._f:{ref:{name:de}},name:de,mount:!0,...ie}}),s.mount.add(de),ue?pe({disabled:Vp(ie.disabled)?ie.disabled:t.disabled,name:de}):x(de,!0,ie.value),{...Ae?{disabled:ie.disabled||t.disabled}:{},...t.progressive?{required:!!ie.required,min:O4(ie.min),max:O4(ie.max),minLength:O4(ie.minLength),maxLength:O4(ie.maxLength),pattern:O4(ie.pattern)}:{},name:de,onChange:H,onBlur:H,ref:Ce=>{if(Ce){te(de,ie),ue=ar(r,de);const Ee=Cc(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,Ge=zIn(Ee),_e=ue._f.refs||[];if(Ge?_e.find(Ie=>Ie===Ee):Ee===ue._f.ref)return;Ws(r,de,{_f:{...ue._f,...Ge?{refs:[..._e.filter($ie),Ee,...Array.isArray(ar(i,de))?[{}]:[]],ref:{type:Ee.type,name:de}}:{ref:Ee}}}),x(de,!1,void 0,Ee)}else ue=ar(r,de,{}),ue._f&&(ue._f.mount=!1),(t.shouldUnregister||ie.shouldUnregister)&&!(Dut(s.array,de)&&a.action)&&s.unMount.add(de)}}},ce=()=>t.shouldFocusError&&rF(r,j,s.mount),oe=de=>{Vp(de)&&(p.state.next({disabled:de}),rF(r,(ie,ue)=>{const Ae=ar(r,ue);Ae&&(ie.disabled=Ae._f.disabled||de,Array.isArray(Ae._f.refs)&&Ae._f.refs.forEach(Ce=>{Ce.disabled=Ae._f.disabled||de}))},0,!1))},ae=(de,ie)=>async ue=>{let Ae;ue&&(ue.preventDefault&&ue.preventDefault(),ue.persist&&ue.persist());let Ce=hu(o);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:Ee,values:Ge}=await A();n.errors=Ee,Ce=hu(Ge)}else await O(r);if(s.disabled.size)for(const Ee of s.disabled)jc(Ce,Ee);if(jc(n.errors,"root"),V1(n.errors)){p.state.next({errors:{}});try{await de(Ce,ue)}catch(Ee){Ae=Ee}}else ie&&await ie({...n.errors},ue),ce(),setTimeout(ce);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V1(n.errors)&&!Ae,submitCount:n.submitCount+1,errors:n.errors}),Ae)throw Ae},ne=(de,ie={})=>{ar(r,de)&&(Cc(ie.defaultValue)?W(de,hu(ar(i,de))):(W(de,ie.defaultValue),Ws(i,de,hu(ie.defaultValue))),ie.keepTouched||jc(n.touchedFields,de),ie.keepDirty||(jc(n.dirtyFields,de),n.isDirty=ie.defaultValue?I(de,hu(ar(i,de))):I()),ie.keepError||(jc(n.errors,de),u.isValid&&m()),p.state.next({...n}))},le=(de,ie={})=>{const ue=de?hu(de):i,Ae=hu(ue),Ce=V1(de),Ee=Ce?i:Ae;if(ie.keepDefaultValues||(i=ue),!ie.keepValues){if(ie.keepDirtyValues){const Ge=new Set([...s.mount,...Object.keys(A4(i,o))]);for(const _e of Array.from(Ge))ar(n.dirtyFields,_e)?Ws(Ee,_e,ar(o,_e)):W(_e,ar(Ee,_e))}else{if(rxe&&Cc(de))for(const Ge of s.mount){const _e=ar(r,Ge);if(_e&&_e._f){const Ie=Array.isArray(_e._f.refs)?_e._f.refs[0]:_e._f.ref;if(M9(Ie)){const Le=Ie.closest("form");if(Le){Le.reset();break}}}}if(ie.keepFieldsRef)for(const Ge of s.mount)W(Ge,ar(Ee,Ge));else r={}}o=t.shouldUnregister?ie.keepDefaultValues?hu(i):{}:hu(Ee),p.array.next({values:{...Ee}}),p.state.next({values:{...Ee}})}s={mount:ie.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!ie.keepIsValid||!!ie.keepDirtyValues,a.watch=!!t.shouldUnregister,p.state.next({submitCount:ie.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:ie.keepDirty?n.isDirty:!!(ie.keepDefaultValues&&!hy(de,i)),isSubmitted:ie.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:ie.keepDirtyValues?ie.keepDefaultValues&&o?A4(i,o):n.dirtyFields:ie.keepDefaultValues&&de?A4(i,de):ie.keepDirty?n.dirtyFields:{},touchedFields:ie.keepTouched?n.touchedFields:{},errors:ie.keepErrors?n.errors:{},isSubmitSuccessful:ie.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},he=(de,ie)=>le(Qg(de)?de(o):de,ie),be=(de,ie={})=>{const ue=ar(r,de),Ae=ue&&ue._f;if(Ae){const Ce=Ae.refs?Ae.refs[0]:Ae.ref;Ce.focus&&(Ce.focus(),ie.shouldSelect&&Qg(Ce.select)&&Ce.select())}},me=de=>{n={...n,...de}},Oe={control:{register:te,unregister:se,getFieldState:$,handleSubmit:ae,setError:X,_subscribe:re,_runSchema:A,_focusError:ce,_getWatch:P,_getDirty:I,_setValid:m,_setFieldArray:y,_setDisabledField:pe,_setErrors:C,_getFieldArray:N,_reset:le,_resetDefaultValues:()=>Qg(t.defaultValues)&&t.defaultValues().then(de=>{he(de,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:T,_disableForm:oe,_subjects:p,_proxyFormState:u,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(de){a=de},get _defaultValues(){return i},get _names(){return s},set _names(de){s=de},get _formState(){return n},get _options(){return t},set _options(de){t={...t,...de}}},subscribe:ee,trigger:G,register:te,handleSubmit:ae,watch:Q,setValue:W,getValues:q,reset:he,resetField:ne,clearErrors:U,unregister:se,setError:X,setFocus:be,getFieldState:$};return{...Oe,formControl:Oe}}function Gn(e={}){const t=E.useRef(void 0),n=E.useRef(void 0),[r,i]=E.useState({isDirty:!1,isValidating:!1,isLoading:Qg(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Qg(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Qg(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...s}=WIn(e);t.current={...s,formState:r}}const o=t.current.control;return o._options=e,sxe(()=>{const a=o._subscribe({formState:o._proxyFormState,callback:()=>i({...o._formState}),reRenderRoot:!0});return i(s=>({...s,isReady:!0})),o._formState.isReady=!0,a},[o]),E.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),E.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),E.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),E.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),E.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),E.useEffect(()=>{e.values&&!hy(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[o,e.values]),E.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Lut(r,o),t.current}var eN={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */var qIn=eN.exports,hLe;function BIn(){return hLe||(hLe=1,(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,p=2,h=4,g=1,m=2,v=1,y=2,M=4,C=8,x=16,w=32,S=64,A=128,z=256,O=512,T=30,I="...",P=800,N=16,F=1,L=2,W=3,H=1/0,j=9007199254740991,G=17976931348623157e292,q=NaN,$=4294967295,U=$-1,X=$>>>1,Q=[["ary",A],["bind",v],["bindKey",y],["curry",C],["curryRight",x],["flip",O],["partial",w],["partialRight",S],["rearg",z]],re="[object Arguments]",ee="[object Array]",se="[object AsyncFunction]",pe="[object Boolean]",te="[object Date]",ce="[object DOMException]",oe="[object Error]",ae="[object Function]",ne="[object GeneratorFunction]",le="[object Map]",he="[object Number]",be="[object Null]",me="[object Object]",Me="[object Promise]",Oe="[object Proxy]",de="[object RegExp]",ie="[object Set]",ue="[object String]",Ae="[object Symbol]",Ce="[object Undefined]",Ee="[object WeakMap]",Ge="[object WeakSet]",_e="[object ArrayBuffer]",Ie="[object DataView]",Le="[object Float32Array]",we="[object Float64Array]",ve="[object Int8Array]",De="[object Int16Array]",ze="[object Int32Array]",Ve="[object Uint8Array]",Ke="[object Uint8ClampedArray]",et="[object Uint16Array]",it="[object Uint32Array]",Ft=/\b__p \+= '';/g,Pt=/\b(__p \+=) '' \+/g,Qn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ir=/&(?:amp|lt|gt|quot|#39);/g,jn=/[&<>"']/g,Zn=RegExp(ir.source),Br=RegExp(jn.source),vr=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,He=/<%=([\s\S]+?)%>/g,Xe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ct=/^\w*$/,lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Je=/[\\^$.*+?()[\]{}|]/g,ft=RegExp(Je.source),Tt=/^\s+/,St=/\s/,un=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$n=/\{\n\/\* \[wrapped with (.+)\] \*/,Yr=/,? & /,yr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dr=/[()=,{}\[\]\/\s]/,si=/\\(\\)?/g,Go=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$o=/\w*$/,Ki=/^[-+]0x[0-9a-f]+$/i,di=/^0b[01]+$/i,Dt=/^\[object .+?Constructor\]$/,It=/^0o[0-7]+$/i,Hn=/^(?:0|[1-9]\d*)$/,jr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jr=/($^)/,Ca=/['\n\r\u2028\u2029\\]/g,Uo="\\ud800-\\udfff",La="\\u0300-\\u036f",od="\\ufe20-\\ufe2f",Lu="\\u20d0-\\u20ff",kc=La+od+Lu,Dd="\\u2700-\\u27bf",fi="a-z\\xdf-\\xf6\\xf8-\\xff",_s="\\xac\\xb1\\xd7\\xf7",_u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kd="\\u2000-\\u206f",ou=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ws="A-Z\\xc0-\\xd6\\xd8-\\xde",au="\\ufe0e\\ufe0f",Un=_s+_u+kd+ou,wn="['’]",nn="["+Uo+"]",Lr="["+Un+"]",Ss="["+kc+"]",Va="\\d+",xa="["+Dd+"]",Lc="["+fi+"]",lc="[^"+Uo+Un+Va+Dd+fi+ws+"]",C1="\\ud83c[\\udffb-\\udfff]",zp="(?:"+Ss+"|"+C1+")",RM="[^"+Uo+"]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",st="["+ws+"]",_t="\\u200d",hn="(?:"+Lc+"|"+lc+")",hr="(?:"+st+"|"+lc+")",eo="(?:"+wn+"(?:d|ll|m|re|s|t|ve))?",Ns="(?:"+wn+"(?:D|LL|M|RE|S|T|VE))?",Al=zp+"?",cc="["+au+"]?",P0="(?:"+_t+"(?:"+[RM,Re,qe].join("|")+")"+cc+Al+")*",Aj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gT=cc+Al+P0,kte="(?:"+[xa,Re,qe].join("|")+")"+gT,Lk="(?:"+[RM+Ss+"?",Ss,Re,qe,nn].join("|")+")",Lte=RegExp(wn,"g"),us=RegExp(Ss,"g"),Hm=RegExp(C1+"(?="+C1+")|"+Lk+gT,"g"),_te=RegExp([st+"?"+Lc+"+"+eo+"(?="+[Lr,st,"$"].join("|")+")",hr+"+"+Ns+"(?="+[Lr,st+hn,"$"].join("|")+")",st+"?"+hn+"+"+eo,st+"+"+Ns,Oj,Aj,Va,kte].join("|"),"g"),Nte=RegExp("["+_t+Uo+kc+au+"]"),Vw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],mT=-1,wa={};wa[Le]=wa[we]=wa[ve]=wa[De]=wa[ze]=wa[Ve]=wa[Ke]=wa[et]=wa[it]=!0,wa[re]=wa[ee]=wa[_e]=wa[pe]=wa[Ie]=wa[te]=wa[oe]=wa[ae]=wa[le]=wa[he]=wa[me]=wa[de]=wa[ie]=wa[ue]=wa[Ee]=!1;var Ga={};Ga[re]=Ga[ee]=Ga[_e]=Ga[Ie]=Ga[pe]=Ga[te]=Ga[Le]=Ga[we]=Ga[ve]=Ga[De]=Ga[ze]=Ga[le]=Ga[he]=Ga[me]=Ga[de]=Ga[ie]=Ga[ue]=Ga[Ae]=Ga[Ve]=Ga[Ke]=Ga[et]=Ga[it]=!0,Ga[oe]=Ga[ae]=Ga[Ee]=!1;var vT={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},Vm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fte={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wte={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qte=parseFloat,Bte=parseInt,Tj=typeof tx=="object"&&tx&&tx.Object===Object&&tx,bT=typeof self=="object"&&self&&self.Object===Object&&self,su=Tj||bT||Function("return this")(),_k=t&&!t.nodeType&&t,lg=_k&&!0&&e&&!e.nodeType&&e,yT=lg&&lg.exports===_k,bh=yT&&Tj.process,Ld=(function(){try{var wt=lg&&lg.require&&lg.require("util").types;return wt||bh&&bh.binding&&bh.binding("util")}catch{}})(),Gw=Ld&&Ld.isArrayBuffer,Nk=Ld&&Ld.isDate,$w=Ld&&Ld.isMap,Uw=Ld&&Ld.isRegExp,Fk=Ld&&Ld.isSet,_d=Ld&&Ld.isTypedArray;function _c(wt,Zt,Wt){switch(Wt.length){case 0:return wt.call(Zt);case 1:return wt.call(Zt,Wt[0]);case 2:return wt.call(Zt,Wt[0],Wt[1]);case 3:return wt.call(Zt,Wt[0],Wt[1],Wt[2])}return wt.apply(Zt,Wt)}function Wk(wt,Zt,Wt,Mr){for(var Fi=-1,ga=wt==null?0:wt.length;++Fi<ga;){var Sa=wt[Fi];Zt(Mr,Sa,Wt(Sa),wt)}return Mr}function Nu(wt,Zt){for(var Wt=-1,Mr=wt==null?0:wt.length;++Wt<Mr&&Zt(wt[Wt],Wt,wt)!==!1;);return wt}function jte(wt,Zt){for(var Wt=wt==null?0:wt.length;Wt--&&Zt(wt[Wt],Wt,wt)!==!1;);return wt}function MT(wt,Zt){for(var Wt=-1,Mr=wt==null?0:wt.length;++Wt<Mr;)if(!Zt(wt[Wt],Wt,wt))return!1;return!0}function yh(wt,Zt){for(var Wt=-1,Mr=wt==null?0:wt.length,Fi=0,ga=[];++Wt<Mr;){var Sa=wt[Wt];Zt(Sa,Wt,wt)&&(ga[Fi++]=Sa)}return ga}function Gm(wt,Zt){var Wt=wt==null?0:wt.length;return!!Wt&&h2(wt,Zt,0)>-1}function IM(wt,Zt,Wt){for(var Mr=-1,Fi=wt==null?0:wt.length;++Mr<Fi;)if(Wt(Zt,wt[Mr]))return!0;return!1}function As(wt,Zt){for(var Wt=-1,Mr=wt==null?0:wt.length,Fi=Array(Mr);++Wt<Mr;)Fi[Wt]=Zt(wt[Wt],Wt,wt);return Fi}function $m(wt,Zt){for(var Wt=-1,Mr=Zt.length,Fi=wt.length;++Wt<Mr;)wt[Fi+Wt]=Zt[Wt];return wt}function qk(wt,Zt,Wt,Mr){var Fi=-1,ga=wt==null?0:wt.length;for(Mr&&ga&&(Wt=wt[++Fi]);++Fi<ga;)Wt=Zt(Wt,wt[Fi],Fi,wt);return Wt}function Hte(wt,Zt,Wt,Mr){var Fi=wt==null?0:wt.length;for(Mr&&Fi&&(Wt=wt[--Fi]);Fi--;)Wt=Zt(Wt,wt[Fi],Fi,wt);return Wt}function Xw(wt,Zt){for(var Wt=-1,Mr=wt==null?0:wt.length;++Wt<Mr;)if(Zt(wt[Wt],Wt,wt))return!0;return!1}var Vte=Bk("length");function Gte(wt){return wt.split("")}function $te(wt){return wt.match(yr)||[]}function Ej(wt,Zt,Wt){var Mr;return Wt(wt,function(Fi,ga,Sa){if(Zt(Fi,ga,Sa))return Mr=ga,!1}),Mr}function CT(wt,Zt,Wt,Mr){for(var Fi=wt.length,ga=Wt+(Mr?1:-1);Mr?ga--:++ga<Fi;)if(Zt(wt[ga],ga,wt))return ga;return-1}function h2(wt,Zt,Wt){return Zt===Zt?jj(wt,Zt,Wt):CT(wt,Rj,Wt)}function Ute(wt,Zt,Wt,Mr){for(var Fi=Wt-1,ga=wt.length;++Fi<ga;)if(Mr(wt[Fi],Zt))return Fi;return-1}function Rj(wt){return wt!==wt}function Ij(wt,Zt){var Wt=wt==null?0:wt.length;return Wt?jk(wt,Zt)/Wt:q}function Bk(wt){return function(Zt){return Zt==null?n:Zt[wt]}}function Yw(wt){return function(Zt){return wt==null?n:wt[Zt]}}function Pj(wt,Zt,Wt,Mr,Fi){return Fi(wt,function(ga,Sa,ns){Wt=Mr?(Mr=!1,ga):Zt(Wt,ga,Sa,ns)}),Wt}function Xte(wt,Zt){var Wt=wt.length;for(wt.sort(Zt);Wt--;)wt[Wt]=wt[Wt].value;return wt}function jk(wt,Zt){for(var Wt,Mr=-1,Fi=wt.length;++Mr<Fi;){var ga=Zt(wt[Mr]);ga!==n&&(Wt=Wt===n?ga:Wt+ga)}return Wt}function xT(wt,Zt){for(var Wt=-1,Mr=Array(wt);++Wt<wt;)Mr[Wt]=Zt(Wt);return Mr}function Yte(wt,Zt){return As(Zt,function(Wt){return[Wt,wt[Wt]]})}function Dj(wt){return wt&&wt.slice(0,Jw(wt)+1).replace(Tt,"")}function D0(wt){return function(Zt){return wt(Zt)}}function Hk(wt,Zt){return As(Zt,function(Wt){return wt[Wt]})}function Kw(wt,Zt){return wt.has(Zt)}function kj(wt,Zt){for(var Wt=-1,Mr=wt.length;++Wt<Mr&&h2(Zt,wt[Wt],0)>-1;);return Wt}function Lj(wt,Zt){for(var Wt=wt.length;Wt--&&h2(Zt,wt[Wt],0)>-1;);return Wt}function Vk(wt,Zt){for(var Wt=wt.length,Mr=0;Wt--;)wt[Wt]===Zt&&++Mr;return Mr}var Qw=Yw(vT),Kte=Yw(Vm);function _j(wt){return"\\"+Wte[wt]}function Nj(wt,Zt){return wt==null?n:wt[Zt]}function f2(wt){return Nte.test(wt)}function Fj(wt){return Vw.test(wt)}function Wj(wt){for(var Zt,Wt=[];!(Zt=wt.next()).done;)Wt.push(Zt.value);return Wt}function Um(wt){var Zt=-1,Wt=Array(wt.size);return wt.forEach(function(Mr,Fi){Wt[++Zt]=[Fi,Mr]}),Wt}function qj(wt,Zt){return function(Wt){return wt(Zt(Wt))}}function Xm(wt,Zt){for(var Wt=-1,Mr=wt.length,Fi=0,ga=[];++Wt<Mr;){var Sa=wt[Wt];(Sa===Zt||Sa===u)&&(wt[Wt]=u,ga[Fi++]=Wt)}return ga}function wT(wt){var Zt=-1,Wt=Array(wt.size);return wt.forEach(function(Mr){Wt[++Zt]=Mr}),Wt}function Bj(wt){var Zt=-1,Wt=Array(wt.size);return wt.forEach(function(Mr){Wt[++Zt]=[Mr,Mr]}),Wt}function jj(wt,Zt,Wt){for(var Mr=Wt-1,Fi=wt.length;++Mr<Fi;)if(wt[Mr]===Zt)return Mr;return-1}function Zw(wt,Zt,Wt){for(var Mr=Wt+1;Mr--;)if(wt[Mr]===Zt)return Mr;return Mr}function Mh(wt){return f2(wt)?Hj(wt):Vte(wt)}function Tp(wt){return f2(wt)?Gk(wt):Gte(wt)}function Jw(wt){for(var Zt=wt.length;Zt--&&St.test(wt.charAt(Zt)););return Zt}var Qte=Yw(Fte);function Hj(wt){for(var Zt=Hm.lastIndex=0;Hm.test(wt);)++Zt;return Zt}function Gk(wt){return wt.match(Hm)||[]}function $k(wt){return wt.match(_te)||[]}var Vj=(function wt(Zt){Zt=Zt==null?su:g2.defaults(su.Object(),Zt,g2.pick(su,zj));var Wt=Zt.Array,Mr=Zt.Date,Fi=Zt.Error,ga=Zt.Function,Sa=Zt.Math,ns=Zt.Object,m2=Zt.RegExp,Gj=Zt.String,k0=Zt.TypeError,eS=Wt.prototype,$j=ga.prototype,Ym=ns.prototype,ST=Zt["__core-js_shared__"],cg=$j.toString,ma=Ym.hasOwnProperty,tS=0,AT=(function(){var k=/[^.]+$/.exec(ST&&ST.keys&&ST.keys.IE_PROTO||"");return k?"Symbol(src)_1."+k:""})(),nS=Ym.toString,Uj=cg.call(ns),Uk=su._,rS=m2("^"+cg.call(ma).replace(Je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),OT=yT?Zt.Buffer:n,ug=Zt.Symbol,iS=Zt.Uint8Array,ds=OT?OT.allocUnsafe:n,oS=qj(ns.getPrototypeOf,ns),Xk=ns.create,Yk=Ym.propertyIsEnumerable,aS=eS.splice,Kk=ug?ug.isConcatSpreadable:n,dg=ug?ug.iterator:n,Ch=ug?ug.toStringTag:n,pg=(function(){try{var k=Th(ns,"defineProperty");return k({},"",{}),k}catch{}})(),Xj=Zt.clearTimeout!==su.clearTimeout&&Zt.clearTimeout,zT=Mr&&Mr.now!==su.Date.now&&Mr.now,Qk=Zt.setTimeout!==su.setTimeout&&Zt.setTimeout,PM=Sa.ceil,sS=Sa.floor,lS=ns.getOwnPropertySymbols,Yj=OT?OT.isBuffer:n,Kj=Zt.isFinite,Zk=eS.join,DM=qj(ns.keys,ns),Vl=Sa.max,Nc=Sa.min,Zte=Mr.now,TT=Zt.parseInt,hg=Sa.random,ET=eS.reverse,Km=Th(Zt,"DataView"),kM=Th(Zt,"Map"),fg=Th(Zt,"Promise"),xh=Th(Zt,"Set"),wh=Th(Zt,"WeakMap"),Qm=Th(ns,"create"),cS=wh&&new wh,Zm={},LM=T1(Km),Jm=T1(kM),Os=T1(fg),ll=T1(xh),ev=T1(wh),uc=ug?ug.prototype:n,Fc=uc?uc.valueOf:n,tv=uc?uc.toString:n;function ke(k){if($l(k)&&!to(k)&&!(k instanceof Oo)){if(k instanceof L0)return k;if(ma.call(k,"__wrapped__"))return FL(k)}return new L0(k)}var dc=(function(){function k(){}return function(B){if(!zl(B))return{};if(Xk)return Xk(B);k.prototype=B;var K=new k;return k.prototype=n,K}})();function v2(){}function L0(k,B){this.__wrapped__=k,this.__actions__=[],this.__chain__=!!B,this.__index__=0,this.__values__=n}ke.templateSettings={escape:vr,evaluate:Ne,interpolate:He,variable:"",imports:{_:ke}},ke.prototype=v2.prototype,ke.prototype.constructor=ke,L0.prototype=dc(v2.prototype),L0.prototype.constructor=L0;function Oo(k){this.__wrapped__=k,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function RT(){var k=new Oo(this.__wrapped__);return k.__actions__=ld(this.__actions__),k.__dir__=this.__dir__,k.__filtered__=this.__filtered__,k.__iteratees__=ld(this.__iteratees__),k.__takeCount__=this.__takeCount__,k.__views__=ld(this.__views__),k}function Qj(){if(this.__filtered__){var k=new Oo(this);k.__dir__=-1,k.__filtered__=!0}else k=this.clone(),k.__dir__*=-1;return k}function Jk(){var k=this.__wrapped__.value(),B=this.__dir__,K=to(k),ge=B<0,Se=K?k.length:0,Be=PL(0,Se,this.__views__),ot=Be.start,ht=Be.end,At=ht-ot,sn=ge?ht:ot-1,ln=this.__iteratees__,mn=ln.length,lr=0,Ur=Nc(At,this.__takeCount__);if(!K||!ge&&Se==At&&Ur==At)return MS(k,this.__actions__);var Mi=[];e:for(;At--&&lr<Ur;){sn+=B;for(var xo=-1,Ci=k[sn];++xo<mn;){var Wo=ln[xo],ta=Wo.iteratee,kp=Wo.type,W0=ta(Ci);if(kp==L)Ci=W0;else if(!W0){if(kp==F)continue e;break e}}Mi[lr++]=Ci}return Mi}Oo.prototype=dc(v2.prototype),Oo.prototype.constructor=Oo;function _0(k){var B=-1,K=k==null?0:k.length;for(this.clear();++B<K;){var ge=k[B];this.set(ge[0],ge[1])}}function Jte(){this.__data__=Qm?Qm(null):{},this.size=0}function eL(k){var B=this.has(k)&&delete this.__data__[k];return this.size-=B?1:0,B}function tL(k){var B=this.__data__;if(Qm){var K=B[k];return K===l?n:K}return ma.call(B,k)?B[k]:n}function ene(k){var B=this.__data__;return Qm?B[k]!==n:ma.call(B,k)}function Zj(k,B){var K=this.__data__;return this.size+=this.has(k)?0:1,K[k]=Qm&&B===n?l:B,this}_0.prototype.clear=Jte,_0.prototype.delete=eL,_0.prototype.get=tL,_0.prototype.has=ene,_0.prototype.set=Zj;function Ep(k){var B=-1,K=k==null?0:k.length;for(this.clear();++B<K;){var ge=k[B];this.set(ge[0],ge[1])}}function tne(){this.__data__=[],this.size=0}function IT(k){var B=this.__data__,K=WM(B,k);if(K<0)return!1;var ge=B.length-1;return K==ge?B.pop():aS.call(B,K,1),--this.size,!0}function Jj(k){var B=this.__data__,K=WM(B,k);return K<0?n:B[K][1]}function eH(k){return WM(this.__data__,k)>-1}function tH(k,B){var K=this.__data__,ge=WM(K,k);return ge<0?(++this.size,K.push([k,B])):K[ge][1]=B,this}Ep.prototype.clear=tne,Ep.prototype.delete=IT,Ep.prototype.get=Jj,Ep.prototype.has=eH,Ep.prototype.set=tH;function Sh(k){var B=-1,K=k==null?0:k.length;for(this.clear();++B<K;){var ge=k[B];this.set(ge[0],ge[1])}}function nL(){this.size=0,this.__data__={hash:new _0,map:new(kM||Ep),string:new _0}}function nne(k){var B=XM(this,k).delete(k);return this.size-=B?1:0,B}function gg(k){return XM(this,k).get(k)}function PT(k){return XM(this,k).has(k)}function rL(k,B){var K=XM(this,k),ge=K.size;return K.set(k,B),this.size+=K.size==ge?0:1,this}Sh.prototype.clear=nL,Sh.prototype.delete=nne,Sh.prototype.get=gg,Sh.prototype.has=PT,Sh.prototype.set=rL;function nv(k){var B=-1,K=k==null?0:k.length;for(this.__data__=new Sh;++B<K;)this.add(k[B])}function Fu(k){return this.__data__.set(k,l),this}function _M(k){return this.__data__.has(k)}nv.prototype.add=nv.prototype.push=Fu,nv.prototype.has=_M;function x1(k){var B=this.__data__=new Ep(k);this.size=B.size}function b2(){this.__data__=new Ep,this.size=0}function uS(k){var B=this.__data__,K=B.delete(k);return this.size=B.size,K}function Ah(k){return this.__data__.get(k)}function nH(k){return this.__data__.has(k)}function rne(k,B){var K=this.__data__;if(K instanceof Ep){var ge=K.__data__;if(!kM||ge.length<i-1)return ge.push([k,B]),this.size=++K.size,this;K=this.__data__=new Sh(ge)}return K.set(k,B),this.size=K.size,this}x1.prototype.clear=b2,x1.prototype.delete=uS,x1.prototype.get=Ah,x1.prototype.has=nH,x1.prototype.set=rne;function w1(k,B){var K=to(k),ge=!K&&FS(k),Se=!K&&!ge&&ZM(k),Be=!K&&!ge&&!Se&&cE(k),ot=K||ge||Se||Be,ht=ot?xT(k.length,Gj):[],At=ht.length;for(var sn in k)(B||ma.call(k,sn))&&!(ot&&(sn=="length"||Se&&(sn=="offset"||sn=="parent")||Be&&(sn=="buffer"||sn=="byteLength"||sn=="byteOffset")||qu(sn,At)))&&ht.push(sn);return ht}function dS(k){var B=k.length;return B?k[z2(0,B-1)]:n}function DT(k,B){return DS(ld(k),rv(B,0,k.length))}function NM(k){return DS(ld(k))}function FM(k,B,K){(K!==n&&!Ag(k[B],K)||K===n&&!(B in k))&&Wu(k,B,K)}function y2(k,B,K){var ge=k[B];(!(ma.call(k,B)&&Ag(ge,K))||K===n&&!(B in k))&&Wu(k,B,K)}function WM(k,B){for(var K=k.length;K--;)if(Ag(k[K][0],B))return K;return-1}function rH(k,B,K,ge){return mg(k,function(Se,Be,ot){B(ge,Se,K(Se),ot)}),ge}function M2(k,B){return k&&Ip(B,Bu(B),k)}function S1(k,B){return k&&Ip(B,I1(B),k)}function Wu(k,B,K){B=="__proto__"&&pg?pg(k,B,{configurable:!0,enumerable:!0,value:K,writable:!0}):k[B]=K}function pS(k,B){for(var K=-1,ge=B.length,Se=Wt(ge),Be=k==null;++K<ge;)Se[K]=Be?n:Ane(k,B[K]);return Se}function rv(k,B,K){return k===k&&(K!==n&&(k=k<=K?k:K),B!==n&&(k=k>=B?k:B)),k}function pc(k,B,K,ge,Se,Be){var ot,ht=B&d,At=B&p,sn=B&h;if(K&&(ot=Se?K(k,ge,Se,Be):K(k)),ot!==n)return ot;if(!zl(k))return k;var ln=to(k);if(ln){if(ot=KM(k),!ht)return ld(k,ot)}else{var mn=qc(k),lr=mn==ae||mn==ne;if(ZM(k))return vL(k,ht);if(mn==me||mn==re||lr&&!Se){if(ot=At||lr?{}:wr(k),!ht)return At?xL(k,S1(ot,k)):fH(k,M2(ot,k))}else{if(!Ga[mn])return Se?k:{};ot=tE(k,mn,ht)}}Be||(Be=new x1);var Ur=Be.get(k);if(Ur)return Ur;Be.set(k,ot),NTe(k)?k.forEach(function(Ci){ot.add(pc(Ci,B,K,Ci,k,Be))}):LTe(k)&&k.forEach(function(Ci,Wo){ot.set(Wo,pc(Ci,B,K,Wo,k,Be))});var Mi=sn?At?yi:zS:At?I1:Bu,xo=ln?n:Mi(k);return Nu(xo||k,function(Ci,Wo){xo&&(Wo=Ci,Ci=k[Wo]),y2(ot,Wo,pc(Ci,B,K,Wo,k,Be))}),ot}function iv(k){var B=Bu(k);return function(K){return iL(K,k,B)}}function iL(k,B,K){var ge=K.length;if(k==null)return!ge;for(k=ns(k);ge--;){var Se=K[ge],Be=B[Se],ot=k[Se];if(ot===n&&!(Se in k)||!Be(ot))return!1}return!0}function qM(k,B,K){if(typeof k!="function")throw new k0(a);return Ih(function(){k.apply(n,K)},B)}function BM(k,B,K,ge){var Se=-1,Be=Gm,ot=!0,ht=k.length,At=[],sn=B.length;if(!ht)return At;K&&(B=As(B,D0(K))),ge?(Be=IM,ot=!1):B.length>=i&&(Be=Kw,ot=!1,B=new nv(B));e:for(;++Se<ht;){var ln=k[Se],mn=K==null?ln:K(ln);if(ln=ge||ln!==0?ln:0,ot&&mn===mn){for(var lr=sn;lr--;)if(B[lr]===mn)continue e;At.push(ln)}else Be(B,mn,ge)||At.push(ln)}return At}var mg=wL(N0),hS=wL(LT,!0);function kT(k,B){var K=!0;return mg(k,function(ge,Se,Be){return K=!!B(ge,Se,Be),K}),K}function fS(k,B,K){for(var ge=-1,Se=k.length;++ge<Se;){var Be=k[ge],ot=B(Be);if(ot!=null&&(ht===n?ot===ot&&!Dp(ot):K(ot,ht)))var ht=ot,At=Be}return At}function iH(k,B,K,ge){var Se=k.length;for(K=vo(K),K<0&&(K=-K>Se?0:Se+K),ge=ge===n||ge>Se?Se:vo(ge),ge<0&&(ge+=Se),ge=K>ge?0:WTe(ge);K<ge;)k[K++]=B;return k}function oL(k,B){var K=[];return mg(k,function(ge,Se,Be){B(ge,Se,Be)&&K.push(ge)}),K}function hc(k,B,K,ge,Se){var Be=-1,ot=k.length;for(K||(K=Eh),Se||(Se=[]);++Be<ot;){var ht=k[Be];B>0&&K(ht)?B>1?hc(ht,B-1,K,ge,Se):$m(Se,ht):ge||(Se[Se.length]=ht)}return Se}var jM=XT(),HM=XT(!0);function N0(k,B){return k&&jM(k,B,Bu)}function LT(k,B){return k&&HM(k,B,Bu)}function C2(k,B){return yh(B,function(K){return k2(k[K])})}function ov(k,B){B=Wc(B,k);for(var K=0,ge=B.length;k!=null&&K<ge;)k=k[z1(B[K++])];return K&&K==ge?k:n}function VM(k,B,K){var ge=B(k);return to(k)?ge:$m(ge,K(k))}function Fs(k){return k==null?k===n?Ce:be:Ch&&Ch in ns(k)?YM(k):F0(k)}function x2(k,B){return k>B}function gS(k,B){return k!=null&&ma.call(k,B)}function w2(k,B){return k!=null&&B in ns(k)}function aL(k,B,K){return k>=Nc(B,K)&&k<Vl(B,K)}function av(k,B,K){for(var ge=K?IM:Gm,Se=k[0].length,Be=k.length,ot=Be,ht=Wt(Be),At=1/0,sn=[];ot--;){var ln=k[ot];ot&&B&&(ln=As(ln,D0(B))),At=Nc(ln.length,At),ht[ot]=!K&&(B||Se>=120&&ln.length>=120)?new nv(ot&&ln):n}ln=k[0];var mn=-1,lr=ht[0];e:for(;++mn<Se&&sn.length<At;){var Ur=ln[mn],Mi=B?B(Ur):Ur;if(Ur=K||Ur!==0?Ur:0,!(lr?Kw(lr,Mi):ge(sn,Mi,K))){for(ot=Be;--ot;){var xo=ht[ot];if(!(xo?Kw(xo,Mi):ge(k[ot],Mi,K)))continue e}lr&&lr.push(Mi),sn.push(Ur)}}return sn}function oH(k,B,K,ge){return N0(k,function(Se,Be,ot){B(ge,K(Se),Be,ot)}),ge}function S2(k,B,K){B=Wc(B,k),k=wg(k,B);var ge=k==null?k:k[z1(jd(B))];return ge==null?n:_c(ge,k,K)}function Qs(k){return $l(k)&&Fs(k)==re}function _T(k){return $l(k)&&Fs(k)==_e}function vg(k){return $l(k)&&Fs(k)==te}function A1(k,B,K,ge,Se){return k===B?!0:k==null||B==null||!$l(k)&&!$l(B)?k!==k&&B!==B:Oh(k,B,K,ge,A1,Se)}function Oh(k,B,K,ge,Se,Be){var ot=to(k),ht=to(B),At=ot?ee:qc(k),sn=ht?ee:qc(B);At=At==re?me:At,sn=sn==re?me:sn;var ln=At==me,mn=sn==me,lr=At==sn;if(lr&&ZM(k)){if(!ZM(B))return!1;ot=!0,ln=!1}if(lr&&!ln)return Be||(Be=new x1),ot||cE(k)?IL(k,B,K,ge,Se,Be):ane(k,B,At,K,ge,Se,Be);if(!(K&g)){var Ur=ln&&ma.call(k,"__wrapped__"),Mi=mn&&ma.call(B,"__wrapped__");if(Ur||Mi){var xo=Ur?k.value():k,Ci=Mi?B.value():B;return Be||(Be=new x1),Se(xo,Ci,K,ge,Be)}}return lr?(Be||(Be=new x1),sne(k,B,K,ge,Se,Be)):!1}function aH(k){return $l(k)&&qc(k)==le}function NT(k,B,K,ge){var Se=K.length,Be=Se,ot=!ge;if(k==null)return!Be;for(k=ns(k);Se--;){var ht=K[Se];if(ot&&ht[2]?ht[1]!==k[ht[0]]:!(ht[0]in k))return!1}for(;++Se<Be;){ht=K[Se];var At=ht[0],sn=k[At],ln=ht[1];if(ot&&ht[2]){if(sn===n&&!(At in k))return!1}else{var mn=new x1;if(ge)var lr=ge(sn,ln,At,k,B,mn);if(!(lr===n?A1(ln,sn,g|m,ge,mn):lr))return!1}}return!0}function FT(k){if(!zl(k)||Cg(k))return!1;var B=k2(k)?rS:Dt;return B.test(T1(k))}function sH(k){return $l(k)&&Fs(k)==de}function WT(k){return $l(k)&&qc(k)==ie}function sL(k){return $l(k)&&DH(k.length)&&!!wa[Fs(k)]}function A2(k){return typeof k=="function"?k:k==null?P1:typeof k=="object"?to(k)?lu(k[0],k[1]):cl(k):KTe(k)}function mS(k){if(!P2(k))return DM(k);var B=[];for(var K in ns(k))ma.call(k,K)&&K!="constructor"&&B.push(K);return B}function vS(k){if(!zl(k))return rE(k);var B=P2(k),K=[];for(var ge in k)ge=="constructor"&&(B||!ma.call(k,ge))||K.push(ge);return K}function Nd(k,B){return k<B}function GM(k,B){var K=-1,ge=R1(k)?Wt(k.length):[];return mg(k,function(Se,Be,ot){ge[++K]=B(Se,Be,ot)}),ge}function cl(k){var B=fc(k);return B.length==1&&B[0][2]?Rh(B[0][0],B[0][1]):function(K){return K===k||NT(K,k,B)}}function lu(k,B){return I2(k)&&RS(B)?Rh(z1(k),B):function(K){var ge=Ane(K,k);return ge===n&&ge===B?One(K,k):A1(B,ge,g|m)}}function Gl(k,B,K,ge,Se){k!==B&&jM(B,function(Be,ot){if(Se||(Se=new x1),zl(Be))qT(k,B,ot,K,Gl,ge,Se);else{var ht=ge?ge(Bd(k,ot),Be,ot+"",k,B,Se):n;ht===n&&(ht=Be),FM(k,ot,ht)}},I1)}function qT(k,B,K,ge,Se,Be,ot){var ht=Bd(k,K),At=Bd(B,K),sn=ot.get(At);if(sn){FM(k,K,sn);return}var ln=Be?Be(ht,At,K+"",k,B,ot):n,mn=ln===n;if(mn){var lr=to(At),Ur=!lr&&ZM(At),Mi=!lr&&!Ur&&cE(At);ln=At,lr||Ur||Mi?to(ht)?ln=ht:mc(ht)?ln=ld(ht):Ur?(mn=!1,ln=vL(At,!0)):Mi?(mn=!1,ln=$T(At,!0)):ln=[]:UL(At)||FS(At)?(ln=ht,FS(ht)?ln=qTe(ht):(!zl(ht)||k2(ht))&&(ln=wr(At))):mn=!1}mn&&(ot.set(At,ln),Se(ln,At,ge,Be,ot),ot.delete(At)),FM(k,K,ln)}function $M(k,B){var K=k.length;if(K)return B+=B<0?K:0,qu(B,K)?k[B]:n}function ad(k,B,K){B.length?B=As(B,function(Be){return to(Be)?function(ot){return ov(ot,Be.length===1?Be[0]:Be)}:Be}):B=[P1];var ge=-1;B=As(B,D0(Kr()));var Se=GM(k,function(Be,ot,ht){var At=As(B,function(sn){return sn(Be)});return{criteria:At,index:++ge,value:Be}});return Xte(Se,function(Be,ot){return UT(Be,ot,K)})}function lL(k,B){return BT(k,B,function(K,ge){return One(k,ge)})}function BT(k,B,K){for(var ge=-1,Se=B.length,Be={};++ge<Se;){var ot=B[ge],ht=ov(k,ot);K(ht,ot)&&sv(Be,Wc(ot,k),ht)}return Be}function O2(k){return function(B){return ov(B,k)}}function bg(k,B,K,ge){var Se=ge?Ute:h2,Be=-1,ot=B.length,ht=k;for(k===B&&(B=ld(B)),K&&(ht=As(k,D0(K)));++Be<ot;)for(var At=0,sn=B[Be],ln=K?K(sn):sn;(At=Se(ht,ln,At,ge))>-1;)ht!==k&&aS.call(ht,At,1),aS.call(k,At,1);return k}function Rp(k,B){for(var K=k?B.length:0,ge=K-1;K--;){var Se=B[K];if(K==ge||Se!==Be){var Be=Se;qu(Se)?aS.call(k,Se,1):GT(k,Se)}}return k}function z2(k,B){return k+sS(hg()*(B-k+1))}function bS(k,B,K,ge){for(var Se=-1,Be=Vl(PM((B-k)/(K||1)),0),ot=Wt(Be);Be--;)ot[ge?Be:++Se]=k,k+=K;return ot}function jT(k,B){var K="";if(!k||B<1||B>j)return K;do B%2&&(K+=k),B=sS(B/2),B&&(k+=k);while(B);return K}function co(k,B){return PS(xg(k,B,P1),k+"")}function lH(k){return dS(uE(k))}function yS(k,B){var K=uE(k);return DS(K,rv(B,0,K.length))}function sv(k,B,K,ge){if(!zl(k))return k;B=Wc(B,k);for(var Se=-1,Be=B.length,ot=Be-1,ht=k;ht!=null&&++Se<Be;){var At=z1(B[Se]),sn=K;if(At==="__proto__"||At==="constructor"||At==="prototype")return k;if(Se!=ot){var ln=ht[At];sn=ge?ge(ln,At,ht):n,sn===n&&(sn=zl(ln)?ln:qu(B[Se+1])?[]:{})}y2(ht,At,sn),ht=ht[At]}return k}var cL=cS?function(k,B){return cS.set(k,B),k}:P1,HT=pg?function(k,B){return pg(k,"toString",{configurable:!0,enumerable:!1,value:Tne(B),writable:!0})}:P1;function uL(k){return DS(uE(k))}function Fd(k,B,K){var ge=-1,Se=k.length;B<0&&(B=-B>Se?0:Se+B),K=K>Se?Se:K,K<0&&(K+=Se),Se=B>K?0:K-B>>>0,B>>>=0;for(var Be=Wt(Se);++ge<Se;)Be[ge]=k[ge+B];return Be}function cH(k,B){var K;return mg(k,function(ge,Se,Be){return K=B(ge,Se,Be),!K}),!!K}function T2(k,B,K){var ge=0,Se=k==null?ge:k.length;if(typeof B=="number"&&B===B&&Se<=X){for(;ge<Se;){var Be=ge+Se>>>1,ot=k[Be];ot!==null&&!Dp(ot)&&(K?ot<=B:ot<B)?ge=Be+1:Se=Be}return Se}return VT(k,B,P1,K)}function VT(k,B,K,ge){var Se=0,Be=k==null?0:k.length;if(Be===0)return 0;B=K(B);for(var ot=B!==B,ht=B===null,At=Dp(B),sn=B===n;Se<Be;){var ln=sS((Se+Be)/2),mn=K(k[ln]),lr=mn!==n,Ur=mn===null,Mi=mn===mn,xo=Dp(mn);if(ot)var Ci=ge||Mi;else sn?Ci=Mi&&(ge||lr):ht?Ci=Mi&&lr&&(ge||!Ur):At?Ci=Mi&&lr&&!Ur&&(ge||!xo):Ur||xo?Ci=!1:Ci=ge?mn<=B:mn<B;Ci?Se=ln+1:Be=ln}return Nc(Be,U)}function dL(k,B){for(var K=-1,ge=k.length,Se=0,Be=[];++K<ge;){var ot=k[K],ht=B?B(ot):ot;if(!K||!Ag(ht,At)){var At=ht;Be[Se++]=ot===0?0:ot}}return Be}function pL(k){return typeof k=="number"?k:Dp(k)?q:+k}function sd(k){if(typeof k=="string")return k;if(to(k))return As(k,sd)+"";if(Dp(k))return tv?tv.call(k):"";var B=k+"";return B=="0"&&1/k==-H?"-0":B}function yg(k,B,K){var ge=-1,Se=Gm,Be=k.length,ot=!0,ht=[],At=ht;if(K)ot=!1,Se=IM;else if(Be>=i){var sn=B?null:vH(k);if(sn)return wT(sn);ot=!1,Se=Kw,At=new nv}else At=B?[]:ht;e:for(;++ge<Be;){var ln=k[ge],mn=B?B(ln):ln;if(ln=K||ln!==0?ln:0,ot&&mn===mn){for(var lr=At.length;lr--;)if(At[lr]===mn)continue e;B&&At.push(mn),ht.push(ln)}else Se(At,mn,K)||(At!==ht&&At.push(mn),ht.push(ln))}return ht}function GT(k,B){return B=Wc(B,k),k=wg(k,B),k==null||delete k[z1(jd(B))]}function uH(k,B,K,ge){return sv(k,B,K(ov(k,B)),ge)}function UM(k,B,K,ge){for(var Se=k.length,Be=ge?Se:-1;(ge?Be--:++Be<Se)&&B(k[Be],Be,k););return K?Fd(k,ge?0:Be,ge?Be+1:Se):Fd(k,ge?Be+1:0,ge?Se:Be)}function MS(k,B){var K=k;return K instanceof Oo&&(K=K.value()),qk(B,function(ge,Se){return Se.func.apply(Se.thisArg,$m([ge],Se.args))},K)}function hL(k,B,K){var ge=k.length;if(ge<2)return ge?yg(k[0]):[];for(var Se=-1,Be=Wt(ge);++Se<ge;)for(var ot=k[Se],ht=-1;++ht<ge;)ht!=Se&&(Be[Se]=BM(Be[Se]||ot,k[ht],B,K));return yg(hc(Be,1),B,K)}function dH(k,B,K){for(var ge=-1,Se=k.length,Be=B.length,ot={};++ge<Se;){var ht=ge<Be?B[ge]:n;K(ot,k[ge],ht)}return ot}function fL(k){return mc(k)?k:[]}function gL(k){return typeof k=="function"?k:P1}function Wc(k,B){return to(k)?k:I2(k,B)?[k]:kS($a(k))}var Wd=co;function Mg(k,B,K){var ge=k.length;return K=K===n?ge:K,!B&&K>=ge?k:Fd(k,B,K)}var mL=Xj||function(k){return su.clearTimeout(k)};function vL(k,B){if(B)return k.slice();var K=k.length,ge=ds?ds(K):new k.constructor(K);return k.copy(ge),ge}function CS(k){var B=new k.constructor(k.byteLength);return new iS(B).set(new iS(k)),B}function pH(k,B){var K=B?CS(k.buffer):k.buffer;return new k.constructor(K,k.byteOffset,k.byteLength)}function bL(k){var B=new k.constructor(k.source,$o.exec(k));return B.lastIndex=k.lastIndex,B}function hH(k){return Fc?ns(Fc.call(k)):{}}function $T(k,B){var K=B?CS(k.buffer):k.buffer;return new k.constructor(K,k.byteOffset,k.length)}function yL(k,B){if(k!==B){var K=k!==n,ge=k===null,Se=k===k,Be=Dp(k),ot=B!==n,ht=B===null,At=B===B,sn=Dp(B);if(!ht&&!sn&&!Be&&k>B||Be&&ot&&At&&!ht&&!sn||ge&&ot&&At||!K&&At||!Se)return 1;if(!ge&&!Be&&!sn&&k<B||sn&&K&&Se&&!ge&&!Be||ht&&K&&Se||!ot&&Se||!At)return-1}return 0}function UT(k,B,K){for(var ge=-1,Se=k.criteria,Be=B.criteria,ot=Se.length,ht=K.length;++ge<ot;){var At=yL(Se[ge],Be[ge]);if(At){if(ge>=ht)return At;var sn=K[ge];return At*(sn=="desc"?-1:1)}}return k.index-B.index}function ML(k,B,K,ge){for(var Se=-1,Be=k.length,ot=K.length,ht=-1,At=B.length,sn=Vl(Be-ot,0),ln=Wt(At+sn),mn=!ge;++ht<At;)ln[ht]=B[ht];for(;++Se<ot;)(mn||Se<Be)&&(ln[K[Se]]=k[Se]);for(;sn--;)ln[ht++]=k[Se++];return ln}function CL(k,B,K,ge){for(var Se=-1,Be=k.length,ot=-1,ht=K.length,At=-1,sn=B.length,ln=Vl(Be-ht,0),mn=Wt(ln+sn),lr=!ge;++Se<ln;)mn[Se]=k[Se];for(var Ur=Se;++At<sn;)mn[Ur+At]=B[At];for(;++ot<ht;)(lr||Se<Be)&&(mn[Ur+K[ot]]=k[Se++]);return mn}function ld(k,B){var K=-1,ge=k.length;for(B||(B=Wt(ge));++K<ge;)B[K]=k[K];return B}function Ip(k,B,K,ge){var Se=!K;K||(K={});for(var Be=-1,ot=B.length;++Be<ot;){var ht=B[Be],At=ge?ge(K[ht],k[ht],ht,K,k):n;At===n&&(At=k[ht]),Se?Wu(K,ht,At):y2(K,ht,At)}return K}function fH(k,B){return Ip(k,E2(k),B)}function xL(k,B){return Ip(k,R2(k),B)}function xS(k,B){return function(K,ge){var Se=to(K)?Wk:rH,Be=B?B():{};return Se(K,k,Kr(ge,2),Be)}}function qd(k){return co(function(B,K){var ge=-1,Se=K.length,Be=Se>1?K[Se-1]:n,ot=Se>2?K[2]:n;for(Be=k.length>3&&typeof Be=="function"?(Se--,Be):n,ot&&gc(K[0],K[1],ot)&&(Be=Se<3?n:Be,Se=1),B=ns(B);++ge<Se;){var ht=K[ge];ht&&k(B,ht,ge,Be)}return B})}function wL(k,B){return function(K,ge){if(K==null)return K;if(!R1(K))return k(K,ge);for(var Se=K.length,Be=B?Se:-1,ot=ns(K);(B?Be--:++Be<Se)&&ge(ot[Be],Be,ot)!==!1;);return K}}function XT(k){return function(B,K,ge){for(var Se=-1,Be=ns(B),ot=ge(B),ht=ot.length;ht--;){var At=ot[k?ht:++Se];if(K(Be[At],At,Be)===!1)break}return B}}function gH(k,B,K){var ge=B&v,Se=wS(k);function Be(){var ot=this&&this!==su&&this instanceof Be?Se:k;return ot.apply(ge?K:this,arguments)}return Be}function SL(k){return function(B){B=$a(B);var K=f2(B)?Tp(B):n,ge=K?K[0]:B.charAt(0),Se=K?Mg(K,1).join(""):B.slice(1);return ge[k]()+Se}}function zh(k){return function(B){return qk(XTe(UTe(B).replace(Lte,"")),k,"")}}function wS(k){return function(){var B=arguments;switch(B.length){case 0:return new k;case 1:return new k(B[0]);case 2:return new k(B[0],B[1]);case 3:return new k(B[0],B[1],B[2]);case 4:return new k(B[0],B[1],B[2],B[3]);case 5:return new k(B[0],B[1],B[2],B[3],B[4]);case 6:return new k(B[0],B[1],B[2],B[3],B[4],B[5]);case 7:return new k(B[0],B[1],B[2],B[3],B[4],B[5],B[6])}var K=dc(k.prototype),ge=k.apply(K,B);return zl(ge)?ge:K}}function ine(k,B,K){var ge=wS(k);function Se(){for(var Be=arguments.length,ot=Wt(Be),ht=Be,At=Ol(Se);ht--;)ot[ht]=arguments[ht];var sn=Be<3&&ot[0]!==At&&ot[Be-1]!==At?[]:Xm(ot,At);if(Be-=sn.length,Be<K)return zL(k,B,QT,Se.placeholder,n,ot,sn,n,n,K-Be);var ln=this&&this!==su&&this instanceof Se?ge:k;return _c(ln,this,ot)}return Se}function YT(k){return function(B,K,ge){var Se=ns(B);if(!R1(B)){var Be=Kr(K,3);B=Bu(B),K=function(ht){return Be(Se[ht],ht,Se)}}var ot=k(B,K,ge);return ot>-1?Se[Be?B[ot]:ot]:n}}function KT(k){return O1(function(B){var K=B.length,ge=K,Se=L0.prototype.thru;for(k&&B.reverse();ge--;){var Be=B[ge];if(typeof Be!="function")throw new k0(a);if(Se&&!ot&&ul(Be)=="wrapper")var ot=new L0([],!0)}for(ge=ot?ge:K;++ge<K;){Be=B[ge];var ht=ul(Be),At=ht=="wrapper"?cu(Be):n;At&&TS(At[0])&&At[1]==(A|C|w|z)&&!At[4].length&&At[9]==1?ot=ot[ul(At[0])].apply(ot,At[3]):ot=Be.length==1&&TS(Be)?ot[ht]():ot.thru(Be)}return function(){var sn=arguments,ln=sn[0];if(ot&&sn.length==1&&to(ln))return ot.plant(ln).value();for(var mn=0,lr=K?B[mn].apply(this,sn):ln;++mn<K;)lr=B[mn].call(this,lr);return lr}})}function QT(k,B,K,ge,Se,Be,ot,ht,At,sn){var ln=B&A,mn=B&v,lr=B&y,Ur=B&(C|x),Mi=B&O,xo=lr?n:wS(k);function Ci(){for(var Wo=arguments.length,ta=Wt(Wo),kp=Wo;kp--;)ta[kp]=arguments[kp];if(Ur)var W0=Ol(Ci),Lp=Vk(ta,W0);if(ge&&(ta=ML(ta,ge,Se,Ur)),Be&&(ta=CL(ta,Be,ot,Ur)),Wo-=Lp,Ur&&Wo<sn){var vc=Xm(ta,W0);return zL(k,B,QT,Ci.placeholder,K,ta,vc,ht,At,sn-Wo)}var Og=mn?K:this,_2=lr?Og[k]:k;return Wo=ta.length,ht?ta=iE(ta,ht):Mi&&Wo>1&&ta.reverse(),ln&&At<Wo&&(ta.length=At),this&&this!==su&&this instanceof Ci&&(_2=xo||wS(_2)),_2.apply(Og,ta)}return Ci}function AL(k,B){return function(K,ge){return oH(K,k,B(ge),{})}}function SS(k,B){return function(K,ge){var Se;if(K===n&&ge===n)return B;if(K!==n&&(Se=K),ge!==n){if(Se===n)return ge;typeof K=="string"||typeof ge=="string"?(K=sd(K),ge=sd(ge)):(K=pL(K),ge=pL(ge)),Se=k(K,ge)}return Se}}function OL(k){return O1(function(B){return B=As(B,D0(Kr())),co(function(K){var ge=this;return k(B,function(Se){return _c(Se,ge,K)})})})}function AS(k,B){B=B===n?" ":sd(B);var K=B.length;if(K<2)return K?jT(B,k):B;var ge=jT(B,PM(k/Mh(B)));return f2(B)?Mg(Tp(ge),0,k).join(""):ge.slice(0,k)}function one(k,B,K,ge){var Se=B&v,Be=wS(k);function ot(){for(var ht=-1,At=arguments.length,sn=-1,ln=ge.length,mn=Wt(ln+At),lr=this&&this!==su&&this instanceof ot?Be:k;++sn<ln;)mn[sn]=ge[sn];for(;At--;)mn[sn++]=arguments[++ht];return _c(lr,Se?K:this,mn)}return ot}function mH(k){return function(B,K,ge){return ge&&typeof ge!="number"&&gc(B,K,ge)&&(K=ge=n),B=L2(B),K===n?(K=B,B=0):K=L2(K),ge=ge===n?B<K?1:-1:L2(ge),bS(B,K,ge,k)}}function OS(k){return function(B,K){return typeof B=="string"&&typeof K=="string"||(B=Ph(B),K=Ph(K)),k(B,K)}}function zL(k,B,K,ge,Se,Be,ot,ht,At,sn){var ln=B&C,mn=ln?ot:n,lr=ln?n:ot,Ur=ln?Be:n,Mi=ln?n:Be;B|=ln?w:S,B&=~(ln?S:w),B&M||(B&=-4);var xo=[k,B,Se,Ur,mn,Mi,lr,ht,At,sn],Ci=K.apply(n,xo);return TS(k)&&_L(Ci,xo),Ci.placeholder=ge,bH(Ci,k,B)}function ZT(k){var B=Sa[k];return function(K,ge){if(K=Ph(K),ge=ge==null?0:Nc(vo(ge),292),ge&&Kj(K)){var Se=($a(K)+"e").split("e"),Be=B(Se[0]+"e"+(+Se[1]+ge));return Se=($a(Be)+"e").split("e"),+(Se[0]+"e"+(+Se[1]-ge))}return B(K)}}var vH=xh&&1/wT(new xh([,-0]))[1]==H?function(k){return new xh(k)}:Ine;function TL(k){return function(B){var K=qc(B);return K==le?Um(B):K==ie?Bj(B):Yte(B,k(B))}}function Pp(k,B,K,ge,Se,Be,ot,ht){var At=B&y;if(!At&&typeof k!="function")throw new k0(a);var sn=ge?ge.length:0;if(sn||(B&=-97,ge=Se=n),ot=ot===n?ot:Vl(vo(ot),0),ht=ht===n?ht:vo(ht),sn-=Se?Se.length:0,B&S){var ln=ge,mn=Se;ge=Se=n}var lr=At?n:cu(k),Ur=[k,B,K,ge,Se,ln,mn,Be,ot,ht];if(lr&&IS(Ur,lr),k=Ur[0],B=Ur[1],K=Ur[2],ge=Ur[3],Se=Ur[4],ht=Ur[9]=Ur[9]===n?At?0:k.length:Vl(Ur[9]-sn,0),!ht&&B&(C|x)&&(B&=-25),!B||B==v)var Mi=gH(k,B,K);else B==C||B==x?Mi=ine(k,B,ht):(B==w||B==(v|w))&&!Se.length?Mi=one(k,B,K,ge):Mi=QT.apply(n,Ur);var xo=lr?cL:_L;return bH(xo(Mi,Ur),k,B)}function JT(k,B,K,ge){return k===n||Ag(k,Ym[K])&&!ma.call(ge,K)?B:k}function EL(k,B,K,ge,Se,Be){return zl(k)&&zl(B)&&(Be.set(B,k),Gl(k,B,n,EL,Be),Be.delete(B)),k}function RL(k){return UL(k)?n:k}function IL(k,B,K,ge,Se,Be){var ot=K&g,ht=k.length,At=B.length;if(ht!=At&&!(ot&&At>ht))return!1;var sn=Be.get(k),ln=Be.get(B);if(sn&&ln)return sn==B&&ln==k;var mn=-1,lr=!0,Ur=K&m?new nv:n;for(Be.set(k,B),Be.set(B,k);++mn<ht;){var Mi=k[mn],xo=B[mn];if(ge)var Ci=ot?ge(xo,Mi,mn,B,k,Be):ge(Mi,xo,mn,k,B,Be);if(Ci!==n){if(Ci)continue;lr=!1;break}if(Ur){if(!Xw(B,function(Wo,ta){if(!Kw(Ur,ta)&&(Mi===Wo||Se(Mi,Wo,K,ge,Be)))return Ur.push(ta)})){lr=!1;break}}else if(!(Mi===xo||Se(Mi,xo,K,ge,Be))){lr=!1;break}}return Be.delete(k),Be.delete(B),lr}function ane(k,B,K,ge,Se,Be,ot){switch(K){case Ie:if(k.byteLength!=B.byteLength||k.byteOffset!=B.byteOffset)return!1;k=k.buffer,B=B.buffer;case _e:return!(k.byteLength!=B.byteLength||!Be(new iS(k),new iS(B)));case pe:case te:case he:return Ag(+k,+B);case oe:return k.name==B.name&&k.message==B.message;case de:case ue:return k==B+"";case le:var ht=Um;case ie:var At=ge&g;if(ht||(ht=wT),k.size!=B.size&&!At)return!1;var sn=ot.get(k);if(sn)return sn==B;ge|=m,ot.set(k,B);var ln=IL(ht(k),ht(B),ge,Se,Be,ot);return ot.delete(k),ln;case Ae:if(Fc)return Fc.call(k)==Fc.call(B)}return!1}function sne(k,B,K,ge,Se,Be){var ot=K&g,ht=zS(k),At=ht.length,sn=zS(B),ln=sn.length;if(At!=ln&&!ot)return!1;for(var mn=At;mn--;){var lr=ht[mn];if(!(ot?lr in B:ma.call(B,lr)))return!1}var Ur=Be.get(k),Mi=Be.get(B);if(Ur&&Mi)return Ur==B&&Mi==k;var xo=!0;Be.set(k,B),Be.set(B,k);for(var Ci=ot;++mn<At;){lr=ht[mn];var Wo=k[lr],ta=B[lr];if(ge)var kp=ot?ge(ta,Wo,lr,B,k,Be):ge(Wo,ta,lr,k,B,Be);if(!(kp===n?Wo===ta||Se(Wo,ta,K,ge,Be):kp)){xo=!1;break}Ci||(Ci=lr=="constructor")}if(xo&&!Ci){var W0=k.constructor,Lp=B.constructor;W0!=Lp&&"constructor"in k&&"constructor"in B&&!(typeof W0=="function"&&W0 instanceof W0&&typeof Lp=="function"&&Lp instanceof Lp)&&(xo=!1)}return Be.delete(k),Be.delete(B),xo}function O1(k){return PS(xg(k,n,Sg),k+"")}function zS(k){return VM(k,Bu,E2)}function yi(k){return VM(k,I1,R2)}var cu=cS?function(k){return cS.get(k)}:Ine;function ul(k){for(var B=k.name+"",K=Zm[B],ge=ma.call(Zm,B)?K.length:0;ge--;){var Se=K[ge],Be=Se.func;if(Be==null||Be==k)return Se.name}return B}function Ol(k){var B=ma.call(ke,"placeholder")?ke:k;return B.placeholder}function Kr(){var k=ke.iteratee||Ene;return k=k===Ene?A2:k,arguments.length?k(arguments[0],arguments[1]):k}function XM(k,B){var K=k.__data__;return LL(B)?K[typeof B=="string"?"string":"hash"]:K.map}function fc(k){for(var B=Bu(k),K=B.length;K--;){var ge=B[K],Se=k[ge];B[K]=[ge,Se,RS(Se)]}return B}function Th(k,B){var K=Nj(k,B);return FT(K)?K:n}function YM(k){var B=ma.call(k,Ch),K=k[Ch];try{k[Ch]=n;var ge=!0}catch{}var Se=nS.call(k);return ge&&(B?k[Ch]=K:delete k[Ch]),Se}var E2=lS?function(k){return k==null?[]:(k=ns(k),yh(lS(k),function(B){return Yk.call(k,B)}))}:Pne,R2=lS?function(k){for(var B=[];k;)$m(B,E2(k)),k=oS(k);return B}:Pne,qc=Fs;(Km&&qc(new Km(new ArrayBuffer(1)))!=Ie||kM&&qc(new kM)!=le||fg&&qc(fg.resolve())!=Me||xh&&qc(new xh)!=ie||wh&&qc(new wh)!=Ee)&&(qc=function(k){var B=Fs(k),K=B==me?k.constructor:n,ge=K?T1(K):"";if(ge)switch(ge){case LM:return Ie;case Jm:return le;case Os:return Me;case ll:return ie;case ev:return Ee}return B});function PL(k,B,K){for(var ge=-1,Se=K.length;++ge<Se;){var Be=K[ge],ot=Be.size;switch(Be.type){case"drop":k+=ot;break;case"dropRight":B-=ot;break;case"take":B=Nc(B,k+ot);break;case"takeRight":k=Vl(k,B-ot);break}}return{start:k,end:B}}function DL(k){var B=k.match($n);return B?B[1].split(Yr):[]}function eE(k,B,K){B=Wc(B,k);for(var ge=-1,Se=B.length,Be=!1;++ge<Se;){var ot=z1(B[ge]);if(!(Be=k!=null&&K(k,ot)))break;k=k[ot]}return Be||++ge!=Se?Be:(Se=k==null?0:k.length,!!Se&&DH(Se)&&qu(ot,Se)&&(to(k)||FS(k)))}function KM(k){var B=k.length,K=new k.constructor(B);return B&&typeof k[0]=="string"&&ma.call(k,"index")&&(K.index=k.index,K.input=k.input),K}function wr(k){return typeof k.constructor=="function"&&!P2(k)?dc(oS(k)):{}}function tE(k,B,K){var ge=k.constructor;switch(B){case _e:return CS(k);case pe:case te:return new ge(+k);case Ie:return pH(k,K);case Le:case we:case ve:case De:case ze:case Ve:case Ke:case et:case it:return $T(k,K);case le:return new ge;case he:case ue:return new ge(k);case de:return bL(k);case ie:return new ge;case Ae:return hH(k)}}function kL(k,B){var K=B.length;if(!K)return k;var ge=K-1;return B[ge]=(K>1?"& ":"")+B[ge],B=B.join(K>2?", ":" "),k.replace(un,`{
/* [wrapped with `+B+`] */
`)}function Eh(k){return to(k)||FS(k)||!!(Kk&&k&&k[Kk])}function qu(k,B){var K=typeof k;return B=B??j,!!B&&(K=="number"||K!="symbol"&&Hn.test(k))&&k>-1&&k%1==0&&k<B}function gc(k,B,K){if(!zl(K))return!1;var ge=typeof B;return(ge=="number"?R1(K)&&qu(B,K.length):ge=="string"&&B in K)?Ag(K[B],k):!1}function I2(k,B){if(to(k))return!1;var K=typeof k;return K=="number"||K=="symbol"||K=="boolean"||k==null||Dp(k)?!0:ct.test(k)||!Xe.test(k)||B!=null&&k in ns(B)}function LL(k){var B=typeof k;return B=="string"||B=="number"||B=="symbol"||B=="boolean"?k!=="__proto__":k===null}function TS(k){var B=ul(k),K=ke[B];if(typeof K!="function"||!(B in Oo.prototype))return!1;if(k===K)return!0;var ge=cu(K);return!!ge&&k===ge[0]}function Cg(k){return!!AT&&AT in k}var ES=ST?k2:Dne;function P2(k){var B=k&&k.constructor,K=typeof B=="function"&&B.prototype||Ym;return k===K}function RS(k){return k===k&&!zl(k)}function Rh(k,B){return function(K){return K==null?!1:K[k]===B&&(B!==n||k in ns(K))}}function nE(k){var B=IH(k,function(ge){return K.size===c&&K.clear(),ge}),K=B.cache;return B}function IS(k,B){var K=k[1],ge=B[1],Se=K|ge,Be=Se<(v|y|A),ot=ge==A&&K==C||ge==A&&K==z&&k[7].length<=B[8]||ge==(A|z)&&B[7].length<=B[8]&&K==C;if(!(Be||ot))return k;ge&v&&(k[2]=B[2],Se|=K&v?0:M);var ht=B[3];if(ht){var At=k[3];k[3]=At?ML(At,ht,B[4]):ht,k[4]=At?Xm(k[3],u):B[4]}return ht=B[5],ht&&(At=k[5],k[5]=At?CL(At,ht,B[6]):ht,k[6]=At?Xm(k[5],u):B[6]),ht=B[7],ht&&(k[7]=ht),ge&A&&(k[8]=k[8]==null?B[8]:Nc(k[8],B[8])),k[9]==null&&(k[9]=B[9]),k[0]=B[0],k[1]=Se,k}function rE(k){var B=[];if(k!=null)for(var K in ns(k))B.push(K);return B}function F0(k){return nS.call(k)}function xg(k,B,K){return B=Vl(B===n?k.length-1:B,0),function(){for(var ge=arguments,Se=-1,Be=Vl(ge.length-B,0),ot=Wt(Be);++Se<Be;)ot[Se]=ge[B+Se];Se=-1;for(var ht=Wt(B+1);++Se<B;)ht[Se]=ge[Se];return ht[B]=K(ot),_c(k,this,ht)}}function wg(k,B){return B.length<2?k:ov(k,Fd(B,0,-1))}function iE(k,B){for(var K=k.length,ge=Nc(B.length,K),Se=ld(k);ge--;){var Be=B[ge];k[ge]=qu(Be,K)?Se[Be]:n}return k}function Bd(k,B){if(!(B==="constructor"&&typeof k[B]=="function")&&B!="__proto__")return k[B]}var _L=NL(cL),Ih=Qk||function(k,B){return su.setTimeout(k,B)},PS=NL(HT);function bH(k,B,K){var ge=B+"";return PS(k,kL(ge,yH(DL(ge),K)))}function NL(k){var B=0,K=0;return function(){var ge=Zte(),Se=N-(ge-K);if(K=ge,Se>0){if(++B>=P)return arguments[0]}else B=0;return k.apply(n,arguments)}}function DS(k,B){var K=-1,ge=k.length,Se=ge-1;for(B=B===n?ge:B;++K<B;){var Be=z2(K,Se),ot=k[Be];k[Be]=k[K],k[K]=ot}return k.length=B,k}var kS=nE(function(k){var B=[];return k.charCodeAt(0)===46&&B.push(""),k.replace(lt,function(K,ge,Se,Be){B.push(Se?Be.replace(si,"$1"):ge||K)}),B});function z1(k){if(typeof k=="string"||Dp(k))return k;var B=k+"";return B=="0"&&1/k==-H?"-0":B}function T1(k){if(k!=null){try{return cg.call(k)}catch{}try{return k+""}catch{}}return""}function yH(k,B){return Nu(Q,function(K){var ge="_."+K[0];B&K[1]&&!Gm(k,ge)&&k.push(ge)}),k.sort()}function FL(k){if(k instanceof Oo)return k.clone();var B=new L0(k.__wrapped__,k.__chain__);return B.__actions__=ld(k.__actions__),B.__index__=k.__index__,B.__values__=k.__values__,B}function LS(k,B,K){(K?gc(k,B,K):B===n)?B=1:B=Vl(vo(B),0);var ge=k==null?0:k.length;if(!ge||B<1)return[];for(var Se=0,Be=0,ot=Wt(PM(ge/B));Se<ge;)ot[Be++]=Fd(k,Se,Se+=B);return ot}function lne(k){for(var B=-1,K=k==null?0:k.length,ge=0,Se=[];++B<K;){var Be=k[B];Be&&(Se[ge++]=Be)}return Se}function cne(){var k=arguments.length;if(!k)return[];for(var B=Wt(k-1),K=arguments[0],ge=k;ge--;)B[ge-1]=arguments[ge];return $m(to(K)?ld(K):[K],hc(B,1))}var MH=co(function(k,B){return mc(k)?BM(k,hc(B,1,mc,!0)):[]}),CH=co(function(k,B){var K=jd(B);return mc(K)&&(K=n),mc(k)?BM(k,hc(B,1,mc,!0),Kr(K,2)):[]}),D2=co(function(k,B){var K=jd(B);return mc(K)&&(K=n),mc(k)?BM(k,hc(B,1,mc,!0),n,K):[]});function une(k,B,K){var ge=k==null?0:k.length;return ge?(B=K||B===n?1:vo(B),Fd(k,B<0?0:B,ge)):[]}function dne(k,B,K){var ge=k==null?0:k.length;return ge?(B=K||B===n?1:vo(B),B=ge-B,Fd(k,0,B<0?0:B)):[]}function lv(k,B){return k&&k.length?UM(k,Kr(B,3),!0,!0):[]}function pne(k,B){return k&&k.length?UM(k,Kr(B,3),!0):[]}function xH(k,B,K,ge){var Se=k==null?0:k.length;return Se?(K&&typeof K!="number"&&gc(k,B,K)&&(K=0,ge=Se),iH(k,B,K,ge)):[]}function wH(k,B,K){var ge=k==null?0:k.length;if(!ge)return-1;var Se=K==null?0:vo(K);return Se<0&&(Se=Vl(ge+Se,0)),CT(k,Kr(B,3),Se)}function WL(k,B,K){var ge=k==null?0:k.length;if(!ge)return-1;var Se=ge-1;return K!==n&&(Se=vo(K),Se=K<0?Vl(ge+Se,0):Nc(Se,ge-1)),CT(k,Kr(B,3),Se,!0)}function Sg(k){var B=k==null?0:k.length;return B?hc(k,1):[]}function hne(k){var B=k==null?0:k.length;return B?hc(k,H):[]}function fne(k,B){var K=k==null?0:k.length;return K?(B=B===n?1:vo(B),hc(k,B)):[]}function SH(k){for(var B=-1,K=k==null?0:k.length,ge={};++B<K;){var Se=k[B];ge[Se[0]]=Se[1]}return ge}function AH(k){return k&&k.length?k[0]:n}function E1(k,B,K){var ge=k==null?0:k.length;if(!ge)return-1;var Se=K==null?0:vo(K);return Se<0&&(Se=Vl(ge+Se,0)),h2(k,B,Se)}function qL(k){var B=k==null?0:k.length;return B?Fd(k,0,-1):[]}var gne=co(function(k){var B=As(k,fL);return B.length&&B[0]===k[0]?av(B):[]}),cv=co(function(k){var B=jd(k),K=As(k,fL);return B===jd(K)?B=n:K.pop(),K.length&&K[0]===k[0]?av(K,Kr(B,2)):[]}),oE=co(function(k){var B=jd(k),K=As(k,fL);return B=typeof B=="function"?B:n,B&&K.pop(),K.length&&K[0]===k[0]?av(K,n,B):[]});function QM(k,B){return k==null?"":Zk.call(k,B)}function jd(k){var B=k==null?0:k.length;return B?k[B-1]:n}function BL(k,B,K){var ge=k==null?0:k.length;if(!ge)return-1;var Se=ge;return K!==n&&(Se=vo(K),Se=Se<0?Vl(ge+Se,0):Nc(Se,ge-1)),B===B?Zw(k,B,Se):CT(k,Rj,Se,!0)}function jL(k,B){return k&&k.length?$M(k,vo(B)):n}var mne=co(OH);function OH(k,B){return k&&k.length&&B&&B.length?bg(k,B):k}function aE(k,B,K){return k&&k.length&&B&&B.length?bg(k,B,Kr(K,2)):k}function HL(k,B,K){return k&&k.length&&B&&B.length?bg(k,B,n,K):k}var zH=O1(function(k,B){var K=k==null?0:k.length,ge=pS(k,B);return Rp(k,As(B,function(Se){return qu(Se,K)?+Se:Se}).sort(yL)),ge});function VL(k,B){var K=[];if(!(k&&k.length))return K;var ge=-1,Se=[],Be=k.length;for(B=Kr(B,3);++ge<Be;){var ot=k[ge];B(ot,ge,k)&&(K.push(ot),Se.push(ge))}return Rp(k,Se),K}function GL(k){return k==null?k:ET.call(k)}function $L(k,B,K){var ge=k==null?0:k.length;return ge?(K&&typeof K!="number"&&gc(k,B,K)?(B=0,K=ge):(B=B==null?0:vo(B),K=K===n?ge:vo(K)),Fd(k,B,K)):[]}function _S(k,B){return T2(k,B)}function vne(k,B,K){return VT(k,B,Kr(K,2))}function sE(k,B){var K=k==null?0:k.length;if(K){var ge=T2(k,B);if(ge<K&&Ag(k[ge],B))return ge}return-1}function TH(k,B){return T2(k,B,!0)}function bne(k,B,K){return VT(k,B,Kr(K,2),!0)}function NS(k,B){var K=k==null?0:k.length;if(K){var ge=T2(k,B,!0)-1;if(Ag(k[ge],B))return ge}return-1}function yne(k){return k&&k.length?dL(k):[]}function lE(k,B){return k&&k.length?dL(k,Kr(B,2)):[]}function R(k){var B=k==null?0:k.length;return B?Fd(k,1,B):[]}function _(k,B,K){return k&&k.length?(B=K||B===n?1:vo(B),Fd(k,0,B<0?0:B)):[]}function V(k,B,K){var ge=k==null?0:k.length;return ge?(B=K||B===n?1:vo(B),B=ge-B,Fd(k,B<0?0:B,ge)):[]}function J(k,B){return k&&k.length?UM(k,Kr(B,3),!1,!0):[]}function fe(k,B){return k&&k.length?UM(k,Kr(B,3)):[]}var xe=co(function(k){return yg(hc(k,1,mc,!0))}),Pe=co(function(k){var B=jd(k);return mc(B)&&(B=n),yg(hc(k,1,mc,!0),Kr(B,2))}),$e=co(function(k){var B=jd(k);return B=typeof B=="function"?B:n,yg(hc(k,1,mc,!0),n,B)});function pt(k){return k&&k.length?yg(k):[]}function Bt(k,B){return k&&k.length?yg(k,Kr(B,2)):[]}function gr(k,B){return B=typeof B=="function"?B:n,k&&k.length?yg(k,n,B):[]}function Ai(k){if(!(k&&k.length))return[];var B=0;return k=yh(k,function(K){if(mc(K))return B=Vl(K.length,B),!0}),xT(B,function(K){return As(k,Bk(K))})}function gn(k,B){if(!(k&&k.length))return[];var K=Ai(k);return B==null?K:As(K,function(ge){return _c(B,n,ge)})}var Hr=co(function(k,B){return mc(k)?BM(k,B):[]}),Ti=co(function(k){return hL(yh(k,mc))}),vi=co(function(k){var B=jd(k);return mc(B)&&(B=n),hL(yh(k,mc),Kr(B,2))}),Et=co(function(k){var B=jd(k);return B=typeof B=="function"?B:n,hL(yh(k,mc),n,B)}),vt=co(Ai);function zt(k,B){return dH(k||[],B||[],y2)}function an(k,B){return dH(k||[],B||[],sv)}var cn=co(function(k){var B=k.length,K=B>1?k[B-1]:n;return K=typeof K=="function"?(k.pop(),K):n,gn(k,K)});function ki(k){var B=ke(k);return B.__chain__=!0,B}function Rr(k,B){return B(k),k}function Oi(k,B){return B(k)}var Co=O1(function(k){var B=k.length,K=B?k[0]:0,ge=this.__wrapped__,Se=function(Be){return pS(Be,k)};return B>1||this.__actions__.length||!(ge instanceof Oo)||!qu(K)?this.thru(Se):(ge=ge.slice(K,+K+(B?1:0)),ge.__actions__.push({func:Oi,args:[Se],thisArg:n}),new L0(ge,this.__chain__).thru(function(Be){return B&&!Be.length&&Be.push(n),Be}))});function Qi(){return ki(this)}function uv(){return new L0(this.value(),this.__chain__)}function Mne(){this.__values__===n&&(this.__values__=FTe(this.value()));var k=this.__index__>=this.__values__.length,B=k?n:this.__values__[this.__index__++];return{done:k,value:B}}function KEt(){return this}function QEt(k){for(var B,K=this;K instanceof v2;){var ge=FL(K);ge.__index__=0,ge.__values__=n,B?Se.__wrapped__=ge:B=ge;var Se=ge;K=K.__wrapped__}return Se.__wrapped__=k,B}function ZEt(){var k=this.__wrapped__;if(k instanceof Oo){var B=k;return this.__actions__.length&&(B=new Oo(this)),B=B.reverse(),B.__actions__.push({func:Oi,args:[GL],thisArg:n}),new L0(B,this.__chain__)}return this.thru(GL)}function JEt(){return MS(this.__wrapped__,this.__actions__)}var eRt=xS(function(k,B,K){ma.call(k,K)?++k[K]:Wu(k,K,1)});function tRt(k,B,K){var ge=to(k)?MT:kT;return K&&gc(k,B,K)&&(B=n),ge(k,Kr(B,3))}function nRt(k,B){var K=to(k)?yh:oL;return K(k,Kr(B,3))}var rRt=YT(wH),iRt=YT(WL);function oRt(k,B){return hc(EH(k,B),1)}function aRt(k,B){return hc(EH(k,B),H)}function sRt(k,B,K){return K=K===n?1:vo(K),hc(EH(k,B),K)}function ATe(k,B){var K=to(k)?Nu:mg;return K(k,Kr(B,3))}function OTe(k,B){var K=to(k)?jte:hS;return K(k,Kr(B,3))}var lRt=xS(function(k,B,K){ma.call(k,K)?k[K].push(B):Wu(k,K,[B])});function cRt(k,B,K,ge){k=R1(k)?k:uE(k),K=K&&!ge?vo(K):0;var Se=k.length;return K<0&&(K=Vl(Se+K,0)),kH(k)?K<=Se&&k.indexOf(B,K)>-1:!!Se&&h2(k,B,K)>-1}var uRt=co(function(k,B,K){var ge=-1,Se=typeof B=="function",Be=R1(k)?Wt(k.length):[];return mg(k,function(ot){Be[++ge]=Se?_c(B,ot,K):S2(ot,B,K)}),Be}),dRt=xS(function(k,B,K){Wu(k,K,B)});function EH(k,B){var K=to(k)?As:GM;return K(k,Kr(B,3))}function pRt(k,B,K,ge){return k==null?[]:(to(B)||(B=B==null?[]:[B]),K=ge?n:K,to(K)||(K=K==null?[]:[K]),ad(k,B,K))}var hRt=xS(function(k,B,K){k[K?0:1].push(B)},function(){return[[],[]]});function fRt(k,B,K){var ge=to(k)?qk:Pj,Se=arguments.length<3;return ge(k,Kr(B,4),K,Se,mg)}function gRt(k,B,K){var ge=to(k)?Hte:Pj,Se=arguments.length<3;return ge(k,Kr(B,4),K,Se,hS)}function mRt(k,B){var K=to(k)?yh:oL;return K(k,PH(Kr(B,3)))}function vRt(k){var B=to(k)?dS:lH;return B(k)}function bRt(k,B,K){(K?gc(k,B,K):B===n)?B=1:B=vo(B);var ge=to(k)?DT:yS;return ge(k,B)}function yRt(k){var B=to(k)?NM:uL;return B(k)}function MRt(k){if(k==null)return 0;if(R1(k))return kH(k)?Mh(k):k.length;var B=qc(k);return B==le||B==ie?k.size:mS(k).length}function CRt(k,B,K){var ge=to(k)?Xw:cH;return K&&gc(k,B,K)&&(B=n),ge(k,Kr(B,3))}var xRt=co(function(k,B){if(k==null)return[];var K=B.length;return K>1&&gc(k,B[0],B[1])?B=[]:K>2&&gc(B[0],B[1],B[2])&&(B=[B[0]]),ad(k,hc(B,1),[])}),RH=zT||function(){return su.Date.now()};function wRt(k,B){if(typeof B!="function")throw new k0(a);return k=vo(k),function(){if(--k<1)return B.apply(this,arguments)}}function zTe(k,B,K){return B=K?n:B,B=k&&B==null?k.length:B,Pp(k,A,n,n,n,n,B)}function TTe(k,B){var K;if(typeof B!="function")throw new k0(a);return k=vo(k),function(){return--k>0&&(K=B.apply(this,arguments)),k<=1&&(B=n),K}}var Cne=co(function(k,B,K){var ge=v;if(K.length){var Se=Xm(K,Ol(Cne));ge|=w}return Pp(k,ge,B,K,Se)}),ETe=co(function(k,B,K){var ge=v|y;if(K.length){var Se=Xm(K,Ol(ETe));ge|=w}return Pp(B,ge,k,K,Se)});function RTe(k,B,K){B=K?n:B;var ge=Pp(k,C,n,n,n,n,n,B);return ge.placeholder=RTe.placeholder,ge}function ITe(k,B,K){B=K?n:B;var ge=Pp(k,x,n,n,n,n,n,B);return ge.placeholder=ITe.placeholder,ge}function PTe(k,B,K){var ge,Se,Be,ot,ht,At,sn=0,ln=!1,mn=!1,lr=!0;if(typeof k!="function")throw new k0(a);B=Ph(B)||0,zl(K)&&(ln=!!K.leading,mn="maxWait"in K,Be=mn?Vl(Ph(K.maxWait)||0,B):Be,lr="trailing"in K?!!K.trailing:lr);function Ur(vc){var Og=ge,_2=Se;return ge=Se=n,sn=vc,ot=k.apply(_2,Og),ot}function Mi(vc){return sn=vc,ht=Ih(Wo,B),ln?Ur(vc):ot}function xo(vc){var Og=vc-At,_2=vc-sn,QTe=B-Og;return mn?Nc(QTe,Be-_2):QTe}function Ci(vc){var Og=vc-At,_2=vc-sn;return At===n||Og>=B||Og<0||mn&&_2>=Be}function Wo(){var vc=RH();if(Ci(vc))return ta(vc);ht=Ih(Wo,xo(vc))}function ta(vc){return ht=n,lr&&ge?Ur(vc):(ge=Se=n,ot)}function kp(){ht!==n&&mL(ht),sn=0,ge=At=Se=ht=n}function W0(){return ht===n?ot:ta(RH())}function Lp(){var vc=RH(),Og=Ci(vc);if(ge=arguments,Se=this,At=vc,Og){if(ht===n)return Mi(At);if(mn)return mL(ht),ht=Ih(Wo,B),Ur(At)}return ht===n&&(ht=Ih(Wo,B)),ot}return Lp.cancel=kp,Lp.flush=W0,Lp}var SRt=co(function(k,B){return qM(k,1,B)}),ARt=co(function(k,B,K){return qM(k,Ph(B)||0,K)});function ORt(k){return Pp(k,O)}function IH(k,B){if(typeof k!="function"||B!=null&&typeof B!="function")throw new k0(a);var K=function(){var ge=arguments,Se=B?B.apply(this,ge):ge[0],Be=K.cache;if(Be.has(Se))return Be.get(Se);var ot=k.apply(this,ge);return K.cache=Be.set(Se,ot)||Be,ot};return K.cache=new(IH.Cache||Sh),K}IH.Cache=Sh;function PH(k){if(typeof k!="function")throw new k0(a);return function(){var B=arguments;switch(B.length){case 0:return!k.call(this);case 1:return!k.call(this,B[0]);case 2:return!k.call(this,B[0],B[1]);case 3:return!k.call(this,B[0],B[1],B[2])}return!k.apply(this,B)}}function zRt(k){return TTe(2,k)}var TRt=Wd(function(k,B){B=B.length==1&&to(B[0])?As(B[0],D0(Kr())):As(hc(B,1),D0(Kr()));var K=B.length;return co(function(ge){for(var Se=-1,Be=Nc(ge.length,K);++Se<Be;)ge[Se]=B[Se].call(this,ge[Se]);return _c(k,this,ge)})}),xne=co(function(k,B){var K=Xm(B,Ol(xne));return Pp(k,w,n,B,K)}),DTe=co(function(k,B){var K=Xm(B,Ol(DTe));return Pp(k,S,n,B,K)}),ERt=O1(function(k,B){return Pp(k,z,n,n,n,B)});function RRt(k,B){if(typeof k!="function")throw new k0(a);return B=B===n?B:vo(B),co(k,B)}function IRt(k,B){if(typeof k!="function")throw new k0(a);return B=B==null?0:Vl(vo(B),0),co(function(K){var ge=K[B],Se=Mg(K,0,B);return ge&&$m(Se,ge),_c(k,this,Se)})}function PRt(k,B,K){var ge=!0,Se=!0;if(typeof k!="function")throw new k0(a);return zl(K)&&(ge="leading"in K?!!K.leading:ge,Se="trailing"in K?!!K.trailing:Se),PTe(k,B,{leading:ge,maxWait:B,trailing:Se})}function DRt(k){return zTe(k,1)}function kRt(k,B){return xne(gL(B),k)}function LRt(){if(!arguments.length)return[];var k=arguments[0];return to(k)?k:[k]}function _Rt(k){return pc(k,h)}function NRt(k,B){return B=typeof B=="function"?B:n,pc(k,h,B)}function FRt(k){return pc(k,d|h)}function WRt(k,B){return B=typeof B=="function"?B:n,pc(k,d|h,B)}function qRt(k,B){return B==null||iL(k,B,Bu(B))}function Ag(k,B){return k===B||k!==k&&B!==B}var BRt=OS(x2),jRt=OS(function(k,B){return k>=B}),FS=Qs((function(){return arguments})())?Qs:function(k){return $l(k)&&ma.call(k,"callee")&&!Yk.call(k,"callee")},to=Wt.isArray,HRt=Gw?D0(Gw):_T;function R1(k){return k!=null&&DH(k.length)&&!k2(k)}function mc(k){return $l(k)&&R1(k)}function VRt(k){return k===!0||k===!1||$l(k)&&Fs(k)==pe}var ZM=Yj||Dne,GRt=Nk?D0(Nk):vg;function $Rt(k){return $l(k)&&k.nodeType===1&&!UL(k)}function URt(k){if(k==null)return!0;if(R1(k)&&(to(k)||typeof k=="string"||typeof k.splice=="function"||ZM(k)||cE(k)||FS(k)))return!k.length;var B=qc(k);if(B==le||B==ie)return!k.size;if(P2(k))return!mS(k).length;for(var K in k)if(ma.call(k,K))return!1;return!0}function XRt(k,B){return A1(k,B)}function YRt(k,B,K){K=typeof K=="function"?K:n;var ge=K?K(k,B):n;return ge===n?A1(k,B,n,K):!!ge}function wne(k){if(!$l(k))return!1;var B=Fs(k);return B==oe||B==ce||typeof k.message=="string"&&typeof k.name=="string"&&!UL(k)}function KRt(k){return typeof k=="number"&&Kj(k)}function k2(k){if(!zl(k))return!1;var B=Fs(k);return B==ae||B==ne||B==se||B==Oe}function kTe(k){return typeof k=="number"&&k==vo(k)}function DH(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=j}function zl(k){var B=typeof k;return k!=null&&(B=="object"||B=="function")}function $l(k){return k!=null&&typeof k=="object"}var LTe=$w?D0($w):aH;function QRt(k,B){return k===B||NT(k,B,fc(B))}function ZRt(k,B,K){return K=typeof K=="function"?K:n,NT(k,B,fc(B),K)}function JRt(k){return _Te(k)&&k!=+k}function eIt(k){if(ES(k))throw new Fi(o);return FT(k)}function tIt(k){return k===null}function nIt(k){return k==null}function _Te(k){return typeof k=="number"||$l(k)&&Fs(k)==he}function UL(k){if(!$l(k)||Fs(k)!=me)return!1;var B=oS(k);if(B===null)return!0;var K=ma.call(B,"constructor")&&B.constructor;return typeof K=="function"&&K instanceof K&&cg.call(K)==Uj}var Sne=Uw?D0(Uw):sH;function rIt(k){return kTe(k)&&k>=-j&&k<=j}var NTe=Fk?D0(Fk):WT;function kH(k){return typeof k=="string"||!to(k)&&$l(k)&&Fs(k)==ue}function Dp(k){return typeof k=="symbol"||$l(k)&&Fs(k)==Ae}var cE=_d?D0(_d):sL;function iIt(k){return k===n}function oIt(k){return $l(k)&&qc(k)==Ee}function aIt(k){return $l(k)&&Fs(k)==Ge}var sIt=OS(Nd),lIt=OS(function(k,B){return k<=B});function FTe(k){if(!k)return[];if(R1(k))return kH(k)?Tp(k):ld(k);if(dg&&k[dg])return Wj(k[dg]());var B=qc(k),K=B==le?Um:B==ie?wT:uE;return K(k)}function L2(k){if(!k)return k===0?k:0;if(k=Ph(k),k===H||k===-H){var B=k<0?-1:1;return B*G}return k===k?k:0}function vo(k){var B=L2(k),K=B%1;return B===B?K?B-K:B:0}function WTe(k){return k?rv(vo(k),0,$):0}function Ph(k){if(typeof k=="number")return k;if(Dp(k))return q;if(zl(k)){var B=typeof k.valueOf=="function"?k.valueOf():k;k=zl(B)?B+"":B}if(typeof k!="string")return k===0?k:+k;k=Dj(k);var K=di.test(k);return K||It.test(k)?Bte(k.slice(2),K?2:8):Ki.test(k)?q:+k}function qTe(k){return Ip(k,I1(k))}function cIt(k){return k?rv(vo(k),-j,j):k===0?k:0}function $a(k){return k==null?"":sd(k)}var uIt=qd(function(k,B){if(P2(B)||R1(B)){Ip(B,Bu(B),k);return}for(var K in B)ma.call(B,K)&&y2(k,K,B[K])}),BTe=qd(function(k,B){Ip(B,I1(B),k)}),LH=qd(function(k,B,K,ge){Ip(B,I1(B),k,ge)}),dIt=qd(function(k,B,K,ge){Ip(B,Bu(B),k,ge)}),pIt=O1(pS);function hIt(k,B){var K=dc(k);return B==null?K:M2(K,B)}var fIt=co(function(k,B){k=ns(k);var K=-1,ge=B.length,Se=ge>2?B[2]:n;for(Se&&gc(B[0],B[1],Se)&&(ge=1);++K<ge;)for(var Be=B[K],ot=I1(Be),ht=-1,At=ot.length;++ht<At;){var sn=ot[ht],ln=k[sn];(ln===n||Ag(ln,Ym[sn])&&!ma.call(k,sn))&&(k[sn]=Be[sn])}return k}),gIt=co(function(k){return k.push(n,EL),_c(jTe,n,k)});function mIt(k,B){return Ej(k,Kr(B,3),N0)}function vIt(k,B){return Ej(k,Kr(B,3),LT)}function bIt(k,B){return k==null?k:jM(k,Kr(B,3),I1)}function yIt(k,B){return k==null?k:HM(k,Kr(B,3),I1)}function MIt(k,B){return k&&N0(k,Kr(B,3))}function CIt(k,B){return k&&LT(k,Kr(B,3))}function xIt(k){return k==null?[]:C2(k,Bu(k))}function wIt(k){return k==null?[]:C2(k,I1(k))}function Ane(k,B,K){var ge=k==null?n:ov(k,B);return ge===n?K:ge}function SIt(k,B){return k!=null&&eE(k,B,gS)}function One(k,B){return k!=null&&eE(k,B,w2)}var AIt=AL(function(k,B,K){B!=null&&typeof B.toString!="function"&&(B=nS.call(B)),k[B]=K},Tne(P1)),OIt=AL(function(k,B,K){B!=null&&typeof B.toString!="function"&&(B=nS.call(B)),ma.call(k,B)?k[B].push(K):k[B]=[K]},Kr),zIt=co(S2);function Bu(k){return R1(k)?w1(k):mS(k)}function I1(k){return R1(k)?w1(k,!0):vS(k)}function TIt(k,B){var K={};return B=Kr(B,3),N0(k,function(ge,Se,Be){Wu(K,B(ge,Se,Be),ge)}),K}function EIt(k,B){var K={};return B=Kr(B,3),N0(k,function(ge,Se,Be){Wu(K,Se,B(ge,Se,Be))}),K}var RIt=qd(function(k,B,K){Gl(k,B,K)}),jTe=qd(function(k,B,K,ge){Gl(k,B,K,ge)}),IIt=O1(function(k,B){var K={};if(k==null)return K;var ge=!1;B=As(B,function(Be){return Be=Wc(Be,k),ge||(ge=Be.length>1),Be}),Ip(k,yi(k),K),ge&&(K=pc(K,d|p|h,RL));for(var Se=B.length;Se--;)GT(K,B[Se]);return K});function PIt(k,B){return HTe(k,PH(Kr(B)))}var DIt=O1(function(k,B){return k==null?{}:lL(k,B)});function HTe(k,B){if(k==null)return{};var K=As(yi(k),function(ge){return[ge]});return B=Kr(B),BT(k,K,function(ge,Se){return B(ge,Se[0])})}function kIt(k,B,K){B=Wc(B,k);var ge=-1,Se=B.length;for(Se||(Se=1,k=n);++ge<Se;){var Be=k==null?n:k[z1(B[ge])];Be===n&&(ge=Se,Be=K),k=k2(Be)?Be.call(k):Be}return k}function LIt(k,B,K){return k==null?k:sv(k,B,K)}function _It(k,B,K,ge){return ge=typeof ge=="function"?ge:n,k==null?k:sv(k,B,K,ge)}var VTe=TL(Bu),GTe=TL(I1);function NIt(k,B,K){var ge=to(k),Se=ge||ZM(k)||cE(k);if(B=Kr(B,4),K==null){var Be=k&&k.constructor;Se?K=ge?new Be:[]:zl(k)?K=k2(Be)?dc(oS(k)):{}:K={}}return(Se?Nu:N0)(k,function(ot,ht,At){return B(K,ot,ht,At)}),K}function FIt(k,B){return k==null?!0:GT(k,B)}function WIt(k,B,K){return k==null?k:uH(k,B,gL(K))}function qIt(k,B,K,ge){return ge=typeof ge=="function"?ge:n,k==null?k:uH(k,B,gL(K),ge)}function uE(k){return k==null?[]:Hk(k,Bu(k))}function BIt(k){return k==null?[]:Hk(k,I1(k))}function jIt(k,B,K){return K===n&&(K=B,B=n),K!==n&&(K=Ph(K),K=K===K?K:0),B!==n&&(B=Ph(B),B=B===B?B:0),rv(Ph(k),B,K)}function HIt(k,B,K){return B=L2(B),K===n?(K=B,B=0):K=L2(K),k=Ph(k),aL(k,B,K)}function VIt(k,B,K){if(K&&typeof K!="boolean"&&gc(k,B,K)&&(B=K=n),K===n&&(typeof B=="boolean"?(K=B,B=n):typeof k=="boolean"&&(K=k,k=n)),k===n&&B===n?(k=0,B=1):(k=L2(k),B===n?(B=k,k=0):B=L2(B)),k>B){var ge=k;k=B,B=ge}if(K||k%1||B%1){var Se=hg();return Nc(k+Se*(B-k+qte("1e-"+((Se+"").length-1))),B)}return z2(k,B)}var GIt=zh(function(k,B,K){return B=B.toLowerCase(),k+(K?$Te(B):B)});function $Te(k){return zne($a(k).toLowerCase())}function UTe(k){return k=$a(k),k&&k.replace(jr,Qw).replace(us,"")}function $It(k,B,K){k=$a(k),B=sd(B);var ge=k.length;K=K===n?ge:rv(vo(K),0,ge);var Se=K;return K-=B.length,K>=0&&k.slice(K,Se)==B}function UIt(k){return k=$a(k),k&&Br.test(k)?k.replace(jn,Kte):k}function XIt(k){return k=$a(k),k&&ft.test(k)?k.replace(Je,"\\$&"):k}var YIt=zh(function(k,B,K){return k+(K?"-":"")+B.toLowerCase()}),KIt=zh(function(k,B,K){return k+(K?" ":"")+B.toLowerCase()}),QIt=SL("toLowerCase");function ZIt(k,B,K){k=$a(k),B=vo(B);var ge=B?Mh(k):0;if(!B||ge>=B)return k;var Se=(B-ge)/2;return AS(sS(Se),K)+k+AS(PM(Se),K)}function JIt(k,B,K){k=$a(k),B=vo(B);var ge=B?Mh(k):0;return B&&ge<B?k+AS(B-ge,K):k}function ePt(k,B,K){k=$a(k),B=vo(B);var ge=B?Mh(k):0;return B&&ge<B?AS(B-ge,K)+k:k}function tPt(k,B,K){return K||B==null?B=0:B&&(B=+B),TT($a(k).replace(Tt,""),B||0)}function nPt(k,B,K){return(K?gc(k,B,K):B===n)?B=1:B=vo(B),jT($a(k),B)}function rPt(){var k=arguments,B=$a(k[0]);return k.length<3?B:B.replace(k[1],k[2])}var iPt=zh(function(k,B,K){return k+(K?"_":"")+B.toLowerCase()});function oPt(k,B,K){return K&&typeof K!="number"&&gc(k,B,K)&&(B=K=n),K=K===n?$:K>>>0,K?(k=$a(k),k&&(typeof B=="string"||B!=null&&!Sne(B))&&(B=sd(B),!B&&f2(k))?Mg(Tp(k),0,K):k.split(B,K)):[]}var aPt=zh(function(k,B,K){return k+(K?" ":"")+zne(B)});function sPt(k,B,K){return k=$a(k),K=K==null?0:rv(vo(K),0,k.length),B=sd(B),k.slice(K,K+B.length)==B}function lPt(k,B,K){var ge=ke.templateSettings;K&&gc(k,B,K)&&(B=n),k=$a(k),B=LH({},B,ge,JT);var Se=LH({},B.imports,ge.imports,JT),Be=Bu(Se),ot=Hk(Se,Be),ht,At,sn=0,ln=B.interpolate||Jr,mn="__p += '",lr=m2((B.escape||Jr).source+"|"+ln.source+"|"+(ln===He?Go:Jr).source+"|"+(B.evaluate||Jr).source+"|$","g"),Ur="//# sourceURL="+(ma.call(B,"sourceURL")?(B.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mT+"]")+`
`;k.replace(lr,function(Ci,Wo,ta,kp,W0,Lp){return ta||(ta=kp),mn+=k.slice(sn,Lp).replace(Ca,_j),Wo&&(ht=!0,mn+=`' +
__e(`+Wo+`) +
'`),W0&&(At=!0,mn+=`';
`+W0+`;
__p += '`),ta&&(mn+=`' +
((__t = (`+ta+`)) == null ? '' : __t) +
'`),sn=Lp+Ci.length,Ci}),mn+=`';
`;var Mi=ma.call(B,"variable")&&B.variable;if(!Mi)mn=`with (obj) {
`+mn+`
}
`;else if(dr.test(Mi))throw new Fi(s);mn=(At?mn.replace(Ft,""):mn).replace(Pt,"$1").replace(Qn,"$1;"),mn="function("+(Mi||"obj")+`) {
`+(Mi?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(ht?", __e = _.escape":"")+(At?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+mn+`return __p
}`;var xo=YTe(function(){return ga(Be,Ur+"return "+mn).apply(n,ot)});if(xo.source=mn,wne(xo))throw xo;return xo}function cPt(k){return $a(k).toLowerCase()}function uPt(k){return $a(k).toUpperCase()}function dPt(k,B,K){if(k=$a(k),k&&(K||B===n))return Dj(k);if(!k||!(B=sd(B)))return k;var ge=Tp(k),Se=Tp(B),Be=kj(ge,Se),ot=Lj(ge,Se)+1;return Mg(ge,Be,ot).join("")}function pPt(k,B,K){if(k=$a(k),k&&(K||B===n))return k.slice(0,Jw(k)+1);if(!k||!(B=sd(B)))return k;var ge=Tp(k),Se=Lj(ge,Tp(B))+1;return Mg(ge,0,Se).join("")}function hPt(k,B,K){if(k=$a(k),k&&(K||B===n))return k.replace(Tt,"");if(!k||!(B=sd(B)))return k;var ge=Tp(k),Se=kj(ge,Tp(B));return Mg(ge,Se).join("")}function fPt(k,B){var K=T,ge=I;if(zl(B)){var Se="separator"in B?B.separator:Se;K="length"in B?vo(B.length):K,ge="omission"in B?sd(B.omission):ge}k=$a(k);var Be=k.length;if(f2(k)){var ot=Tp(k);Be=ot.length}if(K>=Be)return k;var ht=K-Mh(ge);if(ht<1)return ge;var At=ot?Mg(ot,0,ht).join(""):k.slice(0,ht);if(Se===n)return At+ge;if(ot&&(ht+=At.length-ht),Sne(Se)){if(k.slice(ht).search(Se)){var sn,ln=At;for(Se.global||(Se=m2(Se.source,$a($o.exec(Se))+"g")),Se.lastIndex=0;sn=Se.exec(ln);)var mn=sn.index;At=At.slice(0,mn===n?ht:mn)}}else if(k.indexOf(sd(Se),ht)!=ht){var lr=At.lastIndexOf(Se);lr>-1&&(At=At.slice(0,lr))}return At+ge}function gPt(k){return k=$a(k),k&&Zn.test(k)?k.replace(ir,Qte):k}var mPt=zh(function(k,B,K){return k+(K?" ":"")+B.toUpperCase()}),zne=SL("toUpperCase");function XTe(k,B,K){return k=$a(k),B=K?n:B,B===n?Fj(k)?$k(k):$te(k):k.match(B)||[]}var YTe=co(function(k,B){try{return _c(k,n,B)}catch(K){return wne(K)?K:new Fi(K)}}),vPt=O1(function(k,B){return Nu(B,function(K){K=z1(K),Wu(k,K,Cne(k[K],k))}),k});function bPt(k){var B=k==null?0:k.length,K=Kr();return k=B?As(k,function(ge){if(typeof ge[1]!="function")throw new k0(a);return[K(ge[0]),ge[1]]}):[],co(function(ge){for(var Se=-1;++Se<B;){var Be=k[Se];if(_c(Be[0],this,ge))return _c(Be[1],this,ge)}})}function yPt(k){return iv(pc(k,d))}function Tne(k){return function(){return k}}function MPt(k,B){return k==null||k!==k?B:k}var CPt=KT(),xPt=KT(!0);function P1(k){return k}function Ene(k){return A2(typeof k=="function"?k:pc(k,d))}function wPt(k){return cl(pc(k,d))}function SPt(k,B){return lu(k,pc(B,d))}var APt=co(function(k,B){return function(K){return S2(K,k,B)}}),OPt=co(function(k,B){return function(K){return S2(k,K,B)}});function Rne(k,B,K){var ge=Bu(B),Se=C2(B,ge);K==null&&!(zl(B)&&(Se.length||!ge.length))&&(K=B,B=k,k=this,Se=C2(B,Bu(B)));var Be=!(zl(K)&&"chain"in K)||!!K.chain,ot=k2(k);return Nu(Se,function(ht){var At=B[ht];k[ht]=At,ot&&(k.prototype[ht]=function(){var sn=this.__chain__;if(Be||sn){var ln=k(this.__wrapped__),mn=ln.__actions__=ld(this.__actions__);return mn.push({func:At,args:arguments,thisArg:k}),ln.__chain__=sn,ln}return At.apply(k,$m([this.value()],arguments))})}),k}function zPt(){return su._===this&&(su._=Uk),this}function Ine(){}function TPt(k){return k=vo(k),co(function(B){return $M(B,k)})}var EPt=OL(As),RPt=OL(MT),IPt=OL(Xw);function KTe(k){return I2(k)?Bk(z1(k)):O2(k)}function PPt(k){return function(B){return k==null?n:ov(k,B)}}var DPt=mH(),kPt=mH(!0);function Pne(){return[]}function Dne(){return!1}function LPt(){return{}}function _Pt(){return""}function NPt(){return!0}function FPt(k,B){if(k=vo(k),k<1||k>j)return[];var K=$,ge=Nc(k,$);B=Kr(B),k-=$;for(var Se=xT(ge,B);++K<k;)B(K);return Se}function WPt(k){return to(k)?As(k,z1):Dp(k)?[k]:ld(kS($a(k)))}function qPt(k){var B=++tS;return $a(k)+B}var BPt=SS(function(k,B){return k+B},0),jPt=ZT("ceil"),HPt=SS(function(k,B){return k/B},1),VPt=ZT("floor");function GPt(k){return k&&k.length?fS(k,P1,x2):n}function $Pt(k,B){return k&&k.length?fS(k,Kr(B,2),x2):n}function UPt(k){return Ij(k,P1)}function XPt(k,B){return Ij(k,Kr(B,2))}function YPt(k){return k&&k.length?fS(k,P1,Nd):n}function KPt(k,B){return k&&k.length?fS(k,Kr(B,2),Nd):n}var QPt=SS(function(k,B){return k*B},1),ZPt=ZT("round"),JPt=SS(function(k,B){return k-B},0);function eDt(k){return k&&k.length?jk(k,P1):0}function tDt(k,B){return k&&k.length?jk(k,Kr(B,2)):0}return ke.after=wRt,ke.ary=zTe,ke.assign=uIt,ke.assignIn=BTe,ke.assignInWith=LH,ke.assignWith=dIt,ke.at=pIt,ke.before=TTe,ke.bind=Cne,ke.bindAll=vPt,ke.bindKey=ETe,ke.castArray=LRt,ke.chain=ki,ke.chunk=LS,ke.compact=lne,ke.concat=cne,ke.cond=bPt,ke.conforms=yPt,ke.constant=Tne,ke.countBy=eRt,ke.create=hIt,ke.curry=RTe,ke.curryRight=ITe,ke.debounce=PTe,ke.defaults=fIt,ke.defaultsDeep=gIt,ke.defer=SRt,ke.delay=ARt,ke.difference=MH,ke.differenceBy=CH,ke.differenceWith=D2,ke.drop=une,ke.dropRight=dne,ke.dropRightWhile=lv,ke.dropWhile=pne,ke.fill=xH,ke.filter=nRt,ke.flatMap=oRt,ke.flatMapDeep=aRt,ke.flatMapDepth=sRt,ke.flatten=Sg,ke.flattenDeep=hne,ke.flattenDepth=fne,ke.flip=ORt,ke.flow=CPt,ke.flowRight=xPt,ke.fromPairs=SH,ke.functions=xIt,ke.functionsIn=wIt,ke.groupBy=lRt,ke.initial=qL,ke.intersection=gne,ke.intersectionBy=cv,ke.intersectionWith=oE,ke.invert=AIt,ke.invertBy=OIt,ke.invokeMap=uRt,ke.iteratee=Ene,ke.keyBy=dRt,ke.keys=Bu,ke.keysIn=I1,ke.map=EH,ke.mapKeys=TIt,ke.mapValues=EIt,ke.matches=wPt,ke.matchesProperty=SPt,ke.memoize=IH,ke.merge=RIt,ke.mergeWith=jTe,ke.method=APt,ke.methodOf=OPt,ke.mixin=Rne,ke.negate=PH,ke.nthArg=TPt,ke.omit=IIt,ke.omitBy=PIt,ke.once=zRt,ke.orderBy=pRt,ke.over=EPt,ke.overArgs=TRt,ke.overEvery=RPt,ke.overSome=IPt,ke.partial=xne,ke.partialRight=DTe,ke.partition=hRt,ke.pick=DIt,ke.pickBy=HTe,ke.property=KTe,ke.propertyOf=PPt,ke.pull=mne,ke.pullAll=OH,ke.pullAllBy=aE,ke.pullAllWith=HL,ke.pullAt=zH,ke.range=DPt,ke.rangeRight=kPt,ke.rearg=ERt,ke.reject=mRt,ke.remove=VL,ke.rest=RRt,ke.reverse=GL,ke.sampleSize=bRt,ke.set=LIt,ke.setWith=_It,ke.shuffle=yRt,ke.slice=$L,ke.sortBy=xRt,ke.sortedUniq=yne,ke.sortedUniqBy=lE,ke.split=oPt,ke.spread=IRt,ke.tail=R,ke.take=_,ke.takeRight=V,ke.takeRightWhile=J,ke.takeWhile=fe,ke.tap=Rr,ke.throttle=PRt,ke.thru=Oi,ke.toArray=FTe,ke.toPairs=VTe,ke.toPairsIn=GTe,ke.toPath=WPt,ke.toPlainObject=qTe,ke.transform=NIt,ke.unary=DRt,ke.union=xe,ke.unionBy=Pe,ke.unionWith=$e,ke.uniq=pt,ke.uniqBy=Bt,ke.uniqWith=gr,ke.unset=FIt,ke.unzip=Ai,ke.unzipWith=gn,ke.update=WIt,ke.updateWith=qIt,ke.values=uE,ke.valuesIn=BIt,ke.without=Hr,ke.words=XTe,ke.wrap=kRt,ke.xor=Ti,ke.xorBy=vi,ke.xorWith=Et,ke.zip=vt,ke.zipObject=zt,ke.zipObjectDeep=an,ke.zipWith=cn,ke.entries=VTe,ke.entriesIn=GTe,ke.extend=BTe,ke.extendWith=LH,Rne(ke,ke),ke.add=BPt,ke.attempt=YTe,ke.camelCase=GIt,ke.capitalize=$Te,ke.ceil=jPt,ke.clamp=jIt,ke.clone=_Rt,ke.cloneDeep=FRt,ke.cloneDeepWith=WRt,ke.cloneWith=NRt,ke.conformsTo=qRt,ke.deburr=UTe,ke.defaultTo=MPt,ke.divide=HPt,ke.endsWith=$It,ke.eq=Ag,ke.escape=UIt,ke.escapeRegExp=XIt,ke.every=tRt,ke.find=rRt,ke.findIndex=wH,ke.findKey=mIt,ke.findLast=iRt,ke.findLastIndex=WL,ke.findLastKey=vIt,ke.floor=VPt,ke.forEach=ATe,ke.forEachRight=OTe,ke.forIn=bIt,ke.forInRight=yIt,ke.forOwn=MIt,ke.forOwnRight=CIt,ke.get=Ane,ke.gt=BRt,ke.gte=jRt,ke.has=SIt,ke.hasIn=One,ke.head=AH,ke.identity=P1,ke.includes=cRt,ke.indexOf=E1,ke.inRange=HIt,ke.invoke=zIt,ke.isArguments=FS,ke.isArray=to,ke.isArrayBuffer=HRt,ke.isArrayLike=R1,ke.isArrayLikeObject=mc,ke.isBoolean=VRt,ke.isBuffer=ZM,ke.isDate=GRt,ke.isElement=$Rt,ke.isEmpty=URt,ke.isEqual=XRt,ke.isEqualWith=YRt,ke.isError=wne,ke.isFinite=KRt,ke.isFunction=k2,ke.isInteger=kTe,ke.isLength=DH,ke.isMap=LTe,ke.isMatch=QRt,ke.isMatchWith=ZRt,ke.isNaN=JRt,ke.isNative=eIt,ke.isNil=nIt,ke.isNull=tIt,ke.isNumber=_Te,ke.isObject=zl,ke.isObjectLike=$l,ke.isPlainObject=UL,ke.isRegExp=Sne,ke.isSafeInteger=rIt,ke.isSet=NTe,ke.isString=kH,ke.isSymbol=Dp,ke.isTypedArray=cE,ke.isUndefined=iIt,ke.isWeakMap=oIt,ke.isWeakSet=aIt,ke.join=QM,ke.kebabCase=YIt,ke.last=jd,ke.lastIndexOf=BL,ke.lowerCase=KIt,ke.lowerFirst=QIt,ke.lt=sIt,ke.lte=lIt,ke.max=GPt,ke.maxBy=$Pt,ke.mean=UPt,ke.meanBy=XPt,ke.min=YPt,ke.minBy=KPt,ke.stubArray=Pne,ke.stubFalse=Dne,ke.stubObject=LPt,ke.stubString=_Pt,ke.stubTrue=NPt,ke.multiply=QPt,ke.nth=jL,ke.noConflict=zPt,ke.noop=Ine,ke.now=RH,ke.pad=ZIt,ke.padEnd=JIt,ke.padStart=ePt,ke.parseInt=tPt,ke.random=VIt,ke.reduce=fRt,ke.reduceRight=gRt,ke.repeat=nPt,ke.replace=rPt,ke.result=kIt,ke.round=ZPt,ke.runInContext=wt,ke.sample=vRt,ke.size=MRt,ke.snakeCase=iPt,ke.some=CRt,ke.sortedIndex=_S,ke.sortedIndexBy=vne,ke.sortedIndexOf=sE,ke.sortedLastIndex=TH,ke.sortedLastIndexBy=bne,ke.sortedLastIndexOf=NS,ke.startCase=aPt,ke.startsWith=sPt,ke.subtract=JPt,ke.sum=eDt,ke.sumBy=tDt,ke.template=lPt,ke.times=FPt,ke.toFinite=L2,ke.toInteger=vo,ke.toLength=WTe,ke.toLower=cPt,ke.toNumber=Ph,ke.toSafeInteger=cIt,ke.toString=$a,ke.toUpper=uPt,ke.trim=dPt,ke.trimEnd=pPt,ke.trimStart=hPt,ke.truncate=fPt,ke.unescape=gPt,ke.uniqueId=qPt,ke.upperCase=mPt,ke.upperFirst=zne,ke.each=ATe,ke.eachRight=OTe,ke.first=AH,Rne(ke,(function(){var k={};return N0(ke,function(B,K){ma.call(ke.prototype,K)||(k[K]=B)}),k})(),{chain:!1}),ke.VERSION=r,Nu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(k){ke[k].placeholder=ke}),Nu(["drop","take"],function(k,B){Oo.prototype[k]=function(K){K=K===n?1:Vl(vo(K),0);var ge=this.__filtered__&&!B?new Oo(this):this.clone();return ge.__filtered__?ge.__takeCount__=Nc(K,ge.__takeCount__):ge.__views__.push({size:Nc(K,$),type:k+(ge.__dir__<0?"Right":"")}),ge},Oo.prototype[k+"Right"]=function(K){return this.reverse()[k](K).reverse()}}),Nu(["filter","map","takeWhile"],function(k,B){var K=B+1,ge=K==F||K==W;Oo.prototype[k]=function(Se){var Be=this.clone();return Be.__iteratees__.push({iteratee:Kr(Se,3),type:K}),Be.__filtered__=Be.__filtered__||ge,Be}}),Nu(["head","last"],function(k,B){var K="take"+(B?"Right":"");Oo.prototype[k]=function(){return this[K](1).value()[0]}}),Nu(["initial","tail"],function(k,B){var K="drop"+(B?"":"Right");Oo.prototype[k]=function(){return this.__filtered__?new Oo(this):this[K](1)}}),Oo.prototype.compact=function(){return this.filter(P1)},Oo.prototype.find=function(k){return this.filter(k).head()},Oo.prototype.findLast=function(k){return this.reverse().find(k)},Oo.prototype.invokeMap=co(function(k,B){return typeof k=="function"?new Oo(this):this.map(function(K){return S2(K,k,B)})}),Oo.prototype.reject=function(k){return this.filter(PH(Kr(k)))},Oo.prototype.slice=function(k,B){k=vo(k);var K=this;return K.__filtered__&&(k>0||B<0)?new Oo(K):(k<0?K=K.takeRight(-k):k&&(K=K.drop(k)),B!==n&&(B=vo(B),K=B<0?K.dropRight(-B):K.take(B-k)),K)},Oo.prototype.takeRightWhile=function(k){return this.reverse().takeWhile(k).reverse()},Oo.prototype.toArray=function(){return this.take($)},N0(Oo.prototype,function(k,B){var K=/^(?:filter|find|map|reject)|While$/.test(B),ge=/^(?:head|last)$/.test(B),Se=ke[ge?"take"+(B=="last"?"Right":""):B],Be=ge||/^find/.test(B);Se&&(ke.prototype[B]=function(){var ot=this.__wrapped__,ht=ge?[1]:arguments,At=ot instanceof Oo,sn=ht[0],ln=At||to(ot),mn=function(Wo){var ta=Se.apply(ke,$m([Wo],ht));return ge&&lr?ta[0]:ta};ln&&K&&typeof sn=="function"&&sn.length!=1&&(At=ln=!1);var lr=this.__chain__,Ur=!!this.__actions__.length,Mi=Be&&!lr,xo=At&&!Ur;if(!Be&&ln){ot=xo?ot:new Oo(this);var Ci=k.apply(ot,ht);return Ci.__actions__.push({func:Oi,args:[mn],thisArg:n}),new L0(Ci,lr)}return Mi&&xo?k.apply(this,ht):(Ci=this.thru(mn),Mi?ge?Ci.value()[0]:Ci.value():Ci)})}),Nu(["pop","push","shift","sort","splice","unshift"],function(k){var B=eS[k],K=/^(?:push|sort|unshift)$/.test(k)?"tap":"thru",ge=/^(?:pop|shift)$/.test(k);ke.prototype[k]=function(){var Se=arguments;if(ge&&!this.__chain__){var Be=this.value();return B.apply(to(Be)?Be:[],Se)}return this[K](function(ot){return B.apply(to(ot)?ot:[],Se)})}}),N0(Oo.prototype,function(k,B){var K=ke[B];if(K){var ge=K.name+"";ma.call(Zm,ge)||(Zm[ge]=[]),Zm[ge].push({name:B,func:K})}}),Zm[QT(n,y).name]=[{name:"wrapper",func:n}],Oo.prototype.clone=RT,Oo.prototype.reverse=Qj,Oo.prototype.value=Jk,ke.prototype.at=Co,ke.prototype.chain=Qi,ke.prototype.commit=uv,ke.prototype.next=Mne,ke.prototype.plant=QEt,ke.prototype.reverse=ZEt,ke.prototype.toJSON=ke.prototype.valueOf=ke.prototype.value=JEt,ke.prototype.first=ke.prototype.head,dg&&(ke.prototype[dg]=KEt),ke}),g2=Vj();lg?((lg.exports=g2)._=g2,_k._=g2):su._=g2}).call(qIn)})(eN,eN.exports)),eN.exports}var w9=BIn(),z4={},fLe;function jIn(){if(fLe)return z4;fLe=1;var e=ri(),t=ii();Object.defineProperty(z4,"__esModule",{value:!0}),z4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");return z4.default=i,z4}var HIn=jIn();const Mo=qn(HIn);var T4={},gLe;function VIn(){if(gLe)return T4;gLe=1;var e=ri(),t=ii();Object.defineProperty(T4,"__esModule",{value:!0}),T4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");return T4.default=i,T4}var GIn=VIn();const No=qn(GIn);var E4={},mLe;function $In(){if(mLe)return E4;mLe=1;var e=ri(),t=ii();Object.defineProperty(E4,"__esModule",{value:!0}),E4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOutlined");return E4.default=i,E4}var UIn=$In();const Hut=qn(UIn);var R4={},vLe;function XIn(){if(vLe)return R4;vLe=1;var e=ri(),t=ii();Object.defineProperty(R4,"__esModule",{value:!0}),R4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"}),"PlaylistAdd");return R4.default=i,R4}var YIn=XIn();const Zo=qn(YIn);var rZ=(function(){function e(t){var n=t===void 0?{}:t,r=n.locale,i=n.instance,o=n.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=i||o||mt,this.locale=r}return e.prototype.parse=function(t,n){return t===""?null:this.moment(t,n,!0)},e.prototype.date=function(t){if(t===null)return null;var n=this.moment(t);return n.locale(this.locale),n},e.prototype.isValid=function(t){return this.moment(t).isValid()},e.prototype.isNull=function(t){return t===null},e.prototype.getDiff=function(t,n){return t.diff(n)},e.prototype.isAfter=function(t,n){return t.isAfter(n)},e.prototype.isBefore=function(t,n){return t.isBefore(n)},e.prototype.isAfterDay=function(t,n){return t.isAfter(n,"day")},e.prototype.isBeforeDay=function(t,n){return t.isBefore(n,"day")},e.prototype.isBeforeYear=function(t,n){return t.isBefore(n,"year")},e.prototype.isAfterYear=function(t,n){return t.isAfter(n,"year")},e.prototype.startOfDay=function(t){return t.clone().startOf("day")},e.prototype.endOfDay=function(t){return t.clone().endOf("day")},e.prototype.format=function(t,n){return t.locale(this.locale),t.format(n)},e.prototype.formatNumber=function(t){return t},e.prototype.getHours=function(t){return t.get("hours")},e.prototype.addDays=function(t,n){return n<0?t.clone().subtract(Math.abs(n),"days"):t.clone().add(n,"days")},e.prototype.setHours=function(t,n){return t.clone().hours(n)},e.prototype.getMinutes=function(t){return t.get("minutes")},e.prototype.setMinutes=function(t,n){return t.clone().minutes(n)},e.prototype.getSeconds=function(t){return t.get("seconds")},e.prototype.setSeconds=function(t,n){return t.clone().seconds(n)},e.prototype.getMonth=function(t){return t.get("month")},e.prototype.isSameDay=function(t,n){return t.isSame(n,"day")},e.prototype.isSameMonth=function(t,n){return t.isSame(n,"month")},e.prototype.isSameYear=function(t,n){return t.isSame(n,"year")},e.prototype.isSameHour=function(t,n){return t.isSame(n,"hour")},e.prototype.setMonth=function(t,n){return t.clone().month(n)},e.prototype.getMeridiemText=function(t){return t==="am"?"AM":"PM"},e.prototype.startOfMonth=function(t){return t.clone().startOf("month")},e.prototype.endOfMonth=function(t){return t.clone().endOf("month")},e.prototype.getNextMonth=function(t){return t.clone().add(1,"month")},e.prototype.getPreviousMonth=function(t){return t.clone().subtract(1,"month")},e.prototype.getMonthArray=function(t){for(var n=t.clone().startOf("year"),r=[n];r.length<12;){var i=r[r.length-1];r.push(this.getNextMonth(i))}return r},e.prototype.getYear=function(t){return t.get("year")},e.prototype.setYear=function(t,n){return t.clone().set("year",n)},e.prototype.mergeDateAndTime=function(t,n){return this.setMinutes(this.setHours(t,this.getHours(n)),this.getMinutes(n))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(t,n){return t===null&&n===null?!0:this.moment(t).isSame(n)},e.prototype.getWeekArray=function(t){for(var n=t.clone().startOf("month").startOf("week"),r=t.clone().endOf("month").endOf("week"),i=0,o=n,a=[];o.isBefore(r);){var s=Math.floor(i/7);a[s]=a[s]||[],a[s].push(o),o=o.clone().add(1,"day"),i+=1}return a},e.prototype.getYearRange=function(t,n){for(var r=this.moment(t).startOf("year"),i=this.moment(n).endOf("year"),o=[],a=r;a.isBefore(i);)o.push(a),a=a.clone().add(1,"year");return o},e.prototype.getCalendarHeaderText=function(t){return this.format(t,this.yearMonthFormat)},e.prototype.getYearText=function(t){return this.format(t,"YYYY")},e.prototype.getDatePickerHeaderText=function(t){return this.format(t,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(t){return this.format(t,"MMM D")},e.prototype.getMonthText=function(t){return this.format(t,"MMMM")},e.prototype.getDayText=function(t){return this.format(t,"D")},e.prototype.getHourText=function(t,n){return this.format(t,n?"hh":"HH")},e.prototype.getMinuteText=function(t){return this.format(t,"mm")},e.prototype.getSecondText=function(t){return this.format(t,"ss")},e})(),Vut=b.createContext(null),iZ=function(t){var n=t.utils,r=t.children,i=t.locale,o=t.libInstance,a=b.useMemo(function(){return new n({locale:i,instance:o})},[n,o,i]);return b.createElement(Vut.Provider,{value:a,children:r})},KIn=function(t){if(!t)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports.  Recommendation: use named imports from the module index.")};function wp(){var e=b.useContext(Vut);return KIn(e),e}function ly(e,t){return Array.isArray(t)?t.every(function(n){return e.indexOf(n)!==-1}):e.indexOf(t)!==-1}var uxe=310,Gut=325,QIn=305,ZIn=Rt(function(e){return{staticWrapperRoot:{overflow:"hidden",minWidth:uxe,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}}},{name:"MuiPickersStaticWrapper"}),JIn=function(t){var n=t.children,r=ZIn();return b.createElement("div",{className:r.staticWrapperRoot,children:n})},$ut=function(t){var n=t.children,r=t.classes,i=t.onAccept,o=t.onDismiss,a=t.onClear,s=t.onSetToday,l=t.okLabel,c=t.cancelLabel,u=t.clearLabel,d=t.todayLabel,p=t.clearable,h=t.showTodayButton;t.showTabs;var g=t.wider,m=fn(t,["children","classes","onAccept","onDismiss","onClear","onSetToday","okLabel","cancelLabel","clearLabel","todayLabel","clearable","showTodayButton","showTabs","wider"]);return b.createElement(Qu,Y({role:"dialog",onClose:o,classes:{paper:$t(r.dialogRoot,g&&r.dialogRootWider)}},m),b.createElement(ru,{children:n,className:r.dialog}),b.createElement(Td,{classes:{root:$t((p||h)&&r.withAdditionalAction)}},p&&b.createElement(Fe,{color:"primary",onClick:a},u),h&&b.createElement(Fe,{color:"primary",onClick:s},d),c&&b.createElement(Fe,{color:"primary",onClick:o},c),l&&b.createElement(Fe,{color:"primary",onClick:i},l)))};$ut.displayName="ModalDialog";var ePn=Mp({dialogRoot:{minWidth:uxe},dialogRootWider:{minWidth:Gut},dialog:{"&:first-child":{padding:0}},withAdditionalAction:{justifyContent:"flex-start","& > *:first-child":{marginRight:"auto"}}}),tPn=or(ePn,{name:"MuiPickersModal"})($ut),Uut=typeof window>"u"?b.useEffect:b.useLayoutEffect;function Xut(e,t){var n=t[e.key];n&&(n(),e.preventDefault())}function Yut(e,t){var n=b.useRef(t);n.current=t,Uut(function(){if(e){var r=function(o){Xut(o,n.current)};return window.addEventListener("keydown",r),function(){window.removeEventListener("keydown",r)}}},[e])}var Kut=function(t){var n=t.open,r=t.children,i=t.okLabel,o=t.cancelLabel,a=t.clearLabel,s=t.todayLabel,l=t.showTodayButton,c=t.clearable,u=t.DialogProps,d=t.showTabs,p=t.wider,h=t.InputComponent,g=t.DateInputProps,m=t.onClear,v=t.onAccept,y=t.onDismiss,M=t.onSetToday,C=fn(t,["open","children","okLabel","cancelLabel","clearLabel","todayLabel","showTodayButton","clearable","DialogProps","showTabs","wider","InputComponent","DateInputProps","onClear","onAccept","onDismiss","onSetToday"]);return Yut(n,{Enter:v}),b.createElement(b.Fragment,null,b.createElement(h,Y({},C,g)),b.createElement(tPn,Y({wider:p,showTabs:d,open:n,onClear:m,onAccept:v,onDismiss:y,onSetToday:M,clearLabel:a,todayLabel:s,okLabel:i,cancelLabel:o,clearable:c,showTodayButton:l,children:r},u)))};Kut.defaultProps={okLabel:"OK",cancelLabel:"Cancel",clearLabel:"Clear",todayLabel:"Today",clearable:!1,showTodayButton:!1};var nPn=function(t){var n=t.open;t.wider;var r=t.children,i=t.PopoverProps;t.onClear;var o=t.onDismiss;t.onSetToday;var a=t.onAccept;t.showTabs;var s=t.DateInputProps,l=t.InputComponent,c=fn(t,["open","wider","children","PopoverProps","onClear","onDismiss","onSetToday","onAccept","showTabs","DateInputProps","InputComponent"]),u=b.useRef();return Yut(n,{Enter:a}),b.createElement(b.Fragment,null,b.createElement(l,Y({},c,s,{inputRef:u})),b.createElement(S3,Y({open:n,onClose:o,anchorEl:u.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:r},i)))};function rPn(e){switch(e){case"inline":return nPn;case"static":return JIn;default:return Kut}}var dxe=b.createContext(null),iPn=function(t){var n=t.variant,r=fn(t,["variant"]),i=rPn(n);return b.createElement(dxe.Provider,{value:n||"dialog"},b.createElement(i,r))},oPn=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i._state=null,i._del=!1,i._handleChange=function(o){var a=i.state.value,s=o.target.value,l=o.target,c=s.length>a.length,u=i._del,d=a===i.props.format(s);i.setState({value:s,local:!0},function(){var p=l.selectionStart,h=i.props.refuse||/[^\d]+/g,g=s.substr(0,p).replace(h,"");if(i._state={input:l,before:g,op:c,di:u&&d,del:u},i.props.replace&&i.props.replace(a)&&c&&!d){for(var m=-1,v=0;v!==g.length;++v)m=Math.max(m,s.toLowerCase().indexOf(g[v].toLowerCase(),m+1));var y=s.substr(m+1).replace(h,"")[0];m=s.indexOf(y,m+1),s=""+s.substr(0,m)+s.substr(m+1)}var M=i.props.format(s);a===M?i.setState({value:s}):i.props.onChange(M)})},i._hKD=function(o){o.code==="Delete"&&(i._del=!0)},i._hKU=function(o){o.code==="Delete"&&(i._del=!1)},i.state={value:r.value,local:!0},i}t.getDerivedStateFromProps=function(i,o){return{value:o.local?o.value:i.value,local:!1}};var n=t.prototype;return n.render=function(){var i=this._handleChange,o=this.state.value,a=this.props.children;return a({value:o,onChange:i})},n.componentWillUnmount=function(){document.removeEventListener("keydown",this._hKD),document.removeEventListener("keyup",this._hKU)},n.componentDidMount=function(){document.addEventListener("keydown",this._hKD),document.addEventListener("keyup",this._hKU)},n.componentDidUpdate=function(){var i=this._state;if(i){for(var o=this.state.value,a=-1,s=0;s!==i.before.length;++s)a=Math.max(a,o.toLowerCase().indexOf(i.before[s].toLowerCase(),a+1));if(this.props.replace&&(i.op||i.del&&!i.di))for(;o[a+1]&&(this.props.refuse||/[^\d]+/).test(o[a+1]);)a+=1;i.input.selectionStart=i.input.selectionEnd=a+1+(i.di?1:0)}this._state=null},t})(b.Component),aPn=Rt(function(e){return{day:{width:36,height:36,fontSize:e.typography.caption.fontSize,margin:"0 2px",color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium,padding:0},hidden:{opacity:0,pointerEvents:"none"},current:{color:e.palette.primary.main,fontWeight:600},daySelected:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{backgroundColor:e.palette.primary.main}},dayDisabled:{pointerEvents:"none",color:e.palette.text.hint}}},{name:"MuiPickersDay"}),pxe=function(t){var n=t.children,r=t.disabled,i=t.hidden,o=t.current,a=t.selected,s=fn(t,["children","disabled","hidden","current","selected"]),l=aPn(),c=$t(l.day,i&&l.hidden,o&&l.current,a&&l.daySelected,r&&l.dayDisabled);return b.createElement(yn,Y({className:c,tabIndex:i||r?-1:0},s),b.createElement(bt,{variant:"body2",color:"inherit"},n))};pxe.displayName="Day";pxe.defaultProps={disabled:!1,hidden:!1,current:!1,selected:!1};var sPn=function(t){var n=t.date,r=t.utils,i=t.minDate,o=t.maxDate,a=t.disableFuture,s=t.disablePast,l=t.shouldDisableDate,c=r.startOfDay(r.date());s&&r.isBefore(i,c)&&(i=c),a&&r.isAfter(o,c)&&(o=c);var u=n,d=n;for(r.isBefore(n,i)&&(u=r.date(i),d=null),r.isAfter(n,o)&&(d&&(d=r.date(o)),u=null);u||d;){if(u&&r.isAfter(u,o)&&(u=null),d&&r.isBefore(d,i)&&(d=null),u){if(!l(u))return u;u=r.addDays(u,1)}if(d){if(!l(d))return d;d=r.addDays(d,-1)}}return r.date()},Qut=function(t){return t.length===1&&t[0]==="year"},Zut=function(t){return t.length===2&&ly(t,"month")&&ly(t,"year")},lPn=function(t,n){return Qut(t)?n.yearFormat:Zut(t)?n.yearMonthFormat:n.dateFormat},cPn=function(t){var n=t.children,r=t.value,i=t.disabled,o=t.onSelect,a=t.dayInCurrentMonth,s=fn(t,["children","value","disabled","onSelect","dayInCurrentMonth"]),l=b.useCallback(function(){return o(r)},[o,r]);return b.createElement("div",Y({role:"presentation",onClick:a&&!i?l:void 0,onKeyPress:a&&!i?l:void 0},s),n)},Jut=350,uPn=Rt(function(e){var t=e.transitions.create("transform",{duration:Jut,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{transitionContainer:{display:"block",position:"relative","& > *":{position:"absolute",top:0,right:0,left:0}},"slideEnter-left":{willChange:"transform",transform:"translate(100%)"},"slideEnter-right":{willChange:"transform",transform:"translate(-100%)"},slideEnterActive:{transform:"translate(0%)",transition:t},slideExit:{transform:"translate(0%)"},"slideExitActiveLeft-left":{willChange:"transform",transform:"translate(-200%)",transition:t},"slideExitActiveLeft-right":{willChange:"transform",transform:"translate(200%)",transition:t}}},{name:"MuiPickersSlideTransition"}),edt=function(t){var n=t.children,r=t.transKey,i=t.slideDirection,o=t.className,a=o===void 0?null:o,s=uPn(),l={exit:s.slideExit,enterActive:s.slideEnterActive,enter:s["slideEnter-"+i],exitActive:s["slideExitActiveLeft-"+i]};return b.createElement(x3,{className:$t(s.transitionContainer,a),childFactory:function(u){return b.cloneElement(u,{classNames:l})}},b.createElement(YK,{mountOnEnter:!0,unmountOnExit:!0,key:r+i,timeout:Jut,classNames:l,children:n}))},dPn=function(t){return E.createElement(Tz,t,E.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),E.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))},pPn=function(t){return E.createElement(Tz,t,E.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),E.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))},hPn=Rt(function(e){return{switchHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:e.spacing(.5),marginBottom:e.spacing(1)},transitionContainer:{width:"100%",overflow:"hidden",height:23},iconButton:{zIndex:1,backgroundColor:e.palette.background.paper},daysHeader:{display:"flex",justifyContent:"center",alignItems:"center",maxHeight:16},dayLabel:{width:36,margin:"0 2px",textAlign:"center",color:e.palette.text.hint}}},{name:"MuiPickersCalendarHeader"}),hxe=function(t){var n=t.currentMonth,r=t.onMonthChange,i=t.leftArrowIcon,o=t.rightArrowIcon,a=t.leftArrowButtonProps,s=t.rightArrowButtonProps,l=t.disablePrevMonth,c=t.disableNextMonth,u=t.slideDirection,d=wp(),p=hPn(),h=oc(),g=h.direction==="rtl",m=function(){return r(d.getNextMonth(n),"left")},v=function(){return r(d.getPreviousMonth(n),"right")};return b.createElement("div",null,b.createElement("div",{className:p.switchHeader},b.createElement(yn,Y({},a,{disabled:l,onClick:v,className:p.iconButton}),g?o:i),b.createElement(edt,{slideDirection:u,transKey:n.toString(),className:p.transitionContainer},b.createElement(bt,{align:"center",variant:"body1"},d.getCalendarHeaderText(n))),b.createElement(yn,Y({},s,{disabled:c,onClick:m,className:p.iconButton}),g?i:o)),b.createElement("div",{className:p.daysHeader},d.getWeekdays().map(function(y,M){return b.createElement(bt,{key:M,variant:"caption",className:p.dayLabel},y)})))};hxe.displayName="CalendarHeader";hxe.defaultProps={leftArrowIcon:b.createElement(dPn,null),rightArrowIcon:b.createElement(pPn,null),disablePrevMonth:!1,disableNextMonth:!1};var fPn=function(){return function(t){var n=function(i){var o=wp();return b.createElement(t,Y({utils:o},i))};return n.displayName="WithUtils(".concat(t.displayName||t.name,")"),n}},gPn=function(t){var n=t.onKeyDown;return b.useEffect(function(){return window.addEventListener("keydown",n),function(){window.removeEventListener("keydown",n)}},[n]),null},fxe=(function(e){Jo(t,e);function t(){var n,r;Eo(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=JK(this,(n=Rz(t)).call.apply(n,[this].concat(o))),r.state={slideDirection:"left",currentMonth:r.props.utils.startOfMonth(r.props.date),loadingQueue:0},r.pushToLoadingQueue=function(){var s=r.state.loadingQueue+1;r.setState({loadingQueue:s})},r.popFromLoadingQueue=function(){var s=r.state.loadingQueue;s=s<=0?0:s-1,r.setState({loadingQueue:s})},r.handleChangeMonth=function(s,l){if(r.setState({currentMonth:s,slideDirection:l}),r.props.onMonthChange){var c=r.props.onMonthChange(s);c&&(r.pushToLoadingQueue(),c.then(function(){r.popFromLoadingQueue()}))}},r.validateMinMaxDate=function(s){var l=r.props,c=l.minDate,u=l.maxDate,d=l.utils,p=l.disableFuture,h=l.disablePast,g=d.date();return!!(p&&d.isAfterDay(s,g)||h&&d.isBeforeDay(s,g)||c&&d.isBeforeDay(s,d.date(c))||u&&d.isAfterDay(s,d.date(u)))},r.shouldDisablePrevMonth=function(){var s=r.props,l=s.utils,c=s.disablePast,u=s.minDate,d=l.date(),p=l.startOfMonth(c&&l.isAfter(d,l.date(u))?d:l.date(u));return!l.isBefore(p,r.state.currentMonth)},r.shouldDisableNextMonth=function(){var s=r.props,l=s.utils,c=s.disableFuture,u=s.maxDate,d=l.date(),p=l.startOfMonth(c&&l.isBefore(d,l.date(u))?d:l.date(u));return!l.isAfter(p,r.state.currentMonth)},r.shouldDisableDate=function(s){var l=r.props.shouldDisableDate;return r.validateMinMaxDate(s)||!!(l&&l(s))},r.handleDaySelect=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=r.props,u=c.date,d=c.utils;r.props.onChange(d.mergeDateAndTime(s,u),l)},r.moveToDay=function(s){var l=r.props.utils;s&&!r.shouldDisableDate(s)&&(l.getMonth(s)!==l.getMonth(r.state.currentMonth)&&r.handleChangeMonth(l.startOfMonth(s),"left"),r.handleDaySelect(s,!1))},r.handleKeyDown=function(s){var l=r.props,c=l.theme,u=l.date,d=l.utils;Xut(s,{ArrowUp:function(){return r.moveToDay(d.addDays(u,-7))},ArrowDown:function(){return r.moveToDay(d.addDays(u,7))},ArrowLeft:function(){return r.moveToDay(d.addDays(u,c.direction==="ltr"?-1:1))},ArrowRight:function(){return r.moveToDay(d.addDays(u,c.direction==="ltr"?1:-1))}})},r.renderWeeks=function(){var s=r.props,l=s.utils,c=s.classes,u=l.getWeekArray(r.state.currentMonth);return u.map(function(d){return b.createElement("div",{key:"week-".concat(d[0].toString()),className:c.week},r.renderDays(d))})},r.renderDays=function(s){var l=r.props,c=l.date,u=l.renderDay,d=l.utils,p=d.date(),h=d.startOfDay(c),g=d.getMonth(r.state.currentMonth);return s.map(function(m){var v=r.shouldDisableDate(m),y=d.getMonth(m)===g,M=b.createElement(pxe,{disabled:v,current:d.isSameDay(m,p),hidden:!y,selected:d.isSameDay(h,m)},d.getDayText(m));return u&&(M=u(m,h,y,M)),b.createElement(cPn,{value:m,key:m.toString(),disabled:v,dayInCurrentMonth:y,onSelect:r.handleDaySelect},M)})},r}return so(t,[{key:"componentDidMount",value:function(){var r=this.props,i=r.date,o=r.minDate,a=r.maxDate,s=r.utils,l=r.disablePast,c=r.disableFuture;if(this.shouldDisableDate(i)){var u=sPn({date:i,utils:s,minDate:s.date(o),maxDate:s.date(a),disablePast:!!l,disableFuture:!!c,shouldDisableDate:this.shouldDisableDate});this.handleDaySelect(u,!1)}}},{key:"render",value:function(){var r=this.state,i=r.currentMonth,o=r.slideDirection,a=this.props,s=a.classes,l=a.allowKeyboardControl,c=a.leftArrowButtonProps,u=a.leftArrowIcon,d=a.rightArrowButtonProps,p=a.rightArrowIcon,h=a.loadingIndicator,g=h||b.createElement(Kt,null);return b.createElement(b.Fragment,null,l&&this.context!=="static"&&b.createElement(gPn,{onKeyDown:this.handleKeyDown}),b.createElement(hxe,{currentMonth:i,slideDirection:o,onMonthChange:this.handleChangeMonth,leftArrowIcon:u,leftArrowButtonProps:c,rightArrowIcon:p,rightArrowButtonProps:d,disablePrevMonth:this.shouldDisablePrevMonth(),disableNextMonth:this.shouldDisableNextMonth()}),b.createElement(edt,{slideDirection:o,transKey:i.toString(),className:s.transitionContainer},b.createElement(b.Fragment,null,this.state.loadingQueue>0&&b.createElement("div",{className:s.progressContainer},g)||b.createElement("div",null,this.renderWeeks()))))}}],[{key:"getDerivedStateFromProps",value:function(r,i){var o=r.utils,a=r.date;if(!o.isEqual(a,i.lastDate)){var s=o.getMonth(a),l=i.lastDate||a,c=o.getMonth(l);return{lastDate:a,currentMonth:r.utils.startOfMonth(a),slideDirection:s===c?i.slideDirection:o.isAfterDay(a,l)?"left":"right"}}return null}}]),t})(b.Component);fxe.contextType=dxe;fxe.defaultProps={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),disablePast:!1,disableFuture:!1,allowKeyboardControl:!0};var mPn=function(t){return{transitionContainer:{minHeight:216,marginTop:t.spacing(1.5)},progressContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},week:{display:"flex",justifyContent:"center"}}},tdt=or(mPn,{name:"MuiPickersCalendar",withTheme:!0})(fPn()(fxe)),Qfe;(function(e){e.HOURS="hours",e.MINUTES="minutes",e.SECONDS="seconds"})(Qfe||(Qfe={}));var J0=Qfe,ndt=(function(e){Jo(t,e);function t(){var n,r;Eo(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=JK(this,(n=Rz(t)).call.apply(n,[this].concat(o))),r.state={toAnimateTransform:!1,previousType:void 0},r.getAngleStyle=function(){var s=r.props,l=s.value,c=s.isInner,u=s.type,d=u===J0.HOURS?12:60,p=360/d*l;return u===J0.HOURS&&l>12&&(p-=360),{height:c?"26%":"40%",transform:"rotateZ(".concat(p,"deg)")}},r}return so(t,[{key:"render",value:function(){var r=this.props,i=r.classes,o=r.hasSelected;return b.createElement("div",{style:this.getAngleStyle(),className:$t(i.pointer,this.state.toAnimateTransform&&i.animateTransform)},b.createElement("div",{className:$t(i.thumb,o&&i.noPoint)}))}}]),t})(b.Component);ndt.getDerivedStateFromProps=function(e,t){return e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type}};var vPn=function(t){return Mp({pointer:{width:2,backgroundColor:t.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},animateTransform:{transition:t.transitions.create(["transform","height"])},thumb:{width:4,height:4,backgroundColor:t.palette.primary.contrastText,borderRadius:"100%",position:"absolute",top:-21,left:-15,border:"14px solid ".concat(t.palette.primary.main),boxSizing:"content-box"},noPoint:{backgroundColor:t.palette.primary.main}})},bPn=or(vPn,{name:"MuiPickersClockPointer"})(ndt),qW={x:260/2,y:260/2},rdt={x:qW.x,y:0},yPn=rdt.x-qW.x,MPn=rdt.y-qW.y,CPn=function(t){return t*57.29577951308232},idt=function(t,n,r){var i=n-qW.x,o=r-qW.y,a=Math.atan2(yPn,MPn)-Math.atan2(i,o),s=CPn(a);s=Math.round(s/t)*t,s%=360;var l=Math.floor(s/t)||0,c=Math.pow(i,2)+Math.pow(o,2),u=Math.sqrt(c);return{value:l,distance:u}},xPn=function(t,n,r){var i=idt(30,t,n),o=i.value,a=i.distance;return o=o||12,r?o%=12:a<90&&(o+=12,o%=24),o},wPn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=r*6,o=idt(i,t,n),a=o.value;return a=a*r%60,a},odt=function(t,n){return n.getHours(t)>=12?"pm":"am"},adt=function(t,n,r,i){if(r){var o=i.getHours(t)>=12?"pm":"am";if(o!==n){var a=n==="am"?i.getHours(t)-12:i.getHours(t)+12;return i.setHours(t,a)}}return t},sdt=(function(e){Jo(t,e);function t(){var n,r;Eo(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=JK(this,(n=Rz(t)).call.apply(n,[this].concat(o))),r.isMoving=!1,r.handleTouchMove=function(s){r.isMoving=!0,r.setTime(s)},r.handleTouchEnd=function(s){r.isMoving&&(r.setTime(s,!0),r.isMoving=!1)},r.handleMove=function(s){s.preventDefault(),s.stopPropagation();var l=typeof s.buttons>"u"?s.nativeEvent.which===1:s.buttons===1;l&&r.setTime(s.nativeEvent,!1)},r.handleMouseUp=function(s){r.isMoving&&(r.isMoving=!1),r.setTime(s.nativeEvent,!0)},r.hasSelected=function(){var s=r.props,l=s.type,c=s.value;return l===J0.HOURS?!0:c%5===0},r}return so(t,[{key:"setTime",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=r.offsetX,a=r.offsetY;if(typeof o>"u"){var s=r.target.getBoundingClientRect();o=r.changedTouches[0].clientX-s.left,a=r.changedTouches[0].clientY-s.top}var l=this.props.type===J0.SECONDS||this.props.type===J0.MINUTES?wPn(o,a,this.props.minutesStep):xPn(o,a,!!this.props.ampm);this.props.onChange(l,i)}},{key:"render",value:function(){var r=this.props,i=r.classes,o=r.value,a=r.children,s=r.type,l=r.ampm,c=!l&&s===J0.HOURS&&(o<1||o>12);return b.createElement("div",{className:i.container},b.createElement("div",{className:i.clock},b.createElement("div",{role:"menu",tabIndex:-1,className:i.squareMask,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMove}),b.createElement("div",{className:i.pin}),b.createElement(bPn,{type:s,value:o,isInner:c,hasSelected:this.hasSelected()}),a))}}]),t})(b.Component);sdt.defaultProps={ampm:!1,minutesStep:1};var SPn=function(t){return Mp({container:{display:"flex",justifyContent:"center",alignItems:"flex-end",margin:"".concat(t.spacing(2),"px 0 ").concat(t.spacing(1),"px")},clock:{backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:260,width:260,position:"relative",pointerEvents:"none"},squareMask:{width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:"none",touchActions:"none",userSelect:"none","&:active":{cursor:"move"}},pin:{width:6,height:6,borderRadius:"50%",backgroundColor:t.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})},APn=or(SPn,{name:"MuiPickersClock"})(sdt),OPn={0:[0,40],1:[55,19.6],2:[94.4,59.5],3:[109,114],4:[94.4,168.5],5:[54.5,208.4],6:[0,223],7:[-54.5,208.4],8:[-94.4,168.5],9:[-109,114],10:[-94.4,59.5],11:[-54.5,19.6],12:[0,5],13:[36.9,49.9],14:[64,77],15:[74,114],16:[64,151],17:[37,178],18:[0,188],19:[-37,178],20:[-64,151],21:[-74,114],22:[-64,77],23:[-37,50]},zPn=Rt(function(e){var t=e.spacing(4);return{clockNumber:{width:t,height:32,userSelect:"none",position:"absolute",left:"calc((100% - ".concat(typeof t=="number"?"".concat(t,"px"):t,") / 2)"),display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.type==="light"?e.palette.text.primary:e.palette.text.hint},clockNumberSelected:{color:e.palette.primary.contrastText}}},{name:"MuiPickersClockNumber"}),qp=function(t){var n=t.selected,r=t.label,i=t.index,o=t.isInner,a=zPn(),s=$t(a.clockNumber,n&&a.clockNumberSelected),l=b.useMemo(function(){var c=OPn[i];return{transform:"translate(".concat(c[0],"px, ").concat(c[1],"px")}},[i]);return b.createElement(bt,{component:"span",className:s,variant:o?"body2":"body1",style:l,children:r})},TPn=function(t){for(var n=t.ampm,r=t.utils,i=t.date,o=r.getHours(i),a=[],s=n?1:0,l=n?12:23,c=function(g){return n?g===12?o===12||o===0:o===g||o-12===g:o===g},u=s;u<=l;u+=1){var d=u.toString();u===0&&(d="00");var p={index:u,label:r.formatNumber(d),selected:c(u),isInner:!n&&(u===0||u>12)};a.push(b.createElement(qp,Y({key:u},p)))}return a},bLe=function(t){var n=t.value,r=t.utils,i=r.formatNumber;return[b.createElement(qp,{label:i("00"),selected:n===0,index:12,key:12}),b.createElement(qp,{label:i("05"),selected:n===5,index:1,key:1}),b.createElement(qp,{label:i("10"),selected:n===10,index:2,key:2}),b.createElement(qp,{label:i("15"),selected:n===15,index:3,key:3}),b.createElement(qp,{label:i("20"),selected:n===20,index:4,key:4}),b.createElement(qp,{label:i("25"),selected:n===25,index:5,key:5}),b.createElement(qp,{label:i("30"),selected:n===30,index:6,key:6}),b.createElement(qp,{label:i("35"),selected:n===35,index:7,key:7}),b.createElement(qp,{label:i("40"),selected:n===40,index:8,key:8}),b.createElement(qp,{label:i("45"),selected:n===45,index:9,key:9}),b.createElement(qp,{label:i("50"),selected:n===50,index:10,key:10}),b.createElement(qp,{label:i("55"),selected:n===55,index:11,key:11})]},VO=function(t){var n=t.type,r=t.onHourChange,i=t.onMinutesChange,o=t.onSecondsChange,a=t.ampm,s=t.date,l=t.minutesStep,c=wp(),u=b.useMemo(function(){switch(n){case J0.HOURS:return{value:c.getHours(s),children:TPn({date:s,utils:c,ampm:!!a}),onChange:function(g,m){var v=odt(s,c),y=adt(c.setHours(s,g),v,!!a,c);r(y,m)}};case J0.MINUTES:var d=c.getMinutes(s);return{value:d,children:bLe({value:d,utils:c}),onChange:function(g,m){var v=c.setMinutes(s,g);i(v,m)}};case J0.SECONDS:var p=c.getSeconds(s);return{value:p,children:bLe({value:p,utils:c}),onChange:function(g,m){var v=c.setSeconds(s,g);o(v,m)}};default:throw new Error("You must provide the type for TimePickerView")}},[a,s,r,i,o,n,c]);return b.createElement(APn,Y({type:n,ampm:a,minutesStep:l},u))};VO.displayName="TimePickerView";VO.defaultProps={ampm:!0,minutesStep:1};b.memo(VO);function yLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function EPn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yLe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yLe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}UA.oneOfType([UA.object,UA.string,UA.number,UA.instanceOf(Date)]);UA.oneOf(["year","month","day"]);var ldt={ampm:!0,invalidDateMessage:"Invalid Time Format"},gxe={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),invalidDateMessage:"Invalid Date Format",minDateMessage:"Date should not be before minimal date",maxDateMessage:"Date should not be after maximal date",allowKeyboardControl:!0};EPn({},ldt,{},gxe,{showTabs:!0});function RPn(e,t,n){var r=b.useState(t&&ly(e,t)?t:e[0]),i=Xu(r,2),o=i[0],a=i[1],s=b.useCallback(function(l,c){var u=e[e.indexOf(o)+1];if(c&&u){n(l,!1),a(u);return}n(l,!!c)},[n,o,e]);return{handleChangeAndOpenNext:s,openView:o,setOpenView:a}}var IPn=Rt(function(e){return{root:{height:40,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none","&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},yearSelected:{margin:"10px 0",fontWeight:e.typography.fontWeightMedium},yearDisabled:{pointerEvents:"none",color:e.palette.text.hint}}},{name:"MuiPickersYear"}),cdt=function(t){var n=t.onSelect,r=t.forwardedRef,i=t.value,o=t.selected,a=t.disabled,s=t.children,l=fn(t,["onSelect","forwardedRef","value","selected","disabled","children"]),c=IPn(),u=b.useCallback(function(){return n(i)},[n,i]);return b.createElement(bt,Y({role:"button",component:"div",tabIndex:a?-1:0,onClick:u,onKeyPress:u,color:o?"primary":void 0,variant:o?"h5":"subtitle1",children:s,ref:r,className:$t(c.root,o&&c.yearSelected,a&&c.yearDisabled)},l))};cdt.displayName="Year";var PPn=b.forwardRef(function(e,t){return b.createElement(cdt,Y({},e,{forwardedRef:t}))}),DPn=Rt({container:{height:300,overflowY:"auto"}},{name:"MuiPickersYearSelection"}),udt=function(t){var n=t.date,r=t.onChange,i=t.onYearChange,o=t.minDate,a=t.maxDate,s=t.disablePast,l=t.disableFuture,c=t.animateYearScrolling,u=wp(),d=DPn(),p=b.useContext(dxe),h=b.useRef(null);b.useEffect(function(){if(h.current&&h.current.scrollIntoView)try{h.current.scrollIntoView({block:p==="static"?"nearest":"center",behavior:c?"smooth":"auto"})}catch{h.current.scrollIntoView()}},[]);var g=u.getYear(n),m=b.useCallback(function(v){var y=u.setYear(n,v);i&&i(y),r(y,!0)},[n,r,i,u]);return b.createElement("div",{className:d.container},u.getYearRange(o,a).map(function(v){var y=u.getYear(v),M=y===g;return b.createElement(PPn,{key:u.getYearText(v),selected:M,value:y,onSelect:m,ref:M?h:void 0,disabled:!!(s&&u.isBeforeYear(v,u.date())||l&&u.isAfterYear(v,u.date()))},u.getYearText(v))}))},kPn=Rt(function(e){return{root:{flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none",height:75,transition:e.transitions.create("font-size",{duration:"100ms"}),"&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},monthSelected:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium},monthDisabled:{pointerEvents:"none",color:e.palette.text.hint}}},{name:"MuiPickersMonth"}),ddt=function(t){var n=t.selected,r=t.onSelect,i=t.disabled,o=t.value,a=t.children,s=fn(t,["selected","onSelect","disabled","value","children"]),l=kPn(),c=b.useCallback(function(){r(o)},[r,o]);return b.createElement(bt,Y({role:"button",component:"div",className:$t(l.root,n&&l.monthSelected,i&&l.monthDisabled),tabIndex:i?-1:0,onClick:c,onKeyPress:c,color:n?"primary":void 0,variant:n?"h5":"subtitle1",children:a},s))};ddt.displayName="Month";var LPn=Rt({container:{width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch"}},{name:"MuiPickersMonthSelection"}),pdt=function(t){var n=t.disablePast,r=t.disableFuture,i=t.minDate,o=t.maxDate,a=t.date,s=t.onMonthChange,l=t.onChange,c=wp(),u=LPn(),d=c.getMonth(a),p=function(m){var v=c.date(),y=c.date(i),M=c.date(o),C=c.startOfMonth(n&&c.isAfter(v,y)?v:y),x=c.startOfMonth(r&&c.isBefore(v,M)?v:M),w=c.isBefore(m,C),S=c.isAfter(m,x);return w||S},h=b.useCallback(function(g){var m=c.setMonth(a,g);l(m,!0),s&&s(m)},[a,l,s,c]);return b.createElement("div",{className:u.container},c.getMonthArray(a).map(function(g){var m=c.getMonth(g),v=c.format(g,"MMM");return b.createElement(ddt,{key:v,value:m,selected:m===d,onSelect:h,disabled:p(g)},v)}))},MLe=function(){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"};function _Pn(e){var t=b.useState(MLe()),n=Xu(t,2),r=n[0],i=n[1],o=b.useCallback(function(){return i(MLe())},[]);Uut(function(){return window.addEventListener("orientationchange",o),function(){return window.removeEventListener("orientationchange",o)}},[o]);var a=e||r;return a==="landscape"}function CLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NPn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CLe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CLe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var FPn={year:udt,month:pdt,date:tdt,hours:VO,minutes:VO,seconds:VO},WPn=Rt({container:{display:"flex",flexDirection:"column"},containerLandscape:{flexDirection:"row"},pickerView:{overflowX:"hidden",minHeight:QIn,minWidth:uxe,maxWidth:Gut,display:"flex",flexDirection:"column",justifyContent:"center"},pickerViewLandscape:{padding:"0 8px"}},{name:"MuiPickersBasePicker"}),hdt=function(t){var n=t.date,r=t.views,i=t.disableToolbar,o=t.onChange,a=t.openTo,s=t.minDate,l=t.maxDate,c=t.ToolbarComponent,u=t.orientation,d=fn(t,["date","views","disableToolbar","onChange","openTo","minDate","maxDate","ToolbarComponent","orientation"]),p=wp(),h=WPn(),g=_Pn(u),m=RPn(r,a,o),v=m.openView,y=m.setOpenView,M=m.handleChangeAndOpenNext,C=b.useMemo(function(){return p.date(s)},[s,p]),x=b.useMemo(function(){return p.date(l)},[l,p]);return b.createElement("div",{className:$t(h.container,g&&h.containerLandscape)},!i&&b.createElement(c,Y({},d,{views:r,isLandscape:g,date:n,onChange:o,setOpenView:y,openView:v})),b.createElement("div",{className:$t(h.pickerView,g&&h.pickerViewLandscape)},v==="year"&&b.createElement(udt,Y({},d,{date:n,onChange:M,minDate:C,maxDate:x})),v==="month"&&b.createElement(pdt,Y({},d,{date:n,onChange:M,minDate:C,maxDate:x})),v==="date"&&b.createElement(tdt,Y({},d,{date:n,onChange:M,minDate:C,maxDate:x})),(v==="hours"||v==="minutes"||v==="seconds")&&b.createElement(VO,Y({},d,{date:n,type:v,onHourChange:M,onMinutesChange:M,onSecondsChange:M}))))};hdt.defaultProps=NPn({},gxe,{views:Object.keys(FPn)});var qPn=Rt(function(e){var t=e.palette.type==="light"?e.palette.primary.contrastText:e.palette.getContrastText(e.palette.background.default);return{toolbarTxt:{color:Ern(t,.54)},toolbarBtnSelected:{color:t}}},{name:"MuiPickersToolbarText"}),Zfe=function(t){var n=t.selected,r=t.label,i=t.className,o=i===void 0?null:i,a=fn(t,["selected","label","className"]),s=qPn();return b.createElement(bt,Y({children:r,className:$t(s.toolbarTxt,o,n&&s.toolbarBtnSelected)},a))},fdt=function(t){var n=t.classes,r=t.className,i=r===void 0?null:r,o=t.label,a=t.selected,s=t.variant,l=t.align,c=t.typographyClassName,u=fn(t,["classes","className","label","selected","variant","align","typographyClassName"]);return b.createElement(Fe,Y({variant:"text",className:$t(n.toolbarBtn,i)},u),b.createElement(Zfe,{align:l,className:c,variant:s,label:o,selected:a}))};fdt.defaultProps={className:""};var BPn=Mp({toolbarBtn:{padding:0,minWidth:"16px",textTransform:"none"}}),UC=or(BPn,{name:"MuiPickersToolbarButton"})(fdt),jPn=Rt(function(e){return{toolbar:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:100,backgroundColor:e.palette.type==="light"?e.palette.primary.main:e.palette.background.default},toolbarLandscape:{height:"auto",maxWidth:150,padding:8,justifyContent:"flex-start"}}},{name:"MuiPickersToolbar"}),gdt=function(t){var n=t.children,r=t.isLandscape,i=t.className,o=i===void 0?null:i,a=fn(t,["children","isLandscape","className"]),s=jPn();return b.createElement(eQ,Y({className:$t(s.toolbar,o,r&&s.toolbarLandscape)},a),n)};function xLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HPn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xLe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xLe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mxe=function(t){var n=t.inputValue,r=t.inputVariant,i=t.validationError,o=t.InputProps,a=t.openPicker,s=t.TextFieldComponent,l=s===void 0?je:s,c=fn(t,["inputValue","inputVariant","validationError","InputProps","openPicker","TextFieldComponent"]),u=b.useMemo(function(){return HPn({},o,{readOnly:!0})},[o]);return b.createElement(l,Y({error:!!i,helperText:i},c,{onClick:a,value:n,variant:r,InputProps:u,onKeyDown:function(p){p.keyCode===32&&(p.stopPropagation(),a())}}))};mxe.displayName="PureDateInput";var VPn=function(t){return E.createElement(Tz,t,E.createElement("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"}),E.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))},mdt=function(t,n,r,i,o){var a=o.invalidLabel,s=o.emptyLabel,l=o.labelFunc,c=r.date(t);return l?l(i?null:c,a):i?s||"":r.isValid(c)?r.format(c,n):a},wLe=function(t,n,r){return n?r:t.endOfDay(r)},SLe=function(t,n,r){return n?r:t.startOfDay(r)},GPn=function(t,n,r){var i=r.maxDate,o=r.minDate,a=r.disablePast,s=r.disableFuture,l=r.maxDateMessage,c=r.minDateMessage,u=r.invalidDateMessage,d=r.strictCompareDates,p=n.date(t);return t===null?"":n.isValid(t)?i&&n.isAfter(p,wLe(n,!!d,n.date(i)))||s&&n.isAfter(p,wLe(n,!!d,n.date()))?l:o&&n.isBefore(p,SLe(n,!!d,n.date(o)))||a&&n.isBefore(p,SLe(n,!!d,n.date()))?c:"":u};function $Pn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2?arguments[2]:void 0;return e||(t?n["12h"]:n["24h"])}function UPn(e,t){return e.replace(/[a-z]/gi,t)}var XPn=function(t,n,r){return function(i){var o="",a=i.replace(r,"");if(a==="")return a;for(var s=0,l=0;s<t.length;){var c=t[s];if(c===n&&l<a.length){var u=a[l];o+=u,l+=1}else o+=c;s+=1}return o}};function ALe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function YPn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ALe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ALe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vxe=function(t){var n=t.inputValue,r=t.inputVariant,i=t.validationError,o=t.KeyboardButtonProps,a=t.InputAdornmentProps,s=t.openPicker,l=t.onChange,c=t.InputProps,u=t.mask,d=t.maskChar,p=d===void 0?"_":d,h=t.refuse,g=h===void 0?/[^\d]+/gi:h,m=t.format,v=t.keyboardIcon,y=t.disabled,M=t.rifmFormatter,C=t.TextFieldComponent,x=C===void 0?je:C,w=fn(t,["inputValue","inputVariant","validationError","KeyboardButtonProps","InputAdornmentProps","openPicker","onChange","InputProps","mask","maskChar","refuse","format","keyboardIcon","disabled","rifmFormatter","TextFieldComponent"]),S=u||UPn(m,p),A=b.useMemo(function(){return XPn(S,p,g)},[S,p,g]),z=a&&a.position?a.position:"end",O=function(I){var P=I===""||I===S?null:I;l(P)};return b.createElement(oPn,{key:S,value:n,onChange:O,refuse:g,format:M||A},function(T){var I=T.onChange,P=T.value;return b.createElement(x,Y({disabled:y,error:!!i,helperText:i},w,{value:P,onChange:I,variant:r,InputProps:YPn({},c,tn({},"".concat(z,"Adornment"),b.createElement(nc,Y({position:z},a),b.createElement(yn,Y({disabled:y},o,{onClick:s}),v))))}))})};vxe.defaultProps={keyboardIcon:b.createElement(VPn,null)};function KPn(e){var t=e.open,n=e.onOpen,r=e.onClose,i=null;if(t==null){var o=b.useState(!1),a=Xu(o,2);t=a[0],i=a[1]}var s=b.useCallback(function(l){return i&&i(l),l?n&&n():r&&r()},[n,r,i]);return{isOpen:t,setIsOpen:s}}var QPn=function(t,n){var r=n.value,i=n.initialFocusedDate,o=b.useRef(t.date()),a=t.date(r||i||o.current);return a&&t.isValid(a)?a:o.current};function ZPn(e,t){var n=wp(),r=QPn(n,e),i=e.format||t.getDefaultFormat();return{date:r,format:i}}function bxe(e,t){var n=e.autoOk,r=e.disabled,i=e.readOnly,o=e.onAccept,a=e.onChange,s=e.onError,l=e.value,c=e.variant,u=wp(),d=KPn(e),p=d.isOpen,h=d.setIsOpen,g=ZPn(e,t),m=g.date,v=g.format,y=b.useState(m),M=Xu(y,2),C=M[0],x=M[1];b.useEffect(function(){!p&&!u.isEqual(C,m)&&x(m)},[m,p,C,u]);var w=b.useCallback(function(P){a(P),o&&o(P),h(!1)},[o,a,h]),S=b.useMemo(function(){return{format:v,open:p,onClear:function(){return w(null)},onAccept:function(){return w(C)},onSetToday:function(){return x(u.date())},onDismiss:function(){h(!1)}}},[w,v,p,C,h,u]),A=b.useMemo(function(){return{date:C,onChange:function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(x(N),F&&n){w(N);return}(c==="inline"||c==="static")&&(a(N),o&&o(N))}}},[w,n,o,a,C,c]),z=GPn(l,u,e);b.useEffect(function(){s&&s(z,l)},[s,z,l]);var O=mdt(m,v,u,l===null,e),T=b.useMemo(function(){return{inputValue:O,validationError:z,openPicker:function(){return!i&&!r&&h(!0)}}},[r,O,i,h,z]),I={pickerProps:A,inputProps:T,wrapperProps:S};return b.useDebugValue(I),I}function OLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zLe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OLe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OLe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JPn(e,t,n){try{return t.parse(e,n)}catch{return null}}function vdt(e,t){var n=e.format,r=n===void 0?t.getDefaultFormat():n,i=e.inputValue,o=e.onChange,a=e.value,s=wp(),l=mdt(a,r,s,a===null,e),c=b.useState(l),u=Xu(c,2),d=u[0],p=u[1],h=i?JPn(i,s,r):a;b.useEffect(function(){(a===null||s.isValid(a))&&p(l)},[l,p,s,a]);var g=b.useCallback(function(x){o(x,x===null?null:s.format(x,r))},[r,o,s]),m=bxe(zLe({},e,{value:h,onChange:g}),t),v=m.inputProps,y=m.wrapperProps,M=m.pickerProps,C=b.useMemo(function(){return zLe({},v,{format:y.format,inputValue:i||d,onChange:function(w){p(w||"");var S=w===null?null:s.parse(w,y.format);o(S,w)}})},[v,d,i,o,s,y.format]);return{inputProps:C,wrapperProps:y,pickerProps:M}}function oZ(e){var t=e.Input,n=e.useState,r=e.useOptions,i=e.getCustomProps,o=e.DefaultToolbarComponent;function a(s){var l=s.allowKeyboardControl,c=s.ampm,u=s.animateYearScrolling;s.autoOk;var d=s.dateRangeIcon,p=s.disableFuture,h=s.disablePast,g=s.disableToolbar;s.emptyLabel,s.format,s.forwardedRef;var m=s.hideTabs;s.initialFocusedDate,s.invalidDateMessage,s.invalidLabel,s.labelFunc;var v=s.leftArrowButtonProps,y=s.leftArrowIcon,M=s.loadingIndicator,C=s.maxDate;s.maxDateMessage;var x=s.minDate;s.minDateMessage;var w=s.minutesStep;s.onAccept,s.onChange,s.onClose;var S=s.onMonthChange;s.onOpen;var A=s.onYearChange,z=s.openTo,O=s.orientation,T=s.renderDay,I=s.rightArrowButtonProps,P=s.rightArrowIcon,N=s.shouldDisableDate,F=s.strictCompareDates,L=s.timeIcon,W=s.ToolbarComponent,H=W===void 0?o:W;s.value;var j=s.variant,G=s.views,q=fn(s,["allowKeyboardControl","ampm","animateYearScrolling","autoOk","dateRangeIcon","disableFuture","disablePast","disableToolbar","emptyLabel","format","forwardedRef","hideTabs","initialFocusedDate","invalidDateMessage","invalidLabel","labelFunc","leftArrowButtonProps","leftArrowIcon","loadingIndicator","maxDate","maxDateMessage","minDate","minDateMessage","minutesStep","onAccept","onChange","onClose","onMonthChange","onOpen","onYearChange","openTo","orientation","renderDay","rightArrowButtonProps","rightArrowIcon","shouldDisableDate","strictCompareDates","timeIcon","ToolbarComponent","value","variant","views"]),$=i?i(s):{},U=r(s),X=n(s,U),Q=X.pickerProps,re=X.inputProps,ee=X.wrapperProps;return b.createElement(iPn,Y({variant:j,InputComponent:t,DateInputProps:re},$,ee,q),b.createElement(hdt,Y({},Q,{allowKeyboardControl:l,ampm:c,animateYearScrolling:u,dateRangeIcon:d,disableFuture:p,disablePast:h,disableToolbar:g,hideTabs:m,leftArrowButtonProps:v,leftArrowIcon:y,loadingIndicator:M,maxDate:C,minDate:x,minutesStep:w,onMonthChange:S,onYearChange:A,openTo:z,orientation:O,renderDay:T,rightArrowButtonProps:I,rightArrowIcon:P,shouldDisableDate:N,strictCompareDates:F,timeIcon:L,ToolbarComponent:H,views:G})))}return a}var eDn=Rt({toolbar:{flexDirection:"column",alignItems:"flex-start"},toolbarLandscape:{padding:16},dateLandscape:{marginRight:16}},{name:"MuiPickersDatePickerRoot"}),bdt=function(t){var n=t.date,r=t.views,i=t.setOpenView,o=t.isLandscape,a=t.openView,s=wp(),l=eDn(),c=b.useMemo(function(){return Qut(r)},[r]),u=b.useMemo(function(){return Zut(r)},[r]);return b.createElement(gdt,{isLandscape:o,className:$t(!c&&l.toolbar,o&&l.toolbarLandscape)},b.createElement(UC,{variant:c?"h3":"subtitle1",onClick:function(){return i("year")},selected:a==="year",label:s.getYearText(n)}),!c&&!u&&b.createElement(UC,{variant:"h4",selected:a==="date",onClick:function(){return i("date")},align:o?"left":"center",label:s.getDatePickerHeaderText(n),className:$t(o&&l.dateLandscape)}),u&&b.createElement(UC,{variant:"h4",onClick:function(){return i("month")},selected:a==="month",label:s.getMonthText(n)}))};function TLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tDn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TLe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TLe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ydt=tDn({},gxe,{openTo:"date",views:["year","date"]});function Mdt(e){var t=wp();return{getDefaultFormat:function(){return lPn(e.views,t)}}}var nDn=oZ({useOptions:Mdt,Input:mxe,useState:bxe,DefaultToolbarComponent:bdt}),oB=oZ({useOptions:Mdt,Input:vxe,useState:vdt,DefaultToolbarComponent:bdt});nDn.defaultProps=ydt;oB.defaultProps=ydt;var rDn=Rt({toolbarLandscape:{flexWrap:"wrap"},toolbarAmpmLeftPadding:{paddingLeft:50},separator:{margin:"0 4px 0 2px",cursor:"default"},hourMinuteLabel:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},hourMinuteLabelAmpmLandscape:{marginTop:"auto"},hourMinuteLabelReverse:{flexDirection:"row-reverse"},ampmSelection:{marginLeft:20,marginRight:-20,display:"flex",flexDirection:"column"},ampmLandscape:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},ampmSelectionWithSeconds:{marginLeft:15,marginRight:10},ampmLabel:{fontSize:18}},{name:"MuiPickersTimePickerToolbar"});function iDn(e,t,n){var r=wp(),i=odt(e,r),o=b.useCallback(function(a){var s=adt(e,a,!!t,r);n(s,!1)},[t,e,n,r]);return{meridiemMode:i,handleMeridiemChange:o}}var Cdt=function(t){var n=t.date,r=t.views,i=t.ampm,o=t.openView,a=t.onChange,s=t.isLandscape,l=t.setOpenView,c=wp(),u=oc(),d=rDn(),p=iDn(n,i,a),h=p.meridiemMode,g=p.handleMeridiemChange,m=s?"h3":"h2";return b.createElement(gdt,{isLandscape:s,className:$t(s?d.toolbarLandscape:i&&d.toolbarAmpmLeftPadding)},b.createElement("div",{className:$t(d.hourMinuteLabel,i&&s&&d.hourMinuteLabelAmpmLandscape,{rtl:d.hourMinuteLabelReverse}[u.direction])},ly(r,"hours")&&b.createElement(UC,{variant:m,onClick:function(){return l(J0.HOURS)},selected:o===J0.HOURS,label:c.getHourText(n,!!i)}),ly(r,["hours","minutes"])&&b.createElement(Zfe,{label:":",variant:m,selected:!1,className:d.separator}),ly(r,"minutes")&&b.createElement(UC,{variant:m,onClick:function(){return l(J0.MINUTES)},selected:o===J0.MINUTES,label:c.getMinuteText(n)}),ly(r,["minutes","seconds"])&&b.createElement(Zfe,{variant:"h2",label:":",selected:!1,className:d.separator}),ly(r,"seconds")&&b.createElement(UC,{variant:"h2",onClick:function(){return l(J0.SECONDS)},selected:o===J0.SECONDS,label:c.getSecondText(n)})),i&&b.createElement("div",{className:$t(d.ampmSelection,s&&d.ampmLandscape,ly(r,"seconds")&&d.ampmSelectionWithSeconds)},b.createElement(UC,{disableRipple:!0,variant:"subtitle1",selected:h==="am",typographyClassName:d.ampmLabel,label:c.getMeridiemText("am"),onClick:function(){return g("am")}}),b.createElement(UC,{disableRipple:!0,variant:"subtitle1",selected:h==="pm",typographyClassName:d.ampmLabel,label:c.getMeridiemText("pm"),onClick:function(){return g("pm")}})))};function ELe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oDn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ELe(n,!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ELe(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var xdt=oDn({},ldt,{openTo:"hours",views:["hours","minutes"]});function wdt(e){var t=wp();return{getDefaultFormat:function(){return $Pn(e.format,e.ampm,{"12h":t.time12hFormat,"24h":t.time24hFormat})}}}var aDn=oZ({useOptions:wdt,Input:mxe,useState:bxe,DefaultToolbarComponent:Cdt}),aZ=oZ({useOptions:wdt,Input:vxe,useState:vdt,DefaultToolbarComponent:Cdt,getCustomProps:function(t){return{refuse:t.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});aDn.defaultProps=xdt;aZ.defaultProps=xdt;const Sdt=b.createContext({dragDropManager:void 0});function RLe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ILe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RLe(Object(n),!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RLe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pd(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var PLe=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Uie=function(){return Math.random().toString(36).substring(7).split("").join(".")},BW={INIT:"@@redux/INIT"+Uie(),REPLACE:"@@redux/REPLACE"+Uie(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Uie()}};function sDn(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function aB(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(pd(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(pd(1));return n(aB)(e,t)}if(typeof e!="function")throw new Error(pd(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(pd(3));return o}function d(m){if(typeof m!="function")throw new Error(pd(4));if(l)throw new Error(pd(5));var v=!0;return c(),s.push(m),function(){if(v){if(l)throw new Error(pd(6));v=!1,c();var M=s.indexOf(m);s.splice(M,1),a=null}}}function p(m){if(!sDn(m))throw new Error(pd(7));if(typeof m.type>"u")throw new Error(pd(8));if(l)throw new Error(pd(9));try{l=!0,o=i(o,m)}finally{l=!1}for(var v=a=s,y=0;y<v.length;y++){var M=v[y];M()}return m}function h(m){if(typeof m!="function")throw new Error(pd(10));i=m,p({type:BW.REPLACE})}function g(){var m,v=d;return m={subscribe:function(M){if(typeof M!="object"||M===null)throw new Error(pd(11));function C(){M.next&&M.next(u())}C();var x=v(C);return{unsubscribe:x}}},m[PLe]=function(){return this},m}return p({type:BW.INIT}),r={dispatch:p,subscribe:d,getState:u,replaceReducer:h},r[PLe]=g,r}var lDn=aB;function cDn(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:BW.INIT});if(typeof r>"u")throw new Error(pd(12));if(typeof n(void 0,{type:BW.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pd(13))})}function Adt(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]=="function"&&(n[i]=e[i])}var o=Object.keys(n),a;try{cDn(n)}catch(s){a=s}return function(l,c){if(l===void 0&&(l={}),a)throw a;for(var u=!1,d={},p=0;p<o.length;p++){var h=o[p],g=n[h],m=l[h],v=g(m,c);if(typeof v>"u")throw c&&c.type,new Error(pd(14));d[h]=v,u=u||v!==m}return u=u||o.length!==Object.keys(l).length,u?d:l}}function DLe(e,t){return function(){return t(e.apply(this,arguments))}}function uDn(e,t){if(typeof e=="function")return DLe(e,t);if(typeof e!="object"||e===null)throw new Error(pd(16));var n={};for(var r in e){var i=e[r];typeof i=="function"&&(n[r]=DLe(i,t))}return n}function jW(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function Odt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),o=function(){throw new Error(pd(15))},a={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(l){return l(a)});return o=jW.apply(void 0,s)(i.dispatch),ILe(ILe({},i),{},{dispatch:o})}}}function ho(e,t,...n){if(dDn()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(t.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function dDn(){return typeof process<"u"&&!0}function pDn(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function hDn(e,t){return e.filter(n=>n!==t)}function zdt(e){return typeof e=="object"}function fDn(e,t){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((o,a)=>{o===1&&i.push(a)}),i}function gDn(e,t){return e.filter(n=>t.indexOf(n)>-1)}const yxe="dnd-core/INIT_COORDS",sZ="dnd-core/BEGIN_DRAG",Mxe="dnd-core/PUBLISH_DRAG_SOURCE",lZ="dnd-core/HOVER",cZ="dnd-core/DROP",uZ="dnd-core/END_DRAG";function kLe(e,t){return{type:yxe,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const mDn={type:yxe,payload:{clientOffset:null,sourceClientOffset:null}};function vDn(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,s=e.getMonitor(),l=e.getRegistry();e.dispatch(kLe(o)),bDn(n,s,l);const c=CDn(n,s);if(c==null){e.dispatch(mDn);return}let u=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");yDn(a),u=a(c)}e.dispatch(kLe(o,u));const p=l.getSource(c).beginDrag(s,c);if(p==null)return;MDn(p),l.pinSource(c);const h=l.getSourceType(c);return{type:sZ,payload:{itemType:h,item:p,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!i}}}}function bDn(e,t,n){ho(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){ho(n.getSource(r),"Expected sourceIds to be registered.")})}function yDn(e){ho(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function MDn(e){ho(zdt(e),"Item must be an object.")}function CDn(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function xDn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wDn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){xDn(e,i,n[i])})}return e}function SDn(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();ADn(r),TDn(r).forEach((a,s)=>{const l=ODn(a,s,i,r),c={type:cZ,payload:{dropResult:wDn({},n,l)}};e.dispatch(c)})}}function ADn(e){ho(e.isDragging(),"Cannot call drop while not dragging."),ho(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function ODn(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return zDn(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function zDn(e){ho(typeof e>"u"||zdt(e),"Drop result must either be an object or undefined.")}function TDn(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function EDn(e){return function(){const n=e.getMonitor(),r=e.getRegistry();RDn(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:uZ}}}function RDn(e){ho(e.isDragging(),"Cannot call endDrag while not dragging.")}function Jfe(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function IDn(e){return function(n,{clientOffset:r}={}){PDn(n);const i=n.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return kDn(i,a,s),DDn(i,o,a),LDn(i,o,a),{type:lZ,payload:{targetIds:i,clientOffset:r||null}}}}function PDn(e){ho(Array.isArray(e),"Expected targetIds to be an array.")}function DDn(e,t,n){ho(t.isDragging(),"Cannot call hover while not dragging."),ho(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];ho(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);ho(o,"Expected targetIds to be registered.")}}function kDn(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);Jfe(o,n)||e.splice(r,1)}}function LDn(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function _Dn(e){return function(){if(e.getMonitor().isDragging())return{type:Mxe}}}function NDn(e){return{beginDrag:vDn(e),publishDragSource:_Dn(e),hover:IDn(e),drop:SDn(e),endDrag:EDn(e)}}class FDn{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&n(s)}}const i=NDn(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=r(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function WDn(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Tdt(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qDn(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Tdt(WDn(t,r),n)}function BDn(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Tdt(t,n)}const iF=[],Cxe=[];iF.__IS_NONE__=!0;Cxe.__IS_ALL__=!0;function jDn(e,t){return e===iF?!1:e===Cxe||typeof t>"u"?!0:gDn(t,e).length>0}class HDn{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;ho(typeof t=="function","listener must be a function."),ho(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!jDn(a.dirtyHandlerIds,r)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){ho(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return ho(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(ho(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();return Jfe(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(ho(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),i=this.getItemType();return r!==i?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!Jfe(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return r?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return qDn(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return BDn(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const LLe=typeof global<"u"?global:self,Edt=LLe.MutationObserver||LLe.WebKitMutationObserver;function Rdt(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function VDn(e){let t=1;const n=new Edt(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const GDn=typeof Edt=="function"?VDn:Rdt;class $Dn{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,i=t.length-this.index;r<i;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=GDn(this.flush),this.requestErrorThrow=Rdt(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class UDn{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class XDn{create(t){const n=this.freeTasks,r=n.length?n.pop():new UDn(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const Idt=new $Dn,YDn=new XDn(Idt.registerPendingError);function KDn(e){Idt.enqueueTask(YDn.create(e))}const xxe="dnd-core/ADD_SOURCE",wxe="dnd-core/ADD_TARGET",Sxe="dnd-core/REMOVE_SOURCE",dZ="dnd-core/REMOVE_TARGET";function QDn(e){return{type:xxe,payload:{sourceId:e}}}function ZDn(e){return{type:wxe,payload:{targetId:e}}}function JDn(e){return{type:Sxe,payload:{sourceId:e}}}function ekn(e){return{type:dZ,payload:{targetId:e}}}function tkn(e){ho(typeof e.canDrag=="function","Expected canDrag to be a function."),ho(typeof e.beginDrag=="function","Expected beginDrag to be a function."),ho(typeof e.endDrag=="function","Expected endDrag to be a function.")}function nkn(e){ho(typeof e.canDrop=="function","Expected canDrop to be a function."),ho(typeof e.hover=="function","Expected hover to be a function."),ho(typeof e.drop=="function","Expected beginDrag to be a function.")}function ege(e,t){if(t&&Array.isArray(e)){e.forEach(n=>ege(n,!1));return}ho(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var af;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(af||(af={}));let rkn=0;function ikn(){return rkn++}function okn(e){const t=ikn().toString();switch(e){case af.SOURCE:return`S${t}`;case af.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function _Le(e){switch(e[0]){case"S":return af.SOURCE;case"T":return af.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function NLe(e,t){const n=e.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===t)return!0;r=!!i}while(!r);return!1}class akn{addSource(t,n){ege(t),tkn(n);const r=this.addHandler(af.SOURCE,t,n);return this.store.dispatch(QDn(r)),r}addTarget(t,n){ege(t,!0),nkn(n);const r=this.addHandler(af.TARGET,t,n);return this.store.dispatch(ZDn(r)),r}containsHandler(t){return NLe(this.dragSources,t)||NLe(this.dropTargets,t)}getSource(t,n=!1){return ho(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return ho(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return ho(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return ho(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return _Le(t)===af.SOURCE}isTargetId(t){return _Le(t)===af.TARGET}removeSource(t){ho(this.getSource(t),"Expected an existing source."),this.store.dispatch(JDn(t)),KDn(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){ho(this.getTarget(t),"Expected an existing target."),this.store.dispatch(ekn(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);ho(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){ho(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=okn(t);return this.types.set(i,n),t===af.SOURCE?this.dragSources.set(i,r):t===af.TARGET&&this.dropTargets.set(i,r),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const skn=(e,t)=>e===t;function lkn(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function ckn(e,t,n=skn){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function ukn(e=iF,t){switch(t.type){case lZ:break;case xxe:case wxe:case dZ:case Sxe:return iF;case sZ:case Mxe:case uZ:case cZ:default:return Cxe}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=fDn(n,r);if(!(i.length>0||!ckn(n,r)))return iF;const a=r[r.length-1],s=n[n.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function dkn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pkn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){dkn(e,i,n[i])})}return e}const FLe={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function hkn(e=FLe,t){const{payload:n}=t;switch(t.type){case yxe:case sZ:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case lZ:return lkn(e.clientOffset,n.clientOffset)?e:pkn({},e,{clientOffset:n.clientOffset});case uZ:case cZ:return FLe;default:return e}}function fkn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){fkn(e,i,n[i])})}return e}const gkn={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function mkn(e=gkn,t){const{payload:n}=t;switch(t.type){case sZ:return TE({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Mxe:return TE({},e,{isSourcePublic:!0});case lZ:return TE({},e,{targetIds:n.targetIds});case dZ:return e.targetIds.indexOf(n.targetId)===-1?e:TE({},e,{targetIds:hDn(e.targetIds,n.targetId)});case cZ:return TE({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case uZ:return TE({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function vkn(e=0,t){switch(t.type){case xxe:case wxe:return e+1;case Sxe:case dZ:return e-1;default:return e}}function bkn(e=0){return e+1}function ykn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mkn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ykn(e,i,n[i])})}return e}function Ckn(e={},t){return{dirtyHandlerIds:ukn(e.dirtyHandlerIds,{type:t.type,payload:Mkn({},t.payload,{prevTargetIds:pDn(e,"dragOperation.targetIds",[])})}),dragOffset:hkn(e.dragOffset,t),refCount:vkn(e.refCount,t),dragOperation:mkn(e.dragOperation,t),stateId:bkn(e.stateId)}}function xkn(e,t=void 0,n={},r=!1){const i=wkn(r),o=new HDn(i,new akn(i)),a=new FDn(i,o),s=e(a,t,n);return a.receiveBackend(s),a}function wkn(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return aB(Ckn,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Skn(e,t){if(e==null)return{};var n=Akn(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Akn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let WLe=0;const p7=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var pZ=b.memo(function(t){var{children:n}=t,r=Skn(t,["children"]);const[i,o]=Okn(r);return b.useEffect(()=>{if(o){const a=Pdt();return++WLe,()=>{--WLe===0&&(a[p7]=null)}}},[]),f.jsx(Sdt.Provider,{value:i,children:n})});function Okn(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=zkn(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function zkn(e,t=Pdt(),n,r){const i=t;return i[p7]||(i[p7]={dragDropManager:xkn(e,t,n,r)}),i[p7]}function Pdt(){return typeof global<"u"?global:window}var Xie,qLe;function Tkn(){return qLe||(qLe=1,Xie=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}),Xie}var Ekn=Tkn();const PA=qn(Ekn),Nz=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Ddt(e,t,n){const[r,i]=b.useState(()=>t(e)),o=b.useCallback(()=>{const a=t(e);PA(r,a)||(i(a),n&&n())},[r,e,n]);return Nz(o),[r,o]}function Rkn(e,t,n){const[r,i]=Ddt(e,t,n);return Nz(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),r}function kdt(e,t,n){return Rkn(t,e||(()=>({})),()=>n.reconnect())}function Ldt(e,t){const n=[];return typeof e!="function"&&n.push(e),b.useMemo(()=>typeof e=="function"?e():e,n)}function Ikn(e){return b.useMemo(()=>e.hooks.dragSource(),[e])}function Pkn(e){return b.useMemo(()=>e.hooks.dragPreview(),[e])}let Yie=!1,Kie=!1;class Dkn{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){ho(!Yie,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Yie=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Yie=!1}}isDragging(){if(!this.sourceId)return!1;ho(!Kie,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Kie=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Kie=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Qie=!1;class kkn{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;ho(!Qie,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Qie=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Qie=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function Lkn(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function _kn(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function tge(e,t,n,r){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<o.length;l++){const c=o[l];if(!s(c))return!1;const u=e[c],d=t[c];if(i=void 0,i===!1||i===void 0&&u!==d)return!1}return!0}function nge(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Nkn(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function Fkn(e){return(t=null,n=null)=>{if(!b.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return Nkn(r),Wkn(r,n?o=>e(o,n):e)}}function _dt(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=Fkn(r);t[n]=()=>i}}),t}function BLe(e,t){typeof e=="function"?e(t):e.current=t}function Wkn(e,t){const n=e.ref;return ho(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?b.cloneElement(e,{ref:r=>{BLe(n,r),BLe(t,r)}}):b.cloneElement(e,{ref:t})}class qkn{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!tge(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!tge(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=_dt({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,nge(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,nge(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class Bkn{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!tge(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=_dt({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,nge(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function yM(){const{dragDropManager:e}=b.useContext(Sdt);return ho(e!=null,"Expected drag drop context"),e}function jkn(e,t){const n=yM(),r=b.useMemo(()=>new qkn(n.getBackend()),[n]);return Nz(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Nz(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function Hkn(){const e=yM();return b.useMemo(()=>new Dkn(e),[e])}class Vkn{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:i}=t;i&&i(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function Gkn(e,t,n){const r=b.useMemo(()=>new Vkn(e,t,n),[t,n]);return b.useEffect(()=>{r.spec=e},[e]),r}function $kn(e){return b.useMemo(()=>{const t=e.type;return ho(t!=null,"spec.type must be defined"),t},[e])}function Ukn(e,t,n){const r=yM(),i=Gkn(e,t,n),o=$kn(e);Nz(function(){if(o!=null){const[s,l]=_kn(o,i,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l}},[r,t,n,i,o])}function Xkn(e,t){const n=Ldt(e);ho(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=Hkn(),i=jkn(n.options,n.previewOptions);return Ukn(n,r,i),[kdt(n.collect,r,i),Ikn(i),Pkn(i)]}function Ykn(e){const n=yM().getMonitor(),[r,i]=Ddt(n,e);return b.useEffect(()=>n.subscribeToOffsetChange(i)),b.useEffect(()=>n.subscribeToStateChange(i)),r}function Kkn(e){return b.useMemo(()=>e.hooks.dropTarget(),[e])}function Qkn(e){const t=yM(),n=b.useMemo(()=>new Bkn(t.getBackend()),[t]);return Nz(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Zkn(){const e=yM();return b.useMemo(()=>new kkn(e),[e])}function Jkn(e){const{accept:t}=e;return b.useMemo(()=>(ho(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class eLn{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function tLn(e,t){const n=b.useMemo(()=>new eLn(e,t),[t]);return b.useEffect(()=>{n.spec=e},[e]),n}function nLn(e,t,n){const r=yM(),i=tLn(e,t),o=Jkn(e);Nz(function(){const[s,l]=Lkn(o,i,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),l},[r,t,i,n,o.map(a=>a.toString()).join("|")])}function Ndt(e,t){const n=Ldt(e),r=Zkn(),i=Qkn(n.options);return nLn(n,r,i),[kdt(n.collect,r,i),Kkn(i)]}function Fdt(e){let t=null;return()=>(t==null&&(t=e()),t)}function rLn(e,t){return e.filter(n=>n!==t)}function iLn(e,t){const n=new Set,r=o=>n.add(o);e.forEach(r),t.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class oLn{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=iLn(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=rLn(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class aLn{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Wdt="__NATIVE_FILE__",qdt="__NATIVE_URL__",Bdt="__NATIVE_TEXT__",jdt="__NATIVE_HTML__",jLe=Object.freeze(Object.defineProperty({__proto__:null,FILE:Wdt,HTML:jdt,TEXT:Bdt,URL:qdt},Symbol.toStringTag,{value:"Module"}));function Zie(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const rge={[Wdt]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[jdt]:{exposeProperties:{html:(e,t)=>Zie(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[qdt]:{exposeProperties:{urls:(e,t)=>Zie(e,t,"").split(`
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Bdt]:{exposeProperties:{text:(e,t)=>Zie(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function sLn(e,t){const n=rge[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new aLn(n);return r.loadDataTransfer(t),r}function Jie(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(rge).filter(n=>{const r=rge[n];return r?.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const lLn=Fdt(()=>/firefox/i.test(navigator.userAgent)),Hdt=Fdt(()=>!!window.safari);class HLe{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let s=n.length-1;if(t===n[s])return r[s];let l=0,c=a.length-1,u;for(;l<=c;){u=Math.floor(.5*(l+c));const h=n[u];if(h<t)l=u+1;else if(h>t)c=u-1;else return r[u]}s=Math.max(0,c);const d=t-n[s],p=d*d;return r[s]+i[s]*d+o[s]*p+a[s]*d*p}constructor(t,n){const{length:r}=t,i=[];for(let h=0;h<r;h++)i.push(h);i.sort((h,g)=>t[h]<t[g]?-1:1);const o=[],a=[];let s,l;for(let h=0;h<r-1;h++)s=t[h+1]-t[h],l=n[h+1]-n[h],o.push(s),a.push(l/s);const c=[a[0]];for(let h=0;h<o.length-1;h++){const g=a[h],m=a[h+1];if(g*m<=0)c.push(0);else{s=o[h];const v=o[h+1],y=s+v;c.push(3*y/((y+v)/g+(y+s)/m))}}c.push(a[a.length-1]);const u=[],d=[];let p;for(let h=0;h<c.length-1;h++){p=a[h];const g=c[h],m=1/o[h],v=g+c[h+1]-p-p;u.push((p-g-v)*m),d.push(v*m*m)}this.xs=t,this.ys=n,this.c1s=c,this.c2s=u,this.c3s=d}}const cLn=1;function Vdt(e){const t=e.nodeType===cLn?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function x8(e){return{x:e.clientX,y:e.clientY}}function uLn(e){var t;return e.nodeName==="IMG"&&(lLn()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function dLn(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return Hdt()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function pLn(e,t,n,r,i){const o=uLn(t),s=Vdt(o?e:t),l={x:n.x-s.x,y:n.y-s.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:d,anchorY:p}=r,{dragPreviewWidth:h,dragPreviewHeight:g}=dLn(o,t,c,u),m=()=>{let S=new HLe([0,.5,1],[l.y,l.y/u*g,l.y+g-u]).interpolate(p);return Hdt()&&o&&(S+=(window.devicePixelRatio-1)*g),S},v=()=>new HLe([0,.5,1],[l.x,l.x/c*h,l.x+h-c]).interpolate(d),{offsetX:y,offsetY:M}=i,C=y===0||y,x=M===0||M;return{x:C?y:v(),y:x?M:m()}}class hLn{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}}function fLn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VLe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){fLn(e,i,n[i])})}return e}class gLn{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const i=a=>this.handleDragStart(a,t),o=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=a=>this.handleDragEnter(a,t),i=a=>this.handleDragOver(a,t),o=a=>this.handleDrop(a,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return VLe({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return VLe({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(jLe).some(n=>jLe[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=sLn(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&Vdt(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=x8(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:s}=i,l=Jie(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const u=this.monitor.getSourceId(),d=this.sourceNodes.get(u),p=this.sourcePreviewNodes.get(u)||d;if(p){const{anchorX:h,anchorY:g,offsetX:m,offsetY:v}=this.getCurrentSourcePreviewNodeOptions(),C=pLn(d,p,a,{anchorX:h,anchorY:g},{offsetX:m,offsetY:v});s.setDragImage(p,C.x,C.y)}}try{s?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:c}=this.getCurrentSourcePreviewNodeOptions();c?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:s}=i,l=Jie(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:x8(i)}),o.some(s=>this.monitor.canDropOnTarget(s))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=x8(i),this.scheduleHover(o),(o||[]).some(s=>this.monitor.canDropOnTarget(s))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Jie(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:x8(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new hLn(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new oLn(this.isNodeInDocument)}}let w8;function mLn(){return w8||(w8=new Image,w8.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),w8}const hZ=function(t,n,r){return new gLn(t,n,r)};var VS={};function ff(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(i){return"'"+i+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Nf(e){return!!e&&!!e[el]}function Zy(e){var t;return!!e&&((function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===ALn})(e)||Array.isArray(e)||!!e[QLe]||!!(!((t=e.constructor)===null||t===void 0)&&t[QLe])||Axe(e)||Oxe(e))}function vLn(e){return Nf(e)||ff(23,e),e[el].t}function Fz(e,t,n){n===void 0&&(n=!1),FD(e)===0?(n?Object.keys:yI)(e).forEach((function(r){n&&typeof r=="symbol"||t(r,e[r],e)})):e.forEach((function(r,i){return t(i,r,e)}))}function FD(e){var t=e[el];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Axe(e)?2:Oxe(e)?3:0}function bI(e,t){return FD(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function bLn(e,t){return FD(e)===2?e.get(t):e[t]}function Gdt(e,t,n){var r=FD(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function $dt(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Axe(e){return wLn&&e instanceof Map}function Oxe(e){return SLn&&e instanceof Set}function DA(e){return e.o||e.t}function zxe(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Xdt(e);delete t[el];for(var n=yI(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function fZ(e,t){return t===void 0&&(t=!1),Txe(e)||Nf(e)||!Zy(e)||(FD(e)>1&&(e.set=e.add=e.clear=e.delete=yLn),Object.freeze(e),t&&Fz(e,(function(n,r){return fZ(r,!0)}),!0)),e}function yLn(){ff(2)}function Txe(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function db(e){var t=sge[e];return t||ff(18,e),t}function MLn(e,t){sge[e]||(sge[e]=t)}function ige(){return HW}function eoe(e,t){t&&(db("Patches"),e.u=[],e.s=[],e.v=t)}function S9(e){oge(e),e.p.forEach(CLn),e.p=null}function oge(e){e===HW&&(HW=e.l)}function GLe(e){return HW={p:[],l:HW,h:e,m:!0,_:0}}function CLn(e){var t=e[el];t.i===0||t.i===1?t.j():t.g=!0}function toe(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||db("ES5").S(t,e,r),r?(n[el].P&&(S9(t),ff(4)),Zy(e)&&(e=A9(t,e),t.l||O9(t,e)),t.u&&db("Patches").M(n[el].t,e,t.u,t.s)):e=A9(t,n,[]),S9(t),t.u&&t.v(t.u,t.s),e!==Udt?e:void 0}function A9(e,t,n){if(Txe(t))return t;var r=t[el];if(!r)return Fz(t,(function(s,l){return $Le(e,r,t,s,l,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return O9(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=zxe(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),Fz(o,(function(s,l){return $Le(e,r,i,s,l,n,a)})),O9(e,i,!1),n&&e.u&&db("Patches").N(r,n,e.u,e.s)}return r.o}function $Le(e,t,n,r,i,o,a){if(Nf(i)){var s=A9(e,i,o&&t&&t.i!==3&&!bI(t.R,r)?o.concat(r):void 0);if(Gdt(n,r,s),!Nf(s))return;e.m=!1}else a&&n.add(i);if(Zy(i)&&!Txe(i)){if(!e.h.D&&e._<1)return;A9(e,i),t&&t.A.l||O9(e,i)}}function O9(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&fZ(t,n)}function noe(e,t){var n=e[el];return(n?DA(n):e)[t]}function ULe(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function XC(e){e.P||(e.P=!0,e.l&&XC(e.l))}function roe(e){e.o||(e.o=zxe(e.t))}function age(e,t,n){var r=Axe(t)?db("MapSet").F(t,n):Oxe(t)?db("MapSet").T(t,n):e.O?(function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:ige(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,c=VW;a&&(l=[s],c=tN);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return s.k=p,s.j=d,p})(t,n):db("ES5").J(t,n);return(n?n.A:ige()).p.push(r),r}function Exe(e){return Nf(e)||ff(22,e),(function t(n){if(!Zy(n))return n;var r,i=n[el],o=FD(n);if(i){if(!i.P&&(i.i<4||!db("ES5").K(i)))return i.t;i.I=!0,r=XLe(n,o),i.I=!1}else r=XLe(n,o);return Fz(r,(function(a,s){i&&bLn(i.t,a)===s||Gdt(r,a,t(s))})),o===3?new Set(r):r})(e)}function XLe(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zxe(e)}function xLn(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var l=this[el];return VW.get(l,o)},set:function(l){var c=this[el];VW.set(c,o,l)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][el];if(!s.P)switch(s.i){case 5:r(s)&&XC(s);break;case 4:n(s)&&XC(s)}}}function n(o){for(var a=o.t,s=o.k,l=yI(s),c=l.length-1;c>=0;c--){var u=l[c];if(u!==el){var d=a[u];if(d===void 0&&!bI(a,u))return!0;var p=s[u],h=p&&p[el];if(h?h.t!==d:!$dt(p,d))return!0}}var g=!!a[el];return l.length!==yI(a).length+(g?0:1)}function r(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l<a.length;l++)if(!a.hasOwnProperty(l))return!0;return!1}var i={};MLn("ES5",{J:function(o,a){var s=Array.isArray(o),l=(function(u,d){if(u){for(var p=Array(d.length),h=0;h<d.length;h++)Object.defineProperty(p,""+h,e(h,!0));return p}var g=Xdt(d);delete g[el];for(var m=yI(g),v=0;v<m.length;v++){var y=m[v];g[y]=e(y,u||!!g[y].enumerable)}return Object.create(Object.getPrototypeOf(d),g)})(s,o),c={i:s?5:4,A:a?a.A:ige(),P:!1,I:!1,R:{},l:a,t:o,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,el,{value:c,writable:!0}),l},S:function(o,a,s){s?Nf(a)&&a[el].A===o&&t(o.p):(o.u&&(function l(c){if(c&&typeof c=="object"){var u=c[el];if(u){var d=u.t,p=u.k,h=u.R,g=u.i;if(g===4)Fz(p,(function(C){C!==el&&(d[C]!==void 0||bI(d,C)?h[C]||l(p[C]):(h[C]=!0,XC(u)))})),Fz(d,(function(C){p[C]!==void 0||bI(p,C)||(h[C]=!1,XC(u))}));else if(g===5){if(r(u)&&(XC(u),h.length=!0),p.length<d.length)for(var m=p.length;m<d.length;m++)h[m]=!1;else for(var v=d.length;v<p.length;v++)h[v]=!0;for(var y=Math.min(p.length,d.length),M=0;M<y;M++)p.hasOwnProperty(M)||(h[M]=!0),h[M]===void 0&&l(p[M])}}}})(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var YLe,HW,Rxe=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wLn=typeof Map<"u",SLn=typeof Set<"u",KLe=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Udt=Rxe?Symbol.for("immer-nothing"):((YLe={})["immer-nothing"]=!0,YLe),QLe=Rxe?Symbol.for("immer-draftable"):"__$immer_draftable",el=Rxe?Symbol.for("immer-state"):"__$immer_state",ALn=""+Object.prototype.constructor,yI=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xdt=Object.getOwnPropertyDescriptors||function(e){var t={};return yI(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},sge={},VW={get:function(e,t){if(t===el)return e;var n=DA(e);if(!bI(n,t))return(function(i,o,a){var s,l=ULe(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0})(e,n,t);var r=n[t];return e.I||!Zy(r)?r:r===noe(e.t,t)?(roe(e),e.o[t]=age(e.A.h,r,e)):r},has:function(e,t){return t in DA(e)},ownKeys:function(e){return Reflect.ownKeys(DA(e))},set:function(e,t,n){var r=ULe(DA(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=noe(DA(e),t),o=i?.[el];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if($dt(n,i)&&(n!==void 0||bI(e.t,t)))return!0;roe(e),XC(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return noe(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,roe(e),XC(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=DA(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ff(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ff(12)}},tN={};Fz(VW,(function(e,t){tN[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),tN.deleteProperty=function(e,t){return tN.set.call(this,e,t,void 0)},tN.set=function(e,t,n){return VW.set.call(this,e[0],t,n,e[0])};var OLn=(function(){function e(n){var r=this;this.O=KLe,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=r;return function(m){var v=this;m===void 0&&(m=s);for(var y=arguments.length,M=Array(y>1?y-1:0),C=1;C<y;C++)M[C-1]=arguments[C];return l.produce(m,(function(x){var w;return(w=o).call.apply(w,[v,x].concat(M))}))}}var c;if(typeof o!="function"&&ff(6),a!==void 0&&typeof a!="function"&&ff(7),Zy(i)){var u=GLe(r),d=age(r,i,void 0),p=!0;try{c=o(d),p=!1}finally{p?S9(u):oge(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(m){return eoe(u,a),toe(m,u)}),(function(m){throw S9(u),m})):(eoe(u,a),toe(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===Udt&&(c=void 0),r.D&&fZ(c,!0),a){var h=[],g=[];db("Patches").M(i,c,h,g),a(h,g)}return c}ff(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return r.produceWithPatches(c,(function(h){return i.apply(void 0,[h].concat(d))}))};var a,s,l=r.produce(i,o,(function(c,u){a=c,s=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,a,s]})):[l,a,s]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Zy(n)||ff(8),Nf(n)&&(n=Exe(n));var r=GLe(this),i=age(this,n,void 0);return i[el].C=!0,oge(r),i},t.finishDraft=function(n,r){var i=n&&n[el],o=i.A;return eoe(o,r),toe(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!KLe&&ff(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=db("Patches").$;return Nf(n)?a(n,r):this.produce(n,(function(s){return a(s,r)}))},e})(),uh=new OLn,gZ=uh.produce;uh.produceWithPatches.bind(uh);uh.setAutoFreeze.bind(uh);uh.setUseProxies.bind(uh);uh.applyPatches.bind(uh);uh.createDraft.bind(uh);uh.finishDraft.bind(uh);var z9="NOT_FOUND";function zLn(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:z9},put:function(r,i){t={key:r,value:i}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function TLn(e,t){var n=[];function r(s){var l=n.findIndex(function(u){return t(s,u.key)});if(l>-1){var c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return z9}function i(s,l){r(s)===z9&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function o(){return n}function a(){n=[]}return{get:r,put:i,getEntries:o,clear:a}}var ELn=function(t,n){return t===n};function RLn(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var i=n.length,o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}}function ILn(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,i=r===void 0?ELn:r,o=n.maxSize,a=o===void 0?1:o,s=n.resultEqualityCheck,l=RLn(i),c=a===1?zLn(l):TLn(a,l);function u(){var d=c.get(arguments);if(d===z9){if(d=e.apply(null,arguments),s){var p=c.getEntries(),h=p.find(function(g){return s(g.value,d)});h&&(d=h.value)}c.put(arguments,d)}return d}return u.clearCache=function(){return c.clear()},u}function PLn(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function DLn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=0,u,d={memoizeOptions:void 0},p=s.pop();if(typeof p=="object"&&(d=p,p=s.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var h=d,g=h.memoizeOptions,m=g===void 0?n:g,v=Array.isArray(m)?m:[m],y=PLn(s),M=e.apply(void 0,[function(){return c++,p.apply(null,arguments)}].concat(v)),C=e(function(){for(var w=[],S=y.length,A=0;A<S;A++)w.push(y[A].apply(null,arguments));return u=M.apply(null,w),u});return Object.assign(C,{resultFunc:p,memoizedResultFunc:M,dependencies:y,lastResult:function(){return u},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),C};return i}var Ydt=DLn(ILn);function Kdt(e){var t=function(r){var i=r.dispatch,o=r.getState;return function(a){return function(s){return typeof s=="function"?s(i,o,e):a(s)}}};return t}var lge=Kdt();lge.withExtraArgument=Kdt;var Qdt=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),sB=function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ew=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},kLn=Object.defineProperty,LLn=Object.defineProperties,_Ln=Object.getOwnPropertyDescriptors,ZLe=Object.getOwnPropertySymbols,NLn=Object.prototype.hasOwnProperty,FLn=Object.prototype.propertyIsEnumerable,JLe=function(e,t,n){return t in e?kLn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},op=function(e,t){for(var n in t||(t={}))NLn.call(t,n)&&JLe(e,n,t[n]);if(ZLe)for(var r=0,i=ZLe(t);r<i.length;r++){var n=i[r];FLn.call(t,n)&&JLe(e,n,t[n])}return e},ioe=function(e,t){return LLn(e,_Ln(t))},lB=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{s(n.next(l))}catch(c){i(c)}},a=function(l){try{s(n.throw(l))}catch(c){i(c)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,a)};s((n=n.apply(e,t)).next())})},Z2=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ydt.apply(void 0,e),r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return n.apply(void 0,ew([Nf(i)?Exe(i):i],o))};return r},WLn=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?jW:jW.apply(null,arguments)};function mZ(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var Zdt=function(e){return e&&typeof e.match=="function"};function pb(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var o=t.apply(void 0,r);if(!o)throw new Error("prepareAction did not return an object");return op(op({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function Ixe(e){return mZ(e)&&"type"in e}function qLn(e){return typeof e=="function"&&"type"in e&&Zdt(e)}function Jdt(e){return Ixe(e)&&typeof e.type=="string"&&Object.keys(e).every(BLn)}function BLn(e){return["type","payload","error","meta"].indexOf(e)>-1}function jLn(e){return""+e}function HLn(e){return function(){return function(t){return function(n){return t(n)}}}}var e0t=(function(e){Qdt(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,ew([void 0],n[0].concat(this)))):new(t.bind.apply(t,ew([void 0],n.concat(this))))},t})(Array),t0t=(function(e){Qdt(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,ew([void 0],n[0].concat(this)))):new(t.bind.apply(t,ew([void 0],n.concat(this))))},t})(Array);function cge(e){return Zy(e)?gZ(e,function(){}):e}function VLn(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function GLn(e){return function(){return function(t){return function(n){return t(n)}}}}function n0t(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||mZ(e)}function r0t(e,t,n,r,i,o){t===void 0&&(t=""),n===void 0&&(n=n0t),i===void 0&&(i=[]);var a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||o?.has(e))return!1;for(var s=r!=null?r(e):Object.entries(e),l=i.length>0,c=function(v,y){var M=t?t+"."+v:v;if(l){var C=i.some(function(x){return x instanceof RegExp?x.test(M):M===x});if(C)return"continue"}if(!n(y))return{value:{keyPath:M,value:y}};if(typeof y=="object"&&(a=r0t(y,M,n,r,i,o),a))return{value:a}},u=0,d=s;u<d.length;u++){var p=d[u],h=p[0],g=p[1],m=c(h,g);if(typeof m=="object")return m.value}return o&&i0t(e)&&o.add(e),!1}function i0t(e){if(!Object.isFrozen(e))return!1;for(var t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if(!(typeof r!="object"||r===null)&&!i0t(r))return!1}return!0}function $Ln(e){return function(){return function(t){return function(n){return t(n)}}}}function ULn(e){return typeof e=="boolean"}function XLn(){return function(t){return o0t(t)}}function o0t(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck,e.actionCreatorCheck;var r=new e0t;return n&&(ULn(n)?r.push(lge):r.push(lge.withExtraArgument(n.extraArgument))),r}function YLn(e){var t=XLn(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,a=o===void 0?t():o,s=n.devTools,l=s===void 0?!0:s,c=n.preloadedState,u=c===void 0?void 0:c,d=n.enhancers,p=d===void 0?void 0:d,h;if(typeof i=="function")h=i;else if(mZ(i))h=Adt(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=a;typeof g=="function"&&(g=g(t));var m=Odt.apply(void 0,g),v=jW;l&&(v=WLn(op({trace:!1},typeof l=="object"&&l)));var y=new t0t(m),M=y;Array.isArray(p)?M=ew([m],p):typeof p=="function"&&(M=p(y));var C=v.apply(void 0,M);return aB(h,u,C)}function a0t(e){var t={},n=[],r,i={addCase:function(o,a){var s=typeof o=="string"?o:o.type;if(!s)throw new Error("`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[s]=a,i},addMatcher:function(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase:function(o){return r=o,i}};return e(i),[t,n,r]}function KLn(e){return typeof e=="function"}function s0t(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?a0t(t):[t,n,r],o=i[0],a=i[1],s=i[2],l;if(KLn(e))l=function(){return cge(e())};else{var c=cge(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=ew([o[p.type]],a.filter(function(g){var m=g.matcher;return m(p)}).map(function(g){var m=g.reducer;return m}));return h.filter(function(g){return!!g}).length===0&&(h=[s]),h.reduce(function(g,m){if(m)if(Nf(g)){var v=g,y=m(v,p);return y===void 0?g:y}else{if(Zy(g))return gZ(g,function(M){return m(M,p)});var y=m(g,p);if(y===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}return g},d)}return u.getInitialState=l,u}function QLn(e,t){return e+"/"+t}function Ni(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n=typeof e.initialState=="function"?e.initialState:cge(e.initialState),r=e.reducers||{},i=Object.keys(r),o={},a={},s={};i.forEach(function(u){var d=r[u],p=QLn(t,u),h,g;"reducer"in d?(h=d.reducer,g=d.prepare):h=d,o[u]=h,a[p]=h,s[u]=g?pb(p,g):pb(p)});function l(){var u=typeof e.extraReducers=="function"?a0t(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],g=h===void 0?[]:h,m=u[2],v=m===void 0?void 0:m,y=op(op({},p),a);return s0t(n,function(M){for(var C in y)M.addCase(C,y[C]);for(var x=0,w=g;x<w.length;x++){var S=w[x];M.addMatcher(S.matcher,S.reducer)}v&&M.addDefaultCase(v)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:s,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}function ZLn(){return{ids:[],entities:{}}}function JLn(){function e(t){return t===void 0&&(t={}),Object.assign(ZLn(),t)}return{getInitialState:e}}function e4n(){function e(t){var n=function(c){return c.ids},r=function(c){return c.entities},i=Z2(n,r,function(c,u){return c.map(function(d){return u[d]})}),o=function(c,u){return u},a=function(c,u){return c[u]},s=Z2(n,function(c){return c.length});if(!t)return{selectIds:n,selectEntities:r,selectAll:i,selectTotal:s,selectById:Z2(r,o,a)};var l=Z2(t,r);return{selectIds:Z2(t,n),selectEntities:l,selectAll:Z2(t,i),selectTotal:Z2(t,s),selectById:Z2(l,o,a)}}return{getSelectors:e}}function t4n(e){var t=yc(function(n,r){return e(r)});return function(r){return t(r,void 0)}}function yc(e){return function(n,r){function i(a){return Jdt(a)}var o=function(a){i(r)?e(r.payload,a):e(r,a)};return Nf(n)?(o(n),n):gZ(n,o)}}function oF(e,t){var n=t(e);return n}function GO(e){return Array.isArray(e)||(e=Object.values(e)),e}function l0t(e,t,n){e=GO(e);for(var r=[],i=[],o=0,a=e;o<a.length;o++){var s=a[o],l=oF(s,t);l in n.entities?i.push({id:l,changes:s}):r.push(s)}return[r,i]}function c0t(e){function t(g,m){var v=oF(g,e);v in m.entities||(m.ids.push(v),m.entities[v]=g)}function n(g,m){g=GO(g);for(var v=0,y=g;v<y.length;v++){var M=y[v];t(M,m)}}function r(g,m){var v=oF(g,e);v in m.entities||m.ids.push(v),m.entities[v]=g}function i(g,m){g=GO(g);for(var v=0,y=g;v<y.length;v++){var M=y[v];r(M,m)}}function o(g,m){g=GO(g),m.ids=[],m.entities={},n(g,m)}function a(g,m){return s([g],m)}function s(g,m){var v=!1;g.forEach(function(y){y in m.entities&&(delete m.entities[y],v=!0)}),v&&(m.ids=m.ids.filter(function(y){return y in m.entities}))}function l(g){Object.assign(g,{ids:[],entities:{}})}function c(g,m,v){var y=v.entities[m.id],M=Object.assign({},y,m.changes),C=oF(M,e),x=C!==m.id;return x&&(g[m.id]=C,delete v.entities[m.id]),v.entities[C]=M,x}function u(g,m){return d([g],m)}function d(g,m){var v={},y={};g.forEach(function(x){x.id in m.entities&&(y[x.id]={id:x.id,changes:op(op({},y[x.id]?y[x.id].changes:null),x.changes)})}),g=Object.values(y);var M=g.length>0;if(M){var C=g.filter(function(x){return c(v,x,m)}).length>0;C&&(m.ids=Object.keys(m.entities))}}function p(g,m){return h([g],m)}function h(g,m){var v=l0t(g,e,m),y=v[0],M=v[1];d(M,m),n(y,m)}return{removeAll:t4n(l),addOne:yc(t),addMany:yc(n),setOne:yc(r),setMany:yc(i),setAll:yc(o),updateOne:yc(u),updateMany:yc(d),upsertOne:yc(p),upsertMany:yc(h),removeOne:yc(a),removeMany:yc(s)}}function n4n(e,t){var n=c0t(e),r=n.removeOne,i=n.removeMany,o=n.removeAll;function a(M,C){return s([M],C)}function s(M,C){M=GO(M);var x=M.filter(function(w){return!(oF(w,e)in C.entities)});x.length!==0&&v(x,C)}function l(M,C){return c([M],C)}function c(M,C){M=GO(M),M.length!==0&&v(M,C)}function u(M,C){M=GO(M),C.entities={},C.ids=[],s(M,C)}function d(M,C){return p([M],C)}function p(M,C){for(var x=!1,w=0,S=M;w<S.length;w++){var A=S[w],z=C.entities[A.id];if(z){x=!0,Object.assign(z,A.changes);var O=e(z);A.id!==O&&(delete C.entities[A.id],C.entities[O]=z)}}x&&y(C)}function h(M,C){return g([M],C)}function g(M,C){var x=l0t(M,e,C),w=x[0],S=x[1];p(S,C),s(w,C)}function m(M,C){if(M.length!==C.length)return!1;for(var x=0;x<M.length&&x<C.length;x++)if(M[x]!==C[x])return!1;return!0}function v(M,C){M.forEach(function(x){C.entities[e(x)]=x}),y(C)}function y(M){var C=Object.values(M.entities);C.sort(t);var x=C.map(e),w=M.ids;m(w,x)||(M.ids=x)}return{removeOne:r,removeMany:i,removeAll:o,addOne:yc(a),updateOne:yc(d),upsertOne:yc(h),setOne:yc(l),setMany:yc(c),setAll:yc(u),addMany:yc(s),updateMany:yc(p),upsertMany:yc(g)}}function r4n(e){e===void 0&&(e={});var t=op({sortComparer:!1,selectId:function(s){return s.id}},e),n=t.selectId,r=t.sortComparer,i=JLn(),o=e4n(),a=r?n4n(n,r):c0t(n);return op(op(op({selectId:n,sortComparer:r},i),o),a)}var i4n="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pxe=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=i4n[Math.random()*64|0];return t},o4n=["name","message","stack","code"],ooe=(function(){function e(t,n){this.payload=t,this.meta=n}return e})(),e4e=(function(){function e(t,n){this.payload=t,this.meta=n}return e})(),u0t=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=o4n;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},a4n=(function(){function e(t,n,r){var i=pb(t+"/fulfilled",function(c,u,d,p){return{payload:c,meta:ioe(op({},p||{}),{arg:d,requestId:u,requestStatus:"fulfilled"})}}),o=pb(t+"/pending",function(c,u,d){return{payload:void 0,meta:ioe(op({},d||{}),{arg:u,requestId:c,requestStatus:"pending"})}}),a=pb(t+"/rejected",function(c,u,d,p,h){return{payload:p,error:(r&&r.serializeError||u0t)(c||"Rejected"),meta:ioe(op({},h||{}),{arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"})}}),s=typeof AbortController<"u"?AbortController:(function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c})();function l(c){return function(u,d,p){var h=r?.idGenerator?r.idGenerator(c):Pxe(),g=new s,m;function v(M){m=M,g.abort()}var y=(function(){return lB(this,null,function(){var M,C,x,w,S,A,z;return sB(this,function(O){switch(O.label){case 0:return O.trys.push([0,4,,5]),w=(M=r?.condition)==null?void 0:M.call(r,c,{getState:d,extra:p}),s4n(w)?[4,w]:[3,2];case 1:w=O.sent(),O.label=2;case 2:if(w===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=new Promise(function(T,I){return g.signal.addEventListener("abort",function(){return I({name:"AbortError",message:m||"Aborted"})})}),u(o(h,c,(C=r?.getPendingMeta)==null?void 0:C.call(r,{requestId:h,arg:c},{getState:d,extra:p}))),[4,Promise.race([S,Promise.resolve(n(c,{dispatch:u,getState:d,extra:p,requestId:h,signal:g.signal,abort:v,rejectWithValue:function(T,I){return new ooe(T,I)},fulfillWithValue:function(T,I){return new e4e(T,I)}})).then(function(T){if(T instanceof ooe)throw T;return T instanceof e4e?i(T.payload,h,c,T.meta):i(T,h,c)})])];case 3:return x=O.sent(),[3,5];case 4:return A=O.sent(),x=A instanceof ooe?a(null,h,c,A.payload,A.meta):a(A,h,c),[3,5];case 5:return z=r&&!r.dispatchConditionRejection&&a.match(x)&&x.meta.condition,z||u(x),[2,x]}})})})();return Object.assign(y,{abort:v,requestId:h,arg:c,unwrap:function(){return y.then(d0t)}})}}return Object.assign(l,{pending:o,rejected:a,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function d0t(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function s4n(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var p0t=function(e,t){return Zdt(e)?e.match(t):e(t)};function cB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return e.some(function(r){return p0t(r,n)})}}function uge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return e.every(function(r){return p0t(r,n)})}}function vZ(e,t){if(!e||!e.meta)return!1;var n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function uB(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function h0t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return vZ(n,["pending"])}:uB(e)?function(n){var r=e.map(function(o){return o.pending}),i=cB.apply(void 0,r);return i(n)}:h0t()(e[0])}function T9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return vZ(n,["rejected"])}:uB(e)?function(n){var r=e.map(function(o){return o.rejected}),i=cB.apply(void 0,r);return i(n)}:T9()(e[0])}function f0t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(r){return r&&r.meta&&r.meta.rejectedWithValue};return e.length===0?function(r){var i=uge(T9.apply(void 0,e),n);return i(r)}:uB(e)?function(r){var i=uge(T9.apply(void 0,e),n);return i(r)}:f0t()(e[0])}function g0t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return vZ(n,["fulfilled"])}:uB(e)?function(n){var r=e.map(function(o){return o.fulfilled}),i=cB.apply(void 0,r);return i(n)}:g0t()(e[0])}function m0t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(n){return vZ(n,["pending","fulfilled","rejected"])}:uB(e)?function(n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i];r.push(a.pending,a.rejected,a.fulfilled)}var s=cB.apply(void 0,r);return s(n)}:m0t()(e[0])}var Dxe=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},dge=function(){},v0t=function(e,t){return t===void 0&&(t=dge),e.catch(t),e},b0t=function(e,t){return e.addEventListener("abort",t,{once:!0}),function(){return e.removeEventListener("abort",t)}},MI=function(e,t){var n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},l4n="task",y0t="listener",M0t="completed",kxe="cancelled",c4n="task-"+kxe,u4n="task-"+M0t,C0t=y0t+"-"+kxe,d4n=y0t+"-"+M0t,dB=(function(){function e(t){this.code=t,this.name="TaskAbortError",this.message=l4n+" "+kxe+" (reason: "+t+")"}return e})(),CI=function(e){if(e.aborted)throw new dB(e.reason)};function x0t(e,t){var n=dge;return new Promise(function(r,i){var o=function(){return i(new dB(e.reason))};if(e.aborted){o();return}n=b0t(e,o),t.finally(function(){return n()}).then(r,i)}).finally(function(){n=dge})}var p4n=function(e,t){return lB(void 0,null,function(){var n,r;return sB(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,e()];case 2:return n=i.sent(),[2,{status:"ok",value:n}];case 3:return r=i.sent(),[2,{status:r instanceof dB?"cancelled":"rejected",error:r}];case 4:return t?.(),[7];case 5:return[2]}})})},E9=function(e){return function(t){return v0t(x0t(e,t).then(function(n){return CI(e),n}))}},w0t=function(e){var t=E9(e);return function(n){return t(new Promise(function(r){return setTimeout(r,n)}))}},h4n=Object.assign,t4e={},pB="listenerMiddleware",f4n=function(e,t){var n=function(r){return b0t(e,function(){return MI(r,e.reason)})};return function(r,i){Dxe(r,"taskExecutor");var o=new AbortController;n(o);var a=p4n(function(){return lB(void 0,null,function(){var s;return sB(this,function(l){switch(l.label){case 0:return CI(e),CI(o.signal),[4,r({pause:E9(o.signal),delay:w0t(o.signal),signal:o.signal})];case 1:return s=l.sent(),CI(o.signal),[2,s]}})})},function(){return MI(o,u4n)});return i?.autoJoin&&t.push(a),{result:E9(e)(a),cancel:function(){MI(o,c4n)}}}},g4n=function(e,t){var n=function(r,i){return lB(void 0,null,function(){var o,a,s,l;return sB(this,function(c){switch(c.label){case 0:CI(t),o=function(){},a=new Promise(function(u,d){var p=e({predicate:r,effect:function(h,g){g.unsubscribe(),u([h,g.getState(),g.getOriginalState()])}});o=function(){p(),d()}}),s=[a],i!=null&&s.push(new Promise(function(u){return setTimeout(u,i,null)})),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,x0t(t,Promise.race(s))];case 2:return l=c.sent(),CI(t),[2,l];case 3:return o(),[7];case 4:return[2]}})})};return function(r,i){return v0t(n(r,i))}},S0t=function(e){var t=e.type,n=e.actionCreator,r=e.matcher,i=e.predicate,o=e.effect;if(t)i=pb(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return Dxe(o,"options.listener"),{predicate:i,type:t,effect:o}},m4n=function(e){var t=S0t(e),n=t.type,r=t.predicate,i=t.effect,o=Pxe(),a={id:o,effect:i,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return a},pge=function(e){e.pending.forEach(function(t){MI(t,C0t)})},v4n=function(e){return function(){e.forEach(pge),e.clear()}},n4e=function(e,t,n){try{e(t,n)}catch(r){setTimeout(function(){throw r},0)}},A0t=pb(pB+"/add"),O0t=pb(pB+"/removeAll"),z0t=pb(pB+"/remove"),b4n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,ew([pB+"/error"],e))};function y4n(e){var t=this;e===void 0&&(e={});var n=new Map,r=e.extra,i=e.onError,o=i===void 0?b4n:i;Dxe(o,"onError");var a=function(h){return h.unsubscribe=function(){return n.delete(h.id)},n.set(h.id,h),function(g){h.unsubscribe(),g?.cancelActive&&pge(h)}},s=function(h){for(var g=0,m=Array.from(n.values());g<m.length;g++){var v=m[g];if(h(v))return v}},l=function(h){var g=s(function(m){return m.effect===h.effect});return g||(g=m4n(h)),a(g)},c=function(h){var g=S0t(h),m=g.type,v=g.effect,y=g.predicate,M=s(function(C){var x=typeof m=="string"?C.type===m:C.predicate===y;return x&&C.effect===v});return M&&(M.unsubscribe(),h.cancelActive&&pge(M)),!!M},u=function(h,g,m,v){return lB(t,null,function(){var y,M,C,x;return sB(this,function(w){switch(w.label){case 0:y=new AbortController,M=g4n(l,y.signal),C=[],w.label=1;case 1:return w.trys.push([1,3,4,6]),h.pending.add(y),[4,Promise.resolve(h.effect(g,h4n({},m,{getOriginalState:v,condition:function(S,A){return M(S,A).then(Boolean)},take:M,delay:w0t(y.signal),pause:E9(y.signal),extra:r,signal:y.signal,fork:f4n(y.signal,C),unsubscribe:h.unsubscribe,subscribe:function(){n.set(h.id,h)},cancelActiveListeners:function(){h.pending.forEach(function(S,A,z){S!==y&&(MI(S,C0t),z.delete(S))})}})))];case 2:return w.sent(),[3,6];case 3:return x=w.sent(),x instanceof dB||n4e(o,x,{raisedBy:"effect"}),[3,6];case 4:return[4,Promise.allSettled(C)];case 5:return w.sent(),MI(y,d4n),h.pending.delete(y),[7];case 6:return[2]}})})},d=v4n(n),p=function(h){return function(g){return function(m){if(!Ixe(m))return g(m);if(A0t.match(m))return l(m.payload);if(O0t.match(m)){d();return}if(z0t.match(m))return c(m.payload);var v=h.getState(),y=function(){if(v===t4e)throw new Error(pB+": getOriginalState can only be called synchronously");return v},M;try{if(M=g(m),n.size>0)for(var C=h.getState(),x=Array.from(n.values()),w=0,S=x;w<S.length;w++){var A=S[w],z=!1;try{z=A.predicate(m,C,v)}catch(O){z=!1,n4e(o,O,{raisedBy:"predicate"})}z&&u(A,m,h,y)}}finally{v=t4e}return M}}};return{middleware:p,startListening:l,stopListening:c,clearListeners:d}}var Lxe="RTK_autoBatch",M4n=function(){return function(e){var t;return{payload:e,meta:(t={},t[Lxe]=!0,t)}}},r4e,C4n=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(r4e||(r4e=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},T0t=function(e){return function(t){setTimeout(t,e)}},x4n=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:T0t(10),w4n=function(e){return e===void 0&&(e={type:"raf"}),function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(void 0,n),o=!0,a=!1,s=!1,l=new Set,c=e.type==="tick"?C4n:e.type==="raf"?x4n:e.type==="callback"?e.queueNotification:T0t(e.timeout),u=function(){s=!1,a&&(a=!1,l.forEach(function(d){return d()}))};return Object.assign({},i,{subscribe:function(d){var p=function(){return o&&d()},h=i.subscribe(p);return l.add(d),function(){h(),l.delete(d)}},dispatch:function(d){var p;try{return o=!((p=d?.meta)!=null&&p[Lxe]),a=!o,a&&(s||(s=!0,c(u))),i.dispatch(d)}finally{o=!0}}})}}};xLn();const S4n=Object.freeze(Object.defineProperty({__proto__:null,EnhancerArray:t0t,MiddlewareArray:e0t,SHOULD_AUTOBATCH:Lxe,TaskAbortError:dB,__DO_NOT_USE__ActionTypes:BW,addListener:A0t,applyMiddleware:Odt,autoBatchEnhancer:w4n,bindActionCreators:uDn,clearAllListeners:O0t,combineReducers:Adt,compose:jW,configureStore:YLn,createAction:pb,createActionCreatorInvariantMiddleware:HLn,createAsyncThunk:a4n,createDraftSafeSelector:Z2,createEntityAdapter:r4n,createImmutableStateInvariantMiddleware:GLn,createListenerMiddleware:y4n,createNextState:gZ,createReducer:s0t,createSelector:Ydt,createSerializableStateInvariantMiddleware:$Ln,createSlice:Ni,createStore:aB,current:Exe,findNonSerializableValue:r0t,freeze:fZ,getDefaultMiddleware:o0t,getType:jLn,isAction:Ixe,isActionCreator:qLn,isAllOf:uge,isAnyOf:cB,isAsyncThunkAction:m0t,isDraft:Nf,isFluxStandardAction:Jdt,isFulfilled:g0t,isImmutableDefault:VLn,isPending:h0t,isPlain:n0t,isPlainObject:mZ,isRejected:T9,isRejectedWithValue:f0t,legacy_createStore:lDn,miniSerializeError:u0t,nanoid:Pxe,original:vLn,prepareAutoBatched:M4n,removeListener:z0t,unwrapResult:d0t},Symbol.toStringTag,{value:"Module"})),A4n=oK(S4n);var i4e;function O4n(){if(i4e)return VS;i4e=1,Object.defineProperty(VS,"__esModule",{value:!0}),VS.prepareSliceOptions=VS.useComplexState=void 0;const e=Wr(),t=A4n,n=i=>{const o=t.createSlice({name:"__name",...i}),[a,s]=e.useReducer(o.reducer,i.initialState);return Object.entries(o.actions).forEach(([l,c])=>{o.actions[l]=(...u)=>{s(c(...u))}}),[a,o.actions,s]};VS.useComplexState=n;const r=i=>({name:"__name",...i});return VS.prepareSliceOptions=r,VS}var Ui=O4n(),I4={},o4e;function z4n(){if(o4e)return I4;o4e=1;var e=ri(),t=ii();Object.defineProperty(I4,"__esModule",{value:!0}),I4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}),"FormatListBulletedSharp");return I4.default=i,I4}var T4n=z4n();const Kf=qn(T4n);function E4n(e){return Bn("MuiTimeClock",e)}Ln("MuiTimeClock",["root","arrowSwitcher"]);const MP=220,ky=36,GW={x:MP/2,y:MP/2},E0t={x:GW.x,y:0},R4n=E0t.x-GW.x,I4n=E0t.y-GW.y,P4n=e=>e*(180/Math.PI),R0t=(e,t,n)=>{const r=t-GW.x,i=n-GW.y,o=Math.atan2(R4n,I4n)-Math.atan2(r,i);let a=P4n(o);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+i**2,c=Math.sqrt(l);return{value:s,distance:c}},D4n=(e,t,n=1)=>{const r=n*6;let{value:i}=R0t(r,e,t);return i=i*n%60,i},k4n=(e,t,n)=>{const{value:r,distance:i}=R0t(30,e,t);let o=r||12;return n?o%=12:i<MP/2-ky&&(o+=12,o%=24),o};function L4n(e){return Bn("MuiClockPointer",e)}Ln("MuiClockPointer",["root","thumb"]);const _4n=["className","hasSelected","isInner","type","viewValue"],N4n=e=>{const{classes:t}=e;return Yt({root:["root"],thumb:["thumb"]},L4n,t)},F4n=rt("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),W4n=rt("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${ky/2}px)`,border:`${(ky-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function q4n(e){const t=Ro({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=Lt(t,_4n),s=b.useRef(i);b.useEffect(()=>{s.current=i},[i]);const l=Y({},t,{shouldAnimate:s.current!==i}),c=N4n(l),u=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*MP),transform:`rotateZ(${p}deg)`}};return f.jsx(F4n,Y({style:u(),className:Oa(c.root,n),ownerState:l},a,{children:f.jsx(W4n,{ownerState:l,className:c.thumb})}))}function B4n(e){return Bn("MuiClock",e)}Ln("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const j4n=e=>{const{classes:t,meridiemMode:n}=e;return Yt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",n==="am"&&"selected"],pmButton:["pmButton",n==="pm"&&"selected"],meridiemText:["meridiemText"]},B4n,t)},H4n=rt("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),V4n=rt("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),G4n=rt("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),$4n=rt("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),U4n=rt("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),I0t=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:ky,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),X4n=rt(Zp,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>Y({},I0t(e,"am"),{position:"absolute",left:8})),Y4n=rt(Zp,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>Y({},I0t(e,"pm"),{position:"absolute",right:8})),a4e=rt(i1,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function K4n(e){const t=Ro({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:o,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:d,selectedId:p,type:h,viewValue:g,viewRange:[m,v],disabled:y=!1,readOnly:M,className:C}=t,x=t,w=sa(),S=Ed(),A=b.useRef(!1),z=j4n(x),O=l(g,h),T=!n&&h==="hours"&&(g<1||g>12),I=(X,Q)=>{y||M||l(X,h)||d(X,Q)},P=(X,Q)=>{let{offsetX:re,offsetY:ee}=X;if(re===void 0){const pe=X.target.getBoundingClientRect();re=X.changedTouches[0].clientX-pe.left,ee=X.changedTouches[0].clientY-pe.top}const se=h==="seconds"||h==="minutes"?D4n(re,ee,u):k4n(re,ee,!!n);I(se,Q)},N=X=>{A.current=!0,P(X,"shallow")},F=X=>{A.current&&(P(X,"finish"),A.current=!1),X.preventDefault()},L=X=>{X.buttons>0&&P(X.nativeEvent,"shallow")},W=X=>{A.current&&(A.current=!1),P(X.nativeEvent,"finish")},H=b.useMemo(()=>h==="hours"?!0:g%5===0,[h,g]),j=h==="minutes"?u:1,G=b.useRef(null);To(()=>{i&&G.current.focus()},[i]);const q=X=>Math.max(m,Math.min(v,X)),$=X=>(X+(v+1))%(v+1),U=X=>{if(!A.current)switch(X.key){case"Home":I(m,"partial"),X.preventDefault();break;case"End":I(v,"partial"),X.preventDefault();break;case"ArrowUp":I($(g+j),"partial"),X.preventDefault();break;case"ArrowDown":I($(g-j),"partial"),X.preventDefault();break;case"PageUp":I(q(g+5),"partial"),X.preventDefault();break;case"PageDown":I(q(g-5),"partial"),X.preventDefault();break;case"Enter":case" ":I(g,"finish"),X.preventDefault();break}};return f.jsxs(H4n,{className:Oa(z.root,C),children:[f.jsxs(V4n,{className:z.clock,children:[f.jsx($4n,{onTouchMove:N,onTouchStart:N,onTouchEnd:F,onMouseUp:W,onMouseMove:L,ownerState:{disabled:y},className:z.squareMask}),!O&&f.jsxs(b.Fragment,{children:[f.jsx(U4n,{className:z.pin}),a!=null&&f.jsx(q4n,{type:h,viewValue:g,isInner:T,hasSelected:H})]}),f.jsx(G4n,{"aria-activedescendant":p,"aria-label":S.clockLabelText(h,a,w,a==null?null:w.format(a,"fullTime")),ref:G,role:"listbox",onKeyDown:U,tabIndex:0,className:z.wrapper,children:o})]}),n&&r&&f.jsxs(b.Fragment,{children:[f.jsx(X4n,{onClick:M?void 0:()=>s("am"),disabled:y||c===null,ownerState:x,className:z.amButton,title:by(w,"am"),children:f.jsx(a4e,{variant:"caption",className:z.meridiemText,children:by(w,"am")})}),f.jsx(Y4n,{disabled:y||c===null,onClick:M?void 0:()=>s("pm"),ownerState:x,className:z.pmButton,title:by(w,"pm"),children:f.jsx(a4e,{variant:"caption",className:z.meridiemText,children:by(w,"pm")})})]})]})}function Q4n(e){return Bn("MuiClockNumber",e)}const S8=Ln("MuiClockNumber",["root","selected","disabled"]),Z4n=["className","disabled","index","inner","label","selected"],J4n=e=>{const{classes:t,selected:n,disabled:r}=e;return Yt({root:["root",n&&"selected",r&&"disabled"]},Q4n,t)},e_n=rt("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${S8.disabled}`]:t.disabled},{[`&.${S8.selected}`]:t.selected}]})(({theme:e})=>({height:ky,width:ky,position:"absolute",left:`calc((100% - ${ky}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${S8.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${S8.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:Y({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function P0t(e){const t=Ro({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=Lt(t,Z4n),c=t,u=J4n(c),d=i%12/12*Math.PI*2-Math.PI/2,p=(MP-ky-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*p),g=Math.round(Math.sin(d)*p);return f.jsx(e_n,Y({className:Oa(u.root,n),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${g+(MP-ky)/2}px`},ownerState:c},l,{children:a}))}const t_n=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=d=>a===null?!1:e?d===12?a===12||a===0:a===d||a-12===d:a===d;for(let d=l;d<=c;d+=1){let p=d.toString();d===0&&(p="00");const h=!e&&(d===0||d>12);p=o.formatNumber(p);const g=u(d);s.push(f.jsx(P0t,{id:g?i:void 0,index:d,inner:h,selected:g,disabled:r(d),label:p,"aria-label":n(p)},d))}return s},s4e=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,s],l)=>{const c=a===t;return f.jsx(P0t,{label:s,id:c?i:void 0,index:l+1,inner:!1,disabled:n(a),selected:c,"aria-label":r(s)},a)})},_xe=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=b.useMemo(()=>Tu.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Gg.day,timezone:i,getTodayDate:()=>iCe(n,i,"date")}),[]);return e??o},n_n=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],r_n=e=>{const{classes:t}=e;return Yt({root:["root"],arrowSwitcher:["arrowSwitcher"]},E4n,t)},i_n=rt(WQ,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),o_n=rt(Ult,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),a_n=["hours","minutes"],s_n=b.forwardRef(function(t,n){const r=sa(),i=Ro({props:t,name:"MuiTimeClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,slots:l,slotProps:c,value:u,defaultValue:d,referenceDate:p,disableIgnoringDatePartForTimeValidation:h=!1,maxTime:g,minTime:m,disableFuture:v,disablePast:y,minutesStep:M=1,shouldDisableTime:C,showViewSwitcher:x,onChange:w,view:S,views:A=a_n,openTo:z,onViewChange:O,focusedView:T,onFocusedViewChange:I,className:P,disabled:N,readOnly:F,timezone:L}=i,W=Lt(i,n_n),{value:H,handleValueChange:j,timezone:G}=TD({name:"TimeClock",timezone:L,value:u,defaultValue:d,referenceDate:p,onChange:w,valueManager:Tu}),q=_xe({value:H,referenceDate:p,utils:r,props:i,timezone:G}),$=Ed(),U=E3(G),{view:X,setView:Q,previousView:re,nextView:ee,setValueAndGoToNextView:se}=Y6({view:S,views:A,openTo:z,onViewChange:O,onChange:j,focusedView:T,onFocusedViewChange:I}),{meridiemMode:pe,handleMeridiemChange:te}=ACe(q,o,se),ce=b.useCallback((he,be)=>{const me=G6(h,r),Me=be==="hours"||be==="minutes"&&A.includes("seconds"),Oe=({start:ie,end:ue})=>!(m&&me(m,ue)||g&&me(ie,g)||v&&me(ie,U)||y&&me(U,Me?ue:ie)),de=(ie,ue=1)=>{if(ie%ue!==0)return!1;if(C)switch(be){case"hours":return!C(r.setHours(q,ie),"hours");case"minutes":return!C(r.setMinutes(q,ie),"minutes");case"seconds":return!C(r.setSeconds(q,ie),"seconds");default:return!1}return!0};switch(be){case"hours":{const ie=zW(he,pe,o),ue=r.setHours(q,ie);if(r.getHours(ue)!==ie)return!0;const Ae=r.setSeconds(r.setMinutes(ue,0),0),Ce=r.setSeconds(r.setMinutes(ue,59),59);return!Oe({start:Ae,end:Ce})||!de(ie)}case"minutes":{const ie=r.setMinutes(q,he),ue=r.setSeconds(ie,0),Ae=r.setSeconds(ie,59);return!Oe({start:ue,end:Ae})||!de(he,M)}case"seconds":{const ie=r.setSeconds(q,he);return!Oe({start:ie,end:ie})||!de(he)}default:throw new Error("not supported")}},[o,q,h,g,pe,m,M,C,r,v,y,U,A]),oe=Hi(),ae=b.useMemo(()=>{switch(X){case"hours":{const he=(Me,Oe)=>{const de=zW(Me,pe,o);se(r.setHours(q,de),Oe,"hours")},be=r.getHours(q);let me;return o?be>12?me=[12,23]:me=[0,11]:me=[0,23],{onChange:he,viewValue:be,children:t_n({value:H,utils:r,ampm:o,getClockNumberText:$.hoursClockNumberText,isDisabled:Me=>N||ce(Me,"hours"),selectedId:oe}),viewRange:me}}case"minutes":{const he=r.getMinutes(q);return{viewValue:he,onChange:(me,Me)=>{se(r.setMinutes(q,me),Me,"minutes")},children:s4e({utils:r,value:he,getClockNumberText:$.minutesClockNumberText,isDisabled:me=>N||ce(me,"minutes"),selectedId:oe}),viewRange:[0,59]}}case"seconds":{const he=r.getSeconds(q);return{viewValue:he,onChange:(me,Me)=>{se(r.setSeconds(q,me),Me,"seconds")},children:s4e({utils:r,value:he,getClockNumberText:$.secondsClockNumberText,isDisabled:me=>N||ce(me,"seconds"),selectedId:oe}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[X,r,H,o,$.hoursClockNumberText,$.minutesClockNumberText,$.secondsClockNumberText,pe,se,q,ce,oe,N]),ne=i,le=r_n(ne);return f.jsxs(i_n,Y({ref:n,className:Oa(le.root,P),ownerState:ne},W,{children:[f.jsx(K4n,Y({autoFocus:s??!!T,ampmInClock:a&&A.includes("hours"),value:H,type:X,ampm:o,minutesStep:M,isTimeDisabled:ce,meridiemMode:pe,handleMeridiemChange:te,selectedId:oe,disabled:N,readOnly:F},ae)),x&&f.jsx(o_n,{className:le.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>Q(re),isPreviousDisabled:!re,previousLabel:$.openPreviousView,onGoToNext:()=>Q(ee),isNextDisabled:!ee,nextLabel:$.openNextView,ownerState:ne})]}))});function l_n(e){return Bn("MuiDivider",e)}const l4e=Ln("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),c_n=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Yt({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},l_n,r)},u_n=rt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(kr(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),d_n=rt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(kr(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),$W=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,orientation:s="horizontal",component:l=o||s==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth",...g}=r,m={...r,absolute:i,component:l,flexItem:c,light:u,orientation:s,role:d,textAlign:p,variant:h},v=c_n(m);return f.jsx(u_n,{as:l,className:nr(v.root,a),role:d,ref:n,ownerState:m,"aria-orientation":d==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...g,children:o?f.jsx(d_n,{className:v.wrapper,ownerState:m,children:o}):null})});$W&&($W.muiSkipListHighlight=!0);function p_n(e){return Bn("MuiListItemIcon",e)}const c4e=Ln("MuiListItemIcon",["root","alignItemsFlexStart"]),h_n=e=>{const{alignItems:t,classes:n}=e;return Yt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},p_n,n)},f_n=rt("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(kr(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),u4e=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiListItemIcon"}),{className:i,...o}=r,a=b.useContext(Iy),s={...r,alignItems:a.alignItems},l=h_n(s);return f.jsx(f_n,{className:nr(l.root,i),ownerState:s,ref:n,...o})});function g_n(e){return Bn("MuiListItemText",e)}const uO=Ln("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),m_n=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return Yt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},g_n,t)},v_n=rt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${uO.primary}`]:t.primary},{[`& .${uO.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${wDe.root}:where(& .${uO.primary})`]:{display:"block"},[`.${wDe.root}:where(& .${uO.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),b_n=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:p={},slotProps:h={},...g}=r,{dense:m}=b.useContext(Iy);let v=l??i,y=u;const M={...r,disableTypography:a,inset:s,primary:!!v,secondary:!!y,dense:m},C=m_n(M),x={slots:p,slotProps:{primary:c,secondary:d,...h}},[w,S]=ni("root",{className:nr(C.root,o),elementType:v_n,externalForwardedProps:{...x,...g},ownerState:M,ref:n}),[A,z]=ni("primary",{className:C.primary,elementType:i1,externalForwardedProps:x,ownerState:M}),[O,T]=ni("secondary",{className:C.secondary,elementType:i1,externalForwardedProps:x,ownerState:M});return v!=null&&v.type!==i1&&!a&&(v=f.jsx(A,{variant:m?"body2":"body1",component:z?.variant?void 0:"span",...z,children:v})),y!=null&&y.type!==i1&&!a&&(y=f.jsx(O,{variant:"body2",color:"textSecondary",...T,children:y})),f.jsxs(w,{...S,children:[v,y]})});function y_n(e){return Bn("MuiMenuItem",e)}const P4=Ln("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),M_n=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},C_n=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=Yt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},y_n,a);return{...a,...l}},x_n=rt(Ib,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:M_n})(kr(({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"}},[`&.${P4.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${P4.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${P4.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${P4.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${P4.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${l4e.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${l4e.inset}`]:{marginLeft:52},[`& .${uO.root}`]:{marginTop:0,marginBottom:0},[`& .${uO.inset}`]:{paddingLeft:36},[`& .${c4e.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,[`& .${c4e.root} svg`]:{fontSize:"1.25rem"}}}]}))),Qb=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...h}=r,g=b.useContext(Iy),m=b.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),v=b.useRef(null);To(()=>{i&&v.current&&v.current.focus()},[i]);const y={...r,dense:m.dense,divider:s,disableGutters:l},M=C_n(r),C=Pi(v,n);let x;return r.disabled||(x=d!==void 0?d:-1),f.jsx(Iy.Provider,{value:m,children:f.jsx(x_n,{ref:C,role:u,tabIndex:x,component:o,focusVisibleClassName:nr(M.focusVisible,c),className:nr(M.root,p),...h,ownerState:y,classes:M})})});function w_n(e){return Bn("MuiDigitalClock",e)}const S_n=Ln("MuiDigitalClock",["root","list","item"]),A_n=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],O_n=e=>{const{classes:t}=e;return Yt({root:["root"],list:["list"],item:["item"]},w_n,t)},z_n=rt(WQ,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:hlt,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),T_n=rt(NQ,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),E_n=rt(Qb,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wd(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:wd(e.palette.primary.main,e.palette.action.focusOpacity)}})),R_n=b.forwardRef(function(t,n){const r=sa(),i=b.useRef(null),o=Pi(n,i),a=b.useRef(null),s=Ro({props:t,name:"MuiDigitalClock"}),{ampm:l=r.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:u,slots:d,slotProps:p,value:h,defaultValue:g,referenceDate:m,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:y,minTime:M,disableFuture:C,disablePast:x,minutesStep:w=1,shouldDisableTime:S,onChange:A,view:z,openTo:O,onViewChange:T,focusedView:I,onFocusedViewChange:P,className:N,disabled:F,readOnly:L,views:W=["hours"],skipDisabled:H=!1,timezone:j}=s,G=Lt(s,A_n),{value:q,handleValueChange:$,timezone:U}=TD({name:"DigitalClock",timezone:j,value:h,defaultValue:g,referenceDate:m,onChange:A,valueManager:Tu}),X=Ed(),Q=E3(U),re=b.useMemo(()=>Y({},s,{alreadyRendered:!!i.current}),[s]),ee=O_n(re),se=d?.digitalClockItem??E_n,pe=Ho({elementType:se,externalSlotProps:p?.digitalClockItem,ownerState:{},className:ee.item}),te=_xe({value:q,referenceDate:m,utils:r,props:s,timezone:U}),ce=en(me=>$(me,"finish","hours")),{setValueAndGoToNextView:oe}=Y6({view:z,views:W,openTo:O,onViewChange:T,onChange:ce,focusedView:I,onFocusedViewChange:P}),ae=en(me=>{oe(me,"finish")});b.useEffect(()=>{if(i.current===null)return;const me=i.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!me)return;const Me=me.offsetTop;(u||I)&&me.focus(),i.current.scrollTop=Me-4});const ne=b.useCallback(me=>{const Me=G6(v,r),Oe=()=>!(M&&Me(M,me)||y&&Me(me,y)||C&&Me(me,Q)||x&&Me(Q,me)),de=()=>r.getMinutes(me)%w!==0?!1:S?!S(me,"hours"):!0;return!Oe()||!de()},[v,r,M,y,C,Q,x,w,S]),le=b.useMemo(()=>{const me=[];let Oe=r.startOfDay(te);for(;r.isSameDay(te,Oe);)me.push(Oe),Oe=r.addMinutes(Oe,c);return me},[te,c,r]),he=le.findIndex(me=>r.isEqual(me,te)),be=me=>{switch(me.key){case"PageUp":{const Me=s9(a.current)-5,Oe=a.current.children,de=Math.max(0,Me),ie=Oe[de];ie&&ie.focus(),me.preventDefault();break}case"PageDown":{const Me=s9(a.current)+5,Oe=a.current.children,de=Math.min(Oe.length-1,Me),ie=Oe[de];ie&&ie.focus(),me.preventDefault();break}}};return f.jsx(z_n,Y({ref:o,className:Oa(ee.root,N),ownerState:re},G,{children:f.jsx(T_n,{ref:a,role:"listbox","aria-label":X.timePickerToolbarTitle,className:ee.list,onKeyDown:be,children:le.map((me,Me)=>{if(H&&ne(me))return null;const Oe=r.isEqual(me,q),de=r.format(me,l?"fullTime12h":"fullTime24h"),ie=he===Me||he===-1&&Me===0?0:-1;return f.jsx(se,Y({onClick:()=>!L&&ae(me),selected:Oe,disabled:F||ne(me),disableRipple:L,role:"option","aria-disabled":L,"aria-selected":Oe,tabIndex:ie},pe,{children:de}),`${me.valueOf()}-${de}`)})})}))});function I_n(e){return Bn("MuiMultiSectionDigitalClock",e)}const d4e=Ln("MuiMultiSectionDigitalClock",["root"]);function P_n(e){return Bn("MuiMultiSectionDigitalClockSection",e)}const D_n=Ln("MuiMultiSectionDigitalClockSection",["root","item"]),k_n=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],L_n=e=>{const{classes:t}=e;return Yt({root:["root"],item:["item"]},P_n,t)},__n=rt(NQ,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:hlt,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),N_n=rt(Qb,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:J5,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wd(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:wd(e.palette.primary.main,e.palette.action.focusOpacity)}})),F_n=b.forwardRef(function(t,n){const r=b.useRef(null),i=Pi(n,r),o=b.useRef(null),a=Ro({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:s,onChange:l,className:c,disabled:u,readOnly:d,items:p,active:h,slots:g,slotProps:m,skipDisabled:v}=a,y=Lt(a,k_n),M=b.useMemo(()=>Y({},a,{alreadyRendered:!!r.current}),[a]),C=L_n(M),x=g?.digitalClockSectionItem??N_n;b.useEffect(()=>{if(r.current===null)return;const A=r.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(h&&s&&A&&A.focus(),!A||o.current===A)return;o.current=A;const z=A.offsetTop;r.current.scrollTop=z-4});const w=p.findIndex(A=>A.isFocused(A.value)),S=A=>{switch(A.key){case"PageUp":{const z=s9(r.current)-5,O=r.current.children,T=Math.max(0,z),I=O[T];I&&I.focus(),A.preventDefault();break}case"PageDown":{const z=s9(r.current)+5,O=r.current.children,T=Math.min(O.length-1,z),I=O[T];I&&I.focus(),A.preventDefault();break}}};return f.jsx(__n,Y({ref:i,className:Oa(C.root,c),ownerState:M,autoFocusItem:s&&h,role:"listbox",onKeyDown:S},y,{children:p.map((A,z)=>{const O=A.isDisabled?.(A.value),T=u||O;if(v&&T)return null;const I=A.isSelected(A.value),P=w===z||w===-1&&z===0?0:-1;return f.jsx(x,Y({onClick:()=>!d&&l(A.value),selected:I,disabled:T,disableRipple:d,role:"option","aria-disabled":d||T||void 0,"aria-label":A.ariaLabel,"aria-selected":I,tabIndex:P,className:C.item},m?.digitalClockSectionItem,{children:A.label}),A.label)})}))}),W_n=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a,valueOrReferenceDate:s})=>{const l=t?n.getHours(t):null,c=[],u=(h,g)=>{const m=g??l;return m===null?!1:r?h===12?m===12||m===0:m===h||m-12===h:m===h},d=h=>u(h,n.getHours(s)),p=r?11:23;for(let h=0;h<=p;h+=a){let g=n.format(n.setHours(e,h),r?"hours12h":"hours24h");const m=o(parseInt(g,10).toString());g=n.formatNumber(g),c.push({value:h,label:g,isSelected:u,isDisabled:i,isFocused:d,ariaLabel:m})}return c},p4e=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=c=>e===null?!1:a&&e===c,l=c=>e===c;return[...Array.from({length:Math.ceil(60/r)},(c,u)=>{const d=r*u;return{value:d,label:t.formatNumber(i(d)),isDisabled:n,isSelected:s,isFocused:l,ariaLabel:o(d.toString())}})]},q_n=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],B_n=e=>{const{classes:t}=e;return Yt({root:["root"]},I_n,t)},j_n=rt(WQ,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),H_n=b.forwardRef(function(t,n){const r=sa(),i=ts(),o=Ro({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:p,referenceDate:h,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:m,minTime:v,disableFuture:y,disablePast:M,minutesStep:C=1,shouldDisableTime:x,onChange:w,view:S,views:A=["hours","minutes"],openTo:z,onViewChange:O,focusedView:T,onFocusedViewChange:I,className:P,disabled:N,readOnly:F,skipDisabled:L=!1,timezone:W}=o,H=Lt(o,q_n),{value:j,handleValueChange:G,timezone:q}=TD({name:"MultiSectionDigitalClock",timezone:W,value:d,defaultValue:p,referenceDate:h,onChange:w,valueManager:Tu}),$=Ed(),U=E3(q),X=b.useMemo(()=>Y({hours:1,minutes:5,seconds:5},s),[s]),Q=_xe({value:j,referenceDate:h,utils:r,props:o,timezone:q}),re=en((Oe,de,ie)=>G(Oe,de,ie)),ee=b.useMemo(()=>!a||!A.includes("hours")||A.includes("meridiem")?A:[...A,"meridiem"],[a,A]),{view:se,setValueAndGoToNextView:pe,focusedView:te}=Y6({view:S,views:ee,openTo:z,onViewChange:O,onChange:re,focusedView:T,onFocusedViewChange:I}),ce=en(Oe=>{pe(Oe,"finish","meridiem")}),{meridiemMode:oe,handleMeridiemChange:ae}=ACe(Q,a,ce,"finish"),ne=b.useCallback((Oe,de)=>{const ie=G6(g,r),ue=de==="hours"||de==="minutes"&&ee.includes("seconds"),Ae=({start:Ee,end:Ge})=>!(v&&ie(v,Ge)||m&&ie(Ee,m)||y&&ie(Ee,U)||M&&ie(U,ue?Ge:Ee)),Ce=(Ee,Ge=1)=>{if(Ee%Ge!==0)return!1;if(x)switch(de){case"hours":return!x(r.setHours(Q,Ee),"hours");case"minutes":return!x(r.setMinutes(Q,Ee),"minutes");case"seconds":return!x(r.setSeconds(Q,Ee),"seconds");default:return!1}return!0};switch(de){case"hours":{const Ee=zW(Oe,oe,a),Ge=r.setHours(Q,Ee);if(r.getHours(Ge)!==Ee)return!0;const _e=r.setSeconds(r.setMinutes(Ge,0),0),Ie=r.setSeconds(r.setMinutes(Ge,59),59);return!Ae({start:_e,end:Ie})||!Ce(Ee)}case"minutes":{const Ee=r.setMinutes(Q,Oe),Ge=r.setSeconds(Ee,0),_e=r.setSeconds(Ee,59);return!Ae({start:Ge,end:_e})||!Ce(Oe,C)}case"seconds":{const Ee=r.setSeconds(Q,Oe);return!Ae({start:Ee,end:Ee})||!Ce(Oe)}default:throw new Error("not supported")}},[a,Q,g,m,oe,v,C,x,r,y,M,U,ee]),le=b.useCallback(Oe=>{switch(Oe){case"hours":return{onChange:de=>{const ie=zW(de,oe,a);pe(r.setHours(Q,ie),"finish","hours")},items:W_n({now:U,value:j,ampm:a,utils:r,isDisabled:de=>ne(de,"hours"),timeStep:X.hours,resolveAriaLabel:$.hoursClockNumberText,valueOrReferenceDate:Q})};case"minutes":return{onChange:de=>{pe(r.setMinutes(Q,de),"finish","minutes")},items:p4e({value:r.getMinutes(Q),utils:r,isDisabled:de=>ne(de,"minutes"),resolveLabel:de=>r.format(r.setMinutes(U,de),"minutes"),timeStep:X.minutes,hasValue:!!j,resolveAriaLabel:$.minutesClockNumberText})};case"seconds":return{onChange:de=>{pe(r.setSeconds(Q,de),"finish","seconds")},items:p4e({value:r.getSeconds(Q),utils:r,isDisabled:de=>ne(de,"seconds"),resolveLabel:de=>r.format(r.setSeconds(U,de),"seconds"),timeStep:X.seconds,hasValue:!!j,resolveAriaLabel:$.secondsClockNumberText})};case"meridiem":{const de=by(r,"am"),ie=by(r,"pm");return{onChange:ae,items:[{value:"am",label:de,isSelected:()=>!!j&&oe==="am",isFocused:()=>!!Q&&oe==="am",ariaLabel:de},{value:"pm",label:ie,isSelected:()=>!!j&&oe==="pm",isFocused:()=>!!Q&&oe==="pm",ariaLabel:ie}]}}default:throw new Error(`Unknown view: ${Oe} found.`)}},[U,j,a,r,X.hours,X.minutes,X.seconds,$.hoursClockNumberText,$.minutesClockNumberText,$.secondsClockNumberText,oe,pe,Q,ne,ae]),he=b.useMemo(()=>{if(!i)return ee;const Oe=ee.filter(de=>de!=="meridiem");return Oe.reverse(),ee.includes("meridiem")&&Oe.push("meridiem"),Oe},[i,ee]),be=b.useMemo(()=>ee.reduce((Oe,de)=>Y({},Oe,{[de]:le(de)}),{}),[ee,le]),me=o,Me=B_n(me);return f.jsx(j_n,Y({ref:n,className:Oa(Me.root,P),ownerState:me,role:"group"},H,{children:he.map(Oe=>f.jsx(F_n,{items:be[Oe].items,onChange:be[Oe].onChange,active:se===Oe,autoFocus:l||te===Oe,disabled:N,readOnly:F,slots:c,slotProps:u,skipDisabled:L,"aria-label":$.selectViewText(Oe)},Oe))}))}),V_n=e=>{const t=Byn(e),{forwardedProps:n,internalProps:r}=Ilt(t,"date-time");return Elt({forwardedProps:n,internalProps:r,valueManager:Tu,fieldValueManager:_st,validator:AQ,valueType:"date-time"})},G_n=["slots","slotProps","InputProps","inputProps"],D0t=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiDateTimeField"}),{slots:i,slotProps:o,InputProps:a,inputProps:s}=r,l=Lt(r,G_n),c=r,u=i?.textField??(t.enableAccessibleFieldDOMStructure?Wlt:P3),d=Ho({elementType:u,externalSlotProps:o?.textField,externalForwardedProps:l,ownerState:c,additionalProps:{ref:n}});d.inputProps=Y({},s,d.inputProps),d.InputProps=Y({},a,d.InputProps);const p=V_n(d),h=qlt(p),g=Rlt(Y({},h,{slots:i,slotProps:o}));return f.jsx(u,Y({},g))});function $_n(e){return Bn("MuiSkeleton",e)}Ln("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const U_n=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:o,height:a}=e;return Yt({root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]},$_n,t)},hge=Uf`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`,fge=Uf`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`,X_n=typeof hge!="string"?Ow`
        animation: ${hge} 2s ease-in-out 0.5s infinite;
      `:null,Y_n=typeof fge!="string"?Ow`
        &::after {
          animation: ${fge} 2s linear 0.5s infinite;
        }
      `:null,K_n=rt("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(kr(({theme:e})=>{const t=Pfn(e.shape.borderRadius)||"px",n=Dfn(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:X_n||{animation:`${hge} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
                90deg,
                transparent,
                ${(e.vars||e).palette.action.hover},
                transparent
              )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Y_n||{"&::after":{animation:`${fge} 2s linear 0.5s infinite`}}}]}})),Q_n=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:o,component:a="span",height:s,style:l,variant:c="text",width:u,...d}=r,p={...r,animation:i,component:a,variant:c,hasChildren:!!d.children},h=U_n(p);return f.jsx(K_n,{as:a,ref:n,className:nr(h.root,o),ownerState:p,...d,style:{width:u,height:s,...l}})});function Z_n(e){return Bn("MuiPickersToolbarText",e)}const gge=Ln("MuiPickersToolbarText",["root","selected"]),J_n=["className","selected","value"],e5n=e=>{const{classes:t,selected:n}=e;return Yt({root:["root",n&&"selected"]},Z_n,t)},t5n=rt(i1,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${gge.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${gge.selected}`]:{color:(e.vars||e).palette.text.primary}})),k0t=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=Lt(r,J_n),s=e5n(r);return f.jsx(t5n,Y({ref:n,className:Oa(s.root,i),component:"span"},a,{children:o}))}),n5n=["align","className","selected","typographyClassName","value","variant","width"],r5n=e=>{const{classes:t}=e;return Yt({root:["root"]},Bst,t)},i5n=rt(PR,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),iC=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:a,typographyClassName:s,value:l,variant:c,width:u}=r,d=Lt(r,n5n),p=r5n(r);return f.jsx(i5n,Y({variant:"text",ref:n,className:Oa(p.root,o)},u?{sx:{width:u}}:{},d,{children:f.jsx(k0t,{align:i,className:s,variant:c,value:l,selected:a})}))}),aoe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:v,ampm:y,ampmInClock:M,slots:C,slotProps:x,readOnly:w,disabled:S,sx:A,autoFocus:z,showViewSwitcher:O,disableIgnoringDatePartForTimeValidation:T,timezone:I})=>f.jsx(s_n,{view:e,onViewChange:t,focusedView:n&&hP(n)?n:null,onFocusedViewChange:r,views:i.filter(hP),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:v,ampm:y,ampmInClock:M,slots:C,slotProps:x,readOnly:w,disabled:S,sx:A,autoFocus:z,showViewSwitcher:O,disableIgnoringDatePartForTimeValidation:T,timezone:I}),o5n=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:v,ampm:y,slots:M,slotProps:C,readOnly:x,disabled:w,sx:S,autoFocus:A,disableIgnoringDatePartForTimeValidation:z,timeSteps:O,skipDisabled:T,timezone:I})=>f.jsx(R_n,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(hP),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:v,ampm:y,slots:M,slotProps:C,readOnly:x,disabled:w,sx:S,autoFocus:A,disableIgnoringDatePartForTimeValidation:z,timeStep:O?.minutes,skipDisabled:T,timezone:I}),h4e=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:v,ampm:y,slots:M,slotProps:C,readOnly:x,disabled:w,sx:S,autoFocus:A,disableIgnoringDatePartForTimeValidation:z,timeSteps:O,skipDisabled:T,timezone:I})=>f.jsx(H_n,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(hP),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:v,ampm:y,slots:M,slotProps:C,readOnly:x,disabled:w,sx:S,autoFocus:A,disableIgnoringDatePartForTimeValidation:z,timeSteps:O,skipDisabled:T,timezone:I}),a5n=["views","format"],L0t=(e,t,n)=>{let{views:r,format:i}=t,o=Lt(t,a5n);if(i)return i;const a=[],s=[];if(r.forEach(u=>{hP(u)?s.push(u):pP(u)&&a.push(u)}),s.length===0)return OW(e,Y({views:a},o),!1);if(a.length===0)return vDe(e,Y({views:s},o));const l=vDe(e,Y({views:s},o));return`${OW(e,Y({views:a},o),!1)} ${l}`},s5n=(e,t,n)=>n?t.filter(r=>!Z5(r)||r==="hours"):e?[...t,"meridiem"]:t,l5n=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function c5n({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=Y({hours:1,minutes:5,seconds:5},n),a=l5n(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:s5n(t,r,a)}}function u5n(e){return Bn("MuiTab",e)}const Lh=Ln("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),d5n=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${jt(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Yt(c,u5n,t)},p5n=rt(Ib,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${jt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Lh.iconWrapper}`]:t.iconWrapper},{[`& .${Lh.icon}`]:t.icon}]}})(kr(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Lh.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Lh.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Lh.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Lh.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Lh.selected}`]:{opacity:1},[`&.${Lh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Lh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Lh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Lh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Lh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),mge=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:p,onClick:h,onFocus:g,selected:m,selectionFollowsFocus:v,textColor:y="inherit",value:M,wrapped:C=!1,...x}=r,w={...r,disabled:o,disableFocusRipple:a,selected:m,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:y,wrapped:C},S=d5n(w),A=l&&d&&b.isValidElement(l)?b.cloneElement(l,{className:nr(S.icon,l.props.className)}):l,z=T=>{!m&&p&&p(T,M),h&&h(T)},O=T=>{v&&!m&&p&&p(T,M),g&&g(T)};return f.jsxs(p5n,{focusRipple:!a,className:nr(S.root,i),ref:n,role:"tab","aria-selected":m,disabled:o,onClick:z,onFocus:O,ownerState:w,tabIndex:m?0:-1,...x,children:[c==="top"||c==="start"?f.jsxs(b.Fragment,{children:[A,d]}):f.jsxs(b.Fragment,{children:[d,A]}),u]})});function h5n(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function f5n(e,t,n,r={},i=()=>{}){const{ease:o=h5n,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=p=>{if(c){i(new Error("Animation cancelled"));return}s===null&&(s=p);const h=Math.min(1,(p-s)/a);if(t[e]=o(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const g5n={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function m5n(e){const{onChange:t,...n}=e,r=b.useRef(),i=b.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return To(()=>{const a=zw(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),s=Mm(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),b.useEffect(()=>{o(),t(r.current)},[t]),f.jsx("div",{style:g5n,...n,ref:i})}const _0t=Pu(f.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),N0t=Pu(f.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function v5n(e){return Bn("MuiTabScrollButton",e)}const b5n=Ln("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),y5n=e=>{const{classes:t,orientation:n,disabled:r}=e;return Yt({root:["root",n,r&&"disabled"]},v5n,t)},M5n=rt(Ib,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${b5n.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),C5n=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:a={},direction:s,orientation:l,disabled:c,...u}=r,d=ts(),p={isRtl:d,...r},h=y5n(p),g=o.StartScrollButtonIcon??_0t,m=o.EndScrollButtonIcon??N0t,v=Ho({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),y=Ho({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return f.jsx(M5n,{component:"div",className:nr(h.root,i),ref:n,role:null,ownerState:p,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:s==="left"?f.jsx(g,{...v}):f.jsx(m,{...y})})});function x5n(e){return Bn("MuiTabs",e)}const h7=Ln("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),f4e=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,g4e=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,A8=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},w5n=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Yt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},x5n,l)},S5n=rt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${h7.scrollButtons}`]:t.scrollButtons},{[`& .${h7.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(kr(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${h7.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),A5n=rt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),O5n=rt("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),z5n=rt("span",{name:"MuiTabs",slot:"Indicator"})(kr(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),T5n=rt(m5n)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),m4e={},F0t=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTabs"}),i=$b(),o=ts(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:m,orientation:v="horizontal",ScrollButtonComponent:y,scrollButtons:M="auto",selectionFollowsFocus:C,slots:x={},slotProps:w={},TabIndicatorProps:S={},TabScrollButtonProps:A={},textColor:z="primary",value:O,variant:T="standard",visibleScrollbar:I=!1,...P}=r,N=T==="scrollable",F=v==="vertical",L=F?"scrollTop":"scrollLeft",W=F?"top":"left",H=F?"bottom":"right",j=F?"clientHeight":"clientWidth",G=F?"height":"width",q={...r,component:p,allowScrollButtonsMobile:h,indicatorColor:g,orientation:v,vertical:F,scrollButtons:M,textColor:z,variant:T,visibleScrollbar:I,fixed:!N,hideScrollbar:N&&!I,scrollableX:N&&!F,scrollableY:N&&F,centered:c&&!N,scrollButtonsHideMobile:!h},$=w5n(q),U=Ho({elementType:x.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:q}),X=Ho({elementType:x.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:q}),[Q,re]=b.useState(!1),[ee,se]=b.useState(m4e),[pe,te]=b.useState(!1),[ce,oe]=b.useState(!1),[ae,ne]=b.useState(!1),[le,he]=b.useState({overflow:"hidden",scrollbarWidth:0}),be=new Map,me=b.useRef(null),Me=b.useRef(null),Oe={slots:x,slotProps:{indicator:S,scrollButton:A,...w}},de=()=>{const ct=me.current;let lt;if(ct){const ft=ct.getBoundingClientRect();lt={clientWidth:ct.clientWidth,scrollLeft:ct.scrollLeft,scrollTop:ct.scrollTop,scrollWidth:ct.scrollWidth,top:ft.top,bottom:ft.bottom,left:ft.left,right:ft.right}}let Je;if(ct&&O!==!1){const ft=Me.current.children;if(ft.length>0){const Tt=ft[be.get(O)];Je=Tt?Tt.getBoundingClientRect():null}}return{tabsMeta:lt,tabMeta:Je}},ie=en(()=>{const{tabsMeta:ct,tabMeta:lt}=de();let Je=0,ft;F?(ft="top",lt&&ct&&(Je=lt.top-ct.top+ct.scrollTop)):(ft=o?"right":"left",lt&&ct&&(Je=(o?-1:1)*(lt[ft]-ct[ft]+ct.scrollLeft)));const Tt={[ft]:Je,[G]:lt?lt[G]:0};if(typeof ee[ft]!="number"||typeof ee[G]!="number")se(Tt);else{const St=Math.abs(ee[ft]-Tt[ft]),un=Math.abs(ee[G]-Tt[G]);(St>=1||un>=1)&&se(Tt)}}),ue=(ct,{animation:lt=!0}={})=>{lt?f5n(L,me.current,ct,{duration:i.transitions.duration.standard}):me.current[L]=ct},Ae=ct=>{let lt=me.current[L];F?lt+=ct:lt+=ct*(o?-1:1),ue(lt)},Ce=()=>{const ct=me.current[j];let lt=0;const Je=Array.from(Me.current.children);for(let ft=0;ft<Je.length;ft+=1){const Tt=Je[ft];if(lt+Tt[j]>ct){ft===0&&(lt=ct);break}lt+=Tt[j]}return lt},Ee=()=>{Ae(-1*Ce())},Ge=()=>{Ae(Ce())},[_e,{onChange:Ie,...Le}]=ni("scrollbar",{className:nr($.scrollableX,$.hideScrollbar),elementType:T5n,shouldForwardComponentProp:!0,externalForwardedProps:Oe,ownerState:q}),we=b.useCallback(ct=>{Ie?.(ct),he({overflow:null,scrollbarWidth:ct})},[Ie]),[ve,De]=ni("scrollButtons",{className:nr($.scrollButtons,A.className),elementType:C5n,externalForwardedProps:Oe,ownerState:q,additionalProps:{orientation:v,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:U,endScrollButtonIcon:X}}}),ze=()=>{const ct={};ct.scrollbarSizeListener=N?f.jsx(_e,{...Le,onChange:we}):null;const Je=N&&(M==="auto"&&(pe||ce)||M===!0);return ct.scrollButtonStart=Je?f.jsx(ve,{direction:o?"right":"left",onClick:Ee,disabled:!pe,...De}):null,ct.scrollButtonEnd=Je?f.jsx(ve,{direction:o?"left":"right",onClick:Ge,disabled:!ce,...De}):null,ct},Ve=en(ct=>{const{tabsMeta:lt,tabMeta:Je}=de();if(!(!Je||!lt)){if(Je[W]<lt[W]){const ft=lt[L]+(Je[W]-lt[W]);ue(ft,{animation:ct})}else if(Je[H]>lt[H]){const ft=lt[L]+(Je[H]-lt[H]);ue(ft,{animation:ct})}}}),Ke=en(()=>{N&&M!==!1&&ne(!ae)});b.useEffect(()=>{const ct=zw(()=>{me.current&&ie()});let lt;const Je=St=>{St.forEach(un=>{un.removedNodes.forEach($n=>{lt?.unobserve($n)}),un.addedNodes.forEach($n=>{lt?.observe($n)})}),ct(),Ke()},ft=Mm(me.current);ft.addEventListener("resize",ct);let Tt;return typeof ResizeObserver<"u"&&(lt=new ResizeObserver(ct),Array.from(Me.current.children).forEach(St=>{lt.observe(St)})),typeof MutationObserver<"u"&&(Tt=new MutationObserver(Je),Tt.observe(Me.current,{childList:!0})),()=>{ct.clear(),ft.removeEventListener("resize",ct),Tt?.disconnect(),lt?.disconnect()}},[ie,Ke]),b.useEffect(()=>{const ct=Array.from(Me.current.children),lt=ct.length;if(typeof IntersectionObserver<"u"&&lt>0&&N&&M!==!1){const Je=ct[0],ft=ct[lt-1],Tt={root:me.current,threshold:.99},St=yr=>{te(!yr[0].isIntersecting)},un=new IntersectionObserver(St,Tt);un.observe(Je);const $n=yr=>{oe(!yr[0].isIntersecting)},Yr=new IntersectionObserver($n,Tt);return Yr.observe(ft),()=>{un.disconnect(),Yr.disconnect()}}},[N,M,ae,u?.length]),b.useEffect(()=>{re(!0)},[]),b.useEffect(()=>{ie()}),b.useEffect(()=>{Ve(m4e!==ee)},[Ve,ee]),b.useImperativeHandle(l,()=>({updateIndicator:ie,updateScrollButtons:Ke}),[ie,Ke]);const[et,it]=ni("indicator",{className:nr($.indicator,S.className),elementType:z5n,externalForwardedProps:Oe,ownerState:q,additionalProps:{style:ee}}),Ft=f.jsx(et,{...it});let Pt=0;const Qn=b.Children.map(u,ct=>{if(!b.isValidElement(ct))return null;const lt=ct.props.value===void 0?Pt:ct.props.value;be.set(lt,Pt);const Je=lt===O;return Pt+=1,b.cloneElement(ct,{fullWidth:T==="fullWidth",indicator:Je&&!Q&&Ft,selected:Je,selectionFollowsFocus:C,onChange:m,textColor:z,value:lt,...Pt===1&&O===!1&&!ct.props.tabIndex?{tabIndex:0}:{}})}),ir=ct=>{if(ct.altKey||ct.shiftKey||ct.ctrlKey||ct.metaKey)return;const lt=Me.current,Je=Is(lt).activeElement;if(Je.getAttribute("role")!=="tab")return;let Tt=v==="horizontal"?"ArrowLeft":"ArrowUp",St=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&o&&(Tt="ArrowRight",St="ArrowLeft"),ct.key){case Tt:ct.preventDefault(),A8(lt,Je,g4e);break;case St:ct.preventDefault(),A8(lt,Je,f4e);break;case"Home":ct.preventDefault(),A8(lt,null,f4e);break;case"End":ct.preventDefault(),A8(lt,null,g4e);break}},jn=ze(),[Zn,Br]=ni("root",{ref:n,className:nr($.root,d),elementType:S5n,externalForwardedProps:{...Oe,...P,component:p},ownerState:q}),[vr,Ne]=ni("scroller",{ref:me,className:$.scroller,elementType:A5n,externalForwardedProps:Oe,ownerState:q,additionalProps:{style:{overflow:le.overflow,[F?`margin${o?"Left":"Right"}`:"marginBottom"]:I?void 0:-le.scrollbarWidth}}}),[He,Xe]=ni("list",{ref:Me,className:nr($.list,$.flexContainer),elementType:O5n,externalForwardedProps:Oe,ownerState:q,getSlotProps:ct=>({...ct,onKeyDown:lt=>{ir(lt),ct.onKeyDown?.(lt)}})});return f.jsxs(Zn,{...Br,children:[jn.scrollButtonStart,jn.scrollbarSizeListener,f.jsxs(vr,{...Ne,children:[f.jsx(He,{"aria-label":a,"aria-labelledby":s,"aria-orientation":v==="vertical"?"vertical":null,role:"tablist",...Xe,children:Qn}),Q&&Ft]}),jn.scrollButtonEnd]})});function E5n(e){return Bn("MuiDateTimePickerTabs",e)}Ln("MuiDateTimePickerTabs",["root"]);const R5n=e=>pP(e)?"date":"time",I5n=e=>e==="date"?"day":"hours",P5n=e=>{const{classes:t}=e;return Yt({root:["root"]},E5n,t)},D5n=rt(F0t,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${h7.indicator}`]:{bottom:"auto",top:0}}})),k5n=function(t){const n=Ro({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=f.jsx(Ybn,{}),onViewChange:i,timeIcon:o=f.jsx(Kbn,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667,className:l,sx:c}=n,u=Ed(),d=P5n(n),p=(h,g)=>{i(I5n(g))};return s?null:f.jsxs(D5n,{ownerState:n,variant:"fullWidth",value:R5n(a),onChange:p,className:Oa(l,d.root),sx:c,children:[f.jsx(mge,{value:"date","aria-label":u.dateTableLabel,icon:f.jsx(b.Fragment,{children:r})}),f.jsx(mge,{value:"time","aria-label":u.timeTableLabel,icon:f.jsx(b.Fragment,{children:o})})]})};function L5n(e){return Bn("MuiDateTimePickerToolbar",e)}const soe=Ln("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),_5n=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],N5n=e=>{const{classes:t,isLandscape:n,isRtl:r}=e;return Yt({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},L5n,t)},F5n=rt(jst,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${bgn.content} .${gge.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),W5n=rt("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),q5n=rt("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&t!=="desktop",style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&t!=="desktop"&&n,style:{flexDirection:"column-reverse"}}]}),B5n=rt("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),v4e=rt(k0t,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),j5n=rt("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${soe.ampmLabel}`]:t.ampmLabel},{[`&.${soe.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${soe.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function H5n(e){const t=Ro({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:o,view:a,isLandscape:s,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:d,disabled:p,readOnly:h,toolbarVariant:g="mobile",toolbarTitle:m,className:v}=t,y=Lt(t,_5n),M=ts(),C=Y({},t,{isRtl:M}),x=sa(),{meridiemMode:w,handleMeridiemChange:S}=ACe(i,n,o),A=!!(n&&!r),z=g==="desktop",O=Ed(),T=N5n(C),I=m??O.dateTimePickerToolbarTitle,P=F=>n?x.format(F,"hours12h"):x.format(F,"hours24h"),N=b.useMemo(()=>i?c?x.formatByString(i,c):x.format(i,"shortDate"):u,[i,c,u,x]);return f.jsxs(F5n,Y({isLandscape:s,className:Oa(T.root,v),toolbarTitle:I},y,{ownerState:C,children:[f.jsxs(W5n,{className:T.dateContainer,ownerState:C,children:[d.includes("year")&&f.jsx(iC,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?x.format(i,"year"):"–"}),d.includes("day")&&f.jsx(iC,{tabIndex:-1,variant:z?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:N})]}),f.jsxs(q5n,{className:T.timeContainer,ownerState:C,children:[f.jsxs(B5n,{className:T.timeDigitsContainer,ownerState:C,children:[d.includes("hours")&&f.jsxs(b.Fragment,{children:[f.jsx(iC,{variant:z?"h5":"h3",width:z&&!s?J5:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?P(i):"--"}),f.jsx(v4e,{variant:z?"h5":"h3",value:":",className:T.separator,ownerState:C}),f.jsx(iC,{variant:z?"h5":"h3",width:z&&!s?J5:void 0,onClick:()=>l("minutes"),selected:a==="minutes"||!d.includes("minutes")&&a==="hours",value:i?x.format(i,"minutes"):"--",disabled:!d.includes("minutes")})]}),d.includes("seconds")&&f.jsxs(b.Fragment,{children:[f.jsx(v4e,{variant:z?"h5":"h3",value:":",className:T.separator,ownerState:C}),f.jsx(iC,{variant:z?"h5":"h3",width:z&&!s?J5:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?x.format(i,"seconds"):"--"})]})]}),A&&!z&&f.jsxs(j5n,{className:T.ampmSelection,ownerState:C,children:[f.jsx(iC,{variant:"subtitle2",selected:w==="am",typographyClassName:T.ampmLabel,value:by(x,"am"),onClick:h?void 0:()=>S("am"),disabled:p}),f.jsx(iC,{variant:"subtitle2",selected:w==="pm",typographyClassName:T.ampmLabel,value:by(x,"pm"),onClick:h?void 0:()=>S("pm"),disabled:p})]}),n&&z&&f.jsx(iC,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&w?by(x,w):"--",width:J5})]})]}))}function W0t(e,t){const n=sa(),r=T3(),i=Ro({props:e,name:t}),o=i.ampm??n.is12HourCycleInCurrentLocale(),a=b.useMemo(()=>i.localeText?.toolbarTitle==null?i.localeText:Y({},i.localeText,{dateTimePickerToolbarTitle:i.localeText.toolbarTitle}),[i.localeText]);return Y({},i,Est({views:i.views,openTo:i.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:o,localeText:a,orientation:i.orientation??"portrait",disableIgnoringDatePartForTimeValidation:i.disableIgnoringDatePartForTimeValidation??!!(i.minDateTime||i.maxDateTime||i.disablePast||i.disableFuture),disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:w0(n,i.minDateTime??i.minDate,r.minDate),maxDate:w0(n,i.maxDateTime??i.maxDate,r.maxDate),minTime:i.minDateTime??i.minTime,maxTime:i.maxDateTime??i.maxTime,slots:Y({toolbar:H5n,tabs:k5n},i.slots),slotProps:Y({},i.slotProps,{toolbar:Y({ampm:o},i.slotProps?.toolbar)})})}const V5n=b.forwardRef(function(t,n){const r=ts(),{toolbar:i,tabs:o,content:a,actionBar:s,shortcuts:l}=flt(t),{sx:c,className:u,isLandscape:d,classes:p}=t,h=s&&(s.props.actions?.length??0)>0,g=Y({},t,{isRtl:r});return f.jsxs(glt,{ref:n,className:Oa(Bg.root,p?.root,u),sx:[{[`& .${Bg.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Bg.actionBar}`]:{gridRow:5}},...Array.isArray(c)?c:[c]],ownerState:g,children:[d?l:i,d?i:l,f.jsxs(mlt,{className:Oa(Bg.contentWrapper,p?.contentWrapper),sx:{display:"grid"},children:[a,o,h&&f.jsx($W,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),s]})}),G5n=["openTo","focusedView","timeViewsCount"],$5n=function(t,n,r){const{openTo:i,focusedView:o,timeViewsCount:a}=r,s=Lt(r,G5n),l=Y({},s,{autoFocus:!1,focusedView:null,sx:[{[`&.${d4e.root}`]:{borderBottom:0},[`&.${d4e.root}, .${D_n.root}, &.${S_n.root}`]:{maxHeight:PQ}}]}),c=Z5(n);return f.jsxs(b.Fragment,{children:[t[c?"day":n]?.(Y({},r,{view:c?"day":n,focusedView:o&&pP(o)?o:null,views:r.views.filter(pP),sx:[{gridColumn:1},...l.sx]})),a>0&&f.jsxs(b.Fragment,{children:[f.jsx($W,{orientation:"vertical",sx:{gridColumn:2}}),t[c?n:"hours"]?.(Y({},l,{view:c?n:"hours",focusedView:o&&Z5(o)?o:null,openTo:Z5(i)?i:"hours",views:r.views.filter(Z5),sx:[{gridColumn:3},...l.sx]}))]})]})},q0t=b.forwardRef(function(t,n){const r=Ed(),i=sa(),o=W0t(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:a,thresholdToRenderTimeInASingleColumn:s,views:l,timeSteps:c}=c5n(o),u=a?o5n:h4e,d=Y({day:Tf,month:Tf,year:Tf,hours:u,minutes:u,seconds:u,meridiem:u},o.viewRenderers),p=o.ampmInClock??!0,g=d.hours?.name===h4e.name?l:l.filter(M=>M!=="meridiem"),m=a?[]:["accept"],v=Y({},o,{viewRenderers:d,format:L0t(i,o),views:g,yearsPerRow:o.yearsPerRow??4,ampmInClock:p,timeSteps:c,thresholdToRenderTimeInASingleColumn:s,shouldRenderTimeInASingleColumn:a,slots:Y({field:D0t,layout:V5n,openPickerIcon:l9},o.slots),slotProps:Y({},o.slotProps,{field:M=>Y({},Pz(o.slotProps?.field,M),OQ(o),{ref:n}),toolbar:Y({hidden:!0,ampmInClock:p,toolbarVariant:"desktop"},o.slotProps?.toolbar),tabs:Y({hidden:!0},o.slotProps?.tabs),actionBar:M=>Y({actions:m},Pz(o.slotProps?.actionBar,M))})}),{renderPicker:y}=ylt({props:v,valueManager:Tu,valueType:"date-time",getOpenDialogAriaText:SQ({utils:i,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:v.localeText?.openDatePickerDialogue}),validator:AQ,rendererInterceptor:$5n});return y()});q0t.propTypes={ampm:Z.bool,ampmInClock:Z.bool,autoFocus:Z.bool,className:Z.string,closeOnSelect:Z.bool,dayOfWeekFormatter:Z.func,defaultValue:Z.object,disabled:Z.bool,disableFuture:Z.bool,disableHighlightToday:Z.bool,disableIgnoringDatePartForTimeValidation:Z.bool,disableOpenPicker:Z.bool,disablePast:Z.bool,displayWeekNumber:Z.bool,enableAccessibleFieldDOMStructure:Z.any,fixedWeekNumber:Z.number,format:Z.string,formatDensity:Z.oneOf(["dense","spacious"]),inputRef:CQ,label:Z.node,loading:Z.bool,localeText:Z.object,maxDate:Z.object,maxDateTime:Z.object,maxTime:Z.object,minDate:Z.object,minDateTime:Z.object,minTime:Z.object,minutesStep:Z.number,monthsPerRow:Z.oneOf([3,4]),name:Z.string,onAccept:Z.func,onChange:Z.func,onClose:Z.func,onError:Z.func,onMonthChange:Z.func,onOpen:Z.func,onSelectedSectionsChange:Z.func,onViewChange:Z.func,onYearChange:Z.func,open:Z.bool,openTo:Z.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Z.oneOf(["landscape","portrait"]),readOnly:Z.bool,reduceAnimations:Z.bool,referenceDate:Z.object,renderLoading:Z.func,selectedSections:Z.oneOfType([Z.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Z.number]),shouldDisableDate:Z.func,shouldDisableMonth:Z.func,shouldDisableTime:Z.func,shouldDisableYear:Z.func,showDaysOutsideCurrentMonth:Z.bool,skipDisabled:Z.bool,slotProps:Z.object,slots:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),thresholdToRenderTimeInASingleColumn:Z.number,timeSteps:Z.shape({hours:Z.number,minutes:Z.number,seconds:Z.number}),timezone:Z.string,value:Z.object,view:Z.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Z.shape({day:Z.func,hours:Z.func,meridiem:Z.func,minutes:Z.func,month:Z.func,seconds:Z.func,year:Z.func}),views:Z.arrayOf(Z.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:Z.oneOf(["asc","desc"]),yearsPerRow:Z.oneOf([3,4])};const B0t=b.forwardRef(function(t,n){const r=Ed(),i=sa(),o=W0t(t,"MuiMobileDateTimePicker"),a=Y({day:Tf,month:Tf,year:Tf,hours:aoe,minutes:aoe,seconds:aoe},o.viewRenderers),s=o.ampmInClock??!1,l=Y({},o,{viewRenderers:a,format:L0t(i,o),ampmInClock:s,slots:Y({field:D0t},o.slots),slotProps:Y({},o.slotProps,{field:u=>Y({},Pz(o.slotProps?.field,u),OQ(o),{ref:n}),toolbar:Y({hidden:!1,ampmInClock:s},o.slotProps?.toolbar),tabs:Y({hidden:!1},o.slotProps?.tabs)})}),{renderPicker:c}=Ylt({props:l,valueManager:Tu,valueType:"date-time",getOpenDialogAriaText:SQ({utils:i,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:AQ});return c()});B0t.propTypes={ampm:Z.bool,ampmInClock:Z.bool,autoFocus:Z.bool,className:Z.string,closeOnSelect:Z.bool,dayOfWeekFormatter:Z.func,defaultValue:Z.object,disabled:Z.bool,disableFuture:Z.bool,disableHighlightToday:Z.bool,disableIgnoringDatePartForTimeValidation:Z.bool,disableOpenPicker:Z.bool,disablePast:Z.bool,displayWeekNumber:Z.bool,enableAccessibleFieldDOMStructure:Z.any,fixedWeekNumber:Z.number,format:Z.string,formatDensity:Z.oneOf(["dense","spacious"]),inputRef:CQ,label:Z.node,loading:Z.bool,localeText:Z.object,maxDate:Z.object,maxDateTime:Z.object,maxTime:Z.object,minDate:Z.object,minDateTime:Z.object,minTime:Z.object,minutesStep:Z.number,monthsPerRow:Z.oneOf([3,4]),name:Z.string,onAccept:Z.func,onChange:Z.func,onClose:Z.func,onError:Z.func,onMonthChange:Z.func,onOpen:Z.func,onSelectedSectionsChange:Z.func,onViewChange:Z.func,onYearChange:Z.func,open:Z.bool,openTo:Z.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Z.oneOf(["landscape","portrait"]),readOnly:Z.bool,reduceAnimations:Z.bool,referenceDate:Z.object,renderLoading:Z.func,selectedSections:Z.oneOfType([Z.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),Z.number]),shouldDisableDate:Z.func,shouldDisableMonth:Z.func,shouldDisableTime:Z.func,shouldDisableYear:Z.func,showDaysOutsideCurrentMonth:Z.bool,slotProps:Z.object,slots:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),timezone:Z.string,value:Z.object,view:Z.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Z.shape({day:Z.func,hours:Z.func,minutes:Z.func,month:Z.func,seconds:Z.func,year:Z.func}),views:Z.arrayOf(Z.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:Z.oneOf(["asc","desc"]),yearsPerRow:Z.oneOf([3,4])};const U5n=["desktopModeMediaQuery"],Cd=b.forwardRef(function(t,n){const r=Ro({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=alt}=r,o=Lt(r,U5n);return JMe(i,{defaultMatches:!0})?f.jsx(q0t,Y({ref:n},o)):f.jsx(B0t,Y({ref:n},o))}),X5n={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"},Y5n={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"},b4e=["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(`
`);class K5n{constructor({locale:t,formats:n,instance:r}={}){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=X5n,this.setLocaleToValue=i=>{const o=this.getCurrentLocaleCode();return o===i.locale()?i:i.locale(o)},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=i=>{const o=this.moment(i).local();return this.locale===void 0?o:o.locale(this.locale)},this.createUTCDate=i=>{const o=this.moment.utc(i);return this.locale===void 0?o:o.locale(this.locale)},this.createTZDate=(i,o)=>{if(!this.hasTimezonePlugin())throw new Error(b4e);const a=o==="default"?this.moment(i):this.moment.tz(i,o);return this.locale===void 0?a:a.locale(this.locale)},this.date=(i,o="default")=>i===null?null:o==="UTC"?this.createUTCDate(i):o==="system"||o==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(i):this.createTZDate(i,o),this.getInvalidDate=()=>this.moment(new Date("Invalid Date")),this.getTimezone=i=>{const o=i._z?.name,a=i.isUTC()?"UTC":"system";return o??this.moment.defaultZone?.name??a},this.setTimezone=(i,o)=>{if(this.getTimezone(i)===o)return i;if(o==="UTC")return i.clone().utc();if(o==="system")return i.clone().local();if(!this.hasTimezonePlugin()){if(o!=="default")throw new Error(b4e);return i}const a=o==="default"?this.moment.defaultZone?.name??"system":o;if(a==="system")return i.clone().local();const s=i.clone();return s.tz(a),s},this.toJsDate=i=>i.toDate(),this.parse=(i,o)=>i===""?null:this.locale?this.moment(i,o,this.locale,!0):this.moment(i,o,!0),this.getCurrentLocaleCode=()=>this.locale||mt.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(mt.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=i=>{const o=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return i.match(o).map(a=>{const s=a[0];return s==="L"||s===";"?mt.localeData(this.getCurrentLocaleCode()).longDateFormat(a):a}).join("")},this.isValid=i=>i==null?!1:i.isValid(),this.format=(i,o)=>this.formatByString(i,this.formats[o]),this.formatByString=(i,o)=>{const a=i.clone();return a.locale(this.getCurrentLocaleCode()),a.format(o)},this.formatNumber=i=>i,this.isEqual=(i,o)=>i===null&&o===null?!0:i===null||o===null?!1:i.isSame(o),this.isSameYear=(i,o)=>i.isSame(o,"year"),this.isSameMonth=(i,o)=>i.isSame(o,"month"),this.isSameDay=(i,o)=>i.isSame(o,"day"),this.isSameHour=(i,o)=>i.isSame(o,"hour"),this.isAfter=(i,o)=>i.isAfter(o),this.isAfterYear=(i,o)=>i.isAfter(o,"year"),this.isAfterDay=(i,o)=>i.isAfter(o,"day"),this.isBefore=(i,o)=>i.isBefore(o),this.isBeforeYear=(i,o)=>i.isBefore(o,"year"),this.isBeforeDay=(i,o)=>i.isBefore(o,"day"),this.isWithinRange=(i,[o,a])=>i.isBetween(o,a,null,"[]"),this.startOfYear=i=>i.clone().startOf("year"),this.startOfMonth=i=>i.clone().startOf("month"),this.startOfWeek=i=>this.setLocaleToValue(i.clone()).startOf("week"),this.startOfDay=i=>i.clone().startOf("day"),this.endOfYear=i=>i.clone().endOf("year"),this.endOfMonth=i=>i.clone().endOf("month"),this.endOfWeek=i=>this.setLocaleToValue(i.clone()).endOf("week"),this.endOfDay=i=>i.clone().endOf("day"),this.addYears=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"years"):i.clone().add(o,"years"),this.addMonths=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"months"):i.clone().add(o,"months"),this.addWeeks=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"weeks"):i.clone().add(o,"weeks"),this.addDays=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"days"):i.clone().add(o,"days"),this.addHours=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"hours"):i.clone().add(o,"hours"),this.addMinutes=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"minutes"):i.clone().add(o,"minutes"),this.addSeconds=(i,o)=>o<0?i.clone().subtract(Math.abs(o),"seconds"):i.clone().add(o,"seconds"),this.getYear=i=>i.get("year"),this.getMonth=i=>i.get("month"),this.getDate=i=>i.get("date"),this.getHours=i=>i.get("hours"),this.getMinutes=i=>i.get("minutes"),this.getSeconds=i=>i.get("seconds"),this.getMilliseconds=i=>i.get("milliseconds"),this.setYear=(i,o)=>i.clone().year(o),this.setMonth=(i,o)=>i.clone().month(o),this.setDate=(i,o)=>i.clone().date(o),this.setHours=(i,o)=>i.clone().hours(o),this.setMinutes=(i,o)=>i.clone().minutes(o),this.setSeconds=(i,o)=>i.clone().seconds(o),this.setMilliseconds=(i,o)=>i.clone().milliseconds(o),this.getDaysInMonth=i=>i.daysInMonth(),this.getWeekArray=i=>{const o=this.startOfWeek(this.startOfMonth(i)),a=this.endOfWeek(this.endOfMonth(i));let s=0,l=o,c=l.get("dayOfYear");const u=[];for(;l.isBefore(a);){const d=Math.floor(s/7);u[d]=u[d]||[],u[d].push(l);const p=c;l=this.addDays(l,1),c=l.get("dayOfYear"),p===c&&(l=l.add(12,"h").startOf("day")),s+=1}return u},this.getWeekNumber=i=>i.week(),this.getDayOfWeek=i=>i.day()+1,this.moment=r||mt,this.locale=t,this.formats=Y({},Y5n,n)}getYearRange([t,n]){const r=this.startOfYear(t),i=this.endOfYear(n),o=[];let a=r;for(;this.isBefore(a,i);)o.push(a),a=this.addYears(a,1);return o}}var D4={},y4e;function Q5n(){if(y4e)return D4;y4e=1;var e=ri(),t=ii();Object.defineProperty(D4,"__esModule",{value:!0}),D4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");return D4.default=i,D4}var Z5n=Q5n();const J5n=qn(Z5n);var k4={},M4e;function eNn(){if(M4e)return k4;M4e=1;var e=ri(),t=ii();Object.defineProperty(k4,"__esModule",{value:!0}),k4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");return k4.default=i,k4}var tNn=eNn();const Nxe=qn(tNn);var L4={},C4e;function nNn(){if(C4e)return L4;C4e=1;var e=ri(),t=ii();Object.defineProperty(L4,"__esModule",{value:!0}),L4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart");return L4.default=i,L4}var rNn=nNn();const iNn=qn(rNn);var _4={},x4e;function oNn(){if(x4e)return _4;x4e=1;var e=ri(),t=ii();Object.defineProperty(_4,"__esModule",{value:!0}),_4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"}),"Timeline");return _4.default=i,_4}var aNn=oNn();const sNn=qn(aNn);function j0t(e,t){return function(){return e.apply(t,arguments)}}const{toString:lNn}=Object.prototype,{getPrototypeOf:Fxe}=Object,{iterator:bZ,toStringTag:H0t}=Symbol,yZ=(e=>t=>{const n=lNn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Lm=e=>(e=e.toLowerCase(),t=>yZ(t)===e),MZ=e=>t=>typeof t===e,{isArray:WD}=Array,CP=MZ("undefined");function hB(e){return e!==null&&!CP(e)&&e.constructor!==null&&!CP(e.constructor)&&hp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const V0t=Lm("ArrayBuffer");function cNn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&V0t(e.buffer),t}const uNn=MZ("string"),hp=MZ("function"),G0t=MZ("number"),fB=e=>e!==null&&typeof e=="object",dNn=e=>e===!0||e===!1,f7=e=>{if(yZ(e)!=="object")return!1;const t=Fxe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(H0t in e)&&!(bZ in e)},pNn=e=>{if(!fB(e)||hB(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},hNn=Lm("Date"),fNn=Lm("File"),gNn=Lm("Blob"),mNn=Lm("FileList"),vNn=e=>fB(e)&&hp(e.pipe),bNn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||hp(e.append)&&((t=yZ(e))==="formdata"||t==="object"&&hp(e.toString)&&e.toString()==="[object FormData]"))},yNn=Lm("URLSearchParams"),[MNn,CNn,xNn,wNn]=["ReadableStream","Request","Response","Headers"].map(Lm),SNn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gB(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),WD(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(hB(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function $0t(e,t){if(hB(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const dO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,U0t=e=>!CP(e)&&e!==dO;function vge(){const{caseless:e,skipUndefined:t}=U0t(this)&&this||{},n={},r=(i,o)=>{const a=e&&$0t(n,o)||o;f7(n[a])&&f7(i)?n[a]=vge(n[a],i):f7(i)?n[a]=vge({},i):WD(i)?n[a]=i.slice():(!t||!CP(i))&&(n[a]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&gB(arguments[i],r);return n}const ANn=(e,t,n,{allOwnKeys:r}={})=>(gB(t,(i,o)=>{n&&hp(i)?e[o]=j0t(i,n):e[o]=i},{allOwnKeys:r}),e),ONn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zNn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},TNn=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Fxe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ENn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},RNn=e=>{if(!e)return null;if(WD(e))return e;let t=e.length;if(!G0t(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},INn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fxe(Uint8Array)),PNn=(e,t)=>{const r=(e&&e[bZ]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},DNn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kNn=Lm("HTMLFormElement"),LNn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),w4e=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_Nn=Lm("RegExp"),X0t=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};gB(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},NNn=e=>{X0t(e,(t,n)=>{if(hp(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(hp(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},FNn=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return WD(e)?r(e):r(String(e).split(t)),n},WNn=()=>{},qNn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function BNn(e){return!!(e&&hp(e.append)&&e[H0t]==="FormData"&&e[bZ])}const jNn=e=>{const t=new Array(10),n=(r,i)=>{if(fB(r)){if(t.indexOf(r)>=0)return;if(hB(r))return r;if(!("toJSON"in r)){t[i]=r;const o=WD(r)?[]:{};return gB(r,(a,s)=>{const l=n(a,i+1);!CP(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},HNn=Lm("AsyncFunction"),VNn=e=>e&&(fB(e)||hp(e))&&hp(e.then)&&hp(e.catch),Y0t=((e,t)=>e?setImmediate:t?((n,r)=>(dO.addEventListener("message",({source:i,data:o})=>{i===dO&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),dO.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",hp(dO.postMessage)),GNn=typeof queueMicrotask<"u"?queueMicrotask.bind(dO):typeof process<"u"&&process.nextTick||Y0t,$Nn=e=>e!=null&&hp(e[bZ]),qt={isArray:WD,isArrayBuffer:V0t,isBuffer:hB,isFormData:bNn,isArrayBufferView:cNn,isString:uNn,isNumber:G0t,isBoolean:dNn,isObject:fB,isPlainObject:f7,isEmptyObject:pNn,isReadableStream:MNn,isRequest:CNn,isResponse:xNn,isHeaders:wNn,isUndefined:CP,isDate:hNn,isFile:fNn,isBlob:gNn,isRegExp:_Nn,isFunction:hp,isStream:vNn,isURLSearchParams:yNn,isTypedArray:INn,isFileList:mNn,forEach:gB,merge:vge,extend:ANn,trim:SNn,stripBOM:ONn,inherits:zNn,toFlatObject:TNn,kindOf:yZ,kindOfTest:Lm,endsWith:ENn,toArray:RNn,forEachEntry:PNn,matchAll:DNn,isHTMLForm:kNn,hasOwnProperty:w4e,hasOwnProp:w4e,reduceDescriptors:X0t,freezeMethods:NNn,toObjectSet:FNn,toCamelCase:LNn,noop:WNn,toFiniteNumber:qNn,findKey:$0t,global:dO,isContextDefined:U0t,isSpecCompliantForm:BNn,toJSONObject:jNn,isAsyncFn:HNn,isThenable:VNn,setImmediate:Y0t,asap:GNn,isIterable:$Nn};function po(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}qt.inherits(po,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qt.toJSONObject(this.config),code:this.code,status:this.status}}});const K0t=po.prototype,Q0t={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Q0t[e]={value:e}});Object.defineProperties(po,Q0t);Object.defineProperty(K0t,"isAxiosError",{value:!0});po.from=(e,t,n,r,i,o)=>{const a=Object.create(K0t);qt.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return po.call(a,s,l,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",o&&Object.assign(a,o),a};const UNn=null;function bge(e){return qt.isPlainObject(e)||qt.isArray(e)}function Z0t(e){return qt.endsWith(e,"[]")?e.slice(0,-2):e}function S4e(e,t,n){return e?e.concat(t).map(function(i,o){return i=Z0t(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function XNn(e){return qt.isArray(e)&&!e.some(bge)}const YNn=qt.toFlatObject(qt,{},null,function(t){return/^is[A-Z]/.test(t)});function CZ(e,t,n){if(!qt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=qt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!qt.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&qt.isSpecCompliantForm(t);if(!qt.isFunction(i))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(qt.isDate(g))return g.toISOString();if(qt.isBoolean(g))return g.toString();if(!l&&qt.isBlob(g))throw new po("Blob is not supported. Use a Buffer instead.");return qt.isArrayBuffer(g)||qt.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,m,v){let y=g;if(g&&!v&&typeof g=="object"){if(qt.endsWith(m,"{}"))m=r?m:m.slice(0,-2),g=JSON.stringify(g);else if(qt.isArray(g)&&XNn(g)||(qt.isFileList(g)||qt.endsWith(m,"[]"))&&(y=qt.toArray(g)))return m=Z0t(m),y.forEach(function(C,x){!(qt.isUndefined(C)||C===null)&&t.append(a===!0?S4e([m],x,o):a===null?m:m+"[]",c(C))}),!1}return bge(g)?!0:(t.append(S4e(v,m,o),c(g)),!1)}const d=[],p=Object.assign(YNn,{defaultVisitor:u,convertValue:c,isVisitable:bge});function h(g,m){if(!qt.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(g),qt.forEach(g,function(y,M){(!(qt.isUndefined(y)||y===null)&&i.call(t,y,qt.isString(M)?M.trim():M,m,p))===!0&&h(y,m?m.concat(M):[M])}),d.pop()}}if(!qt.isObject(e))throw new TypeError("data must be an object");return h(e),t}function A4e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Wxe(e,t){this._pairs=[],e&&CZ(e,this,t)}const J0t=Wxe.prototype;J0t.append=function(t,n){this._pairs.push([t,n])};J0t.toString=function(t){const n=t?function(r){return t.call(this,r,A4e)}:A4e;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function KNn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function e1t(e,t,n){if(!t)return e;const r=n&&n.encode||KNn;qt.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=qt.isURLSearchParams(t)?t.toString():new Wxe(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class O4e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){qt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const t1t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QNn=typeof URLSearchParams<"u"?URLSearchParams:Wxe,ZNn=typeof FormData<"u"?FormData:null,JNn=typeof Blob<"u"?Blob:null,eFn={isBrowser:!0,classes:{URLSearchParams:QNn,FormData:ZNn,Blob:JNn},protocols:["http","https","file","blob","url","data"]},qxe=typeof window<"u"&&typeof document<"u",yge=typeof navigator=="object"&&navigator||void 0,tFn=qxe&&(!yge||["ReactNative","NativeScript","NS"].indexOf(yge.product)<0),nFn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rFn=qxe&&window.location.href||"http://localhost",iFn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qxe,hasStandardBrowserEnv:tFn,hasStandardBrowserWebWorkerEnv:nFn,navigator:yge,origin:rFn},Symbol.toStringTag,{value:"Module"})),u0={...iFn,...eFn};function oFn(e,t){return CZ(e,new u0.classes.URLSearchParams,{visitor:function(n,r,i,o){return u0.isNode&&qt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function aFn(e){return qt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sFn(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function n1t(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&qt.isArray(i)?i.length:a,l?(qt.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!qt.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&qt.isArray(i[a])&&(i[a]=sFn(i[a])),!s)}if(qt.isFormData(e)&&qt.isFunction(e.entries)){const n={};return qt.forEachEntry(e,(r,i)=>{t(aFn(r),i,n,0)}),n}return null}function lFn(e,t,n){if(qt.isString(e))try{return(t||JSON.parse)(e),qt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const mB={transitional:t1t,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=qt.isObject(t);if(o&&qt.isHTMLForm(t)&&(t=new FormData(t)),qt.isFormData(t))return i?JSON.stringify(n1t(t)):t;if(qt.isArrayBuffer(t)||qt.isBuffer(t)||qt.isStream(t)||qt.isFile(t)||qt.isBlob(t)||qt.isReadableStream(t))return t;if(qt.isArrayBufferView(t))return t.buffer;if(qt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return oFn(t,this.formSerializer).toString();if((s=qt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return CZ(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),lFn(t)):t}],transformResponse:[function(t){const n=this.transitional||mB.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(qt.isResponse(t)||qt.isReadableStream(t))return t;if(t&&qt.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?po.from(s,po.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:u0.classes.FormData,Blob:u0.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qt.forEach(["delete","get","head","post","put","patch"],e=>{mB.headers[e]={}});const cFn=qt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uFn=e=>{const t={};let n,r,i;return e&&e.split(`
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&cFn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},z4e=Symbol("internals");function N4(e){return e&&String(e).trim().toLowerCase()}function g7(e){return e===!1||e==null?e:qt.isArray(e)?e.map(g7):String(e)}function dFn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const pFn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function loe(e,t,n,r,i){if(qt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!qt.isString(t)){if(qt.isString(r))return t.indexOf(r)!==-1;if(qt.isRegExp(r))return r.test(t)}}function hFn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fFn(e,t){const n=qt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let fp=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=N4(l);if(!u)throw new Error("header name must be a non-empty string");const d=qt.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=g7(s))}const a=(s,l)=>qt.forEach(s,(c,u)=>o(c,u,l));if(qt.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(qt.isString(t)&&(t=t.trim())&&!pFn(t))a(uFn(t),n);else if(qt.isObject(t)&&qt.isIterable(t)){let s={},l,c;for(const u of t){if(!qt.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?qt.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=N4(t),t){const r=qt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return dFn(i);if(qt.isFunction(n))return n.call(this,i,r);if(qt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=N4(t),t){const r=qt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||loe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=N4(a),a){const s=qt.findKey(r,a);s&&(!n||loe(r,r[s],s,n))&&(delete r[s],i=!0)}}return qt.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||loe(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return qt.forEach(this,(i,o)=>{const a=qt.findKey(r,o);if(a){n[a]=g7(i),delete n[o];return}const s=t?hFn(o):String(o).trim();s!==o&&delete n[o],n[s]=g7(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return qt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&qt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[z4e]=this[z4e]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=N4(a);r[s]||(fFn(i,a),r[s]=!0)}return qt.isArray(t)?t.forEach(o):o(t),this}};fp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);qt.reduceDescriptors(fp.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});qt.freezeMethods(fp);function coe(e,t){const n=this||mB,r=t||n,i=fp.from(r.headers);let o=r.data;return qt.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function r1t(e){return!!(e&&e.__CANCEL__)}function qD(e,t,n){po.call(this,e??"canceled",po.ERR_CANCELED,t,n),this.name="CanceledError"}qt.inherits(qD,po,{__CANCEL__:!0});function i1t(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new po("Request failed with status code "+n.status,[po.ERR_BAD_REQUEST,po.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gFn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mFn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const h=u&&c-u;return h?Math.round(p*1e3/h):void 0}}function vFn(e,t){let n=0,r=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const R9=(e,t,n=3)=>{let r=0;const i=mFn(50,250);return vFn(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},T4e=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},E4e=e=>(...t)=>qt.asap(()=>e(...t)),bFn=u0.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,u0.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(u0.origin),u0.navigator&&/(msie|trident)/i.test(u0.navigator.userAgent)):()=>!0,yFn=u0.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];qt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),qt.isString(r)&&a.push("path="+r),qt.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function MFn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function CFn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function o1t(e,t,n){let r=!MFn(t);return e&&(r||n==!1)?CFn(e,t):t}const R4e=e=>e instanceof fp?{...e}:e;function Wz(e,t){t=t||{};const n={};function r(c,u,d,p){return qt.isPlainObject(c)&&qt.isPlainObject(u)?qt.merge.call({caseless:p},c,u):qt.isPlainObject(u)?qt.merge({},u):qt.isArray(u)?u.slice():u}function i(c,u,d,p){if(qt.isUndefined(u)){if(!qt.isUndefined(c))return r(void 0,c,d,p)}else return r(c,u,d,p)}function o(c,u){if(!qt.isUndefined(u))return r(void 0,u)}function a(c,u){if(qt.isUndefined(u)){if(!qt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>i(R4e(c),R4e(u),d,!0)};return qt.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,p=d(e[u],t[u],u);qt.isUndefined(p)&&d!==s||(n[u]=p)}),n}const a1t=e=>{const t=Wz({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=fp.from(a),t.url=e1t(o1t(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),qt.isFormData(n)){if(u0.hasStandardBrowserEnv||u0.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(qt.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&a.set(u,d)})}}if(u0.hasStandardBrowserEnv&&(r&&qt.isFunction(r)&&(r=r(t)),r||r!==!1&&bFn(t.url))){const l=i&&o&&yFn.read(o);l&&a.set(i,l)}return t},xFn=typeof XMLHttpRequest<"u",wFn=xFn&&function(e){return new Promise(function(n,r){const i=a1t(e);let o=i.data;const a=fp.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,p,h,g;function m(){h&&h(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function y(){if(!v)return;const C=fp.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:C,config:e,request:v};i1t(function(A){n(A),m()},function(A){r(A),m()},w),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new po("Request aborted",po.ECONNABORTED,e,v)),v=null)},v.onerror=function(x){const w=x&&x.message?x.message:"Network Error",S=new po(w,po.ERR_NETWORK,e,v);S.event=x||null,r(S),v=null},v.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||t1t;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new po(x,w.clarifyTimeoutError?po.ETIMEDOUT:po.ECONNABORTED,e,v)),v=null},o===void 0&&a.setContentType(null),"setRequestHeader"in v&&qt.forEach(a.toJSON(),function(x,w){v.setRequestHeader(w,x)}),qt.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),c&&([p,g]=R9(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([d,h]=R9(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=C=>{v&&(r(!C||C.type?new qD(null,e,v):C),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const M=gFn(i.url);if(M&&u0.protocols.indexOf(M)===-1){r(new po("Unsupported protocol "+M+":",po.ERR_BAD_REQUEST,e));return}v.send(o||null)})},SFn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof po?u:new qD(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new po(`timeout ${t} of ms exceeded`,po.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>qt.asap(s),l}},AFn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},OFn=async function*(e,t){for await(const n of zFn(e))yield*AFn(n,t)},zFn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},I4e=(e,t,n,r)=>{const i=OFn(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let p=o+=d;n(p)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},P4e=64*1024,{isFunction:O8}=qt,TFn=(({Request:e,Response:t})=>({Request:e,Response:t}))(qt.global),{ReadableStream:D4e,TextEncoder:k4e}=qt.global,L4e=(e,...t)=>{try{return!!e(...t)}catch{return!1}},EFn=e=>{e=qt.merge.call({skipUndefined:!0},TFn,e);const{fetch:t,Request:n,Response:r}=e,i=t?O8(t):typeof fetch=="function",o=O8(n),a=O8(r);if(!i)return!1;const s=i&&O8(D4e),l=i&&(typeof k4e=="function"?(g=>m=>g.encode(m))(new k4e):async g=>new Uint8Array(await new n(g).arrayBuffer())),c=o&&s&&L4e(()=>{let g=!1;const m=new n(u0.origin,{body:new D4e,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!m}),u=a&&s&&L4e(()=>qt.isReadableStream(new r("").body)),d={stream:u&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!d[g]&&(d[g]=(m,v)=>{let y=m&&m[g];if(y)return y.call(m);throw new po(`Response type '${g}' is not supported`,po.ERR_NOT_SUPPORT,v)})});const p=async g=>{if(g==null)return 0;if(qt.isBlob(g))return g.size;if(qt.isSpecCompliantForm(g))return(await new n(u0.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(qt.isArrayBufferView(g)||qt.isArrayBuffer(g))return g.byteLength;if(qt.isURLSearchParams(g)&&(g=g+""),qt.isString(g))return(await l(g)).byteLength},h=async(g,m)=>{const v=qt.toFiniteNumber(g.getContentLength());return v??p(m)};return async g=>{let{url:m,method:v,data:y,signal:M,cancelToken:C,timeout:x,onDownloadProgress:w,onUploadProgress:S,responseType:A,headers:z,withCredentials:O="same-origin",fetchOptions:T}=a1t(g),I=t||fetch;A=A?(A+"").toLowerCase():"text";let P=SFn([M,C&&C.toAbortSignal()],x),N=null;const F=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let L;try{if(S&&c&&v!=="get"&&v!=="head"&&(L=await h(z,y))!==0){let $=new n(m,{method:"POST",body:y,duplex:"half"}),U;if(qt.isFormData(y)&&(U=$.headers.get("content-type"))&&z.setContentType(U),$.body){const[X,Q]=T4e(L,R9(E4e(S)));y=I4e($.body,P4e,X,Q)}}qt.isString(O)||(O=O?"include":"omit");const W=o&&"credentials"in n.prototype,H={...T,signal:P,method:v.toUpperCase(),headers:z.normalize().toJSON(),body:y,duplex:"half",credentials:W?O:void 0};N=o&&new n(m,H);let j=await(o?I(N,T):I(m,H));const G=u&&(A==="stream"||A==="response");if(u&&(w||G&&F)){const $={};["status","statusText","headers"].forEach(re=>{$[re]=j[re]});const U=qt.toFiniteNumber(j.headers.get("content-length")),[X,Q]=w&&T4e(U,R9(E4e(w),!0))||[];j=new r(I4e(j.body,P4e,X,()=>{Q&&Q(),F&&F()}),$)}A=A||"text";let q=await d[qt.findKey(d,A)||"text"](j,g);return!G&&F&&F(),await new Promise(($,U)=>{i1t($,U,{data:q,headers:fp.from(j.headers),status:j.status,statusText:j.statusText,config:g,request:N})})}catch(W){throw F&&F(),W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)?Object.assign(new po("Network Error",po.ERR_NETWORK,g,N),{cause:W.cause||W}):po.from(W,W&&W.code,g,N)}}},RFn=new Map,s1t=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,s=a,l,c,u=RFn;for(;s--;)l=o[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:EFn(t)),u=c;return c};s1t();const Mge={http:UNn,xhr:wFn,fetch:{get:s1t}};qt.forEach(Mge,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _4e=e=>`- ${e}`,IFn=e=>qt.isFunction(e)||e===null||e===!1,l1t={getAdapter:(e,t)=>{e=qt.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let s;if(i=r,!IFn(r)&&(i=Mge[(s=String(r)).toLowerCase()],i===void 0))throw new po(`Unknown adapter '${s}'`);if(i&&(qt.isFunction(i)||(i=i.get(t))))break;o[s||"#"+a]=i}if(!i){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
`+a.map(_4e).join(`
`):" "+_4e(a[0]):"as no adapter specified";throw new po("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:Mge};function uoe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qD(null,e)}function N4e(e){return uoe(e),e.headers=fp.from(e.headers),e.data=coe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),l1t.getAdapter(e.adapter||mB.adapter,e)(e).then(function(r){return uoe(e),r.data=coe.call(e,e.transformResponse,r),r.headers=fp.from(r.headers),r},function(r){return r1t(r)||(uoe(e),r&&r.response&&(r.response.data=coe.call(e,e.transformResponse,r.response),r.response.headers=fp.from(r.response.headers))),Promise.reject(r)})}const c1t="1.12.2",xZ={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xZ[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const F4e={};xZ.transitional=function(t,n,r){function i(o,a){return"[Axios v"+c1t+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new po(i(a," has been removed"+(n?" in "+n:"")),po.ERR_DEPRECATED);return n&&!F4e[a]&&(F4e[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};xZ.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function PFn(e,t,n){if(typeof e!="object")throw new po("options must be an object",po.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new po("option "+o+" must be "+l,po.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new po("Unknown option "+o,po.ERR_BAD_OPTION)}}const m7={assertOptions:PFn,validators:xZ},hv=m7.validators;let $O=class{constructor(t){this.defaults=t||{},this.interceptors={request:new O4e,response:new O4e}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Wz(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&m7.assertOptions(r,{silentJSONParsing:hv.transitional(hv.boolean),forcedJSONParsing:hv.transitional(hv.boolean),clarifyTimeoutError:hv.transitional(hv.boolean)},!1),i!=null&&(qt.isFunction(i)?n.paramsSerializer={serialize:i}:m7.assertOptions(i,{encode:hv.function,serialize:hv.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),m7.assertOptions(n,{baseUrl:hv.spelling("baseURL"),withXsrfToken:hv.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&qt.merge(o.common,o[n.method]);o&&qt.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=fp.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,p;if(!l){const g=[N4e.bind(this),void 0];for(g.unshift(...s),g.push(...c),p=g.length,u=Promise.resolve(n);d<p;)u=u.then(g[d++],g[d++]);return u}p=s.length;let h=n;for(;d<p;){const g=s[d++],m=s[d++];try{h=g(h)}catch(v){m.call(this,v);break}}try{u=N4e.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Wz(this.defaults,t);const n=o1t(t.baseURL,t.url,t.allowAbsoluteUrls);return e1t(n,t.params,t.paramsSerializer)}};qt.forEach(["delete","get","head","options"],function(t){$O.prototype[t]=function(n,r){return this.request(Wz(r||{},{method:t,url:n,data:(r||{}).data}))}});qt.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Wz(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}$O.prototype[t]=n(),$O.prototype[t+"Form"]=n(!0)});let DFn=class u1t{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new qD(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new u1t(function(i){t=i}),cancel:t}}};function kFn(e){return function(n){return e.apply(null,n)}}function LFn(e){return qt.isObject(e)&&e.isAxiosError===!0}const Cge={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Cge).forEach(([e,t])=>{Cge[t]=e});function d1t(e){const t=new $O(e),n=j0t($O.prototype.request,t);return qt.extend(n,$O.prototype,t,{allOwnKeys:!0}),qt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return d1t(Wz(e,i))},n}const Xs=d1t(mB);Xs.Axios=$O;Xs.CanceledError=qD;Xs.CancelToken=DFn;Xs.isCancel=r1t;Xs.VERSION=c1t;Xs.toFormData=CZ;Xs.AxiosError=po;Xs.Cancel=Xs.CanceledError;Xs.all=function(t){return Promise.all(t)};Xs.spread=kFn;Xs.isAxiosError=LFn;Xs.mergeConfig=Wz;Xs.AxiosHeaders=fp;Xs.formToJSON=e=>n1t(qt.isHTMLForm(e)?new FormData(e):e);Xs.getAdapter=l1t.getAdapter;Xs.HttpStatusCode=Cge;Xs.default=Xs;const{Axios:AVi,AxiosError:OVi,CanceledError:zVi,isCancel:TVi,CancelToken:EVi,VERSION:RVi,all:IVi,Cancel:PVi,isAxiosError:DVi,spread:kVi,toFormData:LVi,AxiosHeaders:_Vi,HttpStatusCode:NVi,formToJSON:FVi,getAdapter:WVi,mergeConfig:qVi}=Xs;var F4={},W4e;function _Fn(){if(W4e)return F4;W4e=1;var e=ri(),t=ii();Object.defineProperty(F4,"__esModule",{value:!0}),F4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Create");return F4.default=i,F4}var NFn=_Fn();const Bxe=qn(NFn);var W4={},q4e;function FFn(){if(q4e)return W4;q4e=1;var e=ri(),t=ii();Object.defineProperty(W4,"__esModule",{value:!0}),W4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"}),"FastForward");return W4.default=i,W4}var WFn=FFn();const qFn=qn(WFn);var q4={},B4e;function BFn(){if(B4e)return q4;B4e=1;var e=ri(),t=ii();Object.defineProperty(q4,"__esModule",{value:!0}),q4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"}),"FastRewind");return q4.default=i,q4}var jFn=BFn();const HFn=qn(jFn);var B4={},j4e;function VFn(){if(j4e)return B4;j4e=1;var e=ri(),t=ii();Object.defineProperty(B4,"__esModule",{value:!0}),B4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");return B4.default=i,B4}var GFn=VFn();const vB=qn(GFn);var j4={},H4e;function $Fn(){if(H4e)return j4;H4e=1;var e=ri(),t=ii();Object.defineProperty(j4,"__esModule",{value:!0}),j4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"Restore");return j4.default=i,j4}var UFn=$Fn();const jxe=qn(UFn);var H4={},V4e;function XFn(){if(V4e)return H4;V4e=1;var e=ri(),t=ii();Object.defineProperty(H4,"__esModule",{value:!0}),H4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"}),"SkipNext");return H4.default=i,H4}var YFn=XFn();const Hxe=qn(YFn);var V4={},G4e;function KFn(){if(G4e)return V4;G4e=1;var e=ri(),t=ii();Object.defineProperty(V4,"__esModule",{value:!0}),V4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement(n.Fragment,null,n.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),n.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"})),"ZoomIn");return V4.default=i,V4}var QFn=KFn();const ZFn=qn(QFn);var G4={},$4e;function JFn(){if($4e)return G4;$4e=1;var e=ri(),t=ii();Object.defineProperty(G4,"__esModule",{value:!0}),G4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator");return G4.default=i,G4}var eWn=JFn();const tWn=qn(eWn);var $4={},U4e;function nWn(){if(U4e)return $4;U4e=1;var e=ri(),t=ii();Object.defineProperty($4,"__esModule",{value:!0}),$4.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");return $4.default=i,$4}var rWn=nWn();const p1t=qn(rWn);function h1t(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=h1t(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Lo(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=h1t(e))&&(r&&(r+=" "),r+=t);return r}function X4e({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,i)=>n(r)===n(t[i]))}function Y4e(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function iWn(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=Y4e(u));const d=u?s.filter(p=>{let h=(o||c)(p);return n&&(h=h.toLowerCase()),t&&(h=Y4e(h)),i==="start"?h.startsWith(u):h.includes(u)}):s;return typeof r=="number"?d.slice(0,r):d}}const oWn=iWn(),K4e=5,aWn=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),sWn=[];function Q4e(e,t,n,r){if(t||e==null||r)return"";const i=n(e);return typeof i=="string"?i:""}function lWn(e){const{unstable_isActiveElementInListbox:t=aWn,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?sWn:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:m=!1,filterOptions:v=oWn,filterSelectedOptions:y=!1,freeSolo:M=!1,getOptionDisabled:C,getOptionKey:x,getOptionLabel:w=Dt=>Dt.label??Dt,groupBy:S,handleHomeEndKeys:A=!e.freeSolo,id:z,includeInputInList:O=!1,inputValue:T,isOptionEqualToValue:I=(Dt,It)=>Dt===It,multiple:P=!1,onChange:N,onClose:F,onHighlightChange:L,onInputChange:W,onOpen:H,open:j,openOnFocus:G=!1,options:q,readOnly:$=!1,renderValue:U,selectOnFocus:X=!e.freeSolo,value:Q}=e,re=Hi(z);let ee=w;ee=Dt=>{const It=w(Dt);return typeof It!="string"?String(It):It};const se=b.useRef(!1),pe=b.useRef(!0),te=b.useRef(null),ce=b.useRef(null),[oe,ae]=b.useState(null),[ne,le]=b.useState(-1),he=i?0:-1,be=b.useRef(he),me=b.useRef(Q4e(u??Q,P,ee)).current,[Me,Oe]=up({controlled:Q,default:u,name:c}),[de,ie]=up({controlled:T,default:me,name:c,state:"inputValue"}),[ue,Ae]=b.useState(!1),Ce=b.useCallback((Dt,It,Hn)=>{if(!(P?Me.length<It.length:It!==null)&&!s)return;const Jr=Q4e(It,P,ee,U);de!==Jr&&(ie(Jr),W&&W(Dt,Jr,Hn))},[ee,de,P,W,ie,s,Me,U]),[Ee,Ge]=up({controlled:j,default:!1,name:c,state:"open"}),[_e,Ie]=b.useState(!0),Le=!P&&Me!=null&&de===ee(Me),we=Ee&&!$,ve=we?v(q.filter(Dt=>!(y&&(P?Me:[Me]).some(It=>It!==null&&I(Dt,It)))),{inputValue:Le&&_e?"":de,getOptionLabel:ee}):[],De=nCe({filteredOptions:ve,value:Me,inputValue:de});b.useEffect(()=>{const Dt=Me!==De.value;ue&&!Dt||M&&!Dt||Ce(null,Me,"reset")},[Me,Ce,ue,De.value,M]);const ze=Ee&&ve.length>0&&!$,Ve=en(Dt=>{if(Dt===-1)te.current.focus();else{const It=U?"data-item-index":"data-tag-index";oe.querySelector(`[${It}="${Dt}"]`).focus()}});b.useEffect(()=>{P&&ne>Me.length-1&&(le(-1),Ve(-1))},[Me,P,ne,Ve]);function Ke(Dt,It){if(!ce.current||Dt<0||Dt>=ve.length)return-1;let Hn=Dt;for(;;){const jr=ce.current.querySelector(`[data-option-index="${Hn}"]`),Jr=g?!1:!jr||jr.disabled||jr.getAttribute("aria-disabled")==="true";if(jr&&jr.hasAttribute("tabindex")&&!Jr)return Hn;if(It==="next"?Hn=(Hn+1)%ve.length:Hn=(Hn-1+ve.length)%ve.length,Hn===Dt)return-1}}const et=en(({event:Dt,index:It,reason:Hn})=>{if(be.current=It,It===-1?te.current.removeAttribute("aria-activedescendant"):te.current.setAttribute("aria-activedescendant",`${re}-option-${It}`),L&&["mouse","keyboard","touch"].includes(Hn)&&L(Dt,It===-1?null:ve[It],Hn),!ce.current)return;const jr=ce.current.querySelector(`[role="option"].${n}-focused`);jr&&(jr.classList.remove(`${n}-focused`),jr.classList.remove(`${n}-focusVisible`));let Jr=ce.current;if(ce.current.getAttribute("role")!=="listbox"&&(Jr=ce.current.parentElement.querySelector('[role="listbox"]')),!Jr)return;if(It===-1){Jr.scrollTop=0;return}const Ca=ce.current.querySelector(`[data-option-index="${It}"]`);if(Ca&&(Ca.classList.add(`${n}-focused`),Hn==="keyboard"&&Ca.classList.add(`${n}-focusVisible`),Jr.scrollHeight>Jr.clientHeight&&Hn!=="mouse"&&Hn!=="touch")){const Uo=Ca,La=Jr.clientHeight+Jr.scrollTop,od=Uo.offsetTop+Uo.offsetHeight;od>La?Jr.scrollTop=od-Jr.clientHeight:Uo.offsetTop-Uo.offsetHeight*(S?1.3:0)<Jr.scrollTop&&(Jr.scrollTop=Uo.offsetTop-Uo.offsetHeight*(S?1.3:0))}}),it=en(({event:Dt,diff:It,direction:Hn="next",reason:jr})=>{if(!we)return;const Ca=Ke((()=>{const Uo=ve.length-1;if(It==="reset")return he;if(It==="start")return 0;if(It==="end")return Uo;const La=be.current+It;return La<0?La===-1&&O?-1:m&&be.current!==-1||Math.abs(It)>1?0:Uo:La>Uo?La===Uo+1&&O?-1:m||Math.abs(It)>1?Uo:0:La})(),Hn);if(et({index:Ca,reason:jr,event:Dt}),r&&It!=="reset")if(Ca===-1)te.current.value=de;else{const Uo=ee(ve[Ca]);te.current.value=Uo,Uo.toLowerCase().indexOf(de.toLowerCase())===0&&de.length>0&&te.current.setSelectionRange(de.length,Uo.length)}}),Ft=!X4e({array1:De.filteredOptions,array2:ve,parser:ee}),Pt=()=>{const Dt=(It,Hn)=>{const jr=It?ee(It):"",Jr=Hn?ee(Hn):"";return jr===Jr};if(be.current!==-1&&!X4e({array1:De.filteredOptions,array2:ve,parser:ee})&&De.inputValue===de&&(P?Me.length===De.value.length&&De.value.every((It,Hn)=>ee(Me[Hn])===ee(It)):Dt(De.value,Me))){const It=De.filteredOptions[be.current];if(It)return ve.findIndex(Hn=>ee(Hn)===ee(It))}return-1},Qn=b.useCallback(()=>{if(!we)return;const Dt=Pt();if(Dt!==-1){be.current=Dt;return}const It=P?Me[0]:Me;if(ve.length===0||It==null){it({diff:"reset"});return}if(ce.current){if(It!=null){const Hn=ve[be.current];if(P&&Hn&&Me.findIndex(Jr=>I(Hn,Jr))!==-1)return;const jr=ve.findIndex(Jr=>I(Jr,It));jr===-1?it({diff:"reset"}):et({index:jr});return}if(be.current>=ve.length-1){et({index:ve.length-1});return}et({index:be.current})}},[ve.length,P?!1:Me,y,it,et,we,de,P]),ir=en(Dt=>{hfe(ce,Dt),Dt&&Qn()});b.useEffect(()=>{Ft&&Qn()},[Qn,Ft]);const jn=Dt=>{Ee||(Ge(!0),Ie(!0),H&&H(Dt))},Zn=(Dt,It)=>{Ee&&(Ge(!1),F&&F(Dt,It))},Br=(Dt,It,Hn,jr)=>{if(P){if(Me.length===It.length&&Me.every((Jr,Ca)=>Jr===It[Ca]))return}else if(Me===It)return;N&&N(Dt,It,Hn,jr),Oe(It)},vr=b.useRef(!1),Ne=(Dt,It,Hn="selectOption",jr="options")=>{let Jr=Hn,Ca=It;if(P){Ca=Array.isArray(Me)?Me.slice():[];const Uo=Ca.findIndex(La=>I(It,La));Uo===-1?Ca.push(It):jr!=="freeSolo"&&(Ca.splice(Uo,1),Jr="removeOption")}Ce(Dt,Ca,Jr),Br(Dt,Ca,Jr,{option:It}),!p&&(!Dt||!Dt.ctrlKey&&!Dt.metaKey)&&Zn(Dt,Jr),(a===!0||a==="touch"&&vr.current||a==="mouse"&&!vr.current)&&te.current.blur()};function He(Dt,It){if(Dt===-1)return-1;let Hn=Dt;for(;;){if(It==="next"&&Hn===Me.length||It==="previous"&&Hn===-1)return-1;const jr=U?"data-item-index":"data-tag-index",Jr=oe.querySelector(`[${jr}="${Hn}"]`);if(!Jr||!Jr.hasAttribute("tabindex")||Jr.disabled||Jr.getAttribute("aria-disabled")==="true")Hn+=It==="next"?1:-1;else return Hn}}const Xe=(Dt,It)=>{if(!P)return;de===""&&Zn(Dt,"toggleInput");let Hn=ne;ne===-1?de===""&&It==="previous"&&(Hn=Me.length-1):(Hn+=It==="next"?1:-1,Hn<0&&(Hn=0),Hn===Me.length&&(Hn=-1)),Hn=He(Hn,It),le(Hn),Ve(Hn)},ct=Dt=>{se.current=!0,ie(""),W&&W(Dt,"","clear"),Br(Dt,P?[]:null,"clear")},lt=Dt=>It=>{if(Dt.onKeyDown&&Dt.onKeyDown(It),!It.defaultMuiPrevented&&(ne!==-1&&!["ArrowLeft","ArrowRight"].includes(It.key)&&(le(-1),Ve(-1)),It.which!==229))switch(It.key){case"Home":we&&A&&(It.preventDefault(),it({diff:"start",direction:"next",reason:"keyboard",event:It}));break;case"End":we&&A&&(It.preventDefault(),it({diff:"end",direction:"previous",reason:"keyboard",event:It}));break;case"PageUp":It.preventDefault(),it({diff:-K4e,direction:"previous",reason:"keyboard",event:It}),jn(It);break;case"PageDown":It.preventDefault(),it({diff:K4e,direction:"next",reason:"keyboard",event:It}),jn(It);break;case"ArrowDown":It.preventDefault(),it({diff:1,direction:"next",reason:"keyboard",event:It}),jn(It);break;case"ArrowUp":It.preventDefault(),it({diff:-1,direction:"previous",reason:"keyboard",event:It}),jn(It);break;case"ArrowLeft":!P&&U?Ve(0):Xe(It,"previous");break;case"ArrowRight":!P&&U?Ve(-1):Xe(It,"next");break;case"Enter":if(be.current!==-1&&we){const Hn=ve[be.current],jr=C?C(Hn):!1;if(It.preventDefault(),jr)return;Ne(It,Hn,"selectOption"),r&&te.current.setSelectionRange(te.current.value.length,te.current.value.length)}else M&&de!==""&&Le===!1&&(P&&It.preventDefault(),Ne(It,de,"createOption","freeSolo"));break;case"Escape":we?(It.preventDefault(),It.stopPropagation(),Zn(It,"escape")):l&&(de!==""||P&&Me.length>0||U)&&(It.preventDefault(),It.stopPropagation(),ct(It));break;case"Backspace":if(P&&!$&&de===""&&Me.length>0){const Hn=ne===-1?Me.length-1:ne,jr=Me.slice();jr.splice(Hn,1),Br(It,jr,"removeOption",{option:Me[Hn]})}!P&&U&&!$&&(Oe(null),Ve(-1));break;case"Delete":if(P&&!$&&de===""&&Me.length>0&&ne!==-1){const Hn=ne,jr=Me.slice();jr.splice(Hn,1),Br(It,jr,"removeOption",{option:Me[Hn]})}!P&&U&&!$&&(Oe(null),Ve(-1));break}},Je=Dt=>{Ae(!0),G&&!se.current&&jn(Dt)},ft=Dt=>{if(t(ce)){te.current.focus();return}Ae(!1),pe.current=!0,se.current=!1,o&&be.current!==-1&&we?Ne(Dt,ve[be.current],"blur"):o&&M&&de!==""?Ne(Dt,de,"blur","freeSolo"):s&&Ce(Dt,Me,"blur"),Zn(Dt,"blur")},Tt=Dt=>{const It=Dt.target.value;de!==It&&(ie(It),Ie(!1),W&&W(Dt,It,"input")),It===""?!d&&!P&&Br(Dt,null,"clear"):jn(Dt)},St=Dt=>{const It=Number(Dt.currentTarget.getAttribute("data-option-index"));be.current!==It&&et({event:Dt,index:It,reason:"mouse"})},un=Dt=>{et({event:Dt,index:Number(Dt.currentTarget.getAttribute("data-option-index")),reason:"touch"}),vr.current=!0},$n=Dt=>{const It=Number(Dt.currentTarget.getAttribute("data-option-index"));Ne(Dt,ve[It],"selectOption"),vr.current=!1},Yr=Dt=>It=>{const Hn=Me.slice();Hn.splice(Dt,1),Br(It,Hn,"removeOption",{option:Me[Dt]})},yr=Dt=>{Br(Dt,null,"removeOption",{option:Me})},dr=Dt=>{Ee?Zn(Dt,"toggleInput"):jn(Dt)},si=Dt=>{Dt.currentTarget.contains(Dt.target)&&Dt.target.getAttribute("id")!==re&&Dt.preventDefault()},Go=Dt=>{Dt.currentTarget.contains(Dt.target)&&(te.current.focus(),X&&pe.current&&te.current.selectionEnd-te.current.selectionStart===0&&te.current.select(),pe.current=!1)},$o=Dt=>{!h&&(de===""||!Ee)&&dr(Dt)};let Ki=M&&de.length>0;Ki=Ki||(P?Me.length>0:Me!==null);let di=ve;return S&&(di=ve.reduce((Dt,It,Hn)=>{const jr=S(It);return Dt.length>0&&Dt[Dt.length-1].group===jr?Dt[Dt.length-1].options.push(It):Dt.push({key:Hn,index:Hn,group:jr,options:[It]}),Dt},[])),h&&ue&&ft(),{getRootProps:(Dt={})=>({...Dt,onKeyDown:lt(Dt),onMouseDown:si,onClick:Go}),getInputLabelProps:()=>({id:`${re}-label`,htmlFor:re}),getInputProps:()=>({id:re,value:de,onBlur:ft,onFocus:Je,onChange:Tt,onMouseDown:$o,"aria-activedescendant":we?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ze?`${re}-listbox`:void 0,"aria-expanded":ze,autoComplete:"off",ref:te,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ct}),getItemProps:({index:Dt=0}={})=>({...P&&{key:Dt},...U?{"data-item-index":Dt}:{"data-tag-index":Dt},tabIndex:-1,...!$&&{onDelete:P?Yr(Dt):yr}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:dr}),getTagProps:({index:Dt})=>({key:Dt,"data-tag-index":Dt,tabIndex:-1,...!$&&{onDelete:Yr(Dt)}}),getListboxProps:()=>({role:"listbox",id:`${re}-listbox`,"aria-labelledby":`${re}-label`,ref:ir,onMouseDown:Dt=>{Dt.preventDefault()}}),getOptionProps:({index:Dt,option:It})=>{const Hn=(P?Me:[Me]).some(Jr=>Jr!=null&&I(It,Jr)),jr=C?C(It):!1;return{key:x?.(It)??ee(It),tabIndex:-1,role:"option",id:`${re}-option-${Dt}`,onMouseMove:St,onClick:$n,onTouchStart:un,"data-option-index":Dt,"aria-disabled":jr,"aria-selected":Hn}},id:re,inputValue:de,value:Me,dirty:Ki,expanded:we&&oe,popupOpen:we,focused:ue||ne!==-1,anchorEl:oe,setAnchorEl:ae,focusedItem:ne,focusedTag:ne,groupedOptions:di}}function cWn(e){return Bn("MuiListSubheader",e)}Ln("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const uWn=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${jt(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Yt(a,cWn,t)},dWn=rt("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${jt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(kr(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),xge=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:o,component:a,disableGutters:s,disableSticky:l,inset:c},p=uWn(d);return f.jsx(dWn,{as:a,className:nr(p.root,i),ref:n,ownerState:d,...u})});xge&&(xge.muiSkipListHighlight=!0);const pWn=Pu(f.jsx("path",{d:"M19 6.41L17.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"}));function hWn(e){return Bn("MuiAutocomplete",e)}const wo=Ln("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Z4e,J4e;const fWn=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${jt(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Yt(d,hWn,t)},gWn=rt("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${wo.tag}`]:t.tag},{[`& .${wo.tag}`]:t[`tagSize${jt(s)}`]},{[`& .${wo.inputRoot}`]:t.inputRoot},{[`& .${wo.input}`]:t.input},{[`& .${wo.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${wo.focused} .${wo.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${wo.clearIndicator}`]:{visibility:"visible"}},[`& .${wo.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${wo.inputRoot}`]:{[`.${wo.hasPopupIcon}&, .${wo.hasClearIcon}&`]:{paddingRight:30},[`.${wo.hasPopupIcon}.${wo.hasClearIcon}&`]:{paddingRight:56},[`& .${wo.input}`]:{width:0,minWidth:30}},[`& .${$C.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${$C.root}.${md.sizeSmall}`]:{[`& .${$C.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Gh.root}`]:{padding:9,[`.${wo.hasPopupIcon}&, .${wo.hasClearIcon}&`]:{paddingRight:39},[`.${wo.hasPopupIcon}.${wo.hasClearIcon}&`]:{paddingRight:65},[`& .${wo.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${wo.endAdornment}`]:{right:9}},[`& .${Gh.root}.${md.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${wo.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Hp.root}`]:{paddingTop:19,paddingLeft:8,[`.${wo.hasPopupIcon}&, .${wo.hasClearIcon}&`]:{paddingRight:39},[`.${wo.hasPopupIcon}.${wo.hasClearIcon}&`]:{paddingRight:65},[`& .${Hp.input}`]:{padding:"7px 4px"},[`& .${wo.endAdornment}`]:{right:9}},[`& .${Hp.root}.${md.sizeSmall}`]:{paddingBottom:1,[`& .${Hp.input}`]:{padding:"2.5px 4px"}},[`& .${md.hiddenLabel}`]:{paddingTop:8},[`& .${Hp.root}.${md.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${wo.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Hp.root}.${md.hiddenLabel}.${md.sizeSmall}`]:{[`& .${wo.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${wo.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${wo.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${wo.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${wo.inputRoot}`]:{flexWrap:"wrap"}}}]}),mWn=rt("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),vWn=rt(Zp,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),bWn=rt(Zp,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),yWn=rt(zD,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wo.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(kr(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),MWn=rt(R3,{name:"MuiAutocomplete",slot:"Paper"})(kr(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),CWn=rt("div",{name:"MuiAutocomplete",slot:"Loading"})(kr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),xWn=rt("div",{name:"MuiAutocomplete",slot:"NoOptions"})(kr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),wWn=rt("ul",{name:"MuiAutocomplete",slot:"Listbox"})(kr(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${wo.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${wo.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${wo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${wo.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${wo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),SWn=rt(xge,{name:"MuiAutocomplete",slot:"GroupLabel"})(kr(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),AWn=rt("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${wo.option}`]:{paddingLeft:24}}),f1t=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:u=Z4e||(Z4e=f.jsx(pWn,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:p=!1,clearText:h="Clear",closeText:g="Close",componentsProps:m,defaultValue:v=r.multiple?[]:null,disableClearable:y=!1,disableCloseOnSelect:M=!1,disabled:C=!1,disabledItemsFocusable:x=!1,disableListWrap:w=!1,disablePortal:S=!1,filterOptions:A,filterSelectedOptions:z=!1,forcePopupIcon:O="auto",freeSolo:T=!1,fullWidth:I=!1,getLimitTagsText:P=fi=>`+${fi}`,getOptionDisabled:N,getOptionKey:F,getOptionLabel:L,isOptionEqualToValue:W,groupBy:H,handleHomeEndKeys:j=!r.freeSolo,id:G,includeInputInList:q=!1,inputValue:$,limitTags:U=-1,ListboxComponent:X,ListboxProps:Q,loading:re=!1,loadingText:ee="Loading…",multiple:se=!1,noOptionsText:pe="No options",onChange:te,onClose:ce,onHighlightChange:oe,onInputChange:ae,onOpen:ne,open:le,openOnFocus:he=!1,openText:be="Open",options:me,PaperComponent:Me,PopperComponent:Oe,popupIcon:de=J4e||(J4e=f.jsx(Tlt,{})),readOnly:ie=!1,renderGroup:ue,renderInput:Ae,renderOption:Ce,renderTags:Ee,renderValue:Ge,selectOnFocus:_e=!r.freeSolo,size:Ie="medium",slots:Le={},slotProps:we={},value:ve,...De}=r,{getRootProps:ze,getInputProps:Ve,getInputLabelProps:Ke,getPopupIndicatorProps:et,getClearProps:it,getItemProps:Ft,getListboxProps:Pt,getOptionProps:Qn,value:ir,dirty:jn,expanded:Zn,id:Br,popupOpen:vr,focused:Ne,focusedItem:He,anchorEl:Xe,setAnchorEl:ct,inputValue:lt,groupedOptions:Je}=lWn({...r,componentName:"Autocomplete"}),ft=!y&&!C&&jn&&!ie,Tt=(!T||O===!0)&&O!==!1,{onMouseDown:St}=Ve(),{ref:un,...$n}=Pt(),yr=L||(fi=>fi.label??fi),dr={...r,disablePortal:S,expanded:Zn,focused:Ne,fullWidth:I,getOptionLabel:yr,hasClearIcon:ft,hasPopupIcon:Tt,inputFocused:He===-1,popupOpen:vr,size:Ie},si=fWn(dr),Go={slots:{paper:Me,popper:Oe,...Le},slotProps:{chip:l,listbox:Q,...m,...we}},[$o,Ki]=ni("listbox",{elementType:wWn,externalForwardedProps:Go,ownerState:dr,className:si.listbox,additionalProps:$n,ref:un}),[di,Dt]=ni("paper",{elementType:R3,externalForwardedProps:Go,ownerState:dr,className:si.paper}),[It,Hn]=ni("popper",{elementType:zD,externalForwardedProps:Go,ownerState:dr,className:si.popper,additionalProps:{disablePortal:S,style:{width:Xe?Xe.clientWidth:null},role:"presentation",anchorEl:Xe,open:vr}});let jr;const Jr=fi=>({className:si.tag,disabled:C,...Ft(fi)});if(se?ir.length>0&&(Ee?jr=Ee(ir,Jr,dr):Ge?jr=Ge(ir,Jr,dr):jr=ir.map((fi,_s)=>{const{key:_u,...kd}=Jr({index:_s});return f.jsx(EQ,{label:yr(fi),size:Ie,...kd,...Go.slotProps.chip},_u)})):Ge&&ir!=null&&(jr=Ge(ir,Jr,dr)),U>-1&&Array.isArray(jr)){const fi=jr.length-U;!Ne&&fi>0&&(jr=jr.splice(0,U),jr.push(f.jsx("span",{className:si.tag,children:P(fi)},jr.length)))}const Uo=ue||(fi=>f.jsxs("li",{children:[f.jsx(SWn,{className:si.groupLabel,ownerState:dr,component:"div",children:fi.group}),f.jsx(AWn,{className:si.groupUl,ownerState:dr,children:fi.children})]},fi.key)),od=Ce||((fi,_s)=>{const{key:_u,...kd}=fi;return f.jsx("li",{...kd,children:yr(_s)},_u)}),Lu=(fi,_s)=>{const _u=Qn({option:fi,index:_s});return od({..._u,className:si.option},fi,{selected:_u["aria-selected"],index:_s,inputValue:lt},dr)},kc=Go.slotProps.clearIndicator,Dd=Go.slotProps.popupIndicator;return f.jsxs(b.Fragment,{children:[f.jsx(gWn,{ref:n,className:nr(si.root,c),ownerState:dr,...ze(De),children:Ae({id:Br,disabled:C,fullWidth:!0,size:Ie==="small"?"small":void 0,InputLabelProps:Ke(),InputProps:{ref:ct,className:si.inputRoot,startAdornment:jr,onMouseDown:fi=>{fi.target===fi.currentTarget&&St(fi)},...(ft||Tt)&&{endAdornment:f.jsxs(mWn,{className:si.endAdornment,ownerState:dr,children:[ft?f.jsx(vWn,{...it(),"aria-label":h,title:h,ownerState:dr,...kc,className:nr(si.clearIndicator,kc?.className),children:u}):null,Tt?f.jsx(bWn,{...et(),disabled:C,"aria-label":vr?g:be,title:vr?g:be,ownerState:dr,...Dd,className:nr(si.popupIndicator,Dd?.className),children:de}):null]})}},inputProps:{className:si.input,disabled:C,readOnly:ie,...Ve()}})}),Xe?f.jsx(yWn,{as:It,...Hn,children:f.jsxs(MWn,{as:di,...Dt,children:[re&&Je.length===0?f.jsx(CWn,{className:si.loading,ownerState:dr,children:ee}):null,Je.length===0&&!T&&!re?f.jsx(xWn,{className:si.noOptions,ownerState:dr,role:"presentation",onMouseDown:fi=>{fi.preventDefault()},children:pe}):null,Je.length>0?f.jsx($o,{as:X,...Ki,children:Je.map((fi,_s)=>H?Uo({key:fi.key,group:fi.group,children:fi.options.map((_u,kd)=>Lu(_u,fi.index+kd))}):Lu(fi,_s))}):null]})}):null]})});function OWn(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=nCe({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!i&&(a=!0);const{badgeContent:s,max:l=r}=a?o:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}function zWn(e){return Bn("MuiBadge",e)}const oC=Ln("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),doe=10,poe=4,TWn=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:a={}}=e,s={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${jt(n.vertical)}${jt(n.horizontal)}`,`anchorOrigin${jt(n.vertical)}${jt(n.horizontal)}${jt(i)}`,`overlap${jt(i)}`,t!=="default"&&`color${jt(t)}`]};return Yt(s,zWn,a)},EWn=rt("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),RWn=rt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${jt(n.anchorOrigin.vertical)}${jt(n.anchorOrigin.horizontal)}${jt(n.overlap)}`],n.color!=="default"&&t[`color${jt(n.color)}`],n.invisible&&t.invisible]}})(kr(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:doe*2,lineHeight:1,padding:"0 6px",height:doe*2,borderRadius:doe,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(_l(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:poe,height:poe*2,minWidth:poe*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${oC.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${oC.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${oC.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${oC.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${oC.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${oC.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${oC.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${oC.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function e_e(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const IWn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiBadge"}),{anchorOrigin:i,className:o,classes:a,component:s,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:p="default",invisible:h=!1,max:g=99,badgeContent:m,slots:v,slotProps:y,showZero:M=!1,variant:C="standard",...x}=r,{badgeContent:w,invisible:S,max:A,displayValue:z}=OWn({max:g,invisible:h,badgeContent:m,showZero:M}),O=nCe({anchorOrigin:e_e(i),color:p,overlap:d,variant:C,badgeContent:m}),T=S||w==null&&C!=="dot",{color:I=p,overlap:P=d,anchorOrigin:N,variant:F=C}=T?O:r,L=e_e(N),W=F!=="dot"?z:void 0,H={...r,badgeContent:w,invisible:T,max:A,displayValue:W,showZero:M,anchorOrigin:L,color:I,overlap:P,variant:F},j=TWn(H),G={slots:{root:v?.root??l.Root,badge:v?.badge??l.Badge},slotProps:{root:y?.root??c.root,badge:y?.badge??c.badge}},[q,$]=ni("root",{elementType:EWn,externalForwardedProps:{...G,...x},ownerState:H,className:nr(j.root,o),ref:n,additionalProps:{as:s}}),[U,X]=ni("badge",{elementType:RWn,externalForwardedProps:G,ownerState:H,className:j.badge});return f.jsxs(q,{...$,children:[u,f.jsx(U,{...X,children:W})]})});function PWn(e){return Bn("PrivateSwitchBase",e)}Ln("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const DWn=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${jt(i)}`],input:["input"]};return Yt(o,PWn,t)},kWn=rt(Ib,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),LWn=rt("input",{name:"MuiSwitchBase",shouldForwardProp:Cp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),g1t=b.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:h,name:g,onBlur:m,onChange:v,onFocus:y,readOnly:M,required:C=!1,tabIndex:x,type:w,value:S,slots:A={},slotProps:z={},...O}=t,[T,I]=up({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),P=mh(),N=re=>{y&&y(re),P&&P.onFocus&&P.onFocus(re)},F=re=>{m&&m(re),P&&P.onBlur&&P.onBlur(re)},L=re=>{if(re.nativeEvent.defaultPrevented)return;const ee=re.target.checked;I(ee),v&&v(re,ee)};let W=s;P&&typeof W>"u"&&(W=P.disabled);const H=w==="checkbox"||w==="radio",j={...t,checked:T,disabled:W,disableFocusRipple:l,edge:c},G=DWn(j),q={slots:A,slotProps:{input:p,...z}},[$,U]=ni("root",{ref:n,elementType:kWn,className:G.root,shouldForwardComponentProp:!0,externalForwardedProps:{...q,component:"span",...O},getSlotProps:re=>({...re,onFocus:ee=>{re.onFocus?.(ee),N(ee)},onBlur:ee=>{re.onBlur?.(ee),F(ee)}}),ownerState:j,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:W,role:void 0,tabIndex:null}}),[X,Q]=ni("input",{ref:h,elementType:LWn,className:G.input,externalForwardedProps:q,getSlotProps:re=>({...re,onChange:ee=>{re.onChange?.(ee),L(ee)}}),ownerState:j,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:W,id:H?d:void 0,name:g,readOnly:M,required:C,tabIndex:x,type:w,...w==="checkbox"&&S===void 0?{}:{value:S}}});return f.jsxs($,{...U,children:[f.jsx(X,{...Q}),T?o:u]})}),_Wn=Pu(f.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),NWn=Pu(f.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),FWn=Pu(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function WWn(e){return Bn("MuiCheckbox",e)}const hoe=Ln("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),qWn=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${jt(r)}`,`size${jt(i)}`]},a=Yt(o,WWn,t);return{...t,...a}},BWn=rt(g1t,{shouldForwardProp:e=>Cp(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${jt(n.size)}`],n.color!=="default"&&t[`color${jt(n.color)}`]]}})(kr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{[`&.${hoe.checked}, &.${hoe.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${hoe.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),jWn=f.jsx(NWn,{}),HWn=f.jsx(_Wn,{}),VWn=f.jsx(FWn,{}),m1t=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiCheckbox"}),{checkedIcon:i=jWn,color:o="primary",icon:a=HWn,indeterminate:s=!1,indeterminateIcon:l=VWn,inputProps:c,size:u="medium",disableRipple:d=!1,className:p,slots:h={},slotProps:g={},...m}=r,v=s?l:a,y=s?l:i,M={...r,disableRipple:d,color:o,indeterminate:s,size:u},C=qWn(M),x=g.input??c,[w,S]=ni("root",{ref:n,elementType:BWn,className:nr(C.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:g,...m},ownerState:M,additionalProps:{type:"checkbox",icon:b.cloneElement(v,{fontSize:v.props.fontSize??u}),checkedIcon:b.cloneElement(y,{fontSize:y.props.fontSize??u}),disableRipple:d,slots:h,slotProps:{input:Ust(typeof x=="function"?x(M):x,{"data-indeterminate":s})}}});return f.jsx(w,{...S,classes:C})});function GWn(e){return Bn("MuiLinearProgress",e)}Ln("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const wge=4,Sge=Uf`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`,$Wn=typeof Sge!="string"?Ow`
        animation: ${Sge} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
      `:null,Age=Uf`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`,UWn=typeof Age!="string"?Ow`
        animation: ${Age} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
      `:null,Oge=Uf`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`,XWn=typeof Oge!="string"?Ow`
        animation: ${Oge} 3s infinite linear;
      `:null,YWn=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${jt(r)}`,n],dashed:["dashed",`dashedColor${jt(r)}`],bar1:["bar","bar1",`barColor${jt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${jt(r)}`,n==="buffer"&&`color${jt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Yt(i,GWn,t)},Vxe=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),KWn=rt("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${jt(n.color)}`],t[n.variant]]}})(kr(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{backgroundColor:Vxe(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),QWn=rt("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${jt(n.color)}`]]}})(kr(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(_l()).map(([t])=>{const n=Vxe(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),XWn||{animation:`${Oge} 3s infinite linear`}),ZWn=rt("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${jt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(kr(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${wge}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${wge}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:$Wn||{animation:`${Sge} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),JWn=rt("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${jt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(kr(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Vxe(e,t),transition:`transform .${wge}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:UWn||{animation:`${Age} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),eqn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:a,valueBuffer:s,variant:l="indeterminate",...c}=r,u={...r,color:o,variant:l},d=YWn(u),p=ts(),h={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){h["aria-valuenow"]=Math.round(a),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let m=a-100;p&&(m=-m),g.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&s!==void 0){let m=(s||0)-100;p&&(m=-m),g.bar2.transform=`translateX(${m}%)`}return f.jsxs(KWn,{className:nr(d.root,i),ownerState:u,role:"progressbar",...h,ref:n,...c,children:[l==="buffer"?f.jsx(QWn,{className:d.dashed,ownerState:u}):null,f.jsx(ZWn,{className:d.bar1,ownerState:u,style:g.bar1}),l==="determinate"?null:f.jsx(JWn,{className:d.bar2,ownerState:u,style:g.bar2})]})});function tqn(e){return Bn("MuiFormControlLabel",e)}const LR=Ln("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),nqn=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${jt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Yt(a,tqn,t)},rqn=rt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${LR.label}`]:t.label},t.root,t[`labelPlacement${jt(n.labelPlacement)}`]]}})(kr(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${LR.disabled}`]:{cursor:"default"},[`& .${LR.label}`]:{[`&.${LR.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),iqn=rt("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(kr(({theme:e})=>({[`&.${LR.error}`]:{color:(e.vars||e).palette.error.main}}))),v1t=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiFormControlLabel"}),{checked:i,className:o,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:p="end",name:h,onChange:g,required:m,slots:v={},slotProps:y={},value:M,...C}=r,x=mh(),w=l??s.props.disabled??x?.disabled,S=m??s.props.required,A={disabled:w,required:S};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof s.props[L]>"u"&&typeof r[L]<"u"&&(A[L]=r[L])});const z=I3({props:r,muiFormControl:x,states:["error"]}),O={...r,disabled:w,labelPlacement:p,required:S,error:z.error},T=nqn(O),I={slots:v,slotProps:{...a,...y}},[P,N]=ni("typography",{elementType:i1,externalForwardedProps:I,ownerState:O});let F=d;return F!=null&&F.type!==i1&&!c&&(F=f.jsx(P,{component:"span",...N,className:nr(T.label,N?.className),children:F})),f.jsxs(rqn,{className:nr(T.root,o),ownerState:O,ref:n,...C,children:[b.cloneElement(s,A),S?f.jsxs("div",{children:[F,f.jsxs(iqn,{ownerState:O,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):F]})});function oqn(e){return Bn("MuiSwitch",e)}const j0=Ln("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),aqn=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${jt(n)}`,`size${jt(r)}`],switchBase:["switchBase",`color${jt(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Yt(s,oqn,t);return{...t,...l}},sqn=rt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${jt(n.edge)}`],t[`size${jt(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${j0.thumb}`]:{width:16,height:16},[`& .${j0.switchBase}`]:{padding:4,[`&.${j0.checked}`]:{transform:"translateX(16px)"}}}}]}),lqn=rt(g1t,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${j0.input}`]:t.input},n.color!=="default"&&t[`color${jt(n.color)}`]]}})(kr(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${j0.checked}`]:{transform:"translateX(20px)"},[`&.${j0.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${j0.checked} + .${j0.track}`]:{opacity:.5},[`&.${j0.disabled} + .${j0.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${j0.input}`]:{left:"-100%",width:"300%"}})),kr(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(_l(["light"])).map(([t])=>({props:{color:t},style:{[`&.${j0.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${j0.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${j0.checked} + .${j0.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),cqn=rt("span",{name:"MuiSwitch",slot:"Track"})(kr(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),uqn=rt("span",{name:"MuiSwitch",slot:"Thumb"})(kr(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),t_e=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:u={},...d}=r,p={...r,color:o,edge:a,size:s},h=aqn(p),g={slots:c,slotProps:u},[m,v]=ni("root",{className:nr(h.root,i),elementType:sqn,externalForwardedProps:g,ownerState:p,additionalProps:{sx:l}}),[y,M]=ni("thumb",{className:h.thumb,elementType:uqn,externalForwardedProps:g,ownerState:p}),C=f.jsx(y,{...M}),[x,w]=ni("track",{className:h.track,elementType:cqn,externalForwardedProps:g,ownerState:p});return f.jsxs(m,{...v,children:[f.jsx(lqn,{type:"checkbox",icon:C,checkedIcon:C,ref:n,ownerState:p,...d,classes:{...h,root:h.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(p):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(p):u.input}}}),f.jsx(x,{...w})]})});function dqn(e){return Bn("MuiTooltip",e)}const Yl=Ln("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function pqn(e){return Math.round(e*1e5)/1e5}const hqn=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${jt(o.split("-")[0])}`],arrow:["arrow"]};return Yt(a,dqn,t)},fqn=rt(zD,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(kr(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Yl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Yl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Yl.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Yl.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Yl.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Yl.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Yl.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Yl.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),gqn=rt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${jt(n.placement.split("-")[0])}`]]}})(kr(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Yl.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Yl.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Yl.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Yl.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${pqn(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Yl.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Yl.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Yl.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Yl.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Yl.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Yl.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Yl.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Yl.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Yl.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Yl.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),mqn=rt("span",{name:"MuiTooltip",slot:"Arrow"})(kr(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let z8=!1;const n_e=new xQ;let U4={x:0,y:0};function T8(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const vqn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:y=!1,id:M,leaveDelay:C=0,leaveTouchDelay:x=1500,onClose:w,onOpen:S,open:A,placement:z="bottom",PopperComponent:O,PopperProps:T={},slotProps:I={},slots:P={},title:N,TransitionComponent:F,TransitionProps:L,...W}=r,H=b.isValidElement(o)?o:f.jsx("span",{children:o}),j=$b(),G=ts(),[q,$]=b.useState(),[U,X]=b.useState(null),Q=b.useRef(!1),re=p||y,ee=Qp(),se=Qp(),pe=Qp(),te=Qp(),[ce,oe]=up({controlled:A,default:!1,name:"Tooltip",state:"open"});let ae=ce;const ne=Hi(M),le=b.useRef(),he=en(()=>{le.current!==void 0&&(document.body.style.WebkitUserSelect=le.current,le.current=void 0),te.clear()});b.useEffect(()=>he,[he]);const be=He=>{n_e.clear(),z8=!0,oe(!0),S&&!ae&&S(He)},me=en(He=>{n_e.start(800+C,()=>{z8=!1}),oe(!1),w&&ae&&w(He),ee.start(j.transitions.duration.shortest,()=>{Q.current=!1})}),Me=He=>{Q.current&&He.type!=="touchstart"||(q&&q.removeAttribute("title"),se.clear(),pe.clear(),g||z8&&m?se.start(z8?m:g,()=>{be(He)}):be(He))},Oe=He=>{se.clear(),pe.start(C,()=>{me(He)})},[,de]=b.useState(!1),ie=He=>{n9(He.target)||(de(!1),Oe(He))},ue=He=>{q||$(He.currentTarget),n9(He.target)&&(de(!0),Me(He))},Ae=He=>{Q.current=!0;const Xe=H.props;Xe.onTouchStart&&Xe.onTouchStart(He)},Ce=He=>{Ae(He),pe.clear(),ee.clear(),he(),le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",te.start(v,()=>{document.body.style.WebkitUserSelect=le.current,Me(He)})},Ee=He=>{H.props.onTouchEnd&&H.props.onTouchEnd(He),he(),pe.start(x,()=>{me(He)})};b.useEffect(()=>{if(!ae)return;function He(Xe){Xe.key==="Escape"&&me(Xe)}return document.addEventListener("keydown",He),()=>{document.removeEventListener("keydown",He)}},[me,ae]);const Ge=Pi(O3(H),$,n);!N&&N!==0&&(ae=!1);const _e=b.useRef(),Ie=He=>{const Xe=H.props;Xe.onMouseMove&&Xe.onMouseMove(He),U4={x:He.clientX,y:He.clientY},_e.current&&_e.current.update()},Le={},we=typeof N=="string";c?(Le.title=!ae&&we&&!d?N:null,Le["aria-describedby"]=ae?ne:null):(Le["aria-label"]=we?N:null,Le["aria-labelledby"]=ae&&!we?ne:null);const ve={...Le,...W,...H.props,className:nr(W.className,H.props.className),onTouchStart:Ae,ref:Ge,...y?{onMouseMove:Ie}:{}},De={};h||(ve.onTouchStart=Ce,ve.onTouchEnd=Ee),d||(ve.onMouseOver=T8(Me,ve.onMouseOver),ve.onMouseLeave=T8(Oe,ve.onMouseLeave),re||(De.onMouseOver=Me,De.onMouseLeave=Oe)),u||(ve.onFocus=T8(ue,ve.onFocus),ve.onBlur=T8(ie,ve.onBlur),re||(De.onFocus=ue,De.onBlur=ie));const ze={...r,isRtl:G,arrow:i,disableInteractive:re,placement:z,PopperComponentProp:O,touch:Q.current},Ve=typeof I.popper=="function"?I.popper(ze):I.popper,Ke=b.useMemo(()=>{let He=[{name:"arrow",enabled:!!U,options:{element:U,padding:4}}];return T.popperOptions?.modifiers&&(He=He.concat(T.popperOptions.modifiers)),Ve?.popperOptions?.modifiers&&(He=He.concat(Ve.popperOptions.modifiers)),{...T.popperOptions,...Ve?.popperOptions,modifiers:He}},[U,T.popperOptions,Ve?.popperOptions]),et=hqn(ze),it=typeof I.transition=="function"?I.transition(ze):I.transition,Ft={slots:{popper:s.Popper,transition:s.Transition??F,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:I.arrow??l.arrow,popper:{...T,...Ve??l.popper},tooltip:I.tooltip??l.tooltip,transition:{...L,...it??l.transition}}},[Pt,Qn]=ni("popper",{elementType:fqn,externalForwardedProps:Ft,ownerState:ze,className:nr(et.popper,T?.className)}),[ir,jn]=ni("transition",{elementType:fP,externalForwardedProps:Ft,ownerState:ze}),[Zn,Br]=ni("tooltip",{elementType:gqn,className:et.tooltip,externalForwardedProps:Ft,ownerState:ze}),[vr,Ne]=ni("arrow",{elementType:mqn,className:et.arrow,externalForwardedProps:Ft,ownerState:ze,ref:X});return f.jsxs(b.Fragment,{children:[b.cloneElement(H,ve),f.jsx(Pt,{as:O??zD,placement:z,anchorEl:y?{getBoundingClientRect:()=>({top:U4.y,left:U4.x,right:U4.x,bottom:U4.y,width:0,height:0})}:q,popperRef:_e,open:q?ae:!1,id:ne,transition:!0,...De,...Qn,popperOptions:Ke,children:({TransitionProps:He})=>f.jsx(ir,{timeout:j.transitions.duration.shorter,...He,...jn,children:f.jsxs(Zn,{...Br,children:[N,i?f.jsx(vr,{...Ne}):null]})})})]})}),bqn=b.createContext(),yqn=b.createContext();function Mqn(e){return Bn("MuiTableCell",e)}const Cqn=Ln("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xqn=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${jt(r)}`,i!=="normal"&&`padding${jt(i)}`,`size${jt(o)}`]};return Yt(s,Mqn,t)},wqn=rt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${jt(n.size)}`],n.padding!=="normal"&&t[`padding${jt(n.padding)}`],n.align!=="inherit"&&t[`align${jt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(kr(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
    ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Cqn.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),zge=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...p}=r,h=b.useContext(bqn),g=b.useContext(yqn),m=g&&g.variant==="head";let v;a?v=a:v=m?"th":"td";let y=l;v==="td"?y=void 0:!y&&m&&(y="col");const M=d||g&&g.variant,C={...r,align:i,component:v,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:M==="head"&&h&&h.stickyHeader,variant:M},x=xqn(C);let w=null;return u&&(w=u==="asc"?"ascending":"descending"),f.jsx(wqn,{as:v,ref:n,className:nr(x.root,o),"aria-sort":w,scope:y,ownerState:C,...p})});function Sqn(e){return Bn("MuiToolbar",e)}Ln("MuiToolbar",["root","gutters","regular","dense"]);const Aqn=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Yt({root:["root",!n&&"gutters",r]},Sqn,t)},Oqn=rt("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(kr(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),zqn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:o,disableGutters:a,variant:s},u=Aqn(c);return f.jsx(Oqn,{as:o,className:nr(u.root,i),ref:n,ownerState:c,...l})}),Tqn=Pu(f.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),Eqn=Pu(f.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}));function Rqn(e){return Bn("MuiTablePaginationActions",e)}Ln("MuiTablePaginationActions",["root"]);const Iqn=e=>{const{classes:t}=e;return Yt({root:["root"]},Rqn,t)},Pqn=rt("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),Dqn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:i,className:o,count:a,disabled:s=!1,getItemAriaLabel:l,nextIconButtonProps:c,onPageChange:u,page:d,rowsPerPage:p,showFirstButton:h,showLastButton:g,slots:m={},slotProps:v={},...y}=r,M=ts(),x=Iqn(r),w=re=>{u(re,0)},S=re=>{u(re,d-1)},A=re=>{u(re,d+1)},z=re=>{u(re,Math.max(0,Math.ceil(a/p)-1))},O=m.firstButton??Zp,T=m.lastButton??Zp,I=m.nextButton??Zp,P=m.previousButton??Zp,N=m.firstButtonIcon??Eqn,F=m.lastButtonIcon??Tqn,L=m.nextButtonIcon??N0t,W=m.previousButtonIcon??_0t,H=M?T:O,j=M?I:P,G=M?P:I,q=M?O:T,$=M?v.lastButton:v.firstButton,U=M?v.nextButton:v.previousButton,X=M?v.previousButton:v.nextButton,Q=M?v.firstButton:v.lastButton;return f.jsxs(Pqn,{ref:n,className:nr(x.root,o),...y,children:[h&&f.jsx(H,{onClick:w,disabled:s||d===0,"aria-label":l("first",d),title:l("first",d),...$,children:M?f.jsx(F,{...v.lastButtonIcon}):f.jsx(N,{...v.firstButtonIcon})}),f.jsx(j,{onClick:S,disabled:s||d===0,color:"inherit","aria-label":l("previous",d),title:l("previous",d),...U??i,children:M?f.jsx(L,{...v.nextButtonIcon}):f.jsx(W,{...v.previousButtonIcon})}),f.jsx(G,{onClick:A,disabled:s||(a!==-1?d>=Math.ceil(a/p)-1:!1),color:"inherit","aria-label":l("next",d),title:l("next",d),...X??c,children:M?f.jsx(W,{...v.previousButtonIcon}):f.jsx(L,{...v.nextButtonIcon})}),g&&f.jsx(q,{onClick:z,disabled:s||d>=Math.ceil(a/p)-1,"aria-label":l("last",d),title:l("last",d),...Q,children:M?f.jsx(N,{...v.firstButtonIcon}):f.jsx(F,{...v.lastButtonIcon})})]})});function kqn(e){return Bn("MuiTablePagination",e)}const UO=Ln("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var r_e;const Lqn=rt(zge,{name:"MuiTablePagination",slot:"Root"})(kr(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),_qn=rt(zqn,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${UO.actions}`]:t.actions,...t.toolbar})})(kr(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${UO.actions}`]:{flexShrink:0,marginLeft:20}}))),Nqn=rt("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),Fqn=rt("p",{name:"MuiTablePagination",slot:"SelectLabel"})(kr(({theme:e})=>({...e.typography.body2,flexShrink:0}))),Wqn=rt(mM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${UO.selectIcon}`]:t.selectIcon,[`& .${UO.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${UO.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),qqn=rt(Qb,{name:"MuiTablePagination",slot:"MenuItem"})({}),Bqn=rt("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(kr(({theme:e})=>({...e.typography.body2,flexShrink:0})));function jqn({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Hqn(e){return`Go to ${e} page`}const Vqn=e=>{const{classes:t}=e;return Yt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},kqn,t)},Gqn=b.forwardRef(function(t,n){const r=mi({props:t,name:"MuiTablePagination"}),{ActionsComponent:i=Dqn,backIconButtonProps:o,colSpan:a,component:s=zge,count:l,disabled:c=!1,getItemAriaLabel:u=Hqn,labelDisplayedRows:d=jqn,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:h,onPageChange:g,onRowsPerPageChange:m,page:v,rowsPerPage:y,rowsPerPageOptions:M=[10,25,50,100],SelectProps:C={},showFirstButton:x=!1,showLastButton:w=!1,slotProps:S={},slots:A={},...z}=r,O=r,T=Vqn(O),I=S?.select??C,P=I.native?"option":qqn;let N;(s===zge||s==="td")&&(N=a||1e3);const F=Hi(I.id),L=Hi(I.labelId),W=()=>l===-1?(v+1)*y:y===-1?l:Math.min(l,(v+1)*y),H={slots:A,slotProps:S},[j,G]=ni("root",{ref:n,className:T.root,elementType:Lqn,externalForwardedProps:{...H,component:s,...z},ownerState:O,additionalProps:{colSpan:N}}),[q,$]=ni("toolbar",{className:T.toolbar,elementType:_qn,externalForwardedProps:H,ownerState:O}),[U,X]=ni("spacer",{className:T.spacer,elementType:Nqn,externalForwardedProps:H,ownerState:O}),[Q,re]=ni("selectLabel",{className:T.selectLabel,elementType:Fqn,externalForwardedProps:H,ownerState:O,additionalProps:{id:L}}),[ee,se]=ni("select",{className:T.select,elementType:Wqn,externalForwardedProps:H,ownerState:O}),[pe,te]=ni("menuItem",{className:T.menuItem,elementType:P,externalForwardedProps:H,ownerState:O}),[ce,oe]=ni("displayedRows",{className:T.displayedRows,elementType:Bqn,externalForwardedProps:H,ownerState:O});return f.jsx(j,{...G,children:f.jsxs(q,{...$,children:[f.jsx(U,{...X}),M.length>1&&f.jsx(Q,{...re,children:p}),M.length>1&&f.jsx(ee,{variant:"standard",...!I.variant&&{input:r_e||(r_e=f.jsx(K6,{}))},value:y,onChange:m,id:F,labelId:L,...I,classes:{...I.classes,root:nr(T.input,T.selectRoot,(I.classes||{}).root),select:nr(T.select,(I.classes||{}).select),icon:nr(T.selectIcon,(I.classes||{}).icon)},disabled:c,...se,children:M.map(ae=>b.createElement(pe,{...te,key:ae.label?ae.label:ae,value:ae.value?ae.value:ae},ae.label?ae.label:ae))}),f.jsx(ce,{...oe,children:d({from:l===0?0:v*y+1,to:W(),count:l===-1?-1:l,page:v})}),f.jsx(i,{className:T.actions,backIconButtonProps:o,count:l,nextIconButtonProps:h,onPageChange:g,page:v,rowsPerPage:y,showFirstButton:x,showLastButton:w,slotProps:S.actions,slots:A.actions,getItemAriaLabel:u,disabled:c})]})})});function i_e(e){return e.substring(2).toLowerCase()}function $qn(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Uqn(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,a=b.useRef(!1),s=b.useRef(null),l=b.useRef(!1),c=b.useRef(!1);b.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Pi(O3(t),s),d=en(g=>{const m=c.current;c.current=!1;const v=Is(s.current);if(!l.current||!s.current||"clientX"in g&&$qn(g,v))return;if(a.current){a.current=!1;return}let y;g.composedPath?y=g.composedPath().includes(s.current):y=!v.documentElement.contains(g.target)||s.current.contains(g.target),!y&&(n||!m)&&i(g)}),p=g=>m=>{c.current=!0;const v=t.props[g];v&&v(m)},h={ref:u};return o!==!1&&(h[o]=p(o)),b.useEffect(()=>{if(o!==!1){const g=i_e(o),m=Is(s.current),v=()=>{a.current=!0};return m.addEventListener(g,d),m.addEventListener("touchmove",v),()=>{m.removeEventListener(g,d),m.removeEventListener("touchmove",v)}}},[d,o]),r!==!1&&(h[r]=p(r)),b.useEffect(()=>{if(r!==!1){const g=i_e(r),m=Is(s.current);return m.addEventListener(g,d),()=>{m.removeEventListener(g,d)}}},[d,r]),b.cloneElement(t,h)}function Xqn(e){return Bn("MuiToggleButton",e)}const foe=Ln("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Yqn=b.createContext({}),Kqn=b.createContext(void 0);function Qqn(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const Zqn=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:a}=e,s={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${jt(o)}`,a]};return Yt(s,Xqn,t)},Jqn=rt(Ib,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${jt(n.size)}`]]}})(kr(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${foe.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${foe.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(_l()).map(([t])=>({props:{color:t},style:{[`&.${foe.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),e6n=b.forwardRef(function(t,n){const{value:r,...i}=b.useContext(Yqn),o=b.useContext(Kqn),a=Iz({...i,selected:Qqn(t.value,r)},t),s=mi({props:a,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:d=!1,disableFocusRipple:p=!1,fullWidth:h=!1,onChange:g,onClick:m,selected:v,size:y="medium",value:M,...C}=s,x={...s,color:u,disabled:d,disableFocusRipple:p,fullWidth:h,size:y},w=Zqn(x),S=z=>{m&&(m(z,M),z.defaultPrevented)||g&&g(z,M)},A=o||"";return f.jsx(Jqn,{className:nr(i.className,w.root,c,A),disabled:d,focusRipple:!p,ref:n,onClick:S,onChange:g,value:M,ownerState:x,"aria-pressed":v,...C,children:l})}),t6n=parseInt(b.version,10),qr=e=>{if(t6n>=19){const t=n=>e(n,n.ref??null);return t.displayName=e.displayName??e.name,t}return b.forwardRef(e)},Cs=Pu,o_e=Cs(f.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),a_e=Cs(f.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),s_e=Cs(f.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),l_e=Cs(f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),n6n=Cs(f.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),c_e=Cs(f.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"})),r6n=Cs(f.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}));Cs(f.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}));Cs(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}));const i6n=Cs(f.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),o6n=Cs(f.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"})),a6n=Cs(f.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"})),s6n=Cs(f.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"})),l6n=Cs(f.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"})),c6n=Cs(f.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),u_e=Cs(f.jsx("path",{d:"M19 6.41L17.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"})),d_e=Cs(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})),u6n=Cs(f.jsx("path",{d:"M19 13H5v-2h14v2z"})),d6n=Cs(f.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"})),p_e=Cs(f.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),h_e=Cs(f.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),p6n=Cs(f.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),h6n=Cs(f.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"})),f6n=Cs(f.jsx("g",{children:f.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})})),f_e=Cs(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}));Cs(f.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}));const g6n=Cs(f.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})),m6n=Cs(f.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),b1t=b.createContext(void 0),kn=()=>{const e=b.useContext(b1t);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},v6n=["sortingOrder"],b6n=b.memo(function(t){const{sortingOrder:n}=t,r=Lt(t,v6n),i=kn(),[o]=n,a=o==="asc"?i.slots.columnSortedAscendingIcon:i.slots.columnSortedDescendingIcon;return a?f.jsx(a,Y({},r)):null}),y1t=b.createContext(void 0);function bi(){const e=b.useContext(y1t);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e}const y6n=new TextEncoder;let v7=2*1024,aF=new ArrayBuffer(v7),goe=new Uint8Array(aF),GS=new Int32Array(aF);const M6n=C6n;function C6n(e){const t=e.length*2;t>v7&&(v7=t+(4-t%4),aF=new ArrayBuffer(v7),goe=new Uint8Array(aF),GS=new Int32Array(aF));const n=y6n.encodeInto(e,goe).written,r=0,i=n|0;let o=0,a=(r+i|0)+374761393|0;if(i<16)for(;(o+3|0)<i;o=o+4|0)a=Math.imul(Tg(a+Math.imul(GS[o]|0,3266489917)|0,17)|0,668265263);else{let s=r+606290984|0,l=r+2246822519|0,c=r,u=r-2654435761|0;for(;(o+15|0)<i;o=o+16|0)s=Math.imul(Tg(s+Math.imul(GS[o+0|0]|0,2246822519)|0,13)|0,2654435761),l=Math.imul(Tg(l+Math.imul(GS[o+4|0]|0,2246822519)|0,13)|0,2654435761),c=Math.imul(Tg(c+Math.imul(GS[o+8|0]|0,2246822519)|0,13)|0,2654435761),u=Math.imul(Tg(u+Math.imul(GS[o+12|0]|0,2246822519)|0,13)|0,2654435761);for(a=(((Tg(s,1)|0+Tg(l,7)|0)+Tg(c,12)|0)+Tg(u,18)|0)+i|0;(o+3|0)<i;o=o+4|0)a=Math.imul(Tg(a+Math.imul(GS[o]|0,3266489917)|0,17)|0,668265263)}for(;o<i;o=o+1|0)a=Math.imul(Tg(a+Math.imul(goe[o]|0,374761393)|0,11)|0,2654435761);return a=Math.imul(a^a>>>15,2246822519),a=Math.imul(a^a>>>13,3266489917),((a^a>>>16)>>>0).toString()}function Tg(e,t){return e<<t|e>>>32-t}const M1t={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=M1t.values;return`@media (min-width:${typeof t[e]=="number"?t[e]:e}px)`}},C1t={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},x6n=x1t(C1t),_n=Y({breakpoints:M1t,spacing:w6n,transition:S6n,keys:C1t},x6n);function w6n(e,t,n,r){return e===void 0?Eg(1):t===void 0?Eg(e):n===void 0?Eg(e)+" "+Eg(t):r===void 0?Eg(e)+" "+Eg(t)+" "+Eg(n):Eg(e)+" "+Eg(t)+" "+Eg(n)+" "+Eg(r)}function Eg(e){return e===0?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}function S6n(e,t){const{duration:n=_n.transitions.duration.base,easing:r=_n.transitions.easing.easeInOut,delay:i=0}=t??{};return e.map(o=>`${o} ${n} ${r} ${i}ms`).join(", ")}function x1t(e){if(typeof e=="string")return`var(${e})`;const t={};for(const n in e)Object.hasOwn(e,n)&&(t[n]=x1t(e[n]));return t}function A6n(){const e=$b();return b.useMemo(()=>{const t=M6n(R6n(e)),n=O6n(e);return{id:t,variables:n}},[e])}function O6n(e){const t=T6n(e),n=(e.vars||e).palette.DataGrid,r=n?.bg??(e.palette.mode==="dark"?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 95%, #fff)`:(e.vars||e).palette.background.paper),i=n?.headerBg??r,o=n?.pinnedBg??r,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:wd(e.palette.background.default,e.palette.action.disabledOpacity),s=e.palette.mode==="dark"?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 90%, #fff)`:(e.vars||e).palette.background.paper,l=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,c=z6n(e),u=e.vars?.font?.body2??moe(e.typography.body2),d=e.vars?.font?.caption??moe(e.typography.caption),p=e.vars?.font?.body1??moe(e.typography.body1),h=_n.keys;return{[h.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[h.colors.border.base]:t,[h.colors.background.base]:r,[h.colors.background.overlay]:s,[h.colors.background.backdrop]:a,[h.colors.foreground.base]:(e.vars||e).palette.text.primary,[h.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[h.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[h.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[h.colors.foreground.error]:(e.vars||e).palette.error.dark,[h.colors.interactive.hover]:(e.vars||e).palette.action.hover,[h.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[h.colors.interactive.focus]:g_e((e.vars||e).palette.primary.main),[h.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[h.colors.interactive.disabled]:g_e((e.vars||e).palette.action.disabled),[h.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[h.colors.interactive.selected]:l,[h.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[h.header.background.base]:i,[h.cell.background.pinned]:o,[h.radius.base]:c,[h.typography.fontFamily.base]:e.typography.fontFamily,[h.typography.fontWeight.light]:e.typography.fontWeightLight,[h.typography.fontWeight.regular]:e.typography.fontWeightRegular,[h.typography.fontWeight.medium]:e.typography.fontWeightMedium,[h.typography.fontWeight.bold]:e.typography.fontWeightBold,[h.typography.font.body]:u,[h.typography.font.small]:d,[h.typography.font.large]:p,[h.transitions.easing.easeIn]:e.transitions.easing.easeIn,[h.transitions.easing.easeOut]:e.transitions.easing.easeOut,[h.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[h.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[h.transitions.duration.base]:`${e.transitions.duration.short}ms`,[h.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[h.shadows.base]:(e.vars||e).shadows[2],[h.shadows.overlay]:(e.vars||e).shadows[8],[h.zIndex.panel]:(e.vars||e).zIndex.modal,[h.zIndex.menu]:(e.vars||e).zIndex.modal}}function z6n(e){return e.vars?e.vars.shape.borderRadius:typeof e.shape.borderRadius=="number"?`${e.shape.borderRadius}px`:e.shape.borderRadius}function T6n(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?H6(wd(e.palette.divider,1),.88):j6(wd(e.palette.divider,1),.68)}function E6n(e,t){return`rgba(from ${e} r g b / ${t})`}function g_e(e){return E6n(e,1)}function moe(e){if(!e)return;const t=typeof e.fontSize=="number"?`${e.fontSize}px`:e.fontSize;return`${e.fontWeight} ${t} / ${e.lineHeight} ${e.fontFamily}`}function R6n(e){const t=new WeakSet;return JSON.stringify(e,(n,r)=>{if(typeof window<"u"&&r===window||typeof document<"u"&&r===document)return r.toString();if(r!==null&&typeof r=="object"){if(b.isValidElement(r)||t.has(r))return null;t.add(r)}return r})}const I6n=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],P6n=["onRowsPerPageChange","material","disabled"],D6n=["material"],k6n=["autoFocus","label","fullWidth","slotProps","className","material"],L6n=["material"],_6n=["material"],N6n=["material"],F6n=["material"],W6n=["material"],q6n=["material"],B6n=["material"],j6n=["material"],H6n=["material"],V6n=["material","label","className"],G6n=["material"],$6n=["inert","iconStart","iconEnd","children","material"],U6n=["slotProps","material"],X6n=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],Y6n=["key"],K6n=["inputProps","InputProps","InputLabelProps"],Q6n=["slotProps","material"],Z6n=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],J6n=["native"],eBn=["children","value","active"],tBn=["items","value","material"],m_e=rt(sCe)(({theme:e})=>({[`&.${bfe.positionEnd} .${wfe.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),w1t=rt(v1t,{shouldForwardProp:e=>e!=="fullWidth"})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${LR.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),v_e=rt(m1t,{shouldForwardProp:e=>e!=="density"})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),nBn=rt(b_n)({[`& .${uO.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),rBn=qr(function(t,n){const{id:r,label:i,labelId:o,material:a,disabled:s,slotProps:l,onChange:c,onKeyDown:u,onOpen:d,onClose:p,size:h,style:g,fullWidth:m}=t,v=Lt(t,I6n),y={PaperProps:{onKeyDown:u}};return p&&(y.onClose=p),f.jsxs(Rw,{size:h,fullWidth:m,style:g,disabled:s,ref:n,children:[f.jsx(Ew,{id:o,htmlFor:r,shrink:!0,variant:"outlined",children:i}),f.jsx(mM,Y({id:r,labelId:o,label:i,displayEmpty:!0,onChange:c,variant:"outlined"},v,{notched:!0,inputProps:l?.htmlInput,onOpen:d,MenuProps:y,size:h},a))]})}),iBn=rt(Gqn)(({theme:e})=>({[`& .${UO.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${UO.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),oBn=qr(function(t,n){const{onRowsPerPageChange:r,material:i,disabled:o}=t,a=Lt(t,P6n),s=b.useMemo(()=>{if(o)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[o]),l=bi(),c=kn(),{estimatedRowCount:u}=c;return f.jsx(iBn,Y({component:"div",onRowsPerPageChange:en(d=>{r?.(Number(d.target.value))}),labelRowsPerPage:l.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:d=>l.current.getLocaleText("paginationDisplayedRows")(Y({},d,{estimated:u})),getItemAriaLabel:l.current.getLocaleText("paginationItemAriaLabel")},s,a,i,{ref:n}))}),aBn=qr(function(t,n){const{material:r}=t,i=Lt(t,D6n);return f.jsx(IWn,Y({},i,r,{ref:n}))}),sBn=qr(function(t,n){const{autoFocus:r,label:i,fullWidth:o,slotProps:a,className:s,material:l}=t,c=Lt(t,k6n),u=b.useRef(null),d=Pi(u,n),p=b.useRef(null);return b.useEffect(()=>{r?u.current?.querySelector("input")?.focus({preventScroll:!0}):r===!1&&p.current&&p.current.stop({})},[r]),i?f.jsx(w1t,{className:s,control:f.jsx(v_e,Y({},c,l,{inputProps:a?.htmlInput,ref:d,touchRippleRef:p})),label:i,fullWidth:o}):f.jsx(v_e,Y({},c,l,{className:Lo(s,l?.className),inputProps:a?.htmlInput,ref:d,touchRippleRef:p}))}),lBn=qr(function(t,n){const{material:r}=t,i=Lt(t,L6n);return f.jsx($6,Y({},i,r,{ref:n}))}),cBn=qr(function(t,n){const{material:r}=t,i=Lt(t,_6n);return f.jsx($W,Y({},i,r,{ref:n}))}),uBn=qr(function(t,n){const{material:r}=t,i=Lt(t,N6n);return f.jsx(eqn,Y({},i,r,{ref:n}))}),dBn=qr(function(t,n){const{material:r}=t,i=Lt(t,F6n);return f.jsx(PR,Y({},i,r,{ref:n}))}),pBn=rt(e6n)(({theme:e})=>({gap:e.spacing(1),border:0})),hBn=qr(function(t,n){const{material:r}=t,i=Lt(t,W6n);return f.jsx(pBn,Y({size:"small",color:"primary"},i,r,{ref:n}))}),fBn=qr(function(t,n){const{material:r}=t,i=Lt(t,q6n);return f.jsx(EQ,Y({},i,r,{ref:n}))}),gBn=qr(function(t,n){const{material:r}=t,i=Lt(t,B6n);return f.jsx(Zp,Y({},i,r,{ref:n}))}),mBn=qr(function(t,n){const{material:r}=t,i=Lt(t,j6n);return f.jsx(vqn,Y({},i,r,{ref:n}))}),vBn=qr(function(t,n){const{material:r}=t,i=Lt(t,H6n);return f.jsx(Q_n,Y({},i,r,{ref:n}))}),bBn=qr(function(t,n){const{material:r,label:i,className:o}=t,a=Lt(t,V6n);return i?f.jsx(w1t,{className:o,control:f.jsx(t_e,Y({},a,r,{ref:n})),label:i}):f.jsx(t_e,Y({},a,r,{className:o,ref:n}))}),yBn=qr(function(t,n){const{material:r}=t,i=Lt(t,G6n);return f.jsx(NQ,Y({},i,r,{ref:n}))});function MBn(e){const{inert:t,iconStart:n,iconEnd:r,children:i,material:o}=e,a=Lt(e,$6n);return t&&(a.disableRipple=!0),b.createElement(Qb,Y({},a,o),[n&&f.jsx(u4e,{children:n},"1"),f.jsx(nBn,{children:i},"2"),r&&f.jsx(u4e,{children:r},"3")])}function CBn(e){const{slotProps:t,material:n}=e,r=Lt(e,U6n);return f.jsx(P3,Y({variant:"outlined"},r,n,{inputProps:t?.htmlInput,InputProps:Gxe(t?.input),InputLabelProps:Y({shrink:!0},t?.inputLabel)}))}function xBn(e){const t=kn(),{id:n,multiple:r,freeSolo:i,options:o,getOptionLabel:a,isOptionEqualToValue:s,value:l,onChange:c,label:u,placeholder:d,slotProps:p,material:h}=e,g=Lt(e,X6n);return f.jsx(f1t,Y({id:n,multiple:r,freeSolo:i,options:o,getOptionLabel:a,isOptionEqualToValue:s,value:l,onChange:c,renderTags:(m,v)=>m.map((y,M)=>{const C=v({index:M}),{key:x}=C,w=Lt(C,Y6n);return f.jsx(EQ,Y({variant:"outlined",size:"small",label:typeof y=="string"?y:a?.(y)},w),x)}),renderInput:m=>{const{inputProps:v,InputProps:y,InputLabelProps:M}=m,C=Lt(m,K6n);return f.jsx(P3,Y({},C,{label:u,placeholder:d,inputProps:v,InputProps:Gxe(y,!1),InputLabelProps:Y({shrink:!0},M)},p?.textField,t.slotProps?.baseTextField))}},g,h))}function wBn(e){return f.jsx(K6,Y({},Gxe(e)))}function Gxe(e,t=!0){if(!e)return;const{slotProps:n,material:r}=e,o=Lt(e,Q6n);t&&(o.startAdornment&&(o.startAdornment=f.jsx(m_e,{position:"start",children:o.startAdornment})),o.endAdornment&&(o.endAdornment=f.jsx(m_e,{position:"end",children:o.endAdornment})));for(const a in r)Object.hasOwn(r,a)&&(o[a]=r[a]);return n?.htmlInput&&(o.inputProps?o.inputProps=Y({},o.inputProps,n?.htmlInput):o.inputProps=n?.htmlInput),o}const SBn={"bottom-start":"top left","bottom-end":"top right"};function ABn(e){const{open:t,children:n,className:r,flip:i,onExited:o,onDidShow:a,onDidHide:s,id:l,target:c,transition:u,placement:d,material:p}=e,h=Lt(e,Z6n),g=b.useMemo(()=>{const v=[{name:"preventOverflow",options:{padding:8}}];return i&&v.push({name:"flip",enabled:!0,options:{rootBoundary:"document"}}),(a||s)&&v.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{a?.()},effect:()=>()=>{s?.()}}),v},[i,a,s]);let m;if(!u)m=b_e(e,n);else{const v=y=>M=>{y&&y(),o&&o(M)};m=y=>b_e(e,f.jsx(fP,Y({},y.TransitionProps,{style:{transformOrigin:SBn[y.placement]},onExited:v(y.TransitionProps?.onExited),children:f.jsx(R3,{children:n})})))}return f.jsx(zD,Y({id:l,className:r,open:t,anchorEl:c,transition:u,placement:d,modifiers:g},h,p,{children:m}))}function b_e(e,t){return zBn(e,OBn(e,t))}function OBn(e,t){return e.onClickAway===void 0?t:f.jsx(Uqn,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}function zBn(e,t){return e.focusTrap===void 0?t:f.jsx(gCe,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:f.jsx("div",{tabIndex:-1,children:t})})}function TBn(e){let{native:t}=e,n=Lt(e,J6n);return t?f.jsx("option",Y({},n)):f.jsx(Qb,Y({},n))}const EBn=rt(F0t,{name:"MuiDataGrid",slot:"Tabs"})(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`})),RBn=rt(mge,{name:"MuiDataGrid",slot:"Tab"})({flex:1,minWidth:"fit-content"}),IBn=rt("div",{name:"MuiDataGrid",slot:"TabPanel"})({flex:1,display:"flex",flexDirection:"column",overflow:"hidden"});function PBn(e){const{children:t,active:n}=e,r=Lt(e,eBn);return f.jsx(IBn,Y({role:"tabpanel",style:{display:n?"flex":"none"}},r,{children:t}))}function DBn(e){let{items:t,value:n,material:r}=e,i=Lt(e,tBn);const o=Hi(),a=`${o}-tab-${n}`,s=`${o}-tabpanel-${n}`;return f.jsxs(b.Fragment,{children:[f.jsx(EBn,Y({},i,{value:n,variant:"scrollable",scrollButtons:"auto"},r,{children:t.map(l=>f.jsx(RBn,{value:l.value,label:l.label,id:a,"aria-controls":s},l.value))})),t.map(l=>f.jsx(PBn,{value:l.value,active:n===l.value,id:s,"aria-labelledby":a,children:l.children},l.value))]})}const kBn={booleanCellTrueIcon:h_e,booleanCellFalseIcon:u_e,columnMenuIcon:c6n,openFilterButtonIcon:n6n,filterPanelDeleteIcon:u_e,columnFilteredIcon:c_e,columnSelectorIcon:i6n,columnUnsortedIcon:b6n,columnSortedAscendingIcon:o_e,columnSortedDescendingIcon:a_e,columnResizeIcon:o6n,densityCompactIcon:a6n,densityStandardIcon:s6n,densityComfortableIcon:l6n,exportIcon:m6n,moreActionsIcon:p6n,treeDataCollapseIcon:l_e,treeDataExpandIcon:s_e,groupingCriteriaCollapseIcon:l_e,groupingCriteriaExpandIcon:s_e,detailPanelExpandIcon:d_e,detailPanelCollapseIcon:u6n,rowReorderIcon:p_e,quickFilterIcon:r6n,quickFilterClearIcon:f_e,columnMenuHideIcon:h6n,columnMenuSortAscendingIcon:o_e,columnMenuSortDescendingIcon:a_e,columnMenuUnsortIcon:null,columnMenuFilterIcon:c_e,columnMenuManageColumnsIcon:f6n,columnMenuClearIcon:f_e,loadIcon:d6n,filterPanelAddIcon:d_e,filterPanelRemoveAllIcon:g6n,columnReorderIcon:p_e,menuItemCheckIcon:h_e},LBn={baseAutocomplete:xBn,baseBadge:aBn,baseCheckbox:sBn,baseChip:fBn,baseCircularProgress:lBn,baseDivider:cBn,baseInput:wBn,baseLinearProgress:uBn,baseMenuList:yBn,baseMenuItem:MBn,baseTextField:CBn,baseButton:dBn,baseIconButton:gBn,baseToggleButton:hBn,baseTooltip:mBn,baseTabs:DBn,basePagination:oBn,basePopper:ABn,baseSelect:rBn,baseSelectOption:TBn,baseSkeleton:vBn,baseSwitch:bBn},_Bn=Y({},LBn,kBn);var I9=Symbol("NOT_FOUND");function NBn(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function FBn(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function WBn(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var y_e=e=>Array.isArray(e)?e:[e];function qBn(e){const t=Array.isArray(e[0])?e[0]:e;return WBn(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function BBn(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function jBn(e){let t;return{get(n){return t&&e(t.key,n)?t.value:I9},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function HBn(e,t){let n=[];function r(s){const l=n.findIndex(c=>t(s,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return I9}function i(s,l){r(s)===I9&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function o(){return n}function a(){n=[]}return{get:r,put:i,getEntries:o,clear:a}}var VBn=(e,t)=>e===t;function GBn(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}}function $xe(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=VBn,maxSize:i=1,resultEqualityCheck:o}=n,a=GBn(r);let s=0;const l=i<=1?jBn(a):HBn(i,a);function c(){let u=l.get(arguments);if(u===I9){if(u=e.apply(null,arguments),s++,o){const p=l.getEntries().find(h=>o(h.value,u));p&&(u=p.value,s!==0&&s--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}var $Bn=class{constructor(t){this.value=t}deref(){return this.value}},UBn=typeof WeakRef<"u"?WeakRef:$Bn,XBn=0,M_e=1;function E8(){return{s:XBn,v:void 0,o:null,p:null}}function S1t(e,t={}){let n=E8();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let s=n;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const h=arguments[d];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const m=g.get(h);m===void 0?(s=E8(),g.set(h,s)):s=m}else{let g=s.p;g===null&&(s.p=g=new Map);const m=g.get(h);m===void 0?(s=E8(),g.set(h,s)):s=m}}const c=s;let u;if(s.s===M_e)u=s.v;else if(u=e.apply(null,arguments),o++,r){const d=i?.deref?.()??i;d!=null&&r(d,u)&&(u=d,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new UBn(u):u}return c.s=M_e,c.v=u,u}return a.clearCache=()=>{n=E8(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function A1t(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),NBn(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=S1t,argsMemoizeOptions:g=[]}=u,m=y_e(p),v=y_e(g),y=qBn(i),M=d(function(){return o++,c.apply(null,arguments)},...m),C=h(function(){a++;const w=BBn(y,arguments);return s=M.apply(null,w),s},...v);return Object.assign(C,{resultFunc:c,memoizedResultFunc:M,dependencies:y,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var YBn=A1t(S1t),KBn=Object.assign((e,t=YBn)=>{FBn(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>KBn});const QBn=A1t({memoize:$xe,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),ZBn=(e,t,n,r,i,o,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&n&&r&&i&&o)s=(l,c,u,d)=>{const p=e(l,c,u,d),h=t(l,c,u,d),g=n(l,c,u,d),m=r(l,c,u,d),v=i(l,c,u,d);return o(p,h,g,m,v,c,u,d)};else if(e&&t&&n&&r&&i)s=(l,c,u,d)=>{const p=e(l,c,u,d),h=t(l,c,u,d),g=n(l,c,u,d),m=r(l,c,u,d);return i(p,h,g,m,c,u,d)};else if(e&&t&&n&&r)s=(l,c,u,d)=>{const p=e(l,c,u,d),h=t(l,c,u,d),g=n(l,c,u,d);return r(p,h,g,c,u,d)};else if(e&&t&&n)s=(l,c,u,d)=>{const p=e(l,c,u,d),h=t(l,c,u,d);return n(p,h,c,u,d)};else if(e&&t)s=(l,c,u,d)=>{const p=e(l,c,u,d);return t(p,c,u,d)};else if(e)s=e;else throw new Error("Missing arguments");return s},JBn=(...e)=>{const t=new WeakMap;let n=1;const r=e[e.length-1],i=e.length-1||1,o=Math.max(r.length-i,0);if(o>3)throw new Error("Unsupported number of arguments");return(s,l,c,u)=>{let d=s.__cacheKey__;d||(d={id:n},s.__cacheKey__=d,n+=1);let p=t.get(d);if(!p){const h=e.length===1?[v=>v,r]:e;let g=e;const m=[void 0,void 0,void 0];switch(o){case 0:break;case 1:{g=[...h.slice(0,-1),()=>m[0],r];break}case 2:{g=[...h.slice(0,-1),()=>m[0],()=>m[1],r];break}case 3:{g=[...h.slice(0,-1),()=>m[0],()=>m[1],()=>m[2],r];break}default:throw new Error("Unsupported number of arguments")}p=QBn(...g),p.selectorArgs=m,t.set(d,p)}switch(o){case 3:p.selectorArgs[2]=u;case 2:p.selectorArgs[1]=c;case 1:p.selectorArgs[0]=l}switch(o){case 0:return p(s);case 1:return p(s,l);case 2:return p(s,l,c);case 3:return p(s,l,c,u);default:throw new Error("unreachable")}}};var voe={exports:{}},boe={};/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var C_e;function ejn(){if(C_e)return boe;C_e=1;var e=Wr(),t=kat();function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return boe.useSyncExternalStoreWithSelector=function(c,u,d,p,h){var g=o(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function y(S){if(!M){if(M=!0,C=S,S=p(S),h!==void 0&&m.hasValue){var A=m.value;if(h(A,S))return x=A}return x=S}if(A=x,r(C,S))return A;var z=p(S);return h!==void 0&&h(A,z)?(C=S,A):(C=S,x=z)}var M=!1,C,x,w=d===void 0?null:d;return[function(){return y(u())},w===null?void 0:function(){return y(w())}]},[u,d,p,h]);var v=i(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=v},[v]),l(v),v},boe}var x_e;function tjn(){return x_e||(x_e=1,voe.exports=ejn()),voe.exports}var O1t=tjn();function w_e(e,t,n,r,i){const o=a=>t(a,n,r,i);return O1t.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,o)}const njn=()=>{};function Tge(e,t,n){const r=xp(rjn,{store:e,selector:t}).current;r.effect=n,V6(r.onMount)}function rjn(e){const{store:t,selector:n}=e;let r=n(t.state);const i={effect:njn,dispose:null,subscribe:()=>{i.dispose??=t.subscribe(o=>{const a=n(o);i.effect(r,a),r=a})},onMount:()=>(i.subscribe(),()=>{i.dispose?.(),i.dispose=null})};return i.subscribe(),i}let ijn=class z1t{static create(t){return new z1t(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,r=this.listeners.values();let i;for(;i=r.next(),!i.done;){if(n!==this.updateTick)return;const o=i.value;o(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(Y({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(Y({},this.state,{[t]:n}))}};const rr=(...e)=>{const t=ZBn(...e);return(r,i,o,a)=>t(Uxe(r),i,o,a)},ea=(...e)=>{const t=JBn(...e);return(r,i,o,a)=>t(Uxe(r),i,o,a)},Ps=e=>(t,n)=>e(Uxe(t),n);function Uxe(e){return"current"in e?e.current.state:e}const Ys=Ps(e=>e.dimensions),Xxe=rr(Ys,e=>e.columnsTotalWidth),ojn=rr(Ys,e=>e.rowHeight);rr(Ys,e=>e.contentSize.height);const T1t=rr(Ys,e=>e.hasScrollX),E1t=rr(Ys,e=>e.hasScrollY),R1t=rr(Ys,e=>e.columnsTotalWidth<e.viewportOuterSize.width),ajn=rr(Ys,e=>e.headerHeight),sjn=rr(Ys,e=>e.groupHeaderHeight);rr(Ys,e=>e.headerFilterHeight);const ljn=rr(Ys,e=>e.hasScrollX?e.scrollbarSize:0),I1t=rr(Ys,e=>e.hasScrollY?e.scrollbarSize:0),cjn=rr(Ys,ljn,(e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(t===0&&!n)}),Yxe=Ps(e=>e.rowsMeta),_m=Ps(e=>e.rows),BD=rr(_m,e=>e.totalRowCount),ujn=rr(_m,e=>e.loading),djn=rr(_m,e=>e.totalTopLevelRowCount),yf=rr(_m,e=>e.dataRowIdToModelLookup);rr(yf,(e,t)=>e[t]);const Qc=rr(_m,e=>e.tree),hb=rr(Qc,(e,t)=>e[t]),pjn=rr(_m,e=>e.groupsToFetch),hjn=rr(_m,e=>e.groupingName),S_e=rr(_m,e=>e.treeDepths),bB=ea(_m,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:(t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]??0)+1}),pO=rr(_m,e=>e.dataRowIds),fjn=ea(pO,yf,(e,t)=>e.reduce((n,r)=>(t[r]&&n.push(t[r]),n),[])),gjn=rr(_m,e=>e?.additionalRowGroups),jD=ea(gjn,e=>{const t=e?.pinnedRows;return{bottom:t?.bottom?.map(n=>({id:n.id,model:n.model??{}}))??[],top:t?.top?.map(n=>({id:n.id,model:n.model??{}}))??[]}}),P1t=rr(jD,e=>(e?.top?.length||0)+(e?.bottom?.length||0)),Dl="auto-generated-group-node-root",qz=Symbol("mui.id_autogenerated"),mjn=()=>({type:"group",id:Dl,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function vjn(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
`))}const wZ=(e,t,n)=>{const r=t?t(e):e.id;return vjn(r,e,n),r},bjn=(e,t,n)=>{const r=t.field;if(!t||!t.valueGetter)return e[r];const i=e[t.field];return t.valueGetter(i,e,t,n)},b7=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const i={type:"full",rows:[]},o={};for(let a=0;a<e.length;a+=1){const s=e[a],l=wZ(s,t);o[l]=s,i.rows.push(l)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:i,dataRowIdToModelLookup:o}},D1t=({tree:e,rowCountProp:t=0})=>{const n=e[Dl];return Math.max(t,n.children.length+(n.footerId==null?0:1))},k1t=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:i,previousGroupsToFetch:o})=>{const a=e.current.caches.rows,{tree:s,treeDepths:l,dataRowIds:c,groupingName:u,groupsToFetch:d=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:i,updates:a.updates,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:o}),p=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:l,dataRowIds:c,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},Y({},p,{totalRowCount:Math.max(t,p.dataRowIds.length),totalTopLevelRowCount:D1t({tree:p.tree,rowCountProp:t}),groupingName:u,loading:n,groupsToFetch:d})},L1t=e=>qz in e,xP=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,Kxe=(e,t,n,r)=>{const i=e[t];if(i.type!=="group")return[];const o=[];for(let a=0;a<i.children.length;a+=1){const s=i.children[a];if((!n||!xP(e[s]))&&o.push(s),r)continue;const l=Kxe(e,s,n,r);for(let c=0;c<l.length;c+=1)o.push(l[c])}return!n&&i.footerId!=null&&o.push(i.footerId),o},A_e=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const i=new Map;n.forEach(c=>{const u=wZ(c,t,"A row was provided without id when calling updateRows():");i.has(u)?i.set(u,Y({},i.get(u),c)):i.set(u,c)});const o={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:Y({},e.updates.idToActionLookup),groupKeys:r},a=Y({},e.dataRowIdToModelLookup),s={insert:{},modify:{},remove:{}};i.forEach((c,u)=>{const d=o.idToActionLookup[u];if(c._action==="delete"){if(d==="remove"||!a[u])return;d!=null&&(s[d][u]=!0),o.actions.remove.push(u),delete a[u];return}const p=a[u];if(p){d==="remove"?(s.remove[u]=!0,o.actions.modify.push(u)):d==null&&o.actions.modify.push(u),a[u]=Y({},p,c);return}d==="remove"?(s.remove[u]=!0,o.actions.insert.push(u)):d==null&&o.actions.insert.push(u),a[u]=c});const l=Object.keys(s);for(let c=0;c<l.length;c+=1){const u=l[c],d=s[u];Object.keys(d).length>0&&(o.actions[u]=o.actions[u].filter(p=>!d[p]))}return{dataRowIdToModelLookup:a,updates:o,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},_1t="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function O_e(e,t,n){const r=[];return t.forEach(i=>{const o=wZ(i,n,"A row was provided without id when calling updateRows():");if(hb(e,o)?.type==="pinnedRow"){const s=e.current.caches.pinnedRows,l=s.idLookup[o];l&&(s.idLookup[o]=Y({},l,i))}else r.push(i)}),r}const N1t=(e,t,n)=>typeof e=="number"&&e>0?e:t,yjn=Object.is;function F1t(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const i in e)if(n+=1,!yjn(e[i],t[i])||!(i in t))return!1;for(const i in t)r+=1;return n===r}function MM(e){return b.memo(e,F1t)}const Mjn={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarCharts:"Charts",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnMenuManageCharts:"Manage charts",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:n,estimated:r})=>{if(!r)return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`;const i=r&&r>t?`around ${r}`:`more than ${t}`;return`${e}–${t} of ${n!==-1?n:i}`},paginationItemAriaLabel:e=>e==="first"?"Go to first page":e==="last"?"Go to last page":e==="next"?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelNone:"none",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",chartsNoCharts:"There are no charts available",chartsChartNotSelected:"Select a chart type to configure its options",chartsTabChart:"Chart",chartsTabFields:"Fields",chartsTabCustomize:"Customize",chartsCloseButton:"Close charts configuration",chartsSyncButtonLabel:"Sync chart",chartsSearchPlaceholder:"Search fields",chartsSearchLabel:"Search fields",chartsSearchClear:"Clear search",chartsNoFields:"No fields",chartsFieldBlocked:"This field cannot be added to any section",chartsCategories:"Categories",chartsSeries:"Series",chartsMenuAddToDimensions:e=>`Add to ${e}`,chartsMenuAddToValues:e=>`Add to ${e}`,chartsMenuMoveUp:"Move up",chartsMenuMoveDown:"Move down",chartsMenuMoveToTop:"Move to top",chartsMenuMoveToBottom:"Move to bottom",chartsMenuOptions:"Field options",chartsMenuRemove:"Remove",chartsDragToDimensions:e=>`Drag here to use column as ${e}`,chartsDragToValues:e=>`Drag here to use column as ${e}`,aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,n)=>t==="is any of"?`${e} is any of: ${n}`:`${e} ${t} ${n}`,promptChangeFilterDescription:(e,t,n)=>t==="is any of"?`Filter where ${e} is any of: ${n}`:`Filter where ${e} ${t} ${n}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`,promptChangeChartsLabel:(e,t)=>`Dimensions (${e}), Values (${t})`};function lo(e){return Bn("MuiDataGrid",e)}const Te=Ln("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dropAbove","row--dropBelow","row--beingDragged","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowReorderIcon","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--pinnedRight","scrollShadow","scrollShadow--vertical","scrollShadow--horizontal","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"]);let cm=(function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e})({});const z_e=1e3;class Cjn{timeouts=new Map;cleanupTimeout=z_e;constructor(t=z_e){this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,i)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class xjn{registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()});register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class Qxe{static create(){return new Qxe}}const R8={current:Sjn()};let T_e=0;function Xn(e,t,n,r){const i=b.useState(Qxe.create)[0],o=b.useRef(null),a=b.useRef(null);a.current=n;const s=b.useRef(null);if(!o.current&&a.current){const l=(c,u,d)=>{u.defaultMuiPrevented||a.current?.(c,u,d)};o.current=e.current.subscribeEvent(t,l,r),T_e+=1,s.current={cleanupToken:T_e},R8.current.register(i,()=>{o.current?.(),o.current=null,s.current=null},s.current)}else!a.current&&o.current&&(o.current(),o.current=null,s.current&&(R8.current.unregister(s.current),s.current=null));b.useEffect(()=>{if(!o.current&&a.current){const l=(c,u,d)=>{u.defaultMuiPrevented||a.current?.(c,u,d)};o.current=e.current.subscribeEvent(t,l,r)}return s.current&&R8.current&&(R8.current.unregister(s.current),s.current=null),()=>{o.current?.(),o.current=null}},[e,t,r])}const wjn={isFirst:!0};function Ka(e,t,n){Xn(e,t,n,wjn)}function Sjn(){return typeof FinalizationRegistry<"u"?new xjn:new Cjn}const Ajn=Object.is,W1t=F1t,Ojn=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),zjn=(e,t)=>{let n=Object.is;return t instanceof Array?n=Ojn:t instanceof Object&&(n=W1t),n(e,t)},Tjn=()=>({state:null,equals:null,selector:null,args:void 0}),E_e=[],Ejn=()=>null;function Qt(e,t,n=void 0,r=Ajn){const i=xp(Tjn),o=i.current.selector!==null,[a,s]=b.useState(o?null:t(e,n));i.current.state=a,i.current.equals=r,i.current.selector=t;const l=i.current.args;if(i.current.args=n,o&&!zjn(l,n)){const d=i.current.selector(e,i.current.args);i.current.equals(i.current.state,d)||(i.current.state=d,s(d))}const c=b.useCallback(()=>(i.current.subscription||(i.current.subscription=e.current.store.subscribe(()=>{const d=i.current.selector(e,i.current.args);i.current.equals(i.current.state,d)||(i.current.state=d,s(d))})),null),E_e),u=b.useCallback(()=>(i.current.subscription||c(),()=>{i.current.subscription&&(i.current.subscription(),i.current.subscription=void 0)}),E_e);return NMe.useSyncExternalStore(u,c,Ejn),a}const Rjn=.7,Ijn=1.3,Pjn={compact:Rjn,comfortable:Ijn,standard:1},_R=Ps(e=>e.density),yB=rr(_R,e=>Pjn[e]);function Zb(e){throw new Error("Failed assertion: should not be rendered")}const Djn=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],kjn=e=>{const{classes:t}=e;return Yt({root:["editInputCell"]},lo,t)},Ljn=rt(Zb,{name:"MuiDataGrid",slot:"EditInputCell"})({font:_n.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),_jn=qr((e,t)=>{const n=kn(),{id:r,value:i,field:o,colDef:a,hasFocus:s,debounceMs:l=200,isProcessingProps:c,onValueChange:u,slotProps:d}=e,p=Lt(e,Djn),h=bi(),g=b.useRef(null),[m,v]=b.useState(i),y=kjn(n),M=b.useCallback(async x=>{const w=x.target.value,S=h.current.getColumn(o);let A=w;S.valueParser&&(A=S.valueParser(w,h.current.getRow(r),S,h)),v(A),h.current.setEditCellValue({id:r,field:o,value:A,debounceMs:l,unstable_skipValueParser:!0},x),u&&await u(x,w)},[h,l,o,r,u]),C=h.current.unstable_getEditCellMeta(r,o);return b.useEffect(()=>{C?.changeReason!=="debouncedSetEditCellValue"&&v(i)},[C,i]),To(()=>{s&&g.current.focus()},[s]),f.jsx(Ljn,Y({as:n.slots.baseInput,inputRef:g,className:y.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:m??"",onChange:M,endAdornment:c?f.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p,d?.root,{ref:t}))}),Njn=e=>f.jsx(_jn,Y({},e)),q1t=(e,t)=>t&&e.length>1?[e[0]]:e,R_e=(e,t)=>n=>Y({},n,{sorting:Y({},n.sorting,{sortModel:q1t(e,t)})}),Fjn=e=>e==="desc",Wjn=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=Fjn(e.sort)?(...o)=>-1*n.sortComparator(...o):n.sortComparator,r?{getSortCellParams:o=>({id:o,field:n.field,rowNode:hb(t,o),value:t.current.getCellValue(o,n.field),api:t.current}),comparator:r}:null},qjn=(e,t,n)=>e.reduce((r,i,o)=>{if(r!==0)return r;const a=t.params[o],s=n.params[o];return r=i.comparator(a.value,s.value,a,s),r},0),Bjn=(e,t)=>{const n=e.map(r=>Wjn(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(i=>({node:i,params:n.map(o=>o.getSortCellParams(i.id))})).sort((i,o)=>qjn(n,i,o)).map(i=>i.node.id)},I_e=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Zxe=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,jjn=new Intl.Collator,Hjn=(e,t)=>{const n=Zxe(e,t);return n!==null?n:typeof e=="string"?jjn.compare(e.toString(),t.toString()):e-t},B1t=(e,t)=>{const n=Zxe(e,t);return n!==null?n:Number(e)-Number(t)},j1t=(e,t)=>{const n=Zxe(e,t);return n!==null?n:e>t?1:e<t?-1:0},Vjn=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function sf(e){const{item:t,applyValue:n,type:r,apiRef:i,focusElementRef:o,tabIndex:a,disabled:s,slotProps:l,clearButton:c,headerFilterMenu:u}=e,d=Lt(e,Vjn),p=l?.root,h=Qp(),[g,m]=b.useState(yoe(t.value)),[v,y]=b.useState(!1),M=Hi(),C=kn(),x=b.useCallback(w=>{const S=yoe(w.target.value);m(S),y(!0),h.start(C.filterDebounceMs,()=>{const A=Y({},t,{value:r==="number"&&!Number.isNaN(Number(S))?Number(S):S,fromInput:M});n(A),y(!1)})},[h,C.filterDebounceMs,t,r,M,n]);return b.useEffect(()=>{(t.fromInput!==M||t.value==null)&&m(yoe(t.value))},[M,t]),f.jsxs(b.Fragment,{children:[f.jsx(C.slots.baseTextField,Y({id:M,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:g??"",onChange:x,type:r||"text",disabled:s,slotProps:Y({},p?.slotProps,{input:Y({endAdornment:v?f.jsx(C.slots.loadIcon,{fontSize:"small",color:"action"}):null},p?.slotProps?.input),htmlInput:Y({tabIndex:a},p?.slotProps?.htmlInput)}),inputRef:o},C.slotProps?.baseTextField,d,p)),u,c]})}function yoe(e){if(!(e==null||e===""))return String(e)}function Gjn(e){return typeof e=="number"&&!Number.isNaN(e)}function $jn(e){return typeof e=="function"}function Jxe(e){return typeof e=="object"&&e!==null}function Ujn(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function P9(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const XO=(e,t,n)=>Math.max(t,Math.min(n,e));function Xjn(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function Yjn(e){const t=Xjn(e);return(n,r)=>n+(r-n)*t()}function H1t(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const YC=(e,t)=>n=>{e&&t(n)};function V1t(e){const{item:t,applyValue:n,type:r,apiRef:i,focusElementRef:o,slotProps:a}=e,s=Hi(),[l,c]=b.useState([]),[u,d]=b.useState(t.value||[]),p=kn();b.useEffect(()=>{const v=t.value??[];d(v.map(String))},[t.value]);const h=b.useCallback((v,y)=>{d(y.map(String)),n(Y({},t,{value:[...y.map(M=>r==="number"?Number(M):M)]}))},[n,t,r]),g=b.useCallback((v,y)=>{c(y===""?[]:[y])},[c]),m=p.slots.baseAutocomplete;return f.jsx(m,Y({multiple:!0,freeSolo:!0,options:l,id:s,value:u,onChange:h,onInputChange:g,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:o}}},a?.root))}var kb=(function(e){return e.Cell="cell",e.Row="row",e})(kb||{}),va=(function(e){return e.Edit="edit",e.View="view",e})(va||{}),fs=(function(e){return e.Edit="edit",e.View="view",e})(fs||{}),e1=(function(e){return e.And="and",e.Or="or",e})(e1||{});class Kjn{constructor(t){this.data=t.ids}has(t){return this.data.has(t)}select(t){this.data.add(t)}unselect(t){this.data.delete(t)}}class Qjn{constructor(t){this.data=t.ids}has(t){return!this.data.has(t)}select(t){this.data.delete(t)}unselect(t){this.data.add(t)}}const KC=e=>e.type==="include"?new Kjn(e):new Qjn(e);var J2=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e})(J2||{}),Wg=(function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(Wg||{}),xC=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e})(xC||{}),wv=(function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(wv||{});function G1t(e){return e.field!==void 0}const $1t={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},UW=()=>({items:[],logicOperator:e1.And,quickFilterValues:[],quickFilterLogicOperator:e1.And});function U1t(e){return{current:e.current.getPublicApi()}}let Nv=(function(e){return e.LEFT="left",e.RIGHT="right",e})({});const D9={left:[],right:[]},X1t=Ps(e=>e.isRtl),Y1t=Ps(e=>e.props.listView??!1),K1t=Ps(e=>e.listViewColumn),um=Ps(e=>e.columns),fb=rr(um,e=>e.orderedFields),CM=rr(um,e=>e.lookup),Ef=ea(fb,CM,(e,t)=>e.map(n=>t[n])),Mf=rr(um,e=>e.columnVisibilityModel),Zjn=rr(um,e=>e.initialColumnVisibilityModel),xl=ea(Ef,Mf,Y1t,K1t,(e,t,n,r)=>n&&r?[r]:e.filter(i=>t[i.field]!==!1)),MB=ea(xl,e=>e.map(t=>t.field)),ewe=Ps(e=>e.pinnedColumns);ea(ewe,fb,X1t,(e,t,n)=>Q1t(e,t,n));const SZ=ea(um,ewe,MB,X1t,Y1t,(e,t,n,r,i)=>{if(i)return D9;const o=Q1t(t,n,r);return{left:o.left.map(s=>e.lookup[s]),right:o.right.map(s=>e.lookup[s])}});function Q1t(e,t,n){if(!Array.isArray(e.left)&&!Array.isArray(e.right)||e.left?.length===0&&e.right?.length===0)return D9;const r=(s,l)=>Array.isArray(s)?s.filter(c=>l.includes(c)):[],i=r(e.left,t),o=t.filter(s=>!i.includes(s)),a=r(e.right,o);return n?{left:a,right:i}:{left:i,right:a}}const N3=ea(xl,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),Z1t=ea(Ef,e=>e.filter(t=>t.filterable)),Jjn=ea(Ef,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),eHn=ea(Ef,e=>e.some(t=>t.colSpan!==void 0));let X4;function tHn(){if(X4!==void 0)return X4;try{X4=new Function("return true")()}catch{X4=!1}return X4}const Ege=(e,t)=>{const n=Y({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=CM(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},twe=(e,t,n)=>{const r=e.items.length>1;let i;r&&t?i=[e.items[0]]:i=e.items;const o=r&&i.some(s=>s.id==null);return i.some(s=>s.operator==null)||o?Y({},e,{items:i.map(s=>Ege(s,n))}):e.items!==i?Y({},e,{items:i}):e},P_e=(e,t,n)=>r=>Y({},r,{filterModel:twe(e,t,n)}),XW=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,J1t=(e,t,n)=>{if(!e.field||!e.operator)return null;const r=n.current.getColumn(e.field);if(!r)return null;let i;if(r.valueParser){const d=r.valueParser;i=Array.isArray(e.value)?e.value?.map(p=>d(p,void 0,r,n)):d(e.value,void 0,r,n)}else i=e.value;const{ignoreDiacritics:o}=n.current.rootProps;o&&(i=XW(i));const a=Y({},e,{value:i}),s=r.filterOperators;if(!s?.length)throw new Error(`MUI X: No filter operators found for column '${r.field}'.`);const l=s.find(d=>d.value===a.operator);if(!l)throw new Error(`MUI X: No filter operator found for column '${r.field}' and operator value '${a.operator}'.`);const c=U1t(n),u=l.getApplyFilterFn(a,r);return typeof u!="function"?null:{item:a,fn:d=>{let p=t(d,r);return o&&(p=XW(p)),u(p,d,r,c)}}};let D_e=1;const nHn=(e,t,n,r)=>{const{items:i}=e,o=i.map(l=>J1t(l,t,n)).filter(l=>!!l);if(o.length===0)return null;if(r||!tHn())return(l,c)=>{const u={};for(let d=0;d<o.length;d+=1){const p=o[d];(!c||c(p.item.field))&&(u[p.item.id]=p.fn(l))}return u};const a=new Function("appliers","row","shouldApplyFilter",`"use strict";
${o.map((l,c)=>`const shouldApply${c} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(`
`)}

const result$$ = {
${o.map((l,c)=>`  ${JSON.stringify(String(l.item.id))}: !shouldApply${c} ? false : appliers[${c}].fn(row),`).join(`
`)}
};

return result$$;`.replaceAll("$$",String(D_e)));return D_e+=1,(l,c)=>a(o,l,c)},ept=e=>e.quickFilterExcludeHiddenColumns??!0,rHn=(e,t,n)=>{const r=e.quickFilterValues?.filter(Boolean)??[];if(r.length===0)return null;const i=fb(n),o=Mf(n);let a;ept(e)?a=i.filter(u=>o[u]!==!1):a=i;const s=[],{ignoreDiacritics:l}=n.current.rootProps,c=U1t(n);return a.forEach(u=>{const d=n.current.getColumn(u),p=d?.getApplyQuickFilterFn;p&&s.push({column:d,appliers:r.map(h=>{const g=l?XW(h):h;return{fn:p(g,d,c)}})})}),function(d,p){const h={};e:for(let g=0;g<r.length;g+=1){const m=r[g];for(let v=0;v<s.length;v+=1){const{column:y,appliers:M}=s[v],{field:C}=y;if(p&&!p(C))continue;const x=M[g];let w=t(d,y);if(x.fn===null)continue;if(l&&(w=XW(w)),x.fn(w,d,y,c)){h[m]=!0;continue e}}h[m]=!1}return h}},iHn=(e,t,n,r)=>{const i=nHn(e,t,n,r),o=rHn(e,t,n);return function(s,l,c){c.passingFilterItems=i?.(s,l)??null,c.passingQuickFilterValues=o?.(s,l)??null}},k_e=e=>e!=null,oHn=(e,t,n,r)=>(e.cleanedFilterItems||(e.cleanedFilterItems=r.filter(i=>J1t(i,t,n)!==null)),e.cleanedFilterItems),aHn=(e,t,n,r,i,o)=>{const a=oHn(o,r,i,n.items),s=e.filter(k_e),l=t.filter(k_e);if(s.length>0){const c=d=>s.some(p=>p[d.id]);if((n.logicOperator??UW().logicOperator)===e1.And){if(!a.every(c))return!1}else if(!a.some(c))return!1}if(l.length>0&&n.quickFilterValues!=null){const c=d=>l.some(p=>p[d]);if((n.quickFilterLogicOperator??UW().quickFilterLogicOperator)===e1.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},sHn=e=>{if(!e)return null;const t=new RegExp(P9(e),"i");return(n,r,i,o)=>{let a=o.current.getRowFormattedValue(r,i);return o.current.ignoreDiacritics&&(a=XW(a)),a!=null?t.test(a.toString()):!1}},L_e=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),i=new RegExp(P9(r),"i");return o=>{if(o==null)return t;const a=i.test(String(o));return t?!a:a}},__e=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),i=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>{if(o==null)return t;const a=i.compare(r,o.toString())===0;return t?!a:a}},N_e=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},lHn=(e=!1)=>[{value:"contains",getApplyFilterFn:L_e(e,!1),InputComponent:sf},{value:"doesNotContain",getApplyFilterFn:L_e(e,!0),InputComponent:sf},{value:"equals",getApplyFilterFn:__e(e,!1),InputComponent:sf},{value:"doesNotEqual",getApplyFilterFn:__e(e,!0),InputComponent:sf},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${P9(n)}.*$`,"i");return i=>i!=null?r.test(i.toString()):!1},InputComponent:sf},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${P9(n)}$`,"i");return i=>i!=null?r.test(i.toString()):!1},InputComponent:sf},{value:"isEmpty",getApplyFilterFn:N_e(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:N_e(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(i=>i.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>i!=null?n.some(o=>r.compare(o,i.toString()||"")===0):!1},InputComponent:V1t}],dm={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,chartable:!0,editable:!1,sortComparator:Hjn,type:"string",align:"left",filterOperators:lHn(),renderEditCell:Njn,getApplyQuickFilterFn:sHn};function tpt(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const k9=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",cHn=e=>!!e.key,npt=e=>e==="Tab"||e==="Escape";function rpt(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function uHn(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const ipt=b.createContext(void 0),AZ=()=>{const e=b.useContext(ipt);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e},dHn="MuiDataGridVariables",nwe=b.createContext({className:"unset",tag:f.jsx("style",{href:"/unset"})});function opt(){return b.useContext(nwe).className}function pHn(){return b.useContext(nwe)}function hHn(e){const t=AZ(),n=kn(),r=t.hooks.useCSSVariables(),i=b.useMemo(()=>{const o=`${dHn}-${r.id}`,a=`.${o}{${fHn(r.variables)}}`,s=f.jsx("style",{href:`/${o}`,nonce:n.nonce,children:a});return{className:o,tag:s}},[n.nonce,r]);return f.jsx(nwe.Provider,{value:i,children:e.children})}function fHn(e){let t="";for(const n in e)Object.hasOwn(e,n)&&e[n]!==void 0&&(t+=`${n}:${e[n]};`);return t}const gHn=["open","target","onClose","children","position","className","onExited"],mHn=e=>{const{classes:t}=e;return Yt({root:["menu"]},lo,t)},vHn=rt(Zb,{name:"MuiDataGrid",slot:"Menu"})({zIndex:_n.zIndex.menu,[`& .${Te.menuList}`]:{outline:0}});function OZ(e){const{open:t,target:n,onClose:r,children:i,position:o,className:a,onExited:s}=e,l=Lt(e,gHn),c=bi(),u=kn(),d=mHn(u),p=opt(),h=b.useRef(null);To(()=>{t?h.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(h.current?.focus?.(),h.current=null)},[t]),b.useEffect(()=>{const v=t?"menuOpen":"menuClose";c.current.publishEvent(v,{target:n})},[c,t,n]);const g=v=>{v.target&&(n===v.target||n?.contains(v.target))||r(v)},m=v=>{npt(v.key)&&r(v)};return f.jsx(vHn,Y({as:u.slots.basePopper,className:Lo(d.root,a,p),ownerState:u,open:t,target:n,transition:!0,placement:o,onClickAway:g,onExited:s,clickAwayMouseEvent:"onMouseDown",onKeyDown:m},l,u.slotProps?.basePopper,{children:i}))}const bHn=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],yHn=e=>typeof e.getActions=="function";function MHn(e){const{colDef:t,id:n,hasFocus:r,tabIndex:i,position:o="bottom-end",focusElementRef:a}=e,s=Lt(e,bHn),[l,c]=b.useState(-1),[u,d]=b.useState(!1),p=bi(),h=b.useRef(null),g=b.useRef(null),m=b.useRef(!1),v=b.useRef({}),y=ts(),M=Hi(),C=Hi(),x=kn();if(!yHn(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const w=t.getActions(p.current.getRowParams(n)),S=w.filter(W=>!W.props.showInMenu),A=w.filter(W=>W.props.showInMenu),z=S.length+(A.length?1:0);b.useLayoutEffect(()=>{r||Object.entries(v.current).forEach(([W,H])=>{H?.stop({},()=>{delete v.current[W]})})},[r]),b.useEffect(()=>{if(l<0||!h.current||l>=h.current.children.length)return;h.current.children[l].focus({preventScroll:!0})},[l]),b.useEffect(()=>{r||(c(-1),m.current=!1)},[r]),b.useImperativeHandle(a,()=>({focus(){if(!m.current){const W=w.findIndex(H=>!H.props.disabled);c(W)}}}),[w]),b.useEffect(()=>{l>=z&&c(z-1)},[l,z]);const O=()=>{d(!0),c(z-1),m.current=!0},T=()=>{d(!1)},I=W=>{W.stopPropagation(),W.preventDefault(),u?T():O()},P=W=>H=>{v.current[W]=H},N=(W,H)=>j=>{c(W),m.current=!0,H&&H(j)},F=W=>{if(z<=1)return;const H=(G,q)=>{if(G<0||G>w.length)return G;const U=(q==="left"?-1:1)*(y?-1:1);return w[G+U]?.props.disabled?H(G+U,q):G+U};let j=l;W.key==="ArrowRight"?j=H(l,"right"):W.key==="ArrowLeft"&&(j=H(l,"left")),!(j<0||j>=z)&&j!==l&&(W.preventDefault(),W.stopPropagation(),c(j))},L=z>0?{role:"menu",onKeyDown:F}:void 0;return f.jsxs("div",Y({ref:h,tabIndex:-1,className:Te.actionsCell},L,s,{children:[S.map((W,H)=>b.cloneElement(W,{key:H,touchRippleRef:P(H),onClick:N(H,W.props.onClick),tabIndex:l===H?i:-1})),A.length>0&&C&&f.jsx(x.slots.baseIconButton,Y({ref:g,id:C,"aria-label":p.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?M:void 0,role:"menuitem",size:"small",onClick:I,touchRippleRef:P(C),tabIndex:l===S.length?i:-1},x.slotProps?.baseIconButton,{children:f.jsx(x.slots.moreActionsIcon,{fontSize:"small"})})),A.length>0&&f.jsx(OZ,{open:u,target:g.current,position:o,onClose:T,children:f.jsx(x.slots.baseMenuList,{id:M,className:Te.menuList,"aria-labelledby":C,autoFocusItem:!0,children:A.map((W,H)=>b.cloneElement(W,{key:H,closeMenu:T}))})})]}))}const CHn=e=>f.jsx(MHn,Y({},e)),zZ="actions",xHn=Y({},dm,{sortable:!1,filterable:!1,aggregable:!1,chartable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:CHn,getApplyQuickFilterFn:()=>null}),wHn="__tree_data_group__",apt="__row_group_by_columns_group__",rwe="__detail_panel_toggle__";let fo=(function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e})({});const SHn=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],AHn=e=>{const{classes:t}=e;return Yt({root:["booleanCell"]},lo,t)};function OHn(e){const{value:t,rowNode:n}=e,r=Lt(e,SHn),i=bi(),o=kn(),a={classes:o.classes},s=AHn(a),c=Qt(i,bB)>0&&n.type==="group"&&o.treeData===!1,u=b.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return c&&t===void 0?null:f.jsx(u,Y({fontSize:"small",className:s.root,titleAccess:i.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const zHn=b.memo(OHn),THn=e=>e.field!==apt&&xP(e.rowNode)?"":f.jsx(zHn,Y({},e)),EHn=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],RHn=e=>{const{classes:t}=e;return Yt({root:["editBooleanCell"]},lo,t)};function IHn(e){const{id:t,value:n,field:r,className:i,hasFocus:o,onValueChange:a}=e,s=Lt(e,EHn),l=bi(),c=b.useRef(null),u=Hi(),[d,p]=b.useState(n),h=kn(),g={classes:h.classes},m=RHn(g),v=b.useCallback(async y=>{const M=y.target.checked;a&&await a(y,M),p(M),await l.current.setEditCellValue({id:t,field:r,value:M},y)},[l,r,t,a]);return b.useEffect(()=>{p(n)},[n]),To(()=>{o&&c.current.focus()},[o]),f.jsx("label",Y({htmlFor:u,className:Lo(m.root,i)},s,{children:f.jsx(h.slots.baseCheckbox,Y({id:u,inputRef:c,checked:!!d,onChange:v,size:"small"},h.slotProps?.baseCheckbox))}))}const PHn=e=>f.jsx(IHn,Y({},e)),DHn=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function kHn(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:i,headerFilterMenu:o,clearButton:a,tabIndex:s,slotProps:l}=e,c=Lt(e,DHn),[u,d]=b.useState(y7(t.value)),p=kn(),h=Hi(),g=Hi(),m=p.slotProps?.baseSelect||{},v=m.native??!1,y=p.slotProps?.baseSelectOption||{},M=b.useCallback(w=>{const S=y7(w.target.value);d(S),n(Y({},t,{value:S}))},[n,t]);b.useEffect(()=>{d(y7(t.value))},[t.value]);const C=l?.root.label??r.current.getLocaleText("filterPanelInputLabel"),x=l?.root.slotProps;return f.jsxs(b.Fragment,{children:[f.jsxs(p.slots.baseSelect,Y({fullWidth:!0,labelId:h,id:g,label:C,value:u===void 0?"":String(u),onChange:M,native:v,slotProps:{htmlInput:Y({ref:i,tabIndex:s},x?.htmlInput)}},m,c,l?.root,{children:[f.jsx(p.slots.baseSelectOption,Y({},y,{native:v,value:"",children:r.current.getLocaleText("filterValueAny")})),f.jsx(p.slots.baseSelectOption,Y({},y,{native:v,value:"true",children:r.current.getLocaleText("filterValueTrue")})),f.jsx(p.slots.baseSelectOption,Y({},y,{native:v,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]})),o,a]})}function y7(e){if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1}const LHn=()=>[{value:"is",getApplyFilterFn:e=>{const t=y7(e.value);return t===void 0?null:n=>!!n===t},InputComponent:kHn}],_Hn=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),NHn=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},spt=Y({},dm,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:THn,renderEditCell:PHn,sortComparator:B1t,valueFormatter:_Hn,filterOperators:LHn(),getApplyQuickFilterFn:()=>null,aggregable:!1,chartable:!1,pastedValueParser:e=>NHn(e)});function TZ(e){for(const t in e)return!1;return!0}const lpt=Ps(e=>e.sorting),CB=rr(lpt,e=>e.sortedRows),iwe=ea(CB,yf,Qc,(e,t,n)=>e.reduce((r,i)=>{const o=t[i];if(o)r.push({id:i,model:o});else{const a=n[i];a&&xP(a)&&r.push({id:i,model:{[qz]:i}})}return r},[])),Qh=rr(lpt,e=>e.sortModel),FHn=ea(Qh,e=>e.reduce((n,r,i)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?i+1:void 0},n),{}));ea(CB,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const EZ=Ps(e=>e.filter),mu=rr(EZ,e=>e.filterModel),cpt=rr(mu,e=>e.quickFilterValues),WHn=Ps(e=>e.visibleRowsLookup),HD=rr(EZ,e=>e.filteredRowsLookup);rr(EZ,e=>e.filteredChildrenCountLookup);rr(EZ,e=>e.filteredDescendantCountLookup);const F3=ea(WHn,iwe,(e,t)=>TZ(e)?t:t.filter(n=>e[n.id]!==!1)),YO=ea(F3,e=>e.map(t=>t.id)),owe=ea(HD,iwe,(e,t)=>TZ(e)?t:t.filter(n=>e[n.id]!==!1)),upt=ea(owe,e=>e.map(t=>t.id));ea(YO,Qc,(e,t)=>{const n={};let r=0;return e.reduce((i,o)=>{const a=t[o];return n[a.depth]||(n[a.depth]=0),a.depth>r&&(n[a.depth]=0),r=a.depth,n[a.depth]+=1,i[o]=n[a.depth],i},{})});const qHn=ea(owe,Qc,bB,(e,t,n)=>n<2?[e]:e.reduce((r,i)=>{const o=t[i.id]?.depth;return o===void 0||(r[o]||(r[o]=[]),r[o].push(i)),r},[[]])),dpt=rr(qHn,e=>e[0]??[]),awe=rr(F3,e=>e.length),swe=rr(dpt,e=>e.length),ppt=rr(owe,e=>e.length);rr(ppt,swe,(e,t)=>e-t);const lwe=ea(mu,CM,(e,t)=>e.items?.filter(n=>{if(!n.field)return!1;const r=t[n.field];if(!r?.filterOperators||r?.filterOperators?.length===0)return!1;const i=r.filterOperators.find(o=>o.value===n.operator);return i?!i.InputComponent||n.value!=null&&n.value?.toString()!=="":!1})),BHn=ea(lwe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{}));ea(YO,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const jg=Ps(e=>e.rowSelection),xB=ea(jg,KC),RZ=rr(jg,ppt,(e,t)=>e.type==="include"?e.ids.size:t-e.ids.size),hpt=ea(jg,yf,pO,(e,t,n)=>{const r=new Map;if(e.type==="include")for(const i of e.ids)r.set(i,t[i]);else for(let i=0;i<n.length;i+=1){const o=n[i];e.ids.has(o)||r.set(o,t[o])}return r});function fpt(e,t){const n=Qc(e),r=CB(e),i=HD(e),o=n[t];if(!o||o.type!=="group")return[];const a=[],s=r.findIndex(l=>l===t)+1;for(let l=s;l<r.length&&n[r[l]]?.depth>o.depth;l+=1){const c=r[l];i[c]!==!1&&e.current.isRowSelectable(c)&&a.push(c)}return a}const jHn=rr(Qc,HD,xB,(e,t,n,{groupId:r,autoSelectParents:i})=>{const o=e[r];if(!o||o.type!=="group"||n.has(r))return{isIndeterminate:!1,isChecked:n.has(r)};let a=!1,s=!1;const l=c=>{if(t[c]===!1||a&&s)return;const u=e[c];u?.type==="group"&&u.children.forEach(l),n.has(c)?a=!0:s=!0};return l(r),{isIndeterminate:a&&s,isChecked:i?a&&!s:!1}});function cwe(e){return e.signature===cm.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const HHn=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==Dl;){const i=e[r];if(!i)return n;n.push(r),r=i.parent}return n},VHn=(e,t,n)=>{const r=e[n];if(!r)return[];const i=r.parent;return i==null?[]:e[i].children.filter(a=>a!==n&&t[a]!==!1)},Y4=(e,t,n,r,i,o,a=xB(e))=>{const s=HD(e),l=new Set([]);if(!(!r&&!i||s[n]===!1)&&(r&&t[n]?.type==="group"&&fpt(e,n).forEach(d=>{o(d),l.add(d)}),i)){const c=p=>{if(!a.has(p)&&!l.has(p))return!1;const h=t[p];return h?h.type!=="group"?!0:h.children.every(c):!1},u=p=>{const h=VHn(t,s,p);if(h.length===0||h.every(c)){const m=t[p]?.parent;m!=null&&m!==Dl&&e.current.isRowSelectable(m)&&(o(m),l.add(m),u(m))}},d=t[n];if(!d||d.parent===Dl)return;u(n)}},F_e=(e,t,n,r,i,o)=>{const a=xB(e);!i&&!r||(i&&HHn(t,n).forEach(l=>{a.has(l)&&o(l)}),r&&t[n]?.type==="group"&&fpt(e,n).forEach(c=>{o(c)}))},GHn=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],$Hn=e=>{const{classes:t}=e;return Yt({root:["checkboxInput"]},lo,t)},UHn=qr(function(t,n){const{field:r,id:i,rowNode:o,tabIndex:a}=t,s=Lt(t,GHn),l=bi(),c=kn(),u={classes:c.classes},d=$Hn(u),p=M=>{const C={value:M.target.checked,id:i};l.current.publishEvent("rowSelectionCheckboxChange",C,M)};b.useLayoutEffect(()=>{if(a===0){const M=l.current.getCellElement(i,r);M&&(M.tabIndex=-1)}},[l,a,i,r]);const h=b.useCallback(M=>{M.key===" "&&M.stopPropagation()},[]),g=l.current.isRowSelectable(i),{isIndeterminate:m,isChecked:v}=Qt(l,jHn,{groupId:i,autoSelectParents:c.rowSelectionPropagation?.parents??!1});if(o.type==="footer"||o.type==="pinnedRow")return null;const y=l.current.getLocaleText(v&&!m?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return f.jsx(c.slots.baseCheckbox,Y({tabIndex:a,checked:v&&!m,onChange:p,className:d.root,slotProps:{htmlInput:{"aria-label":y,name:"select_row"}},onKeyDown:h,indeterminate:m,disabled:!g},c.slotProps?.baseCheckbox,s,{ref:n}))}),XHn=UHn,IZ=Ps(e=>e.focus),G1=rr(IZ,e=>e.cell),YHn=rr(IZ,e=>e.columnHeader);rr(IZ,e=>e.columnHeaderFilter);const L9=rr(IZ,e=>e.columnGroupHeader),PZ=Ps(e=>e.tabIndex),uwe=rr(PZ,e=>e.cell),gpt=rr(PZ,e=>e.columnHeader);rr(PZ,e=>e.columnHeaderFilter);const KHn=rr(PZ,e=>e.columnGroupHeader),QHn=100,ZHn=e=>e?0:100,mpt=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,vpt=e=>({page:0,pageSize:e?0:100}),JHn=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),bpt=(e,t)=>{if(t===cm.DataGrid&&e>QHn)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`))},e8n=-1,VD=Ps(e=>e.pagination),ypt=rr(VD,e=>e.enabled&&e.paginationMode==="client"),Hu=rr(VD,e=>e.paginationModel),NR=rr(VD,e=>e.rowCount),nN=rr(VD,e=>e.meta),t8n=rr(Hu,e=>e.page),Mpt=rr(Hu,e=>e.pageSize),Cpt=rr(Hu,NR,(e,t)=>mpt(t,e.pageSize,e.page)),dwe=ea(ypt,Hu,Qc,bB,F3,dpt,(e,t,n,r,i,o)=>{if(!e)return null;const a=o.length,s=Math.min(t.pageSize*t.page,a-1),l=t.pageSize===e8n?a-1:Math.min(s+t.pageSize-1,a-1);if(s===-1||l===-1)return null;if(r<2)return{firstRowIndex:s,lastRowIndex:l};const c=o[s],u=l-s+1,d=i.findIndex(g=>g.id===c.id);let p=d,h=0;for(;p<i.length&&h<=u;){const g=i[p],m=n[g.id]?.depth;m===void 0?p+=1:((h<u||m>0)&&(p+=1),m===0&&(h+=1))}return{firstRowIndex:d,lastRowIndex:p-1}}),n8n=ea(F3,dwe,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),xpt=ea(YO,dwe,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),wB=ea(ypt,dwe,n8n,F3,(e,t,n,r)=>e?{rows:n,range:t,rowIdToIndexMap:n.reduce((i,o,a)=>(i.set(o.id,a),i),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowIdToIndexMap:r.reduce((i,o,a)=>(i.set(o.id,a),i),new Map)}),r8n=["field","colDef"],i8n=e=>{const{classes:t}=e;return Yt({root:["checkboxInput"]},lo,t)},o8n=qr(function(t,n){const r=Lt(t,r8n),[,i]=b.useState(!1),o=bi(),a=kn(),s={classes:a.classes},l=i8n(s),c=Qt(o,gpt),u=Qt(o,jg),d=Qt(o,YO),p=Qt(o,xpt),h=b.useMemo(()=>{const A=a.isRowSelectable;if(typeof A!="function"||u.type==="exclude")return u;const z={type:"include",ids:new Set};for(const O of u.ids)a.keepNonExistentRowsSelected&&z.ids.add(O),o.current.getRow(O)&&A(o.current.getRowParams(O))&&z.ids.add(O);return z},[o,a.isRowSelectable,a.keepNonExistentRowsSelected,u]),g=b.useMemo(()=>{const A=!a.pagination||!a.checkboxSelectionVisibleOnly||a.paginationMode==="server"?d:p,z=new Set;for(let O=0;O<A.length;O+=1){const T=A[O];o.current.getRow(T)&&o.current.isRowSelectable(T)&&z.add(T)}return z},[o,a.pagination,a.paginationMode,a.checkboxSelectionVisibleOnly,p,d]),m=b.useMemo(()=>{const A=KC(h);let z=0;for(const O of g)A.has(O)&&(z+=1);return z},[h,g]),v=b.useMemo(()=>{if(m===0)return!1;const A=KC(h);for(const z of g)if(!A.has(z))return!0;return!1},[m,h,g]),y=m>0,M=A=>{const z={value:A.target.checked};o.current.publishEvent("headerSelectionCheckboxChange",z)},C=c!==null&&c.field===t.field?0:-1;b.useLayoutEffect(()=>{const A=o.current.getColumnHeaderElement(t.field);C===0&&A&&(A.tabIndex=-1)},[C,o,t.field]);const x=b.useCallback(A=>{A.key===" "&&o.current.publishEvent("headerSelectionCheckboxChange",{value:!y})},[o,y]),w=b.useCallback(()=>{i(A=>!A)},[]);b.useEffect(()=>o.current.subscribeEvent("rowSelectionChange",w),[o,w]);const S=o.current.getLocaleText(y&&!v?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return f.jsx(a.slots.baseCheckbox,Y({indeterminate:v,checked:y&&!v,onChange:M,className:l.root,slotProps:{htmlInput:{"aria-label":S,name:"select_all_rows"}},tabIndex:C,onKeyDown:x,disabled:!cwe(a)},a.slotProps?.baseCheckbox,r,{ref:n}))}),wP=Ps((e,t)=>qz in t?t[qz]:e.props.getRowId?e.props.getRowId(t):t.id),Lg="__check__",GD=Y({},spt,{type:"custom",field:Lg,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,chartable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,n,r)=>{const i=wP(r,t);return r.current.isRowSelected(i)},rowSpanValueGetter:(e,t,n,r)=>wP(r,t),renderHeader:e=>f.jsx(o8n,Y({},e)),renderCell:e=>f.jsx(XHn,Y({},e))}),a8n=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function W_e(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function EE(e){const{item:t,applyValue:n,type:r,apiRef:i,focusElementRef:o,slotProps:a,headerFilterMenu:s,clearButton:l,tabIndex:c,disabled:u}=e,d=Lt(e,a8n),p=a?.root.slotProps,h=Qp(),[g,m]=b.useState(()=>W_e(t.value,r)),[v,y]=b.useState(!1),M=Hi(),C=kn(),x=b.useCallback(w=>{h.clear();const S=w.target.value;m(S),y(!0),h.start(C.filterDebounceMs,()=>{const A=new Date(S);n(Y({},t,{value:Number.isNaN(A.getTime())?void 0:A})),y(!1)})},[n,t,C.filterDebounceMs,h]);return b.useEffect(()=>{const w=W_e(t.value,r);m(w)},[t.value,r]),f.jsxs(b.Fragment,{children:[f.jsx(C.slots.baseTextField,Y({fullWidth:!0,id:M,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:x,type:r||"text",disabled:u,inputRef:o,slotProps:Y({},p,{input:Y({endAdornment:v?f.jsx(C.slots.loadIcon,{fontSize:"small",color:"action"}):null},p?.input),htmlInput:Y({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},p?.htmlInput)})},C.slotProps?.baseTextField,d,a?.root)),s,l]})}function RE(e,t,n,r){if(!e.value)return null;const i=new Date(e.value);n?i.setSeconds(0,0):(i.setMinutes(i.getMinutes()+i.getTimezoneOffset()),i.setHours(0,0,0,0));const o=i.getTime();return a=>{if(!a)return!1;if(r)return t(a.getTime(),o);const s=new Date(a);return n?s.setSeconds(0,0):s.setHours(0,0,0,0),t(s.getTime(),o)}}const wpt=e=>[{value:"is",getApplyFilterFn:t=>RE(t,(n,r)=>n===r,e),InputComponent:EE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>RE(t,(n,r)=>n!==r,e),InputComponent:EE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>RE(t,(n,r)=>n>r,e),InputComponent:EE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>RE(t,(n,r)=>n>=r,e),InputComponent:EE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>RE(t,(n,r)=>n<r,e,!e),InputComponent:EE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>RE(t,(n,r)=>n<=r,e),InputComponent:EE,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],s8n=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],l8n=rt(Zb)({fontSize:"inherit"}),c8n=e=>{const{classes:t}=e;return Yt({root:["editInputCell"]},lo,t)};function u8n(e){const{id:t,value:n,field:r,colDef:i,hasFocus:o,onValueChange:a,slotProps:s}=e,l=Lt(e,s8n),c=i.type==="dateTime",u=bi(),d=b.useRef(null),p=b.useMemo(()=>{let x;n==null?x=null:n instanceof Date?x=n:x=new Date((n??"").toString());let w;return x==null||Number.isNaN(x.getTime())?w="":w=new Date(x.getTime()-x.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:x,formatted:w}},[n,c]),[h,g]=b.useState(p),m=kn(),v={classes:m.classes},y=c8n(v),M=b.useCallback(x=>{if(x==="")return null;const[w,S]=x.split("T"),[A,z,O]=w.split("-"),T=new Date;if(T.setFullYear(Number(A),Number(z)-1,Number(O)),T.setHours(0,0,0,0),S){const[I,P]=S.split(":");T.setHours(Number(I),Number(P),0,0)}return T},[]),C=b.useCallback(async x=>{const w=x.target.value,S=M(w);a&&await a(x,S),g({parsed:S,formatted:w}),u.current.setEditCellValue({id:t,field:r,value:S},x)},[u,r,t,a,M]);return b.useEffect(()=>{g(x=>p.parsed!==x.parsed&&p.parsed?.getTime()!==x.parsed?.getTime()?p:x)},[p]),To(()=>{o&&d.current.focus()},[o]),f.jsx(l8n,Y({as:m.slots.baseInput,inputRef:d,fullWidth:!0,className:y.root,type:c?"datetime-local":"date",value:h.formatted,onChange:C},l,s?.root,{slotProps:{htmlInput:Y({max:c?"9999-12-31T23:59":"9999-12-31"},s?.root?.slotProps?.htmlInput)}}))}const Spt=e=>f.jsx(u8n,Y({},e));function Apt({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
`))}const d8n=(e,t,n,r)=>{if(!e)return"";const i=wP(r,t);return L1t(t)&&!(e instanceof Date)?e:(Apt({value:e,columnType:"date",rowId:i,field:n.field}),e.toLocaleDateString())},p8n=(e,t,n,r)=>{if(!e)return"";const i=wP(r,t);return L1t(t)&&!(e instanceof Date)?e:(Apt({value:e,columnType:"dateTime",rowId:i,field:n.field}),e.toLocaleString())},h8n=Y({},dm,{type:"date",sortComparator:j1t,valueFormatter:d8n,filterOperators:wpt(),renderEditCell:Spt,pastedValueParser:e=>new Date(e)}),f8n=Y({},dm,{type:"dateTime",sortComparator:j1t,valueFormatter:p8n,filterOperators:wpt(!0),renderEditCell:Spt,pastedValueParser:e=>new Date(e)}),LC=e=>e==null?null:Number(e),g8n=e=>e==null||Number.isNaN(e)||e===""?null:t=>LC(t)===LC(e),m8n=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>LC(t)===e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>LC(t)!==e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:LC(t)>e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:LC(t)>=e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:LC(t)<e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:LC(t)<=e.value,InputComponent:sf,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:V1t,InputComponentProps:{type:"number"}}],v8n=Y({},dm,{type:"number",align:"right",headerAlign:"right",sortComparator:B1t,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>Gjn(e)?e.toLocaleString():e||"",filterOperators:m8n(),getApplyQuickFilterFn:g8n});function YW(e){return e?.type==="singleSelect"}function Bz(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(Y({field:e.field},t)):e.valueOptions}function _9(e,t,n){if(t===void 0)return;const r=t.find(i=>{const o=n(i);return String(o)===String(e)});return n(r)}const b8n=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function y8n(e){return"key"in e&&!!e.key}function M8n(e){const t=kn(),{id:n,value:r,field:i,row:o,colDef:a,hasFocus:s,error:l,onValueChange:c,initialOpen:u=t.editMode===kb.Cell,slotProps:d}=e,p=Lt(e,b8n),h=bi(),g=b.useRef(null),m=b.useRef(null),[v,y]=b.useState(u),C=(t.slotProps?.baseSelect||{}).native??!1;if(To(()=>{s&&m.current?.focus()},[s]),!YW(a))return null;const x=Bz(a,{id:n,row:o});if(!x)return null;const w=a.getOptionValue,S=a.getOptionLabel,A=async T=>{if(!YW(a)||!x)return;y(!1);const I=T.target,P=_9(I.value,x,w);c&&await c(T,P),await h.current.setEditCellValue({id:n,field:i,value:P},T)},z=(T,I)=>{if(t.editMode===kb.Row){y(!1);return}if(I==="backdropClick"||T.key==="Escape"){const P=h.current.getCellParams(n,i);h.current.publishEvent("cellEditStop",Y({},P,{reason:T.key==="Escape"?Wg.escapeKeyDown:Wg.cellFocusOut}))}},O=T=>{y8n(T)&&T.key==="Enter"||y(!0)};return!x||!a?null:f.jsx(t.slots.baseSelect,Y({ref:g,value:r,onChange:A,open:v,onOpen:O,onClose:z,error:l,native:C,fullWidth:!0,slotProps:{htmlInput:{ref:m}}},p,d?.root,t.slotProps?.baseSelect,{children:x.map(T=>{const I=w(T);return b.createElement(t.slots.baseSelectOption,Y({},t.slotProps?.baseSelectOption||{},{native:C,key:I,value:I}),S(T))})}))}const C8n=e=>f.jsx(M8n,Y({},e)),x8n=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],w8n=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:i,baseSelectOptionProps:o})=>["",...Bz(e)||[]].map(s=>{const l=r(s);let c=n(s);return c===""&&(c=" "),b.createElement(t,Y({},o,{native:i,key:l,value:l}),c)});function q_e(e){const{item:t,applyValue:n,type:r,apiRef:i,focusElementRef:o,tabIndex:a,clearButton:s,headerFilterMenu:l,slotProps:c}=e,u=Lt(e,x8n),d=t.value??"",p=Hi(),h=Hi(),g=kn(),m=g.slotProps?.baseSelect?.native??!1,v=i.current.getColumn(t.field),y=v.getOptionValue,M=v.getOptionLabel,C=b.useMemo(()=>Bz(v),[v]),x=b.useCallback(S=>{let A=S.target.value;A=_9(A,C,y),n(Y({},t,{value:A}))},[C,y,n,t]);if(!v||!YW(v))return null;const w=c?.root.label??i.current.getLocaleText("filterPanelInputLabel");return f.jsxs(b.Fragment,{children:[f.jsx(g.slots.baseSelect,Y({fullWidth:!0,id:p,label:w,labelId:h,value:d,onChange:x,slotProps:{htmlInput:Y({tabIndex:a,ref:o,type:r||"text",placeholder:c?.root.placeholder??i.current.getLocaleText("filterPanelInputPlaceholder")},c?.root.slotProps?.htmlInput)},native:m},g.slotProps?.baseSelect,u,c?.root,{children:w8n({column:v,OptionComponent:g.slots.baseSelectOption,getOptionLabel:M,getOptionValue:y,isSelectNative:m,baseSelectOptionProps:g.slotProps?.baseSelectOption})})),l,s]})}const S8n=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function A8n(e){const{item:t,applyValue:n,type:r,apiRef:i,focusElementRef:o,slotProps:a}=e,s=Lt(e,S8n),l=Hi(),c=kn(),u=i.current.getColumn(t.field),d=u.getOptionValue,p=u.getOptionLabel,h=b.useCallback((M,C)=>d(M)===d(C),[d]),g=b.useMemo(()=>Bz(u)||[],[u]),m=b.useMemo(()=>Array.isArray(t.value)?t.value.reduce((M,C)=>{const x=g.find(w=>d(w)===C);return x!=null&&M.push(x),M},[]):[],[d,t.value,g]),v=b.useCallback((M,C)=>{n(Y({},t,{value:C.map(d)}))},[n,t,d]);if(!u||!YW(u))return null;const y=c.slots.baseAutocomplete;return f.jsx(y,Y({multiple:!0,options:g,isOptionEqualToValue:h,id:l,value:m,onChange:v,getOptionLabel:p,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:o}}},s,a?.root))}const IE=e=>e==null||!Jxe(e)?e:e.value,O8n=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>IE(t)===IE(e.value),InputComponent:q_e},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>IE(t)!==IE(e.value),InputComponent:q_e},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(IE);return n=>t.includes(IE(n))},InputComponent:A8n}],z8n=e=>typeof e[0]=="object",T8n=e=>Jxe(e)?e.value:e,E8n=e=>Jxe(e)?e.label:String(e),R8n=Y({},dm,{type:"singleSelect",getOptionLabel:E8n,getOptionValue:T8n,valueFormatter(e,t,n,r){const i=wP(r,t);if(!YW(n))return"";const o=Bz(n,{id:i,row:t});if(e==null)return"";if(!o)return e;if(!z8n(o))return n.getOptionLabel(e);const a=o.find(s=>n.getOptionValue(s)===e);return a?n.getOptionLabel(a):""},renderEditCell:C8n,filterOperators:O8n(),pastedValueParser:(e,t,n)=>{const r=n,i=Bz(r)||[],o=r.getOptionValue;if(i.find(s=>o(s)===e))return e}}),I8n="string",P8n=()=>({string:dm,number:v8n,date:h8n,dateTime:f8n,boolean:spt,singleSelect:R8n,[zZ]:xHn,custom:dm}),pwe=Ps(e=>e.headerFiltering),D8n=rr(pwe,e=>e?.enabled??!1),k8n=rr(pwe,e=>e.editing),L8n=rr(pwe,e=>e.menuOpen),DZ=Ps(e=>e.columnGrouping),Opt=ea(DZ,e=>e?.unwrappedGroupingModel??{}),zpt=ea(DZ,e=>e?.lookup??{}),_8n=ea(DZ,e=>e?.headerStructure??[]),SB=rr(DZ,e=>e?.maxDepth??0),Tpt=["maxWidth","minWidth","width","flex"],Moe=P8n();function N8n({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),i={all:{},frozenFields:[],freeze:a=>{const s=i.all[a];s&&s.frozen!==!0&&(i.all[a].frozen=!0,i.frozenFields.push(a))}};function o(){if(i.frozenFields.length===r.size)return;const a={min:{},max:{}};let s=e,l=t,c=0;i.frozenFields.forEach(u=>{s-=i.all[u].computedWidth,l-=i.all[u].flex});for(let u=0;u<n.length;u+=1){const d=n[u];if(i.all[d.field]&&i.all[d.field].frozen===!0)continue;let h=s/l*d.flex;h<d.minWidth?(c+=d.minWidth-h,h=d.minWidth,a.min[d.field]=!0):h>d.maxWidth&&(c+=d.maxWidth-h,h=d.maxWidth,a.max[d.field]=!0),i.all[d.field]={frozen:!1,computedWidth:h,flex:d.flex}}c<0?Object.keys(a.max).forEach(u=>{i.freeze(u)}):c>0?Object.keys(a.min).forEach(u=>{i.freeze(u)}):n.forEach(({field:u})=>{i.freeze(u)}),o()}return o(),i.all}const Rge=(e,t)=>{const n={};let r=0,i=0;const o=[];e.orderedFields.forEach(l=>{let c=e.lookup[l],u=0,d=!1;e.columnVisibilityModel[l]!==!1&&(c.flex&&c.flex>0?(r+=c.flex,d=!0):u=XO(c.width||dm.width,c.minWidth||dm.minWidth,c.maxWidth||dm.maxWidth),i+=u),c.computedWidth!==u&&(c=Y({},c,{computedWidth:u})),d&&o.push(c),n[l]=c});const a=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),s=Math.max(a-i,0);if(r>0&&a>0){const l=N8n({initialFreeSpace:s,totalFlexUnits:r,flexColumns:o});Object.keys(l).forEach(c=>{n[c]=Y({},n[c],{computedWidth:l[c].computedWidth})})}return Y({},e,{lookup:n})},F8n=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,i=Object.keys(r);if(i.length===0&&n.length===0)return e;const o={},a=[];for(let u=0;u<n.length;u+=1){const d=n[u];e.lookup[d]&&(o[d]=!0,a.push(d))}const s=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(u=>!o[u])],l=Y({},e.lookup);for(let u=0;u<i.length;u+=1){const d=i[u],p=Y({},l[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([h,g])=>{p[h]=g===-1?1/0:g}),l[d]=p}return Y({},e,{orderedFields:s,lookup:l})};function Coe(e){let t=Moe[I8n];return e&&Moe[e]&&(t=Moe[e]),t}const yR=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=Mf(e),keepOnlyColumnsToUpsert:i=!1,updateInitialVisibilityModel:o=!1})=>{const a=!e.current.state.columns;let s;if(a)s={orderedFields:[],lookup:{},columnVisibilityModel:r,initialColumnVisibilityModel:r};else{const d=um(e);s={orderedFields:i?[]:[...d.orderedFields],lookup:Y({},d.lookup),columnVisibilityModel:r,initialColumnVisibilityModel:o?r:d.initialColumnVisibilityModel}}const l={};if(i&&!a)for(const d in s.lookup)Object.prototype.hasOwnProperty.call(s.lookup,d)&&(l[d]=!1);t.forEach(d=>{const{field:p}=d;l[p]=!0;let h=s.lookup[p];h==null?(h=Y({},Coe(d.type),{field:p,hasBeenResized:!1}),s.orderedFields.push(p)):i&&s.orderedFields.push(p),h&&h.type!==d.type&&(h=Y({},Coe(d.type),{field:p}));let g=h.hasBeenResized;Tpt.forEach(m=>{d[m]!==void 0&&(g=!0,d[m]===-1&&(d[m]=1/0))}),s.lookup[p]=Iz(h,Y({},Coe(d.type),d,{hasBeenResized:g}))}),i&&!a&&Object.keys(s.lookup).forEach(d=>{l[d]||delete s.lookup[d]});const c=e.current.unstable_applyPipeProcessors("hydrateColumns",s),u=F8n(c,n);return Rge(u,e.current.getRootDimensions?.()??void 0)};function AB(e,t){if(t.listView)return 0;const n=yB(e),r=SB(e),i=D8n(e),o=Math.floor(t.columnHeaderHeight*n),a=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n),s=i?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0;return o+a*r+s}const N9=1,Ept=1.5,W8n=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return Yt(r,lo,n)},q8n=Vo("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${Te["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${Te["scrollArea--right"]}`]:t["scrollArea--right"]},{[`&.${Te["scrollArea--up"]}`]:t["scrollArea--up"]},{[`&.${Te["scrollArea--down"]}`]:t["scrollArea--down"]},t.scrollArea]})(()=>({position:"absolute",zIndex:101,[`&.${Te["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${Te["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${Te["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${Te["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),B8n=rr(Ys,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function j8n(e){const t=bi(),[n,r]=b.useState("none");return Xn(t,"columnHeaderDragStart",()=>r("horizontal")),Xn(t,"columnHeaderDragEnd",()=>r("none")),Xn(t,"rowDragStart",()=>r("vertical")),Xn(t,"rowDragEnd",()=>r("none")),n==="none"?null:n==="horizontal"?f.jsx(H8n,Y({},e)):f.jsx(V8n,Y({},e))}function H8n(e){const{scrollDirection:t,scrollPosition:n}=e,r=b.useRef(null),i=bi(),o=Qp(),a=Qt(i,yB),s=Qt(i,Xxe),l=Qt(i,B8n,t),c=()=>{const m=Ys(i);if(t==="left")return n.current.left>0;if(t==="right"){const v=s-m.viewportInnerSize.width;return n.current.left<v}return!1},u=kn(),d=AB(i,u),p=Math.floor(u.columnHeaderHeight*a),h=Y({height:p,top:d-p},t==="left"?{left:l}:{},t==="right"?{right:l}:{}),g=en(m=>{let v;if(m.preventDefault(),t==="left")v=m.clientX-r.current.getBoundingClientRect().right;else if(t==="right")v=Math.max(1,m.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");v=(v-N9)*Ept+N9,o.start(0,()=>{i.current.scroll({left:n.current.left+v,top:n.current.top})})});return f.jsx(Rpt,Y({},e,{ref:r,getCanScrollMore:c,style:h,handleDragOver:g}))}function V8n(e){const{scrollDirection:t,scrollPosition:n}=e,r=b.useRef(null),i=bi(),o=Qp(),a=Qt(i,Yxe),s=()=>{const p=Ys(i);if(t==="up")return n.current.top>0;if(t==="down"){const g=(a.currentPageTotalHeight||0)-p.viewportInnerSize.height-(p.hasScrollX?p.scrollbarSize:0);return n.current.top<g}return!1},l=kn(),c=AB(i,l),u={top:t==="up"?c:void 0,bottom:t==="down"?0:void 0},d=en(p=>{let h;if(p.preventDefault(),t==="up")h=p.clientY-r.current.getBoundingClientRect().bottom;else if(t==="down")h=Math.max(1,p.clientY-r.current.getBoundingClientRect().top);else throw new Error("MUI X: Wrong drag direction");h=(h-N9)*Ept+N9,o.start(0,()=>{i.current.scroll({left:n.current.left,top:n.current.top+h})})});return f.jsx(Rpt,Y({},e,{ref:r,getCanScrollMore:s,style:u,handleDragOver:d}))}const Rpt=qr(function(t,n){const{scrollDirection:r,getCanScrollMore:i,style:o,handleDragOver:a}=t,s=bi(),[l,c]=b.useState(i),u=kn(),d=Y({},u,{scrollDirection:r}),p=W8n(d);return Xn(s,"scrollPositionChange",()=>{c(i)}),l?f.jsx(q8n,{ref:n,className:p.root,ownerState:d,onDragOver:a,style:o}):null}),I8=MM(j8n),Ipt=b.createContext(void 0);function Sp(){const e=b.useContext(Ipt);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e}function Vi(e,t,n){const r=b.useRef(!0);To(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function Zu(e,t){const n=b.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const Ppt=(e,t,n,r,i)=>{const o=Zu(e,"useNativeEventListener");Ka(e,"rootMount",()=>{const a=t();if(!(!a||!n))return o.debug(`Binding native ${n} event`),a.addEventListener(n,r,i),()=>{o.debug(`Clearing native ${n} event`),a.removeEventListener(n,r,i)}})};function $D(e){const t=b.useRef(!0);t.current&&(t.current=!1,e())}const Dpt=Ps(e=>e.pivoting),jz=rr(Dpt,e=>e?.active),G8n=new Map,hwe=rr(Dpt,e=>e?.initialColumns||G8n),kpt=(e,t)=>{const n=Qt(e,BD),r=Qt(e,awe),i=Qt(e,P1t),o=Qt(e,xl),a=n===0&&i===0,s=Qt(e,ujn),l=Qt(e,jz),c=!s&&a,u=!s&&n>0&&r===0,d=!s&&o.length===0,p=c&&l;let h=null,g=null;return c&&(h="noRowsOverlay"),d&&(h="noColumnsOverlay"),p&&(h="emptyPivotOverlay"),u&&(h="noResultsOverlay"),s&&(h="loadingOverlay",g=t.slotProps?.loadingOverlay?.[a?"noRowsVariant":"variant"]??(a?"skeleton":"linear-progress")),{overlayType:h,loadingOverlayVariant:g}},M7=Ps(e=>e.columnMenu);function $8n(){const e=Sp(),t=kn(),n=Qt(e,xl),r=Qt(e,BHn),i=Qt(e,FHn),o=Qt(e,gpt),a=Qt(e,()=>uwe(e)===null),s=Qt(e,KHn),l=Qt(e,YHn),c=Qt(e,L9),u=Qt(e,SB),d=Qt(e,M7),p=Qt(e,Mf),h=Qt(e,_8n),g=!(s===null&&o===null&&a),m=e.current.columnHeadersContainerRef;return f.jsx(t.slots.columnHeaders,Y({ref:m,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:i,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:g},t.slotProps?.columnHeaders))}const U8n=MM($8n),X8n=Vo("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),Y8n=Vo("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n,loadingOverlayVariant:r,overlayType:i}=e,o=r==="skeleton"||i==="noColumnsOverlay";return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],o&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),K8n=qr((e,t)=>{const{ownerState:n}=e,r=kn(),o=AZ().hooks.useGridAriaAttributes();return f.jsxs(Y8n,Y({ownerState:n,className:e.className,tabIndex:-1},o,r.slotProps?.main,{ref:t,children:[f.jsx(X8n,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),Q8n=()=>Yt({root:["topContainer"]},lo,{}),Z8n=Vo("div")({position:"sticky",zIndex:40,top:0});function J8n(e){const t=Q8n();return f.jsx(Z8n,Y({},e,{className:Lo(t.root,Te["container--top"]),role:"presentation"}))}const eVn=(e,t)=>{const{classes:n}=e;return Yt({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},lo,n)},tVn=Vo("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),nVn=qr(function(t,n){const r=kn(),i=!r.autoHeight&&t.style?.minHeight==="auto",o=eVn(r,i),a={classes:r.classes,overflowedContent:i};return f.jsx(tVn,Y({},t,{ownerState:a,className:Lo(o.root,t.className),ref:n}))}),rVn=Vo("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),Lpt=Vo("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:_n.cell.background.pinned}),iVn=Vo(Lpt)({left:0}),oVn=Vo(Lpt)({right:0}),aVn=Vo("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function sVn({rowsLength:e}){const t=bi(),{viewportOuterSize:n,minimumSize:r,hasScrollX:i,hasScrollY:o,scrollbarSize:a,leftPinnedWidth:s,rightPinnedWidth:l}=Qt(t,Ys),c=i?a:0,u=n.height-r.height>0;return c===0&&!u?null:f.jsxs(rVn,{className:Te.filler,role:"presentation",style:{height:c,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[s>0&&f.jsx(iVn,{className:Te["filler--pinnedLeft"],style:{width:s}}),f.jsx(aVn,{}),l>0&&f.jsx(oVn,{className:Te["filler--pinnedRight"],style:{width:l+(o?a:0)}})]})}const lVn=MM(sVn),cVn=["className"],uVn=e=>{const{classes:t}=e;return Yt({root:["virtualScrollerRenderZone"]},lo,t)},dVn=Vo("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),pVn=qr(function(t,n){const{className:r}=t,i=Lt(t,cVn),o=Sp(),a=kn(),s=uVn(a),l=o.current.virtualizer.api.useVirtualization().getters.getOffsetTop();return f.jsx(dVn,Y({className:Lo(s.root,r),ownerState:a,style:{transform:`translate3d(0, ${l}px, 0)`}},i,{ref:n}))}),hVn={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},bu=Ps(e=>e.editRows),_pt=rr(bu,(e,{rowId:t,editMode:n})=>n===kb.Row&&!!e[t]),fVn=rr(bu,(e,{rowId:t,field:n})=>e[t]?.[n]??null),Hz=Ps(e=>e.preferencePanel),gVn=rr(Hz,(e,t)=>!!(e.open&&e.labelId===t));var o1=(function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e})(o1||{}),F9=Symbol("NOT_FOUND");function mVn(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function vVn(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function bVn(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var B_e=e=>Array.isArray(e)?e:[e];function yVn(e){const t=Array.isArray(e[0])?e[0]:e;return bVn(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function MVn(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function CVn(e){let t;return{get(n){return t&&e(t.key,n)?t.value:F9},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function xVn(e,t){let n=[];function r(s){const l=n.findIndex(c=>t(s,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return F9}function i(s,l){r(s)===F9&&(n.unshift({key:s,value:l}),n.length>e&&n.pop())}function o(){return n}function a(){n=[]}return{get:r,put:i,getEntries:o,clear:a}}var wVn=(e,t)=>e===t;function SVn(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}}function AVn(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=wVn,maxSize:i=1,resultEqualityCheck:o}=n,a=SVn(r);let s=0;const l=i<=1?CVn(a):xVn(i,a);function c(){let u=l.get(arguments);if(u===F9){if(u=e.apply(null,arguments),s++,o){const p=l.getEntries().find(h=>o(h.value,u));p&&(u=p.value,s!==0&&s--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}var OVn=class{constructor(e){this.value=e}deref(){return this.value}},zVn=typeof WeakRef<"u"?WeakRef:OVn,TVn=0,j_e=1;function P8(){return{s:TVn,v:void 0,o:null,p:null}}function Npt(e,t={}){let n=P8();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let s=n;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const h=arguments[d];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const m=g.get(h);m===void 0?(s=P8(),g.set(h,s)):s=m}else{let g=s.p;g===null&&(s.p=g=new Map);const m=g.get(h);m===void 0?(s=P8(),g.set(h,s)):s=m}}const c=s;let u;if(s.s===j_e)u=s.v;else if(u=e.apply(null,arguments),o++,r){const d=i?.deref?.()??i;d!=null&&r(d,u)&&(u=d,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new zVn(u):u}return c.s=j_e,c.v=u,u}return a.clearCache=()=>{n=P8(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function Fpt(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),mVn(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=Npt,argsMemoizeOptions:g=[]}=u,m=B_e(p),v=B_e(g),y=yVn(i),M=d(function(){return o++,c.apply(null,arguments)},...m),C=h(function(){a++;const w=MVn(y,arguments);return s=M.apply(null,w),s},...v);return Object.assign(C,{resultFunc:c,memoizedResultFunc:M,dependencies:y,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var EVn=Fpt(Npt),RVn=Object.assign((e,t=EVn)=>{vVn(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>RVn});const IVn=Fpt({memoize:AVn,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),xoe=(e,t,n,r,i,o,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let s;if(e)s=e;else throw new Error("Missing arguments");return s},PVn=(...e)=>{const t=new WeakMap;let n=1;const r=e[e.length-1],i=e.length-1||1,o=Math.max(r.length-i,0);if(o>3)throw new Error("Unsupported number of arguments");return(s,l,c,u)=>{let d=s.__cacheKey__;d||(d={id:n},s.__cacheKey__=d,n+=1);let p=t.get(d);if(!p){const h=e.length===1?[v=>v,r]:e;let g=e;const m=[void 0,void 0,void 0];switch(o){case 0:break;case 1:{g=[...h.slice(0,-1),()=>m[0],r];break}case 2:{g=[...h.slice(0,-1),()=>m[0],()=>m[1],r];break}case 3:{g=[...h.slice(0,-1),()=>m[0],()=>m[1],()=>m[2],r];break}default:throw new Error("Unsupported number of arguments")}p=IVn(...g),p.selectorArgs=m,t.set(d,p)}switch(o){case 3:p.selectorArgs[2]=u;case 2:p.selectorArgs[1]=c;case 1:p.selectorArgs[0]=l}switch(o){case 0:return p(s);case 1:return p(s,l);case 2:return p(s,l,c);case 3:return p(s,l,c,u);default:throw new Error("unreachable")}}};function wC(e,t,n,r,i){const o=a=>t(a,n,r,i);return O1t.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,o)}const DVn=()=>{};function kVn(e,t,n){const r=xp(LVn,{store:e,selector:t}).current;r.effect=n,V6(r.onMount)}function LVn(e){const{store:t,selector:n}=e;let r=n(t.state);const i={effect:DVn,dispose:null,subscribe:()=>{i.dispose??=t.subscribe(o=>{const a=n(o);i.effect(r,a),r=a})},onMount:()=>(i.subscribe(),()=>{i.dispose?.(),i.dispose=null})};return i.subscribe(),i}class fwe{static create(t){return new fwe(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,r=this.listeners.values();let i;for(;i=r.next(),!i.done;){if(n!==this.updateTick)return;const o=i.value;o(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(Y({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(Y({},this.state,{[t]:n}))}}const _Vn={},NVn={initialize:FVn,use:WVn,selectors:_Vn};function FVn(e){return{colspanMap:new Map}}function WVn(e,t,n){const r=t.colspan?.getColspan,i=()=>{e.state.colspanMap=new Map},o=(s,l)=>e.state.colspanMap.get(s)?.[l],a=en(r?(s,l,c,u)=>{for(let d=l;d<c;d+=1){const p=qVn(e.state.colspanMap,d,s,l,c,u,r);p.colSpan>1&&(d+=p.colSpan-1)}}:()=>{});return n.calculateColSpan=a,{resetColSpan:i,getCellColSpanInfo:o,calculateColSpan:a}}function qVn(e,t,n,r,i,o,a){const s=o.length,l=o[t],c=a(n,l,t);if(!c||c===1)return woe(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:1,width:l.computedWidth}}),{colSpan:1};let u=l.computedWidth;for(let d=1;d<c;d+=1){const p=t+d;if(p>=r&&p<i){const h=o[p];u+=h.computedWidth,woe(e,n,t+d,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(t+c,s-1),leftVisibleCellIndex:t})}woe(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:c,width:u}})}return{colSpan:c}}function woe(e,t,n,r){let i=e.get(t);i||(i={},e.set(t,i)),i[n]=r}function BVn(e,t=166){let n,r;const i=()=>{n=void 0,e(...r)};function o(...a){r=a,n===void 0&&(n=setTimeout(i,t))}return o.clear=()=>{clearTimeout(n),n=void 0},o}function C7(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o+=1)if(!C7(e[o],t[o]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const i=Array.from(e.entries());for(let o=0;o<i.length;o+=1)if(!t.has(i[o][0]))return!1;for(let o=0;o<i.length;o+=1){const a=i[o];if(!C7(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const i=Array.from(e.entries());for(let o=0;o<i.length;o+=1)if(!t.has(i[o][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o+=1)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let i=0;i<r;i+=1)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=0;i<r;i+=1){const o=n[i];if(!C7(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function rN(e,t){return Math.round(e*10**t)/10**t}const fy={EMPTY:{width:0,height:0},equals:(e,t)=>e.width===t.width&&e.height===t.height},jVn={EMPTY:{top:[],bottom:[]}},HVn={EMPTY:{left:[],right:[]}};let Il=(function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e})({});(function(e){function t(n,r){return n===0&&r===0?Il.NONE:Math.abs(r)>=Math.abs(n)?r>0?Il.DOWN:Il.UP:n>0?Il.RIGHT:Il.LEFT}e.forDelta=t})(Il||(Il={}));const VVn={isReady:!1,root:fy.EMPTY,viewportOuterSize:fy.EMPTY,viewportInnerSize:fy.EMPTY,contentSize:fy.EMPTY,minimumSize:fy.EMPTY,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,topContainerHeight:0,bottomContainerHeight:0},xI={rootSize:e=>e.rootSize,dimensions:e=>e.dimensions,rowHeight:e=>e.dimensions.rowHeight,contentHeight:e=>e.dimensions.contentSize.height,rowsMeta:e=>e.rowsMeta,columnPositions:PVn((e,t)=>{const n=[];let r=0;for(let i=0;i<t.length;i+=1)n.push(r),r+=t[i].computedWidth;return n}),needsHorizontalScrollbar:e=>e.dimensions.viewportOuterSize.width>0&&e.dimensions.columnsTotalWidth>e.dimensions.viewportOuterSize.width},$1={initialize:GVn,use:$Vn,selectors:xI};function GVn(e){const t=Y({},VVn,e.dimensions),{rowCount:n}=e,{rowHeight:r}=t,i={currentPageTotalHeight:n*r,positions:Array.from({length:n},(a,s)=>s*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0},o=new Map;return{rootSize:fy.EMPTY,dimensions:t,rowsMeta:i,rowHeights:o}}function $Vn(e,t,n){const r=b.useRef(!0),{refs:i,dimensions:{rowHeight:o,columnsTotalWidth:a,leftPinnedWidth:s,rightPinnedWidth:l,topPinnedHeight:c,bottomPinnedHeight:u},onResize:d}=t,p=i.container.current,h=b.useCallback(()=>{if(r.current)return;const C=xI.rootSize(e.state),x=xI.rowsMeta(e.state),w=YVn(p,t.dimensions.scrollbarSize),S=c+x.pinnedTopRowsTotalHeight,A=u+x.pinnedBottomRowsTotalHeight,z={width:a,height:rN(x.currentPageTotalHeight,1)};let O,T,I=!1,P=!1;if(t.autoHeight)P=!1,I=Math.round(a)>Math.round(C.width),O={width:C.width,height:S+A+z.height},T={width:Math.max(0,O.width-(P?w:0)),height:Math.max(0,O.height-(I?w:0))};else{O={width:C.width,height:C.height},T={width:Math.max(0,O.width),height:Math.max(0,O.height-S-A)};const H=z,j=T,G=H.width>j.width,q=H.height>j.height;(G||q)&&(P=q,I=H.width+(P?w:0)>j.width,I&&(P=H.height+w>j.height)),P&&(T.width-=w),I&&(T.height-=w)}t.disableHorizontalScroll&&(I=!1),t.disableVerticalScroll&&(P=!1);const N=Math.max(O.width,a+(P?w:0)),F={width:a,height:S+z.height+A},L={isReady:!0,root:C,viewportOuterSize:O,viewportInnerSize:T,contentSize:z,minimumSize:F,hasScrollX:I,hasScrollY:P,scrollbarSize:w,rowWidth:N,rowHeight:o,columnsTotalWidth:a,leftPinnedWidth:s,rightPinnedWidth:l,topContainerHeight:S,bottomContainerHeight:A},W=e.state.dimensions;C7(W,L)||(e.update({dimensions:L}),d?.(L.root))},[e,p,t.dimensions.scrollbarSize,t.autoHeight,t.disableHorizontalScroll,t.disableVerticalScroll,d,o,a,s,l,c,u]),{resizeThrottleMs:g}=t,m=en(h),v=b.useMemo(()=>g>0?BVn(m,g):void 0,[g,m]);b.useEffect(()=>v?.clear,[v]);const y=en(C=>{e.state.rootSize=C,r.current||!v?(r.current=!1,h()):v()});To(()=>XVn(p,e,y),[p,e,y]),To(h,[h]);const M=UVn(e,t,h);return{updateDimensions:h,debouncedUpdateDimensions:v,rowsMeta:M}}function UVn(e,t,n){const r=e.state.rowHeights,{rows:i,getRowHeight:o,getRowSpacing:a,getEstimatedRowHeight:s}=t,l=b.useRef(-1),c=b.useRef(!1),u=b.useRef(!1),d=t.pinnedRows,p=wC(e,xI.rowHeight),h=en(T=>{let I=r.get(T);return I===void 0&&(I={content:e.state.dimensions.rowHeight,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},r.set(T,I)),I}),{applyRowHeight:g}=t,m=b.useCallback(T=>{const I=xI.dimensions(e.state),P=I.rowHeight,N=h(T.id);if(!o)N.content=P,N.needsFirstMeasurement=!1;else{const F=o(T);if(F==="auto"){if(N.needsFirstMeasurement){const L=s?s(T):P;N.content=L??P}c.current=!0,N.autoHeight=!0}else N.content=F??I.rowHeight,N.needsFirstMeasurement=!1,N.autoHeight=!1}if(a){const F=a(T);N.spacingTop=F.top??0,N.spacingBottom=F.bottom??0}else N.spacingTop=0,N.spacingBottom=0;return g?.(N,T),N},[e,o,h,s,p,a,g]),v=b.useCallback(()=>{c.current=!1;const T=d?.top.reduce((W,H)=>{const j=m(H);return W+j.content+j.spacingTop+j.spacingBottom+j.detail},0)??0,I=d?.bottom.reduce((W,H)=>{const j=m(H);return W+j.content+j.spacingTop+j.spacingBottom+j.detail},0)??0,P=[],N=i.reduce((W,H)=>{P.push(W);const j=m(H),G=j.content+j.spacingTop+j.spacingBottom+j.detail;return W+G},0);c.current||(l.current=1/0);const F=T!==e.state.rowsMeta.pinnedTopRowsTotalHeight||I!==e.state.rowsMeta.pinnedBottomRowsTotalHeight||N!==e.state.rowsMeta.currentPageTotalHeight,L={currentPageTotalHeight:N,positions:P,pinnedTopRowsTotalHeight:T,pinnedBottomRowsTotalHeight:I};e.set("rowsMeta",L),F&&n(),u.current=!0},[e,d,i,m,n]),y=en(v),M=T=>r.get(T)?.content??xI.rowHeight(e.state),C=(T,I)=>{const P=h(T),N=P.content!==I;P.needsFirstMeasurement=!1,P.content=I,u.current&&=!N},x=T=>r.get(T)?.autoHeight??!1,w=()=>l.current,S=T=>{c.current&&T>l.current&&(l.current=T)},A=()=>{r.clear(),v()},z=xp(()=>typeof ResizeObserver>"u"?void 0:new ResizeObserver(T=>{for(let I=0;I<T.length;I+=1){const P=T[I],N=P.borderBoxSize&&P.borderBoxSize.length>0?P.borderBoxSize[0].blockSize:P.contentRect.height,F=P.target.__mui_id;if(t.focusedVirtualCell?.()?.id===F&&N===0)return;C(F,N)}u.current||requestAnimationFrame(()=>{y()})})).current,O=(T,I)=>(T.__mui_id=I,z?.observe(T),()=>z?.unobserve(T));return To(()=>{v()},[v]),{getRowHeight:M,setLastMeasuredRowIndex:S,storeRowHeightMeasurement:C,hydrateRowsMeta:v,observeRowHeight:O,rowHasAutoHeight:x,getRowHeightEntry:h,getLastMeasuredRowIndex:w,resetRowHeights:A}}function XVn(e,t,n){if(!e)return;const r=e.getBoundingClientRect(),i={width:rN(r.width,1),height:rN(r.height,1)};if((t.state.rootSize===fy.EMPTY||!fy.equals(i,t.state.rootSize))&&n(i),typeof ResizeObserver>"u")return;const o=new ResizeObserver(([a])=>{if(!a)return;const s={width:rN(a.contentRect.width,1),height:rN(a.contentRect.height,1)};fy.equals(s,t.state.rootSize)||n(s)});return o.observe(e),()=>{o.disconnect()}}const H_e=new WeakMap;function YVn(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=H_e.get(e);if(n!==void 0)return n;const i=Is(e).createElement("div");i.style.width="99px",i.style.height="99px",i.style.position="absolute",i.style.overflow="scroll",i.className="scrollDiv",e.appendChild(i);const o=i.offsetWidth-i.clientWidth;return e.removeChild(i),H_e.set(e,o),o}const KVn=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",QVn=KVn.includes("firefox"),Soe=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),ZVn=()=>{},JVn=(e,t)=>{const n=b.useRef(!1);To(()=>n.current||!e?ZVn:(n.current=!0,t()),[n.current||e])};function eGn(e){const t=b.useRef(!0);t.current&&(t.current=!1,e())}const wI=(e,t,n)=>Math.max(t,Math.min(n,e)),Aoe=50,V_e={top:0,left:0},tGn=Object.freeze(new Map),W9={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},x7={renderContext:xoe(e=>e.virtualization.renderContext),enabledForRows:xoe(e=>e.virtualization.enabledForRows),enabledForColumns:xoe(e=>e.virtualization.enabledForColumns)},Wpt={initialize:nGn,use:rGn,selectors:x7};function nGn(e){return{virtualization:Y({enabled:!Soe,enabledForRows:!Soe,enabledForColumns:!Soe,renderContext:W9},e.initialState?.virtualization),getters:null}}function rGn(e,t,n){const{refs:r,dimensions:{rowHeight:i,columnsTotalWidth:o},virtualization:{isRtl:a=!1,rowBufferPx:s=150,columnBufferPx:l=150},colspan:c,initialState:u,rows:d,range:p,columns:h,pinnedRows:g=jVn.EMPTY,pinnedColumns:m=HVn.EMPTY,minimalContentHeight:v,autoHeight:y,onWheel:M,onTouchMove:C,onRenderContextChange:x,onScrollChange:w,scrollReset:S,renderRow:A,renderInfiniteLoadingTrigger:z}=t,O=wC(e,$1.selectors.needsHorizontalScrollbar),T=g.bottom.length>0,[I,P]=b.useState(tGn),[,N]=b.useState(0),F=b.useRef(!1),L=wC(e,x7.renderContext),W=wC(e,x7.enabledForRows),H=wC(e,x7.enabledForColumns),j=wC(e,$1.selectors.rowsMeta),G=wC(e,$1.selectors.contentHeight),q=b.useRef(u?.scroll??V_e),$=b.useRef(!1),U=b.useRef(V_e),X=b.useRef(W9),Q=Qp(),re=b.useRef(void 0),ee=xp(()=>aGn(a,s,l,i*15,Aoe*6)).current,se=b.useCallback(ue=>{X_e(ue,e.state.virtualization.renderContext)||e.set("virtualization",Y({},e.state.virtualization,{renderContext:ue}));const Ae=$1.selectors.dimensions(e.state).isReady,Ce=ue.firstRowIndex!==X.current.firstRowIndex||ue.lastRowIndex!==X.current.lastRowIndex;Ae&&Ce&&(X.current=ue,x?.(ue)),U.current=q.current},[e,x]),pe=en(()=>{const ue=r.scroller.current;if(!ue)return;const Ae=$1.selectors.dimensions(e.state),Ce=Math.ceil(Ae.contentSize.height-Ae.viewportInnerSize.height),Ee=Math.ceil(Ae.contentSize.width-Ae.viewportInnerSize.width),Ge={top:wI(ue.scrollTop,0,Ce),left:a?wI(ue.scrollLeft,-Ee,0):wI(ue.scrollLeft,0,Ee)},_e=Ge.left-q.current.left,Ie=Ge.top-q.current.top,Le=_e!==0||Ie!==0;q.current=Ge;const we=Le?Il.forDelta(_e,Ie):Il.NONE,ve=Math.abs(q.current.top-U.current.top),De=Math.abs(q.current.left-U.current.left),ze=ve>=i||De>=Aoe,Ve=ee.direction!==we;if(!(ze||Ve))return L;if(Ve)switch(we){case Il.NONE:case Il.LEFT:case Il.RIGHT:re.current=void 0;break;default:re.current=L;break}ee.direction=we,ee.buffer=Bpt(a,we,s,l,i*15,Aoe*6);const et=G_e(e,t,n,W,H),it=$_e(et,q.current,ee);return X_e(it,L)||(ql.flushSync(()=>{se(it)}),Q.start(1e3,pe)),it}),te=en(()=>{if(!$1.selectors.dimensions(e.state).isReady&&(W||H))return;const ue=G_e(e,t,n,W,H),Ae=$_e(ue,q.current,ee);re.current=void 0,se(Ae)}),ce=en(()=>{if($.current){$.current=!1;return}const ue=pe();ue&&w?.(q.current,ue)}),oe=()=>j.positions[L.firstRowIndex]??0,ae=(ue={},Ae)=>{if(!ue.rows&&!p)return[];let Ce=L;ue.renderContext&&(Ce=ue.renderContext,Ce.firstColumnIndex=L.firstColumnIndex,Ce.lastColumnIndex=L.lastColumnIndex);const Ee=!T&&ue.position===void 0||T&&ue.position==="bottom",Ge=ue.position!==void 0;let _e;switch(ue.position){case"top":_e=0;break;case"bottom":_e=g.top.length+d.length;break;case void 0:default:_e=g.top.length;break}const Ie=ue.rows??d,Le=Ce.firstRowIndex,we=Math.min(Ce.lastRowIndex,Ie.length),ve=ue.rows?Y_e(0,ue.rows.length):Y_e(Le,we);let De=-1;const ze=t.focusedVirtualCell?.();!Ge&&ze&&(ze.rowIndex<Le&&(ve.unshift(ze.rowIndex),De=ze.rowIndex),ze.rowIndex>we&&(ve.push(ze.rowIndex),De=ze.rowIndex));const Ve=[],Ke=$1.selectors.columnPositions(e.state,h);return ve.forEach(et=>{const{id:it,model:Ft}=Ie[et];if(Ae&&!Ae[it])return;const Pt=(p?.firstRowIndex||0)+_e+et;if(c?.enabled){const ft=m.left.length,Tt=h.length-m.right.length;n.calculateColSpan(it,ft,Tt,h),m.left.length>0&&n.calculateColSpan(it,0,m.left.length,h),m.right.length>0&&n.calculateColSpan(it,h.length-m.right.length,h.length,h)}const Qn=n.rowsMeta.rowHasAutoHeight(it)?"auto":n.rowsMeta.getRowHeight(it);let ir=!1;ue.position===void 0&&(ir=et===0);let jn=!1;const Zn=et===Ie.length-1;if(Ee)if(Ge)jn=Zn;else{const ft=d.length-1;et===ft&&(jn=!0)}let Br=Ce;re.current&&et>=re.current.firstRowIndex&&et<re.current.lastRowIndex&&(Br=re.current);const vr=et===De,Ne=ze?.rowIndex===Pt,He=qpt(Ke,Br,m.left.length),Xe=Zn&&ue.position==="top",ct=Br.firstColumnIndex,lt=Br.lastColumnIndex;if(Ve.push(A({id:it,model:Ft,rowIndex:Pt,offsetLeft:He,columnsTotalWidth:o,baseRowHeight:Qn,firstColumnIndex:ct,lastColumnIndex:lt,focusedColumnIndex:Ne?ze.columnIndex:void 0,isFirstVisible:ir,isLastVisible:jn,isVirtualFocusRow:vr,showBottomBorder:Xe})),vr)return;const Je=I.get(it);Je&&Ve.push(Je),ue.position===void 0&&Zn&&Ve.push(z(it))}),Ve},ne=b.useMemo(()=>({overflowX:O?void 0:"hidden",overflowY:y?"hidden":void 0}),[O,y]),le=b.useMemo(()=>{const ue={width:O?o:"auto",flexBasis:G,flexShrink:0};return ue.flexBasis===0&&(ue.flexBasis=v),ue},[o,G,O,v]),he=b.useRef(null),be=b.useCallback(ue=>{ue&&he.current?.(o,G)},[o,G]);To(()=>{F.current&&te()},[H,W,te]),To(()=>{r.scroller.current&&(r.scroller.current.scrollLeft=0)},[r.scroller,S]),JVn(L!==W9,()=>{if(w?.(q.current,L),F.current=!0,u?.scroll&&r.scroller.current){const ue=r.scroller.current,{top:Ae,left:Ce}=u.scroll,Ee={top:!(Ae>0),left:!(Ce>0)};!Ee.left&&o&&(ue.scrollLeft=Ce,Ee.left=!0,$.current=!0),!Ee.top&&G&&(ue.scrollTop=Ae,$.current=!0),(!Ee.top||!Ee.left)&&(he.current=(Ge,_e)=>{!Ee.left&&Ge&&(ue.scrollLeft=Ce,Ee.left=!0,$.current=!0),!Ee.top&&_e&&(ue.scrollTop=Ae,Ee.top=!0,$.current=!0),Ee.left&&Ee.top&&(he.current=null)})}}),kVn(e,$1.selectors.dimensions,te);const me=ue=>Ae=>{Ae&&r[ue].current!==Ae&&(r[ue].current=Ae,N(Ce=>Ce+1))},Me={setPanels:P,getOffsetTop:oe,getRows:ae,getContainerProps:()=>({ref:me("container")}),getScrollerProps:()=>({ref:me("scroller"),onScroll:ce,onWheel:M,onTouchMove:C,style:ne,role:"presentation",tabIndex:QVn?-1:void 0}),getContentProps:()=>({ref:be,style:le,role:"presentation"}),getScrollbarVerticalProps:()=>({ref:me("scrollbarVertical"),scrollPosition:q}),getScrollbarHorizontalProps:()=>({ref:me("scrollbarHorizontal"),scrollPosition:q}),getScrollAreaProps:()=>({scrollPosition:q})};return eGn(()=>{e.state=Y({},e.state,{getters:Me})}),b.useEffect(()=>{e.update({getters:Me})},Object.values(Me)),{getters:Me,useVirtualization:()=>wC(e,ue=>ue),setPanels:P,forceUpdateRenderContext:te,getCellColSpanInfo:()=>{throw new Error("Unimplemented: colspan feature is required")},calculateColSpan:()=>{throw new Error("Unimplemented: colspan feature is required")},getHiddenCellsOrigin:()=>{throw new Error("Unimplemented: rowspan feature is required")}}}function G_e(e,t,n,r,i){const o=$1.selectors.dimensions(e.state),a=t.rows,s=t.range,l=t.columns,c=n.getHiddenCellsOrigin(),u=t.rows.at(-1)?.id,d=l.at(-1);return{api:n,enabledForRows:r,enabledForColumns:i,autoHeight:t.autoHeight,rowBufferPx:t.virtualization.rowBufferPx,columnBufferPx:t.virtualization.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:u!==void 0?n.rowsMeta.getRowHeight(u):0,lastColumnWidth:d?.computedWidth??0,rowsMeta:$1.selectors.rowsMeta(e.state),columnPositions:$1.selectors.columnPositions(e.state,t.columns),rows:a,range:s,pinnedColumns:t.pinnedColumns,columns:l,hiddenCellsOriginMap:c,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function $_e(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.columns.length},{top:i,left:o}=t,a=Math.abs(o)+e.leftPinnedWidth;if(e.enabledForRows){let l=Math.min(U_e(e,i,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const c=e.hiddenCellsOriginMap[l];if(c){const d=Math.min(...Object.values(c));l=Math.min(l,d)}const u=e.autoHeight?l+e.rows.length:U_e(e,i+e.viewportInnerHeight);r.firstRowIndex=l,r.lastRowIndex=u}if(e.enabledForColumns){let l=0,c=e.columnPositions.length,u=!1;const[d,p]=Ige({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let h=d;h<p&&!u;h+=1){const g=e.rows[h];u=e.api.rowsMeta.rowHasAutoHeight(g.id)}(!u||e.virtualizeColumnsWithAutoRowHeight)&&(l=tw(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),c=tw(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=l,r.lastColumnIndex=c}return iGn(e,r,n)}function U_e(e,t,n){const r=e.api.rowsMeta.getLastMeasuredRowIndex();let i=r===1/0;e.range?.lastRowIndex&&!i&&(i=r>=e.range.lastRowIndex);const o=wI(r-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return i||e.rowsMeta.positions[o]>=t?tw(t,e.rowsMeta.positions,n):oGn(t,e.rowsMeta.positions,o,n)}function iGn(e,t,n){const[r,i]=Ige({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[o,a]=Ige({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns?.left.length??0,maxLastIndex:e.columns.length-(e.pinnedColumns?.right.length??0),bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),s=sGn({api:e.api,firstColumnToRender:o,firstRowToRender:r,lastRowToRender:i,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:i,firstColumnIndex:s,lastColumnIndex:a}}function tw(e,t,n=void 0,r=0,i=t.length){if(t.length<=0)return-1;if(r>=i)return r;const o=r+Math.floor((i-r)/2),a=t[o];let s;if(n?.atStart){const l=(o===t.length-1?n.lastPosition:t[o+1])-a;s=e-l<a}else s=e<=a;return s?tw(e,t,n,r,o):tw(e,t,n,o+1,i)}function oGn(e,t,n,r=void 0){let i=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=i,i*=2;return tw(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function Ige({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:i,maxLastIndex:o,positions:a,lastSize:s}){const l=a[e]-n,c=a[t]+r,u=tw(l,a,{atStart:!0,lastPosition:a[a.length-1]+s}),d=tw(c,a);return[wI(u,i,o),wI(d,i,o)]}function X_e(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function qpt(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function Bpt(e,t,n,r,i,o){if(e)switch(t){case Il.LEFT:t=Il.RIGHT;break;case Il.RIGHT:t=Il.LEFT;break}switch(t){case Il.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case Il.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:o};case Il.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:o,columnBefore:0};case Il.UP:return{rowAfter:0,rowBefore:i,columnAfter:0,columnBefore:0};case Il.DOWN:return{rowAfter:i,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}function aGn(e,t,n,r,i){return{direction:Il.NONE,buffer:Bpt(e,Il.NONE,t,n,r,i)}}function Y_e(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function sGn({api:e,firstColumnToRender:t,firstRowToRender:n,lastRowToRender:r,visibleRows:i}){let o=t,a=!1;for(;!a&&o>=0;){a=!0;for(let s=n;s<r;s+=1)if(i[s]){const c=i[s].id,u=e.getCellColSpanInfo(c,o);if(u&&u.spannedByColSpan&&u.leftVisibleCellIndex<o){o=u.leftVisibleCellIndex,a=!1;break}}}return o}const lGn={},cGn={initialize:uGn,use:dGn,selectors:lGn};function uGn(e){return{}}function dGn(e,t,n){return{getViewportPageSize:()=>{const i=$1.selectors.dimensions(e.state);if(!i.isReady)return 0;if(t.getRowHeight){const a=Wpt.selectors.renderContext(e.state),s=a.lastRowIndex-a.firstRowIndex;return Math.min(s-1,t.rows.length)}const o=Math.floor(i.viewportInnerSize.height/i.rowHeight);return Math.min(o,t.rows.length)}}}const pGn={firstRowIndex:0,lastRowIndex:0},hGn={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},jpt={state:e=>e.rowSpanning,hiddenCells:e=>e.rowSpanning.caches.hiddenCells,spannedCells:e=>e.rowSpanning.caches.spannedCells,hiddenCellsOriginMap:e=>e.rowSpanning.caches.hiddenCellOriginMap},SP={initialize:fGn,use:gGn,selectors:jpt};function fGn(e){return{rowSpanning:e.initialState?.rowSpanning??{caches:hGn,processedRange:pGn}}}function gGn(e,t,n){return{getHiddenCellsOrigin:()=>jpt.hiddenCellsOriginMap(e.state)}}const K_e=[$1,Wpt,NVn,SP,cGn],mGn=e=>{const t=xp(()=>new fwe(K_e.map(r=>r.initialize(e)).reduce((r,i)=>Object.assign(r,i),{}))).current,n={};for(const r of K_e)Object.assign(n,r.use(t,e,n));return{store:t,api:n}},vGn=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),sF=!vGn,bGn=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return Y({},e,{virtualization:{enabled:!n&&sF,enabledForColumns:!n&&sF,enabledForRows:!n&&!r&&sF,renderContext:W9}})};function yGn(e,t){const{virtualizer:n}=e.current,{autoHeight:r,disableVirtualization:i}=t,o=c=>{c&&=sF,n.store.set("virtualization",Y({},n.store.state.virtualization,{enabled:c,enabledForColumns:c,enabledForRows:c&&!r}))};Vi(e,{unstable_setVirtualization:o,unstable_setColumnVirtualization:c=>{c&&=sF,n.store.set("virtualization",Y({},n.store.state.virtualization,{enabledForColumns:c}))}},"public");const l=n.api.forceUpdateRenderContext;e.current.register("private",{updateRenderContext:l}),Ka(e,"sortedRowsSet",l),Ka(e,"paginationModelChange",l),Ka(e,"columnsChange",l),b.useEffect(()=>{o(!t.disableVirtualization)},[i,r])}const kZ=Ps(e=>e.virtualization);rr(kZ,e=>e.enabled);const MGn=rr(kZ,e=>e.enabledForColumns);rr(kZ,e=>e.enabledForRows);const Hpt=rr(kZ,e=>e.renderContext),CGn=Ps(e=>e.virtualization.renderContext.firstColumnIndex),xGn=Ps(e=>e.virtualization.renderContext.lastColumnIndex),wGn=ea(CGn,xGn,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t}));function SGn(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class AGn{constructor({ttl:t=3e5,getKey:n=SGn}){this.cache={},this.ttl=t,this.getKey=n}set(t,n){const r=this.getKey(t),i=Date.now()+this.ttl;this.cache[r]={value:n,expiry:i}}get(t){const n=this.getKey(t),r=this.cache[n];if(r){if(Date.now()>r.expiry){delete this.cache[n];return}return r.value}}clear(){this.cache={}}}class OGn extends Error{constructor(t){super(t.message),this.name="GridGetRowsError",this.params=t.params,this.cause=t.cause}}class zGn extends Error{constructor(t){super(t.message),this.name="GridUpdateRowError",this.params=t.params,this.cause=t.cause}}const TGn=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return Yt(r,lo,n)},gwe=Vo("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),EGn=Vo(gwe)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-headersTotalHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-headersTotalHeight)",right:0}),RGn=Vo(gwe)({width:"calc(var(--DataGrid-hasScrollX) * (100% - var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:0}),IGn=Vo(gwe)({width:"var(--size)",height:"var(--size)",right:0,bottom:0,overflow:"scroll"}),Q_e=qr(function(t,n){const r=Sp(),i=kn(),o=b.useRef(!1),a=b.useRef(0),s=b.useRef(null),l=TGn(i,t.position),c=Qt(r,Ys),u=t.position==="vertical"?"height":"width",d=t.position==="vertical"?"scrollTop":"scrollLeft",p=t.position==="vertical"?"top":"left",h=t.position==="horizontal"?c.minimumSize.width:c.minimumSize.height-c.headersTotalHeight,g=en(()=>{const M=s.current,C=t.scrollPosition.current;if(M&&C[p]!==a.current){if(a.current=C[p],o.current){o.current=!1;return}o.current=!0,M[d]=C[p]}}),m=en(()=>{const M=r.current.virtualScrollerRef.current,C=s.current;if(C){if(o.current){o.current=!1;return}o.current=!0,M[d]=C[d]}});V6(()=>{const M=r.current.virtualScrollerRef.current,C=s.current,x={passive:!0};return M.addEventListener("scroll",g,x),C.addEventListener("scroll",m,x),()=>{M.removeEventListener("scroll",g,x),C.removeEventListener("scroll",m,x)}});const v=t.position==="vertical"?EGn:RGn,y=b.useMemo(()=>({[u]:`${h}px`}),[u,h]);return f.jsx(v,{ref:Pi(n,s),className:l.root,tabIndex:-1,"aria-hidden":"true",onFocus:M=>{M.target.blur()},children:f.jsx("div",{className:l.content,style:y})})}),PGn=e=>{const{classes:t,position:n}=e,r={root:["scrollShadow",`scrollShadow--${n}`]};return Yt(r,lo,t)},DGn=Vo("div",{name:"MuiDataGrid",slot:"ScrollShadow",overridesResolver:(e,t)=>[t.root,t[e.position]]})(({theme:e})=>({position:"absolute",inset:0,pointerEvents:"none",transition:_n.transition(["box-shadow"],{duration:_n.transitions.duration.short}),"--length":e.palette.mode==="dark"?"8px":"6px","--length-inverse":"calc(var(--length) * -1)","--opacity":e.palette.mode==="dark"?"0.7":"0.18","--blur":"var(--length)","--spread":"calc(var(--length) * -1)","--color":"0, 0, 0","--color-start":"rgba(var(--color), calc(var(--hasScrollStart) * var(--opacity)))","--color-end":"rgba(var(--color), calc(var(--hasScrollEnd) * var(--opacity)))",variants:[{props:{position:"vertical"},style:{top:"var(--DataGrid-topContainerHeight)",bottom:"calc(var(--DataGrid-bottomContainerHeight) + var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))",boxShadow:"inset 0 var(--length) var(--blur) var(--spread) var(--color-start), inset 0 var(--length-inverse) var(--blur) var(--spread) var(--color-end)"}},{props:{position:"horizontal"},style:{left:"var(--DataGrid-leftPinnedWidth)",right:"calc(var(--DataGrid-rightPinnedWidth) + var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",boxShadow:"inset var(--length) 0 var(--blur) var(--spread) var(--color-start), inset var(--length-inverse) 0 var(--blur) var(--spread) var(--color-end)"}}]}));function Z_e(e){const{position:t}=e,r={classes:kn().classes,position:t},i=PGn(r),o=b.useRef(null),a=Sp(),s=Qt(a,T1t),l=Qt(a,E1t),c=Qt(a,jD),u=Qt(a,ewe),d=t==="vertical"?l&&c?.bottom?.length>0:s&&u?.right?.length!==void 0&&u?.right?.length>0,p=ts(),h=b.useCallback(v=>{if(!o.current)return;const y=Math.abs(Math.round(v)),M=Ys(a),C=Math.round(M.contentSize[t==="vertical"?"height":"width"]-M.viewportInnerSize[t==="vertical"?"height":"width"]),x=t==="vertical"?c?.top?.length>0:u?.left?.length!==void 0&&u?.left?.length>0,w=t==="vertical"?c?.bottom?.length>0:u?.right?.length!==void 0&&u?.right?.length>0,S=p?y<C:y>0,A=p?y>0:y<C;o.current.style.setProperty("--hasScrollStart",x&&S?"1":"0"),o.current.style.setProperty("--hasScrollEnd",w&&A?"1":"0")},[c,u,p,t,a]),g=v=>{h(v[t==="vertical"?"top":"left"])},m=()=>{t==="horizontal"&&h(a.current.virtualScrollerRef?.current?.scrollLeft||0)};return Xn(a,"scrollPositionChange",g),Xn(a,"columnResizeStop",m),b.useEffect(()=>{h((t==="horizontal"?a.current.virtualScrollerRef?.current?.scrollLeft:a.current.virtualScrollerRef?.current?.scrollTop)??0)},[h,a,t]),f.jsx(DGn,{className:i.root,ownerState:r,ref:o,style:{"--hasScrollStart":0,"--hasScrollEnd":d?"1":"0"}})}const kGn=Vo("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"&&e!=="right"})(({overlayType:e,loadingOverlayVariant:t,right:n})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${n}px`,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),LGn=Vo("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"})({}),_Gn=e=>{const{classes:t}=e;return Yt({root:["overlayWrapper"],inner:["overlayWrapperInner"]},lo,t)};function NGn(e){const t=bi(),n=kn(),r=Qt(t,Ys);let i=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);i===0&&(i=_1t);const o=_Gn(Y({},e,{classes:n.classes}));return f.jsx(kGn,Y({className:o.root},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:f.jsx(LGn,Y({className:o.inner,style:{height:i,width:r.viewportOuterSize.width}},e))}))}const FGn=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:i,overlayType:o}=e;return Yt({root:["main",r&&"main--hasPinnedRight",(i==="skeleton"||o==="noColumnsOverlay")&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},lo,t)},WGn=Vo("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),qGn=e=>e.current.state.dimensions.rightPinnedWidth>0;function BGn(e){const t=Sp(),n=kn(),r=Qt(t,E1t),i=Qt(t,T1t),o=Qt(t,qGn),a=Qt(t,cjn),{overlayType:s,loadingOverlayVariant:l}=kpt(t,n),c=n.slots?.[s],u={classes:n.classes,hasScrollX:i,hasPinnedRight:o,overlayType:s,loadingOverlayVariant:l},d=FGn(u),p=t.current.virtualizer.api.useVirtualization().getters,{getContainerProps:h,getScrollerProps:g,getContentProps:m,getScrollbarVerticalProps:v,getScrollbarHorizontalProps:y,getRows:M,getScrollAreaProps:C}=p,x=M(void 0,Qc(t));return f.jsxs(K8n,Y({className:d.root},h(),{ownerState:u,children:[f.jsx(I8,Y({scrollDirection:"left"},C())),f.jsx(I8,Y({scrollDirection:"right"},C())),f.jsx(I8,Y({scrollDirection:"up"},C())),f.jsx(I8,Y({scrollDirection:"down"},C())),f.jsxs(WGn,Y({className:d.scroller},g(),{ownerState:u,children:[f.jsxs(J8n,{children:[!n.listView&&f.jsx(U8n,{}),f.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:p})]}),s&&f.jsx(NGn,{overlayType:s,loadingOverlayVariant:l,children:f.jsx(c,Y({},n.slotProps?.[s]))}),f.jsx(nVn,Y({},m(),{children:f.jsxs(pVn,{role:"rowgroup",children:[x,f.jsx(n.slots.detailPanels,{virtualScroller:p})]})})),a&&f.jsx(lVn,{rowsLength:x.length}),f.jsx(n.slots.bottomContainer,{children:f.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:p})})]})),i&&f.jsxs(b.Fragment,{children:[n.pinnedColumnsSectionSeparator?.endsWith("shadow")&&f.jsx(Z_e,{position:"horizontal"}),f.jsx(Q_e,Y({position:"horizontal"},y()))]}),r&&f.jsxs(b.Fragment,{children:[n.pinnedRowsSectionSeparator?.endsWith("shadow")&&f.jsx(Z_e,{position:"vertical"}),f.jsx(Q_e,Y({position:"vertical"},v()))]}),i&&r&&f.jsx(IGn,{"aria-hidden":"true"}),e.children]}))}function jGn(){const e=kn();return e.hideFooter?null:f.jsx(e.slots.footer,Y({},e.slotProps?.footer))}let Ooe;function mwe(){return Ooe===void 0&&document.createElement("div").focus({get preventScroll(){return Ooe=!0,!1}}),Ooe}function HGn({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=Y({},e);return Object.keys(n).forEach(i=>{const o=i;n[o]!==void 0&&(r[o]=n[o])}),r}const VGn=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},GGn=e=>e===apt||VGn(e)!==null,Vpt=(e,t)=>{if(e)if(t){if(e===fo.LEFT)return"right";if(e===fo.RIGHT)return"left"}else{if(e===fo.LEFT)return"left";if(e===fo.RIGHT)return"right"}};function LZ(e,t,n,r){const i=Vpt(n,t);return!i||r===void 0||(e[i]=r),e}const $Gn=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],UGn=["changeReason","unstable_updateValueOnRender"];fo.LEFT+"",Nv.LEFT,fo.RIGHT+"",Nv.RIGHT,fo.NONE+"",fo.VIRTUAL+"";const XGn=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:i,isEditable:o,isSelected:a,isSelectionMode:s,classes:l}=e,c={root:["cell",`cell--text${jt(t)}`,a&&"selected",o&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",i===fo.LEFT&&"cell--pinnedLeft",i===fo.RIGHT&&"cell--pinnedRight",s&&!o&&"cell--selectionMode"]};return Yt(c,lo,l)},YGn=qr(function(t,n){const{column:r,row:i,rowId:o,rowNode:a,align:s,colIndex:l,width:c,className:u,style:d,colSpan:p,disableDragEvents:h,isNotVisible:g,pinnedOffset:m,pinnedPosition:v,showRightBorder:y,showLeftBorder:M,onClick:C,onDoubleClick:x,onMouseDown:w,onMouseUp:S,onMouseOver:A,onKeyDown:z,onKeyUp:O,onDragEnter:T,onDragOver:I}=t,P=Lt(t,$Gn),N=Sp(),F=kn(),L=ts(),W=r.field,H=Qt(N,fVn,{rowId:o,field:W}),G=AZ().hooks.useCellAggregationResult(o,W),q=H?va.Edit:va.View,{value:$,formattedValue:U}=G||{},X=N.current.getCellParamsForRow(o,W,i,{colDef:r,cellMode:q,rowNode:a,tabIndex:Qt(N,()=>{const Ve=uwe(N);return Ve&&Ve.field===W&&Ve.id===o?0:-1}),hasFocus:Qt(N,()=>{const Ve=G1(N);return Ve?.id===o&&Ve.field===W}),value:$,formattedValue:U});X.api=N.current,X.isEditable=Qt(N,()=>N.current.isCellEditable(X));const Q=Qt(N,()=>N.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:W})),re=N.current.virtualizer.store,ee=w_e(re,SP.selectors.hiddenCells),se=w_e(re,SP.selectors.spannedCells),{hasFocus:pe,isEditable:te=!1,value:ce}=X,oe=r.type==="actions"&&"getActions"in r&&typeof r.getActions=="function"&&r.getActions(N.current.getRowParams(o)).some(Ve=>!Ve.props.disabled),ae=(q==="view"||!te)&&!oe?X.tabIndex:-1,{classes:ne,getCellClassName:le}=F,be=[Qt(N,()=>N.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:W}).filter(Boolean).join(" "))];r.cellClassName&&be.push(typeof r.cellClassName=="function"?r.cellClassName(X):r.cellClassName),r.display==="flex"&&be.push(Te["cell--flex"]),le&&be.push(le(X));const me=X.formattedValue??ce,Me=b.useRef(null),Oe=Pi(n,Me),de=b.useRef(null),ie=F.cellSelection??!1,ue={align:s,showLeftBorder:M,showRightBorder:y,isEditable:te,classes:F.classes,pinnedPosition:v,isSelected:Q,isSelectionMode:ie},Ae=XGn(ue),Ce=b.useCallback(Ve=>Ke=>{const et=N.current.getCellParams(o,W||"");N.current.publishEvent(Ve,et,Ke),S&&S(Ke)},[N,W,S,o]),Ee=b.useCallback(Ve=>Ke=>{const et=N.current.getCellParams(o,W||"");N.current.publishEvent(Ve,et,Ke),w&&w(Ke)},[N,W,w,o]),Ge=b.useCallback((Ve,Ke)=>et=>{if(!N.current.getRow(o))return;const it=N.current.getCellParams(o,W||"");N.current.publishEvent(Ve,it,et),Ke&&Ke(et)},[N,W,o]),_e=ee[o]?.[l]??!1,Ie=se[o]?.[l]??1,Le=b.useMemo(()=>{if(g)return{padding:0,opacity:0,width:0,height:0,border:0};const Ve=LZ(Y({"--width":`${c}px`},d),L,v,m),Ke=v===fo.LEFT,et=v===fo.RIGHT;return Ie>1&&(Ve.height=`calc(var(--height) * ${Ie})`,Ve.zIndex=10,(Ke||et)&&(Ve.zIndex=40)),Ve},[c,g,d,m,v,L,Ie]);if(b.useEffect(()=>{if(!pe||q===va.Edit)return;const Ve=Is(N.current.rootElementRef.current);if(Me.current&&!Me.current.contains(Ve.activeElement)){const Ke=Me.current.querySelector('[tabindex="0"]'),et=de.current||Ke||Me.current;if(mwe())et.focus({preventScroll:!0});else{const it=N.current.getScrollPosition();et.focus(),N.current.scroll(it)}}},[pe,q,N]),_e)return f.jsx("div",{"data-colindex":l,role:"presentation",style:Y({width:"var(--width)"},Le)});let we=P.onFocus,ve,De;if(H===null&&r.renderCell&&(ve=r.renderCell(X)),H!==null&&r.renderEditCell){const Ve=N.current.getRowWithUpdatedValues(o,r.field),Ke=Lt(H,UGn),et=r.valueFormatter?r.valueFormatter(H.value,Ve,r,N):X.formattedValue,it=Y({},X,{row:Ve,formattedValue:et},Ke);ve=r.renderEditCell(it),be.push(Te["cell--editing"]),be.push(ne?.["cell--editing"])}if(ve===void 0){const Ve=me?.toString();ve=Ve,De=Ve}b.isValidElement(ve)&&oe&&(ve=b.cloneElement(ve,{focusElementRef:de}));const ze=h?null:{onDragEnter:Ge("cellDragEnter",T),onDragOver:Ge("cellDragOver",I)};return f.jsx("div",Y({className:Lo(Ae.root,be,u),role:"gridcell","data-field":W,"data-colindex":l,"aria-colindex":l+1,"aria-colspan":p,"aria-rowspan":Ie,style:Le,title:De,tabIndex:ae,onClick:Ge("cellClick",C),onDoubleClick:Ge("cellDoubleClick",x),onMouseOver:Ge("cellMouseOver",A),onMouseDown:Ee("cellMouseDown"),onMouseUp:Ce("cellMouseUp"),onKeyDown:Ge("cellKeyDown",z),onKeyUp:Ge("cellKeyUp",O)},ze,P,{onFocus:we,ref:Oe,children:ve}))}),KGn=MM(YGn),QGn=["field","type","align","width","height","empty","style","className"],J_e="1.3em",ZGn="1.2em",e5e=[40,80],JGn={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},e7n=e=>{const{align:t,classes:n,empty:r}=e,i={root:["cell","cellSkeleton",`cell--text${t?jt(t):"Left"}`,r&&"cellEmpty"]};return Yt(i,lo,n)},t7n=Yjn(12345);function n7n(e){const{field:t,type:n,align:r,width:i,height:o,empty:a=!1,style:s,className:l}=e,c=Lt(e,QGn),u=kn(),d={classes:u.classes,align:r,empty:a},p=e7n(d),h=b.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:J_e,height:J_e};const[m,v]=n?JGn[n]??e5e:e5e;return{variant:"text",width:`${Math.round(t7n(m,v))}%`,height:ZGn}},[n]);return f.jsx("div",Y({"data-field":t,className:Lo(p.root,l),style:Y({height:o,maxWidth:i,minWidth:i},s)},c,{children:!a&&f.jsx(u.slots.baseSkeleton,Y({},h))}))}const r7n=MM(n7n),i7n=10,D8=-5,PE=1,t5e={width:3,rx:1.5,x:10.5},o7n="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",a7n=e=>e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||e.current.state.dimensions.scrollbarSize===0),s7n=rt("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Te.autoHeight}`]:t.autoHeight},{[`&.${Te.autosizing}`]:t.autosizing},{[`&.${Te["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${Te["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${Te["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${Te["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${Te["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${Te.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${Te.actionsCell}`]:t.actionsCell},{[`& .${Te.booleanCell}`]:t.booleanCell},{[`& .${Te.cell}`]:t.cell},{[`& .${Te["cell--editable"]}`]:t["cell--editable"]},{[`& .${Te["cell--editing"]}`]:t["cell--editing"]},{[`& .${Te["cell--flex"]}`]:t["cell--flex"]},{[`& .${Te["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${Te["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${Te["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${Te["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${Te["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${Te["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${Te["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${Te["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${Te["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${Te["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${Te["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${Te["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${Te.cellCheckbox}`]:t.cellCheckbox},{[`& .${Te.cellEmpty}`]:t.cellEmpty},{[`& .${Te.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${Te.cellSkeleton}`]:t.cellSkeleton},{[`& .${Te.checkboxInput}`]:t.checkboxInput},{[`& .${Te.columnHeader}`]:t.columnHeader},{[`& .${Te["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${Te["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${Te["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${Te["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${Te["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${Te["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${Te["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${Te["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${Te["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${Te["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${Te["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${Te["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${Te["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${Te["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${Te["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${Te["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${Te["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${Te.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${Te.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${Te.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${Te.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${Te.columnSeparator}`]:t.columnSeparator},{[`& .${Te["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${Te["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${Te["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${Te["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${Te["container--bottom"]}`]:t["container--bottom"]},{[`& .${Te["container--top"]}`]:t["container--top"]},{[`& .${Te.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${Te["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${Te.editBooleanCell}`]:t.editBooleanCell},{[`& .${Te.filterIcon}`]:t.filterIcon},{[`& .${Te["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${Te["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${Te["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${Te.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${Te.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${Te.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${Te.headerFilterRow}`]:t.headerFilterRow},{[`& .${Te.iconSeparator}`]:t.iconSeparator},{[`& .${Te.menuIcon}`]:t.menuIcon},{[`& .${Te.menuIconButton}`]:t.menuIconButton},{[`& .${Te.menuList}`]:t.menuList},{[`& .${Te.menuOpen}`]:t.menuOpen},{[`& .${Te.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${Te.pinnedRows}`]:t.pinnedRows},{[`& .${Te["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${Te["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${Te.row}`]:t.row},{[`& .${Te["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${Te["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${Te["row--dragging"]}`]:t["row--dragging"]},{[`& .${Te["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${Te["row--editable"]}`]:t["row--editable"]},{[`& .${Te["row--editing"]}`]:t["row--editing"]},{[`& .${Te["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${Te["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${Te.rowReorderCell}`]:t.rowReorderCell},{[`& .${Te["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${Te.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${Te.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${Te.rowSkeleton}`]:t.rowSkeleton},{[`& .${Te.scrollbar}`]:t.scrollbar},{[`& .${Te["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${Te["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${Te.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${Te["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${Te.sortIcon}`]:t.sortIcon},{[`& .${Te.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${Te.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${Te.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${Te.withBorderColor}`]:t.withBorderColor},{[`& .${Te["row--dropAbove"]}`]:t["row--dropAbove"]},{[`& .${Te["row--dropBelow"]}`]:t["row--dropBelow"]},{[`& .${Te["row--beingDragged"]}`]:t["row--beingDragged"]}]})(()=>{const e=Sp(),t=Qt(e,a7n),n=_n.colors.background.base,r=_n.header.background.base,i=_n.cell.background.pinned,o=l7n(_n.colors.interactive.hover),a=_n.colors.interactive.hoverOpacity,s=_n.colors.interactive.selected,l=_n.colors.interactive.selectedOpacity,c=s,u=`calc(${l} + ${a})`,d=aC(n,o,a),p=aC(n,s,l),h=aC(n,c,u),g=aC(i,o,a),m=aC(i,s,l),v=aC(i,c,u),y=A=>({[`& .${Te["cell--pinnedLeft"]}, & .${Te["cell--pinnedRight"]}`]:{backgroundColor:A,"&.Mui-selected":{backgroundColor:aC(A,p,l),"&:hover":{backgroundColor:aC(A,h,u)}}}}),M=y(g),C=y(m),x=y(v),w={backgroundColor:p,"&:hover":{backgroundColor:h,"@media (hover: none)":{backgroundColor:p}}};return{"--unstable_DataGrid-radius":_n.radius.base,"--unstable_DataGrid-headWeight":_n.typography.fontWeight.medium,"--DataGrid-rowBorderColor":_n.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:_n.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:_n.colors.background.base,color:_n.colors.foreground.base,font:_n.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${Te.main} > *:first-child${o7n}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${Te.autoHeight}`]:{height:"auto"},[`&.${Te.autosizing}`]:{[`& .${Te.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${Te.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${Te.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${Te.groupingCriteriaCell}`]:{width:"unset"},[`& .${Te.treeDataGroupingCell}`]:{width:"unset"}},[`&.${Te.withSidePanel}`]:{flexDirection:"row"},[`& .${Te.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${Te.columnHeader}, & .${Te.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${Te.columnHeader}:focus-within, & .${Te.cell}:focus-within`]:{outline:`solid ${Gpt(_n.colors.interactive.focus,.5)} ${PE}px`,outlineOffset:PE*-1},[`& .${Te.columnHeader}:focus, & .${Te.cell}:focus`]:{outline:`solid ${_n.colors.interactive.focus} ${PE}px`,outlineOffset:PE*-1},[`& .${Te.columnHeader}:focus,
      & .${Te["columnHeader--withLeftBorder"]},
      & .${Te["columnHeader--withRightBorder"]},
      & .${Te["columnHeader--siblingFocused"]}
      `]:{[`& .${Te.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${Te["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${Te["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${Te["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${Te["root--noToolbar"]} [aria-rowindex="1"] .${Te["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${Te.columnHeaderCheckbox}, & .${Te.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Te.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:r},[`& .${Te["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${Te["virtualScroller--hasScrollX"]} .${Te["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${Te["pivotPanelField--sorted"]} .${Te.iconButtonContainer},
      & .${Te["columnHeader--sorted"]} .${Te.iconButtonContainer},
      & .${Te["columnHeader--filtered"]} .${Te.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Te.pivotPanelField}:not(.${Te["pivotPanelField--sorted"]}) .${Te.sortButton},
      & .${Te.columnHeader}:not(.${Te["columnHeader--sorted"]}) .${Te.sortButton}`]:{opacity:0,transition:_n.transition(["opacity"],{duration:_n.transitions.duration.short})},[`& .${Te.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:_n.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${Te.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Te["columnHeader--filledGroup"]} .${Te.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${Te.sortIcon}, & .${Te.filterIcon}`]:{fontSize:"inherit"},[`& .${Te["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Te["columnHeader--alignCenter"]} .${Te.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Te["columnHeader--alignRight"]} .${Te.columnHeaderDraggableContainer}, & .${Te["columnHeader--alignRight"]} .${Te.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Te["columnHeader--alignCenter"]} .${Te.menuIcon}`]:{marginLeft:"auto"},[`& .${Te["columnHeader--alignRight"]} .${Te.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${Te["columnHeader--moving"]}`]:{backgroundColor:d},[`& .${Te["columnHeader--pinnedLeft"]}, & .${Te["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:_n.header.background.base},[`& .${Te.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:i7n,color:_n.colors.border.base},[`& .${Te.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:r},"@media (hover: hover)":{[`& .${Te.columnHeader}:hover`]:{[`& .${Te.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${Te.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${Te.columnHeader}:not(.${Te["columnHeader--sorted"]}):hover .${Te.sortButton},
        & .${Te.pivotPanelField}:not(.${Te["pivotPanelField--sorted"]}):hover .${Te.sortButton},
        & .${Te.pivotPanelField}:not(.${Te["pivotPanelField--sorted"]}) .${Te.sortButton}:focus-visible`]:{opacity:.5}},"@media (hover: none)":{[`& .${Te.columnHeader} .${Te.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${Te.columnHeader}:focus,
        & .${Te["columnHeader--siblingFocused"]}`]:{[`.${Te["columnSeparator--resizable"]}`]:{color:_n.colors.foreground.accent}},[`& .${Te.pivotPanelField}:not(.${Te["pivotPanelField--sorted"]}) .${Te.sortButton}`]:{opacity:.5}},[`& .${Te["columnHeader--withLeftBorder"]} .${Te["columnSeparator--sideLeft"]}:not(.${Te["columnSeparator--resizable"]}), & .${Te["columnHeader--withRightBorder"]} .${Te["columnSeparator--sideRight"]}:not(.${Te["columnSeparator--resizable"]})`]:{display:"none"},[`& .${Te["columnSeparator--sideLeft"]}`]:{left:D8},[`& .${Te["columnSeparator--sideRight"]}`]:{right:D8},[`& .${Te["columnHeader--withRightBorder"]} .${Te["columnSeparator--sideLeft"]}`]:{left:D8-.5},[`& .${Te["columnHeader--withRightBorder"]} .${Te["columnSeparator--sideRight"]}`]:{right:D8-.5},[`& .${Te["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${Te["columnSeparator--resizing"]}`]:{color:_n.colors.foreground.accent},"@media (hover: none)":{[`& .${Te.iconSeparator} rect`]:t5e},"@media (hover: hover)":{"&:hover":{color:_n.colors.foreground.accent,[`& .${Te.iconSeparator} rect`]:t5e}},"& svg":{pointerEvents:"none"}},[`& .${Te.iconSeparator}`]:{color:"inherit",transition:_n.transition(["color","width"],{duration:_n.transitions.duration.short})},[`& .${Te.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${Te.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Te.headerFilterRow}`]:{[`& .${Te.columnHeader}, & .${Te.scrollbarFiller}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${Te["row--borderBottom"]} .${Te.columnHeader},
      & .${Te["row--borderBottom"]} .${Te.filler},
      & .${Te["row--borderBottom"]} .${Te.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Te["row--borderBottom"]} .${Te.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${Te.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${Te["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:d,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Te.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":w},[`& .${Te.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":w},[`& .${Te["virtualScrollerContent--overflowed"]} .${Te["row--lastVisible"]} .${Te.cell}`]:{borderTopColor:"transparent"},[`& .${Te.pinnedRows} .${Te.row}, .${Te.aggregationRowOverlayWrapper} .${Te.row}`]:{backgroundColor:i,"&:hover":{backgroundColor:g}},[`& .${Te["pinnedRows--top"]} :first-of-type`]:{[`& .${Te.cell}, .${Te.scrollbarFiller}`]:{borderTop:"none"}},[`&.${Te["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${Te["row--dynamicHeight"]} > .${Te.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${Te.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${Te.cell}.${Te["cell--selectionMode"]}`]:{cursor:"default"},[`& .${Te.cell}.${Te["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:_n.shadows.base,backgroundColor:_n.colors.background.overlay,"&:focus-within":{outline:`${PE}px solid ${_n.colors.interactive.focus}`,outlineOffset:PE*-1}},[`& .${Te["cell--editing"]}`]:{"& .MuiInputBase-root":{height:"100%"}},[`& .${Te["row--editing"]}`]:{boxShadow:_n.shadows.base},[`& .${Te["row--editing"]} .${Te.cell}`]:{boxShadow:"none",backgroundColor:_n.colors.background.overlay},[`& .${Te.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Te.booleanCell}[data-value="true"]`]:{color:_n.colors.foreground.muted},[`& .${Te.booleanCell}[data-value="false"]`]:{color:_n.colors.foreground.disabled},[`& .${Te.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:_n.spacing(1)},[`& .${Te.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:_n.colors.interactive.disabledOpacity},[`& .${Te["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${Te.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${Te.withBorderColor}`]:{borderColor:_n.colors.border.base},[`& .${Te["cell--withLeftBorder"]}, & .${Te["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${Te["cell--withRightBorder"]}, & .${Te["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${Te["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${Te["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${Te["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${Te["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${Te["cell--pinnedLeft"]}, & .${Te["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:_n.cell.background.pinned,"&.Mui-selected":{backgroundColor:m}},[`& .${Te.row}`]:{"&:hover":M,"&.Mui-selected":C,"&.Mui-selected:hover":x},[`& .${Te.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${Te.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${Te.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Te.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Te["columnHeader--dragging"]}`]:{background:_n.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:_n.colors.interactive.disabledOpacity},[`& .${Te["row--dragging"]}`]:{background:_n.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",border:"1px solid var(--DataGrid-rowBorderColor)",color:_n.colors.foreground.base,transform:"translateZ(0)",[`& .${Te.rowReorderCellPlaceholder}`]:{padding:"0 6px",display:"flex"}},[`& .${Te.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Te.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:_n.spacing(2)},[`& .${Te.treeDataGroupingCellLoadingContainer}, .${Te.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${Te.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Te.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:_n.spacing(2)},[`& .${Te.columnHeaders} .${Te.scrollbarFiller}`]:{backgroundColor:r},[`.${Te.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",backgroundColor:r,[`&.${Te["scrollbarFiller--pinnedRight"]}`]:{position:"sticky",zIndex:40,right:0}},[`& .${Te.filler}`]:{flex:"1 0 auto"},[`& .${Te["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${Te.columnHeaders} .${Te.filler}`]:{backgroundColor:r},[`& .${Te["main--hiddenContent"]}`]:{[`& .${Te.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${Te.pinnedRows}`]:{display:"none"}},[`& .${Te["row--dropAbove"]}`]:{position:"relative","&::before":{pointerEvents:"none",content:'""',position:"absolute",top:0,left:0,width:"100%",height:"2px",backgroundColor:_n.colors.interactive.selected}},[`& .${Te["row--dropBelow"]}`]:{position:"relative","&::after":{zIndex:100,pointerEvents:"none",content:'""',position:"absolute",bottom:"-2px",left:0,width:"100%",height:"2px",backgroundColor:_n.colors.interactive.selected},[`&.${Te["row--lastVisible"]}`]:{"&::after":{bottom:"calc(var(--DataGrid-hasScrollY) * 0px + (1 - var(--DataGrid-hasScrollY)) * -2px)"}}},[`& .${Te["row--beingDragged"]}`]:{color:_n.colors.foreground.disabled,"&:hover":{backgroundColor:"transparent"}}}});function Gpt(e,t){return`rgba(from ${e} r g b / ${t})`}function l7n(e){return Gpt(e,1)}function aC(e,t,n){return`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`}const c7n=()=>()=>{},u7n=()=>!1,d7n=()=>!0,p7n=()=>NMe.useSyncExternalStore(c7n,u7n,d7n),$pt=b.createContext(void 0);function vwe(){const e=b.useContext($pt);if(e===void 0)throw new Error("MUI X: Missing context.");return e}function h7n({children:e}){const t=b.useRef(null),n=b.useRef(null),r=b.useRef(null),i=b.useMemo(()=>({columnsPanelTriggerRef:t,filterPanelTriggerRef:n,aiAssistantPanelTriggerRef:r}),[]);return f.jsx($pt.Provider,{value:i,children:e})}function f7n(){const e=bi(),t=Qt(e,Ef),n=kn(),r=Qt(e,Hz),{columnsPanelTriggerRef:i,filterPanelTriggerRef:o,aiAssistantPanelTriggerRef:a}=vwe(),s=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??o1.filters);let l=null;switch(r.openedPanelValue){case o1.filters:l=o.current;break;case o1.columns:l=i.current;break;case o1.aiAssistant:l=a.current;break}return f.jsx(n.slots.panel,Y({id:r.panelId,open:t.length>0&&r.open,"aria-labelledby":r.labelId,target:l,onClose:()=>e.current.hidePreferences()},n.slotProps?.panel,{children:s}))}function g7n(){const e=kn();return f.jsxs(b.Fragment,{children:[f.jsx(f7n,{}),e.showToolbar&&f.jsx(e.slots.toolbar,Y({},e.slotProps?.toolbar))]})}const m7n=["className","children","sidePanel"],v7n=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:i}=e,o={root:["root",n&&"autoHeight",`root--density${jt(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",i&&"withVerticalBorder"]};return Yt(o,lo,r)},b7n=qr(function(t,n){const r=kn(),{className:i,children:o,sidePanel:a}=t,s=Lt(t,m7n),l=Sp(),c=Qt(l,_R),u=l.current.rootElementRef,d=b.useCallback(y=>{y!==null&&l.current.publishEvent("rootMount",y)},[l]),p=Pi(u,n,d),h=r,g=v7n(h,c),m=pHn();return p7n()?null:f.jsxs(s7n,Y({className:Lo(g.root,i,m.className,a&&Te.withSidePanel),ownerState:h},s,{ref:p,children:[f.jsxs("div",{className:Te.mainContent,role:"presentation",children:[f.jsx(g7n,{}),f.jsx(BGn,{children:o}),f.jsx(jGn,{})]}),a,m.tag]}))}),y7n=MM(b7n),M7n=["className"],C7n=e=>{const{classes:t}=e;return Yt({root:["footerContainer","withBorderColor"]},lo,t)},x7n=Vo("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),w7n=qr(function(t,n){const{className:r}=t,i=Lt(t,M7n),o=kn(),a=C7n(o);return f.jsx(x7n,Y({className:Lo(a.root,r),ownerState:o},i,{ref:n}))}),S7n=["className"],A7n=e=>{const{classes:t}=e;return Yt({root:["overlay"]},lo,t)},O7n=Vo("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:_n.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:_n.colors.background.backdrop}),_Z=qr(function(t,n){const{className:r}=t,i=Lt(t,S7n),o=kn(),a=A7n(o);return f.jsx(O7n,Y({className:Lo(a.root,r),ownerState:o},i,{ref:n}))});function Jb(e,t,n,r={}){return typeof t=="function"?t(n,r):t?(t.props.className&&(n.className=z7n(t.props.className,n.className)),(t.props.style||n.style)&&(n.style=Y({},n.style,t.props.style)),b.cloneElement(t,n)):b.createElement(e,n)}function z7n(e,t){return!e||!t?e||t:`${e} ${t}`}const Upt=b.createContext(void 0);function T7n(){const e=b.useContext(Upt);if(e===void 0)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}function E7n(e,t){if(!e.ref.current||!t.ref.current)return 0;const n=e.ref.current.compareDocumentPosition(t.ref.current);return n?n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0:0}const R7n=["render","className"],I7n=e=>{const{classes:t}=e;return Yt({root:["toolbar"]},lo,t)},P7n=Vo("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:0,display:"flex",alignItems:"center",justifyContent:"end",gap:_n.spacing(.25),padding:_n.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${_n.colors.border.base}`}),D7n=qr(function(t,n){const{render:r,className:i}=t,o=Lt(t,R7n),a=kn(),s=I7n(a),[l,c]=b.useState(null),[u,d]=b.useState([]),p=b.useCallback(()=>u.sort(E7n),[u]),h=b.useCallback((w,S,A=!0)=>{let z=w;const O=p(),T=O.length;for(let I=0;I<T;I+=1){if(z+=S,z>=T){if(!A)return-1;z=0}else if(z<0){if(!A)return-1;z=T-1}if(!O[z].ref.current?.disabled&&O[z].ref.current?.ariaDisabled!=="true")return z}return-1},[p]),g=b.useCallback((w,S)=>{d(A=>[...A,{id:w,ref:S}])},[]),m=b.useCallback(w=>{d(S=>S.filter(A=>A.id!==w))},[]),v=b.useCallback(w=>{if(!l)return;const S=p(),A=S.findIndex(O=>O.id===l);let z=-1;if(w.key==="ArrowRight"?(w.preventDefault(),z=h(A,1)):w.key==="ArrowLeft"?(w.preventDefault(),z=h(A,-1)):w.key==="Home"?(w.preventDefault(),z=h(-1,1,!1)):w.key==="End"&&(w.preventDefault(),z=h(S.length,-1,!1)),z>=0&&z<S.length){const O=S[z];c(O.id),O.ref.current?.focus()}},[p,l,h]),y=b.useCallback(w=>{l!==w&&c(w)},[l,c]),M=b.useCallback(w=>{const S=p(),A=S.findIndex(O=>O.id===w),z=h(A,1);if(z>=0&&z<S.length){const O=S[z];c(O.id),O.ref.current?.focus()}},[p,h]);b.useEffect(()=>{const w=p();if(w.length>0){if(!l){c(w[0].id);return}const S=w.findIndex(A=>A.id===l);if(w[S]){if(S===-1){const A=w[S];A&&(c(A.id),A.ref.current?.focus())}}else{const A=w[w.length-1];A&&(c(A.id),A.ref.current?.focus())}}},[p,h]);const C=b.useMemo(()=>({focusableItemId:l,registerItem:g,unregisterItem:m,onItemKeyDown:v,onItemFocus:y,onItemDisabled:M}),[l,g,m,v,y,M]),x=Jb(P7n,r,Y({role:"toolbar","aria-orientation":"horizontal","aria-label":a.label||void 0,className:Lo(s.root,i)},o,{ref:n}));return f.jsx(Upt.Provider,{value:C,children:x})}),k7n=["render","onKeyDown","onFocus","disabled","aria-disabled"],w7=qr(function(t,n){const{render:r,onKeyDown:i,onFocus:o,disabled:a,"aria-disabled":s}=t,l=Lt(t,k7n),c=Hi(),u=kn(),d=b.useRef(null),p=Pi(d,n),{focusableItemId:h,registerItem:g,unregisterItem:m,onItemKeyDown:v,onItemFocus:y,onItemDisabled:M}=T7n(),C=z=>{v(z),i?.(z)},x=z=>{y(c),o?.(z)};b.useEffect(()=>(g(c,d),()=>m(c)),[]);const w=b.useRef(a);b.useEffect(()=>{w.current!==a&&a===!0&&M(c,a),w.current=a},[a,c,M]);const S=b.useRef(s);b.useEffect(()=>{S.current!==s&&s===!0&&M(c,!0),S.current=s},[s,c,M]);const A=Jb(u.slots.baseIconButton,r,Y({},u.slotProps?.baseIconButton,{tabIndex:h===c?0:-1},l,{disabled:a,"aria-disabled":s,onKeyDown:C,onFocus:x,ref:p}));return f.jsx(b.Fragment,{children:A})}),L7n=e=>{const{classes:t,open:n}=e;return Yt({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},lo,t)},_7n=b.memo(e=>{const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:i,iconButtonRef:o}=e,a=bi(),s=kn(),l=Y({},e,{classes:s.classes}),c=L7n(l),u=b.useCallback(p=>{p.preventDefault(),p.stopPropagation(),a.current.toggleColumnMenu(t.field)},[a,t.field]),d=t.headerName??t.field;return f.jsx("div",{className:c.root,children:f.jsx(s.slots.baseTooltip,Y({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},s.slotProps?.baseTooltip,{children:f.jsx(s.slots.baseIconButton,Y({ref:o,tabIndex:-1,className:c.button,"aria-label":a.current.getLocaleText("columnMenuAriaLabel")(d),size:"small",onClick:u,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:i},s.slotProps?.baseIconButton,{children:f.jsx(s.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function N7n({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:i,open:o,target:a,onExited:s}){const l=bi(),c=l.current.getColumn(i),u=en(d=>{d&&(d.stopPropagation(),a?.contains(d.target))||l.current.hideColumnMenu()});return!a||!c?null:f.jsx(OZ,{position:`bottom-${c.align==="right"?"start":"end"}`,open:o,target:a,onClose:u,onExited:s,children:f.jsx(n,Y({colDef:c,hideMenu:u,open:o,id:e,labelledby:t},r))})}function F7n(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function q9(e,t){return e.closest(`.${t}`)}function xM(e){return e.replace(/["\\]/g,"\\$&")}function W7n(e,t){return e.querySelector(`[role="columnheader"][data-field="${xM(t)}"]`)}function Xpt(e){return`.${Te.row}[data-id="${xM(String(e))}"]`}function q7n(e,t){return e.querySelector(Xpt(t))}function B7n(e,{id:t,field:n}){const r=Xpt(t),i=`.${Te.cell}[data-field="${xM(n)}"]`,o=`${r} ${i}`;return e.querySelector(o)}function OB(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function j7n(e){return e.getAttribute("data-field")}function H7n(e,t){return e.querySelector(`[data-field="${xM(t)}"]`)}function V7n(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function G7n(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${xM(t)}-|"]`)??[])}function $7n(e,t){if(!q9(e,Te.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const i=Number(r)-1,o=[];return t.virtualScrollerRef?.current?(Qpt(t).forEach(a=>{const s=a.getAttribute("data-id");if(!s)return;let l=i;const c=t.unstable_getCellColSpanInfo(s,i);c&&c.spannedByColSpan&&(l=c.leftVisibleCellIndex);const u=a.querySelector(`[data-colindex="${l}"]`);u&&o.push(u)}),o):[]}function n5e(e,t){return e.rootElementRef.current.querySelector(`.${Te[t]}`)}const Ypt=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const i=[];return Qpt(e).forEach(o=>{o.getAttribute("data-id")&&o.querySelectorAll(`.${Te[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(s=>{const l=UD(s);l!==null&&r(l)&&i.push(s)})}),i};function U7n(e,t,n){const r=UD(t);return Ypt({api:e,colIndex:r,position:n?"right":"left",filterFn:i=>n?i<r:i>r})}function X7n(e,t,n){const r=UD(t);return Ypt({api:e,colIndex:r,position:n?"left":"right",filterFn:i=>n?i>r:i<r})}const Kpt=({api:e,colIndex:t,position:n,filterFn:r})=>{if(!e.columnHeadersContainerRef?.current)return[];if(t===null)return[];const i=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${Te[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(o=>{const a=UD(o);a!==null&&r(a,o)&&i.push(o)}),i};function Y7n(e,t,n){const r=UD(t);return Kpt({api:e,position:n?"right":"left",colIndex:r,filterFn:i=>n?i<r:i>r})}function K7n(e,t,n){const r=UD(t);return Kpt({api:e,position:n?"left":"right",colIndex:r,filterFn:(i,o)=>o.classList.contains(Te["columnHeader--last"])?!1:n?i>r:i<r})}function Q7n(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${xM(t)}"][role="columnheader"]`)}function Z7n(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${xM(t)}"][role="gridcell"]`))}function Qpt(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${Te.row}`)}function UD(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const J7n=["className","aria-label"],e$n=e=>{const{classes:t}=e;return Yt({root:["columnHeaderTitle"]},lo,t)},t$n=Vo("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),n$n=qr(function(t,n){const{className:r}=t,i=Lt(t,J7n),o=kn(),a=e$n(o);return f.jsx(t$n,Y({className:Lo(a.root,r),ownerState:o},i,{ref:n}))});function r$n(e){const{label:t,description:n}=e,r=kn(),i=b.useRef(null),[o,a]=b.useState(""),s=b.useCallback(()=>{if(!n&&i?.current){const l=F7n(i.current);a(l?t:"")}},[n,t]);return f.jsx(r.slots.baseTooltip,Y({title:n||o},r.slotProps?.baseTooltip,{children:f.jsx(n$n,{onMouseOver:s,ref:i,children:t})}))}const i$n=["resizable","resizing","height","side"];var bwe=(function(e){return e.Left="left",e.Right="right",e})(bwe||{});const o$n=e=>{const{resizable:t,resizing:n,classes:r,side:i}=e,o={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",i&&`columnSeparator--side${jt(i)}`],icon:["iconSeparator"]};return Yt(o,lo,r)};function a$n(e){const{height:t,side:n=bwe.Right}=e,r=Lt(e,i$n),i=kn(),o=Y({},e,{side:n,classes:i.classes}),a=o$n(o),s=b.useCallback(l=>{l.preventDefault(),l.stopPropagation()},[]);return f.jsx("div",Y({className:a.root,style:{minHeight:t}},r,{onClick:s,children:f.jsx(i.slots.columnResizeIcon,{className:a.icon})}))}const s$n=b.memo(a$n),l$n=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],Zpt=qr(function(t,n){const{classes:r,colIndex:i,height:o,isResizing:a,sortDirection:s,tabIndex:l,separatorSide:c,isDraggable:u,headerComponent:d,description:p,width:h,columnMenuIconButton:g=null,columnMenu:m=null,columnTitleIconButtons:v=null,headerClassName:y,label:M,resizable:C,draggableContainerProps:x,columnHeaderSeparatorProps:w,style:S}=t,A=Lt(t,l$n),z=kn(),O=b.useRef(null),T=Pi(O,n);let I="none";return s!=null&&(I=s==="asc"?"ascending":"descending"),f.jsxs("div",Y({className:Lo(r.root,y),style:Y({},S,{width:h}),role:"columnheader",tabIndex:l,"aria-colindex":i+1,"aria-sort":I},A,{ref:T,children:[f.jsxs("div",Y({className:r.draggableContainer,draggable:u,role:"presentation"},x,{children:[f.jsxs("div",{className:r.titleContainer,role:"presentation",children:[f.jsx("div",{className:r.titleContainerContent,children:d!==void 0?d:f.jsx(r$n,{label:M,description:p,columnWidth:h})}),v]}),g]})),f.jsx(s$n,Y({resizable:!z.disableColumnResize&&!!C,resizing:a,height:o,side:c},w)),m]}))}),c$n=e=>{const{disableColumnSorting:t}=kn(),{colDef:n,classes:r,isDragging:i,sortDirection:o,showRightBorder:a,showLeftBorder:s,filterItemsCounter:l,pinnedPosition:c,isSiblingFocused:u}=e,d=n.sortable&&!t,p=o!=null,h=l!=null&&l>0,g=n.type==="number",m={root:["columnHeader",n.headerAlign==="left"&&"columnHeader--alignLeft",n.headerAlign==="center"&&"columnHeader--alignCenter",n.headerAlign==="right"&&"columnHeader--alignRight",d&&"columnHeader--sortable",i&&"columnHeader--moving",p&&"columnHeader--sorted",h&&"columnHeader--filtered",g&&"columnHeader--numeric","withBorderColor",a&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder",c===fo.LEFT&&"columnHeader--pinnedLeft",c===fo.RIGHT&&"columnHeader--pinnedRight",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Yt(m,lo,r)};function u$n(e){const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:i,isResizing:o,isLast:a,sortDirection:s,sortIndex:l,filterItemsCounter:c,hasFocus:u,tabIndex:d,disableReorder:p,separatorSide:h,showLeftBorder:g,showRightBorder:m,pinnedPosition:v,pinnedOffset:y}=e,M=Sp(),C=kn(),x=ts(),w=b.useRef(null),S=Hi(),A=Hi(),z=b.useRef(null),[O,T]=b.useState(n),I=b.useMemo(()=>!C.disableColumnReorder&&!p&&!t.disableReorder,[C.disableColumnReorder,p,t.disableReorder]);let P;t.renderHeader&&(P=t.renderHeader(M.current.getColumnHeaderParams(t.field)));const N=Y({},e,{classes:C.classes,showRightBorder:m,showLeftBorder:g}),F=c$n(N),L=b.useCallback(pe=>te=>{OB(te)||M.current.publishEvent(pe,M.current.getColumnHeaderParams(t.field),te)},[M,t.field]),W=b.useMemo(()=>({onClick:L("columnHeaderClick"),onContextMenu:L("columnHeaderContextMenu"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")}),[L]),H=b.useMemo(()=>I?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEndCapture:L("columnHeaderDragEnd")}:{},[I,L]),j=b.useMemo(()=>({onMouseDown:L("columnSeparatorMouseDown"),onDoubleClick:L("columnSeparatorDoubleClick")}),[L]);b.useEffect(()=>{O||T(n)},[O,n]);const G=b.useCallback(()=>{T(!1)},[]),q=!C.disableColumnMenu&&!t.disableColumnMenu&&f.jsx(_7n,{colDef:t,columnMenuId:S,columnMenuButtonId:A,open:O,iconButtonRef:z}),$=f.jsx(N7n,{columnMenuId:S,columnMenuButtonId:A,field:t.field,open:n,target:z.current,ContentComponent:C.slots.columnMenu,contentComponentProps:C.slotProps?.columnMenu,onExited:G}),U=t.sortingOrder??C.sortingOrder,X=(t.sortable||s!=null)&&!t.hideSortIcons&&!C.disableColumnSorting,Q=f.jsxs(b.Fragment,{children:[!C.disableColumnFilter&&f.jsx(C.slots.columnHeaderFilterIconButton,Y({field:t.field,counter:c},C.slotProps?.columnHeaderFilterIconButton)),X&&f.jsx(C.slots.columnHeaderSortIcon,Y({field:t.field,direction:s,index:l,sortingOrder:U,disabled:!t.sortable},C.slotProps?.columnHeaderSortIcon))]});b.useLayoutEffect(()=>{const pe=M.current.state.columnMenu;if(u&&!pe.open){const ce=w.current.querySelector('[tabindex="0"]')||w.current;if(!ce)return;if(mwe())ce.focus({preventScroll:!0});else{const oe=M.current.getScrollPosition();ce.focus(),M.current.scroll(oe)}}},[M,u]);const re=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,ee=t.headerName??t.field,se=b.useMemo(()=>LZ(Y({},e.style),x,v,y),[v,y,e.style,x]);return f.jsx(Zpt,Y({ref:w,classes:F,columnMenuOpen:n,colIndex:r,height:i,isResizing:o,sortDirection:s,hasFocus:u,tabIndex:d,separatorSide:h,isDraggable:I,headerComponent:P,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:q,columnTitleIconButtons:Q,headerClassName:Lo(re,a&&Te["columnHeader--last"]),label:ee,resizable:!C.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:$,draggableContainerProps:H,columnHeaderSeparatorProps:j,style:se},W))}const d$n=MM(u$n),p$n=["className"],h$n=e=>{const{classes:t}=e;return Yt({root:["iconButtonContainer"]},lo,t)},f$n=Vo("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),Jpt=qr(function(t,n){const{className:r}=t,i=Lt(t,p$n),o=kn(),a=h$n(o);return f.jsx(f$n,Y({className:Lo(a.root,r),ownerState:o},i,{ref:n}))}),g$n=["direction","index","sortingOrder","disabled","className"],m$n=e=>{const{classes:t}=e;return Yt({root:["sortButton"],icon:["sortIcon"]},lo,t)},v$n=Vo(Zb,{name:"MuiDataGrid",slot:"SortButton"})({transition:_n.transition(["opacity"],{duration:_n.transitions.duration.short,easing:_n.transitions.easing.easeInOut})});function b$n(e,t,n,r){let i;const o={};return t==="asc"?i=e.columnSortedAscendingIcon:t==="desc"?i=e.columnSortedDescendingIcon:(i=e.columnUnsortedIcon,o.sortingOrder=r),i?f.jsx(i,Y({fontSize:"small",className:n},o)):null}function y$n(e){const{direction:t,index:n,sortingOrder:r,disabled:i,className:o}=e,a=Lt(e,g$n),s=bi(),l=kn(),c=Y({},e,{classes:l.classes}),u=m$n(c),d=b$n(l.slots,t,u.icon,r);if(!d)return null;const p=f.jsx(v$n,Y({as:l.slots.baseIconButton,ownerState:c,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),title:s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:i,className:Lo(u.root,o)},l.slotProps?.baseIconButton,a,{children:d}));return f.jsxs(b.Fragment,{children:[n!=null&&f.jsx(l.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:p}),n==null&&p]})}function M$n(e){return f.jsx(Jpt,{children:f.jsx(y$n,Y({},e,{tabIndex:-1}))})}const C$n=b.memo(M$n),x$n=e=>{const{classes:t}=e;return Yt({icon:["filterIcon"]},lo,t)};function w$n(e){return e.counter?f.jsx(S$n,Y({},e)):null}function S$n(e){const{counter:t,field:n,onClick:r}=e,i=bi(),o=kn(),a=Y({},e,{classes:o.classes}),s=x$n(a),l=Hi(),c=Qt(i,gVn,l),u=Hi(),d=b.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:g,openedPanelValue:m}=Hz(i);g&&m===o1.filters?i.current.hideFilterPanel():i.current.showFilterPanel(void 0,u,l),r&&r(i.current.getColumnHeaderParams(n),h)},[i,n,r,u,l]);if(!t)return null;const p=f.jsx(o.slots.baseIconButton,Y({id:l,onClick:d,"aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":c,"aria-controls":c?u:void 0},o.slotProps?.baseIconButton,{children:f.jsx(o.slots.columnFilteredIcon,{className:s.icon,fontSize:"small"})}));return f.jsx(o.slots.baseTooltip,Y({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},o.slotProps?.baseTooltip,{children:f.jsxs(Jpt,{children:[t>1&&f.jsx(o.slots.baseBadge,{badgeContent:t,color:"default",children:p}),t===1&&p]})}))}const A$n=["hideMenu","colDef","id","labelledby","className","children","open"],O$n=rt(Zb)(()=>({minWidth:248}));function r5e(e){e.currentTarget.contains(e.target)&&e.stopPropagation()}const z$n=qr(function(t,n){const{hideMenu:r,id:i,labelledby:o,className:a,children:s,open:l}=t,c=Lt(t,A$n),u=kn(),d=b.useCallback(p=>{p.key==="Tab"&&p.preventDefault(),npt(p.key)&&r(p)},[r]);return f.jsx(O$n,Y({as:u.slots.baseMenuList,id:i,className:Lo(Te.menuList,a),"aria-labelledby":o,onKeyDown:d,onWheel:r5e,onTouchMove:r5e,autoFocus:l},c,{ref:n,children:s}))}),T$n=["displayOrder"],E$n=e=>{const t=Sp(),n=kn(),{defaultSlots:r,defaultSlotProps:i,slots:o={},slotProps:a={},hideMenu:s,colDef:l,addDividers:c=!0}=e,u=b.useMemo(()=>Y({},r,o),[r,o]),d=b.useMemo(()=>{if(!a||Object.keys(a).length===0)return i;const g=Y({},a);return Object.entries(i).forEach(([m,v])=>{g[m]=Y({},v,a[m]||{})}),g},[i,a]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=b.useMemo(()=>{const g=Object.keys(r);return Object.keys(o).filter(m=>!g.includes(m))},[o,r]);return b.useMemo(()=>{const v=Array.from(new Set([...p,...h])).filter(y=>u[y]!=null).sort((y,M)=>{const C=d[y],x=d[M],w=Number.isFinite(C?.displayOrder)?C.displayOrder:100,S=Number.isFinite(x?.displayOrder)?x.displayOrder:100;return w-S});return v.reduce((y,M,C)=>{let x={colDef:l,onClick:s};const w=d[M];if(w){const S=Lt(w,T$n);x=Y({},x,S)}return c&&C!==v.length-1?[...y,[u[M],x],[n.slots.baseDivider,{}]]:[...y,[u[M],x]]},[])},[c,l,p,s,u,d,h,n.slots.baseDivider])};function R$n(e){const{colDef:t,onClick:n}=e,r=bi(),i=kn(),s=xl(r).filter(c=>c.disableColumnMenu!==!0).length===1,l=b.useCallback(c=>{s||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,s]);return i.disableColumnSelector||t.hideable===!1?null:f.jsx(i.slots.baseMenuItem,{onClick:l,disabled:s,iconStart:f.jsx(i.slots.columnMenuHideIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuHideColumn")})}function I$n(e){const{onClick:t}=e,n=bi(),r=kn(),i=b.useCallback(o=>{t(o),n.current.showPreferences(o1.columns)},[n,t]);return r.disableColumnSelector?null:f.jsx(r.slots.baseMenuItem,{onClick:i,iconStart:f.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuManageColumns")})}function P$n(e){return f.jsxs(b.Fragment,{children:[f.jsx(R$n,Y({},e)),f.jsx(I$n,Y({},e))]})}function D$n(e){const{colDef:t,onClick:n}=e,r=bi(),i=kn(),o=b.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return i.disableColumnFilter||!t.filterable?null:f.jsx(i.slots.baseMenuItem,{onClick:o,iconStart:f.jsx(i.slots.columnMenuFilterIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuFilter")})}function k$n(e){const{colDef:t,onClick:n}=e,r=bi(),i=Qt(r,Qh),o=kn(),a=b.useMemo(()=>t?i.find(d=>d.field===t.field)?.sort:null,[t,i]),s=t.sortingOrder??o.sortingOrder,l=b.useCallback(u=>{n(u);const d=u.currentTarget.getAttribute("data-value")||null,p=o.multipleColumnsSortingMode==="always";r.current.sortColumn(t.field,d===a?null:d,p)},[r,t,n,a,o.multipleColumnsSortingMode]);if(o.disableColumnSorting||!t||!t.sortable||!s.some(u=>!!u))return null;const c=u=>{const d=r.current.getLocaleText(u);return typeof d=="function"?d(t):d};return f.jsxs(b.Fragment,{children:[s.includes("asc")&&a!=="asc"?f.jsx(o.slots.baseMenuItem,{onClick:l,"data-value":"asc",iconStart:f.jsx(o.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:c("columnMenuSortAsc")}):null,s.includes("desc")&&a!=="desc"?f.jsx(o.slots.baseMenuItem,{onClick:l,"data-value":"desc",iconStart:f.jsx(o.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:c("columnMenuSortDesc")}):null,s.includes(null)&&a!=null?f.jsx(o.slots.baseMenuItem,{onClick:l,iconStart:o.slots.columnMenuUnsortIcon?f.jsx(o.slots.columnMenuUnsortIcon,{fontSize:"small"}):f.jsx("span",{}),children:r.current.getLocaleText("columnMenuUnsort")}):null]})}const L$n=["defaultSlots","defaultSlotProps","slots","slotProps"],_$n={columnMenuSortItem:k$n,columnMenuFilterItem:D$n,columnMenuColumnsItem:P$n},N$n={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},F$n=qr(function(t,n){const{defaultSlots:r,defaultSlotProps:i,slots:o,slotProps:a}=t,s=Lt(t,L$n),l=E$n(Y({},s,{defaultSlots:r,defaultSlotProps:i,slots:o,slotProps:a}));return f.jsx(z$n,Y({},s,{ref:n,children:l.map(([c,u],d)=>f.jsx(c,Y({},u),d))}))}),W$n=qr(function(t,n){return f.jsx(F$n,Y({},t,{ref:n,defaultSlots:_$n,defaultSlotProps:N$n}))}),q$n=["className"],B$n=e=>{const{classes:t}=e;return Yt({root:["panelWrapper"]},lo,t)},j$n=rt("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),eht=qr(function(t,n){const{className:r}=t,i=Lt(t,q$n),o=kn(),a=B$n(o);return f.jsx(j$n,Y({tabIndex:-1,className:Lo(a.root,r),ownerState:o},i,{ref:n}))});function H$n(e){const t=kn();return f.jsx(eht,Y({},e,{children:f.jsx(t.slots.columnsManagement,Y({},t.slotProps?.columnsManagement))}))}const V$n=["children","className","classes","onClose"],G$n=Ln("MuiDataGrid",["panel","paper"]),$$n=rt(Zb,{name:"MuiDataGrid",slot:"panel"})({zIndex:_n.zIndex.panel}),U$n=rt("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:_n.colors.background.overlay,borderRadius:_n.radius.base,boxShadow:_n.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${_n.spacing(2)})`,overflow:"auto"}),X$n=qr((e,t)=>{const{children:n,className:r,onClose:i}=e,o=Lt(e,V$n),a=bi(),s=kn(),l=G$n,[c,u]=b.useState(!1),d=opt(),p=en(()=>u(!0)),h=en(()=>u(!1)),g=en(()=>{i?.()}),m=en(M=>{M.key==="Escape"&&i?.()}),[v,y]=b.useState(null);return b.useEffect(()=>{const M=a.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');M&&y(M)},[a]),v?f.jsx($$n,Y({as:s.slots.basePopper,ownerState:s,placement:"bottom-end",className:Lo(l.panel,r,d),flip:!0,onDidShow:p,onDidHide:h,onClickAway:g,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},o,s.slotProps?.basePopper,{target:e.target??v,ref:t,children:f.jsx(U$n,{className:l.paper,ownerState:s,onKeyDown:m,children:c&&n})})):null}),Y$n=["className"],K$n=e=>{const{classes:t}=e;return Yt({root:["panelContent"]},lo,t)},Q$n=Vo("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:_n.spacing(2.5,1.5,2,1),gap:_n.spacing(2.5)});function Z$n(e){const{className:t}=e,n=Lt(e,Y$n),r=kn(),i=K$n(r);return f.jsx(Q$n,Y({className:Lo(i.root,t),ownerState:r},n))}const J$n=["className"],e9n=e=>{const{classes:t}=e;return Yt({root:["panelFooter"]},lo,t)},t9n=rt("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:_n.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${_n.colors.border.base}`});function n9n(e){const{className:t}=e,n=Lt(e,J$n),r=kn(),i=e9n(r);return f.jsx(t9n,Y({className:Lo(i.root,t),ownerState:r},n))}const r9n=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],i9n=["InputComponentProps"],o9n=e=>{const{classes:t}=e;return Yt({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},lo,t)},a9n=rt("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:_n.spacing(1.5)}),s9n=rt("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),l9n=rt("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),c9n=rt("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),u9n=rt("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),d9n=rt("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),p9n=e=>{switch(e){case e1.And:return"filterPanelOperatorAnd";case e1.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},K4=e=>e.headerName||e.field,i5e=new Intl.Collator,o5e=qr(function(t,n){const{item:r,hasMultipleFilters:i,deleteFilter:o,applyFilterChanges:a,showMultiFilterOperators:s,disableMultiFilterOperator:l,applyMultiFilterOperatorChanges:c,focusElementRef:u,logicOperators:d=[e1.And,e1.Or],columnsSort:p,filterColumns:h,deleteIconProps:g={},logicOperatorInputProps:m={},operatorInputProps:v={},columnInputProps:y={},valueInputProps:M={},readOnly:C}=t,x=Lt(t,r9n),w=bi(),S=Qt(w,CM),A=Qt(w,Z1t),z=Qt(w,mu),O=Hi(),T=Hi(),I=Hi(),P=Hi(),N=kn(),F=o9n(N),L=b.useRef(null),W=b.useRef(null),H=z.logicOperator??e1.And,j=i&&d.length>0,q=(N.slotProps?.baseSelect||{}).native??!1,$=N.slotProps?.baseSelectOption||{},{InputComponentProps:U}=M,X=Lt(M,i9n),Q=Qt(w,jz),re=Qt(w,hwe),{filteredColumns:ee,selectedField:se}=b.useMemo(()=>{let he=r.field;const be=S[r.field].filterable===!1?S[r.field]:null;if(be)return{filteredColumns:[be],selectedField:he};if(Q)return{filteredColumns:A.filter(Me=>re.get(Me.field)!==void 0),selectedField:he};if(h===void 0||typeof h!="function")return{filteredColumns:A,selectedField:he};const me=h({field:r.field,columns:A,currentFilters:z?.items||[]});return{filteredColumns:A.filter(Me=>{const Oe=me.includes(Me.field);return Me.field===r.field&&!Oe&&(he=void 0),Oe}),selectedField:he}},[r.field,S,Q,h,A,z?.items,re]),pe=b.useMemo(()=>{switch(p){case"asc":return ee.sort((he,be)=>i5e.compare(K4(he),K4(be)));case"desc":return ee.sort((he,be)=>-i5e.compare(K4(he),K4(be)));default:return ee}},[ee,p]),te=r.field?w.current.getColumn(r.field):null,ce=b.useMemo(()=>!r.operator||!te?null:te.filterOperators?.find(he=>he.value===r.operator),[r,te]),oe=b.useCallback(he=>{const be=he.target.value,me=w.current.getColumn(be);if(me.field===te.field)return;const Me=me.filterOperators.find(ie=>ie.value===r.operator)||me.filterOperators[0];let de=!Me.InputComponent||Me.InputComponent!==ce?.InputComponent||me.type!==te.type?void 0:r.value;if(me.type==="singleSelect"&&de!==void 0){const ie=me,ue=Bz(ie);Array.isArray(de)?de=de.filter(Ae=>_9(Ae,ue,ie?.getOptionValue)!==void 0):_9(r.value,ue,ie?.getOptionValue)===void 0&&(de=void 0)}a(Y({},r,{field:be,operator:Me.value,value:de}))},[w,a,r,te,ce]),ae=b.useCallback(he=>{const be=he.target.value,me=te?.filterOperators.find(Oe=>Oe.value===be),Me=!me?.InputComponent||me?.InputComponent!==ce?.InputComponent;a(Y({},r,{operator:be,value:Me?void 0:r.value}))},[a,r,te,ce]),ne=b.useCallback(he=>{const be=he.target.value===e1.And.toString()?e1.And:e1.Or;c(be)},[c]),le=()=>{o(r)};return b.useImperativeHandle(u,()=>({focus:()=>{ce?.InputComponent?L?.current?.focus():W.current.focus()}}),[ce]),f.jsxs(a9n,Y({className:F.root,"data-id":r.id,ownerState:N},x,{ref:n,children:[f.jsx(s9n,Y({},g,{className:Lo(F.deleteIcon,g.className),ownerState:N,children:f.jsx(N.slots.baseIconButton,Y({"aria-label":w.current.getLocaleText("filterPanelDeleteIconLabel"),title:w.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:le,size:"small",disabled:C},N.slotProps?.baseIconButton,{children:f.jsx(N.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),f.jsx(l9n,Y({as:N.slots.baseSelect,sx:[j?{display:"flex"}:{display:"none"},s?{visibility:"visible"}:{visibility:"hidden"},m.sx],className:Lo(F.logicOperatorInput,m.className),ownerState:N},m,{size:"small",slotProps:{htmlInput:{"aria-label":w.current.getLocaleText("filterPanelLogicOperator")}},value:H??"",onChange:ne,disabled:!!l||d.length===1,native:q},N.slotProps?.baseSelect,{children:d.map(he=>b.createElement(N.slots.baseSelectOption,Y({},$,{native:q,key:he.toString(),value:he.toString()}),w.current.getLocaleText(p9n(he))))})),f.jsx(c9n,Y({as:N.slots.baseSelect},y,{className:Lo(F.columnInput,y.className),ownerState:N,size:"small",labelId:T,id:O,label:w.current.getLocaleText("filterPanelColumns"),value:se??"",onChange:oe,native:q,disabled:C},N.slotProps?.baseSelect,{children:pe.map(he=>b.createElement(N.slots.baseSelectOption,Y({},$,{native:q,key:he.field,value:he.field}),K4(he)))})),f.jsx(u9n,Y({as:N.slots.baseSelect,size:"small"},v,{className:Lo(F.operatorInput,v.className),ownerState:N,labelId:P,label:w.current.getLocaleText("filterPanelOperator"),id:I,value:r.operator,onChange:ae,native:q,inputRef:W,disabled:C},N.slotProps?.baseSelect,{children:te?.filterOperators?.map(he=>b.createElement(N.slots.baseSelectOption,Y({},$,{native:q,key:he.value,value:he.value}),he.label||w.current.getLocaleText(`filterOperator${jt(he.value)}`)))})),f.jsx(d9n,Y({},X,{className:Lo(F.valueInput,X.className),ownerState:N,children:ce?.InputComponent?f.jsx(ce.InputComponent,Y({apiRef:w,item:r,applyValue:a,focusElementRef:L,disabled:C,slotProps:{root:{size:"small"}}},ce.InputComponentProps,U),r.field):null}))]}))}),h9n=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],a5e=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),f9n=qr(function(t,n){const r=bi(),i=kn(),o=Qt(r,mu),a=Qt(r,Z1t),s=Qt(r,Jjn),l=b.useRef(null),c=b.useRef(null),{logicOperators:u=[e1.And,e1.Or],columnsSort:d,filterFormProps:p,getColumnForNewFilter:h,disableAddFilterButton:g=!1,disableRemoveAllButton:m=!1}=t,v=Lt(t,h9n),y=r.current.upsertFilterItem,M=b.useCallback(P=>{r.current.setFilterLogicOperator(P)},[r]),C=b.useCallback(()=>{let P;if(h&&typeof h=="function"){const N=h({currentFilters:o?.items||[],columns:a});if(N===null)return null;P=a.find(({field:F})=>F===N)}else P=a.find(N=>N.filterOperators?.length);return P?a5e(P):null},[o?.items,a,h]),x=b.useCallback(()=>{if(h===void 0||typeof h!="function")return C();const P=o.items.length?o.items:[C()].filter(Boolean),N=h({currentFilters:P,columns:a});if(N===null)return null;const F=a.find(({field:L})=>L===N);return F?a5e(F):null},[o.items,a,h,C]),w=b.useMemo(()=>o.items.length?o.items:(c.current||(c.current=C()),c.current?[c.current]:[]),[o.items,C]),S=w.length>1,{readOnlyFilters:A,validFilters:z}=b.useMemo(()=>w.reduce((P,N)=>(s[N.field]?P.validFilters.push(N):P.readOnlyFilters.push(N),P),{readOnlyFilters:[],validFilters:[]}),[w,s]),O=b.useCallback(()=>{const P=x();P&&r.current.upsertFilterItems([...w,P])},[r,x,w]),T=b.useCallback(P=>{const N=z.length===1;r.current.deleteFilterItem(P),N&&r.current.hideFilterPanel()},[r,z.length]),I=b.useCallback(()=>z.length===1&&z[0].value===void 0?(r.current.deleteFilterItem(z[0]),r.current.hideFilterPanel()):r.current.setFilterModel(Y({},o,{items:A}),"removeAllFilterItems"),[r,A,o,z]);return b.useEffect(()=>{u.length>0&&o.logicOperator&&!u.includes(o.logicOperator)&&M(u[0])},[u,M,o.logicOperator]),b.useEffect(()=>{z.length>0&&l.current.focus()},[z.length]),f.jsxs(eht,Y({},v,{ref:n,children:[f.jsxs(Z$n,{children:[A.map((P,N)=>f.jsx(o5e,Y({item:P,applyFilterChanges:y,deleteFilter:T,hasMultipleFilters:S,showMultiFilterOperators:N>0,disableMultiFilterOperator:N!==1,applyMultiFilterOperatorChanges:M,focusElementRef:null,readOnly:!0,logicOperators:u,columnsSort:d},p),P.id==null?N:P.id)),z.map((P,N)=>f.jsx(o5e,Y({item:P,applyFilterChanges:y,deleteFilter:T,hasMultipleFilters:S,showMultiFilterOperators:A.length+N>0,disableMultiFilterOperator:A.length+N!==1,applyMultiFilterOperatorChanges:M,focusElementRef:N===z.length-1?l:null,logicOperators:u,columnsSort:d},p),P.id==null?N+A.length:P.id))]}),!i.disableMultipleColumnsFiltering&&!(g&&m)?f.jsxs(n9n,{children:[g?f.jsx("span",{}):f.jsx(i.slots.baseButton,Y({onClick:O,startIcon:f.jsx(i.slots.filterPanelAddIcon,{})},i.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!m&&z.length>0?f.jsx(i.slots.baseButton,Y({onClick:I,startIcon:f.jsx(i.slots.filterPanelRemoveAllIcon,{})},i.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),g9n=(e,t)=>{const n=new Set(Object.keys(e).filter(o=>e[o]===!1)),r=new Set(Object.keys(t).filter(o=>t[o]===!1));if(n.size!==r.size)return!1;let i=!0;return n.forEach(o=>{r.has(o)||(i=!1)}),i},m9n=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,v9n=["children"],b9n=Uf({from:{opacity:0},to:{opacity:1}}),y9n=Uf({"from, to":{"--scrollable":'" "'}}),M9n=Vo("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})`
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: ${y9n};
  animation-timeline: --scroll-timeline;
  animation-fill-mode: none;
  box-sizing: border-box;
  overflow: auto;
  scrollbar-width: thin;
  scroll-timeline: --scroll-timeline block;

  &::before,
  &::after {
    content: '';
    flex-shrink: 0;
    display: block;
    position: sticky;
    left: 0;
    width: 100%;
    height: 4px;
    animation: ${b9n} linear both;
    animation-timeline: --scroll-timeline;

    // Custom property toggle trick:
    // - Detects if the element is scrollable
    // - https://css-tricks.com/the-css-custom-property-toggle-trick/
    --visibility-scrollable: var(--scrollable) visible;
    --visibility-not-scrollable: hidden;
    visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
  }

  &::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
    animation-range: 0 4px;
  }

  &::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
    animation-direction: reverse;
    animation-range: calc(100% - 4px) 100%;
  }
`,C9n=qr(function(t,n){const{children:r}=t,i=Lt(t,v9n);return f.jsx(M9n,Y({},i,{ref:n,children:r}))}),x9n=e=>{const{classes:t}=e;return Yt({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},lo,t)},s5e=new Intl.Collator;function w9n(e){const t=bi(),n=b.useRef(null),r=Qt(t,Zjn),i=Qt(t,Mf),o=kn(),[a,s]=b.useState(""),l=x9n(o),c=Qt(t,Ef),u=Qt(t,jz),d=Qt(t,hwe),p=b.useMemo(()=>u?Array.from(d.values()):c,[u,d,c]),{sort:h,searchPredicate:g=m9n,autoFocusSearchField:m=!0,disableShowHideToggle:v=!1,disableResetButton:y=!1,toggleAllMode:M="all",getTogglableColumns:C,searchInputProps:x,searchDebounceMs:w=o.columnFilterDebounceMs}=e,S=b.useMemo(()=>zw(q=>{s(q)},w??150),[w]),A=b.useMemo(()=>g9n(i,r),[i,r]),z=b.useMemo(()=>{switch(h){case"asc":return[...p].sort((q,$)=>s5e.compare(q.headerName||q.field,$.headerName||$.field));case"desc":return[...p].sort((q,$)=>-s5e.compare(q.headerName||q.field,$.headerName||$.field));default:return p}},[p,h]),O=q=>{const{name:$}=q.target;t.current.setColumnVisibility($,i[$]===!1)},T=b.useMemo(()=>{const q=C?C(z):null,$=q?z.filter(({field:U})=>q.includes(U)):z;return a?$.filter(U=>g(U,a.toLowerCase())):$},[z,a,g,C]),I=b.useCallback(q=>{const $=Mf(t),U=Y({},$),X=C?C(p):null;return(M==="filteredOnly"?T:p).forEach(Q=>{Q.hideable&&(X==null||X.includes(Q.field))&&(q?delete U[Q.field]:U[Q.field]=!1)}),t.current.setColumnVisibilityModel(U)},[t,p,C,M,T]),P=b.useCallback(q=>{S(q.target.value)},[S]),N=b.useMemo(()=>T.filter(q=>q.hideable),[T]),F=b.useMemo(()=>N.every(q=>i[q.field]==null||i[q.field]!==!1),[i,N]),L=b.useMemo(()=>N.every(q=>i[q.field]===!1),[i,N]),W=b.useRef(null);b.useEffect(()=>{m?n.current?.focus():W.current&&typeof W.current.focus=="function"&&W.current.focus()},[m]);let H=!1;const j=q=>H===!1&&q.hideable!==!1?(H=!0,!0):!1,G=b.useCallback(()=>{s(""),n.current&&(n.current.value="",n.current.focus())},[]);return f.jsxs(b.Fragment,{children:[f.jsx(O9n,{className:l.header,ownerState:o,children:f.jsx(z9n,Y({as:o.slots.baseTextField,ownerState:o,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:l.searchInput,onChange:P,size:"small",type:"search",slotProps:{input:{startAdornment:f.jsx(o.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:f.jsx(o.slots.baseIconButton,Y({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:a?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:G,edge:"end"},o.slotProps?.baseIconButton,{children:f.jsx(o.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},o.slotProps?.baseTextField,x))}),f.jsx(A9n,{ownerState:o,children:f.jsxs(S9n,{className:l.root,ownerState:o,children:[T.map(q=>f.jsx(R9n,Y({as:o.slots.baseCheckbox,className:l.row,disabled:q.hideable===!1||u,checked:i[q.field]!==!1,onChange:O,name:q.field,inputRef:j(q)?W:void 0,label:q.headerName||q.field,density:"compact",fullWidth:!0},o.slotProps?.baseCheckbox),q.field)),T.length===0&&f.jsx(E9n,{ownerState:o,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),!v||!y?f.jsxs(T9n,{ownerState:o,className:l.footer,children:[v?f.jsx("span",{}):f.jsx(o.slots.baseCheckbox,Y({disabled:N.length===0||u,checked:F,indeterminate:!F&&!L,onChange:()=>I(!F),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},o.slotProps?.baseCheckbox)),y?null:f.jsx(o.slots.baseButton,Y({onClick:()=>t.current.setColumnVisibilityModel(r),disabled:A||u},o.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const S9n=rt("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:_n.spacing(.5,1.5)}),A9n=rt(C9n,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),O9n=rt("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:_n.spacing(1.5,2),borderBottom:`1px solid ${_n.colors.border.base}`}),z9n=rt(Zb,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${md.input}::-webkit-search-decoration,
      & .${md.input}::-webkit-search-cancel-button,
      & .${md.input}::-webkit-search-results-button,
      & .${md.input}::-webkit-search-results-decoration`]:{display:"none"}}),T9n=rt("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:_n.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${_n.colors.border.base}`}),E9n=rt("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:_n.spacing(1,0),alignSelf:"center",font:_n.typography.font.body}),R9n=rt(Zb,{name:"MuiDataGrid",slot:"ColumnsManagementRow"})({}),I9n=qr(function(t,n){const{children:r,slotProps:i={}}=t,o=i.button||{},a=i.tooltip||{},s=bi(),l=kn(),c=Hi(),u=Hi(),[d,p]=b.useState(!1),h=b.useRef(null),g=Pi(n,h),m=y=>{p(M=>!M),o.onClick?.(y)},v=()=>p(!1);return r==null?null:f.jsxs(b.Fragment,{children:[f.jsx(l.slots.baseTooltip,Y({title:s.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},l.slotProps?.baseTooltip,a,{children:f.jsx(l.slots.baseButton,Y({size:"small",startIcon:f.jsx(l.slots.exportIcon,{}),"aria-expanded":d,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":d?u:void 0,id:c},l.slotProps?.baseButton,o,{onClick:m,ref:g,children:s.current.getLocaleText("toolbarExport")}))})),f.jsx(OZ,{open:d,target:h.current,onClose:v,position:"bottom-end",children:f.jsx(l.slots.baseMenuList,{id:u,className:Te.menuList,"aria-labelledby":c,autoFocusItem:d,children:b.Children.map(r,y=>b.isValidElement(y)?b.cloneElement(y,{hideMenu:v}):y)})})]})}),P9n=["hideMenu","options"],D9n=["hideMenu","options"],k9n=["csvOptions","printOptions","excelOptions"];function L9n(e){const t=bi(),n=kn(),{hideMenu:r,options:i}=e,o=Lt(e,P9n);return f.jsx(n.slots.baseMenuItem,Y({onClick:()=>{t.current.exportDataAsCsv(i),r?.()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function _9n(e){const t=bi(),n=kn(),{hideMenu:r,options:i}=e,o=Lt(e,D9n);return f.jsx(n.slots.baseMenuItem,Y({onClick:()=>{t.current.exportDataAsPrint(i),r?.()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}qr(function(t,n){const r=t,{csvOptions:i={},printOptions:o={},excelOptions:a}=r,s=Lt(r,k9n),c=bi().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:a,csvOptions:i,printOptions:o}).sort((u,d)=>u.componentName>d.componentName?1:-1);return c.length===0?null:f.jsx(I9n,Y({},s,{ref:n,children:c.map((u,d)=>b.cloneElement(u.component,{key:d}))}))});function pm(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o+=1)if(!pm(e[o],t[o]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const i=Array.from(e.entries());for(let o=0;o<i.length;o+=1)if(!t.has(i[o][0]))return!1;for(let o=0;o<i.length;o+=1){const a=i[o];if(!pm(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const i=Array.from(e.entries());for(let o=0;o<i.length;o+=1)if(!t.has(i[o][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o+=1)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let i=0;i<r;i+=1)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=0;i<r;i+=1){const o=n[i];if(!pm(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}const tht=b.createContext(void 0);function ywe(){const e=b.useContext(tht);if(e===void 0)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const N9n=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],F9n=e=>e.split(" ").filter(t=>t!==""),W9n=e=>e.join(" ");function q9n(e){const t=kn(),{render:n,className:r,parser:i=F9n,formatter:o=W9n,debounceMs:a=t.filterDebounceMs,defaultExpanded:s,expanded:l,onExpandedChange:c}=e,u=Lt(e,N9n),d=bi(),p=b.useRef(null),h=b.useRef(null),g=Qt(d,cpt),[m,v]=b.useState(o(g??[])),[y,M]=b.useState(s??m.length>0),C=l??y,x=b.useMemo(()=>({value:m,expanded:C}),[m,C]),w=typeof r=="function"?r(x):r,S=b.useRef(null),A=Hi(),z=b.useCallback(H=>{c&&c(H),l===void 0&&M(H)},[c,l]),O=b.useRef(g);b.useEffect(()=>{pm(O.current,g)||(O.current=g,v(H=>pm(i(H),g)?H:o(g??[])))},[g,o,i]);const T=b.useRef(!0),I=b.useRef(C);b.useEffect(()=>{if(T.current){T.current=!1;return}I.current!==C&&(C?requestAnimationFrame(()=>{p.current?.focus({preventScroll:!0})}):h.current?.focus({preventScroll:!0}),I.current=C)},[C]);const P=b.useMemo(()=>zw(H=>{const j=i(H);O.current=j,d.current.setQuickFilterValues(j)},a),[d,a,i]);b.useEffect(()=>P.clear,[P]);const N=b.useCallback(H=>{const j=H.target.value;v(j),P(j)},[P]),F=b.useCallback(()=>{v(""),d.current.setQuickFilterValues([]),p.current?.focus()},[d,p]),L=b.useMemo(()=>({controlRef:p,triggerRef:h,state:x,controlId:A,clearValue:F,onValueChange:N,onExpandedChange:z}),[A,x,N,F,z]);To(()=>{S.current&&h.current&&S.current.style.setProperty("--trigger-width",`${h.current?.offsetWidth}px`)},[]);const W=Jb("div",n,Y({className:w},u,{ref:S}),x);return f.jsx(tht.Provider,{value:L,children:W})}const B9n=["render","className","slotProps","onKeyDown","onChange"],j9n=qr(function(t,n){const{render:r,className:i,slotProps:o,onKeyDown:a,onChange:s}=t,l=Lt(t,B9n),c=kn(),{state:u,controlId:d,controlRef:p,onValueChange:h,onExpandedChange:g,clearValue:m}=ywe(),v=typeof i=="function"?i(u):i,y=Pi(p,n),M=S=>{S.key==="Escape"&&(u.value===""?g(!1):m()),a?.(S)},C=S=>{u.value===""&&g(!1),o?.htmlInput?.onBlur?.(S)},x=S=>{u.expanded||g(!0),h(S),s?.(S)},w=Jb(c.slots.baseTextField,r,Y({},c.slotProps?.baseTextField,{slotProps:Y({htmlInput:Y({role:"searchbox",id:d,tabIndex:u.expanded?void 0:-1},o?.htmlInput,{onBlur:C})},o),value:u.value,className:v},l,{onChange:x,onKeyDown:M,ref:y}),u);return f.jsx(b.Fragment,{children:w})}),H9n=["render","className","onClick"],V9n=qr(function(t,n){const{render:r,className:i,onClick:o}=t,a=Lt(t,H9n),s=kn(),{state:l,clearValue:c}=ywe(),u=typeof i=="function"?i(l):i,d=h=>{c(),o?.(h)},p=Jb(s.slots.baseIconButton,r,Y({},s.slotProps?.baseIconButton,{className:u,tabIndex:-1},a,{onClick:d,ref:n}),l);return f.jsx(b.Fragment,{children:p})}),G9n=["render","className","onClick"],$9n=qr(function(t,n){const{render:r,className:i,onClick:o}=t,a=Lt(t,G9n),s=kn(),{state:l,controlId:c,onExpandedChange:u,triggerRef:d}=ywe(),p=typeof i=="function"?i(l):i,h=Pi(d,n),g=v=>{u(!l.expanded),o?.(v)},m=Jb(s.slots.baseButton,r,Y({},s.slotProps?.baseButton,{className:p,"aria-controls":c,"aria-expanded":l.expanded},a,{onClick:g,ref:h}),l);return f.jsx(b.Fragment,{children:m})}),U9n=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],X9n=["ref","slotProps"],Y9n=e=>{const{classes:t}=e;return Yt({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},lo,t)},K9n=Vo("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),Q9n=Vo(w7,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})(({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:e.expanded?0:1,pointerEvents:e.expanded?"none":"auto",transition:_n.transition(["opacity"])})),Z9n=Vo(e=>{throw new Error("Failed assertion: should not be rendered")},{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})(({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:e.expanded?1:0,transition:_n.transition(["width","opacity"])}));function J9n(e){const t=bi(),n=kn(),r={classes:n.classes,expanded:!1},i=Y9n(r),{quickFilterParser:o,quickFilterFormatter:a,debounceMs:s,className:l,slotProps:c}=e,u=Lt(e,U9n);return f.jsx(q9n,{parser:o,formatter:a,debounceMs:s,render:(d,p)=>{const h=Y({},r,{expanded:p.expanded});return f.jsxs(K9n,Y({},d,{className:Lo(i.root,l),children:[f.jsx($9n,{render:g=>f.jsx(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:f.jsx(Q9n,Y({className:i.trigger},g,{ownerState:h,color:"default","aria-disabled":p.expanded,children:f.jsx(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),f.jsx(j9n,{render:g=>{let{ref:m,slotProps:v}=g,y=Lt(g,X9n);return f.jsx(Z9n,Y({as:n.slots.baseTextField,className:i.control,ownerState:h,inputRef:m,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:Y({input:Y({startAdornment:f.jsx(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:y.value?f.jsx(V9n,{render:f.jsx(n.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:f.jsx(n.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},v?.input)},v)},n.slotProps?.baseTextField,y,c?.root,u))}})]}))}})}const eUn=["render","className","onClick","onPointerUp"],tUn=qr(function(t,n){const{render:r,className:i,onClick:o,onPointerUp:a}=t,s=Lt(t,eUn),l=kn(),c=Hi(),u=Hi(),d=bi(),p=Qt(d,Hz),h=p.open&&p.openedPanelValue===o1.filters,m=Qt(d,lwe).length,v={open:h,filterCount:m},y=typeof i=="function"?i(v):i,{filterPanelTriggerRef:M}=vwe(),C=Pi(n,M),x=A=>{h?d.current.hidePreferences():d.current.showPreferences(o1.filters,u,c),o?.(A)},w=A=>{h&&A.stopPropagation(),a?.(A)},S=Jb(l.slots.baseButton,r,Y({},l.slotProps?.baseButton,{id:c,"aria-haspopup":"true","aria-expanded":h?"true":void 0,"aria-controls":h?u:void 0,onClick:x,onPointerUp:w,className:y},s,{ref:C}),v);return f.jsx(b.Fragment,{children:S})}),nUn=["render","className","onClick","onPointerUp"],rUn=qr(function(t,n){const{render:r,className:i,onClick:o,onPointerUp:a}=t,s=Lt(t,nUn),l=kn(),c=Hi(),u=Hi(),d=bi(),p=Qt(d,Hz),h=p.open&&p.openedPanelValue===o1.columns,g={open:h},m=typeof i=="function"?i(g):i,{columnsPanelTriggerRef:v}=vwe(),y=Pi(n,v),M=w=>{h?d.current.hidePreferences():d.current.showPreferences(o1.columns,u,c),o?.(w)},C=w=>{h&&w.stopPropagation(),a?.(w)},x=Jb(l.slots.baseButton,r,Y({},l.slotProps?.baseButton,{id:c,"aria-haspopup":"true","aria-expanded":h?"true":void 0,"aria-controls":h?u:void 0,className:m},s,{onPointerUp:C,onClick:M,ref:y}),g);return f.jsx(b.Fragment,{children:x})}),iUn=["render","options","onClick"],oUn=qr(function(t,n){const{render:r,options:i,onClick:o}=t,a=Lt(t,iUn),s=kn(),l=bi(),c=d=>{l.current.exportDataAsCsv(i),o?.(d)},u=Jb(s.slots.baseButton,r,Y({},s.slotProps?.baseButton,{onClick:c},a,{ref:n}));return f.jsx(b.Fragment,{children:u})}),aUn=["render","options","onClick"],sUn=qr(function(t,n){const{render:r,options:i,onClick:o}=t,a=Lt(t,aUn),s=kn(),l=bi(),c=d=>{l.current.exportDataAsPrint(i),o?.(d)},u=Jb(s.slots.baseButton,r,Y({},s.slotProps?.baseButton,{onClick:c},a,{ref:n}));return f.jsx(b.Fragment,{children:u})}),lUn=["className"],cUn=["className"],uUn=["showQuickFilter","quickFilterProps","csvOptions","printOptions","additionalItems","additionalExportMenuItems"],nht=e=>{const{classes:t}=e;return Yt({divider:["toolbarDivider"],label:["toolbarLabel"]},lo,t)},dUn=Vo(Zb,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:_n.spacing(0,.5)}),pUn=Vo("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:_n.typography.font.large,fontWeight:_n.typography.fontWeight.medium,margin:_n.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function l5e(e){const t=Lt(e,lUn),n=kn(),r=nht(n);return f.jsx(dUn,Y({as:n.slots.baseDivider,orientation:"vertical",className:r.divider},t))}function hUn(e){const t=Lt(e,cUn),n=kn(),r=nht(n);return f.jsx(pUn,Y({className:r.label},t))}function fUn(e){const{showQuickFilter:t=!0,quickFilterProps:n,csvOptions:r,printOptions:i,additionalItems:o,additionalExportMenuItems:a}=e,s=Lt(e,uUn),l=bi(),c=kn(),[u,d]=b.useState(!1),p=b.useRef(null),h=Hi(),g=Hi(),m=!r?.disableToolbarButton||!i?.disableToolbarButton||a,v=()=>d(!1);return f.jsxs(D7n,Y({},s,{children:[c.label&&f.jsx(hUn,{children:c.label}),!c.disableColumnSelector&&f.jsx(c.slots.baseTooltip,{title:l.current.getLocaleText("toolbarColumns"),children:f.jsx(rUn,{render:f.jsx(w7,{}),children:f.jsx(c.slots.columnSelectorIcon,{fontSize:"small"})})}),!c.disableColumnFilter&&f.jsx(c.slots.baseTooltip,{title:l.current.getLocaleText("toolbarFilters"),children:f.jsx(tUn,{render:(y,M)=>f.jsx(w7,Y({},y,{color:M.filterCount>0?"primary":"default",children:f.jsx(c.slots.baseBadge,{badgeContent:M.filterCount,color:"primary",variant:"dot",children:f.jsx(c.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),o,m&&(!c.disableColumnFilter||!c.disableColumnSelector)&&f.jsx(l5e,{}),m&&f.jsxs(b.Fragment,{children:[f.jsx(c.slots.baseTooltip,{title:l.current.getLocaleText("toolbarExport"),disableInteractive:u,children:f.jsx(w7,{ref:p,id:g,"aria-controls":h,"aria-haspopup":"true","aria-expanded":u?"true":void 0,onClick:()=>d(!u),children:f.jsx(c.slots.exportIcon,{fontSize:"small"})})}),f.jsx(OZ,{target:p.current,open:u,onClose:v,position:"bottom-end",children:f.jsxs(c.slots.baseMenuList,Y({id:h,"aria-labelledby":g,autoFocusItem:!0},c.slotProps?.baseMenuList,{children:[!i?.disableToolbarButton&&f.jsx(sUn,{render:f.jsx(c.slots.baseMenuItem,Y({},c.slotProps?.baseMenuItem)),options:i,onClick:v,children:l.current.getLocaleText("toolbarExportPrint")}),!r?.disableToolbarButton&&f.jsx(oUn,{render:f.jsx(c.slots.baseMenuItem,Y({},c.slotProps?.baseMenuItem)),options:r,onClick:v,children:l.current.getLocaleText("toolbarExportCSV")}),a?.(v)]}))})]}),t&&f.jsxs(b.Fragment,{children:[f.jsx(l5e,{}),f.jsx(J9n,Y({},n))]})]}))}const gUn=["className","selectedRowCount"],mUn=e=>{const{classes:t}=e;return Yt({root:["selectedRowCount"]},lo,t)},vUn=Vo("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:_n.spacing(0,2),visibility:"hidden",width:0,height:0,[_n.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),bUn=qr(function(t,n){const{className:r,selectedRowCount:i}=t,o=Lt(t,gUn),a=bi(),s=kn(),l=mUn(s),c=a.current.getLocaleText("footerRowSelected")(i);return f.jsx(vUn,Y({className:Lo(l.root,r),ownerState:s},o,{ref:n,children:c}))}),yUn=qr(function(t,n){const r=bi(),i=kn(),o=Qt(r,djn),a=Qt(r,RZ),s=Qt(r,swe),l=!i.hideFooterSelectedRowCount&&a>0?f.jsx(bUn,{selectedRowCount:a}):f.jsx("div",{}),c=!i.hideFooterRowCount&&!i.pagination?f.jsx(i.slots.footerRowCount,Y({},i.slotProps?.footerRowCount,{rowCount:o,visibleRowCount:s})):null,u=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&f.jsx(i.slots.pagination,Y({},i.slotProps?.pagination));return f.jsxs(w7n,Y({},t,{ref:n,children:[l,c,u]}))}),lF=(e,t,n,r,i,o)=>{let a;switch(e){case fo.LEFT:a=r[n];break;case fo.RIGHT:a=i-r[n]-t+o;break;default:a=void 0;break}return Number.isNaN(a)&&(a=void 0),a},B9=(e,t,n,r,i,o)=>{const a=t===n-1;return o?.startsWith("border")&&e===fo.LEFT&&a?!0:r?e===fo.LEFT?!0:e===fo.RIGHT?!a:!a||i:!1},j9=(e,t,n,r)=>r?.startsWith("border")?e===fo.RIGHT&&t===0:n&&e===fo.RIGHT&&t===0,MUn=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],CUn=Vo("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),xUn=e=>{const{classes:t}=e;return Yt({root:["skeletonLoadingOverlay"]},lo,t)},c5e=e=>parseInt(e.getAttribute("data-colindex"),10),wUn=qr(function(t,n){const r=kn(),{slots:i}=r,o=ts(),a=xUn({classes:r.classes}),s=b.useRef(null),l=Pi(s,n),c=bi(),u=Qt(c,Ys),d=Qt(c,Xxe),p=Qt(c,N3),h=b.useMemo(()=>p.filter(z=>z<=d).length,[d,p]),{skeletonRowsCount:g,visibleColumns:m,showFirstRowBorder:v}=t,y=Lt(t,MUn),M=Qt(c,xl),C=b.useMemo(()=>M.slice(0,h),[M,h]),x=Qt(c,SZ),w=b.useCallback(z=>{if(x.left.findIndex(O=>O.field===z)!==-1)return fo.LEFT;if(x.right.findIndex(O=>O.field===z)!==-1)return fo.RIGHT},[x.left,x.right]),S=b.useMemo(()=>{const z=[];for(let O=0;O<g;O+=1){const T=[];for(let I=0;I<C.length;I+=1){const P=C[I],N=w(P.field),F=N===fo.LEFT,L=N===fo.RIGHT,W=Vpt(N,o),H=W?x[W].length:C.length-x.left.length-x.right.length,j=W?x[W].findIndex(oe=>oe.field===P.field):I-x.left.length,G=u.hasScrollY?u.scrollbarSize:0,q=LZ({},o,N,lF(N,P.computedWidth,I,p,u.columnsTotalWidth,G)),$=u.columnsTotalWidth<u.viewportOuterSize.width,U=B9(N,j,H,r.showCellVerticalBorder,$,r.pinnedColumnsSectionSeparator),X=j9(N,j,r.showCellVerticalBorder,r.pinnedColumnsSectionSeparator),Q=I===C.length-1,re=L&&j===0,ee=re&&$,se=Q&&!re&&$,pe=u.viewportOuterSize.width-u.columnsTotalWidth,te=Math.max(0,pe),ce=f.jsx(i.skeletonCell,{width:te,empty:!0},`skeleton-filler-column-${O}`);ee&&T.push(ce),T.push(f.jsx(i.skeletonCell,{field:P.field,type:P.type,align:P.align,width:"var(--width)",height:u.rowHeight,"data-colindex":I,empty:m&&!m.has(P.field),className:Lo(F&&Te["cell--pinnedLeft"],L&&Te["cell--pinnedRight"],U&&Te["cell--withRightBorder"],X&&Te["cell--withLeftBorder"]),style:Y({"--width":`${P.computedWidth}px`},q)},`skeleton-column-${O}-${P.field}`)),se&&T.push(ce)}z.push(f.jsx("div",{className:Lo(Te.row,Te.rowSkeleton,O===0&&!v&&Te["row--firstVisible"]),children:T},`skeleton-row-${O}`))}return z},[g,C,w,o,x,u.hasScrollY,u.scrollbarSize,u.columnsTotalWidth,u.viewportOuterSize.width,u.rowHeight,p,r.showCellVerticalBorder,r.pinnedColumnsSectionSeparator,i,m,v]);return Xn(c,"columnResize",z=>{const{colDef:O,width:T}=z,I=s.current?.querySelectorAll(`[data-field="${xM(O.field)}"]`);if(!I)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const P=C.findIndex(j=>j.field===O.field),N=w(O.field),F=N===fo.LEFT,L=N===fo.RIGHT,W=getComputedStyle(I[0]).getPropertyValue("--width"),H=parseInt(W,10)-T;I&&I.forEach(j=>{j.style.setProperty("--width",`${T}px`)}),F&&s.current?.querySelectorAll(`.${Te["cell--pinnedLeft"]}`)?.forEach(G=>{c5e(G)>P&&(G.style.left=`${parseInt(getComputedStyle(G).left,10)-H}px`)}),L&&s.current?.querySelectorAll(`.${Te["cell--pinnedRight"]}`)?.forEach(G=>{c5e(G)<P&&(G.style.right=`${parseInt(getComputedStyle(G).right,10)+H}px`)})}),f.jsx(CUn,Y({className:a.root},y,{ref:l,children:S}))}),SUn=qr(function(t,n){const r=bi(),i=Qt(r,Ys),o=i?.viewportInnerSize.height??0,a=Math.ceil(o/i.rowHeight);return f.jsx(wUn,Y({},t,{skeletonRowsCount:a,ref:n}))}),AUn=["variant","noRowsVariant","style"],OUn={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>SUn,style:{display:"block"}}},zUn=qr(function(t,n){const{variant:r="linear-progress",noRowsVariant:i="skeleton",style:o}=t,a=Lt(t,AUn),s=bi(),l=kn(),c=Qt(s,BD),u=OUn[c===0?i:r],d=u.component(l);return f.jsx(_Z,Y({style:Y({},u.style,o)},a,{ref:n,children:f.jsx(d,{})}))}),TUn=qr(function(t,n){const i=bi().current.getLocaleText("noRowsLabel");return f.jsx(_Z,Y({},t,{ref:n,children:i}))}),EUn=qr(function(t,n){const r=kn(),i=bi(),o=Qt(i,fb),a=()=>{i.current.showPreferences(o1.columns)},s=!r.disableColumnSelector&&o.length>0;return f.jsxs(_Z,Y({},t,{ref:n,children:[i.current.getLocaleText("noColumnsOverlayLabel"),s&&f.jsx(r.slots.baseButton,Y({size:"small"},r.slotProps?.baseButton,{onClick:a,children:i.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))}),RUn=rt(Zb)({maxHeight:"calc(100% + 1px)",flexGrow:1});function IUn(){const e=bi(),t=kn(),n=Qt(e,Hu),r=Qt(e,NR),i=Qt(e,Cpt),{paginationMode:o,loading:a}=t,s=r===-1&&o==="server"&&a,l=b.useMemo(()=>Math.max(0,i-1),[i]),c=b.useMemo(()=>r===-1||n.page<=l?n.page:l,[l,n.page,r]),u=b.useCallback(g=>{e.current.setPageSize(g)},[e]),d=b.useCallback((g,m)=>{e.current.setPage(m)},[e]),h=(g=>{for(let m=0;m<t.pageSizeOptions.length;m+=1){const v=t.pageSizeOptions[m];if(typeof v=="number"){if(v===g)return!0}else if(v.value===g)return!0}return!1})(n.pageSize)?t.pageSizeOptions:[];return f.jsx(RUn,Y({as:t.slots.basePagination,count:r,page:c,rowsPerPageOptions:h,rowsPerPage:n.pageSize,onPageChange:d,onRowsPerPageChange:u,disabled:s},t.slotProps?.basePagination))}const PUn=["className","rowCount","visibleRowCount"],DUn=e=>{const{classes:t}=e;return Yt({root:["rowCount"]},lo,t)},kUn=Vo("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:_n.spacing(0,2)}),LUn=qr(function(t,n){const{className:r,rowCount:i,visibleRowCount:o}=t,a=Lt(t,PUn),s=bi(),l=kn(),c=DUn(l);if(i===0)return null;const u=o<i?s.current.getLocaleText("footerTotalVisibleRows")(o,i):i.toLocaleString();return f.jsxs(kUn,Y({className:Lo(c.root,r),ownerState:l},a,{ref:n,children:[s.current.getLocaleText("footerTotalRows")," ",u]}))});function _Un(e,t){return Yt(t,lo,e)}const SI=(e,t)=>wB(e),rht=(e,t)=>Qt(e,wB),NUn=Ps(e=>e.rowReorder),FUn=rr(NUn,e=>e?.isActive??!1),WUn=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],qUn=rr(bu,(e,{rowReordering:t,treeData:n})=>!t||n?!1:!!TZ(e)),BUn=qr(function(t,n){const{selected:r,rowId:i,row:o,index:a,style:s,rowHeight:l,className:c,visibleColumns:u,pinnedColumns:d,offsetLeft:p,columnsTotalWidth:h,firstColumnIndex:g,lastColumnIndex:m,focusedColumnIndex:v,isFirstVisible:y,isLastVisible:M,isNotVisible:C,showBottomBorder:x,scrollbarWidth:w,gridHasFiller:S,onClick:A,onDoubleClick:z,onMouseEnter:O,onMouseLeave:T,onMouseOut:I,onMouseOver:P}=t,N=Lt(t,WUn),F=Sp(),L=AZ(),W=b.useRef(null),H=kn(),j=rht(F),G=Qt(F,Qh),q=Qt(F,N3),$=H.rowReordering,U=H.treeData,X=Qt(F,qUn,{rowReordering:$,treeData:U}),Q=Qt(F,FUn),re=Pi(W,n),ee=hb(F,i),se=Qt(F,_pt,{rowId:i,editMode:H.editMode}),pe=H.editMode===kb.Row,te=v!==void 0,ce=te&&v>=d.left.length&&v<g,oe=te&&v<u.length-d.right.length&&v>=m,ae=_Un(H.classes,{root:["row",r&&"selected",pe&&"row--editable",se&&"row--editing",y&&"row--firstVisible",M&&"row--lastVisible",x&&"row--borderBottom",l==="auto"&&"row--dynamicHeight"]}),ne=L.hooks.useGridRowAriaAttributes();b.useLayoutEffect(()=>{if(j.range){const Le=F.current.getRowIndexRelativeToVisibleRows(i);Le!==void 0&&F.current.unstable_setLastMeasuredRowIndex(Le)}if(W.current&&l==="auto")return F.current.observeRowHeight(W.current,i)},[F,j.range,l,i]);const le=b.useCallback((Le,we)=>ve=>{OB(ve)||F.current.getRow(i)&&(F.current.publishEvent(Le,F.current.getRowParams(i),ve),we&&we(ve))},[F,i]),he=b.useCallback(Le=>{const ve=q9(Le.target,Te.cell)?.getAttribute("data-field");ve&&(ve===GD.field||ve===rwe||ve==="__reorder__"||F.current.getCellMode(i,ve)===va.Edit||F.current.getColumn(ve)?.type===zZ)||le("rowClick",A)(Le)},[F,A,le,i]),{slots:be,slotProps:me,disableColumnReorder:Me}=H,Oe=Qt(F,()=>Y({},F.current.getRowHeightEntry(i)),void 0,W1t),de=b.useMemo(()=>{if(C)return{opacity:0,width:0,height:0};const Le=Y({},s,{maxHeight:l==="auto"?"none":l,minHeight:l,"--height":typeof l=="number"?`${l}px`:l});if(Oe.spacingTop){const we=H.rowSpacingType==="border"?"borderTopWidth":"marginTop";Le[we]=Oe.spacingTop}if(Oe.spacingBottom){const we=H.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let ve=Le[we];typeof ve!="number"&&(ve=parseInt(ve||"0",10)),ve+=Oe.spacingBottom,Le[we]=ve}return Le},[C,l,s,Oe,H.rowSpacingType]);if(!ee)return null;const ie=F.current.unstable_applyPipeProcessors("rowClassName",[],i),ue=ne(ee,a);if(typeof H.getRowClassName=="function"){const Le=a-(j.range?.firstRowIndex||0),we=Y({},F.current.getRowParams(i),{isFirstVisible:Le===0,isLastVisible:Le===j.rows.length-1,indexRelativeToCurrentPage:Le});ie.push(H.getRowClassName(we))}const Ae=(Le,we,ve,De,ze=fo.NONE)=>{const Ve=F.current.unstable_getCellColSpanInfo(i,ve);if(Ve?.spannedByColSpan)return null;const Ke=Ve?.cellProps.width??Le.computedWidth,et=Ve?.cellProps.colSpan??1,it=lF(ze,Le.computedWidth,ve,q,h,w);if(ee.type==="skeletonRow")return f.jsx(be.skeletonCell,{type:Le.type,width:Ke,height:l,field:Le.field,align:Le.align},Le.field);const Ft=Le.field==="__reorder__",Pt=!(Me||Le.disableReorder),Qn=X&&!G.length,ir=!(Pt||Ft&&Qn||Q),jn=ze===fo.VIRTUAL,Zn=j9(ze,we,H.showCellVerticalBorder,H.pinnedColumnsSectionSeparator),Br=B9(ze,we,De,H.showCellVerticalBorder,S,H.pinnedColumnsSectionSeparator);return f.jsx(be.cell,Y({column:Le,width:Ke,rowId:i,align:Le.align||"left",colIndex:ve,colSpan:et,disableDragEvents:ir,isNotVisible:jn,pinnedOffset:it,pinnedPosition:ze,showLeftBorder:Zn,showRightBorder:Br,row:o,rowNode:ee},me?.cell),Le.field)},Ce=d.left.map((Le,we)=>Ae(Le,we,we,d.left.length,fo.LEFT)),Ee=d.right.map((Le,we)=>{const ve=u.length-d.right.length+we;return Ae(Le,we,ve,d.right.length,fo.RIGHT)}),Ge=u.length-d.left.length-d.right.length,_e=[];ce&&_e.push(Ae(u[v],v-d.left.length,v,Ge,fo.VIRTUAL));for(let Le=g;Le<m;Le+=1){const we=u[Le],ve=Le-d.left.length;we&&_e.push(Ae(we,ve,Le,Ge))}oe&&_e.push(Ae(u[v],v-d.left.length,v,Ge,fo.VIRTUAL));const Ie=o?{onClick:he,onDoubleClick:le("rowDoubleClick",z),onMouseEnter:le("rowMouseEnter",O),onMouseLeave:le("rowMouseLeave",T),onMouseOut:le("rowMouseOut",I),onMouseOver:le("rowMouseOver",P)}:null;return f.jsxs("div",Y({"data-id":i,"data-rowindex":a,role:"row",className:Lo(...ie,ae.root,c),style:de},ue,Ie,N,{ref:re,children:[Ce,f.jsx("div",{role:"presentation",className:Te.cellOffsetLeft,style:{width:p}}),_e,f.jsx("div",{role:"presentation",className:Lo(Te.cell,Te.cellEmpty)}),Ee]}))}),jUn=MM(BUn),HUn=()=>{const e=Sp(),t=kn(),n=Qt(e,xl),r=Qt(e,awe),i=Qt(e,SB),o=Qt(e,P1t),a=t["aria-label"],s=t["aria-labelledby"];return{role:"grid","aria-label":!a&&!s&&t.label?t.label:a,"aria-labelledby":s,"aria-colcount":n.length,"aria-rowcount":i+1+o+r,"aria-multiselectable":cwe(t)}},VUn=()=>{const e=Sp(),t=Qt(e,SB);return b.useCallback((n,r)=>{const i={},o=r+t+2;return i["aria-rowindex"]=o,n&&e.current.isRowSelectable(n.id)&&(i["aria-selected"]=e.current.isRowSelected(n.id)),i},[e,t])},GUn=e=>({setRowIndex:b.useCallback((n,r)=>{const i=hb(e,n);if(!i)throw new Error(`MUI X: No row with id #${n} found.`);if(i.parent!==Dl)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(i.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(o=>{const a=Qc(e)[Dl],s=a.children,l=s.findIndex(u=>u===n);if(l===-1||l===r)return o;const c=[...s];return c.splice(r,0,c.splice(l,1)[0]),Y({},o,{rows:Y({},o.rows,{tree:Y({},o.rows.tree,{[Dl]:Y({},a,{children:c})})})})}),e.current.publishEvent("rowsSet")},[e])}),$Un=e=>{const t=b.useCallback((i,o)=>{const a=e.current.getColumn(o),s=e.current.getRow(i);if(!s)throw new Error(`No row with id #${i} found`);return!a||!a.valueGetter?s[o]:a.valueGetter(s[a.field],s,a,e)},[e]),n=b.useCallback((i,o)=>bjn(i,o,e),[e]),r=b.useCallback((i,o)=>{const a=n(i,o);return!o||!o.valueFormatter?a:o.valueFormatter(a,i,o,e)},[e,n]);return{getCellValue:t,getRowValue:n,getRowFormattedValue:r}},UUn=()=>b.useCallback(e=>!xP(e.rowNode),[]);function XUn({privateApiRef:e,configuration:t,props:n,children:r}){const i=b.useRef(e.current.getPublicApi());return f.jsx(ipt.Provider,{value:t,children:f.jsx(b1t.Provider,{value:n,children:f.jsx(Ipt.Provider,{value:e,children:f.jsx(y1t.Provider,{value:i,children:f.jsx(h7n,{children:f.jsx(hHn,{children:r})})})})})})}const YUn=e=>{const t=b.useRef(null),n=b.useRef(null),r=b.useRef(null),i=b.useRef(null),o=b.useRef(null),a=b.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:i,virtualScrollbarHorizontalRef:o,columnHeadersContainerRef:a})},KUn=e=>{const t=ts();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=b.useRef(!0);b.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>Y({},r,{isRtl:t}))},[e,t])},QUn=Ujn()&&window.localStorage.getItem("DEBUG")!=null,iN=()=>{},ZUn={debug:iN,info:iN,warn:iN,error:iN},u5e=["debug","info","warn","error"];function d5e(e,t,n=console){const r=u5e.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return u5e.reduce((o,a,s)=>(s>=r?o[a]=(...l)=>{const[c,...u]=l;n[a](`MUI X: ${e} - ${c}`,...u)}:o[a]=iN,o),{})}const JUn=(e,t)=>{const n=b.useCallback(r=>QUn?d5e(r,"debug",t.logger):t.logLevel?d5e(r,t.logLevel.toString(),t.logger):ZUn,[t.logLevel,t.logger]);Vi(e,{getLogger:n},"private")},eXn=(e,t)=>{const n=b.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},tXn=e=>{const t=b.useRef({}),n=b.useRef(!1),r=b.useCallback(d=>{n.current||!d||(n.current=!0,Object.values(d.appliers).forEach(p=>{p()}),n.current=!1)},[]),i=b.useCallback((d,p,h)=>{t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1});const g=t.current[d];return g.processors.get(p)!==h&&(g.processors.set(p,h),g.processorsAsArray=Array.from(t.current[d].processors.values()).filter(v=>v!==null),g.processorsUpdated=!0),()=>{t.current[d].processors.set(p,null),t.current[d].processorsAsArray=Array.from(t.current[d].processors.values()).filter(v=>v!==null)}},[]),o=b.useCallback((d,p,h)=>(t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1}),t.current[d].appliers[p]=h,()=>{const g=t.current[d].appliers,m=Lt(g,[p].map(Oz));t.current[d].appliers=m}),[]),a=b.useCallback(d=>{r(t.current[d])},[r]),s=b.useCallback(()=>{for(const d in t.current){if(!Object.prototype.hasOwnProperty.call(t.current,d))continue;const p=t.current[d];p.processorsUpdated&&(p.processorsUpdated=!1,r(p))}},[r]),l=b.useCallback((...d)=>{const[p,h,g]=d;if(!t.current[p])return h;const m=t.current[p].processorsAsArray;let v=h;for(let y=0;y<m.length;y+=1)v=m[y](v,g);return v},[]),c={registerPipeProcessor:i,registerPipeApplier:o,requestPipeProcessorsApplication:a,runAppliersForPendingProcessors:s},u={unstable_applyPipeProcessors:l};Vi(e,c,"private"),Vi(e,u,"public")},nl=(e,t,n,r=!0)=>{const i=b.useRef(null),o=b.useRef(`mui-${Math.round(Math.random()*1e9)}`),a=b.useCallback(()=>{i.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);$D(()=>{r&&a()});const s=b.useRef(!0);b.useEffect(()=>(s.current?s.current=!1:r&&a(),()=>{i.current&&(i.current(),i.current=null)}),[a,r])},Mwe=(e,t,n)=>{const r=b.useRef(null),i=b.useRef(`mui-${Math.round(Math.random()*1e9)}`),o=b.useCallback(()=>{r.current=e.current.registerPipeApplier(t,i.current,n)},[e,n,t]);$D(()=>{o()});const a=b.useRef(!0);b.useEffect(()=>(a.current?a.current=!1:o(),()=>{r.current&&(r.current(),r.current=null)}),[o])};let gy=(function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e})({});const KW=(e,t,n,r)=>{const i=b.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);$D(()=>{i()});const o=b.useRef(!0);b.useEffect(()=>{o.current?o.current=!1:i()},[i])},Vz="none",p5e={dataSourceRowsUpdate:gy.DataSource,rowTreeCreation:gy.RowTree,filtering:gy.RowTree,sorting:gy.RowTree,visibleRowsLookupCreation:gy.RowTree},nXn=e=>{const t=b.useRef(new Map),n=b.useRef({}),r=b.useCallback((l,c,u)=>{const d=()=>{const g=n.current[c],m=Lt(g,[l].map(Oz));n.current[c]=m};n.current[c]||(n.current[c]={});const p=n.current[c],h=p[l];return p[l]=u,!h||h===u||l===e.current.getActiveStrategy(p5e[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),d},[e]),i=b.useCallback((l,c)=>{const u=e.current.getActiveStrategy(p5e[l]);if(u==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const d=n.current[l];if(!d||!d[u])throw new Error(`No processor found for processor "${l}" on strategy "${u}"`);const p=d[u];return p(c)},[e]),o=b.useCallback(l=>Array.from(t.current.entries()).find(([,d])=>d.group!==l?!1:d.isAvailable())?.[0]??Vz,[]),a=b.useCallback((l,c,u)=>{t.current.set(c,{group:l,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Vi(e,{registerStrategyProcessor:r,applyStrategyProcessor:i,getActiveStrategy:o,setStrategyAvailability:a},"private")},rXn=e=>{const t=b.useRef({}),n=b.useCallback(s=>{t.current[s.stateId]=s},[]),r=b.useCallback((s,l)=>{let c;if($jn(s)?c=s(e.current.state):c=s,e.current.state===c)return!1;const u={current:{state:c}};let d=!1;const p=[];if(Object.keys(t.current).forEach(h=>{const g=t.current[h],m=g.stateSelector(e),v=g.stateSelector(u);v!==m&&(p.push({stateId:g.stateId,hasPropChanged:v!==g.propModel}),g.propModel!==void 0&&v!==g.propModel&&(d=!0))}),p.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${p[0].stateId}, therefore, you're not allowed to update ${p.map(h=>h.stateId).join(", ")} in the same transaction.`);if(d||(e.current.state=c,e.current.publishEvent("stateChange",c),e.current.store.update(c)),p.length===1){const{stateId:h,hasPropChanged:g}=p[0],m=t.current[h],v=m.stateSelector(u);m.propOnChange&&g&&m.propOnChange(v,{reason:l,api:e.current}),d||e.current.publishEvent(m.changeEvent,v,{reason:l})}return!d},[e]),i=b.useCallback((s,l,c)=>e.current.setState(u=>Y({},u,{[s]:l(u[s])}),c),[e]),o={setState:r},a={updateControlState:i,registerControlState:n};Vi(e,o,"public"),Vi(e,a,"private")},iXn=(e,t)=>Y({},e,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable}}),oXn=(e,t)=>{b.useEffect(()=>{e.current.setState(n=>Y({},n,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable}}))},[e,t.listView,t.getRowId,t.isCellEditable])},aXn=(e,t)=>{YUn(e),oXn(e,t),KUn(e),JUn(e,t),rXn(e),tXn(e),nXn(e),eXn(e,t),e.current.register("private",{rootProps:t})};function iht(e,t){return Math.round(e*10**t)/10**t}const sXn=rr(G1,Hpt,wB,xl,(e,t,n,r)=>{if(!e)return!1;const i=n.rowIdToIndexMap.get(e.id),o=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(s=>s.field===e.field);return!(i!==void 0&&o!==-1&&i>=t.firstRowIndex&&i<=t.lastRowIndex)}),lXn=ea(sXn,xl,wB,G1,(e,t,n,r)=>{if(!e)return null;const i=n.rowIdToIndexMap.get(r.id);if(i===void 0)return null;const o=t.findIndex(a=>a.field===r.field);return o===-1?null:Y({},r,{rowIndex:i,columnIndex:o})}),H9={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:"	",columnBufferPx:150,columnFilterDebounceMs:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableRowSelectionExcludeModel:!1,disableVirtualization:!1,editMode:kb.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rows:[],rowSelection:!0,rowSpacingType:"margin",rowSpanning:!1,showCellVerticalBorder:!1,showColumnVerticalBorder:!1,showToolbar:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,virtualizeColumnsWithAutoRowHeight:!1};function cXn(e){return e}const uXn=rr(xl,N3,(e,t)=>{const n=e.length;return n===0?0:iht(t[n-1]+e[n-1].computedWidth,1)}),dXn=()=>$xe((e,t,n,r,i)=>Y({},e,{headerHeight:t,groupHeaderHeight:n,headerFilterHeight:r,headersTotalHeight:i}),{maxSize:1});function pXn(e,t){const n=ts(),{listView:r}=t,i=Qt(e,xl),o=Qt(e,jD),a=SZ(e),s=Qt(e,xB),l=b.useCallback(U=>s.has(U)&&e.current.isRowSelectable(U),[s,e]),c=rht(e),u=Qt(e,eHn),d=Qt(e,I1t),p=Qt(e,R1t),{autoHeight:h}=t,g=r,m=Qt(e,yB),v=N1t(t.rowHeight,H9.rowHeight),y=Math.floor(v*m),M=Math.floor(t.columnHeaderHeight*m),C=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*m),x=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*m),w=Qt(e,uXn),S=AB(e,t),A=a.left.reduce((U,X)=>U+X.computedWidth,0),z=a.right.reduce((U,X)=>U+X.computedWidth,0),O=kpt(e,t),T={rowHeight:y,headerHeight:M,columnsTotalWidth:w,leftPinnedWidth:A,rightPinnedWidth:z,topPinnedHeight:S,bottomPinnedHeight:0,scrollbarSize:t.scrollbarSize},I=xp(dXn).current,P=Qt(e,BD),N=Qt(e,VD),F=Math.min(N.enabled?N.paginationModel.pageSize:P,P),{getRowHeight:L,getEstimatedRowHeight:W,getRowSpacing:H}=t,j=Qt(e,lXn),G=t.slots.row,q=t.slotProps?.row,$=mGn({refs:{container:e.current.mainElementRef,scroller:e.current.virtualScrollerRef,scrollbarVertical:e.current.virtualScrollbarVerticalRef,scrollbarHorizontal:e.current.virtualScrollbarHorizontalRef},dimensions:T,virtualization:{isRtl:n,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx},colspan:{enabled:u,getColspan:b.useCallback((U,X)=>{if(typeof X.colSpan=="function"){const Q=e.current.getRow(U),re=e.current.getRowValue(Q,X);return X.colSpan(re,Q,X,e)??0}return X.colSpan??1},[e])},initialState:{scroll:t.initialState?.scroll,rowSpanning:e.current.state.rowSpanning,virtualization:e.current.state.virtualization},rows:c.rows,range:c.range,rowCount:F,columns:i,pinnedRows:o,pinnedColumns:a,autoHeight:h,disableHorizontalScroll:r,disableVerticalScroll:O.overlayType==="noColumnsOverlay"||O.loadingOverlayVariant==="skeleton",minimalContentHeight:_1t,getRowHeight:b.useMemo(()=>{if(L)return U=>L(Y({},U,{densityFactor:m}))},[L,m]),getEstimatedRowHeight:b.useMemo(()=>W?U=>W(Y({},U,{densityFactor:m})):void 0,[W,m]),getRowSpacing:b.useMemo(()=>H?U=>{const X=c.rowIdToIndexMap.get(U.id)??-1,Q={isFirstVisible:X===0,isLastVisible:X===c.rows.length-1,indexRelativeToCurrentPage:X};return H(Y({},U,Q,{indexRelativeToCurrentPage:e.current.getRowIndexRelativeToVisibleRows(U.id)}))}:void 0,[e,H,c.rows,c.rowIdToIndexMap]),applyRowHeight:en((U,X)=>e.current.unstable_applyPipeProcessors("rowHeight",U,X)),virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight,focusedVirtualCell:en(()=>j),resizeThrottleMs:t.resizeThrottleMs,onResize:en(U=>e.current.publishEvent("resize",U)),onWheel:en(U=>{e.current.publishEvent("virtualScrollerWheel",{},U)}),onTouchMove:en(U=>{e.current.publishEvent("virtualScrollerTouchMove",{},U)}),onRenderContextChange:en(U=>{e.current.publishEvent("renderedRowsIntervalChange",U)}),onScrollChange:b.useCallback((U,X)=>{e.current.publishEvent("scrollPositionChange",{top:U.top,left:U.left,renderContext:X})},[e]),scrollReset:g,renderRow:b.useCallback(U=>f.jsx(G,Y({row:U.model,rowId:U.id,index:U.rowIndex,selected:l(U.id),offsetLeft:U.offsetLeft,columnsTotalWidth:w,rowHeight:U.baseRowHeight,pinnedColumns:a,visibleColumns:i,firstColumnIndex:U.firstColumnIndex,lastColumnIndex:U.lastColumnIndex,focusedColumnIndex:U.focusedColumnIndex,isFirstVisible:U.isFirstVisible,isLastVisible:U.isLastVisible,isNotVisible:U.isVirtualFocusRow,showBottomBorder:U.showBottomBorder,scrollbarWidth:d,gridHasFiller:p},q),U.id),[w,p,l,a,G,q,d,i]),renderInfiniteLoadingTrigger:b.useCallback(U=>e.current.getInfiniteLoadingTriggerElement?.({lastRowId:U}),[e])});$D(()=>{e.current.store.state.dimensions=I($.store.state.dimensions,M,C,x,S),e.current.store.state.rowsMeta=$.store.state.rowsMeta,e.current.store.state.virtualization=$.store.state.virtualization}),Tge($.store,$1.selectors.dimensions,(U,X)=>{e.current.setState(Q=>Y({},Q,{dimensions:I(X,M,C,x,S)}))}),Tge($.store,cXn,(U,X)=>{X.rowsMeta!==e.current.state.rowsMeta&&e.current.setState(Q=>Y({},Q,{rowsMeta:X.rowsMeta})),X.virtualization!==e.current.state.virtualization&&e.current.setState(Q=>Y({},Q,{virtualization:X.virtualization}))}),e.current.register("private",{virtualizer:$})}const du=(e,t,n,r)=>{const i=b.useRef(r),o=b.useRef(!1);r!==i.current&&(o.current=!1,i.current=r),o.current||(t.current.state=e(t.current.state,n,t),o.current=!0)};function Pge(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@","	","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
`,"\r",'"'].some(i=>n.includes(i))?`"${r}"`:r}return n}const oht=(e,t)=>{const{csvOptions:n,ignoreValueFormatter:r}=t;let i;if(r){const o=e.colDef.type;o==="number"?i=String(e.value):o==="date"||o==="dateTime"?i=e.value?.toISOString():typeof e.value?.toString=="function"?i=e.value.toString():i=e.value}else i=e.formattedValue;return Pge(i,n)};class Dge{rowString="";isEmpty=!0;constructor(t){this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const hXn=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:i})=>{const o=new Dge({csvOptions:r});return t.forEach(a=>{const s=n(e,a.field);o.addValue(oht(s,{ignoreValueFormatter:i,csvOptions:r}))}),o.getRowString()};function fXn(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:i,apiRef:o}=e,a=n.reduce((d,p)=>`${d}${hXn({id:p,columns:t,getCellParams:o.current.getCellParams,ignoreValueFormatter:i,csvOptions:r})}\r
`,"").trim();if(!r.includeHeaders)return a;const s=t.filter(d=>d.field!==GD.field),l=[];if(r.includeColumnGroupsHeaders){const d=o.current.getAllGroupDetails();let p=0;const h=s.reduce((g,m)=>{const v=o.current.getColumnGroupPath(m.field);return g[m.field]=v,p=Math.max(p,v.length),g},{});for(let g=0;g<p;g+=1){const m=new Dge({csvOptions:r,sanitizeCellValue:Pge});l.push(m),s.forEach(v=>{const y=(h[v.field]||[])[g],M=d[y];m.addValue(M?M.headerName||M.groupId:"")})}}const c=new Dge({csvOptions:r,sanitizeCellValue:Pge});return s.forEach(d=>{c.addValue(d.headerName||d.field)}),l.push(c),`${`${l.map(d=>d.getRowString()).join(`\r
`)}\r
`}${a}`.trim()}function h5e(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function gXn(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{h5e(e)}):h5e(e)}function mXn(e){return!!(window.getSelection()?.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const vXn=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n?.clipboardExport:n)||!1,i=t.clipboardCopyCellDelimiter,o=b.useCallback(a=>{if(!uHn(a)||mXn(a.target))return;let s="";if(RZ(e)>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:i,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=G1(e);if(c){const u=e.current.getCellParams(c.id,c.field);s=oht(u,{csvOptions:{delimiter:i,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(gXn(s),e.current.publishEvent("clipboardCopy",s))},[e,r,i]);Ppt(e,()=>e.current.rootElementRef.current,"keydown",o),Ka(e,"clipboardCopy",t.onClipboardCopy)},bXn=e=>Y({},e,{columnMenu:{open:!1}}),yXn=e=>{const t=Zu(e,"useGridColumnMenu"),n=b.useCallback(a=>{const s=M7(e),l={open:!0,field:a};(l.open!==s.open||l.field!==s.field)&&(e.current.setState(u=>u.columnMenu.open&&u.columnMenu.field===a?u:(t.debug("Opening Column Menu"),Y({},u,{columnMenu:{open:!0,field:a}}))),e.current.hidePreferences())},[e,t]),r=b.useCallback(()=>{const a=M7(e);if(a.field){const c=CM(e),u=Mf(e),d=fb(e);let p=a.field;if(c[p]||(p=d[0]),u[p]===!1){const h=d.filter(m=>m===p?!0:u[m]!==!1),g=h.indexOf(p);p=h[g+1]||h[g-1]}e.current.setColumnHeaderFocus(p)}const s={open:!1,field:void 0};(s.open!==a.open||s.field!==a.field)&&e.current.setState(c=>(t.debug("Hiding Column Menu"),Y({},c,{columnMenu:s})))},[e,t]),i=b.useCallback(a=>{t.debug("Toggle Column Menu");const s=M7(e);!s.open||s.field!==a?n(a):r()},[e,t,n,r]);Vi(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:i},"public"),Xn(e,"columnResizeStart",r),Xn(e,"virtualScrollerWheel",e.current.hideColumnMenu),Xn(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},MXn=(e,t,n)=>{n.current.caches.columns={lastColumnsProp:t.columns};const r=yR({apiRef:n,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0});return Y({},e,{columns:r,pinnedColumns:e.pinnedColumns??D9})};function CXn(e,t){const n=Zu(e,"useGridColumns");e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Mf,changeEvent:"columnVisibilityModelChange"});const r=b.useCallback(z=>{n.debug("Updating columns state."),e.current.setState(xXn(z)),e.current.publishEvent("columnsChange",z.orderedFields)},[n,e]),i=b.useCallback(z=>CM(e)[z],[e]),o=b.useCallback(()=>Ef(e),[e]),a=b.useCallback(()=>xl(e),[e]),s=b.useCallback((z,O=!0)=>(O?xl(e):Ef(e)).findIndex(I=>I.field===z),[e]),l=b.useCallback(z=>{const O=s(z);return N3(e)[O]},[e,s]),c=b.useCallback(z=>{Mf(e)!==z&&(e.current.setState(T=>Y({},T,{columns:yR({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:z,keepOnlyColumnsToUpsert:!1})})),e.current.updateRenderContext?.())},[e]),u=b.useCallback(z=>{let O=z;if(jz(e)){const I=[],P=[],N=hwe(e);if(z.forEach(F=>{N.has(F.field)?I.push(F):P.push(F)}),I.length>0&&e.current.updateNonPivotColumns(I),P.length===0)return;O=P}const T=yR({apiRef:e,columnsToUpsert:O,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});r(T)},[e,r]),d=b.useCallback((z,O)=>{const T=Mf(e),I=T[z]??!0;if(O!==I){const P=Y({},T,{[z]:O});e.current.setColumnVisibilityModel(P)}},[e]),p=b.useCallback(z=>fb(e).findIndex(T=>T===z),[e]),h=b.useCallback((z,O)=>{const T=fb(e),I=p(z);if(I===O)return;n.debug(`Moving column ${z} to index ${O}`);const P=[...T],N=P.splice(I,1)[0];P.splice(O,0,N),r(Y({},um(e),{orderedFields:P}));const F={column:e.current.getColumn(z),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(z),oldIndex:I};e.current.publishEvent("columnIndexChange",F)},[e,n,r,p]),g=b.useCallback((z,O)=>{n.debug(`Updating column ${z} width to ${O}`);const T=um(e),I=T.lookup[z],P=Y({},I,{width:O,hasBeenResized:!0});r(Rge(Y({},T,{lookup:Y({},T.lookup,{[z]:P})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(z),colDef:P,width:O})},[e,n,r]),m={getColumn:i,getAllColumns:o,getColumnIndex:s,getColumnPosition:l,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:p,updateColumns:u,setColumnVisibilityModel:c,setColumnVisibility:d,setColumnWidth:g},v={setColumnIndex:h};Vi(e,m,"public"),Vi(e,v,t.signature===cm.DataGrid?"private":"public");const y=b.useCallback((z,O)=>{const T={},I=Mf(e);(!O.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(I).length>0)&&(T.columnVisibilityModel=I),T.orderedFields=fb(e);const N=Ef(e),F={};return N.forEach(L=>{if(L.hasBeenResized){const W={};Tpt.forEach(H=>{let j=L[H];j===1/0&&(j=-1),W[H]=j}),F[L.field]=W}}),Object.keys(F).length>0&&(T.dimensions=F),Y({},z,{columns:T})},[e,t.columnVisibilityModel,t.initialState?.columns]),M=b.useCallback((z,O)=>{const T=O.stateToRestore.columns,I=T?.columnVisibilityModel;if(T==null)return z;const P=yR({apiRef:e,columnsToUpsert:[],initialState:T,columnVisibilityModel:I,keepOnlyColumnsToUpsert:!1});return T!=null&&e.current.setState(N=>Y({},N,{columns:Y({},N.columns,{lookup:P.lookup,orderedFields:P.orderedFields,initialColumnVisibilityModel:P.initialColumnVisibilityModel})})),I!=null&&e.current.setState(N=>Y({},N,{columns:Y({},N.columns,{columnVisibilityModel:I})})),T!=null&&e.current.publishEvent("columnsChange",P.orderedFields),z},[e]),C=b.useCallback((z,O)=>{if(O===o1.columns){const T=t.slots.columnsPanel;return f.jsx(T,Y({},t.slotProps?.columnsPanel))}return z},[t.slots.columnsPanel,t.slotProps?.columnsPanel]),x=b.useCallback(z=>{const O=jz(e);return t.disableColumnSelector||O?z:[...z,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);nl(e,"columnMenu",x),nl(e,"exportState",y),nl(e,"restoreState",M),nl(e,"preferencePanel",C);const w=b.useRef(null);Xn(e,"viewportInnerSizeChange",z=>{if(w.current!==z.width){if(w.current=z.width,!xl(e).some(T=>T.flex&&T.flex>0))return;r(Rge(um(e),e.current.getRootDimensions()))}});const A=b.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const z=yR({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});r(z)},[e,n,r]);Mwe(e,"hydrateColumns",A),b.useEffect(()=>{if(e.current.caches.columns.lastColumnsProp===t.columns)return;e.current.caches.columns.lastColumnsProp=t.columns,n.info(`GridColumns have changed, new length ${t.columns.length}`);const z=yR({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0,columnVisibilityModel:t.columnVisibilityModel});r(z)},[n,e,r,t.columns,t.columnVisibilityModel]),b.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function xXn(e){return t=>Y({},t,{columns:e})}const wXn=(e,t)=>Y({},e,{density:t.initialState?.density??t.density??"standard"}),SXn=(e,t)=>{const n=Zu(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:_R,changeEvent:"densityChange"});const i={setDensity:en(s=>{_R(e)!==s&&(n.debug(`Set grid density to ${s}`),e.current.setState(c=>Y({},c,{density:s})))})};Vi(e,i,"public");const o=b.useCallback((s,l)=>{const c=_R(e);return!l.exportOnlyDirtyModels||t.density!=null||t.initialState?.density!=null?Y({},s,{density:c}):s},[e,t.density,t.initialState?.density]),a=b.useCallback((s,l)=>{const c=l.stateToRestore?.density?l.stateToRestore.density:_R(e);return e.current.setState(u=>Y({},u,{density:c})),s},[e]);nl(e,"exportState",o),nl(e,"restoreState",a),b.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function AXn(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const i=URL.createObjectURL(e),o=document.createElement("a");o.href=i,o.download=r,o.click(),setTimeout(()=>{URL.revokeObjectURL(i)});return}throw new Error("MUI X: exportAs not supported.")}const aht=({apiRef:e,options:t})=>{const n=Ef(e);return t.fields?t.fields.reduce((i,o)=>{const a=n.find(s=>s.field===o);return a&&i.push(a),i},[]):(t.allColumns?n:xl(e)).filter(i=>i.disableExport!==!0)},sht=({apiRef:e})=>{const t=upt(e),n=Qc(e),r=RZ(e),i=t.filter(l=>n[l].type!=="footer"),o=jD(e),a=o?.top?.map(l=>l.id)||[],s=o?.bottom?.map(l=>l.id)||[];if(i.unshift(...a),i.push(...s),r>0){const l=hpt(e);return i.filter(c=>l.has(c))}return i},OXn=(e,t)=>{const n=Zu(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,i=(typeof r=="object"?r?.csvExport:r)||!1,o=b.useCallback((c={})=>{n.debug("Get data as CSV");const u=aht({apiRef:e,options:c}),p=(c.getRowsToExport??sht)({apiRef:e});return fXn({columns:u,rowIds:p,csvOptions:{delimiter:c.delimiter||",",shouldAppendQuotes:c.shouldAppendQuotes??!0,includeHeaders:c.includeHeaders??!0,includeColumnGroupsHeaders:c.includeColumnGroupsHeaders??!0,escapeFormulas:c.escapeFormulas??!0},ignoreValueFormatter:i,apiRef:e})},[n,e,i]),a=b.useCallback(c=>{n.debug("Export data as CSV");const u=o(c),d=new Blob([c?.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});AXn(d,"csv",c?.fileName)},[n,o]);Vi(e,{getDataAsCsv:o,exportDataAsCsv:a},"public");const l=b.useCallback((c,u)=>u.csvOptions?.disableToolbarButton?c:[...c,{component:f.jsx(L9n,{options:u.csvOptions}),componentName:"csvExport"}],[]);nl(e,"exportMenu",l)};function zXn(e,t){const n=[],r=t.querySelectorAll("style, link[rel='stylesheet']");for(let i=0;i<r.length;i+=1){const o=r[i];if(o.tagName==="STYLE"){const a=e.createElement(o.tagName),s=o.sheet;if(s){let l="";for(let c=0;c<s.cssRules.length;c+=1)typeof s.cssRules[c].cssText=="string"&&(l+=`${s.cssRules[c].cssText}\r
`);a.appendChild(e.createTextNode(l)),e.head.appendChild(a)}}else if(o.getAttribute("href")){const a=e.createElement(o.tagName);for(let s=0;s<o.attributes.length;s+=1){const l=o.attributes[s];l&&a.setAttribute(l.nodeName,l.nodeValue||"")}n.push(new Promise(s=>{a.addEventListener("load",()=>s())})),e.head.appendChild(a)}}return n}const S7=(e,t,n)=>{let r=e.paginationModel;const i=e.rowCount,o=n?.pageSize??r.pageSize,a=n?.page??r.page,s=mpt(i,o,a);n&&(n?.page!==r.page||n?.pageSize!==r.pageSize)&&(r=n);const l=o===-1?0:JHn(r.page,s);return l!==r.page&&(r=Y({},r,{page:l})),bpt(r.pageSize,t),r},TXn=(e,t)=>{const n=Zu(e,"useGridPaginationModel"),r=Qt(e,yB),i=b.useRef(mu(e)),o=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Hu,changeEvent:"paginationModelChange"});const a=b.useCallback(M=>{const C=Hu(e);M!==C.page&&(n.debug(`Setting page to ${M}`),e.current.setPaginationModel({page:M,pageSize:C.pageSize}))},[e,n]),s=b.useCallback(M=>{const C=Hu(e);M!==C.pageSize&&(n.debug(`Setting page size to ${M}`),e.current.setPaginationModel({pageSize:M,page:C.page}))},[e,n]),l=b.useCallback(M=>{const C=Hu(e);M!==C&&(n.debug("Setting 'paginationModel' to",M),e.current.setState(x=>Y({},x,{pagination:Y({},x.pagination,{paginationModel:S7(x.pagination,t.signature,M)})}),"setPaginationModel"))},[e,n,t.signature]);Vi(e,{setPage:a,setPageSize:s,setPaginationModel:l},"public");const u=b.useCallback((M,C)=>{const x=Hu(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||t.initialState?.pagination?.paginationModel!=null||x.page!==0&&x.pageSize!==ZHn(t.autoPageSize)?Y({},M,{pagination:Y({},M.pagination,{paginationModel:x})}):M},[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),d=b.useCallback((M,C)=>{const x=C.stateToRestore.pagination?.paginationModel?Y({},vpt(t.autoPageSize),C.stateToRestore.pagination?.paginationModel):Hu(e);return e.current.setState(w=>Y({},w,{pagination:Y({},w.pagination,{paginationModel:S7(w.pagination,t.signature,x)})}),"stateRestorePreProcessing"),M},[e,t.autoPageSize,t.signature]);nl(e,"exportState",u),nl(e,"restoreState",d);const p=()=>{const M=Hu(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:M.page*M.pageSize})},h=b.useCallback(()=>{if(!t.autoPageSize)return;const M=e.current.getRootDimensions(),C=Math.max(1,Math.floor(M.viewportInnerSize.height/o));e.current.setPageSize(C)},[e,t.autoPageSize,o]),g=b.useCallback(M=>{if(M==null)return;const C=Hu(e);if(C.page===0)return;const x=Cpt(e);C.page>x-1&&e.current.setPage(Math.max(0,x-1))},[e]),m=b.useCallback(()=>{Hu(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),v=b.useCallback(M=>{const C=Y({},M,{items:lwe(e)});pm(C,i.current)||(i.current=C,m())},[e,m]);Xn(e,"viewportInnerSizeChange",h),Xn(e,"paginationModelChange",p),Xn(e,"rowCountChange",g),Xn(e,"sortModelChange",m),Xn(e,"filterModelChange",v);const y=b.useRef(!0);b.useEffect(()=>{if(y.current){y.current=!1;return}t.pagination&&e.current.setState(M=>Y({},M,{pagination:Y({},M.pagination,{paginationModel:S7(M.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),b.useEffect(()=>{e.current.setState(M=>{const C=t.pagination===!0;return M.pagination.paginationMode===t.paginationMode&&M.pagination.enabled===C?M:Y({},M,{pagination:Y({},M.pagination,{paginationMode:t.paginationMode,enabled:C})})})},[e,t.paginationMode,t.pagination]),b.useEffect(h,[h])};function EXn(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function RXn(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const IXn=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=Zu(e,"useGridPrintExport"),i=b.useRef(null),o=b.useRef(null),a=b.useRef({}),s=b.useRef([]),l=b.useRef(null);b.useEffect(()=>{i.current=Is(e.current.rootElementRef.current)},[e,n]);const c=b.useCallback((v,y,M)=>new Promise(C=>{const x=aht({apiRef:e,options:{fields:v,allColumns:y}}).map(A=>A.field),w=Ef(e),S={};w.forEach(A=>{S[A.field]=x.includes(A.field)}),M&&(S[GD.field]=!0),e.current.setColumnVisibilityModel(S),C()}),[e]),u=b.useCallback(v=>{const M=v({apiRef:e}).reduce((C,x)=>{const w=e.current.getRow(x);return w[qz]||C.push(w),C},[]);e.current.setRows(M)},[e]),d=b.useCallback((v,y)=>{const M=Y({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},y),C=v.contentDocument;if(!C)return;const x=Yxe(e),w=e.current.rootElementRef.current,S=w.cloneNode(!0),A=S.querySelector(`.${Te.main}`);A.style.overflow="visible",S.style.contain="size";let z=w.querySelector(`.${Te.toolbar}`)?.offsetHeight||0,O=w.querySelector(`.${Te.footerContainer}`)?.offsetHeight||0;const T=S.querySelector(`.${Te.footerContainer}`);M.hideToolbar&&(S.querySelector(`.${Te.toolbar}`)?.remove(),z=0),M.hideFooter&&T&&(T.remove(),O=0);const I=x.currentPageTotalHeight+AB(e,t)+z+O;S.style.height=`${I}px`,S.style.boxSizing="content-box",!M.hideFooter&&T&&(T.style.position="absolute",T.style.width="100%",T.style.top=`${I-O}px`);const P=document.createElement("div");P.appendChild(S),C.body.style.marginTop="0px",C.body.innerHTML=P.innerHTML;const N=typeof M.pageStyle=="function"?M.pageStyle():M.pageStyle;if(typeof N=="string"){const L=C.createElement("style");L.appendChild(C.createTextNode(N)),C.head.appendChild(L)}M.bodyClassName&&C.body.classList.add(...M.bodyClassName.split(" "));let F=[];if(M.copyStyles){const L=w.getRootNode(),W=L.constructor.name==="ShadowRoot"?L:i.current;F=zXn(C,W)}Promise.all(F).then(()=>{v.contentWindow.print()})},[e,i,t]),p=b.useCallback(v=>{i.current.body.removeChild(v),e.current.restoreState(o.current||{}),o.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.setState(y=>Y({},y,{virtualization:l.current})),e.current.setRows(s.current),o.current=null,a.current={},s.current=[]},[e]),g={exportDataAsPrint:b.useCallback(async v=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(o.current=e.current.exportState(),a.current=Mf(e),s.current=e.current.getSortedRows().filter(M=>!M[qz]),t.pagination){const C={page:0,pageSize:awe(e)};e.current.setState(x=>Y({},x,{pagination:Y({},x.pagination,{paginationModel:S7(x.pagination,"DataGridPro",C)})}))}l.current=e.current.state.virtualization,e.current.unstable_setVirtualization(!1),await c(v?.fields,v?.allColumns,v?.includeCheckboxes),u(v?.getRowsToExport??sht),await EXn();const y=RXn(v?.fileName);y.onload=()=>{d(y,v),y.contentWindow.matchMedia("print").addEventListener("change",C=>{C.matches===!1&&p(y)})},i.current.body.appendChild(y)},[t,r,e,d,p,c,u])};Vi(e,g,"public");const m=b.useCallback((v,y)=>y.printOptions?.disableToolbarButton?v:[...v,{component:f.jsx(_9n,{options:y.printOptions}),componentName:"printExport"}],[]);nl(e,"exportMenu",m)},PXn=(e,t,n)=>{const r=t.filterModel??t.initialState?.filter?.filterModel??UW();return Y({},e,{filter:Y({filterModel:twe(r,t.disableMultipleColumnsFiltering,n)},$1t),visibleRowsLookup:{}})},DXn=e=>e.filteredRowsLookup;function f5e(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function kXn(){return $xe(Object.values)}const LXn=(e,t,n)=>{const r=Zu(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:mu,changeEvent:"filterModelChange"});const i=b.useCallback(()=>{e.current.setState(O=>{const T=mu(e),I=e.current.getFilterState(T),P=Y({},O,{filter:Y({},O.filter,I)}),N=f5e(e,P);return Y({},P,{visibleRowsLookup:N})}),e.current.publishEvent("filteredRowsSet")},[e]),o=b.useCallback((O,T)=>T==null||T.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),a=b.useCallback(O=>{const T=mu(e),I=[...T.items],P=I.findIndex(N=>N.id===O.id);P===-1?I.push(O):I[P]=O,e.current.setFilterModel(Y({},T,{items:I}),"upsertFilterItem")},[e]),s=b.useCallback(O=>{const T=mu(e),I=[...T.items];O.forEach(P=>{const N=I.findIndex(F=>F.id===P.id);N===-1?I.push(P):I[N]=P}),e.current.setFilterModel(Y({},T,{items:I}),"upsertFilterItems")},[e]),l=b.useCallback(O=>{const T=mu(e),I=T.items.filter(P=>P.id!==O.id);I.length!==T.items.length&&e.current.setFilterModel(Y({},T,{items:I}),"deleteFilterItem")},[e]),c=b.useCallback((O,T,I)=>{if(r.debug("Displaying filter panel"),O){const P=mu(e),N=P.items.filter(H=>{if(H.value!==void 0)return!(Array.isArray(H.value)&&H.value.length===0);const G=e.current.getColumn(H.field).filterOperators?.find($=>$.value===H.operator);return!(typeof G?.requiresFilterValue>"u"?!0:G?.requiresFilterValue)});let F;const L=N.find(H=>H.field===O),W=e.current.getColumn(O);L?F=N:t.disableMultipleColumnsFiltering?F=[Ege({field:O,operator:W.filterOperators[0].value},e)]:F=[...N,Ege({field:O,operator:W.filterOperators[0].value},e)],e.current.setFilterModel(Y({},P,{items:F}))}e.current.showPreferences(o1.filters,T,I)},[e,r,t.disableMultipleColumnsFiltering]),u=b.useCallback(()=>{r.debug("Hiding filter panel"),e.current.hidePreferences()},[e,r]),d=b.useCallback(O=>{const T=mu(e);T.logicOperator!==O&&e.current.setFilterModel(Y({},T,{logicOperator:O}),"changeLogicOperator")},[e]),p=b.useCallback(O=>{const T=mu(e);pm(T.quickFilterValues,O)||e.current.setFilterModel(Y({},T,{quickFilterValues:[...O]}))},[e]),h=b.useCallback((O,T)=>{mu(e)!==O&&(r.debug("Setting filter model"),e.current.updateControlState("filter",P_e(O,t.disableMultipleColumnsFiltering,e),T),e.current.unstable_applyFilters())},[e,r,t.disableMultipleColumnsFiltering]),g=b.useCallback(O=>{const T=twe(O,t.disableMultipleColumnsFiltering,e),I=n.hooks.useFilterValueGetter(e,t),P=t.filterMode==="client"?iHn(T,I,e,t.disableEval):null,N=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:P,filterModel:T??UW(),filterValueGetter:I});return Y({},N,{filterModel:T})},[e,n.hooks,t]),m={setFilterLogicOperator:d,unstable_applyFilters:i,deleteFilterItem:l,upsertFilterItem:a,upsertFilterItems:s,setFilterModel:h,showFilterPanel:c,hideFilterPanel:u,setQuickFilterValues:p,ignoreDiacritics:t.ignoreDiacritics,getFilterState:g};Vi(e,m,"public");const v=b.useCallback((O,T)=>{const I=mu(e);return I.items.forEach(N=>{delete N.fromInput}),!T.exportOnlyDirtyModels||t.filterModel!=null||t.initialState?.filter?.filterModel!=null||!pm(I,UW())?Y({},O,{filter:{filterModel:I}}):O},[e,t.filterModel,t.initialState?.filter?.filterModel]),y=b.useCallback((O,T)=>{const I=T.stateToRestore.filter?.filterModel;return I==null?O:(e.current.updateControlState("filter",P_e(I,t.disableMultipleColumnsFiltering,e),"restoreState"),Y({},O,{callbacks:[...O.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),M=b.useCallback((O,T)=>{if(T===o1.filters){const I=t.slots.filterPanel;return f.jsx(I,Y({},t.slotProps?.filterPanel))}return O},[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:C}=t,x=xp(kXn),w=b.useCallback(O=>{if(t.filterMode!=="client"||!O.isRowMatchingFilters||!O.filterModel.items.length&&!O.filterModel.quickFilterValues?.length)return $1t;const T=yf(e),I={},{isRowMatchingFilters:P}=O,N={},F={passingFilterItems:null,passingQuickFilterValues:null},L=x.current(e.current.state.rows.dataRowIdToModelLookup);for(let j=0;j<L.length;j+=1){const G=L[j],q=C?C(G):G.id;P(G,void 0,F);const $=aHn([F.passingFilterItems],[F.passingQuickFilterValues],O.filterModel,O.filterValueGetter,e,N);$||(I[q]=$)}const W="auto-generated-group-footer-root";return T[W]&&(I[W]=!0),{filteredRowsLookup:I,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,C,x]);nl(e,"columnMenu",o),nl(e,"exportState",v),nl(e,"restoreState",y),nl(e,"preferencePanel",M),KW(e,Vz,"filtering",w),KW(e,Vz,"visibleRowsLookupCreation",DXn);const S=b.useCallback(()=>{r.debug("onColUpdated - GridColumns changed, applying filters");const O=mu(e),T=CM(e),I=O.items.filter(P=>P.field&&T[P.field]);I.length<O.items.length&&e.current.setFilterModel(Y({},O,{items:I}))},[e,r]),A=b.useCallback(O=>{O==="filtering"&&e.current.unstable_applyFilters()},[e]),z=b.useCallback(()=>{e.current.setState(O=>Y({},O,{visibleRowsLookup:f5e(e,O)}))},[e]);Xn(e,"rowsSet",i),Xn(e,"columnsChange",S),Xn(e,"activeStrategyProcessorChange",A),Xn(e,"rowExpansionChange",z),Xn(e,"columnVisibilityModelChange",()=>{const O=mu(e);O.quickFilterValues?.length&&ept(O)&&i()}),$D(()=>{i()}),To(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,r,t.filterModel])},_Xn=e=>Y({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),NXn=(e,t)=>{const n=Zu(e,"useGridFocus"),r=b.useRef(null),i=e.current.rootElementRef.current!==null,o=b.useCallback((O,T)=>{O&&e.current.getRow(O.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(O.id,O.field),T)},[e]),a=b.useCallback((O,T)=>{const I=G1(e);I?.id===O&&I?.field===T||(e.current.setState(P=>(n.debug(`Focusing on cell with id=${O} and field=${T}`),Y({},P,{tabIndex:{cell:{id:O,field:T},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:O,field:T},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.getRow(O)&&(I&&o(I,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(O,T))))},[e,n,o]),s=b.useCallback((O,T={})=>{const I=G1(e);o(I,T),e.current.setState(P=>(n.debug(`Focusing on column header with colIndex=${O}`),Y({},P,{tabIndex:{columnHeader:{field:O},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:O},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,n,o]),l=b.useCallback((O,T={})=>{const I=G1(e);o(I,T),e.current.setState(P=>(n.debug(`Focusing on column header filter with colIndex=${O}`),Y({},P,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:O},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:O},cell:null,columnGroupHeader:null}})))},[e,n,o]),c=b.useCallback((O,T,I={})=>{const P=G1(e);P&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(P.id,P.field),I),e.current.setState(N=>Y({},N,{tabIndex:{columnGroupHeader:{field:O,depth:T},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:O,depth:T},columnHeader:null,columnHeaderFilter:null,cell:null}}))},[e]),u=b.useCallback(()=>L9(e),[e]),d=b.useCallback((O,T,I)=>{let P=e.current.getColumnIndex(T);const N=xl(e),F=SI(e,{pagination:t.pagination,paginationMode:t.paginationMode}),L=jD(e),W=[].concat(L.top||[],F.rows,L.bottom||[]);let H=W.findIndex($=>$.id===O);I==="right"?P+=1:I==="left"?P-=1:H+=1,P>=N.length?(H+=1,H<W.length&&(P=0)):P<0&&(H-=1,H>=0&&(P=N.length-1)),H=XO(H,0,W.length-1);const j=W[H];if(!j)return;const G=e.current.unstable_getCellColSpanInfo(j.id,P);G&&G.spannedByColSpan&&(I==="left"||I==="below"?P=G.leftVisibleCellIndex:I==="right"&&(P=G.rightVisibleCellIndex)),P=XO(P,0,N.length-1);const q=N[P];e.current.setCellFocus(j.id,q.field)},[e,t.pagination,t.paginationMode]),p=b.useCallback(({id:O,field:T})=>{e.current.setCellFocus(O,T)},[e]),h=b.useCallback((O,T)=>{T.key==="Enter"||T.key==="Tab"||T.key==="Shift"||k9(T.key)||e.current.setCellFocus(O.id,O.field)},[e]),g=b.useCallback(({field:O},T)=>{T.target===T.currentTarget&&e.current.setColumnHeaderFocus(O,T)},[e]),m=b.useCallback(({fields:O,depth:T},I)=>{if(I.target!==I.currentTarget)return;const P=L9(e);P!==null&&P.depth===T&&O.includes(P.field)||e.current.setColumnGroupHeaderFocus(O[0],T,I)},[e]),v=b.useCallback((O,T)=>{T.relatedTarget?.getAttribute("class")?.includes(Te.columnHeader)||(n.debug("Clearing focus"),e.current.setState(I=>Y({},I,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),y=b.useCallback(O=>{r.current=O},[]),M=b.useCallback(O=>{const T=r.current;r.current=null;const I=G1(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:O,cell:T}))return;if(!I){T&&e.current.setCellFocus(T.id,T.field);return}T?.id===I.id&&T?.field===I.field||e.current.getCellElement(I.id,I.field)?.contains(O.target)||(T?e.current.setCellFocus(T.id,T.field):(e.current.setState(F=>Y({},F,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),o(I,O)))},[e,o]),C=b.useCallback(O=>{if(O.cellMode==="view")return;const T=G1(e);(T?.id!==O.id||T?.field!==O.field)&&e.current.setCellFocus(O.id,O.field)},[e]),x=b.useCallback(()=>{const O=G1(e);if(O&&!e.current.getRow(O.id)){const T=O.id;let I=null;if(typeof T<"u"){const P=e.current.getRowElement(T),N=P?.dataset.rowindex?Number(P?.dataset.rowindex):0,F=SI(e,{pagination:t.pagination,paginationMode:t.paginationMode});I=F.rows[XO(N,0,F.rows.length-1)]?.id??null}e.current.setState(P=>Y({},P,{focus:{cell:I===null?null:{id:I,field:O.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),w=b.useMemo(()=>zw(x,0),[x]),S=en(()=>{const O=G1(e);if(!O)return;const T=SI(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(T.rows.find(N=>N.id===O.id)||T.rows.length===0)return;const P=xl(e);e.current.setState(N=>Y({},N,{tabIndex:{cell:{id:T.rows[0].id,field:P[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),A={setCellFocus:a,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:l},z={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:u};Vi(e,A,"public"),Vi(e,z,"private"),b.useEffect(()=>{const O=Is(e.current.rootElementRef.current);return O.addEventListener("mouseup",M),()=>{O.removeEventListener("mouseup",M)}},[e,i,M]),Xn(e,"columnHeaderBlur",v),Xn(e,"cellDoubleClick",p),Xn(e,"cellMouseDown",y),Xn(e,"cellKeyDown",h),Xn(e,"cellModeChange",C),Xn(e,"columnHeaderFocus",g),Xn(e,"columnGroupHeaderFocus",m),Xn(e,"rowsSet",w),Xn(e,"paginationModelChange",S)},zoe=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},Toe=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function FXn(e,t,n,r){const i=SP.selectors.hiddenCells(e.current.virtualizer.store.state);if(!i[t]?.[n])return t;const o=upt(e);let a=o.indexOf(t)+(r==="down"?1:-1);for(;a>=0&&a<o.length;){const s=o[a];if(!i[s]?.[n])return s;a+=r==="down"?1:-1}return t}const WXn=ea(wB,jD,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),qXn=(e,t)=>{const n=Zu(e,"useGridKeyboardNavigation"),r=ts(),i=b.useCallback(()=>WXn(e),[e]),o=t.signature!=="DataGrid"&&t.headerFilters,a=b.useCallback((v,y,M="left",C="up")=>{const x=F3(e),w=e.current.unstable_getCellColSpanInfo(y,v);w&&w.spannedByColSpan&&(M==="left"?v=w.leftVisibleCellIndex:M==="right"&&(v=w.rightVisibleCellIndex));const S=MB(e)[v],A=FXn(e,y,v,C),z=x.findIndex(O=>O.id===A);n.debug(`Navigating to cell row ${z}, col ${v}`),e.current.scrollToIndexes({colIndex:v,rowIndex:z}),e.current.setCellFocus(A,S)},[e,n]),s=b.useCallback((v,y)=>{n.debug(`Navigating to header col ${v}`),e.current.scrollToIndexes({colIndex:v});const M=e.current.getVisibleColumns()[v].field;e.current.setColumnHeaderFocus(M,y)},[e,n]),l=b.useCallback((v,y)=>{n.debug(`Navigating to header filter col ${v}`),e.current.scrollToIndexes({colIndex:v});const M=e.current.getVisibleColumns()[v].field;e.current.setColumnHeaderFilterFocus(M,y)},[e,n]),c=b.useCallback((v,y,M)=>{n.debug(`Navigating to header col ${v}`),e.current.scrollToIndexes({colIndex:v});const{field:C}=e.current.getVisibleColumns()[v];e.current.setColumnGroupHeaderFocus(C,y,M)},[e,n]),u=b.useCallback(v=>i()[v]?.id,[i]),d=b.useCallback((v,y)=>{const M=y.currentTarget.querySelector(`.${Te.columnHeaderTitleContainerContent}`);if(!!M&&M.contains(y.target)&&v.field!==GD.field)return;const x=i(),w=e.current.getViewportPageSize(),S=v.field?e.current.getColumnIndex(v.field):0,A=x.length>0?0:null,z=x.length-1,O=0,T=xl(e).length-1,I=SB(e);let P=!0;switch(y.key){case"ArrowDown":{o?l(S,y):A!==null&&a(S,u(A));break}case"ArrowRight":{const N=Toe({currentColIndex:S,firstColIndex:O,lastColIndex:T,isRtl:r});N!==null&&s(N,y);break}case"ArrowLeft":{const N=zoe({currentColIndex:S,firstColIndex:O,lastColIndex:T,isRtl:r});N!==null&&s(N,y);break}case"ArrowUp":{I>0&&c(S,I-1,y);break}case"PageDown":{A!==null&&z!==null&&a(S,u(Math.min(A+w,z)));break}case"Home":{s(O,y);break}case"End":{s(T,y);break}case"Enter":{(y.ctrlKey||y.metaKey)&&e.current.toggleColumnMenu(v.field);break}case" ":break;default:P=!1}P&&y.preventDefault()},[e,i,o,l,a,u,r,s,c]),p=b.useCallback((v,y)=>{const M=k8n(e)===v.field,C=L8n(e)===v.field;if(M||C||!k9(y.key))return;const x=i(),w=e.current.getViewportPageSize(),S=v.field?e.current.getColumnIndex(v.field):0,A=0,z=x.length-1,O=0,T=xl(e).length-1;let I=!0;switch(y.key){case"ArrowDown":{const P=u(A);P!=null&&a(S,P);break}case"ArrowRight":{const P=Toe({currentColIndex:S,firstColIndex:O,lastColIndex:T,isRtl:r});P!==null&&l(P,y);break}case"ArrowLeft":{const P=zoe({currentColIndex:S,firstColIndex:O,lastColIndex:T,isRtl:r});P!==null?l(P,y):e.current.setColumnHeaderFilterFocus(v.field,y);break}case"ArrowUp":{s(S,y);break}case"PageDown":{z!==null&&a(S,u(Math.min(A+w,z)));break}case"Home":{l(O,y);break}case"End":{l(T,y);break}case" ":break;default:I=!1}I&&y.preventDefault()},[e,i,l,r,s,a,u]),h=b.useCallback((v,y)=>{const M=L9(e);if(M===null)return;const{field:C,depth:x}=M,{fields:w,depth:S,maxDepth:A}=v,z=i(),O=e.current.getViewportPageSize(),T=e.current.getColumnIndex(C),I=C?e.current.getColumnIndex(C):0,P=0,N=z.length-1,F=0,L=xl(e).length-1;let W=!0;switch(y.key){case"ArrowDown":{S===A-1?s(T,y):c(T,x+1,y);break}case"ArrowUp":{S>0&&c(T,x-1,y);break}case"ArrowRight":{const H=w.length-w.indexOf(C)-1;T+H+1<=L&&c(T+H+1,x,y);break}case"ArrowLeft":{const H=w.indexOf(C);T-H-1>=F&&c(T-H-1,x,y);break}case"PageDown":{N!==null&&a(I,u(Math.min(P+O,N)));break}case"Home":{c(F,x,y);break}case"End":{c(L,x,y);break}case" ":break;default:W=!1}W&&y.preventDefault()},[e,i,s,c,a,u]),g=b.useCallback((v,y)=>{if(OB(y))return;const M=e.current.getCellParams(v.id,v.field);if(M.cellMode===va.Edit||!k9(y.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:y,cell:M}))return;const x=i();if(x.length===0)return;const w=e.current.getViewportPageSize(),S=v.field?e.current.getColumnIndex(v.field):0,A=x.findIndex(N=>N.id===v.id),z=0,O=x.length-1,T=0,I=xl(e).length-1;let P=!0;switch(y.key){case"ArrowDown":{A<O&&a(S,u(A+1),r?"right":"left","down");break}case"ArrowUp":{A>z?a(S,u(A-1)):o?l(S,y):s(S,y);break}case"ArrowRight":{const N=Toe({currentColIndex:S,firstColIndex:T,lastColIndex:I,isRtl:r});N!==null&&a(N,u(A),r?"left":"right");break}case"ArrowLeft":{const N=zoe({currentColIndex:S,firstColIndex:T,lastColIndex:I,isRtl:r});N!==null&&a(N,u(A),r?"right":"left");break}case"Tab":{y.shiftKey&&S>T?a(S-1,u(A),"left"):!y.shiftKey&&S<I&&a(S+1,u(A),"right");break}case" ":{if(v.field===rwe)break;const F=v.colDef;if(F&&(F.field===wHn||GGn(F.field)))break;!y.shiftKey&&A<O&&a(S,u(Math.min(A+w,O)));break}case"PageDown":{A<O&&a(S,u(Math.min(A+w,O)));break}case"PageUp":{const N=Math.max(A-w,z);N!==A&&N>=z?a(S,u(N)):s(S,y);break}case"Home":{y.ctrlKey||y.metaKey||y.shiftKey?a(T,u(z)):a(T,u(A));break}case"End":{y.ctrlKey||y.metaKey||y.shiftKey?a(I,u(O)):a(I,u(A));break}default:P=!1}P&&y.preventDefault()},[e,i,r,a,u,o,l,s]),m=b.useCallback((v,{event:y})=>y.key===" "?!1:v,[]);nl(e,"canStartEditing",m),Xn(e,"columnHeaderKeyDown",d),Xn(e,"headerFilterKeyDown",p),Xn(e,"columnGroupHeaderKeyDown",h),Xn(e,"cellKeyDown",g)},BXn=(e,t)=>{const n=Zu(e,"useGridRowCount"),r=Qt(e,swe),i=Qt(e,NR),o=Qt(e,nN),a=Qt(e,Hu),s=xp(()=>Hu(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:NR,changeEvent:"rowCountChange"});const c={setRowCount:b.useCallback(g=>{i!==g&&(n.debug("Setting 'rowCount' to",g),e.current.setState(m=>Y({},m,{pagination:Y({},m.pagination,{rowCount:g})})))},[e,n,i])};Vi(e,c,"public");const u=b.useCallback((g,m)=>{const v=NR(e);return!m.exportOnlyDirtyModels||t.rowCount!=null||t.initialState?.pagination?.rowCount!=null?Y({},g,{pagination:Y({},g.pagination,{rowCount:v})}):g},[e,t.rowCount,t.initialState?.pagination?.rowCount]),d=b.useCallback((g,m)=>{const v=m.stateToRestore.pagination?.rowCount?m.stateToRestore.pagination.rowCount:NR(e);return e.current.setState(y=>Y({},y,{pagination:Y({},y.pagination,{rowCount:v})})),g},[e]);nl(e,"exportState",u),nl(e,"restoreState",d);const p=b.useCallback(g=>{t.paginationMode==="client"||!s.current||g.pageSize!==s.current&&(s.current=g.pageSize,i===-1&&e.current.setPage(0))},[t.paginationMode,s,i,e]);Xn(e,"paginationModelChange",p),b.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const h=o.hasNextPage===!1;b.useEffect(()=>{h&&i===-1&&e.current.setRowCount(a.pageSize*a.page+r)},[e,r,h,i,a])},jXn=(e,t)=>{const n=Zu(e,"useGridPaginationMeta"),r=Qt(e,nN);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:nN,changeEvent:"paginationMetaChange"});const o={setPaginationMeta:b.useCallback(l=>{r!==l&&(n.debug("Setting 'paginationMeta' to",l),e.current.setState(c=>Y({},c,{pagination:Y({},c.pagination,{meta:l})})))},[e,n,r])};Vi(e,o,"public");const a=b.useCallback((l,c)=>{const u=nN(e);return!c.exportOnlyDirtyModels||t.paginationMeta!=null||t.initialState?.pagination?.meta!=null?Y({},l,{pagination:Y({},l.pagination,{meta:u})}):l},[e,t.paginationMeta,t.initialState?.pagination?.meta]),s=b.useCallback((l,c)=>{const u=c.stateToRestore.pagination?.meta?c.stateToRestore.pagination.meta:nN(e);return e.current.setState(d=>Y({},d,{pagination:Y({},d.pagination,{meta:u})})),l},[e]);nl(e,"exportState",a),nl(e,"restoreState",s),b.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},HXn=(e,t)=>{const n=Y({},vpt(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);bpt(n.pageSize,t.signature);const r=t.rowCount??t.initialState?.pagination?.rowCount??(t.paginationMode==="client"?e.rows?.totalRowCount:void 0),i=t.paginationMeta??t.initialState?.pagination?.meta??{};return Y({},e,{pagination:Y({},e.pagination,{paginationModel:n,rowCount:r,meta:i,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},VXn=(e,t)=>{jXn(e,t),TXn(e,t),BXn(e,t)},GXn=(e,t)=>Y({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}}),$Xn=(e,t)=>{const n=Zu(e,"useGridPreferencesPanel"),r=b.useCallback(()=>{e.current.setState(s=>{if(!s.preferencePanel.open)return s;n.debug("Hiding Preferences Panel");const l=Hz(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:l.openedPanelValue}),Y({},s,{preferencePanel:{open:!1}})})},[e,n]),i=b.useCallback((s,l,c)=>{n.debug("Opening Preferences Panel"),e.current.setState(u=>Y({},u,{preferencePanel:Y({},u.preferencePanel,{open:!0,openedPanelValue:s,panelId:l,labelId:c})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:s})},[n,e]);Vi(e,{showPreferences:i,hidePreferences:r},"public");const o=b.useCallback((s,l)=>{const c=Hz(e);return!l.exportOnlyDirtyModels||t.initialState?.preferencePanel!=null||c.open?Y({},s,{preferencePanel:c}):s},[e,t.initialState?.preferencePanel]),a=b.useCallback((s,l)=>{const c=l.stateToRestore.preferencePanel;return c!=null&&e.current.setState(u=>Y({},u,{preferencePanel:c})),s},[e]);nl(e,"exportState",o),nl(e,"restoreState",a)},kge=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},UXn=["id","field"],XXn=["id","field"],YXn=(e,t)=>{const[n,r]=b.useState({}),i=b.useRef(n),o=b.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:l,onCellModesModelChange:c}=t,u=L=>(...W)=>{t.editMode===kb.Cell&&L(...W)},d=b.useCallback((L,W)=>{const H=e.current.getCellParams(L,W);if(!e.current.isCellEditable(H))throw new Error(`MUI X: The cell with id=${L} and field=${W} is not editable.`)},[e]),p=b.useCallback((L,W,H)=>{if(e.current.getCellMode(L,W)!==H)throw new Error(`MUI X: The cell with id=${L} and field=${W} is not in ${H} mode.`)},[e]),h=b.useCallback((L,W)=>{if(!L.isEditable||L.cellMode===va.Edit)return;const H=Y({},L,{reason:J2.cellDoubleClick});e.current.publishEvent("cellEditStart",H,W)},[e]),g=b.useCallback((L,W)=>{if(L.cellMode===va.View||e.current.getCellMode(L.id,L.field)===va.View)return;const H=Y({},L,{reason:Wg.cellFocusOut});e.current.publishEvent("cellEditStop",H,W)},[e]),m=b.useCallback((L,W)=>{if(L.cellMode===va.Edit){if(W.which===229)return;let H;if(W.key==="Escape"?H=Wg.escapeKeyDown:W.key==="Enter"?H=Wg.enterKeyDown:W.key==="Tab"&&(H=W.shiftKey?Wg.shiftTabKeyDown:Wg.tabKeyDown,W.preventDefault()),H){const j=Y({},L,{reason:H});e.current.publishEvent("cellEditStop",j,W)}}else if(L.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:W,cellParams:L,editMode:"cell"}))return;if(tpt(W)?H=J2.printableKeyDown:rpt(W)?H=J2.pasteKeyDown:W.key==="Enter"?H=J2.enterKeyDown:(W.key==="Backspace"||W.key==="Delete")&&(H=J2.deleteKeyDown),H){const G=Y({},L,{reason:H,key:W.key});e.current.publishEvent("cellEditStart",G,W)}}},[e]),v=b.useCallback(L=>{const{id:W,field:H,reason:j}=L,G={id:W,field:H};(j===J2.printableKeyDown||j===J2.deleteKeyDown||j===J2.pasteKeyDown)&&(G.deleteValue=!0),e.current.startCellEditMode(G)},[e]),y=b.useCallback(L=>{const{id:W,field:H,reason:j}=L;e.current.runPendingEditCellValueMutation(W,H);let G;j===Wg.enterKeyDown?G="below":j===Wg.tabKeyDown?G="right":j===Wg.shiftTabKeyDown&&(G="left");const q=j==="escapeKeyDown";e.current.stopCellEditMode({id:W,field:H,ignoreModifications:q,cellToFocusAfter:G})},[e]),M=L=>async(...W)=>{if(L){const{id:H,field:j}=W[0];e.current.state.editRows[H][j]?.error||L(...W)}};Xn(e,"cellDoubleClick",u(h)),Xn(e,"cellFocusOut",u(g)),Xn(e,"cellKeyDown",u(m)),Xn(e,"cellEditStart",u(v)),Xn(e,"cellEditStop",u(y)),Ka(e,"cellEditStart",t.onCellEditStart),Ka(e,"cellEditStop",M(t.onCellEditStop));const C=b.useCallback((L,W)=>{const H=bu(e);return H[L]&&H[L][W]?va.Edit:va.View},[e]),x=en(L=>{const W=L!==t.cellModesModel;c&&W&&c(L,{api:e.current}),!(t.cellModesModel&&W)&&(r(L),i.current=L,e.current.publishEvent("cellModesModelChange",L))}),w=b.useCallback((L,W,H)=>{const j=Y({},i.current);if(H!==null)j[L]=Y({},j[L],{[W]:Y({},H)});else{const G=j[L],q=Lt(G,[W].map(Oz));j[L]=q,Object.keys(j[L]).length===0&&delete j[L]}x(j)},[x]),S=b.useCallback((L,W,H)=>{e.current.setState(j=>{const G=Y({},j.editRows);return H!==null?G[L]=Y({},G[L],{[W]:Y({},H)}):(delete G[L][W],Object.keys(G[L]).length===0&&delete G[L]),Y({},j,{editRows:G})})},[e]),A=b.useCallback(L=>{const{id:W,field:H}=L,j=Lt(L,UXn);d(W,H),p(W,H,va.View),w(W,H,Y({mode:va.Edit},j))},[d,p,w]),z=en(async L=>{const{id:W,field:H,deleteValue:j,initialValue:G}=L,q=e.current.getCellValue(W,H);let $=q;j?$=kge(e.current.getColumn(H)):G&&($=G);const U=e.current.getColumn(H),X=!!U.preProcessEditCellProps&&j;let Q={value:$,error:!1,isProcessingProps:X};if(S(W,H,Q),e.current.setCellFocus(W,H),X&&(Q=await Promise.resolve(U.preProcessEditCellProps({id:W,row:e.current.getRow(W),props:Q,hasChanged:$!==q})),e.current.getCellMode(W,H)===va.Edit)){const re=bu(e);S(W,H,Y({},Q,{value:re[W][H].value,isProcessingProps:!1}))}}),O=b.useCallback(L=>{const{id:W,field:H}=L,j=Lt(L,XXn);p(W,H,va.Edit),w(W,H,Y({mode:va.View},j))},[p,w]),T=en(async L=>{const{id:W,field:H,ignoreModifications:j,cellToFocusAfter:G="none"}=L;p(W,H,va.Edit),e.current.runPendingEditCellValueMutation(W,H);const q=()=>{S(W,H,null),w(W,H,null),G!=="none"&&e.current.moveFocusToRelativeCell(W,H,G)};if(j){q();return}const $=bu(e),{error:U,isProcessingProps:X}=$[W][H],Q=e.current.getRow(W);if(U||X){o.current[W][H].mode=va.Edit,w(W,H,{mode:va.Edit});return}const re=e.current.getRowWithUpdatedValuesFromCellEditing(W,H);if(t.dataSource?.updateRow){if(pm(Q,re)){q();return}const ee=()=>{o.current[W][H].mode=va.Edit,w(W,H,{mode:va.Edit})},se={rowId:W,updatedRow:re,previousRow:Q};try{await e.current.dataSource.editRow(se),q()}catch{ee()}}else if(a){const ee=se=>{o.current[W][H].mode=va.Edit,w(W,H,{mode:va.Edit}),s&&s(se)};try{Promise.resolve(a(re,Q,{rowId:W})).then(se=>{e.current.updateRows([se]),q()}).catch(ee)}catch(se){ee(se)}}else e.current.updateRows([re]),q()}),I=b.useCallback(async L=>{const{id:W,field:H,value:j,debounceMs:G,unstable_skipValueParser:q}=L;d(W,H),p(W,H,va.Edit);const $=e.current.getColumn(H),U=e.current.getRow(W);let X=j;$.valueParser&&!q&&(X=$.valueParser(j,U,$,e));let Q=bu(e),re=Y({},Q[W][H],{value:X,changeReason:G?"debouncedSetEditCellValue":"setEditCellValue"});if($.preProcessEditCellProps){const ee=j!==Q[W][H].value;re=Y({},re,{isProcessingProps:!0}),S(W,H,re),re=await Promise.resolve($.preProcessEditCellProps({id:W,row:U,props:re,hasChanged:ee}))}return e.current.getCellMode(W,H)===va.View?!1:(Q=bu(e),re=Y({},re,{isProcessingProps:!1}),re.value=$.preProcessEditCellProps?Q[W][H].value:X,S(W,H,re),Q=bu(e),!Q[W]?.[H]?.error)},[e,d,p,S]),P=b.useCallback((L,W)=>{const H=e.current.getColumn(W),j=bu(e),G=e.current.getRow(L);if(!j[L]||!j[L][W])return e.current.getRow(L);const{value:q}=j[L][W];return H.valueSetter?H.valueSetter(q,G,H,e):Y({},G,{[W]:q})},[e]),N={getCellMode:C,startCellEditMode:A,stopCellEditMode:O},F={setCellEditingEditCellValue:I,getRowWithUpdatedValuesFromCellEditing:P};Vi(e,N,"public"),Vi(e,F,"private"),b.useEffect(()=>{l&&x(l)},[l,x]),To(()=>{const L=yf(e),W=o.current;o.current=H1t(n),Object.entries(n).forEach(([H,j])=>{Object.entries(j).forEach(([G,q])=>{const $=W[H]?.[G]?.mode||va.View,U=L[H]?e.current.getRowId(L[H]):H;q.mode===va.Edit&&$===va.View?z(Y({id:U,field:G},q)):q.mode===va.View&&$===va.Edit&&T(Y({id:U,field:G},q))})})},[e,n,z,T])},KXn=["id"],QXn=["id"],ZXn=(e,t)=>{const[n,r]=b.useState({}),i=b.useRef(n),o=b.useRef({}),a=b.useRef({}),s=b.useRef(void 0),l=b.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:u,rowModesModel:d,onRowModesModelChange:p}=t,h=q=>(...$)=>{t.editMode===kb.Row&&q(...$)},g=b.useCallback((q,$)=>{const U=e.current.getCellParams(q,$);if(!e.current.isCellEditable(U))throw new Error(`MUI X: The cell with id=${q} and field=${$} is not editable.`)},[e]),m=b.useCallback((q,$)=>{if(e.current.getRowMode(q)!==$)throw new Error(`MUI X: The row with id=${q} is not in ${$} mode.`)},[e]),v=b.useCallback(q=>{const $=bu(e);return Object.values($[q]).some(U=>U.error)},[e]),y=b.useCallback((q,$)=>{if(!q.isEditable||e.current.getRowMode(q.id)===fs.Edit)return;const U=e.current.getRowParams(q.id),X=Y({},U,{field:q.field,reason:xC.cellDoubleClick});e.current.publishEvent("rowEditStart",X,$)},[e]),M=b.useCallback(q=>{l.current=q},[]),C=b.useCallback((q,$)=>{q.isEditable&&e.current.getRowMode(q.id)!==fs.View&&(l.current=null,s.current=setTimeout(()=>{if(l.current?.id!==q.id){if(!e.current.getRow(q.id)||e.current.getRowMode(q.id)===fs.View||v(q.id))return;const U=e.current.getRowParams(q.id),X=Y({},U,{field:q.field,reason:wv.rowFocusOut});e.current.publishEvent("rowEditStop",X,$)}}))},[e,v]);b.useEffect(()=>()=>{clearTimeout(s.current)},[]);const x=b.useCallback((q,$)=>{if(q.cellMode===fs.Edit){if($.which===229)return;let U;if($.key==="Escape")U=wv.escapeKeyDown;else if($.key==="Enter")U=wv.enterKeyDown;else if($.key==="Tab"){const X=MB(e).filter(Q=>e.current.getColumn(Q).type===zZ?!0:e.current.isCellEditable(e.current.getCellParams(q.id,Q)));if($.shiftKey?q.field===X[0]&&(U=wv.shiftTabKeyDown):q.field===X[X.length-1]&&(U=wv.tabKeyDown),$.preventDefault(),!U){const Q=X.findIndex(ee=>ee===q.field),re=X[$.shiftKey?Q-1:Q+1];e.current.setCellFocus(q.id,re)}}if(U){if(U!==wv.escapeKeyDown&&v(q.id))return;const X=Y({},e.current.getRowParams(q.id),{reason:U,field:q.field});e.current.publishEvent("rowEditStop",X,$)}}else if(q.isEditable){let U;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:$,cellParams:q,editMode:"row"}))return;if(tpt($)||rpt($)?U=xC.printableKeyDown:$.key==="Enter"?U=xC.enterKeyDown:($.key==="Backspace"||$.key==="Delete")&&(U=xC.deleteKeyDown),U){const Q=e.current.getRowParams(q.id),re=Y({},Q,{field:q.field,reason:U});e.current.publishEvent("rowEditStart",re,$)}}},[e,v]),w=b.useCallback(q=>{const{id:$,field:U,reason:X}=q,Q={id:$,fieldToFocus:U};(X===xC.printableKeyDown||X===xC.deleteKeyDown)&&(Q.deleteValue=!!U),e.current.startRowEditMode(Q)},[e]),S=b.useCallback(q=>{const{id:$,reason:U,field:X}=q;e.current.runPendingEditCellValueMutation($);let Q;U===wv.enterKeyDown?Q="below":U===wv.tabKeyDown?Q="right":U===wv.shiftTabKeyDown&&(Q="left");const re=U==="escapeKeyDown";e.current.stopRowEditMode({id:$,ignoreModifications:re,field:X,cellToFocusAfter:Q})},[e]);Xn(e,"cellDoubleClick",h(y)),Xn(e,"cellFocusIn",h(M)),Xn(e,"cellFocusOut",h(C)),Xn(e,"cellKeyDown",h(x)),Xn(e,"rowEditStart",h(w)),Xn(e,"rowEditStop",h(S)),Ka(e,"rowEditStart",t.onRowEditStart),Ka(e,"rowEditStop",t.onRowEditStop);const A=b.useCallback(q=>_pt(e,{rowId:q,editMode:t.editMode})?fs.Edit:fs.View,[e,t.editMode]),z=en(q=>{const $=q!==t.rowModesModel;p&&$&&p(q,{api:e.current}),!(t.rowModesModel&&$)&&(r(q),i.current=q,e.current.publishEvent("rowModesModelChange",q))}),O=b.useCallback((q,$)=>{const U=Y({},i.current);$!==null?U[q]=Y({},$):delete U[q],z(U)},[z]),T=b.useCallback((q,$)=>{e.current.setState(U=>{const X=Y({},U.editRows);return $!==null?X[q]=$:delete X[q],Y({},U,{editRows:X})})},[e]),I=b.useCallback((q,$,U)=>{e.current.setState(X=>{const Q=Y({},X.editRows);return U!==null?Q[q]=Y({},Q[q],{[$]:Y({},U)}):(delete Q[q][$],Object.keys(Q[q]).length===0&&delete Q[q]),Y({},X,{editRows:Q})})},[e]),P=b.useCallback(q=>{const{id:$}=q,U=Lt(q,KXn);m($,fs.View),O($,Y({mode:fs.Edit},U))},[m,O]),N=en(q=>{const{id:$,fieldToFocus:U,deleteValue:X,initialValue:Q}=q,re=e.current.getRow($),ee=Ef(e),se=ee.reduce((pe,te)=>{const ce=te.field;if(!e.current.getCellParams($,ce).isEditable)return pe;const ae=e.current.getColumn(ce);let ne=e.current.getCellValue($,ce);return U===ce&&(X||Q)&&(X?ne=kge(ae):Q&&(ne=Q)),pe[ce]={value:ne,error:!1,isProcessingProps:ae.editable&&!!ae.preProcessEditCellProps&&X},pe},{});a.current[$]=re,T($,se),U&&e.current.setCellFocus($,U),ee.filter(pe=>e.current.getCellParams($,pe.field).isEditable&&pe.editable&&!!pe.preProcessEditCellProps&&X).forEach(pe=>{const te=pe.field,ce=e.current.getCellValue($,te),oe=X?kge(pe):Q??ce;Promise.resolve(pe.preProcessEditCellProps({id:$,row:re,props:se[te],hasChanged:oe!==ce})).then(ae=>{if(e.current.getRowMode($)===fs.Edit){const ne=bu(e);I($,te,Y({},ae,{value:ne[$][te].value,isProcessingProps:!1}))}})})}),F=b.useCallback(q=>{const{id:$}=q,U=Lt(q,QXn);m($,fs.Edit),O($,Y({mode:fs.View},U))},[m,O]),L=en(async q=>{const{id:$,ignoreModifications:U,field:X,cellToFocusAfter:Q="none"}=q;e.current.runPendingEditCellValueMutation($);const re=()=>{Q!=="none"&&X&&e.current.moveFocusToRelativeCell($,X,Q),T($,null),O($,null),delete a.current[$]};if(U){re();return}const ee=bu(e),se=a.current[$];if(Object.values(ee[$]).some(ce=>ce.isProcessingProps)){o.current[$].mode=fs.Edit;return}if(v($)){o.current[$].mode=fs.Edit,O($,{mode:fs.Edit});return}const te=e.current.getRowWithUpdatedValuesFromRowEditing($);if(t.dataSource?.updateRow){if(pm(se,te)){re();return}const ce=()=>{o.current[$].mode=fs.Edit,O($,{mode:fs.Edit})},oe={rowId:$,updatedRow:te,previousRow:se};try{await e.current.dataSource.editRow(oe),re()}catch{ce()}}else if(c){const ce=oe=>{o.current[$]&&(o.current[$].mode=fs.Edit,O($,{mode:fs.Edit})),u&&u(oe)};try{Promise.resolve(c(te,se,{rowId:$})).then(oe=>{e.current.updateRows([oe]),re()}).catch(ce)}catch(oe){ce(oe)}}else e.current.updateRows([te]),re()}),W=b.useCallback(q=>{const{id:$,field:U,value:X,debounceMs:Q,unstable_skipValueParser:re}=q;g($,U);const ee=e.current.getColumn(U),se=e.current.getRow($);let pe=X;ee.valueParser&&!re&&(pe=ee.valueParser(X,se,ee,e));let te=bu(e),ce=Y({},te[$][U],{value:pe,changeReason:Q?"debouncedSetEditCellValue":"setEditCellValue"});return ee.preProcessEditCellProps||I($,U,ce),new Promise(oe=>{const ae=[];if(ee.preProcessEditCellProps){const ne=ce.value!==te[$][U].value;ce=Y({},ce,{isProcessingProps:!0}),I($,U,ce);const le=te[$],he=Lt(le,[U].map(Oz)),be=Promise.resolve(ee.preProcessEditCellProps({id:$,row:se,props:ce,hasChanged:ne,otherFieldsProps:he})).then(me=>{if(e.current.getRowMode($)===fs.View){oe(!1);return}te=bu(e),me=Y({},me,{isProcessingProps:!1}),me.value=ee.preProcessEditCellProps?te[$][U].value:pe,I($,U,me)});ae.push(be)}Object.entries(te[$]).forEach(([ne,le])=>{if(ne===U)return;const he=e.current.getColumn(ne);if(!he.preProcessEditCellProps)return;le=Y({},le,{isProcessingProps:!0}),I($,ne,le),te=bu(e);const be=te[$],me=Lt(be,[ne].map(Oz)),Me=Promise.resolve(he.preProcessEditCellProps({id:$,row:se,props:le,hasChanged:!1,otherFieldsProps:me})).then(Oe=>{if(e.current.getRowMode($)===fs.View){oe(!1);return}Oe=Y({},Oe,{isProcessingProps:!1}),I($,ne,Oe)});ae.push(Me)}),Promise.all(ae).then(()=>{e.current.getRowMode($)===fs.Edit?(te=bu(e),oe(!te[$][U].error)):oe(!1)})})},[e,g,I]),H=b.useCallback(q=>{const $=bu(e),U=e.current.getRow(q);if(!$[q])return e.current.getRow(q);let X=Y({},a.current[q],U);return Object.entries($[q]).forEach(([Q,re])=>{const ee=e.current.getColumn(Q);ee?.valueSetter?X=ee.valueSetter(re.value,X,ee,e):X[Q]=re.value}),X},[e]),j={getRowMode:A,startRowEditMode:P,stopRowEditMode:F},G={setRowEditingEditCellValue:W,getRowWithUpdatedValuesFromRowEditing:H};Vi(e,j,"public"),Vi(e,G,"private"),b.useEffect(()=>{d&&z(d)},[d,z]),To(()=>{const q=yf(e),$=o.current;o.current=H1t(n);const U=new Set([...Object.keys(n),...Object.keys($)]);Array.from(U).forEach(X=>{const Q=n[X]??{mode:fs.View},re=$[X]?.mode||fs.View,ee=q[X]?e.current.getRowId(q[X]):X;Q.mode===fs.Edit&&re===fs.View?N(Y({id:ee},Q)):Q.mode===fs.View&&re===fs.Edit&&L(Y({id:ee},Q))})},[e,n,N,L])},JXn=e=>Y({},e,{editRows:{}}),eYn=(e,t,n)=>{YXn(e,t),ZXn(e,t);const r=b.useRef({}),{isCellEditable:i}=t,o=n.hooks.useIsCellEditable(e,t),a=b.useCallback(g=>!o(g)||!g.colDef.editable||!g.colDef.renderEditCell?!1:i?i(g):!0,[i,o]),s=(g,m,v,y)=>{if(!v){y();return}if(r.current[g]||(r.current[g]={}),r.current[g][m]){const[x]=r.current[g][m];clearTimeout(x)}const M=()=>{const[x]=r.current[g][m];clearTimeout(x),y(),delete r.current[g][m]},C=setTimeout(()=>{y(),delete r.current[g][m]},v);r.current[g][m]=[C,M]};b.useEffect(()=>{const g=r.current;return()=>{Object.entries(g).forEach(([m,v])=>{Object.keys(v).forEach(y=>{const[M]=g[m][y];clearTimeout(M),delete g[m][y]})})}},[]);const l=b.useCallback((g,m)=>{if(r.current[g]){if(!m)Object.keys(r.current[g]).forEach(v=>{const[,y]=r.current[g][v];y()});else if(r.current[g][m]){const[,v]=r.current[g][m];v()}}},[]),c=b.useCallback(g=>{const{id:m,field:v,debounceMs:y}=g;return new Promise(M=>{s(m,v,y,async()=>{const C=t.editMode===kb.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(m,v)===va.Edit){const x=await C(g);M(x)}})})},[e,t.editMode]),u=b.useCallback((g,m)=>t.editMode===kb.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(g,m):e.current.getRowWithUpdatedValuesFromRowEditing(g),[e,t.editMode]),d=b.useCallback((g,m)=>bu(e)[g]?.[m]??null,[e]),p={isCellEditable:a,setEditCellValue:c,getRowWithUpdatedValues:u,unstable_getEditCellMeta:d},h={runPendingEditCellValueMutation:l};Vi(e,p,"public"),Vi(e,h,"private")},tYn=(e,t,n)=>{const r=!!t.dataSource;return n.current.caches.rows=b7({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),Y({},e,{rows:k1t({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},nYn=(e,t,n)=>{const r=Zu(e,"useGridRows"),i=b.useRef(Date.now()),o=b.useRef(t.rowCount),a=Qp(),{setRowIndex:s}=n.hooks.useGridRowsOverridableMethods(e,t),l=b.useCallback(j=>{const G=yf(e)[j];if(G)return G;const q=hb(e,j);return q&&xP(q)?{[qz]:j}:null},[e]),c=b.useCallback(j=>wP(e,j),[e]),u=b.useCallback(({cache:j,throttle:G})=>{const q=()=>{i.current=Date.now(),e.current.setState(U=>Y({},U,{rows:k1t({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Qc(e),previousTreeDepths:S_e(e),previousGroupsToFetch:pjn(e)})})),e.current.publishEvent("rowsSet")};if(a.clear(),e.current.caches.rows=j,!G){q();return}const $=t.throttleRowsMs-(Date.now()-i.current);if($>0){a.start($,q);return}q()},[t.throttleRowsMs,t.rowCount,t.loading,e,a]),d=b.useCallback(j=>{if(r.debug(`Updating all rows, new length ${j.length}`),!t.dataSource&&jz(e)){e.current.updateNonPivotRows(j,!1);return}const G=b7({rows:j,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),q=e.current.caches.rows;G.rowsBeforePartialUpdates=q.rowsBeforePartialUpdates,u({cache:G,throttle:!0})},[r,t.getRowId,t.dataSource,t.loading,t.rowCount,u,e]),p=b.useCallback(j=>{if(t.signature===cm.DataGrid&&j.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(!t.dataSource&&jz(e)){e.current.updateNonPivotRows(j);return}const G=O_e(e,j,t.getRowId),q=A_e({updates:G,getRowId:t.getRowId,previousCache:e.current.caches.rows});u({cache:q,throttle:!0})},[t.signature,t.dataSource,t.getRowId,u,e]),h=b.useCallback((j,G)=>{const q=O_e(e,j,t.getRowId),$=A_e({updates:q,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:G??[]});u({cache:$,throttle:!1})},[t.getRowId,u,e]),g=b.useCallback(j=>{r.debug(`Setting loading to ${j}`),e.current.setState(G=>Y({},G,{rows:Y({},G.rows,{loading:j})})),e.current.caches.rows.loadingPropBeforePartialUpdates=j},[e,r]),m=b.useCallback(()=>{const j=pO(e),G=yf(e);return new Map(j.map(q=>[q,G[q]??{}]))},[e]),v=b.useCallback(()=>BD(e),[e]),y=b.useCallback(()=>pO(e),[e]),M=b.useCallback(j=>{const{rowIdToIndexMap:G}=SI(e);return G.get(j)},[e]),C=b.useCallback((j,G)=>{const q=hb(e,j);if(!q)throw new Error(`MUI X: No row with id #${j} found.`);if(q.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const $=Y({},q,{childrenExpanded:G});e.current.setState(U=>Y({},U,{rows:Y({},U.rows,{tree:Y({},U.rows.tree,{[j]:$})})})),e.current.publishEvent("rowExpansionChange",$)},[e]),x=b.useCallback(()=>{const j=Y({},Qc(e)),G=q=>{const $=j[q];$?.type==="group"&&(j[q]=Y({},$,{childrenExpanded:!0}),$.children.forEach(G))};G(Dl),e.current.setState(q=>Y({},q,{rows:Y({},q.rows,{tree:j})})),e.current.publishEvent("rowExpansionChange",j[Dl])},[e]),w=b.useCallback(()=>{const j=Y({},Qc(e)),G=q=>{const $=j[q];$?.type==="group"&&(j[q]=Y({},$,{childrenExpanded:!1}),$.children.forEach(G))};G(Dl),e.current.setState(q=>Y({},q,{rows:Y({},q.rows,{tree:j})})),e.current.publishEvent("rowExpansionChange",j[Dl])},[e]),S=b.useCallback(j=>hb(e,j)??null,[e]),A=b.useCallback(({skipAutoGeneratedRows:j=!0,groupId:G,applySorting:q,applyFiltering:$,directChildrenOnly:U=!1})=>{const X=Qc(e);let Q;if(q){const re=X[G];if(!re)return[];const ee=CB(e);Q=[];const se=ee.findIndex(pe=>pe===G)+1;for(let pe=se;pe<ee.length&&(U?X[ee[pe]].depth===re.depth+1:X[ee[pe]].depth>re.depth);pe+=1){const te=ee[pe];(!j||!xP(X[te]))&&Q.push(te)}}else Q=Kxe(X,G,j,U);if($){const re=HD(e);Q=TZ(re)?Q:Q.filter(ee=>re[ee]!==!1)}return Q},[e]),z=b.useCallback((j,G)=>{if(t.signature===cm.DataGrid&&G.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(G.length===0)return;if(bB(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const $=Y({},Qc(e)),U=Y({},yf(e)),X=$[Dl],Q=[...X.children],re=new Set;for(let se=0;se<G.length;se+=1){const pe=G[se],te=wZ(pe,t.getRowId,"A row was provided without id when calling replaceRows()."),[ce]=Q.splice(j+se,1,te);re.has(ce)||(delete U[ce],delete $[ce]);const oe={id:te,depth:0,parent:Dl,type:"leaf",groupingKey:null};U[te]=pe,$[te]=oe,re.add(te)}$[Dl]=Y({},X,{children:Q});const ee=Q.filter(se=>$[se]?.type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=U,e.current.setState(se=>Y({},se,{rows:Y({},se.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,Q.length),dataRowIdToModelLookup:U,dataRowIds:ee,tree:$})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount]),O={getRow:l,setLoading:g,getRowId:c,getRowModels:m,getRowsCount:v,getAllRowIds:y,setRows:d,updateRows:p,getRowNode:S,getRowIndexRelativeToVisibleRows:M,unstable_replaceRows:z},T={setRowIndex:s,setRowChildrenExpansion:C,getRowGroupChildren:A,expandAllRows:x,collapseAllRows:w},I={updateNestedRows:h},P=b.useCallback(()=>{r.info("Row grouping pre-processing have changed, regenerating the row tree");let j;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?j=Y({},e.current.caches.rows,{updates:{type:"full",rows:pO(e)}}):j=b7({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),u({cache:j,throttle:!1})},[r,e,t.rows,t.getRowId,t.loading,t.rowCount,u]),N=xp(()=>t.dataSource),F=b.useCallback(j=>{if(t.dataSource&&t.dataSource!==N.current){N.current=t.dataSource;return}j==="rowTreeCreation"&&P()},[P,N,t.dataSource]),L=b.useCallback(()=>{e.current.getActiveStrategy(gy.RowTree)!==hjn(e)&&P()},[e,P]);Xn(e,"activeStrategyProcessorChange",F),Xn(e,"strategyAvailabilityChange",L);const W=b.useCallback(()=>{e.current.setState(j=>{const G=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Qc(e),treeDepths:S_e(e),dataRowIds:pO(e),dataRowIdToModelLookup:yf(e)});return Y({},j,{rows:Y({},j.rows,G,{totalTopLevelRowCount:D1t({tree:G.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);Mwe(e,"hydrateRows",W),Vi(e,O,"public"),Vi(e,T,t.signature===cm.DataGrid?"private":"public"),Vi(e,I,"private");const H=b.useRef(!0);b.useEffect(()=>{if(H.current){H.current=!1;return}let j=!1;t.rowCount!==o.current&&(j=!0,o.current=t.rowCount);const G=t.dataSource?fjn(e):t.rows,q=e.current.caches.rows.rowsBeforePartialUpdates===G,$=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,U=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;q&&($||(e.current.setState(X=>Y({},X,{rows:Y({},X.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),U||(e.current.setState(X=>Y({},X,{rows:Y({},X.rows,{totalRowCount:Math.max(t.rowCount||0,X.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,X.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!j)||(r.debug(`Updating all rows, new length ${G?.length}`),u({cache:b7({rows:G,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,r,u,e])},rYn=e=>{const t={[Dl]:Y({},mjn(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Dl,type:"leaf",groupingKey:null}}return{groupingName:Vz,tree:t,treeDepths:{0:e.length},dataRowIds:e}},iYn=({previousTree:e,actions:t})=>{const n=Y({},e),r={};for(let a=0;a<t.remove.length;a+=1){const s=t.remove[a];r[s]=!0,delete n[s]}for(let a=0;a<t.insert.length;a+=1){const s=t.insert[a];n[s]={id:s,depth:0,parent:Dl,type:"leaf",groupingKey:null}}const i=n[Dl];let o=[...i.children,...t.insert];return Object.values(r).length&&(o=o.filter(a=>!r[a])),n[Dl]=Y({},i,{children:o}),{groupingName:Vz,tree:n,treeDepths:{0:o.length},dataRowIds:o}},oYn=e=>e.updates.type==="full"?rYn(e.updates.rows):iYn({previousTree:e.previousTree,actions:e.updates.actions}),aYn=e=>{KW(e,Vz,"rowTreeCreation",oYn)};class g5e extends Error{}function sYn(e,t,n){const r=b.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),i=b.useCallback(h=>{const g=e.current.getRow(h);if(!g)throw new g5e(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:g}},[e]),o=b.useCallback((h,g,m,{cellMode:v,colDef:y,hasFocus:M,rowNode:C,tabIndex:x,value:w,formattedValue:S})=>{let A=m[g];w!==void 0?A=w:y?.valueGetter&&(A=y.valueGetter(A,m,y,e));let z=A;S!==void 0?z=S:y?.valueFormatter&&(z=y.valueFormatter(A,m,y,e));const O={id:h,field:g,row:m,rowNode:C,colDef:y,cellMode:v,hasFocus:M,tabIndex:x,value:A,formattedValue:z,isEditable:!1,api:e.current};return O.isEditable=y&&e.current.isCellEditable(O),O},[e]),a=b.useCallback((h,g)=>{const m=e.current.getRow(h),v=hb(e,h);if(!m||!v)throw new g5e(`No row with id #${h} found`);const y=G1(e),M=uwe(e),C=e.current.getCellMode(h,g);return e.current.getCellParamsForRow(h,g,m,{colDef:t.listView&&t.listViewColumn?.field===g?K1t(e):e.current.getColumn(g),rowNode:v,hasFocus:y!==null&&y.field===g&&y.id===h,tabIndex:M&&M.field===g&&M.id===h?0:-1,cellMode:C})},[e,t.listView,t.listViewColumn?.field]),s=b.useCallback(h=>e.current.rootElementRef.current?W7n(e.current.rootElementRef.current,h):null,[e]),l=b.useCallback(h=>e.current.rootElementRef.current?q7n(e.current.rootElementRef.current,h):null,[e]),c=b.useCallback((h,g)=>e.current.rootElementRef.current?B7n(e.current.rootElementRef.current,{id:h,field:g}):null,[e]),u=n.hooks.useGridParamsOverridableMethods(e),d={getCellValue:u.getCellValue,getCellParams:a,getCellElement:c,getRowValue:u.getRowValue,getRowFormattedValue:u.getRowFormattedValue,getRowParams:i,getRowElement:l,getColumnHeaderParams:r,getColumnHeaderElement:s},p={getCellParamsForRow:o};Vi(e,d,"public"),Vi(e,p,"private")}const cF={type:"include",ids:new Set},lYn=(e,t)=>Y({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??cF:cF}),cYn=(e,t)=>{const n=Zu(e,"useGridSelection"),r=b.useCallback(q=>(...$)=>{t.rowSelection&&q(...$)},[t.rowSelection]),i=Qt(e,bB)>1,o=t.signature!==cm.DataGrid&&(t.rowSelectionPropagation?.parents||t.rowSelectionPropagation?.descendants)&&i,a=b.useMemo(()=>t.rowSelectionModel,[t.rowSelectionModel]),s=b.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:a,propOnChange:t.onRowSelectionModelChange,stateSelector:jg,changeEvent:"rowSelectionChange"});const{checkboxSelection:l,disableRowSelectionOnClick:c,isRowSelectable:u}=t,d=cwe(t),p=Qt(e,Qc),h=b.useCallback(q=>{let $=q;const U=s.current??q,X=e.current.isRowSelected(q);if(X){const Q=YO(e),re=Q.findIndex(se=>se===U),ee=Q.findIndex(se=>se===$);if(re===ee)return;re>ee?$=Q[ee+1]:$=Q[ee-1]}s.current=q,e.current.selectRowRange({startId:U,endId:$},!X)},[e]),g=en(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?xpt(e):YO(e)),m=b.useCallback((q,$)=>{if(t.signature===cm.DataGrid&&!d&&(q.type!=="include"||q.ids.size>1))throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
`));jg(e)!==q&&(n.debug("Setting selection model"),e.current.setState(X=>Y({},X,{rowSelection:t.rowSelection?q:cF}),$))},[e,n,t.rowSelection,t.signature,d]),v=b.useCallback(q=>xB(e).has(q),[e]),y=b.useCallback(q=>{if(t.rowSelection===!1||u&&!u(e.current.getRowParams(q)))return!1;const $=hb(e,q);return!($?.type==="footer"||$?.type==="pinnedRow")},[e,t.rowSelection,u]),M=b.useCallback(()=>hpt(e),[e]),C=b.useCallback((q,$=!0,U=!1)=>{if(e.current.isRowSelectable(q))if(s.current=q,U){n.debug(`Setting selection for row ${q}`);const X={type:"include",ids:new Set},Q=re=>{X.ids.add(re)};$&&(Q(q),o&&Y4(e,p,q,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Q)),e.current.setRowSelectionModel(X,"singleRowSelection")}else{n.debug(`Toggling selection for row ${q}`);const X=jg(e),Q={type:X.type,ids:new Set(X.ids)},re=KC(Q);re.unselect(q);const ee=te=>{re.select(te)},se=te=>{re.unselect(te)};$?(ee(q),o&&Y4(e,p,q,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,ee)):o&&F_e(e,p,q,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,se),(Q.type==="include"&&Q.ids.size<2||d)&&e.current.setRowSelectionModel(Q,"singleRowSelection")}},[e,n,o,p,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,d]),x=b.useCallback((q,$=!0,U=!1)=>{if(n.debug("Setting selection for several rows"),t.rowSelection===!1)return;const X=new Set;for(let se=0;se<q.length;se+=1){const pe=q[se];e.current.isRowSelectable(pe)&&X.add(pe)}const Q=jg(e);let re;if(U){if(re={type:"include",ids:X},$){const se=KC(re);if(o){const pe=te=>{se.select(te)};for(const te of X)Y4(e,p,te,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,pe)}}else re.ids=new Set;if(Q.type===re.type&&re.ids.size===Q.ids.size&&Array.from(re.ids).every(se=>Q.ids.has(se)))return}else{re={type:Q.type,ids:new Set(Q.ids)};const se=KC(re),pe=ce=>{se.select(ce)},te=ce=>{se.unselect(ce)};for(const ce of X)$?(se.select(ce),o&&Y4(e,p,ce,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,pe)):(te(ce),o&&F_e(e,p,ce,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,te))}(re.type==="include"&&re.ids.size<2||d)&&e.current.setRowSelectionModel(re,"multipleRowsSelection")},[n,o,d,e,p,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,t.rowSelection]),w=b.useCallback(q=>{if(!i||!o||q.type==="exclude"||q.ids.size===0&&q.type==="include")return q;const $={type:q.type,ids:new Set(q.ids)},U=KC($),X=Q=>{U.select(Q)};for(const Q of q.ids)Y4(e,p,Q,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,X,U);return $},[e,p,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,i,o]),S=b.useCallback(({startId:q,endId:$},U=!0,X=!1)=>{if(!e.current.getRow(q)||!e.current.getRow($))return;n.debug(`Expanding selection from row ${q} to row ${$}`);const Q=YO(e),re=Q.indexOf(q),ee=Q.indexOf($),[se,pe]=re>ee?[ee,re]:[re,ee],te=Q.slice(se,pe+1);e.current.selectRows(te,U,X)},[e,n]),A={selectRow:C,setRowSelectionModel:m,getSelectedRows:M,isRowSelected:v,isRowSelectable:y},z={selectRows:x,selectRowRange:S,getPropagatedRowSelectionModel:w};Vi(e,A,"public"),Vi(e,z,t.signature===cm.DataGrid?"private":"public");const O=b.useRef(!0),T=b.useCallback((q=!1)=>{if(O.current)return;const $=jg(e),U=yf(e),X=Qc(e),Q=HD(e),re=ce=>t.filterMode==="server"?!U[ce]:!X[ce]||Q[ce]===!1,ee={type:$.type,ids:new Set($.ids)},se=KC(ee);let pe=!1;for(const ce of $.ids){if(re(ce)){if(t.keepNonExistentRowsSelected)continue;se.unselect(ce),pe=!0;continue}if(!t.rowSelectionPropagation?.parents)continue;const oe=p[ce];if(oe?.type==="group"){if(oe.isAutoGenerated){se.unselect(ce),pe=!0;continue}oe.children.every(ne=>Q[ne]===!1)||(se.unselect(ce),pe=!0)}}const te=i&&t.rowSelectionPropagation?.parents&&(ee.ids.size>0||ee.type==="exclude");if(pe||te&&!q)if(te)if(ee.type==="exclude"){const ce=g(),oe=[];for(let ae=0;ae<ce.length;ae+=1){const ne=ce[ae];(t.keepNonExistentRowsSelected||!re(ne))&&se.has(ne)&&oe.push(ne)}e.current.selectRows(oe,!0,!0)}else e.current.selectRows(Array.from(ee.ids),!0,!0);else e.current.setRowSelectionModel(ee,"multipleRowsSelection")},[e,i,t.rowSelectionPropagation?.parents,t.keepNonExistentRowsSelected,t.filterMode,p,g]),I=b.useCallback((q,$)=>{const U=$.metaKey||$.ctrlKey,X=!l&&!U&&!cHn($),Q=!d||X,re=e.current.isRowSelected(q),pe=RZ(e)>1&&Q||!re;e.current.selectRow(q,pe,Q)},[e,d,l]),P=b.useCallback((q,$)=>{if(c)return;const U=$.target.closest(`.${Te.cell}`)?.getAttribute("data-field");U===GD.field||U===rwe||U&&e.current.getColumn(U)?.type===zZ||hb(e,q.id).type==="pinnedRow"||($.shiftKey&&d?h(q.id):I(q.id,$))},[c,d,e,h,I]),N=b.useCallback((q,$)=>{d&&$.shiftKey&&window.getSelection()?.removeAllRanges()},[d]),F=b.useCallback((q,$)=>{d&&$.nativeEvent.shiftKey?h(q.id):e.current.selectRow(q.id,q.value,!d)},[e,h,d]),L=b.useCallback(q=>{const $=mu(e),U=cpt(e),X=$.items.length>0||U?.some(Q=>Q.length);!t.isRowSelectable&&!t.checkboxSelectionVisibleOnly&&(!i||t.rowSelectionPropagation?.descendants)&&!X&&!t.disableRowSelectionExcludeModel?e.current.setRowSelectionModel({type:q?"exclude":"include",ids:new Set},"multipleRowsSelection"):e.current.selectRows(g(),q)},[e,g,t.checkboxSelectionVisibleOnly,t.isRowSelectable,t.rowSelectionPropagation?.descendants,t.disableRowSelectionExcludeModel,i]),W=b.useCallback(q=>{L(q.value)},[L]),H=b.useCallback((q,$)=>{if(e.current.getCellMode(q.id,q.field)!==va.Edit&&!OB($)){if(k9($.key)&&$.shiftKey){const U=G1(e);if(U&&U.id!==q.id){$.preventDefault();const X=e.current.isRowSelected(U.id);if(!d){e.current.selectRow(U.id,!X,!0);return}const Q=e.current.getRowIndexRelativeToVisibleRows(U.id),re=e.current.getRowIndexRelativeToVisibleRows(q.id);let ee,se;Q>re?X?(ee=re,se=Q-1):(ee=re,se=Q):X?(ee=Q+1,se=re):(ee=Q,se=re);const pe=SI(e),te=[];for(let ce=ee;ce<=se;ce+=1)te.push(pe.rows[ce].id);e.current.selectRows(te,!X);return}}if($.key===" "&&$.shiftKey){$.preventDefault(),I(q.id,$);return}String.fromCharCode($.keyCode)==="A"&&($.ctrlKey||$.metaKey)&&($.preventDefault(),d&&L(!0))}},[e,d,I,L]),j=en(()=>{if(!t.rowSelection){e.current.setRowSelectionModel(cF);return}if(a===void 0)return;if(!o||!i||a.type==="include"&&a.ids.size===0){e.current.setRowSelectionModel(a);return}const q=e.current.getPropagatedRowSelectionModel(a);if(q.type!==a.type||q.ids.size!==a.ids.size||!Array.from(a.ids).every($=>q.ids.has($))){e.current.setRowSelectionModel(q);return}e.current.setRowSelectionModel(a)});Xn(e,"sortedRowsSet",r(()=>T(!0))),Xn(e,"filteredRowsSet",r(()=>T())),Xn(e,"rowClick",r(P)),Xn(e,"rowSelectionCheckboxChange",r(F)),Xn(e,"headerSelectionCheckboxChange",W),Xn(e,"cellMouseDown",r(N)),Xn(e,"cellKeyDown",r(H)),b.useEffect(()=>{j()},[e,a,t.rowSelection,j]);const G=a!=null;b.useEffect(()=>{if(G||!t.rowSelection||typeof y!="function")return;const q=jg(e);if(q.type!=="include")return;const $=new Set;for(const U of q.ids)y(U)&&$.add(U);$.size<q.ids.size&&e.current.setRowSelectionModel({type:q.type,ids:$})},[e,y,G,t.rowSelection]),b.useEffect(()=>{if(!t.rowSelection||G)return;const q=jg(e);!d&&(q.type==="include"&&q.ids.size>1||q.type==="exclude")&&e.current.setRowSelectionModel(cF)},[e,d,l,G,t.rowSelection]),b.useEffect(()=>{r(T)},[T,r]),b.useEffect(()=>{O.current&&(O.current=!1)},[])},uYn=e=>{const{classes:t}=e;return b.useMemo(()=>Yt({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},lo,t),[t])},dYn=(e,t)=>{const n={classes:t.classes},r=uYn(n),i=b.useCallback(o=>{const a=Y({},GD,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,l=o.lookup[Lg]!=null;return s&&!l?(o.lookup[Lg]=a,o.orderedFields=[Lg,...o.orderedFields]):!s&&l?(delete o.lookup[Lg],o.orderedFields=o.orderedFields.filter(c=>c!==Lg)):s&&l&&(o.lookup[Lg]=Y({},a,o.lookup[Lg]),t.columns.some(c=>c.field===Lg)||(o.orderedFields=[Lg,...o.orderedFields.filter(c=>c!==Lg)])),o},[e,r,t.columns,t.checkboxSelection]);nl(e,"hydrateColumns",i)},pYn=(e,t)=>{const n=t.sortModel??t.initialState?.sorting?.sortModel??[];return Y({},e,{sorting:{sortModel:q1t(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},hYn=(e,t)=>{const n=Zu(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Qh,changeEvent:"sortModelChange"});const r=b.useCallback((w,S)=>{const A=Qh(e),z=A.findIndex(T=>T.field===w);let O=[...A];return z>-1?S?.sort==null?O.splice(z,1):O.splice(z,1,S):O=[...A,S],O},[e]),i=b.useCallback((w,S)=>{const z=Qh(e).find(O=>O.field===w.field);if(z){const O=S===void 0?I_e(w.sortingOrder??t.sortingOrder,z.sort):S;return O===void 0?void 0:Y({},z,{sort:O})}return{field:w.field,sort:S===void 0?I_e(w.sortingOrder??t.sortingOrder):S}},[e,t.sortingOrder]),o=b.useCallback((w,S)=>S==null||S.sortable===!1||t.disableColumnSorting?w:(S.sortingOrder||t.sortingOrder).some(z=>!!z)?[...w,"columnMenuSortItem"]:w,[t.sortingOrder,t.disableColumnSorting]),a=b.useCallback(()=>{e.current.setState(w=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),Y({},w,{sorting:Y({},w.sorting,{sortedRows:Kxe(Qc(e),Dl,!1)})});const S=Qh(e),A=Bjn(S,e),z=e.current.applyStrategyProcessor("sorting",{sortRowList:A});return Y({},w,{sorting:Y({},w.sorting,{sortedRows:z})})}),e.current.publishEvent("sortedRowsSet")},[e,n,t.sortingMode]),s=b.useCallback(w=>{Qh(e)!==w&&(n.debug("Setting sort model"),e.current.setState(R_e(w,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),l=b.useCallback((w,S,A)=>{const z=e.current.getColumn(w),O=i(z,S);let T;!A||t.disableMultipleColumnsSorting?T=O?.sort==null?[]:[O]:T=r(z.field,O),e.current.setSortModel(T)},[e,r,i,t.disableMultipleColumnsSorting]),c=b.useCallback(()=>Qh(e),[e]),u=b.useCallback(()=>iwe(e).map(S=>S.model),[e]),d=b.useCallback(()=>CB(e),[e]),p=b.useCallback(w=>e.current.getSortedRowIds()[w],[e]);Vi(e,{getSortModel:c,getSortedRows:u,getSortedRowIds:d,getRowIdFromRowIndex:p,setSortModel:s,sortColumn:l,applySorting:a},"public");const g=b.useCallback((w,S)=>{const A=Qh(e);return!S.exportOnlyDirtyModels||t.sortModel!=null||t.initialState?.sorting?.sortModel!=null||A.length>0?Y({},w,{sorting:{sortModel:A}}):w},[e,t.sortModel,t.initialState?.sorting?.sortModel]),m=b.useCallback((w,S)=>{const A=S.stateToRestore.sorting?.sortModel;return A==null?w:(e.current.setState(R_e(A,t.disableMultipleColumnsSorting)),Y({},w,{callbacks:[...w.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),v=b.useCallback(w=>{const S=Qc(e),A=S[Dl],z=w.sortRowList?w.sortRowList(A.children.map(O=>S[O])):[...A.children];return A.footerId!=null&&z.push(A.footerId),z},[e]);nl(e,"exportState",g),nl(e,"restoreState",m),KW(e,Vz,"sorting",v);const y=b.useCallback(({field:w,colDef:S},A)=>{if(!S.sortable||t.disableColumnSorting)return;const z=t.multipleColumnsSortingMode==="always"||A.shiftKey||A.metaKey||A.ctrlKey;l(w,void 0,z)},[l,t.disableColumnSorting,t.multipleColumnsSortingMode]),M=b.useCallback(({field:w,colDef:S},A)=>{!S.sortable||t.disableColumnSorting||A.key==="Enter"&&!A.ctrlKey&&!A.metaKey&&l(w,void 0,t.multipleColumnsSortingMode==="always"||A.shiftKey)},[l,t.disableColumnSorting,t.multipleColumnsSortingMode]),C=b.useCallback(()=>{const w=Qh(e),S=CM(e);if(w.length>0){const A=w.filter(z=>S[z.field]);A.length<w.length&&e.current.setSortModel(A)}},[e]),x=b.useCallback(w=>{w==="sorting"&&e.current.applySorting()},[e]);nl(e,"columnMenu",o),Xn(e,"columnHeaderClick",y),Xn(e,"columnHeaderKeyDown",M),Xn(e,"rowsSet",e.current.applySorting),Xn(e,"columnsChange",C),Xn(e,"activeStrategyProcessorChange",x),$D(()=>{e.current.applySorting()}),To(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function m5e(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:i}=e,o=i+r;if(r>t)return i;if(o-t>n)return o-t;if(i<n)return i}const fYn=(e,t)=>{const n=ts(),r=Zu(e,"useGridScroll"),i=e.current.columnHeadersContainerRef,o=e.current.virtualScrollerRef,a=Qt(e,F3),s=b.useCallback(d=>{const p=Ys(e),h=BD(e),g=xl(e);if(!(d.rowIndex==null)&&h===0||g.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let v={};if(d.colIndex!==void 0){const y=N3(e);let M;if(typeof d.rowIndex<"u"){const C=a[d.rowIndex]?.id,x=e.current.unstable_getCellColSpanInfo(C,d.colIndex);x&&!x.spannedByColSpan&&(M=x.cellProps.width)}typeof M>"u"&&(M=g[d.colIndex].computedWidth),v.left=m5e({containerSize:p.viewportOuterSize.width,scrollPosition:Math.abs(o.current.scrollLeft),elementSize:M,elementOffset:y[d.colIndex]})}if(d.rowIndex!==void 0){const y=Yxe(e),M=t8n(e),C=Mpt(e),x=t.pagination?d.rowIndex-M*C:d.rowIndex,w=y.positions[x+1]?y.positions[x+1]-y.positions[x]:y.currentPageTotalHeight-y.positions[x];v.top=m5e({containerSize:p.viewportInnerSize.height,scrollPosition:o.current.scrollTop,elementSize:w,elementOffset:y.positions[x]})}return v=e.current.unstable_applyPipeProcessors("scrollToIndexes",v,d),typeof v.left<"u"||typeof v.top<"u"?(e.current.scroll(v),!0):!1},[r,e,o,t.pagination,a]),l=b.useCallback(d=>{if(o.current&&d.left!==void 0&&i.current){const p=n?-1:1;i.current.scrollLeft=d.left,o.current.scrollLeft=p*d.left,r.debug(`Scrolling left: ${d.left}`)}o.current&&d.top!==void 0&&(o.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[o,n,i,r]),c=b.useCallback(()=>o?.current?{top:o.current.scrollTop,left:o.current.scrollLeft}:{top:0,left:0},[o]);Vi(e,{scroll:l,scrollToIndexes:s,getScrollPosition:c},"public")};function gYn(e,t){Ka(e,"columnHeaderClick",t.onColumnHeaderClick),Ka(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Ka(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Ka(e,"columnHeaderOver",t.onColumnHeaderOver),Ka(e,"columnHeaderOut",t.onColumnHeaderOut),Ka(e,"columnHeaderEnter",t.onColumnHeaderEnter),Ka(e,"columnHeaderLeave",t.onColumnHeaderLeave),Ka(e,"cellClick",t.onCellClick),Ka(e,"cellDoubleClick",t.onCellDoubleClick),Ka(e,"cellKeyDown",t.onCellKeyDown),Ka(e,"preferencePanelClose",t.onPreferencePanelClose),Ka(e,"preferencePanelOpen",t.onPreferencePanelOpen),Ka(e,"menuOpen",t.onMenuOpen),Ka(e,"menuClose",t.onMenuClose),Ka(e,"rowDoubleClick",t.onRowDoubleClick),Ka(e,"rowClick",t.onRowClick),Ka(e,"stateChange",t.onStateChange)}const Q4={width:0,height:0},mYn={isReady:!1,root:Q4,viewportOuterSize:Q4,viewportInnerSize:Q4,contentSize:Q4,minimumSize:Q4,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},vYn=(e,t,n)=>{const r=mYn,i=yB(n);return Y({},e,{dimensions:Y({},r,MYn(t,n,i,SZ(n)))})},bYn=rr(xl,N3,(e,t)=>{const n=e.length;return n===0?0:iht(t[n-1]+e[n-1].computedWidth,1)});function yYn(e,t){const n=e.current.virtualizer,r=n.api.updateDimensions,i=n.api.getViewportPageSize,a={getRootDimensions:b.useCallback(()=>Ys(e),[e])},s={updateDimensions:r,getViewportPageSize:i};Vi(e,a,"public"),Vi(e,s,"private"),Ka(e,"rootMount",c=>{v5e(c,Ys(e))}),Ka(e,"debouncedResize",t.onResize),Tge(e.current.store,c=>c.dimensions,(c,u)=>{e.current.rootElementRef.current&&v5e(e.current.rootElementRef.current,u),CYn(u.viewportInnerSize,c.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",u.viewportInnerSize),e.current.publishEvent("debouncedResize",u.root)})}function v5e(e,t){const n=(r,i)=>e.style.setProperty(r,i);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function MYn(e,t,n,r){const i=N1t(e.rowHeight,H9.rowHeight);return{rowHeight:Math.floor(i*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*n),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*n),columnsTotalWidth:bYn(t),headersTotalHeight:AB(t,e),leftPinnedWidth:r.left.reduce((o,a)=>o+a.computedWidth,0),rightPinnedWidth:r.right.reduce((o,a)=>o+a.computedWidth,0)}}function CYn(e,t){return e.width===t.width&&e.height===t.height}const xYn=(e,t,n)=>{const r=ojn(n),i=BD(n),o=VD(n),a=Math.min(o.enabled?o.paginationModel.pageSize:i,i);return Y({},e,{rowsMeta:{currentPageTotalHeight:a*r,positions:Array.from({length:a},(s,l)=>l*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},wYn=(e,t)=>{const n=e.current.virtualizer,{getRowHeight:r,setLastMeasuredRowIndex:i,storeRowHeightMeasurement:o,resetRowHeights:a,hydrateRowsMeta:s,observeRowHeight:l,rowHasAutoHeight:c,getRowHeightEntry:u,getLastMeasuredRowIndex:d}=n.api.rowsMeta;Mwe(e,"rowHeight",s);const p={unstable_getRowHeight:r,unstable_setLastMeasuredRowIndex:i,unstable_storeRowHeightMeasurement:o,resetRowHeights:a},h={hydrateRowsMeta:s,observeRowHeight:l,rowHasAutoHeight:c,getRowHeightEntry:u,getLastMeasuredRowIndex:d};Vi(e,p,"public"),Vi(e,h,"private")},SYn=e=>{const t=b.useCallback((i={})=>e.current.unstable_applyPipeProcessors("exportState",{},i),[e]),n=b.useCallback(i=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:i}).callbacks.forEach(a=>{a()})},[e]);Vi(e,{exportState:t,restoreState:n},"public")},AYn=e=>{const t=e.current.virtualizer,n=t.api.resetColSpan,r=t.api.getCellColSpanInfo,i=t.api.calculateColSpan,o={unstable_getCellColSpanInfo:r},a={resetColSpan:n,calculateColSpan:i};Vi(e,o,"public"),Vi(e,a,"private"),Xn(e,"columnOrderChange",n)},OYn=["groupId","children"],Cwe=e=>{const t={};for(let n=0;n<e.length;n+=1){const r=e[n];if(G1t(r))continue;const{groupId:i,children:o}=r,a=Lt(r,OYn);if(!i)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const s=Y({},a,{groupId:i}),l=Cwe(o);if(l[i]!==void 0||t[i]!==void 0)throw new Error(`MUI X: The groupId ${i} is used multiple times in the columnGroupingModel.`);Object.assign(t,l),t[i]=s}return t},lht=(e,t,n)=>{if(G1t(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
`));n[e.field]=t;return}const{groupId:r,children:i}=e;i.forEach(o=>{lht(o,[...t,r],n)})},Lge=e=>{if(!e)return{};const t={};return e.forEach(n=>{lht(n,[],t)}),t},_ge=(e,t,n)=>{const r=l=>t[l]??[],i=[],o=Math.max(0,...e.map(l=>r(l).length)),a=(l,c,u)=>{const d=r(l),p=r(c);for(let h=0;h<=u;h+=1)if(d[h]!==p[h])return!1;return!0},s=(l,c)=>{const u=n?.left,d=n?.right,p=!!u?.includes(l),h=!!u?.includes(c),g=!!d?.includes(l),m=!!d?.includes(c);return p!==h||g!==m};for(let l=0;l<o;l+=1){const c=[];for(let u=0;u<e.length;u+=1){const d=e[u],p=r(d)[l]??null;if(c.length===0){c.push({columnFields:[d],groupId:p});continue}const h=c[c.length-1],g=h.columnFields[h.columnFields.length-1];h.groupId!==p||!a(g,d,l)||s(g,d)?c.push({columnFields:[d],groupId:p}):h.columnFields.push(d)}i.push(c)}return i},zYn=(e,t,n)=>{if(n.current.caches.columnGrouping={lastColumnGroupingModel:t.columnGroupingModel},!t.columnGroupingModel)return e;const r=fb(n),i=MB(n),o=Cwe(t.columnGroupingModel??[]),a=Lge(t.columnGroupingModel??[]),s=_ge(r,a,n.current.state.pinnedColumns??{}),l=i.length===0?0:Math.max(...i.map(c=>a[c]?.length??0));return Y({},e,{columnGrouping:{lookup:o,unwrappedGroupingModel:a,headerStructure:s,maxDepth:l}})},TYn=(e,t)=>{const n=b.useCallback(s=>Opt(e)[s]??[],[e]),r=b.useCallback(()=>zpt(e),[e]);Vi(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const o=b.useCallback(()=>{const s=Lge(t.columnGroupingModel??[]);e.current.setState(l=>{const c=l.columns?.orderedFields??[],u=l.pinnedColumns??{},d=_ge(c,s,u);return Y({},l,{columnGrouping:Y({},l.columnGrouping,{headerStructure:d})})})},[e,t.columnGroupingModel]),a=b.useCallback(s=>{e.current.caches.columnGrouping.lastColumnGroupingModel=s;const l=e.current.getPinnedColumns?.()??{},c=fb(e),u=MB(e),d=Cwe(s??[]),p=Lge(s??[]),h=_ge(c,p,l),g=u.length===0?0:Math.max(...u.map(m=>p[m]?.length??0));e.current.setState(m=>Y({},m,{columnGrouping:{lookup:d,unwrappedGroupingModel:p,headerStructure:h,maxDepth:g}}))},[e]);Xn(e,"columnIndexChange",o),Xn(e,"columnsChange",()=>{a(t.columnGroupingModel)}),Xn(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),b.useEffect(()=>{t.columnGroupingModel!==e.current.caches.columnGrouping.lastColumnGroupingModel&&a(t.columnGroupingModel)},[e,a,t.columnGroupingModel])};function EYn(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function b5e(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function y5e(e,t,n,r){let i=e;return r==="Right"?i+=t-n.left:i+=n.right-t,Math.round(i)}function RYn(e,t,n){return n==="Left"?e-t.left:t.right-e}function IYn(e){return e==="Right"?"Left":"Right"}function PYn(e,t){const n=e.classList.contains(Te["columnSeparator--sideRight"])?"Right":"Left";return t?IYn(n):n}function M5e(e,t){return t===Nv.LEFT?e?"--DataGrid-rightPinnedWidth":"--DataGrid-leftPinnedWidth":e?"--DataGrid-leftPinnedWidth":"--DataGrid-rightPinnedWidth"}function C5e(e,t,n){return n===Nv.LEFT?t?e.rightPinnedWidth:e.leftPinnedWidth:t?e.leftPinnedWidth:e.rightPinnedWidth}function x5e(e){e.preventDefault(),e.stopImmediatePropagation()}function DYn(e){const t=b.useRef(void 0),n=()=>MGn(e),r=Qt(e,n);return b.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=EYn()}return t.current}}function kYn(e,t){if(e.length<4)return e;const n=e.slice();n.sort((s,l)=>s-l);const r=n[Math.floor(n.length*.25)],i=n[Math.floor(n.length*.75)-1],o=i-r,a=o<5?5:o*t;return n.filter(s=>s>r-a&&s<i+a)}function LYn(e,t,n){const r={},i=e.current.rootElementRef.current;return i.classList.add(Te.autosizing),n.forEach(o=>{const s=Z7n(e.current,o.field).map(g=>g.getBoundingClientRect().width??0),l=t.includeOutliers?s:kYn(s,t.outliersFactor);if(t.includeHeaders){const g=Q7n(e.current,o.field);if(g){const m=g.querySelector(`.${Te.columnHeaderTitle}`),v=g.querySelector(`.${Te.columnHeaderTitleContainerContent}`),y=g.querySelector(`.${Te.iconButtonContainer}`),M=g.querySelector(`.${Te.menuIcon}`),C=m??v,x=window.getComputedStyle(g,null),w=parseInt(x.paddingLeft,10)+parseInt(x.paddingRight,10),A=C.scrollWidth+1+w+(y?.clientWidth??0)+(M?.clientWidth??0);l.push(A)}}const c=o.minWidth!==-1/0&&o.minWidth!==void 0,u=o.maxWidth!==1/0&&o.maxWidth!==void 0,d=c?o.minWidth:0,p=u?o.maxWidth:1/0,h=l.length===0?0:Math.max(...l);r[o.field]=XO(h,d,p)}),i.classList.remove(Te.autosizing),r}const _Yn=e=>Y({},e,{columnResize:{resizingColumnField:""}});function NYn(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const FYn=(e,t)=>{const n=ts(),r=Zu(e,"useGridColumnResize"),i=xp(NYn).current,o=b.useRef(null),a=b.useRef(null),s=Qp(),l=b.useRef(void 0),c=O=>{r.debug(`Updating width to ${O} for col ${i.colDef.field}`);const T=i.columnHeaderElement.offsetWidth,I=O-T,P=O-i.initialColWidth;if(P>0){const W=i.initialTotalWidth+P;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${W}px`)}i.colDef.computedWidth=O,i.colDef.width=O,i.colDef.flex=0,i.columnHeaderElement.style.width=`${O}px`;const N=i.headerFilterElement;N&&(N.style.width=`${O}px`),i.groupHeaderElements.forEach(W=>{const H=W;let j;H.getAttribute("aria-colspan")==="1"?j=`${O}px`:j=`${H.offsetWidth+I}px`,H.style.width=j}),i.cellElements.forEach(W=>{const H=W;let j;H.getAttribute("aria-colspan")==="1"?j=`${O}px`:j=`${H.offsetWidth+I}px`,H.style.setProperty("--width",j)});const F=Ys(e),L=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.colDef.field);L===Nv.LEFT&&(DE(i.fillerLeft,"width",I),i.leftPinnedCellsAfter.forEach(W=>{DE(W,"left",I)}),i.leftPinnedHeadersAfter.forEach(W=>{DE(W,"left",I)}),e.current.rootElementRef?.current?.style.setProperty(M5e(n,L),`${C5e(F,n,L)+P}px`)),L===Nv.RIGHT&&(DE(i.fillerRight,"width",I),i.rightPinnedCellsBefore.forEach(W=>{DE(W,"right",I)}),i.rightPinnedHeadersBefore.forEach(W=>{DE(W,"right",I)}),e.current.rootElementRef?.current?.style.setProperty(M5e(n,L),`${C5e(F,n,L)+P}px`))},u=O=>{if(y(),i.previousMouseClickEvent){const T=i.previousMouseClickEvent,I=T.timeStamp,P=T.clientX,N=T.clientY;if(O.timeStamp-I<300&&O.clientX===P&&O.clientY===N){i.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,O);return}}if(i.colDef){e.current.setColumnWidth(i.colDef.field,i.colDef.width),r.debug(`Updating col ${i.colDef.field} with new width: ${i.colDef.width}`);const T=um(e);i.groupHeaderElements.forEach(I=>{const P=V7n(I),N=I,L=`${P.reduce((W,H)=>T.columnVisibilityModel[H]!==!1?W+T.lookup[H].computedWidth:W,0)}px`;N.style.width=L})}s.start(0,()=>{e.current.publishEvent("columnResizeStop",null,O)})},d=(O,T,I)=>{const P=e.current.rootElementRef.current;i.initialColWidth=O.computedWidth,i.initialTotalWidth=e.current.getRootDimensions().rowWidth,i.colDef=O,i.columnHeaderElement=H7n(e.current.columnHeadersContainerRef.current,O.field);const N=P.querySelector(`.${Te.headerFilterRow} [data-field="${xM(O.field)}"]`);N&&(i.headerFilterElement=N),i.groupHeaderElements=G7n(e.current.columnHeadersContainerRef?.current,O.field),i.cellElements=$7n(i.columnHeaderElement,e.current),i.fillerLeft=n5e(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),i.fillerRight=n5e(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const F=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.colDef.field);i.leftPinnedCellsAfter=F!==Nv.LEFT?[]:U7n(e.current,i.columnHeaderElement,n),i.rightPinnedCellsBefore=F!==Nv.RIGHT?[]:X7n(e.current,i.columnHeaderElement,n),i.leftPinnedHeadersAfter=F!==Nv.LEFT?[]:Y7n(e.current,i.columnHeaderElement,n),i.rightPinnedHeadersBefore=F!==Nv.RIGHT?[]:K7n(e.current,i.columnHeaderElement,n),a.current=PYn(T,n),o.current=RYn(I,i.columnHeaderElement.getBoundingClientRect(),a.current)},p=en(u),h=en(O=>{if(O.buttons===0){p(O);return}let T=y5e(o.current,O.clientX,i.columnHeaderElement.getBoundingClientRect(),a.current);T=XO(T,i.colDef.minWidth,i.colDef.maxWidth),c(T);const I={element:i.columnHeaderElement,colDef:i.colDef,width:T};e.current.publishEvent("columnResize",I,O)}),g=en(O=>{b5e(O,l.current)&&u(O)}),m=en(O=>{const T=b5e(O,l.current);if(!T)return;if(O.type==="mousemove"&&O.buttons===0){g(O);return}let I=y5e(o.current,T.x,i.columnHeaderElement.getBoundingClientRect(),a.current);I=XO(I,i.colDef.minWidth,i.colDef.maxWidth),c(I);const P={element:i.columnHeaderElement,colDef:i.colDef,width:I};e.current.publishEvent("columnResize",P,O)}),v=en(O=>{const T=q9(O.target,Te["columnSeparator--resizable"]);if(!T)return;const I=O.changedTouches[0];I!=null&&(l.current=I.identifier);const P=q9(O.target,Te.columnHeader),N=j7n(P),F=e.current.getColumn(N);r.debug(`Start Resize on col ${F.field}`),e.current.publishEvent("columnResizeStart",{field:N},O),d(F,T,I.clientX);const L=Is(O.currentTarget);L.addEventListener("touchmove",m),L.addEventListener("touchend",g)}),y=b.useCallback(()=>{const O=Is(e.current.rootElementRef.current);O.body.style.removeProperty("cursor"),O.removeEventListener("mousemove",h),O.removeEventListener("mouseup",p),O.removeEventListener("touchmove",m),O.removeEventListener("touchend",g),setTimeout(()=>{O.removeEventListener("click",x5e,!0)},100),i.columnHeaderElement&&(i.columnHeaderElement.style.pointerEvents="unset")},[e,i,h,p,m,g]),M=b.useCallback(({field:O})=>{e.current.setState(T=>Y({},T,{columnResize:Y({},T.columnResize,{resizingColumnField:O})}))},[e]),C=b.useCallback(()=>{e.current.setState(O=>Y({},O,{columnResize:Y({},O.columnResize,{resizingColumnField:""})}))},[e]),x=en(({colDef:O},T)=>{if(T.button!==0||!T.currentTarget.classList.contains(Te["columnSeparator--resizable"]))return;T.preventDefault(),r.debug(`Start Resize on col ${O.field}`),e.current.publishEvent("columnResizeStart",{field:O.field},T),d(O,T.currentTarget,T.clientX);const I=Is(e.current.rootElementRef.current);I.body.style.cursor="col-resize",i.previousMouseClickEvent=T.nativeEvent,I.addEventListener("mousemove",h),I.addEventListener("mouseup",p),I.addEventListener("click",x5e,!0)}),w=en((O,T)=>{if(t.disableAutosize||T.button!==0)return;const I=e.current.state.columns.lookup[O.field];I.resizable!==!1&&e.current.autosizeColumns(Y({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[I.field]}))}),S=DYn(e),A=b.useRef(!1),z=b.useCallback(async O=>{if(!e.current.rootElementRef?.current||A.current)return;A.current=!0;const I=um(e),P=Y({},hVn,O,{columns:O?.columns??I.orderedFields});P.columns=P.columns.filter(F=>I.columnVisibilityModel[F]!==!1);const N=P.columns.map(F=>e.current.state.columns.lookup[F]);try{!t.disableVirtualization&&P.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await S());const F=LYn(e,P,N),L=N.map(W=>Y({},W,{width:F[W.field],computedWidth:F[W.field],flex:0}));if(P.expand){const H=I.orderedFields.map($=>I.lookup[$]).filter($=>I.columnVisibilityModel[$.field]!==!1).reduce(($,U)=>$+(F[U.field]??U.computedWidth??U.width),0),q=e.current.getRootDimensions().viewportInnerSize.width-H;if(q>0){const $=q/(L.length||1);L.forEach(U=>{U.width+=$,U.computedWidth+=$})}}e.current.updateColumns(L),L.forEach((W,H)=>{if(W.width!==N[H].width){const j=W.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(W.field),colDef:W,width:j})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),A.current=!1}},[e,S,t.disableVirtualization]);b.useEffect(()=>y,[y]),V6(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Ppt(e,()=>e.current.columnHeadersContainerRef?.current,"touchstart",v,{passive:!0}),Vi(e,{autosizeColumns:z},"public"),Xn(e,"columnResizeStop",C),Xn(e,"columnResizeStart",M),Xn(e,"columnSeparatorMouseDown",x),Xn(e,"columnSeparatorDoubleClick",w),Ka(e,"columnResize",t.onColumnResize),Ka(e,"columnWidthChange",t.onColumnWidthChange)};function DE(e,t,n){e&&(e.style[t]=`${Math.round(parseFloat(e.style[t]))+n}px`)}function WYn(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function w5e(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const Eoe=(e,t,n)=>{if(!e)return null;let r=e[t.field];const i=t.rowSpanValueGetter??t.valueGetter;return i&&(r=i(r,e,t,n)),r},cht={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},qYn={firstRowIndex:0,lastRowIndex:0},QC={caches:cht,processedRange:qYn},S5e=20,uht=(e,t,n,r,i,o)=>{const a=e.current.virtualizer,s=o?QC:SP.selectors.state(a.store.state),l=Y({},s.caches.spannedCells),c=Y({},s.caches.hiddenCells),u=Y({},s.caches.hiddenCellOriginMap),d={firstRowIndex:Math.min(s.processedRange.firstRowIndex,i.firstRowIndex),lastRowIndex:Math.max(s.processedRange.lastRowIndex,i.lastRowIndex)};return t.forEach((p,h)=>{for(let g=i.firstRowIndex;g<i.lastRowIndex;g+=1){const m=n[g];if(c[m.id]?.[h])continue;const v=Eoe(m.model,p,e);if(v==null)continue;let y=m.id,M=g,C=0;const x=[];if(g===i.firstRowIndex){let S=g-1,A=n[S];for(;S>=r.firstRowIndex&&A&&Eoe(A.model,p,e)===v;){const z=n[S+1];c[z.id]?c[z.id][h]=!0:c[z.id]={[h]:!0},x.push(g),C+=1,y=A.id,M=S,S-=1,A=n[S]}}x.forEach(S=>{u[S]?u[S][h]=M:u[S]={[h]:M}});let w=g+1;for(;w<=r.lastRowIndex&&n[w]&&Eoe(n[w].model,p,e)===v;){const S=n[w];c[S.id]?c[S.id][h]=!0:c[S.id]={[h]:!0},u[w]?u[w][h]=M:u[w]={[h]:M},w+=1,C+=1}C>0&&(l[y]?l[y][h]=C+1:l[y]={[h]:C+1})}}),{caches:{spannedCells:l,hiddenCells:c,hiddenCellOriginMap:u},processedRange:d}},BYn=(e,t)=>{const n=pO(t).length;if(e.pagination){const r=Mpt(t);let i=S5e;return r>0&&(i=r-1),{firstRowIndex:0,lastRowIndex:Math.min(i,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(S5e,n)}},jYn=(e,t,n)=>{if(!t.rowSpanning)return Y({},e,{rowSpanning:QC});const r=e.rows.dataRowIds||[],i=e.columns.orderedFields||[],o=e.rows.dataRowIdToModelLookup,a=e.columns.lookup,s=!!e.filter.filterModel.items.length||!!e.filter.filterModel.quickFilterValues?.length;if(!r.length||!i.length||!o||!a||s)return Y({},e,{rowSpanning:QC});const l=BYn(t,n),c=r.map(p=>({id:p,model:o[p]})),u=i.map(p=>a[p]),d=uht(n,u,c,l,l,!0);return Y({},e,{rowSpanning:d})},HYn=(e,t)=>{const n=e.current.virtualizer.store,r=b.useCallback((o,a=!1)=>{const{range:s,rows:l}=SI(e);if(a&&n.getSnapshot().rowSpanning!==QC&&n.set("rowSpanning",QC),s===null||!w5e(o))return;const c=a?QC:SP.selectors.state(n.state),u=WYn({firstRowIndex:o.firstRowIndex,lastRowIndex:Math.min(o.lastRowIndex,s.lastRowIndex-s.firstRowIndex+1)},c.processedRange);if(u===null)return;const d=xl(e),p=uht(e,d,l,s,u,a),h=Object.keys(p.caches.spannedCells).length,g=Object.keys(p.caches.hiddenCells).length,m=Object.keys(c.caches.spannedCells).length,v=Object.keys(c.caches.hiddenCells).length;!(a||h!==m||g!==v)||h===0&&m===0||n.set("rowSpanning",p)},[e,n]),i=b.useCallback(()=>{const o=Hpt(e);w5e(o)&&r(o,!0)},[e,r]);Xn(e,"renderedRowsIntervalChange",YC(t.rowSpanning,r)),Xn(e,"sortedRowsSet",YC(t.rowSpanning,i)),Xn(e,"paginationModelChange",YC(t.rowSpanning,i)),Xn(e,"filteredRowsSet",YC(t.rowSpanning,i)),Xn(e,"columnsChange",YC(t.rowSpanning,i)),b.useEffect(()=>{t.rowSpanning?n.state.rowSpanning.caches===cht&&i():n.state.rowSpanning!==QC&&n.set("rowSpanning",QC)},[e,n,i,t.rowSpanning])},VYn=(e,t,n)=>Y({},e,{listViewColumn:t.listViewColumn?Y({},t.listViewColumn,{computedWidth:Nge(n)}):void 0});function GYn(e,t){const n=()=>{e.current.setState(o=>o.listViewColumn?Y({},o,{listViewColumn:Y({},o.listViewColumn,{computedWidth:Nge(e)})}):o)},r=b.useRef(null);Xn(e,"viewportInnerSizeChange",o=>{r.current!==o.width&&(r.current=o.width,n())}),Xn(e,"columnVisibilityModelChange",n),To(()=>{const o=t.listViewColumn;o&&e.current.setState(a=>Y({},a,{listViewColumn:Y({},o,{computedWidth:Nge(e)})}))},[e,t.listViewColumn]),b.useEffect(()=>{t.listView&&t.listViewColumn},[t.listView,t.listViewColumn])}function Nge(e){return Ys(e).viewportInnerSize.width}const $Yn=rr(mu,Qh,Hu,(e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1}));let $S=(function(e){return e.Default="set-flat-rows",e.LazyLoading="replace-row-range",e.GroupedData="set-grouped-rows",e})({});class Roe{constructor(t){this.chunkSize=t}getCacheKeys=t=>{if(this.chunkSize<1||typeof t.start!="number")return[t];const n=[];for(let r=t.start;r<=t.end;r+=this.chunkSize){const i=Math.min(r+this.chunkSize-1,t.end);n.push(Y({},t,{start:r,end:i}))}return n};splitResponse=(t,n)=>{const r=this.getCacheKeys(t);if(r.length===1)return new Map([[t,n]]);const i=new Map;return r.forEach(o=>{const a=o.end===t.end,s=Y({},n,{pageInfo:Y({},n.pageInfo,{hasNextPage:n.pageInfo?.hasNextPage!==void 0&&!a?!0:n.pageInfo?.hasNextPage,nextCursor:n.pageInfo?.nextCursor!==void 0&&!a?n.rows[o.end+1].id:n.pageInfo?.nextCursor}),rows:typeof o.start!="number"||typeof t.start!="number"?n.rows:n.rows.slice(o.start-t.start,o.end-t.start+1)});i.set(o,s)}),i};static mergeResponses=t=>t.length===1?t[0]:t.reduce((n,r)=>Y({},r,{rows:[...n.rows,...r.rows]}),{rows:[],rowCount:0,pageInfo:{}})}const UYn=["skipCache","keepChildrenExpanded"],XYn={clear:()=>{},get:()=>{},set:()=>{}};function A5e(e,t={}){return e===null?XYn:e??new AGn(t)}const YYn=(e,t,n={})=>{const r=b.useCallback(()=>{e.current.setStrategyAvailability(gy.DataSource,$S.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[i,o]=b.useState(e.current.getActiveStrategy(gy.DataSource)),a=b.useMemo(()=>i===$S.Default||i===$S.GroupedData,[i]),s=Qt(e,Hu),l=b.useRef(0),c=t.onDataSourceError,u=xp(()=>{if(!t.pagination)return new Roe(s.pageSize);const S=t.pageSizeOptions.map(z=>typeof z=="number"?z:z.value).sort((z,O)=>z-O),A=Math.min(s.pageSize,S[0]);return new Roe(A)}).current,[d,p]=b.useState(()=>A5e(t.dataSourceCache,n.cacheOptions)),h=b.useCallback(async(S,A)=>{const z=t.dataSource?.getRows;if(!z)return;if(S&&S!==Dl&&t.signature!=="DataGrid"){n.fetchRowChildren?.([S]);return}n.clearDataSourceState?.();const O=A||{},{skipCache:T,keepChildrenExpanded:I}=O,P=Lt(O,UYn),N=Y({},$Yn(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),P),L=u.getCacheKeys(N).map(H=>d.get(H));if(!T&&L.every(H=>H!==void 0)){e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:Roe.mergeResponses(L),fetchParams:N,options:{skipCache:T,keepChildrenExpanded:I}});return}(a||e.current.getRowsCount()===0)&&e.current.setLoading(!0);const W=l.current+1;l.current=W;try{const H=await z(N);u.splitResponse(N,H).forEach((G,q)=>d.set(q,G)),l.current===W&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:H,fetchParams:N,options:{skipCache:T,keepChildrenExpanded:I}})}catch(H){l.current===W&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:H,fetchParams:N,options:{skipCache:T,keepChildrenExpanded:I}}),typeof c=="function"&&c(new OGn({message:H?.message,params:N,cause:H})))}finally{a&&l.current===W&&e.current.setLoading(!1)}},[u,d,e,a,t.dataSource?.getRows,c,n,t.signature]),g=b.useCallback(()=>{o(e.current.getActiveStrategy(gy.DataSource))},[e]),m=b.useCallback(S=>{if("error"in S){e.current.setRows([]);return}const{response:A}=S;A.rowCount!==void 0&&e.current.setRowCount(A.rowCount),e.current.setRows(A.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:S.fetchParams,response:A},!0)},[e]),v=t.dataSource?.updateRow,y=n.handleEditRow,M=b.useCallback(async S=>{if(v)try{const A=await v(S);return typeof y=="function"?(y(S,A),A):(A&&!pm(A,S.previousRow)&&e.current.dataSource.cache.clear(),e.current.updateNestedRows([A],[]),A)}catch(A){throw typeof c=="function"&&c(new zGn({message:A?.message,params:S,cause:A})),A}},[e,v,c,y]),C={dataSource:{fetchRows:h,cache:d,editRow:M}},x=b.useMemo(()=>zw(h,0),[h]),w=b.useRef(!0);return b.useEffect(()=>{if(w.current){w.current=!1;return}if(t.dataSourceCache===void 0)return;const S=A5e(t.dataSourceCache,n.cacheOptions);p(A=>A!==S?S:A)},[t.dataSourceCache,n.cacheOptions]),b.useEffect(()=>{if(!(i!==$S.Default&&i!==$S.LazyLoading&&i!==$S.GroupedData))return t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows()),()=>{l.current+=1}},[e,t.dataSource,i]),{api:{public:C},debouncedFetchRows:x,strategyProcessor:{strategyName:$S.Default,group:"dataSourceRowsUpdate",processor:m},setStrategyAvailability:r,cacheChunkManager:u,cache:d,events:{strategyAvailabilityChange:g,sortModelChange:YC(a,()=>x()),filterModelChange:YC(a,()=>x()),paginationModelChange:YC(a,()=>x())}}},KYn=(e,t)=>{const{api:n,strategyProcessor:r,events:i,setStrategyAvailability:o}=YYn(e,t);Vi(e,n.public,"public"),KW(e,r.strategyName,r.group,r.processor),Object.entries(i).forEach(([a,s])=>{Xn(e,a,s)}),b.useEffect(()=>{o()},[o])},QYn=(e,t,n)=>{aXn(e,t),dYn(e,t),aYn(e),du(iXn,e,t),du(lYn,e,t),du(MXn,e,t),du(tYn,e,t),du(HXn,e,t),du(JXn,e,t),du(_Xn,e,t),du(pYn,e,t),du(GXn,e,t),du(PXn,e,t),du(jYn,e,t),du(wXn,e,t),du(_Yn,e,t),du(bXn,e,t),du(zYn,e,t),du(bGn,e,t),du(vYn,e,t),du(xYn,e,t),du(VYn,e,t),pXn(e,t),qXn(e,t),cYn(e,t),CXn(e,t),nYn(e,t,n),HYn(e,t),sYn(e,t,n),AYn(e),TYn(e,t),eYn(e,t,n),NXn(e,t),$Xn(e,t),LXn(e,t,n),hYn(e,t),SXn(e,t),FYn(e,t),VXn(e,t),wYn(e),fYn(e,t),yXn(e),OXn(e,t),IXn(e,t),vXn(e,t),yYn(e,t),gYn(e,t),SYn(e),yGn(e,t),GYn(e,t),KYn(e,t),b.useEffect(()=>{e.current.runAppliersForPendingProcessors()})},ZYn=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:i,showLeftBorder:o,showRightBorder:a,groupId:s,pinnedPosition:l}=e,c={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",a&&"columnHeader--withRightBorder",o&&"columnHeader--withLeftBorder","withBorderColor",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",l===fo.LEFT&&"columnHeader--pinnedLeft",l===fo.RIGHT&&"columnHeader--pinnedRight",i&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Yt(c,lo,t)};function JYn(e){const{groupId:t,width:n,depth:r,maxDepth:i,fields:o,height:a,colIndex:s,hasFocus:l,tabIndex:c,isLastColumn:u,pinnedPosition:d,pinnedOffset:p}=e,h=kn(),g=ts(),m=b.useRef(null),v=bi(),y=Qt(v,zpt),M=t?y[t]:{},{headerName:C=t??"",description:x="",headerAlign:w=void 0}=M;let S;const A=t&&y[t]?.renderHeaderGroup,z=b.useMemo(()=>({groupId:t,headerName:C,description:x,depth:r,maxDepth:i,fields:o,colIndex:s,isLastColumn:u}),[t,C,x,r,i,o,s,u]);t&&A&&(S=A(z));const O=Y({},e,{classes:h.classes,headerAlign:w,depth:r,isDragging:!1}),T=C??t,I=Hi(),P=t===null?`empty-group-cell-${I}`:t,N=ZYn(O);b.useLayoutEffect(()=>{if(l){const G=m.current.querySelector('[tabindex="0"]')||m.current;if(!G)return;if(mwe())G.focus({preventScroll:!0});else{const q=v.current.getScrollPosition();G.focus(),v.current.scroll(q)}}},[v,l]);const F=b.useCallback(j=>G=>{OB(G)||v.current.publishEvent(j,z,G)},[v,z]),L=b.useMemo(()=>({onKeyDown:F("columnGroupHeaderKeyDown"),onFocus:F("columnGroupHeaderFocus"),onBlur:F("columnGroupHeaderBlur")}),[F]),W=typeof M.headerClassName=="function"?M.headerClassName(z):M.headerClassName,H=b.useMemo(()=>LZ(Y({},e.style),g,d,p),[d,p,e.style,g]);return f.jsx(Zpt,Y({ref:m,classes:N,columnMenuOpen:!1,colIndex:s,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:S,headerClassName:W,description:x,elementId:P,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:T,"aria-colspan":o.length,"data-fields":`|-${o.join("-|-")}-|`,style:H},L))}const O5e={root:Te.scrollbarFiller,pinnedRight:Te["scrollbarFiller--pinnedRight"]};function eKn({pinnedRight:e}){return f.jsx("div",{role:"presentation",className:Lo(O5e.root,e&&O5e.pinnedRight)})}const z5e=rt("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),tKn=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:o,columnHeaderFocus:a,columnGroupHeaderFocus:s,headerGroupingMaxDepth:l,columnMenuState:c,columnVisibility:u,columnGroupsHeaderStructure:d,hasOtherElementInTabSequence:p}=e,[h,g]=b.useState(""),[m,v]=b.useState(""),y=Sp(),M=kn(),C=Qt(y,Opt),x=Qt(y,N3),w=Qt(y,wGn),S=Qt(y,SZ),A=Qt(y,CM),z=qpt(x,w,S.left.length),O=Qt(y,Xxe),T=Qt(y,R1t),I=Qt(y,ajn),P=Qt(y,sjn),N=Qt(y,I1t),F=b.useCallback(ee=>v(ee.field),[]),L=b.useCallback(()=>v(""),[]),W=b.useCallback(ee=>g(ee.field),[]),H=b.useCallback(()=>g(""),[]),j=b.useMemo(()=>S.left.length?{firstColumnIndex:0,lastColumnIndex:S.left.length}:null,[S.left.length]),G=b.useMemo(()=>S.right.length?{firstColumnIndex:t.length-S.right.length,lastColumnIndex:t.length}:null,[S.right.length,t.length]);Xn(y,"columnResizeStart",F),Xn(y,"columnResizeStop",L),Xn(y,"columnHeaderDragStart",W),Xn(y,"columnHeaderDragEndNative",H);const q=ee=>{const{renderContext:se=w}=ee||{},pe=se.firstColumnIndex,te=Math.min(se.lastColumnIndex,t.length);return{renderedColumns:t.slice(pe,te),firstColumnToRender:pe,lastColumnToRender:te}},$=(ee,se,pe,te=!1)=>{const ce=ee?.position===fo.RIGHT,oe=ee?.position===void 0,ae=S.right.length>0&&ce||S.right.length===0&&oe,ne=z-pe;return f.jsxs(b.Fragment,{children:[oe&&f.jsx("div",{role:"presentation",style:{width:ne}}),se,oe&&f.jsx("div",{role:"presentation",className:Lo(Te.filler,te&&Te["filler--borderBottom"])}),ae&&f.jsx(eKn,{pinnedRight:ce})]})},U=(ee,se={})=>{const{renderedColumns:pe,firstColumnToRender:te}=q(ee),ce=[];for(let oe=0;oe<pe.length;oe+=1){const ae=pe[oe],ne=te+oe,le=ne===0,he=i!==null&&i.field===ae.field||le&&!p?0:-1,be=a!==null&&a.field===ae.field,me=c.open&&c.field===ae.field,Me=ee?.position,Oe=lF(Me,ae.computedWidth,ne,x,O,N),de=Me===fo.RIGHT?pe[oe-1]:pe[oe+1],ie=de?a!==null&&a.field===de.field:!1,ue=oe,Ae=pe.length,Ce=j9(Me,ue,M.showColumnVerticalBorder,M.pinnedColumnsSectionSeparator),Ee=B9(Me,ue,Ae,M.showColumnVerticalBorder,T,M.pinnedColumnsSectionSeparator);ce.push(f.jsx(d$n,Y({},n[ae.field],{columnMenuOpen:me,filterItemsCounter:r[ae.field]&&r[ae.field].length,headerHeight:I,isDragging:ae.field===h,colDef:ae,colIndex:ne,isResizing:m===ae.field,isLast:ne===x.length-1,hasFocus:be,tabIndex:he,pinnedPosition:Me,pinnedOffset:Oe,isSiblingFocused:ie,showLeftBorder:Ce,showRightBorder:Ee},se),ae.field))}return $(ee,ce,0)},X=()=>f.jsxs(z5e,{role:"row","aria-rowindex":l+1,ownerState:M,className:Te["row--borderBottom"],style:{height:I},children:[j&&U({position:fo.LEFT,renderContext:j},{disableReorder:!0}),U({renderContext:w}),G&&U({position:fo.RIGHT,renderContext:G},{disableReorder:!0,separatorSide:bwe.Left})]}),Q=({depth:ee,params:se})=>{const pe=q(se);if(pe.renderedColumns.length===0)return null;const{firstColumnToRender:te,lastColumnToRender:ce}=pe,oe=d[ee],ae=t[te].field,ne=C[ae]?.[ee]??null,le=oe.findIndex(({groupId:Ce,columnFields:Ee})=>Ce===ne&&Ee.includes(ae)),he=t[ce-1].field,be=C[he]?.[ee]??null,me=oe.findIndex(({groupId:Ce,columnFields:Ee})=>Ce===be&&Ee.includes(he)),Me=oe.slice(le,me+1).map(Ce=>Y({},Ce,{columnFields:Ce.columnFields.filter(Ee=>u[Ee]!==!1)})).filter(Ce=>Ce.columnFields.length>0),Oe=Me[0].columnFields.indexOf(ae),ie=Me[0].columnFields.slice(0,Oe).reduce((Ce,Ee)=>{const Ge=A[Ee];return Ce+(Ge.computedWidth??0)},0);let ue=te;const Ae=Me.map(({groupId:Ce,columnFields:Ee},Ge)=>{const _e=s!==null&&s.depth===ee&&Ee.includes(s.field),Ie=o!==null&&o.depth===ee&&Ee.includes(o.field)?0:-1,Le={width:Ee.reduce((ze,Ve)=>ze+A[Ve].computedWidth,0),fields:Ee,colIndex:ue},we=se.position,ve=lF(we,Le.width,ue,x,O,N);ue+=Ee.length;let De=Ge;return we===fo.LEFT&&(De=ue-1),f.jsx(JYn,{groupId:Ce,width:Le.width,fields:Le.fields,colIndex:Le.colIndex,depth:ee,isLastColumn:Ge===Me.length-1,maxDepth:l,height:P,hasFocus:_e,tabIndex:Ie,pinnedPosition:we,pinnedOffset:ve,showLeftBorder:j9(we,De,M.showColumnVerticalBorder,M.pinnedColumnsSectionSeparator),showRightBorder:B9(we,De,Me.length,M.showColumnVerticalBorder,T,M.pinnedColumnsSectionSeparator)},Ge)});return $(se,Ae,ie)};return{renderContext:w,leftRenderContext:j,rightRenderContext:G,pinnedColumns:S,visibleColumns:t,columnPositions:x,getFillers:$,getColumnHeadersRow:X,getColumnsToRender:q,getColumnGroupHeadersRows:()=>{if(l===0)return null;const ee=[];for(let se=0;se<l;se+=1)ee.push(f.jsxs(z5e,{role:"row","aria-rowindex":se+1,ownerState:M,style:{height:P},children:[j&&Q({depth:se,params:{position:fo.LEFT,renderContext:j,maxLastColumn:j.lastColumnIndex}}),Q({depth:se,params:{renderContext:w}}),G&&Q({depth:se,params:{position:fo.RIGHT,renderContext:G,maxLastColumn:G.lastColumnIndex}})]},se));return ee},getPinnedCellOffset:lF,isDragging:!!h,getInnerProps:()=>({role:"rowgroup"})}},nKn=["className"],rKn=e=>{const{classes:t}=e;return Yt({root:["columnHeaders"]},lo,t)},iKn=Vo("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),oKn=qr(function(t,n){const{className:r}=t,i=Lt(t,nKn),o=kn(),a=rKn(o);return f.jsx(iKn,Y({className:Lo(a.root,r),ownerState:o},i,{role:"presentation",ref:n}))}),aKn=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],sKn=qr(function(t,n){const{visibleColumns:r,sortColumnLookup:i,filterColumnLookup:o,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:g}=t,m=Lt(t,aKn),{getInnerProps:v,getColumnHeadersRow:y,getColumnGroupHeadersRows:M}=tKn({visibleColumns:r,sortColumnLookup:i,filterColumnLookup:o,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:g});return f.jsxs(oKn,Y({},m,v(),{ref:n,children:[M(),y()]}))}),lKn=MM(sKn);function cKn(e){return null}function uKn(e){return null}const dKn=qr(function(t,n){const i=bi().current.getLocaleText("noResultsOverlayLabel");return f.jsx(_Z,Y({},t,{ref:n,children:i}))}),pKn=()=>Yt({root:["bottomContainer"]},lo,{}),hKn=Vo("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function fKn(e){const t=pKn();return f.jsx(hKn,Y({},e,{className:Lo(t.root,Te["container--bottom"]),role:"presentation"}))}const gKn=Y({},_Bn,{cell:KGn,skeletonCell:r7n,columnHeaderFilterIconButton:w$n,columnHeaderSortIcon:C$n,columnMenu:W$n,columnHeaders:lKn,detailPanels:cKn,bottomContainer:fKn,footer:yUn,footerRowCount:LUn,toolbar:fUn,pinnedRows:uKn,loadingOverlay:zUn,noResultsOverlay:dKn,noRowsOverlay:TUn,noColumnsOverlay:EUn,pagination:IUn,filterPanel:f9n,columnsPanel:H$n,columnsManagement:w9n,panel:X$n,row:jUn}),mKn={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1},vKn=e=>Y({},mKn,e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),bKn=gKn,yKn=e=>{const t=$b(),n=b.useMemo(()=>WMe({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),r=b.useMemo(()=>Y({},Mjn,n.localeText),[n.localeText]),i=b.useMemo(()=>HGn({defaultSlots:bKn,slots:n.slots}),[n.slots]),o=b.useMemo(()=>Object.keys(H9).reduce((a,s)=>(a[s]=n[s]??H9[s],a),{}),[n]);return b.useMemo(()=>Y({},n,o,{localeText:r,slots:i},vKn(n)),[n,r,i,o])};class MKn{maxListeners=20;warnOnce=!1;events={};on(t,n,r={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const i=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let a=i.length-1;a>=0;a-=1){const s=i[a];r.highPriority.has(s)&&s.apply(this,n)}for(let a=0;a<o.length;a+=1){const s=o[a];r.regular.has(s)&&s.apply(this,n)}}once(t,n){const r=this;this.on(t,function i(...o){r.removeListener(t,i),n.apply(r,o)})}}const dht=Symbol("mui.api_private"),CKn=e=>e.isPropagationStopped!==void 0;let T5e=0;function xKn(e){const t=e.current?.[dht];if(t)return t;const n={},r={state:n,store:ijn.create(n),instanceId:{id:T5e}};return T5e+=1,r.getPublicApi=()=>e.current,r.register=(i,o)=>{Object.keys(o).forEach(a=>{const s=o[a],l=r[a];if(l?.spying===!0?l.target=s:r[a]=s,i==="public"){const c=e.current,u=c[a];u?.spying===!0?u.target=s:c[a]=s}})},r.register("private",{caches:{},eventManager:new MKn}),r}function wKn(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[dht]:e.current}}function SKn(e,t){const n=b.useRef(null),r=b.useRef(null);r.current||(r.current=xKn(n)),n.current||(n.current=wKn(r));const i=b.useCallback((...a)=>{const[s,l,c={}]=a;if(c.defaultMuiPrevented=!1,CKn(c)&&c.isPropagationStopped())return;const u=t.signature===cm.DataGridPro||t.signature===cm.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(s,l,c,u)},[r,t.signature]),o=b.useCallback((a,s,l)=>{r.current.eventManager.on(a,s,l);const c=r.current;return()=>{c.eventManager.removeListener(a,s)}},[r]);return Vi(r,{subscribeEvent:o,publishEvent:i},"public"),e&&!e.current?.state&&(e.current=n.current),b.useImperativeHandle(e,()=>n.current,[n]),b.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const E5e={hooks:{useCSSVariables:A6n,useGridAriaAttributes:HUn,useGridRowAriaAttributes:VUn,useGridRowsOverridableMethods:GUn,useGridParamsOverridableMethods:$Un,useIsCellEditable:UUn,useCellAggregationResult:()=>null,useFilterValueGetter:e=>e.current.getRowValue}},pht=function(t,n){const r=yKn(t),i=SKn(r.apiRef,r);return QYn(i,r,E5e),f.jsx(XUn,{privateApiRef:i,configuration:E5e,props:r,children:f.jsx(y7n,Y({className:r.className,style:r.style,sx:r.sx},r.slotProps?.root,{ref:n}))})},AKn=b.memo(qr(pht));pht.propTypes={apiRef:Z.shape({current:Z.object}),"aria-label":Z.string,"aria-labelledby":Z.string,autoHeight:Z.bool,autoPageSize:Z.bool,autosizeOnMount:Z.bool,autosizeOptions:Z.shape({columns:Z.arrayOf(Z.string),disableColumnVirtualization:Z.bool,expand:Z.bool,includeHeaders:Z.bool,includeOutliers:Z.bool,outliersFactor:Z.number}),cellModesModel:Z.object,checkboxSelection:Z.bool,classes:Z.object,className:Z.string,clipboardCopyCellDelimiter:Z.string,columnBufferPx:Z.number,columnFilterDebounceMs:Z.number,columnGroupHeaderHeight:Z.number,columnGroupingModel:Z.arrayOf(Z.object),columnHeaderHeight:Z.number,columns:Z.arrayOf(Z.object).isRequired,columnVisibilityModel:Z.object,dataSource:Z.shape({getRows:Z.func.isRequired,updateRow:Z.func}),dataSourceCache:Z.shape({clear:Z.func.isRequired,get:Z.func.isRequired,set:Z.func.isRequired}),density:Z.oneOf(["comfortable","compact","standard"]),disableAutosize:Z.bool,disableColumnFilter:Z.bool,disableColumnMenu:Z.bool,disableColumnResize:Z.bool,disableColumnSelector:Z.bool,disableColumnSorting:Z.bool,disableDensitySelector:Z.bool,disableEval:Z.bool,disableMultipleRowSelection:Z.bool,disableRowSelectionExcludeModel:Z.bool,disableRowSelectionOnClick:Z.bool,disableVirtualization:Z.bool,editMode:Z.oneOf(["cell","row"]),estimatedRowCount:Z.number,experimentalFeatures:Z.shape({warnIfFocusStateIsNotSynced:Z.bool}),filterDebounceMs:Z.number,filterMode:Z.oneOf(["client","server"]),filterModel:Z.shape({items:Z.arrayOf(Z.shape({field:Z.string.isRequired,id:Z.oneOfType([Z.number,Z.string]),operator:Z.string.isRequired,value:Z.any})).isRequired,logicOperator:Z.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:Z.bool,quickFilterLogicOperator:Z.oneOf(["and","or"]),quickFilterValues:Z.array}),getCellClassName:Z.func,getDetailPanelContent:Z.func,getEstimatedRowHeight:Z.func,getRowClassName:Z.func,getRowHeight:Z.func,getRowId:Z.func,getRowSpacing:Z.func,hideFooter:Z.bool,hideFooterPagination:Z.bool,hideFooterSelectedRowCount:Z.bool,ignoreDiacritics:Z.bool,ignoreValueFormatterDuringExport:Z.oneOfType([Z.shape({clipboardExport:Z.bool,csvExport:Z.bool}),Z.bool]),initialState:Z.object,isCellEditable:Z.func,isRowSelectable:Z.func,keepNonExistentRowsSelected:Z.bool,label:Z.string,loading:Z.bool,localeText:Z.object,logger:Z.shape({debug:Z.func.isRequired,error:Z.func.isRequired,info:Z.func.isRequired,warn:Z.func.isRequired}),logLevel:Z.oneOf(["debug","error","info","warn",!1]),nonce:Z.string,onCellClick:Z.func,onCellDoubleClick:Z.func,onCellEditStart:Z.func,onCellEditStop:Z.func,onCellKeyDown:Z.func,onCellModesModelChange:Z.func,onClipboardCopy:Z.func,onColumnHeaderClick:Z.func,onColumnHeaderContextMenu:Z.func,onColumnHeaderDoubleClick:Z.func,onColumnHeaderEnter:Z.func,onColumnHeaderLeave:Z.func,onColumnHeaderOut:Z.func,onColumnHeaderOver:Z.func,onColumnOrderChange:Z.func,onColumnResize:Z.func,onColumnVisibilityModelChange:Z.func,onColumnWidthChange:Z.func,onDataSourceError:Z.func,onDensityChange:Z.func,onFilterModelChange:Z.func,onMenuClose:Z.func,onMenuOpen:Z.func,onPaginationMetaChange:Z.func,onPaginationModelChange:Z.func,onPreferencePanelClose:Z.func,onPreferencePanelOpen:Z.func,onProcessRowUpdateError:Z.func,onResize:Z.func,onRowClick:Z.func,onRowCountChange:Z.func,onRowDoubleClick:Z.func,onRowEditStart:Z.func,onRowEditStop:Z.func,onRowModesModelChange:Z.func,onRowSelectionModelChange:Z.func,onSortModelChange:Z.func,onStateChange:Z.func,pageSizeOptions:Z.arrayOf(Z.oneOfType([Z.number,Z.shape({label:Z.string.isRequired,value:Z.number.isRequired})]).isRequired),pagination:Z.oneOf([!0]),paginationMeta:Z.shape({hasNextPage:Z.bool}),paginationMode:Z.oneOf(["client","server"]),paginationModel:Z.shape({page:Z.number.isRequired,pageSize:Z.number.isRequired}),processRowUpdate:Z.func,resizeThrottleMs:Z.number,rowBufferPx:Z.number,rowCount:Z.number,rowHeight:Z.number,rowModesModel:Z.object,rows:Z.arrayOf(Z.object),rowSelection:Z.bool,rowSelectionModel:Z.shape({ids:Z.instanceOf(Set).isRequired,type:Z.oneOf(["exclude","include"]).isRequired}),rowSpacingType:Z.oneOf(["border","margin"]),rowSpanning:Z.bool,scrollbarSize:Z.number,showCellVerticalBorder:Z.bool,showColumnVerticalBorder:Z.bool,showToolbar:Z.bool,slotProps:Z.object,slots:Z.object,sortingMode:Z.oneOf(["client","server"]),sortingOrder:Z.arrayOf(Z.oneOf(["asc","desc"])),sortModel:Z.arrayOf(Z.shape({field:Z.string.isRequired,sort:Z.oneOf(["asc","desc"])})),style:Z.object,sx:Z.oneOfType([Z.arrayOf(Z.oneOfType([Z.func,Z.object,Z.bool])),Z.func,Z.object]),virtualizeColumnsWithAutoRowHeight:Z.bool};var KO=[],OKn=function(){return KO.some(function(e){return e.activeTargets.length>0})},zKn=function(){return KO.some(function(e){return e.skippedTargets.length>0})},R5e="ResizeObserver loop completed with undelivered notifications.",TKn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:R5e}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=R5e),window.dispatchEvent(e)},QW;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(QW||(QW={}));var QO=function(e){return Object.freeze(e)},EKn=(function(){function e(t,n){this.inlineSize=t,this.blockSize=n,QO(this)}return e})(),hht=(function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,QO(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:r,top:i,right:o,bottom:a,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),xwe=function(e){return e instanceof SVGElement&&"getBBox"in e},fht=function(e){if(xwe(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},I5e=function(e){var t;if(e instanceof Element)return!0;var n=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},RKn=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},uF=typeof window<"u"?window:{},k8=new WeakMap,P5e=/auto|scroll/,IKn=/^tb|vertical/,PKn=/msie|trident/i.test(uF.navigator&&uF.navigator.userAgent),fv=function(e){return parseFloat(e||"0")},AI=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new EKn((n?t:e)||0,(n?e:t)||0)},D5e=QO({devicePixelContentBoxSize:AI(),borderBoxSize:AI(),contentBoxSize:AI(),contentRect:new hht(0,0,0,0)}),ght=function(e,t){if(t===void 0&&(t=!1),k8.has(e)&&!t)return k8.get(e);if(fht(e))return k8.set(e,D5e),D5e;var n=getComputedStyle(e),r=xwe(e)&&e.ownerSVGElement&&e.getBBox(),i=!PKn&&n.boxSizing==="border-box",o=IKn.test(n.writingMode||""),a=!r&&P5e.test(n.overflowY||""),s=!r&&P5e.test(n.overflowX||""),l=r?0:fv(n.paddingTop),c=r?0:fv(n.paddingRight),u=r?0:fv(n.paddingBottom),d=r?0:fv(n.paddingLeft),p=r?0:fv(n.borderTopWidth),h=r?0:fv(n.borderRightWidth),g=r?0:fv(n.borderBottomWidth),m=r?0:fv(n.borderLeftWidth),v=d+c,y=l+u,M=m+h,C=p+g,x=s?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-M-e.clientWidth:0,S=i?v+M:0,A=i?y+C:0,z=r?r.width:fv(n.width)-S-w,O=r?r.height:fv(n.height)-A-x,T=z+v+w+M,I=O+y+x+C,P=QO({devicePixelContentBoxSize:AI(Math.round(z*devicePixelRatio),Math.round(O*devicePixelRatio),o),borderBoxSize:AI(T,I,o),contentBoxSize:AI(z,O,o),contentRect:new hht(d,l,z,O)});return k8.set(e,P),P},mht=function(e,t,n){var r=ght(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case QW.DEVICE_PIXEL_CONTENT_BOX:return a;case QW.BORDER_BOX:return i;default:return o}},DKn=(function(){function e(t){var n=ght(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=QO([n.borderBoxSize]),this.contentBoxSize=QO([n.contentBoxSize]),this.devicePixelContentBoxSize=QO([n.devicePixelContentBoxSize])}return e})(),vht=function(e){if(fht(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},kKn=function(){var e=1/0,t=[];KO.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(c){var u=new DKn(c.target),d=vht(c.target);s.push(u),c.lastReportedSize=mht(c.target,c.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},k5e=function(e){KO.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(vht(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},LKn=function(){var e=0;for(k5e(e);OKn();)e=kKn(),k5e(e);return zKn()&&TKn(),e>0},Ioe,bht=[],_Kn=function(){return bht.splice(0).forEach(function(e){return e()})},NKn=function(e){if(!Ioe){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return _Kn()}).observe(n,r),Ioe=function(){n.textContent="".concat(t?t--:t++)}}bht.push(e),Ioe()},FKn=function(e){NKn(function(){requestAnimationFrame(e)})},A7=0,WKn=function(){return!!A7},qKn=250,BKn={attributes:!0,characterData:!0,childList:!0,subtree:!0},L5e=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],_5e=function(e){return e===void 0&&(e=0),Date.now()+e},Poe=!1,jKn=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=qKn),!Poe){Poe=!0;var r=_5e(t);FKn(function(){var i=!1;try{i=LKn()}finally{if(Poe=!1,t=r-_5e(),!WKn())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,BKn)};document.body?n():uF.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L5e.forEach(function(n){return uF.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),L5e.forEach(function(n){return uF.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e})(),Fge=new jKn,N5e=function(e){!A7&&e>0&&Fge.start(),A7+=e,!A7&&Fge.stop()},HKn=function(e){return!xwe(e)&&!RKn(e)&&getComputedStyle(e).display==="inline"},VKn=(function(){function e(t,n){this.target=t,this.observedBox=n||QW.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=mht(this.target,this.observedBox,!0);return HKn(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),GKn=(function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e})(),L8=new WeakMap,F5e=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},_8=(function(){function e(){}return e.connect=function(t,n){var r=new GKn(t,n);L8.set(t,r)},e.observe=function(t,n,r){var i=L8.get(t),o=i.observationTargets.length===0;F5e(i.observationTargets,n)<0&&(o&&KO.push(i),i.observationTargets.push(new VKn(n,r&&r.box)),N5e(1),Fge.schedule())},e.unobserve=function(t,n){var r=L8.get(t),i=F5e(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&KO.splice(KO.indexOf(r),1),r.observationTargets.splice(i,1),N5e(-1))},e.disconnect=function(t){var n=this,r=L8.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e})(),$Kn=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");_8.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I5e(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");_8.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I5e(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");_8.unobserve(this,t)},e.prototype.disconnect=function(){_8.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Wge=function(e,t){return Wge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Wge(e,t)};function gt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wge(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Dn=function(){return Dn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Dn.apply(this,arguments)};function Qf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function W5e(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})}function q5e(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Eu(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function gb(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}var H2=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},ZW={measureLayout:H2(["layout","layoutId","drag"]),animation:H2(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:H2(["exit"]),drag:H2(["drag","dragControls"]),focus:H2(["whileFocus"]),hover:H2(["whileHover","onHoverStart","onHoverEnd"]),tap:H2(["whileTap","onTap","onTapStart","onTapCancel"]),pan:H2(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:H2(["whileInView","onViewportEnter","onViewportLeave"])};function UKn(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?ZW.projectionNodeConstructor=e[t]:ZW[t].Component=e[t])}var V9=function(){},yht=b.createContext({strict:!1}),Mht=Object.keys(ZW),XKn=Mht.length;function YKn(e,t,n){var r=[];if(b.useContext(yht),!t)return null;for(var i=0;i<XKn;i++){var o=Mht[i],a=ZW[o],s=a.isEnabled,l=a.Component;s(e)&&l&&r.push(b.createElement(l,Dn({key:o},e,{visualElement:t})))}return r}var wwe=b.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),NZ=b.createContext({});function KKn(){return b.useContext(NZ).visualElement}var FZ=b.createContext(null),XD=typeof document<"u",B5e=XD?b.useLayoutEffect:b.useEffect,qge={current:null},Cht=!1;function QKn(){if(Cht=!0,!!XD)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return qge.current=e.matches};e.addListener(t),t()}else qge.current=!1}function ZKn(){!Cht&&QKn();var e=Eu(b.useState(qge.current),1),t=e[0];return t}function JKn(){var e=ZKn(),t=b.useContext(wwe).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function eQn(e,t,n,r){var i=b.useContext(yht),o=KKn(),a=b.useContext(FZ),s=JKn(),l=b.useRef(void 0);r||(r=i.renderer),!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceId:a?.id,blockInitialAnimation:a?.initial===!1,shouldReduceMotion:s}));var c=l.current;return B5e(function(){c?.syncRender()}),b.useEffect(function(){var u;(u=c?.animationState)===null||u===void 0||u.animateChanges()}),B5e(function(){return function(){return c?.notifyUnmount()}},[]),c}function FR(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tQn(e,t,n){return b.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):FR(n)&&(n.current=r))},[t])}function xht(e){return Array.isArray(e)}function Hg(e){return typeof e=="string"||xht(e)}function nQn(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function rQn(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function wht(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n??e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n??e.custom,r,i)),t}function WZ(e,t,n){var r=e.getProps();return wht(r,t,n??r.custom,nQn(e),rQn(e))}function qZ(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||Hg(e.initial)||Hg(e.animate)||Hg(e.whileHover)||Hg(e.whileDrag)||Hg(e.whileTap)||Hg(e.whileFocus)||Hg(e.exit)}function Sht(e){return!!(qZ(e)||e.variants)}function iQn(e,t){if(qZ(e)){var n=e.initial,r=e.animate;return{initial:n===!1||Hg(n)?n:void 0,animate:Hg(r)?r:void 0}}return e.inherit!==!1?t:{}}function oQn(e){var t=iQn(e,b.useContext(NZ)),n=t.initial,r=t.animate;return b.useMemo(function(){return{initial:n,animate:r}},[j5e(n),j5e(r)])}function j5e(e){return Array.isArray(e)?e.join(" "):e}function BZ(e){var t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}var dF={hasAnimatedSinceResize:!0,hasEverUpdated:!1},aQn=1;function sQn(){return BZ(function(){if(dF.hasEverUpdated)return aQn++})}var Aht=b.createContext({}),Oht=b.createContext({});function lQn(e,t,n,r){var i,o=t.layoutId,a=t.layout,s=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=b.useContext(Oht);!r||!n||n?.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||l&&FR(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof a=="string"?a:"both",initialPromotionConfig:u,layoutScroll:c}))}var cQn=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t})(E.Component);function uQn(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;t&&UKn(t);function s(l,c){var u=dQn(l);l=Dn(Dn({},l),{layoutId:u});var d=b.useContext(wwe),p=null,h=oQn(l),g=d.isStatic?void 0:sQn(),m=o(l,d.isStatic);return!d.isStatic&&XD&&(h.visualElement=eQn(a,m,Dn(Dn({},d),l),n),lQn(g,l,h.visualElement,r||ZW.projectionNodeConstructor),p=YKn(l,h.visualElement)),b.createElement(cQn,{visualElement:h.visualElement,props:Dn(Dn({},d),l)},p,b.createElement(NZ.Provider,{value:h},i(a,l,g,tQn(m,h.visualElement,c),m,d.isStatic,h.visualElement)))}return b.forwardRef(s)}function dQn(e){var t,n=e.layoutId,r=(t=b.useContext(Aht))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function pQn(e){function t(r,i){return i===void 0&&(i={}),uQn(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var hQn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Swe(e){return typeof e!="string"||e.includes("-")?!1:!!(hQn.indexOf(e)>-1||/[A-Z]/.test(e))}var G9={};function fQn(e){Object.assign(G9,e)}var Bge=["","X","Y","Z"],gQn=["translate","scale","rotate","skew"],JW=["transformPerspective","x","y","z"];gQn.forEach(function(e){return Bge.forEach(function(t){return JW.push(e+t)})});function mQn(e,t){return JW.indexOf(e)-JW.indexOf(t)}var vQn=new Set(JW);function zB(e){return vQn.has(e)}var bQn=new Set(["originX","originY","originZ"]);function zht(e){return bQn.has(e)}function Tht(e,t){var n=t.layout,r=t.layoutId;return zB(e)||zht(e)||(n||r!==void 0)&&(!!G9[e]||e==="opacity")}var Jy=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},yQn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function MQn(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=a===void 0?!0:a,l=t.allowTransformNone,c=l===void 0?!0:l,u="";o.sort(mQn);for(var d=!1,p=o.length,h=0;h<p;h++){var g=o[h];u+="".concat(yQn[g]||g,"(").concat(i[g],") "),g==="z"&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(i,n?"":u):c&&n&&(u="none"),u}function CQn(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,a=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(a)}function Eht(e){return e.startsWith("--")}var xQn=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const Rht=(e,t)=>n=>Math.max(Math.min(n,t),e),pF=e=>e%1?Number(e.toFixed(5)):e,eq=/(-)?([\d]*\.?[\d])+/g,jge=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,wQn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function TB(e){return typeof e=="string"}const W3={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hF=Object.assign(Object.assign({},W3),{transform:Rht(0,1)}),N8=Object.assign(Object.assign({},W3),{default:1}),EB=e=>({test:t=>TB(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),SC=EB("deg"),mb=EB("%"),zi=EB("px"),SQn=EB("vh"),AQn=EB("vw"),H5e=Object.assign(Object.assign({},mb),{parse:e=>mb.parse(e)/100,transform:e=>mb.transform(e*100)}),Awe=(e,t)=>n=>!!(TB(n)&&wQn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Iht=(e,t,n)=>r=>{if(!TB(r))return r;const[i,o,a,s]=r.match(eq);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},hO={test:Awe("hsl","hue"),parse:Iht("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+mb.transform(pF(t))+", "+mb.transform(pF(n))+", "+pF(hF.transform(r))+")"},OQn=Rht(0,255),Doe=Object.assign(Object.assign({},W3),{transform:e=>Math.round(OQn(e))}),lx={test:Awe("rgb","red"),parse:Iht("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Doe.transform(e)+", "+Doe.transform(t)+", "+Doe.transform(n)+", "+pF(hF.transform(r))+")"};function zQn(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Hge={test:Awe("#"),parse:zQn,transform:lx.transform},G0={test:e=>lx.test(e)||Hge.test(e)||hO.test(e),parse:e=>lx.test(e)?lx.parse(e):hO.test(e)?hO.parse(e):Hge.parse(e),transform:e=>TB(e)?e:e.hasOwnProperty("red")?lx.transform(e):hO.transform(e)},Pht="${c}",Dht="${n}";function TQn(e){var t,n,r,i;return isNaN(e)&&TB(e)&&((n=(t=e.match(eq))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(jge))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function kht(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(jge);r&&(n=r.length,e=e.replace(jge,Pht),t.push(...r.map(G0.parse)));const i=e.match(eq);return i&&(e=e.replace(eq,Dht),t.push(...i.map(W3.parse))),{values:t,numColors:n,tokenised:e}}function Lht(e){return kht(e).values}function _ht(e){const{values:t,numColors:n,tokenised:r}=kht(e),i=t.length;return o=>{let a=r;for(let s=0;s<i;s++)a=a.replace(s<n?Pht:Dht,s<n?G0.transform(o[s]):pF(o[s]));return a}}const EQn=e=>typeof e=="number"?0:e;function RQn(e){const t=Lht(e);return _ht(e)(t.map(EQn))}const eM={test:TQn,parse:Lht,createTransformer:_ht,getAnimatableNone:RQn},IQn=new Set(["brightness","contrast","saturate","opacity"]);function PQn(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(eq)||[];if(!r)return e;const i=n.replace(r,"");let o=IQn.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const DQn=/([a-z-]*)\(.*?\)/g,Vge=Object.assign(Object.assign({},eM),{getAnimatableNone:e=>{const t=e.match(DQn);return t?t.map(PQn).join(" "):e}});var V5e=Dn(Dn({},W3),{transform:Math.round}),Nht={borderWidth:zi,borderTopWidth:zi,borderRightWidth:zi,borderBottomWidth:zi,borderLeftWidth:zi,borderRadius:zi,radius:zi,borderTopLeftRadius:zi,borderTopRightRadius:zi,borderBottomRightRadius:zi,borderBottomLeftRadius:zi,width:zi,maxWidth:zi,height:zi,maxHeight:zi,size:zi,top:zi,right:zi,bottom:zi,left:zi,padding:zi,paddingTop:zi,paddingRight:zi,paddingBottom:zi,paddingLeft:zi,margin:zi,marginTop:zi,marginRight:zi,marginBottom:zi,marginLeft:zi,rotate:SC,rotateX:SC,rotateY:SC,rotateZ:SC,scale:N8,scaleX:N8,scaleY:N8,scaleZ:N8,skew:SC,skewX:SC,skewY:SC,distance:zi,translateX:zi,translateY:zi,translateZ:zi,x:zi,y:zi,z:zi,perspective:zi,transformPerspective:zi,opacity:hF,originX:H5e,originY:H5e,originZ:zi,zIndex:V5e,fillOpacity:hF,strokeOpacity:hF,numOctaves:V5e};function Owe(e,t,n,r){var i,o=e.style,a=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,p=!0;for(var h in t){var g=t[h];if(Eht(h)){a[h]=g;continue}var m=Nht[h],v=xQn(g,m);if(zB(h)){if(u=!0,s[h]=v,l.push(h),!p)continue;g!==((i=m.default)!==null&&i!==void 0?i:0)&&(p=!1)}else zht(h)?(c[h]=v,d=!0):o[h]=v}u?o.transform=MQn(e,n,p,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=CQn(c))}var zwe=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Fht(e,t,n){for(var r in t)!Jy(t[r])&&!Tht(r,n)&&(e[r]=t[r])}function kQn(e,t,n){var r=e.transformTemplate;return b.useMemo(function(){var i=zwe();Owe(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,a=i.style;return Dn(Dn({},o),a)},[t])}function LQn(e,t,n){var r=e.style||{},i={};return Fht(i,r,e),Object.assign(i,kQn(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function _Qn(e,t,n){var r={},i=LQn(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var NQn=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function $9(e){return NQn.has(e)}var Wht=function(e){return!$9(e)};function FQn(e){e&&(Wht=function(t){return t.startsWith("on")?!$9(t):e(t)})}try{FQn(require("@emotion/is-prop-valid").default)}catch{}function WQn(e,t,n){var r={};for(var i in e)(Wht(i)||n===!0&&$9(i)||!t&&!$9(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function G5e(e,t,n){return typeof e=="string"?e:zi.transform(t+n*e)}function qQn(e,t,n){var r=G5e(t,e.x,e.width),i=G5e(n,e.y,e.height);return"".concat(r," ").concat(i)}var BQn={offset:"strokeDashoffset",array:"strokeDasharray"};function jQn(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),e.pathLength=1;var o=BQn;e[o.offset]=zi.transform(-r);var a=zi.transform(t),s=zi.transform(n);e[o.array]="".concat(a," ").concat(s)}function Twe(e,t,n,r){var i=t.attrX,o=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=c===void 0?1:c,d=t.pathOffset,p=d===void 0?0:d,h=Qf(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Owe(e,h,n,r),e.attrs=e.style,e.style={};var g=e.attrs,m=e.style,v=e.dimensions;g.transform&&(v&&(m.transform=g.transform),delete g.transform),v&&(a!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=qQn(v,a!==void 0?a:.5,s!==void 0?s:.5)),i!==void 0&&(g.x=i),o!==void 0&&(g.y=o),l!==void 0&&jQn(g,l,u,p)}var qht=function(){return Dn(Dn({},zwe()),{attrs:{}})};function HQn(e,t){var n=b.useMemo(function(){var i=qht();return Twe(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),Dn(Dn({},i.attrs),{style:Dn({},i.style)})},[t]);if(e.style){var r={};Fht(r,e.style,e),n.style=Dn(Dn({},r),n.style)}return n}function VQn(e){e===void 0&&(e=!1);var t=function(n,r,i,o,a,s){var l=a.latestValues,c=Swe(n)?HQn:_Qn,u=c(r,l,s),d=WQn(r,typeof n=="string",e),p=Dn(Dn(Dn({},d),u),{ref:o});return i&&(p["data-projection-id"]=i),b.createElement(n,p)};return t}var GQn=/([a-z])([A-Z])/g,$Qn="$1-$2",Bht=function(e){return e.replace(GQn,$Qn).toLowerCase()};function jht(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var a in o)e.style.setProperty(a,o[a])}var Hht=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Vht(e,t,n,r){jht(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(Hht.has(i)?i:Bht(i),t.attrs[i])}function Ewe(e){var t=e.style,n={};for(var r in t)(Jy(t[r])||Tht(r,e))&&(n[r]=t[r]);return n}function Ght(e){var t=Ewe(e);for(var n in e)if(Jy(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function Rwe(e){return typeof e=="object"&&typeof e.start=="function"}var tq=function(e){return Array.isArray(e)},UQn=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},$ht=function(e){return tq(e)?e[e.length-1]||0:e};function O7(e){var t=Jy(e)?e.get():e;return UQn(t)?t.toValue():t}function $5e(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:XQn(t,n,r,i),renderState:o()};return a&&(s.mount=function(l){return a(t,l,s)}),s}var Uht=function(e){return function(t,n){var r=b.useContext(NZ),i=b.useContext(FZ);return n?$5e(e,t,r,i):BZ(function(){return $5e(e,t,r,i)})}};function XQn(e,t,n,r){var i={},o=n?.initial===!1,a=r(e);for(var s in a)i[s]=O7(a[s]);var l=e.initial,c=e.animate,u=qZ(e),d=Sht(e);t&&d&&!u&&e.inherit!==!1&&(l??(l=t.initial),c??(c=t.animate));var p=o||l===!1,h=p?c:l;if(h&&typeof h!="boolean"&&!Rwe(h)){var g=Array.isArray(h)?h:[h];g.forEach(function(m){var v=wht(e,m);if(v){var y=v.transitionEnd;v.transition;var M=Qf(v,["transitionEnd","transition"]);for(var C in M){var x=M[C];if(Array.isArray(x)){var w=p?x.length-1:0;x=x[w]}x!==null&&(i[C]=x)}for(var C in y)i[C]=y[C]}})}return i}var YQn={useVisualState:Uht({scrapeMotionValuesFromProps:Ght,createRenderState:qht,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}Twe(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),Vht(t,r)}})},KQn={useVisualState:Uht({scrapeMotionValuesFromProps:Ewe,createRenderState:zwe})};function QQn(e,t,n,r,i){var o=t.forwardMotionProps,a=o===void 0?!1:o,s=Swe(e)?YQn:KQn;return Dn(Dn({},s),{preloadedFeatures:n,useRender:VQn(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var js;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(js||(js={}));function jZ(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Gge(e,t,n,r){b.useEffect(function(){var i=e.current;if(n&&i)return jZ(i,t,n,r)},[e,t,n,r])}function ZQn(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(js.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(js.Focus,!1)};Gge(n,"focus",t?r:void 0),Gge(n,"blur",t?i:void 0)}function Xht(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function Yht(e){var t=!!e.touches;return t}function JQn(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var eZn={pageX:0,pageY:0};function tZn(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||eZn;return{x:r[t+"X"],y:r[t+"Y"]}}function nZn(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Iwe(e,t){return t===void 0&&(t="page"),{point:Yht(e)?tZn(e,t):nZn(e,t)}}var Kht=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,Iwe(r))};return t?JQn(n):n},rZn=function(){return XD&&window.onpointerdown===null},iZn=function(){return XD&&window.ontouchstart===null},oZn=function(){return XD&&window.onmousedown===null},aZn={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},sZn={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Qht(e){return rZn()?e:iZn()?sZn[e]:oZn()?aZn[e]:e}function OI(e,t,n,r){return jZ(e,Qht(t),Kht(n,t==="pointerdown"),r)}function U9(e,t,n,r){return Gge(e,Qht(t),n&&Kht(n,t==="pointerdown"),r)}function Zht(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var U5e=Zht("dragHorizontal"),X5e=Zht("dragVertical");function Jht(e){var t=!1;if(e==="y")t=X5e();else if(e==="x")t=U5e();else{var n=U5e(),r=X5e();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function eft(){var e=Jht(!0);return e?(e(),!1):!0}function Y5e(e,t,n){return function(r,i){var o;!Xht(r)||eft()||((o=e.animationState)===null||o===void 0||o.setActive(js.Hover,t),n?.(r,i))}}function lZn(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;U9(i,"pointerenter",t||r?Y5e(i,!0,t):void 0,{passive:!t}),U9(i,"pointerleave",n||r?Y5e(i,!1,n):void 0,{passive:!n})}var tft=function(e,t){return t?e===t?!0:tft(e,t.parentElement):!1};function nft(e){return b.useEffect(function(){return function(){return e()}},[])}const X9=(e,t,n)=>Math.min(Math.max(n,e),t),koe=.001,cZn=.01,uZn=10,dZn=.05,pZn=1;function hZn({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=X9(dZn,pZn,a),e=X9(cZn,uZn,e/1e3),a<1?(i=c=>{const u=c*a,d=u*e,p=u-n,h=$ge(c,a),g=Math.exp(-d);return koe-p/h*g},o=c=>{const d=c*a*e,p=d*n+n,h=Math.pow(a,2)*Math.pow(c,2)*e,g=Math.exp(-d),m=$ge(Math.pow(c,2),a);return(-i(c)+koe>0?-1:1)*((p-h)*g)/m}):(i=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-koe+u*d},o=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const s=5/e,l=gZn(i,o,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const fZn=12;function gZn(e,t,n){let r=n;for(let i=1;i<fZn;i++)r=r-e(r)/t(r);return r}function $ge(e,t){return e*Math.sqrt(1-t*t)}const mZn=["duration","bounce"],vZn=["stiffness","damping","mass"];function K5e(e,t){return t.some(n=>e[n]!==void 0)}function bZn(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!K5e(e,vZn)&&K5e(e,mZn)){const n=hZn(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Pwe(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Qf(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=bZn(o),h=Q5e,g=Q5e;function m(){const v=u?-(u/1e3):0,y=n-t,M=l/(2*Math.sqrt(s*c)),C=Math.sqrt(s/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),M<1){const x=$ge(C,M);h=w=>{const S=Math.exp(-M*C*w);return n-S*((v+M*C*y)/x*Math.sin(x*w)+y*Math.cos(x*w))},g=w=>{const S=Math.exp(-M*C*w);return M*C*S*(Math.sin(x*w)*(v+M*C*y)/x+y*Math.cos(x*w))-S*(Math.cos(x*w)*(v+M*C*y)-x*y*Math.sin(x*w))}}else if(M===1)h=x=>n-Math.exp(-C*x)*(y+(v+C*y)*x);else{const x=C*Math.sqrt(M*M-1);h=w=>{const S=Math.exp(-M*C*w),A=Math.min(x*w,300);return n-S*((v+M*C*y)*Math.sinh(A)+x*y*Math.cosh(A))/x}}}return m(),{next:v=>{const y=h(v);if(p)a.done=v>=d;else{const M=g(v)*1e3,C=Math.abs(M)<=r,x=Math.abs(n-y)<=i;a.done=C&&x}return a.value=a.done?n:y,a},flipTarget:()=>{u=-u,[t,n]=[n,t],m()}}}Pwe.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Q5e=e=>0,nq=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ec=(e,t,n)=>-n*e+n*t+e;function Loe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Z5e({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=Loe(l,s,e+1/3),o=Loe(l,s,e),a=Loe(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const yZn=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},MZn=[Hge,lx,hO],J5e=e=>MZn.find(t=>t.test(e)),rft=(e,t)=>{let n=J5e(e),r=J5e(t),i=n.parse(e),o=r.parse(t);n===hO&&(i=Z5e(i),n=lx),r===hO&&(o=Z5e(o),r=lx);const a=Object.assign({},i);return s=>{for(const l in a)l!=="alpha"&&(a[l]=yZn(i[l],o[l],s));return a.alpha=ec(i.alpha,o.alpha,s),n.transform(a)}},Uge=e=>typeof e=="number",CZn=(e,t)=>n=>t(e(n)),HZ=(...e)=>e.reduce(CZn);function ift(e,t){return Uge(e)?n=>ec(e,t,n):G0.test(e)?rft(e,t):aft(e,t)}const oft=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,a)=>ift(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},xZn=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ift(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function eNe(e){const t=eM.parse(e),n=t.length;let r=0,i=0,o=0;for(let a=0;a<n;a++)r||typeof t[a]=="number"?r++:t[a].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const aft=(e,t)=>{const n=eM.createTransformer(t),r=eNe(e),i=eNe(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?HZ(oft(r.parsed,i.parsed),n):a=>`${a>0?t:e}`},wZn=(e,t)=>n=>ec(e,t,n);function SZn(e){if(typeof e=="number")return wZn;if(typeof e=="string")return G0.test(e)?rft:aft;if(Array.isArray(e))return oft;if(typeof e=="object")return xZn}function AZn(e,t,n){const r=[],i=n||SZn(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]:t;s=HZ(l,s)}r.push(s)}return r}function OZn([e,t],[n]){return r=>n(nq(e,t,r))}function zZn(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let l=1;for(;l<n&&!(e[l]>i||l===r);l++);o=l-1}const s=nq(e[o],e[o+1],i);return t[o](s)}}function sft(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;V9(o===t.length),V9(!r||!Array.isArray(r)||r.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=AZn(t,r,i),s=o===2?OZn(e,a):zZn(e,a);return n?l=>s(X9(e[0],e[o-1],l)):s}const VZ=e=>t=>1-e(1-t),Dwe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,TZn=e=>t=>Math.pow(t,e),lft=e=>t=>t*t*((e+1)*t-e),EZn=e=>{const t=lft(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},cft=1.525,RZn=4/11,IZn=8/11,PZn=9/10,kwe=e=>e,Lwe=TZn(2),DZn=VZ(Lwe),uft=Dwe(Lwe),dft=e=>1-Math.sin(Math.acos(e)),_we=VZ(dft),kZn=Dwe(_we),Nwe=lft(cft),LZn=VZ(Nwe),_Zn=Dwe(Nwe),NZn=EZn(cft),FZn=4356/361,WZn=35442/1805,qZn=16061/1805,Y9=e=>{if(e===1||e===0)return e;const t=e*e;return e<RZn?7.5625*t:e<IZn?9.075*t-9.9*e+3.4:e<PZn?FZn*t-WZn*e+qZn:10.8*e*e-20.52*e+10.72},BZn=VZ(Y9),jZn=e=>e<.5?.5*(1-Y9(1-e*2)):.5*Y9(e*2-1)+.5;function HZn(e,t){return e.map(()=>t||uft).splice(0,e.length-1)}function VZn(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function GZn(e,t){return e.map(n=>n*t)}function z7({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=GZn(r&&r.length===a.length?r:VZn(a),i);function l(){return sft(s,a,{ease:Array.isArray(n)?n:HZn(a,n)})}let c=l();return{next:u=>(o.value=c(u),o.done=u>=i,o),flipTarget:()=>{a.reverse(),c=l()}}}function $Zn({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=n*e;const l=t+s,c=o===void 0?l:o(l);return c!==l&&(s=c-t),{next:u=>{const d=-s*Math.exp(-u/r);return a.done=!(d>i||d<-i),a.value=a.done?c:c+d,a},flipTarget:()=>{}}}const tNe={keyframes:z7,spring:Pwe,decay:$Zn};function UZn(e){if(Array.isArray(e.to))return z7;if(tNe[e.type])return tNe[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?z7:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Pwe:z7}const pft=1/60*1e3,XZn=typeof performance<"u"?()=>performance.now():()=>Date.now(),hft=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(XZn()),pft);function YZn(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const d=u&&i,p=d?t:n;return c&&a.add(l),p.indexOf(l)===-1&&(p.push(l),d&&i&&(r=t.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),a.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let c=0;c<r;c++){const u=t[c];u(l),a.has(u)&&(s.schedule(u),e())}i=!1,o&&(o=!1,s.process(l))}};return s}const KZn=40;let Xge=!0,rq=!1,Yge=!1;const zI={delta:0,timestamp:0},RB=["read","update","preRender","render","postRender"],GZ=RB.reduce((e,t)=>(e[t]=YZn(()=>rq=!0),e),{}),vb=RB.reduce((e,t)=>{const n=GZ[t];return e[t]=(r,i=!1,o=!1)=>(rq||ZZn(),n.schedule(r,i,o)),e},{}),AP=RB.reduce((e,t)=>(e[t]=GZ[t].cancel,e),{}),_oe=RB.reduce((e,t)=>(e[t]=()=>GZ[t].process(zI),e),{}),QZn=e=>GZ[e].process(zI),fft=e=>{rq=!1,zI.delta=Xge?pft:Math.max(Math.min(e-zI.timestamp,KZn),1),zI.timestamp=e,Yge=!0,RB.forEach(QZn),Yge=!1,rq&&(Xge=!1,hft(fft))},ZZn=()=>{rq=!0,Xge=!0,Yge||hft(fft)},K9=()=>zI;function gft(e,t,n=0){return e-t-n}function JZn(e,t,n=0,r=!0){return r?gft(t+-e,t,n):t-(e-t)+n}function eJn(e,t,n,r){return r?e>=t+n:e<=-n}const tJn=e=>{const t=({delta:n})=>e(n);return{start:()=>vb.update(t,!0),stop:()=>AP.update(t)}};function mft(e){var t,n,{from:r,autoplay:i=!0,driver:o=tJn,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:p,onRepeat:h,onUpdate:g}=e,m=Qf(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:v}=m,y,M=0,C=m.duration,x,w=!1,S=!0,A;const z=UZn(m);!((n=(t=z).needsInterpolation)===null||n===void 0)&&n.call(t,r,v)&&(A=sft([0,100],[r,v],{clamp:!1}),r=0,v=100);const O=z(Object.assign(Object.assign({},m),{from:r,to:v}));function T(){M++,l==="reverse"?(S=M%2===0,a=JZn(a,C,c,S)):(a=gft(a,C,c),l==="mirror"&&O.flipTarget()),w=!1,h&&h()}function I(){y.stop(),p&&p()}function P(F){if(S||(F=-F),a+=F,!w){const L=O.next(Math.max(0,a));x=L.value,A&&(x=A(x)),w=S?L.done:a<=0}g?.(x),w&&(M===0&&(C??(C=a)),M<s?eJn(a,C,c,S)&&T():I())}function N(){u?.(),y=o(P),y.start()}return i&&N(),{stop:()=>{d?.(),y.stop()}}}function vft(e,t){return t?e*(1e3/t):0}function nJn({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:h}){let g;function m(C){return n!==void 0&&C<n||r!==void 0&&C>r}function v(C){return n===void 0?r:r===void 0||Math.abs(n-C)<Math.abs(r-C)?n:r}function y(C){g?.stop(),g=mft(Object.assign(Object.assign({},C),{driver:u,onUpdate:x=>{var w;d?.(x),(w=C.onUpdate)===null||w===void 0||w.call(C,x)},onComplete:p,onStop:h}))}function M(C){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},C))}if(m(e))M({from:e,velocity:t,to:v(e)});else{let C=i*t+e;typeof c<"u"&&(C=c(C));const x=v(C),w=x===n?-1:1;let S,A;const z=O=>{S=A,A=O,t=vft(O-S,K9().delta),(w===1&&O>x||w===-1&&O<x)&&M({from:O,to:x,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:c,onUpdate:m(C)?z:void 0})}return{stop:()=>g?.stop()}}const Kge=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),nNe=e=>Kge(e)&&e.hasOwnProperty("z"),F8=(e,t)=>Math.abs(e-t);function bft(e,t){if(Uge(e)&&Uge(t))return F8(e,t);if(Kge(e)&&Kge(t)){const n=F8(e.x,t.x),r=F8(e.y,t.y),i=nNe(e)&&nNe(t)?F8(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const yft=(e,t)=>1-3*t+3*e,Mft=(e,t)=>3*t-6*e,Cft=e=>3*e,Q9=(e,t,n)=>((yft(t,n)*e+Mft(t,n))*e+Cft(t))*e,xft=(e,t,n)=>3*yft(t,n)*e*e+2*Mft(t,n)*e+Cft(t),rJn=1e-7,iJn=10;function oJn(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=Q9(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>rJn&&++s<iJn);return a}const aJn=8,sJn=.001;function lJn(e,t,n,r){for(let i=0;i<aJn;++i){const o=xft(t,n,r);if(o===0)return t;const a=Q9(t,n,r)-e;t-=a/o}return t}const T7=11,W8=1/(T7-1);function cJn(e,t,n,r){if(e===t&&n===r)return kwe;const i=new Float32Array(T7);for(let a=0;a<T7;++a)i[a]=Q9(a*W8,e,n);function o(a){let s=0,l=1;const c=T7-1;for(;l!==c&&i[l]<=a;++l)s+=W8;--l;const u=(a-i[l])/(i[l+1]-i[l]),d=s+u*W8,p=xft(d,e,n);return p>=sJn?lJn(a,d,e,n):p===0?d:oJn(a,s,s+W8,e,n)}return a=>a===0||a===1?a:Q9(o(a),t,r)}function uJn(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||n||r||i,s=b.useRef(!1),l=b.useRef(null),c={passive:!(n||t||r||g)};function u(){var m;(m=l.current)===null||m===void 0||m.call(l),l.current=null}function d(){var m;return u(),s.current=!1,(m=o.animationState)===null||m===void 0||m.setActive(js.Tap,!1),!eft()}function p(m,v){d()&&(tft(o.getInstance(),m.target)?t?.(m,v):r?.(m,v))}function h(m,v){d()&&r?.(m,v)}function g(m,v){var y;u(),!s.current&&(s.current=!0,l.current=HZ(OI(window,"pointerup",p,c),OI(window,"pointercancel",h,c)),(y=o.animationState)===null||y===void 0||y.setActive(js.Tap,!0),n?.(m,v))}U9(o,"pointerdown",a?g:void 0,c),nft(u)}var Qge=new WeakMap,Noe=new WeakMap,dJn=function(e){var t;(t=Qge.get(e.target))===null||t===void 0||t(e)},pJn=function(e){e.forEach(dJn)};function hJn(e){var t=e.root,n=Qf(e,["root"]),r=t||document;Noe.has(r)||Noe.set(r,{});var i=Noe.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(pJn,Dn({root:t},n))),i[o]}function fJn(e,t,n){var r=hJn(t);return Qge.set(e,n),r.observe(e),function(){Qge.delete(e),r.unobserve(e)}}function gJn(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=o===void 0?{}:o,s=b.useRef({hasEnteredView:!1,isInView:!1}),l=!!(n||r||i);a.once&&s.current.hasEnteredView&&(l=!1);var c=typeof IntersectionObserver>"u"?bJn:vJn;c(l,s.current,t,a)}var mJn={some:0,all:1};function vJn(e,t,n,r){var i=r.root,o=r.margin,a=r.amount,s=a===void 0?"some":a,l=r.once;b.useEffect(function(){if(e){var c={root:i?.current,rootMargin:o,threshold:typeof s=="number"?s:mJn[s]},u=function(d){var p,h=d.isIntersecting;if(t.isInView!==h&&(t.isInView=h,!(l&&!h&&t.hasEnteredView))){h&&(t.hasEnteredView=!0),(p=n.animationState)===null||p===void 0||p.setActive(js.InView,h);var g=n.getProps(),m=h?g.onViewportEnter:g.onViewportLeave;m?.(d)}};return fJn(n.getInstance(),c,u)}},[e,i,o,s])}function bJn(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;b.useEffect(function(){!e||!o||requestAnimationFrame(function(){var a;t.hasEnteredView=!0;var s=n.getProps().onViewportEnter;s?.(null),(a=n.animationState)===null||a===void 0||a.setActive(js.InView,!0)})},[e])}var cx=function(e){return function(t){return e(t),null}},yJn={inView:cx(gJn),tap:cx(uJn),focus:cx(ZQn),hover:cx(lZn)},MJn=0,CJn=function(){return MJn++},xJn=function(){return BZ(CJn)};function wft(){var e=b.useContext(FZ);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=xJn();b.useEffect(function(){return r(i)},[]);var o=function(){return n?.(i)};return!t&&n?[!1,o]:[!0]}function Sft(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Z9=function(e){return e*1e3},wJn={linear:kwe,easeIn:Lwe,easeInOut:uft,easeOut:DZn,circIn:dft,circInOut:kZn,circOut:_we,backIn:Nwe,backInOut:_Zn,backOut:LZn,anticipate:NZn,bounceIn:BZn,bounceInOut:jZn,bounceOut:Y9},rNe=function(e){if(Array.isArray(e)){V9(e.length===4);var t=Eu(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return cJn(n,r,i,o)}else if(typeof e=="string")return wJn[e];return e},SJn=function(e){return Array.isArray(e)&&typeof e[0]!="number"},iNe=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&eM.test(t)&&!t.startsWith("url("))},US=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},q8=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Foe=function(){return{type:"keyframes",ease:"linear",duration:.3}},AJn=function(e){return{type:"keyframes",duration:.8,values:e}},oNe={x:US,y:US,z:US,rotate:US,rotateX:US,rotateY:US,rotateZ:US,scaleX:q8,scaleY:q8,scale:q8,opacity:Foe,backgroundColor:Foe,color:Foe,default:q8},OJn=function(e,t){var n;return tq(t)?n=AJn:n=oNe[e]||oNe.default,Dn({to:t},n(t))},zJn=Dn(Dn({},Nht),{color:G0,backgroundColor:G0,outlineColor:G0,fill:G0,stroke:G0,borderColor:G0,borderTopColor:G0,borderRightColor:G0,borderBottomColor:G0,borderLeftColor:G0,filter:Vge,WebkitFilter:Vge}),Fwe=function(e){return zJn[e]};function Wwe(e,t){var n,r=Fwe(e);return r!==Vge&&(r=eM),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function TJn(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Qf(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function EJn(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=Qf(e,["ease","times","yoyo","flip","loop"]),s=Dn({},a);return n&&(s.offset=n),a.duration&&(s.duration=Z9(a.duration)),a.repeatDelay&&(s.repeatDelay=Z9(a.repeatDelay)),t&&(s.ease=SJn(t)?t.map(rNe):rNe(t)),a.type==="tween"&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),a.type!=="spring"&&(s.type="keyframes"),s}function RJn(e,t){var n,r,i=qwe(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function IJn(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=gb([],Eu(e.to),!1),e.to[0]=e.from),e}function PJn(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),IJn(t),TJn(e)||(e=Dn(Dn({},e),OJn(n,t.to))),Dn(Dn({},t),EJn(e))}function DJn(e,t,n,r,i){var o,a=qwe(r,e),s=(o=a.from)!==null&&o!==void 0?o:t.get(),l=iNe(e,n);s==="none"&&l&&typeof n=="string"?s=Wwe(e,n):aNe(s)&&typeof n=="string"?s=sNe(n):!Array.isArray(n)&&aNe(n)&&typeof s=="string"&&(n=sNe(s));var c=iNe(e,s);function u(){var p={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(h){return t.set(h)}};return a.type==="inertia"||a.type==="decay"?nJn(Dn(Dn({},p),a)):mft(Dn(Dn({},PJn(a,p,e)),{onUpdate:function(h){var g;p.onUpdate(h),(g=a.onUpdate)===null||g===void 0||g.call(a,h)},onComplete:function(){var h;p.onComplete(),(h=a.onComplete)===null||h===void 0||h.call(a)}}))}function d(){var p,h,g=$ht(n);return t.set(g),i(),(p=a?.onUpdate)===null||p===void 0||p.call(a,g),(h=a?.onComplete)===null||h===void 0||h.call(a),{stop:function(){}}}return!c||!l||a.type===!1?d:u}function aNe(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function sNe(e){return typeof e=="number"?0:Wwe("",e)}function qwe(e,t){return e[t]||e.default||e}function Bwe(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,a,s=DJn(e,t,n,r,i),l=RJn(r,e),c=function(){return a=s()};return l?o=window.setTimeout(c,Z9(l)):c(),function(){clearTimeout(o),a?.stop()}})}var kJn=function(e){return/^\-?\d*\.?\d+$/.test(e)},LJn=function(e){return/^0[^.\s]+$/.test(e)};function jwe(e,t){e.indexOf(t)===-1&&e.push(t)}function Hwe(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var fF=(function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return jwe(this.subscriptions,t),function(){return Hwe(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var a=this.subscriptions[o];a&&a(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e})(),_Jn=function(e){return!isNaN(parseFloat(e))},NJn=(function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new fF,this.velocityUpdateSubscribers=new fF,this.renderSubscribers=new fF,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=K9(),a=o.delta,s=o.timestamp;n.lastUpdated!==s&&(n.timeDelta=a,n.lastUpdated=s,vb.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return vb.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=_Jn(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?vft(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e})();function OP(e){return new NJn(e)}var Aft=function(e){return function(t){return t.test(e)}},FJn={test:function(e){return e==="auto"},parse:function(e){return e}},Oft=[W3,zi,mb,SC,AQn,SQn,FJn],Z4=function(e){return Oft.find(Aft(e))},WJn=gb(gb([],Eu(Oft),!1),[G0,eM],!1),qJn=function(e){return WJn.find(Aft(e))};function BJn(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,OP(n))}function jJn(e,t){var n=WZ(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var a=Qf(r,["transitionEnd","transition"]);a=Dn(Dn({},a),o);for(var s in a){var l=$ht(a[s]);BJn(e,s,l)}}function HJn(e,t,n){var r,i,o,a,s=Object.keys(t).filter(function(h){return!e.hasValue(h)}),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],p=null;Array.isArray(d)&&(p=d[0]),p===null&&(p=(i=(r=n[u])!==null&&r!==void 0?r:e.readValue(u))!==null&&i!==void 0?i:t[u]),p!=null&&(typeof p=="string"&&(kJn(p)||LJn(p))?p=parseFloat(p):!qJn(p)&&eM.test(d)&&(p=Wwe(u,d)),e.addValue(u,OP(p)),(o=(a=n)[u])!==null&&o!==void 0||(a[u]=p),e.setBaseTarget(u,p))}}function VJn(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function GJn(e,t,n){var r,i,o={};for(var a in e)o[a]=(r=VJn(a,t))!==null&&r!==void 0?r:(i=n.getValue(a))===null||i===void 0?void 0:i.get();return o}function $Jn(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(a){return Zge(e,a,n)});r=Promise.all(i)}else if(typeof t=="string")r=Zge(e,t,n);else{var o=typeof t=="function"?WZ(e,t,n.custom):t;r=zft(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function Zge(e,t,n){var r;n===void 0&&(n={});var i=WZ(e,t,n.custom),o=(i||{}).transition,a=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return zft(e,i,n)}:function(){return Promise.resolve()},l=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(h){h===void 0&&(h=0);var g=a.delayChildren,m=g===void 0?0:g,v=a.staggerChildren,y=a.staggerDirection;return UJn(e,t,m+h,v,y,n)}:function(){return Promise.resolve()},c=a.when;if(c){var u=Eu(c==="beforeChildren"?[s,l]:[l,s],2),d=u[0],p=u[1];return d().then(p)}else return Promise.all([s(),l(n.delay)])}function zft(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,a=o===void 0?0:o,s=i.transitionOverride,l=i.type,c=e.makeTargetAnimatable(t),u=c.transition,d=u===void 0?e.getDefaultTransition():u,p=c.transitionEnd,h=Qf(c,["transition","transitionEnd"]);s&&(d=s);var g=[],m=l&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[l]);for(var v in h){var y=e.getValue(v),M=h[v];if(!(!y||M===void 0||m&&YJn(m,v))){var C=Dn({delay:a},d);e.shouldReduceMotion&&zB(v)&&(C=Dn(Dn({},C),{type:!1,delay:0}));var x=Bwe(v,y,M,C);g.push(x)}}return Promise.all(g).then(function(){p&&jJn(e,p)})}function UJn(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var a=[],s=(e.variantChildren.size-1)*r,l=i===1?function(c){return c===void 0&&(c=0),c*r}:function(c){return c===void 0&&(c=0),s-c*r};return Array.from(e.variantChildren).sort(XJn).forEach(function(c,u){a.push(Zge(c,t,Dn(Dn({},o),{delay:n+l(u)})).then(function(){return c.notifyAnimationComplete(t)}))}),Promise.all(a)}function XJn(e,t){return e.sortNodePosition(t)}function YJn(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var Vwe=[js.Animate,js.InView,js.Focus,js.Hover,js.Tap,js.Drag,js.Exit],KJn=gb([],Eu(Vwe),!1).reverse(),QJn=Vwe.length;function ZJn(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return $Jn(e,r,i)}))}}function JJn(e){var t=ZJn(e),n=ter(),r={},i=!0,o=function(u,d){var p=WZ(e,d);if(p){p.transition;var h=p.transitionEnd,g=Qf(p,["transition","transitionEnd"]);u=Dn(Dn(Dn({},u),g),h)}return u};function a(u){return r[u]!==void 0}function s(u){t=u(e)}function l(u,d){for(var p,h=e.getProps(),g=e.getVariantContext(!0)||{},m=[],v=new Set,y={},M=1/0,C=function(A){var z=KJn[A],O=n[z],T=(p=h[z])!==null&&p!==void 0?p:g[z],I=Hg(T),P=z===d?O.isActive:null;P===!1&&(M=A);var N=T===g[z]&&T!==h[z]&&I;if(N&&i&&e.manuallyAnimateOnMount&&(N=!1),O.protectedKeys=Dn({},y),!O.isActive&&P===null||!T&&!O.prevProp||Rwe(T)||typeof T=="boolean")return"continue";var F=eer(O.prevProp,T),L=F||z===d&&O.isActive&&!N&&I||A>M&&I,W=Array.isArray(T)?T:[T],H=W.reduce(o,{});P===!1&&(H={});var j=O.prevResolvedValues,G=j===void 0?{}:j,q=Dn(Dn({},G),H),$=function(re){L=!0,v.delete(re),O.needsAnimating[re]=!0};for(var U in q){var X=H[U],Q=G[U];y.hasOwnProperty(U)||(X!==Q?tq(X)&&tq(Q)?!Sft(X,Q)||F?$(U):O.protectedKeys[U]=!0:X!==void 0?$(U):v.add(U):X!==void 0&&v.has(U)?$(U):O.protectedKeys[U]=!0)}O.prevProp=T,O.prevResolvedValues=H,O.isActive&&(y=Dn(Dn({},y),H)),i&&e.blockInitialAnimation&&(L=!1),L&&!N&&m.push.apply(m,gb([],Eu(W.map(function(re){return{animation:re,options:Dn({type:z},u)}})),!1))},x=0;x<QJn;x++)C(x);if(r=Dn({},y),v.size){var w={};v.forEach(function(A){var z=e.getBaseTarget(A);z!==void 0&&(w[A]=z)}),m.push({animation:w})}var S=!!m.length;return i&&h.initial===!1&&!e.manuallyAnimateOnMount&&(S=!1),i=!1,S?t(m):Promise.resolve()}function c(u,d,p){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(function(v){var y;return(y=v.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;var g=l(p,u);for(var m in n)n[m].protectedKeys={};return g}return{isAnimated:a,animateChanges:l,setActive:c,setAnimateFunction:s,getState:function(){return n}}}function eer(e,t){return typeof t=="string"?t!==e:xht(t)?!Sft(t,e):!1}function XS(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ter(){var e;return e={},e[js.Animate]=XS(!0),e[js.InView]=XS(),e[js.Hover]=XS(),e[js.Tap]=XS(),e[js.Drag]=XS(),e[js.Focus]=XS(),e[js.Exit]=XS(),e}var ner={animation:cx(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=JJn(t)),Rwe(n)&&b.useEffect(function(){return n.subscribe(t)},[n])}),exit:cx(function(e){var t=e.custom,n=e.visualElement,r=Eu(wft(),2),i=r[0],o=r[1],a=b.useContext(FZ);b.useEffect(function(){var s,l;n.isPresent=i;var c=(s=n.animationState)===null||s===void 0?void 0:s.setActive(js.Exit,!i,{custom:(l=a?.custom)!==null&&l!==void 0?l:t});!i&&c?.then(o)},[i])})},Tft=(function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,a=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var p=qoe(i.lastMoveEventInfo,i.history),h=i.startEvent!==null,g=bft(p.offset,{x:0,y:0})>=3;if(!(!h&&!g)){var m=p.point,v=K9().timestamp;i.history.push(Dn(Dn({},m),{timestamp:v}));var y=i.handlers,M=y.onStart,C=y.onMove;h||(M&&M(i.lastMoveEvent,p),i.startEvent=i.lastMoveEvent),C&&C(i.lastMoveEvent,p)}}},this.handlePointerMove=function(p,h){if(i.lastMoveEvent=p,i.lastMoveEventInfo=Woe(h,i.transformPagePoint),Xht(p)&&p.buttons===0){i.handlePointerUp(p,h);return}vb.update(i.updatePoint,!0)},this.handlePointerUp=function(p,h){i.end();var g=i.handlers,m=g.onEnd,v=g.onSessionEnd,y=qoe(Woe(h,i.transformPagePoint),i.history);i.startEvent&&m&&m(p,y),v&&v(p,y)},!(Yht(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=a;var s=Iwe(t),l=Woe(s,this.transformPagePoint),c=l.point,u=K9().timestamp;this.history=[Dn(Dn({},c),{timestamp:u})];var d=n.onSessionStart;d&&d(t,qoe(l,this.history)),this.removeListeners=HZ(OI(window,"pointermove",this.handlePointerMove),OI(window,"pointerup",this.handlePointerUp),OI(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),AP.update(this.updatePoint)},e})();function Woe(e,t){return t?{point:t(e.point)}:e}function lNe(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qoe(e,t){var n=e.point;return{point:n,delta:lNe(n,Eft(t)),offset:lNe(n,rer(t)),velocity:ier(t,.1)}}function rer(e){return e[0]}function Eft(e){return e[e.length-1]}function ier(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=Eft(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Z9(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function tM(e){return e.max-e.min}function cNe(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),bft(e,t)<n}function uNe(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=ec(t.min,t.max,e.origin),e.scale=tM(n)/tM(t),(cNe(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ec(n.min,n.max,e.origin)-e.originPoint,(cNe(e.translate)||isNaN(e.translate))&&(e.translate=0)}function gF(e,t,n,r){uNe(e.x,t.x,n.x,r?.originX),uNe(e.y,t.y,n.y,r?.originY)}function dNe(e,t,n){e.min=n.min+t.min,e.max=e.min+tM(t)}function oer(e,t,n){dNe(e.x,t.x,n.x),dNe(e.y,t.y,n.y)}function pNe(e,t,n){e.min=t.min-n.min,e.max=e.min+tM(t)}function mF(e,t,n){pNe(e.x,t.x,n.x),pNe(e.y,t.y,n.y)}function aer(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?ec(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?ec(i,e,n.max):Math.min(e,i)),e}function hNe(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ser(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:hNe(e.x,r,o),y:hNe(e.y,n,i)}}function fNe(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=Eu([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function ler(e,t){return{x:fNe(e.x,t.x),y:fNe(e.y,t.y)}}function cer(e,t){var n=.5,r=tM(e),i=tM(t);return i>r?n=nq(t.min,t.max-r,e.min):r>i&&(n=nq(e.min,e.max-i,t.min)),X9(0,1,n)}function uer(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Jge=.35;function der(e){return e===void 0&&(e=Jge),e===!1?e=0:e===!0&&(e=Jge),{x:gNe(e,"left","right"),y:gNe(e,"top","bottom")}}function gNe(e,t,n){return{min:mNe(e,t),max:mNe(e,n)}}function mNe(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var vNe=function(){return{translate:0,scale:1,origin:0,originPoint:0}},vF=function(){return{x:vNe(),y:vNe()}},bNe=function(){return{min:0,max:0}},e0=function(){return{x:bNe(),y:bNe()}};function Tv(e){return[e("x"),e("y")]}function Rft(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function per(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function her(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Boe(e){return e===void 0||e===1}function Ift(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Boe(t)||!Boe(n)||!Boe(r)}function AC(e){return Ift(e)||yNe(e.x)||yNe(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function yNe(e){return e&&e!=="0%"}function J9(e,t,n){var r=e-n,i=t*r;return n+i}function MNe(e,t,n,r,i){return i!==void 0&&(e=J9(e,i,r)),J9(e,n,r)+t}function eme(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=MNe(e.min,t,n,r,i),e.max=MNe(e.max,t,n,r,i)}function Pft(e,t){var n=t.x,r=t.y;eme(e.x,n.translate,n.scale,n.originPoint),eme(e.y,r.translate,r.scale,r.originPoint)}function fer(e,t,n,r){var i,o;r===void 0&&(r=!1);var a=n.length;if(a){t.x=t.y=1;for(var s,l,c=0;c<a;c++)s=n[c],l=s.projectionDelta,((o=(i=s.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&WR(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Pft(e,l)),r&&AC(s.latestValues)&&WR(e,s.latestValues))}}function _C(e,t){e.min=e.min+t,e.max=e.max+t}function CNe(e,t,n){var r=Eu(n,3),i=r[0],o=r[1],a=r[2],s=t[a]!==void 0?t[a]:.5,l=ec(e.min,e.max,s);eme(e,t[i],t[o],l,t.scale)}var ger=["x","scaleX","originX"],mer=["y","scaleY","originY"];function WR(e,t){CNe(e.x,t,ger),CNe(e.y,t,mer)}function Dft(e,t){return Rft(her(e.getBoundingClientRect(),t))}function ver(e,t,n){var r=Dft(e,n),i=t.scroll;return i&&(_C(r.x,i.x),_C(r.y,i.y)),r}var ber=new WeakMap,yer=(function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=e0(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,a=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var s=function(d){r.stopAnimation(),a&&r.snapToCursor(Iwe(d,"page").point)},l=function(d,p){var h,g=r.getProps(),m=g.drag,v=g.dragPropagation,y=g.onDragStart;m&&!v&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=Jht(m),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Tv(function(M){var C,x,w=r.getAxisMotionValue(M).get()||0;if(mb.test(w)){var S=(x=(C=r.visualElement.projection)===null||C===void 0?void 0:C.layout)===null||x===void 0?void 0:x.actual[M];if(S){var A=tM(S);w=A*(parseFloat(w)/100)}}r.originPoint[M]=w}),y?.(d,p),(h=r.visualElement.animationState)===null||h===void 0||h.setActive(js.Drag,!0))},c=function(d,p){var h=r.getProps(),g=h.dragPropagation,m=h.dragDirectionLock,v=h.onDirectionLock,y=h.onDrag;if(!(!g&&!r.openGlobalLock)){var M=p.offset;if(m&&r.currentDirection===null){r.currentDirection=Mer(M),r.currentDirection!==null&&v?.(r.currentDirection);return}r.updateAxis("x",p.point,M),r.updateAxis("y",p.point,M),r.visualElement.syncRender(),y?.(d,p)}},u=function(d,p){return r.stop(d,p)};this.panSession=new Tft(t,{onSessionStart:s,onStart:l,onMove:c,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o?.(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(js.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!B8(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=aer(a,this.constraints[t],this.elastic[t])),o.set(a)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;r&&FR(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=ser(o.actual,r):this.constraints=!1,this.elastic=der(i),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Tv(function(s){t.getAxisMotionValue(s)&&(t.constraints[s]=uer(o.actual[s],t.constraints[s]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!FR(n))return!1;var i=n.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=ver(i,o.root,this.visualElement.getTransformPagePoint()),s=ler(o.layout.actual,a);if(r){var l=r(per(s));this.hasMutatedConstraints=!!l,l&&(s=Rft(l))}return s},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,a=r.dragElastic,s=r.dragTransition,l=r.dragSnapToOrigin,c=r.onDragTransitionEnd,u=this.constraints||{},d=Tv(function(p){var h;if(B8(p,i,n.currentDirection)){var g=(h=u?.[p])!==null&&h!==void 0?h:{};l&&(g={min:0,max:0});var m=a?200:1e6,v=a?40:1e7,y=Dn(Dn({type:"inertia",velocity:o?t[p]:0,bounceStiffness:m,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10},s),g);return n.startAxisValueAnimation(p,y)}});return Promise.all(d).then(c)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return Bwe(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Tv(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;Tv(function(r){var i=n.getProps().drag;if(B8(r,i,n.currentDirection)){var o=n.visualElement.projection,a=n.getAxisMotionValue(r);if(o&&o.layout){var s=o.layout.actual[r],l=s.min,c=s.max;a.set(t[r]-ec(l,c,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,a=this.visualElement.projection;if(!(!FR(o)||!a||!this.constraints)){this.stopAnimation();var s={x:0,y:0};Tv(function(c){var u=t.getAxisMotionValue(c);if(u){var d=u.get();s[c]=cer({min:d,max:d},t.constraints[c])}});var l=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=l?l({},""):"none",(n=a.root)===null||n===void 0||n.updateScroll(),a.updateLayout(),this.resolveConstraints(),Tv(function(c){if(B8(c,i,null)){var u=t.getAxisMotionValue(c),d=t.constraints[c],p=d.min,h=d.max;u.set(ec(p,h,s[c]))}})}},e.prototype.addListeners=function(){var t=this,n;ber.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=OI(r,"pointerdown",function(c){var u=t.getProps(),d=u.drag,p=u.dragListener,h=p===void 0?!0:p;d&&h&&t.start(c)}),o=function(){var c=t.getProps().dragConstraints;FR(c)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,s=a.addEventListener("measure",o);a&&!a.layout&&((n=a.root)===null||n===void 0||n.updateScroll(),a.updateLayout()),o();var l=jZ(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",(function(c){var u=c.delta,d=c.hasLayoutChanged;t.isDragging&&d&&(Tv(function(p){var h=t.getAxisMotionValue(p);h&&(t.originPoint[p]+=u[p].translate,h.set(h.get()+u[p].translate))}),t.visualElement.syncRender())})),function(){l(),i(),s()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,a=t.dragPropagation,s=a===void 0?!1:a,l=t.dragConstraints,c=l===void 0?!1:l,u=t.dragElastic,d=u===void 0?Jge:u,p=t.dragMomentum,h=p===void 0?!0:p;return Dn(Dn({},t),{drag:r,dragDirectionLock:o,dragPropagation:s,dragConstraints:c,dragElastic:d,dragMomentum:h})},e})();function B8(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Mer(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function Cer(e){var t=e.dragControls,n=e.visualElement,r=BZ(function(){return new yer(n)});b.useEffect(function(){return t&&t.subscribe(r)},[r,t]),b.useEffect(function(){return r.addListeners()},[r])}function xer(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=t||n||r||i,s=b.useRef(null),l=b.useContext(wwe).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:t,onEnd:function(d,p){s.current=null,r&&r(d,p)}};b.useEffect(function(){s.current!==null&&s.current.updateHandlers(c)});function u(d){s.current=new Tft(d,c,{transformPagePoint:l})}U9(o,"pointerdown",a&&u),nft(function(){return s.current&&s.current.end()})}var wer={pan:cx(xer),drag:cx(Cer)},j8=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Ser(){var e=j8.map(function(){return new fF}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){j8.forEach(function(i){var o,a="on"+i,s=r[a];(o=t[i])===null||o===void 0||o.call(t),s&&(t[i]=n[a](s))})}};return e.forEach(function(r,i){n["on"+j8[i]]=function(o){return r.add(o)},n["notify"+j8[i]]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return r.notify.apply(r,gb([],Eu(o),!1))}}),n}function Aer(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(Jy(o))e.addValue(i,o);else if(Jy(a))e.addValue(i,OP(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,OP((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var kft=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(p,h){var g=p.parent,m=p.props,v=p.presenceId,y=p.blockInitialAnimation,M=p.visualState,C=p.shouldReduceMotion;h===void 0&&(h={});var x=!1,w=M.latestValues,S=M.renderState,A,z=Ser(),O=new Map,T=new Map,I={},P=Dn({},w),N;function F(){!A||!x||(L(),s(A,S,m.style,X.projection))}function L(){r(X,S,w,h,m)}function W(){z.notifyUpdate(w)}function H(Q,re){var ee=re.onChange(function(pe){w[Q]=pe,m.onUpdate&&vb.update(W,!1,!0)}),se=re.onRenderRequest(X.scheduleRender);T.set(Q,function(){ee(),se()})}var j=d(m);for(var G in j){var q=j[G];w[G]!==void 0&&Jy(q)&&q.set(w[G],!1)}var $=qZ(m),U=Sht(m),X=Dn(Dn({treeType:n,current:null,depth:g?g.depth+1:0,parent:g,children:new Set,presenceId:v,shouldReduceMotion:C,variantChildren:U?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!g?.isMounted(),blockInitialAnimation:y,isMounted:function(){return!!A},mount:function(Q){x=!0,A=X.current=Q,X.projection&&X.projection.mount(Q),U&&g&&!$&&(N=g?.addVariantChild(X)),O.forEach(function(re,ee){return H(ee,re)}),g?.children.add(X),X.setProps(m)},unmount:function(){var Q;(Q=X.projection)===null||Q===void 0||Q.unmount(),AP.update(W),AP.render(F),T.forEach(function(re){return re()}),N?.(),g?.children.delete(X),z.clearAllListeners(),A=void 0,x=!1},addVariantChild:function(Q){var re,ee=X.getClosestVariantNode();if(ee)return(re=ee.variantChildren)===null||re===void 0||re.add(Q),function(){return ee.variantChildren.delete(Q)}},sortNodePosition:function(Q){return!u||n!==Q.treeType?0:u(X.getInstance(),Q.getInstance())},getClosestVariantNode:function(){return U?X:g?.getClosestVariantNode()},getLayoutId:function(){return m.layoutId},getInstance:function(){return A},getStaticValue:function(Q){return w[Q]},setStaticValue:function(Q,re){return w[Q]=re},getLatestValues:function(){return w},setVisibility:function(Q){X.isVisible!==Q&&(X.isVisible=Q,X.scheduleRender())},makeTargetAnimatable:function(Q,re){return re===void 0&&(re=!0),o(X,Q,m,re)},measureViewportBox:function(){return a(A,m)},addValue:function(Q,re){X.hasValue(Q)&&X.removeValue(Q),O.set(Q,re),w[Q]=re.get(),H(Q,re)},removeValue:function(Q){var re;O.delete(Q),(re=T.get(Q))===null||re===void 0||re(),T.delete(Q),delete w[Q],c(Q,S)},hasValue:function(Q){return O.has(Q)},getValue:function(Q,re){var ee=O.get(Q);return ee===void 0&&re!==void 0&&(ee=OP(re),X.addValue(Q,ee)),ee},forEachValue:function(Q){return O.forEach(Q)},readValue:function(Q){var re;return(re=w[Q])!==null&&re!==void 0?re:l(A,Q,h)},setBaseTarget:function(Q,re){P[Q]=re},getBaseTarget:function(Q){if(i){var re=i(m,Q);if(re!==void 0&&!Jy(re))return re}return P[Q]}},z),{build:function(){return L(),S},scheduleRender:function(){vb.render(F,!1,!0)},syncRender:F,setProps:function(Q){(Q.transformTemplate||m.transformTemplate)&&X.scheduleRender(),m=Q,z.updatePropListeners(Q),I=Aer(X,d(m),I)},getProps:function(){return m},getVariant:function(Q){var re;return(re=m.variants)===null||re===void 0?void 0:re[Q]},getDefaultTransition:function(){return m.transition},getTransformPagePoint:function(){return m.transformPagePoint},getVariantContext:function(Q){if(Q===void 0&&(Q=!1),Q)return g?.getVariantContext();if(!$){var re=g?.getVariantContext()||{};return m.initial!==void 0&&(re.initial=m.initial),re}for(var ee={},se=0;se<Oer;se++){var pe=Lft[se],te=m[pe];(Hg(te)||te===!1)&&(ee[pe]=te)}return ee}});return X}},Lft=gb(["initial"],Eu(Vwe),!1),Oer=Lft.length;function tme(e){return typeof e=="string"&&e.startsWith("var(--")}var _ft=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function zer(e){var t=_ft.exec(e);if(!t)return[,];var n=Eu(t,3),r=n[1],i=n[2];return[r,i]}function nme(e,t,n){var r=Eu(zer(e),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():tme(o)?nme(o,t):o}}function Ter(e,t,n){var r,i=Qf(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=Dn({},n)),e.forEachValue(function(c){var u=c.get();if(tme(u)){var d=nme(u,o);d&&c.set(d)}});for(var a in i){var s=i[a];if(tme(s)){var l=nme(s,o);l&&(i[a]=l,n&&((r=n[a])!==null&&r!==void 0||(n[a]=s)))}}return{target:i,transitionEnd:n}}var Eer=new Set(["width","height","top","left","right","bottom","x","y"]),Nft=function(e){return Eer.has(e)},Rer=function(e){return Object.keys(e).some(Nft)},Fft=function(e,t){e.set(t,!1),e.set(t)},xNe=function(e){return e===W3||e===zi},wNe;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(wNe||(wNe={}));var SNe=function(e,t){return parseFloat(e.split(", ")[t])},ANe=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return SNe(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?SNe(a[1],e):0}},Ier=new Set(["x","y","z"]),Per=JW.filter(function(e){return!Ier.has(e)});function Der(e){var t=[];return Per.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var ONe={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,a=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,a=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:ANe(4,13),y:ANe(5,14)},ker=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(c){s[c]=ONe[c](r,o)}),t.syncRender();var l=t.measureViewportBox();return n.forEach(function(c){var u=t.getValue(c);Fft(u,s[c]),e[c]=ONe[c](l,o)}),e},Ler=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=Dn({},t),r=Dn({},r);var i=Object.keys(t).filter(Nft),o=[],a=!1,s=[];if(i.forEach(function(u){var d=e.getValue(u);if(e.hasValue(u)){var p=n[u],h=Z4(p),g=t[u],m;if(tq(g)){var v=g.length,y=g[0]===null?1:0;p=g[y],h=Z4(p);for(var M=y;M<v;M++)m?V9(Z4(g[M])===m):m=Z4(g[M])}else m=Z4(g);if(h!==m)if(xNe(h)&&xNe(m)){var C=d.get();typeof C=="string"&&d.set(parseFloat(C)),typeof g=="string"?t[u]=parseFloat(g):Array.isArray(g)&&m===zi&&(t[u]=g.map(parseFloat))}else h?.transform&&m?.transform&&(p===0||g===0)?p===0?d.set(m.transform(p)):t[u]=h.transform(g):(a||(o=Der(e),a=!0),s.push(u),r[u]=r[u]!==void 0?r[u]:t[u],Fft(d,g))}}),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=ker(t,e,s);return o.length&&o.forEach(function(u){var d=Eu(u,2),p=d[0],h=d[1];e.getValue(p).set(h)}),e.syncRender(),l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function _er(e,t,n,r){return Rer(t)?Ler(e,t,n,r):{target:t,transitionEnd:r}}var Ner=function(e,t,n,r){var i=Ter(e,t,r);return t=i.target,r=i.transitionEnd,_er(e,t,n,r)};function Fer(e){return window.getComputedStyle(e)}var Wft={treeType:"dom",readValueFromInstance:function(e,t){if(zB(t)){var n=Fwe(t);return n&&n.default||0}else{var r=Fer(e);return(Eht(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return Dft(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,a=t.transitionEnd,s=Qf(t,["transition","transitionEnd"]),l=GJn(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),l&&(l=i(l))),r){HJn(e,s,l);var c=Ner(e,s,l,a);a=c.transitionEnd,s=c.target}return Dn({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:Ewe,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Owe(t,n,r,i.transformTemplate)},render:jht},Wer=kft(Wft),qer=kft(Dn(Dn({},Wft),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return zB(t)?((n=Fwe(t))===null||n===void 0?void 0:n.default)||0:(t=Hht.has(t)?t:Bht(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ght,build:function(e,t,n,r,i){Twe(t,n,r,i.transformTemplate)},render:Vht})),Ber=function(e,t){return Swe(e)?qer(t,{enableHardwareAcceleration:!1}):Wer(t,{enableHardwareAcceleration:!0})};function zNe(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var J4={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(zi.test(e))e=parseFloat(e);else return e;var n=zNe(e,t.target.x),r=zNe(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},TNe="_$css",jer={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(_ft,function(m){return a.push(m),TNe}));var s=eM.parse(e);if(s.length>5)return i;var l=eM.createTransformer(e),c=typeof s[0]!="number"?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var p=ec(u,d,.5);typeof s[2+c]=="number"&&(s[2+c]/=p),typeof s[3+c]=="number"&&(s[3+c]/=p);var h=l(s);if(o){var g=0;h=h.replace(TNe,function(){var m=a[g];return g++,m})}return h}},Her=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,a=r.switchLayoutGroup,s=r.layoutId,l=i.projection;fQn(Ger),l&&(o?.group&&o.group.add(l),a?.register&&s&&a.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",function(){n.safeToRemove()}),l.setOptions(Dn(Dn({},l.options),{onExitComplete:function(){return n.safeToRemove()}}))),dF.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,a=i.visualElement,s=i.drag,l=i.isPresent,c=a.projection;return c&&(c.isPresent=l,s||n.layoutDependency!==o||o===void 0?c.willUpdate():this.safeToRemove(),n.isPresent!==l&&(l?c.promote():c.relegate()||vb.postRender(function(){var u;!((u=c.getStack())===null||u===void 0)&&u.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=r.projection;a&&(a.scheduleCheckAfterUnmount(),i?.group&&i.group.remove(a),o?.deregister&&o.deregister(a))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n?.()},t.prototype.render=function(){return null},t})(E.Component);function Ver(e){var t=Eu(wft(),2),n=t[0],r=t[1],i=b.useContext(Aht);return E.createElement(Her,Dn({},e,{layoutGroup:i,switchLayoutGroup:b.useContext(Oht),isPresent:n,safeToRemove:r}))}var Ger={borderRadius:Dn(Dn({},J4),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:J4,borderTopRightRadius:J4,borderBottomLeftRadius:J4,borderBottomRightRadius:J4,boxShadow:jer},$er={measureLayout:Ver};function Uer(e,t,n){n===void 0&&(n={});var r=Jy(e)?e:OP(e);return Bwe("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var qft=["TopLeft","TopRight","BottomLeft","BottomRight"],Xer=qft.length,ENe=function(e){return typeof e=="string"?parseFloat(e):e},RNe=function(e){return typeof e=="number"||zi.test(e)};function Yer(e,t,n,r,i,o){var a,s,l,c;i?(e.opacity=ec(0,(a=n.opacity)!==null&&a!==void 0?a:1,Ker(r)),e.opacityExit=ec((s=t.opacity)!==null&&s!==void 0?s:1,0,Qer(r))):o&&(e.opacity=ec((l=t.opacity)!==null&&l!==void 0?l:1,(c=n.opacity)!==null&&c!==void 0?c:1,r));for(var u=0;u<Xer;u++){var d="border".concat(qft[u],"Radius"),p=INe(t,d),h=INe(n,d);if(!(p===void 0&&h===void 0)){p||(p=0),h||(h=0);var g=p===0||h===0||RNe(p)===RNe(h);g?(e[d]=Math.max(ec(ENe(p),ENe(h),r),0),(mb.test(h)||mb.test(p))&&(e[d]+="%")):e[d]=h}}(t.rotate||n.rotate)&&(e.rotate=ec(t.rotate||0,n.rotate||0,r))}function INe(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var Ker=Bft(0,.5,_we),Qer=Bft(.5,.95,kwe);function Bft(e,t,n){return function(r){return r<e?0:r>t?1:n(nq(e,t,r))}}function PNe(e,t){e.min=t.min,e.max=t.max}function Rg(e,t){PNe(e.x,t.x),PNe(e.y,t.y)}function DNe(e,t,n,r,i){return e-=t,e=J9(e,1/n,r),i!==void 0&&(e=J9(e,1/i,r)),e}function Zer(e,t,n,r,i,o,a){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),a===void 0&&(a=e),mb.test(t)){t=parseFloat(t);var s=ec(a.min,a.max,t/100);t=s-a.min}if(typeof t=="number"){var l=ec(o.min,o.max,r);e===o&&(l-=t),e.min=DNe(e.min,t,n,l,i),e.max=DNe(e.max,t,n,l,i)}}function kNe(e,t,n,r,i){var o=Eu(n,3),a=o[0],s=o[1],l=o[2];Zer(e,t[a],t[s],t[l],t.scale,r,i)}var Jer=["x","scaleX","originX"],etr=["y","scaleY","originY"];function LNe(e,t,n,r){kNe(e.x,t,Jer,n?.x,r?.x),kNe(e.y,t,etr,n?.y,r?.y)}function _Ne(e){return e.translate===0&&e.scale===1}function jft(e){return _Ne(e.x)&&_Ne(e.y)}function Hft(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var ttr=(function(){function e(){this.members=[]}return e.prototype.add=function(t){jwe(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(Hwe(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(a){return t===a});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,a;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(a=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||a===void 0||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e})(),ntr="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function NNe(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return o+="scale(".concat(c,", ").concat(u,")"),o===ntr?"none":o}var rtr=function(e,t){return e.depth-t.depth},itr=(function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){jwe(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){Hwe(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(rtr),this.isDirty=!1,this.children.forEach(t)},e})(),FNe=1e3;function Vft(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return(function(){function a(s,l,c){var u=this;l===void 0&&(l={}),c===void 0&&(c=n?.()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){u.isUpdating&&(u.isUpdating=!1,u.clearAllSnapshots())},this.updateProjection=function(){u.nodes.forEach(utr),u.nodes.forEach(dtr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?gb(gb([],Eu(c.path),!1),[c],!1):[],this.parent=c,this.depth=c?c.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(var d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new itr)}return a.prototype.addEventListener=function(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new fF),this.eventHandlers.get(s).add(l)},a.prototype.notifyListeners=function(s){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];var u=this.eventHandlers.get(s);u?.notify.apply(u,gb([],Eu(l),!1))},a.prototype.hasListeners=function(s){return this.eventHandlers.has(s)},a.prototype.registerPotentialNode=function(s,l){this.potentialNodes.set(s,l)},a.prototype.mount=function(s,l){var c=this,u;if(l===void 0&&(l=!1),!this.instance){this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;var d=this.options,p=d.layoutId,h=d.layout,g=d.visualElement;if(g&&!g.getInstance()&&g.mount(s),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),l&&(h||p)&&(this.isLayoutDirty=!0),t){var m,v=function(){return c.root.updateBlockedByResize=!1};t(s,function(){c.root.updateBlockedByResize=!0,clearTimeout(m),m=window.setTimeout(v,250),dF.hasAnimatedSinceResize&&(dF.hasAnimatedSinceResize=!1,c.nodes.forEach(ctr))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||h)&&this.addEventListener("didUpdate",function(y){var M,C,x,w,S,A=y.delta,z=y.hasLayoutChanged,O=y.hasRelativeTargetChanged,T=y.layout;if(c.isTreeAnimationBlocked()){c.target=void 0,c.relativeTarget=void 0;return}var I=(C=(M=c.options.transition)!==null&&M!==void 0?M:g.getDefaultTransition())!==null&&C!==void 0?C:mtr,P=g.getProps(),N=P.onLayoutAnimationStart,F=P.onLayoutAnimationComplete,L=!c.targetLayout||!Hft(c.targetLayout,T)||O,W=!z&&O;if(!((x=c.resumeFrom)===null||x===void 0)&&x.instance||W||z&&(L||!c.currentAnimation)){c.resumeFrom&&(c.resumingFrom=c.resumeFrom,c.resumingFrom.resumingFrom=void 0),c.setAnimationOrigin(A,W);var H=Dn(Dn({},qwe(I,"layout")),{onPlay:N,onComplete:F});g.shouldReduceMotion&&(H.delay=0,H.type=!1),c.startAnimation(H)}else!z&&c.animationProgress===0&&c.finishAnimation(),c.isLead()&&((S=(w=c.options).onExitComplete)===null||S===void 0||S.call(w));c.targetLayout=T})}},a.prototype.unmount=function(){var s,l;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(l=this.parent)===null||l===void 0||l.children.delete(this),this.instance=void 0,AP.preRender(this.updateProjection)},a.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},a.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},a.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},a.prototype.isTreeAnimationBlocked=function(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1},a.prototype.startUpdate=function(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(ptr))},a.prototype.willUpdate=function(s){var l,c,u;if(s===void 0&&(s=!0),this.root.isUpdateBlocked()){(c=(l=this.options).onExitComplete)===null||c===void 0||c.call(l);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var d=0;d<this.path.length;d++){var p=this.path[d];p.shouldResetTransform=!0,p.updateScroll()}var h=this.options,g=h.layoutId,m=h.layout;if(!(g===void 0&&!m)){var v=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;this.prevTransformTemplateValue=v?.(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}}},a.prototype.didUpdate=function(){var s=this.isUpdateBlocked();if(s){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(WNe);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(vtr),this.potentialNodes.clear()),this.nodes.forEach(ltr),this.nodes.forEach(otr),this.nodes.forEach(atr),this.clearAllSnapshots(),_oe.update(),_oe.preRender(),_oe.render())},a.prototype.clearAllSnapshots=function(){this.nodes.forEach(str),this.sharedNodes.forEach(htr)},a.prototype.scheduleUpdateProjection=function(){vb.preRender(this.updateProjection,!1,!0)},a.prototype.scheduleCheckAfterUnmount=function(){var s=this;vb.postRender(function(){s.isLayoutDirty?s.root.didUpdate():s.root.checkUpdateFailed()})},a.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var s=this.measure(),l=this.removeTransform(this.removeElementScroll(s));HNe(l),this.snapshot={measured:s,layout:l,latestValues:{}}}},a.prototype.updateLayout=function(){var s;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var l=0;l<this.path.length;l++){var c=this.path[l];c.updateScroll()}var u=this.measure();HNe(u);var d=this.layout;this.layout={measured:u,actual:this.removeElementScroll(u)},this.layoutCorrected=e0(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(s=this.options.visualElement)===null||s===void 0||s.notifyLayoutMeasure(this.layout.actual,d?.actual)}},a.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},a.prototype.resetTransform=function(){var s;if(o){var l=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!jft(this.projectionDelta),u=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,d=u?.(this.latestValues,""),p=d!==this.prevTransformTemplateValue;l&&(c||AC(this.latestValues)||p)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}},a.prototype.measure=function(){var s=this.options.visualElement;if(!s)return e0();var l=s.measureViewportBox(),c=this.root.scroll;return c&&(_C(l.x,c.x),_C(l.y,c.y)),l},a.prototype.removeElementScroll=function(s){var l=e0();Rg(l,s);for(var c=0;c<this.path.length;c++){var u=this.path[c],d=u.scroll,p=u.options,h=u.isScrollRoot;if(u!==this.root&&d&&p.layoutScroll){if(h){Rg(l,s);var g=this.root.scroll;g&&(_C(l.x,-g.x),_C(l.y,-g.y))}_C(l.x,d.x),_C(l.y,d.y)}}return l},a.prototype.applyTransform=function(s,l){l===void 0&&(l=!1);var c=e0();Rg(c,s);for(var u=0;u<this.path.length;u++){var d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&WR(c,{x:-d.scroll.x,y:-d.scroll.y}),AC(d.latestValues)&&WR(c,d.latestValues)}return AC(this.latestValues)&&WR(c,this.latestValues),c},a.prototype.removeTransform=function(s){var l,c=e0();Rg(c,s);for(var u=0;u<this.path.length;u++){var d=this.path[u];if(d.instance&&AC(d.latestValues)){Ift(d.latestValues)&&d.updateSnapshot();var p=e0(),h=d.measure();Rg(p,h),LNe(c,d.latestValues,(l=d.snapshot)===null||l===void 0?void 0:l.layout,p)}}return AC(this.latestValues)&&LNe(c,this.latestValues),c},a.prototype.setTargetDelta=function(s){this.targetDelta=s,this.root.scheduleUpdateProjection()},a.prototype.setOptions=function(s){var l;this.options=Dn(Dn(Dn({},this.options),s),{crossfade:(l=s.crossfade)!==null&&l!==void 0?l:!0})},a.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},a.prototype.resolveTargetDelta=function(){var s,l=this.options,c=l.layout,u=l.layoutId;!this.layout||!(c||u)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=e0(),this.relativeTargetOrigin=e0(),mF(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Rg(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=e0(),this.targetWithTransforms=e0()),this.relativeTarget&&this.relativeTargetOrigin&&(!((s=this.relativeParent)===null||s===void 0)&&s.target)?oer(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):Rg(this.target,this.layout.actual),Pft(this.target,this.targetDelta)):Rg(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=e0(),this.relativeTargetOrigin=e0(),mF(this.relativeTargetOrigin,this.target,this.relativeParent.target),Rg(this.relativeTarget,this.relativeTargetOrigin)))))},a.prototype.getClosestProjectingParent=function(){if(!(!this.parent||AC(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},a.prototype.calcProjection=function(){var s,l=this.options,c=l.layout,u=l.layoutId;if(this.isTreeAnimating=!!(!((s=this.parent)===null||s===void 0)&&s.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(c||u))){var d=this.getLead();Rg(this.layoutCorrected,this.layout.actual),fer(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==d);var p=d.target;if(p){this.projectionDelta||(this.projectionDelta=vF(),this.projectionDeltaWithTransform=vF());var h=this.treeScale.x,g=this.treeScale.y,m=this.projectionTransform;gF(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=NNe(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==h||this.treeScale.y!==g)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}}},a.prototype.hide=function(){this.isVisible=!1},a.prototype.show=function(){this.isVisible=!0},a.prototype.scheduleRender=function(s){var l,c,u;s===void 0&&(s=!0),(c=(l=this.options).scheduleRender)===null||c===void 0||c.call(l),s&&((u=this.getStack())===null||u===void 0||u.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},a.prototype.setAnimationOrigin=function(s,l){var c=this,u;l===void 0&&(l=!1);var d=this.snapshot,p=d?.latestValues||{},h=Dn({},this.latestValues),g=vF();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!l;var m=e0(),v=d?.isShared,y=(((u=this.getStack())===null||u===void 0?void 0:u.members.length)||0)<=1,M=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(gtr));this.animationProgress=0,this.mixTargetDelta=function(C){var x,w=C/1e3;qNe(g.x,s.x,w),qNe(g.y,s.y,w),c.setTargetDelta(g),c.relativeTarget&&c.relativeTargetOrigin&&c.layout&&(!((x=c.relativeParent)===null||x===void 0)&&x.layout)&&(mF(m,c.layout.actual,c.relativeParent.layout.actual),ftr(c.relativeTarget,c.relativeTargetOrigin,m,w)),v&&(c.animationValues=h,Yer(h,p,c.latestValues,w,M,y)),c.root.scheduleUpdateProjection(),c.scheduleRender(),c.animationProgress=w},this.mixTargetDelta(0)},a.prototype.startAnimation=function(s){var l=this,c,u;this.notifyListeners("animationStart"),(c=this.currentAnimation)===null||c===void 0||c.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(AP.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vb.update(function(){dF.hasAnimatedSinceResize=!0,l.currentAnimation=Uer(0,FNe,Dn(Dn({},s),{onUpdate:function(d){var p;l.mixTargetDelta(d),(p=s.onUpdate)===null||p===void 0||p.call(s,d)},onComplete:function(){var d;(d=s.onComplete)===null||d===void 0||d.call(s),l.completeAnimation()}})),l.resumingFrom&&(l.resumingFrom.currentAnimation=l.currentAnimation),l.pendingAnimation=void 0})},a.prototype.completeAnimation=function(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},a.prototype.finishAnimation=function(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,FNe),this.currentAnimation.stop()),this.completeAnimation()},a.prototype.applyTransformsToTarget=function(){var s=this.getLead(),l=s.targetWithTransforms,c=s.target,u=s.layout,d=s.latestValues;!l||!c||!u||(Rg(l,c),WR(l,d),gF(this.projectionDeltaWithTransform,this.layoutCorrected,l,d))},a.prototype.registerSharedNode=function(s,l){var c,u,d;this.sharedNodes.has(s)||this.sharedNodes.set(s,new ttr);var p=this.sharedNodes.get(s);p.add(l),l.promote({transition:(c=l.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(d=(u=l.options.initialPromotionConfig)===null||u===void 0?void 0:u.shouldPreserveFollowOpacity)===null||d===void 0?void 0:d.call(u,l)})},a.prototype.isLead=function(){var s=this.getStack();return s?s.lead===this:!0},a.prototype.getLead=function(){var s,l=this.options.layoutId;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this},a.prototype.getPrevLead=function(){var s,l=this.options.layoutId;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0},a.prototype.getStack=function(){var s=this.options.layoutId;if(s)return this.root.sharedNodes.get(s)},a.prototype.promote=function(s){var l=s===void 0?{}:s,c=l.needsReset,u=l.transition,d=l.preserveFollowOpacity,p=this.getStack();p&&p.promote(this,d),c&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})},a.prototype.relegate=function(){var s=this.getStack();return s?s.relegate(this):!1},a.prototype.resetRotation=function(){var s=this.options.visualElement;if(s){for(var l=!1,c={},u=0;u<Bge.length;u++){var d=Bge[u],p="rotate"+d;s.getStaticValue(p)&&(l=!0,c[p]=s.getStaticValue(p),s.setStaticValue(p,0))}if(l){s?.syncRender();for(var p in c)s.setStaticValue(p,c[p]);s.scheduleRender()}}},a.prototype.getProjectionStyles=function(s){var l,c,u,d,p,h;s===void 0&&(s={});var g={};if(!this.instance||this.isSVG)return g;if(this.isVisible)g.visibility="";else return{visibility:"hidden"};var m=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=O7(s.pointerEvents)||"",g.transform=m?m(this.latestValues,""):"none",g;var v=this.getLead();if(!this.projectionDelta||!this.layout||!v.target){var y={};return this.options.layoutId&&(y.opacity=(c=this.latestValues.opacity)!==null&&c!==void 0?c:1,y.pointerEvents=O7(s.pointerEvents)||""),this.hasProjected&&!AC(this.latestValues)&&(y.transform=m?m({},""):"none",this.hasProjected=!1),y}var M=v.animationValues||v.latestValues;this.applyTransformsToTarget(),g.transform=NNe(this.projectionDeltaWithTransform,this.treeScale,M),m&&(g.transform=m(M,g.transform));var C=this.projectionDelta,x=C.x,w=C.y;g.transformOrigin="".concat(x.origin*100,"% ").concat(w.origin*100,"% 0"),v.animationValues?g.opacity=v===this?(d=(u=M.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:M.opacityExit:g.opacity=v===this?(p=M.opacity)!==null&&p!==void 0?p:"":(h=M.opacityExit)!==null&&h!==void 0?h:0;for(var S in G9)if(M[S]!==void 0){var A=G9[S],z=A.correct,O=A.applyTo,T=z(M[S],v);if(O)for(var I=O.length,P=0;P<I;P++)g[O[P]]=T;else g[S]=T}return this.options.layoutId&&(g.pointerEvents=v===this?O7(s.pointerEvents)||"":"none"),g},a.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},a.prototype.resetTree=function(){this.root.nodes.forEach(function(s){var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(WNe),this.root.sharedNodes.clear()},a})()}function otr(e){e.updateLayout()}function atr(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;e.options.animationType==="size"?Tv(function(M){var C=o.isShared?o.measured[M]:o.layout[M],x=tM(C);C.min=s[M].min,C.max=C.min+x}):e.options.animationType==="position"&&Tv(function(M){var C=o.isShared?o.measured[M]:o.layout[M],x=tM(s[M]);C.max=C.min+x});var c=vF();gF(c,s,o.layout);var u=vF();o.isShared?gF(u,e.applyTransform(l,!0),o.measured):gF(u,s,o.layout);var d=!jft(c),p=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var h=e.relativeParent,g=h.snapshot,m=h.layout;if(g&&m){var v=e0();mF(v,o.layout,g.layout);var y=e0();mF(y,s,m.actual),Hft(v,y)||(p=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function str(e){e.clearSnapshot()}function WNe(e){e.clearMeasurements()}function ltr(e){var t=e.options.visualElement;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function ctr(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function utr(e){e.resolveTargetDelta()}function dtr(e){e.calcProjection()}function ptr(e){e.resetRotation()}function htr(e){e.removeLeadSnapshot()}function qNe(e,t,n){e.translate=ec(t.translate,0,n),e.scale=ec(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function BNe(e,t,n,r){e.min=ec(t.min,n.min,r),e.max=ec(t.max,n.max,r)}function ftr(e,t,n,r){BNe(e.x,t.x,n.x,r),BNe(e.y,t.y,n.y,r)}function gtr(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var mtr={duration:.45,ease:[.4,0,.1,1]};function vtr(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function jNe(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function HNe(e){jNe(e.x),jNe(e.y)}var btr=Vft({attachResizeListener:function(e,t){return jZ(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),joe={current:void 0},ytr=Vft({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!joe.current){var e=new btr(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),joe.current=e}return joe.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),Mtr=Dn(Dn(Dn(Dn({},ner),yJn),wer),$er),Ctr=pQn(function(e,t){return QQn(e,t,Mtr,Ber,ytr)});function VNe(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function xtr({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){const i=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,a]=b.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),s=b.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o,orientationHandler:null}),l=e?typeof e=="number"?e:e.scroll:null,c=e?typeof e=="number"?e:e.resize:null,u=b.useRef(!1);b.useEffect(()=>(u.current=!0,()=>void(u.current=!1)));const[d,p,h]=b.useMemo(()=>{const y=()=>{if(!s.current.element)return;const{left:M,top:C,width:x,height:w,bottom:S,right:A,x:z,y:O}=s.current.element.getBoundingClientRect(),T={left:M,top:C,width:x,height:w,bottom:S,right:A,x:z,y:O};s.current.element instanceof HTMLElement&&r&&(T.height=s.current.element.offsetHeight,T.width=s.current.element.offsetWidth),Object.freeze(T),u.current&&!Otr(s.current.lastBounds,T)&&a(s.current.lastBounds=T)};return[y,c?VNe(y,c):y,l?VNe(y,l):y]},[a,r,l,c]);function g(){s.current.scrollContainers&&(s.current.scrollContainers.forEach(y=>y.removeEventListener("scroll",h,!0)),s.current.scrollContainers=null),s.current.resizeObserver&&(s.current.resizeObserver.disconnect(),s.current.resizeObserver=null),s.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",s.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",s.current.orientationHandler))}function m(){s.current.element&&(s.current.resizeObserver=new i(h),s.current.resizeObserver.observe(s.current.element),t&&s.current.scrollContainers&&s.current.scrollContainers.forEach(y=>y.addEventListener("scroll",h,{capture:!0,passive:!0})),s.current.orientationHandler=()=>{h()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",s.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",s.current.orientationHandler))}const v=y=>{!y||y===s.current.element||(g(),s.current.element=y,s.current.scrollContainers=Gft(y),m())};return Str(h,!!t),wtr(p),b.useEffect(()=>{g(),m()},[t,h,p]),b.useEffect(()=>g,[]),[v,o,d]}function wtr(e){b.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function Str(e,t){b.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function Gft(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...Gft(e.parentElement)]}const Atr=["x","y","top","bottom","left","right","width","height"],Otr=(e,t)=>Atr.every(n=>e[n]===t[n]);var Ff=function(){return Ff=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ff.apply(this,arguments)};function t1(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function ztr(e){var t=e.isVisible,n=e.ease,r=n===void 0?"easeIn":n,i=e.duration,o=e.variants,a=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,s=e.children,l=xtr({polyfill:$Kn}),c=l[0],u=l[1].height,d=b.useState(t),p=d[0],h=d[1],g=b.useState(t),m=g[0],v=g[1],y=b.useState(!1),M=y[0],C=y[1],x=function(){C(!1),t||h(!1)};return b.useEffect(function(){C(!0),t?h(!0):v(!1)},[t]),b.useEffect(function(){p&&v(!0)},[u]),E.createElement(Ctr.div,{style:M?{overflow:"hidden"}:void 0,onAnimationComplete:x,initial:m?"open":"close",animate:m?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:Ttr(u,i)}},E.createElement("div",{ref:c},p&&s))}function Ttr(e,t){if(t)return t;if(!e)return 0;var n=e/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var Etr=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},e_=function(e,t){return e.find(function(n){return n.id===t})},zP=function(e,t,n){if(n===0)return!1;var r=e.find(function(i){return i.id===n});return r===void 0?!1:r.parent===t?!0:zP(e,t,r.parent)},Gwe=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},nw=function(e,t,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(e===null){if(t===i)return!0;var a=r.find(function(u){return u.id===t});return!!(a&&a.droppable)}else{var s=Gwe(e)?e.id:null;if(o){var l=o(s,t);if(l!==void 0)return l}if(s===t)return!1;var c=r.find(function(d){return d.id===s}),a=r.find(function(d){return d.id===t});return c===void 0||s===null?t===i||!!a?.droppable:a===void 0?c.parent!==0:c.parent===t||!a.droppable?!1:!zP(r,s,t)}},Rtr=function(e,t,n){return e.map(function(r){return r.id===t?Ff(Ff({},r),{parent:n}):r})},$ft=function(e,t,n){if(n===0)return 0;var r=e.filter(function(i){return i.parent===t});return r[n]?e.findIndex(function(i){return i.id===r[n].id}):e.findIndex(function(i){return i.id===r[n-1].id})+1},Itr=function(e,t){return e.findIndex(function(n){return n.id===t})},Uft=function(e,t,n,r){var i=Itr(e,t),o=$ft(e,n,r);return o=o>i?o-1:o,[i,o]},Ptr=function(e,t,n){var r=t<0?e.length+t:t;if(r>=0&&r<e.length){var i=n<0?e.length+n:n,o=e.splice(t,1)[0];e.splice(i,0,o)}},Dtr=function(e,t,n,r){var i=Uft(e,t,n,r),o=i[0],a=i[1],s=t1([],e,!0);return Ptr(s,o,a),s.map(function(l){return l.id===t?Ff(Ff({},l),{parent:n}):l})},ktr=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},rme=function(e,t){var n="",r=0;return e.forEach(function(i,o){var a,s=ktr(i,((a=t.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=s:n!==s&&(n=s,r=o),o===e.length-1&&s==="down"&&(r=o+1)}),r},GNe=function(e,t,n){var r=t.closest('[role="list"]'),i=r?.querySelectorAll(':scope > [role="listitem"]');return i?rme(i,n):null},Ltr=function(e,t,n){var r=e.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,a=r.bottom-i;return t>a?"lower":t<o?"upper":"middle"},ime=function(e,t,n,r){var i;if(!t)return null;if(e===null){var o=t.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:rme(o,n)}}var a=n.getItem(),s=t.querySelector('[role="list"]'),l=Ltr(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(s){if(l==="upper")if(nw(a,e.parent,r)){var c=GNe(e,t,n);return c===null?null:{id:e.parent,index:c}}else return{id:e.id,index:0};var o=s.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:rme(o,n)}}else{if(l==="middle")return{id:e.id,index:0};if(nw(a,e.parent,r)){var c=GNe(e,t,n);return c===null?null:{id:e.parent,index:c}}return null}},E7=function(e,t){return e.some(function(n){return n.parent===t})},Xft=b.createContext({}),_tr=function(e){var t=Gtr(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,s=r.handleOpen,l=r.handleClose;b.useImperativeHandle(e.treeRef,function(){return{open:function(h){return s(h,e.onChangeOpen)},close:function(h){return l(h,e.onChangeOpen)},openAll:function(){return a(e.onChangeOpen)},closeAll:function(){return o(e.onChangeOpen)}}});var c=yM().getMonitor(),u=e.canDrop,d=e.canDrag,p=Ff(Ff({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(h,g,m){if(h){var v={dragSourceId:h.id,dropTargetId:g,dragSource:h,dropTarget:e_(e.tree,g),monitor:c},y=e.tree;if(e_(y,h.id)||(y=t1(t1([],y,!0),[h],!1)),e.sort===!1){var M=Uft(y,h.id,g,m),C=M[1];v.destinationIndex=C,v.relativeIndex=m,e.onDrop(Dtr(y,h.id,g,m),v);return}e.onDrop(Rtr(y,h.id,g),v)}else{var v={dropTargetId:g,dropTarget:e_(e.tree,g),monitor:c};e.sort===!1&&(v.destinationIndex=$ft(e.tree,g,m),v.relativeIndex=m),e.onDrop(e.tree,v)}},canDrop:u?function(h,g){return u(e.tree,{dragSourceId:h??void 0,dropTargetId:g,dragSource:c.getItem(),dropTarget:e_(e.tree,g),monitor:c})}:void 0,canDrag:d?function(h){return d(e_(e.tree,h))}:void 0,onToggle:function(h){return i(h,e.onChangeOpen)}});return E.createElement(Xft.Provider,{value:p},e.children)},Yft=b.createContext({}),Ntr={isLock:!1},Ftr=function(e){var t=b.useState(Ntr.isLock),n=t[0],r=t[1];return E.createElement(Yft.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},IB=b.createContext({}),H8={dropTargetId:void 0,index:void 0},Wtr=function(e){var t=b.useState(H8.dropTargetId),n=t[0],r=t[1],i=b.useState(H8.index),o=i[0],a=i[1],s=function(c,u){r(c),a(u)},l=function(){r(H8.dropTargetId),a(H8.index)};return E.createElement(IB.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:s,hidePlaceholder:l}},e.children)},qtr=function(e){return E.createElement(_tr,Ff({},e),E.createElement(Ftr,null,E.createElement(Wtr,null,e.children)))},Btr=function(e){var t=b.useContext(Yft);b.useEffect(function(){if(e.current){var n=e.current,r=function(u){var d=u.target;(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement)&&t.lock()},i=function(u){var d=u.target;(d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement)&&t.unlock()},o=function(u){return r(u)},a=function(u){return i(u)},s=function(u){return r(u)},l=function(u){return i(u)},c=new MutationObserver(function(){document.activeElement===document.body&&t.unlock()});return c.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",s),n.addEventListener("focusout",l),function(){c.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",s),n.removeEventListener("focusout",l)}}},[e,t]),b.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},$Z={TREE_ITEM:Symbol()},Kft=null,Qft=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(Kft=n)}},$Ne=function(e){return Qft(e)},UNe=function(e){return Qft(e)},jtr=function(e,t){var n=kw();b.useEffect(function(){var s=t.current;return s?.addEventListener("dragstart",$Ne),s?.addEventListener("touchstart",UNe,{passive:!0}),function(){s?.removeEventListener("dragstart",$Ne),s?.removeEventListener("touchstart",UNe)}},[t]);var r=Xkn({type:$Z.TREE_ITEM,item:function(s){var l=Ff({ref:t},e);return n.onDragStart&&n.onDragStart(l,s),l},end:function(s,l){var c=s;n.onDragEnd&&n.onDragEnd(c,l)},canDrag:function(){var s=n.canDrag;return Kft!==t.current?!1:s?s(e.id):!0},collect:function(s){return{isDragging:s.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},Htr=function(e){var t=kw(),n=b.useContext(IB),r=Ndt({accept:t1([$Z.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(l,c){var u=t.rootId,d=t.onDrop,p=n.dropTargetId,h=n.index;c.isOver({shallow:!0})&&p!==void 0&&h!==void 0&&d(Gwe(l)?l:null,u,h),n.hidePlaceholder()},canDrop:function(l,c){var u=t.rootId;return c.isOver({shallow:!0})?l===void 0?!1:nw(l,u,t):!1},hover:function(l,c){if(c.isOver({shallow:!0})){var u=t.rootId,d=n.dropTargetId,p=n.index,h=n.showPlaceholder,g=n.hidePlaceholder,m=ime(null,e.current,c,t);if(m===null||!nw(l,u,t)){g();return}(m.id!==d||m.index!==p)&&h(m.id,m.index)}},collect:function(l){var c=l.getItem();return{isOver:l.isOver({shallow:!0})&&l.canDrop(),dragSource:c}}}),i=r[0],o=i.isOver,a=i.dragSource,s=r[1];return[o,a,s]},Vtr=function(e,t){var n=kw(),r=b.useContext(IB),i=Ndt({accept:t1([$Z.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(c,u){var d=r.dropTargetId,p=r.index;u.isOver({shallow:!0})&&d!==void 0&&p!==void 0&&n.onDrop(Gwe(c)?c:null,d,p),r.hidePlaceholder()},canDrop:function(c,u){if(u.isOver({shallow:!0})){var d=ime(e,t.current,u,n);return d===null?!1:nw(c,d.id,n)}return!1},hover:function(c,u){if(u.isOver({shallow:!0})){var d=r.dropTargetId,p=r.index,h=r.showPlaceholder,g=r.hidePlaceholder,m=ime(e,t.current,u,n);if(m===null||!nw(c,m.id,n)){g();return}(m.id!==d||m.index!==p)&&h(m.id,m.index)}},collect:function(c){var u=c.getItem();return{isOver:c.isOver({shallow:!0})&&c.canDrop(),dragSource:u}}}),o=i[0],a=o.isOver,s=o.dragSource,l=i[1];return[a,s,l]},Gtr=function(e,t){var n=b.useMemo(function(){return t===!0?e.filter(function(d){return E7(e,d.id)}).map(function(d){return d.id}):Array.isArray(t)?t:[]},[t]),r=b.useState(n),i=r[0],o=r[1];b.useEffect(function(){return o(n)},[t]);var a=function(d,p){var h=i.includes(d)?i.filter(function(g){return g!==d}):t1(t1([],i,!0),[d],!1);o(h),p&&p(h)},s=function(d){o([]),d&&d([])},l=function(d){var p=e.filter(function(h){return E7(e,h.id)}).map(function(h){return h.id});o(p),d&&d(p)},c=function(d,p){var h=[];if(Array.isArray(d)){var g=e.filter(function(m){return d.includes(m.id)&&E7(e,m.id)});h=t1(t1([],i,!0),g.map(function(m){return m.id}),!0).filter(function(m,v,y){return y.indexOf(m)===v})}else h=i.includes(d)?i:t1(t1([],i,!0),[d],!1);o(h),p&&p(h)},u=function(d,p){var h=i.filter(function(g){return Array.isArray(d)?!d.includes(g):g!==d});o(h),p&&p(h)};return[i,{handleToggle:a,handleCloseAll:s,handleOpenAll:l,handleOpen:c,handleClose:u}]},$tr=function(){return Ykn(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===$Z.TREE_ITEM}})},kw=function(){var e=b.useContext(Xft);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},Utr=function(e,t){var n=kw(),r=n.rootId,i=n.rootProps,o=n.classes,a=o?.container||"";return t&&o?.dropTarget&&(a="".concat(a," ").concat(o.dropTarget)),e===r&&o?.root&&(a="".concat(a," ").concat(o.root)),e===r&&i?.className&&(a="".concat(a," ").concat(i.className)),a=a.trim(),a},Xtr=function(e,t,n){t.current?n(t):n(e),b.useEffect(function(){t.current?n(t):n(e)},[t.current])},Ytr=function(e){var t=kw(),n=b.useContext(IB),r=b.useRef(null),i=b.useRef(null),o=t.tree.find(function(z){return z.id===e.id}),a=t.openIds,s=t.classes,l=t.enableAnimateExpand,c=a.includes(e.id),u=jtr(o,r),d=u[0],p=u[1],h=u[2],g=Vtr(o,r),m=g[0],v=g[1],y=g[2];Xtr(r,i,p),nw(v,e.id,t)&&y(r),b.useEffect(function(){t.dragPreviewRender?h(mLn(),{captureDraggingState:!0}):i.current&&h(r)},[h,t.dragPreviewRender]),Btr(r);var M=function(){return t.onToggle(o.id)},C=t.listItemComponent,x=s?.listItem||"";m&&s?.dropTarget&&(x="".concat(x," ").concat(s.dropTarget)),d&&s?.draggingSource&&(x="".concat(x," ").concat(s.draggingSource));var w=t.canDrag?t.canDrag(e.id):!0,S=n.dropTargetId===e.id,A={depth:e.depth,isOpen:c,isDragging:d,isDropTarget:S,draggable:w,hasChild:E7(t.tree,e.id),containerRef:r,handleRef:i,onToggle:M};return E.createElement(C,{ref:r,className:x,role:"listitem"},t.render(o,A),l&&A.hasChild&&E.createElement(ztr,{isVisible:c},E.createElement(ome,{parentId:e.id,depth:e.depth+1})),!l&&A.hasChild&&c&&E.createElement(ome,{parentId:e.id,depth:e.depth+1}))},XNe=function(e){var t=kw(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=b.useContext(IB),a=yM(),s=a.getMonitor(),l=s.getItem();if(!n||!l)return null;var c=e.dropTargetId===o.dropTargetId&&(e.index===o.index||e.index===void 0&&e.listCount===o.index);return c?E.createElement(r,{className:i?.placeholder||""},n(l,{depth:e.depth})):null},ome=function(e){var t=kw(),n=b.useRef(null),r=t.tree.filter(function(m){return m.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:Etr;if(t.insertDroppableFirst){var a=r.filter(function(m){return m.droppable}),s=r.filter(function(m){return!m.droppable});t.sort===!1?i=t1(t1([],a,!0),s,!0):(a=a.sort(o),s=s.sort(o),i=t1(t1([],a,!0),s,!0))}else t.sort!==!1&&(i=r.sort(o));var l=Htr(n),c=l[0],u=l[1],d=l[2];e.parentId===t.rootId&&nw(u,t.rootId,t)&&d(n);var p=Utr(e.parentId,c),h=t.rootProps||{},g=t.listComponent;return E.createElement(g,Ff({ref:n,role:"list"},h,{className:p}),i.map(function(m,v){return E.createElement(E.Fragment,{key:m.id},E.createElement(XNe,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:v}),E.createElement(Ytr,{id:m.id,depth:e.depth}))}),E.createElement(XNe,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},Ktr={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},Qtr=function(e){var t=e.clientOffset;if(!t)return{};var n=t.x,r=t.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},Ztr=function(){var e=kw(),t=$tr(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:E.createElement("div",{style:Ktr},E.createElement("div",{style:Qtr(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function Jtr(e,t){return E.createElement(qtr,Ff({},e,{treeRef:t}),e.dragPreviewRender&&E.createElement(Ztr,null),E.createElement(ome,{parentId:e.rootId,depth:0}))}var UZ=b.forwardRef(Jtr),t_={},YNe;function enr(){if(YNe)return t_;YNe=1;var e=ri(),t=ii();Object.defineProperty(t_,"__esModule",{value:!0}),t_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"Folder");return t_.default=i,t_}var tnr=enr();const q3=qn(tnr);var n_={},KNe;function nnr(){if(KNe)return n_;KNe=1;var e=ri(),t=ii();Object.defineProperty(n_,"__esModule",{value:!0}),n_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"}),"InsertChart");return n_.default=i,n_}var rnr=nnr();const XZ=qn(rnr);var r_={},QNe;function inr(){if(QNe)return r_;QNe=1;var e=ri(),t=ii();Object.defineProperty(r_,"__esModule",{value:!0}),r_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");return r_.default=i,r_}var onr=inr();const Zft=qn(onr);var anr=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),snr=(function(){function e(){this.browser=new anr,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),Ii=new snr;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ii.wxa=!0,Ii.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ii.worker=!0:!Ii.hasGlobalWindow||"Deno"in window?(Ii.node=!0,Ii.svgSupported=!0):lnr(navigator.userAgent,Ii);function lnr(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var $we=12,Jft="sans-serif",rw=$we+"px "+Jft,cnr=20,unr=100,dnr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function pnr(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-cnr)/unr;t[r]=i}return t}var hnr=pnr(dnr),wm={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(n,r){if(!e){var i=wm.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||rw),e.measureText(n);n=n||"",r=r||rw;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||$we,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var c=hnr[n[l]];s+=c==null?a:c*a}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function egt(e){for(var t in wm)e[t]&&(wm[t]=e[t])}var tgt=Wf(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),ngt=Wf(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),YD=Object.prototype.toString,YZ=Array.prototype,fnr=YZ.forEach,gnr=YZ.filter,Uwe=YZ.slice,mnr=YZ.map,ZNe=(function(){}).constructor,V8=ZNe?ZNe.prototype:null,Xwe="__proto__",vnr=2311;function Ywe(){return vnr++}function KZ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Or(e){if(e==null||typeof e!="object")return e;var t=e,n=YD.call(e);if(n==="[object Array]"){if(!TI(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=Or(e[r])}}else if(ngt[n]){if(!TI(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!tgt[n]&&!TI(e)&&!Gz(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==Xwe&&(t[a]=Or(e[a]))}return t}function ei(e,t,n){if(!xr(t)||!xr(e))return n?Or(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Xwe){var i=e[r],o=t[r];xr(o)&&xr(i)&&!Ht(o)&&!Ht(i)&&!Gz(o)&&!Gz(i)&&!ame(o)&&!ame(i)&&!TI(o)&&!TI(i)?ei(i,o,n):(n||!(r in e))&&(e[r]=Or(t[r]))}return e}function QZ(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=ei(n,e[r],t);return n}function Nt(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Xwe&&(e[n]=t[n]);return e}function br(e,t,n){for(var r=ji(t),i=0,o=r.length;i<o;i++){var a=r[i];(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}var bnr=wm.createCanvas;function hi(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Kwe(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function jl(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];o!=="constructor"&&(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}else br(e,t,n)}function Sd(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function ye(e,t,n){if(e&&t)if(e.forEach&&e.forEach===fnr)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function Vt(e,t,n){if(!e)return[];if(!t)return ZZ(e);if(e.map&&e.map===mnr)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function Wf(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function ko(e,t,n){if(!e)return[];if(!t)return ZZ(e);if(e.filter&&e.filter===gnr)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function rgt(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function ji(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function ynr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(Uwe.call(arguments)))}}var En=V8&&fr(V8.bind)?V8.call.bind(V8.bind):ynr;function Zr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(Uwe.call(arguments)))}}function Ht(e){return Array.isArray?Array.isArray(e):YD.call(e)==="[object Array]"}function fr(e){return typeof e=="function"}function Sn(e){return typeof e=="string"}function eU(e){return YD.call(e)==="[object String]"}function yo(e){return typeof e=="number"}function xr(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function ame(e){return!!tgt[YD.call(e)]}function h1(e){return!!ngt[YD.call(e)]}function Gz(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function PB(e){return e.colorStops!=null}function igt(e){return e.image!=null}function ogt(e){return YD.call(e)==="[object RegExp]"}function TP(e){return e!==e}function xu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function Xr(e,t){return e??t}function hm(e,t,n){return e??t??n}function ZZ(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Uwe.apply(e,t)}function JZ(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function S0(e,t){if(!e)throw new Error(t)}function Cf(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var agt="__ec_primitive__";function iq(e){e[agt]=!0}function TI(e){return e[agt]}var Mnr=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return ji(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e})(),sgt=typeof Map=="function";function Cnr(){return sgt?new Map:new Mnr}var lgt=(function(){function e(t){var n=Ht(t);this.data=Cnr();var r=this;t instanceof e?t.each(i):t&&ye(t,i);function i(o,a){n?r.set(o,a):r.set(a,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,i){t.call(n,r,i)})},e.prototype.keys=function(){var t=this.data.keys();return sgt?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function Yn(e){return new lgt(e)}function EP(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function DB(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Nt(n,t),n}function Qwe(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Fn(e,t){return e.hasOwnProperty(t)}function Nl(){}var bF=180/Math.PI;const xnr=Object.freeze(Object.defineProperty({__proto__:null,HashMap:lgt,RADIAN_TO_DEGREE:bF,assert:S0,bind:En,clone:Or,concatArray:EP,createCanvas:bnr,createHashMap:Yn,createObject:DB,curry:Zr,defaults:br,disableUserSelect:Qwe,each:ye,eqNaN:TP,extend:Nt,filter:ko,find:rgt,guid:Ywe,hasOwn:Fn,indexOf:hi,inherits:Kwe,isArray:Ht,isArrayLike:Sd,isBuiltInObject:ame,isDom:Gz,isFunction:fr,isGradientObject:PB,isImagePatternObject:igt,isNumber:yo,isObject:xr,isPrimitive:TI,isRegExp:ogt,isString:Sn,isStringSafe:eU,isTypedArray:h1,keys:ji,logError:KZ,map:Vt,merge:ei,mergeAll:QZ,mixin:jl,noop:Nl,normalizeCssArray:JZ,reduce:Wf,retrieve:xu,retrieve2:Xr,retrieve3:hm,setAsPrimitive:iq,slice:ZZ,trim:Cf},Symbol.toStringTag,{value:"Module"}));function Lw(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function i0(e,t){return e[0]=t[0],e[1]=t[1],e}function bb(e){return[e[0],e[1]]}function cgt(e,t,n){return e[0]=t,e[1]=n,e}function sme(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function tU(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function ux(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function oq(e){return Math.sqrt(Zwe(e))}var wnr=oq;function Zwe(e){return e[0]*e[0]+e[1]*e[1]}var Snr=Zwe;function Anr(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Onr(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function znr(e,t){return e[0]*t[0]+e[1]*t[1]}function yF(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function B3(e,t){var n=oq(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function nU(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Cy=nU;function ugt(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Px=ugt;function Tnr(e,t){return e[0]=-t[0],e[1]=-t[1],e}function MF(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Yu(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function xy(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function wy(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}const Enr=Object.freeze(Object.defineProperty({__proto__:null,add:sme,applyTransform:Yu,clone:bb,copy:i0,create:Lw,dist:Cy,distSquare:Px,distance:nU,distanceSquare:ugt,div:Onr,dot:znr,len:oq,lenSquare:Zwe,length:wnr,lengthSquare:Snr,lerp:MF,max:wy,min:xy,mul:Anr,negate:Tnr,normalize:B3,scale:yF,scaleAndAdd:tU,set:cgt,sub:ux},Symbol.toStringTag,{value:"Module"}));var kE=(function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e})(),Rnr=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new kE(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,i=t.offsetY,o=r-this._x,a=i-this._y;this._x=r,this._y=i,n.drift(o,a,t),this.handler.dispatchToElement(new kE(n,t),"drag",t.event);var s=this.handler.findHover(r,i,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new kE(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new kE(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new kE(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new kE(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Zf=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},c=o[t].length-1,u=o[t][c];return u&&u.callAtLast?o[t].splice(c,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var i=[],o=0,a=r[t].length;o<a;o++)r[t][o].h!==n&&i.push(r[t][o]);r[t]=i}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=i.length,l=0;l<s;l++){var c=i[l];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,n[0]);break;case 2:c.h.call(c.ctx,n[0],n[1]);break;default:c.h.apply(c.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=n[a-1],l=i.length,c=0;c<l;c++){var u=i[c];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(a){case 0:u.h.call(s);break;case 1:u.h.call(s,n[0]);break;case 2:u.h.call(s,n[0],n[1]);break;default:u.h.apply(s,n.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e})(),Inr=Math.log(2);function lme(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/Inr);return e[n][l]}for(var c=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,p=0,h=0;p<s;p++){var g=1<<p;g&i||(d+=(h%2?-1:1)*e[n][p]*lme(e,t-1,u,c,i|g,o),h++)}return o[a]=d,d}function JNe(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=lme(n,8,0,0,0,r);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*lme(n,7,a===0?1:0,1<<a,1<<s,r)/i*t[a];return function(l,c,u){var d=c*o[6]+u*o[7]+1;l[0]=(c*o[0]+u*o[1]+o[2])/d,l[1]=(c*o[3]+u*o[4]+o[5])/d}}}var eFe="___zrEVENTSAVED",Hoe=[];function Pnr(e,t,n,r,i){return cme(Hoe,t,r,i,!0)&&cme(e,n,Hoe[0],Hoe[1])}function cme(e,t,n,r,i){if(t.getBoundingClientRect&&Ii.domSupported&&!dgt(t)){var o=t[eFe]||(t[eFe]={}),a=Dnr(t,o),s=knr(a,o,i);if(s)return s(e,n,r),!0}return!1}function Dnr(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,c=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function knr(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),d=2*c,p=u.left,h=u.top;a.push(p,h),l=l&&o&&p===o[d]&&h===o[d+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?JNe(s,a):JNe(a,s))}function dgt(e){return e.nodeName.toUpperCase()==="CANVAS"}var Lnr=/([&<>"'])/g,_nr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function l0(e){return e==null?"":(e+"").replace(Lnr,function(t,n){return _nr[n]})}var Nnr=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Voe=[],Fnr=Ii.browser.firefox&&+Ii.browser.version.split(".")[0]<39;function ume(e,t,n,r){return n=n||{},r?tFe(e,t,n):Fnr&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):tFe(e,t,n),n}function tFe(e,t,n){if(Ii.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(dgt(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(cme(Voe,e,r,i)){n.zrX=Voe[0],n.zrY=Voe[1];return}}n.zrX=n.zrY=0}function Jwe(e){return e||window.event}function Xh(e,t,n){if(t=Jwe(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&ume(e,a,t,n)}else{ume(e,t,t,n);var o=Wnr(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Nnr.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Wnr(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function dme(e,t,n,r){e.addEventListener(t,n,r)}function qnr(e,t,n,r){e.removeEventListener(t,n,r)}var nM=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function nFe(e){return e.which===2||e.which===3}var Bnr=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var o={points:[],touches:[],target:n,event:t},a=0,s=i.length;a<s;a++){var l=i[a],c=ume(r,l,{});o.points.push([c.zrX,c.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var n in Goe)if(Goe.hasOwnProperty(n)){var r=Goe[n](this._track,t);if(r)return r}},e})();function rFe(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function jnr(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Goe={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=rFe(r)/rFe(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=jnr(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}};function gp(){return[1,0,0,1,0,0]}function kB(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function eJ(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function yb(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Sm(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function _w(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=o*d+l*u,e[3]=-o*u+d*l,e[4]=d*(a-r[0])+u*(c-r[1])+r[0],e[5]=d*(c-r[1])-u*(a-r[0])+r[1],e}function tJ(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function j3(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}function pgt(e){var t=gp();return eJ(t,e),t}const Hnr=Object.freeze(Object.defineProperty({__proto__:null,clone:pgt,copy:eJ,create:gp,identity:kB,invert:j3,mul:yb,rotate:_w,scale:tJ,translate:Sm},Symbol.toStringTag,{value:"Module"}));var ci=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var o=1-i;t.x=o*n.x+i*r.x,t.y=o*n.y+i*r.y},e})(),G8=Math.min,$8=Math.max,YS=new ci,KS=new ci,QS=new ci,ZS=new ci,i_=new ci,o_=new ci,ui=(function(){function e(t,n,r,i){r<0&&(t=t+r,r=-r),i<0&&(n=n+i,i=-i),this.x=t,this.y=n,this.width=r,this.height=i}return e.prototype.union=function(t){var n=G8(t.x,this.x),r=G8(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=$8(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=$8(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,i=t.height/n.height,o=gp();return Sm(o,o,[-n.x,-n.y]),tJ(o,o,[r,i]),Sm(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,c=t.x+t.width,u=t.y,d=t.y+t.height,p=!(o<l||c<i||s<u||d<a);if(n){var h=1/0,g=0,m=Math.abs(o-l),v=Math.abs(c-i),y=Math.abs(s-u),M=Math.abs(d-a),C=Math.min(m,v),x=Math.min(y,M);o<l||c<i?C>g&&(g=C,m<v?ci.set(o_,-m,0):ci.set(o_,v,0)):C<h&&(h=C,m<v?ci.set(i_,m,0):ci.set(i_,-v,0)),s<u||d<a?x>g&&(g=x,y<M?ci.set(o_,0,-y):ci.set(o_,0,M)):C<h&&(h=C,y<M?ci.set(i_,0,y):ci.set(i_,0,-M))}return n&&ci.copy(n,p?i_:o_),p},e.prototype.contain=function(t,n){var r=this;return t>=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}YS.x=QS.x=n.x,YS.y=ZS.y=n.y,KS.x=ZS.x=n.x+n.width,KS.y=QS.y=n.y+n.height,YS.transform(r),ZS.transform(r),KS.transform(r),QS.transform(r),t.x=G8(YS.x,KS.x,QS.x,ZS.x),t.y=G8(YS.y,KS.y,QS.y,ZS.y);var l=$8(YS.x,KS.x,QS.x,ZS.x),c=$8(YS.y,KS.y,QS.y,ZS.y);t.width=l-t.x,t.height=c-t.y},e})(),hgt="silent";function Vnr(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Gnr}}function Gnr(){nM(this.event)}var $nr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Zf),a_=(function(){function e(t,n){this.x=t,this.y=n}return e})(),Unr=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$oe=new ui(0,0,0,0),fgt=(function(e){gt(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new a_(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new $nr,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Rnr(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(ye(Unr,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,o=ggt(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new a_(r,i):this.findHover(r,i),c=l.target,u=this.proxy;u.setCursor&&u.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),c&&c!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new a_(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+r,s=Vnr(r,n,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,i){var o=this.storage.getDisplayList(),a=new a_(n,r);if(iFe(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,c=l/2,u=new ui(n-c,r-c,l,l),d=o.length-1;d>=0;d--){var p=o[d];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&($oe.copy(p.getBoundingRect()),p.transform&&$oe.applyTransform(p.transform),$oe.intersect(u)&&s.push(p))}if(s.length)for(var h=4,g=Math.PI/12,m=Math.PI*2,v=0;v<c;v+=h)for(var y=0;y<m;y+=g){var M=n+v*Math.cos(y),C=r+v*Math.sin(y);if(iFe(s,a,M,C,i),a.target)return a}}return a},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new Bnr);var i=this._gestureMgr;r==="start"&&i.clear();var o=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),o){var a=o.type;n.gestureEvent=a;var s=new a_;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t})(Zf);ye(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){fgt.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=ggt(this,n,r),o,a;if((e!=="mouseup"||!i)&&(o=this.findHover(n,r),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Cy(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Xnr(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?hgt:!0}return!1}function iFe(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=Xnr(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==hgt)){t.target=a;break}}}function ggt(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var mgt=32,s_=7;function Ynr(e){for(var t=0;e>=mgt;)t|=e&1,e>>=1;return e+t}function oFe(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;Knr(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Knr(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function aFe(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o=e[r],a=t,s=r,l;a<s;)l=a+s>>>1,i(o,e[l])<0?s=l:a=l+1;var c=r-a;switch(c){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;c>0;)e[a+c]=e[a+c-1],c--}e[a]=o}}function Uoe(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=i-l,l=i-c}for(a++;a<l;){var u=a+(l-a>>>1);o(e,t[n+u])>0?a=u+1:l=u}return l}function Xoe(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=i-l,l=i-c}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var u=a+(l-a>>>1);o(e,t[n+u])<0?l=u:a=u+1}return l}function Qnr(e,t){var n=s_,r,i,o=0,a=[];r=[],i=[];function s(h,g){r[o]=h,i[o]=g,o+=1}function l(){for(;o>1;){var h=o-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;u(h)}}function c(){for(;o>1;){var h=o-2;h>0&&i[h-1]<i[h+1]&&h--,u(h)}}function u(h){var g=r[h],m=i[h],v=r[h+1],y=i[h+1];i[h]=m+y,h===o-3&&(r[h+1]=r[h+2],i[h+1]=i[h+2]),o--;var M=Xoe(e[v],e,g,m,0,t);g+=M,m-=M,m!==0&&(y=Uoe(e[g+m-1],e,v,y,y-1,t),y!==0&&(m<=y?d(g,m,v,y):p(g,m,v,y)))}function d(h,g,m,v){var y=0;for(y=0;y<g;y++)a[y]=e[h+y];var M=0,C=m,x=h;if(e[x++]=e[C++],--v===0){for(y=0;y<g;y++)e[x+y]=a[M+y];return}if(g===1){for(y=0;y<v;y++)e[x+y]=e[C+y];e[x+v]=a[M];return}for(var w=n,S,A,z;;){S=0,A=0,z=!1;do if(t(e[C],a[M])<0){if(e[x++]=e[C++],A++,S=0,--v===0){z=!0;break}}else if(e[x++]=a[M++],S++,A=0,--g===1){z=!0;break}while((S|A)<w);if(z)break;do{if(S=Xoe(e[C],a,M,g,0,t),S!==0){for(y=0;y<S;y++)e[x+y]=a[M+y];if(x+=S,M+=S,g-=S,g<=1){z=!0;break}}if(e[x++]=e[C++],--v===0){z=!0;break}if(A=Uoe(a[M],e,C,v,0,t),A!==0){for(y=0;y<A;y++)e[x+y]=e[C+y];if(x+=A,C+=A,v-=A,v===0){z=!0;break}}if(e[x++]=a[M++],--g===1){z=!0;break}w--}while(S>=s_||A>=s_);if(z)break;w<0&&(w=0),w+=2}if(n=w,n<1&&(n=1),g===1){for(y=0;y<v;y++)e[x+y]=e[C+y];e[x+v]=a[M]}else{if(g===0)throw new Error;for(y=0;y<g;y++)e[x+y]=a[M+y]}}function p(h,g,m,v){var y=0;for(y=0;y<v;y++)a[y]=e[m+y];var M=h+g-1,C=v-1,x=m+v-1,w=0,S=0;if(e[x--]=e[M--],--g===0){for(w=x-(v-1),y=0;y<v;y++)e[w+y]=a[y];return}if(v===1){for(x-=g,M-=g,S=x+1,w=M+1,y=g-1;y>=0;y--)e[S+y]=e[w+y];e[x]=a[C];return}for(var A=n;;){var z=0,O=0,T=!1;do if(t(a[C],e[M])<0){if(e[x--]=e[M--],z++,O=0,--g===0){T=!0;break}}else if(e[x--]=a[C--],O++,z=0,--v===1){T=!0;break}while((z|O)<A);if(T)break;do{if(z=g-Xoe(a[C],e,h,g,g-1,t),z!==0){for(x-=z,M-=z,g-=z,S=x+1,w=M+1,y=z-1;y>=0;y--)e[S+y]=e[w+y];if(g===0){T=!0;break}}if(e[x--]=a[C--],--v===1){T=!0;break}if(O=v-Uoe(e[M],a,0,v,v-1,t),O!==0){for(x-=O,C-=O,v-=O,S=x+1,w=C+1,y=0;y<O;y++)e[S+y]=a[w+y];if(v<=1){T=!0;break}}if(e[x--]=e[M--],--g===0){T=!0;break}A--}while(z>=s_||O>=s_);if(T)break;A<0&&(A=0),A+=2}if(n=A,n<1&&(n=1),v===1){for(x-=g,M-=g,S=x+1,w=M+1,y=g-1;y>=0;y--)e[S+y]=e[w+y];e[x]=a[C]}else{if(v===0)throw new Error;for(w=x-(v-1),y=0;y<v;y++)e[w+y]=a[y]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function R7(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<mgt){o=oFe(e,n,r,t),aFe(e,n,r,n+o,t);return}var a=Qnr(e,t),s=Ynr(i);do{if(o=oFe(e,n,r,t),o<s){var l=i;l>s&&(l=s),aFe(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var Up=1,oN=2,MR=4,sFe=!1;function Yoe(){sFe||(sFe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function lFe(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Znr=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=lFe}return e.prototype.traverse=function(t,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,o=n.length;i<o;i++)this._updateAndAddDisplayable(n[i],null,t);r.length=this._displayListLen,R7(r,lFe)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)n=null;else if(i){n?n=n.slice():n=[];for(var o=i,a=t;o;)o.parent=a,o.updateTransform(),n.push(o),a=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var c=s[l];t.__dirty&&(c.__dirty|=Up),this._updateAndAddDisplayable(c,n,r)}t.__dirty=0}else{var u=t;n&&n.length?u.__clipPaths=n:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Yoe(),u.z=0),isNaN(u.z2)&&(Yoe(),u.z2=0),isNaN(u.zlevel)&&(Yoe(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,n,r);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,n,r);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n<r;n++)this.delRoot(t[n]);return}var i=hi(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),rU;rU=Ii.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var CF={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-CF.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?CF.bounceIn(e*2)*.5:CF.bounceOut(e*2-1)*.5+.5}},U8=Math.pow,Dx=Math.sqrt,iU=1e-8,vgt=1e-4,cFe=Dx(3),X8=1/3,Vv=Lw(),lf=Lw(),EI=Lw();function dx(e){return e>-iU&&e<iU}function bgt(e){return e>iU||e<-iU}function yu(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function uFe(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function oU(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),c=e-i,u=s*s-3*a*l,d=s*l-9*a*c,p=l*l-3*s*c,h=0;if(dx(u)&&dx(d))if(dx(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[h++]=g)}else{var m=d*d-4*u*p;if(dx(m)){var v=d/u,g=-s/a+v,y=-v/2;g>=0&&g<=1&&(o[h++]=g),y>=0&&y<=1&&(o[h++]=y)}else if(m>0){var M=Dx(m),C=u*s+1.5*a*(-d+M),x=u*s+1.5*a*(-d-M);C<0?C=-U8(-C,X8):C=U8(C,X8),x<0?x=-U8(-x,X8):x=U8(x,X8);var g=(-s-(C+x))/(3*a);g>=0&&g<=1&&(o[h++]=g)}else{var w=(2*u*s-3*a*d)/(2*Dx(u*u*u)),S=Math.acos(w)/3,A=Dx(u),z=Math.cos(S),g=(-s-2*A*z)/(3*a),y=(-s+A*(z+cFe*Math.sin(S)))/(3*a),O=(-s+A*(z-cFe*Math.sin(S)))/(3*a);g>=0&&g<=1&&(o[h++]=g),y>=0&&y<=1&&(o[h++]=y),O>=0&&O<=1&&(o[h++]=O)}}return h}function ygt(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(dx(a)){if(bgt(o)){var c=-s/o;c>=0&&c<=1&&(i[l++]=c)}}else{var u=o*o-4*a*s;if(dx(u))i[0]=-o/(2*a);else if(u>0){var d=Dx(u),c=(-o+d)/(2*a),p=(-o-d)/(2*a);c>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function iw(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-a)*i+a,u=(l-s)*i+s,d=(u-c)*i+c;o[0]=e,o[1]=a,o[2]=c,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=r}function Mgt(e,t,n,r,i,o,a,s,l,c,u){var d,p=.005,h=1/0,g,m,v,y;Vv[0]=l,Vv[1]=c;for(var M=0;M<1;M+=.05)lf[0]=yu(e,n,i,a,M),lf[1]=yu(t,r,o,s,M),v=Px(Vv,lf),v<h&&(d=M,h=v);h=1/0;for(var C=0;C<32&&!(p<vgt);C++)g=d-p,m=d+p,lf[0]=yu(e,n,i,a,g),lf[1]=yu(t,r,o,s,g),v=Px(lf,Vv),g>=0&&v<h?(d=g,h=v):(EI[0]=yu(e,n,i,a,m),EI[1]=yu(t,r,o,s,m),y=Px(EI,Vv),m<=1&&y<h?(d=m,h=y):p*=.5);return u&&(u[0]=yu(e,n,i,a,d),u[1]=yu(t,r,o,s,d)),Dx(h)}function Jnr(e,t,n,r,i,o,a,s,l){for(var c=e,u=t,d=0,p=1/l,h=1;h<=l;h++){var g=h*p,m=yu(e,n,i,a,g),v=yu(t,r,o,s,g),y=m-c,M=v-u;d+=Math.sqrt(y*y+M*M),c=m,u=v}return d}function Vu(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function pme(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function err(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(dx(o)){if(bgt(a)){var c=-s/a;c>=0&&c<=1&&(i[l++]=c)}}else{var u=a*a-4*o*s;if(dx(u)){var c=-a/(2*o);c>=0&&c<=1&&(i[l++]=c)}else if(u>0){var d=Dx(u),c=(-a+d)/(2*o),p=(-a-d)/(2*o);c>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function Cgt(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function aq(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function xgt(e,t,n,r,i,o,a,s,l){var c,u=.005,d=1/0;Vv[0]=a,Vv[1]=s;for(var p=0;p<1;p+=.05){lf[0]=Vu(e,n,i,p),lf[1]=Vu(t,r,o,p);var h=Px(Vv,lf);h<d&&(c=p,d=h)}d=1/0;for(var g=0;g<32&&!(u<vgt);g++){var m=c-u,v=c+u;lf[0]=Vu(e,n,i,m),lf[1]=Vu(t,r,o,m);var h=Px(lf,Vv);if(m>=0&&h<d)c=m,d=h;else{EI[0]=Vu(e,n,i,v),EI[1]=Vu(t,r,o,v);var y=Px(EI,Vv);v<=1&&y<d?(c=v,d=y):u*=.5}}return l&&(l[0]=Vu(e,n,i,c),l[1]=Vu(t,r,o,c)),Dx(d)}function trr(e,t,n,r,i,o,a){for(var s=e,l=t,c=0,u=1/a,d=1;d<=a;d++){var p=d*u,h=Vu(e,n,i,p),g=Vu(t,r,o,p),m=h-s,v=g-l;c+=Math.sqrt(m*m+v*v),s=h,l=g}return c}var nrr=/cubic-bezier\(([0-9,\.e ]+)\)/;function eSe(e){var t=e&&nrr.exec(e);if(t){var n=t[1].split(","),r=+Cf(n[0]),i=+Cf(n[1]),o=+Cf(n[2]),a=+Cf(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:oU(0,r,o,1,l,s)&&yu(0,i,a,1,s[0])}}}var rrr=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Nl,this.ondestroy=t.ondestroy||Nl,this.onrestart=t.onrestart||Nl,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=fr(t)?t:CF[t]||eSe(t)},e})(),wgt=(function(){function e(t){this.value=t}return e})(),irr=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new wgt(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),LB=(function(){function e(t){this._list=new irr,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,o=null;if(i[t]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new wgt(n),s.key=t,r.insertEntry(s),i[t]=s}return o},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),dFe={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function fm(e){return e=Math.round(e),e<0?0:e>255?255:e}function orr(e){return e=Math.round(e),e<0?0:e>360?360:e}function sq(e){return e<0?0:e>1?1:e}function Koe(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?fm(parseFloat(t)/100*255):fm(parseInt(t,10))}function ZO(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?sq(parseFloat(t)/100):sq(parseFloat(t))}function Qoe(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function px(e,t,n){return e+(t-e)*n}function Hh(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function hme(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Sgt=new LB(20),Y8=null;function LE(e,t){Y8&&hme(Y8,t),Y8=Sgt.put(e,Y8||t.slice())}function c1(e,t){if(e){t=t||[];var n=Sgt.get(e);if(n)return hme(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in dFe)return hme(t,dFe[r]),LE(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){Hh(t,0,0,0,1);return}return Hh(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),LE(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Hh(t,0,0,0,1);return}return Hh(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),LE(e,t),t}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===i){var l=r.substr(0,a),c=r.substr(a+1,s-(a+1)).split(","),u=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?Hh(t,+c[0],+c[1],+c[2],1):Hh(t,0,0,0,1);u=ZO(c.pop());case"rgb":if(c.length>=3)return Hh(t,Koe(c[0]),Koe(c[1]),Koe(c[2]),c.length===3?u:ZO(c[3])),LE(e,t),t;Hh(t,0,0,0,1);return;case"hsla":if(c.length!==4){Hh(t,0,0,0,1);return}return c[3]=ZO(c[3]),fme(c,t),LE(e,t),t;case"hsl":if(c.length!==3){Hh(t,0,0,0,1);return}return fme(c,t),LE(e,t),t;default:return}}Hh(t,0,0,0,1)}}function fme(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=ZO(e[1]),i=ZO(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],Hh(t,fm(Qoe(a,o,n+1/3)*255),fm(Qoe(a,o,n)*255),fm(Qoe(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function arr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i,s=(o+i)/2,l,c;if(a===0)l=0,c=0;else{s<.5?c=a/(o+i):c=a/(2-o-i);var u=((o-t)/6+a/2)/a,d=((o-n)/6+a/2)/a,p=((o-r)/6+a/2)/a;t===o?l=p-d:n===o?l=1/3+u-p:r===o&&(l=2/3+d-u),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,c,s];return e[3]!=null&&h.push(e[3]),h}}function aU(e,t){var n=c1(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return gm(n,n.length===4?"rgba":"rgb")}}function srr(e){var t=c1(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function xF(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=t[i],s=t[o],l=r-i;return n[0]=fm(px(a[0],s[0],l)),n[1]=fm(px(a[1],s[1],l)),n[2]=fm(px(a[2],s[2],l)),n[3]=sq(px(a[3],s[3],l)),n}}var lrr=xF;function tSe(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=c1(t[i]),s=c1(t[o]),l=r-i,c=gm([fm(px(a[0],s[0],l)),fm(px(a[1],s[1],l)),fm(px(a[2],s[2],l)),sq(px(a[3],s[3],l))],"rgba");return n?{color:c,leftIndex:i,rightIndex:o,value:r}:c}}var crr=tSe;function RI(e,t,n,r){var i=c1(e);if(e)return i=arr(i),t!=null&&(i[0]=orr(t)),n!=null&&(i[1]=ZO(n)),r!=null&&(i[2]=ZO(r)),gm(fme(i),"rgba")}function lq(e,t){var n=c1(e);if(n&&t!=null)return n[3]=sq(t),gm(n,"rgba")}function gm(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function cq(e,t){var n=c1(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function urr(){return gm([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var pFe=new LB(100);function sU(e){if(Sn(e)){var t=pFe.get(e);return t||(t=aU(e,-.1),pFe.put(e,t)),t}else if(PB(e)){var n=Nt({},e);return n.colorStops=Vt(e.colorStops,function(r){return{offset:r.offset,color:aU(r.color,-.1)}}),n}return e}const drr=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:xF,fastMapToColor:lrr,lerp:tSe,lift:aU,liftColor:sU,lum:cq,mapToColor:crr,modifyAlpha:lq,modifyHSL:RI,parse:c1,random:urr,stringify:gm,toHex:srr},Symbol.toStringTag,{value:"Module"}));var lU=Math.round;function uq(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=c1(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var hFe=1e-4;function hx(e){return e<hFe&&e>-hFe}function K8(e){return lU(e*1e3)/1e3}function gme(e){return lU(e*1e4)/1e4}function prr(e){return"matrix("+K8(e[0])+","+K8(e[1])+","+K8(e[2])+","+K8(e[3])+","+gme(e[4])+","+gme(e[5])+")"}var hrr={left:"start",right:"end",center:"middle",middle:"middle"};function frr(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function grr(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function mrr(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function Agt(e){return e&&!!e.image}function vrr(e){return e&&!!e.svgElement}function nSe(e){return Agt(e)||vrr(e)}function Ogt(e){return e.type==="linear"}function zgt(e){return e.type==="radial"}function Tgt(e){return e&&(e.type==="linear"||e.type==="radial")}function nJ(e){return"url(#"+e+")"}function Egt(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Rgt(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*bF,i=Xr(e.scaleX,1),o=Xr(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(i!==1||o!==1)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+lU(a*bF)+"deg, "+lU(s*bF)+"deg)"),l.join(" ")}var brr=(function(){return Ii.hasGlobalWindow&&fr(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})(),mme=Array.prototype.slice;function ry(e,t,n){return(t-e)*n+e}function Zoe(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=ry(t[o],n[o],r);return e}function yrr(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=ry(t[a][s],n[a][s],r)}return e}function Q8(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function fFe(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function Mrr(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function Crr(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(n===1?i[l]:mme.call(i[l]))}for(var c=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=i[l]);else for(var u=0;u<c;u++)isNaN(r[l][u])&&(r[l][u]=i[l][u])}}function wF(e){if(Sd(e)){var t=e.length;if(Sd(e[0])){for(var n=[],r=0;r<t;r++)n.push(mme.call(e[r]));return n}return mme.call(e)}return e}function I7(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function xrr(e){return Sd(e&&e[0])?2:1}var Z8=0,P7=1,Igt=2,aN=3,vme=4,bme=5,gFe=6;function mFe(e){return e===vme||e===bme}function J8(e){return e===P7||e===Igt}var l_=[0,0,0,0],wrr=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=gFe,l=n;if(Sd(n)){var c=xrr(n);s=c,(c===1&&!yo(n[0])||c===2&&!yo(n[0][0]))&&(a=!0)}else if(yo(n)&&!TP(n))s=Z8;else if(Sn(n))if(!isNaN(+n))s=Z8;else{var u=c1(n);u&&(l=u,s=aN)}else if(PB(n)){var d=Nt({},l);d.colorStops=Vt(n.colorStops,function(h){return{offset:h.offset,color:c1(h.color)}}),Ogt(n)?s=vme:zgt(n)&&(s=bme),l=d}o===0?this.valType=s:(s!==this.valType||s===gFe)&&(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:n,percent:0};return r&&(p.easing=r,p.easingFunc=fr(r)?r:CF[r]||eSe(r)),i.push(p),p},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(m,v){return m.time-v.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=J8(i),c=mFe(i),u=0;u<o;u++){var d=r[u],p=d.value,h=a.value;d.percent=d.time/t,s||(l&&u!==o-1?Crr(p,h,i):c&&Mrr(p.colorStops,h.colorStops))}if(!s&&i!==bme&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var g=r[0].value,u=0;u<o;u++)i===Z8?r[u].additiveValue=r[u].value-g:i===aN?r[u].additiveValue=Q8([],r[u].value,g,-1):J8(i)&&(r[u].additiveValue=i===P7?Q8([],r[u].value,g,-1):fFe([],r[u].value,g,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,c=o===aN,u,d=this._lastFr,p=Math.min,h,g;if(s===1)h=g=a[0];else{if(n<0)u=0;else if(n<this._lastFrP){var m=p(d+1,s-1);for(u=m;u>=0&&!(a[u].percent<=n);u--);u=p(u,s-2)}else{for(u=d;u<s&&!(a[u].percent>n);u++);u=p(u-1,s-2)}g=a[u+1],h=a[u]}if(h&&g){this._lastFr=u,this._lastFrP=n;var v=g.percent-h.percent,y=v===0?1:p((n-h.percent)/v,1);g.easingFunc&&(y=g.easingFunc(y));var M=r?this._additiveValue:c?l_:t[l];if((J8(o)||c)&&!M&&(M=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:g.rawValue;else if(J8(o))o===P7?Zoe(M,h[i],g[i],y):yrr(M,h[i],g[i],y);else if(mFe(o)){var C=h[i],x=g[i],w=o===vme;t[l]={type:w?"linear":"radial",x:ry(C.x,x.x,y),y:ry(C.y,x.y,y),colorStops:Vt(C.colorStops,function(A,z){var O=x.colorStops[z];return{offset:ry(A.offset,O.offset,y),color:I7(Zoe([],A.color,O.color,y))}}),global:x.global},w?(t[l].x2=ry(C.x2,x.x2,y),t[l].y2=ry(C.y2,x.y2,y)):t[l].r=ry(C.r,x.r,y)}else if(c)Zoe(M,h[i],g[i],y),r||(t[l]=I7(M));else{var S=ry(h[i],g[i],y);r?this._additiveValue=S:t[l]=S}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===Z8?t[r]=t[r]+i:n===aN?(c1(t[r],l_),Q8(l_,l_,i,1),t[r]=I7(l_)):n===P7?Q8(t[r],t[r],i,1):n===Igt&&fFe(t[r],t[r],i,1)},e})(),rSe=(function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){KZ("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,ji(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a<r.length;a++){var s=r[a],l=o[s];if(!l){l=o[s]=new wrr(s);var c=void 0,u=this._getAdditiveTrack(s);if(u){var d=u.keyframes,p=d[d.length-1];c=p&&p.value,u.valType===aN&&c&&(c=I7(c))}else c=this._target[s];if(c==null)continue;t>0&&l.addKeyframe(0,wF(c),i),this._trackKeys.push(s)}l.addKeyframe(t,wF(n[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var o=r[i].getTrack(t);o&&(n=o)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),c=s.keyframes,u=c.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=c[u-1];d&&(n._target[s.propName]=d.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var p=new rrr({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var g=n._additiveAnimators;if(g){for(var m=!1,v=0;v<g.length;v++)if(g[v]._clip){m=!0;break}m||(n._additiveAnimators=null)}for(var v=0;v<r.length;v++)r[v].step(n._target,h);var y=n._onframeCbs;if(y)for(var v=0;v<y.length;v++)y[v](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Vt(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var a=r[t[o]];a&&!a.isFinished()&&(n?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!r[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var o=n[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[r?0:s.length-1];l&&(t[o]=wF(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||ji(t);for(var r=0;r<n.length;r++){var i=n[r],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e})();function qR(){return new Date().getTime()}var Srr=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=qR()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(rU(r),!n._paused&&n.update())}rU(r)},t.prototype.start=function(){this._running||(this._time=qR(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=qR(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=qR()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new rSe(n,r.loop);return this.addAnimator(i),i},t})(Zf),Arr=300,Joe=Ii.domSupported,eae=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Vt(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}})(),vFe={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bFe=!1;function yme(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Orr(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function tae(e){e&&(e.zrByTouch=!0)}function zrr(e,t){return Xh(e.dom,new Trr(e,t),!0)}function Pgt(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Trr=(function(){function e(t,n){this.stopPropagation=Nl,this.stopImmediatePropagation=Nl,this.preventDefault=Nl,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),Ng={mousedown:function(e){e=Xh(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Xh(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Xh(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Xh(this.dom,e);var t=e.toElement||e.relatedTarget;Pgt(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){bFe=!0,e=Xh(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){bFe||(e=Xh(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Xh(this.dom,e),tae(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ng.mousemove.call(this,e),Ng.mousedown.call(this,e)},touchmove:function(e){e=Xh(this.dom,e),tae(e),this.handler.processGesture(e,"change"),Ng.mousemove.call(this,e)},touchend:function(e){e=Xh(this.dom,e),tae(e),this.handler.processGesture(e,"end"),Ng.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Arr&&Ng.click.call(this,e)},pointerdown:function(e){Ng.mousedown.call(this,e)},pointermove:function(e){yme(e)||Ng.mousemove.call(this,e)},pointerup:function(e){Ng.mouseup.call(this,e)},pointerout:function(e){yme(e)||Ng.mouseout.call(this,e)}};ye(["click","dblclick","contextmenu"],function(e){Ng[e]=function(t){t=Xh(this.dom,t),this.trigger(e,t)}});var Mme={pointermove:function(e){yme(e)||Mme.mousemove.call(this,e)},pointerup:function(e){Mme.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Err(e,t){var n=t.domHandlers;Ii.pointerEventsSupported?ye(eae.pointer,function(r){D7(t,r,function(i){n[r].call(e,i)})}):(Ii.touchEventsSupported&&ye(eae.touch,function(r){D7(t,r,function(i){n[r].call(e,i),Orr(t)})}),ye(eae.mouse,function(r){D7(t,r,function(i){i=Jwe(i),t.touching||n[r].call(e,i)})}))}function Rrr(e,t){Ii.pointerEventsSupported?ye(vFe.pointer,n):Ii.touchEventsSupported||ye(vFe.mouse,n);function n(r){function i(o){o=Jwe(o),Pgt(e,o.target)||(o=zrr(e,o),t.domHandlers[r].call(e,o))}D7(t,r,i,{capture:!0})}}function D7(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,dme(e.domTarget,t,n,r)}function nae(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&qnr(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var yFe=(function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e})(),Irr=(function(e){gt(t,e);function t(n,r){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new yFe(n,Ng),Joe&&(i._globalHandlerScope=new yFe(document,Mme)),Err(i,i._localHandlerScope),i}return t.prototype.dispose=function(){nae(this._localHandlerScope),Joe&&nae(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,Joe&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?Rrr(this,r):nae(r)}},t})(Zf),Dgt=1;Ii.hasGlobalWindow&&(Dgt=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var cU=Dgt,Cme=.4,xme="#333",wme="#ccc",Prr="#eee",MFe=kB,CFe=5e-5;function JS(e){return e>CFe||e<-CFe}var eA=[],_E=[],rae=gp(),iae=Math.abs,Sy=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return JS(this.rotation)||JS(this.x)||JS(this.y)||JS(this.scaleX-1)||JS(this.scaleY-1)||JS(this.skewX)||JS(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(MFe(r),this.invTransform=null);return}r=r||gp(),n?this.getLocalTransform(r):MFe(r),t&&(n?yb(r,t,r):eJ(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(eA);var r=eA[0]<0?-1:1,i=eA[1]<0?-1:1,o=((eA[0]-r)*n+r)/eA[0]||0,a=((eA[1]-i)*n+i)/eA[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||gp(),j3(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||gp(),yb(_E,t.invTransform,n),n=_E);var r=this.originX,i=this.originY;(r||i)&&(rae[4]=r,rae[5]=i,yb(_E,n,rae),_E[4]-=r,_E[5]-=i,n=_E),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&Yu(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Yu(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&iae(t[0]-1)>1e-10&&iae(t[3]-1)>1e-10?Math.sqrt(iae(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){kgt(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,u=t.x,d=t.y,p=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var g=r+s,m=i+l;n[4]=-g*o-p*m*a,n[5]=-m*a-h*g*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=h*o,n[2]=p*a,c&&_w(n,n,c),n[4]+=r+u,n[5]+=i+d,n},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),Lb=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function kgt(e,t){for(var n=0;n<Lb.length;n++){var r=Lb[n];e[r]=t[r]}}var xFe={};function oh(e,t){t=t||rw;var n=xFe[t];n||(n=xFe[t]=new LB(500));var r=n.get(e);return r==null&&(r=wm.measureText(e,t).width,n.put(e,r)),r}function wFe(e,t,n,r){var i=oh(e,t),o=rJ(t),a=sN(0,i,n),s=CR(0,o,r),l=new ui(a,s,i,o);return l}function _B(e,t,n,r){var i=((e||"")+"").split(`
`),o=i.length;if(o===1)return wFe(i[0],t,n,r);for(var a=new ui(0,0,0,0),s=0;s<i.length;s++){var l=wFe(i[s],t,n,r);s===0?a.copy(l):a.union(l)}return a}function sN(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function CR(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function rJ(e){return oh("国",e)}function Am(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function uU(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",d="top";if(r instanceof Array)l+=Am(r[0],n.width),c+=Am(r[1],n.height),u=null,d=null;else switch(r){case"left":l-=i,c+=s,u="right",d="middle";break;case"right":l+=i+a,c+=s,d="middle";break;case"top":l+=a/2,c-=i,u="center",d="bottom";break;case"bottom":l+=a/2,c+=o+i,u="center";break;case"inside":l+=a/2,c+=s,u="center",d="middle";break;case"insideLeft":l+=i,c+=s,d="middle";break;case"insideRight":l+=a-i,c+=s,u="right",d="middle";break;case"insideTop":l+=a/2,c+=i,u="center";break;case"insideBottom":l+=a/2,c+=o-i,u="center",d="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=a-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,u="right",d="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=d,e}var oae="__zr_normal__",aae=Lb.concat(["ignore"]),Drr=Wf(Lb,function(e,t){return e[t]=!0,e},{ignore:!1}),NE={},krr=new ui(0,0,0,0),iJ=(function(){function e(t){this.id=Ywe(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var c=!1;if(o.copyTransform(n),r.position!=null){var u=krr;r.layoutRect?u.copy(r.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(NE,r,u):uU(NE,r,u),o.x=NE.x,o.y=NE.y,a=NE.align,s=NE.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var p=void 0,h=void 0;d==="center"?(p=u.width*.5,h=u.height*.5):(p=Am(d[0],u.width),h=Am(d[1],u.height)),c=!0,o.originX=-o.x+p+(i?0:u.x),o.originY=-o.y+h+(i?0:u.y)}}r.rotation!=null&&(o.rotation=r.rotation);var g=r.offset;g&&(o.x+=g[0],o.y+=g[1],c||(o.originX=-g[0],o.originY=-g[1]));var m=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,M=void 0,C=void 0;m&&this.canBeInsideText()?(y=r.insideFill,M=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(M==null||M==="auto")&&(M=this.getInsideTextStroke(y),C=!0)):(y=r.outsideFill,M=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(M==null||M==="auto")&&(M=this.getOutsideStroke(y),C=!0)),y=y||"#000",(y!==v.fill||M!==v.stroke||C!==v.autoStroke||a!==v.align||s!==v.verticalAlign)&&(l=!0,v.fill=y,v.stroke=M,v.autoStroke=C,v.align=a,v.verticalAlign=s,n.setDefaultTextStyle(v)),n.__dirty|=Up,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?wme:xme},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&c1(n);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,gm(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},Nt(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(xr(t))for(var r=t,i=ji(r),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,t[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==oae)){var a=i.targetName,s=a?n[a]:n;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,aae)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var i=0;i<r.length;i++){var o=r[i];t[o]!=null&&!(o in n)&&(n[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(oae,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===oae,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(hi(s,t)>=0&&(n||s.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!o){KZ("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,p=this._textGuide;return d&&d.useState(t,n,r,u),p&&p.useState(t,n,r,u),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Up),c}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var c=t[l],u=void 0;this.stateProxy&&(u=this.stateProxy(c,t)),u||(u=this.states[c]),u&&i.push(u)}var d=i[a-1],p=!!(d&&d.hoverLayer||r);p&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&g&&g.duration>0,g);var m=this._textContent,v=this._textGuide;m&&m.useStates(t,n,p),v&&v.useStates(t,n,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Up)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=hi(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),o=hi(i,t),a=hi(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i<t.length;i++){var o=t[i];Nt(n,o),o.textConfig&&(r=r||{},Nt(r,o.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,i,o,a){var s=!(n&&i);n&&n.textConfig?(this.textConfig=Nt({},i?this.textConfig:r.textConfig),Nt(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},c=!1,u=0;u<aae.length;u++){var d=aae[u],p=o&&Drr[d];n&&n[d]!=null?p?(c=!0,l[d]=n[d]):this[d]=n[d]:s&&r[d]!=null&&(p?(c=!0,l[d]=r[d]):this[d]=r[d])}if(!o)for(var u=0;u<this.animators.length;u++){var h=this.animators[u],g=h.targetName;h.getLoop()||h.__changeFinalValue(g?(n||r)[g]:n||r)}c&&this._transitionState(t,l,a)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new Sy,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Nt(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Up;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var i=t?this[t]:this,o=new rSe(i,n,r);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,n){var r=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(n)}).done(function(){var o=i.animators,a=hi(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,o=[],a=0;a<i;a++){var s=r[a];!t||t===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,n,r){sae(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){sae(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,i){for(var o=sae(this,n,r,i),a=0;a<o.length;a++)o[a].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Up;function n(r,i,o,a){Object.defineProperty(t,r,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[o]=l[0],this[a]=l[1],this[i]=l,s(this,l)}});function s(l,c){Object.defineProperty(c,0,{get:function(){return l[o]},set:function(u){l[o]=u}}),Object.defineProperty(c,1,{get:function(){return l[a]},set:function(u){l[a]=u}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),e})();jl(iJ,Zf);jl(iJ,Sy);function sae(e,t,n,r,i){n=n||{};var o=[];Lgt(e,"",e,t,n,r,o,i);var a=o.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,a--,a<=0&&(s?l&&l():c&&c())},d=function(){a--,a<=0&&(s?l&&l():c&&c())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(g,m){n.during(m)});for(var p=0;p<o.length;p++){var h=o[p];u&&h.done(u),d&&h.aborted(d),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function lae(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Lrr(e){return Sd(e[0])}function _rr(e,t,n){if(Sd(t[n]))if(Sd(e[n])||(e[n]=[]),h1(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),lae(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(Lrr(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?lae(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else lae(o,i,a);o.length=i.length}else e[n]=t[n]}function Nrr(e,t){return e===t||Sd(e)&&Sd(t)&&Frr(e,t)}function Frr(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Lgt(e,t,n,r,i,o,a,s){for(var l=ji(r),c=i.duration,u=i.delay,d=i.additive,p=i.setToFinal,h=!xr(o),g=e.animators,m=[],v=0;v<l.length;v++){var y=l[v],M=r[y];if(M!=null&&n[y]!=null&&(h||o[y]))if(xr(M)&&!Sd(M)&&!PB(M)){if(t){s||(n[y]=M,e.updateDuringAnimation(t));continue}Lgt(e,y,n[y],M,i,o&&o[y],a,s)}else m.push(y);else s||(n[y]=M,e.updateDuringAnimation(t),m.push(y))}var C=m.length;if(!d&&C)for(var x=0;x<g.length;x++){var w=g[x];if(w.targetName===t){var S=w.stopTracks(m);if(S){var A=hi(g,w);g.splice(A,1)}}}if(i.force||(m=ko(m,function(I){return!Nrr(r[I],n[I])}),C=m.length),C>0||i.force&&!a.length){var z=void 0,O=void 0,T=void 0;if(s){O={},p&&(z={});for(var x=0;x<C;x++){var y=m[x];O[y]=n[y],p?z[y]=r[y]:n[y]=r[y]}}else if(p){T={};for(var x=0;x<C;x++){var y=m[x];T[y]=wF(n[y]),_rr(n,r,y)}}var w=new rSe(n,!1,!1,d?ko(g,function(P){return P.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),p&&z&&w.whenWithKeys(0,z,m),T&&w.whenWithKeys(0,T,m),w.whenWithKeys(c??500,s?O:r,m).delay(u||0),e.addAnimator(w,t),a.push(w)}}var Ir=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var i=this._children,o=i.indexOf(r);o>=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=hi(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,o=i[r];if(n&&n!==this&&n.parent!==this&&n!==o){i[r]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,o=hi(i,n);return o<0?this:(i.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i<n.length;i++){var o=n[i];r&&o.removeSelfFromZr(r),o.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];n.call(r,a,o)}return this},t.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=n.call(r,o);o.isGroup&&!a&&o.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new ui(0,0,0,0),i=n||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),u=l.getLocalTransform(o);u?(ui.applyTransform(r,c,u),a=a||r.clone(),a.union(r)):(a=a||c.clone(),a.union(c))}}return a||r},t})(iJ);Ir.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var k7={},fO={};function Wrr(e){delete fO[e]}function qrr(e){if(!e)return!1;if(typeof e=="string")return cq(e,1)<Cme;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=cq(t[i].color,1);return n/=r,n<Cme}return!1}var Brr=(function(){function e(t,n,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var o=new Znr,a=r.renderer||"canvas";k7[a]||(a=ji(k7)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new k7[a](n,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var c=!Ii.node&&!Ii.worker&&!l?new Irr(s.getViewportRoot(),s.root):null,u=r.useCoarsePointer,d=u==null||u==="auto"?Ii.touchEventsSupported:!!u,p=44,h;d&&(h=Xr(r.pointerSize,p)),this.handler=new fgt(o,s,c,s.root,h),this.animation=new Srr({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=qrr(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,r=qR();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=qR();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof Ir&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Wrr(this.id))},e})();function Sme(e,t){var n=new Brr(Ywe(),e,t);return fO[n.id]=n,n}function jrr(e){e.dispose()}function Hrr(){for(var e in fO)fO.hasOwnProperty(e)&&fO[e].dispose();fO={}}function Vrr(e){return fO[e]}function _gt(e,t){k7[e]=t}var Ame;function Ngt(e){if(typeof Ame=="function")return Ame(e)}function Fgt(e){Ame=e}var Grr="5.6.1";const $rr=Object.freeze(Object.defineProperty({__proto__:null,dispose:jrr,disposeAll:Hrr,getElementSSRData:Ngt,getInstance:Vrr,init:Sme,registerPainter:_gt,registerSSRDataGetter:Fgt,version:Grr},Symbol.toStringTag,{value:"Module"}));var SFe=1e-4,Wgt=20;function Urr(e){return e.replace(/^\s+|\s+$/g,"")}function Yo(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,c=s-a;if(l===0)return c===0?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*c+a}function vn(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Sn(e)?Urr(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function wl(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),Wgt),e=(+e).toFixed(t),n?e:+e}function Jp(e){return e.sort(function(t,n){return t-n}),e}function tm(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return qgt(e)}function qgt(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function iSe(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Xrr(e,t,n){if(!e[t])return 0;var r=Bgt(e,n);return r[t]||0}function Bgt(e,t){var n=Wf(e,function(h,g){return h+(isNaN(g)?0:g)},0);if(n===0)return[];for(var r=Math.pow(10,t),i=Vt(e,function(h){return(isNaN(h)?0:h)/n*r*100}),o=r*100,a=Vt(i,function(h){return Math.floor(h)}),s=Wf(a,function(h,g){return h+g},0),l=Vt(i,function(h,g){return h-a[g]});s<o;){for(var c=Number.NEGATIVE_INFINITY,u=null,d=0,p=l.length;d<p;++d)l[d]>c&&(c=l[d],u=d);++a[u],l[u]=0,++s}return Vt(a,function(h){return h/r})}function Yrr(e,t){var n=Math.max(tm(e),tm(t)),r=e+t;return n>Wgt?r:wl(r,n)}var Ome=9007199254740991;function oSe(e){var t=Math.PI*2;return(e%t+t)%t}function RP(e){return e>-SFe&&e<SFe}var Krr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function dh(e){if(e instanceof Date)return e;if(Sn(e)){var t=Krr.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function jgt(e){return Math.pow(10,oJ(e))}function oJ(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function aSe(e,t){var n=oJ(e),r=Math.pow(10,n),i=e/r,o;return t?i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10:i<1?o=1:i<2?o=2:i<3?o=3:i<5?o=5:o=10,e=o*r,n>=-20?+e.toFixed(n<0?-n:0):e}function L7(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function zme(e){e.sort(function(l,c){return s(l,c,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?e.splice(r,1):r++}return e;function s(l,c,u){return l.interval[u]<c.interval[u]||l.interval[u]===c.interval[u]&&(l.close[u]-c.close[u]===(u?-1:1)||!u&&s(l,c,1))}}function _b(e){var t=parseFloat(e);return t==e&&(t!==0||!Sn(e)||e.indexOf("x")<=0)?t:NaN}function sSe(e){return!isNaN(_b(e))}function Hgt(){return Math.round(Math.random()*9)}function Vgt(e,t){return t===0?e:Vgt(t,e%t)}function AFe(e,t){return e==null?t:t==null?e:e*t/Vgt(e,t)}function Ko(e){throw new Error(e)}function OFe(e,t,n){return(t-e)*n+e}var Ggt="series\0",$gt="\0_ec_\0";function Ta(e){return e instanceof Array?e:e==null?[]:[e]}function $z(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var zFe=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function KD(e){return xr(e)&&!Ht(e)&&!(e instanceof Date)?e.value:e}function Qrr(e){return xr(e)&&!(e instanceof Array)}function Ugt(e,t,n){var r=n==="normalMerge",i=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var a=Yn();ye(t,function(l,c){if(!xr(l)){t[c]=null;return}});var s=Zrr(e,a,n);return(r||i)&&Jrr(s,e,a,t),r&&eir(s,t),r||i?tir(s,t,i):o&&nir(s,t),rir(s),s}function Zrr(e,t,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<e.length;i++){var o=e[i];o&&o.id!=null&&t.set(o.id,i),r.push({existing:n==="replaceMerge"||dq(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Jrr(e,t,n,r){ye(r,function(i,o){if(!(!i||i.id==null)){var a=SF(i.id),s=n.get(a);if(s!=null){var l=e[s];S0(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}function eir(e,t){ye(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(o.id==null||n.id==null)&&!dq(n)&&!dq(o)&&Xgt("name",o,n)){e[i].newOption=n,t[r]=null;return}}})}function tir(e,t,n){ye(t,function(r){if(r){for(var i,o=0;(i=e[o])&&(i.newOption||dq(i.existing)||i.existing&&r.id!=null&&!Xgt("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function nir(e,t){ye(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function rir(e){var t=Yn();ye(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),ye(e,function(n){var r=n.newOption;S0(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),ye(e,function(n,r){var i=n.existing,o=n.newOption,a=n.keyInfo;if(xr(o)){if(a.name=o.name!=null?SF(o.name):i?i.name:Ggt+r,i)a.id=SF(i.id);else if(o.id!=null)a.id=SF(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,n)}})}function Xgt(e,t,n){var r=Zc(t[e],null),i=Zc(n[e],null);return r!=null&&i!=null&&r===i}function SF(e){return Zc(e,"")}function Zc(e,t){return e==null?t:Sn(e)?e:yo(e)||eU(e)?e+"":t}function lSe(e){var t=e.name;return!!(t&&t.indexOf(Ggt))}function dq(e){return e&&e.id!=null&&SF(e.id).indexOf($gt)===0}function iir(e){return $gt+e}function oir(e,t,n){ye(e,function(r){var i=r.newOption;xr(i)&&(r.keyInfo.mainType=t,r.keyInfo.subType=air(t,i,r.existing,n))})}function air(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function sir(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(a,s,l){for(var c=0,u=a.length;c<u;c++){var d=Zc(a[c].seriesId,null);if(d==null)return;for(var p=Ta(a[c].dataIndex),h=l&&l[d],g=0,m=p.length;g<m;g++){var v=p[g];h&&h[v]?h[v]=null:(s[d]||(s[d]={}))[v]=1}}}function o(a,s){var l=[];for(var c in a)if(a.hasOwnProperty(c)&&a[c]!=null)if(s)l.push(+c);else{var u=o(a[c],!0);u.length&&l.push({seriesId:c,dataIndex:u})}return l}}function Uz(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Ht(t.dataIndex)?Vt(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Ht(t.name)?Vt(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function mo(){var e="__ec_inner_"+lir++;return function(t){return t[e]||(t[e]={})}}var lir=Hgt();function AF(e,t,n){var r=cSe(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(c,u){var d=NB(e,u,c,{useDefault:l===u,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[u+"Models"]=d.models,s[u+"Model"]=d.models[0]}),s}function cSe(e,t){var n;if(Sn(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Yn(),o={},a=!1;return ye(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],u=c[1],d=(c[2]||"").toLowerCase();if(!(!u||!d||t&&t.includeMainTypes&&hi(t.includeMainTypes,u)<0)){a=a||!!u;var p=i.get(u)||i.set(u,{});p[d]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var wc={useDefault:!0,enableAll:!1,enableNone:!1},cir={useDefault:!1,enableAll:!0,enableNone:!0};function NB(e,t,n,r){r=r||wc;var i=n.index,o=n.id,a=n.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(S0(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(S0(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function Ygt(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function uir(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function dir(e){return e==="auto"?Ii.domSupported?"html":"richText":e||"html"}function Tme(e,t){var n=Yn(),r=[];return ye(e,function(i){var o=t(i);(n.get(o)||(r.push(o),n.set(o,[]))).push(i)}),{keys:r,buckets:n}}function Kgt(e,t,n,r,i){var o=t==null||t==="auto";if(r==null)return r;if(yo(r)){var a=OFe(n||0,r,i);return wl(a,o?Math.max(tm(n||0),tm(r)):t)}else{if(Sn(r))return i<1?n:r;for(var s=[],l=n,c=r,u=Math.max(l?l.length:0,c.length),d=0;d<u;++d){var p=e.getDimensionInfo(d);if(p&&p.type==="ordinal")s[d]=(i<1&&l?l:c)[d];else{var h=l&&l[d]?l[d]:0,g=c[d],a=OFe(h,g,i);s[d]=wl(a,o?Math.max(tm(h),tm(g)):t)}}return s}}var pir=".",tA="___EC__COMPONENT__CONTAINER___",Qgt="___EC__EXTENDED_CLASS___";function eb(e){var t={main:"",sub:""};if(e){var n=e.split(pir);t.main=n[0]||"",t.sub=n[1]||""}return t}function hir(e){S0(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function fir(e){return!!(e&&e[Qgt])}function uSe(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return gir(r)?i=(function(o){gt(a,o);function a(){return o.apply(this,arguments)||this}return a})(r):(i=function(){(n.$constructor||r).apply(this,arguments)},Kwe(i,this)),Nt(i.prototype,n),i[Qgt]=!0,i.extend=this.extend,i.superCall=bir,i.superApply=yir,i.superClass=r,i}}function gir(e){return fr(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Zgt(e,t){e.extend=t.extend}var mir=Math.round(Math.random()*10);function vir(e){var t=["__\0is_clz",mir++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function bir(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function yir(e,t,n){return this.superClass.prototype[t].apply(e,n)}function aJ(e){var t={};e.registerClass=function(r){var i=r.type||r.prototype.type;if(i){hir(i),r.prototype.type=i;var o=eb(i);if(!o.sub)t[o.main]=r;else if(o.sub!==tA){var a=n(o);a[o.sub]=r}}return r},e.getClass=function(r,i,o){var a=t[r];if(a&&a[tA]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return a},e.getClassesByMainType=function(r){var i=eb(r),o=[],a=t[i.main];return a&&a[tA]?ye(a,function(s,l){l!==tA&&o.push(s)}):o.push(a),o},e.hasClass=function(r){var i=eb(r);return!!t[i.main]},e.getAllClassMainTypes=function(){var r=[];return ye(t,function(i,o){r.push(o)}),r},e.hasSubTypes=function(r){var i=eb(r),o=t[i.main];return o&&o[tA]};function n(r){var i=t[r.main];return(!i||!i[tA])&&(i=t[r.main]={},i[tA]=!0),i}}function Xz(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,i,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&hi(i,l)>=0||o&&hi(o,l)<0)){var c=r.getShallow(l,t);c!=null&&(a[e[s][0]]=c)}}return a}}var Mir=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Cir=Xz(Mir),xir=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Cir(this,t,n)},e})(),Eme=new LB(50);function wir(e){if(typeof e=="string"){var t=Eme.get(e);return t&&t.image}else return e}function dSe(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=Eme.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!sJ(t)&&o.pending.push(a)):(t=wm.loadImage(e,TFe,TFe),t.__zrImageSrc=e,Eme.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function TFe(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function sJ(e){return e&&e.width&&e.height}var cae=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Sir(e,t,n,r,i){var o={};return Jgt(o,e,t,n,r,i),o.text}function Jgt(e,t,n,r,i,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(`
`);o=emt(n,r,i,o);for(var s=!1,l={},c=0,u=a.length;c<u;c++)tmt(l,a[c],o),a[c]=l.textLine,s=s||l.isTruncated;e.text=a.join(`
`),e.isTruncated=s}function emt(e,t,n,r){r=r||{};var i=Nt({},r);i.font=t,n=Xr(n,"..."),i.maxIterations=Xr(r.maxIterations,2);var o=i.minChar=Xr(r.minChar,0);i.cnCharWidth=oh("国",t);var a=i.ascCharWidth=oh("a",t);i.placeholder=Xr(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var c=oh(n,t);return c>s&&(n="",c=0),s=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function tmt(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var a=oh(t,i);if(a<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?Air(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=oh(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Air(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function Oir(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,i=t.font,o=n==="truncate",a=rJ(i),s=Xr(t.lineHeight,a),l=!!t.backgroundColor,c=t.lineOverflow==="truncate",u=!1,d=t.width,p;d!=null&&(n==="break"||n==="breakAll")?p=e?nmt(e,t.font,d,n==="breakAll",0).lines:[]:p=e?e.split(`
`):[];var h=p.length*s,g=Xr(t.height,h);if(h>g&&c){var m=Math.floor(g/s);u=u||p.length>m,p=p.slice(0,m)}if(e&&o&&d!=null)for(var v=emt(d,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},M=0;M<p.length;M++)tmt(y,p[M],v),p[M]=y.textLine,u=u||y.isTruncated;for(var C=g,x=0,M=0;M<p.length;M++)x=Math.max(oh(p[M],i),x);d==null&&(d=x);var w=x;return r&&(C+=r[0]+r[2],w+=r[1]+r[3],d+=r[1]+r[3]),l&&(w=d),{lines:p,height:g,outerWidth:w,outerHeight:C,lineHeight:s,calculatedLineHeight:a,contentWidth:x,contentHeight:h,width:d,isTruncated:u}}var zir=(function(){function e(){}return e})(),EFe=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),Tir=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function Eir(e,t){var n=new Tir;if(e!=null&&(e+=""),!e)return n;for(var r=t.width,i=t.height,o=t.overflow,a=(o==="break"||o==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:o==="breakAll"}:null,s=cae.lastIndex=0,l;(l=cae.exec(e))!=null;){var c=l.index;c>s&&uae(n,e.substring(s,c),t,a),uae(n,l[2],t,a,l[1]),s=cae.lastIndex}s<e.length&&uae(n,e.substring(s,e.length),t,a);var u=[],d=0,p=0,h=t.padding,g=o==="truncate",m=t.lineOverflow==="truncate",v={};function y(q,$,U){q.width=$,q.lineHeight=U,d+=U,p=Math.max(p,$)}e:for(var M=0;M<n.lines.length;M++){for(var C=n.lines[M],x=0,w=0,S=0;S<C.tokens.length;S++){var A=C.tokens[S],z=A.styleName&&t.rich[A.styleName]||{},O=A.textPadding=z.padding,T=O?O[1]+O[3]:0,I=A.font=z.font||t.font;A.contentHeight=rJ(I);var P=Xr(z.height,A.contentHeight);if(A.innerHeight=P,O&&(P+=O[0]+O[2]),A.height=P,A.lineHeight=hm(z.lineHeight,t.lineHeight,P),A.align=z&&z.align||t.align,A.verticalAlign=z&&z.verticalAlign||"middle",m&&i!=null&&d+A.lineHeight>i){var N=n.lines.length;S>0?(C.tokens=C.tokens.slice(0,S),y(C,w,x),n.lines=n.lines.slice(0,M+1)):n.lines=n.lines.slice(0,M),n.isTruncated=n.isTruncated||n.lines.length<N;break e}var F=z.width,L=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")A.percentWidth=F,u.push(A),A.contentWidth=oh(A.text,I);else{if(L){var W=z.backgroundColor,H=W&&W.image;H&&(H=wir(H),sJ(H)&&(A.width=Math.max(A.width,H.width*P/H.height)))}var j=g&&r!=null?r-w:null;j!=null&&j<A.width?!L||j<T?(A.text="",A.width=A.contentWidth=0):(Jgt(v,A.text,j-T,I,t.ellipsis,{minChar:t.truncateMinChar}),A.text=v.text,n.isTruncated=n.isTruncated||v.isTruncated,A.width=A.contentWidth=oh(A.text,I)):A.contentWidth=oh(A.text,I)}A.width+=T,w+=A.width,z&&(x=Math.max(x,A.lineHeight))}y(C,w,x)}n.outerWidth=n.width=Xr(r,p),n.outerHeight=n.height=Xr(i,d),n.contentHeight=d,n.contentWidth=p,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var M=0;M<u.length;M++){var A=u[M],G=A.percentWidth;A.width=parseInt(G,10)/100*n.width}return n}function uae(e,t,n,r,i){var o=t==="",a=i&&n.rich[i]||{},s=e.lines,l=a.font||n.font,c=!1,u,d;if(r){var p=a.padding,h=p?p[1]+p[3]:0;if(a.width!=null&&a.width!=="auto"){var g=Am(a.width,r.width)+h;s.length>0&&g+r.accumWidth>r.width&&(u=t.split(`
`),c=!0),r.accumWidth=g}else{var m=nmt(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+h,d=m.linesWidths,u=m.lines}}else u=t.split(`
`);for(var v=0;v<u.length;v++){var y=u[v],M=new zir;if(M.styleName=i,M.text=y,M.isLineHolder=!y&&!o,typeof a.width=="number"?M.width=a.width:M.width=d?d[v]:oh(y,l),!v&&!c){var C=(s[s.length-1]||(s[0]=new EFe)).tokens,x=C.length;x===1&&C[0].isLineHolder?C[0]=M:(y||!x||o)&&C.push(M)}else s.push(new EFe([M]))}}function Rir(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Iir=Wf(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Pir(e){return Rir(e)?!!Iir[e]:!0}function nmt(e,t,n,r,i){for(var o=[],a=[],s="",l="",c=0,u=0,d=0;d<e.length;d++){var p=e.charAt(d);if(p===`
`){l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0;continue}var h=oh(p,t),g=r?!1:!Pir(p);if(o.length?u+h>n:i+u+h>n){u?(s||l)&&(g?(s||(s=l,l="",c=0,u=c),o.push(s),a.push(u-c),l+=p,c+=h,s="",u=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=p,u=h)):g?(o.push(l),a.push(c),l=p,c=h):(o.push(p),a.push(h));continue}u+=h,g?(l+=p,c+=h):(l&&(s+=l,l="",c=0),s+=p)}return!o.length&&!s&&(s=e,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),o.length===1&&(u+=i),{accumWidth:u,lines:o,linesWidths:a}}var Rme="__zr_style_"+Math.round(Math.random()*10),JO={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},lJ={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};JO[Rme]=!0;var RFe=["z","z2","invisible"],Dir=["invisible"],qf=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=ji(n),i=0;i<r.length;i++){var o=r[i];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&kir(this,n,r)||a&&!a[0]&&!a[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new ui(0,0,0,0)),r?ui.applyTransform(n,i,r):n.copy(i),(a||s||l)&&(n.width+=a*2+Math.abs(s),n.height+=a*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-a),n.y=Math.min(n.y,n.y+l-a));var c=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-c),n.y=Math.floor(n.y-c),n.width=Math.ceil(n.width+1+c*2),n.height=Math.ceil(n.height+1+c*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new ui(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Nt(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=oN,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&oN)},t.prototype.styleUpdated=function(){this.__dirty&=~oN},t.prototype.createStyle=function(n){return DB(JO,n)},t.prototype.useStyle=function(n){n[Rme]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[Rme]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,RFe)},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),c;if(r&&r.style?a?o?c=r.style:(c=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(c,r.style)):l&&(c=i.style),c)if(a){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var d=ji(u),p=0;p<d.length;p++){var h=d[p];h in c&&(c[h]=c[h],this.style[h]=u[h])}for(var g=ji(c),p=0;p<g.length;p++){var h=g[p];this.style[h]=this.style[h]}this._transitionState(n,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?Dir:RFe,p=0;p<m.length;p++){var h=m[p];r&&r[h]!=null?this[h]=r[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(r.style=i),r},t.prototype._mergeStyle=function(n,r){return Nt(n,r),n},t.prototype.getAnimationStyleProps=function(){return lJ},t.initDefaultProps=(function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=Up|oN})(),t})(iJ),dae=new ui(0,0,0,0),pae=new ui(0,0,0,0);function kir(e,t,n){return dae.copy(e.getBoundingRect()),e.transform&&dae.applyTransform(e.transform),pae.width=t,pae.height=n,!dae.intersect(pae)}var Q1=Math.min,Z1=Math.max,hae=Math.sin,fae=Math.cos,nA=Math.PI*2,eV=Lw(),tV=Lw(),nV=Lw();function cJ(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],i=Q1(i,r[0]),o=Z1(o,r[0]),a=Q1(a,r[1]),s=Z1(s,r[1]);t[0]=i,t[1]=a,n[0]=o,n[1]=s}}function IFe(e,t,n,r,i,o){i[0]=Q1(e,n),i[1]=Q1(t,r),o[0]=Z1(e,n),o[1]=Z1(t,r)}var PFe=[],DFe=[];function Lir(e,t,n,r,i,o,a,s,l,c){var u=ygt,d=yu,p=u(e,n,i,a,PFe);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var h=0;h<p;h++){var g=d(e,n,i,a,PFe[h]);l[0]=Q1(g,l[0]),c[0]=Z1(g,c[0])}p=u(t,r,o,s,DFe);for(var h=0;h<p;h++){var m=d(t,r,o,s,DFe[h]);l[1]=Q1(m,l[1]),c[1]=Z1(m,c[1])}l[0]=Q1(e,l[0]),c[0]=Z1(e,c[0]),l[0]=Q1(a,l[0]),c[0]=Z1(a,c[0]),l[1]=Q1(t,l[1]),c[1]=Z1(t,c[1]),l[1]=Q1(s,l[1]),c[1]=Z1(s,c[1])}function _ir(e,t,n,r,i,o,a,s){var l=Cgt,c=Vu,u=Z1(Q1(l(e,n,i),1),0),d=Z1(Q1(l(t,r,o),1),0),p=c(e,n,i,u),h=c(t,r,o,d);a[0]=Q1(e,i,p),a[1]=Q1(t,o,h),s[0]=Z1(e,i,p),s[1]=Z1(t,o,h)}function Nir(e,t,n,r,i,o,a,s,l){var c=xy,u=wy,d=Math.abs(i-o);if(d%nA<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(eV[0]=fae(i)*n+e,eV[1]=hae(i)*r+t,tV[0]=fae(o)*n+e,tV[1]=hae(o)*r+t,c(s,eV,tV),u(l,eV,tV),i=i%nA,i<0&&(i=i+nA),o=o%nA,o<0&&(o=o+nA),i>o&&!a?o+=nA:i<o&&a&&(i+=nA),a){var p=o;o=i,i=p}for(var h=0;h<o;h+=Math.PI/2)h>i&&(nV[0]=fae(h)*n+e,nV[1]=hae(h)*r+t,c(s,nV,s),u(l,nV,l))}var Xa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},rA=[],iA=[],gv=[],sC=[],mv=[],vv=[],gae=Math.min,mae=Math.max,oA=Math.cos,aA=Math.sin,V2=Math.abs,Ime=Math.PI,OC=Ime*2,vae=typeof Float32Array<"u",c_=[];function bae(e){var t=Math.round(e/Ime*1e8)/1e8;return t%2*Ime}function pSe(e,t){var n=bae(e[0]);n<0&&(n+=OC);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=OC?i=n+OC:t&&n-i>=OC?i=n-OC:!t&&n>i?i=n+(OC-bae(n-i)):t&&n<i&&(i=n-(OC-bae(i-n))),e[0]=n,e[1]=i}var Nb=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,r){r=r||0,r>0&&(this._ux=V2(r/cU/t)||0,this._uy=V2(r/cU/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(Xa.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=V2(t-this._xi),i=V2(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(Xa.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){return this._drawPendingPt(),this.addData(Xa.C,t,n,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData(Xa.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,o,a){this._drawPendingPt(),c_[0]=i,c_[1]=o,pSe(c_,a),i=c_[0],o=c_[1];var s=o-i;return this.addData(Xa.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=oA(o)*r+t,this._yi=aA(o)*r+n,this},e.prototype.arcTo=function(t,n,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,o),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData(Xa.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Xa.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&vae&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=t[r];this._len=n},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var n=t.length,r=0,i=this._len,o=0;o<n;o++)r+=t[o].len();vae&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var o=0;o<n;o++)for(var a=t[o].data,s=0;s<a.length;s++)this.data[i++]=a[s];this._len=i},e.prototype.addData=function(t,n,r,i,o,a,s,l,c){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var d=0;d<arguments.length;d++)u[this._len++]=arguments[d]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,vae&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){gv[0]=gv[1]=mv[0]=mv[1]=Number.MAX_VALUE,sC[0]=sC[1]=vv[0]=vv[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(n=t[a],r=t[a+1],i=n,o=r),s){case Xa.M:n=i=t[a++],r=o=t[a++],mv[0]=i,mv[1]=o,vv[0]=i,vv[1]=o;break;case Xa.L:IFe(n,r,t[a],t[a+1],mv,vv),n=t[a++],r=t[a++];break;case Xa.C:Lir(n,r,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],mv,vv),n=t[a++],r=t[a++];break;case Xa.Q:_ir(n,r,t[a++],t[a++],t[a],t[a+1],mv,vv),n=t[a++],r=t[a++];break;case Xa.A:var c=t[a++],u=t[a++],d=t[a++],p=t[a++],h=t[a++],g=t[a++]+h;a+=1;var m=!t[a++];l&&(i=oA(h)*d+c,o=aA(h)*p+u),Nir(c,u,d,p,h,g,m,mv,vv),n=oA(g)*d+c,r=aA(g)*p+u;break;case Xa.R:i=n=t[a++],o=r=t[a++];var v=t[a++],y=t[a++];IFe(i,o,i+v,o+y,mv,vv);break;case Xa.Z:n=i,r=o;break}xy(gv,gv,mv),wy(sC,sC,vv)}return a===0&&(gv[0]=gv[1]=sC[0]=sC[1]=0),new ui(gv[0],gv[1],sC[0]-gv[0],sC[1]-gv[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,u=0,d=0,p=0;p<n;){var h=t[p++],g=p===1;g&&(o=t[p],a=t[p+1],s=o,l=a);var m=-1;switch(h){case Xa.M:o=s=t[p++],a=l=t[p++];break;case Xa.L:{var v=t[p++],y=t[p++],M=v-o,C=y-a;(V2(M)>r||V2(C)>i||p===n-1)&&(m=Math.sqrt(M*M+C*C),o=v,a=y);break}case Xa.C:{var x=t[p++],w=t[p++],v=t[p++],y=t[p++],S=t[p++],A=t[p++];m=Jnr(o,a,x,w,v,y,S,A,10),o=S,a=A;break}case Xa.Q:{var x=t[p++],w=t[p++],v=t[p++],y=t[p++];m=trr(o,a,x,w,v,y,10),o=v,a=y;break}case Xa.A:var z=t[p++],O=t[p++],T=t[p++],I=t[p++],P=t[p++],N=t[p++],F=N+P;p+=1,g&&(s=oA(P)*T+z,l=aA(P)*I+O),m=mae(T,I)*gae(OC,Math.abs(N)),o=oA(F)*T+z,a=aA(F)*I+O;break;case Xa.R:{s=o=t[p++],l=a=t[p++];var L=t[p++],W=t[p++];m=L*2+W*2;break}case Xa.Z:{var M=s-o,C=l-a;m=Math.sqrt(M*M+C*C),o=s,a=l;break}}m>=0&&(c[d++]=m,u+=m)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,c,u,d,p,h=n<1,g,m,v=0,y=0,M,C=0,x,w;if(!(h&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,m=this._pathLen,M=n*m,!M)))e:for(var S=0;S<a;){var A=r[S++],z=S===1;switch(z&&(c=r[S],u=r[S+1],s=c,l=u),A!==Xa.L&&C>0&&(t.lineTo(x,w),C=0),A){case Xa.M:s=c=r[S++],l=u=r[S++],t.moveTo(c,u);break;case Xa.L:{d=r[S++],p=r[S++];var O=V2(d-c),T=V2(p-u);if(O>i||T>o){if(h){var I=g[y++];if(v+I>M){var P=(M-v)/I;t.lineTo(c*(1-P)+d*P,u*(1-P)+p*P);break e}v+=I}t.lineTo(d,p),c=d,u=p,C=0}else{var N=O*O+T*T;N>C&&(x=d,w=p,C=N)}break}case Xa.C:{var F=r[S++],L=r[S++],W=r[S++],H=r[S++],j=r[S++],G=r[S++];if(h){var I=g[y++];if(v+I>M){var P=(M-v)/I;iw(c,F,W,j,P,rA),iw(u,L,H,G,P,iA),t.bezierCurveTo(rA[1],iA[1],rA[2],iA[2],rA[3],iA[3]);break e}v+=I}t.bezierCurveTo(F,L,W,H,j,G),c=j,u=G;break}case Xa.Q:{var F=r[S++],L=r[S++],W=r[S++],H=r[S++];if(h){var I=g[y++];if(v+I>M){var P=(M-v)/I;aq(c,F,W,P,rA),aq(u,L,H,P,iA),t.quadraticCurveTo(rA[1],iA[1],rA[2],iA[2]);break e}v+=I}t.quadraticCurveTo(F,L,W,H),c=W,u=H;break}case Xa.A:var q=r[S++],$=r[S++],U=r[S++],X=r[S++],Q=r[S++],re=r[S++],ee=r[S++],se=!r[S++],pe=U>X?U:X,te=V2(U-X)>.001,ce=Q+re,oe=!1;if(h){var I=g[y++];v+I>M&&(ce=Q+re*(M-v)/I,oe=!0),v+=I}if(te&&t.ellipse?t.ellipse(q,$,U,X,ee,Q,ce,se):t.arc(q,$,pe,Q,ce,se),oe)break e;z&&(s=oA(Q)*U+q,l=aA(Q)*X+$),c=oA(ce)*U+q,u=aA(ce)*X+$;break;case Xa.R:s=c=r[S],l=u=r[S+1],d=r[S++],p=r[S++];var ae=r[S++],ne=r[S++];if(h){var I=g[y++];if(v+I>M){var le=M-v;t.moveTo(d,p),t.lineTo(d+gae(le,ae),p),le-=ae,le>0&&t.lineTo(d+ae,p+gae(le,ne)),le-=ne,le>0&&t.lineTo(d+mae(ae-le,0),p+ne),le-=ae,le>0&&t.lineTo(d,p+mae(ne-le,0));break e}v+=I}t.rect(d,p,ae,ne);break;case Xa.Z:if(h){var I=g[y++];if(v+I>M){var P=(M-v)/I;t.lineTo(c*(1-P)+s*P,u*(1-P)+l*P);break e}v+=I}t.closePath(),c=s,u=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Xa,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function NC(e,t,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,c=e;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e!==n)l=(t-r)/(e-n),c=(e*r-n*t)/(e-n);else return Math.abs(o-e)<=s/2;var u=l*o-a+c,d=u*u/(l*l+1);return d<=s/2*s/2}function Fir(e,t,n,r,i,o,a,s,l,c,u){if(l===0)return!1;var d=l;if(u>t+d&&u>r+d&&u>o+d&&u>s+d||u<t-d&&u<r-d&&u<o-d&&u<s-d||c>e+d&&c>n+d&&c>i+d&&c>a+d||c<e-d&&c<n-d&&c<i-d&&c<a-d)return!1;var p=Mgt(e,t,n,r,i,o,a,s,c,u,null);return p<=d/2}function rmt(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var c=a;if(l>t+c&&l>r+c&&l>o+c||l<t-c&&l<r-c&&l<o-c||s>e+c&&s>n+c&&s>i+c||s<e-c&&s<n-c&&s<i-c)return!1;var u=xgt(e,t,n,r,i,o,s,l,null);return u<=c/2}var kFe=Math.PI*2;function eh(e){return e%=kFe,e<0&&(e+=kFe),e}var u_=Math.PI*2;function Wir(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var c=a;s-=e,l-=t;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(r-i)%u_<1e-4)return!0;if(o){var d=r;r=eh(i),i=eh(d)}else r=eh(r),i=eh(i);r>i&&(i+=u_);var p=Math.atan2(l,s);return p<0&&(p+=u_),p>=r&&p<=i||p+u_>=r&&p+u_<=i}function iy(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r||r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;(a===1||a===0)&&(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var lC=Nb.CMD,sA=Math.PI*2,qir=1e-4;function Bir(e,t){return Math.abs(e-t)<qir}var Y0=[-1,-1,-1],Zh=[-1,-1];function jir(){var e=Zh[0];Zh[0]=Zh[1],Zh[1]=e}function Hir(e,t,n,r,i,o,a,s,l,c){if(c>t&&c>r&&c>o&&c>s||c<t&&c<r&&c<o&&c<s)return 0;var u=oU(t,r,o,s,c,Y0);if(u===0)return 0;for(var d=0,p=-1,h=void 0,g=void 0,m=0;m<u;m++){var v=Y0[m],y=v===0||v===1?.5:1,M=yu(e,n,i,a,v);M<l||(p<0&&(p=ygt(t,r,o,s,Zh),Zh[1]<Zh[0]&&p>1&&jir(),h=yu(t,r,o,s,Zh[0]),p>1&&(g=yu(t,r,o,s,Zh[1]))),p===2?v<Zh[0]?d+=h<t?y:-y:v<Zh[1]?d+=g<h?y:-y:d+=s<g?y:-y:v<Zh[0]?d+=h<t?y:-y:d+=s<h?y:-y)}return d}function Vir(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=err(t,r,o,s,Y0);if(l===0)return 0;var c=Cgt(t,r,o);if(c>=0&&c<=1){for(var u=0,d=Vu(t,r,o,c),p=0;p<l;p++){var h=Y0[p]===0||Y0[p]===1?.5:1,g=Vu(e,n,i,Y0[p]);g<a||(Y0[p]<c?u+=d<t?h:-h:u+=o<d?h:-h)}return u}else{var h=Y0[0]===0||Y0[0]===1?.5:1,g=Vu(e,n,i,Y0[0]);return g<a?0:o<t?h:-h}}function Gir(e,t,n,r,i,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Y0[0]=-l,Y0[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=sA-1e-4){r=0,i=sA;var u=o?1:-1;return a>=Y0[0]+e&&a<=Y0[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=sA,i+=sA);for(var p=0,h=0;h<2;h++){var g=Y0[h];if(g+e>a){var m=Math.atan2(s,g),u=o?1:-1;m<0&&(m=sA+m),(m>=r&&m<=i||m+sA>=r&&m+sA<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(u=-u),p+=u)}}return p}function imt(e,t,n,r,i){for(var o=e.data,a=e.len(),s=0,l=0,c=0,u=0,d=0,p,h,g=0;g<a;){var m=o[g++],v=g===1;switch(m===lC.M&&g>1&&(n||(s+=iy(l,c,u,d,r,i))),v&&(l=o[g],c=o[g+1],u=l,d=c),m){case lC.M:u=o[g++],d=o[g++],l=u,c=d;break;case lC.L:if(n){if(NC(l,c,o[g],o[g+1],t,r,i))return!0}else s+=iy(l,c,o[g],o[g+1],r,i)||0;l=o[g++],c=o[g++];break;case lC.C:if(n){if(Fir(l,c,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=Hir(l,c,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],c=o[g++];break;case lC.Q:if(n){if(rmt(l,c,o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=Vir(l,c,o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],c=o[g++];break;case lC.A:var y=o[g++],M=o[g++],C=o[g++],x=o[g++],w=o[g++],S=o[g++];g+=1;var A=!!(1-o[g++]);p=Math.cos(w)*C+y,h=Math.sin(w)*x+M,v?(u=p,d=h):s+=iy(l,c,p,h,r,i);var z=(r-y)*x/C+y;if(n){if(Wir(y,M,x,w,w+S,A,t,z,i))return!0}else s+=Gir(y,M,x,w,w+S,A,z,i);l=Math.cos(w+S)*C+y,c=Math.sin(w+S)*x+M;break;case lC.R:u=l=o[g++],d=c=o[g++];var O=o[g++],T=o[g++];if(p=u+O,h=d+T,n){if(NC(u,d,p,d,t,r,i)||NC(p,d,p,h,t,r,i)||NC(p,h,u,h,t,r,i)||NC(u,h,u,d,t,r,i))return!0}else s+=iy(p,d,p,h,r,i),s+=iy(u,h,u,d,r,i);break;case lC.Z:if(n){if(NC(l,c,u,d,t,r,i))return!0}else s+=iy(l,c,u,d,r,i);l=u,c=d;break}}return!n&&!Bir(c,d)&&(s+=iy(l,c,u,d,r,i)||0),s!==0}function $ir(e,t,n){return imt(e,0,!1,t,n)}function Uir(e,t,n,r){return imt(e,t,!0,n,r)}var dU=br({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},JO),Xir={style:br({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},lJ.style)},yae=Lb.concat(["invisible","culling","z","z2","zlevel","parent"]),Di=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<yae.length;++s)i[yae[s]]=this[yae[s]];i.__dirty|=Up}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=ji(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<r.length;o++){var a=r[o],s=n[a];a==="style"?this.style?Nt(this.style,s):this.useStyle(s):a==="shape"?Nt(this.shape,s):e.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(Sn(n)){var r=cq(n,0);return r>.5?xme:r>.2?Prr:wme}else if(n)return wme}return xme},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Sn(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=cq(n,0)<Cme;if(o===a)return r}},t.prototype.buildPath=function(n,r,i){},t.prototype.pathUpdated=function(){this.__dirty&=~MR},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new Nb(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&MR)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;c=Math.max(c,u??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),a=this.style;if(n=i[0],r=i[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,c=a.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Uir(s,l/c,n,r)))return!0}if(this.hasFill())return $ir(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=MR,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:Nt(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&MR)},t.prototype.createStyle=function(n){return DB(dU,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Nt({},this.shape))},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),c;if(r&&r.shape?a?o?c=r.shape:(c=Nt({},i.shape),Nt(c,r.shape)):(c=Nt({},o?this.shape:i.shape),Nt(c,r.shape)):l&&(c=i.shape),c)if(a){this.shape=Nt({},this.shape);for(var u={},d=ji(c),p=0;p<d.length;p++){var h=d[p];typeof c[h]=="object"?this.shape[h]=c[h]:u[h]=c[h]}this._transitionState(n,{shape:u},s)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(r.shape=i),r},t.prototype.getAnimationStyleProps=function(){return Xir},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=(function(o){gt(a,o);function a(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return Or(n.style)},a.prototype.getDefaultShape=function(){return Or(n.shape)},a})(t);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},t.initDefaultProps=(function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=Up|oN|MR})(),t})(qf),Yir=br({strokeFirst:!0,font:rw,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},dU),IP=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return DB(Yir,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=_B(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},t.initDefaultProps=(function(){var n=t.prototype;n.dirtyRectTolerance=10})(),t})(qf);IP.prototype.type="tspan";var Kir=br({x:0,y:0},JO),Qir={style:br({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},lJ.style)};function Zir(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Du=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return DB(Kir,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=Zir(r.image)?r.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=r[a];return s==null?o[n]:o[n]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Qir},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new ui(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(qf);Du.prototype.type="image";function Jir(e,t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.r,s,l,c,u;i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=c=u=a:a instanceof Array?a.length===1?s=l=c=u=a[0]:a.length===2?(s=c=a[0],l=u=a[1]):a.length===3?(s=a[0],l=u=a[1],c=a[2]):(s=a[0],l=a[1],c=a[2],u=a[3]):s=l=c=u=0;var d;s+l>i&&(d=s+l,s*=i/d,l*=i/d),c+u>i&&(d=c+u,c*=i/d,u*=i/d),l+c>o&&(d=l+c,l*=o/d,c*=o/d),s+u>o&&(d=s+u,s*=o/d,u*=o/d),e.moveTo(n+s,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+o-c),c!==0&&e.arc(n+i-c,r+o-c,c,0,Math.PI/2),e.lineTo(n+u,r+o),u!==0&&e.arc(n+u,r+o-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var BR=Math.round;function omt(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s&&(BR(r*2)===BR(i*2)&&(e.x1=e.x2=gO(r,s,!0)),BR(o*2)===BR(a*2)&&(e.y1=e.y2=gO(o,s,!0))),e}}function amt(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s&&(e.x=gO(r,s,!0),e.y=gO(i,s,!0),e.width=Math.max(gO(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(gO(i+a,s,!1)-e.y,a===0?0:1)),e}}function gO(e,t,n){if(!t)return e;var r=BR(e*2);return(r+BR(t))%2===0?r/2:(r+(n?1:-1))/2}var eor=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),tor={},ao=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new eor},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=amt(tor,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?Jir(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Di);ao.prototype.type="rect";var LFe={fill:"#000"},_Fe=2,nor={style:br({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},lJ.style)},oo=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=LFe,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,oor(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new ui(0,0,0,0),r=this._children,i=[],o=null,a=0;a<r.length;a++){var s=r[a],l=s.getBoundingRect(),c=s.getLocalTransform(i);c?(n.copy(l),n.applyTransform(c),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||LFe},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,o=n.rich||i&&{};return Nt(n,r),i&&o?(this._mergeRich(o,i),n.rich=o):o&&(n.rich=o),n},t.prototype._mergeRich=function(n,r){for(var i=ji(r),o=0;o<i.length;o++){var a=i[o];n[a]=n[a]||{},Nt(n[a],r[a])}},t.prototype.getAnimationStyleProps=function(){return nor},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||rw,i=n.padding,o=HFe(n),a=Oir(o,n),s=Mae(n),l=!!n.backgroundColor,c=a.outerHeight,u=a.outerWidth,d=a.contentWidth,p=a.lines,h=a.lineHeight,g=this._defaultStyle;this.isTruncated=!!a.isTruncated;var m=n.x||0,v=n.y||0,y=n.align||g.align||"left",M=n.verticalAlign||g.verticalAlign||"top",C=m,x=CR(v,a.contentHeight,M);if(s||i){var w=sN(m,u,y),S=CR(v,c,M);s&&this._renderBackground(n,n,w,S,u,c)}x+=h/2,i&&(C=jFe(m,y,i),M==="top"?x+=i[0]:M==="bottom"&&(x-=i[2]));for(var A=0,z=!1,O=BFe("fill"in n?n.fill:(z=!0,g.fill)),T=qFe("stroke"in n?n.stroke:!l&&(!g.autoStroke||z)?(A=_Fe,g.stroke):null),I=n.textShadowBlur>0,P=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),N=a.calculatedLineHeight,F=0;F<p.length;F++){var L=this._getOrCreateChild(IP),W=L.createStyle();L.useStyle(W),W.text=p[F],W.x=C,W.y=x,W.textAlign=y,W.textBaseline="middle",W.opacity=n.opacity,W.strokeFirst=!0,I&&(W.shadowBlur=n.textShadowBlur||0,W.shadowColor=n.textShadowColor||"transparent",W.shadowOffsetX=n.textShadowOffsetX||0,W.shadowOffsetY=n.textShadowOffsetY||0),W.stroke=T,W.fill=O,T&&(W.lineWidth=n.lineWidth||A,W.lineDash=n.lineDash,W.lineDashOffset=n.lineDashOffset||0),W.font=r,FFe(W,n),x+=h,P&&L.setBoundingRect(new ui(sN(W.x,d,W.textAlign),CR(W.y,N,W.textBaseline),d,N))}},t.prototype._updateRichTexts=function(){var n=this.style,r=HFe(n),i=Eir(r,n),o=i.width,a=i.outerWidth,s=i.outerHeight,l=n.padding,c=n.x||0,u=n.y||0,d=this._defaultStyle,p=n.align||d.align,h=n.verticalAlign||d.verticalAlign;this.isTruncated=!!i.isTruncated;var g=sN(c,a,p),m=CR(u,s,h),v=g,y=m;l&&(v+=l[3],y+=l[0]);var M=v+o;Mae(n)&&this._renderBackground(n,n,g,m,a,s);for(var C=!!n.backgroundColor,x=0;x<i.lines.length;x++){for(var w=i.lines[x],S=w.tokens,A=S.length,z=w.lineHeight,O=w.width,T=0,I=v,P=M,N=A-1,F=void 0;T<A&&(F=S[T],!F.align||F.align==="left");)this._placeToken(F,n,z,y,I,"left",C),O-=F.width,I+=F.width,T++;for(;N>=0&&(F=S[N],F.align==="right");)this._placeToken(F,n,z,y,P,"right",C),O-=F.width,P-=F.width,N--;for(I+=(o-(I-v)-(M-P)-O)/2;T<=N;)F=S[T],this._placeToken(F,n,z,y,I+F.width/2,"center",C),I+=F.width,T++;y+=z}},t.prototype._placeToken=function(n,r,i,o,a,s,l){var c=r.rich[n.styleName]||{};c.text=n.text;var u=n.verticalAlign,d=o+i/2;u==="top"?d=o+n.height/2:u==="bottom"&&(d=o+i-n.height/2);var p=!n.isLineHolder&&Mae(c);p&&this._renderBackground(c,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,d-n.height/2,n.width,n.height);var h=!!c.backgroundColor,g=n.textPadding;g&&(a=jFe(a,s,g),d-=n.height/2-g[0]-n.innerHeight/2);var m=this._getOrCreateChild(IP),v=m.createStyle();m.useStyle(v);var y=this._defaultStyle,M=!1,C=0,x=BFe("fill"in c?c.fill:"fill"in r?r.fill:(M=!0,y.fill)),w=qFe("stroke"in c?c.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||M)?(C=_Fe,y.stroke):null),S=c.textShadowBlur>0||r.textShadowBlur>0;v.text=n.text,v.x=a,v.y=d,S&&(v.shadowBlur=c.textShadowBlur||r.textShadowBlur||0,v.shadowColor=c.textShadowColor||r.textShadowColor||"transparent",v.shadowOffsetX=c.textShadowOffsetX||r.textShadowOffsetX||0,v.shadowOffsetY=c.textShadowOffsetY||r.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=n.font||rw,v.opacity=hm(c.opacity,r.opacity,1),FFe(v,c),w&&(v.lineWidth=hm(c.lineWidth,r.lineWidth,C),v.lineDash=Xr(c.lineDash,r.lineDash),v.lineDashOffset=r.lineDashOffset||0,v.stroke=w),x&&(v.fill=x);var A=n.contentWidth,z=n.contentHeight;m.setBoundingRect(new ui(sN(v.x,A,v.textAlign),CR(v.y,z,v.textBaseline),A,z))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,c=n.borderWidth,u=n.borderColor,d=l&&l.image,p=l&&!d,h=n.borderRadius,g=this,m,v;if(p||n.lineHeight||c&&u){m=this._getOrCreateChild(ao),m.useStyle(m.createStyle()),m.style.fill=null;var y=m.shape;y.x=i,y.y=o,y.width=a,y.height=s,y.r=h,m.dirtyShape()}if(p){var M=m.style;M.fill=l||null,M.fillOpacity=Xr(n.fillOpacity,1)}else if(d){v=this._getOrCreateChild(Du),v.onload=function(){g.dirtyStyle()};var C=v.style;C.image=l.image,C.x=i,C.y=o,C.width=a,C.height=s}if(c&&u){var M=m.style;M.lineWidth=c,M.stroke=u,M.strokeOpacity=Xr(n.strokeOpacity,1),M.lineDash=n.borderDash,M.lineDashOffset=n.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(M.strokeFirst=!0,M.lineWidth*=2)}var x=(m||v).style;x.shadowBlur=n.shadowBlur||0,x.shadowColor=n.shadowColor||"transparent",x.shadowOffsetX=n.shadowOffsetX||0,x.shadowOffsetY=n.shadowOffsetY||0,x.opacity=hm(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return lmt(n)&&(r=[n.fontStyle,n.fontWeight,smt(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Cf(r)||n.textFont||n.font},t})(qf),ror={left:!0,right:1,center:1},ior={top:1,bottom:1,middle:1},NFe=["fontStyle","fontWeight","fontSize","fontFamily"];function smt(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?$we+"px":e+"px"}function FFe(e,t){for(var n=0;n<NFe.length;n++){var r=NFe[n],i=t[r];i!=null&&(e[r]=i)}}function lmt(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function oor(e){return WFe(e),ye(e.rich,WFe),e}function WFe(e){if(e){e.font=oo.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||ror[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||ior[n]?n:"top";var r=e.padding;r&&(e.padding=JZ(e.padding))}}function qFe(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function BFe(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function jFe(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function HFe(e){var t=e.text;return t!=null&&(t+=""),t}function Mae(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var _r=mo(),Pme=function(e,t,n,r){if(r){var i=_r(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=_r(o);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"})}},VFe=1,GFe={},cmt=mo(),hSe=mo(),fSe=0,FB=1,uJ=2,f1=["emphasis","blur","select"],pq=["normal","emphasis","blur","select"],QD=10,aor=9,ez="highlight",_7="downplay",OF="select",N7="unselect",zF="toggleSelect";function FE(e){return e!=null&&e!=="none"}function dJ(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function umt(e){dJ(e,"emphasis",uJ)}function dmt(e){e.hoverState===uJ&&dJ(e,"normal",fSe)}function gSe(e){dJ(e,"blur",FB)}function pmt(e){e.hoverState===FB&&dJ(e,"normal",fSe)}function sor(e){e.selected=!0}function lor(e){e.selected=!1}function $Fe(e,t,n){t(e,n)}function wM(e,t,n){$Fe(e,t,n),e.isGroup&&e.traverse(function(r){$Fe(r,t,n)})}function pU(e,t){switch(t){case"emphasis":e.hoverState=uJ;break;case"normal":e.hoverState=fSe;break;case"blur":e.hoverState=FB;break;case"select":e.selected=!0}}function cor(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=l??(r&&r[s])}for(var a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(o,t)}return o}function uor(e,t,n,r){var i=n&&hi(n,"select")>=0,o=!1;if(e instanceof Di){var a=cmt(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(FE(s)||FE(l)){r=r||{};var c=r.style||{};c.fill==="inherit"?(o=!0,r=Nt({},r),c=Nt({},c),c.fill=s):!FE(c.fill)&&FE(s)?(o=!0,r=Nt({},r),c=Nt({},c),c.fill=sU(s)):!FE(c.stroke)&&FE(l)&&(o||(r=Nt({},r),c=Nt({},c)),c.stroke=sU(l)),r.style=c}}if(r&&r.z2==null){o||(r=Nt({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??QD)}return r}function dor(e,t,n){if(n&&n.z2==null){n=Nt({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??aor)}return n}function por(e,t,n){var r=hi(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:cor(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Nt({},n),a=Nt({opacity:r?i:o.opacity*.1},a),n.style=a),n}function Cae(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return uor(this,e,t,n);if(e==="blur")return por(this,e,n);if(e==="select")return dor(this,e,n)}return n}function Yz(e){e.stateProxy=Cae;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Cae),n&&(n.stateProxy=Cae)}function UFe(e,t){!mmt(e,t)&&!e.__highByOuter&&wM(e,umt)}function XFe(e,t){!mmt(e,t)&&!e.__highByOuter&&wM(e,dmt)}function rM(e,t){e.__highByOuter|=1<<(t||0),wM(e,umt)}function iM(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&wM(e,dmt)}function hmt(e){wM(e,gSe)}function mSe(e){wM(e,pmt)}function fmt(e){wM(e,sor)}function gmt(e){wM(e,lor)}function mmt(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function vmt(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=hSe(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(c){pmt(c)}),s&&n.push(o)),a.isBlured=!1}),ye(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function Dme(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(c,u){for(var d=0;d<u.length;d++){var p=c.getItemGraphicEl(u[d]);p&&mSe(p)}}if(e!=null&&!(!t||t==="none")){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(c){var u=a===c,d=c.coordinateSystem;d&&d.master&&(d=d.master);var p=d&&s?d===s:u;if(!(n==="series"&&!u||n==="coordinateSystem"&&!p||t==="series"&&u)){var h=r.getViewOfSeriesModel(c);if(h.group.traverse(function(v){v.__highByOuter&&u&&t==="self"||gSe(v)}),Sd(t))o(c.getData(),t);else if(xr(t))for(var g=ji(t),m=0;m<g.length;m++)o(c.getData(g[m]),t[g[m]]);l.push(c),hSe(c).isBlured=!0}}),i.eachComponent(function(c,u){if(c!=="series"){var d=r.getViewOfComponentModel(u);d&&d.toggleBlurSeries&&d.toggleBlurSeries(l,!0,i)}})}}function kme(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){hSe(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){gSe(o)})}}}function hor(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=Uz(i,t);o=(Ht(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var c=_r(a);Dme(r,c.focus,c.blurScope,n)}else{var u=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);u!=null&&Dme(r,u,d,n)}}}function vSe(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(n),l,c=0;c<s.length;c++)if(_r(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function gor(e,t,n){var r=_r(e),i=vSe(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&kme(r.componentMainType,r.componentIndex,n),ye(o,function(s){return UFe(s,t)})):(Dme(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&kme(r.componentMainType,r.componentIndex,n),UFe(e,t))}function mor(e,t,n){vmt(n);var r=_r(e),i=vSe(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?ye(i,function(o){return XFe(o,t)}):XFe(e,t)}function vor(e,t,n){if(_me(t)){var r=t.dataType,i=e.getData(r),o=Uz(i,t);Ht(o)||(o=[o]),e[t.type===zF?"toggleSelect":t.type===OF?"select":"unselect"](o,r)}}function YFe(e){var t=e.getAllData();ye(t,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?fmt(o):gmt(o)})})}function bor(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();ye(r,function(i){i.data;var o=i.type,a=n.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function kx(e,t,n){mO(e,!0),wM(e,Yz),Lme(e,t,n)}function yor(e){mO(e,!1)}function al(e,t,n,r){r?yor(e):kx(e,t,n)}function Lme(e,t,n){var r=_r(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var KFe=["emphasis","blur","select"],Mor={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ad(e,t,n,r){n=n||"itemStyle";for(var i=0;i<KFe.length;i++){var o=KFe[i],a=t.getModel([o,n]),s=e.ensureState(o);s.style=r?r(a):a[Mor[n]]()}}function mO(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function hq(e){return!!(e&&e.__highDownDispatcher)}function Cor(e,t,n){var r=_r(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function xor(e){var t=GFe[e];return t==null&&VFe<=32&&(t=GFe[e]=VFe++),t}function _me(e){var t=e.type;return t===OF||t===N7||t===zF}function QFe(e){var t=e.type;return t===ez||t===_7}function wor(e){var t=cmt(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var WE=Nb.CMD,Sor=[[],[],[]],ZFe=Math.sqrt,Aor=Math.atan2;function bmt(e,t){if(t){var n=e.data,r=e.len(),i,o,a,s,l,c,u=WE.M,d=WE.C,p=WE.L,h=WE.R,g=WE.A,m=WE.Q;for(a=0,s=0;a<r;){switch(i=n[a++],s=a,o=0,i){case u:o=1;break;case p:o=1;break;case d:o=3;break;case m:o=2;break;case g:var v=t[4],y=t[5],M=ZFe(t[0]*t[0]+t[1]*t[1]),C=ZFe(t[2]*t[2]+t[3]*t[3]),x=Aor(-t[1]/C,t[0]/M);n[a]*=M,n[a++]+=v,n[a]*=C,n[a++]+=y,n[a++]*=M,n[a++]*=C,n[a++]+=x,n[a++]+=x,a+=2,s=a;break;case h:c[0]=n[a++],c[1]=n[a++],Yu(c,c,t),n[s++]=c[0],n[s++]=c[1],c[0]+=n[a++],c[1]+=n[a++],Yu(c,c,t),n[s++]=c[0],n[s++]=c[1]}for(l=0;l<o;l++){var w=Sor[l];w[0]=n[a++],w[1]=n[a++],Yu(w,w,t),n[s++]=w[0],n[s++]=w[1]}}e.increaseVersion()}}var xae=Math.sqrt,rV=Math.sin,iV=Math.cos,d_=Math.PI;function JFe(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Nme(e,t){return(e[0]*t[0]+e[1]*t[1])/(JFe(e)*JFe(t))}function eWe(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Nme(e,t))}function tWe(e,t,n,r,i,o,a,s,l,c,u){var d=l*(d_/180),p=iV(d)*(e-n)/2+rV(d)*(t-r)/2,h=-1*rV(d)*(e-n)/2+iV(d)*(t-r)/2,g=p*p/(a*a)+h*h/(s*s);g>1&&(a*=xae(g),s*=xae(g));var m=(i===o?-1:1)*xae((a*a*(s*s)-a*a*(h*h)-s*s*(p*p))/(a*a*(h*h)+s*s*(p*p)))||0,v=m*a*h/s,y=m*-s*p/a,M=(e+n)/2+iV(d)*v-rV(d)*y,C=(t+r)/2+rV(d)*v+iV(d)*y,x=eWe([1,0],[(p-v)/a,(h-y)/s]),w=[(p-v)/a,(h-y)/s],S=[(-1*p-v)/a,(-1*h-y)/s],A=eWe(w,S);if(Nme(w,S)<=-1&&(A=d_),Nme(w,S)>=1&&(A=0),A<0){var z=Math.round(A/d_*1e6)/1e6;A=d_*2+z%2*d_}u.addData(c,M,C,a,s,x,A,d,o)}var Oor=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,zor=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Tor(e){var t=new Nb;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=Nb.CMD,l=e.match(Oor);if(!l)return t;for(var c=0;c<l.length;c++){for(var u=l[c],d=u.charAt(0),p=void 0,h=u.match(zor)||[],g=h.length,m=0;m<g;m++)h[m]=parseFloat(h[m]);for(var v=0;v<g;){var y=void 0,M=void 0,C=void 0,x=void 0,w=void 0,S=void 0,A=void 0,z=n,O=r,T=void 0,I=void 0;switch(d){case"l":n+=h[v++],r+=h[v++],p=s.L,t.addData(p,n,r);break;case"L":n=h[v++],r=h[v++],p=s.L,t.addData(p,n,r);break;case"m":n+=h[v++],r+=h[v++],p=s.M,t.addData(p,n,r),i=n,o=r,d="l";break;case"M":n=h[v++],r=h[v++],p=s.M,t.addData(p,n,r),i=n,o=r,d="L";break;case"h":n+=h[v++],p=s.L,t.addData(p,n,r);break;case"H":n=h[v++],p=s.L,t.addData(p,n,r);break;case"v":r+=h[v++],p=s.L,t.addData(p,n,r);break;case"V":r=h[v++],p=s.L,t.addData(p,n,r);break;case"C":p=s.C,t.addData(p,h[v++],h[v++],h[v++],h[v++],h[v++],h[v++]),n=h[v-2],r=h[v-1];break;case"c":p=s.C,t.addData(p,h[v++]+n,h[v++]+r,h[v++]+n,h[v++]+r,h[v++]+n,h[v++]+r),n+=h[v-2],r+=h[v-1];break;case"S":y=n,M=r,T=t.len(),I=t.data,a===s.C&&(y+=n-I[T-4],M+=r-I[T-3]),p=s.C,z=h[v++],O=h[v++],n=h[v++],r=h[v++],t.addData(p,y,M,z,O,n,r);break;case"s":y=n,M=r,T=t.len(),I=t.data,a===s.C&&(y+=n-I[T-4],M+=r-I[T-3]),p=s.C,z=n+h[v++],O=r+h[v++],n+=h[v++],r+=h[v++],t.addData(p,y,M,z,O,n,r);break;case"Q":z=h[v++],O=h[v++],n=h[v++],r=h[v++],p=s.Q,t.addData(p,z,O,n,r);break;case"q":z=h[v++]+n,O=h[v++]+r,n+=h[v++],r+=h[v++],p=s.Q,t.addData(p,z,O,n,r);break;case"T":y=n,M=r,T=t.len(),I=t.data,a===s.Q&&(y+=n-I[T-4],M+=r-I[T-3]),n=h[v++],r=h[v++],p=s.Q,t.addData(p,y,M,n,r);break;case"t":y=n,M=r,T=t.len(),I=t.data,a===s.Q&&(y+=n-I[T-4],M+=r-I[T-3]),n+=h[v++],r+=h[v++],p=s.Q,t.addData(p,y,M,n,r);break;case"A":C=h[v++],x=h[v++],w=h[v++],S=h[v++],A=h[v++],z=n,O=r,n=h[v++],r=h[v++],p=s.A,tWe(z,O,n,r,S,A,C,x,w,p,t);break;case"a":C=h[v++],x=h[v++],w=h[v++],S=h[v++],A=h[v++],z=n,O=r,n+=h[v++],r+=h[v++],p=s.A,tWe(z,O,n,r,S,A,C,x,w,p,t);break}}(d==="z"||d==="Z")&&(p=s.Z,t.addData(p),n=i,r=o),a=p}return t.toStatic(),t}var ymt=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t})(Di);function Mmt(e){return e.setData!=null}function Cmt(e,t){var n=Tor(e),r=Nt({},t);return r.buildPath=function(i){if(Mmt(i)){i.setData(n.data);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=i;n.rebuildPath(o,1)}},r.applyTransform=function(i){bmt(n,i),this.dirtyShape()},r}function xmt(e,t){return new ymt(Cmt(e,t))}function Eor(e,t){var n=Cmt(e,t),r=(function(i){gt(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o})(ymt);return r}function Ror(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new Di(t);return a.createPathProxy(),a.buildPath=function(s){if(Mmt(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}function bSe(e,t){t=t||{};var n=new Di;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?bmt(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var Ior=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),e2=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Ior},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t})(Di);e2.prototype.type="circle";var Por=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),WB=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Por},t.prototype.buildPath=function(n,r){var i=.5522848,o=r.cx,a=r.cy,s=r.rx,l=r.ry,c=s*i,u=l*i;n.moveTo(o-s,a),n.bezierCurveTo(o-s,a-u,o-c,a-l,o,a-l),n.bezierCurveTo(o+c,a-l,o+s,a-u,o+s,a),n.bezierCurveTo(o+s,a+u,o+c,a+l,o,a+l),n.bezierCurveTo(o-c,a+l,o-s,a+u,o-s,a),n.closePath()},t})(Di);WB.prototype.type="ellipse";var wmt=Math.PI,wae=wmt*2,lA=Math.sin,qE=Math.cos,Dor=Math.acos,$d=Math.atan2,nWe=Math.abs,TF=Math.sqrt,lN=Math.max,bv=Math.min,_g=1e-4;function kor(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,p=d*l-u*c;if(!(p*p<_g))return p=(u*(t-o)-d*(e-i))/p,[e+p*l,t+p*c]}function oV(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/TF(s*s+l*l),u=c*l,d=-c*s,p=e+u,h=t+d,g=n+u,m=r+d,v=(p+g)/2,y=(h+m)/2,M=g-p,C=m-h,x=M*M+C*C,w=i-o,S=p*m-g*h,A=(C<0?-1:1)*TF(lN(0,w*w*x-S*S)),z=(S*C-M*A)/x,O=(-S*M-C*A)/x,T=(S*C+M*A)/x,I=(-S*M+C*A)/x,P=z-v,N=O-y,F=T-v,L=I-y;return P*P+N*N>F*F+L*L&&(z=T,O=I),{cx:z,cy:O,x0:-u,y0:-d,x1:z*(i/w-1),y1:O*(i/w-1)}}function Lor(e){var t;if(Ht(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function _or(e,t){var n,r=lN(t.r,0),i=lN(t.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var u=t.cx,d=t.cy,p=!!t.clockwise,h=nWe(c-l),g=h>wae&&h%wae;if(g>_g&&(h=g),!(r>_g))e.moveTo(u,d);else if(h>wae-_g)e.moveTo(u+r*qE(l),d+r*lA(l)),e.arc(u,d,r,l,c,!p),i>_g&&(e.moveTo(u+i*qE(c),d+i*lA(c)),e.arc(u,d,i,c,l,p));else{var m=void 0,v=void 0,y=void 0,M=void 0,C=void 0,x=void 0,w=void 0,S=void 0,A=void 0,z=void 0,O=void 0,T=void 0,I=void 0,P=void 0,N=void 0,F=void 0,L=r*qE(l),W=r*lA(l),H=i*qE(c),j=i*lA(c),G=h>_g;if(G){var q=t.cornerRadius;q&&(n=Lor(q),m=n[0],v=n[1],y=n[2],M=n[3]);var $=nWe(r-i)/2;if(C=bv($,y),x=bv($,M),w=bv($,m),S=bv($,v),O=A=lN(C,x),T=z=lN(w,S),(A>_g||z>_g)&&(I=r*qE(c),P=r*lA(c),N=i*qE(l),F=i*lA(l),h<wmt)){var U=kor(L,W,N,F,I,P,H,j);if(U){var X=L-U[0],Q=W-U[1],re=I-U[0],ee=P-U[1],se=1/lA(Dor((X*re+Q*ee)/(TF(X*X+Q*Q)*TF(re*re+ee*ee)))/2),pe=TF(U[0]*U[0]+U[1]*U[1]);O=bv(A,(r-pe)/(se+1)),T=bv(z,(i-pe)/(se-1))}}}if(!G)e.moveTo(u+L,d+W);else if(O>_g){var te=bv(y,O),ce=bv(M,O),oe=oV(N,F,L,W,r,te,p),ae=oV(I,P,H,j,r,ce,p);e.moveTo(u+oe.cx+oe.x0,d+oe.cy+oe.y0),O<A&&te===ce?e.arc(u+oe.cx,d+oe.cy,O,$d(oe.y0,oe.x0),$d(ae.y0,ae.x0),!p):(te>0&&e.arc(u+oe.cx,d+oe.cy,te,$d(oe.y0,oe.x0),$d(oe.y1,oe.x1),!p),e.arc(u,d,r,$d(oe.cy+oe.y1,oe.cx+oe.x1),$d(ae.cy+ae.y1,ae.cx+ae.x1),!p),ce>0&&e.arc(u+ae.cx,d+ae.cy,ce,$d(ae.y1,ae.x1),$d(ae.y0,ae.x0),!p))}else e.moveTo(u+L,d+W),e.arc(u,d,r,l,c,!p);if(!(i>_g)||!G)e.lineTo(u+H,d+j);else if(T>_g){var te=bv(m,T),ce=bv(v,T),oe=oV(H,j,I,P,i,-ce,p),ae=oV(L,W,N,F,i,-te,p);e.lineTo(u+oe.cx+oe.x0,d+oe.cy+oe.y0),T<z&&te===ce?e.arc(u+oe.cx,d+oe.cy,T,$d(oe.y0,oe.x0),$d(ae.y0,ae.x0),!p):(ce>0&&e.arc(u+oe.cx,d+oe.cy,ce,$d(oe.y0,oe.x0),$d(oe.y1,oe.x1),!p),e.arc(u,d,i,$d(oe.cy+oe.y1,oe.cx+oe.x1),$d(ae.cy+ae.y1,ae.cx+ae.x1),p),te>0&&e.arc(u+ae.cx,d+ae.cy,te,$d(ae.y1,ae.x1),$d(ae.y0,ae.x0),!p))}else e.lineTo(u+H,d+j),e.arc(u,d,i,c,l,p)}e.closePath()}}}var Nor=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),A0=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Nor},t.prototype.buildPath=function(n,r){_or(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Di);A0.prototype.type="sector";var For=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),ZD=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new For},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.PI*2;n.moveTo(i+r.r,o),n.arc(i,o,r.r,0,a,!1),n.moveTo(i+r.r0,o),n.arc(i,o,r.r0,0,a,!0)},t})(Di);ZD.prototype.type="ring";function Wor(e,t,n,r){var i=[],o=[],a=[],s=[],l,c,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var p=0,h=e.length;p<h;p++)xy(u,u,e[p]),wy(d,d,e[p]);xy(u,u,r[0]),wy(d,d,r[1])}for(var p=0,h=e.length;p<h;p++){var g=e[p];if(n)l=e[p?p-1:h-1],c=e[(p+1)%h];else if(p===0||p===h-1){i.push(bb(e[p]));continue}else l=e[p-1],c=e[p+1];ux(o,c,l),yF(o,o,t);var m=nU(g,l),v=nU(g,c),y=m+v;y!==0&&(m/=y,v/=y),yF(a,o,-m),yF(s,o,v);var M=sme([],g,a),C=sme([],g,s);r&&(wy(M,M,u),xy(M,M,d),wy(C,C,u),xy(C,C,d)),i.push(M),i.push(C)}return n&&i.push(i.shift()),i}function Smt(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=Wor(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],c=o[s*2+1],u=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var qor=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),O0=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new qor},t.prototype.buildPath=function(n,r){Smt(n,r,!0)},t})(Di);O0.prototype.type="polygon";var Bor=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),R0=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Bor},t.prototype.buildPath=function(n,r){Smt(n,r,!1)},t})(Di);R0.prototype.type="polyline";var jor={},Hor=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),Jc=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Hor},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=omt(jor,r,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=r.x1,o=r.y1,a=r.x2,s=r.y2;var c=r.percent;c!==0&&(n.moveTo(i,o),c<1&&(a=i*(1-c)+a*c,s=o*(1-c)+s*c),n.lineTo(a,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t})(Di);Jc.prototype.type="line";var k1=[],Vor=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function rWe(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?uFe:yu)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?uFe:yu)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?pme:Vu)(e.x1,e.cpx1,e.x2,t),(n?pme:Vu)(e.y1,e.cpy1,e.y2,t)]}var JD=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Vor},t.prototype.buildPath=function(n,r){var i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,c=r.cpy1,u=r.cpx2,d=r.cpy2,p=r.percent;p!==0&&(n.moveTo(i,o),u==null||d==null?(p<1&&(aq(i,l,a,p,k1),l=k1[1],a=k1[2],aq(o,c,s,p,k1),c=k1[1],s=k1[2]),n.quadraticCurveTo(l,c,a,s)):(p<1&&(iw(i,l,u,a,p,k1),l=k1[1],u=k1[2],a=k1[3],iw(o,c,d,s,p,k1),c=k1[1],d=k1[2],s=k1[3]),n.bezierCurveTo(l,c,u,d,a,s)))},t.prototype.pointAt=function(n){return rWe(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=rWe(this.shape,n,!0);return B3(r,r)},t})(Di);JD.prototype.type="bezier-curve";var Gor=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),qB=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Gor},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,c=r.clockwise,u=Math.cos(s),d=Math.sin(s);n.moveTo(u*a+i,d*a+o),n.arc(i,o,a,s,l,!c)},t})(Di);qB.prototype.type="arc";var pJ=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var i=r.paths||[],o=0;o<i.length;o++)i[o].buildPath(n,i[o].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Di.prototype.getBoundingRect.call(this)},t})(Di),Amt=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e})(),ek=(function(e){gt(t,e);function t(n,r,i,o,a,s){var l=e.call(this,a)||this;return l.x=n??0,l.y=r??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t})(Amt),ySe=(function(e){gt(t,e);function t(n,r,i,o,a){var s=e.call(this,o)||this;return s.x=n??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return t})(Amt),cA=[0,0],uA=[0,0],aV=new ci,sV=new ci,hU=(function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new ci;for(var r=0;r<2;r++)this._axes[r]=new ci;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,l),r[3].set(o,l),n)for(var c=0;c<4;c++)r[c].transform(n);ci.sub(i[0],r[1],r[0]),ci.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var c=0;c<2;c++)this._origin[c]=i[c].dot(r[0])},e.prototype.intersect=function(t,n){var r=!0,i=!n;return aV.set(1/0,1/0),sV.set(0,0),!this._intersectCheckOneSide(this,t,aV,sV,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,aV,sV,i,-1)&&(r=!1,i)||i||ci.copy(n,r?aV:sV),r},e.prototype._intersectCheckOneSide=function(t,n,r,i,o,a){for(var s=!0,l=0;l<2;l++){var c=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,cA),this._getProjMinMaxOnAxis(l,n._corners,uA),cA[1]<uA[0]||cA[0]>uA[1]){if(s=!1,o)return s;var u=Math.abs(uA[0]-cA[1]),d=Math.abs(cA[0]-uA[1]);Math.min(u,d)>i.len()&&(u<d?ci.scale(i,c,-u*a):ci.scale(i,c,d*a))}else if(r){var u=Math.abs(uA[0]-cA[1]),d=Math.abs(cA[0]-uA[1]);Math.min(u,d)<r.len()&&(u<d?ci.scale(r,c,u*a):ci.scale(r,c,-d*a))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var i=this._axes[t],o=this._origin,a=n[0].dot(i)+o[t],s=a,l=a,c=1;c<n.length;c++){var u=n[c].dot(i)+o[t];s=Math.min(u,s),l=Math.max(u,l)}r[0]=s,r[1]=l},e})(),$or=[],Omt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new ui(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform($or)),n.union(o)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(n,r))return!0}return!1},t})(qf),zmt=mo();function tk(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var c=void 0,u=void 0,d=void 0;r?(c=Xr(r.duration,200),u=Xr(r.easing,"cubicOut"),d=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),u=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(c=o.duration),o.easing!=null&&(u=o.easing),o.delay!=null&&(d=o.delay)),fr(d)&&(d=d(n,i)),fr(c)&&(c=c(n));var p={duration:c||0,delay:d,easing:u};return p}else return null}function MSe(e,t,n,r,i,o,a){var s=!1,l;fr(i)?(a=o,o=i,i=null):xr(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var c=e==="leave";c||t.stopAnimation("leave");var u=tk(e,r,i,c?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,p=u.delay,h=u.easing,g={duration:d,delay:p||0,easing:h,done:o,force:!!o||!!a,setToFinal:!c,scope:e,during:a};s?t.animateFrom(n,g):t.animateTo(n,g)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function So(e,t,n,r,i,o){MSe("update",e,t,n,r,i,o)}function vs(e,t,n,r,i,o){MSe("enter",e,t,n,r,i,o)}function II(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function ow(e,t,n,r,i,o){II(e)||MSe("leave",e,t,n,r,i,o)}function iWe(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),ow(e,{style:{opacity:0}},t,n,r)}function fq(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||iWe(i,t,n,r)}):iWe(e,t,n,r)}function Om(e){zmt(e).oldStyle=e.style}function Uor(e){return zmt(e).oldStyle}var fU=Math.max,gU=Math.min,Fme={};function Tmt(e){return Di.extend(e)}var Xor=Eor;function Emt(e,t){return Xor(e,t)}function Jf(e,t){Fme[e]=t}function hJ(e){if(Fme.hasOwnProperty(e))return Fme[e]}function BB(e,t,n,r){var i=xmt(e,t);return n&&(r==="center"&&(n=Rmt(n,i.getBoundingRect())),xSe(i,n)),i}function CSe(e,t,n){var r=new Du({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(n==="center"){var o={width:i.width,height:i.height};r.setStyle(Rmt(t,o))}}});return r}function Rmt(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var Xp=Ror;function xSe(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function PP(e,t){return omt(e,e,{lineWidth:t}),e}function Yor(e){return amt(e.shape,e.shape,e.style),e}var F7=gO;function Lx(e,t){for(var n=kB([]);e&&e!==t;)yb(n,e.getLocalTransform(),n),e=e.parent;return n}function mm(e,t,n){return t&&!Sd(t)&&(t=Sy.getLocalTransform(t)),n&&(t=j3([],t)),Yu([],e,t)}function fJ(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[e==="left"?-r:e==="right"?r:0,e==="top"?-i:e==="bottom"?i:0];return o=mm(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function oWe(e){return!e.isGroup}function Kor(e){return e.shape!=null}function jB(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){oWe(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return Kor(a)&&(s.shape=Nt({},a.shape)),s}var o=r(e);t.traverse(function(a){if(oWe(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),So(a,l,n,_r(a).dataIndex)}}})}function wSe(e,t){return Vt(e,function(n){var r=n[0];r=fU(r,t.x),r=gU(r,t.x+t.width);var i=n[1];return i=fU(i,t.y),i=gU(i,t.y+t.height),[r,i]})}function Imt(e,t){var n=fU(e.x,t.x),r=gU(e.x+e.width,t.x+t.width),i=fU(e.y,t.y),o=gU(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function nk(e,t,n){var r=Nt({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),br(i,n),new Du(r)):BB(e.replace("path://",""),r,n,"center")}function cN(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Pmt(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Pmt(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,p=Sae(u,d,l,c);if(Qor(p))return!1;var h=e-i,g=t-o,m=Sae(h,g,l,c)/p;if(m<0||m>1)return!1;var v=Sae(h,g,u,d)/p;return!(v<0||v>1)}function Sae(e,t,n,r){return e*r-n*t}function Qor(e){return e<=1e-6&&e>=-1e-6}function H3(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Sn(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&ye(ji(l),function(u){Fn(s,u)||(s[u]=l[u],s.$vars.push(u))});var c=_r(e.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:r,option:br({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function aWe(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Nw(e,t){if(e)if(Ht(e))for(var n=0;n<e.length;n++)aWe(e[n],t);else aWe(e,t)}Jf("circle",e2);Jf("ellipse",WB);Jf("sector",A0);Jf("ring",ZD);Jf("polygon",O0);Jf("polyline",R0);Jf("rect",ao);Jf("line",Jc);Jf("bezierCurve",JD);Jf("arc",qB);const V3=Object.freeze(Object.defineProperty({__proto__:null,Arc:qB,BezierCurve:JD,BoundingRect:ui,Circle:e2,CompoundPath:pJ,Ellipse:WB,Group:Ir,Image:Du,IncrementalDisplayable:Omt,Line:Jc,LinearGradient:ek,OrientedBoundingRect:hU,Path:Di,Point:ci,Polygon:O0,Polyline:R0,RadialGradient:ySe,Rect:ao,Ring:ZD,Sector:A0,Text:oo,applyTransform:mm,clipPointsByRect:wSe,clipRectByRect:Imt,createIcon:nk,extendPath:Emt,extendShape:Tmt,getShapeClass:hJ,getTransform:Lx,groupTransition:jB,initProps:vs,isElementRemoved:II,lineLineIntersect:Pmt,linePolygonIntersect:cN,makeImage:CSe,makePath:BB,mergePath:Xp,registerShape:Jf,removeElement:ow,removeElementWithFadeOut:fq,resizePath:xSe,setTooltipConfig:H3,subPixelOptimize:F7,subPixelOptimizeLine:PP,subPixelOptimizeRect:Yor,transformDirection:fJ,traverseElements:Nw,updateProps:So},Symbol.toStringTag,{value:"Module"}));var gJ={};function Dmt(e,t){for(var n=0;n<f1.length;n++){var r=f1[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function Wme(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=fr(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var l={normal:s},c=0;c<f1.length;c++){var u=f1[c],d=t[u];l[u]=Xr(r?r.getFormattedLabel(i,u,null,o,d&&d.get("formatter")):null,s)}return l}function Od(e,t,n,r){n=n||gJ;for(var i=e instanceof oo,o=!1,a=0;a<pq.length;a++){var s=t[pq[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?e:e.getTextContent();if(o){i||(l||(l=new oo,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var c=Wme(n,t),u=t.normal,d=!!u.getShallow("show"),p=Za(u,r&&r.normal,n,!1,!i);p.text=c.normal,i||e.setTextConfig(mU(u,n,!1));for(var a=0;a<f1.length;a++){var h=f1[a],s=t[h];if(s){var g=l.ensureState(h),m=!!Xr(s.getShallow("show"),d);if(m!==d&&(g.ignore=!m),g.style=Za(s,r&&r[h],n,!0,!i),g.style.text=c[h],!i){var v=e.ensureState(h);v.textConfig=mU(s,n,!0)}}}l.silent=!!u.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!d,l.useStyle(p),l.dirty(),n.enableTextSetter&&(rk(l).setLabelText=function(y){var M=Wme(n,t,y);Dmt(l,M)})}else l&&(l.ignore=!0);e.dirty()}function Ru(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<f1.length;r++){var i=f1[r];n[i]=e.getModel([i,t])}return n}function Za(e,t,n,r,i){var o={};return Zor(o,e,n,r,i),t&&Nt(o,t),o}function mU(e,t,n){t=t||{};var r={},i,o=e.getShallow("rotate"),a=Xr(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",r}function Zor(e,t,n,r,i){n=n||gJ;var o=t.ecModel,a=o&&o.option.textStyle,s=Jor(t),l;if(s){l={};for(var c in s)if(s.hasOwnProperty(c)){var u=t.getModel(["rich",c]);uWe(l[c]={},u,a,n,r,i,!1,!0)}}l&&(e.rich=l);var d=t.get("overflow");d&&(e.overflow=d);var p=t.get("minMargin");p!=null&&(e.margin=p),uWe(e,t,a,n,r,i,!0,!1)}function Jor(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||gJ).rich;if(n){t=t||{};for(var r=ji(n),i=0;i<r.length;i++){var o=r[i];t[o]=1}}e=e.parentModel}return t}var sWe=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lWe=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],cWe=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function uWe(e,t,n,r,i,o,a,s){n=!i&&n||gJ;var l=r&&r.inheritColor,c=t.getShallow("color"),u=t.getShallow("textBorderColor"),d=Xr(t.getShallow("opacity"),n.opacity);(c==="inherit"||c==="auto")&&(l?c=l:c=null),(u==="inherit"||u==="auto")&&(l?u=l:u=null),o||(c=c||n.color,u=u||n.textBorderColor),c!=null&&(e.fill=c),u!=null&&(e.stroke=u);var p=Xr(t.getShallow("textBorderWidth"),n.textBorderWidth);p!=null&&(e.lineWidth=p);var h=Xr(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var g=Xr(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!i&&d==null&&!s&&(d=r&&r.defaultOpacity),d!=null&&(e.opacity=d),!i&&!o&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var m=0;m<sWe.length;m++){var v=sWe[m],y=Xr(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var m=0;m<lWe.length;m++){var v=lWe[m],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var M=t.getShallow("baseline");M!=null&&(e.verticalAlign=M)}if(!a||!r.disableBox){for(var m=0;m<cWe.length;m++){var v=cWe[m],y=t.getShallow(v);y!=null&&(e[v]=y)}var C=t.getShallow("borderType");C!=null&&(e.borderDash=C),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function SSe(e,t){var n=t&&t.getModel("textStyle");return Cf([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var rk=mo();function kmt(e,t,n,r){if(e){var i=rk(e);i.prevValue=i.value,i.value=n;var o=t.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function Lmt(e,t,n,r,i){var o=rk(e);if(!o.valueAnimation||o.prevValue===o.value)return;var a=o.defaultInterpolatedText,s=Xr(o.interpolatedValue,o.prevValue),l=o.value;function c(u){var d=Kgt(n,o.precision,s,l,u);o.interpolatedValue=u===1?null:d;var p=Wme({labelDataIndex:t,labelFetcher:i,defaultText:a?a(d):d+""},o.statesModels,d);Dmt(e,p)}e.percent=0,(o.prevValue==null?vs:So)(e,{percent:1},r,t,null,c)}var ear=["textStyle","color"],Aae=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Oae=new oo,tar=(function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(ear):null)},e.prototype.getFont=function(){return SSe({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<Aae.length;r++)n[Aae[r]]=this.getShallow(Aae[r]);return Oae.useStyle(n),Oae.update(),Oae.getBoundingRect()},e})(),_mt=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],nar=Xz(_mt),rar=(function(){function e(){}return e.prototype.getLineStyle=function(t){return nar(this,t)},e})(),Nmt=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],iar=Xz(Nmt),oar=(function(){function e(){}return e.prototype.getItemStyle=function(t,n){return iar(this,t,n)},e})(),_o=(function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){ei(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,i=r==null?r:r[t];if(i==null&&!n){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Or(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Ii.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var i=0;i<t.length&&!(t[i]&&(r=r&&typeof r=="object"?r[t[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e})();uSe(_o);vir(_o);jl(_o,rar);jl(_o,oar);jl(_o,xir);jl(_o,tar);var aar=Math.round(Math.random()*10);function ik(e){return[e||"",aar++].join("_")}function sar(e){var t={};e.registerSubTypeDefaulter=function(n,r){var i=eb(n);t[i.main]=r},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=eb(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}function lar(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var c=n(a),u=c.graph,d=c.noEntryList,p={};for(ye(o,function(M){p[M]=!0});d.length;){var h=d.pop(),g=u[h],m=!!p[h];m&&(s.call(l,h,g.originalDeps.slice()),delete p[h]),ye(g.successor,m?y:v)}ye(p,function(){var M="";throw new Error(M)});function v(M){u[M].entryCount--,u[M].entryCount===0&&d.push(M)}function y(M){p[M]=!0,v(M)}};function n(o){var a={},s=[];return ye(o,function(l){var c=r(a,l),u=c.originalDeps=t(l),d=i(u,o);c.entryCount=d.length,c.entryCount===0&&s.push(l),ye(d,function(p){hi(c.predecessor,p)<0&&c.predecessor.push(p);var h=r(a,p);hi(h.successor,p)<0&&h.successor.push(l)})}),{graph:a,noEntryList:s}}function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return ye(o,function(l){hi(a,l)>=0&&s.push(l)}),s}}function Fw(e,t){return ei(ei({},e,!0),t,!0)}const car={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},uar={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var vU="ZH",ASe="EN",PI=ASe,W7={},OSe={},Fmt=Ii.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||PI).toUpperCase();return e.indexOf(vU)>-1?vU:PI})():PI;function zSe(e,t){e=e.toUpperCase(),OSe[e]=new _o(t),W7[e]=t}function dar(e){if(Sn(e)){var t=W7[e.toUpperCase()]||{};return e===vU||e===ASe?Or(t):ei(Or(t),Or(W7[PI]),!1)}else return ei(Or(e),Or(W7[PI]),!1)}function qme(e){return OSe[e]}function par(){return OSe[PI]}zSe(ASe,car);zSe(vU,uar);var TSe=1e3,ESe=TSe*60,EF=ESe*60,gf=EF*24,dWe=gf*365,uN={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},lV="{yyyy}-{MM}-{dd}",pWe={year:"{yyyy}",month:"{yyyy}-{MM}",day:lV,hour:lV+" "+uN.hour,minute:lV+" "+uN.minute,second:lV+" "+uN.second,millisecond:uN.none},zae=["year","month","day","hour","minute","second","millisecond"],Wmt=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function K0(e,t){return e+="","0000".substr(0,t-e.length)+e}function DI(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function har(e){return e===DI(e)}function far(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function HB(e,t,n,r){var i=dh(e),o=i[RSe(n)](),a=i[kI(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[mJ(n)](),c=i["get"+(n?"UTC":"")+"Day"](),u=i[gq(n)](),d=(u-1)%12+1,p=i[vJ(n)](),h=i[bJ(n)](),g=i[yJ(n)](),m=u>=12?"pm":"am",v=m.toUpperCase(),y=r instanceof _o?r:qme(r||Fmt)||par(),M=y.getModel("time"),C=M.get("month"),x=M.get("monthAbbr"),w=M.get("dayOfWeek"),S=M.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,K0(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,C[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,K0(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,K0(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[c]).replace(/{ee}/g,S[c]).replace(/{e}/g,c+"").replace(/{HH}/g,K0(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,K0(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,K0(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,K0(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,K0(g,3)).replace(/{S}/g,g+"")}function gar(e,t,n,r,i){var o=null;if(Sn(n))o=n;else if(fr(n))o=n(e.value,t,{level:e.level});else{var a=Nt({},uN);if(e.level>0)for(var s=0;s<zae.length;++s)a[zae[s]]="{primary|"+a[zae[s]]+"}";var l=n?n.inherit===!1?n:br(n,a):a,c=qmt(e.value,i);if(l[c])o=l[c];else if(l.inherit){for(var u=Wmt.indexOf(c),s=u-1;s>=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(Ht(o)){var d=e.level==null?0:e.level>=0?e.level:o.length+e.level;d=Math.min(d,o.length-1),o=o[d]}}return HB(new Date(e.value),o,i,r)}function qmt(e,t){var n=dh(e),r=n[kI(t)]()+1,i=n[mJ(t)](),o=n[gq(t)](),a=n[vJ(t)](),s=n[bJ(t)](),l=n[yJ(t)](),c=l===0,u=c&&s===0,d=u&&a===0,p=d&&o===0,h=p&&i===1,g=h&&r===1;return g?"year":h?"month":p?"day":d?"hour":u?"minute":c?"second":"millisecond"}function hWe(e,t,n){var r=yo(e)?dh(e):e;switch(t=t||qmt(e,n),t){case"year":return r[RSe(n)]();case"half-year":return r[kI(n)]()>=6?1:0;case"quarter":return Math.floor((r[kI(n)]()+1)/4);case"month":return r[kI(n)]();case"day":return r[mJ(n)]();case"half-day":return r[gq(n)]()/24;case"hour":return r[gq(n)]();case"minute":return r[vJ(n)]();case"second":return r[bJ(n)]();case"millisecond":return r[yJ(n)]()}}function RSe(e){return e?"getUTCFullYear":"getFullYear"}function kI(e){return e?"getUTCMonth":"getMonth"}function mJ(e){return e?"getUTCDate":"getDate"}function gq(e){return e?"getUTCHours":"getHours"}function vJ(e){return e?"getUTCMinutes":"getMinutes"}function bJ(e){return e?"getUTCSeconds":"getSeconds"}function yJ(e){return e?"getUTCMilliseconds":"getMilliseconds"}function mar(e){return e?"setUTCFullYear":"setFullYear"}function Bmt(e){return e?"setUTCMonth":"setMonth"}function jmt(e){return e?"setUTCDate":"setDate"}function Hmt(e){return e?"setUTCHours":"setHours"}function Vmt(e){return e?"setUTCMinutes":"setMinutes"}function Gmt(e){return e?"setUTCSeconds":"setSeconds"}function $mt(e){return e?"setUTCMilliseconds":"setMilliseconds"}function bar(e,t,n,r,i,o,a,s){var l=new oo({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function ISe(e){if(!sSe(e))return Sn(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function PSe(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var G3=JZ;function Bme(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(u){return u&&Cf(u)?u:"-"}function o(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?dh(e):e;if(isNaN(+l)){if(s)return"-"}else return HB(l,r,n)}if(t==="ordinal")return eU(e)?i(e):yo(e)&&o(e)?e+"":"-";var c=_b(e);return o(c)?ISe(c):eU(e)?i(e):typeof e=="boolean"?e+"":"-"}var fWe=["a","b","c","d","e","f","g"],Tae=function(e,t){return"{"+e+(t??"")+"}"};function DSe(e,t,n){Ht(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=fWe[o];e=e.replace(Tae(a),Tae(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var c=t[s][i[l]];e=e.replace(Tae(fWe[l],s),n?l0(c):c)}return e}function yar(e,t,n){return ye(t,function(r,i){e=e.replace("{"+i+"}",r)}),e}function Umt(e,t){var n=Sn(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if(o==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+l0(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+l0(r)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|}  ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Mar(e,t,n){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
yyyy`);var r=dh(t),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),c=r[i+"Minutes"](),u=r[i+"Seconds"](),d=r[i+"Milliseconds"]();return e=e.replace("MM",K0(a,2)).replace("M",a).replace("yyyy",o).replace("yy",K0(o%100+"",2)).replace("dd",K0(s,2)).replace("d",s).replace("hh",K0(l,2)).replace("h",l).replace("mm",K0(c,2)).replace("m",c).replace("ss",K0(u,2)).replace("s",u).replace("SSS",K0(d,3)),e}function Car(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Kz(e,t){return t=t||"transparent",Sn(e)?e:xr(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function bU(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var q7=ye,Xmt=["left","right","top","bottom","width","height"],vO=[["width","left","right"],["height","top","bottom"]];function kSe(e,t,n,r,i){var o=0,a=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,c){var u=l.getBoundingRect(),d=t.childAt(c+1),p=d&&d.getBoundingRect(),h,g;if(e==="horizontal"){var m=u.width+(p?-p.x+u.x:0);h=o+m,h>r||l.newline?(o=0,h=m,a+=s+n,s=u.height):s=Math.max(s,u.height)}else{var v=u.height+(p?-p.y+u.y:0);g=a+v,g>i||l.newline?(o+=s+n,a=0,g=v,s=u.width):s=Math.max(s,u.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=h+n:a=g+n)})}var tz=kSe;Zr(kSe,"vertical");Zr(kSe,"horizontal");function xar(e,t,n){var r=t.width,i=t.height,o=vn(e.left,r),a=vn(e.top,i),s=vn(e.right,r),l=vn(e.bottom,i);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),n=G3(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function Ic(e,t,n){n=G3(n||0);var r=t.width,i=t.height,o=vn(e.left,r),a=vn(e.top,i),s=vn(e.right,r),l=vn(e.bottom,i),c=vn(e.width,r),u=vn(e.height,i),d=n[2]+n[0],p=n[1]+n[3],h=e.aspect;switch(isNaN(c)&&(c=r-s-p-o),isNaN(u)&&(u=i-l-d-a),h!=null&&(isNaN(c)&&isNaN(u)&&(h>r/i?c=r*.8:u=i*.8),isNaN(c)&&(c=h*u),isNaN(u)&&(u=c/h)),isNaN(o)&&(o=r-s-c-p),isNaN(a)&&(a=i-l-u-d),e.left||e.right){case"center":o=r/2-c/2-n[3];break;case"right":o=r-c-p;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-u/2-n[0];break;case"bottom":a=i-u-d;break}o=o||0,a=a||0,isNaN(c)&&(c=r-p-o-(s||0)),isNaN(u)&&(u=i-d-a-(l||0));var g=new ui(o+n[3],a+n[0],c,u);return g.margin=n,g}function MJ(e,t,n,r,i,o){var a=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!a&&!s)return!1;var c;if(l==="raw")c=e.type==="group"?new ui(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(c=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();c=c.clone(),c.applyTransform(u)}var d=Ic(br({width:c.width,height:c.height},t),n,r),p=a?d.x-c.x:0,h=s?d.y-c.y:0;return l==="raw"?(o.x=p,o.y=h):(o.x+=p,o.y+=h),o===e&&e.markRedraw(),!0}function war(e,t){return e[vO[t][0]]!=null||e[vO[t][1]]!=null&&e[vO[t][2]]!=null}function mq(e){var t=e.layoutMode||e.constructor.layoutMode;return xr(t)?t:t?{type:t}:null}function aw(e,t,n){var r=n&&n.ignoreSize;!Ht(r)&&(r=[r,r]);var i=a(vO[0],0),o=a(vO[1],1);c(vO[0],e,i),c(vO[1],e,o);function a(u,d){var p={},h=0,g={},m=0,v=2;if(q7(u,function(C){g[C]=e[C]}),q7(u,function(C){s(t,C)&&(p[C]=g[C]=t[C]),l(p,C)&&h++,l(g,C)&&m++}),r[d])return l(t,u[1])?g[u[2]]=null:l(t,u[2])&&(g[u[1]]=null),g;if(m===v||!h)return g;if(h>=v)return p;for(var y=0;y<u.length;y++){var M=u[y];if(!s(p,M)&&s(e,M)){p[M]=e[M];break}}return p}function s(u,d){return u.hasOwnProperty(d)}function l(u,d){return u[d]!=null&&u[d]!=="auto"}function c(u,d,p){q7(u,function(h){d[h]=p[h]})}}function ok(e){return Ymt({},e)}function Ymt(e,t){return t&&e&&q7(Xmt,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Sar=mo(),Ri=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.uid=ik("ec_cpt_model"),o}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=mq(this),o=i?ok(n):{},a=r.getTheme();ei(n,a.get(this.mainType)),ei(n,this.getDefaultOption()),i&&aw(n,o,i)},t.prototype.mergeOption=function(n,r){ei(this.option,n,!0);var i=mq(this);i&&aw(this.option,n,i)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!fir(n))return n.defaultOption;var r=Sar(this);if(!r.defaultOption){for(var i=[],o=n;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=ei(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return NB(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(_o);Zgt(Ri,_o);aJ(Ri);sar(Ri);lar(Ri,Aar);function Aar(e){var t=[];return ye(Ri.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Vt(t,function(n){return eb(n).main}),e!=="dataset"&&hi(t,"dataset")<=0&&t.unshift("dataset"),t}var Kmt="";typeof navigator<"u"&&(Kmt=navigator.platform||"");var BE="rgba(0, 0, 0, 0.2)";const Oar={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:BE,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:BE,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:BE,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:BE,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:BE,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:BE,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Kmt.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qmt=Yn(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),eg="original",z0="arrayRows",tg="objectRows",t2="keyedColumns",_x="typedArray",Zmt="unknown",Mb="column",ak="row",hd={Must:1,Might:2,Not:3},Jmt=mo();function zar(e){Jmt(e).datasetMap=Yn()}function evt(e,t,n){var r={},i=_Se(t);if(!i||!e)return r;var o=[],a=[],s=t.ecModel,l=Jmt(s).datasetMap,c=i.uid+"_"+n.seriesLayoutBy,u,d;e=e.slice(),ye(e,function(m,v){var y=xr(m)?m:e[v]={name:m};y.type==="ordinal"&&u==null&&(u=v,d=g(y)),r[y.name]=[]});var p=l.get(c)||l.set(c,{categoryWayDim:d,valueWayDim:0});ye(e,function(m,v){var y=m.name,M=g(m);if(u==null){var C=p.valueWayDim;h(r[y],C,M),h(a,C,M),p.valueWayDim+=M}else if(u===v)h(r[y],0,M),h(o,0,M);else{var C=p.categoryWayDim;h(r[y],C,M),h(a,C,M),p.categoryWayDim+=M}});function h(m,v,y){for(var M=0;M<y;M++)m.push(v+M)}function g(m){var v=m.dimsDef;return v?v.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function LSe(e,t,n){var r={},i=_Se(e);if(!i)return r;var o=t.sourceFormat,a=t.dimensionsDefine,s;(o===tg||o===t2)&&ye(a,function(u,d){(xr(u)?u.name:u)==="name"&&(s=d)});var l=(function(){for(var u={},d={},p=[],h=0,g=Math.min(5,n);h<g;h++){var m=nvt(t.data,o,t.seriesLayoutBy,a,t.startIndex,h);p.push(m);var v=m===hd.Not;if(v&&u.v==null&&h!==s&&(u.v=h),(u.n==null||u.n===u.v||!v&&p[u.n]===hd.Not)&&(u.n=h),y(u)&&p[u.n]!==hd.Not)return u;v||(m===hd.Might&&d.v==null&&h!==s&&(d.v=h),(d.n==null||d.n===d.v)&&(d.n=h))}function y(M){return M.v!=null&&M.n!=null}return y(u)?u:y(d)?d:null})();if(l){r.value=[l.v];var c=s??l.n;r.itemName=[c],r.seriesName=[c]}return r}function _Se(e){var t=e.get("data",!0);if(!t)return NB(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},wc).models[0]}function Tar(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:NB(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},wc).models}function tvt(e,t){return nvt(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function nvt(e,t,n,r,i,o){var a,s=5;if(h1(e))return hd.Not;var l,c;if(r){var u=r[o];xr(u)?(l=u.name,c=u.type):Sn(u)&&(l=u)}if(c!=null)return c==="ordinal"?hd.Must:hd.Not;if(t===z0){var d=e;if(n===ak){for(var p=d[o],h=0;h<(p||[]).length&&h<s;h++)if((a=x(p[i+h]))!=null)return a}else for(var h=0;h<d.length&&h<s;h++){var g=d[i+h];if(g&&(a=x(g[o]))!=null)return a}}else if(t===tg){var m=e;if(!l)return hd.Not;for(var h=0;h<m.length&&h<s;h++){var v=m[h];if(v&&(a=x(v[l]))!=null)return a}}else if(t===t2){var y=e;if(!l)return hd.Not;var p=y[l];if(!p||h1(p))return hd.Not;for(var h=0;h<p.length&&h<s;h++)if((a=x(p[h]))!=null)return a}else if(t===eg)for(var M=e,h=0;h<M.length&&h<s;h++){var v=M[h],C=KD(v);if(!Ht(C))return hd.Not;if((a=x(C[o]))!=null)return a}function x(w){var S=Sn(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?hd.Might:hd.Not;if(S&&w!=="-")return hd.Must}return hd.Not}var jme=Yn();function Ear(e,t){S0(jme.get(e)==null&&t),jme.set(e,t)}function Rar(e,t,n){var r=jme.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var gWe=mo(),Iar=mo(),NSe=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Ta(this.get("color",!0)),o=this.get("colorLayer",!0);return rvt(this,gWe,i,o,t,n,r)},e.prototype.clearColorPalette=function(){Dar(this,gWe)},e})();function Hme(e,t,n,r){var i=Ta(e.get(["aria","decal","decals"]));return rvt(e,Iar,i,null,t,n,r)}function Par(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function rvt(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var u=a==null||!r?n:Par(r,a);if(u=u||n,!(!u||!u.length)){var d=u[l];return i&&(c[i]=d),s.paletteIdx=(l+1)%u.length,d}}function Dar(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var cV,p_,mWe,vWe="\0_ec_inner",kar=1,FSe=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i,o,a,s){o=o||{},this.option=null,this._theme=new _o(o),this._locale=new _o(a),this._optionManager=s},t.prototype.setOption=function(n,r,i){var o=MWe(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,r){return this._resetOption(n,MWe(r))},t.prototype._resetOption=function(n,r){var i=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");!this.option||n==="recreate"?mWe(this,a):(this.restoreData(),this._mergeOption(a,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&ye(l,function(c){i=!0,this._mergeOption(c,r)},this)}return i},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Yn(),c=r&&r.replaceMergeMainTypeMap;zar(this),ye(n,function(d,p){d!=null&&(Ri.hasClass(p)?p&&(s.push(p),l.set(p,!0)):i[p]=i[p]==null?Or(d):ei(i[p],d,!0))}),c&&c.each(function(d,p){Ri.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),Ri.topologicalTravel(s,Ri.getAllClassMainTypes(),u,this);function u(d){var p=Rar(this,d,Ta(n[d])),h=o.get(d),g=h?c&&c.get(d)?"replaceMerge":"normalMerge":"replaceAll",m=Ugt(h,p,g);oir(m,d,Ri),i[d]=null,o.set(d,null),a.set(d,0);var v=[],y=[],M=0,C;ye(m,function(x,w){var S=x.existing,A=x.newOption;if(!A)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var z=d==="series",O=Ri.getClass(d,x.keyInfo.subType,!z);if(!O)return;if(d==="tooltip"){if(C)return;C=!0}if(S&&S.constructor===O)S.name=x.keyInfo.name,S.mergeOption(A,this),S.optionUpdated(A,!1);else{var T=Nt({componentIndex:w},x.keyInfo);S=new O(A,this,this,T),Nt(S,T),x.brandNew&&(S.__requireNewView=!0),S.init(A,this,this),S.optionUpdated(null,!0)}}S?(v.push(S.option),y.push(S),M++):(v.push(void 0),y.push(void 0))},this),i[d]=v,o.set(d,y),a.set(d,M),d==="series"&&cV(this)}this._seriesIndices||cV(this)},t.prototype.getOption=function(){var n=Or(this.option);return ye(n,function(r,i){if(Ri.hasClass(i)){for(var o=Ta(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!dq(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[vWe],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a<i.length;a++)if(i[a])return i[a]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,o=n.id,a=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],ye(Ta(i),function(c){s[c]&&l.push(s[c])})):o!=null?l=bWe("id",o,s):a!=null?l=bWe("name",a,s):l=ko(s,function(c){return!!c}),yWe(l,n)},t.prototype.findComponents=function(n){var r=n.query,i=n.mainType,o=s(r),a=o?this.queryComponents(o):ko(this._componentsMap.get(i),function(c){return!!c});return l(yWe(a,n));function s(c){var u=i+"Index",d=i+"Id",p=i+"Name";return c&&(c[u]!=null||c[d]!=null||c[p]!=null)?{mainType:i,index:c[u],id:c[d],name:c[p]}:null}function l(c){return n.filter?ko(c,n.filter):c}},t.prototype.eachComponent=function(n,r,i){var o=this._componentsMap;if(fr(n)){var a=r,s=n;o.each(function(d,p){for(var h=0;d&&h<d.length;h++){var g=d[h];g&&s.call(a,p,g,g.componentIndex)}})}else for(var l=Sn(n)?o.get(n):xr(n)?this.findComponents(n):null,c=0;l&&c<l.length;c++){var u=l[c];u&&r.call(i,u,u.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=Zc(n,null);return ko(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return ko(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return ko(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){p_(this),ye(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)},this)},t.prototype.eachRawSeries=function(n,r){ye(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,i){p_(this),ye(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&r.call(i,a,o)},this)},t.prototype.eachRawSeriesByType=function(n,r,i){return ye(this.getSeriesByType(n),r,i)},t.prototype.isSeriesFiltered=function(n){return p_(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){p_(this);var i=[];ye(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];n.call(r,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=Yn(i)},t.prototype.restoreData=function(n){cV(this);var r=this._componentsMap,i=[];r.each(function(o,a){Ri.hasClass(a)&&i.push(a)}),Ri.topologicalTravel(i,Ri.getAllClassMainTypes(),function(o){ye(r.get(o),function(a){a&&(o!=="series"||!Lar(a,n))&&a.restoreData()})})},t.internalField=(function(){cV=function(n){var r=n._seriesIndices=[];ye(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=Yn(r)},p_=function(n){},mWe=function(n,r){n.option={},n.option[vWe]=kar,n._componentsMap=Yn({series:[]}),n._componentsCount=Yn();var i=r.aria;xr(i)&&i.enabled==null&&(i.enabled=!0),_ar(r,n._theme.option),ei(r,Oar,!1),n._mergeOption(r,null)}})(),t})(_o);function Lar(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function _ar(e,t){var n=e.color&&!e.colorLayer;ye(t,function(r,i){i==="colorLayer"&&n||Ri.hasClass(i)||(typeof r=="object"?e[i]=e[i]?ei(e[i],r,!1):Or(r):e[i]==null&&(e[i]=r))})}function bWe(e,t,n){if(Ht(t)){var r=Yn();return ye(t,function(o){if(o!=null){var a=Zc(o,null);a!=null&&r.set(o,!0)}}),ko(n,function(o){return o&&r.get(o[e])})}else{var i=Zc(t,null);return ko(n,function(o){return o&&i!=null&&o[e]===i})}}function yWe(e,t){return t.hasOwnProperty("subType")?ko(e,function(n){return n&&n.subType===t.subType}):e}function MWe(e){var t=Yn();return e&&ye(Ta(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}jl(FSe,NSe);var Nar=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ivt=(function(){function e(t){ye(Nar,function(n){this[n]=En(t[n],t)},this)}return e})(),Eae={},sk=(function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];ye(Eae,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){ye(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){Eae[t]=n},e.get=function(t){return Eae[t]},e})(),Far=/^(min|max)?(.+)$/,War=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(ye(Ta(t.series),function(a){a&&a.data&&h1(a.data)&&iq(a.data)}),ye(Ta(t.dataset),function(a){a&&a.source&&h1(a.source)&&iq(a.source)})),t=Or(t);var i=this._optionBackup,o=qar(t,n,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Or(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var i=t.getComponent("timeline");i&&(n=Or(r[i.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,c=i.length;l<c;l++)Bar(i[l].query,n,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!Har(a,this._currentMediaIndices)&&(s=Vt(a,function(u){return Or(u===-1?o.option:i[u].option)})),this._currentMediaIndices=a,s},e})();function qar(e,t,n){var r=[],i,o,a=e.baseOption,s=e.timeline,l=e.options,c=e.media,u=!!e.media,d=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((d||u)&&(e.options=e.media=null),o=e),u&&Ht(c)&&ye(c,function(h){h&&h.option&&(h.query?r.push(h):i||(i=h))}),p(o),ye(l,function(h){return p(h)}),ye(r,function(h){return p(h.option)});function p(h){ye(t,function(g){g(h,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function Bar(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return ye(e,function(o,a){var s=a.match(Far);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();jar(r[c],o,l)||(i=!1)}}),i}function jar(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function Har(e,t){return e.join(",")===t.join(",")}var Ig=ye,vq=xr,CWe=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Rae(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=CWe.length;n<r;n++){var i=CWe[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?ei(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?ei(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function a0(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,br(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function dN(e){a0(e,"itemStyle"),a0(e,"lineStyle"),a0(e,"areaStyle"),a0(e,"label"),a0(e,"labelLine"),a0(e,"upperLabel"),a0(e,"edgeLabel")}function Mc(e,t){var n=vq(e)&&e[t],r=vq(n)&&n.textStyle;if(r)for(var i=0,o=zFe.length;i<o;i++){var a=zFe[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function Yh(e){e&&(dN(e),Mc(e,"label"),e.emphasis&&Mc(e.emphasis,"label"))}function Var(e){if(vq(e)){Rae(e),dN(e),Mc(e,"label"),Mc(e,"upperLabel"),Mc(e,"edgeLabel"),e.emphasis&&(Mc(e.emphasis,"label"),Mc(e.emphasis,"upperLabel"),Mc(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Rae(t),Yh(t));var n=e.markLine;n&&(Rae(n),Yh(n));var r=e.markArea;r&&Yh(r);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var o=e.links||e.edges;if(o&&!h1(o))for(var a=0;a<o.length;a++)Yh(o[a]);ye(e.categories,function(c){dN(c)})}if(i&&!h1(i))for(var a=0;a<i.length;a++)Yh(i[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)Yh(s[a]);if(n=e.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)Ht(l[a])?(Yh(l[a][0]),Yh(l[a][1])):Yh(l[a]);e.type==="gauge"?(Mc(e,"axisLabel"),Mc(e,"title"),Mc(e,"detail")):e.type==="treemap"?(a0(e.breadcrumb,"itemStyle"),ye(e.levels,function(c){dN(c)})):e.type==="tree"&&dN(e.leaves)}}function G2(e){return Ht(e)?e:e?[e]:[]}function xWe(e){return(Ht(e)?e[0]:e)||{}}function Gar(e,t){Ig(G2(e.series),function(r){vq(r)&&Var(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ig(n,function(r){Ig(G2(e[r]),function(i){i&&(Mc(i,"axisLabel"),Mc(i.axisPointer,"label"))})}),Ig(G2(e.parallel),function(r){var i=r&&r.parallelAxisDefault;Mc(i,"axisLabel"),Mc(i&&i.axisPointer,"label")}),Ig(G2(e.calendar),function(r){a0(r,"itemStyle"),Mc(r,"dayLabel"),Mc(r,"monthLabel"),Mc(r,"yearLabel")}),Ig(G2(e.radar),function(r){Mc(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),Ig(G2(e.geo),function(r){vq(r)&&(Yh(r),Ig(G2(r.regions),function(i){Yh(i)}))}),Ig(G2(e.timeline),function(r){Yh(r),a0(r,"label"),a0(r,"itemStyle"),a0(r,"controlStyle",!0);var i=r.data;Ht(i)&&ye(i,function(o){xr(o)&&(a0(o,"label"),a0(o,"itemStyle"))})}),Ig(G2(e.toolbox),function(r){a0(r,"iconStyle"),Ig(r.feature,function(i){a0(i,"iconStyle")})}),Mc(xWe(e.axisPointer),"label"),Mc(xWe(e.tooltip).axisPointer,"label")}function $ar(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function Uar(e,t,n,r){for(var i=t.split(","),o=e,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];o[i[s]]==null&&(o[i[s]]=n)}function wWe(e){e&&ye(Xar,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Xar=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Yar=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Iae=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function h_(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Iae.length;n++){var r=Iae[n][1],i=Iae[n][0];t[r]!=null&&(t[i]=t[r])}}function SWe(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function AWe(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Kar(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function ovt(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&ovt(e[n].children,t)}function avt(e,t){Gar(e,t),e.series=Ta(e.series),ye(e.series,function(n){if(xr(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),SWe(n.label);var i=n.data;if(i&&!h1(i))for(var o=0;o<i.length;o++)SWe(i[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var a=$ar(n,"pointer.color");a!=null&&Uar(n,"itemStyle.color",a)}else if(r==="bar"){h_(n),h_(n.backgroundStyle),h_(n.emphasis);var i=n.data;if(i&&!h1(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(h_(i[o]),h_(i[o]&&i[o].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),AWe(n),ovt(n.data,AWe)}else r==="graph"||r==="sankey"?Kar(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&br(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),wWe(n)}}),e.dataRange&&(e.visualMap=e.dataRange),ye(Yar,function(n){var r=e[n];r&&(Ht(r)||(r=[r]),ye(r,function(i){wWe(i)}))})}function Qar(e){var t=Yn();e.eachSeries(function(n){var r=n.get("stack");if(r){var i=t.get(r)||t.set(r,[]),o=n.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(Zar)}function Zar(e){ye(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(c,u,d){var p=a.get(t.stackedDimension,d);if(isNaN(p))return i;var h,g;s?g=a.getRawIndex(d):h=a.get(t.stackedByDimension,d);for(var m=NaN,v=n-1;v>=0;v--){var y=e[v];if(s||(g=y.data.rawIndexOf(y.stackedByDimension,h)),g>=0){var M=y.data.getByRawIndex(y.stackResultDimension,g);if(l==="all"||l==="positive"&&M>0||l==="negative"&&M<0||l==="samesign"&&p>=0&&M>0||l==="samesign"&&p<=0&&M<0){p=Yrr(p,M),m=M;break}}}return r[0]=p,r[1]=m,r})})}var CJ=(function(){function e(t){this.data=t.data||(t.sourceFormat===t2?{}:[]),this.sourceFormat=t.sourceFormat||Zmt,this.seriesLayoutBy=t.seriesLayoutBy||Mb,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&tvt(this,r)===hd.Must&&(i.type="ordinal")}}return e})();function WSe(e){return e instanceof CJ}function Vme(e,t,n){n=n||svt(e);var r=t.seriesLayoutBy,i=esr(e,n,r,t.sourceHeader,t.dimensions),o=new CJ({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Or(t)});return o}function qSe(e){return new CJ({data:e,sourceFormat:h1(e)?_x:eg})}function Jar(e){return new CJ({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Or(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function svt(e){var t=Zmt;if(h1(e))t=_x;else if(Ht(e)){e.length===0&&(t=z0);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(Ht(i)||h1(i)){t=z0;break}else if(xr(i)){t=tg;break}}}}else if(xr(e)){for(var o in e)if(Fn(e,o)&&Sd(e[o])){t=t2;break}}return t}function esr(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:OWe(i),startIndex:a,dimensionsDetectedCount:o};if(t===z0){var s=e;r==="auto"||r==null?zWe(function(c){c!=null&&c!=="-"&&(Sn(c)?a==null&&(a=1):a=0)},n,s,10):a=yo(r)?r:r?1:0,!i&&a===1&&(i=[],zWe(function(c,u){i[u]=c!=null?c+"":""},n,s,1/0)),o=i?i.length:n===ak?s.length:s[0]?s[0].length:null}else if(t===tg)i||(i=tsr(e));else if(t===t2)i||(i=[],ye(e,function(c,u){i.push(u)}));else if(t===eg){var l=KD(e[0]);o=Ht(l)&&l.length||1}return{startIndex:a,dimensionsDefine:OWe(i),dimensionsDetectedCount:o}}function tsr(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return ji(n)}function OWe(e){if(e){var t=Yn();return Vt(e,function(n,r){n=xr(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i})}}function zWe(e,t,n,r){if(t===ak)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)e(o[i],i)}function lvt(e){var t=e.sourceFormat;return t===tg||t===t2}var dA,pA,hA,TWe,EWe,cvt=(function(){function e(t,n){var r=WSe(t)?t:qSe(t);this._source=r;var i=this._data=r.data;r.sourceFormat===_x&&(this._offset=0,this._dimSize=n,this._data=i),EWe(this,i,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;EWe=function(a,s,l){var c=l.sourceFormat,u=l.seriesLayoutBy,d=l.startIndex,p=l.dimensionsDefine,h=TWe[BSe(c,u)];if(Nt(a,h),c===_x)a.getItem=n,a.count=i,a.fillStorage=r;else{var g=uvt(c,u);a.getItem=En(g,null,s,d,p);var m=dvt(c,u);a.count=En(m,null,s,d,p)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,u=c*a,d=0;d<c;d++)s[d]=l[u+d];return s},r=function(a,s,l,c){for(var u=this._data,d=this._dimSize,p=0;p<d;p++){for(var h=c[p],g=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],v=s-a,y=l[p],M=0;M<v;M++){var C=u[M*d+p];y[a+M]=C,C<g&&(g=C),C>m&&(m=C)}h[0]=g,h[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};TWe=(t={},t[z0+"_"+Mb]={pure:!0,appendData:o},t[z0+"_"+ak]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[tg]={pure:!0,appendData:o},t[t2]={pure:!0,appendData:function(a){var s=this._data;ye(a,function(l,c){for(var u=s[c]||(s[c]=[]),d=0;d<(l||[]).length;d++)u.push(l[d])})}},t[eg]={appendData:o},t[_x]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}})(),e})(),RWe=function(e,t,n,r){return e[r]},nsr=(dA={},dA[z0+"_"+Mb]=function(e,t,n,r){return e[r+t]},dA[z0+"_"+ak]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},dA[tg]=RWe,dA[t2]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=e[s];o[a]=l?l[r]:null}return o},dA[eg]=RWe,dA);function uvt(e,t){var n=nsr[BSe(e,t)];return n}var IWe=function(e,t,n){return e.length},rsr=(pA={},pA[z0+"_"+Mb]=function(e,t,n){return Math.max(0,e.length-t)},pA[z0+"_"+ak]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},pA[tg]=IWe,pA[t2]=function(e,t,n){var r=n[0].name,i=e[r];return i?i.length:0},pA[eg]=IWe,pA);function dvt(e,t){var n=rsr[BSe(e,t)];return n}var Pae=function(e,t,n){return e[t]},isr=(hA={},hA[z0]=Pae,hA[tg]=function(e,t,n){return e[n]},hA[t2]=Pae,hA[eg]=function(e,t,n){var r=KD(e);return r instanceof Array?r[t]:r},hA[_x]=Pae,hA);function pvt(e){var t=isr[e];return t}function BSe(e,t){return e===z0?e+"_"+t:e}function DP(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),o=i.getSource().sourceFormat;if(n!=null){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return pvt(o)(r,a,s)}else{var l=r;return o===eg&&(l=KD(r)),l}}}}var osr=/\{@(.+?)\}/g,xJ=(function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),i=this.getRawValue(t,n),o=r.getRawIndex(t),a=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),c=l&&l[r.getItemVisual(t,"drawType")||"fill"],u=l&&l.stroke,d=this.mainType,p=d==="series",h=r.userOutput&&r.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:c,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(a&&(l.value=a.interpolatedValue),i!=null&&Ht(l.value)&&(l.value=l.value[i]),!o){var c=s.getItemModel(t);o=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(fr(o))return l.status=n,l.dimensionIndex=i,o(l);if(Sn(o)){var u=DSe(o,l);return u.replace(osr,function(d,p){var h=p.length,g=p;g.charAt(0)==="["&&g.charAt(h-1)==="]"&&(g=+g.slice(1,h-1));var m=DP(s,t,g);if(a&&Ht(a.interpolatedValue)){var v=s.getDimensionIndex(g);v>=0&&(m=a.interpolatedValue[v])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,n){return DP(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function PWe(e){var t,n;return xr(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function RF(e){return new asr(e)}var asr=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=u(this._modBy),s=this._modDataCount||0,l=u(t&&t.modBy),c=t&&t.modDataCount||0;(a!==l||s!==c)&&(o="reset");function u(M){return!(M>=1)&&(M=1),M}var d;(this._dirty||o==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=c;var p=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,g=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(d||h<g)){var m=this._progress;if(Ht(m))for(var v=0;v<m.length;v++)this._doProgress(m[v],h,g,l,c);else this._doProgress(m,h,g,l,c)}this._dueIndex=g;var y=this._settedOutputEnd!=null?this._settedOutputEnd:g;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,i,o){DWe.reset(n,r,i,o),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:DWe.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),Ht(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),DWe=(function(){var e,t,n,r,i,o={reset:function(l,c,u,d){t=l,e=c,n=u,r=d,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%i*n+Math.ceil(t/i),c=t>=e?null:l<r?l:t;return t++,c}})();function Nx(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!yo(e)&&e!=null&&e!=="-"&&(e=+dh(e)),e==null||e===""?NaN:Number(e))}var ssr=Yn({number:function(e){return parseFloat(e)},time:function(e){return+dh(e)},trim:function(e){return Sn(e)?Cf(e):e}});function hvt(e){return ssr.get(e)}var fvt={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},lsr=(function(){function e(t,n){if(!yo(n)){var r="";Ko(r)}this._opFn=fvt[t],this._rvalFloat=_b(n)}return e.prototype.evaluate=function(t){return yo(t)?this._opFn(t,this._rvalFloat):this._opFn(_b(t),this._rvalFloat)},e})(),gvt=(function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=yo(t)?t:_b(t),i=yo(n)?n:_b(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=Sn(t),l=Sn(n);s&&(r=l?t:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},e})(),csr=(function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=_b(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=_b(t)===this._rvalFloat)}return this._isEQ?n:!n},e})();function usr(e,t){return e==="eq"||e==="ne"?new csr(e==="eq",t):Fn(fvt,e)?new lsr(e,t):null}var dsr=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return Nx(t,n)},e})();function psr(e,t){var n=new dsr,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==Mb&&Ko(a);var s=[],l={},c=e.dimensionsDefine;if(c)ye(c,function(m,v){var y=m.name,M={index:v,name:y,displayName:m.displayName};if(s.push(M),y!=null){var C="";Fn(l,y)&&Ko(C),l[y]=M}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=uvt(i,Mb);t.__isBuiltIn&&(n.getRawDataItem=function(m){return d(r,o,s,m)},n.getRawData=En(hsr,null,e)),n.cloneRawData=En(fsr,null,e);var p=dvt(i,Mb);n.count=En(p,null,r,o,s);var h=pvt(i);n.retrieveValue=function(m,v){var y=d(r,o,s,m);return g(y,v)};var g=n.retrieveValueFromItem=function(m,v){if(m!=null){var y=s[v];if(y)return h(m,v,y.name)}};return n.getDimensionInfo=En(gsr,null,s,l),n.cloneAllDimensionInfo=En(msr,null,s),n}function hsr(e){var t=e.sourceFormat;if(!jSe(t)){var n="";Ko(n)}return e.data}function fsr(e){var t=e.sourceFormat,n=e.data;if(!jSe(t)){var r="";Ko(r)}if(t===z0){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}else if(t===tg){for(var i=[],o=0,a=n.length;o<a;o++)i.push(Nt({},n[o]));return i}}function gsr(e,t,n){if(n!=null){if(yo(n)||!isNaN(n)&&!Fn(t,n))return e[n];if(Fn(t,n))return t[n]}}function msr(e){return Or(e)}var mvt=Yn();function vsr(e){e=Or(e);var t=e.type,n="";t||Ko(n);var r=t.split(":");r.length!==2&&Ko(n);var i=!1;r[0]==="echarts"&&(t=r[1],i=!0),e.__isBuiltIn=i,mvt.set(t,e)}function bsr(e,t,n){var r=Ta(e),i=r.length,o="";i||Ko(o);for(var a=0,s=i;a<s;a++){var l=r[a];t=ysr(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function ysr(e,t,n,r){var i="";t.length||Ko(i),xr(e)||Ko(i);var o=e.type,a=mvt.get(o);a||Ko(i);var s=Vt(t,function(c){return psr(c,a)}),l=Ta(a.transform({upstream:s[0],upstreamList:s,config:Or(e.config)}));return Vt(l,function(c,u){var d="";xr(c)||Ko(d),c.data||Ko(d);var p=svt(c.data);jSe(p)||Ko(d);var h,g=t[0];if(g&&u===0&&!c.dimensions){var m=g.startIndex;m&&(c.data=g.data.slice(0,m).concat(c.data)),h={seriesLayoutBy:Mb,sourceHeader:m,dimensions:g.metaRawOption.dimensions}}else h={seriesLayoutBy:Mb,sourceHeader:0,dimensions:c.dimensions};return Vme(c.data,h,null)})}function jSe(e){return e===z0||e===tg}var wJ="undefined",Msr=typeof Uint32Array===wJ?Array:Uint32Array,Csr=typeof Uint16Array===wJ?Array:Uint16Array,vvt=typeof Int32Array===wJ?Array:Int32Array,kWe=typeof Float64Array===wJ?Array:Float64Array,bvt={float:kWe,int:vvt,ordinal:Array,number:Array,time:kWe},Dae;function jE(e){return e>65535?Msr:Csr}function HE(){return[1/0,-1/0]}function xsr(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function LWe(e,t,n,r,i){var o=bvt[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),c=0;c<s;c++)l[c]=a[c];e[t]=l}}else e[t]=new o(r)}var Gme=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Yn()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=Dae[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[],lvt(i),this._dimensions=Vt(n,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var r=this._calcDimNameToIdx,i=this._dimensions,o=r.get(t);if(o!=null){if(i[o].type===n)return o}else o=i.length;return i[o]={type:n},r.set(t,o),this._chunks[o]=new bvt[n||"float"](this._rawCount),this._rawExtent[o]=HE(),o},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,a=i.ordinalOffset||0,s=r.length;a===0&&(o[t]=HE());for(var l=o[t],c=a;c<s;c++){var u=r[c]=n.parseAndCollect(r[c]);isNaN(u)||(l[0]=Math.min(u,l[0]),l[1]=Math.max(u,l[1]))}i.ordinalMeta=n,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),c=0;c<o;c++){var u=i[c];LWe(r,c,u.type,l,!0)}for(var d=[],p=s;p<l;p++)for(var h=p-s,g=0;g<o;g++){var u=i[g],m=Dae.arrayRows.call(this,t[h]||d,u.property,h,g);r[g][p]=m;var v=a[g];m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,c=Vt(a,function(M){return M.property}),u=0;u<s;u++){var d=a[u];l[u]||(l[u]=HE()),LWe(o,u,d.type,n,r)}if(i.fillStorage)i.fillStorage(t,n,o,l);else for(var p=[],h=t;h<n;h++){p=i.getItem(h,p);for(var g=0;g<s;g++){var m=o[g],v=this._dimValueGetter(p,c[g],h,g);m[h]=v;var y=l[g];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],i=[];if(n==null){n=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,a=i.length;o<a;o++)r.push(this.get(i[o],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var i=0,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(r+=a)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(o){isNaN(o)||n.push(o)});var r=n.sort(function(o,a){return o-a}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(n[a]<t)i=a+1;else if(n[a]>t)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,o=i[t],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,c=0,u=0,d=this.count();u<d;u++){var p=this.getRawIndex(u),h=n-o[p],g=Math.abs(h);g<=r&&((g<s||g===s&&h>=0&&l<0)&&(s=g,l=h,c=0),h===l&&(a[c++]=u))}return a.length=c,a},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var o=0;o<i;o++)t[o]=n[o]}else t=new r(n.buffer,0,i)}else{var r=jE(this._rawCount);t=new r(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),o=jE(r._rawCount),a=new o(i),s=[],l=t.length,c=0,u=t[0],d=r._chunks,p=0;p<i;p++){var h=void 0,g=r.getRawIndex(p);if(l===0)h=n(p);else if(l===1){var m=d[u][g];h=n(m,p)}else{for(var v=0;v<l;v++)s[v]=d[t[v]][g];s[v]=p,h=n.apply(null,s)}h&&(a[c++]=g)}return c<i&&(r._indices=a),r._count=c,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var i=ji(t),o=i.length;if(!o)return this;var a=n.count(),s=jE(n._rawCount),l=new s(a),c=0,u=i[0],d=t[u][0],p=t[u][1],h=n._chunks,g=!1;if(!n._indices){var m=0;if(o===1){for(var v=h[i[0]],y=0;y<r;y++){var M=v[y];(M>=d&&M<=p||isNaN(M))&&(l[c++]=m),m++}g=!0}else if(o===2){for(var v=h[i[0]],C=h[i[1]],x=t[i[1]][0],w=t[i[1]][1],y=0;y<r;y++){var M=v[y],S=C[y];(M>=d&&M<=p||isNaN(M))&&(S>=x&&S<=w||isNaN(S))&&(l[c++]=m),m++}g=!0}}if(!g)if(o===1)for(var y=0;y<a;y++){var A=n.getRawIndex(y),M=h[i[0]][A];(M>=d&&M<=p||isNaN(M))&&(l[c++]=A)}else for(var y=0;y<a;y++){for(var z=!0,A=n.getRawIndex(y),O=0;O<o;O++){var T=i[O],M=h[T][A];(M<t[T][0]||M>t[T][1])&&(z=!1)}z&&(l[c++]=n.getRawIndex(y))}return c<a&&(n._indices=l),n._count=c,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var i=t._chunks,o=[],a=n.length,s=t.count(),l=[],c=t._rawExtent,u=0;u<n.length;u++)c[n[u]]=HE();for(var d=0;d<s;d++){for(var p=t.getRawIndex(d),h=0;h<a;h++)l[h]=i[n[h]][p];l[a]=d;var g=r&&r.apply(null,l);if(g!=null){typeof g!="object"&&(o[0]=g,g=o);for(var u=0;u<g.length;u++){var m=n[u],v=g[u],y=c[m],M=i[m];M&&(M[p]=v),v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,o=i[t],a=this.count(),s=0,l=Math.floor(1/n),c=this.getRawIndex(0),u,d,p,h=new(jE(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));h[s++]=c;for(var g=1;g<a-1;g+=l){for(var m=Math.min(g+l,a-1),v=Math.min(g+l*2,a),y=(v+m)/2,M=0,C=m;C<v;C++){var x=this.getRawIndex(C),w=o[x];isNaN(w)||(M+=w)}M/=v-m;var S=g,A=Math.min(g+l,a),z=g-1,O=o[c];u=-1,p=S;for(var T=-1,I=0,C=S;C<A;C++){var x=this.getRawIndex(C),w=o[x];if(isNaN(w)){I++,T<0&&(T=x);continue}d=Math.abs((z-y)*(w-O)-(z-C)*(M-O)),d>u&&(u=d,p=x)}I>0&&I<A-S&&(h[s++]=Math.min(T,p),p=Math.max(T,p)),h[s++]=p,c=p}return h[s++]=this.getRawIndex(a-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},e.prototype.minmaxDownSample=function(t,n){for(var r=this.clone([t],!0),i=r._chunks,o=Math.floor(1/n),a=i[t],s=this.count(),l=new(jE(this._rawCount))(Math.ceil(s/o)*2),c=0,u=0;u<s;u+=o){var d=u,p=a[this.getRawIndex(d)],h=u,g=a[this.getRawIndex(h)],m=o;u+o>s&&(m=s-u);for(var v=0;v<m;v++){var y=this.getRawIndex(u+v),M=a[y];M<p&&(p=M,d=u+v),M>g&&(g=M,h=u+v)}var C=this.getRawIndex(d),x=this.getRawIndex(h);d<h?(l[c++]=C,l[c++]=x):(l[c++]=x,l[c++]=C)}return r._count=c,r._indices=l,r._updateGetRawIdx(),r},e.prototype.downSample=function(t,n,r,i){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/n),c=a[t],u=this.count(),d=o._rawExtent[t]=HE(),p=new(jE(this._rawCount))(Math.ceil(u/l)),h=0,g=0;g<u;g+=l){l>u-g&&(l=u-g,s.length=l);for(var m=0;m<l;m++){var v=this.getRawIndex(g+m);s[m]=c[v]}var y=r(s),M=this.getRawIndex(Math.min(g+i(s,y)||0,u-1));c[M]=y,y<d[0]&&(d[0]=y),y>d[1]&&(d[1]=y),p[h++]=M}return o._count=h,o._indices=p,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(r){case 0:n(o);break;case 1:n(i[t[0]][s],o);break;case 2:n(i[t[0]][s],i[t[1]][s],o);break;default:for(var l=0,c=[];l<r;l++)c[l]=i[t[l]][s];c[l]=o,n.apply(null,c)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],r=HE();if(!n)return r;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=r;for(var s=a[0],l=a[1],c=0;c<i;c++){var u=this.getRawIndex(c),d=n[u];d<s&&(s=d),d>l&&(l=d)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o<i.length;o++)r.push(i[o][n]);return r},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,o=t&&Wf(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?xsr(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Or(this._extent),t._rawExtent=Or(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(n,r,i,o){return Nx(n[o],this._dimensions[o])}Dae={arrayRows:t,objectRows:function(n,r,i,o){return Nx(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return Nx(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}})(),e})(),yvt=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(uV(t)){var a=t,s=void 0,l=void 0,c=void 0;if(r){var u=n[0];u.prepareSource(),c=u.getSource(),s=c.data,l=c.sourceFormat,o=[u._getVersionSign()]}else s=a.get("data",!0),l=h1(s)?_x:eg,o=[];var d=this._getSourceMetaRawOption()||{},p=c&&c.metaRawOption||{},h=Xr(d.seriesLayoutBy,p.seriesLayoutBy)||null,g=Xr(d.sourceHeader,p.sourceHeader),m=Xr(d.dimensions,p.dimensions),v=h!==p.seriesLayoutBy||!!g!=!!p.sourceHeader||m;i=v?[Vme(s,{seriesLayoutBy:h,sourceHeader:g,dimensions:m},l)]:[]}else{var y=t;if(r){var M=this._applyTransform(n);i=M.sourceList,o=M.upstreamSignList}else{var C=y.get("source",!0);i=[Vme(C,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&NWe(o)}var a,s=[],l=[];return ye(t,function(c){c.prepareSource();var u=c.getSource(i||0),d="";i!=null&&!u&&NWe(d),s.push(u),l.push(c._getVersionSign())}),r?a=bsr(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[Jar(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[r];if(!s){var l=this._getUpstreamSourceManagers()[0];uV(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new Gme,s.initData(new cvt(n,t.length),t)),a[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(uV(t)){var n=_Se(t);return n?[n.getSourceManager()]:[]}else return Vt(Tar(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,i;if(uV(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},e})();function _We(e){var t=e.option.transform;t&&iq(e.option.transform)}function uV(e){return e.mainType==="series"}function NWe(e){throw new Error(e)}var wsr="line-height:1";function Mvt(e){var t=e.lineHeight;return t==null?wsr:"line-height:"+l0(t+"")+"px"}function Cvt(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+l0(r+"")+"px;color:"+l0(n)+";font-weight:"+l0(i+""),valueStyle:"font-size:"+l0(a+"")+"px;color:"+l0(o)+";font-weight:"+l0(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Ssr=[0,10,20,30],Asr=["",`
`,`

`,`


`];function Iu(e,t){return t.type=e,t}function $me(e){return e.type==="section"}function xvt(e){return $me(e)?Osr:zsr}function wvt(e){if($me(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return ye(e.blocks,function(i){var o=wvt(i);o>=t&&(t=o+ +(r&&(!o||$me(i)&&!i.noHeader)))}),t}return 0}function Osr(e,t,n,r){var i=t.noHeader,o=Tsr(wvt(t)),a=[],s=t.blocks||[];S0(!s||Ht(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Fn(c,l)){var u=new gvt(c[l],null);s.sort(function(m,v){return u.evaluate(m.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}ye(s,function(m,v){var y=t.valueFormatter,M=xvt(m)(y?Nt(Nt({},e),{valueFormatter:y}):e,m,v>0?o.html:0,r);M!=null&&a.push(M)});var d=e.renderMode==="richText"?a.join(o.richText):Ume(r,a.join(""),i?n:o.html);if(i)return d;var p=Bme(t.header,"ordinal",e.useUTC),h=Cvt(r,e.renderMode).nameStyle,g=Mvt(r);return e.renderMode==="richText"?Svt(e,p,h)+o.richText+d:Ume(r,'<div style="'+h+";"+g+';">'+l0(p)+"</div>"+d,n)}function zsr(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(x){return x=Ht(x)?x:[x],Vt(x,function(w,S){return Bme(w,Ht(h)?h[S]:h,c)})};if(!(o&&a)){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),p=o?"":Bme(l,"ordinal",c),h=t.valueType,g=a?[]:u(t.value,t.dataIndex),m=!s||!o,v=!s&&o,y=Cvt(r,i),M=y.nameStyle,C=y.valueStyle;return i==="richText"?(s?"":d)+(o?"":Svt(e,p,M))+(a?"":Isr(e,g,m,v,C)):Ume(r,(s?"":d)+(o?"":Esr(p,!s,M))+(a?"":Rsr(g,m,v,C)),n)}}function FWe(e,t,n,r,i,o){if(e){var a=xvt(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function Tsr(e){return{html:Ssr[e],richText:Asr[e]}}function Ume(e,t,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",o=Mvt(e);return'<div style="'+i+";"+o+';">'+t+r+"</div>"}function Esr(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+l0(e)+"</span>"}function Rsr(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=Ht(e)?e:[e],'<span style="'+o+";"+r+'">'+Vt(e,function(a){return l0(a)}).join("&nbsp;&nbsp;")+"</span>"}function Svt(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Isr(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Ht(t)?t.join("  "):t,o)}function Avt(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Kz(r)}function Ovt(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var kae=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Hgt()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,o=Umt({color:n,type:t,renderMode:r,markerId:i});return Sn(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Ht(n)?ye(n,function(o){return Nt(r,o)}):Nt(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e})();function zvt(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(n),l=Ht(s),c=Avt(t,n),u,d,p,h;if(a>1||l&&!a){var g=Psr(s,t,n,o,c);u=g.inlineValues,d=g.inlineValueTypes,p=g.blocks,h=g.inlineValues[0]}else if(a){var m=i.getDimensionInfo(o[0]);h=u=DP(i,n,o[0]),d=m.type}else h=u=l?s[0]:s;var v=lSe(t),y=v&&t.name||"",M=i.getName(n),C=r?y:M;return Iu("section",{header:y,noHeader:r||!v,sortParam:h,blocks:[Iu("nameValue",{markerType:"item",markerColor:c,name:C,noName:!Cf(C),value:u,valueType:d,dataIndex:n})].concat(p||[])})}function Psr(e,t,n,r,i){var o=t.getData(),a=Wf(e,function(d,p,h){var g=o.getDimensionInfo(h);return d=d||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],c=[];r.length?ye(r,function(d){u(DP(o,n,d),d)}):ye(e,u);function u(d,p){var h=o.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(a?c.push(Iu("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var cC=mo();function dV(e,t){return e.getName(t)||e.getId(t)}var B7="__universalTransitionEnabled",Ra=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=RF({count:ksr,reset:Lsr}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=cC(this).sourceManager=new yvt(this);o.prepareSource();var a=this.getInitialData(n,i);qWe(a,this),this.dataTask.context.data=a,cC(this).dataBeforeProcessed=a,WWe(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=mq(this),o=i?ok(n):{},a=this.subType;Ri.hasClass(a)&&(a+="Series"),ei(n,r.getTheme().get(this.subType)),ei(n,this.getDefaultOption()),$z(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&aw(n,o,i)},t.prototype.mergeOption=function(n,r){n=ei(this.option,n,!0),this.fillDataTextStyle(n.data);var i=mq(this);i&&aw(this.option,n,i);var o=cC(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);qWe(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,cC(this).dataBeforeProcessed=a,WWe(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!h1(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&$z(n[i],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=Xme(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return cC(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=Xme(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}cC(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Yn(n)},t.prototype.getSourceManager=function(){return cC(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return cC(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.formatTooltip=function(n,r,i){return zvt({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Ii.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=NSe.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],c=dV(a,l);i[c]=!1,this._selectedDataIndicesMap[c]=-1}}},t.prototype.toggleSelect=function(n,r){for(var i=[],o=0;o<n.length;o++)i[0]=n[o],this.isSelected(n[o],r)?this.unselect(i,r):this.select(i,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=ji(n),i=[],o=0;o<r.length;o++){var a=n[r[o]];a>=0&&i.push(a)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[dV(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[B7])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){xr(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,u=0;u<l;u++){var d=r[u],p=dV(n,d);c[p]=!0,this._selectedDataIndicesMap[p]=n.getRawIndex(d)}}else if(s==="single"||s===!0){var h=r[l-1],p=dV(n,h);a.selectedMap=(i={},i[p]=!0,i),this._selectedDataIndicesMap=(o={},o[p]=n.getRawIndex(h),o)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var o=n.getRawDataItem(i);o&&o.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return Ri.registerClass(n)},t.protoInitialize=(function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),t})(Ri);jl(Ra,xJ);jl(Ra,NSe);Zgt(Ra,Ri);function WWe(e){var t=e.name;lSe(e)||(e.name=Dsr(e)||t)}function Dsr(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return ye(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function ksr(e){return e.model.getRawData().count()}function Lsr(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_sr}function _sr(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function qWe(e,t){ye(EP(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Zr(Nsr,t))})}function Nsr(e,t){var n=Xme(e);return n&&n.setOutputEnd((t||this).count()),t}function Xme(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var cs=(function(){function e(){this.group=new Ir,this.uid=ik("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e})();uSe(cs);aJ(cs);function lk(){var e=mo();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}var Tvt=mo(),Fsr=lk(),da=(function(){function e(){this.group=new Ir,this.uid=ik("viewChart"),this.renderTask=RF({plan:Wsr,reset:qsr}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&jWe(o,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&jWe(o,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateLayout=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){Nw(this.group,t)},e.markUpdateMethod=function(t,n){Tvt(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function BWe(e,t,n){e&&hq(e)&&(t==="emphasis"?rM:iM)(e,n)}function jWe(e,t,n){var r=Uz(e,t),i=t&&t.highlightKey!=null?xor(t.highlightKey):null;r!=null?ye(Ta(r),function(o){BWe(e.getItemGraphicEl(o),n,i)}):e.eachItemGraphicEl(function(o){BWe(o,n,i)})}uSe(da);aJ(da);function Wsr(e){return Fsr(e.model)}function qsr(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&Tvt(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,n,r,i),Bsr[l]}var Bsr={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},yU="\0__throttleOriginMethod",HWe="\0__throttleRate",VWe="\0__throttleType";function SJ(e,t,n){var r,i=0,o=0,a=null,s,l,c,u;t=t||0;function d(){o=new Date().getTime(),a=null,e.apply(l,c||[])}var p=function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];r=new Date().getTime(),l=this,c=h;var m=u||t,v=u||n;u=null,s=r-(v?i:o)-m,clearTimeout(a),v?a=setTimeout(d,m):s>=0?d():a=setTimeout(d,-s),i=r};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(h){u=h},p}function ck(e,t,n,r){var i=e[t];if(i){var o=i[yU]||i,a=i[VWe],s=i[HWe];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=SJ(o,n,r==="debounce"),i[yU]=o,i[VWe]=r,i[HWe]=n}return i}}function bq(e,t){var n=e[t];n&&n[yU]&&(n.clear&&n.clear(),e[t]=n[yU])}var GWe=mo(),$We={itemStyle:Xz(Nmt,!0),lineStyle:Xz(_mt,!0)},jsr={lineStyle:"stroke",itemStyle:"fill"};function Evt(e,t){var n=e.visualStyleMapper||$We[t];return n||(console.warn("Unknown style type '"+t+"'."),$We.itemStyle)}function Rvt(e,t){var n=e.visualDrawType||jsr[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Hsr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=Evt(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Rvt(e,r),c=a[l],u=fr(c)?c:null,d=a.fill==="auto"||a.stroke==="auto";if(!a[l]||u||d){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||fr(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||fr(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,g){var m=e.getDataParams(g),v=Nt({},a);v[l]=u(m),h.setItemVisual(g,"style",v)}}}},f_=new _o,Vsr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Evt(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){f_.option=l[r];var c=i(f_),u=a.ensureUniqueItemVisual(s,"style");Nt(u,c),f_.option.decal&&(a.setItemVisual(s,"decal",f_.option.decal),f_.option.decal.dirty=!0),o in c&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Gsr={performRawSeries:!0,overallReset:function(e){var t=Yn();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,o=t.get(i);o||(o={},t.set(i,o)),GWe(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=GWe(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=Rvt(n,s);o.each(function(c){var u=o.getRawIndex(c);i[u]=c}),r.each(function(c){var u=i[c],d=o.getItemVisual(u,"colorFromPalette");if(d){var p=o.ensureUniqueItemVisual(u,"style"),h=r.getName(c)||c+"",g=r.count();p[l]=n.getColorFromPalette(h,a,g)}})}})}},pV=Math.PI;function $sr(e,t){t=t||{},br(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ir,r=new ao({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new oo({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new ao({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var a;return t.showSpinner&&(a=new qB({shape:{startAngle:-pV/2,endAngle:-pV/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:pV*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:pV*3/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),u=e.getHeight()/2;t.showSpinner&&a.setShape({cx:c,cy:u}),o.setShape({x:c-l,y:u-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Ivt=(function(){function e(t,n,r,i){this._stageTaskMap=Yn(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),a=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=Yn();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;ye(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";S0(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var o=t.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var o=!1,a=this;ye(t,function(l,c){if(!(i.visualType&&i.visualType!==l.visualType)){var u=a._stageTaskMap.get(l.uid),d=u.seriesTaskMap,p=u.overallTask;if(p){var h,g=p.agentStubMap;g.each(function(v){s(i,v)&&(v.dirty(),h=!0)}),h&&p.dirty(),a.updatePayload(p,r);var m=a.getPerformArgs(p,i.block);g.each(function(v){v.perform(m)}),p.perform(m)&&(o=!0)}else d&&d.each(function(v,y){s(i,v)&&v.dirty();var M=a.getPerformArgs(v,i.block);M.skip=!l.performRawSeries&&n.isSeriesFiltered(v.context.model),a.updatePayload(v,r),v.perform(M)&&(o=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=Yn(),l=t.seriesType,c=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(u):l?r.eachRawSeriesByType(l,u):c&&c(r,i).each(u);function u(d){var p=d.uid,h=s.set(p,a&&a.get(p)||RF({plan:Qsr,reset:Zsr,count:elr}));h.context={model:d,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(d,h)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||RF({reset:Usr});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Yn(),c=t.seriesType,u=t.getTargetSeries,d=!0,p=!1,h="";S0(!t.createOnAllSeries,h),c?r.eachRawSeriesByType(c,g):u?u(r,i).each(g):(d=!1,ye(r.getSeries(),g));function g(m){var v=m.uid,y=l.set(v,s&&s.get(v)||(p=!0,RF({reset:Xsr,onDirty:Ksr})));y.context={model:m,overallProgress:d},y.agent=a,y.__block=d,o._pipe(m,y)}p&&a.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return fr(t)&&(t={overallReset:t,seriesType:tlr(t)}),t.uid=ik("stageHandler"),n&&(t.visualType=n),t},e})();function Usr(e){e.overallReset(e.ecModel,e.api,e.payload)}function Xsr(e){return e.overallProgress&&Ysr}function Ysr(){this.agent.dirty(),this.getDownstream().dirty()}function Ksr(){this.agent&&this.agent.dirty()}function Qsr(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Zsr(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ta(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Vt(t,function(n,r){return Pvt(r)}):Jsr}var Jsr=Pvt(0);function Pvt(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function elr(e){return e.data.count()}function tlr(e){MU=null;try{e(yq,Dvt)}catch{}return MU}var yq={},Dvt={},MU;kvt(yq,FSe);kvt(Dvt,ivt);yq.eachSeriesByType=yq.eachRawSeriesByType=function(e){MU=e};yq.eachComponent=function(e){e.mainType==="series"&&e.subType&&(MU=e.subType)};function kvt(e,t){for(var n in t.prototype)e[n]=Nl}var UWe=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const nlr={color:UWe,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],UWe]};var Zd="#B9B8CE",XWe="#100C2A",hV=function(){return{axisLine:{lineStyle:{color:Zd}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},YWe=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Lvt={darkMode:!0,color:YWe,backgroundColor:XWe,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Zd},pageTextStyle:{color:Zd}},textStyle:{color:Zd},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Zd}},dataZoom:{borderColor:"#71708A",textStyle:{color:Zd},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Zd}},timeline:{lineStyle:{color:Zd},label:{color:Zd},controlStyle:{color:Zd,borderColor:Zd}},calendar:{itemStyle:{color:XWe},dayLabel:{color:Zd},monthLabel:{color:Zd},yearLabel:{color:Zd}},timeAxis:hV(),logAxis:hV(),valueAxis:hV(),categoryAxis:hV(),line:{symbol:"circle"},graph:{color:YWe},gauge:{title:{color:Zd},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Zd},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Lvt.categoryAxis.splitLine.show=!1;var rlr=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},i={};if(Sn(t)){var o=eb(t);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};ye(t,function(l,c){for(var u=!1,d=0;d<a.length;d++){var p=a[d],h=c.lastIndexOf(p);if(h>0&&h===c.length-p.length){var g=c.slice(0,h);g!=="data"&&(n.mainType=g,n[p.toLowerCase()]=l,u=!0)}}s.hasOwnProperty(c)&&(r[c]=l,u=!0),u||(i[c]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=n.cptQuery,c=n.dataQuery;return u(l,a,"mainType")&&u(l,a,"subType")&&u(l,a,"index","componentIndex")&&u(l,a,"name")&&u(l,a,"id")&&u(c,o,"name")&&u(c,o,"dataIndex")&&u(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,i,o));function u(d,p,h,g){return d[h]==null||p[g||h]===d[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),Yme=["symbol","symbolSize","symbolRotate","symbolOffset"],KWe=Yme.concat(["symbolKeepAspect"]),ilr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a<Yme.length;a++){var s=Yme[a],l=e.get(s);fr(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Nt({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var c=ji(i);function u(d,p){for(var h=e.getRawValue(p),g=e.getDataParams(p),m=0;m<c.length;m++){var v=c[m];d.setItemVisual(p,v,i[v](h,g))}}return{dataEach:o?u:null}}},olr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(i,o){for(var a=i.getItemModel(o),s=0;s<KWe.length;s++){var l=KWe[s],c=a.getShallow(l,!0);c!=null&&i.setItemVisual(o,l,c)}}return{dataEach:n.hasItemOption?r:null}}};function HSe(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function VB(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function _vt(e,t,n,r){switch(n){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break}}function Nvt(e,t){function n(r,i){var o=[];return r.eachComponent({mainType:"series",subType:e,query:i},function(a){o.push(a.seriesIndex)}),o}ye([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(r){t(r[0],function(i,o,a){i=Nt({},i),a.dispatchAction(Nt(i,{type:r[1],seriesIndex:n(o,i)}))})})}function VE(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,c=i.selected,u=0;u<c.length;u++)if(c[u].seriesIndex===s){var d=a.getData(),p=Uz(d,i.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:Ht(p)?d.getName(p[0]):d.getName(p),selected:Sn(l)?l:Nt({},l)})}})}function alr(e,t,n){e.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(VE("map","selectchanged",t,i,r),VE("pie","selectchanged",t,i,r)):r.fromAction==="select"?(VE("map","selected",t,i,r),VE("pie","selected",t,i,r)):r.fromAction==="unselect"&&(VE("map","unselected",t,i,r),VE("pie","unselected",t,i,r))})}function bO(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var slr=Math.round(Math.random()*9),llr=typeof Object.defineProperty=="function",clr=(function(){function e(){this._id="__ec_inner_"+slr++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return llr?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),ulr=Di.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),dlr=Di.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),plr=Di.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,c=Math.asin(s/a),u=Math.cos(c)*a,d=Math.sin(c),p=Math.cos(c),h=a*.6,g=a*.7;e.moveTo(n-u,l+s),e.arc(n,l,a,Math.PI-c,Math.PI*2+c),e.bezierCurveTo(n+u-d*h,l+s+p*h,n,r-g,n,r),e.bezierCurveTo(n,r-g,n-u+d*h,l+s+p*h,n-u,l+s),e.closePath()}}),hlr=Di.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),flr={line:Jc,rect:ao,roundRect:ao,square:ao,circle:e2,diamond:dlr,pin:plr,arrow:hlr,triangle:ulr},glr={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},CU={};ye(flr,function(e,t){CU[t]=new e});var mlr=Di.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=uU(e,t,n),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!=="none"){var i=CU[r];i||(r="rect",i=CU[r]),glr[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function vlr(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function rc(e,t,n,r,i,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=CSe(e.slice(8),new ui(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=BB(e.slice(7),{},new ui(t,n,r,i),a?"center":"cover"):l=new mlr({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=vlr,o&&l.setColor(o),l}function uk(e){return Ht(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function $3(e,t){if(e!=null)return Ht(e)||(e=[e,e]),[vn(e[0],t[0])||0,vn(Xr(e[1],e[0]),t[1])||0]}function yO(e){return isFinite(e)}function blr(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=yO(r)?r:0,i=yO(i)?i:1,o=yO(o)?o:0,a=yO(a)?a:0;var s=e.createLinearGradient(r,o,i,a);return s}function ylr(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*r+n.x,s=s*i+n.y,l=l*o),a=yO(a)?a:.5,s=yO(s)?s:.5,l=l>=0&&yO(l)?l:.5;var c=e.createRadialGradient(a,s,0,a,s,l);return c}function Kme(e,t,n){for(var r=t.type==="radial"?ylr(e,t,n):blr(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Mlr(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function fV(e){return parseInt(e,10)}function jR(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||fV(s[r])||fV(e.style[r]))-(fV(s[o])||0)-(fV(s[a])||0)|0}function Clr(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:yo(e)?[e]:Ht(e)?e:null}function VSe(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Clr(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Vt(n,function(o){return o/i}),r/=i)}return[n,r]}var xlr=new Nb(!0);function xU(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function QWe(e){return typeof e=="string"&&e!=="none"}function wU(e){var t=e.fill;return t!=null&&t!=="none"}function ZWe(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function JWe(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Qme(e,t,n){var r=dSe(t.image,t.__image,n);if(sJ(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*bF),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function wlr(e,t,n,r){var i,o=xU(n),a=wU(n),s=n.strokePercent,l=s<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var u=t.path||xlr,d=t.__dirty;if(!r){var p=n.fill,h=n.stroke,g=a&&!!p.colorStops,m=o&&!!h.colorStops,v=a&&!!p.image,y=o&&!!h.image,M=void 0,C=void 0,x=void 0,w=void 0,S=void 0;(g||m)&&(S=t.getBoundingRect()),g&&(M=d?Kme(e,p,S):t.__canvasFillGradient,t.__canvasFillGradient=M),m&&(C=d?Kme(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=C),v&&(x=d||!t.__canvasFillPattern?Qme(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(w=d||!t.__canvasStrokePattern?Qme(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),g?e.fillStyle=M:v&&(x?e.fillStyle=x:a=!1),m?e.strokeStyle=C:y&&(w?e.strokeStyle=w:o=!1)}var A=t.getGlobalScale();u.setScale(A[0],A[1],t.segmentIgnoreThreshold);var z,O;e.setLineDash&&n.lineDash&&(i=VSe(t),z=i[0],O=i[1]);var T=!0;(c||d&MR)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),T=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),T&&u.rebuildPath(e,l?s:1),z&&(e.setLineDash(z),e.lineDashOffset=O),r||(n.strokeFirst?(o&&JWe(e,n),a&&ZWe(e,n)):(a&&ZWe(e,n),o&&JWe(e,n))),z&&e.setLineDash([])}function Slr(e,t,n){var r=t.__image=dSe(n.image,t.__image,t,t.onload);if(!(!r||!sJ(r))){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(r,c,u,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var c=n.sx,u=n.sy,d=a-c,p=s-u;e.drawImage(r,c,u,d,p,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function Alr(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||rw,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=VSe(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(xU(n)&&e.strokeText(i,n.x,n.y),wU(n)&&e.fillText(i,n.x,n.y)):(wU(n)&&e.fillText(i,n.x,n.y),xU(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var eqe=["shadowBlur","shadowOffsetX","shadowOffsetY"],tqe=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Fvt(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){np(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?JO.opacity:a}(r||t.blend!==n.blend)&&(o||(np(e,i),o=!0),e.globalCompositeOperation=t.blend||JO.blend);for(var s=0;s<eqe.length;s++){var l=eqe[s];(r||t[l]!==n[l])&&(o||(np(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(np(e,i),o=!0),e.shadowColor=t.shadowColor||JO.shadowColor),o}function nqe(e,t,n,r,i){var o=Mq(t,i.inHover),a=r?null:n&&Mq(n,i.inHover)||{};if(o===a)return!1;var s=Fvt(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(np(e,i),s=!0),QWe(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(np(e,i),s=!0),QWe(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(np(e,i),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,c=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||(np(e,i),s=!0),e.lineWidth=c)}for(var u=0;u<tqe.length;u++){var d=tqe[u],p=d[0];(r||o[p]!==a[p])&&(s||(np(e,i),s=!0),e[p]=o[p]||d[1])}return s}function Olr(e,t,n,r,i){return Fvt(e,Mq(t,i.inHover),n&&Mq(n,i.inHover),r,i)}function Wvt(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function zlr(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),Wvt(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function Tlr(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var rqe=1,iqe=2,oqe=3,aqe=4;function Elr(e){var t=wU(e),n=xU(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function np(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Mq(e,t){return t&&e.__hoverStyle||e.style}function GSe(e,t){MO(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function MO(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~Up,t.__isRendered=!1;return}var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||Mlr(o,a))&&(a&&a.length&&(np(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(np(e,n),e.save(),zlr(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u=t instanceof Di&&t.autoBatch&&Elr(t.style);s||Tlr(i,c.transform)?(np(e,n),Wvt(e,t)):u||np(e,n);var d=Mq(t,n.inHover);t instanceof Di?(n.lastDrawType!==rqe&&(l=!0,n.lastDrawType=rqe),nqe(e,t,c,l,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),wlr(e,t,d,u),u&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):t instanceof IP?(n.lastDrawType!==oqe&&(l=!0,n.lastDrawType=oqe),nqe(e,t,c,l,n),Alr(e,t,d)):t instanceof Du?(n.lastDrawType!==iqe&&(l=!0,n.lastDrawType=iqe),Olr(e,t,c,l,n),Slr(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==aqe&&(l=!0,n.lastDrawType=aqe),Rlr(e,t,n)),u&&r&&np(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Rlr(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},a,s;for(a=t.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),MO(e,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var c=0,u=i.length;c<u;c++){var l=i[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),MO(e,l,o,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Lae=new clr,sqe=new LB(100),lqe=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function kP(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type==="svg";e.dirty&&Lae.delete(e);var o=Lae.get(e);if(o)return o;var a=br(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Lae.set(e,s),e.dirty=!1,s;function l(c){for(var u=[n],d=!0,p=0;p<lqe.length;++p){var h=a[lqe[p]];if(h!=null&&!Ht(h)&&!Sn(h)&&!yo(h)&&typeof h!="boolean"){d=!1;break}u.push(h)}var g;if(d){g=u.join(",")+(i?"-svg":"");var m=sqe.get(g);m&&(i?c.svgElement=m:c.image=m)}var v=Bvt(a.dashArrayX),y=Ilr(a.dashArrayY),M=qvt(a.symbol),C=Plr(v),x=jvt(y),w=!i&&wm.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},A=O(),z;w&&(w.width=A.width*n,w.height=A.height*n,z=w.getContext("2d")),T(),d&&sqe.put(g,w||S),c.image=w,c.svgElement=S,c.svgWidth=A.width,c.svgHeight=A.height;function O(){for(var I=1,P=0,N=C.length;P<N;++P)I=AFe(I,C[P]);for(var F=1,P=0,N=M.length;P<N;++P)F=AFe(F,M[P].length);I*=F;var L=x*C.length*M.length;return{width:Math.max(1,Math.min(I,a.maxTileWidth)),height:Math.max(1,Math.min(L,a.maxTileHeight))}}function T(){z&&(z.clearRect(0,0,w.width,w.height),a.backgroundColor&&(z.fillStyle=a.backgroundColor,z.fillRect(0,0,w.width,w.height)));for(var I=0,P=0;P<y.length;++P)I+=y[P];if(I<=0)return;for(var N=-x,F=0,L=0,W=0;N<A.height;){if(F%2===0){for(var H=L/2%M.length,j=0,G=0,q=0;j<A.width*2;){for(var $=0,P=0;P<v[W].length;++P)$+=v[W][P];if($<=0)break;if(G%2===0){var U=(1-a.symbolSize)*.5,X=j+v[W][G]*U,Q=N+y[F]*U,re=v[W][G]*a.symbolSize,ee=y[F]*a.symbolSize,se=q/2%M[H].length;pe(X,Q,re,ee,M[H][se])}j+=v[W][G],++q,++G,G===v[W].length&&(G=0)}++W,W===v.length&&(W=0)}N+=y[F],++L,++F,F===y.length&&(F=0)}function pe(te,ce,oe,ae,ne){var le=i?1:n,he=rc(ne,te*le,ce*le,oe*le,ae*le,a.color,a.symbolKeepAspect);if(i){var be=r.painter.renderOneToVNode(he);be&&S.children.push(be)}else GSe(z,he)}}}}function qvt(e){if(!e||e.length===0)return[["rect"]];if(Sn(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Sn(e[n])){t=!1;break}if(t)return qvt([e]);for(var r=[],n=0;n<e.length;++n)Sn(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Bvt(e){if(!e||e.length===0)return[[0,0]];if(yo(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!yo(e[r])){n=!1;break}if(n)return Bvt([e]);for(var i=[],r=0;r<e.length;++r)if(yo(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=Vt(e[r],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function Ilr(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(yo(e)){var t=Math.ceil(e);return[t,t]}var n=Vt(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function Plr(e){return Vt(e,function(t){return jvt(t)})}function jvt(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function Dlr(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");if(s){var l=r.ensureUniqueItemVisual(a,"style");l.decal=kP(s,t)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=kP(i,t)}}})}var Fg=new Zf,Hvt={};function klr(e,t){Hvt[e]=t}function Vvt(e){return Hvt[e]}var Llr="5.6.0",_lr={zrender:"5.6.1"},Nlr=1,Flr=800,Wlr=900,qlr=1e3,Blr=2e3,jlr=5e3,Gvt=1e3,Hlr=1100,$Se=2e3,$vt=3e3,Vlr=4e3,AJ=4500,Glr=4600,$lr=5e3,Ulr=6e3,Uvt=7e3,Xvt={PROCESSOR:{FILTER:qlr,SERIES_FILTER:Flr,STATISTIC:jlr},VISUAL:{LAYOUT:Gvt,PROGRESSIVE_LAYOUT:Hlr,GLOBAL:$Se,CHART:$vt,POST_CHART_LAYOUT:Glr,COMPONENT:Vlr,BRUSH:$lr,CHART_ITEM:AJ,ARIA:Ulr,DECAL:Uvt}},Ud="__flagInMainProcess",L1="__pendingUpdate",_ae="__needsUpdateStatus",cqe=/^[a-zA-Z0-9_]+$/,Nae="__connectUpdateStatus",uqe=0,Xlr=1,Ylr=2;function Yvt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return Qvt(this,e,t)}}function Kvt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Qvt(this,e,t)}}function Qvt(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Zf.prototype[t].apply(e,n)}var Zvt=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Zf),Jvt=Zvt.prototype;Jvt.on=Kvt("on");Jvt.off=Kvt("off");var GE,Fae,gV,uC,Wae,qae,Bae,g_,m_,dqe,pqe,jae,hqe,mV,fqe,ebt,_h,gqe,SU=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this,new rlr)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},Sn(r)&&(r=tbt[r]),o._dom=n;var a="canvas",s="auto",l=!1;i.ssr&&Fgt(function(p){var h=_r(p),g=h.dataIndex;if(g!=null){var m=Yn();return m.set("series_index",h.seriesIndex),m.set("data_index",g),h.ssrType&&m.set("ssr_type",h.ssrType),m}});var c=o._zr=Sme(n,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Xr(i.useDirtyRect,l),useCoarsePointer:Xr(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=SJ(En(c.flush,c),17),r=Or(r),r&&avt(r,!0),o._theme=r,o._locale=dar(i.locale||Fmt),o._coordSysMgr=new sk;var u=o._api=fqe(o);function d(p,h){return p.__prio-h.__prio}return R7(OU,d),R7(Zme,d),o._scheduler=new Ivt(o,u,Zme,OU),o._messageCenter=new Zvt,o._initEvents(),o.resize=En(o.resize,o),c.animation.on("frame",o._onframe,o),dqe(c,o),pqe(c,o),iq(o),o}return t.prototype._onframe=function(){if(!this._disposed){gqe(this);var n=this._scheduler;if(this[L1]){var r=this[L1].silent;this[Ud]=!0;try{GE(this),uC.update.call(this,null,this[L1].updateParams)}catch(l){throw this[Ud]=!1,this[L1]=null,l}this._zr.flush(),this[Ud]=!1,this[L1]=null,g_.call(this,r),m_.call(this,r)}else if(n.unfinished){var i=Nlr,o=this._model,a=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),qae(this,o),n.performVisualTasks(o),mV(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[Ud]){if(this._disposed){this.id;return}var o,a,s;if(xr(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[Ud]=!0,!this._model||r){var l=new War(this._api),c=this._theme,u=this._model=new FSe;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,c,this._locale,l)}this._model.setOption(n,{replaceMerge:a},Jme);var d={seriesTransition:s,optionChanged:!0};if(i)this[L1]={silent:o,updateParams:d},this[Ud]=!1,this.getZr().wakeUp();else{try{GE(this),uC.update.call(this,null,d)}catch(p){throw this[L1]=null,this[Ud]=!1,p}this._ssr||this._zr.flush(),this[L1]=null,this[Ud]=!1,g_.call(this,o),m_.call(this,o)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ii.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ii.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return ye(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;ye(r,function(l){i.eachComponent({mainType:l},function(c){var u=a._componentsMap[c.__viewId];u.group.ignore||(o.push(u),u.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return ye(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(zU[i]){var l=s,c=s,u=-s,d=-s,p=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();ye(nz,function(C,x){if(C.group===i){var w=r?C.getZr().painter.getSvgDom().innerHTML:C.renderToCanvas(Or(n)),S=C.getDom().getBoundingClientRect();l=o(S.left,l),c=o(S.top,c),u=a(S.right,u),d=a(S.bottom,d),p.push({dom:w,left:S.left,top:S.top})}}),l*=h,c*=h,u*=h,d*=h;var g=u-l,m=d-c,v=wm.createCanvas(),y=Sme(v,{renderer:r?"svg":"canvas"});if(y.resize({width:g,height:m}),r){var M="";return ye(p,function(C){var x=C.left-l,w=C.top-c;M+='<g transform="translate('+x+","+w+')">'+C.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=M,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new ao({shape:{x:0,y:0,width:g,height:m},style:{fill:n.connectedBackgroundColor}})),ye(p,function(C){var x=new Du({style:{x:C.left*h-l,y:C.top*h-c,image:C.dom}});y.add(x)}),y.refreshImmediately(),v.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return Wae(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return Wae(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=AF(i,n);return ye(a,function(s,l){l.indexOf("Models")>=0&&ye(s,function(c){var u=c.coordinateSystem;if(u&&u.containPoint)o=o||!!u.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[c.__viewId];d&&d.containPoint&&(o=o||d.containPoint(r,c))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var i=this._model,o=AF(i,n,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?HSe(s,l,r):VB(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;ye(Klr,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,c=r==="globalout";if(c?l={}:s&&bO(s,function(g){var m=_r(g);if(m&&m.dataIndex!=null){var v=m.dataModel||a.getSeriesByIndex(m.seriesIndex);return l=v&&v.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=Nt({},m.eventData),!0},!0),l){var u=l.componentType,d=l.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",d=l.seriesIndex);var p=u&&d!=null&&a.getComponent(u,d),h=p&&n[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:h},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),ye(IF,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),ye(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),alr(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&Ygt(this.getDom(),XSe,"");var r=this,i=r._api,o=r._model;ye(r._componentsViews,function(a){a.dispose(o,i)}),ye(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete nz[r.id]},t.prototype.resize=function(n){if(!this[Ud]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=n&&n.silent;this[L1]&&(o==null&&(o=this[L1].silent),i=!0,this[L1]=null),this[Ud]=!0;try{i&&GE(this),uC.update.call(this,{type:"resize",animation:Nt({duration:0},n&&n.animation)})}catch(a){throw this[Ud]=!1,a}this[Ud]=!1,g_.call(this,o),m_.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(xr(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!eve[n]){var i=eve[n](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=Nt({},n);return r.type=IF[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(xr(r)||(r={silent:!!r}),!!AU[n.type]&&this._model){if(this[Ud]){this._pendingActions.push(n);return}var i=r.silent;Bae.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Ii.browser.weChat&&this._throttledZrFlush(),g_.call(this,i),m_.call(this,i)}},t.prototype.updateLabelLayout=function(){Fg.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){GE=function(d){var p=d._scheduler;p.restorePipelines(d._model),p.prepareStageTasks(),Fae(d,!0),Fae(d,!1),p.plan()},Fae=function(d,p){for(var h=d._model,g=d._scheduler,m=p?d._componentsViews:d._chartsViews,v=p?d._componentsMap:d._chartsMap,y=d._zr,M=d._api,C=0;C<m.length;C++)m[C].__alive=!1;p?h.eachComponent(function(S,A){S!=="series"&&x(A)}):h.eachSeries(x);function x(S){var A=S.__requireNewView;S.__requireNewView=!1;var z="_ec_"+S.id+"_"+S.type,O=!A&&v[z];if(!O){var T=eb(S.type),I=p?cs.getClass(T.main,T.sub):da.getClass(T.sub);O=new I,O.init(h,M),v[z]=O,m.push(O),y.add(O.group)}S.__viewId=O.__id=z,O.__alive=!0,O.__model=S,O.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!p&&g.prepareView(O,S,h,M)}for(var C=0;C<m.length;){var w=m[C];w.__alive?C++:(!p&&w.renderTask.dispose(),y.remove(w.group),w.dispose(h,M),m.splice(C,1),v[w.__id]===w&&delete v[w.__id],w.__id=w.group.__ecComponentInfo=null)}},gV=function(d,p,h,g,m){var v=d._model;if(v.setUpdatePayload(h),!g){ye([].concat(d._componentsViews).concat(d._chartsViews),w);return}var y={};y[g+"Id"]=h[g+"Id"],y[g+"Index"]=h[g+"Index"],y[g+"Name"]=h[g+"Name"];var M={mainType:g,query:y};m&&(M.subType=m);var C=h.excludeSeriesId,x;C!=null&&(x=Yn(),ye(Ta(C),function(S){var A=Zc(S,null);A!=null&&x.set(A,!0)})),v&&v.eachComponent(M,function(S){var A=x&&x.get(S.id)!=null;if(!A)if(QFe(h))if(S instanceof Ra)h.type===ez&&!h.notBlur&&!S.get(["emphasis","disabled"])&&hor(S,h,d._api);else{var z=vSe(S.mainType,S.componentIndex,h.name,d._api),O=z.focusSelf,T=z.dispatchers;h.type===ez&&O&&!h.notBlur&&kme(S.mainType,S.componentIndex,d._api),T&&ye(T,function(I){h.type===ez?rM(I):iM(I)})}else _me(h)&&S instanceof Ra&&(vor(S,h,d._api),YFe(S),_h(d))},d),v&&v.eachComponent(M,function(S){var A=x&&x.get(S.id)!=null;A||w(d[g==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},d);function w(S){S&&S.__alive&&S[p]&&S[p](S.__model,v,d._api,h)}},uC={prepareAndUpdate:function(d){GE(this),uC.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,p){var h=this._model,g=this._api,m=this._zr,v=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(d),y.restoreData(h,d),y.performSeriesTasks(h),v.create(h,g),y.performDataProcessorTasks(h,d),qae(this,h),v.update(h,g),n(h),y.performVisualTasks(h,d),jae(this,h,g,d,p);var M=h.get("backgroundColor")||"transparent",C=h.get("darkMode");m.setBackgroundColor(M),C!=null&&C!=="auto"&&m.setDarkMode(C),Fg.trigger("afterupdate",h,g)}},updateTransform:function(d){var p=this,h=this._model,g=this._api;if(h){h.setUpdatePayload(d);var m=[];h.eachComponent(function(y,M){if(y!=="series"){var C=p.getViewOfComponentModel(M);if(C&&C.__alive)if(C.updateTransform){var x=C.updateTransform(M,h,g,d);x&&x.update&&m.push(C)}else m.push(C)}});var v=Yn();h.eachSeries(function(y){var M=p._chartsMap[y.__viewId];if(M.updateTransform){var C=M.updateTransform(y,h,g,d);C&&C.update&&v.set(y.uid,1)}else v.set(y.uid,1)}),n(h),this._scheduler.performVisualTasks(h,d,{setDirty:!0,dirtyMap:v}),mV(this,h,g,d,{},v),Fg.trigger("afterupdate",h,g)}},updateView:function(d){var p=this._model;p&&(p.setUpdatePayload(d),da.markUpdateMethod(d,"updateView"),n(p),this._scheduler.performVisualTasks(p,d,{setDirty:!0}),jae(this,p,this._api,d,{}),Fg.trigger("afterupdate",p,this._api))},updateVisual:function(d){var p=this,h=this._model;h&&(h.setUpdatePayload(d),h.eachSeries(function(g){g.getData().clearAllVisual()}),da.markUpdateMethod(d,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,d,{visualType:"visual",setDirty:!0}),h.eachComponent(function(g,m){if(g!=="series"){var v=p.getViewOfComponentModel(m);v&&v.__alive&&v.updateVisual(m,h,p._api,d)}}),h.eachSeries(function(g){var m=p._chartsMap[g.__viewId];m.updateVisual(g,h,p._api,d)}),Fg.trigger("afterupdate",h,this._api))},updateLayout:function(d){uC.update.call(this,d)}},Wae=function(d,p,h,g){if(d._disposed){d.id;return}for(var m=d._model,v=d._coordSysMgr.getCoordinateSystems(),y,M=AF(m,h),C=0;C<v.length;C++){var x=v[C];if(x[p]&&(y=x[p](m,M,g))!=null)return y}},qae=function(d,p){var h=d._chartsMap,g=d._scheduler;p.eachSeries(function(m){g.updateStreamModes(m,h[m.__viewId])})},Bae=function(d,p){var h=this,g=this.getModel(),m=d.type,v=d.escapeConnect,y=AU[m],M=y.actionInfo,C=(M.update||"update").split(":"),x=C.pop(),w=C[0]!=null&&eb(C[0]);this[Ud]=!0;var S=[d],A=!1;d.batch&&(A=!0,S=Vt(d.batch,function(F){return F=br(Nt({},F),d),F.batch=null,F}));var z=[],O,T=_me(d),I=QFe(d);if(I&&vmt(this._api),ye(S,function(F){if(O=y.action(F,h._model,h._api),O=O||Nt({},F),O.type=M.event||O.type,z.push(O),I){var L=cSe(d),W=L.queryOptionMap,H=L.mainTypeSpecified,j=H?W.keys()[0]:"series";gV(h,x,F,j),_h(h)}else T?(gV(h,x,F,"series"),_h(h)):w&&gV(h,x,F,w.main,w.sub)}),x!=="none"&&!I&&!T&&!w)try{this[L1]?(GE(this),uC.update.call(this,d),this[L1]=null):uC[x].call(this,d)}catch(F){throw this[Ud]=!1,F}if(A?O={type:M.event||m,escapeConnect:v,batch:z}:O=z[0],this[Ud]=!1,!p){var P=this._messageCenter;if(P.trigger(O.type,O),T){var N={type:"selectchanged",escapeConnect:v,selected:bor(g),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};P.trigger(N.type,N)}}},g_=function(d){for(var p=this._pendingActions;p.length;){var h=p.shift();Bae.call(this,h,d)}},m_=function(d){!d&&this.trigger("updated")},dqe=function(d,p){d.on("rendered",function(h){p.trigger("rendered",h),d.animation.isFinished()&&!p[L1]&&!p._scheduler.unfinished&&!p._pendingActions.length&&p.trigger("finished")})},pqe=function(d,p){d.on("mouseover",function(h){var g=h.target,m=bO(g,hq);m&&(gor(m,h,p._api),_h(p))}).on("mouseout",function(h){var g=h.target,m=bO(g,hq);m&&(mor(m,h,p._api),_h(p))}).on("click",function(h){var g=h.target,m=bO(g,function(M){return _r(M).dataIndex!=null},!0);if(m){var v=m.selected?"unselect":"select",y=_r(m);p._api.dispatchAction({type:v,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(d){d.clearColorPalette(),d.eachSeries(function(p){p.clearColorPalette()})}function r(d){var p=[],h=[],g=!1;if(d.eachComponent(function(M,C){var x=C.get("zlevel")||0,w=C.get("z")||0,S=C.getZLevelKey();g=g||!!S,(M==="series"?h:p).push({zlevel:x,z:w,idx:C.componentIndex,type:M,key:S})}),g){var m=p.concat(h),v,y;R7(m,function(M,C){return M.zlevel===C.zlevel?M.z-C.z:M.zlevel-C.zlevel}),ye(m,function(M){var C=d.getComponent(M.type,M.idx),x=M.zlevel,w=M.key;v!=null&&(x=Math.max(v,x)),w?(x===v&&w!==y&&x++,y=w):y&&(x===v&&x++,y=""),v=x,C.setZLevel(x)})}}jae=function(d,p,h,g,m){r(p),hqe(d,p,h,g,m),ye(d._chartsViews,function(v){v.__alive=!1}),mV(d,p,h,g,m),ye(d._chartsViews,function(v){v.__alive||v.remove(p,h)})},hqe=function(d,p,h,g,m,v){ye(v||d._componentsViews,function(y){var M=y.__model;c(M,y),y.render(M,p,h,g),s(M,y),u(M,y)})},mV=function(d,p,h,g,m,v){var y=d._scheduler;m=Nt(m||{},{updatedSeries:p.getSeries()}),Fg.trigger("series:beforeupdate",p,h,m);var M=!1;p.eachSeries(function(C){var x=d._chartsMap[C.__viewId];x.__alive=!0;var w=x.renderTask;y.updatePayload(w,g),c(C,x),v&&v.get(C.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(M=!0),x.group.silent=!!C.get("silent"),a(C,x),YFe(C)}),y.unfinished=M||y.unfinished,Fg.trigger("series:layoutlabels",p,h,m),Fg.trigger("series:transition",p,h,m),p.eachSeries(function(C){var x=d._chartsMap[C.__viewId];s(C,x),u(C,x)}),o(d,p),Fg.trigger("series:afterupdate",p,h,m)},_h=function(d){d[_ae]=!0,d.getZr().wakeUp()},gqe=function(d){d[_ae]&&(d.getZr().storage.traverse(function(p){II(p)||i(p)}),d[_ae]=!1)};function i(d){for(var p=[],h=d.currentStates,g=0;g<h.length;g++){var m=h[g];m==="emphasis"||m==="blur"||m==="select"||p.push(m)}d.selected&&d.states.select&&p.push("select"),d.hoverState===uJ&&d.states.emphasis?p.push("emphasis"):d.hoverState===FB&&d.states.blur&&p.push("blur"),d.useStates(p)}function o(d,p){var h=d._zr,g=h.storage,m=0;g.traverse(function(v){v.isGroup||m++}),m>p.get("hoverLayerThreshold")&&!Ii.node&&!Ii.worker&&p.eachSeries(function(v){if(!v.preventUsingHoverLayer){var y=d._chartsMap[v.__viewId];y.__alive&&y.eachRendered(function(M){M.states.emphasis&&(M.states.emphasis.hoverLayer=!0)})}})}function a(d,p){var h=d.get("blendMode")||null;p.eachRendered(function(g){g.isGroup||(g.style.blend=h)})}function s(d,p){if(!d.preventAutoZ){var h=d.get("z")||0,g=d.get("zlevel")||0;p.eachRendered(function(m){return l(m,h,g,-1/0),!0})}}function l(d,p,h,g){var m=d.getTextContent(),v=d.getTextGuideLine(),y=d.isGroup;if(y)for(var M=d.childrenRef(),C=0;C<M.length;C++)g=Math.max(l(M[C],p,h,g),g);else d.z=p,d.zlevel=h,g=Math.max(d.z2,g);if(m&&(m.z=p,m.zlevel=h,isFinite(g)&&(m.z2=g+2)),v){var x=d.textGuideLineConfig;v.z=p,v.zlevel=h,isFinite(g)&&(v.z2=g+(x&&x.showAbove?1:-1))}return g}function c(d,p){p.eachRendered(function(h){if(!II(h)){var g=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function u(d,p){var h=d.getModel("stateAnimation"),g=d.isAnimationEnabled(),m=h.get("duration"),v=m>0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(y){if(y.states&&y.states.emphasis){if(II(y))return;if(y instanceof Di&&wor(y),y.__dirty){var M=y.prevStates;M&&y.useStates(M)}if(g){y.stateTransition=v;var C=y.getTextContent(),x=y.getTextGuideLine();C&&(C.stateTransition=v),x&&(x.stateTransition=v)}y.__dirty&&i(y)}})}fqe=function(d){return new((function(p){gt(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(g){for(;g;){var m=g.__ecComponentInfo;if(m!=null)return d._model.getComponent(m.mainType,m.index);g=g.parent}},h.prototype.enterEmphasis=function(g,m){rM(g,m),_h(d)},h.prototype.leaveEmphasis=function(g,m){iM(g,m),_h(d)},h.prototype.enterBlur=function(g){hmt(g),_h(d)},h.prototype.leaveBlur=function(g){mSe(g),_h(d)},h.prototype.enterSelect=function(g){fmt(g),_h(d)},h.prototype.leaveSelect=function(g){gmt(g),_h(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(g){return d.getViewOfComponentModel(g)},h.prototype.getViewOfSeriesModel=function(g){return d.getViewOfSeriesModel(g)},h})(ivt))(d)},ebt=function(d){function p(h,g){for(var m=0;m<h.length;m++){var v=h[m];v[Nae]=g}}ye(IF,function(h,g){d._messageCenter.on(g,function(m){if(zU[d.group]&&d[Nae]!==uqe){if(m&&m.escapeConnect)return;var v=d.makeActionFromEvent(m),y=[];ye(nz,function(M){M!==d&&M.group===d.group&&y.push(M)}),p(y,uqe),ye(y,function(M){M[Nae]!==Xlr&&M.dispatchAction(v)}),p(y,Ylr)}})})}})(),t})(Zf),USe=SU.prototype;USe.on=Yvt("on");USe.off=Yvt("off");USe.one=function(e,t,n){var r=this;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),r.off(e,i)}this.on.call(this,e,i,n)};var Klr=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var AU={},IF={},Zme=[],Jme=[],OU=[],tbt={},eve={},nz={},zU={},Qlr=+new Date-0,Zlr=+new Date-0,XSe="_echarts_instance_";function Jlr(e,t,n){var r=!(n&&n.ssr);if(r){var i=YSe(e);if(i)return i}var o=new SU(e,t,n);return o.id="ec_"+Qlr++,nz[o.id]=o,r&&Ygt(e,XSe,o.id),ebt(o),Fg.trigger("afterinit",o),o}function ecr(e){if(Ht(e)){var t=e;e=null,ye(t,function(n){n.group!=null&&(e=n.group)}),e=e||"g_"+Zlr++,ye(t,function(n){n.group=e})}return zU[e]=!0,e}function nbt(e){zU[e]=!1}var tcr=nbt;function ncr(e){Sn(e)?e=nz[e]:e instanceof SU||(e=YSe(e)),e instanceof SU&&!e.isDisposed()&&e.dispose()}function YSe(e){return nz[uir(e,XSe)]}function rcr(e){return nz[e]}function KSe(e,t){tbt[e]=t}function QSe(e){hi(Jme,e)<0&&Jme.push(e)}function ZSe(e,t){JSe(Zme,e,t,Blr)}function rbt(e){OJ("afterinit",e)}function ibt(e){OJ("afterupdate",e)}function OJ(e,t){Fg.on(e,t)}function Nm(e,t,n){fr(t)&&(n=t,t="");var r=xr(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!IF[t]&&(S0(cqe.test(r)&&cqe.test(t)),AU[r]||(AU[r]={action:n,actionInfo:e}),IF[t]=r)}function obt(e,t){sk.register(e,t)}function icr(e){var t=sk.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function abt(e,t){JSe(OU,e,t,Gvt,"layout")}function Ww(e,t){JSe(OU,e,t,$vt,"visual")}var mqe=[];function JSe(e,t,n,r,i){if((fr(t)||xr(t))&&(n=t,t=r),!(hi(mqe,n)>=0)){mqe.push(n);var o=Ivt.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function eAe(e,t){eve[e]=t}function ocr(e){egt({createCanvas:e})}function sbt(e,t,n){var r=Vvt("registerMap");r&&r(e,t,n)}function acr(e){var t=Vvt("getMap");return t&&t(e)}var lbt=vsr;Ww($Se,Hsr);Ww(AJ,Vsr);Ww(AJ,Gsr);Ww($Se,ilr);Ww(AJ,olr);Ww(Uvt,Dlr);QSe(avt);ZSe(Wlr,Qar);eAe("default",$sr);Nm({type:ez,event:ez,update:ez},Nl);Nm({type:_7,event:_7,update:_7},Nl);Nm({type:OF,event:OF,update:OF},Nl);Nm({type:N7,event:N7,update:N7},Nl);Nm({type:zF,event:zF,update:zF},Nl);KSe("light",nlr);KSe("dark",Lvt);var scr={},vqe=[],lcr={registerPreprocessor:QSe,registerProcessor:ZSe,registerPostInit:rbt,registerPostUpdate:ibt,registerUpdateLifecycle:OJ,registerAction:Nm,registerCoordinateSystem:obt,registerLayout:abt,registerVisual:Ww,registerTransform:lbt,registerLoading:eAe,registerMap:sbt,registerImpl:klr,PRIORITY:Xvt,ComponentModel:Ri,ComponentView:cs,SeriesModel:Ra,ChartView:da,registerComponentModel:function(e){Ri.registerClass(e)},registerComponentView:function(e){cs.registerClass(e)},registerSeriesModel:function(e){Ra.registerClass(e)},registerChartView:function(e){da.registerClass(e)},registerSubTypeDefaulter:function(e,t){Ri.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){_gt(e,t)}};function Si(e){if(Ht(e)){ye(e,function(t){Si(t)});return}hi(vqe,e)>=0||(vqe.push(e),fr(e)&&(e={install:e}),e.install(lcr))}function v_(e){return e==null?0:e.length||1}function bqe(e){return e}var oM=(function(){function e(t,n,r,i,o,a){this._old=t,this._new=n,this._oldKeyGetter=r||bqe,this._newKeyGetter=i||bqe,this.context=o,this._diffModeMultiple=a==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},i=new Array(t.length),o=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=r[s],c=v_(l);if(c>1){var u=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(u,a)}else c===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],c=r[l],u=i[l],d=v_(c),p=v_(u);if(d>1&&p===1)this._updateManyToOne&&this._updateManyToOne(u,c),i[l]=null;else if(d===1&&p>1)this._updateOneToMany&&this._updateOneToMany(u,c),i[l]=null;else if(d===1&&p===1)this._update&&this._update(u,c),i[l]=null;else if(d>1&&p>1)this._updateManyToMany&&this._updateManyToMany(u,c),i[l]=null;else if(d>1)for(var h=0;h<d;h++)this._remove&&this._remove(c[h]);else this._remove&&this._remove(c)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var i=t[r],o=n[i],a=v_(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);n[i]=null}},e.prototype._initIndexMap=function(t,n,r,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(r[a]=s),!!n){var l=n[s],c=v_(l);c===0?(n[s]=a,o&&r.push(s)):c===1?n[s]=[l,a]:l.push(a)}}},e})(),ccr=(function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function ucr(e,t){var n={},r=n.encode={},i=Yn(),o=[],a=[],s={};ye(e.dimensions,function(p){var h=e.getDimensionInfo(p),g=h.coordDim;if(g){var m=h.coordDimIndex;Hae(r,g)[m]=p,h.isExtraCoord||(i.set(g,1),dcr(h.type)&&(o[0]=p),Hae(s,g)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&a.push(p)}Qmt.each(function(v,y){var M=Hae(r,y),C=h.otherDims[y];C!=null&&C!==!1&&(M[C]=h.name)})});var l=[],c={};i.each(function(p,h){var g=r[h];c[h]=g[0],l=l.concat(g)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Vt(l,function(p){return e.getDimensionInfo(p).storeDimIndex}),n.encodeFirstDimNotExtra=c;var u=r.label;u&&u.length&&(o=u.slice());var d=r.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new ccr(s,t),n}function Hae(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function TU(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function dcr(e){return!(e==="ordinal"||e==="time")}var j7=(function(){function e(t){this.otherDims={},t!=null&&Nt(this,t)}return e})(),pcr=mo(),hcr={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},cbt=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=pbt(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Xr(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=lvt(this.source),r=!hbt(t),i="",o=[],a=0,s=0;a<t;a++){var l=void 0,c=void 0,u=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===a)l=n?d.name:null,c=d.type,u=d.ordinalMeta,s++;else{var p=this.getSourceDimension(a);p&&(l=n?p.name:null,c=p.type)}o.push({property:l,type:c,ordinalMeta:u}),n&&l!=null&&(!d||!d.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=hcr[c]||"f",u&&(i+=u.uid),i+="$"}var h=this.source,g=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:o,hash:g}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(i=o.name),r++;else{var a=this.getSourceDimension(n);a&&(i=a.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function ubt(e){return e instanceof cbt}function dbt(e){for(var t=Yn(),n=0;n<(e||[]).length;n++){var r=e[n],i=xr(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function pbt(e){var t=pcr(e);return t.dimNameMap||(t.dimNameMap=dbt(e.dimensionsDefine))}function hbt(e){return e>30}var b_=xr,dC=Vt,fcr=typeof Int32Array>"u"?Array:Int32Array,gcr="e\0\0",yqe=-1,mcr=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],vcr=["_approximateExtent"],Mqe,vV,y_,M_,Vae,C_,Gae,y0=(function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;ubt(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,c={},u=0;u<r.length;u++){var d=r[u],p=Sn(d)?new j7({name:d}):d instanceof j7?d:new j7(d),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var g=p.otherDims=p.otherDims||{};a.push(h),o[h]=p,c[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),g.itemName===0&&(this._nameDimIdx=u),g.itemId===0&&(this._idDimIdx=u),i&&(p.storeDimIndex=u)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=Yn();ye(a,function(v){m.set(o[v].storeDimIndex,v)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(yo(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var i=r.encode[t];return i?i[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var i=this,o;if(t instanceof Gme&&(o=t),!o){var a=this.dimensions,s=WSe(t)||Sd(t)?new cvt(t,a.length):t;o=new Gme;var l=dC(a,function(c){return{type:i._dimInfos[c].type,property:c}});o.initData(s,l,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=ucr(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n&&n.length),i=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=n[l],a&&Gae(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==_x&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===eg;if(l&&!i.pure)for(var c=[],u=t;u<n;u++){var d=i.getItem(u,c);if(!this.hasItemOption&&Qrr(d)&&(this.hasItemOption=!0),d){var p=d.name;o[u]==null&&p!=null&&(o[u]=Zc(p,null));var h=d.id;a[u]==null&&h!=null&&(a[u]=Zc(h,null))}}if(this._shouldMakeIdFromName())for(var u=t;u<n;u++)Gae(this,u);Mqe(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){b_(t)?Nt(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=y_(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),i=this._store.getOrdinalMeta(t);return i?i.categories[r]:r},e.prototype.getId=function(t){return vV(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.get(i.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.getByRawIndex(i.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var r=this,i=this._store;return Ht(t)?i.getValues(dC(t,function(o){return r._getStoreDimIndex(o)}),n):i.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var r=t&&this._invertedIndicesMap[t],i=r&&r[n];return i==null||isNaN(i)?yqe:i},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){fr(t)&&(r=n,n=t,t=[]);var i=r||this,o=dC(M_(t),this._getStoreDimIndex,this);this._store.each(o,i?En(n,i):n)},e.prototype.filterSelf=function(t,n,r){fr(t)&&(r=n,n=t,t=[]);var i=r||this,o=dC(M_(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?En(n,i):n),this},e.prototype.selectRange=function(t){var n=this,r={},i=ji(t);return ye(i,function(o){var a=n._getStoreDimIndex(o);r[a]=t[o]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){fr(t)&&(r=n,n=t,t=[]),r=r||this;var i=[];return this.each(t,function(){i.push(n&&n.apply(this,arguments))},r),i},e.prototype.map=function(t,n,r,i){var o=r||i||this,a=dC(M_(t),this._getStoreDimIndex,this),s=C_(this);return s._store=this._store.map(a,o?En(n,o):n),s},e.prototype.modify=function(t,n,r,i){var o=r||i||this,a=dC(M_(t),this._getStoreDimIndex,this);this._store.modify(a,o?En(n,o):n)},e.prototype.downSample=function(t,n,r,i){var o=C_(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,r,i),o},e.prototype.minmaxDownSample=function(t,n){var r=C_(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),r},e.prototype.lttbDownSample=function(t,n){var r=C_(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new _o(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new oM(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return vV(t,r)},function(r){return vV(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},b_(t)?Nt(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],i=r&&r[n];return i??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[n];return o==null&&(o=this.getVisual(n),Ht(o)?o=o.slice():b_(o)&&(o=Nt({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,b_(n)?Nt(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){b_(t)?Nt(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?Nt(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;Pme(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){ye(this._graphicEls,function(r,i){r&&t&&t.call(n,r,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:dC(this.dimensions,this._getDimInfo,this),this.hostModel)),Vae(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];fr(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(ZZ(arguments)))})},e.internalField=(function(){Mqe=function(t){var n=t._invertedIndicesMap;ye(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new fcr(a.categories.length);for(var l=0;l<r.length;l++)r[l]=yqe;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},y_=function(t,n,r){return Zc(t._getCategory(n,r),null)},vV=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=y_(t,t._idDimIdx,n)),r==null&&(r=gcr+n),r},M_=function(t){return Ht(t)||(t=t!=null?[t]:[]),t},C_=function(t){var n=new e(t._schema?t._schema:dC(t.dimensions,t._getDimInfo,t),t.hostModel);return Vae(n,t),n},Vae=function(t,n){ye(mcr.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,ye(vcr,function(r){t[r]=Or(n[r])}),t._calculationInfo=Nt({},n._calculationInfo)},Gae=function(t,n){var r=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=r[n],l=i[n];if(s==null&&o!=null&&(r[n]=s=y_(t,o,n)),l==null&&a!=null&&(i[n]=l=y_(t,a,n)),l==null&&s!=null){var c=t._nameRepeatCount,u=c[s]=(c[s]||0)+1;l=s,u>1&&(l+="__ec__"+u),i[n]=l}}})(),e})();function bcr(e,t){return dk(e,t).dimensions}function dk(e,t){WSe(e)||(e=qSe(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Yn(),o=[],a=Mcr(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&hbt(a),l=r===e.dimensionsDefine,c=l?pbt(e):dbt(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,a));for(var d=Yn(u),p=new vvt(a),h=0;h<p.length;h++)p[h]=-1;function g(O){var T=p[O];if(T<0){var I=r[O],P=xr(I)?I:{name:I},N=new j7,F=P.name;F!=null&&c.get(F)!=null&&(N.name=N.displayName=F),P.type!=null&&(N.type=P.type),P.displayName!=null&&(N.displayName=P.displayName);var L=o.length;return p[O]=L,N.storeDimIndex=O,o.push(N),N}return o[T]}if(!s)for(var h=0;h<a;h++)g(h);d.each(function(O,T){var I=Ta(O).slice();if(I.length===1&&!Sn(I[0])&&I[0]<0){d.set(T,!1);return}var P=d.set(T,[]);ye(I,function(N,F){var L=Sn(N)?c.get(N):N;L!=null&&L<a&&(P[F]=L,v(g(L),T,F))})});var m=0;ye(n,function(O){var T,I,P,N;if(Sn(O))T=O,N={};else{N=O,T=N.name;var F=N.ordinalMeta;N.ordinalMeta=null,N=Nt({},N),N.ordinalMeta=F,I=N.dimsDef,P=N.otherDims,N.name=N.coordDim=N.coordDimIndex=N.dimsDef=N.otherDims=null}var L=d.get(T);if(L!==!1){if(L=Ta(L),!L.length)for(var W=0;W<(I&&I.length||1);W++){for(;m<a&&g(m).coordDim!=null;)m++;m<a&&L.push(m++)}ye(L,function(H,j){var G=g(H);if(l&&N.type!=null&&(G.type=N.type),v(br(G,N),T,j),G.name==null&&I){var q=I[j];!xr(q)&&(q={name:q}),G.name=G.displayName=q.name,G.defaultTooltip=q.defaultTooltip}P&&br(G.otherDims,P)})}});function v(O,T,I){Qmt.get(T)!=null?O.otherDims[T]=I:(O.coordDim=T,O.coordDimIndex=I,i.set(T,!0))}var y=t.generateCoord,M=t.generateCoordCount,C=M!=null;M=y?M||1:0;var x=y||"value";function w(O){O.name==null&&(O.name=O.coordDim)}if(s)ye(o,function(O){w(O)}),o.sort(function(O,T){return O.storeDimIndex-T.storeDimIndex});else for(var S=0;S<a;S++){var A=g(S),z=A.coordDim;z==null&&(A.coordDim=Ccr(x,i,C),A.coordDimIndex=0,(!y||M<=0)&&(A.isExtraCoord=!0),M--),w(A),A.type==null&&(tvt(e,S)===hd.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return ycr(o),new cbt({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function ycr(e){for(var t=Yn(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function Mcr(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return ye(t,function(o){var a;xr(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function Ccr(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var xcr=(function(){function e(t){this.coordSysDims=[],this.axisMap=Yn(),this.categoryAxisMap=Yn(),this.coordSysName=t}return e})();function wcr(e){var t=e.get("coordinateSystem"),n=new xcr(t),r=Scr[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Scr={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",wc).models[0],o=e.getReferringComponents("yAxis",wc).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),$E(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),$E(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",wc).models[0];t.coordSysDims=["single"],n.set("single",i),$E(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",wc).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),$E(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),$E(a)&&(r.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();ye(o.parallelAxisIndex,function(s,l){var c=i.getComponent("parallelAxis",s),u=a[l];n.set(u,c),$E(c)&&(r.set(u,c),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function $E(e){return e.get("type")==="category"}function fbt(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;Acr(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),c,u,d,p;if(ye(o,function(M,C){Sn(M)&&(o[C]=M={name:M}),l&&!M.isExtraCoord&&(!r&&!c&&M.ordinalMeta&&(c=M),!u&&M.type!=="ordinal"&&M.type!=="time"&&(!i||i===M.coordDim)&&(u=M))}),u&&!r&&!c&&(r=!0),u){d="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var h=u.coordDim,g=u.type,m=0;ye(o,function(M){M.coordDim===h&&m++});var v={name:d,coordDim:h,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:p,coordDim:p,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(v.storeDimIndex=s.ensureCalculationDimension(p,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),a.appendCalculationDimension(v),a.appendCalculationDimension(y)):(o.push(v),o.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:p,stackResultDimension:d}}function Acr(e){return!ubt(e.schema)}function aM(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function tAe(e,t){return aM(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Ocr(e,t){var n=e.get("coordinateSystem"),r=sk.get(n),i;return t&&t.coordSysDims&&(i=Vt(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=TU(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function zcr(e,t,n){var r,i;return n&&ye(e,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function n2(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;e?(o=!0,i=qSe(e)):(i=r.getSource(),o=i.sourceFormat===eg);var a=wcr(t),s=Ocr(t,a),l=n.useEncodeDefaulter,c=fr(l)?l:l?Zr(evt,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},d=dk(i,u),p=zcr(d.dimensions,n.createInvertedIndices,a),h=o?null:r.getSharedDataStore(d),g=fbt(t,{schema:d,store:h}),m=new y0(d,t);m.setCalculationInfo(g);var v=p!=null&&Tcr(i)?function(y,M,C,x){return x===p?C:this.defaultDimValueGetter(y,M,C,x)}:null;return m.hasItemOption=!1,m.initData(o?i:h,null,v),m}function Tcr(e){if(e.sourceFormat===eg){var t=Ecr(e.data||[]);return!Ht(KD(t))}}function Ecr(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var r2=(function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();aJ(r2);var Rcr=0,tve=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Rcr}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Vt(r,Icr);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!Sn(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Yn(this.categories))},e})();function Icr(e){return xr(e)&&e.value!=null?e.value:e+""}function nve(e){return e.type==="interval"||e.type==="log"}function Pcr(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=aSe(o/t,!0);n!=null&&a<n&&(a=i.interval=n),r!=null&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=gbt(a),l=i.niceTickExtent=[wl(Math.ceil(e[0]/a)*a,s),wl(Math.floor(e[1]/a)*a,s)];return Dcr(l,e),i}function $ae(e){var t=Math.pow(10,oJ(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,wl(n*t)}function gbt(e){return tm(e)+2}function Cqe(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Dcr(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Cqe(e,0,t),Cqe(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function zJ(e,t){return e>=t[0]&&e<=t[1]}function TJ(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function EJ(e,t){return e*(t[1]-t[0])+t[0]}var RJ=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new tve({})),Ht(i)&&(i=new tve({categories:Vt(i,function(o){return xr(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:Sn(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),zJ(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),TJ(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(EJ(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a<l;++a){var c=r[a];i[a]=c,o[c]=a}for(var u=0;a<s;++a){for(;o[u]!=null;)u++;i.push(u),o[u]=a}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(r2);r2.registerClass(RJ);var fA=wl,sM=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return zJ(n,this._extent)},t.prototype.normalize=function(n){return TJ(n,this._extent)},t.prototype.scale=function(n){return EJ(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=gbt(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]<o[0]&&(n?s.push({value:fA(o[0]-r,a)}):s.push({value:i[0]}));for(var c=o[0];c<=o[1]&&(s.push({value:c}),c=fA(c+r,a),c!==s[s.length-1].value);)if(s.length>l)return[];var u=s.length?s[s.length-1].value:o[1];return i[1]>u&&(n?s.push({value:fA(u+r,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;a<r.length;a++){for(var s=r[a],l=r[a-1],c=0,u=[],d=s.value-l.value,p=d/n;c<n-1;){var h=fA(l.value+(c+1)*p);h>o[0]&&h<o[1]&&u.push(h),c++}i.push(u)}return i},t.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=tm(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=fA(n.value,i,!0);return ISe(o)},t.prototype.calcNiceTicks=function(n,r,i){n=n||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=Pcr(o,n,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);n.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var a=this._interval;n.fixMin||(r[0]=fA(Math.floor(r[0]/a)*a)),n.fixMax||(r[1]=fA(Math.ceil(r[1]/a)*a))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t})(r2);r2.registerClass(sM);var mbt=typeof Float32Array<"u",kcr=mbt?Float32Array:Array;function tb(e){return Ht(e)?mbt?new Float32Array(e):e:new kcr(e)}var rve="__ec_stack_";function vbt(e){return e.get("stack")||rve+e.seriesIndex}function nAe(e){return e.dim+e.index}function Lcr(e){var t=[],n=e.axis,r="axis0";if(n.type==="category"){for(var i=n.getBandWidth(),o=0;o<e.count;o++)t.push(br({bandWidth:i,axisKey:r,stackId:rve+o},e));for(var a=Mbt(t),s=[],o=0;o<e.count;o++){var l=a[r][rve+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function bbt(e,t){var n=[];return t.eachSeriesByType(e,function(r){wbt(r)&&n.push(r)}),n}function _cr(e){var t={};ye(e,function(l){var c=l.coordinateSystem,u=c.getBaseAxis();if(!(u.type!=="time"&&u.type!=="value"))for(var d=l.getData(),p=u.dim+"_"+u.index,h=d.getDimensionIndex(d.mapDimension(u.dim)),g=d.getStore(),m=0,v=g.count();m<v;++m){var y=g.get(h,m);t[p]?t[p].push(y):t[p]=[y]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(l,c){return l-c});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function ybt(e){var t=_cr(e),n=[];return ye(e,function(r){var i=r.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,c=t[l],u=Math.abs(a[1]-a[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);s=c?u/p*c:u}else{var h=r.getData();s=Math.abs(a[1]-a[0])/h.count()}var g=vn(r.get("barWidth"),s),m=vn(r.get("barMaxWidth"),s),v=vn(r.get("barMinWidth")||(Sbt(r)?.5:1),s),y=r.get("barGap"),M=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:g,barMaxWidth:m,barMinWidth:v,barGap:y,barCategoryGap:M,axisKey:nAe(o),stackId:vbt(r)})}),Mbt(n)}function Mbt(e){var t={};ye(e,function(r,i){var o=r.axisKey,a=r.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var c=r.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var u=r.barWidth;u&&!l[c].width&&(l[c].width=u,u=Math.min(s.remainedWidth,u),s.remainedWidth-=u);var d=r.barMaxWidth;d&&(l[c].maxWidth=d);var p=r.barMinWidth;p&&(l[c].minWidth=p);var h=r.barGap;h!=null&&(s.gap=h);var g=r.barCategoryGap;g!=null&&(s.categoryGap=g)});var n={};return ye(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=ji(o).length;s=Math.max(35-l*4,15)+"%"}var c=vn(s,a),u=vn(r.gap,1),d=r.remainedWidth,p=r.autoWidthCount,h=(d-c)/(p+(p-1)*u);h=Math.max(h,0),ye(o,function(y){var M=y.maxWidth,C=y.minWidth;if(y.width){var x=y.width;M&&(x=Math.min(x,M)),C&&(x=Math.max(x,C)),y.width=x,d-=x+u*x,p--}else{var x=h;M&&M<x&&(x=Math.min(M,d)),C&&C>x&&(x=C),x!==h&&(y.width=x,d-=x+u*x,p--)}}),h=(d-c)/(p+(p-1)*u),h=Math.max(h,0);var g=0,m;ye(o,function(y,M){y.width||(y.width=h),m=y,g+=y.width*(1+u)}),m&&(g-=m.width*u);var v=-g/2;ye(o,function(y,M){n[i][M]=n[i][M]||{bandWidth:a,offset:v,width:y.width},v+=y.width*(1+u)})}),n}function Ncr(e,t,n){if(e&&t){var r=e[nAe(t)];return r}}function Cbt(e,t){var n=bbt(e,t),r=ybt(n);ye(n,function(i){var o=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=vbt(i),c=r[nAe(s)][l],u=c.offset,d=c.width;o.setLayout({bandWidth:c.bandWidth,offset:u,size:d})})}function xbt(e){return{seriesType:e,plan:lk(),reset:function(t){if(wbt(t)){var n=t.getData(),r=t.coordinateSystem,i=r.getBaseAxis(),o=r.getOtherAxis(i),a=n.getDimensionIndex(n.mapDimension(o.dim)),s=n.getDimensionIndex(n.mapDimension(i.dim)),l=t.get("showBackground",!0),c=n.mapDimension(o.dim),u=n.getCalculationInfo("stackResultDimension"),d=aM(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),p=o.isHorizontal(),h=Fcr(i,o),g=Sbt(t),m=t.get("barMinHeight")||0,v=u&&n.getDimensionIndex(u),y=n.getLayout("size"),M=n.getLayout("offset");return{progress:function(C,x){for(var w=C.count,S=g&&tb(w*3),A=g&&l&&tb(w*3),z=g&&tb(w),O=r.master.getRect(),T=p?O.width:O.height,I,P=x.getStore(),N=0;(I=C.next())!=null;){var F=P.get(d?v:a,I),L=P.get(s,I),W=h,H=void 0;d&&(H=+F-P.get(a,I));var j=void 0,G=void 0,q=void 0,$=void 0;if(p){var U=r.dataToPoint([F,L]);if(d){var X=r.dataToPoint([H,L]);W=X[0]}j=W,G=U[1]+M,q=U[0]-W,$=y,Math.abs(q)<m&&(q=(q<0?-1:1)*m)}else{var U=r.dataToPoint([L,F]);if(d){var X=r.dataToPoint([L,H]);W=X[1]}j=U[0]+M,G=W,q=y,$=U[1]-W,Math.abs($)<m&&($=($<=0?-1:1)*m)}g?(S[N]=j,S[N+1]=G,S[N+2]=p?q:$,A&&(A[N]=p?O.x:j,A[N+1]=p?G:O.y,A[N+2]=T),z[I]=I):x.setItemLayout(I,{x:j,y:G,width:q,height:$}),N+=3}g&&x.setLayout({largePoints:S,largeDataIndices:z,largeBackgroundPoints:A,valueAxisHorizontal:p})}}}}}}function wbt(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Sbt(e){return e.pipelineContext&&e.pipelineContext.large}function Fcr(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?n>0?n:1:n))}var Wcr=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},rAe=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return HB(n.value,pWe[far(DI(this._minLevelUnit))]||pWe.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return gar(n,r,i,a,o)},t.prototype.getTicks=function(){var n=this._interval,r=this._extent,i=[];if(!n)return i;i.push({value:r[0],level:0});var o=this.getSetting("useUTC"),a=$cr(this._minLevelUnit,this._approxInterval,o,r);return i=i.concat(a),i.push({value:r[1],level:0}),i},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=gf,r[1]+=gf),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-gf}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,r,i){n=n||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=bV.length,l=Math.min(Wcr(bV,this._approxInterval,0,s),s-1);this._interval=bV[l][1],this._minLevelUnit=bV[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return yo(n)?n:+dh(n)},t.prototype.contain=function(n){return zJ(this.parse(n),this._extent)},t.prototype.normalize=function(n){return TJ(this.parse(n),this._extent)},t.prototype.scale=function(n){return EJ(n,this._extent)},t.type="time",t})(sM),bV=[["second",TSe],["minute",ESe],["hour",EF],["quarter-day",EF*6],["half-day",EF*12],["day",gf*1.2],["half-week",gf*3.5],["week",gf*7],["month",gf*31],["quarter",gf*95],["half-year",dWe/2],["year",dWe]];function qcr(e,t,n,r){var i=dh(t),o=dh(n),a=function(g){return hWe(i,g,r)===hWe(o,g,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},d=function(){return u()&&a("minute")},p=function(){return d()&&a("second")},h=function(){return p()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return d();case"second":return p();case"millisecond":return h()}}function Bcr(e,t){return e/=gf,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function jcr(e){var t=30*gf;return e/=t,e>6?6:e>3?3:e>2?2:1}function Hcr(e){return e/=EF,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function xqe(e,t){return e/=t?ESe:TSe,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Vcr(e){return aSe(e,!0)}function Gcr(e,t,n){var r=new Date(e);switch(DI(t)){case"year":case"month":r[Bmt(n)](0);case"day":r[jmt(n)](1);case"hour":r[Hmt(n)](0);case"minute":r[Vmt(n)](0);case"second":r[Gmt(n)](0),r[$mt(n)](0)}return r.getTime()}function $cr(e,t,n,r){var i=1e4,o=Wmt,a=0;function s(T,I,P,N,F,L,W){for(var H=new Date(I),j=I,G=H[N]();j<P&&j<=r[1];)W.push({value:j}),G+=T,H[F](G),j=H.getTime();W.push({value:j,notAdd:!0})}function l(T,I,P){var N=[],F=!I.length;if(!qcr(DI(T),r[0],r[1],n)){F&&(I=[{value:Gcr(new Date(r[0]),T,n)},{value:r[1]}]);for(var L=0;L<I.length-1;L++){var W=I[L].value,H=I[L+1].value;if(W!==H){var j=void 0,G=void 0,q=void 0,$=!1;switch(T){case"year":j=Math.max(1,Math.round(t/gf/365)),G=RSe(n),q=mar(n);break;case"half-year":case"quarter":case"month":j=jcr(t),G=kI(n),q=Bmt(n);break;case"week":case"half-week":case"day":j=Bcr(t),G=mJ(n),q=jmt(n),$=!0;break;case"half-day":case"quarter-day":case"hour":j=Hcr(t),G=gq(n),q=Hmt(n);break;case"minute":j=xqe(t,!0),G=vJ(n),q=Vmt(n);break;case"second":j=xqe(t,!1),G=bJ(n),q=Gmt(n);break;case"millisecond":j=Vcr(t),G=yJ(n),q=$mt(n);break}s(j,W,H,G,q,$,N),T==="year"&&P.length>1&&L===0&&P.unshift({value:P[0].value-j})}}for(var L=0;L<N.length;L++)P.push(N[L]);return N}}for(var c=[],u=[],d=0,p=0,h=0;h<o.length&&a++<i;++h){var g=DI(o[h]);if(har(o[h])){l(o[h],c[c.length-1]||[],u);var m=o[h+1]?DI(o[h+1]):null;if(g!==m){if(u.length){p=d,u.sort(function(T,I){return T.value-I.value});for(var v=[],y=0;y<u.length;++y){var M=u[y].value;(y===0||u[y-1].value!==M)&&(v.push(u[y]),M>=r[0]&&M<=r[1]&&d++)}var C=(r[1]-r[0])/t;if(d>C*1.5&&p>C/1.5||(c.push(v),d>C||e===o[h]))break}u=[]}}}for(var x=ko(Vt(c,function(T){return ko(T,function(I){return I.value>=r[0]&&I.value<=r[1]&&!I.notAdd})}),function(T){return T.length>0}),w=[],S=x.length-1,h=0;h<x.length;++h)for(var A=x[h],z=0;z<A.length;++z)w.push({value:A[z].value,level:S-h});w.sort(function(T,I){return T.value-I.value});for(var O=[],h=0;h<w.length;++h)(h===0||w[h].value!==w[h-1].value)&&O.push(w[h]);return O}r2.registerClass(rAe);var wqe=r2.prototype,PF=sM.prototype,Ucr=wl,Xcr=Math.floor,Ycr=Math.ceil,yV=Math.pow,Pg=Math.log,iAe=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new sM,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,i=this._extent,o=r.getExtent(),a=PF.getTicks.call(this,n);return Vt(a,function(s){var l=s.value,c=wl(yV(this.base,l));return c=l===i[0]&&this._fixMin?MV(c,o[0]):c,c=l===i[1]&&this._fixMax?MV(c,o[1]):c,{value:c}},this)},t.prototype.setExtent=function(n,r){var i=Pg(this.base);n=Pg(Math.max(0,n))/i,r=Pg(Math.max(0,r))/i,PF.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=wqe.getExtent.call(this);r[0]=yV(n,r[0]),r[1]=yV(n,r[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(r[0]=MV(r[0],o[0])),this._fixMax&&(r[1]=MV(r[1],o[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Pg(n[0])/Pg(r),n[1]=Pg(n[1])/Pg(r),wqe.unionExtent.call(this,n)},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var o=jgt(i),a=n/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[wl(Ycr(r[0]/o)*o),wl(Xcr(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){PF.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=Pg(n)/Pg(this.base),zJ(n,this._extent)},t.prototype.normalize=function(n){return n=Pg(n)/Pg(this.base),TJ(n,this._extent)},t.prototype.scale=function(n){return n=EJ(n,this._extent),yV(this.base,n)},t.type="log",t})(r2),Abt=iAe.prototype;Abt.getMinorTicks=PF.getMinorTicks;Abt.getLabel=PF.getLabel;function MV(e,t){return Ucr(e,tm(t))}r2.registerClass(iAe);var Kcr=(function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var a=this._modelMinRaw=o;fr(a)?this._modelMinNum=CV(t,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=CV(t,a));var s=this._modelMaxRaw=n.get("max",!0);if(fr(s)?this._modelMaxNum=CV(t,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=CV(t,s)),i)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),c=Ht(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Am(c[0],1),Am(c[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,c=s!=null,u=l!=null;s==null&&(s=t?i?0:NaN:n-o[0]*a),l==null&&(l=t?i?i-1:NaN:r+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var d=TP(s)||TP(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!u&&(l=0));var p=this._determinedMin,h=this._determinedMax;return p!=null&&(s=p,c=!0),h!=null&&(l=h,u=!0),{min:s,max:l,minFixed:c,maxFixed:u,isBlank:d}},e.prototype.modifyDataMinMax=function(t,n){this[Zcr[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Qcr[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),Qcr={min:"_determinedMin",max:"_determinedMax"},Zcr={min:"_dataMin",max:"_dataMax"};function Obt(e,t,n){var r=e.rawExtentInfo;return r||(r=new Kcr(e,t,n),e.rawExtentInfo=r,r)}function CV(e,t){return t==null?null:TP(t)?NaN:e.parse(t)}function zbt(e,t){var n=e.type,r=Obt(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&n==="time"){var s=bbt("bar",a),l=!1;if(ye(s,function(d){l=l||d.getBaseAxis()===t.axis}),l){var c=ybt(s),u=Jcr(i,o,t,c);i=u.min,o=u.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Jcr(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=Ncr(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;ye(a,function(h){s=Math.min(h.offset,s)});var l=-1/0;ye(a,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,d=1-(s+l)/o,p=u/d-u;return t+=p*(l/c),e-=p*(s/c),{min:e,max:t}}function Qz(e,t){var n=t,r=zbt(e,n),i=r.extent,o=n.get("splitNumber");e instanceof iAe&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l=a==="interval"||a==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function GB(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new RJ({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new rAe({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(r2.getClass(t)||sM)}}function eur(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function pk(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?(function(r){return function(i,o){return e.scale.getFormattedLabel(i,o,r)}})(t):Sn(t)?(function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}})(t):fr(t)?(function(r){return function(i,o){return n!=null&&(o=i.value-n),r(oAe(e,i),o,i.level!=null?{level:i.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function oAe(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function tur(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof RJ?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=pk(e),l,c=1;i>40&&(c=Math.ceil(i/40));for(var u=0;u<i;u+=c){var d=r?r[u]:{value:o[0]+u},p=s(d,u),h=a.getTextRect(p),g=nur(h,a.get("rotate")||0);l?l.union(g):l=g}return l}}function nur(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new ui(e.x,e.y,o,a);return s}function aAe(e){var t=e.get("interval");return t??"auto"}function Tbt(e){return e.type==="category"&&aAe(e.getLabelModel())===0}function EU(e,t){var n={};return ye(e.mapDimensionsAll(t),function(r){n[tAe(e,r)]=!0}),ji(n)}function rur(e,t,n){t&&ye(EU(t,n),function(r){var i=t.getApproximateExtent(r);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}var hk=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})();function iur(e){return n2(null,e)}var our={isDimensionStacked:aM,enableDataStack:fbt,getStackedDimension:tAe};function aur(e,t){var n=t;t instanceof _o||(n=new _o(t));var r=GB(n);return r.setExtent(e[0],e[1]),Qz(r,n),r}function sur(e){jl(e,hk)}function lur(e,t){return t=t||{},Za(e,null,null,t.state!=="normal")}const cur=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:bcr,createList:iur,createScale:aur,createSymbol:rc,createTextStyle:lur,dataStack:our,enableHoverEmphasis:kx,getECData:_r,getLayoutRect:Ic,mixinAxisModelCommonMethods:sur},Symbol.toStringTag,{value:"Module"}));var uur=1e-8;function Sqe(e,t){return Math.abs(e-t)<uur}function KA(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var o=1;o<e.length;o++){var a=e[o];r+=iy(i[0],i[1],a[0],a[1],t,n),i=a}var s=e[0];return(!Sqe(i[0],s[0])||!Sqe(i[1],s[1]))&&(r+=iy(i[0],i[1],s[0],s[1],t,n)),r!==0}var dur=[];function Uae(e,t){for(var n=0;n<e.length;n++)Yu(e[n],e[n],t)}function Aqe(e,t,n,r){for(var i=0;i<e.length;i++){var o=e[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(xy(t,t,o),wy(n,n,o))}}function pur(e){for(var t=0,n=0,r=0,i=e.length,o=e[i-1][0],a=e[i-1][1],s=0;s<i;s++){var l=e[s][0],c=e[s][1],u=o*c-l*a;t+=u,n+=(o+l)*u,r+=(a+c)*u,o=l,a=c}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Ebt=(function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e})(),Oqe=(function(){function e(t,n){this.type="polygon",this.exterior=t,this.interiors=n}return e})(),zqe=(function(){function e(t){this.type="linestring",this.points=t}return e})(),Rbt=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.type="geoJSON",o.geometries=r,o._center=i&&[i[0],i[1]],o}return t.prototype.calcCenter=function(){for(var n=this.geometries,r,i=0,o=0;o<n.length;o++){var a=n[o],s=a.exterior,l=s&&s.length;l>i&&(r=a,i=l)}if(r)return pur(r.exterior);var c=this.getBoundingRect();return[c.x+c.width/2,c.y+c.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var i=[1/0,1/0],o=[-1/0,-1/0],a=this.geometries;return ye(a,function(s){s.type==="polygon"?Aqe(s.exterior,i,o,n):ye(s.points,function(l){Aqe(l,i,o,n)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])||(i[0]=i[1]=o[0]=o[1]=0),r=new ui(i[0],i[1],o[0]-i[0],o[1]-i[1]),n||(this._rect=r),r},t.prototype.contain=function(n){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var o=0,a=i.length;o<a;o++){var s=i[o];if(s.type==="polygon"){var l=s.exterior,c=s.interiors;if(KA(l,n[0],n[1])){for(var u=0;u<(c?c.length:0);u++)if(KA(c[u],n[0],n[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=a.width/a.height;i?o||(o=i/s):i=s*o;for(var l=new ui(n,r,i,o),c=a.calculateTransform(l),u=this.geometries,d=0;d<u.length;d++){var p=u[d];p.type==="polygon"?(Uae(p.exterior,c),ye(p.interiors,function(h){Uae(h,c)})):ye(p.points,function(h){Uae(h,c)})}a=this._rect,a.copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},t.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new t(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},t})(Ebt),hur=(function(e){gt(t,e);function t(n,r){var i=e.call(this,n)||this;return i.type="geoSVG",i._elOnlyForCalculate=r,i}return t.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),i=[r.x+r.width/2,r.y+r.height/2],o=kB(dur),a=n;a&&!a.isGeoSVGGraphicRoot;)yb(o,a.getLocalTransform(),o),a=a.parent;return j3(o,o),Yu(i,i,o),i},t})(Ebt);function fur(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return ye(r,function(i){var o=i.geometry,a=o.encodeOffsets,s=o.coordinates;if(a)switch(o.type){case"LineString":o.coordinates=Ibt(s,a,n);break;case"Polygon":Xae(s,a,n);break;case"MultiLineString":Xae(s,a,n);break;case"MultiPolygon":ye(s,function(l,c){return Xae(l,a[c],n)})}}),t.UTF8Encoding=!1,t}function Xae(e,t,n){for(var r=0;r<e.length;r++)e[r]=Ibt(e[r],t[r],n)}function Ibt(e,t,n){for(var r=[],i=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function ive(e,t){return e=fur(e),Vt(ko(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,i=n.geometry,o=[];switch(i.type){case"Polygon":var a=i.coordinates;o.push(new Oqe(a[0],a.slice(1)));break;case"MultiPolygon":ye(i.coordinates,function(l){l[0]&&o.push(new Oqe(l[0],l.slice(1)))});break;case"LineString":o.push(new zqe([i.coordinates]));break;case"MultiLineString":o.push(new zqe(i.coordinates))}var s=new Rbt(r[t||"name"],o,r.cp);return s.properties=r,s})}const gur=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Ome,asc:Jp,getPercentWithPrecision:Xrr,getPixelPrecision:iSe,getPrecision:tm,getPrecisionSafe:qgt,isNumeric:sSe,isRadianAroundZero:RP,linearMap:Yo,nice:aSe,numericToNumber:_b,parseDate:dh,quantile:L7,quantity:jgt,quantityExponent:oJ,reformIntervals:zme,remRadian:oSe,round:wl},Symbol.toStringTag,{value:"Module"})),mur=Object.freeze(Object.defineProperty({__proto__:null,format:HB,parse:dh},Symbol.toStringTag,{value:"Module"})),vur=Object.freeze(Object.defineProperty({__proto__:null,Arc:qB,BezierCurve:JD,BoundingRect:ui,Circle:e2,CompoundPath:pJ,Ellipse:WB,Group:Ir,Image:Du,IncrementalDisplayable:Omt,Line:Jc,LinearGradient:ek,Polygon:O0,Polyline:R0,RadialGradient:ySe,Rect:ao,Ring:ZD,Sector:A0,Text:oo,clipPointsByRect:wSe,clipRectByRect:Imt,createIcon:nk,extendPath:Emt,extendShape:Tmt,getShapeClass:hJ,getTransform:Lx,initProps:vs,makeImage:CSe,makePath:BB,mergePath:Xp,registerShape:Jf,resizePath:xSe,updateProps:So},Symbol.toStringTag,{value:"Module"})),bur=Object.freeze(Object.defineProperty({__proto__:null,addCommas:ISe,capitalFirst:Car,encodeHTML:l0,formatTime:Mar,formatTpl:DSe,getTextRect:bar,getTooltipMarker:Umt,normalizeCssArray:G3,toCamelCase:PSe,truncateText:Sir},Symbol.toStringTag,{value:"Module"})),yur=Object.freeze(Object.defineProperty({__proto__:null,bind:En,clone:Or,curry:Zr,defaults:br,each:ye,extend:Nt,filter:ko,indexOf:hi,inherits:Kwe,isArray:Ht,isFunction:fr,isObject:xr,isString:Sn,map:Vt,merge:ei,reduce:Wf},Symbol.toStringTag,{value:"Module"}));var Cq=mo();function Pbt(e,t){var n=Vt(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Mur(e){var t=e.getLabelModel().get("customValues");if(t){var n=pk(e),r=e.scale.getExtent(),i=Pbt(e,t),o=ko(i,function(a){return a>=r[0]&&a<=r[1]});return{labels:Vt(o,function(a){var s={value:a};return{formattedLabel:n(s),rawLabel:e.scale.getLabel(s),tickValue:a}})}}return e.type==="category"?xur(e):Sur(e)}function Cur(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=Pbt(e,n);return{ticks:ko(i,function(o){return o>=r[0]&&o<=r[1]})}}return e.type==="category"?wur(e,t):{ticks:Vt(e.scale.getTicks(),function(o){return o.value})}}function xur(e){var t=e.getLabelModel(),n=Dbt(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Dbt(e,t){var n=kbt(e,"labels"),r=aAe(t),i=Lbt(n,r);if(i)return i;var o,a;return fr(r)?o=Fbt(e,r):(a=r==="auto"?Aur(e):r,o=Nbt(e,a)),_bt(n,r,{labels:o,labelCategoryInterval:a})}function wur(e,t){var n=kbt(e,"ticks"),r=aAe(t),i=Lbt(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),fr(r))o=Fbt(e,r,!0);else if(r==="auto"){var s=Dbt(e,e.getLabelModel());a=s.labelCategoryInterval,o=Vt(s.labels,function(l){return l.tickValue})}else a=r,o=Nbt(e,a,!0);return _bt(n,r,{ticks:o,tickCategoryInterval:a})}function Sur(e){var t=e.scale.getTicks(),n=pk(e);return{labels:Vt(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function kbt(e,t){return Cq(e)[t]||(Cq(e)[t]=[])}function Lbt(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function _bt(e,t,n){return e.push({key:t,value:n}),n}function Aur(e){var t=Cq(e).autoInterval;return t??(Cq(e).autoInterval=e.calculateCategoryInterval())}function Our(e){var t=zur(e),n=pk(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(r)),d=Math.abs(c*Math.sin(r)),p=0,h=0;l<=o[1];l+=s){var g=0,m=0,v=_B(n({value:l}),t.font,"center","top");g=v.width*1.3,m=v.height*1.3,p=Math.max(p,g,7),h=Math.max(h,m,7)}var y=p/u,M=h/d;isNaN(y)&&(y=1/0),isNaN(M)&&(M=1/0);var C=Math.max(0,Math.floor(Math.min(y,M))),x=Cq(e.model),w=e.getExtent(),S=x.lastAutoInterval,A=x.lastTickCount;return S!=null&&A!=null&&Math.abs(S-C)<=1&&Math.abs(A-a)<=1&&S>C&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?C=S:(x.lastTickCount=a,x.lastAutoInterval=C,x.axisExtent0=w[0],x.axisExtent1=w[1]),C}function zur(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Nbt(e,t,n){var r=pk(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=o[0],u=i.count();c!==0&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var d=Tbt(e),p=a.get("showMinLabel")||d,h=a.get("showMaxLabel")||d;p&&c!==o[0]&&m(o[0]);for(var g=c;g<=o[1];g+=l)m(g);h&&g-l!==o[1]&&m(o[1]);function m(v){var y={value:v};s.push(n?v:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:v})}return s}function Fbt(e,t,n){var r=e.scale,i=pk(e),o=[];return ye(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;t(a.value,s)&&o.push(n?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var Tqe=[0,1],ng=(function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return iSe(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),Eqe(r,i.count())),Yo(t,Tqe,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),Eqe(r,i.count()));var o=Yo(t,r,Tqe,n);return this.scale.scale(o)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=Cur(this,n),i=r.ticks,o=Vt(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return Tur(this,o,a,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=Vt(r,function(o){return Vt(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return Mur(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(){return Our(this)},e})();function Eqe(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Tur(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o=e.getExtent(),a,s;if(i===1)t[0].coord=o[0],a=t[1]={coord:o[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/l;ye(t,function(h){h.coord-=c/2});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,a={coord:t[i-1].coord+c*s,tickValue:u[1]+1},t.push(a)}var d=o[0]>o[1];p(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&p(o[0],t[0].coord)&&t.unshift({coord:o[0]}),p(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&p(a.coord,o[1])&&t.push({coord:o[1]});function p(h,g){return h=wl(h),g=wl(g),d?h>g:h<g}}function Eur(e){var t=Ri.extend(e);return Ri.registerClass(t),t}function Rur(e){var t=cs.extend(e);return cs.registerClass(t),t}function Iur(e){var t=Ra.extend(e);return Ra.registerClass(t),t}function Pur(e){var t=da.extend(e);return da.registerClass(t),t}var x_=Math.PI*2,gA=Nb.CMD,Dur=["top","right","bottom","left"];function kur(e,t,n,r,i){var o=n.width,a=n.height;switch(e){case"top":r.set(n.x+o/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+t,n.y+a/2),i.set(1,0);break}}function Lur(e,t,n,r,i,o,a,s,l){a-=e,s-=t;var c=Math.sqrt(a*a+s*s);a/=c,s/=c;var u=a*n+e,d=s*n+t;if(Math.abs(r-i)%x_<1e-4)return l[0]=u,l[1]=d,c-n;if(o){var p=r;r=eh(i),i=eh(p)}else r=eh(r),i=eh(i);r>i&&(i+=x_);var h=Math.atan2(s,a);if(h<0&&(h+=x_),h>=r&&h<=i||h+x_>=r&&h+x_<=i)return l[0]=u,l[1]=d,c-n;var g=n*Math.cos(r)+e,m=n*Math.sin(r)+t,v=n*Math.cos(i)+e,y=n*Math.sin(i)+t,M=(g-a)*(g-a)+(m-s)*(m-s),C=(v-a)*(v-a)+(y-s)*(y-s);return M<C?(l[0]=g,l[1]=m,Math.sqrt(M)):(l[0]=v,l[1]=y,Math.sqrt(C))}function RU(e,t,n,r,i,o,a,s){var l=i-e,c=o-t,u=n-e,d=r-t,p=Math.sqrt(u*u+d*d);u/=p,d/=p;var h=l*u+c*d,g=h/p;s&&(g=Math.min(Math.max(g,0),1)),g*=p;var m=a[0]=e+g*u,v=a[1]=t+g*d;return Math.sqrt((m-i)*(m-i)+(v-o)*(v-o))}function Wbt(e,t,n,r,i,o,a){n<0&&(e=e+n,n=-n),r<0&&(t=t+r,r=-r);var s=e+n,l=t+r,c=a[0]=Math.min(Math.max(i,e),s),u=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((c-i)*(c-i)+(u-o)*(u-o))}var qg=[];function _ur(e,t,n){var r=Wbt(t.x,t.y,t.width,t.height,e.x,e.y,qg);return n.set(qg[0],qg[1]),r}function Nur(e,t,n){for(var r=0,i=0,o=0,a=0,s,l,c=1/0,u=t.data,d=e.x,p=e.y,h=0;h<u.length;){var g=u[h++];h===1&&(r=u[h],i=u[h+1],o=r,a=i);var m=c;switch(g){case gA.M:o=u[h++],a=u[h++],r=o,i=a;break;case gA.L:m=RU(r,i,u[h],u[h+1],d,p,qg,!0),r=u[h++],i=u[h++];break;case gA.C:m=Mgt(r,i,u[h++],u[h++],u[h++],u[h++],u[h],u[h+1],d,p,qg),r=u[h++],i=u[h++];break;case gA.Q:m=xgt(r,i,u[h++],u[h++],u[h],u[h+1],d,p,qg),r=u[h++],i=u[h++];break;case gA.A:var v=u[h++],y=u[h++],M=u[h++],C=u[h++],x=u[h++],w=u[h++];h+=1;var S=!!(1-u[h++]);s=Math.cos(x)*M+v,l=Math.sin(x)*C+y,h<=1&&(o=s,a=l);var A=(d-v)*C/M+v;m=Lur(v,y,C,x,x+w,S,A,p,qg),r=Math.cos(x+w)*M+v,i=Math.sin(x+w)*C+y;break;case gA.R:o=r=u[h++],a=i=u[h++];var z=u[h++],O=u[h++];m=Wbt(o,a,z,O,d,p,qg);break;case gA.Z:m=RU(r,i,o,a,d,p,qg,!0),r=o,i=a;break}m<c&&(c=m,n.set(qg[0],qg[1]))}return c}var nm=new ci,ss=new ci,Ql=new ci,nb=new ci,Gv=new ci;function Rqe(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||Dur,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,c=i.anchor,u=e.getComputedTransform(),d=u&&j3([],u),p=t.get("length2")||0;c&&Ql.copy(c);for(var h=0;h<a.length;h++){var g=a[h];kur(g,0,s,nm,nb),ci.scaleAndAdd(ss,nm,nb,p),ss.transform(d);var m=e.getBoundingRect(),v=c?c.distance(ss):e instanceof Di?Nur(ss,e.path,Ql):_ur(ss,m,Ql);v<l&&(l=v,ss.transform(u),Ql.transform(u),Ql.toArray(o[0]),ss.toArray(o[1]),nm.toArray(o[2]))}qbt(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var IU=[],Q0=new ci;function qbt(e,t){if(t<=180&&t>0){t=t/180*Math.PI,nm.fromArray(e[0]),ss.fromArray(e[1]),Ql.fromArray(e[2]),ci.sub(nb,nm,ss),ci.sub(Gv,Ql,ss);var n=nb.len(),r=Gv.len();if(!(n<.001||r<.001)){nb.scale(1/n),Gv.scale(1/r);var i=nb.dot(Gv),o=Math.cos(t);if(o<i){var a=RU(ss.x,ss.y,Ql.x,Ql.y,nm.x,nm.y,IU,!1);Q0.fromArray(IU),Q0.scaleAndAdd(Gv,a/Math.tan(Math.PI-t));var s=Ql.x!==ss.x?(Q0.x-ss.x)/(Ql.x-ss.x):(Q0.y-ss.y)/(Ql.y-ss.y);if(isNaN(s))return;s<0?ci.copy(Q0,ss):s>1&&ci.copy(Q0,Ql),Q0.toArray(e[1])}}}}function Fur(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,nm.fromArray(e[0]),ss.fromArray(e[1]),Ql.fromArray(e[2]),ci.sub(nb,ss,nm),ci.sub(Gv,Ql,ss);var r=nb.len(),i=Gv.len();if(!(r<.001||i<.001)){nb.scale(1/r),Gv.scale(1/i);var o=nb.dot(t),a=Math.cos(n);if(o<a){var s=RU(ss.x,ss.y,Ql.x,Ql.y,nm.x,nm.y,IU,!1);Q0.fromArray(IU);var l=Math.PI/2,c=Math.acos(Gv.dot(t)),u=l+c-n;if(u>=l)ci.copy(Q0,Ql);else{Q0.scaleAndAdd(Gv,s/Math.tan(Math.PI/2-u));var d=Ql.x!==ss.x?(Q0.x-ss.x)/(Ql.x-ss.x):(Q0.y-ss.y)/(Ql.y-ss.y);if(isNaN(d))return;d<0?ci.copy(Q0,ss):d>1&&ci.copy(Q0,Ql)}Q0.toArray(e[1])}}}}function Yae(e,t,n,r){var i=n==="normal",o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function Wur(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Cy(r[0],r[1]),o=Cy(r[1],r[2]);if(!i||!o){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var a=Math.min(i,o)*n,s=MF([],r[1],r[0],a/i),l=MF([],r[1],r[2],a/o),c=MF([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function sAe(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var o=t.normal,a=o.get("show"),s=i.ignore,l=0;l<pq.length;l++){var c=pq[l],u=t[c],d=c==="normal";if(u){var p=u.get("show"),h=d?s:Xr(i.states[c]&&i.states[c].ignore,s);if(h||!Xr(p,a)){var g=d?r:r&&r.states[c];g&&(g.ignore=!0),r&&Yae(r,!0,c,u);continue}r||(r=new R0,e.setTextGuideLine(r),!d&&(s||!a)&&Yae(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Yae(r,!1,c,u)}}if(r){br(r.style,n),r.style.fill=null;var m=o.get("showAbove"),v=e.textGuideLineConfig=e.textGuideLineConfig||{};v.showAbove=m||!1,r.buildPath=Wur}}function lAe(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<f1.length;r++){var i=f1[r];n[i]=e.getModel([i,t])}return n}function Bbt(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,c=a.clone();c.applyTransform(o),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var u=s?new hU(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:c,localRect:a,obb:u,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}function jbt(e,t,n,r,i,o){var a=e.length;if(a<2)return;e.sort(function(S,A){return S.rect[t]-A.rect[t]});for(var s=0,l,c=!1,u=0;u<a;u++){var d=e[u],p=d.rect;l=p[t]-s,l<0&&(p[t]-=l,d.label[t]-=l,c=!0),s=p[t]+p[n]}var h=e[0],g=e[a-1],m,v;y(),m<0&&x(-m,.8),v<0&&x(v,.8),y(),M(m,v,1),M(v,m,-1),y(),m<0&&w(-m),v<0&&w(v);function y(){m=h.rect[t]-r,v=i-g.rect[t]-g.rect[n]}function M(S,A,z){if(S<0){var O=Math.min(A,-S);if(O>0){C(O*z,0,a);var T=O+S;T<0&&x(-T*z,1)}else x(-S*z,1)}}function C(S,A,z){S!==0&&(c=!0);for(var O=A;O<z;O++){var T=e[O],I=T.rect;I[t]+=S,T.label[t]+=S}}function x(S,A){for(var z=[],O=0,T=1;T<a;T++){var I=e[T-1].rect,P=Math.max(e[T].rect[t]-I[t]-I[n],0);z.push(P),O+=P}if(O){var N=Math.min(Math.abs(S)/O,A);if(S>0)for(var T=0;T<a-1;T++){var F=z[T]*N;C(F,0,T+1)}else for(var T=a-1;T>0;T--){var F=z[T-1]*N;C(-F,T,a)}}}function w(S){var A=S<0?-1:1;S=Math.abs(S);for(var z=Math.ceil(S/(a-1)),O=0;O<a-1;O++)if(A>0?C(z,0,O+1):C(-z,a-O-1,a),S-=z,S<=0)return}return c}function qur(e,t,n,r){return jbt(e,"x","width",t,n)}function Hbt(e,t,n,r){return jbt(e,"y","height",t,n)}function Vbt(e){var t=[];e.sort(function(m,v){return v.priority-m.priority});var n=new ui(0,0,0,0);function r(m){if(!m.ignore){var v=m.ensureState("emphasis");v.ignore==null&&(v.ignore=!1)}m.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,c=o.label,u=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,p=!1,h=0;h<t.length;h++){var g=t[h];if(n.intersect(g.rect)){if(a&&g.axisAligned){p=!0;break}if(g.obb||(g.obb=new hU(g.localRect,g.transform)),d||(d=new hU(s,l)),d.intersect(g.obb)){p=!0;break}}}p?(r(c),u&&r(u)):(c.attr("ignore",o.defaultAttr.ignore),u&&u.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function Bur(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function jur(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Bur(r&&r.shape.points)}}var Iqe=["align","verticalAlign","width","height","fontSize"],B0=new Sy,Kae=mo(),Hur=mo();function xV(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var wV=["x","y","rotation"],Vur=(function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,n,r,i,o){var a=i.style,s=i.__hostTarget,l=s.textConfig||{},c=i.getComputedTransform(),u=i.getBoundingRect().plain();ui.applyTransform(u,u,c),c?B0.setLocalTransform(c):(B0.x=B0.y=B0.rotation=B0.originX=B0.originY=0,B0.scaleX=B0.scaleY=1),B0.rotation=eh(B0.rotation);var d=i.__hostTarget,p;if(d){p=d.getBoundingRect().plain();var h=d.getComputedTransform();ui.applyTransform(p,p,h)}var g=p&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:g,seriesModel:r,dataIndex:t,dataType:n,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:p,priority:p?p.width*p.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:g&&g.ignore,x:B0.x,y:B0.y,scaleX:B0.scaleX,scaleY:B0.scaleY,rotation:B0.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var n=this;this._chartViewList.push(t);var r=t.__model,i=r.get("labelLayout");(fr(i)||ji(i).length)&&t.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=_r(o);a&&!a.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,a,i)})},e.prototype.updateLayoutConfig=function(t){var n=t.getWidth(),r=t.getHeight();function i(C,x){return function(){Rqe(C,x)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,c=a.defaultAttr,u=void 0;fr(a.layoutOption)?u=a.layoutOption(jur(a,l)):u=a.layoutOption,u=u||{},a.computedLayoutOption=u;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:u.x!=null||u.y!=null?null:c.attachedPos,rotation:u.rotate!=null?u.rotate*d:c.attachedRot,offset:[u.dx||0,u.dy||0]});var p=!1;if(u.x!=null?(s.x=vn(u.x,n),s.setStyle("x",0),p=!0):(s.x=c.x,s.setStyle("x",c.style.x)),u.y!=null?(s.y=vn(u.y,r),s.setStyle("y",0),p=!0):(s.y=c.y,s.setStyle("y",c.style.y)),u.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:u.labelLinePoints}),p=!1)}var g=Kae(s);g.needsUpdateLabelLine=p,s.rotation=u.rotate!=null?u.rotate*d:c.rotation,s.scaleX=c.scaleX,s.scaleY=c.scaleY;for(var m=0;m<Iqe.length;m++){var v=Iqe[m];s.setStyle(v,u[v]!=null?u[v]:c.style[v])}if(u.draggable){if(s.draggable=!0,s.cursor="move",l){var y=a.seriesModel;if(a.dataIndex!=null){var M=a.seriesModel.getData(a.dataType);y=M.getItemModel(a.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=c.cursor}},e.prototype.layout=function(t){var n=t.getWidth(),r=t.getHeight(),i=Bbt(this._labelList),o=ko(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=ko(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});qur(o,0,n),Hbt(a,0,r);var s=ko(i,function(l){return l.layoutOption.hideOverlap});Vbt(s)},e.prototype.processLabelsOverall=function(){var t=this;ye(this._chartViewList,function(n){var r=n.__model,i=n.ignoreLabelLineUpdate,o=r.isAnimationEnabled();n.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!i,l=a.getTextContent();!s&&l&&(s=Kae(l).needsUpdateLabelLine),s&&t._updateLabelLine(a,r),o&&t._animateLabels(a,r)})})},e.prototype._updateLabelLine=function(t,n){var r=t.getTextContent(),i=_r(t),o=i.dataIndex;if(r&&o!=null){var a=n.getData(i.dataType),s=a.getItemModel(o),l={},c=a.getItemVisual(o,"style");if(c){var u=a.getVisual("drawType");l.stroke=c[u]}var d=s.getModel("labelLine");sAe(t,lAe(s),l),Rqe(t,d)}},e.prototype._animateLabels=function(t,n){var r=t.getTextContent(),i=t.getTextGuideLine();if(r&&(t.forceLabelAnimation||!r.ignore&&!r.invisible&&!t.disableLabelAnimation&&!II(t))){var o=Kae(r),a=o.oldLayout,s=_r(t),l=s.dataIndex,c={x:r.x,y:r.y,rotation:r.rotation},u=n.getData(s.dataType);if(a){r.attr(a);var p=t.prevStates;p&&(hi(p,"select")>=0&&r.attr(o.oldLayoutSelect),hi(p,"emphasis")>=0&&r.attr(o.oldLayoutEmphasis)),So(r,c,n,l)}else if(r.attr(c),!rk(r).valueAnimation){var d=Xr(r.style.opacity,1);r.style.opacity=0,vs(r,{style:{opacity:d}},n,l)}if(o.oldLayout=c,r.states.select){var h=o.oldLayoutSelect={};xV(h,c,wV),xV(h,r.states.select,wV)}if(r.states.emphasis){var g=o.oldLayoutEmphasis={};xV(g,c,wV),xV(g,r.states.emphasis,wV)}Lmt(r,l,u,n,n)}if(i&&!i.ignore&&!i.invisible){var o=Hur(i),a=o.oldLayout,m={points:i.shape.points};a?(i.attr({shape:a}),So(i,{shape:m},n)):(i.setShape(m),i.style.strokePercent=0,vs(i,{style:{strokePercent:1}},n)),o.oldLayout=m}},e})(),Qae=mo();function Gur(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var i=Qae(n).labelManager;i||(i=Qae(n).labelManager=new Vur),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var i=Qae(n).labelManager;r.updatedSeries.forEach(function(o){i.addLabelsOfSeries(n.getViewOfSeriesModel(o))}),i.updateLayoutConfig(n),i.layout(n),i.processLabelsOverall()})}var Zae=Math.sin,Jae=Math.cos,Gbt=Math.PI,mA=Math.PI*2,$ur=180/Gbt,$bt=(function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){this._add("C",t,n,r,i,o,a)},e.prototype.quadraticCurveTo=function(t,n,r,i){this._add("Q",t,n,r,i)},e.prototype.arc=function(t,n,r,i,o,a){this.ellipse(t,n,r,r,0,i,o,a)},e.prototype.ellipse=function(t,n,r,i,o,a,s,l){var c=s-a,u=!l,d=Math.abs(c),p=hx(d-mA)||(u?c>=mA:-c>=mA),h=c>0?c%mA:c%mA+mA,g=!1;p?g=!0:hx(d)?g=!1:g=h>=Gbt==!!u;var m=t+r*Jae(a),v=n+i*Zae(a);this._start&&this._add("M",m,v);var y=Math.round(o*$ur);if(p){var M=1/this._p,C=(u?1:-1)*(mA-M);this._add("A",r,i,y,1,+u,t+r*Jae(a+C),n+i*Zae(a+C)),M>.01&&this._add("A",r,i,y,0,+u,m,v)}else{var x=t+r*Jae(s),w=n+i*Zae(s);this._add("A",r,i,y,+g,+u,x,w)}},e.prototype.rect=function(t,n,r,i){this._add("M",t,n),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,i,o,a,s,l,c){for(var u=[],d=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}u.push(Math.round(h*d)/d)}this._d.push(t+u.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e})(),cAe="none",Uur=Math.round;function Xur(e){var t=e.fill;return t!=null&&t!==cAe}function Yur(e){var t=e.stroke;return t!=null&&t!==cAe}var ove=["lineCap","miterLimit","lineJoin"],Kur=Vt(ove,function(e){return"stroke-"+e.toLowerCase()});function Qur(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof Du){e("opacity",i);return}if(Xur(t)){var o=uq(t.fill);e("fill",o.color);var a=t.fillOpacity!=null?t.fillOpacity*o.opacity*i:o.opacity*i;a<1&&e("fill-opacity",a)}else e("fill",cAe);if(Yur(t)){var s=uq(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,c=l?(t.lineWidth||0)/l:0,u=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,d=t.strokeFirst;if(c!==1&&e("stroke-width",c),d&&e("paint-order",d?"stroke":"fill"),u<1&&e("stroke-opacity",u),t.lineDash){var p=VSe(n),h=p[0],g=p[1];h&&(g=Uur(g||0),e("stroke-dasharray",h.join(",")),(g||r)&&e("stroke-dashoffset",g))}for(var m=0;m<ove.length;m++){var v=ove[m];if(t[v]!==dU[v]){var y=t[v]||dU[v];y&&e(Kur[m],y)}}}}var Ubt="http://www.w3.org/2000/svg",Xbt="http://www.w3.org/1999/xlink",Zur="http://www.w3.org/2000/xmlns/",Jur="http://www.w3.org/XML/1998/namespace",Pqe="ecmeta_";function Ybt(e){return document.createElementNS(Ubt,e)}function wu(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function edr(e,t){var n=[];if(t)for(var r in t){var i=t[r],o=r;i!==!1&&(i!==!0&&i!=null&&(o+='="'+i+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function tdr(e){return"</"+e+">"}function uAe(e,t){t=t||{};var n=t.newline?`
`:"";function r(i){var o=i.children,a=i.tag,s=i.attrs,l=i.text;return edr(a,s)+(a!=="style"?l0(l):l||"")+(o?""+n+Vt(o,function(c){return r(c)}).join(n)+n:"")+tdr(a)}return r(e)}function ndr(e,t,n){n=n||{};var r=n.newline?`
`:"",i=" {"+r,o=r+"}",a=Vt(ji(e),function(l){return l+i+Vt(ji(e[l]),function(c){return c+":"+e[l][c]+";"}).join(r)+o}).join(r),s=Vt(ji(t),function(l){return"@keyframes "+l+i+Vt(ji(t[l]),function(c){return c+i+Vt(ji(t[l][c]),function(u){var d=t[l][c][u];return u==="d"&&(d='path("'+d+'")'),u+":"+d+";"}).join(r)+o}).join(r)+o}).join(r);return!a&&!s?"":["<![CDATA[",a,s,"]]>"].join(r)}function ave(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Dqe(e,t,n,r){return wu("svg","root",{width:e,height:t,xmlns:Ubt,"xmlns:xlink":Xbt,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var rdr=0;function Kbt(){return rdr++}var kqe={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},kA="transform-origin";function idr(e,t,n){var r=Nt({},e.shape);Nt(r,t),e.buildPath(n,r);var i=new $bt;return i.reset(Egt(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function odr(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[kA]=n+"px "+r+"px")}var adr={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Qbt(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function sdr(e,t,n){var r=e.shape.paths,i={},o,a;if(ye(r,function(l){var c=ave(n.zrId);c.animation=!0,IJ(l,{},c,!0);var u=c.cssAnims,d=c.cssNodes,p=ji(u),h=p.length;if(h){a=p[h-1];var g=u[a];for(var m in g){var v=g[m];i[m]=i[m]||{d:""},i[m].d+=v.d||""}for(var y in d){var M=d[y].animation;M.indexOf(a)>=0&&(o=M)}}}),!!o){t.d=!1;var s=Qbt(i,n);return o.replace(a,s)}}function Lqe(e){return Sn(e)?kqe[e]?"cubic-bezier("+kqe[e]+")":eSe(e)?e:"":""}function IJ(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof pJ){var s=sdr(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},c=0;c<o;c++){var u=i[c],d=[u.getMaxTime()/1e3+"s"],p=Lqe(u.getClip().easing),h=u.getDelay();p?d.push(p):d.push("linear"),h&&d.push(h/1e3+"s"),u.getLoop()&&d.push("infinite");var g=d.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(u)}function m(M){var C=M[1],x=C.length,w={},S={},A={},z="animation-timing-function";function O(pe,te,ce){for(var oe=pe.getTracks(),ae=pe.getMaxTime(),ne=0;ne<oe.length;ne++){var le=oe[ne];if(le.needsAnimate()){var he=le.keyframes,be=le.propName;if(ce&&(be=ce(be)),be)for(var me=0;me<he.length;me++){var Me=he[me],Oe=Math.round(Me.time/ae*100)+"%",de=Lqe(Me.easing),ie=Me.rawValue;(Sn(ie)||yo(ie))&&(te[Oe]=te[Oe]||{},te[Oe][be]=Me.rawValue,de&&(te[Oe][z]=de))}}}}for(var T=0;T<x;T++){var I=C[T],P=I.targetName;P?P==="shape"&&O(I,S):!r&&O(I,w)}for(var N in w){var F={};kgt(F,e),Nt(F,w[N]);var L=Rgt(F),W=w[N][z];A[N]=L?{transform:L}:{},odr(A[N],F),W&&(A[N][z]=W)}var H,j=!0;for(var N in S){A[N]=A[N]||{};var G=!H,W=S[N][z];G&&(H=new Nb);var q=H.len();H.reset(),A[N].d=idr(e,S[N],H);var $=H.len();if(!G&&q!==$){j=!1;break}W&&(A[N][z]=W)}if(!j)for(var N in A)delete A[N].d;if(!r)for(var T=0;T<x;T++){var I=C[T],P=I.targetName;P==="style"&&O(I,A,function(oe){return adr[oe]})}for(var U=ji(A),X=!0,Q,T=1;T<U.length;T++){var re=U[T-1],ee=U[T];if(A[re][kA]!==A[ee][kA]){X=!1;break}Q=A[re][kA]}if(X&&Q){for(var N in A)A[N][kA]&&delete A[N][kA];t[kA]=Q}if(ko(U,function(pe){return ji(A[pe]).length>0}).length){var se=Qbt(A,n);return se+" "+M[0]+" both"}}for(var v in l){var s=m(l[v]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+Kbt();n.cssNodes["."+y]={animation:a.join(",")},t.class=y}}function ldr(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};_qe(r,t,n)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=sU(l))}var c=i.lineWidth;if(c){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;c=c/u}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),c&&(r["stroke-width"]=c),_qe(r,t,n)}}function _qe(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+Kbt(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=e),t.class=t.class?t.class+" "+o:o}var xq=Math.round;function Zbt(e){return e&&Sn(e.src)}function Jbt(e){return e&&fr(e.toDataURL)}function dAe(e,t,n,r){Qur(function(i,o){var a=i==="fill"||i==="stroke";a&&Tgt(o)?t2t(t,e,i,r):a&&nSe(o)?n2t(n,e,i,r):e[i]=o,a&&r.ssr&&o==="none"&&(e["pointer-events"]="visible")},t,n,!1),gdr(n,e,r)}function pAe(e,t){var n=Ngt(t);n&&(n.each(function(r,i){r!=null&&(e[(Pqe+i).toLowerCase()]=r+"")}),t.isSilent()&&(e[Pqe+"silent"]="true"))}function Nqe(e){return hx(e[0]-1)&&hx(e[1])&&hx(e[2])&&hx(e[3]-1)}function cdr(e){return hx(e[4])&&hx(e[5])}function hAe(e,t,n){if(t&&!(cdr(t)&&Nqe(t))){var r=1e4;e.transform=Nqe(t)?"translate("+xq(t[4]*r)/r+" "+xq(t[5]*r)/r+")":prr(t)}}function Fqe(e,t,n){for(var r=e.points,i=[],o=0;o<r.length;o++)i.push(xq(r[o][0]*n)/n),i.push(xq(r[o][1]*n)/n);t.points=i.join(" ")}function Wqe(e){return!e.smooth}function udr(e){var t=Vt(e,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,i){for(var o=0;o<t.length;o++){var a=t[o],s=n[a[0]];s!=null&&(r[a[1]]=xq(s*i)/i)}}}var ddr={circle:[udr(["cx","cy","r"])],polyline:[Fqe,Wqe],polygon:[Fqe,Wqe]};function pdr(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName==="shape")return!0;return!1}function e2t(e,t){var n=e.style,r=e.shape,i=ddr[e.type],o={},a=t.animation,s="path",l=e.style.strokePercent,c=t.compress&&Egt(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(a&&pdr(e))&&!(l<1)){s=e.type;var u=Math.pow(10,c);i[0](r,o,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var p=e.path;d&&(p.beginPath(),e.buildPath(p,e.shape),e.pathUpdated());var h=p.getVersion(),g=e,m=g.__svgPathBuilder;(g.__svgPathVersion!==h||!m||l!==g.__svgPathStrokePercent)&&(m||(m=g.__svgPathBuilder=new $bt),m.reset(c),p.rebuildPath(m,l),m.generateStr(),g.__svgPathVersion=h,g.__svgPathStrokePercent=l),o.d=m.getStr()}return hAe(o,e.transform),dAe(o,n,e,t),pAe(o,e),t.animation&&IJ(e,o,t),t.emphasis&&ldr(e,o,t),wu(s,e.id+"",o)}function hdr(e,t){var n=e.style,r=n.image;if(r&&!Sn(r)&&(Zbt(r)?r=r.src:Jbt(r)&&(r=r.toDataURL())),!!r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),hAe(l,e.transform),dAe(l,n,e,t),pAe(l,e),t.animation&&IJ(e,l,t),wu("image",e.id+"",l)}}function fdr(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||rw,o=n.x||0,a=frr(n.y||0,rJ(i),n.textBaseline),s=hrr[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(lmt(n)){var c="",u=n.fontStyle,d=smt(n.fontSize);if(!parseFloat(d))return;var p=n.fontFamily||Jft,h=n.fontWeight;c+="font-size:"+d+";font-family:"+p+";",u&&u!=="normal"&&(c+="font-style:"+u+";"),h&&h!=="normal"&&(c+="font-weight:"+h+";"),l.style=c}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),hAe(l,e.transform),dAe(l,n,e,t),pAe(l,e),t.animation&&IJ(e,l,t),wu("text",e.id+"",l,void 0,r)}}function qqe(e,t){if(e instanceof Di)return e2t(e,t);if(e instanceof Du)return hdr(e,t);if(e instanceof IP)return fdr(e,t)}function gdr(e,t,n){var r=e.style;if(grr(r)){var i=mrr(e),o=n.shadowCache,a=o[i];if(!a){var s=e.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,p=r.shadowBlur,h=uq(r.shadowColor),g=h.opacity,m=h.color,v=p/2/l,y=p/2/c,M=v+" "+y;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=wu("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[wu("feDropShadow","",{dx:u/l,dy:d/c,stdDeviation:M,"flood-color":m,"flood-opacity":g})]),o[i]=a}t.filter=nJ(a)}}function t2t(e,t,n,r){var i=e[n],o,a={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Ogt(i))o="linearGradient",a.x1=i.x,a.y1=i.y,a.x2=i.x2,a.y2=i.y2;else if(zgt(i))o="radialGradient",a.cx=Xr(i.x,.5),a.cy=Xr(i.y,.5),a.r=Xr(i.r,.5);else return;for(var s=i.colorStops,l=[],c=0,u=s.length;c<u;++c){var d=gme(s[c].offset)*100+"%",p=s[c].color,h=uq(p),g=h.color,m=h.opacity,v={offset:d};v["stop-color"]=g,m<1&&(v["stop-opacity"]=m),l.push(wu("stop",c+"",v))}var y=wu(o,"",a,l),M=uAe(y),C=r.gradientCache,x=C[M];x||(x=r.zrId+"-g"+r.gradientIdx++,C[M]=x,a.id=x,r.defs[x]=wu(o,x,a,l)),t[n]=nJ(x)}function n2t(e,t,n,r){var i=e.style[n],o=e.getBoundingRect(),a={},s=i.repeat,l=s==="no-repeat",c=s==="repeat-x",u=s==="repeat-y",d;if(Agt(i)){var p=i.imageWidth,h=i.imageHeight,g=void 0,m=i.image;if(Sn(m)?g=m:Zbt(m)?g=m.src:Jbt(m)&&(g=m.toDataURL()),typeof Image>"u"){var v="Image width/height must been given explictly in svg-ssr renderer.";S0(p,v),S0(h,v)}else if(p==null||h==null){var y=function(T,I){if(T){var P=T.elm,N=p||I.width,F=h||I.height;T.tag==="pattern"&&(c?(F=1,N/=o.width):u&&(N=1,F/=o.height)),T.attrs.width=N,T.attrs.height=F,P&&(P.setAttribute("width",N),P.setAttribute("height",F))}},M=dSe(g,null,e,function(T){l||y(S,T),y(d,T)});M&&M.width&&M.height&&(p=p||M.width,h=h||M.height)}d=wu("image","img",{href:g,width:p,height:h}),a.width=p,a.height=h}else i.svgElement&&(d=Or(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(d){var C,x;l?C=x=1:c?(x=1,C=a.width/o.width):u?(C=1,x=a.height/o.height):a.patternUnits="userSpaceOnUse",C!=null&&!isNaN(C)&&(a.width=C),x!=null&&!isNaN(x)&&(a.height=x);var w=Rgt(i);w&&(a.patternTransform=w);var S=wu("pattern","",a,[d]),A=uAe(S),z=r.patternCache,O=z[A];O||(O=r.zrId+"-p"+r.patternIdx++,z[A]=O,a.id=O,S=r.defs[O]=wu("pattern",O,a,[d])),t[n]=nJ(O)}}function mdr(e,t,n){var r=n.clipPathCache,i=n.defs,o=r[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[e.id]=o,i[o]=wu("clipPath",o,a,[e2t(e,n)])}t["clip-path"]=nJ(o)}function Bqe(e){return document.createTextNode(e)}function QA(e,t,n){e.insertBefore(t,n)}function jqe(e,t){e.removeChild(t)}function Hqe(e,t){e.appendChild(t)}function r2t(e){return e.parentNode}function i2t(e){return e.nextSibling}function ese(e,t){e.textContent=t}var Vqe=58,vdr=120,bdr=wu("","");function sve(e){return e===void 0}function Pv(e){return e!==void 0}function ydr(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;o!==void 0&&(r[o]=i)}return r}function pN(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function wq(e){var t,n=e.children,r=e.tag;if(Pv(r)){var i=e.elm=Ybt(r);if(fAe(bdr,e),Ht(n))for(t=0;t<n.length;++t){var o=n[t];o!=null&&Hqe(i,wq(o))}else Pv(e.text)&&!xr(e.text)&&Hqe(i,Bqe(e.text))}else e.elm=Bqe(e.text);return e.elm}function o2t(e,t,n,r,i){for(;r<=i;++r){var o=n[r];o!=null&&QA(e,wq(o),t)}}function PU(e,t,n,r){for(;n<=r;++n){var i=t[n];if(i!=null)if(Pv(i.tag)){var o=r2t(i.elm);jqe(o,i.elm)}else jqe(e,i.elm)}}function fAe(e,t){var n,r=t.elm,i=e&&e.attrs||{},o=t.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n==="style"?r.style.cssText=a:n.charCodeAt(0)!==vdr?r.setAttribute(n,a):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(Zur,n,a):n.charCodeAt(3)===Vqe?r.setAttributeNS(Jur,n,a):n.charCodeAt(5)===Vqe?r.setAttributeNS(Xbt,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function Mdr(e,t,n){for(var r=0,i=0,o=t.length-1,a=t[0],s=t[o],l=n.length-1,c=n[0],u=n[l],d,p,h,g;r<=o&&i<=l;)a==null?a=t[++r]:s==null?s=t[--o]:c==null?c=n[++i]:u==null?u=n[--l]:pN(a,c)?(xR(a,c),a=t[++r],c=n[++i]):pN(s,u)?(xR(s,u),s=t[--o],u=n[--l]):pN(a,u)?(xR(a,u),QA(e,a.elm,i2t(s.elm)),a=t[++r],u=n[--l]):pN(s,c)?(xR(s,c),QA(e,s.elm,a.elm),s=t[--o],c=n[++i]):(sve(d)&&(d=ydr(t,r,o)),p=d[c.key],sve(p)?QA(e,wq(c),a.elm):(h=t[p],h.tag!==c.tag?QA(e,wq(c),a.elm):(xR(h,c),t[p]=void 0,QA(e,h.elm,a.elm))),c=n[++i]);(r<=o||i<=l)&&(r>o?(g=n[l+1]==null?null:n[l+1].elm,o2t(e,g,n,i,l)):PU(e,t,r,o))}function xR(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(fAe(e,t),sve(t.text)?Pv(r)&&Pv(i)?r!==i&&Mdr(n,r,i):Pv(i)?(Pv(e.text)&&ese(n,""),o2t(n,null,i,0,i.length-1)):Pv(r)?PU(n,r,0,r.length-1):Pv(e.text)&&ese(n,""):e.text!==t.text&&(Pv(r)&&PU(n,r,0,r.length-1),ese(n,t.text)))}function Cdr(e,t){if(pN(e,t))xR(e,t);else{var n=e.elm,r=r2t(n);wq(t),r!==null&&(QA(r,t.elm,i2t(n)),PU(r,[e],0,0))}return t}var xdr=0,wdr=(function(){function e(t,n,r){if(this.type="svg",this.refreshHover=Gqe(),this.configLayer=Gqe(),this.storage=n,this._opts=r=Nt({},r),this.root=t,this._id="zr"+xdr++,this._oldVNode=Dqe(r.width,r.height),t&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=Ybt("svg");fAe(null,this._oldVNode),i.appendChild(o),t.appendChild(i)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Cdr(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return qqe(t,ave(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=ave(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis,o.ssr=this._opts.ssr;var a=[],s=this._bgVNode=Sdr(r,i,this._backgroundColor,o);s&&a.push(s);var l=t.compress?null:this._mainVNode=wu("g","main",{},[]);this._paintList(n,o,l?l.children:a),l&&a.push(l);var c=Vt(ji(o.defs),function(p){return o.defs[p]});if(c.length&&a.push(wu("defs","defs",{},c)),t.animation){var u=ndr(o.cssNodes,o.cssAnims,{newline:!0});if(u){var d=wu("style","stl",{},[],u);a.push(d)}}return Dqe(r,i,a,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},uAe(this.renderToVNode({animation:Xr(t.cssAnimation,!0),emphasis:Xr(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Xr(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var i=t.length,o=[],a=0,s,l,c=0,u=0;u<i;u++){var d=t[u];if(!d.invisible){var p=d.__clipPaths,h=p&&p.length||0,g=l&&l.length||0,m=void 0;for(m=Math.max(h-1,g-1);m>=0&&!(p&&l&&p[m]===l[m]);m--);for(var v=g-1;v>m;v--)a--,s=o[a-1];for(var y=m+1;y<h;y++){var M={};mdr(p[y],M,n);var C=wu("g","clip-g-"+c++,M,[]);(s?s.children:r).push(C),o[a++]=C,s=C}l=p;var x=qqe(d,n);x&&(s?s.children:r).push(x)}}},e.prototype.resize=function(t,n){var r=this._opts,i=this.root,o=this._viewport;if(t!=null&&(r.width=t),n!=null&&(r.height=n),i&&o&&(o.style.display="none",t=jR(i,0,r),n=jR(i,1,r),o.style.display=""),this._width!==t||this._height!==n){if(this._width=t,this._height=n,o){var a=o.style;a.width=t+"px",a.height=n+"px"}if(nSe(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",n))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var n=this.renderToString(),r="data:image/svg+xml;";return t?(n=brr(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},e})();function Gqe(e){return function(){}}function Sdr(e,t,n,r){var i;if(n&&n!=="none")if(i=wu("rect","bg",{width:e,height:t,x:"0",y:"0"}),Tgt(n))t2t({fill:n},i.attrs,"fill",r);else if(nSe(n))n2t({style:{fill:n},dirty:Nl,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",r);else{var o=uq(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}function Adr(e){e.registerPainter("svg",wdr)}function $qe(e,t,n){var r=wm.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var tse=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;i=i||cU,typeof n=="string"?a=$qe(n,r,i):xr(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(Qwe(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=$qe("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,c=new ui(0,0,0,0);function u(M){if(!(!M.isFinite()||M.isZero()))if(a.length===0){var C=new ui(0,0,0,0);C.copy(M),a.push(C)}else{for(var x=!1,w=1/0,S=0,A=0;A<a.length;++A){var z=a[A];if(z.intersect(M)){var O=new ui(0,0,0,0);O.copy(z),O.union(M),a[A]=O,x=!0;break}else if(l){c.copy(M),c.union(z);var T=M.width*M.height,I=z.width*z.height,P=c.width*c.height,N=P-T-I;N<w&&(w=N,S=A)}}if(l&&(a[S].union(M),x=!0),!x){var C=new ui(0,0,0,0);C.copy(M),a.push(C)}l||(l=a.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var p=n[d];if(p){var h=p.shouldBePainted(i,o,!0,!0),g=p.__isRendered&&(p.__dirty&Up||!h)?p.getPrevPaintRect():null;g&&u(g);var m=h&&(p.__dirty&Up||!p.__isRendered)?p.getPaintRect():null;m&&u(m)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var p=r[d],h=p&&p.shouldBePainted(i,o,!0,!0);if(p&&(!h||!p.__zr)&&p.__isRendered){var g=p.getPrevPaintRect();g&&u(g)}}var v;do{v=!1;for(var d=0;d<a.length;){if(a[d].isZero()){a.splice(d,1);continue}for(var y=d+1;y<a.length;)a[d].intersect(a[y])?(v=!0,a[d].union(a[y]),a.splice(y,1)):y++;d++}}while(v);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,r){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=n+"px",a.height=r+"px"),o.width=n*i,o.height=r*i,s&&(s.width=n*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(n,r,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var c=this.motionBlur&&!n,u=this.lastFrameAlpha,d=this.dpr,p=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/d,l/d));var h=this.domBack;function g(m,v,y,M){if(a.clearRect(m,v,y,M),r&&r!=="transparent"){var C=void 0;if(PB(r)){var x=r.global||r.__width===y&&r.__height===M;C=x&&r.__canvasGradient||Kme(a,r,{x:0,y:0,width:y,height:M}),r.__canvasGradient=C,r.__width=y,r.__height=M}else igt(r)&&(r.scaleX=r.scaleX||d,r.scaleY=r.scaleY||d,C=Qme(a,r,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));a.save(),a.fillStyle=C||r,a.fillRect(m,v,y,M),a.restore()}c&&(a.save(),a.globalAlpha=u,a.drawImage(h,m,v,y,M),a.restore())}!i||c?g(0,0,s,l):i.length&&ye(i,function(m){g(m.x*d,m.y*d,m.width*d,m.height*d)})},t})(Zf),Uqe=1e5,vA=314159,SV=.01,Odr=.001;function zdr(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Tdr(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var Edr=(function(){function e(t,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=Nt({},r||{}),this.dpr=r.devicePixelRatio||cU,this._singleCanvas=o,this.root=t;var a=t.style;a&&(Qwe(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var u=t,d=u.width,p=u.height;r.width!=null&&(d=r.width),r.height!=null&&(p=r.height),this.dpr=r.devicePixelRatio||1,u.width=d*this.dpr,u.height=p*this.dpr,this._width=d,this._height=p;var h=new tse(u,this,this.dpr);h.__builtin__=!0,h.initContext(),l[vA]=h,h.zlevel=vA,s.push(vA),this._domRoot=t}else{this._width=jR(t,0,r),this._height=jR(t,1,r);var c=this._domRoot=Tdr(this._width,this._height);t.appendChild(c)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,t,this._redrawId);for(var o=0;o<i.length;o++){var a=i[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<n;a++){var s=t[a];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(Uqe)),o||(o=r.ctx,o.save()),MO(o,s,i,a===n-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Uqe)},e.prototype.paintOne=function(t,n){GSe(t,n)},e.prototype._paintList=function(t,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,n,r),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var l=this;rU(function(){l._paintList(t,n,r,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(vA).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||r)&&o.push(c)}for(var u=!0,d=!1,p=function(m){var v=o[m],y=v.ctx,M=a&&v.createRepaintRects(t,n,h._width,h._height),C=r?v.__startIndex:v.__drawIndex,x=!r&&v.incremental&&Date.now,w=x&&Date.now(),S=v.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(v.__startIndex===v.__endIndex)v.clear(!1,S,M);else if(C===v.__startIndex){var A=t[C];(!A.incremental||!A.notClear||r)&&v.clear(!1,S,M)}C===-1&&(console.error("For some unknown reason. drawIndex is -1"),C=v.__startIndex);var z,O=function(N){var F={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(z=C;z<v.__endIndex;z++){var L=t[z];if(L.__inHover&&(d=!0),i._doPaintEl(L,v,a,N,F,z===v.__endIndex-1),x){var W=Date.now()-w;if(W>15)break}}F.prevElClipPaths&&y.restore()};if(M)if(M.length===0)z=v.__endIndex;else for(var T=h.dpr,I=0;I<M.length;++I){var P=M[I];y.save(),y.beginPath(),y.rect(P.x*T,P.y*T,P.width*T,P.height*T),y.clip(),O(P),y.restore()}else y.save(),O(),y.restore();v.__drawIndex=z,v.__drawIndex<v.__endIndex&&(u=!1)},h=this,g=0;g<o.length;g++)p(g);return Ii.wxa&&ye(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:u,needsRefreshHover:d}},e.prototype._doPaintEl=function(t,n,r,i,o,a){var s=n.ctx;if(r){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(MO(s,t,o,a),t.setPrevPaintRect(l))}else MO(s,t,o,a)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=vA);var r=this._layers[t];return r||(r=new tse("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?ei(r,this._layerConfig[t],!0):this._layerConfig[t-SV]&&ei(r,this._layerConfig[t-SV],!0),n&&(r.virtual=n),this.insertLayer(t,r),r.initContext()),r},e.prototype.insertLayer=function(t,n){var r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(!r[t]&&zdr(n)){if(o>0&&t>i[0]){for(l=0;l<o-1&&!(i[l]<t&&i[l+1]>t);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(n.dom,c.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i];t.call(n,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__&&t.call(n,a,o)}},e.prototype.eachOtherLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__||t.call(n,a,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(d,p){d.__dirty=d.__used=!1});function n(d){o&&(o.__endIndex!==d&&(o.__dirty=!0),o.__endIndex=d)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var i=t[r];if(i.zlevel!==t[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var i=t[l],c=i.zlevel,u=void 0;s!==c&&(s=c,a=0),i.incremental?(u=this.getLayer(c+Odr,this._needsManuallyCompositing),u.incremental=!0,a=1):u=this.getLayer(c+(a>0?SV:0),this._needsManuallyCompositing),u.__builtin__||KZ("ZLevel "+c+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==l&&(u.__dirty=!0),u.__startIndex=l,u.incremental?u.__drawIndex=-1:u.__drawIndex=l,n(l),o=u),i.__dirty&Up&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(d,p){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,ye(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?ei(r[t],n,!0):r[t]=n;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+SV){var a=this._layers[o];ei(a,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,i=n[t];i&&(i.dom.parentNode.removeChild(i.dom),delete n[t],r.splice(hi(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,o=this.root;if(t!=null&&(i.width=t),n!=null&&(i.height=n),t=jR(o,0,i),n=jR(o,1,i),r.style.display="",this._width!==t||n!==this._height){r.style.width=t+"px",r.style.height=n+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(vA).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[vA].dom;var n=new tse("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var r=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=n.dom.width,o=n.dom.height;this.eachLayer(function(d){d.__builtin__?r.drawImage(d.dom,0,0,i,o):d.renderToCanvas&&(r.save(),d.renderToCanvas(r),r.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var u=s[l];MO(r,u,a,l===c-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function Rdr(e){e.registerPainter("canvas",Edr)}var Idr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return n2(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new Ir,i=rc("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,c=rc(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(c),c.setStyle(n.itemStyle);var u=n.iconRotate==="inherit"?a:n.iconRotate||0;return c.rotation=u*Math.PI/180,c.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Ra);function LP(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=DP(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a<n.length;a++)o.push(DP(e,t,n[a]));return o.join(" ")}}function a2t(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Ht(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var $B=(function(e){gt(t,e);function t(n,r,i,o){var a=e.call(this)||this;return a.updateData(n,r,i,o),a}return t.prototype._createSymbol=function(n,r,i,o,a){this.removeAll();var s=rc(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=Pdr,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){rM(this.childAt(0))},t.prototype.downplay=function(){iM(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,o){this.silent=!1;var a=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),c=a!==this._symbolType,u=o&&o.disableAnimation;if(c){var d=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,d)}else{var p=this.childAt(0);p.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};u?p.attr(h):So(p,h,s,r),Om(p)}if(this._updateCommon(n,r,l,i,o),c){var p=this.childAt(0);if(!u){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,vs(p,h,s,r)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,o,a){var s=this.childAt(0),l=n.hostModel,c,u,d,p,h,g,m,v,y;if(o&&(c=o.emphasisItemStyle,u=o.blurItemStyle,d=o.selectItemStyle,p=o.focus,h=o.blurScope,m=o.labelStatesModels,v=o.hoverScale,y=o.cursorStyle,g=o.emphasisDisabled),!o||n.hasItemOption){var M=o&&o.itemModel?o.itemModel:n.getItemModel(r),C=M.getModel("emphasis");c=C.getModel("itemStyle").getItemStyle(),d=M.getModel(["select","itemStyle"]).getItemStyle(),u=M.getModel(["blur","itemStyle"]).getItemStyle(),p=C.get("focus"),h=C.get("blurScope"),g=C.get("disabled"),m=Ru(M),v=C.getShallow("scale"),y=M.getShallow("cursor")}var x=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=$3(n.getItemVisual(r,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var S=n.getItemVisual(r,"style"),A=S.fill;if(s instanceof Du){var z=s.style;s.useStyle(Nt({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},S))}else s.__isEmptyBrush?s.useStyle(Nt({},S)):s.useStyle(S),s.style.decal=null,s.setColor(A,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var O=n.getItemVisual(r,"liftZ"),T=this._z2;O!=null?T==null&&(this._z2=s.z2,s.z2+=O):T!=null&&(s.z2=T,this._z2=null);var I=a&&a.useNameLabel;Od(s,m,{labelFetcher:l,labelDataIndex:r,defaultText:P,inheritColor:A,defaultOpacity:S.opacity});function P(L){return I?n.getName(L):LP(n,L)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var N=s.ensureState("emphasis");N.style=c,s.ensureState("select").style=d,s.ensureState("blur").style=u;var F=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;N.scaleX=this._sizeX*F,N.scaleY=this._sizeY*F,this.setSymbolScale(1),al(this,p,h,g)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=_r(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&ow(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();ow(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return uk(n.getItemVisual(r,"symbolSize"))},t})(Ir);function Pdr(e,t){this.parent.drift(e,t)}function nse(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function Xqe(e){return e!=null&&!xr(e)&&(e={isIgnore:e}),e||{}}function Yqe(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ru(t),cursorStyle:t.get("cursor")}}var UB=(function(){function e(t){this.group=new Ir,this._SymbolCtor=t||$B}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Xqe(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=Yqe(t),c={disableAnimation:s},u=n.getSymbolPoint||function(d){return t.getItemLayout(d)};o||r.removeAll(),t.diff(o).add(function(d){var p=u(d);if(nse(t,p,d,n)){var h=new a(t,d,l,c);h.setPosition(p),t.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,p){var h=o.getItemGraphicEl(p),g=u(d);if(!nse(t,g,d,n)){r.remove(h);return}var m=t.getItemVisual(d,"symbol")||"circle",v=h&&h.getSymbolType&&h.getSymbolType();if(!h||v&&v!==m)r.remove(h),h=new a(t,d,l,c),h.setPosition(g);else{h.updateData(t,d,l,c);var y={x:g[0],y:g[1]};s?h.attr(y):So(h,y,i)}r.add(h),t.setItemGraphicEl(d,h)}).remove(function(d){var p=o.getItemGraphicEl(d);p&&p.fadeOut(function(){r.remove(p)},i)}).execute(),this._getSymbolPoint=u,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var o=t._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Yqe(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Xqe(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=n.getItemLayout(o);if(nse(n,a,o,r)){var s=new this._SymbolCtor(n,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),n.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Nw(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},e})();function s2t(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=Ddr(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),c=t.mapDimension(a),u=s==="x"||s==="radius"?1:0,d=Vt(e.dimensions,function(g){return t.mapDimension(g)}),p=!1,h=t.getCalculationInfo("stackResultDimension");return aM(t,d[0])&&(p=!0,d[0]=h),aM(t,d[1])&&(p=!0,d[1]=h),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Ddr(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:yo(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function l2t(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}function kdr(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Ldr(e,t,n,r,i,o,a,s){for(var l=kdr(e,t),c=[],u=[],d=[],p=[],h=[],g=[],m=[],v=s2t(i,t,a),y=e.getLayout("points")||[],M=t.getLayout("points")||[],C=0;C<l.length;C++){var x=l[C],w=!0,S=void 0,A=void 0;switch(x.cmd){case"=":S=x.idx*2,A=x.idx1*2;var z=y[S],O=y[S+1],T=M[A],I=M[A+1];(isNaN(z)||isNaN(O))&&(z=T,O=I),c.push(z,O),u.push(T,I),d.push(n[S],n[S+1]),p.push(r[A],r[A+1]),m.push(t.getRawIndex(x.idx1));break;case"+":var P=x.idx,N=v.dataDimsForPoint,F=i.dataToPoint([t.get(N[0],P),t.get(N[1],P)]);A=P*2,c.push(F[0],F[1]),u.push(M[A],M[A+1]);var L=l2t(v,i,t,P);d.push(L[0],L[1]),p.push(r[A],r[A+1]),m.push(t.getRawIndex(P));break;case"-":w=!1}w&&(h.push(x),g.push(g.length))}g.sort(function(re,ee){return m[re]-m[ee]});for(var W=c.length,H=tb(W),j=tb(W),G=tb(W),q=tb(W),$=[],C=0;C<g.length;C++){var U=g[C],X=C*2,Q=U*2;H[X]=c[Q],H[X+1]=c[Q+1],j[X]=u[Q],j[X+1]=u[Q+1],G[X]=d[Q],G[X+1]=d[Q+1],q[X]=p[Q],q[X+1]=p[Q+1],$[C]=h[U]}return{current:H,next:j,stackedOnCurrent:G,stackedOnNext:q,status:$}}var pC=Math.min,hC=Math.max;function rz(e,t){return isNaN(e)||isNaN(t)}function lve(e,t,n,r,i,o,a,s,l){for(var c,u,d,p,h,g,m=n,v=0;v<r;v++){var y=t[m*2],M=t[m*2+1];if(m>=i||m<0)break;if(rz(y,M)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](y,M),d=y,p=M;else{var C=y-c,x=M-u;if(C*C+x*x<.5){m+=o;continue}if(a>0){for(var w=m+o,S=t[w*2],A=t[w*2+1];S===y&&A===M&&v<r;)v++,w+=o,m+=o,S=t[w*2],A=t[w*2+1],y=t[m*2],M=t[m*2+1],C=y-c,x=M-u;var z=v+1;if(l)for(;rz(S,A)&&z<r;)z++,w+=o,S=t[w*2],A=t[w*2+1];var O=.5,T=0,I=0,P=void 0,N=void 0;if(z>=r||rz(S,A))h=y,g=M;else{T=S-c,I=A-u;var F=y-c,L=S-y,W=M-u,H=A-M,j=void 0,G=void 0;if(s==="x"){j=Math.abs(F),G=Math.abs(L);var q=T>0?1:-1;h=y-q*j*a,g=M,P=y+q*G*a,N=M}else if(s==="y"){j=Math.abs(W),G=Math.abs(H);var $=I>0?1:-1;h=y,g=M-$*j*a,P=y,N=M+$*G*a}else j=Math.sqrt(F*F+W*W),G=Math.sqrt(L*L+H*H),O=G/(G+j),h=y-T*a*(1-O),g=M-I*a*(1-O),P=y+T*a*O,N=M+I*a*O,P=pC(P,hC(S,y)),N=pC(N,hC(A,M)),P=hC(P,pC(S,y)),N=hC(N,pC(A,M)),T=P-y,I=N-M,h=y-T*j/G,g=M-I*j/G,h=pC(h,hC(c,y)),g=pC(g,hC(u,M)),h=hC(h,pC(c,y)),g=hC(g,pC(u,M)),T=y-h,I=M-g,P=y+T*G/j,N=M+I*G/j}e.bezierCurveTo(d,p,h,g,y,M),d=P,p=N}else e.lineTo(y,M)}c=y,u=M,m+=o}return v}var c2t=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),_dr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new c2t},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&rz(i[a*2-2],i[a*2-1]);a--);for(;o<a&&rz(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=lve(n,i,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=Nb.CMD,s,l,c=r==="x",u=[],d=0;d<o.length;){var p=o[d++],h=void 0,g=void 0,m=void 0,v=void 0,y=void 0,M=void 0,C=void 0;switch(p){case a.M:s=o[d++],l=o[d++];break;case a.L:if(h=o[d++],g=o[d++],C=c?(n-s)/(h-s):(n-l)/(g-l),C<=1&&C>=0){var x=c?(g-l)*C+l:(h-s)*C+s;return c?[n,x]:[x,n]}s=h,l=g;break;case a.C:h=o[d++],g=o[d++],m=o[d++],v=o[d++],y=o[d++],M=o[d++];var w=c?oU(s,h,m,y,n,u):oU(l,g,v,M,n,u);if(w>0)for(var S=0;S<w;S++){var A=u[S];if(A<=1&&A>=0){var x=c?yu(l,g,v,M,A):yu(s,h,m,y,A);return c?[n,x]:[x,n]}}s=y,l=M;break}}},t})(Di),Ndr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(c2t),u2t=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Ndr},t.prototype.buildPath=function(n,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&rz(i[s*2-2],i[s*2-1]);s--);for(;a<s&&rz(i[a*2],i[a*2+1]);a++);}for(;a<s;){var c=lve(n,i,a,s,s,1,r.smooth,l,r.connectNulls);lve(n,o,a+c-1,c,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=c+1,n.closePath()}},t})(Di);function d2t(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,c=o.height,u=n.get(["lineStyle","width"])||0;a-=u/2,s-=u/2,l+=u,c+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new ao({shape:{x:a,y:s,width:l,height:c}});if(t){var p=e.getBaseAxis(),h=p.isHorizontal(),g=p.inverse;h?(g&&(d.shape.x+=l),d.shape.width=0):(g||(d.shape.y+=c),d.shape.height=0);var m=fr(i)?function(v){i(v,d)}:null;vs(d,{shape:{width:l,height:c,x:a,y:s}},n,null,r,m)}return d}function p2t(e,t,n){var r=e.getArea(),i=wl(r.r0,1),o=wl(r.r,1),a=new A0({shape:{cx:wl(e.cx,1),cy:wl(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=i,vs(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function XB(e,t,n,r,i){if(e){if(e.type==="polar")return p2t(e,t,n);if(e.type==="cartesian2d")return d2t(e,t,n,r,i)}else return null;return null}function U3(e,t){return e.type===t}function Kqe(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Qqe(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function Zqe(e,t){var n=Qqe(e),r=n[0],i=n[1],o=Qqe(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Jqe(e){return yo(e)?e:e?.5:0}function Fdr(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=tb(r*2),o=0;o<r;o++){var a=l2t(n,e,t,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function fC(e,t,n,r,i){var o=n.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,c=[],u=[],d=[],p=[];if(i){for(l=0;l<e.length;l+=2){var h=t||e;!isNaN(h[l])&&!isNaN(h[l+1])&&p.push(e[l],e[l+1])}e=p}for(l=0;l<e.length-2;l+=2)switch(d[0]=e[l+2],d[1]=e[l+3],u[0]=e[l],u[1]=e[l+1],s.push(u[0],u[1]),r){case"end":c[a]=d[a],c[1-a]=u[1-a],s.push(c[0],c[1]);break;case"middle":var g=(u[a]+d[a])/2,m=[];c[a]=m[a]=g,c[1-a]=u[1-a],m[1-a]=d[1-a],s.push(c[0],c[1]),s.push(m[0],m[1]);break;default:c[a]=u[a],c[1-a]=d[1-a],s.push(c[0],c[1])}return s.push(e[l++],e[l++]),s}function Wdr(e,t){var n=[],r=e.length,i,o;function a(u,d,p){var h=u.coord,g=(p-h)/(d.coord-h),m=tSe(g,[u.color,d.color]);return{coord:p,color:m}}for(var s=0;s<r;s++){var l=e[s],c=l.coord;if(c<0)i=l;else if(c>t){o?n.push(a(o,l,t)):i&&n.push(a(i,l,0),a(i,l,t));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function qdr(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(o){var l=t.getAxis(i),c=Vt(o.stops,function(C){return{coord:l.toGlobalCoord(l.dataToCoord(C.value)),color:C.color}}),u=c.length,d=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var p=Wdr(c,i==="x"?n.getWidth():n.getHeight()),h=p.length;if(!h&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var g=10,m=p[0].coord-g,v=p[h-1].coord+g,y=v-m;if(y<.001)return"transparent";ye(p,function(C){C.offset=(C.coord-m)/y}),p.push({offset:h?p[h-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:d[0]||"transparent"});var M=new ek(0,0,0,0,p,!0);return M[i]=m,M[i+"2"]=v,M}}}function Bdr(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&jdr(o,t))){var a=t.mapDimension(o.dim),s={};return ye(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function jdr(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if($B.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Hdr(e,t){return isNaN(e)||isNaN(t)}function Vdr(e){for(var t=e.length/2;t>0&&Hdr(e[t*2-2],e[t*2-1]);t--);return t-1}function e6e(e,t){return[e[t*2],e[t*2+1]]}function Gdr(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,c=0;c<r;c++)if(a=e[c*2+i],!(isNaN(a)||isNaN(e[c*2+1-i]))){if(c===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=c;break}s=c,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function h2t(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<f1.length;t++)if(e.get([f1[t],"endLabel","show"]))return!0;return!1}function rse(e,t,n,r){if(U3(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=h2t(r)?function(h,g){e._endLabelOnDuring(h,g,a,s,o,i,t)}:null,c=t.getBaseAxis().isHorizontal(),u=d2t(t,n,r,function(){var h=e._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var d=u.shape,p=Math.max(d.width,d.height);c?(d.y-=p,d.height+=p*2):(d.x-=p,d.width+=p*2)}return l&&l(1,u),u}else return p2t(t,n,r)}function $dr(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var Udr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new Ir,r=new UB;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=En(this._changePolyState,this)},t.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=n.getModel("lineStyle"),c=n.getModel("areaStyle"),u=s.getLayout("points")||[],d=o.type==="polar",p=this._coordSys,h=this._symbolDraw,g=this._polyline,m=this._polygon,v=this._lineGroup,y=!r.ssr&&n.get("animation"),M=!c.isEmpty(),C=c.get("origin"),x=s2t(o,s,C),w=M&&Fdr(o,s,x),S=n.get("showSymbol"),A=n.get("connectNulls"),z=S&&!d&&Bdr(n,s,o),O=this._data;O&&O.eachItemGraphicEl(function(re,ee){re.__temp&&(a.remove(re),O.setItemGraphicEl(ee,null))}),S||h.remove(),a.add(v);var T=d?!1:n.get("step"),I;o&&o.getArea&&n.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var P=qdr(s,o,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(g&&p.type===o.type&&T===this._step))S&&h.updateData(s,{isIgnore:z,clipShape:I,disableAnimation:!0,getSymbolPoint:function(re){return[u[re*2],u[re*2+1]]}}),y&&this._initSymbolLabelAnimation(s,o,I),T&&(w&&(w=fC(w,u,o,T,A)),u=fC(u,null,o,T,A)),g=this._newPolyline(u),M?m=this._newPolygon(u,w):m&&(v.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Kz(P)),v.setClipPath(rse(this,o,!0,n));else{M&&!m?m=this._newPolygon(u,w):m&&!M&&(v.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Kz(P));var N=v.getClipPath();if(N){var F=rse(this,o,!1,n);vs(N,{shape:F.shape},n)}else v.setClipPath(rse(this,o,!0,n));S&&h.updateData(s,{isIgnore:z,clipShape:I,disableAnimation:!0,getSymbolPoint:function(re){return[u[re*2],u[re*2+1]]}}),(!Kqe(this._stackedOnPoints,w)||!Kqe(this._points,u))&&(y?this._doUpdateAnimation(s,w,o,i,T,C,A):(T&&(w&&(w=fC(w,u,o,T,A)),u=fC(u,null,o,T,A)),g.setShape({points:u}),m&&m.setShape({points:u,stackedOnPoints:w})))}var L=n.getModel("emphasis"),W=L.get("focus"),H=L.get("blurScope"),j=L.get("disabled");if(g.useStyle(br(l.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),Ad(g,n,"lineStyle"),g.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var G=g.getState("emphasis").style;G.lineWidth=+g.style.lineWidth+1}_r(g).seriesIndex=n.seriesIndex,al(g,W,H,j);var q=Jqe(n.get("smooth")),$=n.get("smoothMonotone");if(g.setShape({smooth:q,smoothMonotone:$,connectNulls:A}),m){var U=s.getCalculationInfo("stackedOnSeries"),X=0;m.useStyle(br(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(X=Jqe(U.get("smooth"))),m.setShape({smooth:q,stackedOnSmooth:X,smoothMonotone:$,connectNulls:A}),Ad(m,n,"areaStyle"),_r(m).seriesIndex=n.seriesIndex,al(m,W,H,j)}var Q=this._changePolyState;s.eachItemGraphicEl(function(re){re&&(re.onHoverStateChange=Q)}),this._polyline.onHoverStateChange=Q,this._data=s,this._coordSys=o,this._stackedOnPoints=w,this._points=u,this._step=T,this._valueOrigin=C,n.get("triggerLineEvent")&&(this.packEventData(n,g),m&&this.packEventData(n,m))},t.prototype.packEventData=function(n,r){_r(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,i,o){var a=n.getData(),s=Uz(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),c=a.getItemGraphicEl(s);if(!c){var u=l[s*2],d=l[s*2+1];if(isNaN(u)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,d))return;var p=n.get("zlevel")||0,h=n.get("z")||0;c=new $B(a,s),c.x=u,c.y=d,c.setZ(p,h);var g=c.getSymbolPath().getTextContent();g&&(g.zlevel=p,g.z=h,g.z2=this._polyline.z2+1),c.__temp=!0,a.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else da.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=Uz(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else da.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;pU(this._polyline,n),r&&pU(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new _dr({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new u2t({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var c=n.hostModel,u=c.get("animationDuration");fr(u)&&(u=u(null));var d=c.get("animationDelay")||0,p=fr(d)?d(null):d;n.eachItemGraphicEl(function(h,g){var m=h;if(m){var v=[h.x,h.y],y=void 0,M=void 0,C=void 0;if(i)if(a){var x=i,w=r.pointToCoord(v);o?(y=x.startAngle,M=x.endAngle,C=-w[1]/180*Math.PI):(y=x.r0,M=x.r,C=w[0])}else{var S=i;o?(y=S.x,M=S.x+S.width,C=h.x):(y=S.y+S.height,M=S.y,C=h.y)}var A=M===y?0:(C-y)/(M-y);l&&(A=1-A);var z=fr(d)?d(g):u*A+p,O=m.getSymbolPath(),T=O.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:z}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:z}),O.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(h2t(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new oo({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=Vdr(l);u>=0&&(Od(s,Ru(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:u,defaultText:function(d,p,h){return h!=null?a2t(a,h):LP(a,d)},enableTextSetter:!0},$dr(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,o,a,s,l){var c=this._endLabel,u=this._polyline;if(c){n<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var d=i.getLayout("points"),p=i.hostModel,h=p.get("connectNulls"),g=s.get("precision"),m=s.get("distance")||0,v=l.getBaseAxis(),y=v.isHorizontal(),M=v.inverse,C=r.shape,x=M?y?C.x:C.y+C.height:y?C.x+C.width:C.y,w=(y?m:0)*(M?-1:1),S=(y?0:-m)*(M?-1:1),A=y?"x":"y",z=Gdr(d,x,A),O=z.range,T=O[1]-O[0],I=void 0;if(T>=1){if(T>1&&!h){var P=e6e(d,O[0]);c.attr({x:P[0]+w,y:P[1]+S}),a&&(I=p.getRawValue(O[0]))}else{var P=u.getPointOn(x,A);P&&c.attr({x:P[0]+w,y:P[1]+S});var N=p.getRawValue(O[0]),F=p.getRawValue(O[1]);a&&(I=Kgt(i,g,N,F,z.t))}o.lastFrameIndex=O[0]}else{var L=n===1||o.lastFrameIndex>0?O[0]:0,P=e6e(d,L);a&&(I=p.getRawValue(L)),c.attr({x:P[0]+w,y:P[1]+S})}if(a){var W=rk(c);typeof W.setLabelText=="function"&&W.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var c=this._polyline,u=this._polygon,d=n.hostModel,p=Ldr(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),h=p.current,g=p.stackedOnCurrent,m=p.next,v=p.stackedOnNext;if(a&&(g=fC(p.stackedOnCurrent,p.current,i,a,l),h=fC(p.current,null,i,a,l),v=fC(p.stackedOnNext,p.next,i,a,l),m=fC(p.next,null,i,a,l)),Zqe(h,m)>3e3||u&&Zqe(g,v)>3e3){c.stopAnimation(),c.setShape({points:m}),u&&(u.stopAnimation(),u.setShape({points:m,stackedOnPoints:v}));return}c.shape.__points=p.current,c.shape.points=h;var y={shape:{points:m}};p.current!==h&&(y.shape.__points=p.next),c.stopAnimation(),So(c,y,d),u&&(u.setShape({points:h,stackedOnPoints:g}),u.stopAnimation(),So(u,{shape:{stackedOnPoints:v}},d),c.shape.points!==u.shape.points&&(u.shape.points=c.shape.points));for(var M=[],C=p.status,x=0;x<C.length;x++){var w=C[x].cmd;if(w==="="){var S=n.getItemGraphicEl(C[x].idx1);S&&M.push({el:S,ptIdx:x})}}c.animators&&c.animators.length&&c.animators[0].during(function(){u&&u.dirtyShape();for(var A=c.shape.__points,z=0;z<M.length;z++){var O=M[z].el,T=M[z].ptIdx*2;O.x=A[T],O.y=A[T+1],O.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(r.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(da);function YB(e,t){return{seriesType:e,plan:lk(),reset:function(n){var r=n.getData(),i=n.coordinateSystem,o=n.pipelineContext,a=t||o.large;if(i){var s=Vt(i.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,c=r.getCalculationInfo("stackResultDimension");aM(r,s[0])&&(s[0]=c),aM(r,s[1])&&(s[1]=c);var u=r.getStore(),d=r.getDimensionIndex(s[0]),p=r.getDimensionIndex(s[1]);return l&&{progress:function(h,g){for(var m=h.end-h.start,v=a&&tb(m*l),y=[],M=[],C=h.start,x=0;C<h.end;C++){var w=void 0;if(l===1){var S=u.get(d,C);w=i.dataToPoint(S,null,M)}else y[0]=u.get(d,C),y[1]=u.get(p,C),w=i.dataToPoint(y,null,M);a?(v[x++]=w[0],v[x++]=w[1]):g.setItemLayout(C,w.slice())}a&&g.setLayout("points",v)}}}}}}var Xdr={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Ydr=function(e){return Math.round(e.length/2)};function f2t(e){return{seriesType:e,reset:function(t,n,r){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),c=a.getOtherAxis(l),u=l.getExtent(),d=r.getDevicePixelRatio(),p=Math.abs(u[1]-u[0])*(d||1),h=Math.round(s/p);if(isFinite(h)&&h>1){o==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(c.dim),1/h)):o==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(c.dim),1/h));var g=void 0;Sn(o)?g=Xdr[o]:fr(o)&&(g=o),g&&t.setData(i.downSample(i.mapDimension(c.dim),1/h,g,Ydr))}}}}}function Kdr(e){e.registerChartView(Udr),e.registerSeriesModel(Idr),e.registerLayout(YB("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,f2t("line"))}var Sq=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return n2(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,i){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(n),s=o.dataToPoint(a);if(i)ye(o.getAxes(),function(p,h){if(p.type==="category"&&r!=null){var g=p.getTicksCoords(),m=p.getTickModel().get("alignWithLabel"),v=a[h],y=r[h]==="x1"||r[h]==="y1";if(y&&!m&&(v+=1),g.length<2)return;if(g.length===2){s[h]=p.toGlobalCoord(p.getExtent()[y?1:0]);return}for(var M=void 0,C=void 0,x=1,w=0;w<g.length;w++){var S=g[w].coord,A=w===g.length-1?g[w-1].tickValue+x:g[w].tickValue;if(A===v){C=S;break}else if(A<v)M=S;else if(M!=null&&A>v){C=(S+M)/2;break}w===1&&(x=A-g[0].tickValue)}C==null&&(M?M&&(C=g[g.length-1].coord):C=g[0].coord),s[h]=p.toGlobalCoord(C)}});else{var l=this.getData(),c=l.getLayout("offset"),u=l.getLayout("size"),d=o.getBaseAxis().isHorizontal()?0:1;s[d]+=c+u/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(Ra);Ra.registerClass(Sq);var Qdr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return n2(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,i){return i.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Fw(Sq.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(Sq),Zdr=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),DU=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new Zdr},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-a)*.5,c=a+l,u=r.startAngle,d=r.endAngle,p=r.clockwise,h=Math.PI*2,g=p?d-u<h:u-d<h;g||(u=d-(p?h:-h));var m=Math.cos(u),v=Math.sin(u),y=Math.cos(d),M=Math.sin(d);g?(n.moveTo(m*a+i,v*a+o),n.arc(m*c+i,v*c+o,l,-Math.PI+u,u,!p)):n.moveTo(m*s+i,v*s+o),n.arc(i,o,s,u,d,!p),n.arc(y*c+i,M*c+o,l,d-Math.PI*2,d-Math.PI,!p),a!==0&&n.arc(i,o,a,d,u,p)},t})(Di);function Jdr(e,t){t=t||{};var n=t.isRoundCap;return function(r,i,o){var a=i.position;if(!a||a instanceof Array)return uU(r,i,o);var s=e(a),l=i.distance!=null?i.distance:5,c=this.shape,u=c.cx,d=c.cy,p=c.r,h=c.r0,g=(p+h)/2,m=c.startAngle,v=c.endAngle,y=(m+v)/2,M=n?Math.abs(p-h)/2:0,C=Math.cos,x=Math.sin,w=u+p*C(m),S=d+p*x(m),A="left",z="top";switch(s){case"startArc":w=u+(h-l)*C(y),S=d+(h-l)*x(y),A="center",z="top";break;case"insideStartArc":w=u+(h+l)*C(y),S=d+(h+l)*x(y),A="center",z="bottom";break;case"startAngle":w=u+g*C(m)+AV(m,l+M,!1),S=d+g*x(m)+OV(m,l+M,!1),A="right",z="middle";break;case"insideStartAngle":w=u+g*C(m)+AV(m,-l+M,!1),S=d+g*x(m)+OV(m,-l+M,!1),A="left",z="middle";break;case"middle":w=u+g*C(y),S=d+g*x(y),A="center",z="middle";break;case"endArc":w=u+(p+l)*C(y),S=d+(p+l)*x(y),A="center",z="bottom";break;case"insideEndArc":w=u+(p-l)*C(y),S=d+(p-l)*x(y),A="center",z="top";break;case"endAngle":w=u+g*C(v)+AV(v,l+M,!0),S=d+g*x(v)+OV(v,l+M,!0),A="left",z="middle";break;case"insideEndAngle":w=u+g*C(v)+AV(v,-l+M,!0),S=d+g*x(v)+OV(v,-l+M,!0),A="right",z="middle";break;default:return uU(r,i,o)}return r=r||{},r.x=w,r.y=S,r.align=A,r.verticalAlign=z,r}}function e0r(e,t,n,r){if(yo(r)){e.setTextConfig({rotation:r});return}else if(Ht(t)){e.setTextConfig({rotation:0});return}var i=e.shape,o=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(o+a)/2,l,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=a;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-l;c==="middle"&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function AV(e,t,n){return t*Math.sin(e)*(n?-1:1)}function OV(e,t,n){return t*Math.cos(e)*(n?1:-1)}function CO(e,t,n){var r=e.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;Ht(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Vt(r,function(o){return Am(o,i)})}}var ise=Math.max,ose=Math.min;function t0r(e,t){var n=e.getArea&&e.getArea();if(U3(e,"cartesian2d")){var r=e.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var n0r=(function(e){gt(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(n,r,i,o){this._model=n,this._removeOnRenderedListener(i),this._updateDrawMode(n);var a=n.get("coordinateSystem");(a==="cartesian2d"||a==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,i):this._renderNormal(n,r,i,o))},t.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},t.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},t.prototype.eachRendered=function(n){Nw(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n,r,i,o){var a=this.group,s=n.getData(),l=this._data,c=n.coordinateSystem,u=c.getBaseAxis(),d;c.type==="cartesian2d"?d=u.isHorizontal():c.type==="polar"&&(d=u.dim==="angle");var p=n.isAnimationEnabled()?n:null,h=r0r(n,c);h&&this._enableRealtimeSort(h,s,i);var g=n.get("clip",!0)||h,m=t0r(c,s);a.removeClipPath();var v=n.get("roundCap",!0),y=n.get("showBackground",!0),M=n.getModel("backgroundStyle"),C=M.get("borderRadius")||0,x=[],w=this._backgroundEls,S=o&&o.isInitSort,A=o&&o.type==="changeAxisOrder";function z(I){var P=zV[c.type](s,I),N=u0r(c,d,P);return N.useStyle(M.getItemStyle()),c.type==="cartesian2d"?N.setShape("r",C):N.setShape("cornerRadius",C),x[I]=N,N}s.diff(l).add(function(I){var P=s.getItemModel(I),N=zV[c.type](s,I,P);if(y&&z(I),!(!s.hasValue(I)||!o6e[c.type](N))){var F=!1;g&&(F=t6e[c.type](m,N));var L=n6e[c.type](n,s,I,N,d,p,u.model,!1,v);h&&(L.forceLabelAnimation=!0),a6e(L,s,I,P,N,n,d,c.type==="polar"),S?L.attr({shape:N}):h?r6e(h,p,L,N,I,d,!1,!1):vs(L,{shape:N},n,I),s.setItemGraphicEl(I,L),a.add(L),L.ignore=F}}).update(function(I,P){var N=s.getItemModel(I),F=zV[c.type](s,I,N);if(y){var L=void 0;w.length===0?L=z(P):(L=w[P],L.useStyle(M.getItemStyle()),c.type==="cartesian2d"?L.setShape("r",C):L.setShape("cornerRadius",C),x[I]=L);var W=zV[c.type](s,I),H=m2t(d,W,c);So(L,{shape:H},p,I)}var j=l.getItemGraphicEl(P);if(!s.hasValue(I)||!o6e[c.type](F)){a.remove(j);return}var G=!1;if(g&&(G=t6e[c.type](m,F),G&&a.remove(j)),j?Om(j):j=n6e[c.type](n,s,I,F,d,p,u.model,!!j,v),h&&(j.forceLabelAnimation=!0),A){var q=j.getTextContent();if(q){var $=rk(q);$.prevValue!=null&&($.prevValue=$.value)}}else a6e(j,s,I,N,F,n,d,c.type==="polar");S?j.attr({shape:F}):h?r6e(h,p,j,F,I,d,!0,A):So(j,{shape:F},n,I,null),s.setItemGraphicEl(I,j),j.ignore=G,a.add(j)}).remove(function(I){var P=l.getItemGraphicEl(I);P&&fq(P,n,I)}).execute();var O=this._backgroundGroup||(this._backgroundGroup=new Ir);O.removeAll();for(var T=0;T<x.length;++T)O.add(x[T]);a.add(O),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(n,r,i){this._clear(),l6e(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),l6e(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&XB(n.coordinateSystem,!1,n),i=this.group;r?i.setClipPath(r):i.removeClipPath()},t.prototype._enableRealtimeSort=function(n,r,i){var o=this;if(r.count()){var a=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,i),this._isFirstFrame=!1;else{var s=function(l){var c=r.getItemGraphicEl(l),u=c&&c.shape;return u&&Math.abs(a.isHorizontal()?u.height:u.width)||0};this._onRendered=function(){o._updateSortWithinSameData(r,s,a,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(n,r,i){var o=[];return n.each(n.mapDimension(r.dim),function(a,s){var l=i(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:Vt(o,function(a){return a.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(n,r,i){for(var o=i.scale,a=n.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,c=o.getOrdinalMeta().categories.length;l<c;++l){var u=n.rawIndexOf(a,o.getRawOrdinalNumber(l)),d=u<0?Number.MIN_VALUE:r(n.indexOfRawIndex(u));if(d>s)return!0;s=d}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,o=i.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],i.getOrdinalMeta().categories.length-1);a<=s;++a)if(n.ordinalNumbers[a]!==i.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(n,r,i,o){if(this._isOrderChangedWithinSameData(n,r,i)){var a=this._dataSort(n,i,r);this._isOrderDifferentInView(a,i)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(n,r,i){var o=r.baseAxis,a=this._dataSort(n,o,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(o){fq(o,n,_r(o).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(da),t6e={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=ise(t.x,e.x),s=ose(t.x+t.width,i),l=ise(t.y,e.y),c=ose(t.y+t.height,o),u=s<a,d=c<l;return t.x=u&&a>i?s:a,t.y=d&&l>o?c:l,t.width=u?0:s-a,t.height=d?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=ose(t.r,e.r),o=ise(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return a}},n6e={cartesian2d:function(e,t,n,r,i,o,a,s,l){var c=new ao({shape:Nt({},r),z2:1});if(c.__dataIndex=n,c.name="item",o){var u=c.shape,d=i?"height":"width";u[d]=0}return c},polar:function(e,t,n,r,i,o,a,s,l){var c=!i&&l?DU:A0,u=new c({shape:r,z2:1});u.name="item";var d=g2t(i);if(u.calculateTextPosition=Jdr(d,{isRoundCap:c===DU}),o){var p=u.shape,h=i?"r":"endAngle",g={};p[h]=i?r.r0:r.startAngle,g[h]=r[h],(s?So:vs)(u,{shape:g},o)}return u}};function r0r(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function r6e(e,t,n,r,i,o,a,s){var l,c;o?(c={x:r.x,width:r.width},l={y:r.y,height:r.height}):(c={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?So:vs)(n,{shape:l},t,i,null);var u=t?e.baseAxis.model:null;(a?So:vs)(n,{shape:c},u,i)}function i6e(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var i0r=["x","y","width","height"],o0r=["cx","cy","r","startAngle","endAngle"],o6e={cartesian2d:function(e){return!i6e(e,i0r)},polar:function(e){return!i6e(e,o0r)}},zV={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?s0r(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function a0r(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function g2t(e){return(function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}})(e)}function a6e(e,t,n,r,i,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=e.shape,d=CO(r.getModel("itemStyle"),u,!0);Nt(u,d),e.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",c)}e.useStyle(l);var p=r.getShallow("cursor");p&&e.attr("cursor",p);var h=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=Ru(r);Od(e,g,{labelFetcher:o,labelDataIndex:n,defaultText:LP(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=e.getTextContent();if(s&&m){var v=r.get(["label","position"]);e.textConfig.inside=v==="middle"?!0:null,e0r(e,v==="outside"?h:v,g2t(a),r.get(["label","rotate"]))}kmt(m,g,o.getRawValue(n),function(M){return a2t(t,M)});var y=r.getModel(["emphasis"]);al(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Ad(e,r),a0r(i)&&(e.style.fill="none",e.style.stroke="none",ye(e.states,function(M){M.style&&(M.style.fill=M.style.stroke="none")}))}function s0r(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}var l0r=(function(){function e(){}return e})(),s6e=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new l0r},t.prototype.buildPath=function(n,r){for(var i=r.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],c=this.barWidth,u=0;u<i.length;u+=3)l[o]=c,l[a]=i[u+2],s[o]=i[u+o],s[a]=i[u+a],n.rect(s[0],s[1],l[0],l[1])},t})(Di);function l6e(e,t,n,r){var i=e.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),c=i.getLayout("largeBackgroundPoints");if(c){var u=new s6e({shape:{points:c},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),t.add(u),n&&n.push(u)}var d=new s6e({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(i.getVisual("style")),d.style.stroke=null,_r(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",c6e),d.on("mousemove",c6e)),n&&n.push(d)}var c6e=SJ(function(e){var t=this,n=c0r(t,e.offsetX,e.offsetY);_r(t).dataIndex=n>=0?n:null},30,!1);function c0r(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,d=o.length/3;u<d;u++){var p=u*3;if(l[r]=c,l[i]=o[p+2],s[r]=o[p+r],s[i]=o[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}function m2t(e,t,n){if(U3(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),o=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:Math.PI*2}}}function u0r(e,t,n){var r=e.type==="polar"?A0:ao;return new r({shape:m2t(t,n,e),silent:!0,z2:0})}function d0r(e){e.registerChartView(n0r),e.registerSeriesModel(Qdr),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Zr(Cbt,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xbt("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,f2t("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var u6e=Math.PI*2,TV=Math.PI/180;function v2t(e,t){return Ic(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function b2t(e,t){var n=v2t(e,t),r=e.get("center"),i=e.get("radius");Ht(i)||(i=[0,i]);var o=vn(n.width,t.getWidth()),a=vn(n.height,t.getHeight()),s=Math.min(o,a),l=vn(i[0],s/2),c=vn(i[1],s/2),u,d,p=e.coordinateSystem;if(p){var h=p.dataToPoint(r);u=h[0]||0,d=h[1]||0}else Ht(r)||(r=[r,r]),u=vn(r[0],o)+n.x,d=vn(r[1],a)+n.y;return{cx:u,cy:d,r0:l,r:c}}function p0r(e,t,n){t.eachSeriesByType(e,function(r){var i=r.getData(),o=i.mapDimension("value"),a=v2t(r,n),s=b2t(r,n),l=s.cx,c=s.cy,u=s.r,d=s.r0,p=-r.get("startAngle")*TV,h=r.get("endAngle"),g=r.get("padAngle")*TV;h=h==="auto"?p-u6e:-h*TV;var m=r.get("minAngle")*TV,v=m+g,y=0;i.each(o,function(H){!isNaN(H)&&y++});var M=i.getSum(o),C=Math.PI/(M||y)*2,x=r.get("clockwise"),w=r.get("roseType"),S=r.get("stillShowZeroSum"),A=i.getDataExtent(o);A[0]=0;var z=x?1:-1,O=[p,h],T=z*g/2;pSe(O,!x),p=O[0],h=O[1];var I=y2t(r);I.startAngle=p,I.endAngle=h,I.clockwise=x;var P=Math.abs(h-p),N=P,F=0,L=p;if(i.setLayout({viewRect:a,r:u}),i.each(o,function(H,j){var G;if(isNaN(H)){i.setItemLayout(j,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:c,r0:d,r:w?NaN:u});return}w!=="area"?G=M===0&&S?C:H*C:G=P/y,G<v?(G=v,N-=v):F+=H;var q=L+z*G,$=0,U=0;g>G?($=L+z*G/2,U=$):($=L+T,U=q-T),i.setItemLayout(j,{angle:G,startAngle:$,endAngle:U,clockwise:x,cx:l,cy:c,r0:d,r:w?Yo(H,A,[d,u]):u}),L=q}),N<u6e&&y)if(N<=.001){var W=P/y;i.each(o,function(H,j){if(!isNaN(H)){var G=i.getItemLayout(j);G.angle=W;var q=0,$=0;W<g?(q=p+z*(j+1/2)*W,$=q):(q=p+z*j*W+T,$=p+z*(j+1)*W-T),G.startAngle=q,G.endAngle=$}})}else C=N/F,L=p,i.each(o,function(H,j){if(!isNaN(H)){var G=i.getItemLayout(j),q=G.angle===v?v:H*C,$=0,U=0;q<g?($=L+z*q/2,U=$):($=L+T,U=L+z*q-T),G.startAngle=$,G.endAngle=U,L+=z*q}})})}var y2t=mo();function KB(e){return{seriesType:e,reset:function(t,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var i=t.getData();i.filterSelf(function(o){for(var a=i.getName(o),s=0;s<r.length;s++)if(!r[s].isSelected(a))return!1;return!0})}}}}var h0r=Math.PI/180;function d6e(e,t,n,r,i,o,a,s,l,c){if(e.length<2)return;function u(m){for(var v=m.rB,y=v*v,M=0;M<m.list.length;M++){var C=m.list[M],x=Math.abs(C.label.y-n),w=r+C.len,S=w*w,A=Math.sqrt(Math.abs((1-x*x/y)*S)),z=t+(A+C.len2)*i,O=z-C.label.x,T=C.targetTextWidth-O*i;M2t(C,T,!0),C.label.x=z}}function d(m){for(var v={list:[],maxY:0},y={list:[],maxY:0},M=0;M<m.length;M++)if(m[M].labelAlignTo==="none"){var C=m[M],x=C.label.y>n?y:v,w=Math.abs(C.label.y-n);if(w>=x.maxY){var S=C.label.x-t-C.len2*i,A=r+C.len,z=Math.abs(S)<A?Math.sqrt(w*w/(1-S*S/A/A)):A;x.rB=z,x.maxY=w}x.list.push(C)}u(v),u(y)}for(var p=e.length,h=0;h<p;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var g=e[h].label.x-c;e[h].linePoints[1][0]+=g,e[h].label.x=c}Hbt(e,l,l+a)&&d(e)}function f0r(e,t,n,r,i,o,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,p=0;p<e.length;p++){var h=e[p].label;ase(e[p])||(h.x<t?(u=Math.min(u,h.x),l.push(e[p])):(d=Math.max(d,h.x),c.push(e[p])))}for(var p=0;p<e.length;p++){var g=e[p];if(!ase(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var h=g.label,m=g.linePoints,v=void 0;g.labelAlignTo==="edge"?h.x<t?v=m[2][0]-g.labelDistance-a-g.edgeDistance:v=a+i-g.edgeDistance-m[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?h.x<t?v=u-a-g.bleedMargin:v=a+i-d-g.bleedMargin:h.x<t?v=h.x-a-g.bleedMargin:v=a+i-h.x-g.bleedMargin,g.targetTextWidth=v,M2t(g,v)}}d6e(c,t,n,r,1,i,o,a,s,d),d6e(l,t,n,r,-1,i,o,a,s,u);for(var p=0;p<e.length;p++){var g=e[p];if(!ase(g)&&g.linePoints){var h=g.label,m=g.linePoints,y=g.labelAlignTo==="edge",M=h.style.padding,C=M?M[1]+M[3]:0,x=h.style.backgroundColor?0:C,w=g.rect.width+x,S=m[1][0]-m[2][0];y?h.x<t?m[2][0]=a+g.edgeDistance+w+g.labelDistance:m[2][0]=a+i-g.edgeDistance-w-g.labelDistance:(h.x<t?m[2][0]=h.x+g.labelDistance:m[2][0]=h.x-g.labelDistance,m[1][0]=m[2][0]+S),m[1][1]=m[2][1]=h.y}}}function M2t(e,t,n){if(n===void 0&&(n=!1),e.labelStyleWidth==null){var r=e.label,i=r.style,o=e.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,c=i.overflow,u=o.width+(a?0:l);if(t<u||n){var d=o.height;if(c&&c.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var p=r.getBoundingRect();r.setStyle("width",Math.ceil(p.width)),r.setStyle("backgroundColor",a)}else{var h=t-l,g=t<u?h:n?h>e.unconstrainedWidth?null:h:null;r.setStyle("width",g)}var m=r.getBoundingRect();o.width=m.width;var v=(r.style.margin||0)+2.1;o.height=m.height+v,o.y-=(o.height-d)/2}}}function ase(e){return e.position==="center"}function g0r(e){var t=e.getData(),n=[],r,i,o=!1,a=(e.get("minShowLabelAngle")||0)*h0r,s=t.getLayout("viewRect"),l=t.getLayout("r"),c=s.width,u=s.x,d=s.y,p=s.height;function h(S){S.ignore=!0}function g(S){if(!S.ignore)return!0;for(var A in S.states)if(S.states[A].ignore===!1)return!0;return!1}t.each(function(S){var A=t.getItemGraphicEl(S),z=A.shape,O=A.getTextContent(),T=A.getTextGuideLine(),I=t.getItemModel(S),P=I.getModel("label"),N=P.get("position")||I.get(["emphasis","label","position"]),F=P.get("distanceToLabelLine"),L=P.get("alignTo"),W=vn(P.get("edgeDistance"),c),H=P.get("bleedMargin"),j=I.getModel("labelLine"),G=j.get("length");G=vn(G,c);var q=j.get("length2");if(q=vn(q,c),Math.abs(z.endAngle-z.startAngle)<a){ye(O.states,h),O.ignore=!0,T&&(ye(T.states,h),T.ignore=!0);return}if(g(O)){var $=(z.startAngle+z.endAngle)/2,U=Math.cos($),X=Math.sin($),Q,re,ee,se;r=z.cx,i=z.cy;var pe=N==="inside"||N==="inner";if(N==="center")Q=z.cx,re=z.cy,se="center";else{var te=(pe?(z.r+z.r0)/2*U:z.r*U)+r,ce=(pe?(z.r+z.r0)/2*X:z.r*X)+i;if(Q=te+U*3,re=ce+X*3,!pe){var oe=te+U*(G+l-z.r),ae=ce+X*(G+l-z.r),ne=oe+(U<0?-1:1)*q,le=ae;L==="edge"?Q=U<0?u+W:u+c-W:Q=ne+(U<0?-F:F),re=le,ee=[[te,ce],[oe,ae],[ne,le]]}se=pe?"center":L==="edge"?U>0?"right":"left":U>0?"left":"right"}var he=Math.PI,be=0,me=P.get("rotate");if(yo(me))be=me*(he/180);else if(N==="center")be=0;else if(me==="radial"||me===!0){var Me=U<0?-$+he:-$;be=Me}else if(me==="tangential"&&N!=="outside"&&N!=="outer"){var Oe=Math.atan2(U,X);Oe<0&&(Oe=he*2+Oe);var de=X>0;de&&(Oe=he+Oe),be=Oe-he}if(o=!!be,O.x=Q,O.y=re,O.rotation=be,O.setStyle({verticalAlign:"middle"}),pe){O.setStyle({align:se});var Ae=O.states.select;Ae&&(Ae.x+=O.x,Ae.y+=O.y)}else{var ie=O.getBoundingRect().clone();ie.applyTransform(O.getComputedTransform());var ue=(O.style.margin||0)+2.1;ie.y-=ue/2,ie.height+=ue,n.push({label:O,labelLine:T,position:N,len:G,len2:q,minTurnAngle:j.get("minTurnAngle"),maxSurfaceAngle:j.get("maxSurfaceAngle"),surfaceNormal:new ci(U,X),linePoints:ee,textAlign:se,labelDistance:F,labelAlignTo:L,edgeDistance:W,bleedMargin:H,rect:ie,unconstrainedWidth:ie.width,labelStyleWidth:O.style.width})}A.setTextConfig({inside:pe})}}),!o&&e.get("avoidLabelOverlap")&&f0r(n,r,i,l,c,p,u,d);for(var m=0;m<n.length;m++){var v=n[m],y=v.label,M=v.labelLine,C=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),C&&(ye(y.states,h),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(M){var w=v.linePoints;C||!w?(ye(M.states,h),M.ignore=!0):(qbt(w,v.minTurnAngle),Fur(w,v.surfaceNormal,v.maxSurfaceAngle),M.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new ci(w[0][0],w[0][1])})}}}var m0r=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this)||this;o.z2=2;var a=new oo;return o.setTextContent(a),o.updateData(n,r,i,!0),o}return t.prototype.updateData=function(n,r,i,o){var a=this,s=n.hostModel,l=n.getItemModel(r),c=l.getModel("emphasis"),u=n.getItemLayout(r),d=Nt(CO(l.getModel("itemStyle"),u,!0),u);if(isNaN(d.startAngle)){a.setShape(d);return}if(o){a.setShape(d);var p=s.getShallow("animationType");s.ecModel.ssr?(vs(a,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),a.originX=d.cx,a.originY=d.cy):p==="scale"?(a.shape.r=u.r0,vs(a,{shape:{r:u.r}},s,r)):i!=null?(a.setShape({startAngle:i,endAngle:i}),vs(a,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},s,r)):(a.shape.endAngle=u.startAngle,So(a,{shape:{endAngle:u.endAngle}},s,r))}else Om(a),So(a,{shape:d},s,r);a.useStyle(n.getItemVisual(r,"style")),Ad(a,l);var h=(u.startAngle+u.endAngle)/2,g=s.get("selectedOffset"),m=Math.cos(h)*g,v=Math.sin(h)*g,y=l.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,n,r),a.ensureState("emphasis").shape=Nt({r:u.r+(c.get("scale")&&c.get("scaleSize")||0)},CO(c.getModel("itemStyle"),u)),Nt(a.ensureState("select"),{x:m,y:v,shape:CO(l.getModel(["select","itemStyle"]),u)}),Nt(a.ensureState("blur"),{shape:CO(l.getModel(["blur","itemStyle"]),u)});var M=a.getTextGuideLine(),C=a.getTextContent();M&&Nt(M.ensureState("select"),{x:m,y:v}),Nt(C.ensureState("select"),{x:m,y:v}),al(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(n,r,i){var o=this,a=r.getItemModel(i),s=a.getModel("labelLine"),l=r.getItemVisual(i,"style"),c=l&&l.fill,u=l&&l.opacity;Od(o,Ru(a),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:c,defaultOpacity:u,defaultText:n.getFormattedLabel(i,"normal")||r.getName(i)});var d=o.getTextContent();o.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var p=n.get(["label","position"]);if(p!=="outside"&&p!=="outer")o.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new R0,this.setTextGuideLine(h)),sAe(this,lAe(a),{stroke:c,opacity:hm(s.get(["lineStyle","opacity"]),u,1)})}},t})(A0),v0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,i,o){var a=n.getData(),s=this._data,l=this.group,c;if(!s&&a.count()>0){for(var u=a.getItemLayout(0),d=1;isNaN(u&&u.startAngle)&&d<a.count();++d)u=a.getItemLayout(d);u&&(c=u.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&n.get("showEmptyCircle")){var p=y2t(n),h=new A0({shape:Nt(b2t(n,i),p)});h.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}a.diff(s).add(function(g){var m=new m0r(a,g,c);a.setItemGraphicEl(g,m),l.add(m)}).update(function(g,m){var v=s.getItemGraphicEl(m);v.updateData(a,g,c),v.off("click"),l.add(v),a.setItemGraphicEl(g,v)}).remove(function(g){var m=s.getItemGraphicEl(g);fq(m,n,g)}).execute(),g0r(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(n,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},t.type="pie",t})(da);function fk(e,t,n){t=Ht(t)&&{coordDimensions:t}||Nt({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=dk(r,t).dimensions,o=new y0(i,e);return o.initData(r,n),o}var QB=(function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e})(),b0r=mo(),y0r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new QB(En(this.getData,this),En(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return fk(this,{coordDimensions:["value"],encodeDefaulter:Zr(LSe,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),i=b0r(r),o=i.seats;if(!o){var a=[];r.each(r.mapDimension("value"),function(l){a.push(l)}),o=i.seats=Bgt(a,r.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=o[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){$z(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Ra);function M0r(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(i){var o=r.mapDimension("value"),a=r.get(o,i);return!(yo(a)&&!isNaN(a)&&a<0)})}}}function C0r(e){e.registerChartView(v0r),e.registerSeriesModel(y0r),Nvt("pie",e.registerAction),e.registerLayout(Zr(p0r,"pie")),e.registerProcessor(KB("pie")),e.registerProcessor(M0r("pie"))}var x0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return n2(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,r,i){return i.point(r.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t})(Ra),C2t=4,w0r=(function(){function e(){}return e})(),S0r=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new w0r},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(n,r){var i=r.points,o=r.size,a=this.symbolProxy,s=a.shape,l=n.getContext?n.getContext():n,c=l&&o[0]<C2t,u=this.softClipShape,d;if(c){this._ctx=l;return}for(this._ctx=null,d=this._off;d<i.length;){var p=i[d++],h=i[d++];isNaN(p)||isNaN(h)||u&&!u.contain(p,h)||(s.x=p-o[0]/2,s.y=h-o[1]/2,s.width=o[0],s.height=o[1],a.buildPath(n,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},t.prototype.afterBrush=function(){var n=this.shape,r=n.points,i=n.size,o=this._ctx,a=this.softClipShape,s;if(o){for(s=this._off;s<r.length;){var l=r[s++],c=r[s++];isNaN(l)||isNaN(c)||a&&!a.contain(l,c)||o.fillRect(l-i[0]/2,c-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(n,r){for(var i=this.shape,o=i.points,a=i.size,s=Math.max(a[0],4),l=Math.max(a[1],4),c=o.length/2-1;c>=0;c--){var u=c*2,d=o[u]-s/2,p=o[u+1]-l/2;if(n>=d&&r>=p&&n<=d+s&&r<=p+l)return c}return-1},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=i[0],r=i[1],o.contain(n,r)){var a=this.hoverDataIdx=this.findDataIndex(n,r);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.points,o=r.size,a=o[0],s=o[1],l=1/0,c=1/0,u=-1/0,d=-1/0,p=0;p<i.length;){var h=i[p++],g=i[p++];l=Math.min(h,l),u=Math.max(h,u),c=Math.min(g,c),d=Math.max(g,d)}n=this._rect=new ui(l-a/2,c-s/2,u-l+a,d-c+s)}return n},t})(Di),A0r=(function(){function e(){this.group=new Ir}return e.prototype.updateData=function(t,n){this._clear();var r=this._create();r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,n)},e.prototype.updateLayout=function(t){var n=t.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,o=r.startIndex*4*2;n=new Float32Array(n.buffer,o,i)}r.setShape("points",n),r.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,n,r){var i=this._newAdded[0],o=n.getLayout("points"),a=i&&i.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var c=this._create();c.startIndex=t.start,c.endIndex=t.end,c.incremental=!0,c.setShape({points:o}),this._setCommon(c,n,r)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new S0r({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,n,r){var i=n.hostModel;r=r||{};var o=n.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=r.clipShape||null,t.symbolProxy=rc(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<C2t;t.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var c=_r(t);c.seriesIndex=i.seriesIndex,t.on("mousemove",function(u){c.dataIndex=null;var d=t.hoverDataIdx;d>=0&&(c.dataIndex=d+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e})(),O0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.updateData(o,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,i){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.incrementalPrepareUpdate(o),this._finished=!1},t.prototype.incrementalRender=function(n,r,i){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},t.prototype.updateTransform=function(n,r,i){var o=n.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var a=YB("").reset(n,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},t.prototype._updateSymbolDraw=function(n,r){var i=this._symbolDraw,o=r.pipelineContext,a=o.large;return(!i||a!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=a?new A0r:new UB,this._isLargeDraw=a,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(da),z0r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(Ri),cve=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",wc).models[0]},t.type="cartesian2dAxis",t})(Ri);jl(cve,hk);var x2t={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},T0r=ei({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},x2t),gAe=ei({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},x2t),E0r=ei({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},gAe),R0r=br({logBase:10},gAe);const w2t={category:T0r,value:gAe,time:E0r,log:R0r};var I0r={value:1,category:1,time:1,log:1};function _P(e,t,n,r){ye(I0r,function(i,o){var a=ei(ei({},w2t[o],!0),r,!0),s=(function(l){gt(c,l);function c(){var u=l!==null&&l.apply(this,arguments)||this;return u.type=t+"Axis."+o,u}return c.prototype.mergeDefaultAndTheme=function(u,d){var p=mq(this),h=p?ok(u):{},g=d.getTheme();ei(u,g.get(o+"Axis")),ei(u,this.getDefaultOption()),u.type=p6e(u),p&&aw(u,h,p)},c.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=tve.createByAxisModel(this))},c.prototype.getCategories=function(u){var d=this.option;if(d.type==="category")return u?d.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=t+"Axis."+o,c.defaultOption=a,c})(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",p6e)}function p6e(e){return e.type||(e.data?"category":"value")}var P0r=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Vt(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ko(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e})(),uve=["x","y"];function h6e(e){return e.type==="interval"||e.type==="time"}var D0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=uve,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!h6e(n)||!h6e(r))){var i=n.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],c=o[1]-o[0];if(!(!l||!c)){var u=(s[0]-a[0])/l,d=(s[1]-a[1])/c,p=a[0]-i[0]*u,h=a[1]-o[0]*d,g=this._transform=[u,0,0,d,p,h];this._invTransform=j3([],g)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),o=this.dataToPoint(r),a=this.getArea(),s=new ui(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return Yu(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(n[0]),c=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return Yu(i,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(n[0]),r),i[1]=a.coordToData(a.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,a=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-o+n,l=Math.max(i[0],i[1])-a+n;return new ui(o,a,s,l)},t})(P0r),k0r=(function(e){gt(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t})(ng);function dve(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,c=i.dim,u=r.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],p={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,g=c==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}o.position=[c==="y"?g[p[l]]:d[0],c==="x"?g[p[l]]:d[3]],o.rotation=Math.PI/2*(c==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?g[p[s]]-g[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),xu(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function f6e(e){return e.get("coordinateSystem")==="cartesian2d"}function g6e(e){var t={xAxisModel:null,yAxisModel:null};return ye(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,wc).models[0];t[r]=o}),t}var sse=Math.log;function S2t(e,t,n){var r=sM.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=zbt(e,t),c=l.extent,u=l.fixMin,d=l.fixMax;if(e.type==="log"){var p=sse(e.base);c=[sse(c[0])/p,sse(c[1])/p]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:d});var h=r.getExtent.call(e);u&&(c[0]=h[0]),d&&(c[1]=h[1]);var g=r.getInterval.call(e),m=c[0],v=c[1];if(u&&d)g=(v-m)/a;else if(u)for(v=c[0]+g*a;v<c[1]&&isFinite(v)&&isFinite(c[1]);)g=$ae(g),v=c[0]+g*a;else if(d)for(m=c[1]-g*a;m>c[0]&&isFinite(m)&&isFinite(c[0]);)g=$ae(g),m=c[1]-g*a;else{var y=e.getTicks().length-1;y>a&&(g=$ae(g));var M=g*a;v=Math.ceil(c[1]/g)*g,m=wl(v-M),m<0&&c[0]>=0?(m=0,v=wl(M)):v>0&&c[1]<=0&&(v=0,m=-wl(M))}var C=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,m+g*C,v+g*x),r.setInterval.call(e,g),(C||x)&&r.setNiceExtent.call(e,m+g,v-g)}var L0r=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=uve,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(a){var s,l=ji(a),c=l.length;if(c){for(var u=[],d=c-1;d>=0;d--){var p=+l[d],h=a[p],g=h.model,m=h.scale;nve(m)&&g.get("alignTicks")&&g.get("interval")==null?u.push(h):(Qz(m,g),nve(m)&&(s=h))}u.length&&(s||(s=u.pop(),Qz(s.scale,s.model)),ye(u,function(v){S2t(v.scale,v.model,s.scale)}))}}i(r.x),i(r.y);var o={};ye(r.x,function(a){m6e(r,"y",a,o)}),ye(r.y,function(a){m6e(r,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),o=!r&&t.get("containLabel"),a=Ic(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(ye(s,function(c){if(!c.model.get(["axisLabel","inside"])){var u=tur(c);if(u){var d=c.isHorizontal()?"height":"width",p=c.model.get(["axisLabel","margin"]);a[d]-=u[d]+p,c.position==="top"?a.y+=u.height+p:c.position==="left"&&(a.x+=u.width+p)}}}),l()),ye(this._coordsList,function(c){c.calcAffineTransform()});function l(){ye(s,function(c){var u=c.isHorizontal(),d=u?[0,a.width]:[0,a.height],p=c.inverse?1:0;c.setExtent(d[p],d[1-p]),_0r(c,u?a.x:a.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}xr(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===n)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",wc).models[0],i=t.yAxisModel||n&&n.getReferringComponents("yAxis",wc).models[0],o=t.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,hi(a,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(o){var c=o.coordinateSystem;c===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",c("x"),this),n.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,ye(s.x,function(u,d){ye(s.y,function(p,h){var g="x"+d+"y"+h,m=new D0r(g);m.master=i,m.model=t,i._coordsMap[g]=m,i._coordsList.push(m),m.addAxis(u),m.addAxis(p)})});function c(u){return function(d,p){if(lse(d,t)){var h=d.get("position");u==="x"?h!=="top"&&h!=="bottom"&&(h=a.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=a.left?"right":"left"),a[h]=!0;var g=new k0r(u,GB(d),[0,0],d.get("type"),h),m=g.type==="category";g.onBand=m&&d.get("boundaryGap"),g.inverse=d.get("inverse"),d.axis=g,g.model=d,g.grid=o,g.index=p,o._axesList.push(g),s[u][p]=g,l[u]++}}}},e.prototype._updateScale=function(t,n){ye(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var o=i.model.get("categorySortInfo");i.scale.setSortInfo(o)}}),t.eachSeries(function(i){if(f6e(i)){var o=g6e(i),a=o.xAxisModel,s=o.yAxisModel;if(!lse(a,n)||!lse(s,n))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),c=i.getData(),u=l.getAxis("x"),d=l.getAxis("y");r(c,u),r(c,d)}},this);function r(i,o){ye(EU(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return ye(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);hi(n,o)<0&&n.push(o),hi(r,a)<0&&r.push(a)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),t.eachSeries(function(i){if(f6e(i)){var o=g6e(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel(),c=l.coordinateSystem;i.coordinateSystem=c.getCartesian(a.componentIndex,s.componentIndex)}}),r},e.dimensions=uve,e})();function lse(e,t){return e.getCoordSysModel()===t}function m6e(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var i=e[t],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)v6e(i[l])&&(o=i[l]);else for(var c in i)if(i.hasOwnProperty(c)&&v6e(i[c])&&!r[u(i[c])]){o=i[c];break}o&&(r[u(o)]=!0);function u(d){return d.dim+"_"+d.index}}function v6e(e){return e&&e.type!=="category"&&e.type!=="time"&&eur(e)}function _0r(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return r-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return r-i+t}}var fx=Math.PI,u1=(function(){function e(t,n){this.group=new Ir,this.opt=n,this.axisModel=t,br(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Ir({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!b6e[t]},e.prototype.add=function(t){b6e[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var i=oSe(n-t),o,a;return RP(i)?(a=r>0?"top":"bottom",o="center"):RP(i-fx)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<fx?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e})(),b6e={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(Yu(s,s,a),Yu(l,l,a));var u=Nt({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Jc({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});PP(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var p=t.get(["axisLine","symbol"]);if(p!=null){var h=t.get(["axisLine","symbolSize"]);Sn(p)&&(p=[p,p]),(Sn(h)||yo(h))&&(h=[h,h]);var g=$3(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],v=h[1];ye([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,M){if(p[M]!=="none"&&p[M]!=null){var C=rc(p[M],-m/2,-v/2,m,v,u.stroke,!0),x=y.r+y.offset,w=c?l:s;C.attr({rotation:y.rotate,x:w[0]+x*Math.cos(e.rotation),y:w[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabel:function(e,t,n,r){var i=W0r(n,r,t,e),o=B0r(n,r,t,e);if(F0r(t,o,i),q0r(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=Bbt(Vt(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Vbt(a)}},axisName:function(e,t,n,r){var i=xu(e.axisName,t.get("name"));if(i){var o=t.get("nameLocation"),a=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,c=t.axis.getExtent(),u=c[0]>c[1]?-1:1,d=[o==="start"?c[0]-u*l:o==="end"?c[1]+u*l:(c[0]+c[1])/2,M6e(o)?e.labelOffset+a*l:0],p,h=t.get("nameRotate");h!=null&&(h=h*fx/180);var g;M6e(o)?p=u1.innerTextLayout(e.rotation,h??e.rotation,a):(p=N0r(e.rotation,o,h||0,c),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(p.rotation)),!isFinite(g)&&(g=null)));var m=s.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,M=xu(e.nameTruncateMaxWidth,v.maxWidth,g),C=new oo({x:d[0],y:d[1],rotation:p.rotation,silent:u1.isLabelSilent(t),style:Za(s,{text:i,font:m,overflow:"truncate",width:M,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(H3({el:C,componentModel:t,itemName:i}),C.__fullText=i,C.anid="name",t.get("triggerEvent")){var x=u1.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,_r(C).eventData=x}r.add(C),C.updateTransform(),n.add(C),C.decomposeTransform()}}};function N0r(e,t,n,r){var i=oSe(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return RP(i-fx/2)?(a=l?"bottom":"top",o="center"):RP(i-fx*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<fx*1.5&&i>fx/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function F0r(e,t,n){if(!Tbt(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],d=n[n.length-1],p=n[n.length-2];r===!1?(Nh(o),Nh(c)):y6e(o,a)&&(r?(Nh(a),Nh(u)):(Nh(o),Nh(c))),i===!1?(Nh(s),Nh(d)):y6e(l,s)&&(i?(Nh(l),Nh(p)):(Nh(s),Nh(d)))}}function Nh(e){e&&(e.ignore=!0)}function y6e(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=kB([]);return _w(i,i,-e.rotation),n.applyTransform(yb([],i,e.getLocalTransform())),r.applyTransform(yb([],i,t.getLocalTransform())),n.intersect(r)}}function M6e(e){return e==="middle"||e==="center"}function A2t(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,t&&(Yu(a,a,t),Yu(s,s,t));var u=new Jc({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});PP(u.shape,u.style.lineWidth),u.anid=i+"_"+e[l].tickValue,o.push(u)}return o}function W0r(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),!(!a||i.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),c=i.getTicksCoords(),u=A2t(c,t.transform,l,br(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<u.length;d++)e.add(u[d]);return u}}function q0r(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!(!o.get("show")||i.scale.isBlank())){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),c=br(s.getLineStyle(),br(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<a.length;u++)for(var d=A2t(a[u],t.transform,l,c,"minorticks_"+u),p=0;p<d.length;p++)e.add(d[p])}}function B0r(e,t,n,r){var i=n.axis,o=xu(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),c=(xu(r.labelRotate,a.get("rotate"))||0)*fx/180,u=u1.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],h=u1.isLabelSilent(n),g=n.get("triggerEvent");return ye(l,function(m,v){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,M=m.formattedLabel,C=m.rawLabel,x=a;if(d&&d[y]){var w=d[y];xr(w)&&w.textStyle&&(x=new _o(w.textStyle,a,n.ecModel))}var S=x.getTextColor()||n.get(["axisLine","lineStyle","color"]),A=i.dataToCoord(y),z=x.getShallow("align",!0)||u.textAlign,O=Xr(x.getShallow("alignMinLabel",!0),z),T=Xr(x.getShallow("alignMaxLabel",!0),z),I=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||u.textVerticalAlign,P=Xr(x.getShallow("verticalAlignMinLabel",!0),I),N=Xr(x.getShallow("verticalAlignMaxLabel",!0),I),F=new oo({x:A,y:r.labelOffset+r.labelDirection*s,rotation:u.rotation,silent:h,z2:10+(m.level||0),style:Za(x,{text:M,align:v===0?O:v===l.length-1?T:z,verticalAlign:v===0?P:v===l.length-1?N:I,fill:fr(S)?S(i.type==="category"?C:i.type==="value"?y+"":y,v):S})});if(F.anid="label_"+y,H3({el:F,componentModel:n,itemName:M,formatterParamsExtra:{isTruncated:function(){return F.isTruncated},value:C,tickIndex:v}}),g){var L=u1.makeAxisEventDataBase(n);L.targetType="axisLabel",L.value=C,L.tickIndex=v,i.type==="category"&&(L.dataIndex=y),_r(F).eventData=L}t.add(F),F.updateTransform(),p.push(F),e.add(F),F.decomposeTransform()}),p}}function j0r(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return H0r(n,e,t),n.seriesInvolved&&G0r(n,e),n}function H0r(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];ye(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Aq(s.model),c=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var u=s.model,d=u.getModel("tooltip",r);if(ye(s.getAxes(),Zr(m,!1,null)),s.getTooltipAxes&&r&&d.get("show")){var p=d.get("trigger")==="axis",h=d.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(d.get(["axisPointer","axis"]));(p||h)&&ye(g.baseAxes,Zr(m,h?"cross":!0,p)),h&&ye(g.otherAxes,Zr(m,"cross",!1))}function m(v,y,M){var C=M.model.getModel("axisPointer",i),x=C.get("show");if(!(!x||x==="auto"&&!v&&!pve(C))){y==null&&(y=C.get("triggerTooltip")),C=v?V0r(M,d,i,t,v,y):C;var w=C.get("snap"),S=C.get("triggerEmphasis"),A=Aq(M.model),z=y||w||M.type==="category",O=e.axesInfo[A]={key:A,axis:M,coordSys:s,axisPointerModel:C,triggerTooltip:y,triggerEmphasis:S,involveSeries:z,snap:w,useHandle:pve(C),seriesModels:[],linkGroup:null};c[A]=O,e.seriesInvolved=e.seriesInvolved||z;var T=$0r(o,M);if(T!=null){var I=a[T]||(a[T]={axesInfo:{}});I.axesInfo[A]=O,I.mapper=o[T].mapper,O.linkGroup=I}}}})}function V0r(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};ye(s,function(p){l[p]=Or(a.get(p))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var c=l.label||(l.label={});if(c.show==null&&(c.show=!1),i==="cross"){var u=a.get(["label","show"]);if(c.show=u??!0,!o){var d=l.lineStyle=a.get("crossStyle");d&&br(c,d.textStyle)}}return e.model.getModel("axisPointer",new _o(l,n,r))}function G0r(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||ye(e.coordSysAxesInfo[Aq(r.model)],function(a){var s=a.axis;r.getAxis(s.dim)===s&&(a.seriesModels.push(n),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=n.getData().count())})})}function $0r(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(cse(o[r+"AxisId"],n.id)||cse(o[r+"AxisIndex"],n.componentIndex)||cse(o[r+"AxisName"],n.name))return i}}function cse(e,t){return e==="all"||Ht(e)&&hi(e,t)>=0||e===t}function U0r(e){var t=mAe(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=pve(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function mAe(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Aq(e)]}function X0r(e){var t=mAe(e);return t&&t.axisPointerModel}function pve(e){return!!e.get(["handle","show"])}function Aq(e){return e.type+"||"+e.id}var C6e={},X3=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){this.axisPointerClass&&U0r(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},t.prototype.updateAxisPointer=function(n,r,i,o){this._doUpdateAxisPointerClass(n,i,!1)},t.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=X0r(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,r,i):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){C6e[n]=r},t.getAxisPointerClass=function(n){return n&&C6e[n]},t.type="axis",t})(cs),hve=mo();function O2t(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var u=s.length,d=hve(e).splitAreaColors,p=Yn(),h=0;if(d)for(var g=0;g<c.length;g++){var m=d.get(c[g].tickValue);if(m!=null){h=(m+(u-1)*g)%u;break}}var v=i.toGlobalCoord(c[0].coord),y=a.getAreaStyle();s=Ht(s)?s:[s];for(var g=1;g<c.length;g++){var M=i.toGlobalCoord(c[g].coord),C=void 0,x=void 0,w=void 0,S=void 0;i.isHorizontal()?(C=v,x=l.y,w=M-C,S=l.height,v=C+w):(C=l.x,x=v,w=l.width,S=M-x,v=x+S);var A=c[g-1].tickValue;A!=null&&p.set(A,h),t.add(new ao({anid:A!=null?"area_"+A:null,shape:{x:C,y:x,width:w,height:S},style:br({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%u}hve(e).splitAreaColors=p}}}function z2t(e){hve(e).splitAreaColors=null}var Y0r=["axisLine","axisTickLabel","axisName"],K0r=["splitArea","splitLine","minorSplitLine"],T2t=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Ir,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=dve(s,n),c=new u1(n,Nt({handleAutoShown:function(d){for(var p=s.coordinateSystem.getCartesians(),h=0;h<p.length;h++)if(nve(p[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));ye(Y0r,c.add,c),this._axisGroup.add(c.getGroup()),ye(K0r,function(d){n.get([d,"show"])&&Q0r[d](this,this._axisGroup,n,s)},this);var u=o&&o.type==="changeAxisOrder"&&o.isInitSort;u||jB(a,this._axisGroup,n),e.prototype.render.call(this,n,r,i,o)}},t.prototype.remove=function(){z2t(this)},t.type="cartesianAxis",t})(X3),Q0r={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;s=Ht(s)?s:[s];for(var u=r.coordinateSystem.getRect(),d=i.isHorizontal(),p=0,h=i.getTicksCoords({tickModel:o}),g=[],m=[],v=a.getLineStyle(),y=0;y<h.length;y++){var M=i.toGlobalCoord(h[y].coord);if(!(y===0&&!l||y===h.length-1&&!c)){var C=h[y].tickValue;d?(g[0]=M,g[1]=u.y,m[0]=M,m[1]=u.y+u.height):(g[0]=u.x,g[1]=M,m[0]=u.x+u.width,m[1]=M);var x=p++%s.length,w=new Jc({anid:C!=null?"line_"+C:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:br({stroke:s[x]},v),silent:!0});PP(w.shape,v.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var u=[],d=[],p=a.getLineStyle(),h=0;h<c.length;h++)for(var g=0;g<c[h].length;g++){var m=i.toGlobalCoord(c[h][g].coord);l?(u[0]=m,u[1]=s.y,d[0]=m,d[1]=s.y+s.height):(u[0]=s.x,u[1]=m,d[0]=s.x+s.width,d[1]=m);var v=new Jc({anid:"minor_line_"+c[h][g].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:p,silent:!0});PP(v.shape,p.lineWidth),t.add(v)}},splitArea:function(e,t,n,r){O2t(e,t,n,r)}},E2t=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t})(T2t),Z0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=E2t.type,n}return t.type="yAxis",t})(T2t),J0r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new ao({shape:n.coordinateSystem.getRect(),style:br({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(cs),x6e={offset:0};function R2t(e){e.registerComponentView(J0r),e.registerComponentModel(z0r),e.registerCoordinateSystem("cartesian2d",L0r),_P(e,"x",cve,x6e),_P(e,"y",cve,x6e),e.registerComponentView(E2t),e.registerComponentView(Z0r),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function e1r(e){Si(R2t),e.registerSeriesModel(x0r),e.registerChartView(O0r),e.registerLayout(YB("scatter"))}function t1r(e){e.eachSeriesByType("radar",function(t){var n=t.getData(),r=[],i=t.coordinateSystem;if(i){var o=i.getIndicatorAxes();ye(o,function(a,s){n.each(n.mapDimension(o[s].dim),function(l,c){r[c]=r[c]||[];var u=i.dataToPoint(l,s);r[c][s]=w6e(u)?u:S6e(i)})}),n.each(function(a){var s=rgt(r[a],function(l){return w6e(l)})||S6e(i);r[a].push(s.slice()),n.setItemLayout(a,r[a])})}})}function w6e(e){return!isNaN(e[0])&&!isNaN(e[1])}function S6e(e){return[e.cx,e.cy]}function n1r(e){var t=e.polar;if(t){Ht(t)||(t=[t]);var n=[];ye(t,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),e.radar=e.radar||[],Ht(e.radar)||(e.radar=[e.radar]),e.radar.push(r)):n.push(r)}),e.polar=n}ye(e.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var r1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=this._data;function c(p,h){var g=p.getItemVisual(h,"symbol")||"circle";if(g!=="none"){var m=uk(p.getItemVisual(h,"symbolSize")),v=rc(g,-1,-1,2,2),y=p.getItemVisual(h,"symbolRotate")||0;return v.attr({style:{strokeNoScale:!0},z2:100,scaleX:m[0]/2,scaleY:m[1]/2,rotation:y*Math.PI/180||0}),v}}function u(p,h,g,m,v,y){g.removeAll();for(var M=0;M<h.length-1;M++){var C=c(m,v);C&&(C.__dimIdx=M,p[M]?(C.setPosition(p[M]),V3[y?"initProps":"updateProps"](C,{x:h[M][0],y:h[M][1]},n,v)):C.setPosition(h[M]),g.add(C))}}function d(p){return Vt(p,function(h){return[o.cx,o.cy]})}s.diff(l).add(function(p){var h=s.getItemLayout(p);if(h){var g=new O0,m=new R0,v={shape:{points:h}};g.shape.points=d(h),m.shape.points=d(h),vs(g,v,n,p),vs(m,v,n,p);var y=new Ir,M=new Ir;y.add(m),y.add(g),y.add(M),u(m.shape.points,h,M,s,p,!0),s.setItemGraphicEl(p,y)}}).update(function(p,h){var g=l.getItemGraphicEl(h),m=g.childAt(0),v=g.childAt(1),y=g.childAt(2),M={shape:{points:s.getItemLayout(p)}};M.shape.points&&(u(m.shape.points,M.shape.points,y,s,p,!1),Om(v),Om(m),So(m,M,n),So(v,M,n),s.setItemGraphicEl(p,g))}).remove(function(p){a.remove(l.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,h){var g=s.getItemModel(h),m=p.childAt(0),v=p.childAt(1),y=p.childAt(2),M=s.getItemVisual(h,"style"),C=M.fill;a.add(p),m.useStyle(br(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:C})),Ad(m,g,"lineStyle"),Ad(v,g,"areaStyle");var x=g.getModel("areaStyle"),w=x.isEmpty()&&x.parentModel.isEmpty();v.ignore=w,ye(["emphasis","select","blur"],function(z){var O=g.getModel([z,"areaStyle"]),T=O.isEmpty()&&O.parentModel.isEmpty();v.ensureState(z).ignore=T&&w}),v.useStyle(br(x.getAreaStyle(),{fill:C,opacity:.7,decal:M.decal}));var S=g.getModel("emphasis"),A=S.getModel("itemStyle").getItemStyle();y.eachChild(function(z){if(z instanceof Du){var O=z.style;z.useStyle(Nt({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},M))}else z.useStyle(M),z.setColor(C),z.style.strokeNoScale=!0;var T=z.ensureState("emphasis");T.style=Or(A);var I=s.getStore().get(s.getDimensionIndex(z.__dimIdx),h);(I==null||isNaN(I))&&(I=""),Od(z,Ru(g),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:z.__dimIdx,defaultText:I,inheritColor:C,defaultOpacity:M.opacity})}),al(p,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t})(da),i1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new QB(En(this.getData,this),En(this.getRawData,this))},t.prototype.getInitialData=function(n,r){return fk(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.coordinateSystem,s=a.getIndicatorAxes(),l=this.getData().getName(n),c=l===""?this.name:l,u=Avt(this,n);return Iu("section",{header:c,sortBlocks:!0,blocks:Vt(s,function(d){var p=o.get(o.mapDimension(d.dim),n);return Iu("nameValue",{markerType:"subItem",markerColor:u,name:d.name,value:p,sortParam:p})})})},t.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),i=this.coordinateSystem,o=r.getValues(Vt(i.dimensions,function(c){return r.mapDimension(c)}),n),a=0,s=o.length;a<s;a++)if(!isNaN(o[a])){var l=i.getIndicatorAxes();return i.coordToPoint(l[a].dataToCoord(o[a]),a)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(Ra),w_=w2t.value;function EV(e,t){return br({show:t},e)}var o1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),i=this.get("scale"),o=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),c=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),p=this.get("triggerEvent"),h=Vt(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var m=l;g.color!=null&&(m=br({color:g.color},l));var v=ei(Or(g),{boundaryGap:n,splitNumber:r,scale:i,axisLine:o,axisTick:a,axisLabel:s,name:g.text,showName:c,nameLocation:"end",nameGap:d,nameTextStyle:m,triggerEvent:p},!1);if(Sn(u)){var y=v.name;v.name=u.replace("{value}",y??"")}else fr(u)&&(v.name=u(v.name,v));var M=new _o(v,null,this.ecModel);return jl(M,hk.prototype),M.mainType="radar",M.componentIndex=this.componentIndex,M},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ei({lineStyle:{color:"#bbb"}},w_.axisLine),axisLabel:EV(w_.axisLabel,!1),axisTick:EV(w_.axisTick,!1),splitLine:EV(w_.splitLine,!0),splitArea:EV(w_.splitArea,!0),indicator:[]},t})(Ri),a1r=["axisLine","axisTickLabel","axisName"],s1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=this.group;o.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes(),o=Vt(i,function(a){var s=a.model.get("showName")?a.name:"",l=new u1(a.model,{axisName:s,position:[r.cx,r.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});ye(o,function(a){ye(a1r,a.add,a),this.group.add(a.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var o=n.get("shape"),a=n.getModel("splitLine"),s=n.getModel("splitArea"),l=a.getModel("lineStyle"),c=s.getModel("areaStyle"),u=a.get("show"),d=s.get("show"),p=l.get("color"),h=c.get("color"),g=Ht(p)?p:[p],m=Ht(h)?h:[h],v=[],y=[];function M(L,W,H){var j=H%W.length;return L[j]=L[j]||[],j}if(o==="circle")for(var C=i[0].getTicksCoords(),x=r.cx,w=r.cy,S=0;S<C.length;S++){if(u){var A=M(v,g,S);v[A].push(new e2({shape:{cx:x,cy:w,r:C[S].coord}}))}if(d&&S<C.length-1){var A=M(y,m,S);y[A].push(new ZD({shape:{cx:x,cy:w,r0:C[S].coord,r:C[S+1].coord}}))}}else for(var z,O=Vt(i,function(L,W){var H=L.getTicksCoords();return z=z==null?H.length-1:Math.min(H.length-1,z),Vt(H,function(j){return r.coordToPoint(j.coord,W)})}),T=[],S=0;S<=z;S++){for(var I=[],P=0;P<i.length;P++)I.push(O[P][S]);if(I[0]&&I.push(I[0].slice()),u){var A=M(v,g,S);v[A].push(new R0({shape:{points:I}}))}if(d&&T){var A=M(y,m,S-1);y[A].push(new O0({shape:{points:I.concat(T)}}))}T=I.slice().reverse()}var N=l.getLineStyle(),F=c.getAreaStyle();ye(y,function(L,W){this.group.add(Xp(L,{style:br({stroke:"none",fill:m[W%m.length]},F),silent:!0}))},this),ye(v,function(L,W){this.group.add(Xp(L,{style:br({fill:"none",stroke:g[W%g.length]},N),silent:!0}))},this)},t.type="radar",t})(cs),l1r=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.type="value",o.angle=0,o.name="",o}return t})(ng),c1r=(function(){function e(t,n,r){this.dimensions=[],this._model=t,this._indicatorAxes=Vt(t.getIndicatorModels(),function(i,o){var a="indicator_"+o,s=new l1r(a,new sM);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(a),s},this),this.resize(t,r)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(t),n)},e.prototype.coordToPoint=function(t,n){var r=this._indicatorAxes[n],i=r.angle,o=this.cx+t*Math.cos(i),a=this.cy-t*Math.sin(i);return[o,a]},e.prototype.pointToData=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,i=Math.sqrt(n*n+r*r);n/=i,r/=i;for(var o=Math.atan2(-r,n),a=1/0,s,l=-1,c=0;c<this._indicatorAxes.length;c++){var u=this._indicatorAxes[c],d=Math.abs(o-u.angle);d<a&&(s=u,l=c,a=d)}return[l,+(s&&s.coordToData(i))]},e.prototype.resize=function(t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o)/2;this.cx=vn(r[0],i),this.cy=vn(r[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(Sn(s)||yo(s))&&(s=[0,s]),this.r0=vn(s[0],a),this.r=vn(s[1],a),ye(this._indicatorAxes,function(l,c){l.setExtent(this.r0,this.r);var u=this.startAngle+c*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),l.angle=u},this)},e.prototype.update=function(t,n){var r=this._indicatorAxes,i=this._model;ye(r,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var c=s.getData();ye(r,function(u){u.scale.unionExtentFromData(c,c.mapDimension(u.dim))})}},this);var o=i.get("splitNumber"),a=new sM;a.setExtent(0,o),a.setInterval(1),ye(r,function(s,l){S2t(s.scale,s.model,a)})},e.prototype.convertToPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=r[i.get("radarIndex")||0])}),r},e.dimensions=[],e})();function u1r(e){e.registerCoordinateSystem("radar",c1r),e.registerComponentModel(o1r),e.registerComponentView(s1r),e.registerVisual({seriesType:"radar",reset:function(t){var n=t.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function d1r(e){Si(u1r),e.registerChartView(r1r),e.registerSeriesModel(i1r),e.registerLayout(t1r),e.registerProcessor(KB("radar")),e.registerPreprocessor(n1r)}var A6e="\0_ec_interaction_mutex";function p1r(e,t,n){var r=vAe(e);r[t]=n}function h1r(e,t,n){var r=vAe(e),i=r[t];i===n&&(r[t]=null)}function O6e(e,t){return!!vAe(e)[t]}function vAe(e){return e[A6e]||(e[A6e]={})}Nm({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Nl);var ZB=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var i=En(r._mousedownHandler,r),o=En(r._mousemoveHandler,r),a=En(r._mouseupHandler,r),s=En(r._mousewheelHandler,r),l=En(r._pinchHandler,r);return r.enable=function(c,u){this.disable(),this._opt=br(Or(u)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),c==null&&(c=!0),(c===!0||c==="move"||c==="pan")&&(n.on("mousedown",i),n.on("mousemove",o),n.on("mouseup",a)),(c===!0||c==="scale"||c==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",i),n.off("mousemove",o),n.off("mouseup",a),n.off("mousewheel",s),n.off("pinch",l)},r}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(n){this.pointerChecker=n},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(n){if(!nFe(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=n.offsetX,o=n.offsetY;this.pointerChecker&&this.pointerChecker(n,i,o)&&(this._x=i,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!H7("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||O6e(this._zr,"globalPan"))){var r=n.offsetX,i=n.offsetY,o=this._x,a=this._y,s=r-o,l=i-a;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&nM(n.event),I2t(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:o,oldY:a,newX:r,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){nFe(n)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(n){var r=H7("zoomOnMouseWheel",n,this._opt),i=H7("moveOnMouseWheel",n,this._opt),o=n.wheelDelta,a=Math.abs(o),s=n.offsetX,l=n.offsetY;if(!(o===0||!r&&!i)){if(r){var c=a>3?1.4:a>1?1.2:1.1,u=o>0?c:1/c;use(this,"zoom","zoomOnMouseWheel",n,{scale:u,originX:s,originY:l,isAvailableBehavior:null})}if(i){var d=Math.abs(o),p=(o>0?1:-1)*(d>3?.4:d>1?.15:.05);use(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!O6e(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;use(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t})(Zf);function use(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(nM(r.event),I2t(e,t,n,r,i))}function I2t(e,t,n,r,i){i.isAvailableBehavior=En(H7,null,n,r),e.trigger(t,i)}function H7(e,t,n){var r=n[e];return!e||r&&(!Sn(r)||t.event[r+"Key"])}function bAe(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function yAe(e,t,n,r){var i=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(c-1),i.y-=(r-i.y)*(c-1),i.scaleX*=c,i.scaleY*=c,i.dirty()}var f1r={axisPointer:1,tooltip:1,brush:1};function PJ(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!f1r.hasOwnProperty(r.mainType)&&i&&i.model!==n}function P2t(e){if(Sn(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var dse,kU={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},z6e=ji(kU),LU={"alignment-baseline":"textBaseline","stop-color":"stopColor"},T6e=ji(LU),g1r=(function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=P2t(t);this._defsUsePending=[];var i=new Ir;this._root=i;var o=[],a=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Np(r,i,null,!0,!1);for(var c=r.firstChild;c;)this._parseNode(c,i,o,null,!1,!1),c=c.nextSibling;b1r(this._defs,this._defsUsePending),this._defsUsePending=[];var u,d;if(a){var p=DJ(a);p.length>=4&&(u={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(u&&s!=null&&l!=null&&(d=k2t(u,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=i;i=new Ir,i.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!n.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new ao({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:u,viewBoxTransform:d,named:o}},e.prototype._parseNode=function(t,n,r,i,o,a){var s=t.nodeName.toLowerCase(),l,c=i;if(s==="defs"&&(o=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=n;else{if(!o){var u=dse[s];if(u&&Fn(dse,s)){l=u.call(this,t,n);var d=t.getAttribute("name");if(d){var p={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(p),s==="g"&&(c=p)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});n.add(l)}}var h=E6e[s];if(h&&Fn(E6e,s)){var g=h.call(this,t),m=t.getAttribute("id");m&&(this._defs[m]=g)}}if(l&&l.isGroup)for(var v=t.firstChild;v;)v.nodeType===1?this._parseNode(v,l,r,c,o,a):v.nodeType===3&&a&&this._parseText(v,l),v=v.nextSibling},e.prototype._parseText=function(t,n){var r=new IP({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),m1r(r,n);var i=r.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,r.scaleX*=o/9,r.scaleY*=o/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},e.internalField=(function(){dse={g:function(t,n){var r=new Ir;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new ao;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,n){var r=new e2;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,n){var r=new Jc;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,n){var r=new WB;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,n){var r=t.getAttribute("points"),i;r&&(i=P6e(r));var o=new O0({shape:{points:i||[]},silent:!0});return Fh(n,o),Np(t,o,this._defsUsePending,!1,!1),o},polyline:function(t,n){var r=t.getAttribute("points"),i;r&&(i=P6e(r));var o=new R0({shape:{points:i||[]},silent:!0});return Fh(n,o),Np(t,o,this._defsUsePending,!1,!1),o},image:function(t,n){var r=new Du;return Fh(n,r),Np(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,n){var r=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var s=new Ir;return Fh(n,s),Np(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,n){var r=t.getAttribute("x"),i=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",s=new Ir;return Fh(n,s),Np(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(t,n){var r=t.getAttribute("d")||"",i=xmt(r);return Fh(n,i),Np(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}})(),e})(),E6e={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new ek(t,n,r,i);return R6e(e,o),I6e(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new ySe(t,n,r);return R6e(e,i),I6e(e,i),i}};function R6e(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function I6e(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var o={};D2t(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function Fh(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),br(t.__inheritedStyle,e.__inheritedStyle))}function P6e(e){for(var t=DJ(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([i,o])}return n}function Np(e,t,n,r,i){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};e.nodeType===1&&(C1r(e,t),D2t(e,a,s),r||x1r(e,a,s)),o.style=o.style||{},a.fill!=null&&(o.style.fill=D6e(o,"fill",a.fill,n)),a.stroke!=null&&(o.style.stroke=D6e(o,"stroke",a.stroke,n)),ye(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(o.style[l]=parseFloat(a[l]))}),ye(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(o.style[l]=a[l])}),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Vt(DJ(a.lineDash),function(l){return parseFloat(l)})),(a.visibility==="hidden"||a.visibility==="collapse")&&(o.invisible=!0),a.display==="none"&&(o.ignore=!0)}function m1r(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r==="auto"||r==="baseline"?i="alphabetic":r==="before-edge"||r==="text-before-edge"?i="top":r==="after-edge"||r==="text-after-edge"?i="bottom":(r==="central"||r==="mathematical")&&(i="middle"),e.style.textBaseline=i}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&(a==="middle"&&(s="center"),e.style.textAlign=s)}}var v1r=/^url\(\s*#(.*?)\)/;function D6e(e,t,n,r){var i=n&&n.match(v1r);if(i){var o=Cf(i[1]);r.push([e,t,o]);return}return n==="none"&&(n=null),n}function b1r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var y1r=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function DJ(e){return e.match(y1r)||[]}var M1r=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,pse=Math.PI/180;function C1r(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(M1r,function(d,p,h){return r.push(p,h),""});for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=DJ(a);switch(i=i||gp(),s){case"translate":Sm(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":tJ(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":_w(i,i,-parseFloat(l[0])*pse,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var c=Math.tan(parseFloat(l[0])*pse);yb(i,[1,0,c,1,0,0],i);break;case"skewY":var u=Math.tan(parseFloat(l[0])*pse);yb(i,[1,u,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var k6e=/([^\s:;]+)\s*:\s*([^:;]+)/g;function D2t(e,t,n){var r=e.getAttribute("style");if(r){k6e.lastIndex=0;for(var i;(i=k6e.exec(r))!=null;){var o=i[1],a=Fn(kU,o)?kU[o]:null;a&&(t[a]=i[2]);var s=Fn(LU,o)?LU[o]:null;s&&(n[s]=i[2])}}}function x1r(e,t,n){for(var r=0;r<z6e.length;r++){var i=z6e[r],o=e.getAttribute(i);o!=null&&(t[kU[i]]=o)}for(var r=0;r<T6e.length;r++){var i=T6e[r],o=e.getAttribute(i);o!=null&&(n[LU[i]]=o)}}function k2t(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function w1r(e,t){var n=new g1r;return n.parse(e,t)}var S1r=Yn(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),A1r=(function(){function e(t,n){this.type="geoSVG",this._usedGraphicMap=Yn(),this._freedGraphics=[],this._mapName=t,this._parsedXML=P2t(n)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=z1r(t.named),r=n.regions,i=n.regionsMap;this._regions=r,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var n,r;try{n=t&&w1r(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,S0(r!=null)}catch(v){throw new Error(`Invalid svg format
`+v.message)}var i=new Ir;i.add(r),i.isGeoSVGGraphicRoot=!0;var o=n.width,a=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var c=void 0,u=void 0,d=void 0,p=void 0;if(o!=null?(c=0,d=o):s&&(c=s.x,d=s.width),a!=null?(u=0,p=a):s&&(u=s.y,p=s.height),c==null||u==null){var h=r.getBoundingRect();c==null&&(c=h.x,d=h.width),u==null&&(u=h.y,p=h.height)}l=this._boundingRect=new ui(c,u,d,p)}if(s){var g=k2t(s,l);r.scaleX=r.scaleY=g.scale,r.x=g.x,r.y=g.y}i.setClipPath(new ao({shape:l.plain()}));var m=[];return ye(n.named,function(v){S1r.get(v.svgNodeTagLower)!=null&&(m.push(v),O1r(v.el))}),{root:i,boundingRect:l,named:m}},e.prototype.useGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(t,r),r)},e.prototype.freeGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);r&&(n.removeKey(t),this._freedGraphics.push(r))},e})();function O1r(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function z1r(e){var t=[],n=Yn();return ye(e,function(r){if(r.namedFrom==null){var i=new hur(r.name,r.el);t.push(i),n.set(r.name,i)}}),{regions:t,regionsMap:n}}var fve=[126,25],L6e="南海诸岛",LA=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var bA=0;bA<LA.length;bA++)for(var UE=0;UE<LA[bA].length;UE++)LA[bA][UE][0]/=10.5,LA[bA][UE][1]/=-10.5/.75,LA[bA][UE][0]+=fve[0],LA[bA][UE][1]+=fve[1];function T1r(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===L6e)return;t.push(new Rbt(L6e,Vt(LA,function(r){return{type:"polygon",exterior:r}}),fve))}}var E1r={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function R1r(e,t){if(e==="china"){var n=E1r[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var I1r=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function P1r(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:I1r[0]})}var D1r="name",k1r=(function(){function e(t,n,r){this.type="geoJSON",this._parsedMap=Yn(),this._mapName=t,this._specialAreas=r,this._geoJSON=_1r(n)}return e.prototype.load=function(t,n){n=n||D1r;var r=this._parsedMap.get(n);if(!r){var i=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:i,boundingRect:L1r(i)})}var o=Yn(),a=[];return ye(r.regions,function(s){var l=s.name;t&&Fn(t,l)&&(s=s.cloneShallow(l=t[l])),a.push(s),o.set(l,s)}),{regions:a,boundingRect:r.boundingRect||new ui(0,0,0,0),regionsMap:o}},e.prototype._parseToRegions=function(t){var n=this._mapName,r=this._geoJSON,i;try{i=r?ive(r,t):[]}catch(o){throw new Error(`Invalid geoJson format
`+o.message)}return T1r(n,i),ye(i,function(o){var a=o.name;R1r(n,o),P1r(n,o);var s=this._specialAreas&&this._specialAreas[a];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),i},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e})();function L1r(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function _1r(e){return Sn(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var S_=Yn();const lM={registerMap:function(e,t,n){if(t.svg){var r=new A1r(e,t.svg);S_.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new k1r(e,i,n);S_.set(e,r)}},getGeoResource:function(e){return S_.get(e)},getMapForUser:function(e){var t=S_.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=S_.get(e);if(r)return r.load(t,n)}};var MAe=["rect","circle","line","ellipse","polygon","polyline","path"],N1r=Yn(MAe),F1r=Yn(MAe.concat(["g"])),W1r=Yn(MAe.concat(["g"])),L2t=mo();function RV(e){var t=e.getItemStyle(),n=e.get("areaColor");return n!=null&&(t.fill=n),t}function _6e(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var _2t=(function(){function e(t){var n=new Ir;this.uid=ik("ec_map_draw"),this._controller=new ZB(t.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new Ir),n.add(this._svgGroup=new Ir)}return e.prototype.draw=function(t,n,r,i,o){var a=t.mainType==="geo",s=t.getData&&t.getData();a&&n.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,c=this._regionsGroup,u=this.group,d=l.getTransformInfo(),p=d.raw,h=d.roam,g=!c.childAt(0)||o;g?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):So(u,h,t);var m=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,v={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:m,isGeo:a,transformInfoRaw:p};l.resourceType==="geoJSON"?this._buildGeoJSON(v):l.resourceType==="geoSVG"&&this._buildSVG(v),this._updateController(t,n,r),this._updateMapSelectHandler(t,c,r,i)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=Yn(),r=Yn(),i=this._regionsGroup,o=t.transformInfoRaw,a=t.mapOrGeoModel,s=t.data,l=t.geo.projection,c=l&&l.stream;function u(h,g){return g&&(h=g(h)),h&&[h[0]*o.scaleX+o.x,h[1]*o.scaleY+o.y]}function d(h){for(var g=[],m=!c&&l&&l.project,v=0;v<h.length;++v){var y=u(h[v],m);y&&g.push(y)}return g}function p(h){return{shape:{points:d(h)}}}i.removeAll(),ye(t.geo.regions,function(h){var g=h.name,m=n.get(g),v=r.get(g)||{},y=v.dataIdx,M=v.regionModel;if(!m){m=n.set(g,new Ir),i.add(m),y=s?s.indexOfName(g):null,M=t.isGeo?a.getRegionModel(g):s?s.getItemModel(y):null;var C=M.get("silent",!0);C!=null&&(m.silent=C),r.set(g,{dataIdx:y,regionModel:M})}var x=[],w=[];ye(h.geometries,function(z){if(z.type==="polygon"){var O=[z.exterior].concat(z.interiors||[]);c&&(O=j6e(O,c)),ye(O,function(I){x.push(new O0(p(I)))})}else{var T=z.points;c&&(T=j6e(T,c,!0)),ye(T,function(I){w.push(new R0(p(I)))})}});var S=u(h.getCenter(),l&&l.project);function A(z,O){if(z.length){var T=new pJ({culling:!0,segmentIgnoreThreshold:1,shape:{paths:z}});m.add(T),N6e(t,T,y,M),F6e(t,T,g,M,a,y,S),O&&(_6e(T),ye(T.states,_6e))}}A(x),A(w,!0)}),n.each(function(h,g){var m=r.get(g),v=m.dataIdx,y=m.regionModel;W6e(t,h,g,y,a,v),q6e(t,h,g,y,a),B6e(t,h,g,y,a)},this)},e.prototype._buildSVG=function(t){var n=t.geo.map,r=t.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var i=this._svgDispatcherMap=Yn(),o=!1;ye(this._svgGraphicRecord.named,function(a){var s=a.name,l=t.mapOrGeoModel,c=t.data,u=a.svgNodeTagLower,d=a.el,p=c?c.indexOfName(s):null,h=l.getRegionModel(s);N1r.get(u)!=null&&d instanceof qf&&N6e(t,d,p,h),d instanceof qf&&(d.culling=!0);var g=h.get("silent",!0);if(g!=null&&(d.silent=g),d.z2EmphasisLift=0,!a.namedFrom&&(W1r.get(u)!=null&&F6e(t,d,s,h,l,p,null),W6e(t,d,s,h,l,p),q6e(t,d,s,h,l),F1r.get(u)!=null)){var m=B6e(t,d,s,h,l);m==="self"&&(o=!0);var v=i.get(s)||i.set(s,[]);v.push(d)}},this),this._enableBlurEntireSVG(o,t)},e.prototype._enableBlurEntireSVG=function(t,n){if(t&&n.isGeo){var r=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=r.opacity;this._svgGraphicRecord.root.traverse(function(o){if(!o.isGroup){Yz(o);var a=o.ensureState("blur").style||{};a.opacity==null&&i!=null&&(a.opacity=i),o.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,n){if(t==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var o=i.get(t);return o?[o]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var n=lM.getGeoResource(t);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var n=lM.getGeoResource(t);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,n,r){var i=t.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=i.getZoom(),o.enable(t.get("roam")||!1);var s=t.mainType;function l(){var c={type:"geoRoam",componentType:s};return c[s+"Id"]=t.id,c}o.off("pan").on("pan",function(c){this._mouseDownFlag=!1,bAe(a,c.dx,c.dy),r.dispatchAction(Nt(l(),{dx:c.dx,dy:c.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(c){this._mouseDownFlag=!1,yAe(a,c.scale,c.originX,c.originY),r.dispatchAction(Nt(l(),{totalZoom:a.zoom,zoom:c.scale,originX:c.originX,originY:c.originY,animation:{duration:0}}))},this),o.setPointerChecker(function(c,u,d){return i.containPoint([u,d])&&!PJ(c,r,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var n=t.getTextContent();n&&(n.ignore=L2t(n).ignore)})},e.prototype._updateMapSelectHandler=function(t,n,r,i){var o=this;n.off("mousedown"),n.off("click"),t.get("selectedMode")&&(n.on("mousedown",function(){o._mouseDownFlag=!0}),n.on("click",function(a){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},e})();function N6e(e,t,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=RV(i),c=RV(o),u=RV(s),d=RV(a),p=e.data;if(p){var h=p.getItemVisual(n,"style"),g=p.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),g&&(l.decal=kP(g,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=u,t.ensureState("blur").style=d,Yz(t)}function F6e(e,t,n,r,i,o,a){var s=e.data,l=e.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),o)),u=s&&s.getItemLayout(o);if(l||c||u&&u.showLabel){var d=l?n:o,p=void 0;(!s||o>=0)&&(p=i);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Od(t,Ru(r),{labelFetcher:p,labelDataIndex:d,defaultText:n},h);var g=t.getTextContent();if(g&&(L2t(g).ignore=g.ignore,t.textConfig&&a)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(a[0]-m.x)/m.width*100+"%",(a[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function W6e(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):_r(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function q6e(e,t,n,r,i){e.data||H3({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function B6e(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return al(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&Cor(t,i,n),a}function j6e(e,t,n){var r=[],i;function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(l,c){isFinite(l)&&isFinite(c)&&i.push([l,c])},sphere:function(){}});return!n&&s.polygonStart(),ye(e,function(l){s.lineStart();for(var c=0;c<l.length;c++)s.point(l[c][0],l[c][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}var q1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){if(!(o&&o.type==="mapToggleSelect"&&o.from===this.uid)){var a=this.group;if(a.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&o&&o.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),o&&o.type==="geoRoam"&&o.componentType==="series"&&o.seriesId===n.id){var s=this._mapDraw;s&&a.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new _2t(i);a.add(s.group),s.draw(n,r,i,this,o),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(n,r,i){var o=n.originalData,a=this.group;o.each(o.mapDimension("value"),function(s,l){if(!isNaN(s)){var c=o.getItemLayout(l);if(!(!c||!c.point)){var u=c.point,d=c.offset,p=new e2({style:{fill:n.getData().getVisual("style").fill},shape:{cx:u[0]+d*9,cy:u[1],r:3},silent:!0,z2:8+(d?0:QD+1)});if(!d){var h=n.mainSeries.getData(),g=o.getName(l),m=h.indexOfName(g),v=o.getItemModel(l),y=v.getModel("label"),M=h.getItemGraphicEl(m);Od(p,Ru(v),{labelFetcher:{getFormattedLabel:function(C,x){return n.getFormattedLabel(m,x)}},defaultText:g}),p.disableLabelAnimation=!0,y.get("position")||p.setTextConfig({position:"bottom"}),M.onHoverStateChange=function(C){pU(p,C)}}a.add(p)}}})},t.type="map",t})(da),B1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var i=this.getData().getName(r),o=this.coordinateSystem,a=o.getRegion(i);return a&&o.dataToPoint(a.getCenter())}},n}return t.prototype.getInitialData=function(n){for(var r=fk(this,{coordDimensions:["value"],encodeDefaulter:Zr(LSe,this)}),i=Yn(),o=[],a=0,s=r.count();a<s;a++){var l=r.getName(a);i.set(l,a)}var c=lM.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return ye(c.regions,function(u){var d=u.name,p=i.get(d),h=u.properties&&u.properties.echartsStyle,g;p==null?(g={name:d},o.push(g)):g=r.getRawDataItem(p),h&&ei(g,h)}),r.appendData(o),r},t.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},t.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},t.prototype.formatTooltip=function(n,r,i){for(var o=this.getData(),a=this.getRawValue(n),s=o.getName(n),l=this.seriesGroup,c=[],u=0;u<l.length;u++){var d=l[u].originalData.indexOfName(s),p=o.mapDimension("value");isNaN(l[u].originalData.get(p,d))||c.push(l[u].name)}return Iu("section",{header:c.join(", "),noHeader:!c.length,blocks:[Iu("nameValue",{name:s,value:a})]})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",i=rc(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return i.setStyle(n.itemStyle),i.style.stroke="none",r.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t})(Ra);function j1r(e,t){var n={};return ye(e,function(r){r.each(r.mapDimension("value"),function(i,o){var a="ec-"+r.getName(o);n[a]=n[a]||[],isNaN(i)||n[a].push(i)})}),e[0].map(e[0].mapDimension("value"),function(r,i){for(var o="ec-"+e[0].getName(i),a=0,s=1/0,l=-1/0,c=n[o].length,u=0;u<c;u++)s=Math.min(s,n[o][u]),l=Math.max(l,n[o][u]),a+=n[o][u];var d;return t==="min"?d=s:t==="max"?d=l:t==="average"?d=a/c:d=a,c===0?NaN:d})}function H1r(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),i=r?"o"+r.id:"i"+n.getMapType();(t[i]=t[i]||[]).push(n)}),ye(t,function(n,r){for(var i=j1r(Vt(n,function(a){return a.getData()}),n[0].get("mapValueCalculation")),o=0;o<n.length;o++)n[o].originalData=n[o].getData();for(var o=0;o<n.length;o++)n[o].seriesGroup=n,n[o].needsDrawMap=o===0&&!n[o].getHostGeoModel(),n[o].setData(i.cloneShallow()),n[o].mainSeries=n[0]})}function V1r(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var i={};ye(n.seriesGroup,function(a){var s=a.coordinateSystem,l=a.originalData;a.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(c,u){var d=l.getName(u),p=s.getRegion(d);if(!(!p||isNaN(c))){var h=i[d]||0,g=s.dataToPoint(p.getCenter());i[d]=h+1,l.setItemLayout(u,{point:g,offset:h})}})});var o=n.getData();o.each(function(a){var s=o.getName(a),l=o.getItemLayout(a)||{};l.showLabel=!i[s],o.setItemLayout(a,l)}),t[r]=!0}})}var H6e=Yu,JB=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Sy,r._rawTransformable=new Sy,r.name=n,r}return t.prototype.setBoundingRect=function(n,r,i,o){return this._rect=new ui(n,r,i,o),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(n,r,i,o){this._transformTo(n,r,i,o),this._viewRect=new ui(n,r,i,o)},t.prototype._transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new ui(n,r,i,o));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(n,r){n&&(this._center=[vn(n[0],r.getWidth()),vn(n[1],r.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(n){n=n||1;var r=this.zoomLimit;r&&(r.max!=null&&(n=Math.min(r.max,n)),r.min!=null&&(n=Math.max(r.min,n))),this._zoom=n,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,i=n.y+n.height/2;return[r,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),o=this.getCenter(),a=this.getZoom();o=Yu([],o,n),i=Yu([],i,n),r.originX=o[0],r.originY=o[1],r.x=i[0]-o[0],r.y=i[1]-o[1],r.scaleX=r.scaleY=a,this._updateTransform()},t.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),eJ(this.transform||(this.transform=[]),r.transform||gp()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],j3(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,i=new Sy;return i.transform=r.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},t.prototype.dataToPoint=function(n,r,i){var o=r?this._rawTransform:this.transform;return i=i||[],o?H6e(i,n,o):i0(i,n)},t.prototype.pointToData=function(n){var r=this.invTransform;return r?H6e([],n,r):[n[0],n[1]]},t.prototype.convertToPixel=function(n,r,i){var o=V6e(r);return o===this?o.dataToPoint(i):null},t.prototype.convertFromPixel=function(n,r,i){var o=V6e(r);return o===this?o.pointToData(i):null},t.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},t.dimensions=["x","y"],t})(Sy);function V6e(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var G1r={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},N2t=["lng","lat"],gve=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this,n)||this;o.dimensions=N2t,o.type="geo",o._nameCoordMap=Yn(),o.map=r;var a=i.projection,s=lM.load(r,i.nameMap,i.nameProperty),l=lM.getGeoResource(r);o.resourceType=l?l.type:null;var c=o.regions=s.regions,u=G1r[l.type];o._regionsMap=s.regionsMap,o.regions=s.regions,o.projection=a;var d;if(a)for(var p=0;p<c.length;p++){var h=c[p].getBoundingRect(a);d=d||h.clone(),d.union(h)}else d=s.boundingRect;return o.setBoundingRect(d.x,d.y,d.width,d.height),o.aspectScale=a?1:Xr(i.aspectScale,u.aspectScale),o._invertLongitute=a?!1:u.invertLongitute,o}return t.prototype._transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=this._invertLongitute;a=a.clone(),s&&(a.y=-a.y-a.height);var l=this._rawTransformable;l.transform=a.calculateTransform(new ui(n,r,i,o));var c=l.parent;l.parent=null,l.decomposeTransform(),l.parent=c,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(n){return this._regionsMap.get(n)},t.prototype.getRegionByCoord=function(n){for(var r=this.regions,i=0;i<r.length;i++){var o=r[i];if(o.type==="geoJSON"&&o.contain(n))return r[i]}},t.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},t.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},t.prototype.dataToPoint=function(n,r,i){if(Sn(n)&&(n=this.getGeoCoord(n)),n){var o=this.projection;return o&&(n=o.project(n)),n&&this.projectedToPoint(n,r,i)}},t.prototype.pointToData=function(n){var r=this.projection;return r&&(n=r.unproject(n)),n&&this.pointToProjected(n)},t.prototype.pointToProjected=function(n){return e.prototype.pointToData.call(this,n)},t.prototype.projectedToPoint=function(n,r,i){return e.prototype.dataToPoint.call(this,n,r,i)},t.prototype.convertToPixel=function(n,r,i){var o=G6e(r);return o===this?o.dataToPoint(i):null},t.prototype.convertFromPixel=function(n,r,i){var o=G6e(r);return o===this?o.pointToData(i):null},t})(JB);jl(gve,JB);function G6e(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",wc).models[0]||{}).coordinateSystem:null}function $6e(e,t){var n=e.get("boundingCoords");if(n!=null){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],c=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var u=function(S,A,z,O){for(var T=z-S,I=O-A,P=0;P<=100;P++){var N=P/100,F=o.project([S+T*N,A+I*N]);xy(r,r,F),wy(i,i,F)}};u(a,s,l,s),u(l,s,l,c),u(l,c,a,c),u(a,c,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var d=this.getBoundingRect(),p=e.get("layoutCenter"),h=e.get("layoutSize"),g=t.getWidth(),m=t.getHeight(),v=d.width/d.height*this.aspectScale,y=!1,M,C;p&&h&&(M=[vn(p[0],g),vn(p[1],m)],C=vn(h,Math.min(g,m)),!isNaN(M[0])&&!isNaN(M[1])&&!isNaN(C)&&(y=!0));var x;if(y)x={},v>1?(x.width=C,x.height=C/v):(x.height=C,x.width=C*v),x.y=M[1]-x.height/2,x.x=M[0]-x.width/2;else{var w=e.getBoxLayoutParams();w.aspect=v,x=Ic(w,{width:g,height:m})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function $1r(e,t){ye(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var U1r=(function(){function e(){this.dimensions=N2t}return e.prototype.create=function(t,n){var r=[];function i(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}t.eachComponent("geo",function(a,s){var l=a.get("map"),c=new gve(l+s,l,Nt({nameMap:a.get("nameMap")},i(a)));c.zoomLimit=a.get("scaleLimit"),r.push(c),a.coordinateSystem=c,c.model=a,c.resize=$6e,c.resize(a,n)}),t.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=r[l]}});var o={};return t.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();o[s]=o[s]||[],o[s].push(a)}}),ye(o,function(a,s){var l=Vt(a,function(u){return u.get("nameMap")}),c=new gve(s,s,Nt({nameMap:QZ(l)},i(a[0])));c.zoomLimit=xu.apply(null,Vt(a,function(u){return u.get("scaleLimit")})),r.push(c),c.resize=$6e,c.resize(a[0],n),ye(a,function(u){u.coordinateSystem=c,$1r(c,u)})}),r},e.prototype.getFilledRegions=function(t,n,r,i){for(var o=(t||[]).slice(),a=Yn(),s=0;s<o.length;s++)a.set(o[s].name,o[s]);var l=lM.load(n,r,i);return ye(l.regions,function(c){var u=c.name,d=a.get(u),p=c.properties&&c.properties.echartsStyle;d||(d={name:u},o.push(d)),p&&ei(d,p)}),o},e})(),F2t=new U1r,X1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,i){var o=lM.getGeoResource(n.map);if(o&&o.type==="geoJSON"){var a=n.itemStyle=n.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(n,i),$z(n,"label",["show"])},t.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=F2t.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var i={};this._optionModelMap=Wf(r.regions||[],function(o,a){var s=a.name;return s&&(o.set(s,new _o(a,n,n.ecModel)),a.selected&&(i[s]=!0)),o},Yn()),r.selectedMap||(r.selectedMap=i)},t.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new _o(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(n,r){var i=this.getRegionModel(n),o=r==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),a={name:n};if(fr(o))return a.status=r,o(a);if(Sn(o))return o.replace("{a}",n??"")},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.select=function(n){var r=this.option,i=r.selectedMode;if(i){i!=="multiple"&&(r.selectedMap=null);var o=r.selectedMap||(r.selectedMap={});o[n]=!0}},t.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},t.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},t.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t})(Ri);function U6e(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function CAe(e,t,n,r){var i=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(U6e(e,s),r)),a!=null){if(n){var l=n.min||0,c=n.max||1/0;a=Math.max(Math.min(i*a,c),l)/i}e.scaleX*=a,e.scaleY*=a;var u=(t.originX-e.x)*(a-1),d=(t.originY-e.y)*(a-1);e.x-=u,e.y-=d,e.updateTransform(),e.setCenter(U6e(e,s),r),e.setZoom(a*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var Y1r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(n,r){this._api=r},t.prototype.render=function(n,r,i,o){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new _2t(i));var a=this._mapDraw;a.draw(n,r,i,this,o),a.group.on("click",this._handleRegionClick,this),a.group.silent=n.get("silent"),this.group.add(a.group),this.updateSelectStatus(n,r,i)},t.prototype._handleRegionClick=function(n){var r;bO(n.target,function(i){return(r=_r(i).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},t.prototype.updateSelectStatus=function(n,r,i){var o=this;this._mapDraw.group.traverse(function(a){var s=_r(a).eventData;if(s)return o._model.isSelected(s.name)?i.enterSelect(a):i.leaveSelect(a),!0})},t.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t})(cs);function K1r(e,t,n){lM.registerMap(e,t,n)}function W2t(e){e.registerCoordinateSystem("geo",F2t),e.registerComponentModel(X1r),e.registerComponentView(Y1r),e.registerImpl("registerMap",K1r),e.registerImpl("getMap",function(n){return lM.getMapForUser(n)});function t(n,r){r.update="geo:updateSelectStatus",e.registerAction(r,function(i,o){var a={},s=[];return o.eachComponent({mainType:"geo",query:i},function(l){l[n](i.name);var c=l.coordinateSystem;ye(c.regions,function(d){a[d.name]=l.isSelected(d.name)||!1});var u=[];ye(a,function(d,p){a[p]&&u.push(p)}),s.push({geoIndex:l.componentIndex,name:u})}),{selected:a,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,i){var o=n.componentType||"series";r.eachComponent({mainType:o,query:n},function(a){var s=a.coordinateSystem;if(s.type==="geo"){var l=CAe(s,n,a.get("scaleLimit"),i);a.setCenter&&a.setCenter(l.center),a.setZoom&&a.setZoom(l.zoom),o==="series"&&ye(a.seriesGroup,function(c){c.setCenter(l.center),c.setZoom(l.zoom)})}})})}function Q1r(e){Si(W2t),e.registerChartView(q1r),e.registerSeriesModel(B1r),e.registerLayout(V1r),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,H1r),Nvt("map",e.registerAction)}function Z1r(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(s)}}function J1r(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){npr(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=rpr(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function epr(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function X6e(e){return arguments.length?e:apr}function hN(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function tpr(e,t){return Ic(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function npr(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function rpr(e,t,n,r){if(t){for(var i=e,o=e,a=o.parentNode.children[0],s=t,l=i.hierNode.modifier,c=o.hierNode.modifier,u=a.hierNode.modifier,d=s.hierNode.modifier;s=hse(s),o=fse(o),s&&o;){i=hse(i),a=fse(a),i.hierNode.ancestor=e;var p=s.hierNode.prelim+d-o.hierNode.prelim-c+r(s,o);p>0&&(opr(ipr(s,e,n),e,p),c+=p,l+=p),d+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=i.hierNode.modifier,u+=a.hierNode.modifier}s&&!hse(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),o&&!fse(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-u,n=e)}return n}function hse(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function fse(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function ipr(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function opr(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function apr(e,t){return e.parentNode===t.parentNode?1:2}var spr=(function(){function e(){this.parentPoint=[],this.childPoints=[]}return e})(),lpr=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new spr},t.prototype.buildPath=function(n,r){var i=r.childPoints,o=i.length,a=r.parentPoint,s=i[0],l=i[o-1];if(o===1){n.moveTo(a[0],a[1]),n.lineTo(s[0],s[1]);return}var c=r.orient,u=c==="TB"||c==="BT"?0:1,d=1-u,p=vn(r.forkPosition,1),h=[];h[u]=a[u],h[d]=a[d]+(l[d]-a[d])*p,n.moveTo(a[0],a[1]),n.lineTo(h[0],h[1]),n.moveTo(s[0],s[1]),h[u]=s[u],n.lineTo(h[0],h[1]),h[u]=l[u],n.lineTo(h[0],h[1]),n.lineTo(l[0],l[1]);for(var g=1;g<o-1;g++){var m=i[g];n.moveTo(m[0],m[1]),h[u]=m[u],n.lineTo(h[0],h[1])}},t})(Di),cpr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Ir,n}return t.prototype.init=function(n,r){this._controller=new ZB(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(n,r,i){var o=n.getData(),a=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=a.x+a.width/2,s.y=a.y+a.height/2):(s.x=a.x,s.y=a.y),this._updateViewCoordSys(n,i),this._updateController(n,r,i);var c=this._data;o.diff(c).add(function(u){Y6e(o,u)&&K6e(o,u,null,s,n)}).update(function(u,d){var p=c.getItemGraphicEl(d);if(!Y6e(o,u)){p&&Z6e(c,d,p,s,n);return}K6e(o,u,p,s,n)}).remove(function(u){var d=c.getItemGraphicEl(u);d&&Z6e(c,u,d,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(u,d){u.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:d})})}),this._data=o},t.prototype._updateViewCoordSys=function(n,r){var i=n.getData(),o=[];i.each(function(d){var p=i.getItemLayout(d);p&&!isNaN(p.x)&&!isNaN(p.y)&&o.push([+p.x,+p.y])});var a=[],s=[];cJ(o,a,s);var l=this._min,c=this._max;s[0]-a[0]===0&&(a[0]=l?l[0]:a[0]-1,s[0]=c?c[0]:s[0]+1),s[1]-a[1]===0&&(a[1]=l?l[1]:a[1]-1,s[1]=c?c[1]:s[1]+1);var u=n.coordinateSystem=new JB;u.zoomLimit=n.get("scaleLimit"),u.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1]),u.setCenter(n.get("center"),r),u.setZoom(n.get("zoom")),this.group.attr({x:u.x,y:u.y,scaleX:u.scaleX,scaleY:u.scaleY}),this._min=a,this._max=s},t.prototype._updateController=function(n,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;a.setPointerChecker(function(c,u,d){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(u,d)&&!PJ(c,i,n)}),a.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(c){bAe(s,c.dx,c.dy),i.dispatchAction({seriesId:n.id,type:"treeRoam",dx:c.dx,dy:c.dy})}).on("zoom",function(c){yAe(s,c.scale,c.originX,c.originY),i.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:c.scale,originX:c.originX,originY:c.originY}),o._updateNodeAndLinkScale(n),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),i=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(o,a){o.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var i=this._nodeScaleRatio,o=r.scaleX||1,a=r.getZoom(),s=(a-1)*i+1;return s/o},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t})(da);function Y6e(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function K6e(e,t,n,r,i){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,c=a.isExpand===!1&&a.children.length!==0?l:"#fff",u=e.tree.root,d=a.parentNode===u?a:a.parentNode||a,p=e.getItemGraphicEl(d.dataIndex),h=d.getLayout(),g=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:h,m=a.getLayout();o?(n=new $B(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.x=g.x,n.y=g.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=m.rawX,n.__radialRawY=m.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,So(n,{x:m.x,y:m.y},i);var v=n.getSymbolPath();if(i.get("layout")==="radial"){var y=u.children[0],M=y.getLayout(),C=y.children.length,x=void 0,w=void 0;if(m.x===M.x&&a.isExpand===!0&&y.children.length){var S={x:(y.children[0].getLayout().x+y.children[C-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[C-1].getLayout().y)/2};x=Math.atan2(S.y-M.y,S.x-M.x),x<0&&(x=Math.PI*2+x),w=S.x<M.x,w&&(x=x-Math.PI)}else x=Math.atan2(m.y-M.y,m.x-M.x),x<0&&(x=Math.PI*2+x),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(w=m.x<M.x,w&&(x=x-Math.PI)):(w=m.x>M.x,w||(x=x-Math.PI));var A=w?"left":"right",z=s.getModel("label"),O=z.get("rotate"),T=O*(Math.PI/180),I=v.getTextContent();I&&(v.setTextConfig({position:z.get("position")||A,rotation:O==null?-x:T,origin:"center"}),I.setStyle("verticalAlign","middle"))}var P=s.get(["emphasis","focus"]),N=P==="relative"?EP(a.getAncestorsIndices(),a.getDescendantIndices()):P==="ancestor"?a.getAncestorsIndices():P==="descendant"?a.getDescendantIndices():null;N&&(_r(n).focus=N),upr(i,a,u,n,g,h,m,r),n.__edge&&(n.onHoverStateChange=function(F){if(F!=="blur"){var L=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);L&&L.hoverState===FB||pU(n.__edge,F)}})}function upr(e,t,n,r,i,o,a,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),d=e.getOrient(),p=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),m=r.__edge;if(c==="curve")t.parentNode&&t.parentNode!==n&&(m||(m=r.__edge=new JD({shape:mve(u,d,p,i,i)})),So(m,{shape:mve(u,d,p,o,a)},e));else if(c==="polyline"&&u==="orthogonal"&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var v=t.children,y=[],M=0;M<v.length;M++){var C=v[M].getLayout();y.push([C.x,C.y])}m||(m=r.__edge=new lpr({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:h}})),So(m,{shape:{parentPoint:[a.x,a.y],childPoints:y}},e)}m&&!(c==="polyline"&&!t.isExpand)&&(m.useStyle(br({strokeNoScale:!0,fill:null},g)),Ad(m,l,"lineStyle"),Yz(m),s.add(m))}function Q6e(e,t,n,r,i){var o=t.tree.root,a=q2t(o,e),s=a.source,l=a.sourceLayout,c=t.getItemGraphicEl(e.dataIndex);if(c){var u=t.getItemGraphicEl(s.dataIndex),d=u.__edge,p=c.__edge||(s.isExpand===!1||s.children.length===1?d:void 0),h=r.get("edgeShape"),g=r.get("layout"),m=r.get("orient"),v=r.get(["lineStyle","curveness"]);p&&(h==="curve"?ow(p,{shape:mve(g,m,v,l,l),style:{opacity:0}},r,{cb:function(){n.remove(p)},removeOpt:i}):h==="polyline"&&r.get("layout")==="orthogonal"&&ow(p,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(p)},removeOpt:i}))}}function q2t(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function Z6e(e,t,n,r,i){var o=e.tree.getNodeByDataIndex(t),a=e.tree.root,s=q2t(a,o).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};ow(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach(function(c){Q6e(c,e,r,i,l)}),Q6e(o,e,r,i,l)}function mve(e,t,n,r,i){var o,a,s,l,c,u,d,p;if(e==="radial"){c=r.rawX,d=r.rawY,u=i.rawX,p=i.rawY;var h=hN(c,d),g=hN(c,d+(p-d)*n),m=hN(u,p+(d-p)*n),v=hN(u,p);return{x1:h.x||0,y1:h.y||0,x2:v.x||0,y2:v.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:m.x||0,cpy2:m.y||0}}else c=r.x,d=r.y,u=i.x,p=i.y,(t==="LR"||t==="RL")&&(o=c+(u-c)*n,a=d,s=u+(c-u)*n,l=p),(t==="TB"||t==="BT")&&(o=c,a=d+(p-d)*n,s=u,l=p+(d-p)*n);return{x1:c,y1:d,x2:u,y2:p,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var Rf=mo();function B2t(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,j2t(t,n,e),ye(n,function(r){ye(t.TRANSFERABLE_METHODS,function(i){r.wrapMethod(i,Zr(dpr,e))})}),t.wrapMethod("cloneShallow",Zr(hpr,e)),ye(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,Zr(ppr,e))}),S0(n[t.dataType]===t)}function dpr(e,t){if(mpr(this)){var n=Nt({},Rf(this).datas);n[this.dataType]=t,j2t(t,n,e)}else xAe(t,this.dataType,Rf(this).mainData,e);return t}function ppr(e,t){return e.struct&&e.struct.update(),t}function hpr(e,t){return ye(Rf(t).datas,function(n,r){n!==t&&xAe(n.cloneShallow(),r,t,e)}),t}function fpr(e){var t=Rf(this).mainData;return e==null||t==null?t:Rf(t).datas[e]}function gpr(){var e=Rf(this).mainData;return e==null?[{data:e}]:Vt(ji(Rf(e).datas),function(t){return{type:t,data:Rf(e).datas[t]}})}function mpr(e){return Rf(e).mainData===e}function j2t(e,t,n){Rf(e).datas={},ye(t,function(r,i){xAe(r,i,e,n)})}function xAe(e,t,n,r){Rf(n).datas[t]=e,Rf(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=fpr,e.getLinkedDataAll=gpr}var vpr=(function(){function e(t,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=n}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,n,r){fr(t)&&(r=n,n=t,t=null),t=t||{},Sn(t)&&(t={order:t});var i=t.order||"preorder",o=this[t.attr||"children"],a;i==="preorder"&&(a=n.call(r,this));for(var s=0;!a&&s<o.length;s++)o[s].eachNode(t,n,r);i==="postorder"&&n.call(r,this)},e.prototype.updateDepthAndHeight=function(t){var n=0;this.depth=t;for(var r=0;r<this.children.length;r++){var i=this.children[r];i.updateDepthAndHeight(t+1),i.height>n&&(n=i.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,i=r.length;n<i;n++){var o=r[n].getNodeById(t);if(o)return o}},e.prototype.contains=function(t){if(t===this)return!0;for(var n=0,r=this.children,i=r.length;n<i;n++){var o=r[n].contains(t);if(o)return o}},e.prototype.getAncestors=function(t){for(var n=[],r=t?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},e.prototype.getAncestorsIndices=function(){for(var t=[],n=this;n;)t.push(n.dataIndex),n=n.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(n){t.push(n.dataIndex)}),t},e.prototype.getValue=function(t){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n<t.length;++n)if(t[n]===this)return n;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var n=t.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e})(),wAe=(function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,n,r){this.root.eachNode(t,n,r)},e.prototype.getNodeByDataIndex=function(t){var n=this.data.getRawIndex(t);return this._nodes[n]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,n=this._nodes,r=0,i=n.length;r<i;r++)n[r].dataIndex=-1;for(var r=0,i=t.count();r<i;r++)n[t.getRawIndex(r)].dataIndex=r},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),o=[],a=1;s(t);function s(u,d){var p=u.value;a=Math.max(a,Ht(p)?p.length:1),o.push(u);var h=new vpr(Zc(u.name,""),i);d?bpr(h,d):i.root=h,i._nodes.push(h);var g=u.children;if(g)for(var m=0;m<g.length;m++)s(g[m],h)}i.root.updateDepthAndHeight(0);var l=dk(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,c=new y0(l,n);return c.initData(o),r&&r(c),B2t({mainData:c,struct:i,structAttr:"tree"}),i.update(),i},e})();function bpr(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}function Oq(e,t,n){if(e&&hi(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(Sn(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=e.targetNodeId;if(o!=null&&(i=r.getNodeById(o)))return{node:i}}}function H2t(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function SAe(e,t){var n=H2t(e);return hi(n,t)>=0}function kJ(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var ypr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},i=n.leaves||{},o=new _o(i,this,this.ecModel),a=wAe.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(p,h){var g=a.getNodeByDataIndex(h);return g&&g.children.length&&g.isExpand||(p.parentModel=o),p})}var l=0;a.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var c=n.expandAndCollapse,u=c&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return a.root.eachNode("preorder",function(d){var p=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=p&&p.collapsed!=null?!p.collapsed:d.depth<=u}),a.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,i){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(n),l=s.getValue(),c=s.name;s&&s!==a;)c=s.parentNode.name+"."+c,s=s.parentNode;return Iu("nameValue",{name:c,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=kJ(i,this),r.collapsed=!i.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t})(Ra);function Mpr(e,t,n){for(var r=[e],i=[],o;o=r.pop();)if(i.push(o),o.isExpand){var a=o.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;o=i.pop();)t(o,n)}function A_(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var i=r.children;if(i.length)for(var o=i.length-1;o>=0;o--)n.push(i[o])}}function Cpr(e,t){e.eachSeriesByType("tree",function(n){xpr(n,t)})}function xpr(e,t){var n=tpr(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,o=0,a=null;r==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=X6e(function(C,x){return(C.parentNode===x.parentNode?1:2)/C.depth})):(i=n.width,o=n.height,a=X6e());var s=e.getData().tree.root,l=s.children[0];if(l){Z1r(s),Mpr(l,J1r,a),s.hierNode.modifier=-l.hierNode.prelim,A_(l,epr);var c=l,u=l,d=l;A_(l,function(C){var x=C.getLayout().x;x<c.getLayout().x&&(c=C),x>u.getLayout().x&&(u=C),C.depth>d.depth&&(d=C)});var p=c===u?1:a(c,u)/2,h=p-c.getLayout().x,g=0,m=0,v=0,y=0;if(r==="radial")g=i/(u.getLayout().x+p+h),m=o/(d.depth-1||1),A_(l,function(C){v=(C.getLayout().x+h)*g,y=(C.depth-1)*m;var x=hN(v,y);C.setLayout({x:x.x,y:x.y,rawX:v,rawY:y},!0)});else{var M=e.getOrient();M==="RL"||M==="LR"?(m=o/(u.getLayout().x+p+h),g=i/(d.depth-1||1),A_(l,function(C){y=(C.getLayout().x+h)*m,v=M==="LR"?(C.depth-1)*g:i-(C.depth-1)*g,C.setLayout({x:v,y},!0)})):(M==="TB"||M==="BT")&&(g=i/(u.getLayout().x+p+h),m=o/(d.depth-1||1),A_(l,function(C){v=(C.getLayout().x+h)*g,y=M==="TB"?(C.depth-1)*m:o-(C.depth-1)*m,C.setLayout({x:v,y},!0)}))}}}function wpr(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(i.dataIndex,"style");Nt(s,a)})})}function Spr(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var i=t.dataIndex,o=r.getData().tree,a=o.getNodeByDataIndex(i);a.isExpand=!a.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var o=i.coordinateSystem,a=CAe(o,t,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}function Apr(e){e.registerChartView(cpr),e.registerSeriesModel(ypr),e.registerLayout(Cpr),e.registerVisual(wpr),Spr(e)}var J6e=["treemapZoomToNode","treemapRender","treemapMove"];function Opr(e){for(var t=0;t<J6e.length;t++)e.registerAction({type:J6e[t],update:"updateView"},Nl);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},i);function i(o,a){var s=["treemapZoomToNode","treemapRootToNode"],l=Oq(n,s,o);if(l){var c=o.getViewRoot();c&&(n.direction=SAe(c,l.node)?"rollUp":"drillDown"),o.resetViewRoot(l.node)}}})}function V2t(e){var t=e.getData(),n=t.tree,r={};n.eachNode(function(i){for(var o=i;o&&o.depth>1;)o=o.parentNode;var a=Hme(e.ecModel,o.name||o.dataIndex+"",r);i.setVisual("decal",a)})}var zpr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};G2t(i);var o=n.levels||[],a=this.designatedVisualItemStyle={},s=new _o({itemStyle:a},this,r);o=n.levels=Tpr(o,r);var l=Vt(o||[],function(d){return new _o(d,s,r)},this),c=wAe.createTree(i,this,u);function u(d){d.wrapMethod("getItemModel",function(p,h){var g=c.getNodeByDataIndex(h),m=g?l[g.depth]:null;return p.parentModel=m||s,p})}return c.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.getRawValue(n),s=o.getName(n);return Iu("nameValue",{name:s,value:a})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=kJ(i,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},Nt(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Yn(),this._idIndexMapCount=0);var i=r.get(n);return i==null&&r.set(n,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){V2t(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t})(Ra);function G2t(e){var t=0;ye(e.children,function(r){G2t(r);var i=r.value;Ht(i)&&(i=i[0]),t+=i});var n=e.value;Ht(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Ht(e.value)?e.value[0]=n:e.value=n}function Tpr(e,t){var n=Ta(t.get("color")),r=Ta(t.get(["aria","decal","decals"]));if(n){e=e||[];var i,o;ye(e,function(s){var l=new _o(s),c=l.get("color"),u=l.get("decal");(l.get(["itemStyle","color"])||c&&c!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||u&&u!=="none")&&(o=!0)});var a=e[0]||(e[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),e}}var Epr=8,eBe=8,gse=5,Rpr=(function(){function e(t){this.group=new Ir,t.add(this.group)}return e.prototype.render=function(t,n,r,i){var o=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),!(!o.get("show")||!r)){var s=o.getModel("itemStyle"),l=o.getModel("emphasis"),c=s.getModel("textStyle"),u=l.getModel(["itemStyle","textStyle"]),d={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,c),this._renderContent(t,d,s,l,c,u,i),MJ(a,d.pos,d.box)}},e.prototype._prepare=function(t,n,r){for(var i=t;i;i=i.parentNode){var o=Zc(i.getModel().get("name"),""),a=r.getTextRect(o),s=Math.max(a.width+Epr*2,n.emptyItemWidth);n.totalWidth+=s+eBe,n.renderList.push({node:i,text:o,width:s})}},e.prototype._renderContent=function(t,n,r,i,o,a,s){for(var l=0,c=n.emptyItemWidth,u=t.get(["breadcrumb","height"]),d=xar(n.pos,n.box),p=n.totalWidth,h=n.renderList,g=i.getModel("itemStyle").getItemStyle(),m=h.length-1;m>=0;m--){var v=h[m],y=v.node,M=v.width,C=v.text;p>d.width&&(p-=M-c,M=c,C=null);var x=new O0({shape:{points:Ipr(l,0,M,u,m===h.length-1,m===0)},style:br(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new oo({style:Za(o,{text:C})}),textConfig:{position:"inside"},z2:QD*1e4,onclick:Zr(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=Za(a,{text:C}),x.ensureState("emphasis").style=g,al(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),Ppr(x,t,y),l+=M+eBe}},e.prototype.remove=function(){this.group.removeAll()},e})();function Ipr(e,t,n,r,i,o){var a=[[i?e:e-gse,t],[e+n,t],[e+n,t+r],[i?e:e-gse,t+r]];return!o&&a.splice(2,0,[e+n+gse,t+r/2]),!i&&a.push([e,t+r/2]),a}function Ppr(e,t,n){_r(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&kJ(n,t)}}var Dpr=(function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,n,r,i,o){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:n,duration:r,delay:i,easing:o}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,n=this._storage.length,r=function(){n--,n<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var a=this._storage[i];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:r,aborted:r})}return this},e})();function kpr(){return new Dpr}var vve=Ir,tBe=ao,nBe=3,rBe="label",iBe="upperLabel",Lpr=QD*10,_pr=QD*2,Npr=QD*3,_A=Xz([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),oBe=function(e){var t=_A(e);return t.stroke=t.fill=t.lineWidth=null,t},_U=mo(),Fpr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=O_(),n}return t.prototype.render=function(n,r,i,o){var a=r.findComponents({mainType:"series",subType:"treemap",query:o});if(!(hi(a,n)<0)){this.seriesModel=n,this.api=i,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Oq(o,s,n),c=o&&o.type,u=n.layoutInfo,d=!this._oldTree,p=this._storage,h=c==="treemapRootToNode"&&l&&p?{rootNodeGroup:p.nodeGroup[l.node.getRawIndex()],direction:o.direction}:null,g=this._giveContainerGroup(u),m=n.get("animation"),v=this._doRender(g,n,h);m&&!d&&(!c||c==="treemapZoomToNode"||c==="treemapRootToNode")?this._doAnimation(g,v,n,h):v.renderFinally(),this._resetController(i),this._renderBreadcrumb(n,i,l)}},t.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new vve,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},t.prototype._doRender=function(n,r,i){var o=r.getData().tree,a=this._oldTree,s=O_(),l=O_(),c=this._storage,u=[];function d(M,C,x,w){return Wpr(r,l,c,i,s,u,M,C,x,w)}m(o.root?[o.root]:[],a&&a.root?[a.root]:[],n,o===a||!a,0);var p=v(c);if(this._oldTree=o,this._storage=l,this._controllerHost){var h=this.seriesModel.layoutInfo,g=o.root.getLayout();g.width===h.width&&g.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:p,renderFinally:y};function m(M,C,x,w,S){w?(C=M,ye(M,function(O,T){!O.isRemoved()&&z(T,T)})):new oM(C,M,A,A).add(z).update(z).remove(Zr(z,null)).execute();function A(O){return O.getId()}function z(O,T){var I=O!=null?M[O]:null,P=T!=null?C[T]:null,N=d(I,P,x,S);N&&m(I&&I.viewChildren||[],P&&P.viewChildren||[],N,w,S+1)}}function v(M){var C=O_();return M&&ye(M,function(x,w){var S=C[w];ye(x,function(A){A&&(S.push(A),_U(A).willDelete=!0)})}),C}function y(){ye(p,function(M){ye(M,function(C){C.parent&&C.parent.remove(C)})}),ye(u,function(M){M.invisible=!0,M.dirty()})}},t.prototype._doAnimation=function(n,r,i,o){var a=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(fr(a)?0:a)||0,c=(fr(s)?null:s)||"cubicOut",u=kpr();ye(r.willDeleteEls,function(d,p){ye(d,function(h,g){if(!h.invisible){var m=h.parent,v,y=_U(m);if(o&&o.direction==="drillDown")v=m===o.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var M=0,C=0;y.willDelete||(M=y.nodeWidth/2,C=y.nodeHeight/2),v=p==="nodeGroup"?{x:M,y:C,style:{opacity:0}}:{shape:{x:M,y:C,width:0,height:0},style:{opacity:0}}}v&&u.add(h,v,l,0,c)}})}),ye(this._storage,function(d,p){ye(d,function(h,g){var m=r.lastsForAnimation[p][g],v={};m&&(h instanceof Ir?m.oldX!=null&&(v.x=h.x,v.y=h.y,h.x=m.oldX,h.y=m.oldY):(m.oldShape&&(v.shape=Nt({},h.shape),h.setShape(m.oldShape)),m.fadein?(h.setStyle("opacity",0),v.style={opacity:1}):h.style.opacity!==1&&(v.style={opacity:1})),u.add(h,v,l,0,c))})},this),this._state="animating",u.finished(En(function(){this._state="ready",r.renderFinally()},this)).start()},t.prototype._resetController=function(n){var r=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),r||(r=this._controller=new ZB(n.getZr()),r.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),r.on("pan",En(this._onPan,this)),r.on("zoom",En(this._onZoom,this)));var o=new ui(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(a,s,l){return o.contain(s,l)})},t.prototype._clearController=function(){var n=this._controller;this._controllerHost=null,n&&(n.dispose(),n=null)},t.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>nBe||Math.abs(n.dy)>nBe)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+n.dx,y:i.y+n.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(n){var r=n.originX,i=n.originY,o=n.scale;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var s=a.getLayout();if(!s)return;var l=new ui(s.x,s.y,s.width,s.height),c=null,u=this._controllerHost;c=u.zoomLimit;var d=u.zoom=u.zoom||1;if(d*=o,c){var p=c.min||0,h=c.max||1/0;d=Math.max(Math.min(h,d),p)}var g=d/u.zoom;u.zoom=d;var m=this.seriesModel.layoutInfo;r-=m.x,i-=m.y;var v=gp();Sm(v,v,[-r,-i]),tJ(v,v,[g,g]),Sm(v,v,[r,i]),l.applyTransform(v),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(n){var r=this;n.on("click",function(i){if(r._state==="ready"){var o=r.seriesModel.get("nodeClick",!0);if(o){var a=r.findTarget(i.offsetX,i.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)r._rootToNode(a);else if(o==="zoomToNode")r._zoomToNode(a);else if(o==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),c=l.get("link",!0),u=l.get("target",!0)||"blank";c&&bU(c,u)}}}}},this)},t.prototype._renderBreadcrumb=function(n,r,i){var o=this;i||(i=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Rpr(this.group))).render(n,r,i.node,function(a){o._state!=="animating"&&(SAe(n.getViewRoot(),a)?o._rootToNode({node:a}):o._zoomToNode({node:a}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=O_(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype.findTarget=function(n,r){var i,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(a){var s=this._storage.background[a.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),c=s.shape;if(c.x<=l[0]&&l[0]<=c.x+c.width&&c.y<=l[1]&&l[1]<=c.y+c.height)i={node:a,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t})(da);function O_(){return{nodeGroup:[],background:[],content:[]}}function Wpr(e,t,n,r,i,o,a,s,l,c){if(!a)return;var u=a.getLayout(),d=e.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),!u||!u.isInView)return;var h=u.width,g=u.height,m=u.borderWidth,v=u.invisible,y=a.getRawIndex(),M=s&&s.getRawIndex(),C=a.viewChildren,x=u.upperHeight,w=C&&C.length,S=p.getModel("itemStyle"),A=p.getModel(["emphasis","itemStyle"]),z=p.getModel(["blur","itemStyle"]),O=p.getModel(["select","itemStyle"]),T=S.get("borderRadius")||0,I=re("nodeGroup",vve);if(!I)return;if(l.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),_U(I).nodeWidth=h,_U(I).nodeHeight=g,u.isAboveViewRoot)return I;var P=re("background",tBe,c,_pr);P&&q(I,P,w&&u.upperLabelHeight);var N=p.getModel("emphasis"),F=N.get("focus"),L=N.get("blurScope"),W=N.get("disabled"),H=F==="ancestor"?a.getAncestorsIndices():F==="descendant"?a.getDescendantIndices():F;if(w)hq(I)&&mO(I,!1),P&&(mO(P,!W),d.setItemGraphicEl(a.dataIndex,P),Lme(P,H,L));else{var j=re("content",tBe,c,Npr);j&&$(I,j),P.disableMorphing=!0,P&&hq(P)&&mO(P,!1),mO(I,!W),d.setItemGraphicEl(a.dataIndex,I);var G=p.getShallow("cursor");G&&j.attr("cursor",G),Lme(I,H,L)}return I;function q(pe,te,ce){var oe=_r(te);if(oe.dataIndex=a.dataIndex,oe.seriesIndex=e.seriesIndex,te.setShape({x:0,y:0,width:h,height:g,r:T}),v)U(te);else{te.invisible=!1;var ae=a.getVisual("style"),ne=ae.stroke,le=oBe(S);le.fill=ne;var he=_A(A);he.fill=A.get("borderColor");var be=_A(z);be.fill=z.get("borderColor");var me=_A(O);if(me.fill=O.get("borderColor"),ce){var Me=h-2*m;X(te,ne,ae.opacity,{x:m,y:0,width:Me,height:x})}else te.removeTextContent();te.setStyle(le),te.ensureState("emphasis").style=he,te.ensureState("blur").style=be,te.ensureState("select").style=me,Yz(te)}pe.add(te)}function $(pe,te){var ce=_r(te);ce.dataIndex=a.dataIndex,ce.seriesIndex=e.seriesIndex;var oe=Math.max(h-2*m,0),ae=Math.max(g-2*m,0);if(te.culling=!0,te.setShape({x:m,y:m,width:oe,height:ae,r:T}),v)U(te);else{te.invisible=!1;var ne=a.getVisual("style"),le=ne.fill,he=oBe(S);he.fill=le,he.decal=ne.decal;var be=_A(A),me=_A(z),Me=_A(O);X(te,le,ne.opacity,null),te.setStyle(he),te.ensureState("emphasis").style=be,te.ensureState("blur").style=me,te.ensureState("select").style=Me,Yz(te)}pe.add(te)}function U(pe){!pe.invisible&&o.push(pe)}function X(pe,te,ce,oe){var ae=p.getModel(oe?iBe:rBe),ne=Zc(p.get("name"),null),le=ae.getShallow("show");Od(pe,Ru(p,oe?iBe:rBe),{defaultText:le?ne:null,inheritColor:te,defaultOpacity:ce,labelFetcher:e,labelDataIndex:a.dataIndex});var he=pe.getTextContent();if(he){var be=he.style,me=JZ(be.padding||0);oe&&(pe.setTextConfig({layoutRect:oe}),he.disableLabelLayout=!0),he.beforeUpdate=function(){var Oe=Math.max((oe?oe.width:pe.shape.width)-me[1]-me[3],0),de=Math.max((oe?oe.height:pe.shape.height)-me[0]-me[2],0);(be.width!==Oe||be.height!==de)&&he.setStyle({width:Oe,height:de})},be.truncateMinChar=2,be.lineOverflow="truncate",Q(be,oe,u);var Me=he.getState("emphasis");Q(Me?Me.style:null,oe,u)}}function Q(pe,te,ce){var oe=pe?pe.text:null;if(!te&&ce.isLeafRoot&&oe!=null){var ae=e.get("drillDownIcon",!0);pe.text=ae?ae+" "+oe:oe}}function re(pe,te,ce,oe){var ae=M!=null&&n[pe][M],ne=i[pe];return ae?(n[pe][M]=null,ee(ne,ae)):v||(ae=new te,ae instanceof qf&&(ae.z2=qpr(ce,oe)),se(ne,ae)),t[pe][y]=ae}function ee(pe,te){var ce=pe[y]={};te instanceof vve?(ce.oldX=te.x,ce.oldY=te.y):ce.oldShape=Nt({},te.shape)}function se(pe,te){var ce=pe[y]={},oe=a.parentNode,ae=te instanceof Ir;if(oe&&(!r||r.direction==="drillDown")){var ne=0,le=0,he=i.background[oe.getRawIndex()];!r&&he&&he.oldShape&&(ne=he.oldShape.width,le=he.oldShape.height),ae?(ce.oldX=0,ce.oldY=le):ce.oldShape={x:ne,y:le,width:0,height:0}}ce.fadein=!ae}}function qpr(e,t){return e*Lpr+t}var zq=ye,Bpr=xr,NU=-1,Su=(function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=Or(t);this.type=r,this.mappingMethod=n,this._normalizeData=Vpr[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],n==="piecewise"?(mse(i),jpr(i)):n==="category"?i.categories?Hpr(i):mse(i,!0):(S0(n!=="linear"||i.dataExtent),mse(i))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return En(this._normalizeData,this)},e.listVisualTypes=function(){return ji(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){xr(t)?ye(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var i,o=Ht(t)?[]:xr(t)?{}:(i=!0,null);return e.eachVisual(t,function(a,s){var l=n.call(r,a,s);i?o=l:o[s]=l}),o},e.retrieveVisuals=function(t){var n={},r;return t&&zq(e.visualHandlers,function(i,o){t.hasOwnProperty(o)&&(n[o]=t[o],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(Ht(t))t=t.slice();else if(Bpr(t)){var n=[];zq(t,function(r,i){n.push(i)}),t=n}else return[];return t.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,n){return n==="color"?!!(t&&t.indexOf(n)===0):t===n},e.findPieceIndex=function(t,n,r){for(var i,o=1/0,a=0,s=n.length;a<s;a++){var l=n[a].value;if(l!=null){if(l===t||Sn(l)&&l===t+"")return a;r&&p(l,a)}}for(var a=0,s=n.length;a<s;a++){var c=n[a],u=c.interval,d=c.close;if(u){if(u[0]===-1/0){if(PV(d[1],t,u[1]))return a}else if(u[1]===1/0){if(PV(d[0],u[0],t))return a}else if(PV(d[0],u[0],t)&&PV(d[1],t,u[1]))return a;r&&p(u[0],a),r&&p(u[1],a)}}if(r)return t===1/0?n.length-1:t===-1/0?0:i;function p(h,g){var m=Math.abs(h-t);m<o&&(o=m,i=g)}},e.visualHandlers={color:{applyVisual:z_("color"),getColorMapper:function(){var t=this.option;return En(t.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),fN.call(this,n)}:function(n,r,i){var o=!!i;return!r&&(n=this._normalizeData(n)),i=xF(n,t.parsedVisual,i),o?i:gm(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return gm(xF(t,this.option.parsedVisual),"rgba")},category:fN,piecewise:function(t,n){var r=yve.call(this,n);return r==null&&(r=gm(xF(t,this.option.parsedVisual),"rgba")),r},fixed:NA}},colorHue:IV(function(t,n){return RI(t,n)}),colorSaturation:IV(function(t,n){return RI(t,null,n)}),colorLightness:IV(function(t,n){return RI(t,null,null,n)}),colorAlpha:IV(function(t,n){return lq(t,n)}),decal:{applyVisual:z_("decal"),_normalizedToVisual:{linear:null,category:fN,piecewise:null,fixed:null}},opacity:{applyVisual:z_("opacity"),_normalizedToVisual:bve([0,1])},liftZ:{applyVisual:z_("liftZ"),_normalizedToVisual:{linear:NA,category:NA,piecewise:NA,fixed:NA}},symbol:{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("symbol",i)},_normalizedToVisual:{linear:aBe,category:fN,piecewise:function(t,n){var r=yve.call(this,n);return r==null&&(r=aBe.call(this,t)),r},fixed:NA}},symbolSize:{applyVisual:z_("symbolSize"),_normalizedToVisual:bve([0,1])}},e})();function jpr(e){var t=e.pieceList;e.hasSpecialVisual=!1,ye(t,function(n,r){n.originIndex=r,n.visual!=null&&(e.hasSpecialVisual=!0)})}function Hpr(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(zq(t,function(a,s){n[a]=s}),!Ht(r)){var i=[];xr(r)?zq(r,function(a,s){var l=n[s];i[l??NU]=a}):i[NU]=r,r=$2t(e,i)}for(var o=t.length-1;o>=0;o--)r[o]==null&&(delete n[t[o]],t.pop())}function mse(e,t){var n=e.visual,r=[];xr(n)?zq(n,function(o){r.push(o)}):n!=null&&r.push(n);var i={color:1,symbol:1};!t&&r.length===1&&!i.hasOwnProperty(e.type)&&(r[1]=r[0]),$2t(e,r)}function IV(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:bve([0,1])}}function aBe(e){var t=this.option.visual;return t[Math.round(Yo(e,[0,1],[0,t.length-1],!0))]||{}}function z_(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function fN(e){var t=this.option.visual;return t[this.option.loop&&e!==NU?e%t.length:e]}function NA(){return this.option.visual[0]}function bve(e){return{linear:function(t){return Yo(t,e,this.option.visual,!0)},category:fN,piecewise:function(t,n){var r=yve.call(this,n);return r==null&&(r=Yo(t,e,this.option.visual,!0)),r},fixed:NA}}function yve(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=Su.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function $2t(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Vt(t,function(n){var r=c1(n);return r||[0,0,0,1]})),t}var Vpr={linear:function(e){return Yo(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Su.findPieceIndex(e,t,!0);if(n!=null)return Yo(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??NU},fixed:Nl};function PV(e,t,n){return e?t<=n:t<n}var Gpr="itemStyle",U2t=mo();const $pr={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||X2t(n,{},e.getViewRoot().getAncestors(),e)}};function X2t(e,t,n,r){var i=e.getModel(),o=e.getLayout(),a=e.hostTree.data;if(!(!o||o.invisible||!o.isInView)){var s=i.getModel(Gpr),l=Upr(s,t,r),c=a.ensureUniqueItemVisual(e.dataIndex,"style"),u=s.get("borderColor"),d=s.get("borderColorSaturation"),p;d!=null&&(p=sBe(l),u=Xpr(d,p)),c.stroke=u;var h=e.viewChildren;if(!h||!h.length)p=sBe(l),c.fill=p;else{var g=Ypr(e,i,o,s,l,h);ye(h,function(m,v){if(m.depth>=n.length||m===n[m.depth]){var y=Kpr(i,l,m,v,g,r);X2t(m,y,n,r)}})}}}function Upr(e,t,n){var r=Nt({},t),i=n.designatedVisualItemStyle;return ye(["color","colorAlpha","colorSaturation"],function(o){i[o]=t[o];var a=e.get(o);i[o]=null,a!=null&&(r[o]=a)}),r}function sBe(e){var t=vse(e,"color");if(t){var n=vse(e,"colorAlpha"),r=vse(e,"colorSaturation");return r&&(t=RI(t,null,null,r)),n&&(t=lq(t,n)),t}}function Xpr(e,t){return t!=null?RI(t,null,null,e):null}function vse(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function Ypr(e,t,n,r,i,o){if(!(!o||!o.length)){var a=bse(t,"color")||i.color!=null&&i.color!=="none"&&(bse(t,"colorAlpha")||bse(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();s!=null&&s<c[0]&&(c[0]=s),l!=null&&l>c[1]&&(c[1]=l);var u=t.get("colorMappingBy"),d={type:a.name,dataExtent:c,visual:a.range};d.type==="color"&&(u==="index"||u==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var p=new Su(d);return U2t(p).drColorMappingBy=u,p}}}function bse(e,t){var n=e.get(t);return Ht(n)&&n.length?{name:t,range:n}:null}function Kpr(e,t,n,r,i,o){var a=Nt({},t);if(i){var s=i.type,l=s==="color"&&U2t(i).drColorMappingBy,c=l==="index"?r:l==="id"?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=i.mapValueToVisual(c)}return a}var Tq=Math.max,FU=Math.min,lBe=xu,AAe=ye,Y2t=["itemStyle","borderWidth"],Qpr=["itemStyle","gapWidth"],Zpr=["upperLabel","show"],Jpr=["upperLabel","height"];const ehr={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),o=n.getHeight(),a=e.option,s=Ic(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],c=vn(lBe(s.width,l[0]),i),u=vn(lBe(s.height,l[1]),o),d=r&&r.type,p=["treemapZoomToNode","treemapRootToNode"],h=Oq(r,p,e),g=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,m=e.getViewRoot(),v=H2t(m);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?ahr(e,h,m,c,u):g?[g.width,g.height]:[c,u],M=a.sort;M&&M!=="asc"&&M!=="desc"&&(M="desc");var C={squareRatio:a.squareRatio,sort:M,leafDepth:a.leafDepth};m.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(x),K2t(m,C,!1,0),x=m.getLayout(),AAe(v,function(S,A){var z=(v[A+1]||m).getValue();S.setLayout(Nt({dataExtent:[z,z],borderWidth:0,upperHeight:0},x))})}var w=e.getData().tree.root;w.setLayout(shr(s,g,h),!0),e.setLayoutInfo(s),Q2t(w,new ui(-s.x,-s.y,i,o),v,m,0)}};function K2t(e,t,n,r){var i,o;if(!e.isRemoved()){var a=e.getLayout();i=a.width,o=a.height;var s=e.getModel(),l=s.get(Y2t),c=s.get(Qpr)/2,u=Z2t(s),d=Math.max(l,u),p=l-c,h=d-c;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:u},!0),i=Tq(i-2*p,0),o=Tq(o-p-h,0);var g=i*o,m=thr(e,s,g,t,n,r);if(m.length){var v={x:p,y:h,width:i,height:o},y=FU(i,o),M=1/0,C=[];C.area=0;for(var x=0,w=m.length;x<w;){var S=m[x];C.push(S),C.area+=S.getLayout().area;var A=ohr(C,y,t.squareRatio);A<=M?(x++,M=A):(C.area-=C.pop().getLayout().area,cBe(C,y,v,c,!1),y=FU(v.width,v.height),C.length=C.area=0,M=1/0)}if(C.length&&cBe(C,y,v,c,!0),!n){var z=s.get("childrenVisibleMin");z!=null&&g<z&&(n=!0)}for(var x=0,w=m.length;x<w;x++)K2t(m[x],t,n,r+1)}}}function thr(e,t,n,r,i,o){var a=e.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=o;if(i&&!l)return e.viewChildren=[];a=ko(a,function(h){return!h.isRemoved()}),rhr(a,s);var c=ihr(t,a,s);if(c.sum===0)return e.viewChildren=[];if(c.sum=nhr(t,n,c.sum,s,a),c.sum===0)return e.viewChildren=[];for(var u=0,d=a.length;u<d;u++){var p=a[u].getValue()/c.sum*n;a[u].setLayout({area:p})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:c.dataExtent},!0),a}function nhr(e,t,n,r,i){if(!r)return n;for(var o=e.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var c=i[r==="asc"?a-l-1:l].getValue();c/n*t<o&&(s=l,n-=c)}return r==="asc"?i.splice(0,a-s):i.splice(s,a-s),n}function rhr(e,t){return t&&e.sort(function(n,r){var i=t==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return i===0?t==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:i}),e}function ihr(e,t,n){for(var r=0,i=0,o=t.length;i<o;i++)r+=t[i].getValue();var a=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:a==="value"&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n==="asc"&&s.reverse()):(s=[1/0,-1/0],AAe(t,function(l){var c=l.getValue(a);c<s[0]&&(s[0]=c),c>s[1]&&(s[1]=c)})),{sum:r,dataExtent:s}}function ohr(e,t,n){for(var r=0,i=1/0,o=0,a=void 0,s=e.length;o<s;o++)a=e[o].getLayout().area,a&&(a<i&&(i=a),a>r&&(r=a));var l=e.area*e.area,c=t*t*n;return l?Tq(c*r/l,l/(c*i)):1/0}function cBe(e,t,n,r,i){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],c=n[s[o]],u=t?e.area/t:0;(i||u>n[l[a]])&&(u=n[l[a]]);for(var d=0,p=e.length;d<p;d++){var h=e[d],g={},m=u?h.getLayout().area/u:0,v=g[l[a]]=Tq(u-2*r,0),y=n[s[o]]+n[l[o]]-c,M=d===p-1||y<m?y:m,C=g[l[o]]=Tq(M-2*r,0);g[s[a]]=n[s[a]]+FU(r,v/2),g[s[o]]=c+FU(r,C/2),c+=M,h.setLayout(g,!0)}n[s[a]]+=u,n[l[a]]-=u}function ahr(e,t,n,r,i){var o=(t||{}).node,a=[r,i];if(!o||o===n)return a;for(var s,l=r*i,c=l*e.option.zoomToNodeRatio;s=o.parentNode;){for(var u=0,d=s.children,p=0,h=d.length;p<h;p++)u+=d[p].getValue();var g=o.getValue();if(g===0)return a;c*=u/g;var m=s.getModel(),v=m.get(Y2t),y=Math.max(v,Z2t(m));c+=4*v*v+(3*v+y)*Math.pow(c,.5),c>Ome&&(c=Ome),o=s}c<l&&(c=l);var M=Math.pow(c/l,.5);return[r*M,i*M]}function shr(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;for(var a=[o.width/2,o.height/2],s=i;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function Q2t(e,t,n,r,i){var o=e.getLayout(),a=n[i],s=a&&a===e;if(!(a&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new ui(t.x-o.x,t.y-o.y,t.width,t.height);AAe(e.viewChildren||[],function(c){Q2t(c,l,n,r,i+1)})}}function Z2t(e){return e.get(Zpr)?e.get(Jpr):0}function lhr(e){e.registerSeriesModel(zpr),e.registerChartView(Fpr),e.registerVisual($pr),e.registerLayout(ehr),Opr(e)}function chr(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),i=n.getGraph(),o=i.data,a=r.mapArray(r.getName);o.filterSelf(function(s){var l=o.getItemModel(s),c=l.getShallow("category");if(c!=null){yo(c)&&(c=a[c]);for(var u=0;u<t.length;u++)if(!t[u].isSelected(c))return!1}return!0})})}function uhr(e){var t={};e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),i=n.getData(),o={};r.each(function(a){var s=r.getName(a);o["ec-"+s]=a;var l=r.getItemModel(a),c=l.getModel("itemStyle").getItemStyle();c.fill||(c.fill=n.getColorFromPalette(s,t)),r.setItemVisual(a,"style",c);for(var u=["symbol","symbolSize","symbolKeepAspect"],d=0;d<u.length;d++){var p=l.getShallow(u[d],!0);p!=null&&r.setItemVisual(a,u[d],p)}}),r.count()&&i.each(function(a){var s=i.getItemModel(a),l=s.getShallow("category");if(l!=null){Sn(l)&&(l=o["ec-"+l]);var c=r.getItemVisual(l,"style"),u=i.ensureUniqueItemVisual(a,"style");Nt(u,c);for(var d=["symbol","symbolSize","symbolKeepAspect"],p=0;p<d.length;p++)i.setItemVisual(a,d[p],r.getItemVisual(l,d[p]))}})})}function DV(e){return e instanceof Array||(e=[e,e]),e}function dhr(e){e.eachSeriesByType("graph",function(t){var n=t.getGraph(),r=t.getEdgeData(),i=DV(t.get("edgeSymbol")),o=DV(t.get("edgeSymbolSize"));r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",o&&o[0]),r.setVisual("toSymbolSize",o&&o[1]),r.setVisual("style",t.getModel("lineStyle").getLineStyle()),r.each(function(a){var s=r.getItemModel(a),l=n.getEdgeByIndex(a),c=DV(s.getShallow("symbol",!0)),u=DV(s.getShallow("symbolSize",!0)),d=s.getModel("lineStyle").getLineStyle(),p=r.ensureUniqueItemVisual(a,"style");switch(Nt(p,d),p.stroke){case"source":{var h=l.node1.getVisual("style");p.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");p.stroke=h&&h.fill;break}}c[0]&&l.setVisual("fromSymbol",c[0]),c[1]&&l.setVisual("toSymbol",c[1]),u[0]&&l.setVisual("fromSymbolSize",u[0]),u[1]&&l.setVisual("toSymbolSize",u[1])})})}var Mve="-->",LJ=function(e){return e.get("autoCurveness")||null},J2t=function(e,t){var n=LJ(e),r=20,i=[];if(yo(n))r=n;else if(Ht(n)){e.__curvenessList=n;return}t>r&&(r=t);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=i},Eq=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join(Mve)},eyt=function(e){var t=e.split(Mve);return[t[0],t[2],t[1]].join(Mve)},phr=function(e,t){var n=Eq(e.node1,e.node2,t);return t.__edgeMap[n]},hhr=function(e,t){var n=Cve(Eq(e.node1,e.node2,t),t),r=Cve(Eq(e.node2,e.node1,t),t);return n+r},Cve=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function fhr(e){LJ(e)&&(e.__curvenessList=[],e.__edgeMap={},J2t(e))}function ghr(e,t,n,r){if(LJ(n)){var i=Eq(e,t,n),o=n.__edgeMap,a=o[eyt(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}function OAe(e,t,n,r){var i=LJ(t),o=Ht(i);if(!i)return null;var a=phr(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var c=hhr(e,t);J2t(t,c),e.lineStyle=e.lineStyle||{};var u=Eq(e.node1,e.node2,t),d=t.__curvenessList,p=o||c%2?0:1;if(a.isForward)return d[p+s];var h=eyt(u),g=Cve(h,t),m=d[s+g+p];return r?o?i&&i[0]===0?(g+p)%2?m:-m:((g%2?0:1)+p)%2?m:-m:(g+p)%2?m:-m:d[s+g+p]}function tyt(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var n=e.getGraph();n.eachNode(function(r){var i=r.getModel();r.setLayout([+i.get("x"),+i.get("y")])}),zAe(n,e)}}function zAe(e,t){e.eachEdge(function(n,r){var i=hm(n.getModel().get(["lineStyle","curveness"]),-OAe(n,t,r,!0),0),o=bb(n.node1.getLayout()),a=bb(n.node2.getLayout()),s=[o,a];+i&&s.push([(o[0]+a[0])/2-(o[1]-a[1])*i,(o[1]+a[1])/2-(a[0]-o[0])*i]),n.setLayout(s)})}function mhr(e,t){e.eachSeriesByType("graph",function(n){var r=n.get("layout"),i=n.coordinateSystem;if(i&&i.type!=="view"){var o=n.getData(),a=[];ye(i.dimensions,function(p){a=a.concat(o.mapDimensionsAll(p))});for(var s=0;s<o.count();s++){for(var l=[],c=!1,u=0;u<a.length;u++){var d=o.get(a[u],s);isNaN(d)||(c=!0),l.push(d)}c?o.setItemLayout(s,i.dataToPoint(l)):o.setItemLayout(s,[NaN,NaN])}zAe(o.graph,n)}else(!r||r==="none")&&tyt(n)})}function gN(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var n=e.option.nodeScaleRatio,r=t.scaleX,i=t.getZoom(),o=(i-1)*n+1;return o/r}function mN(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var uBe=Math.PI,yse=[];function TAe(e,t,n,r){var i=e.coordinateSystem;if(!(i&&i.type!=="view")){var o=i.getBoundingRect(),a=e.getData(),s=a.graph,l=o.width/2+o.x,c=o.height/2+o.y,u=Math.min(o.width,o.height)/2,d=a.count();if(a.setLayout({cx:l,cy:c}),!!d){if(n){var p=i.pointToData(r),h=p[0],g=p[1],m=[h-l,g-c];B3(m,m),yF(m,m,u),n.setLayout([l+m[0],c+m[1]],!0);var v=e.get(["circular","rotateLabel"]);nyt(n,v,l,c)}vhr[t](e,s,a,u,l,c,d),s.eachEdge(function(y,M){var C=hm(y.getModel().get(["lineStyle","curveness"]),OAe(y,e,M),0),x=bb(y.node1.getLayout()),w=bb(y.node2.getLayout()),S,A=(x[0]+w[0])/2,z=(x[1]+w[1])/2;+C&&(C*=3,S=[l*C+A*(1-C),c*C+z*(1-C)]),y.setLayout([x,w,S])})}}}var vhr={value:function(e,t,n,r,i,o,a){var s=0,l=n.getSum("value"),c=Math.PI*2/(l||a);t.eachNode(function(u){var d=u.getValue("value"),p=c*(l?d:1)/2;s+=p,u.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=p})},symbolSize:function(e,t,n,r,i,o,a){var s=0;yse.length=a;var l=gN(e);t.eachNode(function(d){var p=mN(d);isNaN(p)&&(p=2),p<0&&(p=0),p*=l;var h=Math.asin(p/2/r);isNaN(h)&&(h=uBe/2),yse[d.dataIndex]=h,s+=h*2});var c=(2*uBe-s)/a/2,u=0;t.eachNode(function(d){var p=c+yse[d.dataIndex];u+=p,(!d.getLayout()||!d.getLayout().fixed)&&d.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+o]),u+=p})}};function nyt(e,t,n,r){var i=e.getGraphicEl();if(i){var o=e.getModel(),a=o.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=e.getLayout(),c=Math.atan2(l[1]-r,l[0]-n);c<0&&(c=Math.PI*2+c);var u=l[0]<n;u&&(c=c-Math.PI);var d=u?"left":"right";s.setTextConfig({rotation:-c,position:d,origin:"center"});var p=s.ensureState("emphasis");Nt(p.textConfig||(p.textConfig={}),{position:d})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function bhr(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&TAe(t,"symbolSize")})}var XE=tU;function yhr(e,t,n){for(var r=e,i=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],c=n.gravity==null?.1:n.gravity,u=0;u<r.length;u++){var d=r[u];d.p||(d.p=Lw(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=bb(d.p),d.edges=null}var p=n.friction==null?.6:n.friction,h=p,g,m;return{warmUp:function(){h=p*.8},setFixed:function(v){r[v].fixed=!0},setUnfixed:function(v){r[v].fixed=!1},beforeStep:function(v){g=v},afterStep:function(v){m=v},step:function(v){g&&g(r,i);for(var y=[],M=r.length,C=0;C<i.length;C++){var x=i[C];if(!x.ignoreForceLayout){var w=x.n1,S=x.n2;ux(y,S.p,w.p);var A=oq(y)-x.d,z=S.w/(w.w+S.w);isNaN(z)&&(z=0),B3(y,y),!w.fixed&&XE(w.p,w.p,y,z*A*h),!S.fixed&&XE(S.p,S.p,y,-(1-z)*A*h)}}for(var C=0;C<M;C++){var O=r[C];O.fixed||(ux(y,l,O.p),XE(O.p,O.p,y,c*h))}for(var C=0;C<M;C++)for(var w=r[C],T=C+1;T<M;T++){var S=r[T];ux(y,S.p,w.p);var A=oq(y);A===0&&(cgt(y,Math.random()-.5,Math.random()-.5),A=1);var I=(w.rep+S.rep)/A/A;!w.fixed&&XE(w.pp,w.pp,y,I),!S.fixed&&XE(S.pp,S.pp,y,-I)}for(var P=[],C=0;C<M;C++){var O=r[C];O.fixed||(ux(P,O.p,O.pp),XE(O.p,O.p,P,h),i0(O.pp,O.p))}h=h*.992;var N=h<.01;m&&m(r,i,N),v&&v(N)}}}function Mhr(e){e.eachSeriesByType("graph",function(t){var n=t.coordinateSystem;if(!(n&&n.type!=="view"))if(t.get("layout")==="force"){var r=t.preservedPoints||{},i=t.getGraph(),o=i.data,a=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?o.each(function(C){var x=o.getId(C);o.setItemLayout(C,r[x]||[NaN,NaN])}):!l||l==="none"?tyt(t):l==="circular"&&TAe(t,"value");var c=o.getDataExtent("value"),u=a.getDataExtent("value"),d=s.get("repulsion"),p=s.get("edgeLength"),h=Ht(d)?d:[d,d],g=Ht(p)?p:[p,p];g=[g[1],g[0]];var m=o.mapArray("value",function(C,x){var w=o.getItemLayout(x),S=Yo(C,c,h);return isNaN(S)&&(S=(h[0]+h[1])/2),{w:S,rep:S,fixed:o.getItemModel(x).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),v=a.mapArray("value",function(C,x){var w=i.getEdgeByIndex(x),S=Yo(C,u,g);isNaN(S)&&(S=(g[0]+g[1])/2);var A=w.getModel(),z=hm(w.getModel().get(["lineStyle","curveness"]),-OAe(w,t,x,!0),0);return{n1:m[w.node1.dataIndex],n2:m[w.node2.dataIndex],d:S,curveness:z,ignoreForceLayout:A.get("ignoreForceLayout")}}),y=n.getBoundingRect(),M=yhr(m,v,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});M.beforeStep(function(C,x){for(var w=0,S=C.length;w<S;w++)C[w].fixed&&i0(C[w].p,i.getNodeByIndex(w).getLayout())}),M.afterStep(function(C,x,w){for(var S=0,A=C.length;S<A;S++)C[S].fixed||i.getNodeByIndex(S).setLayout(C[S].p),r[o.getId(S)]=C[S].p;for(var S=0,A=x.length;S<A;S++){var z=x[S],O=i.getEdgeByIndex(S),T=z.n1.p,I=z.n2.p,P=O.getLayout();P=P?P.slice():[],P[0]=P[0]||[],P[1]=P[1]||[],i0(P[0],T),i0(P[1],I),+z.curveness&&(P[2]=[(T[0]+I[0])/2-(T[1]-I[1])*z.curveness,(T[1]+I[1])/2-(I[0]-T[0])*z.curveness]),O.setLayout(P)}}),t.forceLayout=M,t.preservedPoints=r,M.step()}else t.forceLayout=null})}function Chr(e,t,n){var r=Nt(e.getBoxLayoutParams(),{aspect:n});return Ic(r,{width:t.getWidth(),height:t.getHeight()})}function xhr(e,t){var n=[];return e.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var o=r.getData(),a=o.mapArray(function(v){var y=o.getItemModel(v);return[+y.get("x"),+y.get("y")]}),s=[],l=[];cJ(a,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var c=(l[0]-s[0])/(l[1]-s[1]),u=Chr(r,t,c);isNaN(c)&&(s=[u.x,u.y],l=[u.x+u.width,u.y+u.height]);var d=l[0]-s[0],p=l[1]-s[1],h=u.width,g=u.height,m=r.coordinateSystem=new JB;m.zoomLimit=r.get("scaleLimit"),m.setBoundingRect(s[0],s[1],d,p),m.setViewRect(u.x,u.y,h,g),m.setCenter(r.get("center"),t),m.setZoom(r.get("zoom")),n.push(m)}}),n}var dBe=Jc.prototype,Mse=JD.prototype,ryt=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})();(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(ryt);function Cse(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var whr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-line",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ryt},t.prototype.buildPath=function(n,r){Cse(r)?dBe.buildPath.call(this,n,r):Mse.buildPath.call(this,n,r)},t.prototype.pointAt=function(n){return Cse(this.shape)?dBe.pointAt.call(this,n):Mse.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var r=this.shape,i=Cse(r)?[r.x2-r.x1,r.y2-r.y1]:Mse.tangentAt.call(this,n);return B3(i,i)},t})(Di),xse=["fromSymbol","toSymbol"];function pBe(e){return"_"+e+"Type"}function hBe(e,t,n){var r=t.getItemVisual(n,e);if(!r||r==="none")return r;var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=uk(i),c=$3(a||0,l);return r+l+c+(o||"")+(s||"")}function fBe(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r==="none")){var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=uk(i),c=$3(a||0,l),u=rc(r,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,u.name=e,u}}function Shr(e){var t=new whr({name:"line",subPixelOptimize:!0});return xve(t.shape,e),t}function xve(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var EAe=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this)||this;return o._createLine(n,r,i),o}return t.prototype._createLine=function(n,r,i){var o=n.hostModel,a=n.getItemLayout(r),s=Shr(a);s.shape.percent=0,vs(s,{shape:{percent:1}},o,r),this.add(s),ye(xse,function(l){var c=fBe(l,n,r);this.add(c),this[pBe(l)]=hBe(l,n,r)},this),this._updateCommonStl(n,r,i)},t.prototype.updateData=function(n,r,i){var o=n.hostModel,a=this.childOfName("line"),s=n.getItemLayout(r),l={shape:{}};xve(l.shape,s),So(a,l,o,r),ye(xse,function(c){var u=hBe(c,n,r),d=pBe(c);if(this[d]!==u){this.remove(this.childOfName(c));var p=fBe(c,n,r);this.add(p)}this[d]=u},this),this._updateCommonStl(n,r,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(n,r,i){var o=n.hostModel,a=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,c=i&&i.selectLineStyle,u=i&&i.labelStatesModels,d=i&&i.emphasisDisabled,p=i&&i.focus,h=i&&i.blurScope;if(!i||n.hasItemOption){var g=n.getItemModel(r),m=g.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=g.getModel(["blur","lineStyle"]).getLineStyle(),c=g.getModel(["select","lineStyle"]).getLineStyle(),d=m.get("disabled"),p=m.get("focus"),h=m.get("blurScope"),u=Ru(g)}var v=n.getItemVisual(r,"style"),y=v.stroke;a.useStyle(v),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=s,a.ensureState("blur").style=l,a.ensureState("select").style=c,ye(xse,function(S){var A=this.childOfName(S);if(A){A.setColor(y),A.style.opacity=v.opacity;for(var z=0;z<f1.length;z++){var O=f1[z],T=a.getState(O);if(T){var I=T.style||{},P=A.ensureState(O),N=P.style||(P.style={});I.stroke!=null&&(N[A.__isEmptyBrush?"stroke":"fill"]=I.stroke),I.opacity!=null&&(N.opacity=I.opacity)}}A.markRedraw()}},this);var M=o.getRawValue(r);Od(this,u,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(S,A){return o.getFormattedLabel(S,A,n.dataType)}},inheritColor:y||"#000",defaultOpacity:v.opacity,defaultText:(M==null?n.getName(r):isFinite(M)?wl(M):M)+""});var C=this.getTextContent();if(C){var x=u.normal;C.__align=C.style.align,C.__verticalAlign=C.style.verticalAlign,C.__position=x.get("position")||"middle";var w=x.get("distance");Ht(w)||(w=[w,w]),C.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),al(this,p,h,d)},t.prototype.highlight=function(){rM(this)},t.prototype.downplay=function(){iM(this)},t.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},t.prototype.setLinePoints=function(n){var r=this.childOfName("line");xve(r.shape,n),r.dirty()},t.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),i=n.childOfName("toSymbol"),o=n.getTextContent();if(!r&&!i&&(!o||o.ignore))return;for(var a=1,s=this.parent;s;)s.scaleX&&(a/=s.scaleX),s=s.parent;var l=n.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var c=l.shape.percent,u=l.pointAt(0),d=l.pointAt(c),p=ux([],d,u);B3(p,p);function h(T,I){var P=T.__specifiedRotation;if(P==null){var N=l.tangentAt(I);T.attr("rotation",(I===1?-1:1)*Math.PI/2-Math.atan2(N[1],N[0]))}else T.attr("rotation",P)}if(r&&(r.setPosition(u),h(r,0),r.scaleX=r.scaleY=a*c,r.markRedraw()),i&&(i.setPosition(d),h(i,1),i.scaleX=i.scaleY=a*c,i.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var g=void 0,m=void 0,v=o.__labelDistance,y=v[0]*a,M=v[1]*a,C=c/2,x=l.tangentAt(C),w=[x[1],-x[0]],S=l.pointAt(C);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var A=x[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var z=-Math.atan2(x[1],x[0]);d[0]<u[0]&&(z=Math.PI+z),o.rotation=z}var O=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":O=-M,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":O=M,m="top";break;default:O=0,m="middle"}switch(o.__position){case"end":o.x=p[0]*y+d[0],o.y=p[1]*M+d[1],g=p[0]>.8?"left":p[0]<-.8?"right":"center",m=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":o.x=-p[0]*y+u[0],o.y=-p[1]*M+u[1],g=p[0]>.8?"right":p[0]<-.8?"left":"center",m=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=y*A+u[0],o.y=u[1]+O,g=x[0]<0?"right":"left",o.originX=-y*A,o.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=S[0],o.y=S[1]+O,g="center",o.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-y*A+d[0],o.y=d[1]+O,g=x[0]>=0?"right":"left",o.originX=y*A,o.originY=-O;break}o.scaleX=o.scaleY=a,o.setStyle({verticalAlign:o.__verticalAlign||m,align:o.__align||g})}},t})(Ir),RAe=(function(){function e(t){this.group=new Ir,this._LineCtor=t||EAe}return e.prototype.updateData=function(t){var n=this;this._progressiveEls=null;var r=this,i=r.group,o=r._lineData;r._lineData=t,o||i.removeAll();var a=gBe(t);t.diff(o).add(function(s){n._doAdd(t,s,a)}).update(function(s,l){n._doUpdate(o,t,l,s,a)}).remove(function(s){i.remove(o.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(n,r){n.updateLayout(t,r)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=gBe(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!Ahr(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=n.getItemLayout(i);if(wse(o)){var a=new this._LineCtor(n,i,this._seriesScope);a.traverse(r),this.group.add(a),n.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Nw(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,n,r){var i=t.getItemLayout(n);if(wse(i)){var o=new this._LineCtor(t,n,r);t.setItemGraphicEl(n,o),this.group.add(o)}},e.prototype._doUpdate=function(t,n,r,i,o){var a=t.getItemGraphicEl(r);if(!wse(n.getItemLayout(i))){this.group.remove(a);return}a?a.updateData(n,i,o):a=new this._LineCtor(n,i,o),n.setItemGraphicEl(i,a),this.group.add(a)},e})();function Ahr(e){return e.animators&&e.animators.length>0}function gBe(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Ru(t)}}function mBe(e){return isNaN(e[0])||isNaN(e[1])}function wse(e){return e&&!mBe(e[0])&&!mBe(e[1])}var Sse=[],Ase=[],Ose=[],YE=Vu,zse=Px,vBe=Math.abs;function bBe(e,t,n){for(var r=e[0],i=e[1],o=e[2],a=1/0,s,l=n*n,c=.1,u=.1;u<=.9;u+=.1){Sse[0]=YE(r[0],i[0],o[0],u),Sse[1]=YE(r[1],i[1],o[1],u);var d=vBe(zse(Sse,t)-l);d<a&&(a=d,s=u)}for(var p=0;p<32;p++){var h=s+c;Ase[0]=YE(r[0],i[0],o[0],s),Ase[1]=YE(r[1],i[1],o[1],s),Ose[0]=YE(r[0],i[0],o[0],h),Ose[1]=YE(r[1],i[1],o[1],h);var d=zse(Ase,t)-l;if(vBe(d)<.01)break;var g=zse(Ose,t)-l;c/=2,d<0?g>=0?s=s+c:s=s-c:g>=0?s=s-c:s=s+c}return s}function Tse(e,t){var n=[],r=aq,i=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge(function(s,l){var c=s.getLayout(),u=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");c.__original||(c.__original=[bb(c[0]),bb(c[1])],c[2]&&c.__original.push(bb(c[2])));var p=c.__original;if(c[2]!=null){if(i0(i[0],p[0]),i0(i[1],p[2]),i0(i[2],p[1]),u&&u!=="none"){var h=mN(s.node1),g=bBe(i,p[0],h*t);r(i[0][0],i[1][0],i[2][0],g,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],g,n),i[0][1]=n[3],i[1][1]=n[4]}if(d&&d!=="none"){var h=mN(s.node2),g=bBe(i,p[1],h*t);r(i[0][0],i[1][0],i[2][0],g,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],g,n),i[1][1]=n[1],i[2][1]=n[2]}i0(c[0],i[0]),i0(c[1],i[2]),i0(c[2],i[1])}else{if(i0(o[0],p[0]),i0(o[1],p[1]),ux(a,o[1],o[0]),B3(a,a),u&&u!=="none"){var h=mN(s.node1);tU(o[0],o[0],a,h*t)}if(d&&d!=="none"){var h=mN(s.node2);tU(o[1],o[1],a,-h*t)}i0(c[0],o[0]),i0(c[1],o[1])}})}function yBe(e){return e.type==="view"}var Ohr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){var i=new UB,o=new RAe,a=this.group;this._controller=new ZB(r.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(o.group),this._symbolDraw=i,this._lineDraw=o,this._firstRender=!0},t.prototype.render=function(n,r,i){var o=this,a=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,c=this.group;if(yBe(a)){var u={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?c.attr(u):So(c,u,n)}Tse(n.getGraph(),gN(n));var d=n.getData();s.updateData(d);var p=n.getEdgeData();l.updateData(p),this._updateNodeAndLinkScale(),this._updateController(n,r,i),clearTimeout(this._layoutTimeout);var h=n.forceLayout,g=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,g);var m=n.get("layout");d.graph.eachNode(function(C){var x=C.dataIndex,w=C.getGraphicEl(),S=C.getModel();if(w){w.off("drag").off("dragend");var A=S.get("draggable");A&&w.on("drag",function(O){switch(m){case"force":h.warmUp(),!o._layouting&&o._startForceLayoutIteration(h,g),h.setFixed(x),d.setItemLayout(x,[w.x,w.y]);break;case"circular":d.setItemLayout(x,[w.x,w.y]),C.setLayout({fixed:!0},!0),TAe(n,"symbolSize",C,[O.offsetX,O.offsetY]),o.updateLayout(n);break;case"none":default:d.setItemLayout(x,[w.x,w.y]),zAe(n.getGraph(),n),o.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(x)}),w.setDraggable(A,!!S.get("cursor"));var z=S.get(["emphasis","focus"]);z==="adjacency"&&(_r(w).focus=C.getAdjacentDataIndices())}}),d.graph.eachEdge(function(C){var x=C.getGraphicEl(),w=C.getModel().get(["emphasis","focus"]);x&&w==="adjacency"&&(_r(x).focus={edge:[C.dataIndex],node:[C.node1.dataIndex,C.node2.dataIndex]})});var v=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=d.getLayout("cx"),M=d.getLayout("cy");d.graph.eachNode(function(C){nyt(C,v,y,M)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(n,r){var i=this;(function o(){n.step(function(a){i.updateLayout(i._model),(i._layouting=!a)&&(r?i._layoutTimeout=setTimeout(o,16):o())})})()},t.prototype._updateController=function(n,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;if(a.setPointerChecker(function(c,u,d){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(u,d)&&!PJ(c,i,n)}),!yBe(n.coordinateSystem)){a.disable();return}a.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(c){bAe(s,c.dx,c.dy),i.dispatchAction({seriesId:n.id,type:"graphRoam",dx:c.dx,dy:c.dy})}).on("zoom",function(c){yAe(s,c.scale,c.originX,c.originY),i.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:c.scale,originX:c.originX,originY:c.originY}),o._updateNodeAndLinkScale(),Tse(n.getGraph(),gN(n)),o._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),i=gN(n);r.eachItemGraphicEl(function(o,a){o&&o.setSymbolScale(i)})},t.prototype.updateLayout=function(n){Tse(n.getGraph(),gN(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t})(da);function KE(e){return"_EC_"+e}var zhr=(function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,n){t=t==null?""+n:""+t;var r=this._nodesMap;if(!r[KE(t)]){var i=new FA(t,n);return i.hostGraph=this,this.nodes.push(i),r[KE(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var n=this.data.getRawIndex(t);return this.nodes[n]},e.prototype.getNodeById=function(t){return this._nodesMap[KE(t)]},e.prototype.addEdge=function(t,n,r){var i=this._nodesMap,o=this._edgesMap;if(yo(t)&&(t=this.nodes[t]),yo(n)&&(n=this.nodes[n]),t instanceof FA||(t=i[KE(t)]),n instanceof FA||(n=i[KE(n)]),!(!t||!n)){var a=t.id+"-"+n.id,s=new iyt(t,n,r);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),n.inEdges.push(s)),t.edges.push(s),t!==n&&n.edges.push(s),this.edges.push(s),o[a]=s,s}},e.prototype.getEdgeByIndex=function(t){var n=this.edgeData.getRawIndex(t);return this.edges[n]},e.prototype.getEdge=function(t,n){t instanceof FA&&(t=t.id),n instanceof FA&&(n=n.id);var r=this._edgesMap;return this._directed?r[t+"-"+n]:r[t+"-"+n]||r[n+"-"+t]},e.prototype.eachNode=function(t,n){for(var r=this.nodes,i=r.length,o=0;o<i;o++)r[o].dataIndex>=0&&t.call(n,r[o],o)},e.prototype.eachEdge=function(t,n){for(var r=this.edges,i=r.length,o=0;o<i;o++)r[o].dataIndex>=0&&r[o].node1.dataIndex>=0&&r[o].node2.dataIndex>=0&&t.call(n,r[o],o)},e.prototype.breadthFirstTraverse=function(t,n,r,i){if(n instanceof FA||(n=this._nodesMap[KE(n)]),!!n){for(var o=r==="out"?"outEdges":r==="in"?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!t.call(i,n,null))for(var s=[n];s.length;)for(var l=s.shift(),c=l[o],a=0;a<c.length;a++){var u=c[a],d=u.node1===l?u.node2:u.node1;if(!d.__visited){if(t.call(i,d,l))return;s.push(d),d.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,n=this.edgeData,r=this.nodes,i=this.edges,o=0,a=r.length;o<a;o++)r[o].dataIndex=-1;for(var o=0,a=t.count();o<a;o++)r[t.getRawIndex(o)].dataIndex=o;n.filterSelf(function(s){var l=i[n.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var o=0,a=i.length;o<a;o++)i[o].dataIndex=-1;for(var o=0,a=n.count();o<a;o++)i[n.getRawIndex(o)].dataIndex=o},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var o=r[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e})(),FA=(function(){function e(t,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=n??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(t.edge.push(r.dataIndex),t.node.push(r.node1.dataIndex,r.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=Yn(),n=Yn(),r=0;r<this.edges.length;r++){var i=this.edges[r];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],a=[i.node2],s=0;s<o.length;){var l=o[s];s++,n.set(l.dataIndex,!0);for(var c=0;c<l.inEdges.length;c++)t.set(l.inEdges[c].dataIndex,!0),o.push(l.inEdges[c].node1)}for(s=0;s<a.length;){var u=a[s];s++,n.set(u.dataIndex,!0);for(var c=0;c<u.outEdges.length;c++)t.set(u.outEdges[c].dataIndex,!0),a.push(u.outEdges[c].node2)}}}return{edge:t.keys(),node:n.keys()}},e})(),iyt=(function(){function e(t,n,r){this.dataIndex=-1,this.node1=t,this.node2=n,this.dataIndex=r??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=Yn(),n=Yn();t.set(this.dataIndex,!0);for(var r=[this.node1],i=[this.node2],o=0;o<r.length;){var a=r[o];o++,n.set(a.dataIndex,!0);for(var s=0;s<a.inEdges.length;s++)t.set(a.inEdges[s].dataIndex,!0),r.push(a.inEdges[s].node1)}for(o=0;o<i.length;){var l=i[o];o++,n.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:n.keys()}},e})();function oyt(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}jl(FA,oyt("hostGraph","data"));jl(iyt,oyt("hostGraph","edgeData"));function ayt(e,t,n,r,i){for(var o=new zhr(r),a=0;a<e.length;a++)o.addNode(xu(e[a].id,e[a].name,a),a);for(var s=[],l=[],c=0,a=0;a<t.length;a++){var u=t[a],d=u.source,p=u.target;o.addEdge(d,p,c)&&(l.push(u),s.push(xu(Zc(u.id,null),d+" > "+p)),c++)}var h=n.get("coordinateSystem"),g;if(h==="cartesian2d"||h==="polar")g=n2(e,n);else{var m=sk.get(h),v=m?m.dimensions||[]:[];hi(v,"value")<0&&v.concat(["value"]);var y=dk(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;g=new y0(y,n),g.initData(e)}var M=new y0(["value"],n);return M.initData(l,s),i&&i(g,M),B2t({mainData:g,struct:o,structAttr:"graph",datas:{node:g,edge:M},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var Thr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new QB(i,i),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(n){e.prototype.mergeDefaultAndTheme.apply(this,arguments),$z(n,"edgeLabel",["show"])},t.prototype.getInitialData=function(n,r){var i=n.edges||n.links||[],o=n.data||n.nodes||[],a=this;if(o&&i){fhr(this);var s=ayt(o,i,this,!0,l);return ye(s.edges,function(c){ghr(c.node1,c.node2,this,c.dataIndex)},this),s.data}function l(c,u){c.wrapMethod("getItemModel",function(g){var m=a._categoriesModels,v=g.getShallow("category"),y=m[v];return y&&(y.parentModel=g.parentModel,g.parentModel=y),g});var d=_o.prototype.getModel;function p(g,m){var v=d.call(this,g,m);return v.resolveParentPath=h,v}u.wrapMethod("getItemModel",function(g){return g.resolveParentPath=h,g.getModel=p,g});function h(g){if(g&&(g[0]==="label"||g[1]==="label")){var m=g.slice();return g[0]==="label"?m[0]="edgeLabel":g[1]==="label"&&(m[1]="edgeLabel"),m}return g}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(n,r,i){if(i==="edge"){var o=this.getData(),a=this.getDataParams(n,i),s=o.graph.getEdgeByIndex(n),l=o.getName(s.node1.dataIndex),c=o.getName(s.node2.dataIndex),u=[];return l!=null&&u.push(l),c!=null&&u.push(c),Iu("nameValue",{name:u.join(" > "),value:a.value,noValue:a.value==null})}var d=zvt({series:this,dataIndex:n,multipleSeries:r});return d},t.prototype._updateCategoriesData=function(){var n=Vt(this.option.categories||[],function(i){return i.value!=null?i:Nt({value:0},i)}),r=new y0(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(Ra),Ehr={type:"graphRoam",event:"graphRoam",update:"none"};function Rhr(e){e.registerChartView(Ohr),e.registerSeriesModel(Thr),e.registerProcessor(chr),e.registerVisual(uhr),e.registerVisual(dhr),e.registerLayout(mhr),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,bhr),e.registerLayout(Mhr),e.registerCoordinateSystem("graphView",{dimensions:JB.dimensions,create:xhr}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Nl),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Nl),e.registerAction(Ehr,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(i){var o=i.coordinateSystem,a=CAe(o,t,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}var Ihr=(function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e})(),Phr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new Ihr},t.prototype.buildPath=function(n,r){var i=Math.cos,o=Math.sin,a=r.r,s=r.width,l=r.angle,c=r.x-i(l)*s*(s>=a/3?1:2),u=r.y-o(l)*s*(s>=a/3?1:2);l=r.angle-Math.PI/2,n.moveTo(c,u),n.lineTo(r.x+i(l)*s,r.y+o(l)*s),n.lineTo(r.x+i(r.angle)*a,r.y+o(r.angle)*a),n.lineTo(r.x-i(l)*s,r.y-o(l)*s),n.lineTo(c,u)},t})(Di);function Dhr(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i),a=vn(n[0],t.getWidth()),s=vn(n[1],t.getHeight()),l=vn(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function kV(e,t){var n=e==null?"":e+"";return t&&(Sn(t)?n=t.replace("{value}",n):fr(t)&&(n=t(e))),n}var khr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){this.group.removeAll();var o=n.get(["axisLine","lineStyle","color"]),a=Dhr(n,i);this._renderMain(n,r,i,o,a),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,i,o,a){var s=this.group,l=n.get("clockwise"),c=-n.get("startAngle")/180*Math.PI,u=-n.get("endAngle")/180*Math.PI,d=n.getModel("axisLine"),p=d.get("roundCap"),h=p?DU:A0,g=d.get("show"),m=d.getModel("lineStyle"),v=m.get("width"),y=[c,u];pSe(y,!l),c=y[0],u=y[1];for(var M=u-c,C=c,x=[],w=0;g&&w<o.length;w++){var S=Math.min(Math.max(o[w][0],0),1);u=c+M*S;var A=new h({shape:{startAngle:C,endAngle:u,cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-v,r:a.r},silent:!0});A.setStyle({fill:o[w][1]}),A.setStyle(m.getLineStyle(["color","width"])),x.push(A),C=u}x.reverse(),ye(x,function(O){return s.add(O)});var z=function(O){if(O<=0)return o[0][1];var T;for(T=0;T<o.length;T++)if(o[T][0]>=O&&(T===0?0:o[T-1][0])<O)return o[T][1];return o[T-1][1]};this._renderTicks(n,r,i,z,a,c,u,l,v),this._renderTitleAndDetail(n,r,i,z,a),this._renderAnchor(n,a),this._renderPointer(n,r,i,z,a,c,u,l,v)},t.prototype._renderTicks=function(n,r,i,o,a,s,l,c,u){for(var d=this.group,p=a.cx,h=a.cy,g=a.r,m=+n.get("min"),v=+n.get("max"),y=n.getModel("splitLine"),M=n.getModel("axisTick"),C=n.getModel("axisLabel"),x=n.get("splitNumber"),w=M.get("splitNumber"),S=vn(y.get("length"),g),A=vn(M.get("length"),g),z=s,O=(l-s)/x,T=O/w,I=y.getModel("lineStyle").getLineStyle(),P=M.getModel("lineStyle").getLineStyle(),N=y.get("distance"),F,L,W=0;W<=x;W++){if(F=Math.cos(z),L=Math.sin(z),y.get("show")){var H=N?N+u:u,j=new Jc({shape:{x1:F*(g-H)+p,y1:L*(g-H)+h,x2:F*(g-S-H)+p,y2:L*(g-S-H)+h},style:I,silent:!0});I.stroke==="auto"&&j.setStyle({stroke:o(W/x)}),d.add(j)}if(C.get("show")){var H=C.get("distance")+N,G=kV(wl(W/x*(v-m)+m),C.get("formatter")),q=o(W/x),$=F*(g-S-H)+p,U=L*(g-S-H)+h,X=C.get("rotate"),Q=0;X==="radial"?(Q=-z+2*Math.PI,Q>Math.PI/2&&(Q+=Math.PI)):X==="tangential"?Q=-z-Math.PI/2:yo(X)&&(Q=X*Math.PI/180),Q===0?d.add(new oo({style:Za(C,{text:G,x:$,y:U,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:F<-.4?"left":F>.4?"right":"center"},{inheritColor:q}),silent:!0})):d.add(new oo({style:Za(C,{text:G,x:$,y:U,verticalAlign:"middle",align:"center"},{inheritColor:q}),silent:!0,originX:$,originY:U,rotation:Q}))}if(M.get("show")&&W!==x){var H=M.get("distance");H=H?H+u:u;for(var re=0;re<=w;re++){F=Math.cos(z),L=Math.sin(z);var ee=new Jc({shape:{x1:F*(g-H)+p,y1:L*(g-H)+h,x2:F*(g-A-H)+p,y2:L*(g-A-H)+h},silent:!0,style:P});P.stroke==="auto"&&ee.setStyle({stroke:o((W+re/w)/x)}),d.add(ee),z+=T}z-=T}else z+=O}},t.prototype._renderPointer=function(n,r,i,o,a,s,l,c,u){var d=this.group,p=this._data,h=this._progressEls,g=[],m=n.get(["pointer","show"]),v=n.getModel("progress"),y=v.get("show"),M=n.getData(),C=M.mapDimension("value"),x=+n.get("min"),w=+n.get("max"),S=[x,w],A=[s,l];function z(T,I){var P=M.getItemModel(T),N=P.getModel("pointer"),F=vn(N.get("width"),a.r),L=vn(N.get("length"),a.r),W=n.get(["pointer","icon"]),H=N.get("offsetCenter"),j=vn(H[0],a.r),G=vn(H[1],a.r),q=N.get("keepAspect"),$;return W?$=rc(W,j-F/2,G-L,F,L,null,q):$=new Phr({shape:{angle:-Math.PI/2,width:F,r:L,x:j,y:G}}),$.rotation=-(I+Math.PI/2),$.x=a.cx,$.y=a.cy,$}function O(T,I){var P=v.get("roundCap"),N=P?DU:A0,F=v.get("overlap"),L=F?v.get("width"):u/M.count(),W=F?a.r-L:a.r-(T+1)*L,H=F?a.r:a.r-T*L,j=new N({shape:{startAngle:s,endAngle:I,cx:a.cx,cy:a.cy,clockwise:c,r0:W,r:H}});return F&&(j.z2=Yo(M.get(C,T),[x,w],[100,0],!0)),j}(y||m)&&(M.diff(p).add(function(T){var I=M.get(C,T);if(m){var P=z(T,s);vs(P,{rotation:-((isNaN(+I)?A[0]:Yo(I,S,A,!0))+Math.PI/2)},n),d.add(P),M.setItemGraphicEl(T,P)}if(y){var N=O(T,s),F=v.get("clip");vs(N,{shape:{endAngle:Yo(I,S,A,F)}},n),d.add(N),Pme(n.seriesIndex,M.dataType,T,N),g[T]=N}}).update(function(T,I){var P=M.get(C,T);if(m){var N=p.getItemGraphicEl(I),F=N?N.rotation:s,L=z(T,F);L.rotation=F,So(L,{rotation:-((isNaN(+P)?A[0]:Yo(P,S,A,!0))+Math.PI/2)},n),d.add(L),M.setItemGraphicEl(T,L)}if(y){var W=h[I],H=W?W.shape.endAngle:s,j=O(T,H),G=v.get("clip");So(j,{shape:{endAngle:Yo(P,S,A,G)}},n),d.add(j),Pme(n.seriesIndex,M.dataType,T,j),g[T]=j}}).execute(),M.each(function(T){var I=M.getItemModel(T),P=I.getModel("emphasis"),N=P.get("focus"),F=P.get("blurScope"),L=P.get("disabled");if(m){var W=M.getItemGraphicEl(T),H=M.getItemVisual(T,"style"),j=H.fill;if(W instanceof Du){var G=W.style;W.useStyle(Nt({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},H))}else W.useStyle(H),W.type!=="pointer"&&W.setColor(j);W.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),W.style.fill==="auto"&&W.setStyle("fill",o(Yo(M.get(C,T),S,[0,1],!0))),W.z2EmphasisLift=0,Ad(W,I),al(W,N,F,L)}if(y){var q=g[T];q.useStyle(M.getItemVisual(T,"style")),q.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),q.z2EmphasisLift=0,Ad(q,I),al(q,N,F,L)}}),this._progressEls=g)},t.prototype._renderAnchor=function(n,r){var i=n.getModel("anchor"),o=i.get("show");if(o){var a=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),c=i.get("keepAspect"),u=rc(s,r.cx-a/2+vn(l[0],r.r),r.cy-a/2+vn(l[1],r.r),a,a,null,c);u.z2=i.get("showAbove")?1:0,u.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(n,r,i,o,a){var s=this,l=n.getData(),c=l.mapDimension("value"),u=+n.get("min"),d=+n.get("max"),p=new Ir,h=[],g=[],m=n.isAnimationEnabled(),v=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new oo({silent:!0}),g[y]=new oo({silent:!0})}).update(function(y,M){h[y]=s._titleEls[M],g[y]=s._detailEls[M]}).execute(),l.each(function(y){var M=l.getItemModel(y),C=l.get(c,y),x=new Ir,w=o(Yo(C,[u,d],[0,1],!0)),S=M.getModel("title");if(S.get("show")){var A=S.get("offsetCenter"),z=a.cx+vn(A[0],a.r),O=a.cy+vn(A[1],a.r),T=h[y];T.attr({z2:v?0:2,style:Za(S,{x:z,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),x.add(T)}var I=M.getModel("detail");if(I.get("show")){var P=I.get("offsetCenter"),N=a.cx+vn(P[0],a.r),F=a.cy+vn(P[1],a.r),L=vn(I.get("width"),a.r),W=vn(I.get("height"),a.r),H=n.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,T=g[y],j=I.get("formatter");T.attr({z2:v?0:2,style:Za(I,{x:N,y:F,text:kV(C,j),width:isNaN(L)?null:L,height:isNaN(W)?null:W,align:"center",verticalAlign:"middle"},{inheritColor:H})}),kmt(T,{normal:I},C,function(q){return kV(q,j)}),m&&Lmt(T,y,l,n,{getFormattedLabel:function(q,$,U,X,Q,re){return kV(re?re.interpolatedValue:C,j)}}),x.add(T)}p.add(x)}),this.group.add(p),this._titleEls=h,this._detailEls=g},t.type="gauge",t})(da),Lhr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return fk(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t})(Ra);function _hr(e){e.registerChartView(khr),e.registerSeriesModel(Lhr)}var Nhr=["itemStyle","opacity"],Fhr=(function(e){gt(t,e);function t(n,r){var i=e.call(this)||this,o=i,a=new R0,s=new oo;return o.setTextContent(s),i.setTextGuideLine(a),i.updateData(n,r,!0),i}return t.prototype.updateData=function(n,r,i){var o=this,a=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),c=s.getModel("emphasis"),u=s.get(Nhr);u=u??1,i||Om(o),o.useStyle(n.getItemVisual(r,"style")),o.style.lineJoin="round",i?(o.setShape({points:l.points}),o.style.opacity=0,vs(o,{style:{opacity:u}},a,r)):So(o,{style:{opacity:u},shape:{points:l.points}},a,r),Ad(o,s),this._updateLabel(n,r),al(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(n,r){var i=this,o=this.getTextGuideLine(),a=i.getTextContent(),s=n.hostModel,l=n.getItemModel(r),c=n.getItemLayout(r),u=c.label,d=n.getItemVisual(r,"style"),p=d.fill;Od(a,Ru(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:n.getName(r)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),i.setTextConfig({local:!0,inside:!!u.inside,insideStroke:p,outsideFill:p});var h=u.linePoints;o.setShape({points:h}),i.textGuideLineConfig={anchor:h?new ci(h[0][0],h[0][1]):null},So(a,{style:{x:u.x,y:u.y}},s,r),a.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),sAe(i,lAe(l),{stroke:p})},t})(O0),Whr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,i){var o=n.getData(),a=this._data,s=this.group;o.diff(a).add(function(l){var c=new Fhr(o,l);o.setItemGraphicEl(l,c),s.add(c)}).update(function(l,c){var u=a.getItemGraphicEl(c);u.updateData(o,l),s.add(u),o.setItemGraphicEl(l,u)}).remove(function(l){var c=a.getItemGraphicEl(l);fq(c,n,l)}).execute(),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t})(da),qhr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new QB(En(this.getData,this),En(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return fk(this,{coordDimensions:["value"],encodeDefaulter:Zr(LSe,this)})},t.prototype._defaultLabelLine=function(n){$z(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},t.prototype.getDataParams=function(n){var r=this.getData(),i=e.prototype.getDataParams.call(this,n),o=r.mapDimension("value"),a=r.getSum(o);return i.percent=a?+(r.get(o,n)/a*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(Ra);function Bhr(e,t){return Ic(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function jhr(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(l){return l}),i=[],o=t==="ascending",a=0,s=e.count();a<s;a++)i[a]=a;return fr(t)?i.sort(t):t!=="none"&&i.sort(function(l,c){return o?r[l]-r[c]:r[c]-r[l]}),i}function Hhr(e){var t=e.hostModel,n=t.get("orient");e.each(function(r){var i=e.getItemModel(r),o=i.getModel("label"),a=o.get("position"),s=i.getModel("labelLine"),l=e.getItemLayout(r),c=l.points,u=a==="inner"||a==="inside"||a==="center"||a==="insideLeft"||a==="insideRight",d,p,h,g;if(u)a==="insideLeft"?(p=(c[0][0]+c[3][0])/2+5,h=(c[0][1]+c[3][1])/2,d="left"):a==="insideRight"?(p=(c[1][0]+c[2][0])/2-5,h=(c[1][1]+c[2][1])/2,d="right"):(p=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,h=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,d="center"),g=[[p,h],[p,h]];else{var m=void 0,v=void 0,y=void 0,M=void 0,C=s.get("length");a==="left"?(m=(c[3][0]+c[0][0])/2,v=(c[3][1]+c[0][1])/2,y=m-C,p=y-5,d="right"):a==="right"?(m=(c[1][0]+c[2][0])/2,v=(c[1][1]+c[2][1])/2,y=m+C,p=y+5,d="left"):a==="top"?(m=(c[3][0]+c[0][0])/2,v=(c[3][1]+c[0][1])/2,M=v-C,h=M-5,d="center"):a==="bottom"?(m=(c[1][0]+c[2][0])/2,v=(c[1][1]+c[2][1])/2,M=v+C,h=M+5,d="center"):a==="rightTop"?(m=n==="horizontal"?c[3][0]:c[1][0],v=n==="horizontal"?c[3][1]:c[1][1],n==="horizontal"?(M=v-C,h=M-5,d="center"):(y=m+C,p=y+5,d="top")):a==="rightBottom"?(m=c[2][0],v=c[2][1],n==="horizontal"?(M=v+C,h=M+5,d="center"):(y=m+C,p=y+5,d="bottom")):a==="leftTop"?(m=c[0][0],v=n==="horizontal"?c[0][1]:c[1][1],n==="horizontal"?(M=v-C,h=M-5,d="center"):(y=m-C,p=y-5,d="right")):a==="leftBottom"?(m=n==="horizontal"?c[1][0]:c[3][0],v=n==="horizontal"?c[1][1]:c[2][1],n==="horizontal"?(M=v+C,h=M+5,d="center"):(y=m-C,p=y-5,d="right")):(m=(c[1][0]+c[2][0])/2,v=(c[1][1]+c[2][1])/2,n==="horizontal"?(M=v+C,h=M+5,d="center"):(y=m+C,p=y+5,d="left")),n==="horizontal"?(y=m,p=y):(M=v,h=M),g=[[m,v],[y,M]]}l.label={linePoints:g,x:p,y:h,verticalAlign:"middle",textAlign:d,inside:u}})}function Vhr(e,t){e.eachSeriesByType("funnel",function(n){var r=n.getData(),i=r.mapDimension("value"),o=n.get("sort"),a=Bhr(n,t),s=n.get("orient"),l=a.width,c=a.height,u=jhr(r,o),d=a.x,p=a.y,h=s==="horizontal"?[vn(n.get("minSize"),c),vn(n.get("maxSize"),c)]:[vn(n.get("minSize"),l),vn(n.get("maxSize"),l)],g=r.getDataExtent(i),m=n.get("min"),v=n.get("max");m==null&&(m=Math.min(g[0],0)),v==null&&(v=g[1]);var y=n.get("funnelAlign"),M=n.get("gap"),C=s==="horizontal"?l:c,x=(C-M*(r.count()-1))/r.count(),w=function(F,L){if(s==="horizontal"){var W=r.get(i,F)||0,H=Yo(W,[m,v],h,!0),j=void 0;switch(y){case"top":j=p;break;case"center":j=p+(c-H)/2;break;case"bottom":j=p+(c-H);break}return[[L,j],[L,j+H]]}var G=r.get(i,F)||0,q=Yo(G,[m,v],h,!0),$;switch(y){case"left":$=d;break;case"center":$=d+(l-q)/2;break;case"right":$=d+l-q;break}return[[$,L],[$+q,L]]};o==="ascending"&&(x=-x,M=-M,s==="horizontal"?d+=l:p+=c,u=u.reverse());for(var S=0;S<u.length;S++){var A=u[S],z=u[S+1],O=r.getItemModel(A);if(s==="horizontal"){var T=O.get(["itemStyle","width"]);T==null?T=x:(T=vn(T,l),o==="ascending"&&(T=-T));var I=w(A,d),P=w(z,d+T);d+=T+M,r.setItemLayout(A,{points:I.concat(P.slice().reverse())})}else{var N=O.get(["itemStyle","height"]);N==null?N=x:(N=vn(N,c),o==="ascending"&&(N=-N));var I=w(A,p),P=w(z,p+N);p+=N+M,r.setItemLayout(A,{points:I.concat(P.slice().reverse())})}}Hhr(r)})}function Ghr(e){e.registerChartView(Whr),e.registerSeriesModel(qhr),e.registerLayout(Vhr),e.registerProcessor(KB("funnel"))}var $hr=.3,Uhr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Ir,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(n,r,i,o){this._progressiveEls=null;var a=this._dataGroup,s=n.getData(),l=this._data,c=n.coordinateSystem,u=c.dimensions,d=CBe(n);s.diff(l).add(p).update(h).remove(g).execute();function p(v){var y=MBe(s,a,v,u,c);Ese(y,s,v,d)}function h(v,y){var M=l.getItemGraphicEl(y),C=syt(s,v,u,c);s.setItemGraphicEl(v,M),So(M,{shape:{points:C}},n,v),Om(M),Ese(M,s,v,d)}function g(v){var y=l.getItemGraphicEl(v);a.remove(y)}if(!this._initialized){this._initialized=!0;var m=Xhr(c,n,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(m)}this._data=s},t.prototype.incrementalPrepareRender=function(n,r,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(n,r,i){for(var o=r.getData(),a=r.coordinateSystem,s=a.dimensions,l=CBe(r),c=this._progressiveEls=[],u=n.start;u<n.end;u++){var d=MBe(o,this._dataGroup,u,s,a);d.incremental=!0,Ese(d,o,u,l),c.push(d)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t})(da);function Xhr(e,t,n){var r=e.model,i=e.getRect(),o=new ao({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a=r.get("layout")==="horizontal"?"width":"height";return o.setShape(a,0),vs(o,{shape:{width:i.width,height:i.height}},t,n),o}function syt(e,t,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=e.get(e.mapDimension(a),t);Yhr(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function MBe(e,t,n,r,i){var o=syt(e,n,r,i),a=new R0({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function CBe(e){var t=e.get("smooth",!0);return t===!0&&(t=$hr),t=_b(t),TP(t)&&(t=0),{smooth:t}}function Ese(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),o=i.getModel("emphasis");Ad(e,i,"lineStyle"),al(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Yhr(e,t){return t==="category"?e==null:e==null||isNaN(e)}var Khr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.getInitialData=function(n,r){return n2(null,this,{useEncodeDefaulter:En(Qhr,null,this)})},t.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,i=this.getData(),o=[];return r.eachActiveState(i,function(a,s){n===a&&o.push(i.getRawIndex(s))}),o},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t})(Ra);function Qhr(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return ye(t.dimensions,function(r){var i=Zhr(r);n[r]=i}),n}}function Zhr(e){return+e.replace("dim","")}var Jhr=["lineStyle","opacity"],efr={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(i,o){n.eachActiveState(o,function(a,s){var l=r[a];if(a==="normal"&&o.hasItemOption){var c=o.getItemModel(s).get(Jhr,!0);c!=null&&(l=c)}var u=o.ensureUniqueItemVisual(s,"style");u.opacity=l},i.start,i.end)}}}};function tfr(e){nfr(e),rfr(e)}function nfr(e){if(!e.parallel){var t=!1;ye(e.series,function(n){n&&n.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function rfr(e){var t=Ta(e.parallelAxis);ye(t,function(n){if(xr(n)){var r=n.parallelIndex||0,i=Ta(e.parallel)[r];i&&i.parallelAxisDefault&&ei(n,i.parallelAxisDefault,!1)}})}var ifr=5,ofr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){this._model=n,this._api=i,this._handlers||(this._handlers={},ye(afr,function(o,a){i.getZr().on(a,this._handlers[a]=En(o,this))},this)),ck(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(n,r){bq(this,"_throttledDispatchExpand"),ye(this._handlers,function(i,o){r.getZr().off(o,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},t.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(Nt({type:"parallelAxisExpand"},n))},t.type="parallel",t})(cs),afr={mousedown:function(e){Rse(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Rse(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>ifr)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Rse(this,"mousemove"))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function Rse(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var sfr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(n){var r=this.option;n&&ei(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var i=n.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(n){ye(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],i=ko(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);ye(i,function(o){n.push("dim"+o.get("dim")),r.push(o.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t})(Ri),lfr=(function(e){gt(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.type=o||"value",s.axisIndex=a,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t})(ng);function Y3(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(i!=null&&(i=QE(i,[0,a])),o!=null&&(o=Math.max(o,i??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=QE(s,[0,a]),i=o=QE(s,[i,o]),r=0}t[0]=QE(t[0],n),t[1]=QE(t[1],n);var l=Ise(t,r);t[r]+=e;var c=i||0,u=n.slice();l.sign<0?u[0]+=c:u[1]-=c,t[r]=QE(t[r],u);var d;return d=Ise(t,r),i!=null&&(d.sign!==l.sign||d.span<i)&&(t[1-r]=t[r]+l.sign*i),d=Ise(t,r),o!=null&&d.span>o&&(t[1-r]=t[r]+d.sign*o),t}function Ise(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function QE(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Pse=ye,lyt=Math.min,cyt=Math.max,xBe=Math.floor,cfr=Math.ceil,wBe=wl,ufr=Math.PI,dfr=(function(){function e(t,n,r){this.type="parallel",this._axesMap=Yn(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var i=t.dimensions,o=t.parallelAxisIndex;Pse(i,function(a,s){var l=o[s],c=n.getComponent("parallelAxis",l),u=this._axesMap.set(a,new lfr(a,GB(c),[0,0],c.get("type"),l)),d=u.type==="category";u.onBand=d&&c.get("boundaryGap"),u.inverse=c.get("inverse"),c.axis=u,u.model=c,u.coordinateSystem=c.coordinateSystem=this},this)},e.prototype.update=function(t,n){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var n=this._makeLayoutInfo(),r=n.axisBase,i=n.layoutBase,o=n.pixelDimIndex,a=t[1-o],s=t[o];return a>=r&&a<=r+n.axisLength&&s>=i&&s<=i+n.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,n){n.eachSeries(function(r){if(t.contains(r,n)){var i=r.getData();Pse(this.dimensions,function(o){var a=this._axesMap.get(o);a.scale.unionExtentFromData(i,i.mapDimension(o)),Qz(a.scale,a.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=Ic(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=t.get("layout"),a=o==="horizontal"?0:1,s=n[i[a]],l=[0,s],c=this.dimensions.length,u=LV(t.get("axisExpandWidth"),l),d=LV(t.get("axisExpandCount")||0,[0,c]),p=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,h=t.get("axisExpandWindow"),g;if(h)g=LV(h[1]-h[0],l),h[1]=h[0]+g;else{g=LV(u*(d-1),l);var m=t.get("axisExpandCenter")||xBe(c/2);h=[u*m-g/2],h[1]=h[0]+g}var v=(s-g)/(c-d);v<3&&(v=0);var y=[xBe(wBe(h[0]/u,1))+1,cfr(wBe(h[1]/u,1))-1],M=v/u*h[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:p,axisExpandWidth:u,axisCollapseWidth:v,axisExpandWindow:h,axisCount:c,winInnerIndices:y,axisExpandWindow0Pos:M}},e.prototype._layoutAxes=function(){var t=this._rect,n=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;n.each(function(a){var s=[0,i.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),Pse(r,function(a,s){var l=(i.axisExpandable?hfr:pfr)(s,i),c={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},u={horizontal:ufr/2,vertical:0},d=[c[o].x+t.x,c[o].y+t.y],p=u[o],h=gp();_w(h,h,p),Sm(h,h,d),this._axesLayout[a]={position:d,rotation:p,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,i){r==null&&(r=0),i==null&&(i=t.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];ye(a,function(v){s.push(t.mapDimension(v)),l.push(o.get(v).model)});for(var c=this.hasAxisBrushed(),u=r;u<i;u++){var d=void 0;if(!c)d="normal";else{d="active";for(var p=t.getValues(s,u),h=0,g=a.length;h<g;h++){var m=l[h].getActiveState(p[h]);if(m==="inactive"){d="inactive";break}}}n(d,u)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,n=this._axesMap,r=!1,i=0,o=t.length;i<o;i++)n.get(t[i]).model.getActiveState()!=="normal"&&(r=!0);return r},e.prototype.axisCoordToPoint=function(t,n){var r=this._axesLayout[n];return mm([t,0],r.transform)},e.prototype.getAxisLayout=function(t){return Or(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,i=n.axisExpandWindow.slice(),o=i[1]-i[0],a=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[r]-n.layoutBase-n.axisExpandWindow0Pos,l,c="slide",u=n.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),p=d[0]!=null;if(u)p&&u&&s<o*d[0]?(c="jump",l=s-o*d[2]):p&&u&&s>o*(1-d[0])?(c="jump",l=s-o*(1-d[2])):(l=s-o*d[1])>=0&&(l=s-o*(1-d[1]))<=0&&(l=0),l*=n.axisExpandWidth/u,l?Y3(l,i,a,"all"):c="none";else{var h=i[1]-i[0],g=a[1]*s/h;i=[cyt(0,g-h/2)],i[1]=lyt(a[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:c}},e})();function LV(e,t){return lyt(cyt(e,t[0]),t[1])}function pfr(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function hfr(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,o=t.axisCollapseWidth,a=t.winInnerIndices,s,l=o,c=!1,u;return e<a[0]?(s=e*o,u=o):e<=a[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],l=r,c=!0):(s=n-(i-1-e)*o,u=o),{position:s,axisNameAvailableWidth:l,axisLabelShow:c,nameTruncateMaxWidth:u}}function ffr(e,t){var n=[];return e.eachComponent("parallel",function(r,i){var o=new dfr(r,e,t);o.name="parallel_"+i,o.resize(r,t),r.coordinateSystem=o,o.model=r,n.push(o)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var i=r.getReferringComponents("parallel",wc).models[0];r.coordinateSystem=i.coordinateSystem}}),n}var gfr={create:ffr},wve=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return Xz([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=Or(n);if(r)for(var i=r.length-1;i>=0;i--)Jp(r[i])},t.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=n&&n<=i[1])return"active"}else for(var o=0,a=r.length;o<a;o++)if(r[o][0]<=n&&n<=r[o][1])return"active";return"inactive"},t})(Ri);jl(wve,hk);var Zz=!0,Rq=Math.min,NP=Math.max,mfr=Math.pow,vfr=1e4,bfr=6,yfr=6,SBe="globalPan",Mfr={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Cfr={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ABe={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},xfr=0,IAe=(function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new Ir,r._uid="brushController_"+xfr++,ye(Efr,function(i,o){this._handlers[o]=En(i,this)},r),r}return t.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},t.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||p1r(r,SBe,this._uid),ye(this._handlers,function(i,o){r.on(o,i)}),this._brushType=n.brushType,this._brushOption=ei(Or(ABe),n,!0)},t.prototype._doDisableBrush=function(){var n=this._zr;h1r(n,SBe,this._uid),ye(this._handlers,function(r,i){n.off(i,r)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};ye(n,function(i){r[i.panelId]=Or(i)})}else this._panels=null;return this},t.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},t.prototype.updateCovers=function(n){n=Vt(n,function(p){return ei(Or(ABe),p,!0)});var r="\0-brush-index-",i=this._covers,o=this._covers=[],a=this,s=this._creatingCover;return new oM(i,n,c,l).add(u).update(u).remove(d).execute(),this;function l(p,h){return(p.id!=null?p.id:r+h)+"-"+p.brushType}function c(p,h){return l(p.__brushOption,h)}function u(p,h){var g=n[p];if(h!=null&&i[h]===s)o[p]=i[h];else{var m=o[p]=h!=null?(i[h].__brushOption=g,i[h]):dyt(a,uyt(a,g));PAe(a,m)}}function d(p){i[p]!==s&&a.group.remove(i[p])}},t.prototype.unmount=function(){return this.enableBrush(!1),Sve(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t})(Zf);function uyt(e,t){var n=_J[t.brushType].createCover(e,t);return n.__brushOption=t,hyt(n,t),e.group.add(n),n}function dyt(e,t){var n=DAe(t);return n.endCreating&&(n.endCreating(e,t),hyt(t,t.__brushOption)),t}function pyt(e,t){var n=t.__brushOption;DAe(t).updateCoverShape(e,t,n.range,n)}function hyt(e,t){var n=t.z;n==null&&(n=vfr),e.traverse(function(r){r.z=n,r.z2=n})}function PAe(e,t){DAe(t).updateCommon(e,t),pyt(e,t)}function DAe(e){return _J[e.__brushOption.brushType]}function kAe(e,t,n){var r=e._panels;if(!r)return Zz;var i,o=e._transform;return ye(r,function(a){a.isTargetByCursor(t,n,o)&&(i=a)}),i}function fyt(e,t){var n=e._panels;if(!n)return Zz;var r=t.__brushOption.panelId;return r!=null?n[r]:Zz}function Sve(e){var t=e._covers,n=t.length;return ye(t,function(r){e.group.remove(r)},e),t.length=0,!!n}function Jz(e,t){var n=Vt(e._covers,function(r){var i=r.__brushOption,o=Or(i.range);return{brushType:i.brushType,panelId:i.panelId,range:o}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function wfr(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1],a=mfr(i*i+o*o,.5);return a>bfr}function gyt(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function myt(e,t,n,r){var i=new Ir;return i.add(new ao({name:"main",style:LAe(n),silent:!0,draggable:!0,cursor:"move",drift:Zr(OBe,e,t,i,["n","s","w","e"]),ondragend:Zr(Jz,t,{isEnd:!0})})),ye(r,function(o){i.add(new ao({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Zr(OBe,e,t,i,o),ondragend:Zr(Jz,t,{isEnd:!0})}))}),i}function vyt(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=NP(i,yfr),a=n[0][0],s=n[1][0],l=a-i/2,c=s-i/2,u=n[0][1],d=n[1][1],p=u-o+i/2,h=d-o+i/2,g=u-a,m=d-s,v=g+i,y=m+i;$2(e,t,"main",a,s,g,m),r.transformable&&($2(e,t,"w",l,c,o,y),$2(e,t,"e",p,c,o,y),$2(e,t,"n",l,c,v,o),$2(e,t,"s",l,h,v,o),$2(e,t,"nw",l,c,o,o),$2(e,t,"ne",p,c,o,o),$2(e,t,"sw",l,h,o,o),$2(e,t,"se",p,h,o,o))}function Ave(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(LAe(n)),i.attr({silent:!r,cursor:r?"move":"default"}),ye([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=t.childOfName(o.join("")),s=o.length===1?Ove(e,o[0]):Afr(e,o);a&&a.attr({silent:!r,invisible:!r,cursor:r?Cfr[s]+"-resize":null})})}function $2(e,t,n,r,i,o,a){var s=t.childOfName(n);s&&s.setShape(zfr(_Ae(e,t,[[r,i],[r+o,i+a]])))}function LAe(e){return br({strokeNoScale:!0},e.brushStyle)}function byt(e,t,n,r){var i=[Rq(e,n),Rq(t,r)],o=[NP(e,n),NP(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function Sfr(e){return Lx(e.group)}function Ove(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=fJ(n[t],Sfr(e));return r[i]}function Afr(e,t){var n=[Ove(e,t[0]),Ove(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function OBe(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=yyt(t,i,o);ye(r,function(c){var u=Mfr[c];s[u[0]][u[1]]+=l[u[0]]}),a.range=e.fromRectRange(byt(s[0][0],s[1][0],s[0][1],s[1][1])),PAe(t,n),Jz(t,{isEnd:!1})}function Ofr(e,t,n,r){var i=t.__brushOption.range,o=yyt(e,n,r);ye(i,function(a){a[0]+=o[0],a[1]+=o[1]}),PAe(e,t),Jz(e,{isEnd:!1})}function yyt(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function _Ae(e,t,n){var r=fyt(e,t);return r&&r!==Zz?r.clipPath(n,e._transform):Or(n)}function zfr(e){var t=Rq(e[0][0],e[1][0]),n=Rq(e[0][1],e[1][1]),r=NP(e[0][0],e[1][0]),i=NP(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function Tfr(e,t,n){if(!(!e._brushType||Rfr(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,o=kAe(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===Zz||s.panelId===o.panelId)&&_J[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function zve(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Tve(e,t,n){return e.childOfName("main").contain(t,n)}function Myt(e,t,n,r){var i=e._creatingCover,o=e._creatingPanel,a=e._brushOption,s;if(e._track.push(n.slice()),wfr(e)||i){if(o&&!i){a.brushMode==="single"&&Sve(e);var l=Or(a);l.brushType=zBe(l.brushType,o),l.panelId=o===Zz?null:o.panelId,i=e._creatingCover=uyt(e,l),e._covers.push(i)}if(i){var c=_J[zBe(e._brushType,o)],u=i.__brushOption;u.range=c.getCreatingRange(_Ae(e,i,e._track)),r&&(dyt(e,i),c.updateCommon(e,i)),pyt(e,i),s={isEnd:r}}}else r&&a.brushMode==="single"&&a.removeOnClick&&kAe(e,t,n)&&Sve(e)&&(s={isEnd:r,removeOnClick:!0});return s}function zBe(e,t){return e==="auto"?t.defaultBrushType:e}var Efr={mousedown:function(e){if(this._dragging)TBe(this,e);else if(!e.target||!e.target.draggable){zve(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=kAe(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(Tfr(this,e,r),this._dragging){zve(e);var i=Myt(this,e,r,!1);i&&Jz(this,i)}},mouseup:function(e){TBe(this,e)}};function TBe(e,t){if(e._dragging){zve(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),o=Myt(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&Jz(e,o)}}function Rfr(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var _J={lineX:EBe(0),lineY:EBe(1),rect:{createCover:function(e,t){function n(r){return r}return myt({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=gyt(e);return byt(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){vyt(e,t,n,r)},updateCommon:Ave,contain:Tve},polygon:{createCover:function(e,t){var n=new Ir;return n.add(new R0({name:"main",style:LAe(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new O0({name:"main",draggable:!0,drift:Zr(Ofr,e,t),ondragend:Zr(Jz,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:_Ae(e,t,n)})},updateCommon:Ave,contain:Tve}};function EBe(e){return{createCover:function(t,n){return myt({toRectRange:function(r){var i=[r,[0,100]];return e&&i.reverse(),i},fromRectRange:function(r){return r[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=gyt(t),r=Rq(n[0][e],n[1][e]),i=NP(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var o,a=fyt(t,n);if(a!==Zz&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),vyt(t,n,l,i)},updateCommon:Ave,contain:Tve}}function Cyt(e){return e=NAe(e),function(t){return wSe(t,e)}}function xyt(e,t){return e=NAe(e),function(n){var r=t??n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function wyt(e,t,n){var r=NAe(e);return function(i,o){return r.contain(o[0],o[1])&&!PJ(i,t,n)}}function NAe(e){return ui.create(e)}var Ifr=["axisLine","axisTickLabel","axisName"],Pfr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){e.prototype.init.apply(this,arguments),(this._brushController=new IAe(r.getZr())).on("brush",En(this._onBrush,this))},t.prototype.render=function(n,r,i,o){if(!Dfr(n,r,o)){this.axisModel=n,this.api=i,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Ir,this.group.add(this._axisGroup),!!n.get("show")){var s=Lfr(n,r),l=s.coordinateSystem,c=n.getAreaSelectStyle(),u=c.width,d=n.axis.dim,p=l.getAxisLayout(d),h=Nt({strokeContainThreshold:u},p),g=new u1(n,h);ye(Ifr,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(h,c,n,s,u,i),jB(a,this._axisGroup,n)}}},t.prototype._refreshBrushController=function(n,r,i,o,a,s){var l=i.axis.getExtent(),c=l[1]-l[0],u=Math.min(30,Math.abs(c)*.1),d=ui.create({x:l[0],y:-a/2,width:c,height:a});d.x-=u,d.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:Cyt(d),isTargetByCursor:wyt(d,s,o),getLinearBrushOtherExtent:xyt(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(kfr(i))},t.prototype._onBrush=function(n){var r=n.areas,i=this.axisModel,o=i.axis,a=Vt(r,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!i.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t})(cs);function Dfr(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function kfr(e){var t=e.axis;return Vt(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function Lfr(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var _fr={type:"axisAreaSelect",event:"axisAreaSelected"};function Nfr(e){e.registerAction(_fr,function(t,n){n.eachComponent({mainType:"parallelAxis",query:t},function(r){r.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,n){n.eachComponent({mainType:"parallel",query:t},function(r){r.setAxisExpand(t)})})}var Ffr={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Syt(e){e.registerComponentView(ofr),e.registerComponentModel(sfr),e.registerCoordinateSystem("parallel",gfr),e.registerPreprocessor(tfr),e.registerComponentModel(wve),e.registerComponentView(Pfr),_P(e,"parallel",wve,Ffr),Nfr(e)}function Wfr(e){Si(Syt),e.registerChartView(Uhr),e.registerSeriesModel(Khr),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,efr)}var qfr=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e})(),Bfr=(function(e){gt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new qfr},t.prototype.buildPath=function(n,r){var i=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+i,r.y2),n.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(n.lineTo(r.x2,r.y2+i),n.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),n.closePath()},t.prototype.highlight=function(){rM(this)},t.prototype.downplay=function(){iM(this)},t})(Di),jfr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return t.prototype.render=function(n,r,i){var o=this,a=n.getGraph(),s=this.group,l=n.layoutInfo,c=l.width,u=l.height,d=n.getData(),p=n.getData("edge"),h=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,a.eachEdge(function(g){var m=new Bfr,v=_r(m);v.dataIndex=g.dataIndex,v.seriesIndex=n.seriesIndex,v.dataType="edge";var y=g.getModel(),M=y.getModel("lineStyle"),C=M.get("curveness"),x=g.node1.getLayout(),w=g.node1.getModel(),S=w.get("localX"),A=w.get("localY"),z=g.node2.getLayout(),O=g.node2.getModel(),T=O.get("localX"),I=O.get("localY"),P=g.getLayout(),N,F,L,W,H,j,G,q;m.shape.extent=Math.max(1,P.dy),m.shape.orient=h,h==="vertical"?(N=(S!=null?S*c:x.x)+P.sy,F=(A!=null?A*u:x.y)+x.dy,L=(T!=null?T*c:z.x)+P.ty,W=I!=null?I*u:z.y,H=N,j=F*(1-C)+W*C,G=L,q=F*C+W*(1-C)):(N=(S!=null?S*c:x.x)+x.dx,F=(A!=null?A*u:x.y)+P.sy,L=T!=null?T*c:z.x,W=(I!=null?I*u:z.y)+P.ty,H=N*(1-C)+L*C,j=F,G=N*C+L*(1-C),q=W),m.setShape({x1:N,y1:F,x2:L,y2:W,cpx1:H,cpy1:j,cpx2:G,cpy2:q}),m.useStyle(M.getItemStyle()),RBe(m.style,h,g);var $=""+y.get("value"),U=Ru(y,"edgeLabel");Od(m,U,{labelFetcher:{getFormattedLabel:function(re,ee,se,pe,te,ce){return n.getFormattedLabel(re,ee,"edge",pe,hm(te,U.normal&&U.normal.get("formatter"),$),ce)}},labelDataIndex:g.dataIndex,defaultText:$}),m.setTextConfig({position:"inside"});var X=y.getModel("emphasis");Ad(m,y,"lineStyle",function(re){var ee=re.getItemStyle();return RBe(ee,h,g),ee}),s.add(m),p.setItemGraphicEl(g.dataIndex,m);var Q=X.get("focus");al(m,Q==="adjacency"?g.getAdjacentDataIndices():Q==="trajectory"?g.getTrajectoryDataIndices():Q,X.get("blurScope"),X.get("disabled"))}),a.eachNode(function(g){var m=g.getLayout(),v=g.getModel(),y=v.get("localX"),M=v.get("localY"),C=v.getModel("emphasis"),x=v.get(["itemStyle","borderRadius"])||0,w=new ao({shape:{x:y!=null?y*c:m.x,y:M!=null?M*u:m.y,width:m.dx,height:m.dy,r:x},style:v.getModel("itemStyle").getItemStyle(),z2:10});Od(w,Ru(v),{labelFetcher:{getFormattedLabel:function(A,z){return n.getFormattedLabel(A,z,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),w.disableLabelAnimation=!0,w.setStyle("fill",g.getVisual("color")),w.setStyle("decal",g.getVisual("style").decal),Ad(w,v),s.add(w),d.setItemGraphicEl(g.dataIndex,w),_r(w).dataType="node";var S=C.get("focus");al(w,S==="adjacency"?g.getAdjacentDataIndices():S==="trajectory"?g.getTrajectoryDataIndices():S,C.get("blurScope"),C.get("disabled"))}),d.eachItemGraphicEl(function(g,m){var v=d.getItemModel(m);v.get("draggable")&&(g.drift=function(y,M){o._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=M,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:d.getRawIndex(m),localX:this.shape.x/c,localY:this.shape.y/u})},g.ondragend=function(){o._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(Hfr(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t})(da);function RBe(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Sn(r)&&Sn(i)&&(e.fill=new ek(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function Hfr(e,t,n){var r=new ao({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return vs(r,{shape:{width:e.width+20}},t,n),r}var Vfr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){var i=n.edges||n.links||[],o=n.data||n.nodes||[],a=n.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<a.length;l++)a[l].depth!=null&&a[l].depth>=0&&(s[a[l].depth]=new _o(a[l],this,r));var c=ayt(o,i,this,!0,u);return c.data;function u(d,p){d.wrapMethod("getItemModel",function(h,g){var m=h.parentModel,v=m.getData().getItemLayout(g);if(v){var y=v.depth,M=m.levelModels[y];M&&(h.parentModel=M)}return h}),p.wrapMethod("getItemModel",function(h,g){var m=h.parentModel,v=m.getGraph().getEdgeByIndex(g),y=v.node1.getLayout();if(y){var M=y.depth,C=m.levelModels[M];C&&(h.parentModel=C)}return h})}},t.prototype.setNodePosition=function(n,r){var i=this.option.data||this.option.nodes,o=i[n];o.localX=r[0],o.localY=r[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,i){function o(h){return isNaN(h)||h==null}if(i==="edge"){var a=this.getDataParams(n,i),s=a.data,l=a.value,c=s.source+" -- "+s.target;return Iu("nameValue",{name:c,value:l,noValue:o(l)})}else{var u=this.getGraph().getNodeByIndex(n),d=u.getLayout().value,p=this.getDataParams(n,i).data.name;return Iu("nameValue",{name:p!=null?p+"":null,value:d,noValue:o(d)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(n,r){var i=e.prototype.getDataParams.call(this,n,r);if(i.value==null&&r==="node"){var o=this.getGraph().getNodeByIndex(n),a=o.getLayout().value;i.value=a}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t})(Ra);function Gfr(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),i=n.get("nodeGap"),o=$fr(n,t);n.layoutInfo=o;var a=o.width,s=o.height,l=n.getGraph(),c=l.nodes,u=l.edges;Xfr(c);var d=ko(c,function(m){return m.getLayout().value===0}),p=d.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),g=n.get("nodeAlign");Ufr(c,u,r,i,a,s,p,h,g)})}function $fr(e,t){return Ic(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ufr(e,t,n,r,i,o,a,s,l){Yfr(e,t,n,i,o,s,l),Jfr(e,t,o,i,r,a,s),lgr(e,s)}function Xfr(e){ye(e,function(t){var n=Fx(t.outEdges,WU),r=Fx(t.inEdges,WU),i=t.getValue()||0,o=Math.max(n,r,i);t.setLayout({value:o},!0)})}function Yfr(e,t,n,r,i,o,a){for(var s=[],l=[],c=[],u=[],d=0,p=0;p<t.length;p++)s[p]=1;for(var p=0;p<e.length;p++)l[p]=e[p].inEdges.length,l[p]===0&&c.push(e[p]);for(var h=-1;c.length;){for(var g=0;g<c.length;g++){var m=c[g],v=m.hostGraph.data.getRawDataItem(m.dataIndex),y=v.depth!=null&&v.depth>=0;y&&v.depth>h&&(h=v.depth),m.setLayout({depth:y?v.depth:d},!0),o==="vertical"?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var M=0;M<m.outEdges.length;M++){var C=m.outEdges[M],x=t.indexOf(C);s[x]=0;var w=C.node2,S=e.indexOf(w);--l[S]===0&&u.indexOf(w)<0&&u.push(w)}}++d,c=u,u=[]}for(var p=0;p<s.length;p++)if(s[p]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var A=h>d-1?h:d-1;a&&a!=="left"&&Kfr(e,a,o,A);var z=o==="vertical"?(i-n)/A:(r-n)/A;Zfr(e,z,o)}function Ayt(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function Kfr(e,t,n,r){if(t==="right"){for(var i=[],o=e,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];i.indexOf(u.node1)<0&&i.push(u.node1)}}o=i,i=[],++a}ye(e,function(d){Ayt(d)||d.setLayout({depth:Math.max(0,r-d.getLayout().skNodeHeight)},!0)})}else t==="justify"&&Qfr(e,r)}function Qfr(e,t){ye(e,function(n){!Ayt(n)&&!n.outEdges.length&&n.setLayout({depth:t},!0)})}function Zfr(e,t,n){ye(e,function(r){var i=r.getLayout().depth*t;n==="vertical"?r.setLayout({y:i},!0):r.setLayout({x:i},!0)})}function Jfr(e,t,n,r,i,o,a){var s=egr(e,a);tgr(s,t,n,r,i,a),Dse(s,i,n,r,a);for(var l=1;o>0;o--)l*=.99,ngr(s,l,a),Dse(s,i,n,r,a),sgr(s,l,a),Dse(s,i,n,r,a)}function egr(e,t){var n=[],r=t==="vertical"?"y":"x",i=Tme(e,function(o){return o.getLayout()[r]});return i.keys.sort(function(o,a){return o-a}),ye(i.keys,function(o){n.push(i.buckets.get(o))}),n}function tgr(e,t,n,r,i,o){var a=1/0;ye(e,function(s){var l=s.length,c=0;ye(s,function(d){c+=d.getLayout().value});var u=o==="vertical"?(r-(l-1)*i)/c:(n-(l-1)*i)/c;u<a&&(a=u)}),ye(e,function(s){ye(s,function(l,c){var u=l.getLayout().value*a;o==="vertical"?(l.setLayout({x:c},!0),l.setLayout({dx:u},!0)):(l.setLayout({y:c},!0),l.setLayout({dy:u},!0))})}),ye(t,function(s){var l=+s.getValue()*a;s.setLayout({dy:l},!0)})}function Dse(e,t,n,r,i){var o=i==="vertical"?"x":"y";ye(e,function(a){a.sort(function(m,v){return m.getLayout()[o]-v.getLayout()[o]});for(var s,l,c,u=0,d=a.length,p=i==="vertical"?"dx":"dy",h=0;h<d;h++)l=a[h],c=u-l.getLayout()[o],c>0&&(s=l.getLayout()[o]+c,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),u=l.getLayout()[o]+l.getLayout()[p]+t;var g=i==="vertical"?r:n;if(c=u-t-g,c>0){s=l.getLayout()[o]-c,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),u=s;for(var h=d-2;h>=0;--h)l=a[h],c=l.getLayout()[o]+l.getLayout()[p]+t-u,c>0&&(s=l.getLayout()[o]-c,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),u=l.getLayout()[o]}})}function ngr(e,t,n){ye(e.slice().reverse(),function(r){ye(r,function(i){if(i.outEdges.length){var o=Fx(i.outEdges,rgr,n)/Fx(i.outEdges,WU);if(isNaN(o)){var a=i.outEdges.length;o=a?Fx(i.outEdges,igr,n)/a:0}if(n==="vertical"){var s=i.getLayout().x+(o-sw(i,n))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-sw(i,n))*t;i.setLayout({y:l},!0)}}})})}function rgr(e,t){return sw(e.node2,t)*e.getValue()}function igr(e,t){return sw(e.node2,t)}function ogr(e,t){return sw(e.node1,t)*e.getValue()}function agr(e,t){return sw(e.node1,t)}function sw(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function WU(e){return e.getValue()}function Fx(e,t,n){for(var r=0,i=e.length,o=-1;++o<i;){var a=+t(e[o],n);isNaN(a)||(r+=a)}return r}function sgr(e,t,n){ye(e,function(r){ye(r,function(i){if(i.inEdges.length){var o=Fx(i.inEdges,ogr,n)/Fx(i.inEdges,WU);if(isNaN(o)){var a=i.inEdges.length;o=a?Fx(i.inEdges,agr,n)/a:0}if(n==="vertical"){var s=i.getLayout().x+(o-sw(i,n))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-sw(i,n))*t;i.setLayout({y:l},!0)}}})})}function lgr(e,t){var n=t==="vertical"?"x":"y";ye(e,function(r){r.outEdges.sort(function(i,o){return i.node2.getLayout()[n]-o.node2.getLayout()[n]}),r.inEdges.sort(function(i,o){return i.node1.getLayout()[n]-o.node1.getLayout()[n]})}),ye(e,function(r){var i=0,o=0;ye(r.outEdges,function(a){a.setLayout({sy:i},!0),i+=a.getLayout().dy}),ye(r.inEdges,function(a){a.setLayout({ty:o},!0),o+=a.getLayout().dy})})}function cgr(e){e.eachSeriesByType("sankey",function(t){var n=t.getGraph(),r=n.nodes,i=n.edges;if(r.length){var o=1/0,a=-1/0;ye(r,function(s){var l=s.getLayout().value;l<o&&(o=l),l>a&&(a=l)}),ye(r,function(s){var l=new Su({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:t.get("color")}),c=l.mapValueToVisual(s.getLayout().value),u=s.getModel().get(["itemStyle","color"]);u!=null?(s.setVisual("color",u),s.setVisual("style",{fill:u})):(s.setVisual("color",c),s.setVisual("style",{fill:c}))})}i.length&&ye(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function ugr(e){e.registerChartView(jfr),e.registerSeriesModel(Vfr),e.registerLayout(Gfr),e.registerVisual(cgr),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"sankey",query:t},function(r){r.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var Oyt=(function(){function e(){}return e.prototype._hasEncodeRule=function(t){var n=this.getEncode();return n&&n.get(t)!=null},e.prototype.getInitialData=function(t,n){var r,i=n.getComponent("xAxis",this.get("xAxisIndex")),o=n.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type"),l;a==="category"?(t.layout="horizontal",r=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",r=o.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var c=["x","y"],u=t.layout==="horizontal"?0:1,d=this._baseAxisDim=c[u],p=c[1-u],h=[i,o],g=h[u].get("type"),m=h[1-u].get("type"),v=t.data;if(v&&l){var y=[];ye(v,function(x,w){var S;Ht(x)?(S=x.slice(),x.unshift(w)):Ht(x.value)?(S=Nt({},x),S.value=S.value.slice(),x.value.unshift(w)):S=x,y.push(S)}),t.data=y}var M=this.defaultValueDimensions,C=[{name:d,type:TU(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:TU(m),dimsDef:M.slice()}];return fk(this,{coordDimensions:C,dimensionsCount:M.length+1,encodeDefaulter:Zr(evt,C,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e})(),zyt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t})(Ra);jl(zyt,Oyt,!0);var dgr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=n.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=n.get("layout")==="horizontal"?1:0;o.diff(s).add(function(c){if(o.hasValue(c)){var u=o.getItemLayout(c),d=IBe(u,o,c,l,!0);o.setItemGraphicEl(c,d),a.add(d)}}).update(function(c,u){var d=s.getItemGraphicEl(u);if(!o.hasValue(c)){a.remove(d);return}var p=o.getItemLayout(c);d?(Om(d),Tyt(p,d,o,c)):d=IBe(p,o,c,l),a.add(d),o.setItemGraphicEl(c,d)}).remove(function(c){var u=s.getItemGraphicEl(c);u&&a.remove(u)}).execute(),this._data=o},t.prototype.remove=function(n){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(o){o&&r.remove(o)})},t.type="boxplot",t})(da),pgr=(function(){function e(){}return e})(),hgr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new pgr},t.prototype.buildPath=function(n,r){var i=r.points,o=0;for(n.moveTo(i[o][0],i[o][1]),o++;o<4;o++)n.lineTo(i[o][0],i[o][1]);for(n.closePath();o<i.length;o++)n.moveTo(i[o][0],i[o][1]),o++,n.lineTo(i[o][0],i[o][1])},t})(Di);function IBe(e,t,n,r,i){var o=e.ends,a=new hgr({shape:{points:i?fgr(o,r,e):o}});return Tyt(e,a,t,n,i),a}function Tyt(e,t,n,r,i){var o=n.hostModel,a=V3[i?"initProps":"updateProps"];a(t,{shape:{points:e.ends}},o,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");Ad(t,s),al(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function fgr(e,t,n){return Vt(e,function(r){return r=r.slice(),r[t]=n.initBaseline,r})}var DF=ye;function ggr(e){var t=mgr(e);DF(t,function(n){var r=n.seriesModels;r.length&&(vgr(n),DF(r,function(i,o){bgr(i,n.boxOffsetList[o],n.boxWidthList[o])}))})}function mgr(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),o=hi(n,i);o<0&&(o=n.length,n[o]=i,t[o]={axis:i,seriesModels:[]}),t[o].seriesModels.push(r)}),t}function vgr(e){var t=e.axis,n=e.seriesModels,r=n.length,i=e.boxWidthList=[],o=e.boxOffsetList=[],a=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;DF(n,function(g){l=Math.max(l,g.getData().count())});var c=t.getExtent();s=Math.abs(c[1]-c[0])/l}DF(n,function(g){var m=g.get("boxWidth");Ht(m)||(m=[m,m]),a.push([vn(m[0],s)||0,vn(m[1],s)||0])});var u=s*.8-2,d=u/r*.3,p=(u-d*(r-1))/r,h=p/2-u/2;DF(n,function(g,m){o.push(h),h+=d+p,i.push(Math.min(Math.max(p,a[m][0]),a[m][1]))})}function bgr(e,t,n){var r=e.coordinateSystem,i=e.getData(),o=n/2,a=e.get("layout")==="horizontal"?0:1,s=1-a,l=["x","y"],c=i.mapDimension(l[a]),u=i.mapDimensionsAll(l[s]);if(c==null||u.length<5)return;for(var d=0;d<i.count();d++){var p=i.get(c,d),h=C(p,u[2],d),g=C(p,u[0],d),m=C(p,u[1],d),v=C(p,u[3],d),y=C(p,u[4],d),M=[];x(M,m,!1),x(M,v,!0),M.push(g,m,y,v),w(M,g),w(M,y),w(M,h),i.setItemLayout(d,{initBaseline:h[s],ends:M})}function C(S,A,z){var O=i.get(A,z),T=[];T[a]=S,T[s]=O;var I;return isNaN(S)||isNaN(O)?I=[NaN,NaN]:(I=r.dataToPoint(T),I[a]+=t),I}function x(S,A,z){var O=A.slice(),T=A.slice();O[a]+=o,T[a]-=o,z?S.push(O,T):S.push(T,O)}function w(S,A){var z=A.slice(),O=A.slice();z[a]-=o,O[a]+=o,S.push(z,O)}}function ygr(e,t){t=t||{};for(var n=[],r=[],i=t.boundIQR,o=i==="none"||i===0,a=0;a<e.length;a++){var s=Jp(e[a].slice()),l=L7(s,.25),c=L7(s,.5),u=L7(s,.75),d=s[0],p=s[s.length-1],h=(i??1.5)*(u-l),g=o?d:Math.max(d,l-h),m=o?p:Math.min(p,u+h),v=t.itemNameFormatter,y=fr(v)?v({value:a}):Sn(v)?v.replace("{value}",a+""):a+"";n.push([y,g,l,c,u,m]);for(var M=0;M<s.length;M++){var C=s[M];if(C<g||C>m){var x=[y,C];r.push(x)}}}return{boxData:n,outliers:r}}var Mgr={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==z0){var r="";Ko(r)}var i=ygr(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Cgr(e){e.registerSeriesModel(zyt),e.registerChartView(dgr),e.registerLayout(ggr),e.registerTransform(Mgr)}var xgr=["itemStyle","borderColor"],wgr=["itemStyle","borderColor0"],Sgr=["itemStyle","borderColorDoji"],Agr=["itemStyle","color"],Ogr=["itemStyle","color0"];function FAe(e,t){return t.get(e>0?Agr:Ogr)}function WAe(e,t){return t.get(e===0?Sgr:e>0?xgr:wgr)}var zgr={seriesType:"candlestick",plan:lk(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var n=e.pipelineContext.large;return!n&&{progress:function(r,i){for(var o;(o=r.next())!=null;){var a=i.getItemModel(o),s=i.getItemLayout(o).sign,l=a.getItemStyle();l.fill=FAe(s,a),l.stroke=WAe(s,a)||l.fill;var c=i.ensureUniqueItemVisual(o,"style");Nt(c,l)}}}}}},Tgr=["color","borderColor"],Egr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,r,i){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,r,i,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},t.prototype.eachRendered=function(n){Nw(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n){var r=n.getData(),i=this._data,o=this.group,a=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,c=l.getArea&&l.getArea();this._data||o.removeAll(),r.diff(i).add(function(u){if(r.hasValue(u)){var d=r.getItemLayout(u);if(s&&PBe(c,d))return;var p=kse(d,u,!0);vs(p,{shape:{points:d.ends}},n,u),Lse(p,r,u,a),o.add(p),r.setItemGraphicEl(u,p)}}).update(function(u,d){var p=i.getItemGraphicEl(d);if(!r.hasValue(u)){o.remove(p);return}var h=r.getItemLayout(u);if(s&&PBe(c,h)){o.remove(p);return}p?(So(p,{shape:{points:h.ends}},n,u),Om(p)):p=kse(h),Lse(p,r,u,a),o.add(p),r.setItemGraphicEl(u,p)}).remove(function(u){var d=i.getItemGraphicEl(u);d&&o.remove(d)}).execute(),this._data=r},t.prototype._renderLarge=function(n){this._clear(),DBe(n,this.group);var r=n.get("clip",!0)?XB(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,r){for(var i=r.getData(),o=i.getLayout("isSimpleBox"),a;(a=n.next())!=null;){var s=i.getItemLayout(a),l=kse(s);Lse(l,i,a,o),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){DBe(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(da),Rgr=(function(){function e(){}return e})(),Igr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Rgr},t.prototype.buildPath=function(n,r){var i=r.points;this.__simpleBox?(n.moveTo(i[4][0],i[4][1]),n.lineTo(i[6][0],i[6][1])):(n.moveTo(i[0][0],i[0][1]),n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]),n.lineTo(i[3][0],i[3][1]),n.closePath(),n.moveTo(i[4][0],i[4][1]),n.lineTo(i[5][0],i[5][1]),n.moveTo(i[6][0],i[6][1]),n.lineTo(i[7][0],i[7][1]))},t})(Di);function kse(e,t,n){var r=e.ends;return new Igr({shape:{points:n?Pgr(r,e):r},z2:100})}function PBe(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function Lse(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Ad(e,i);var o=t.getItemLayout(n).sign;ye(e.states,function(s,l){var c=i.getModel(l),u=FAe(o,c),d=WAe(o,c)||u,p=s.style||(s.style={});u&&(p.fill=u),d&&(p.stroke=d)});var a=i.getModel("emphasis");al(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function Pgr(e,t){return Vt(e,function(n){return n=n.slice(),n[1]=t.initBaseline,n})}var Dgr=(function(){function e(){}return e})(),_se=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Dgr},t.prototype.buildPath=function(n,r){for(var i=r.points,o=0;o<i.length;)if(this.__sign===i[o++]){var a=i[o++];n.moveTo(a,i[o++]),n.lineTo(a,i[o++])}else o+=3},t})(Di);function DBe(e,t,n,r){var i=e.getData(),o=i.getLayout("largePoints"),a=new _se({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new _se({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new _se({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),Nse(1,a,e),Nse(-1,s,e),Nse(0,l,e),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Nse(e,t,n,r){var i=WAe(e,n)||FAe(e,n),o=n.getModel("itemStyle").getItemStyle(Tgr);t.useStyle(o),t.style.fill=null,t.style.stroke=i}var Eyt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,r,i){var o=r.getItemLayout(n);return o&&i.rect(o.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t})(Ra);jl(Eyt,Oyt,!0);function kgr(e){!e||!Ht(e.series)||ye(e.series,function(t){xr(t)&&t.type==="k"&&(t.type="candlestick")})}var Lgr={seriesType:"candlestick",plan:lk(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=_gr(e,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=Vt(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),c=l[0],u=l[1],d=l[2],p=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?g:h};function h(m,v){for(var y,M=v.getStore();(y=m.next())!=null;){var C=M.get(s,y),x=M.get(c,y),w=M.get(u,y),S=M.get(d,y),A=M.get(p,y),z=Math.min(x,w),O=Math.max(x,w),T=H(z,C),I=H(O,C),P=H(S,C),N=H(A,C),F=[];j(F,I,0),j(F,T,1),F.push(q(N),q(I),q(P),q(T));var L=v.getItemModel(y),W=!!L.get(["itemStyle","borderColorDoji"]);v.setItemLayout(y,{sign:kBe(M,y,x,w,u,W),initBaseline:x>w?I[o]:T[o],ends:F,brushRect:G(S,A,C)})}function H($,U){var X=[];return X[i]=U,X[o]=$,isNaN(U)||isNaN($)?[NaN,NaN]:t.dataToPoint(X)}function j($,U,X){var Q=U.slice(),re=U.slice();Q[i]=F7(Q[i]+r/2,1,!1),re[i]=F7(re[i]-r/2,1,!0),X?$.push(Q,re):$.push(re,Q)}function G($,U,X){var Q=H($,X),re=H(U,X);return Q[i]-=r/2,re[i]-=r/2,{x:Q[0],y:Q[1],width:r,height:re[1]-Q[1]}}function q($){return $[i]=F7($[i],1),$}}function g(m,v){for(var y=tb(m.count*4),M=0,C,x=[],w=[],S,A=v.getStore(),z=!!e.get(["itemStyle","borderColorDoji"]);(S=m.next())!=null;){var O=A.get(s,S),T=A.get(c,S),I=A.get(u,S),P=A.get(d,S),N=A.get(p,S);if(isNaN(O)||isNaN(P)||isNaN(N)){y[M++]=NaN,M+=3;continue}y[M++]=kBe(A,S,T,I,u,z),x[i]=O,x[o]=P,C=t.dataToPoint(x,null,w),y[M++]=C?C[0]:NaN,y[M++]=C?C[1]:NaN,x[o]=N,C=t.dataToPoint(x,null,w),y[M++]=C?C[1]:NaN}v.setLayout("largePoints",y)}}};function kBe(e,t,n,r,i,o){var a;return n>r?a=-1:n<r?a=1:a=o?0:t>0?e.get(i,t-1)<=r?1:-1:1,a}function _gr(e,t){var n=e.getBaseAxis(),r,i=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),o=vn(Xr(e.get("barMaxWidth"),i),i),a=vn(Xr(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?vn(s,i):Math.max(Math.min(i/2,o),a)}function Ngr(e){e.registerChartView(Egr),e.registerSeriesModel(Eyt),e.registerPreprocessor(kgr),e.registerVisual(zgr),e.registerLayout(Lgr)}function LBe(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?n:null,fill:t.brushType==="fill"?n:null}})})}var Fgr=(function(e){gt(t,e);function t(n,r){var i=e.call(this)||this,o=new $B(n,r),a=new Ir;return i.add(o),i.add(a),i.updateData(n,r),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,i=n.color,o=n.rippleNumber,a=this.childAt(1),s=0;s<o;s++){var l=rc(r,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var c=-s/o*n.period+n.effectOffset;l.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(c).start(),l.animateStyle(!0).when(n.period,{opacity:0}).delay(c).start(),a.add(l)}LBe(a,n)},t.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,i=this.childAt(1),o=["symbolType","period","rippleScale","rippleNumber"],a=0;a<o.length;a++){var s=o[a];if(r[s]!==n[s]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}LBe(i,n)},t.prototype.highlight=function(){rM(this)},t.prototype.downplay=function(){iM(this)},t.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},t.prototype.updateData=function(n,r){var i=this,o=n.hostModel;this.childAt(0).updateData(n,r);var a=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),c=uk(n.getItemVisual(r,"symbolSize")),u=n.getItemVisual(r,"style"),d=u&&u.fill,p=s.getModel("emphasis");a.setScale(c),a.traverse(function(v){v.setStyle("fill",d)});var h=$3(n.getItemVisual(r,"symbolOffset"),c);h&&(a.x=h[0],a.y=h[1]);var g=n.getItemVisual(r,"symbolRotate");a.rotation=(g||0)*Math.PI/180||0;var m={};m.showEffectOn=o.get("showEffectOn"),m.rippleScale=s.get(["rippleEffect","scale"]),m.brushType=s.get(["rippleEffect","brushType"]),m.period=s.get(["rippleEffect","period"])*1e3,m.effectOffset=r/n.count(),m.z=o.getShallow("z")||0,m.zlevel=o.getShallow("zlevel")||0,m.symbolType=l,m.color=d,m.rippleEffectColor=s.get(["rippleEffect","color"]),m.rippleNumber=s.get(["rippleEffect","number"]),m.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(m):this.startEffectAnimation(m),this._effectCfg=m):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(v){v==="emphasis"?m.showEffectOn!=="render"&&i.startEffectAnimation(m):v==="normal"&&m.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=m,al(this,p.get("focus"),p.get("blurScope"),p.get("disabled"))},t.prototype.fadeOut=function(n){n&&n()},t})(Ir),Wgr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new UB(Fgr)},t.prototype.render=function(n,r,i){var o=n.getData(),a=this._symbolDraw;a.updateData(o,{clipShape:this._getClipShape(n)}),this.group.add(a.group)},t.prototype._getClipShape=function(n){var r=n.coordinateSystem,i=r&&r.getArea&&r.getArea();return n.get("clip",!0)?i:null},t.prototype.updateTransform=function(n,r,i){var o=n.getData();this.group.dirty();var a=YB("").reset(n,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=pgt(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t})(da),qgr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return n2(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(n,r,i){return i.point(r.getItemLayout(n))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t})(Ra);function Bgr(e){e.registerChartView(Wgr),e.registerSeriesModel(qgr),e.registerLayout(YB("effectScatter"))}var Ryt=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this)||this;return o.add(o.createLine(n,r,i)),o._updateEffectSymbol(n,r),o}return t.prototype.createLine=function(n,r,i){return new EAe(n,r,i)},t.prototype._updateEffectSymbol=function(n,r){var i=n.getItemModel(r),o=i.getModel("effect"),a=o.get("symbolSize"),s=o.get("symbol");Ht(a)||(a=[a,a]);var l=n.getItemVisual(r,"style"),c=o.get("color")||l&&l.stroke,u=this.childAt(1);this._symbolType!==s&&(this.remove(u),u=rc(s,-.5,-.5,1,1,c),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",c),u.setStyle(o.getItemStyle(["color"])),u.scaleX=a[0],u.scaleY=a[1],u.setColor(c),this._symbolType=s,this._symbolScale=a,this._updateEffectAnimation(n,o,r))},t.prototype._updateEffectAnimation=function(n,r,i){var o=this.childAt(1);if(o){var a=n.getItemLayout(i),s=r.get("period")*1e3,l=r.get("loop"),c=r.get("roundTrip"),u=r.get("constantSpeed"),d=xu(r.get("delay"),function(h){return h/n.count()*s/3});if(o.ignore=!0,this._updateAnimationPoints(o,a),u>0&&(s=this._getLineLength(o)/u*1e3),s!==this._period||l!==this._loop||c!==this._roundTrip){o.stopAnimation();var p=void 0;fr(d)?p=d(i):p=d,o.__t>0&&(p=-s*o.__t),this._animateSymbol(o,s,p,l,c)}this._period=s,this._loop=l,this._roundTrip=c}},t.prototype._animateSymbol=function(n,r,i,o,a){if(r>0){n.__t=0;var s=this,l=n.animate("",o).when(a?r*2:r,{__t:a?2:1}).delay(i).during(function(){s._updateSymbolPosition(n)});o||l.done(function(){s.remove(n)}),l.start()}},t.prototype._getLineLength=function(n){return Cy(n.__p1,n.__cp1)+Cy(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(n,r,i){this.childAt(0).updateData(n,r,i),this._updateEffectSymbol(n,r)},t.prototype._updateSymbolPosition=function(n){var r=n.__p1,i=n.__p2,o=n.__cp1,a=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),c=Vu,u=pme;s[0]=c(r[0],o[0],i[0],a),s[1]=c(r[1],o[1],i[1],a);var d=n.__t<1?u(r[0],o[0],i[0],a):u(i[0],o[0],r[0],1-a),p=n.__t<1?u(r[1],o[1],i[1],a):u(i[1],o[1],r[1],1-a);n.rotation=-Math.atan2(p,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=Cy(l,s)*1.05,a===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):n.__lastT===1?n.scaleY=2*Cy(r,s):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=s[0],n.y=s[1]},t.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var i=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,i,r)},t})(Ir),Iyt=(function(e){gt(t,e);function t(n,r,i){var o=e.call(this)||this;return o._createPolyline(n,r,i),o}return t.prototype._createPolyline=function(n,r,i){var o=n.getItemLayout(r),a=new R0({shape:{points:o}});this.add(a),this._updateCommonStl(n,r,i)},t.prototype.updateData=function(n,r,i){var o=n.hostModel,a=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};So(a,s,o,r),this._updateCommonStl(n,r,i)},t.prototype._updateCommonStl=function(n,r,i){var o=this.childAt(0),a=n.getItemModel(r),s=i&&i.emphasisLineStyle,l=i&&i.focus,c=i&&i.blurScope,u=i&&i.emphasisDisabled;if(!i||n.hasItemOption){var d=a.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),u=d.get("disabled"),l=d.get("focus"),c=d.get("blurScope")}o.useStyle(n.getItemVisual(r,"style")),o.style.fill=null,o.style.strokeNoScale=!0;var p=o.ensureState("emphasis");p.style=s,al(this,l,c,u)},t.prototype.updateLayout=function(n,r){var i=this.childAt(0);i.setShape("points",n.getItemLayout(r))},t})(Ir),jgr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return t.prototype.createLine=function(n,r,i){return new Iyt(n,r,i)},t.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var i=[0],o=0,a=1;a<r.length;a++){var s=r[a-1],l=r[a];o+=Cy(s,l),i.push(o)}if(o===0){this._length=0;return}for(var a=0;a<i.length;a++)i[a]/=o;this._offsets=i,this._length=o},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,i=this._points,o=this._offsets,a=i.length;if(o){var s=this._lastFrame,l;if(r<this._lastFramePercent){var c=Math.min(s+1,a-1);for(l=c;l>=0&&!(o[l]<=r);l--);l=Math.min(l,a-2)}else{for(l=s;l<a&&!(o[l]>r);l++);l=Math.min(l-1,a-2)}var u=(r-o[l])/(o[l+1]-o[l]),d=i[l],p=i[l+1];n.x=d[0]*(1-u)+u*p[0],n.y=d[1]*(1-u)+u*p[1];var h=n.__t<1?p[0]-d[0]:d[0]-p[0],g=n.__t<1?p[1]-d[1]:d[1]-p[1];n.rotation=-Math.atan2(g,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t})(Ryt),Hgr=(function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e})(),Vgr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Hgr},t.prototype.buildPath=function(n,r){var i=r.segs,o=r.curveness,a;if(r.polyline)for(a=this._off;a<i.length;){var s=i[a++];if(s>0){n.moveTo(i[a++],i[a++]);for(var l=1;l<s;l++)n.lineTo(i[a++],i[a++])}}else for(a=this._off;a<i.length;){var c=i[a++],u=i[a++],d=i[a++],p=i[a++];if(n.moveTo(c,u),o>0){var h=(c+d)/2-(u-p)*o,g=(u+p)/2-(d-c)*o;n.quadraticCurveTo(h,g,d,p)}else n.lineTo(d,p)}this.incremental&&(this._off=a,this.notClear=!0)},t.prototype.findDataIndex=function(n,r){var i=this.shape,o=i.segs,a=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,c=0;c<o.length;){var u=o[c++];if(u>0)for(var d=o[c++],p=o[c++],h=1;h<u;h++){var g=o[c++],m=o[c++];if(NC(d,p,g,m,s,n,r))return l}l++}else for(var l=0,c=0;c<o.length;){var d=o[c++],p=o[c++],g=o[c++],m=o[c++];if(a>0){var v=(d+g)/2-(p-m)*a,y=(p+m)/2-(g-d)*a;if(rmt(d,p,v,y,g,m,s,n,r))return l}else if(NC(d,p,g,m,s,n,r))return l;l++}return-1},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=i[0],r=i[1],o.contain(n,r)){var a=this.hoverDataIdx=this.findDataIndex(n,r);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.segs,o=1/0,a=1/0,s=-1/0,l=-1/0,c=0;c<i.length;){var u=i[c++],d=i[c++];o=Math.min(u,o),s=Math.max(u,s),a=Math.min(d,a),l=Math.max(d,l)}n=this._rect=new ui(o,a,s,l)}return n},t})(Di),Ggr=(function(){function e(){this.group=new Ir}return e.prototype.updateData=function(t){this._clear();var n=this._create();n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,n){var r=this._newAdded[0],i=n.getLayout("linesPoints"),o=r&&r.shape.segs;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,n),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Vgr({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,n,r){var i=n.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var o=n.getVisual("style");o&&o.stroke&&t.setStyle("stroke",o.stroke),t.setStyle("fill",null);var a=_r(t);a.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){a.dataIndex=null;var l=t.hoverDataIdx;l>0&&(a.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e})(),Pyt={seriesType:"lines",plan:lk(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var c=0,u=i.start;u<i.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+c*2)}else s=new Float32Array(l*4);for(var d=0,p=[],u=i.start;u<i.end;u++){var h=e.getLineCoords(u,a);n&&(s[d++]=h);for(var g=0;g<h;g++)p=t.dataToPoint(a[g],!1,p),s[d++]=p[0],s[d++]=p[1]}o.setLayout("linesPoints",s)}else for(var u=i.start;u<i.end;u++){var m=o.getItemModel(u),h=e.getLineCoords(u,a),v=[];if(n)for(var y=0;y<h;y++)v.push(t.dataToPoint(a[y]));else{v[0]=t.dataToPoint(a[0]),v[1]=t.dataToPoint(a[1]);var M=m.get(["lineStyle","curveness"]);+M&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*M,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*M])}o.setItemLayout(u,v)}}}}}},$gr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=n.getData(),a=this._updateLineDraw(o,n),s=n.get("zlevel"),l=n.get(["effect","trailLength"]),c=i.getZr(),u=c.painter.getType()==="svg";u||c.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!u&&c.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&l>0&&(u||c.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),a.updateData(o);var d=n.get("clip",!0)&&XB(n.coordinateSystem,!1,n);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,i){var o=n.getData(),a=this._updateLineDraw(o,n);a.incrementalPrepareUpdate(o),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(n,r,i){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},t.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},t.prototype.updateTransform=function(n,r,i){var o=n.getData(),a=n.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var s=Pyt.reset(n,r,i);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(n,r){var i=this._lineDraw,o=this._showEffect(r),a=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!i||o!==this._hasEffet||a!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new Ggr:new RAe(a?o?jgr:Iyt:o?Ryt:EAe),this._hasEffet=o,this._isPolyline=a,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var r=n.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.type="lines",t})(da),Ugr=typeof Uint32Array>"u"?Array:Uint32Array,Xgr=typeof Float64Array>"u"?Array:Float64Array;function _Be(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Vt(t,function(n){var r=[n[0].coord,n[1].coord],i={coords:r};return n[0].name&&(i.fromName=n[0].name),n[1].name&&(i.toName=n[1].name),QZ([i,n[0],n[1]])}))}var Ygr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.init=function(n){n.data=n.data||[],_Be(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(n){if(_Be(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=EP(this._flatCoords,r.flatCoords),this._flatCoordsOffset=EP(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),i=r.option instanceof Array?r.option:r.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[n*2],o=this._flatCoordsOffset[n*2+1],a=0;a<o;a++)r[a]=r[a]||[],r[a][0]=this._flatCoords[i+a*2],r[a][1]=this._flatCoords[i+a*2+1];return o}else{for(var s=this._getCoordsFromItemModel(n),a=0;a<s.length;a++)r[a]=r[a]||[],r[a][0]=s[a][0],r[a][1]=s[a][1];return s.length}},t.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),yo(n[0])){for(var i=n.length,o=new Ugr(i),a=new Xgr(i),s=0,l=0,c=0,u=0;u<i;){c++;var d=n[u++];o[l++]=s+r,o[l++]=d;for(var p=0;p<d;p++){var h=n[u++],g=n[u++];a[s++]=h,a[s++]=g}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,l),flatCoords:a,count:c}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},t.prototype.getInitialData=function(n,r){var i=new y0(["value"],this);return i.hasItemOption=!1,i.initData(n.data,[],function(o,a,s,l){if(o instanceof Array)return NaN;i.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[l]:c}),i},t.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=o.getItemModel(n),s=a.get("name");if(s)return s;var l=a.get("fromName"),c=a.get("toName"),u=[];return l!=null&&u.push(l),c!=null&&u.push(c),Iu("nameValue",{name:u.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t})(Ra);function _V(e){return e instanceof Array||(e=[e,e]),e}var Kgr={seriesType:"lines",reset:function(e){var t=_V(e.get("symbol")),n=_V(e.get("symbolSize")),r=e.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function i(o,a){var s=o.getItemModel(a),l=_V(s.getShallow("symbol",!0)),c=_V(s.getShallow("symbolSize",!0));l[0]&&o.setItemVisual(a,"fromSymbol",l[0]),l[1]&&o.setItemVisual(a,"toSymbol",l[1]),c[0]&&o.setItemVisual(a,"fromSymbolSize",c[0]),c[1]&&o.setItemVisual(a,"toSymbolSize",c[1])}return{dataEach:r.hasItemOption?i:null}}};function Qgr(e){e.registerChartView($gr),e.registerSeriesModel(Ygr),e.registerLayout(Pyt),e.registerVisual(Kgr)}var Zgr=256,Jgr=(function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=wm.createCanvas();this.canvas=t}return e.prototype.update=function(t,n,r,i,o,a){var s=this._getBrush(),l=this._getGradient(o,"inRange"),c=this._getGradient(o,"outOfRange"),u=this.pointSize+this.blurSize,d=this.canvas,p=d.getContext("2d"),h=t.length;d.width=n,d.height=r;for(var g=0;g<h;++g){var m=t[g],v=m[0],y=m[1],M=m[2],C=i(M);p.globalAlpha=C,p.drawImage(s,v-u,y-u)}if(!d.width||!d.height)return d;for(var x=p.getImageData(0,0,d.width,d.height),w=x.data,S=0,A=w.length,z=this.minOpacity,O=this.maxOpacity,T=O-z;S<A;){var C=w[S+3]/256,I=Math.floor(C*(Zgr-1))*4;if(C>0){var P=a(C)?l:c;C>0&&(C=C*T+z),w[S++]=P[I],w[S++]=P[I+1],w[S++]=P[I+2],w[S++]=P[I+3]*C*256}else S+=4}return p.putImageData(x,0,0),d},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=wm.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;t.width=r,t.height=r;var i=t.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-n,n,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,n){for(var r=this._gradientPixels,i=r[n]||(r[n]=new Uint8ClampedArray(256*4)),o=[0,0,0,0],a=0,s=0;s<256;s++)t[n](s/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i},e})();function emr(e,t,n){var r=e[1]-e[0];t=Vt(t,function(a){return{interval:[(a.interval[0]-e[0])/r,(a.interval[1]-e[0])/r]}});var i=t.length,o=0;return function(a){var s;for(s=o;s<i;s++){var l=t[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}if(s===i)for(s=o-1;s>=0;s--){var l=t[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}return s>=0&&s<i&&n[s]}}function tmr(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(r){return r>=t[0]&&r<=t[1]}}function NBe(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var nmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(o=s)})}),this._progressiveEls=null,this.group.removeAll();var a=n.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"?this._renderOnCartesianAndCalendar(n,i,0,n.getData().count()):NBe(a)&&this._renderOnGeo(a,n,o,i)},t.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll()},t.prototype.incrementalRender=function(n,r,i,o){var a=r.coordinateSystem;a&&(NBe(a)?this.render(r,i,o):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,o,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){Nw(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,i,o,a){var s=n.coordinateSystem,l=U3(s,"cartesian2d"),c,u,d,p;if(l){var h=s.getAxis("x"),g=s.getAxis("y");c=h.getBandWidth()+.5,u=g.getBandWidth()+.5,d=h.scale.getExtent(),p=g.scale.getExtent()}for(var m=this.group,v=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),M=n.getModel(["blur","itemStyle"]).getItemStyle(),C=n.getModel(["select","itemStyle"]).getItemStyle(),x=n.get(["itemStyle","borderRadius"]),w=Ru(n),S=n.getModel("emphasis"),A=S.get("focus"),z=S.get("blurScope"),O=S.get("disabled"),T=l?[v.mapDimension("x"),v.mapDimension("y"),v.mapDimension("value")]:[v.mapDimension("time"),v.mapDimension("value")],I=i;I<o;I++){var P=void 0,N=v.getItemVisual(I,"style");if(l){var F=v.get(T[0],I),L=v.get(T[1],I);if(isNaN(v.get(T[2],I))||isNaN(F)||isNaN(L)||F<d[0]||F>d[1]||L<p[0]||L>p[1])continue;var W=s.dataToPoint([F,L]);P=new ao({shape:{x:W[0]-c/2,y:W[1]-u/2,width:c,height:u},style:N})}else{if(isNaN(v.get(T[1],I)))continue;P=new ao({z2:1,shape:s.dataToRect([v.get(T[0],I)]).contentShape,style:N})}if(v.hasItemOption){var H=v.getItemModel(I),j=H.getModel("emphasis");y=j.getModel("itemStyle").getItemStyle(),M=H.getModel(["blur","itemStyle"]).getItemStyle(),C=H.getModel(["select","itemStyle"]).getItemStyle(),x=H.get(["itemStyle","borderRadius"]),A=j.get("focus"),z=j.get("blurScope"),O=j.get("disabled"),w=Ru(H)}P.shape.r=x;var G=n.getRawValue(I),q="-";G&&G[2]!=null&&(q=G[2]+""),Od(P,w,{labelFetcher:n,labelDataIndex:I,defaultOpacity:N.opacity,defaultText:q}),P.ensureState("emphasis").style=y,P.ensureState("blur").style=M,P.ensureState("select").style=C,al(P,A,z,O),P.incremental=a,a&&(P.states.emphasis.hoverLayer=!0),m.add(P),v.setItemGraphicEl(I,P),this._progressiveEls&&this._progressiveEls.push(P)}},t.prototype._renderOnGeo=function(n,r,i,o){var a=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),c=this._hmLayer||this._hmLayer||new Jgr;c.blurSize=r.get("blurSize"),c.pointSize=r.get("pointSize"),c.minOpacity=r.get("minOpacity"),c.maxOpacity=r.get("maxOpacity");var u=n.getViewRect().clone(),d=n.getRoamTransform();u.applyTransform(d);var p=Math.max(u.x,0),h=Math.max(u.y,0),g=Math.min(u.width+u.x,o.getWidth()),m=Math.min(u.height+u.y,o.getHeight()),v=g-p,y=m-h,M=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],C=l.mapArray(M,function(A,z,O){var T=n.dataToPoint([A,z]);return T[0]-=p,T[1]-=h,T.push(O),T}),x=i.getExtent(),w=i.type==="visualMap.continuous"?tmr(x,i.option.range):emr(x,i.getPieceList(),i.option.selected);c.update(C,v,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var S=new Du({style:{width:v,height:y,x:p,y:h,image:c.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t})(da),rmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return n2(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=sk.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t})(Ra);function imr(e){e.registerChartView(nmr),e.registerSeriesModel(rmr)}var omr=["itemStyle","borderWidth"],FBe=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Fse=new e2,amr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=this.group,a=n.getData(),s=this._data,l=n.coordinateSystem,c=l.getBaseAxis(),u=c.isHorizontal(),d=l.master.getRect(),p={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:u,valueDim:FBe[+u],categoryDim:FBe[1-+u]};a.diff(s).add(function(g){if(a.hasValue(g)){var m=qBe(a,g),v=WBe(a,g,m,p),y=BBe(a,p,v);a.setItemGraphicEl(g,y),o.add(y),HBe(y,p,v)}}).update(function(g,m){var v=s.getItemGraphicEl(m);if(!a.hasValue(g)){o.remove(v);return}var y=qBe(a,g),M=WBe(a,g,y,p),C=Fyt(a,M);v&&C!==v.__pictorialShapeStr&&(o.remove(v),a.setItemGraphicEl(g,null),v=null),v?hmr(v,p,M):v=BBe(a,p,M,!0),a.setItemGraphicEl(g,v),v.__pictorialSymbolMeta=M,o.add(v),HBe(v,p,M)}).remove(function(g){var m=s.getItemGraphicEl(g);m&&jBe(s,g,m.__pictorialSymbolMeta.animationModel,m)}).execute();var h=n.get("clip",!0)?XB(n.coordinateSystem,!1,n):null;return h?o.setClipPath(h):o.removeClipPath(),this._data=a,this.group},t.prototype.remove=function(n,r){var i=this.group,o=this._data;n.get("animation")?o&&o.eachItemGraphicEl(function(a){jBe(o,_r(a).dataIndex,n,a)}):i.removeAll()},t.type="pictorialBar",t})(da);function WBe(e,t,n,r){var i=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),p={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};smr(n,o,i,r,p),lmr(e,t,i,o,a,p.boundingLength,p.pxSign,u,r,p),cmr(n,p.symbolScale,c,r,p);var h=p.symbolSize,g=$3(n.get("symbolOffset"),h);return umr(n,h,i,o,a,g,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,r,p),p}function smr(e,t,n,r,i){var o=r.valueDim,a=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),c=1-+(n[o.wh]<=0),u;if(Ht(a)){var d=[Wse(s,a[0])-l,Wse(s,a[1])-l];d[1]<d[0]&&d.reverse(),u=d[c]}else a!=null?u=Wse(s,a)-l:t?u=r.coordSysExtent[o.index][c]-l:u=n[o.wh];i.boundingLength=u,t&&(i.repeatCutLength=n[o.wh]);var p=o.xy==="x",h=s.inverse;i.pxSign=p&&!h||!p&&h?u>=0?1:-1:u>0?1:-1}function Wse(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function lmr(e,t,n,r,i,o,a,s,l,c){var u=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),h=e.getItemVisual(t,"symbolSize"),g;Ht(h)?g=h.slice():h==null?g=["100%","100%"]:g=[h,h],g[d.index]=vn(g[d.index],p),g[u.index]=vn(g[u.index],r?p:Math.abs(o)),c.symbolSize=g;var m=c.symbolScale=[g[0]/s,g[1]/s];m[u.index]*=(l.isHorizontal?-1:1)*a}function cmr(e,t,n,r,i){var o=e.get(omr)||0;o&&(Fse.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Fse.updateTransform(),o/=Fse.getLineScale(),o*=t[r.valueDim.index]),i.valueLineWidth=o||0}function umr(e,t,n,r,i,o,a,s,l,c,u,d){var p=u.categoryDim,h=u.valueDim,g=d.pxSign,m=Math.max(t[h.index]+s,0),v=m;if(r){var y=Math.abs(l),M=xu(e.get("symbolMargin"),"15%")+"",C=!1;M.lastIndexOf("!")===M.length-1&&(C=!0,M=M.slice(0,M.length-1));var x=vn(M,t[h.index]),w=Math.max(m+x*2,0),S=C?0:x*2,A=sSe(r),z=A?r:VBe((y+S)/w),O=y-z*m;x=O/2/(C?z:Math.max(z-1,1)),w=m+x*2,S=C?0:x*2,!A&&r!=="fixed"&&(z=c?VBe((Math.abs(c)+S)/w):0),v=z*w-S,d.repeatTimes=z,d.symbolMargin=x}var T=g*(v/2),I=d.pathPosition=[];I[p.index]=n[p.wh]/2,I[h.index]=a==="start"?T:a==="end"?l-T:l/2,o&&(I[0]+=o[0],I[1]+=o[1]);var P=d.bundlePosition=[];P[p.index]=n[p.xy],P[h.index]=n[h.xy];var N=d.barRectShape=Nt({},n);N[h.wh]=g*Math.max(Math.abs(n[h.wh]),Math.abs(I[h.index]+T)),N[p.wh]=n[p.wh];var F=d.clipShape={};F[p.xy]=-n[p.xy],F[p.wh]=u.ecSize[p.wh],F[h.xy]=0,F[h.wh]=n[h.wh]}function Dyt(e){var t=e.symbolPatternSize,n=rc(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function kyt(e,t,n,r){var i=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,d=o[t.valueDim.index]+a+n.symbolMargin*2;for(qAe(e,function(m){m.__pictorialAnimationIndex=u,m.__pictorialRepeatTimes=c,u<c?LI(m,null,g(u),n,r):LI(m,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(m)}),u++});u<c;u++){var p=Dyt(n);p.__pictorialAnimationIndex=u,p.__pictorialRepeatTimes=c,i.add(p);var h=g(u);LI(p,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function g(m){var v=s.slice(),y=n.pxSign,M=m;return(n.symbolRepeatDirection==="start"?y>0:y<0)&&(M=c-1-m),v[l.index]=d*(M-c/2+.5)+s[l.index],{x:v[0],y:v[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Lyt(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;o?LI(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=e.__pictorialMainPath=Dyt(n),i.add(o),LI(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function _yt(e,t,n){var r=Nt({},t.barRectShape),i=e.__pictorialBarRect;i?LI(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new ao({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function Nyt(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,o=Nt({},n.clipShape),a=t.valueDim,s=n.animationModel,l=n.dataIndex;if(i)So(i,{shape:o},s,l);else{o[a.wh]=0,i=new ao({shape:o}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var c={};c[a.wh]=n.clipShape[a.wh],V3[r?"updateProps":"initProps"](i,{shape:c},s,l)}}}function qBe(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=dmr,n.isAnimationEnabled=pmr,n}function dmr(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function pmr(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function BBe(e,t,n,r){var i=new Ir,o=new Ir;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?kyt(i,t,n):Lyt(i,t,n),_yt(i,n,r),Nyt(i,t,n,r),i.__pictorialShapeStr=Fyt(e,n),i.__pictorialSymbolMeta=n,i}function hmr(e,t,n){var r=n.animationModel,i=n.dataIndex,o=e.__pictorialBundle;So(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?kyt(e,t,n,!0):Lyt(e,t,n,!0),_yt(e,n,!0),Nyt(e,t,n,!0)}function jBe(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];qAe(r,function(a){o.push(a)}),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),ye(o,function(a){ow(a,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function Fyt(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function qAe(e,t,n){ye(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function LI(e,t,n,r,i,o){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&V3[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,o)}function HBe(e,t,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),u=o.get("focus"),d=o.get("blurScope"),p=o.get("scale");qAe(e,function(m){if(m instanceof Du){var v=m.style;m.useStyle(Nt({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},n.style))}else m.useStyle(n.style);var y=m.ensureState("emphasis");y.style=a,p&&(y.scaleX=m.scaleX*1.1,y.scaleY=m.scaleY*1.1),m.ensureState("blur").style=s,m.ensureState("select").style=l,c&&(m.cursor=c),m.z2=n.z2});var h=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,Od(g,Ru(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:LP(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),al(e,u,d,o.get("disabled"))}function VBe(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var fmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return t.prototype.getInitialData=function(n){return n.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Fw(Sq.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t})(Sq);function gmr(e){e.registerChartView(amr),e.registerSeriesModel(fmr),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Zr(Cbt,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xbt("pictorialBar"))}var mmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(n,r,i){var o=n.getData(),a=this,s=this.group,l=n.getLayerSeries(),c=o.getLayout("layoutInfo"),u=c.rect,d=c.boundaryGap;s.x=0,s.y=u.y+d[0];function p(v){return v.name}var h=new oM(this._layersSeries||[],l,p,p),g=[];h.add(En(m,this,"add")).update(En(m,this,"update")).remove(En(m,this,"remove")).execute();function m(v,y,M){var C=a._layers;if(v==="remove"){s.remove(C[y]);return}for(var x=[],w=[],S,A=l[y].indices,z=0;z<A.length;z++){var O=o.getItemLayout(A[z]),T=O.x,I=O.y0,P=O.y;x.push(T,I),w.push(T,I+P),S=o.getItemVisual(A[z],"style")}var N,F=o.getItemLayout(A[0]),L=n.getModel("label"),W=L.get("margin"),H=n.getModel("emphasis");if(v==="add"){var j=g[y]=new Ir;N=new u2t({shape:{points:x,stackedOnPoints:w,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),j.add(N),s.add(j),n.isAnimationEnabled()&&N.setClipPath(vmr(N.getBoundingRect(),n,function(){N.removeClipPath()}))}else{var j=C[M];N=j.childAt(0),s.add(j),g[y]=j,So(N,{shape:{points:x,stackedOnPoints:w}},n),Om(N)}Od(N,Ru(n),{labelDataIndex:A[z-1],defaultText:o.getName(A[z-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),N.setTextConfig({position:null,local:!0});var G=N.getTextContent();G&&(G.x=F.x-W,G.y=F.y0+F.y/2),N.useStyle(S),o.setItemGraphicEl(y,N),Ad(N,n),al(N,H.get("focus"),H.get("blurScope"),H.get("disabled"))}this._layersSeries=l,this._layers=g},t.type="themeRiver",t})(da);function vmr(e,t,n){var r=new ao({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return vs(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var qse=2,bmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new QB(En(this.getData,this),En(this.getRawData,this))},t.prototype.fixData=function(n){var r=n.length,i={},o=Tme(n,function(p){return i.hasOwnProperty(p[0]+"")||(i[p[0]+""]=-1),p[2]}),a=[];o.buckets.each(function(p,h){a.push({name:h,dataList:p})});for(var s=a.length,l=0;l<s;++l){for(var c=a[l].name,u=0;u<a[l].dataList.length;++u){var d=a[l].dataList[u][0]+"";i[d]=l}for(var d in i)i.hasOwnProperty(d)&&i[d]!==l&&(i[d]=l,n[r]=[d,0,c],r++)}return n},t.prototype.getInitialData=function(n,r){for(var i=this.getReferringComponents("singleAxis",wc).models[0],o=i.get("type"),a=ko(n.data,function(g){return g[2]!==void 0}),s=this.fixData(a||[]),l=[],c=this.nameMap=Yn(),u=0,d=0;d<s.length;++d)l.push(s[d][qse]),c.get(s[d][qse])||(c.set(s[d][qse],u),u++);var p=dk(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:TU(o)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new y0(p,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),i=[],o=0;o<r;++o)i[o]=o;var a=n.mapDimension("single"),s=Tme(i,function(c){return n.get("name",c)}),l=[];return s.buckets.each(function(c,u){c.sort(function(d,p){return n.get(a,d)-n.get(a,p)}),l.push({name:u,indices:c})}),l},t.prototype.getAxisTooltipData=function(n,r,i){Ht(n)||(n=n?[n]:[]);for(var o=this.getData(),a=this.getLayerSeries(),s=[],l=a.length,c,u=0;u<l;++u){for(var d=Number.MAX_VALUE,p=-1,h=a[u].indices.length,g=0;g<h;++g){var m=o.get(n[0],a[u].indices[g]),v=Math.abs(m-r);v<=d&&(c=m,d=v,p=a[u].indices[g])}s.push(p)}return{dataIndices:s,nestestValue:c}},t.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=o.getName(n),s=o.get(o.mapDimension("value"),n);return Iu("nameValue",{name:a,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t})(Ra);function ymr(e,t){e.eachSeriesByType("themeRiver",function(n){var r=n.getData(),i=n.coordinateSystem,o={},a=i.getRect();o.rect=a;var s=n.get("boundaryGap"),l=i.getAxis();if(o.boundaryGap=s,l.orient==="horizontal"){s[0]=vn(s[0],a.height),s[1]=vn(s[1],a.height);var c=a.height-s[0]-s[1];GBe(r,n,c)}else{s[0]=vn(s[0],a.width),s[1]=vn(s[1],a.width);var u=a.width-s[0]-s[1];GBe(r,n,u)}r.setLayout("layoutInfo",o)})}function GBe(e,t,n){if(e.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),o=e.mapDimension("single"),a=e.mapDimension("value"),s=Vt(i,function(v){return Vt(v.indices,function(y){var M=r.dataToPoint(e.get(o,y));return M[1]=e.get(a,y),M})}),l=Mmr(s),c=l.y0,u=n/l.max,d=i.length,p=i[0].indices.length,h,g=0;g<p;++g){h=c[g]*u,e.setItemLayout(i[0].indices[g],{layerIndex:0,x:s[0][g][0],y0:h,y:s[0][g][1]*u});for(var m=1;m<d;++m)h+=s[m-1][g][1]*u,e.setItemLayout(i[m].indices[g],{layerIndex:m,x:s[m][g][0],y0:h,y:s[m][g][1]*u})}}function Mmr(e){for(var t=e.length,n=e[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),r.push(s)}for(var c=0;c<n;++c)i[c]=(o-r[c])/2;o=0;for(var u=0;u<n;++u){var d=r[u]+i[u];d>o&&(o=d)}return{y0:i,max:o}}function Cmr(e){e.registerChartView(mmr),e.registerSeriesModel(bmr),e.registerLayout(ymr),e.registerProcessor(KB("themeRiver"))}var xmr=2,wmr=4,$Be=(function(e){gt(t,e);function t(n,r,i,o){var a=e.call(this)||this;a.z2=xmr,a.textConfig={inside:!0},_r(a).seriesIndex=r.seriesIndex;var s=new oo({z2:wmr,silent:n.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,n,r,i,o),a}return t.prototype.updateData=function(n,r,i,o,a){this.node=r,r.piece=this,i=i||this._seriesModel,o=o||this._ecModel;var s=this;_r(s).dataIndex=r.dataIndex;var l=r.getModel(),c=l.getModel("emphasis"),u=r.getLayout(),d=Nt({},u);d.label=null;var p=r.getVisual("style");p.lineJoin="bevel";var h=r.getVisual("decal");h&&(p.decal=kP(h,a));var g=CO(l.getModel("itemStyle"),d,!0);Nt(d,g),ye(f1,function(M){var C=s.ensureState(M),x=l.getModel([M,"itemStyle"]);C.style=x.getItemStyle();var w=CO(x,d);w&&(C.shape=w)}),n?(s.setShape(d),s.shape.r=u.r0,vs(s,{shape:{r:u.r}},i,r.dataIndex)):(So(s,{shape:d},i),Om(s)),s.useStyle(p),this._updateLabel(i);var m=l.getShallow("cursor");m&&s.attr("cursor",m),this._seriesModel=i||this._seriesModel,this._ecModel=o||this._ecModel;var v=c.get("focus"),y=v==="relative"?EP(r.getAncestorsIndices(),r.getDescendantIndices()):v==="ancestor"?r.getAncestorsIndices():v==="descendant"?r.getDescendantIndices():v;al(this,y,c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,i=this.node.getModel(),o=i.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,c=Math.cos(l),u=Math.sin(l),d=this,p=d.getTextContent(),h=this.node.dataIndex,g=o.get("minAngle")/180*Math.PI,m=o.get("show")&&!(g!=null&&Math.abs(s)<g);p.ignore=!m,ye(pq,function(y){var M=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),C=y==="normal",x=C?p:p.ensureState(y),w=n.getFormattedLabel(h,y);C&&(w=w||r.node.name),x.style=Za(M,{},null,y!=="normal",!0),w&&(x.style.text=w);var S=M.get("show");S!=null&&!C&&(x.ignore=!S);var A=v(M,"position"),z=C?d:d.states[y],O=z.style.fill;z.textConfig={outsideFill:M.get("color")==="inherit"?O:null,inside:A!=="outside"};var T,I=v(M,"distance")||0,P=v(M,"align"),N=v(M,"rotate"),F=Math.PI*.5,L=Math.PI*1.5,W=eh(N==="tangential"?Math.PI/2-l:l),H=W>F&&!RP(W-F)&&W<L;A==="outside"?(T=a.r+I,P=H?"right":"left"):!P||P==="center"?(s===2*Math.PI&&a.r0===0?T=0:T=(a.r+a.r0)/2,P="center"):P==="left"?(T=a.r0+I,P=H?"right":"left"):P==="right"&&(T=a.r-I,P=H?"left":"right"),x.style.align=P,x.style.verticalAlign=v(M,"verticalAlign")||"middle",x.x=T*c+a.cx,x.y=T*u+a.cy;var j=0;N==="radial"?j=eh(-l)+(H?Math.PI:0):N==="tangential"?j=eh(Math.PI/2-l)+(H?Math.PI:0):yo(N)&&(j=N*Math.PI/180),x.rotation=eh(j)});function v(y,M){var C=y.get(M);return C??o.get(M)}p.dirtyStyle()},t})(A0),Eve="sunburstRootToNode",UBe="sunburstHighlight",Smr="sunburstUnhighlight";function Amr(e){e.registerAction({type:Eve,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(i,o){var a=Oq(t,[Eve],i);if(a){var s=i.getViewRoot();s&&(t.direction=SAe(s,a.node)?"rollUp":"drillDown"),i.resetViewRoot(a.node)}}}),e.registerAction({type:UBe,update:"none"},function(t,n,r){t=Nt({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(o){var a=Oq(t,[UBe],o);a&&(t.dataIndex=a.node.dataIndex)}r.dispatchAction(Nt(t,{type:"highlight"}))}),e.registerAction({type:Smr,update:"updateView"},function(t,n,r){t=Nt({},t),r.dispatchAction(Nt(t,{type:"downplay"}))})}var Omr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){var a=this;this.seriesModel=n,this.api=i,this.ecModel=r;var s=n.getData(),l=s.tree.root,c=n.getViewRoot(),u=this.group,d=n.get("renderLabelForZeroData"),p=[];c.eachNode(function(M){p.push(M)});var h=this._oldChildren||[];g(p,h),y(l,c),this._initEvents(),this._oldChildren=p;function g(M,C){if(M.length===0&&C.length===0)return;new oM(C,M,x,x).add(w).update(w).remove(Zr(w,null)).execute();function x(S){return S.getId()}function w(S,A){var z=S==null?null:M[S],O=A==null?null:C[A];m(z,O)}}function m(M,C){if(!d&&M&&!M.getValue()&&(M=null),M!==l&&C!==l){if(C&&C.piece)M?(C.piece.updateData(!1,M,n,r,i),s.setItemGraphicEl(M.dataIndex,C.piece)):v(C);else if(M){var x=new $Be(M,n,r,i);u.add(x),s.setItemGraphicEl(M.dataIndex,x)}}}function v(M){M&&M.piece&&(u.remove(M.piece),M.piece=null)}function y(M,C){C.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,M,n,r,i):(a.virtualPiece=new $Be(M,n,r,i),u.add(a.virtualPiece)),C.piece.off("click"),a.virtualPiece.on("click",function(x){a._rootToNode(C.parentNode)})):a.virtualPiece&&(u.remove(a.virtualPiece),a.virtualPiece=null)}},t.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,o=n.seriesModel.getViewRoot();o.eachNode(function(a){if(!i&&a.piece&&a.piece===r.target){var s=a.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(a);else if(s==="link"){var l=a.getModel(),c=l.get("link");if(c){var u=l.get("target",!0)||"_blank";bU(c,u)}}i=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Eve,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},t.type="sunburst",t})(da),zmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};Wyt(i);var o=this._levelModels=Vt(n.levels||[],function(l){return new _o(l,this,r)},this),a=wAe.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(c,u){var d=a.getNodeByDataIndex(u),p=o[d.depth];return p&&(c.parentModel=p),c})}return a.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=kJ(i,this),r},t.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){V2t(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t})(Ra);function Wyt(e){var t=0;ye(e.children,function(r){Wyt(r);var i=r.value;Ht(i)&&(i=i[0]),t+=i});var n=e.value;Ht(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Ht(e.value)?e.value[0]=n:e.value=n}var XBe=Math.PI/180;function Tmr(e,t,n){t.eachSeriesByType(e,function(r){var i=r.get("center"),o=r.get("radius");Ht(o)||(o=[0,o]),Ht(i)||(i=[i,i]);var a=n.getWidth(),s=n.getHeight(),l=Math.min(a,s),c=vn(i[0],a),u=vn(i[1],s),d=vn(o[0],l/2),p=vn(o[1],l/2),h=-r.get("startAngle")*XBe,g=r.get("minAngle")*XBe,m=r.getData().tree.root,v=r.getViewRoot(),y=v.depth,M=r.get("sort");M!=null&&qyt(v,M);var C=0;ye(v.children,function(W){!isNaN(W.getValue())&&C++});var x=v.getValue(),w=Math.PI/(x||C)*2,S=v.depth>0,A=v.height-(S?-1:1),z=(p-d)/(A||1),O=r.get("clockwise"),T=r.get("stillShowZeroSum"),I=O?1:-1,P=function(W,H){if(W){var j=H;if(W!==m){var G=W.getValue(),q=x===0&&T?w:G*w;q<g&&(q=g),j=H+I*q;var $=W.depth-y-(S?-1:1),U=d+z*$,X=d+z*($+1),Q=r.getLevelModel(W);if(Q){var re=Q.get("r0",!0),ee=Q.get("r",!0),se=Q.get("radius",!0);se!=null&&(re=se[0],ee=se[1]),re!=null&&(U=vn(re,l/2)),ee!=null&&(X=vn(ee,l/2))}W.setLayout({angle:q,startAngle:H,endAngle:j,clockwise:O,cx:c,cy:u,r0:U,r:X})}if(W.children&&W.children.length){var pe=0;ye(W.children,function(te){pe+=P(te,H+pe)})}return j-H}};if(S){var N=d,F=d+z,L=Math.PI*2;m.setLayout({angle:L,startAngle:h,endAngle:h+L,clockwise:O,cx:c,cy:u,r0:N,r:F})}P(v,h)})}function qyt(e,t){var n=e.children||[];e.children=Emr(n,t),n.length&&ye(e.children,function(r){qyt(r,t)})}function Emr(e,t){if(fr(t)){var n=Vt(e,function(i,o){var a=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return a}},index:o}});return n.sort(function(i,o){return t(i.params,o.params)}),Vt(n,function(i){return e[i.index]})}else{var r=t==="asc";return e.sort(function(i,o){var a=(i.getValue()-o.getValue())*(r?1:-1);return a===0?(i.dataIndex-o.dataIndex)*(r?-1:1):a})}}function Rmr(e){var t={};function n(r,i,o){for(var a=r;a&&a.depth>1;)a=a.parentNode;var s=i.getColorFromPalette(a.name||a.dataIndex+"",t);return r.depth>1&&Sn(s)&&(s=aU(s,(r.depth-1)/(o-1)*.5)),s}e.eachSeriesByType("sunburst",function(r){var i=r.getData(),o=i.tree;o.eachNode(function(a){var s=a.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(a,r,o.root.height));var c=i.ensureUniqueItemVisual(a.dataIndex,"style");Nt(c,l)})})}function Imr(e){e.registerChartView(Omr),e.registerSeriesModel(zmr),e.registerLayout(Zr(Tmr,"sunburst")),e.registerProcessor(Zr(KB,"sunburst")),e.registerVisual(Rmr),Amr(e)}var YBe={color:"fill",borderColor:"stroke"},Pmr={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ly=mo(),Dmr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,r){return n2(null,this)},t.prototype.getDataParams=function(n,r,i){var o=e.prototype.getDataParams.call(this,n,r);return i&&(o.info=Ly(i).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(Ra);function kmr(e,t){return t=t||[0,0],Vt(["x","y"],function(n,r){var i=this.getAxis(n),o=t[r],a=e[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))},this)}function Lmr(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:En(kmr,e)}}}function _mr(e,t){return t=t||[0,0],Vt([0,1],function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function Nmr(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:En(_mr,e)}}}function Fmr(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function Wmr(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:En(Fmr,e)}}}function qmr(e,t){return t=t||[0,0],Vt(["Radius","Angle"],function(n,r){var i="get"+n+"Axis",o=this[i](),a=t[r],s=e[r]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function Bmr(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(i){var o=t.dataToRadius(i[0]),a=n.dataToAngle(i[1]),s=e.coordToPoint([o,a]);return s.push(o,a*Math.PI/180),s},size:En(qmr,e)}}}function jmr(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,i){return e.dataToPoint(r,i)}}}}function Byt(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||Fn(e,"text")))}function jyt(e,t,n){var r=e,i,o,a;if(t==="text")a=r;else{a={},Fn(r,"text")&&(a.text=r.text),Fn(r,"rich")&&(a.rich=r.rich),Fn(r,"textFill")&&(a.fill=r.textFill),Fn(r,"textStroke")&&(a.stroke=r.textStroke),Fn(r,"fontFamily")&&(a.fontFamily=r.fontFamily),Fn(r,"fontSize")&&(a.fontSize=r.fontSize),Fn(r,"fontStyle")&&(a.fontStyle=r.fontStyle),Fn(r,"fontWeight")&&(a.fontWeight=r.fontWeight),o={type:"text",style:a,silent:!0},i={};var s=Fn(r,"textPosition");n?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),Fn(r,"textPosition")&&(i.position=r.textPosition),Fn(r,"textOffset")&&(i.offset=r.textOffset),Fn(r,"textRotation")&&(i.rotation=r.textRotation),Fn(r,"textDistance")&&(i.distance=r.textDistance)}return KBe(a,e),ye(a.rich,function(l){KBe(l,l)}),{textConfig:i,textContent:o}}function KBe(e,t){t&&(t.font=t.textFont||t.font,Fn(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Fn(t,"textAlign")&&(e.align=t.textAlign),Fn(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Fn(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Fn(t,"textWidth")&&(e.width=t.textWidth),Fn(t,"textHeight")&&(e.height=t.textHeight),Fn(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Fn(t,"textPadding")&&(e.padding=t.textPadding),Fn(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Fn(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Fn(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Fn(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Fn(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Fn(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Fn(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function QBe(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=e.fill||"#000";ZBe(r,t);var a=r.textFill==null;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(a&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,ye(t.rich,function(s){ZBe(s,s)}),r}function ZBe(e,t){t&&(Fn(t,"fill")&&(e.textFill=t.fill),Fn(t,"stroke")&&(e.textStroke=t.fill),Fn(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Fn(t,"font")&&(e.font=t.font),Fn(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Fn(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Fn(t,"fontSize")&&(e.fontSize=t.fontSize),Fn(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Fn(t,"align")&&(e.textAlign=t.align),Fn(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Fn(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Fn(t,"width")&&(e.textWidth=t.width),Fn(t,"height")&&(e.textHeight=t.height),Fn(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Fn(t,"padding")&&(e.textPadding=t.padding),Fn(t,"borderColor")&&(e.textBorderColor=t.borderColor),Fn(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Fn(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Fn(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Fn(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Fn(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Fn(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Fn(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Fn(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Fn(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Fn(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Hyt={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},JBe=ji(Hyt);Wf(Lb,function(e,t){return e[t]=1,e},{});Lb.join(", ");var qU=["","style","shape","extra"],FP=mo();function BAe(e,t,n,r,i){var o=e+"Animation",a=tk(e,r,i)||{},s=FP(t).userDuring;return a.duration>0&&(a.during=s?En(Umr,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Nt(a,n[o]),a}function V7(e,t,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=FP(e),c=t.style;l.userDuring=t.during;var u={},d={};if(Ymr(e,t,d),tje("shape",t,d),tje("extra",t,d),!o&&s&&(Xmr(e,t,u),eje("shape",e,t,u),eje("extra",e,t,u),Kmr(e,t,c,u)),d.style=c,Hmr(e,d,a),Gmr(e,t),s)if(o){var p={};ye(qU,function(g){var m=g?t[g]:t;m&&m.enterFrom&&(g&&(p[g]=p[g]||{}),Nt(g?p[g]:p,m.enterFrom))});var h=BAe("enter",e,t,n,i);h.duration>0&&e.animateFrom(p,h)}else Vmr(e,t,i||0,n,u);Vyt(e,t),c?e.dirty():e.markRedraw()}function Vyt(e,t){for(var n=FP(e).leaveToProps,r=0;r<qU.length;r++){var i=qU[r],o=i?t[i]:t;o&&o.leaveTo&&(n||(n=FP(e).leaveToProps={}),i&&(n[i]=n[i]||{}),Nt(i?n[i]:n,o.leaveTo))}}function NJ(e,t,n,r){if(e){var i=e.parent,o=FP(e).leaveToProps;if(o){var a=BAe("update",e,t,n,0);a.done=function(){i.remove(e)},e.animateTo(o,a)}else i.remove(e)}}function iz(e){return e==="all"}function Hmr(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,o=0;o<i.length;o++){var a=i[o];a.targetName==="style"&&a.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function Vmr(e,t,n,r,i){if(i){var o=BAe("update",e,t,r,n);o.duration>0&&e.animateFrom(i,o)}}function Gmr(e,t){Fn(t,"silent")&&(e.silent=t.silent),Fn(t,"ignore")&&(e.ignore=t.ignore),e instanceof qf&&Fn(t,"invisible")&&(e.invisible=t.invisible),e instanceof Di&&Fn(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Sv={},$mr={setTransform:function(e,t){return Sv.el[e]=t,this},getTransform:function(e){return Sv.el[e]},setShape:function(e,t){var n=Sv.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Sv.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Sv.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Sv.el.style;if(t)return t[e]},setExtra:function(e,t){var n=Sv.el.extra||(Sv.el.extra={});return n[e]=t,this},getExtra:function(e){var t=Sv.el.extra;if(t)return t[e]}};function Umr(){var e=this,t=e.el;if(t){var n=FP(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}Sv.el=t,r($mr)}}function eje(e,t,n,r){var i=n[e];if(i){var o=t[e],a;if(o){var s=n.transition,l=i.transition;if(l)if(!a&&(a=r[e]={}),iz(l))Nt(a,o);else for(var c=Ta(l),u=0;u<c.length;u++){var d=c[u],p=o[d];a[d]=p}else if(iz(s)||hi(s,e)>=0){!a&&(a=r[e]={});for(var h=ji(o),u=0;u<h.length;u++){var d=h[u],p=o[d];Qmr(i[d],p)&&(a[d]=p)}}}}}function tje(e,t,n){var r=t[e];if(r)for(var i=n[e]={},o=ji(r),a=0;a<o.length;a++){var s=o[a];i[s]=wF(r[s])}}function Xmr(e,t,n){for(var r=t.transition,i=iz(r)?Lb:Ta(r||[]),o=0;o<i.length;o++){var a=i[o];if(!(a==="style"||a==="shape"||a==="extra")){var s=e[a];n[a]=s}}}function Ymr(e,t,n){for(var r=0;r<JBe.length;r++){var i=JBe[r],o=Hyt[i],a=t[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(var r=0;r<Lb.length;r++){var s=Lb[r];t[s]!=null&&(n[s]=t[s])}}function Kmr(e,t,n,r){if(n){var i=e.style,o;if(i){var a=n.transition,s=t.transition;if(a&&!iz(a)){var l=Ta(a);!o&&(o=r.style={});for(var c=0;c<l.length;c++){var u=l[c],d=i[u];o[u]=d}}else if(e.getAnimationStyleProps&&(iz(s)||iz(a)||hi(s,"style")>=0)){var p=e.getAnimationStyleProps(),h=p?p.style:null;if(h){!o&&(o=r.style={});for(var g=ji(n),c=0;c<g.length;c++){var u=g[c];if(h[u]){var d=i[u];o[u]=d}}}}}}}function Qmr(e,t){return Sd(e)?e!==t:e!=null&&isFinite(e)}var Gyt=mo(),Zmr=["percent","easing","shape","style","extra"];function $yt(e){e.stopAnimation("keyframe"),e.attr(Gyt(e))}function BU(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(Ht(t)){ye(t,function(s){BU(e,s,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var o=tk("enter",n,0);i=o&&o.duration}if(!(!r||!i)){var a=Gyt(e);ye(qU,function(s){if(!(s&&!e[s])){var l;r.sort(function(c,u){return c.percent-u.percent}),ye(r,function(c){var u=e.animators,d=s?c[s]:c;if(d){var p=ji(d);if(s||(p=ko(p,function(m){return hi(Zmr,m)<0})),!!p.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<u.length;h++)u[h]!==l&&u[h].targetName===l.targetName&&u[h].stopTracks(p);s&&(a[s]=a[s]||{});var g=s?a[s]:a;ye(p,function(m){g[m]=((s?e[s]:e)||{})[m]}),l.whenWithKeys(i*c.percent,d,p,c.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var _y="emphasis",gx="normal",jAe="blur",HAe="select",lw=[gx,_y,jAe,HAe],Bse={normal:["itemStyle"],emphasis:[_y,"itemStyle"],blur:[jAe,"itemStyle"],select:[HAe,"itemStyle"]},jse={normal:["label"],emphasis:[_y,"label"],blur:[jAe,"label"],select:[HAe,"label"]},Jmr=["x","y"],evr="e\0\0",Wh={normal:{},emphasis:{},blur:{},select:{}},tvr={cartesian2d:Lmr,geo:Nmr,single:Wmr,polar:Bmr,calendar:jmr};function Rve(e){return e instanceof Di}function Ive(e){return e instanceof qf}function nvr(e,t){t.copyTransform(e),Ive(t)&&Ive(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,Rve(t)&&Rve(e)&&t.setShape(e.shape))}var rvr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){this._progressiveEls=null;var a=this._data,s=n.getData(),l=this.group,c=nje(n,s,r,i);a||l.removeAll(),s.diff(a).add(function(d){Hse(i,null,d,c(d,o),n,l,s)}).remove(function(d){var p=a.getItemGraphicEl(d);p&&NJ(p,Ly(p).option,n)}).update(function(d,p){var h=a.getItemGraphicEl(p);Hse(i,h,d,c(d,o),n,l,s)}).execute();var u=n.get("clip",!0)?XB(n.coordinateSystem,!1,n):null;u?l.setClipPath(u):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(n,r,i,o,a){var s=r.getData(),l=nje(r,s,i,o),c=this._progressiveEls=[];function u(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var d=n.start;d<n.end;d++){var p=Hse(null,null,d,l(d,a),r,this.group,s);p&&(p.traverse(u),c.push(p))}},t.prototype.eachRendered=function(n){Nw(this._progressiveEls||this.group,n)},t.prototype.filterForExposedEvent=function(n,r,i,o){var a=r.element;if(a==null||i.name===a)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===a)return!0;return!1},t.type="custom",t})(da);function VAe(e){var t=e.type,n;if(t==="path"){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=Yyt(r);n=BB(o,null,i,r.layout||"center"),Ly(n).customPathData=o}else if(t==="image")n=new Du({}),Ly(n).customImagePath=e.style.image;else if(t==="text")n=new oo({});else if(t==="group")n=new Ir;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var a=hJ(t);if(!a){var s="";Ko(s)}n=new a}return Ly(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function GAe(e,t,n,r,i,o,a){$yt(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=Jmr);var l=r&&r.style;if(l){if(t.type==="text"){var c=l;Fn(c,"textFill")&&(c.fill=c.textFill),Fn(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,d=Rve(t)?l.decal:null;e&&d&&(d.dirty=!0,u=kP(d,e)),l.__decalPattern=u}if(Ive(t)&&l){var u=l.__decalPattern;u&&(l.decal=u)}V7(t,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),BU(t,r.keyframeAnimation,o)}function Uyt(e,t,n,r,i){var o=t.isGroup?null:t,a=i&&i[e].cfg;if(o){var s=o.ensureState(e);if(r===!1){var l=o.getState(e);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),Yz(o)}}function ivr(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=t.z2;a!=null&&(r.z2=a||0);for(var s=0;s<lw.length;s++)ovr(r,t,lw[s])}}function ovr(e,t,n){var r=n===gx,i=r?t:jU(t,n),o=i?i.z2:null,a;o!=null&&(a=r?e:e.ensureState(n),a.z2=o||0)}function nje(e,t,n,r){var i=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):tvr[o.type](o));for(var s=br({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:S,ordinalRawValue:w,styleEmphasis:A,visual:T,barLayout:I,currentSeriesIndices:P,font:N},a.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:avr(e.getData())},c,u,d={},p={},h={},g={},m=0;m<lw.length;m++){var v=lw[m];h[v]=e.getModel(Bse[v]),g[v]=e.getModel(jse[v])}function y(F){return F===c?u||(u=t.getItemModel(F)):t.getItemModel(F)}function M(F,L){return t.hasItemOption?F===c?d[L]||(d[L]=y(F).getModel(Bse[L])):y(F).getModel(Bse[L]):h[L]}function C(F,L){return t.hasItemOption?F===c?p[L]||(p[L]=y(F).getModel(jse[L])):y(F).getModel(jse[L]):g[L]}return function(F,L){return c=F,u=null,d={},p={},i&&i(br({dataIndexInside:F,dataIndex:t.getRawIndex(F),actionType:L?L.type:null},l),s)};function x(F,L){return L==null&&(L=c),t.getStore().get(t.getDimensionIndex(F||0),L)}function w(F,L){L==null&&(L=c),F=F||0;var W=t.getDimensionInfo(F);if(!W){var H=t.getDimensionIndex(F);return H>=0?t.getStore().get(H,L):void 0}var j=t.get(W.name,L),G=W&&W.ordinalMeta;return G?G.categories[j]:j}function S(F,L){L==null&&(L=c);var W=t.getItemVisual(L,"style"),H=W&&W.fill,j=W&&W.opacity,G=M(L,gx).getItemStyle();H!=null&&(G.fill=H),j!=null&&(G.opacity=j);var q={inheritColor:Sn(H)?H:"#000"},$=C(L,gx),U=Za($,null,q,!1,!0);U.text=$.getShallow("show")?Xr(e.getFormattedLabel(L,gx),LP(t,L)):null;var X=mU($,q,!1);return O(F,G),G=QBe(G,U,X),F&&z(G,F),G.legacy=!0,G}function A(F,L){L==null&&(L=c);var W=M(L,_y).getItemStyle(),H=C(L,_y),j=Za(H,null,null,!0,!0);j.text=H.getShallow("show")?hm(e.getFormattedLabel(L,_y),e.getFormattedLabel(L,gx),LP(t,L)):null;var G=mU(H,null,!0);return O(F,W),W=QBe(W,j,G),F&&z(W,F),W.legacy=!0,W}function z(F,L){for(var W in L)Fn(L,W)&&(F[W]=L[W])}function O(F,L){F&&(F.textFill&&(L.textFill=F.textFill),F.textPosition&&(L.textPosition=F.textPosition))}function T(F,L){if(L==null&&(L=c),Fn(YBe,F)){var W=t.getItemVisual(L,"style");return W?W[YBe[F]]:null}if(Fn(Pmr,F))return t.getItemVisual(L,F)}function I(F){if(o.type==="cartesian2d"){var L=o.getBaseAxis();return Lcr(br({axis:L},F))}}function P(){return n.getCurrentSeriesIndices()}function N(F){return SSe(F,n)}}function avr(e){var t={};return ye(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=t[i]=t[i]||[];o[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function Hse(e,t,n,r,i,o,a){if(!r){o.remove(t);return}var s=$Ae(e,t,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&al(s,r.focus,r.blurScope,r.emphasisDisabled),s}function $Ae(e,t,n,r,i,o){var a=-1,s=t;t&&Xyt(t,r,i)&&(a=hi(o.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=VAe(r),s&&nvr(s,c)),r.morph===!1?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),Wh.normal.cfg=Wh.normal.conOpt=Wh.emphasis.cfg=Wh.emphasis.conOpt=Wh.blur.cfg=Wh.blur.conOpt=Wh.select.cfg=Wh.select.conOpt=null,Wh.isLegacy=!1,lvr(c,n,r,i,l,Wh),svr(c,n,r,i,l),GAe(e,c,n,r,Wh,i,l),Fn(r,"info")&&(Ly(c).info=r.info);for(var u=0;u<lw.length;u++){var d=lw[u];if(d!==gx){var p=jU(r,d),h=UAe(r,p,d);Uyt(d,c,p,h,Wh)}}return ivr(c,r,i),r.type==="group"&&cvr(e,c,n,r,i),a>=0?o.replaceAt(c,a):o.add(c),c}function Xyt(e,t,n){var r=Ly(e),i=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&hvr(o)&&Yyt(o)!==r.customPathData||i==="image"&&Fn(a,"image")&&a.image!==r.customImagePath}function svr(e,t,n,r,i){var o=n.clipPath;if(o===!1)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&Xyt(a,o,r)&&(a=null),a||(a=VAe(o),e.setClipPath(a)),GAe(null,a,t,o,null,r,i)}}function lvr(e,t,n,r,i,o){if(!e.isGroup){rje(n,null,o),rje(n,_y,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(a!=null||s!=null||c!=null||l!=null){var u=e.getTextContent();if(a===!1)u&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=VAe(a),e.setTextContent(u)),GAe(null,u,t,a,null,r,i);for(var d=a&&a.style,p=0;p<lw.length;p++){var h=lw[p];if(h!==gx){var g=o[h].conOpt;Uyt(h,u,g,UAe(a,g,h),null)}}d?u.dirty():u.markRedraw()}}}}function rje(e,t,n){var r=t?jU(e,t):e,i=t?UAe(e,r,_y):e.style,o=e.type,a=r?r.textConfig:null,s=e.textContent,l=s?t?jU(s,t):s:null;if(i&&(n.isLegacy||Byt(i,o,!!a,!!l))){n.isLegacy=!0;var c=jyt(i,o,!t);!a&&c.textConfig&&(a=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text")}var d=t?n[t]:n.normal;d.cfg=a,d.conOpt=l}function jU(e,t){return t?e?e[t]:null:e}function UAe(e,t,n){var r=t&&t.style;return r==null&&n===_y&&e&&(r=e.styleEmphasis),r}function cvr(e,t,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,c=s===!1;if(!(!a&&!l&&!c)){if(l){dvr({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:t});return}c&&t.removeAll();for(var u=0;u<a;u++){var d=o[u],p=t.childAt(u);d?(d.ignore==null&&(d.ignore=!1),$Ae(e,p,n,d,i,t)):p.ignore=!0}for(var h=t.childCount()-1;h>=u;h--){var g=t.childAt(h);uvr(t,g,i)}}}function uvr(e,t,n){t&&NJ(t,Ly(e).option,n)}function dvr(e){new oM(e.oldChildren,e.newChildren,ije,ije,e).add(oje).update(oje).remove(pvr).execute()}function ije(e,t){var n=e&&e.name;return n??evr+t}function oje(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,i=t!=null?n.oldChildren[t]:null;$Ae(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function pvr(e){var t=this.context,n=t.oldChildren[e];n&&NJ(n,Ly(n).option,t.seriesModel)}function Yyt(e){return e&&(e.pathData||e.d)}function hvr(e){return e&&(Fn(e,"pathData")||Fn(e,"d"))}function fvr(e){e.registerChartView(rvr),e.registerSeriesModel(Dmr)}var ZA=mo(),aje=Or,Vse=En,XAe=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,i){var o=n.get("value"),a=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var c={};this.makeElOption(c,o,t,n,r);var u=c.graphicKey;u!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=u;var d=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new Ir,this.createPointerEl(s,c,t,n),this.createLabelEl(s,c,t,n),r.getZr().add(s);else{var p=Zr(sje,n,d);this.updatePointerEl(s,c,p),this.updateLabelEl(s,c,p,n)}cje(s,n,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),i=t.axis,o=i.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=mAe(t).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,o){},e.prototype.createPointerEl=function(t,n,r,i){var o=n.pointer;if(o){var a=ZA(t).pointerEl=new V3[o.type](aje(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=ZA(t).labelEl=new oo(aje(n.label));t.add(o),lje(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=ZA(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var o=ZA(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),lje(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=nk(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){nM(c.event)},onmousedown:Vse(this._onHandleDragMove,this,0,0),drift:Vse(this._onHandleDragMove,this),ondragend:Vse(this._onHandleDragEnd,this)}),r.add(i)),cje(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");Ht(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ck(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){sje(this._axisPointerModel,!n&&this._moveAnimation,this._handle,Gse(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(Gse(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(Gse(i)),ZA(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),bq(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e})();function sje(e,t,n,r){Kyt(ZA(n).lastProp,r)||(ZA(n).lastProp=r,t?So(n,r,e):(n.stopAnimation(),n.attr(r)))}function Kyt(e,t){if(xr(e)&&xr(t)){var n=!0;return ye(t,function(r,i){n=n&&Kyt(e[i],r)}),!!n}else return e===t}function lje(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Gse(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function cje(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}function YAe(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function Qyt(e,t,n,r,i){var o=n.get("value"),a=Zyt(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=G3(s.get("padding")||0),c=s.getFont(),u=_B(a,c),d=i.position,p=u.width+l[1]+l[3],h=u.height+l[0]+l[2],g=i.align;g==="right"&&(d[0]-=p),g==="center"&&(d[0]-=p/2);var m=i.verticalAlign;m==="bottom"&&(d[1]-=h),m==="middle"&&(d[1]-=h/2),gvr(d,p,h,r);var v=s.get("backgroundColor");(!v||v==="auto")&&(v=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:Za(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function gvr(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Zyt(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:oAe(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};ye(r,function(l){var c=n.getSeriesByIndex(l.seriesIndex),u=l.dataIndexInside,d=c&&c.getDataParams(u);d&&s.seriesData.push(d)}),Sn(a)?o=a.replace("{value}",o):fr(a)&&(o=a(s))}return o}function KAe(e,t,n){var r=gp();return _w(r,r,n.rotation),Sm(r,r,n.position),mm([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Jyt(e,t,n,r,i,o){var a=u1.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Qyt(t,r,i,o,{position:KAe(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function QAe(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function eMt(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function uje(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:o,clockwise:!0}}var mvr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,c=o.get("type"),u=dje(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(c&&c!=="none"){var p=YAe(o),h=vvr[c](s,d,u);h.style=p,n.graphicKey=h.type,n.pointer=h}var g=dve(l.model,i);Jyt(r,n,g,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=dve(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=KAe(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),c=dje(s,a).getOtherAxis(a).getGlobalExtent(),u=a.dim==="x"?0:1,d=[n.x,n.y];d[u]+=r[u],d[u]=Math.min(l[1],d[u]),d[u]=Math.max(l[0],d[u]);var p=(c[1]+c[0])/2,h=[p,p];h[u]=d[u];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:n.rotation,cursorPoint:h,tooltipOption:g[u]}},t})(XAe);function dje(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var vvr={line:function(e,t,n){var r=QAe([t,n[0]],[t,n[1]],pje(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:eMt([t-r/2,n[0]],[r,i],pje(e))}}};function pje(e){return e.dim==="x"?0:1}var bvr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(Ri),Ay=mo(),yvr=ye;function tMt(e,t,n){if(!Ii.node){var r=t.getZr();Ay(r).records||(Ay(r).records={}),Mvr(r,t);var i=Ay(r).records[e]||(Ay(r).records[e]={});i.handler=n}}function Mvr(e,t){if(Ay(e).initialized)return;Ay(e).initialized=!0,n("click",Zr(hje,"click")),n("mousemove",Zr(hje,"mousemove")),n("globalout",xvr);function n(r,i){e.on(r,function(o){var a=wvr(t);yvr(Ay(e).records,function(s){s&&i(s,o,a.dispatchAction)}),Cvr(a.pendings,t)})}}function Cvr(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function xvr(e,t,n){e.handler("leave",null,n)}function hje(e,t,n,r){t.handler(e,n,r)}function wvr(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Pve(e,t){if(!Ii.node){var n=t.getZr(),r=(Ay(n).records||{})[e];r&&(Ay(n).records[e]=null)}}var Svr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";tMt("axisPointer",i,function(s,l,c){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){Pve("axisPointer",r)},t.prototype.dispose=function(n,r){Pve("axisPointer",r)},t.type="axisPointer",t})(cs);function nMt(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=Uz(o,e);if(a==null||a<0||Ht(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),d=u.dim,p=c.dim,h=d==="x"||d==="radius"?1:0,g=o.mapDimension(p),m=[];m[h]=o.get(g,a),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(m)||[]}else n=l.dataToPoint(o.getValues(Vt(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),n=[v.x+v.width/2,v.y+v.height/2]}return{point:n,el:s}}var fje=mo();function Avr(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||En(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){G7(i)&&(i=nMt({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=G7(i),c=o.axesInfo,u=s.axesInfo,d=r==="leave"||G7(i),p={},h={},g={list:[],map:{}},m={showPointer:Zr(zvr,h),showTooltip:Zr(Tvr,g)};ye(s.coordSysMap,function(y,M){var C=l||y.containPoint(i);ye(s.coordSysAxesInfo[M],function(x,w){var S=x.axis,A=Pvr(c,x);if(!d&&C&&(!c||A)){var z=A&&A.value;z==null&&!l&&(z=S.pointToData(i)),z!=null&&gje(x,z,m,!1,p)}})});var v={};return ye(u,function(y,M){var C=y.linkGroup;C&&!h[M]&&ye(C.axesInfo,function(x,w){var S=h[w];if(x!==y&&S){var A=S.value;C.mapper&&(A=y.axis.scale.parse(C.mapper(A,mje(x),mje(y)))),v[y.key]=A}})}),ye(v,function(y,M){gje(u[M],y,m,!0,p)}),Evr(h,u,p),Rvr(g,i,e,a),Ivr(u,a,n),p}}function gje(e,t,n,r,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var a=Ovr(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Nt(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function Ovr(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return ye(t.seriesModels,function(l,c){var u=l.getData().mapDimensionsAll(r),d,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(u,e,n);p=h.dataIndices,d=h.nestestValue}else{if(p=l.getData().indicesOfNearest(u[0],e,n.type==="category"?.5:null),!p.length)return;d=l.getData().get(u[0],p[0])}if(!(d==null||!isFinite(d))){var g=e-d,m=Math.abs(g);m<=a&&((m<a||g>=0&&s<0)&&(a=m,s=g,i=d,o.length=0),ye(p,function(v){o.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:o,snapToValue:i}}function zvr(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Tvr(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,c=Aq(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Evr(e,t,n){var r=n.axesInfo=[];ye(t,function(i,o){var a=i.axisPointerModel.option,s=e[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function Rvr(e,t,n,r){if(G7(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Ivr(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=fje(r)[i]||{},a=fje(r)[i]={};ye(e,function(c,u){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&ye(d.seriesDataIndices,function(p){var h=p.seriesIndex+" | "+p.dataIndex;a[h]=p})});var s=[],l=[];ye(o,function(c,u){!a[u]&&l.push(c)}),ye(a,function(c,u){!o[u]&&s.push(c)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Pvr(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function mje(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function G7(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function ej(e){X3.registerAxisPointerClass("CartesianAxisPointer",mvr),e.registerComponentModel(bvr),e.registerComponentView(Svr),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Ht(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=j0r(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Avr)}function Dvr(e){Si(R2t),Si(ej)}var kvr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,c=l.getOtherAxis(s),u=c.getExtent(),d=s.dataToCoord(r),p=o.get("type");if(p&&p!=="none"){var h=YAe(o),g=_vr[p](s,l,d,u);g.style=h,n.graphicKey=g.type,n.pointer=g}var m=o.get(["label","margin"]),v=Lvr(r,i,o,l,m);Qyt(n,i,o,a,v)},t})(XAe);function Lvr(e,t,n,r,i){var o=t.axis,a=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),c,u,d;if(o.dim==="radius"){var p=gp();_w(p,p,s),Sm(p,p,[r.cx,r.cy]),c=mm([a,-i],p);var h=t.getModel("axisLabel").get("rotate")||0,g=u1.innerTextLayout(s,h*Math.PI/180,-1);u=g.textAlign,d=g.textVerticalAlign}else{var m=l[1];c=r.coordToPoint([m+i,a]);var v=r.cx,y=r.cy;u=Math.abs(c[0]-v)/m<.3?"center":c[0]>v?"left":"right",d=Math.abs(c[1]-y)/m<.3?"middle":c[1]>y?"top":"bottom"}return{position:c,align:u,verticalAlign:d}}var _vr={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:QAe(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),o=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:uje(t.cx,t.cy,r[0],r[1],(-n-i/2)*o,(-n+i/2)*o)}:{type:"Sector",shape:uje(t.cx,t.cy,n-i/2,n+i/2,0,Math.PI*2)}}},Nvr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(n){var r,i=this.ecModel;return i.eachComponent(n,function(o){o.getCoordSysModel()===this&&(r=o)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t})(Ri),ZAe=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",wc).models[0]},t.type="polarAxis",t})(Ri);jl(ZAe,hk);var Fvr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t})(ZAe),Wvr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t})(ZAe),JAe=(function(e){gt(t,e);function t(n,r){return e.call(this,"radius",n,r)||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t})(ng);JAe.prototype.dataToRadius=ng.prototype.dataToCoord;JAe.prototype.radiusToData=ng.prototype.coordToData;var qvr=mo(),eOe=(function(e){gt(t,e);function t(n,r){return e.call(this,"angle",n,r||[0,360])||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),i=n.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),c=Math.abs(l),u=_B(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(u.height,7),p=d/c;isNaN(p)&&(p=1/0);var h=Math.max(0,Math.floor(p)),g=qvr(n.model),m=g.lastAutoInterval,v=g.lastTickCount;return m!=null&&v!=null&&Math.abs(m-h)<=1&&Math.abs(v-a)<=1&&m>h?h=m:(g.lastTickCount=a,g.lastAutoInterval=h),h},t})(ng);eOe.prototype.dataToAngle=ng.prototype.dataToCoord;eOe.prototype.angleToData=ng.prototype.coordToData;var rMt=["radius","angle"],Bvr=(function(){function e(t){this.dimensions=rMt,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new JAe,this._angleAxis=new eOe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var n=this.pointToCoord(t);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var n="_"+t+"Axis";return this[n]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var n=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===t&&n.push(r),i.scale.type===t&&n.push(i),n},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var n=this._angleAxis;return t===n?this._radiusAxis:n},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var n=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},e.prototype.dataToPoint=function(t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],n),this._angleAxis.dataToAngle(t[1],n)])},e.prototype.pointToData=function(t,n){var r=this.pointToCoord(t);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},e.prototype.pointToCoord=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);i.inverse?a=s-360:s=a+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var c=Math.atan2(-r,n)/Math.PI*180,u=c<a?1:-1;c<a||c>s;)c+=u*360;return[l,c]},e.prototype.coordToPoint=function(t){var n=t[0],r=t[1]/180*Math.PI,i=Math.cos(r)*n+this.cx,o=-Math.sin(r)*n+this.cy;return[i,o]},e.prototype.getArea=function(){var t=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var i=t.getExtent(),o=Math.PI/180,a=1e-4;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:t.inverse,contain:function(s,l){var c=s-this.cx,u=l-this.cy,d=c*c+u*u,p=this.r,h=this.r0;return p!==h&&d-a<=p*p&&d+a>=h*h}}},e.prototype.convertToPixel=function(t,n,r){var i=vje(n);return i===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var i=vje(n);return i===this?this.pointToData(r):null},e})();function vje(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function jvr(e,t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight();e.cx=vn(r[0],i),e.cy=vn(r[1],o);var a=e.getRadiusAxis(),s=Math.min(i,o)/2,l=t.get("radius");l==null?l=[0,"100%"]:Ht(l)||(l=[0,l]);var c=[vn(l[0],s),vn(l[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function Hvr(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();ye(EU(l,"radius"),function(c){i.scale.unionExtentFromData(l,c)}),ye(EU(l,"angle"),function(c){r.scale.unionExtentFromData(l,c)})}}),Qz(r.scale,r.model),Qz(i.scale,i.model),r.type==="category"&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function Vvr(e){return e.mainType==="angleAxis"}function bje(e,t){var n;if(e.type=t.get("type"),e.scale=GB(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Vvr(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),i=(n=t.get("endAngle"))!==null&&n!==void 0?n:r+(e.inverse?-360:360);e.setExtent(r,i)}t.axis=e,e.model=t}var Gvr={dimensions:rMt,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,i){var o=new Bvr(i+"");o.update=Hvr;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=r.findAxisModel("radiusAxis"),c=r.findAxisModel("angleAxis");bje(a,l),bje(s,c),jvr(o,r,t),n.push(o),r.coordinateSystem=o,o.model=r}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",wc).models[0];r.coordinateSystem=i.coordinateSystem}}),n}},$vr=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function NV(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function FV(e){var t=e.getRadiusAxis();return t.inverse?0:1}function yje(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var Uvr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var i=n.axis,o=i.polar,a=o.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),c=Vt(i.getViewLabels(),function(u){u=Or(u);var d=i.scale,p=d.type==="ordinal"?d.getRawOrdinalNumber(u.tickValue):u.tickValue;return u.coord=i.dataToCoord(p),u});yje(c),yje(s),ye($vr,function(u){n.get([u,"show"])&&(!i.scale.isBlank()||u==="axisLine")&&Xvr[u](this.group,n,o,s,l,a,c)},this)}},t.type="angleAxis",t})(X3),Xvr={axisLine:function(e,t,n,r,i,o){var a=t.getModel(["axisLine","lineStyle"]),s=n.getAngleAxis(),l=Math.PI/180,c=s.getExtent(),u=FV(n),d=u?0:1,p,h=Math.abs(c[1]-c[0])===360?"Circle":"Arc";o[d]===0?p=new V3[h]({shape:{cx:n.cx,cy:n.cy,r:o[u],startAngle:-c[0]*l,endAngle:-c[1]*l,clockwise:s.inverse},style:a.getLineStyle(),z2:1,silent:!0}):p=new ZD({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[d]},style:a.getLineStyle(),z2:1,silent:!0}),p.style.fill=null,e.add(p)},axisTick:function(e,t,n,r,i,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[FV(n)],c=Vt(r,function(u){return new Jc({shape:NV(n,[l,l+s],u.coord)})});e.add(Xp(c,{style:br(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),c=o[FV(n)],u=[],d=0;d<i.length;d++)for(var p=0;p<i[d].length;p++)u.push(new Jc({shape:NV(n,[c,c+l],i[d][p].coord)}));e.add(Xp(u,{style:br(s.getModel("lineStyle").getLineStyle(),br(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),c=l.get("margin"),u=t.get("triggerEvent");ye(a,function(d,p){var h=l,g=d.tickValue,m=o[FV(n)],v=n.coordToPoint([m+c,d.coord]),y=n.cx,M=n.cy,C=Math.abs(v[0]-y)/m<.3?"center":v[0]>y?"left":"right",x=Math.abs(v[1]-M)/m<.3?"middle":v[1]>M?"top":"bottom";if(s&&s[g]){var w=s[g];xr(w)&&w.textStyle&&(h=new _o(w.textStyle,l,l.ecModel))}var S=new oo({silent:u1.isLabelSilent(t),style:Za(h,{x:v[0],y:v[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:C,verticalAlign:x})});if(e.add(S),u){var A=u1.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=d.rawLabel,_r(S).eventData=A}},this)},splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=0;d<r.length;d++){var p=c++%l.length;u[p]=u[p]||[],u[p].push(new Jc({shape:NV(n,o,r[d].coord)}))}for(var d=0;d<u.length;d++)e.add(Xp(u[d],{style:br({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],c=0;c<i.length;c++)for(var u=0;u<i[c].length;u++)l.push(new Jc({shape:NV(n,o,i[c][u].coord)}));e.add(Xp(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,o){if(r.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=Math.PI/180,p=-r[0].coord*d,h=Math.min(o[0],o[1]),g=Math.max(o[0],o[1]),m=t.get("clockwise"),v=1,y=r.length;v<=y;v++){var M=v===y?r[0].coord:r[v].coord,C=c++%l.length;u[C]=u[C]||[],u[C].push(new A0({shape:{cx:n.cx,cy:n.cy,r0:h,r:g,startAngle:p,endAngle:-M*d,clockwise:m},silent:!0})),p=-M*d}for(var v=0;v<u.length;v++)e.add(Xp(u[v],{style:br({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}},Yvr=["axisLine","axisTickLabel","axisName"],Kvr=["splitLine","splitArea","minorSplitLine"],Qvr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var i=this._axisGroup,o=this._axisGroup=new Ir;this.group.add(o);var a=n.axis,s=a.polar,l=s.getAngleAxis(),c=a.getTicksCoords(),u=a.getMinorTicksCoords(),d=l.getExtent()[0],p=a.getExtent(),h=Jvr(s,n,d),g=new u1(n,h);ye(Yvr,g.add,g),o.add(g.getGroup()),jB(i,o,n),ye(Kvr,function(m){n.get([m,"show"])&&!a.scale.isBlank()&&Zvr[m](this.group,n,s,d,p,c,u)},this)}},t.type="radiusAxis",t})(X3),Zvr={splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),c=0,u=n.getAngleAxis(),d=Math.PI/180,p=u.getExtent(),h=Math.abs(p[1]-p[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],m=0;m<o.length;m++){var v=c++%l.length;g[v]=g[v]||[],g[v].push(new V3[h]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[m].coord,0),startAngle:-p[0]*d,endAngle:-p[1]*d,clockwise:u.inverse}}))}for(var m=0;m<g.length;m++)e.add(Xp(g[m],{style:br({stroke:l[m%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,o,a){if(a.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),c=[],u=0;u<a.length;u++)for(var d=0;d<a[u].length;d++)c.push(new e2({shape:{cx:n.cx,cy:n.cy,r:a[u][d].coord}}));e.add(Xp(c,{style:br({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,o){if(o.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=o[0].coord,p=1;p<o.length;p++){var h=c++%l.length;u[h]=u[h]||[],u[h].push(new A0({shape:{cx:n.cx,cy:n.cy,r0:d,r:o[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),d=o[p].coord}for(var p=0;p<u.length;p++)e.add(Xp(u[p],{style:br({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}};function Jvr(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function iMt(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function oMt(e,t){return t.dim+e.model.componentIndex}function ebr(e,t,n){var r={},i=tbr(ko(t.getSeriesByType(e),function(o){return!t.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(o){if(o.coordinateSystem.type==="polar"){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),c=oMt(s,l),u=iMt(o),d=i[c][u],p=d.offset,h=d.width,g=s.getOtherAxis(l),m=o.coordinateSystem.cx,v=o.coordinateSystem.cy,y=o.get("barMinHeight")||0,M=o.get("barMinAngle")||0;r[u]=r[u]||[];for(var C=a.mapDimension(g.dim),x=a.mapDimension(l.dim),w=aM(a,C),S=l.dim!=="radius"||!o.get("roundCap",!0),A=g.model,z=A.get("startValue"),O=g.dataToCoord(z||0),T=0,I=a.count();T<I;T++){var P=a.get(C,T),N=a.get(x,T),F=P>=0?"p":"n",L=O;w&&(r[u][N]||(r[u][N]={p:O,n:O}),L=r[u][N][F]);var W=void 0,H=void 0,j=void 0,G=void 0;if(g.dim==="radius"){var q=g.dataToCoord(P)-O,$=l.dataToCoord(N);Math.abs(q)<y&&(q=(q<0?-1:1)*y),W=L,H=L+q,j=$-p,G=j-h,w&&(r[u][N][F]=H)}else{var U=g.dataToCoord(P,S)-O,X=l.dataToCoord(N);Math.abs(U)<M&&(U=(U<0?-1:1)*M),W=X+p,H=W+h,j=L,G=L+U,w&&(r[u][N][F]=G)}a.setItemLayout(T,{cx:m,cy:v,r0:W,r:H,startAngle:-j*Math.PI/180,endAngle:-G*Math.PI/180,clockwise:j>=G})}}})}function tbr(e){var t={};ye(e,function(r,i){var o=r.getData(),a=r.coordinateSystem,s=a.getBaseAxis(),l=oMt(a,s),c=s.getExtent(),u=s.type==="category"?s.getBandWidth():Math.abs(c[1]-c[0])/o.count(),d=t[l]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},p=d.stacks;t[l]=d;var h=iMt(r);p[h]||d.autoWidthCount++,p[h]=p[h]||{width:0,maxWidth:0};var g=vn(r.get("barWidth"),u),m=vn(r.get("barMaxWidth"),u),v=r.get("barGap"),y=r.get("barCategoryGap");g&&!p[h].width&&(g=Math.min(d.remainedWidth,g),p[h].width=g,d.remainedWidth-=g),m&&(p[h].maxWidth=m),v!=null&&(d.gap=v),y!=null&&(d.categoryGap=y)});var n={};return ye(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=vn(r.categoryGap,a),l=vn(r.gap,1),c=r.remainedWidth,u=r.autoWidthCount,d=(c-s)/(u+(u-1)*l);d=Math.max(d,0),ye(o,function(m,v){var y=m.maxWidth;y&&y<d&&(y=Math.min(y,c),m.width&&(y=Math.min(y,m.width)),c-=y,m.width=y,u--)}),d=(c-s)/(u+(u-1)*l),d=Math.max(d,0);var p=0,h;ye(o,function(m,v){m.width||(m.width=d),h=m,p+=m.width*(1+l)}),h&&(p-=h.width*l);var g=-p/2;ye(o,function(m,v){n[i][v]=n[i][v]||{offset:g,width:m.width},g+=m.width*(1+l)})}),n}var nbr={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},rbr={splitNumber:5},ibr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="polar",t})(cs);function obr(e){Si(ej),X3.registerAxisPointerClass("PolarAxisPointer",kvr),e.registerCoordinateSystem("polar",Gvr),e.registerComponentModel(Nvr),e.registerComponentView(ibr),_P(e,"angle",Fvr,nbr),_P(e,"radius",Wvr,rbr),e.registerComponentView(Uvr),e.registerComponentView(Qvr),e.registerLayout(Zr(ebr,"bar"))}function Dve(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[a==="vertical"?c.vertical[o]:l[0],a==="horizontal"?c.horizontal[o]:l[3]];var u={horizontal:0,vertical:1};i.rotation=Math.PI/2*u[a];var d={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),xu(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=t.rotate;return p==null&&(p=e.get(["axisLabel","rotate"])),i.labelRotation=o==="top"?-p:p,i.z2=1,i}var abr=["axisLine","axisTickLabel","axisName"],sbr=["splitArea","splitLine"],lbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return t.prototype.render=function(n,r,i,o){var a=this.group;a.removeAll();var s=this._axisGroup;this._axisGroup=new Ir;var l=Dve(n),c=new u1(n,l);ye(abr,c.add,c),a.add(this._axisGroup),a.add(c.getGroup()),ye(sbr,function(u){n.get([u,"show"])&&cbr[u](this,this.group,this._axisGroup,n)},this),jB(s,this._axisGroup,n),e.prototype.render.call(this,n,r,i,o)},t.prototype.remove=function(){z2t(this)},t.type="singleAxis",t})(X3),cbr={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),c=r.coordinateSystem.getRect(),u=i.isHorizontal(),d=[],p=0,h=i.getTicksCoords({tickModel:o}),g=[],m=[],v=0;v<h.length;++v){var y=i.toGlobalCoord(h[v].coord);u?(g[0]=y,g[1]=c.y,m[0]=y,m[1]=c.y+c.height):(g[0]=c.x,g[1]=y,m[0]=c.x+c.width,m[1]=y);var M=new Jc({shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},silent:!0});PP(M.shape,l);var C=p++%s.length;d[C]=d[C]||[],d[C].push(M)}for(var x=a.getLineStyle(["color"]),v=0;v<d.length;++v)t.add(Xp(d[v],{style:br({stroke:s[v%s.length]},x),silent:!0}))}},splitArea:function(e,t,n,r){O2t(e,n,r,r)}},$7=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t})(Ri);jl($7,hk.prototype);var ubr=(function(e){gt(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},t})(ng),aMt=["single"],dbr=(function(){function e(t,n,r){this.type="single",this.dimension="single",this.dimensions=aMt,this.axisPointerEnabled=!0,this.model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var i=this.dimension,o=new ubr(i,GB(t),[0,0],t.get("type"),t.get("position")),a=o.type==="category";o.onBand=a&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},e.prototype.update=function(t,n){t.eachSeries(function(r){if(r.coordinateSystem===this){var i=r.getData();ye(i.mapDimensionsAll(this.dimension),function(o){this._axis.scale.unionExtentFromData(i,o)},this),Qz(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,n){this._rect=Ic({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,n=this._axis,r=n.isHorizontal(),i=r?[0,t.width]:[0,t.height],o=n.inverse?1:0;n.setExtent(i[o],i[1-o]),this._updateAxisTransform(n,r?t.x:t.y)},e.prototype._updateAxisTransform=function(t,n){var r=t.getExtent(),i=r[0]+r[1],o=t.isHorizontal();t.toGlobalCoord=o?function(a){return a+n}:function(a){return i-a+n},t.toLocalCoord=o?function(a){return a-n}:function(a){return i-a+n}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var n=this.getRect(),r=this.getAxis(),i=r.orient;return i==="horizontal"?r.contain(r.toLocalCoord(t[0]))&&t[1]>=n.y&&t[1]<=n.y+n.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=n.y&&t[0]<=n.y+n.height},e.prototype.pointToData=function(t){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var n=this.getAxis(),r=this.getRect(),i=[],o=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[o]=n.toGlobalCoord(n.dataToCoord(+t)),i[1-o]=o===0?r.y+r.height/2:r.x+r.width/2,i},e.prototype.convertToPixel=function(t,n,r){var i=Mje(n);return i===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var i=Mje(n);return i===this?this.pointToData(r):null},e})();function Mje(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function pbr(e,t){var n=[];return e.eachComponent("singleAxis",function(r,i){var o=new dbr(r,e,t);o.name="single_"+i,o.resize(r,t),r.coordinateSystem=o,n.push(o)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",wc).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),n}var hbr={create:pbr,dimensions:aMt},Cje=["x","y"],fbr=["width","height"],gbr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.coordinateSystem,c=$se(l,1-HU(s)),u=l.dataToPoint(r)[0],d=o.get("type");if(d&&d!=="none"){var p=YAe(o),h=mbr[d](s,u,c);h.style=p,n.graphicKey=h.type,n.pointer=h}var g=Dve(i);Jyt(r,n,g,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=Dve(r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=KAe(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.coordinateSystem,l=HU(a),c=$se(s,l),u=[n.x,n.y];u[l]+=r[l],u[l]=Math.min(c[1],u[l]),u[l]=Math.max(c[0],u[l]);var d=$se(s,1-l),p=(d[1]+d[0])/2,h=[p,p];return h[l]=u[l],{x:u[0],y:u[1],rotation:n.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t})(XAe),mbr={line:function(e,t,n){var r=QAe([t,n[0]],[t,n[1]],HU(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:eMt([t-r/2,n[0]],[r,i],HU(e))}}};function HU(e){return e.isHorizontal()?0:1}function $se(e,t){var n=e.getRect();return[n[Cje[t]],n[Cje[t]]+n[fbr[t]]]}var vbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t})(cs);function bbr(e){Si(ej),X3.registerAxisPointerClass("SingleAxisPointer",gbr),e.registerComponentView(vbr),e.registerComponentView(lbr),e.registerComponentModel($7),_P(e,"single",$7,$7.defaultOption),e.registerCoordinateSystem("single",hbr)}var ybr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,i){var o=ok(n);e.prototype.init.apply(this,arguments),xje(n,o)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),xje(this.option,n)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(Ri);function xje(e,t){var n=e.cellSize,r;Ht(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var i=Vt([0,1],function(o){return war(t,o)&&(r[o]="auto"),r[o]!=null&&r[o]!=="auto"});aw(e,t,{type:"box",ignoreSize:i})}var Mbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=this.group;o.removeAll();var a=n.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),c=r.getLocaleModel();this._renderDayRect(n,s,o),this._renderLines(n,s,l,o),this._renderYearText(n,s,l,o),this._renderMonthText(n,c,l,o),this._renderWeekText(n,c,s,l,o)},t.prototype._renderDayRect=function(n,r,i){for(var o=n.coordinateSystem,a=n.getModel("itemStyle").getItemStyle(),s=o.getCellWidth(),l=o.getCellHeight(),c=r.start.time;c<=r.end.time;c=o.getNextNDay(c,1).time){var u=o.dataToRect([c],!1).tl,d=new ao({shape:{x:u[0],y:u[1],width:s,height:l},cursor:"default",style:a});i.add(d)}},t.prototype._renderLines=function(n,r,i,o){var a=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),c=n.get(["splitLine","show"]),u=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,p=0;d.time<=r.end.time;p++){g(d.formatedDate),p===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}g(s.getNextNDay(r.end.time,1).formatedDate);function g(m){a._firstDayOfMonth.push(s.getDateInfo(m)),a._firstDayPoints.push(s.dataToRect([m],!1).tl);var v=a._getLinePointsOfOneWeek(n,m,i);a._tlpoints.push(v[0]),a._blpoints.push(v[v.length-1]),c&&a._drawSplitline(v,l,o)}c&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,u,i),l,o),c&&this._drawSplitline(a._getEdgesPoints(a._blpoints,u,i),l,o)},t.prototype._getEdgesPoints=function(n,r,i){var o=[n[0].slice(),n[n.length-1].slice()],a=i==="horizontal"?0:1;return o[0][a]=o[0][a]-r/2,o[1][a]=o[1][a]+r/2,o},t.prototype._drawSplitline=function(n,r,i){var o=new R0({z2:20,shape:{points:n},style:r});i.add(o)},t.prototype._getLinePointsOfOneWeek=function(n,r,i){for(var o=n.coordinateSystem,a=o.getDateInfo(r),s=[],l=0;l<7;l++){var c=o.getNextNDay(a.time,l),u=o.dataToRect([c.time],!1);s[2*c.day]=u.tl,s[2*c.day+1]=u[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(n,r){return Sn(n)&&n?yar(n,r):fr(n)?n(r):r.nameMap},t.prototype._yearTextPositionControl=function(n,r,i,o,a){var s=r[0],l=r[1],c=["center","bottom"];o==="bottom"?(l+=a,c=["center","top"]):o==="left"?s-=a:o==="right"?(s+=a,c=["center","top"]):l-=a;var u=0;return(o==="left"||o==="right")&&(u=Math.PI/2),{rotation:u,x:s,y:l,style:{align:c[0],verticalAlign:c[1]}}},t.prototype._renderYearText=function(n,r,i,o){var a=n.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=i!=="horizontal"?"top":"left");var c=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(c[0][0]+c[1][0])/2,d=(c[0][1]+c[1][1])/2,p=i==="horizontal"?0:1,h={top:[u,c[p][1]],bottom:[u,c[1-p][1]],left:[c[1-p][0],d],right:[c[p][0],d]},g=r.start.y;+r.end.y>+r.start.y&&(g=g+"-"+r.end.y);var m=a.get("formatter"),v={start:r.start.y,end:r.end.y,nameMap:g},y=this._formatterLabel(m,v),M=new oo({z2:30,style:Za(a,{text:y}),silent:a.get("silent")});M.attr(this._yearTextPositionControl(M,h[l],i,l,s)),o.add(M)}},t.prototype._monthTextPositionControl=function(n,r,i,o,a){var s="left",l="top",c=n[0],u=n[1];return i==="horizontal"?(u=u+a,r&&(s="center"),o==="start"&&(l="bottom")):(c=c+a,r&&(l="middle"),o==="start"&&(s="right")),{x:c,y:u,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(n,r,i,o){var a=n.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),c=a.get("position"),u=a.get("align"),d=[this._tlpoints,this._blpoints];(!s||Sn(s))&&(s&&(r=qme(s)||r),s=r.get(["time","monthAbbr"])||[]);var p=c==="start"?0:1,h=i==="horizontal"?0:1;l=c==="start"?-l:l;for(var g=u==="center",m=a.get("silent"),v=0;v<d[p].length-1;v++){var y=d[p][v].slice(),M=this._firstDayOfMonth[v];if(g){var C=this._firstDayPoints[v];y[h]=(C[h]+d[0][v+1][h])/2}var x=a.get("formatter"),w=s[+M.m-1],S={yyyy:M.y,yy:(M.y+"").slice(2),MM:M.m,M:+M.m,nameMap:w},A=this._formatterLabel(x,S),z=new oo({z2:30,style:Nt(Za(a,{text:A}),this._monthTextPositionControl(y,g,i,c,l)),silent:m});o.add(z)}}},t.prototype._weekTextPositionControl=function(n,r,i,o,a){var s="center",l="middle",c=n[0],u=n[1],d=i==="start";return r==="horizontal"?(c=c+o+(d?1:-1)*a[0]/2,s=d?"right":"left"):(u=u+o+(d?1:-1)*a[1]/2,l=d?"bottom":"top"),{x:c,y:u,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(n,r,i,o,a){var s=n.getModel("dayLabel");if(s.get("show")){var l=n.coordinateSystem,c=s.get("position"),u=s.get("nameMap"),d=s.get("margin"),p=l.getFirstDayOfWeek();if(!u||Sn(u)){u&&(r=qme(u)||r);var h=r.get(["time","dayOfWeekShort"]);u=h||Vt(r.get(["time","dayOfWeekAbbr"]),function(S){return S[0]})}var g=l.getNextNDay(i.end.time,7-i.lweek).time,m=[l.getCellWidth(),l.getCellHeight()];d=vn(d,Math.min(m[1],m[0])),c==="start"&&(g=l.getNextNDay(i.start.time,-(7+i.fweek)).time,d=-d);for(var v=s.get("silent"),y=0;y<7;y++){var M=l.getNextNDay(g,y),C=l.dataToRect([M.time],!1).center,x=y;x=Math.abs((y+p)%7);var w=new oo({z2:30,style:Nt(Za(s,{text:u[x]}),this._weekTextPositionControl(C,o,c,d,m)),silent:v});a.add(w)}}},t.type="calendar",t})(cs),Use=864e5,Cbr=(function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=dh(t);var n=t.getFullYear(),r=t.getMonth()+1,i=r<10?"0"+r:""+r,o=t.getDate(),a=o<10?"0"+o:""+o,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:i,d:a,day:s,time:t.getTime(),formatedDate:n+"-"+i+"-"+a,date:t}},e.prototype.getNextNDay=function(t,n){return n=n||0,n===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+n),this.getDateInfo(t))},e.prototype.update=function(t,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];ye([0,1],function(d){u(o,d)&&(a[i[d]]=o[d]*s[d])});var l={width:n.getWidth(),height:n.getHeight()},c=this._rect=Ic(a,l);ye([0,1],function(d){u(o,d)||(o[d]=c[i[d]]/s[d])});function u(d,p){return d[p]!=null&&d[p]!=="auto"}this._sw=o[0],this._sh=o[1]},e.prototype.dataToPoint=function(t,n){Ht(t)&&(t=t[0]),n==null&&(n=!0);var r=this.getDateInfo(t),i=this._rangeInfo,o=r.formatedDate;if(n&&!(r.time>=i.start.time&&r.time<i.end.time+Use))return[NaN,NaN];var a=r.day,s=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var n=this.pointToDate(t);return n&&n.time},e.prototype.dataToRect=function(t,n){var r=this.dataToPoint(t,n);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var n=Math.floor((t[0]-this._rect.x)/this._sw)+1,r=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,n-1,i):this._getDateByWeeksAndDay(n,r-1,i)},e.prototype.convertToPixel=function(t,n,r){var i=wje(n);return i===this?i.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var i=wje(n);return i===this?i.pointToData(r):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),n;if(Ht(t)&&t.length===1&&(t=t[0]),Ht(t))n=t;else{var r=t.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),o=i.date;o.setMonth(o.getMonth()+1);var a=this.getNextNDay(o,-1);n=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return t;var s=this._getRangeInfo(n);return s.start.time>s.end.time&&n.reverse(),n},e.prototype._getRangeInfo=function(t){var n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var i=Math.floor(n[1].time/Use)-Math.floor(n[0].time/Use)+1,o=new Date(n[0].time),a=o.getDate(),s=n[1].date.getDate();o.setDate(a+i-1);var l=o.getDate();if(l!==s)for(var c=o.getTime()-n[1].time>0?1:-1;(l=o.getDate())!==s&&(o.getTime()-n[1].time)*c>0;)i-=c,o.setDate(l-c);var u=Math.floor((i+n[0].day+6)/7),d=r?-u+1:u-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:d,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(t,n,r){var i=this._getRangeInfo(r);if(t>i.weeks||t===0&&n<i.fweek||t===i.weeks&&n>i.lweek)return null;var o=(t-1)*7-i.fweek+n,a=new Date(i.start.time);return a.setDate(+i.start.d+o),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(i){var o=new e(i);r.push(o),i.coordinateSystem=o}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e})();function wje(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}function xbr(e){e.registerComponentModel(ybr),e.registerComponentView(Mbr),e.registerCoordinateSystem("calendar",Cbr)}function wbr(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Sje(e,t){var n;return ye(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function Sbr(e,t,n){var r=Nt({},n),i=e[t],o=n.$action||"merge";o==="merge"?i?(ei(i,r,!0),aw(i,r,{ignoreSize:!0}),Ymt(n,i),WV(n,i),WV(n,i,"shape"),WV(n,i,"style"),WV(n,i,"extra"),n.clipPath=i.clipPath):e[t]=r:o==="replace"?e[t]=r:o==="remove"&&i&&(e[t]=null)}var sMt=["transition","enterFrom","leaveTo"],Abr=sMt.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function WV(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?sMt:Abr,i=0;i<r.length;i++){var o=r[i];e[o]==null&&t[o]!=null&&(e[o]=t[o])}}function Obr(e,t){if(e&&(e.hv=t.hv=[Sje(t,["left","right"]),Sje(t,["top","bottom"])],e.type==="group")){var n=e,r=t;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var zbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(n,r){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,n,r),this.option.elements=i},t.prototype.optionUpdated=function(n,r){var i=this.option,o=(r?i:n).elements,a=i.elements=r?[]:i.elements,s=[];this._flatten(o,s,null);var l=Ugt(a,s,"normalMerge"),c=this._elOptionsToUpdate=[];ye(l,function(u,d){var p=u.newOption;p&&(c.push(p),wbr(u,p),Sbr(a,d,p),Obr(a[d],p))},this),i.elements=ko(a,function(u){return u&&delete u.$action,u!=null})},t.prototype._flatten=function(n,r,i){ye(n,function(o){if(o){i&&(o.parentOption=i),r.push(o);var a=o.children;a&&a.length&&this._flatten(a,r,o),delete o.children}},this)},t.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},t.type="graphic",t.defaultOption={elements:[]},t})(Ri),Aje={path:null,compoundPath:null,group:Ir,image:Du,text:oo},Jh=mo(),Tbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=Yn()},t.prototype.render=function(n,r,i){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,i)},t.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var i=this._elMap,o=this.group,a=n.get("z"),s=n.get("zlevel");ye(r,function(l){var c=Zc(l.id,null),u=c!=null?i.get(c):null,d=Zc(l.parentId,null),p=d!=null?i.get(d):o,h=l.type,g=l.style;h==="text"&&g&&l.hv&&l.hv[1]&&(g.textVerticalAlign=g.textBaseline=g.verticalAlign=g.align=null);var m=l.textContent,v=l.textConfig;if(g&&Byt(g,h,!!v,!!m)){var y=jyt(g,h,!0);!v&&y.textConfig&&(v=l.textConfig=y.textConfig),!m&&y.textContent&&(m=y.textContent)}var M=Ebr(l),C=l.$action||"merge",x=C==="merge",w=C==="replace";if(x){var S=!u,A=u;S?A=Oje(c,p,l.type,i):(A&&(Jh(A).isNew=!1),$yt(A)),A&&(V7(A,M,n,{isInit:S}),zje(A,l,a,s))}else if(w){U7(u,l,i,n);var z=Oje(c,p,l.type,i);z&&(V7(z,M,n,{isInit:!0}),zje(z,l,a,s))}else C==="remove"&&(Vyt(u,l),U7(u,l,i,n));var O=i.get(c);if(O&&m)if(x){var T=O.getTextContent();T?T.attr(m):O.setTextContent(new oo(m))}else w&&O.setTextContent(new oo(m));if(O){var I=l.clipPath;if(I){var P=I.type,N=void 0,S=!1;if(x){var F=O.getClipPath();S=!F||Jh(F).type!==P,N=S?kve(P):F}else w&&(S=!0,N=kve(P));O.setClipPath(N),V7(N,I,n,{isInit:S}),BU(N,I.keyframeAnimation,n)}var L=Jh(O);O.setTextConfig(v),L.option=l,Rbr(O,n,l),H3({el:O,componentModel:n,itemName:O.name,itemTooltipOption:l.tooltip}),BU(O,l.keyframeAnimation,n)}})}},t.prototype._relocate=function(n,r){for(var i=n.option.elements,o=this.group,a=this._elMap,s=r.getWidth(),l=r.getHeight(),c=["x","y"],u=0;u<i.length;u++){var d=i[u],p=Zc(d.id,null),h=p!=null?a.get(p):null;if(!(!h||!h.isGroup)){var g=h.parent,m=g===o,v=Jh(h),y=Jh(g);v.width=vn(v.option.width,m?s:y.width)||0,v.height=vn(v.option.height,m?l:y.height)||0}}for(var u=i.length-1;u>=0;u--){var d=i[u],p=Zc(d.id,null),h=p!=null?a.get(p):null;if(h){var g=h.parent,y=Jh(g),M=g===o?{width:s,height:l}:{width:y.width,height:y.height},C={},x=MJ(h,d,M,null,{hv:d.hv,boundingMode:d.bounding},C);if(!Jh(h).isNew&&x){for(var w=d.transition,S={},A=0;A<c.length;A++){var z=c[A],O=C[z];w&&(iz(w)||hi(w,z)>=0)?S[z]=O:h[z]=O}So(h,S,n,0)}else h.attr(C)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(i){U7(i,Jh(i).option,r,n._lastGraphicModel)}),this._elMap=Yn()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t})(cs);function kve(e){var t=Fn(Aje,e)?Aje[e]:hJ(e),n=new t({});return Jh(n).type=e,n}function Oje(e,t,n,r){var i=kve(n);return t.add(i),r.set(e,i),Jh(i).id=e,Jh(i).isNew=!0,i}function U7(e,t,n,r){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(o){U7(o,t,n,r)}),NJ(e,t,r),n.removeKey(Jh(e).id))}function zje(e,t,n,r){e.isGroup||ye([["cursor",qf.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(i){var o=i[0];Fn(t,o)?e[o]=Xr(t[o],i[1]):e[o]==null&&(e[o]=i[1])}),ye(ji(t),function(i){if(i.indexOf("on")===0){var o=t[i];e[i]=fr(o)?o:null}}),Fn(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Ebr(e){return e=Nt({},e),ye(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Xmt),function(t){delete e[t]}),e}function Rbr(e,t,n){var r=_r(e).eventData;!e.silent&&!e.ignore&&!r&&(r=_r(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function Ibr(e){e.registerComponentModel(zbr),e.registerComponentView(Tbr),e.registerPreprocessor(function(t){var n=t.graphic;Ht(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var Tje=["x","y","radius","angle","single"],Pbr=["cartesian2d","polar","singleAxis"];function Dbr(e){var t=e.get("coordinateSystem");return hi(Pbr,t)>=0}function mx(e){return e+"Axis"}function kbr(e,t){var n=Yn(),r=[],i=Yn();e.eachComponent({mainType:"dataZoom",query:t},function(u){i.get(u.uid)||s(u)});var o;do o=!1,e.eachComponent("dataZoom",a);while(o);function a(u){!i.get(u.uid)&&l(u)&&(s(u),o=!0)}function s(u){i.set(u.uid,!0),r.push(u),c(u)}function l(u){var d=!1;return u.eachTargetAxis(function(p,h){var g=n.get(p);g&&g[h]&&(d=!0)}),d}function c(u){u.eachTargetAxis(function(d,p){(n.get(d)||n.set(d,[]))[p]=!0})}return r}function lMt(e){var t=e.ecModel,n={infoList:[],infoMap:Yn()};return e.eachTargetAxis(function(r,i){var o=t.getComponent(mx(r),i);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=n.infoMap.get(s);l||(l={model:a,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(o)}}}),n}var Xse=(function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e})(),Iq=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,i){var o=Eje(n);this.settledOption=o,this.mergeDefaultAndTheme(n,i),this._doInit(o)},t.prototype.mergeOption=function(n){var r=Eje(n);ei(this.option,n,!0),ei(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var i=this.settledOption;ye([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(r[o[0]]=i[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Yn(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return ye(Tje,function(i){var o=this.getReferringComponents(mx(i),cir);if(o.specified){r=!0;var a=new Xse;ye(o.models,function(s){a.add(s.componentIndex)}),n.set(i,a)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var i=this.ecModel,o=!0;if(o){var a=r==="vertical"?"y":"x",s=i.findComponents({mainType:a+"Axis"});l(s,a)}if(o){var s=i.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===r}});l(s,"single")}function l(c,u){var d=c[0];if(d){var p=new Xse;if(p.add(d.componentIndex),n.set(u,p),o=!1,u==="x"||u==="y"){var h=d.getReferringComponents("grid",wc).models[0];h&&ye(c,function(g){d.componentIndex!==g.componentIndex&&h===g.getReferringComponents("grid",wc).models[0]&&p.add(g.componentIndex)})}}}o&&ye(Tje,function(c){if(o){var u=i.findComponents({mainType:mx(c),filter:function(p){return p.get("type",!0)==="category"}});if(u[0]){var d=new Xse;d.add(u[0].componentIndex),n.set(c,d),o=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,i=this.get("rangeMode");ye([["start","startValue"],["end","endValue"]],function(o,a){var s=n[o[0]]!=null,l=n[o[1]]!=null;s&&!l?r[a]="percent":!s&&l?r[a]="value":i?r[a]=i[a]:s&&(r[a]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,i){n==null&&(n=this.ecModel.getComponent(mx(r),i))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(i,o){ye(i.indexList,function(a){n.call(r,o,a)})})},t.prototype.getAxisProxy=function(n,r){var i=this.getAxisModel(n,r);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var i=this._targetAxisInfoMap.get(n);if(i&&i.indexMap[r])return this.ecModel.getComponent(mx(n),r)},t.prototype.setRawRange=function(n){var r=this.option,i=this.settledOption;ye([["start","startValue"],["end","endValue"]],function(o){(n[o[0]]!=null||n[o[1]]!=null)&&(r[o[0]]=i[o[0]]=n[o[0]],r[o[1]]=i[o[1]]=n[o[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;ye(["start","startValue","end","endValue"],function(i){r[i]=n[i]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),o=0;o<i.length;o++)for(var a=i[o],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var c=this.getAxisProxy(a,s.indexList[l]);if(c.hostedBy(this))return c;r||(r=c)}return r},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(Ri);function Eje(e){var t={};return ye(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var Lbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t})(Iq),tOe=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){this.dataZoomModel=n,this.ecModel=r,this.api=i},t.type="dataZoom",t})(cs),_br=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t})(tOe),wR=ye,Rje=Jp,Nbr=(function(){function e(t,n,r,i){this._dimName=t,this._axisIndex=n,this.ecModel=i,this._dataZoomModel=r}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(n){if(Dbr(n)){var r=mx(this._dimName),i=n.getReferringComponents(r,wc).models[0];i&&this._axisIndex===i.componentIndex&&t.push(n)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Or(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],c;wR(["start","end"],function(p,h){var g=t[p],m=t[p+"Value"];o[h]==="percent"?(g==null&&(g=a[h]),m=i.parse(Yo(g,a,n))):(c=!0,m=m==null?n[h]:i.parse(m),g=Yo(m,n,a)),l[h]=m==null||isNaN(m)?n[h]:m,s[h]=g==null||isNaN(g)?a[h]:g}),Rje(l),Rje(s);var u=this._minMaxSpan;c?d(l,s,n,a,!1):d(s,l,a,n,!0);function d(p,h,g,m,v){var y=v?"Span":"ValueSpan";Y3(0,p,g,"all",u["min"+y],u["max"+y]);for(var M=0;M<2;M++)h[M]=Yo(p[M],g,m,!0),v&&(h[M]=i.parse(h[M]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=Fbr(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(t.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,n){if(t!==this._dataZoomModel)return;var r=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;if(o==="none")return;wR(i,function(l){var c=l.getData(),u=c.mapDimensionsAll(r);if(u.length){if(o==="weakFilter"){var d=c.getStore(),p=Vt(u,function(h){return c.getDimensionIndex(h)},c);c.filterSelf(function(h){for(var g,m,v,y=0;y<u.length;y++){var M=d.get(p[y],h),C=!isNaN(M),x=M<a[0],w=M>a[1];if(C&&!x&&!w)return!0;C&&(v=!0),x&&(g=!0),w&&(m=!0)}return v&&g&&m})}else wR(u,function(h){if(o==="empty")l.setData(c=c.map(h,function(m){return s(m)?m:NaN}));else{var g={};g[h]=a,c.selectRange(g)}});wR(u,function(h){c.setApproximateExtent(a,h)})}});function s(l){return l>=a[0]&&l<=a[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;wR(["min","max"],function(i){var o=n.get(i+"Span"),a=n.get(i+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=Yo(r[0]+a,r,[0,100],!0):o!=null&&(a=Yo(o,[0,100],r,!0)-r[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=a},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var i=iSe(r,[0,500]);i=Math.min(i,20);var o=t.axis.scale.rawExtentInfo;n[0]!==0&&o.setDeterminedMinMax("min",+r[0].toFixed(i)),n[1]!==100&&o.setDeterminedMinMax("max",+r[1].toFixed(i)),o.freeze()}},e})();function Fbr(e,t,n){var r=[1/0,-1/0];wR(n,function(a){rur(r,a.getData(),t)});var i=e.getAxisModel(),o=Obt(i.axis.scale,i,r).calculate();return[o.min,o.max]}var Wbr={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=e.getComponent(mx(a),s);i(a,s,l,o)})})}t(function(i,o,a,s){a.__dzAxisProxy=null});var n=[];t(function(i,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new Nbr(i,o,s,e),n.push(a.__dzAxisProxy))});var r=Yn();return ye(n,function(i){ye(i.getTargetSeriesModels(),function(o){r.set(o.uid,o)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).reset(n)}),n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),o=r.getDataValueWindow();n.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function qbr(e){e.registerAction("dataZoom",function(t,n){var r=kbr(n,t);ye(r,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Ije=!1;function nOe(e){Ije||(Ije=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Wbr),qbr(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Bbr(e){e.registerComponentModel(Lbr),e.registerComponentView(_br),nOe(e)}var cf=(function(){function e(){}return e})(),cMt={};function SR(e,t){cMt[e]=t}function uMt(e){return cMt[e]}var jbr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;ye(this.option.feature,function(r,i){var o=uMt(i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(n)),ei(r,o.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t})(Ri);function Hbr(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Ic(r,o,i);tz(t.get("orient"),e,t.get("itemGap"),a.width,a.height),MJ(e,r,o,i)}function dMt(e,t){var n=G3(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new ao({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Vbr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,i,o){var a=this.group;if(a.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",c=n.get("feature")||{},u=this._features||(this._features={}),d=[];ye(c,function(g,m){d.push(m)}),new oM(this._featureNames||[],d).add(p).update(p).remove(Zr(p,null)).execute(),this._featureNames=d;function p(g,m){var v=d[g],y=d[m],M=c[v],C=new _o(M,n,n.ecModel),x;if(o&&o.newTitle!=null&&o.featureName===v&&(M.title=o.newTitle),v&&!y){if(Gbr(v))x={onclick:C.option.onclick,featureName:v};else{var w=uMt(v);if(!w)return;x=new w}u[v]=x}else if(x=u[y],!x)return;x.uid=ik("toolbox-feature"),x.model=C,x.ecModel=r,x.api=i;var S=x instanceof cf;if(!v&&y){S&&x.dispose&&x.dispose(r,i);return}if(!C.get("show")||S&&x.unusable){S&&x.remove&&x.remove(r,i);return}h(C,x,v),C.setIconStatus=function(A,z){var O=this.option,T=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[A]=z,T[A]&&(z==="emphasis"?rM:iM)(T[A])},x instanceof cf&&x.render&&x.render(C,r,i,o)}function h(g,m,v){var y=g.getModel("iconStyle"),M=g.getModel(["emphasis","iconStyle"]),C=m instanceof cf&&m.getIcons?m.getIcons():g.get("icon"),x=g.get("title")||{},w,S;Sn(C)?(w={},w[v]=C):w=C,Sn(x)?(S={},S[v]=x):S=x;var A=g.iconPaths={};ye(w,function(z,O){var T=nk(z,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(y.getItemStyle());var I=T.ensureState("emphasis");I.style=M.getItemStyle();var P=new oo({style:{text:S[O],align:M.get("textAlign"),borderRadius:M.get("textBorderRadius"),padding:M.get("textPadding"),fill:null,font:SSe({fontStyle:M.get("textFontStyle"),fontFamily:M.get("textFontFamily"),fontSize:M.get("textFontSize"),fontWeight:M.get("textFontWeight")},r)},ignore:!0});T.setTextContent(P),H3({el:T,componentModel:n,itemName:O,formatterParamsExtra:{title:S[O]}}),T.__title=S[O],T.on("mouseover",function(){var N=M.getItemStyle(),F=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:M.get("textFill")||N.fill||N.stroke||"#000",backgroundColor:M.get("textBackgroundColor")}),T.setTextConfig({position:M.get("textPosition")||F}),P.ignore=!n.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",O])!=="emphasis"&&i.leaveEmphasis(this),P.hide()}),(g.get(["iconStatus",O])==="emphasis"?rM:iM)(T),a.add(T),T.on("click",En(m.onclick,m,r,i,O)),A[O]=T})}Hbr(a,n,i),a.add(dMt(a.getBoundingRect(),n)),l||a.eachChild(function(g){var m=g.__title,v=g.ensureState("emphasis"),y=v.textConfig||(v.textConfig={}),M=g.getTextContent(),C=M&&M.ensureState("emphasis");if(C&&!fr(C)&&m){var x=C.style||(C.style={}),w=_B(m,oo.makeFont(x)),S=g.x+a.x,A=g.y+a.y+s,z=!1;A+w.height>i.getHeight()&&(y.position="top",z=!0);var O=z?-5-w.height:s+10;S+w.width/2>i.getWidth()?(y.position=["100%",O],x.align="right"):S-w.width/2<0&&(y.position=[0,O],x.align="left")}})},t.prototype.updateView=function(n,r,i,o){ye(this._features,function(a){a instanceof cf&&a.updateView&&a.updateView(a.model,r,i,o)})},t.prototype.remove=function(n,r){ye(this._features,function(i){i instanceof cf&&i.remove&&i.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){ye(this._features,function(i){i instanceof cf&&i.dispose&&i.dispose(n,r)})},t.type="toolbox",t})(cs);function Gbr(e){return e.indexOf("my")===0}var $br=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){var i=this.model,o=i.get("name")||n.get("title.0.text")||"echarts",a=r.getZr().painter.getType()==="svg",s=a?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),c=Ii.browser;if(typeof MouseEvent=="function"&&(c.newEdge||!c.ie&&!c.edge)){var u=document.createElement("a");u.download=o+"."+s,u.target="_blank",u.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||a){var p=l.split(","),h=p[0].indexOf("base64")>-1,g=a?decodeURIComponent(p[1]):p[1];h&&(g=window.atob(g));var m=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var v=g.length,y=new Uint8Array(v);v--;)y[v]=g.charCodeAt(v);var M=new Blob([y]);window.navigator.msSaveOrOpenBlob(M,m)}else{var C=document.createElement("iframe");document.body.appendChild(C);var x=C.contentWindow,w=x.document;w.open("image/svg+xml","replace"),w.write(g),w.close(),x.focus(),w.execCommand("SaveAs",!0,m),document.body.removeChild(C)}}else{var S=i.get("lang"),A='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',z=window.open();z.document.write(A),z.document.title=o}},t.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t})(cf),Pje="__ec_magicType_stack__",Ubr=[["line","bar"],["stack"]],Xbr=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),i={};return ye(n.get("type"),function(o){r[o]&&(i[o]=r[o])}),i},t.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,i){var o=this.model,a=o.get(["seriesIndex",i]);if(Dje[i]){var s={series:[]},l=function(d){var p=d.subType,h=d.id,g=Dje[i](p,h,d,o);g&&(br(g,d.option),s.series.push(g));var m=d.coordinateSystem;if(m&&m.type==="cartesian2d"&&(i==="line"||i==="bar")){var v=m.getAxesByScale("ordinal")[0];if(v){var y=v.dim,M=y+"Axis",C=d.getReferringComponents(M,wc).models[0],x=C.componentIndex;s[M]=s[M]||[];for(var w=0;w<=x;w++)s[M][x]=s[M][x]||{};s[M][x].boundaryGap=i==="bar"}}};ye(Ubr,function(d){hi(d,i)>=0&&ye(d,function(p){o.setIconStatus(p,"normal")})}),o.setIconStatus(i,"emphasis"),n.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var c,u=i;i==="stack"&&(c=ei({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",i])!=="emphasis"&&(u="tiled")),r.dispatchAction({type:"changeMagicType",currentType:u,newOption:s,newTitle:c,featureName:"magicType"})}},t})(cf),Dje={line:function(e,t,n,r){if(e==="bar")return ei({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if(e==="line")return ei({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===Pje;if(e==="line"||e==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),ei({id:t,stack:i?"":Pje},r.get(["option","stack"])||{},!0)}};Nm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var FJ=new Array(60).join("-"),WP="	";function Ybr(e){var t={},n=[],r=[];return e.eachRawSeries(function(i){var o=i.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var a=o.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;t[s]||(t[s]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[s].series.push(i)}else n.push(i)}else n.push(i)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function Kbr(e){var t=[];return ye(e,function(n,r){var i=n.categoryAxis,o=n.valueAxis,a=o.dim,s=[" "].concat(Vt(n.series,function(h){return h.name})),l=[i.model.getCategories()];ye(n.series,function(h){var g=h.getRawData();l.push(h.getRawData().mapArray(g.mapDimension(a),function(m){return m}))});for(var c=[s.join(WP)],u=0;u<l[0].length;u++){for(var d=[],p=0;p<l.length;p++)d.push(l[p][u]);c.push(d.join(WP))}t.push(c.join(`
`))}),t.join(`

`+FJ+`

`)}function Qbr(e){return Vt(e,function(t){var n=t.getRawData(),r=[t.name],i=[];return n.each(n.dimensions,function(){for(var o=arguments.length,a=arguments[o-1],s=n.getName(a),l=0;l<o-1;l++)i[l]=arguments[l];r.push((s?s+WP:"")+i.join(WP))}),r.join(`
`)}).join(`

`+FJ+`

`)}function Zbr(e){var t=Ybr(e);return{value:ko([Kbr(t.seriesGroupByCategoryAxis),Qbr(t.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`

`+FJ+`

`),meta:t.meta}}function VU(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Jbr(e){var t=e.slice(0,e.indexOf(`
`));if(t.indexOf(WP)>=0)return!0}var Lve=new RegExp("["+WP+"]+","g");function e2r(e){for(var t=e.split(/\n+/g),n=VU(t.shift()).split(Lve),r=[],i=Vt(n,function(l){return{name:l,data:[]}}),o=0;o<t.length;o++){var a=VU(t[o]).split(Lve);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}function t2r(e){for(var t=e.split(/\n+/g),n=VU(t.shift()),r=[],i=0;i<t.length;i++){var o=VU(t[i]);if(o){var a=o.split(Lve),s="",l=void 0,c=!1;isNaN(a[0])?(c=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var u=0;u<a.length;u++)l.push(+a[u]);l.length===1&&(c?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function n2r(e,t){var n=e.split(new RegExp(`
*`+FJ+`
*`,"g")),r={series:[]};return ye(n,function(i,o){if(Jbr(i)){var a=e2r(i),s=t[o],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:a.categories},r.series=r.series.concat(a.series))}else{var a=t2r(i);r.series.push(a)}}),r}var r2r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var i=r.getDom(),o=this.model;this._dom&&i.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=o.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var c=document.createElement("div"),u=document.createElement("textarea");c.style.cssText="overflow:auto";var d=o.get("optionToContent"),p=o.get("contentToOption"),h=Zbr(n);if(fr(d)){var g=d(r.getOption());Sn(g)?c.innerHTML=g:Gz(g)&&c.appendChild(g)}else{u.readOnly=o.get("readOnly");var m=u.style;m.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",m.color=o.get("textColor"),m.borderColor=o.get("textareaBorderColor"),m.backgroundColor=o.get("textareaColor"),u.value=h.value,c.appendChild(u)}var v=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var M="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",C=document.createElement("div"),x=document.createElement("div");M+=";background-color:"+o.get("buttonColor"),M+=";color:"+o.get("buttonTextColor");var w=this;function S(){i.removeChild(a),w._dom=null}dme(C,"click",S),dme(x,"click",function(){if(p==null&&d!=null||p!=null&&d==null){S();return}var A;try{fr(p)?A=p(c,r.getOption()):A=n2r(u.value,v)}catch(z){throw S(),new Error("Data view format error "+z)}A&&r.dispatchAction({type:"changeDataView",newOption:A}),S()}),C.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=C.style.cssText=M,!o.get("readOnly")&&y.appendChild(x),y.appendChild(C),a.appendChild(s),a.appendChild(c),a.appendChild(y),c.style.height=i.clientHeight-80+"px",i.appendChild(a),this._dom=a},t.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},t})(cf);function i2r(e,t){return Vt(e,function(n,r){var i=t&&t[r];if(xr(i)&&!Ht(i)){var o=xr(n)&&!Ht(n);o||(n={value:n});var a=i.name!=null&&n.name==null;return n=br(n,i),a&&delete n.name,n}else return n})}Nm({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];ye(e.newOption.series,function(r){var i=t.getSeriesByName(r.name)[0];if(!i)n.push(Nt({type:"scatter"},r));else{var o=i.get("data");n.push({name:r.name,data:i2r(r.data,o)})}}),t.mergeOption(br({series:n},e.newOption))});var pMt=ye,hMt=mo();function o2r(e,t){var n=rOe(e);pMt(t,function(r,i){for(var o=n.length-1;o>=0;o--){var a=n[o];if(a[i])break}if(o<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();n[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),n.push(t)}function a2r(e){var t=rOe(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return pMt(n,function(i,o){for(var a=t.length-1;a>=0;a--)if(i=t[a][o],i){r[o]=i;break}}),r}function s2r(e){hMt(e).snapshots=null}function l2r(e){return rOe(e).length}function rOe(e){var t=hMt(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var c2r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){s2r(n),r.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},t})(cf);Nm({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var u2r=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],iOe=(function(){function e(t,n,r){var i=this;this._targetInfoList=[];var o=kje(n,t);ye(d2r,function(a,s){(!r||!r.include||hi(r.include,s)>=0)&&a(o,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,n){return this.matchOutputRanges(t,n,function(r,i,o){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var a=Yse[r.brushType](0,o,i);r.__rangeOffset={offset:Fje[r.brushType](a.values,r.range,[1,1]),xyMinMax:a.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){ye(t,function(i){var o=this.findTargetInfo(i,n);o&&o!==!0&&ye(o.coordSyses,function(a){var s=Yse[i.brushType](1,a,i.range,!0);r(i,s.values,a,n)})},this)},e.prototype.setInputRanges=function(t,n){ye(t,function(r){var i=this.findTargetInfo(r,n);if(r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var o=Yse[r.brushType](0,i.coordSys,r.coordRange),a=r.__rangeOffset;r.range=a?Fje[r.brushType](o.values,a.offset,p2r(o.xyMinMax,a.xyMinMax)):o.values}},this)},e.prototype.makePanelOpts=function(t,n){return Vt(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:Cyt(i),isTargetByCursor:wyt(i,t,r.coordSysModel),getLinearBrushOtherExtent:xyt(i)}})},e.prototype.controlSeries=function(t,n,r){var i=this.findTargetInfo(t,r);return i===!0||i&&hi(i.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,i=kje(n,t),o=0;o<r.length;o++){var a=r[o],s=t.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<Lje.length;l++)if(Lje[l](i,a))return a}return!0},e})();function _ve(e){return e[0]>e[1]&&e.reverse(),e}function kje(e,t){return AF(e,t,{includeMainTypes:u2r})}var d2r={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=Yn(),a={},s={};!n&&!r&&!i||(ye(n,function(l){var c=l.axis.grid.model;o.set(c.id,c),a[c.id]=!0}),ye(r,function(l){var c=l.axis.grid.model;o.set(c.id,c),s[c.id]=!0}),ye(i,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var c=l.coordinateSystem,u=[];ye(c.getCartesians(),function(d,p){(hi(n,d.getAxis("x").model)>=0||hi(r,d.getAxis("y").model)>=0)&&u.push(d)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:u[0],coordSyses:u,getPanelRect:_je.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){ye(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:_je.geo})})}},Lje=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],_je={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Lx(e)),t}},Yse={lineX:Zr(Nje,0),lineY:Zr(Nje,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[_ve([i[0],o[0]]),_ve([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=Vt(n,function(a){var s=e?t.pointToData(a,r):t.dataToPoint(a,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:o,xyMinMax:i}}};function Nje(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=_ve(Vt([0,1],function(s){return t?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var Fje={lineX:Zr(Wje,0),lineY:Zr(Wje,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Vt(e,function(r,i){return[r[0]-n[0]*t[i][0],r[1]-n[1]*t[i][1]]})}};function Wje(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function p2r(e,t){var n=qje(e),r=qje(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function qje(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Nve=ye,h2r=iir("toolbox-dataZoom_"),f2r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,i,o){this._brushController||(this._brushController=new IAe(i.getZr()),this._brushController.on("brush",En(this._onBrush,this)).mount()),v2r(n,r,this,o,i),m2r(n,r)},t.prototype.onclick=function(n,r,i){g2r[i].call(this)},t.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var i={},o=this.ecModel;this._brushController.updateCovers([]);var a=new iOe(oOe(this.model),o,{include:["grid"]});a.matchOutputRanges(r,o,function(c,u,d){if(d.type==="cartesian2d"){var p=c.brushType;p==="rect"?(s("x",d,u[0]),s("y",d,u[1])):s({lineX:"x",lineY:"y"}[p],d,u)}}),o2r(o,i),this._dispatchZoomAction(i);function s(c,u,d){var p=u.getAxis(c),h=p.model,g=l(c,h,o),m=g.findRepresentativeAxisProxy(h).getMinMaxSpan();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(d=Y3(0,d.slice(),p.scale.getExtent(),0,m.minValueSpan,m.maxValueSpan)),g&&(i[g.id]={dataZoomId:g.id,startValue:d[0],endValue:d[1]})}function l(c,u,d){var p;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var g=h.getAxisModel(c,u.componentIndex);g&&(p=h)}),p}},t.prototype._dispatchZoomAction=function(n){var r=[];Nve(n,function(i,o){r.push(Or(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},t})(cf),g2r={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(a2r(this.ecModel))}};function oOe(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function m2r(e,t){e.setIconStatus("back",l2r(t)>1?"emphasis":"normal")}function v2r(e,t,n,r,i){var o=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(o=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new iOe(oOe(e),t,{include:["grid"]}),s=a.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Ear("dataZoom",function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],o=oOe(r),a=AF(e,o);Nve(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Nve(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,c,u){var d=l.componentIndex,p={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:h2r+c+d};p[u]=d,i.push(p)}return i});function b2r(e){e.registerComponentModel(jbr),e.registerComponentView(Vbr),SR("saveAsImage",$br),SR("magicType",Xbr),SR("dataView",r2r),SR("dataZoom",f2r),SR("restore",c2r),Si(Bbr)}var y2r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(Ri);function fMt(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function gMt(e){if(Ii.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var mMt=gMt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),M2r=gMt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function vMt(e,t){if(!e)return t;t=PSe(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function C2r(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?n[t]:null}var x2r=vMt(M2r,"transition"),aOe=vMt(mMt,"transform"),w2r="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ii.transform3dSupported?"will-change:transform;":"");function S2r(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function A2r(e,t,n){if(!Sn(n)||n==="inside")return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Kz(t);var o=S2r(n),a=Math.max(Math.round(i)*1.5,6),s="",l=aOe+":",c;hi(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c=o==="top"?225:45)+"deg)");var u=c*Math.PI/180,d=a+i,p=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),h=Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-d)/2)*100)/100;s+=";"+o+":-"+h+"px";var g=t+" solid "+i+"px;",m=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'<div style="'+m.join("")+'"></div>'}function O2r(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=Ii.transformSupported?","+aOe+r:",left"+r+",top"+r),x2r+":"+i}function Bje(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ii.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Ii.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+aOe+":"+a+";":[["top",0],["left",0],[mMt,a]]}function z2r(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=Xr(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),ye(["decoration","align"],function(c){var u=e.get(c);u&&t.push("text-"+c+":"+u)}),t.join(";")}function T2r(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),d=Ovt(e,"html"),p=l+"px "+c+"px "+a+"px "+s;return r.push("box-shadow:"+p),t&&i&&r.push(O2r(i,n)),o&&r.push("background-color:"+o),ye(["width","color","radius"],function(h){var g="border-"+h,m=PSe(g),v=e.get(m);v!=null&&r.push(g+":"+v+(h==="color"?"":"px"))}),r.push(z2r(u)),d!=null&&r.push("padding:"+G3(d).join("px ")+"px"),r.join(";")+";"}function jje(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&Pnr(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var E2r=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ii.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=n.appendTo,a=o&&(Sn(o)?document.querySelector(o):Gz(o)?o:fr(o)&&o(t.getDom()));jje(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(r),this._api=t,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=i.handler,u=i.painter.getViewportRoot();Xh(u,l,!0),c.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=C2r(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=w2r+T2r(t,!this._firstShow,this._longHide)+Bje(o[0],o[1],!0)+("border-color:"+Kz(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,i,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(Sn(o)&&r.get("trigger")==="item"&&!fMt(r)&&(s=A2r(r,i,o)),Sn(t))a.innerHTML=t+s;else if(t){a.innerHTML="",Ht(t)||(t=[t]);for(var l=0;l<t.length;l++)Gz(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var c=document.createElement("div");c.innerHTML=s,a.appendChild(c)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,n){if(this.el){var r=this._styleCoord;if(jje(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var i=this.el.style,o=Bje(r[0],r[1]);ye(o,function(a){i[a[0]]=a[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Ii.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(En(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e})(),R2r=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Vje(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,i,o){var a=this;xr(t)&&Ko(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new oo({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Ovt(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),ye(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){a.el.style[c]=r.get(c)}),ye(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){a.el.style[c]=s.get(c)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=Hje(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var i=this._styleCoord;Vje(i,this._zr,t,n),t=i[0],n=i[1];var o=r.style,a=zC(o.borderWidth||0),s=Hje(o);r.x=t+a+s.left,r.y=n+a+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(En(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function zC(e){return Math.max(0,e)}function Hje(e){var t=zC(e.shadowBlur||0),n=zC(e.shadowOffsetX||0),r=zC(e.shadowOffsetY||0);return{left:zC(t-n),right:zC(t+n),top:zC(t-r),bottom:zC(t+r)}}function Vje(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var I2r=new ao({shape:{x:-1,y:-1,width:2,height:2}}),P2r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){if(!(Ii.node||!r.getDom())){var i=n.getComponent("tooltip"),o=this._renderMode=dir(i.get("renderMode"));this._tooltipContent=o==="richText"?new R2r(r):new E2r(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(n,r,i){if(!(Ii.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?ck(this,"_updatePosition",50,"fixRate"):bq(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");tMt("itemTooltip",this._api,En(function(i,o,a){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||Ii.node||!i.getDom())){var a=Gje(o,i);this._ticket="";var s=o.dataByCoordSys,l=_2r(o,r,i);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var u=I2r;u.x=o.x,u.y=o.y,u.update(),_r(u).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:u},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,o))return;var d=nMt(o,r),p=d.point[0],h=d.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:d.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(n,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(Gje(o,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var c=r.getSeriesByIndex(a);if(c){var u=c.getData(),d=T_([u.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(i){var s=_r(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;bO(i,function(u){if(_r(u).dataIndex!=null)return l=u,!0;if(_r(u).tooltipConfig!=null)return c=u,!0},!0),l?this._showSeriesItemTooltip(n,l,r):c?this._showComponentItemTooltip(n,c,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=En(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=T_([r.tooltipOption],o),l=this._renderMode,c=[],u=Iu("section",{blocks:[],noHeader:!0}),d=[],p=new kae;ye(n,function(M){ye(M.dataByAxis,function(C){var x=i.getComponent(C.axisDim+"Axis",C.axisIndex),w=C.value;if(!(!x||w==null)){var S=Zyt(w,x.axis,i,C.seriesDataIndices,C.valueLabelOpt),A=Iu("section",{header:S,noHeader:!Cf(S),sortBlocks:!0,blocks:[]});u.blocks.push(A),ye(C.seriesDataIndices,function(z){var O=i.getSeriesByIndex(z.seriesIndex),T=z.dataIndexInside,I=O.getDataParams(T);if(!(I.dataIndex<0)){I.axisDim=C.axisDim,I.axisIndex=C.axisIndex,I.axisType=C.axisType,I.axisId=C.axisId,I.axisValue=oAe(x.axis,{value:w}),I.axisValueLabel=S,I.marker=p.makeTooltipMarker("item",Kz(I.color),l);var P=PWe(O.formatTooltip(T,!0,null)),N=P.frag;if(N){var F=T_([O],o).get("valueFormatter");A.blocks.push(F?Nt({valueFormatter:F},N):N)}P.text&&d.push(P.text),c.push(I)}})}})}),u.blocks.reverse(),d.reverse();var h=r.position,g=s.get("order"),m=FWe(u,p,l,g,i.get("useUTC"),s.get("textStyle"));m&&d.unshift(m);var v=l==="richText"?`

`:"<br/>",y=d.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(s,h,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,y,c,Math.random()+"",a[0],a[1],h,null,p)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=_r(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,u=a.dataIndex,d=a.dataType,p=c.getData(d),h=this._renderMode,g=n.positionDefault,m=T_([p.getItemModel(u),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),v=m.get("trigger");if(!(v!=null&&v!=="item")){var y=c.getDataParams(u,d),M=new kae;y.marker=M.makeTooltipMarker("item",Kz(y.color),h);var C=PWe(c.formatTooltip(u,!1,d)),x=m.get("order"),w=m.get("valueFormatter"),S=C.frag,A=S?FWe(w?Nt({valueFormatter:w},S):S,M,h,x,o.get("useUTC"),m.get("textStyle")):C.text,z="item_"+c.name+"_"+u;this._showOrMove(m,function(){this._showTooltipContent(m,A,y,z,n.offsetX,n.offsetY,n.position,n.target,M)}),i({type:"showTip",dataIndexInside:u,dataIndex:p.getRawIndex(u),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=_r(r),s=a.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(Sn(l)){var u=l;l={content:u,formatter:u},c=!0}c&&o&&l.content&&(l=Or(l),l.content=l0(l.content));var d=[l],p=this._ecModel.getComponent(a.componentMainType,a.componentIndex);p&&d.push(p),d.push({formatter:l.content});var h=n.positionDefault,g=T_(d,this._tooltipModel,h?{position:h}:null),m=g.get("content"),v=Math.random()+"",y=new kae;this._showOrMove(g,function(){var M=Or(g.get("formatterParams")||{});this._showTooltipContent(g,m,M,v,n.offsetX,n.offsetY,n.position,r,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,o,a,s,l,c,u){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var d=this._tooltipContent;d.setEnterable(n.get("enterable"));var p=n.get("formatter");l=l||n.get("position");var h=r,g=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),m=g.color;if(p)if(Sn(p)){var v=n.ecModel.get("useUTC"),y=Ht(i)?i[0]:i,M=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=p,M&&(h=HB(y.axisValue,h,v)),h=DSe(h,i,!0)}else if(fr(p)){var C=En(function(x,w){x===this._ticket&&(d.setContent(w,u,n,m,l),this._updatePosition(n,l,a,s,d,i,c))},this);this._ticket=o,h=p(i,o,C)}else h=p;d.setContent(h,u,n,m,l),d.show(n,m),this._updatePosition(n,l,a,s,d,i,c)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||Ht(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!Ht(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,o,a,s,l){var c=this._api.getWidth(),u=this._api.getHeight();r=r||n.get("position");var d=a.getSize(),p=n.get("align"),h=n.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),fr(r)&&(r=r([i,o],s,a.el,g,{viewSize:[c,u],contentSize:d.slice()})),Ht(r))i=vn(r[0],c),o=vn(r[1],u);else if(xr(r)){var m=r;m.width=d[0],m.height=d[1];var v=Ic(m,{width:c,height:u});i=v.x,o=v.y,p=null,h=null}else if(Sn(r)&&l){var y=L2r(r,g,d,n.get("borderWidth"));i=y[0],o=y[1]}else{var y=D2r(i,o,a,c,u,p?null:20,h?null:20);i=y[0],o=y[1]}if(p&&(i-=$je(p)?d[0]/2:p==="right"?d[0]:0),h&&(o-=$je(h)?d[1]/2:h==="bottom"?d[1]:0),fMt(n)){var y=k2r(i,o,a,c,u);i=y[0],o=y[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&ye(i,function(s,l){var c=s.dataByAxis||[],u=n[l]||{},d=u.dataByAxis||[];a=a&&c.length===d.length,a&&ye(c,function(p,h){var g=d[h]||{},m=p.seriesDataIndices||[],v=g.seriesDataIndices||[];a=a&&p.value===g.value&&p.axisType===g.axisType&&p.axisId===g.axisId&&m.length===v.length,a&&ye(m,function(y,M){var C=v[M];a=a&&y.seriesIndex===C.seriesIndex&&y.dataIndex===C.dataIndex}),o&&ye(p.seriesDataIndices,function(y){var M=y.seriesIndex,C=r[M],x=o[M];C&&x&&x.data!==C.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){Ii.node||!r.getDom()||(bq(this,"_updatePosition"),this._tooltipContent.dispose(),Pve("itemTooltip",r))},t.type="tooltip",t})(cs);function T_(e,t,n){var r=t.ecModel,i;n?(i=new _o(n,r,r),i=new _o(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof _o&&(a=a.get("tooltip",!0)),Sn(a)&&(a={formatter:a}),a&&(i=new _o(a,i,r)))}return i}function Gje(e,t){return e.dispatchAction||En(t.dispatchAction,t)}function D2r(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],c=s[1];return o!=null&&(e+l+o+2>r?e-=l+o:e+=o),a!=null&&(t+c+a>i?t-=c+a:t+=a),[e,t]}function k2r(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function L2r(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-i/2,l=t.y+u/2-o/2;break;case"top":s=t.x+c/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-i/2,l=t.y+u+a;break;case"left":s=t.x-i-a,l=t.y+u/2-o/2;break;case"right":s=t.x+c+a,l=t.y+u/2-o/2}return[s,l]}function $je(e){return e==="center"||e==="middle"}function _2r(e,t,n){var r=cSe(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=NB(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(c){var u=_r(c).tooltipConfig;if(u&&u.name===e.name)return l=c,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function N2r(e){Si(ej),e.registerComponentModel(y2r),e.registerComponentView(P2r),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Nl),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Nl)}var F2r=["rect","polygon","keep","clear"];function W2r(e,t){var n=Ta(e?e.brush:[]);if(n.length){var r=[];ye(n,function(l){var c=l.hasOwnProperty("toolbox")?l.toolbox:[];c instanceof Array&&(r=r.concat(c))});var i=e&&e.toolbox;Ht(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),q2r(s),t&&!s.length&&s.push.apply(s,F2r)}}function q2r(e){var t={};ye(e,function(n){t[n]=1}),e.length=0,ye(t,function(n,r){e.push(r)})}var Uje=ye;function Xje(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function Fve(e,t,n){var r={};return Uje(t,function(o){var a=r[o]=i();Uje(e[o],function(s,l){if(Su.isValidType(l)){var c={type:l,visual:s};n&&n(c,o),a[l]=new Su(c),l==="opacity"&&(c=Or(c),c.type="colorAlpha",a.__hidden.__alphaForOpacity=new Su(c))}})}),r;function i(){var o=function(){};o.prototype.__hidden=o.prototype;var a=new o;return a}}function bMt(e,t,n){var r;ye(n,function(i){t.hasOwnProperty(i)&&Xje(t[i])&&(r=!0)}),r&&ye(n,function(i){t.hasOwnProperty(i)&&Xje(t[i])?e[i]=Or(t[i]):delete e[i]})}function B2r(e,t,n,r,i,o){var a={};ye(e,function(d){var p=Su.prepareVisualTypes(t[d]);a[d]=p});var s;function l(d){return HSe(n,s,d)}function c(d,p){_vt(n,s,d,p)}n.each(u);function u(d,p){s=d;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var g=r.call(i,d),m=t[g],v=a[g],y=0,M=v.length;y<M;y++){var C=v[y];m[C]&&m[C].applyVisual(d,l,c)}}}function j2r(e,t,n,r){var i={};return ye(e,function(o){var a=Su.prepareVisualTypes(t[o]);i[o]=a}),{progress:function(a,s){var l;r!=null&&(l=s.getDimensionIndex(r));function c(w){return HSe(s,d,w)}function u(w,S){_vt(s,d,w,S)}for(var d,p=s.getStore();(d=a.next())!=null;){var h=s.getRawDataItem(d);if(!(h&&h.visualMap===!1))for(var g=r!=null?p.get(l,d):d,m=n(g),v=t[m],y=i[m],M=0,C=y.length;M<C;M++){var x=y[M];v[x]&&v[x].applyVisual(g,c,u)}}}}}function H2r(e){var t=e.brushType,n={point:function(r){return Yje[t].point(r,n,e)},rect:function(r){return Yje[t].rect(r,n,e)}};return n}var Yje={lineX:Kje(0),lineY:Kje(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&KA(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,o=e.y,a=e.width,s=e.height,l=r[0];if(KA(r,i,o)||KA(r,i+a,o)||KA(r,i,o+s)||KA(r,i+a,o+s)||ui.create(e).contain(l[0],l[1])||cN(i,o,i+a,o,r)||cN(i,o,i,o+s,r)||cN(i+a,o,i+a,o+s,r)||cN(i,o+s,i+a,o+s,r))return!0}}};function Kje(e){var t=["x","y"],n=["width","height"];return{point:function(r,i,o){if(r){var a=o.range,s=r[e];return E_(s,a)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),E_(s[0],a)||E_(s[1],a)||E_(a[0],s)||E_(a[1],s)}}}}function E_(e,t){return t[0]<=e&&e<=t[1]}var Qje=["inBrush","outOfBrush"],Kse="__ecBrushSelect",Wve="__ecInBrushSelectEvent";function yMt(e){e.eachComponent({mainType:"brush"},function(t){var n=t.brushTargetManager=new iOe(t.option,e);n.setInputRanges(t.areas,e)})}function V2r(e,t,n){var r=[],i,o;e.eachComponent({mainType:"brush"},function(a){n&&n.type==="takeGlobalCursor"&&a.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),yMt(e),e.eachComponent({mainType:"brush"},function(a,s){var l={brushId:a.id,brushIndex:s,brushName:a.name,areas:Or(a.areas),selected:[]};r.push(l);var c=a.option,u=c.brushLink,d=[],p=[],h=[],g=!1;s||(i=c.throttleType,o=c.throttleDelay);var m=Vt(a.areas,function(w){var S=X2r[w.brushType],A=br({boundingRect:S?S(w):void 0},w);return A.selectors=H2r(A),A}),v=Fve(a.option,Qje,function(w){w.mappingMethod="fixed"});Ht(u)&&ye(u,function(w){d[w]=1});function y(w){return u==="all"||!!d[w]}function M(w){return!!w.length}e.eachSeries(function(w,S){var A=h[S]=[];w.subType==="parallel"?C(w,S):x(w,S,A)});function C(w,S){var A=w.coordinateSystem;g=g||A.hasAxisBrushed(),y(S)&&A.eachActiveState(w.getData(),function(z,O){z==="active"&&(p[O]=1)})}function x(w,S,A){if(!(!w.brushSelector||U2r(a,S))&&(ye(m,function(O){a.brushTargetManager.controlSeries(O,w,e)&&A.push(O),g=g||M(A)}),y(S)&&M(A))){var z=w.getData();z.each(function(O){Zje(w,A,z,O)&&(p[O]=1)})}}e.eachSeries(function(w,S){var A={seriesId:w.id,seriesIndex:S,seriesName:w.name,dataIndex:[]};l.selected.push(A);var z=h[S],O=w.getData(),T=y(S)?function(I){return p[I]?(A.dataIndex.push(O.getRawIndex(I)),"inBrush"):"outOfBrush"}:function(I){return Zje(w,z,O,I)?(A.dataIndex.push(O.getRawIndex(I)),"inBrush"):"outOfBrush"};(y(S)?g:M(z))&&B2r(Qje,v,O,T)})}),G2r(t,i,o,r,n)}function G2r(e,t,n,r,i){if(i){var o=e.getZr();if(!o[Wve]){o[Kse]||(o[Kse]=$2r);var a=ck(o,Kse,n,t);a(e,r)}}}function $2r(e,t){if(!e.isDisposed()){var n=e.getZr();n[Wve]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[Wve]=!1}}function Zje(e,t,n,r){for(var i=0,o=t.length;i<o;i++){var a=t[i];if(e.brushSelector(r,n,a.selectors,a))return!0}}function U2r(e,t){var n=e.option.seriesIndex;return n!=null&&n!=="all"&&(Ht(n)?hi(n,t)<0:t!==n)}var X2r={rect:function(e){return Jje(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&Jje(t)}};function Jje(e){return new ui(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Y2r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new IAe(r.getZr())).on("brush",En(this._onBrush,this)).mount()},t.prototype.render=function(n,r,i,o){this.model=n,this._updateController(n,r,i,o)},t.prototype.updateTransform=function(n,r,i,o){yMt(r),this._updateController(n,r,i,o)},t.prototype.updateVisual=function(n,r,i,o){this.updateTransform(n,r,i,o)},t.prototype.updateView=function(n,r,i,o){this._updateController(n,r,i,o)},t.prototype._updateController=function(n,r,i,o){(!o||o.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(i)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Or(i),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Or(i),$from:r})},t.type="brush",t})(cs),K2r="#ddd",Q2r=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var i=this.option;!r&&bMt(i,n,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:K2r},o.hasOwnProperty("liftZ")||(o.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=Vt(n,function(r){return eHe(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=eHe(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t})(Ri);function eHe(e,t){return ei({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new _o(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Z2r=["rect","polygon","lineX","lineY","keep","clear"],J2r=(function(e){gt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,i){var o,a,s;r.eachComponent({mainType:"brush"},function(l){o=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=o,this._brushMode=a,ye(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===o)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,i){this.render(n,r,i)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),i={};return ye(n.get("type",!0),function(o){r[o]&&(i[o]=r[o])}),i},t.prototype.onclick=function(n,r,i){var o=this._brushType,a=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?o:o===i?!1:i,brushMode:i==="keep"?a==="multiple"?"single":"multiple":a}})},t.getDefaultOption=function(n){var r={show:!0,type:Z2r.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t})(cf);function eyr(e){e.registerComponentView(Y2r),e.registerComponentModel(Q2r),e.registerPreprocessor(W2r),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,V2r),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Nl),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Nl),SR("brush",J2r)}var tyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(Ri),nyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){if(this.group.removeAll(),!!n.get("show")){var o=this.group,a=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),c=Xr(n.get("textBaseline"),n.get("textVerticalAlign")),u=new oo({style:Za(a,{text:n.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),d=u.getBoundingRect(),p=n.get("subtext"),h=new oo({style:Za(s,{text:p,fill:s.getTextColor(),y:d.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=n.get("link"),m=n.get("sublink"),v=n.get("triggerEvent",!0);u.silent=!g&&!v,h.silent=!m&&!v,g&&u.on("click",function(){bU(g,"_"+n.get("target"))}),m&&h.on("click",function(){bU(m,"_"+n.get("subtarget"))}),_r(u).eventData=_r(h).eventData=v?{componentType:"title",componentIndex:n.componentIndex}:null,o.add(u),p&&o.add(h);var y=o.getBoundingRect(),M=n.getBoxLayoutParams();M.width=y.width,M.height=y.height;var C=Ic(M,{width:i.getWidth(),height:i.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?C.x+=C.width:l==="center"&&(C.x+=C.width/2)),c||(c=n.get("top")||n.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?C.y+=C.height:c==="middle"&&(C.y+=C.height/2),c=c||"top"),o.x=C.x,o.y=C.y,o.markRedraw();var x={align:l,verticalAlign:c};u.setStyle(x),h.setStyle(x),y=o.getBoundingRect();var w=C.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var A=new ao({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});o.add(A)}},t.type="title",t})(cs);function ryr(e){e.registerComponentModel(tyr),e.registerComponentView(nyr)}var tHe=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],i=n.axisType,o=this._names=[],a;i==="category"?(a=[],ye(r,function(c,u){var d=Zc(KD(c),""),p;xr(c)?(p=Or(c),p.value=u):p=u,a.push(p),o.push(d)})):a=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new y0([{name:"value",type:s}],this);l.initData(a,o)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t})(Ri),MMt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=Fw(tHe.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t})(tHe);jl(MMt,xJ.prototype);var iyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t})(cs),oyr=(function(e){gt(t,e);function t(n,r,i,o){var a=e.call(this,n,r,i)||this;return a.type=o||"value",a}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t})(ng),Qse=Math.PI,nHe=mo(),ayr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,i){if(this.model=n,this.api=i,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var o=this._layout(n,i),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(o,n);n.formatTooltip=function(c){var u=l.scale.getLabel({value:c});return Iu("nameValue",{noName:!0,value:u})},ye(["AxisLine","AxisTick","Control","CurrentPointer"],function(c){this["_render"+c](o,a,l,n)},this),this._renderAxisLabel(o,s,l,n),this._position(o,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var i=n.get(["label","position"]),o=n.get("orient"),a=lyr(n,r),s;i==null||i==="auto"?s=o==="horizontal"?a.y+a.height/2<r.getHeight()/2?"-":"+":a.x+a.width/2<r.getWidth()/2?"+":"-":Sn(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},c={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:Qse/2},d=o==="vertical"?a.height:a.width,p=n.getModel("controlStyle"),h=p.get("show",!0),g=h?p.get("itemSize"):0,m=h?p.get("itemGap"):0,v=g+m,y=n.get(["label","rotate"])||0;y=y*Qse/180;var M,C,x,w=p.get("position",!0),S=h&&p.get("showPlayBtn",!0),A=h&&p.get("showPrevBtn",!0),z=h&&p.get("showNextBtn",!0),O=0,T=d;w==="left"||w==="bottom"?(S&&(M=[0,0],O+=v),A&&(C=[O,0],O+=v),z&&(x=[T-g,0],T-=v)):(S&&(M=[T-g,0],T-=v),A&&(C=[0,0],O+=v),z&&(x=[T-g,0],T-=v));var I=[O,T];return n.get("inverse")&&I.reverse(),{viewRect:a,mainLength:d,orient:o,rotation:u[o],labelRotation:y,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[o],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||c[o],playPosition:M,prevBtnPosition:C,nextBtnPosition:x,axisExtent:I,controlSize:g,controlGap:m}},t.prototype._position=function(n,r){var i=this._mainGroup,o=this._labelGroup,a=n.viewRect;if(n.orient==="vertical"){var s=gp(),l=a.x,c=a.y+a.height;Sm(s,s,[-l,-c]),_w(s,s,-Qse/2),Sm(s,s,[l,c]),a=a.clone(),a.applyTransform(s)}var u=M(a),d=M(i.getBoundingRect()),p=M(o.getBoundingRect()),h=[i.x,i.y],g=[o.x,o.y];g[0]=h[0]=u[0][0];var m=n.labelPosOpt;if(m==null||Sn(m)){var v=m==="+"?0:1;C(h,d,u,1,v),C(g,p,u,1,1-v)}else{var v=m>=0?0:1;C(h,d,u,1,v),g[1]=h[1]+m}i.setPosition(h),o.setPosition(g),i.rotation=o.rotation=n.rotation,y(i),y(o);function y(x){x.originX=u[0][0]-x.x,x.originY=u[1][0]-x.y}function M(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function C(x,w,S,A,z){x[A]+=S[A][z]-w[A][z]}},t.prototype._createAxis=function(n,r){var i=r.getData(),o=r.get("axisType"),a=syr(r,o);a.getTicks=function(){return i.mapArray(["value"],function(c){return{value:c}})};var s=i.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new oyr("value",a,n.axisExtent,o);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new Ir;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,i,o){var a=i.getExtent();if(o.get(["lineStyle","show"])){var s=new Jc({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:Nt({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Jc({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:br({lineCap:"round",lineWidth:s.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,i,o){var a=this,s=o.getData(),l=i.scale.getTicks();this._tickSymbols=[],ye(l,function(c){var u=i.dataToCoord(c.value),d=s.getItemModel(c.value),p=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),g=d.getModel(["progress","itemStyle"]),m={x:u,y:0,onclick:En(a._changeTimeline,a,c.value)},v=rHe(d,p,r,m);v.ensureState("emphasis").style=h.getItemStyle(),v.ensureState("progress").style=g.getItemStyle(),kx(v);var y=_r(v);d.get("tooltip")?(y.dataIndex=c.value,y.dataModel=o):y.dataIndex=y.dataModel=null,a._tickSymbols.push(v)})},t.prototype._renderAxisLabel=function(n,r,i,o){var a=this,s=i.getLabelModel();if(s.get("show")){var l=o.getData(),c=i.getViewLabels();this._tickLabels=[],ye(c,function(u){var d=u.tickValue,p=l.getItemModel(d),h=p.getModel("label"),g=p.getModel(["emphasis","label"]),m=p.getModel(["progress","label"]),v=i.dataToCoord(u.tickValue),y=new oo({x:v,y:0,rotation:n.labelRotation-n.rotation,onclick:En(a._changeTimeline,a,d),silent:!1,style:Za(h,{text:u.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=Za(g),y.ensureState("progress").style=Za(m),r.add(y),kx(y),nHe(y).dataIndex=d,a._tickLabels.push(y)})}},t.prototype._renderControl=function(n,r,i,o){var a=n.controlSize,s=n.rotation,l=o.getModel("controlStyle").getItemStyle(),c=o.getModel(["emphasis","controlStyle"]).getItemStyle(),u=o.getPlayState(),d=o.get("inverse",!0);p(n.nextBtnPosition,"next",En(this._changeTimeline,this,d?"-":"+")),p(n.prevBtnPosition,"prev",En(this._changeTimeline,this,d?"+":"-")),p(n.playPosition,u?"stop":"play",En(this._handlePlayClick,this,!u),!0);function p(h,g,m,v){if(h){var y=Am(Xr(o.get(["controlStyle",g+"BtnSize"]),a),a),M=[0,-y/2,y,y],C=cyr(o,g+"Icon",M,{x:h[0],y:h[1],originX:a/2,originY:0,rotation:v?-s:0,rectHover:!0,style:l,onclick:m});C.ensureState("emphasis").style=c,r.add(C),kx(C)}}},t.prototype._renderCurrentPointer=function(n,r,i,o){var a=o.getData(),s=o.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),c=this,u={onCreate:function(d){d.draggable=!0,d.drift=En(c._handlePointerDrag,c),d.ondragend=En(c._handlePointerDragend,c),iHe(d,c._progressLine,s,i,o,!0)},onUpdate:function(d){iHe(d,c._progressLine,s,i,o)}};this._currentPointer=rHe(l,l,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var i=this._toAxisCoord(n)[0],o=this._axis,a=Jp(o.getExtent().slice());i>a[1]&&(i=a[1]),i<a[0]&&(i=a[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),c=this.model;(r||l!==c.getCurrentIndex()&&c.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return mm(n,r,!0)},t.prototype._findNearestTick=function(n){var r=this.model.getData(),i=1/0,o,a=this._axis;return r.each(["value"],function(s,l){var c=a.dataToCoord(s),u=Math.abs(c-n);u<i&&(i=u,o=l)}),o},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},t.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,i=this._tickLabels;if(r)for(var o=0;o<r.length;o++)r&&r[o]&&r[o].toggleState("progress",o<n);if(i)for(var o=0;o<i.length;o++)i&&i[o]&&i[o].toggleState("progress",nHe(i[o]).dataIndex<=n)},t.type="timeline.slider",t})(iyr);function syr(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new RJ({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new rAe({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new sM}}function lyr(e,t){return Ic(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function cyr(e,t,n,r){var i=r.style,o=nk(e.get(["controlStyle",t]),r||{},new ui(n[0],n[1],n[2],n[3]));return i&&o.setStyle(i),o}function rHe(e,t,n,r,i,o){var a=t.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=e.get("symbol");i=rc(s,-1,-1,2,2,a),i.setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),r=ei({rectHover:!0,z2:100},r,!0);var c=uk(e.get("symbolSize"));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var u=$3(e.get("symbolOffset"),c);u&&(r.x=(r.x||0)+u[0],r.y=(r.y||0)+u[1]);var d=e.get("symbolRotate");return r.rotation=(d||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function iHe(e,t,n,r,i,o){if(!e.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function uyr(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,n,r){var i=n.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),n.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),br({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,n){var r=n.getComponent("timeline");r&&t.playState!=null&&r.setPlayState(t.playState)})}function dyr(e){var t=e&&e.timeline;Ht(t)||(t=t?[t]:[]),ye(t,function(n){n&&pyr(n)})}function pyr(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),oHe(e),JA(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});JA(r,"position")||(r.position=e.controlPosition),r.position==="none"&&!JA(r,"show")&&(r.show=!1,delete r.position),delete e.controlPosition}ye(e.data||[],function(i){xr(i)&&!Ht(i)&&(!JA(i,"value")&&JA(i,"name")&&(i.value=i.name),oHe(i))})}function oHe(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};ye(r,function(a,s){!o[s]&&!JA(i,s)&&(i[s]=a)}),n.label&&!JA(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function JA(e,t){return e.hasOwnProperty(t)}function hyr(e){e.registerComponentModel(MMt),e.registerComponentView(ayr),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),uyr(e),e.registerPreprocessor(dyr)}function sOe(e,t){if(!e)return!1;for(var n=Ht(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function qV(e){$z(e,"label",["show"])}var BV=mo(),cM=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),this._mergeOption(n,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Ii.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},t.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},t.prototype._mergeOption=function(n,r,i,o){var a=this.mainType;i||r.eachSeries(function(s){var l=s.get(this.mainType,!0),c=BV(s)[a];if(!l||!l.data){BV(s)[a]=null;return}c?c._mergeOption(l,r,!0):(o&&qV(l),ye(l.data,function(u){u instanceof Array?(qV(u[0]),qV(u[1])):qV(u)}),c=this.createMarkerModelFromSeries(l,this,r),Nt(c,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),c.__hostSeries=s),BV(s)[a]=c},this)},t.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.getRawValue(n),s=o.getName(n);return Iu("section",{header:this.name,blocks:[Iu("nameValue",{name:s,value:a,noName:!s,noValue:a==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(n){this._data=n},t.prototype.getDataParams=function(n,r){var i=xJ.prototype.getDataParams.call(this,n,r),o=this.__hostSeries;return o&&(i.seriesId=o.id,i.seriesName=o.name,i.seriesType=o.subType),i},t.getMarkerModelFromSeries=function(n,r){return BV(n)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(Ri);jl(cM,xJ.prototype);var fyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,i){return new t(n,r,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t})(cM);function qve(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function gyr(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function jV(e,t,n,r,i,o){var a=[],s=aM(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,c=lOe(t,l,e),u=t.indicesOfNearest(l,c)[0];a[i]=t.get(n,u),a[o]=t.get(l,u);var d=t.get(r,u),p=tm(t.get(r,u));return p=Math.min(p,20),p>=0&&(a[o]=+a[o].toFixed(p)),[a,d]}var Zse={min:Zr(jV,"min"),max:Zr(jV,"max"),average:Zr(jV,"average"),median:Zr(jV,"median")};function Pq(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!gyr(t)&&!Ht(t.coord)&&Ht(i)){var o=CMt(t,n,r,e);if(t=Or(t),t.type&&Zse[t.type]&&o.baseAxis&&o.valueAxis){var a=hi(i,o.baseAxis.dim),s=hi(i,o.valueAxis.dim),l=Zse[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Ht(i))t.coord=[];else for(var c=t.coord,u=0;u<2;u++)Zse[c[u]]&&(c[u]=lOe(n,n.mapDimension(i[u]),c[u]));return t}}function CMt(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(myr(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function myr(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Dq(e,t){return e&&e.containData&&t.coord&&!qve(t)?e.containData(t.coord):!0}function vyr(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!qve(t)&&!qve(n)?e.containZone(t.coord,n.coord):!0}function xMt(e,t){return e?function(n,r,i,o){var a=o<2?n.coord&&n.coord[o]:n.value;return Nx(a,t[o])}:function(n,r,i,o){return Nx(n.value,t[o])}}function lOe(e,t,n){if(n==="average"){var r=0,i=0;return e.each(t,function(o,a){isNaN(o)||(r+=o,i++)}),r/i}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var Jse=mo(),cOe=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=Yn()},t.prototype.render=function(n,r,i){var o=this,a=this.markerGroupMap;a.each(function(s){Jse(s).keep=!1}),r.eachSeries(function(s){var l=cM.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,r,i)}),a.each(function(s){!Jse(s).keep&&o.group.remove(s.group)})},t.prototype.markKeep=function(n){Jse(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var i=this;ye(n,function(o){var a=cM.getMarkerModelFromSeries(o,i.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(r?hmt(l):mSe(l))})}})},t.type="marker",t})(cs);function aHe(e,t,n){var r=t.coordinateSystem;e.each(function(i){var o=e.getItemModel(i),a,s=vn(o.get("x"),n.getWidth()),l=vn(o.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))a=[s,l];else if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var c=e.get(r.dimensions[0],i),u=e.get(r.dimensions[1],i);a=r.dataToPoint([c,u])}isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),e.setItemLayout(i,a)})}var byr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=cM.getMarkerModelFromSeries(o,"markPoint");a&&(aHe(a.getData(),o,i),this.markerGroupMap.get(o.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),c=this.markerGroupMap,u=c.get(s)||c.set(s,new UB),d=yyr(a,n,r);r.setData(d),aHe(r.getData(),n,o),d.each(function(p){var h=d.getItemModel(p),g=h.getShallow("symbol"),m=h.getShallow("symbolSize"),v=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),M=h.getShallow("symbolKeepAspect");if(fr(g)||fr(m)||fr(v)||fr(y)){var C=r.getRawValue(p),x=r.getDataParams(p);fr(g)&&(g=g(C,x)),fr(m)&&(m=m(C,x)),fr(v)&&(v=v(C,x)),fr(y)&&(y=y(C,x))}var w=h.getModel("itemStyle").getItemStyle(),S=VB(l,"color");w.fill||(w.fill=S),d.setItemVisual(p,{symbol:g,symbolSize:m,symbolRotate:v,symbolOffset:y,symbolKeepAspect:M,style:w})}),u.updateData(d),this.group.add(u.group),d.eachItemGraphicEl(function(p){p.traverse(function(h){_r(h).dataModel=r})}),this.markKeep(u),u.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t})(cOe);function yyr(e,t,n){var r;e?r=Vt(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Nt(Nt({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new y0(r,n),o=Vt(n.get("data"),Zr(Pq,t));e&&(o=ko(o,Zr(Dq,e)));var a=xMt(!!e,r);return i.initData(o,null,a),i}function Myr(e){e.registerComponentModel(fyr),e.registerComponentView(byr),e.registerPreprocessor(function(t){sOe(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Cyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,i){return new t(n,r,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t})(cM),HV=mo(),xyr=function(e,t,n,r){var i=e.getData(),o;if(Ht(r))o=r;else{var a=r.type;if(a==="min"||a==="max"||a==="average"||a==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=xu(r.yAxis,r.xAxis);else{var c=CMt(r,i,t,e);s=c.valueAxis;var u=tAe(i,c.valueDataDim);l=lOe(i,u,a)}var d=s.dim==="x"?0:1,p=1-d,h=Or(r),g={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,g.coord[p]=1/0;var m=n.get("precision");m>=0&&yo(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[d]=g.coord[d]=l,o=[h,g,{type:a,valueIndex:r.valueIndex,value:l}]}else o=[]}var v=[Pq(e,o[0]),Pq(e,o[1]),Nt({},o[2])];return v[2].type=v[2].type||null,ei(v[2],v[0]),ei(v[2],v[1]),v};function GU(e){return!isNaN(e)&&!isFinite(e)}function sHe(e,t,n,r){var i=1-e,o=r.dimensions[e];return GU(t[i])&&GU(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function wyr(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(sHe(1,n,r,e)||sHe(0,n,r,e)))return!0}return Dq(e,t[0])&&Dq(e,t[1])}function ele(e,t,n,r,i){var o=r.coordinateSystem,a=e.getItemModel(t),s,l=vn(a.get("x"),i.getWidth()),c=vn(a.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(c))s=[l,c];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,d=e.get(u[0],t),p=e.get(u[1],t);s=o.dataToPoint([d,p])}if(U3(o,"cartesian2d")){var h=o.getAxis("x"),g=o.getAxis("y"),u=o.dimensions;GU(e.get(u[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):GU(e.get(u[1],t))&&(s[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(c)||(s[1]=c)}e.setItemLayout(t,s)}var Syr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=cM.getMarkerModelFromSeries(o,"markLine");if(a){var s=a.getData(),l=HV(a).from,c=HV(a).to;l.each(function(u){ele(l,u,!0,o,i),ele(c,u,!1,o,i)}),s.each(function(u){s.setItemLayout(u,[l.getItemLayout(u),c.getItemLayout(u)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),c=this.markerGroupMap,u=c.get(s)||c.set(s,new RAe);this.group.add(u.group);var d=Ayr(a,n,r),p=d.from,h=d.to,g=d.line;HV(r).from=p,HV(r).to=h,r.setData(g);var m=r.get("symbol"),v=r.get("symbolSize"),y=r.get("symbolRotate"),M=r.get("symbolOffset");Ht(m)||(m=[m,m]),Ht(v)||(v=[v,v]),Ht(y)||(y=[y,y]),Ht(M)||(M=[M,M]),d.from.each(function(x){C(p,x,!0),C(h,x,!1)}),g.each(function(x){var w=g.getItemModel(x).getModel("lineStyle").getLineStyle();g.setItemLayout(x,[p.getItemLayout(x),h.getItemLayout(x)]),w.stroke==null&&(w.stroke=p.getItemVisual(x,"style").fill),g.setItemVisual(x,{fromSymbolKeepAspect:p.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(x,"symbolOffset"),fromSymbolRotate:p.getItemVisual(x,"symbolRotate"),fromSymbolSize:p.getItemVisual(x,"symbolSize"),fromSymbol:p.getItemVisual(x,"symbol"),toSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(x,"symbolOffset"),toSymbolRotate:h.getItemVisual(x,"symbolRotate"),toSymbolSize:h.getItemVisual(x,"symbolSize"),toSymbol:h.getItemVisual(x,"symbol"),style:w})}),u.updateData(g),d.line.eachItemGraphicEl(function(x){_r(x).dataModel=r,x.traverse(function(w){_r(w).dataModel=r})});function C(x,w,S){var A=x.getItemModel(w);ele(x,w,S,n,o);var z=A.getModel("itemStyle").getItemStyle();z.fill==null&&(z.fill=VB(l,"color")),x.setItemVisual(w,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:Xr(A.get("symbolOffset",!0),M[S?0:1]),symbolRotate:Xr(A.get("symbolRotate",!0),y[S?0:1]),symbolSize:Xr(A.get("symbolSize"),v[S?0:1]),symbol:Xr(A.get("symbol",!0),m[S?0:1]),style:z})}this.markKeep(u),u.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t})(cOe);function Ayr(e,t,n){var r;e?r=Vt(e&&e.dimensions,function(c){var u=t.getData().getDimensionInfo(t.getData().mapDimension(c))||{};return Nt(Nt({},u),{name:c,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new y0(r,n),o=new y0(r,n),a=new y0([],n),s=Vt(n.get("data"),Zr(xyr,t,e,n));e&&(s=ko(s,Zr(wyr,e)));var l=xMt(!!e,r);return i.initData(Vt(s,function(c){return c[0]}),null,l),o.initData(Vt(s,function(c){return c[1]}),null,l),a.initData(Vt(s,function(c){return c[2]})),a.hasItemOption=!0,{from:i,to:o,line:a}}function Oyr(e){e.registerComponentModel(Cyr),e.registerComponentView(Syr),e.registerPreprocessor(function(t){sOe(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var zyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,i){return new t(n,r,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t})(cM),VV=mo(),Tyr=function(e,t,n,r){var i=r[0],o=r[1];if(!(!i||!o)){var a=Pq(e,i),s=Pq(e,o),l=a.coord,c=s.coord;l[0]=xu(l[0],-1/0),l[1]=xu(l[1],-1/0),c[0]=xu(c[0],1/0),c[1]=xu(c[1],1/0);var u=QZ([{},a,s]);return u.coord=[a.coord,s.coord],u.x0=a.x,u.y0=a.y,u.x1=s.x,u.y1=s.y,u}};function $U(e){return!isNaN(e)&&!isFinite(e)}function lHe(e,t,n,r){var i=1-e;return $U(t[i])&&$U(n[i])}function Eyr(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},o={coord:r,x:t.x1,y:t.y1};return U3(e,"cartesian2d")?n&&r&&(lHe(1,n,r)||lHe(0,n,r))?!0:vyr(e,i,o):Dq(e,i)||Dq(e,o)}function cHe(e,t,n,r,i){var o=r.coordinateSystem,a=e.getItemModel(t),s,l=vn(a.get(n[0]),i.getWidth()),c=vn(a.get(n[1]),i.getHeight());if(!isNaN(l)&&!isNaN(c))s=[l,c];else{if(r.getMarkerPosition){var u=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=o.clampData(u),h=o.clampData(d),g=[];n[0]==="x0"?g[0]=p[0]>h[0]?d[0]:u[0]:g[0]=p[0]>h[0]?u[0]:d[0],n[1]==="y0"?g[1]=p[1]>h[1]?d[1]:u[1]:g[1]=p[1]>h[1]?u[1]:d[1],s=r.getMarkerPosition(g,n,!0)}else{var m=e.get(n[0],t),v=e.get(n[1],t),y=[m,v];o.clampData&&o.clampData(y,y),s=o.dataToPoint(y,!0)}if(U3(o,"cartesian2d")){var M=o.getAxis("x"),C=o.getAxis("y"),m=e.get(n[0],t),v=e.get(n[1],t);$U(m)?s[0]=M.toGlobalCoord(M.getExtent()[n[0]==="x0"?0:1]):$U(v)&&(s[1]=C.toGlobalCoord(C.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(c)||(s[1]=c)}return s}var uHe=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Ryr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=cM.getMarkerModelFromSeries(o,"markArea");if(a){var s=a.getData();s.each(function(l){var c=Vt(uHe,function(d){return cHe(s,l,d,o,i)});s.setItemLayout(l,c);var u=s.getItemGraphicEl(l);u.setShape("points",c)})}},this)},t.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),c=this.markerGroupMap,u=c.get(s)||c.set(s,{group:new Ir});this.group.add(u.group),this.markKeep(u);var d=Iyr(a,n,r);r.setData(d),d.each(function(p){var h=Vt(uHe,function(z){return cHe(d,p,z,n,o)}),g=a.getAxis("x").scale,m=a.getAxis("y").scale,v=g.getExtent(),y=m.getExtent(),M=[g.parse(d.get("x0",p)),g.parse(d.get("x1",p))],C=[m.parse(d.get("y0",p)),m.parse(d.get("y1",p))];Jp(M),Jp(C);var x=!(v[0]>M[1]||v[1]<M[0]||y[0]>C[1]||y[1]<C[0]),w=!x;d.setItemLayout(p,{points:h,allClipped:w});var S=d.getItemModel(p).getModel("itemStyle").getItemStyle(),A=VB(l,"color");S.fill||(S.fill=A,Sn(S.fill)&&(S.fill=lq(S.fill,.4))),S.stroke||(S.stroke=A),d.setItemVisual(p,"style",S)}),d.diff(VV(u).data).add(function(p){var h=d.getItemLayout(p);if(!h.allClipped){var g=new O0({shape:{points:h.points}});d.setItemGraphicEl(p,g),u.group.add(g)}}).update(function(p,h){var g=VV(u).data.getItemGraphicEl(h),m=d.getItemLayout(p);m.allClipped?g&&u.group.remove(g):(g?So(g,{shape:{points:m.points}},r,p):g=new O0({shape:{points:m.points}}),d.setItemGraphicEl(p,g),u.group.add(g))}).remove(function(p){var h=VV(u).data.getItemGraphicEl(p);u.group.remove(h)}).execute(),d.eachItemGraphicEl(function(p,h){var g=d.getItemModel(h),m=d.getItemVisual(h,"style");p.useStyle(d.getItemVisual(h,"style")),Od(p,Ru(g),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:Sn(m.fill)?lq(m.fill,1):"#000"}),Ad(p,g),al(p,null,null,g.get(["emphasis","disabled"])),_r(p).dataModel=r}),VV(u).data=d,u.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t})(cOe);function Iyr(e,t,n){var r,i,o=["x0","y0","x1","y1"];if(e){var a=Vt(e&&e.dimensions,function(c){var u=t.getData(),d=u.getDimensionInfo(u.mapDimension(c))||{};return Nt(Nt({},d),{name:c,ordinalMeta:null})});i=Vt(o,function(c,u){return{name:c,type:a[u%2].type}}),r=new y0(i,n)}else i=[{name:"value",type:"float"}],r=new y0(i,n);var s=Vt(n.get("data"),Zr(Tyr,t,e,n));e&&(s=ko(s,Zr(Eyr,e)));var l=e?function(c,u,d,p){var h=c.coord[Math.floor(p/2)][p%2];return Nx(h,i[p])}:function(c,u,d,p){return Nx(c.value,i[p])};return r.initData(s,null,l),r.hasItemOption=!0,r}function Pyr(e){e.registerComponentModel(zyr),e.registerComponentView(Ryr),e.registerPreprocessor(function(t){sOe(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Dyr=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Bve=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),Ht(r)&&ye(r,function(o,a){Sn(o)&&(o={type:o}),r[a]=ei(o,Dyr(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<n.length;i++){var o=n[i].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(l){var c=l.name;i.push(c);var u;if(l.legendVisualProvider){var d=l.legendVisualProvider,p=d.getAllNames();n.isSeriesFiltered(l)||(i=i.concat(p)),p.length?r=r.concat(p):u=!0}else u=!0;u&&lSe(l)&&r.push(l.name)}),this._availableNames=i;var o=this.get("data")||r,a=Yn(),s=Vt(o,function(l){return(Sn(l)||yo(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new _o(l,this,this.ecModel))},this);this._data=ko(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;ye(o,function(a){r[a.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;ye(n,function(i){r[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;ye(n,function(i){var o=i.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&hi(this._availableNames,n)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(Ri),ZE=Zr,jve=ye,GV=Ir,wMt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new GV),this.group.add(this._selectorGroup=new GV),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),c=n.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(a,n,r,i,l,s,c);var u=n.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},p=n.get("padding"),h=Ic(u,d,p),g=this.layoutInner(n,a,h,o,l,c),m=Ic(br({width:g.width,height:g.height},u),d,p);this.group.x=m.x-g.x,this.group.y=m.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=dMt(g,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,i,o,a,s,l){var c=this.getContentGroup(),u=Yn(),d=r.get("selectedMode"),p=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&p.push(h.id)}),jve(r.getData(),function(h,g){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
`)){var v=new GV;v.newline=!0,c.add(v);return}var y=i.getSeriesByName(m)[0];if(!u.get(m))if(y){var M=y.getData(),C=M.getVisual("legendLineStyle")||{},x=M.getVisual("legendIcon"),w=M.getVisual("style"),S=this._createItem(y,m,g,h,r,n,C,w,x,d,o);S.on("click",ZE(dHe,m,null,o,p)).on("mouseover",ZE(Hve,y.name,null,o,p)).on("mouseout",ZE(Vve,y.name,null,o,p)),i.ssr&&S.eachChild(function(A){var z=_r(A);z.seriesIndex=y.seriesIndex,z.dataIndex=g,z.ssrType="legend"}),u.set(m,!0)}else i.eachRawSeries(function(A){if(!u.get(m)&&A.legendVisualProvider){var z=A.legendVisualProvider;if(!z.containName(m))return;var O=z.indexOfName(m),T=z.getItemVisual(O,"style"),I=z.getItemVisual(O,"legendIcon"),P=c1(T.fill);P&&P[3]===0&&(P[3]=.2,T=Nt(Nt({},T),{fill:gm(P,"rgba")}));var N=this._createItem(A,m,g,h,r,n,{},T,I,d,o);N.on("click",ZE(dHe,null,m,o,p)).on("mouseover",ZE(Hve,null,m,o,p)).on("mouseout",ZE(Vve,null,m,o,p)),i.ssr&&N.eachChild(function(F){var L=_r(F);L.seriesIndex=A.seriesIndex,L.dataIndex=g,L.ssrType="legend"}),u.set(m,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();jve(n,function(c){var u=c.type,d=new oo({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(d);var p=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Od(d,{normal:p,emphasis:h},{defaultText:c.title}),kx(d)})},t.prototype._createItem=function(n,r,i,o,a,s,l,c,u,d,p){var h=n.visualDrawType,g=a.get("itemWidth"),m=a.get("itemHeight"),v=a.isSelected(r),y=o.get("symbolRotate"),M=o.get("symbolKeepAspect"),C=o.get("icon");u=C||u||"roundRect";var x=kyr(u,o,l,c,h,v,p),w=new GV,S=o.getModel("textStyle");if(fr(n.getLegendIcon)&&(!C||C==="inherit"))w.add(n.getLegendIcon({itemWidth:g,itemHeight:m,icon:u,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:M}));else{var A=C==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;w.add(Lyr({itemWidth:g,itemHeight:m,icon:u,iconRotate:A,itemStyle:x.itemStyle,symbolKeepAspect:M}))}var z=s==="left"?g+5:-5,O=s,T=a.get("formatter"),I=r;Sn(T)&&T?I=T.replace("{name}",r??""):fr(T)&&(I=T(r));var P=v?S.getTextColor():o.get("inactiveColor");w.add(new oo({style:Za(S,{text:I,x:z,y:m/2,fill:P,align:O,verticalAlign:"middle"},{inheritColor:P})}));var N=new ao({shape:w.getBoundingRect(),style:{fill:"transparent"}}),F=o.getModel("tooltip");return F.get("show")&&H3({el:N,componentModel:a,itemName:r,itemTooltipOption:F.option}),w.add(N),w.eachChild(function(L){L.silent=!0}),N.silent=!d,this.getContentGroup().add(w),kx(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();tz(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var u=l.getBoundingRect(),d=[-u.x,-u.y];if(c.markRedraw(),l.markRedraw(),a){tz("horizontal",c,n.get("selectorItemGap",!0));var p=c.getBoundingRect(),h=[-p.x,-p.y],g=n.get("selectorButtonGap",!0),m=n.getOrient().index,v=m===0?"width":"height",y=m===0?"height":"width",M=m===0?"y":"x";s==="end"?h[m]+=u[v]+g:d[m]+=p[v]+g,h[1-m]+=u[y]/2-p[y]/2,c.x=h[0],c.y=h[1],l.x=d[0],l.y=d[1];var C={x:0,y:0};return C[v]=u[v]+g+p[v],C[y]=Math.max(u[y],p[y]),C[M]=Math.min(0,p[M]+h[1-m]),C}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(cs);function kyr(e,t,n,r,i,o,a){function s(v,y){v.lineWidth==="auto"&&(v.lineWidth=y.lineWidth>0?2:0),jve(v,function(M,C){v[C]==="inherit"&&(v[C]=y[C])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=e.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");c.decal=!d||d==="inherit"?r.decal:kP(d,a),c.fill==="inherit"&&(c.fill=r[i]),c.stroke==="inherit"&&(c.stroke=r[u]),c.opacity==="inherit"&&(c.opacity=(i==="fill"?r:n).opacity),s(c,r);var p=t.getModel("lineStyle"),h=p.getLineStyle();if(s(h,n),c.fill==="auto"&&(c.fill=r.fill),c.stroke==="auto"&&(c.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!o){var g=t.get("inactiveBorderWidth"),m=c[u];c.lineWidth=g==="auto"?r.lineWidth>0&&m?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}function Lyr(e){var t=e.icon||"roundRect",n=rc(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function dHe(e,t,n,r){Vve(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),Hve(e,t,n,r)}function SMt(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function Hve(e,t,n,r){SMt(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function Vve(e,t,n,r){SMt(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function _yr(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function R_(e,t,n){var r=e==="allSelect"||e==="inverseSelect",i={},o=[];n.eachComponent({mainType:"legend",query:t},function(s){r?s[e]():s[e](t.name),pHe(s,i),o.push(s.componentIndex)});var a={};return n.eachComponent("legend",function(s){ye(i,function(l,c){s[l?"select":"unSelect"](c)}),pHe(s,a)}),r?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function pHe(e,t){var n=t||{};return ye(e.getData(),function(r){var i=r.get("name");if(!(i===`
`||i==="")){var o=e.isSelected(i);Fn(n,i)?n[i]=n[i]&&o:n[i]=o}}),n}function Nyr(e){e.registerAction("legendToggleSelect","legendselectchanged",Zr(R_,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Zr(R_,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Zr(R_,"inverseSelect")),e.registerAction("legendSelect","legendselected",Zr(R_,"select")),e.registerAction("legendUnSelect","legendunselected",Zr(R_,"unSelect"))}function AMt(e){e.registerComponentModel(Bve),e.registerComponentView(wMt),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,_yr),e.registerSubTypeDefaulter("legend",function(){return"plain"}),Nyr(e)}var Fyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,i){var o=ok(n);e.prototype.init.call(this,n,r,i),hHe(this,n,o)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),hHe(this,this.option,n)},t.type="legend.scroll",t.defaultOption=Fw(Bve.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(Bve);function hHe(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,aw(t,n,{type:"box",ignoreSize:!!i})}var fHe=Ir,tle=["width","height"],nle=["x","y"],Wyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new fHe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new fHe)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,i,o,a,s,l){var c=this;e.prototype.renderInner.call(this,n,r,i,o,a,s,l);var u=this._controllerGroup,d=r.get("pageIconSize",!0),p=Ht(d)?d:[d,d];g("pagePrev",0);var h=r.getModel("pageTextStyle");u.add(new oo({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(m,v){var y=m+"DataIndex",M=nk(r.get("pageIcons",!0)[r.getOrient().name][v],{onclick:En(c._pageGo,c,y,r,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});M.name=m,u.add(M)}},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getSelectorGroup(),c=n.getOrient().index,u=tle[c],d=nle[c],p=tle[1-c],h=nle[1-c];a&&tz("horizontal",l,n.get("selectorItemGap",!0));var g=n.get("selectorButtonGap",!0),m=l.getBoundingRect(),v=[-m.x,-m.y],y=Or(i);a&&(y[u]=i[u]-m[u]-g);var M=this._layoutContentAndController(n,o,y,c,u,p,h,d);if(a){if(s==="end")v[c]+=M[u]+g;else{var C=m[u]+g;v[c]-=C,M[d]-=C}M[u]+=m[u]+g,v[1-c]+=M[h]+M[p]/2-m[p]/2,M[p]=Math.max(M[p],m[p]),M[h]=Math.min(M[h],m[h]+v[1-c]),l.x=v[0],l.y=v[1],l.markRedraw()}return M},t.prototype._layoutContentAndController=function(n,r,i,o,a,s,l,c){var u=this.getContentGroup(),d=this._containerGroup,p=this._controllerGroup;tz(n.get("orient"),u,n.get("itemGap"),o?i.width:null,o?null:i.height),tz("horizontal",p,n.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),g=p.getBoundingRect(),m=this._showController=h[a]>i[a],v=[-h.x,-h.y];r||(v[o]=u[c]);var y=[0,0],M=[-g.x,-g.y],C=Xr(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(m){var x=n.get("pageButtonPosition",!0);x==="end"?M[o]+=i[a]-g[a]:y[o]+=g[a]+C}M[1-o]+=h[s]/2-g[s]/2,u.setPosition(v),d.setPosition(y),p.setPosition(M);var w={x:0,y:0};if(w[a]=m?i[a]:h[a],w[s]=Math.max(h[s],g[s]),w[l]=Math.min(0,g[l]+M[1-o]),d.__rectSize=i[a],m){var S={x:0,y:0};S[a]=Math.max(i[a]-g[a]-C,0),S[s]=w[s],d.setClipPath(new ao({shape:S})),d.__rectSize=S[a]}else p.eachChild(function(z){z.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(n);return A.pageIndex!=null&&So(u,{x:A.contentPosition[0],y:A.contentPosition[1]},m?n:null),this._updatePageInfoView(n,A),w},t.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;ye(["pagePrev","pageNext"],function(u){var d=u+"DataIndex",p=r[d]!=null,h=i.childOfName(u);h&&(h.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,c=r.pageCount;o&&a&&o.setStyle("text",Sn(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=tle[a],l=nle[a],c=this._findTargetItemIndex(r),u=i.children(),d=u[c],p=u.length,h=p?1:0,g={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return g;var m=x(d);g.contentPosition[a]=-m.s;for(var v=c+1,y=m,M=m,C=null;v<=p;++v)C=x(u[v]),(!C&&M.e>y.s+o||C&&!w(C,y.s))&&(M.i>y.i?y=M:y=C,y&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=y.i),++g.pageCount)),M=C;for(var v=c-1,y=m,M=m,C=null;v>=-1;--v)C=x(u[v]),(!C||!w(M,C.s))&&y.i<M.i&&(M=y,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=y.i),++g.pageCount,++g.pageIndex),y=C;return g;function x(S){if(S){var A=S.getBoundingRect(),z=A[l]+S[l];return{s:z,e:z+A[s],i:S.__legendDataIndex}}}function w(S,A){return S.e>=A&&S.s<=A+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t})(wMt);function qyr(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function Byr(e){Si(AMt),e.registerComponentModel(Fyr),e.registerComponentView(Wyr),qyr(e)}function jyr(e){Si(AMt),Si(Byr)}var Hyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=Fw(Iq.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(Iq),uOe=mo();function Vyr(e,t,n){uOe(e).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)})}function Gyr(e,t){for(var n=uOe(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||OMt(n,a))}}}function OMt(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function $yr(e,t){var n={model:t,containsPoint:Zr(Xyr,t),dispatchAction:Zr(Uyr,e),dataZoomInfoMap:null,controller:null},r=n.controller=new ZB(e.getZr());return ye(["pan","zoom","scrollMove"],function(i){r.on(i,function(o){var a=[];n.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],c=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,o);!s.model.get("disabled",!0)&&c&&a.push({dataZoomId:s.model.id,start:c[0],end:c[1]})}}),a.length&&n.dispatchAction(a)})}),n}function Uyr(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Xyr(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function Yyr(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(o){var a=o.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+t]&&(t=s),i=i&&a.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Kyr(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=uOe(n),i=r.coordSysRecordMap||(r.coordSysRecordMap=Yn());i.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var a=lMt(o);ye(a.infoList,function(s){var l=s.model.uid,c=i.get(l)||i.set(l,$yr(n,s.model)),u=c.dataZoomInfoMap||(c.dataZoomInfoMap=Yn());u.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),i.each(function(o){var a=o.controller,s,l=o.dataZoomInfoMap;if(l){var c=l.keys()[0];c!=null&&(s=l.get(c))}if(!s){OMt(i,o);return}var u=Yyr(l);a.enable(u.controlType,u.opt),a.setPointerChecker(o.containsPoint),ck(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Qyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,i){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),Vyr(i,n,{pan:En(rle.pan,this),zoom:En(rle.zoom,this),scrollMove:En(rle.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Gyr(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(tOe),rle={zoom:function(e,t,n,r){var i=this.range,o=i.slice(),a=e.axisModels[0];if(a){var s=ile[t](null,[r.originX,r.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/r.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Y3(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}},pan:gHe(function(e,t,n,r,i,o){var a=ile[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength}),scrollMove:gHe(function(e,t,n,r,i,o){var a=ile[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n);return a.signal*(e[1]-e[0])*o.scrollDelta})};function gHe(e){return function(t,n,r,i){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,r,i);if(Y3(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var ile={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],o.dim==="x"?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function zMt(e){nOe(e),e.registerComponentModel(Hyr),e.registerComponentView(Qyr),Kyr(e)}var Zyr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Fw(Iq.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t})(Iq),I_=ao,mHe=7,Jyr=1,ole=30,eMr=7,P_="horizontal",vHe="vertical",tMr=5,nMr=["line","bar","candlestick","scatter"],rMr={easing:"cubicOut",duration:100,delay:0},iMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=En(this._onBrush,this),this._onBrushEnd=En(this._onBrushEnd,this)},t.prototype.render=function(n,r,i,o){if(e.prototype.render.apply(this,arguments),ck(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){bq(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Ir;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,i=n.get("brushSelect"),o=i?eMr:0,a=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===P_?{right:s.width-a.x-a.width,top:s.height-ole-mHe-o,width:a.width,height:ole}:{right:mHe,top:a.y,width:ole,height:a.height},c=ok(n.option);ye(["right","top","width","height"],function(d){c[d]==="ph"&&(c[d]=l[d])});var u=Ic(c,s);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===vHe&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,i=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===P_&&!a?{scaleY:l?1:-1,scaleX:1}:i===P_&&a?{scaleY:l?1:-1,scaleX:-1}:i===vHe&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var c=n.getBoundingRect([s]);n.x=r.x-c.x,n.y=r.y-c.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,o=n.get("brushSelect");i.add(new I_({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var a=new I_({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:En(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(a)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,i=this._shadowSize||[],o=n.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():n.otherDim;if(l==null)return;var c=this._shadowPolygonPts,u=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var d=a.getDataExtent(l),p=(d[1]-d[0])*.3;d=[d[0]-p,d[1]+p];var h=[0,r[1]],g=[0,r[0]],m=[[r[0],0],[0,0]],v=[],y=g[1]/(a.count()-1),M=0,C=Math.round(a.count()/r[0]),x;a.each([l],function(O,T){if(C>0&&T%C){M+=y;return}var I=O==null||isNaN(O)||O==="",P=I?0:Yo(O,d,h,!0);I&&!x&&T?(m.push([m[m.length-1][0],0]),v.push([v[v.length-1][0],0])):!I&&x&&(m.push([M,0]),v.push([M,0])),m.push([M,P]),v.push([M,P]),M+=y,x=I}),c=this._shadowPolygonPts=m,u=this._shadowPolylinePts=v}this._shadowData=a,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var w=this.dataZoomModel;function S(O){var T=w.getModel(O?"selectedDataBackground":"dataBackground"),I=new Ir,P=new O0({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),N=new R0({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(P),I.add(N),I}for(var A=0;A<3;A++){var z=S(A===1);this._displayables.sliderGroup.add(z),this._displayables.dataShadowSegs.push(z)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var i,o=this.ecModel;return n.eachTargetAxis(function(a,s){var l=n.getAxisProxy(a,s).getTargetSeriesModels();ye(l,function(c){if(!i&&!(r!==!0&&hi(nMr,c.get("type"))<0)){var u=o.getComponent(mx(a),s).axis,d=oMr(a),p,h=c.coordinateSystem;d!=null&&h.getOtherAxis&&(p=h.getOtherAxis(u).inverse),d=c.getData().mapDimension(d),i={thisAxis:u,series:c,thisDim:a,otherDim:d,otherAxisInverse:p}}},this)},this),i}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,i=r.handles=[null,null],o=r.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,c=this.api,u=l.get("borderRadius")||0,d=l.get("brushSelect"),p=r.filler=new I_({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),a.add(new I_({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:u},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Jyr,fill:"rgba(0,0,0,0)"}})),ye([0,1],function(C){var x=l.get("handleIcon");!CU[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var w=rc(x,-1,0,2,2,null,!0);w.attr({cursor:bHe(this._orient),draggable:!0,drift:En(this._onDragMove,this,C),ondragend:En(this._onDragEnd,this),onmouseover:En(this._showDataInfo,this,!0),onmouseout:En(this._showDataInfo,this,!1),z2:5});var S=w.getBoundingRect(),A=l.get("handleSize");this._handleHeight=vn(A,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),kx(w);var z=l.get("handleColor");z!=null&&(w.style.fill=z),a.add(i[C]=w);var O=l.getModel("textStyle"),T=l.get("handleLabel")||{},I=T.show||!1;n.add(o[C]=new oo({silent:!0,invisible:!I,style:Za(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=p;if(d){var g=vn(l.get("moveHandleSize"),s[1]),m=r.moveHandle=new ao({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),v=g*.8,y=r.moveHandleIcon=rc(l.get("moveHandleIcon"),-v/2,-v/2,v,v,"#fff",!0);y.silent=!0,y.y=s[1]+g/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var M=Math.min(s[1]/2,Math.max(g,10));h=r.moveZone=new ao({invisible:!0,shape:{y:s[1]-M,height:g+M}}),h.on("mouseover",function(){c.enterEmphasis(m)}).on("mouseout",function(){c.leaveEmphasis(m)}),a.add(m),a.add(y),a.add(h)}h.attr({draggable:!0,cursor:bHe(this._orient),drift:En(this._onDragMove,this,"all"),ondragstart:En(this._showDataInfo,this,!0),ondragend:En(this._onDragEnd,this),onmouseover:En(this._showDataInfo,this,!0),onmouseout:En(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Yo(n[0],[0,100],r,!0),Yo(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var i=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Y3(r,o,a,i.get("zoomLock")?"all":n,s.minSpan!=null?Yo(s.minSpan,l,a,!0):null,s.maxSpan!=null?Yo(s.maxSpan,l,a,!0):null);var c=this._range,u=this._range=Jp([Yo(o[0],a,l,!0),Yo(o[1],a,l,!0)]);return!c||c[0]!==u[0]||c[1]!==u[1]},t.prototype._updateView=function(n){var r=this._displayables,i=this._handleEnds,o=Jp(i.slice()),a=this._size;ye([0,1],function(h){var g=r.handles[h],m=this._handleHeight;g.attr({scaleX:m/2,scaleY:m/2,x:i[h]+(h?-1:1),y:a[1]/2-m/2})},this),r.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,c=[0,o[0],o[1],a[0]],u=0;u<l.length;u++){var d=l[u],p=d.getClipPath();p||(p=new ao,d.setClipPath(p)),p.setShape({x:c[u],y:0,width:c[u+1]-c[u],height:a[1]})}this._updateDataInfo(n)},t.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,i=this._displayables,o=i.handleLabels,a=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var c=l.getAxisModel().axis,u=this._range,d=n?l.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(d[0],c),this._formatLabel(d[1],c)]}}var p=Jp(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(g){var m=Lx(i.handles[g].parent,this.group),v=fJ(g===0?"right":"left",m),y=this._handleWidth/2+tMr,M=mm([p[g]+(g===0?-y:y),this._size[1]/2],m);o[g].setStyle({x:M[0],y:M[1],verticalAlign:a===P_?"middle":v,align:a===P_?v:"center",text:s[g]})}},t.prototype._formatLabel=function(n,r){var i=this.dataZoomModel,o=i.get("labelFormatter"),a=i.get("labelPrecision");(a==null||a==="auto")&&(a=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(a,20));return fr(o)?o(n,s):Sn(o)?o.replace("{value}",s):s},t.prototype._showDataInfo=function(n){var r=this.dataZoomModel.get("handleLabel")||{},i=r.show||!1,o=this.dataZoomModel.getModel(["emphasis","handleLabel"]),a=o.get("show")||!1,s=n||this._dragging?a:i,l=this._displayables,c=l.handleLabels;c[0].attr("invisible",!s),c[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(n,r,i,o){this._dragging=!0,nM(o.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=mm([r,i],a,!0),l=this._updateInterval(n,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(n){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",i[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,i=n.offsetY;this._brushStart=new ci(r,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(i.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=Jp([Yo(i.x,a,s,!0),Yo(i.x+i.width,a,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(nM(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var i=this._displayables,o=this.dataZoomModel,a=i.brushRect;a||(a=i.brushRect=new I_({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,c=l.transformCoordToLocal(n,r),u=l.transformCoordToLocal(s.x,s.y),d=this._size;c[0]=Math.max(Math.min(d[0],c[0]),0),a.setShape({x:u[0],y:0,width:c[0]-u[0],height:d[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?rMr:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=lMt(this.dataZoomModel).infoList;if(!n&&r.length){var i=r[0].model.coordinateSystem;n=i.getRect&&i.getRect()}if(!n){var o=this.api.getWidth(),a=this.api.getHeight();n={x:o*.2,y:a*.2,width:o*.6,height:a*.6}}return n},t.type="dataZoom.slider",t})(tOe);function oMr(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function bHe(e){return e==="vertical"?"ns-resize":"ew-resize"}function TMt(e){e.registerComponentModel(Zyr),e.registerComponentView(iMr),nOe(e)}function aMr(e){Si(zMt),Si(TMt)}var EMt={get:function(e,t,n){var r=Or((sMr[e]||{})[t]);return n&&Ht(r)?r[r.length-1]:r}},sMr={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},yHe=Su.mapVisual,lMr=Su.eachVisual,cMr=Ht,MHe=ye,uMr=Jp,dMr=Yo,UU=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.optionUpdated=function(n,r){var i=this.option;!r&&bMt(i,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=En(n,this),this.controllerVisuals=Fve(this.option.controller,r,n),this.targetVisuals=Fve(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(i,o){r.push(o)}):r=Ta(n),r},t.prototype.eachTargetSeries=function(n,r){ye(this.getTargetSeriesIndices(),function(i){var o=this.ecModel.getSeriesByIndex(i);o&&n.call(r,o)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(i){i===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,i){var o=this.option,a=o.precision,s=this.dataBound,l=o.formatter,c;i=i||["<",">"],Ht(n)&&(n=n.slice(),c=!0);var u=r?n:c?[d(n[0]),d(n[1])]:d(n);if(Sn(l))return l.replace("{value}",c?u[0]:u).replace("{value2}",c?u[1]:u);if(fr(l))return c?l(n[0],n[1]):l(n);if(c)return n[0]===s[0]?i[0]+" "+u[1]:n[1]===s[1]?i[1]+" "+u[0]:u[0]+" - "+u[1];return u;function d(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var n=this.option,r=uMr([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var i=n.dimensions,o=i.length-1;o>=0;o--){var a=i[o],s=n.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},o=r.target||(r.target={}),a=r.controller||(r.controller={});ei(o,i),ei(a,i);var s=this.isCategory();l.call(this,o),l.call(this,a),c.call(this,o,"inRange","outOfRange"),u.call(this,a);function l(d){cMr(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:n.get("gradientColor")}}function c(d,p,h){var g=d[p],m=d[h];g&&!m&&(m=d[h]={},MHe(g,function(v,y){if(Su.isValidType(y)){var M=EMt.get(y,"inactive",s);M!=null&&(m[y]=M,y==="color"&&!m.hasOwnProperty("opacity")&&!m.hasOwnProperty("colorAlpha")&&(m.opacity=[0,0]))}}))}function u(d){var p=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),m=this.getItemSymbol(),v=m||"roundRect";MHe(this.stateList,function(y){var M=this.itemSize,C=d[y];C||(C=d[y]={color:s?g:[g]}),C.symbol==null&&(C.symbol=p&&Or(p)||(s?v:[v])),C.symbolSize==null&&(C.symbolSize=h&&Or(h)||(s?M[0]:[M[0],M[0]])),C.symbol=yHe(C.symbol,function(S){return S==="none"?v:S});var x=C.symbolSize;if(x!=null){var w=-1/0;lMr(x,function(S){S>w&&(w=S)}),C.symbolSize=yHe(x,function(S){return dMr(S,[0,w],[0,M[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t})(Ri),CHe=[20,140],pMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=CHe[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=CHe[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Ht(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),ye(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Jp((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},t.prototype.getValueState=function(n){var r=this.option.range,i=this.getExtent();return(r[0]<=i[0]||r[0]<=n)&&(r[1]>=i[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(i){var o=[],a=i.getData();a.each(this.getDataDimensionIndex(a),function(s,l){n[0]<=s&&s<=n[1]&&o.push(l)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getVisualMeta=function(n){var r=xHe(this,"outOfRange",this.getExtent()),i=xHe(this,"inRange",this.option.range.slice()),o=[];function a(h,g){o.push({value:h,color:n(h,g)})}for(var s=0,l=0,c=i.length,u=r.length;l<u&&(!i.length||r[l]<=i[0]);l++)r[l]<i[s]&&a(r[l],"outOfRange");for(var d=1;s<c;s++,d=0)d&&o.length&&a(i[s],"outOfRange"),a(i[s],"inRange");for(var d=1;l<u;l++)(!i.length||i[i.length-1]<r[l])&&(d&&(o.length&&a(o[o.length-1].value,"outOfRange"),d=0),a(r[l],"outOfRange"));var p=o.length;return{stops:o,outerColors:[p?o[0].color:"transparent",p?o[p-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Fw(UU.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t})(UU);function xHe(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,o=n[0],a=[],s=0;s<=r&&o<n[1];s++)a.push(o),o+=i;return a.push(n[1]),a}var RMt=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r},t.prototype.render=function(n,r,i,o){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,i,o)},t.prototype.renderBackground=function(n){var r=this.visualMapModel,i=G3(r.get("padding")||0),o=n.getBoundingRect();n.add(new ao({z2:-1,silent:!0,shape:{x:o.x-i[3],y:o.y-i[0],width:o.width+i[3]+i[1],height:o.height+i[0]+i[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},t.prototype.getControllerVisual=function(n,r,i){i=i||{};var o=i.forceState,a=this.visualMapModel,s={};if(r==="color"){var l=a.get("contentColor");s.color=l}function c(h){return s[h]}function u(h,g){s[h]=g}var d=a.controllerVisuals[o||a.getValueState(n)],p=Su.prepareVisualTypes(d);return ye(p,function(h){var g=d[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",g=d.__alphaForOpacity),Su.dependsOn(h,r)&&g&&g.applyVisual(n,c,u)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,i=this.api;MJ(n,r.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(n,r,i,o){},t.type="visualMap",t})(cs),wHe=[["left","right","width"],["top","bottom","height"]];function IMt(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!=="auto")return i;for(var o={width:t.getWidth(),height:t.getHeight()},a=r.orient==="horizontal"?1:0,s=wHe[a],l=[0,null,10],c={},u=0;u<3;u++)c[wHe[1-a][u]]=l[u],c[s[u]]=u===2?n[0]:r[s[u]];var d=[["x","width",3],["y","height",0]][a],p=Ic(c,o,r.padding);return s[(p.margin[d[2]]||0)+p[d[0]]+p[d[1]]*.5<o[d[1]]*.5?0:1]}function X7(e,t){return ye(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Av=Yo,hMr=ye,SHe=Math.min,ale=Math.max,fMr=12,gMr=6,mMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(n,r){e.prototype.init.call(this,n,r),this._hoverLinkFromSeriesMouseOver=En(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=En(this._hideIndicator,this)},t.prototype.doRender=function(n,r,i,o){(!o||o.type!=="selectDataRange"||o.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var i=n.get("text");this._renderEndsText(r,i,0),this._renderEndsText(r,i,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},t.prototype._renderEndsText=function(n,r,i){if(r){var o=r[1-i];o=o!=null?o+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,c=this._shapes.mainGroup,u=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],c),d=this._applyTransform(i===0?"bottom":"top",c),p=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new oo({style:Za(h,{x:u[0],y:u[1],verticalAlign:p==="horizontal"?"middle":d,align:p==="horizontal"?d:"center",text:o})}))}},t.prototype._renderBar=function(n){var r=this.visualMapModel,i=this._shapes,o=r.itemSize,a=this._orient,s=this._useHandle,l=IMt(r,this.api,o),c=i.mainGroup=this._createBarGroup(l),u=new Ir;c.add(u),u.add(i.outOfRange=AHe()),u.add(i.inRange=AHe(null,s?zHe(this._orient):null,En(this._dragHandle,this,"all",!1),En(this._dragHandle,this,"all",!0))),u.setClipPath(new ao({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var d=r.textStyleModel.getTextRect("国"),p=ale(d.width,d.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(r,c,0,o,p,a),this._createHandle(r,c,1,o,p,a)),this._createIndicator(r,c,o,p,a),n.add(c)},t.prototype._createHandle=function(n,r,i,o,a,s){var l=En(this._dragHandle,this,i,!1),c=En(this._dragHandle,this,i,!0),u=Am(n.get("handleSize"),o[0]),d=rc(n.get("handleIcon"),-u/2,-u/2,u,u,null,!0),p=zHe(this._orient);d.attr({cursor:p,draggable:!0,drift:l,ondragend:c,onmousemove:function(y){nM(y.event)}}),d.x=o[0]/2,d.useStyle(n.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),mO(d,!0),r.add(d);var h=this.visualMapModel.textStyleModel,g=new oo({cursor:p,draggable:!0,drift:l,onmousemove:function(y){nM(y.event)},ondragend:c,style:Za(h,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var m=[u,0],v=this._shapes;v.handleThumbs[i]=d,v.handleLabelPoints[i]=m,v.handleLabels[i]=g},t.prototype._createIndicator=function(n,r,i,o,a){var s=Am(n.get("indicatorSize"),i[0]),l=rc(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var c=n.getModel("indicatorStyle").getItemStyle();if(l instanceof Du){var u=l.style;l.useStyle(Nt({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},c))}else l.useStyle(c);r.add(l);var d=this.visualMapModel.textStyleModel,p=new oo({silent:!0,invisible:!0,style:Za(d,{x:0,y:0,text:""})});this.group.add(p);var h=[(a==="horizontal"?o/2:gMr)+i[0]/2,0],g=this._shapes;g.indicator=l,g.indicatorLabel=p,g.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(n,r,i,o){if(this._useHandle){if(this._dragging=!r,!r){var a=this._applyTransform([i,o],this._shapes.mainGroup,!0);this._updateInterval(n,a[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():OHe(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},t.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),i=n.getExtent(),o=[0,n.itemSize[1]];this._handleEnds=[Av(r[0],i,o,!0),Av(r[1],i,o,!0)]},t.prototype._updateInterval=function(n,r){r=r||0;var i=this.visualMapModel,o=this._handleEnds,a=[0,i.itemSize[1]];Y3(r,o,a,n,0);var s=i.getExtent();this._dataInterval=[Av(o[0],a,s,!0),Av(o[1],a,s,!0)]},t.prototype._updateView=function(n){var r=this.visualMapModel,i=r.getExtent(),o=this._shapes,a=[0,r.itemSize[1]],s=n?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),c=this._createBarVisual(i,i,a,"outOfRange");o.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),o.outOfRange.setStyle({fill:c.barColor}).setShape("points",c.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(n,r,i,o){var a={forceState:o,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,a),l=[this.getControllerVisual(n[0],"symbolSize",a),this.getControllerVisual(n[1],"symbolSize",a)],c=this._createBarPoints(i,l);return{barColor:new ek(0,0,0,1,s),barPoints:c,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(n,r){var i=100,o=[],a=(n[1]-n[0])/i;o.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<i;s++){var l=n[0]+a*s;if(l>n[1])break;o.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return o.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),o},t.prototype._createBarPoints=function(n,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],n[0]],[i[0],n[0]],[i[0],n[1]],[i[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,i=this.visualMapModel.get("inverse");return new Ir(r==="horizontal"&&!i?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var i=this._shapes,o=this.visualMapModel,a=i.handleThumbs,s=i.handleLabels,l=o.itemSize,c=o.getExtent(),u=this._applyTransform("left",i.mainGroup);hMr([0,1],function(d){var p=a[d];p.setStyle("fill",r.handlesColor[d]),p.y=n[d];var h=Av(n[d],[0,l[1]],c,!0),g=this.getControllerVisual(h,"symbolSize");p.scaleX=p.scaleY=g/l[0],p.x=l[0]-g/2;var m=mm(i.handleLabelPoints[d],Lx(p,this.group));if(this._orient==="horizontal"){var v=u==="left"||u==="top"?(l[0]-g)/2:(l[0]-g)/-2;m[1]+=v}s[d].setStyle({x:m[0],y:m[1],text:o.formatValueText(this._dataInterval[d]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,i,o){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,c=[0,l[1]],u=this._shapes,d=u.indicator;if(d){d.attr("invisible",!1);var p={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",p),g=this.getControllerVisual(n,"symbolSize"),m=Av(n,s,c,!0),v=l[0]-g/2,y={x:d.x,y:d.y};d.y=m,d.x=v;var M=mm(u.indicatorLabelPoint,Lx(d,this.group)),C=u.indicatorLabel;C.attr("invisible",!1);var x=this._applyTransform("left",u.mainGroup),w=this._orient,S=w==="horizontal";C.setStyle({text:(i||"")+a.formatValueText(r),verticalAlign:S?x:"middle",align:S?"center":x});var A={x:v,y:m,style:{fill:h}},z={style:{x:M[0],y:M[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(A,O),C.animateTo(z,O)}else d.attr(A),C.attr(z);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var I=0;I<T.length;I++)this.api.enterBlur(T[I])}},t.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var i=n.visualMapModel.itemSize,o=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);o[1]=SHe(ale(0,o[1]),i[1]),n._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=i[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(n,r){var i=this.visualMapModel,o=i.itemSize;if(i.option.hoverLink){var a=[0,o[1]],s=i.getExtent();n=SHe(ale(a[0],n),a[1]);var l=vMr(i,s,a),c=[n-l,n+l],u=Av(n,a,s,!0),d=[Av(c[0],a,s,!0),Av(c[1],a,s,!0)];c[0]<a[0]&&(d[0]=-1/0),c[1]>a[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(u,d[1],"< ",l):d[1]===1/0?this._showIndicator(u,d[0],"> ",l):this._showIndicator(u,u,"≈ ",l));var p=this._hoverLinkDataIndices,h=[];(r||OHe(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(d));var g=sir(p,h);this._dispatchHighDown("downplay",X7(g[0],i)),this._dispatchHighDown("highlight",X7(g[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(bO(n.target,function(l){var c=_r(l);if(c.dataIndex!=null)return r=c,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(i)){var a=i.getData(r.dataType),s=a.getStore().get(o.getDataDimensionIndex(a),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i<r.length;i++)this.api.leaveBlur(r[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",X7(n,this.visualMapModel)),n.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(n,r,i,o){var a=Lx(r,o?null:this.group);return Ht(n)?mm(n,a,i):fJ(n,a,i)},t.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})(RMt);function AHe(e,t,n,r){return new O0({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(i){nM(i.event)},ondragend:r})}function vMr(e,t,n){var r=fMr/2,i=e.get("hoverLinkDataSize");return i&&(r=Av(i,t,n,!0)/2),r}function OHe(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function zHe(e){return e==="vertical"?"ns-resize":"ew-resize"}var bMr={type:"selectDataRange",event:"dataRangeSelected",update:"update"},yMr=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},MMr=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(r){var i=e.pipelineContext;!r.isTargetSeries(e)||i&&i.large||n.push(j2r(r.stateList,r.targetVisuals,En(r.getValueState,r),r.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var o=i.getVisualMeta(En(CMr,null,e,i))||{stops:[],outerColors:[]},a=i.getDataDimensionIndex(n);a>=0&&(o.dimension=a,r.push(o))}}),e.getData().setVisual("visualMeta",r)}}];function CMr(e,t,n,r){for(var i=t.targetVisuals[r],o=Su.prepareVisualTypes(i),a={color:VB(e.getData(),"color")},s=0,l=o.length;s<l;s++){var c=o[s],u=i[c==="opacity"?"__alphaForOpacity":c];u&&u.applyVisual(n,d,p)}return a.color;function d(h){return a[h]}function p(h,g){a[h]=g}}var THe=ye;function xMr(e){var t=e&&e.visualMap;Ht(t)||(t=t?[t]:[]),THe(t,function(n){if(n){JE(n,"splitList")&&!JE(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&Ht(r)&&THe(r,function(i){xr(i)&&(JE(i,"start")&&!JE(i,"min")&&(i.min=i.start),JE(i,"end")&&!JE(i,"max")&&(i.max=i.end))})}})}function JE(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var EHe=!1;function PMt(e){EHe||(EHe=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(bMr,yMr),ye(MMr,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(xMr))}function DMt(e){e.registerComponentModel(pMr),e.registerComponentView(mMr),PMt(e)}var wMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],SMr[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var o=this.option.categories;this.resetVisual(function(a,s){i==="categories"?(a.mappingMethod="category",a.categories=Or(o)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=Vt(this._pieceList,function(l){return l=Or(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},i=Su.listVisualTypes(),o=this.isCategory();ye(n.pieces,function(s){ye(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),ye(r,function(s,l){var c=!1;ye(this.stateList,function(u){c=c||a(n,u,l)||a(n.target,u,l)},this),!c&&ye(this.stateList,function(u){(n[u]||(n[u]={}))[l]=EMt.get(l,u==="inRange"?"active":"inactive",o)})},this);function a(s,l,c){return s&&s[l]&&s[l].hasOwnProperty(c)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var i=this.option,o=this._pieceList,a=(r?i:n).selected||{};if(i.selected=a,ye(o,function(l,c){var u=this.getSelectedMapKey(l);a.hasOwnProperty(u)||(a[u]=!0)},this),i.selectedMode==="single"){var s=!1;ye(o,function(l,c){var u=this.getSelectedMapKey(l);a[u]&&(s?a[u]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Or(n)},t.prototype.getValueState=function(n){var r=Su.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],i=this._pieceList;return this.eachTargetSeries(function(o){var a=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,c){var u=Su.findPieceIndex(l,i);u===n&&a.push(c)},this),r.push({seriesId:o.id,dataIndex:a})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var i=n.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],i=["",""],o=this;function a(u,d){var p=o.getRepresentValue({interval:u});d||(d=o.getValueState(p));var h=n(p,d);u[0]===-1/0?i[0]=h:u[1]===1/0?i[1]=h:r.push({value:u[0],color:h},{value:u[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var c=-1/0;return ye(s,function(u){var d=u.interval;d&&(d[0]>c&&a([c,d[0]],"outOfRange"),a(d.slice()),c=d[1])},this),{stops:r,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Fw(UU.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(UU),SMr={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),zme(e),ye(e,function(c,u){c.index=u,c.text=this.formatValueText(c.interval)},this)},categories:function(e){var t=this.option;ye(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),RHe(t,e)},pieces:function(e){var t=this.option;ye(t.pieces,function(n,r){xr(n)||(n={value:n});var i={text:"",index:r};if(n.label!=null&&(i.text=n.label),n.hasOwnProperty("value")){var o=i.value=n.value;i.interval=[o,o],i.close=[1,1]}else{for(var a=i.interval=[],s=i.close=[0,0],l=[1,0,1],c=[-1/0,1/0],u=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],h=0;h<3&&a[d]==null;h++)a[d]=n[p[h]],s[d]=l[h],u[d]=h===2;a[d]==null&&(a[d]=c[d])}u[0]&&a[1]===1/0&&(s[0]=0),u[1]&&a[0]===-1/0&&(s[1]=0),a[0]===a[1]&&s[0]&&s[1]&&(i.value=a[0])}i.visual=Su.retrieveVisuals(n),e.push(i)},this),RHe(t,e),zme(e),ye(e,function(n){var r=n.close,i=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,i)},this)}};function RHe(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}var AMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,i=r.get("textGap"),o=r.textStyleModel,a=o.getFont(),s=o.getTextColor(),l=this._getItemAlign(),c=r.itemSize,u=this._getViewData(),d=u.endsText,p=xu(r.get("showLabel",!0),!d),h=!r.get("selectedMode");d&&this._renderEndsText(n,d[0],c,p,l),ye(u.viewPieceList,function(g){var m=g.piece,v=new Ir;v.onclick=En(this._onItemClick,this,m),this._enableHoverLink(v,g.indexInModelPieceList);var y=r.getRepresentValue(m);if(this._createItemSymbol(v,y,[0,0,c[0],c[1]],h),p){var M=this.visualMapModel.getValueState(y);v.add(new oo({style:{x:l==="right"?-i:c[0]+i,y:c[1]/2,text:m.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:M==="outOfRange"?.5:1},silent:h}))}n.add(v)},this),d&&this._renderEndsText(n,d[1],c,p,l),tz(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var i=this;n.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(a){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:a,batch:X7(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return IMt(n,this.api,n.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(n,r,i,o,a){if(r){var s=new Ir,l=this.visualMapModel.textStyleModel;s.add(new oo({style:Za(l,{x:o?a==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?a:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=Vt(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=n.get("text"),o=n.get("orient"),a=n.get("inverse");return(o==="horizontal"?a:!a)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},t.prototype._createItemSymbol=function(n,r,i,o){var a=rc(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color"));a.silent=o,n.add(a)},t.prototype._onItemClick=function(n){var r=this.visualMapModel,i=r.option,o=i.selectedMode;if(o){var a=Or(i.selected),s=r.getSelectedMapKey(n);o==="single"||o===!0?(a[s]=!0,ye(a,function(l,c){a[c]=c===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t})(RMt);function kMt(e){e.registerComponentModel(wMr),e.registerComponentView(AMr),PMt(e)}function OMr(e){Si(DMt),Si(kMt)}var zMr={label:{enabled:!0},decal:{show:!1}},IHe=mo(),TMr={};function EMr(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Or(zMr);ei(r.label,e.getLocaleModel().get("aria"),!1),ei(n.option,r,!1),i(),o();function i(){var c=n.getModel("decal"),u=c.get("show");if(u){var d=Yn();e.eachSeries(function(p){if(!p.isColorBySeries()){var h=d.get(p.type);h||(h={},d.set(p.type,h)),IHe(p).scope=h}}),e.eachRawSeries(function(p){if(e.isSeriesFiltered(p))return;if(fr(p.enableAriaDecal)){p.enableAriaDecal();return}var h=p.getData();if(p.isColorBySeries()){var M=Hme(p.ecModel,p.name,TMr,e.getSeriesCount()),C=h.getVisual("decal");h.setVisual("decal",x(C,M))}else{var g=p.getRawData(),m={},v=IHe(p).scope;h.each(function(w){var S=h.getRawIndex(w);m[S]=w});var y=g.count();g.each(function(w){var S=m[w],A=g.getName(w)||w+"",z=Hme(p.ecModel,A,v,y),O=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",x(O,z))})}function x(w,S){var A=w?Nt(Nt({},S),w):S;return A.dirty=!0,A}})}}function o(){var c=t.getZr().dom;if(c){var u=e.getLocaleModel().get("aria"),d=n.getModel("label");if(d.option=br(d.option,u),!!d.get("enabled")){if(c.setAttribute("role","img"),d.get("description")){c.setAttribute("aria-label",d.get("description"));return}var p=e.getSeriesCount(),h=d.get(["data","maxCount"])||10,g=d.get(["series","maxCount"])||10,m=Math.min(p,g),v;if(!(p<1)){var y=s();if(y){var M=d.get(["general","withTitle"]);v=a(M,{title:y})}else v=d.get(["general","withoutTitle"]);var C=[],x=p>1?d.get(["series","multiple","prefix"]):d.get(["series","single","prefix"]);v+=a(x,{seriesCount:p}),e.eachSeries(function(z,O){if(O<m){var T=void 0,I=z.get("name"),P=I?"withName":"withoutName";T=p>1?d.get(["series","multiple",P]):d.get(["series","single",P]),T=a(T,{seriesId:z.seriesIndex,seriesName:z.get("name"),seriesType:l(z.subType)});var N=z.getData();if(N.count()>h){var F=d.get(["data","partialData"]);T+=a(F,{displayCnt:h})}else T+=d.get(["data","allData"]);for(var L=d.get(["data","separator","middle"]),W=d.get(["data","separator","end"]),H=d.get(["data","excludeDimensionId"]),j=[],G=0;G<N.count();G++)if(G<h){var q=N.getName(G),$=H?ko(N.getValues(G),function(X,Q){return hi(H,Q)===-1}):N.getValues(G),U=d.get(["data",q?"withName":"withoutName"]);j.push(a(U,{name:q,value:$.join(L)}))}T+=j.join(L)+W,C.push(T)}});var w=d.getModel(["series","multiple","separator"]),S=w.get("middle"),A=w.get("end");v+=C.join(S)+A,c.setAttribute("aria-label",v)}}}}function a(c,u){if(!Sn(c))return c;var d=c;return ye(u,function(p,h){d=d.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),p)}),d}function s(){var c=e.get("title");return c&&c.length&&(c=c[0]),c&&c.text}function l(c){var u=e.getLocaleModel().get(["series","typeNames"]);return u[c]||u.chart}}function RMr(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},ye(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function IMr(e){e.registerPreprocessor(RMr),e.registerVisual(e.PRIORITY.VISUAL.ARIA,EMr)}var PHe={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},PMr=(function(){function e(t){var n=this._condVal=Sn(t)?new RegExp(t):ogt(t)?t:null;if(n==null){var r="";Ko(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return Sn(n)?this._condVal.test(t):yo(n)?this._condVal.test(t+""):!1},e})(),DMr=(function(){function e(){}return e.prototype.evaluate=function(){return this.value},e})(),kMr=(function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(!t[n].evaluate())return!1;return!0},e})(),LMr=(function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(t[n].evaluate())return!0;return!1},e})(),_Mr=(function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e})(),NMr=(function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),i=t?this.valueParser(r):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(t?i:r))return!1;return!0},e})();function dOe(e,t){if(e===!0||e===!1){var n=new DMr;return n.value=e,n}var r="";return LMt(e)||Ko(r),e.and?DHe("and",e,t):e.or?DHe("or",e,t):e.not?FMr(e,t):WMr(e,t)}function DHe(e,t,n){var r=t[e],i="";Ht(r)||Ko(i),r.length||Ko(i);var o=e==="and"?new kMr:new LMr;return o.children=Vt(r,function(a){return dOe(a,n)}),o.children.length||Ko(i),o}function FMr(e,t){var n=e.not,r="";LMt(n)||Ko(r);var i=new _Mr;return i.child=dOe(n,t),i.child||Ko(r),i}function WMr(e,t){for(var n="",r=t.prepareGetValue(e),i=[],o=ji(e),a=e.parser,s=a?hvt(a):null,l=0;l<o.length;l++){var c=o[l];if(!(c==="parser"||t.valueGetterAttrMap.get(c))){var u=Fn(PHe,c)?PHe[c]:c,d=e[c],p=s?s(d):d,h=usr(u,p)||u==="reg"&&new PMr(p);h||Ko(n),i.push(h)}}i.length||Ko(n);var g=new NMr;return g.valueGetterParam=r,g.valueParser=s,g.getValue=t.getValue,g.subCondList=i,g}function LMt(e){return xr(e)&&!Sd(e)}var qMr=(function(){function e(t,n){this._cond=dOe(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e})();function BMr(e,t){return new qMr(e,t)}var jMr={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=BMr(e.config,{valueGetterAttrMap:Yn({dimension:!0}),prepareGetValue:function(s){var l="",c=s.dimension;Fn(s,"dimension")||Ko(l);var u=t.getDimensionInfo(c);return u||Ko(l),{dimIdx:u.index}},getValue:function(s){return t.retrieveValueFromItem(n,s.dimIdx)}}),i=[],o=0,a=t.count();o<a;o++)n=t.getRawDataItem(o),r.evaluate()&&i.push(n);return{data:i}}},HMr={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",i=Ta(n);i.length||Ko(r);var o=[];ye(i,function(u){var d=u.dimension,p=u.order,h=u.parser,g=u.incomparable;if(d==null&&Ko(r),p!=="asc"&&p!=="desc"&&Ko(r),g&&g!=="min"&&g!=="max"){var m="";Ko(m)}if(p!=="asc"&&p!=="desc"){var v="";Ko(v)}var y=t.getDimensionInfo(d);y||Ko(r);var M=h?hvt(h):null;h&&!M&&Ko(r),o.push({dimIdx:y.index,parser:M,comparator:new gvt(p,g)})});var a=t.sourceFormat;a!==z0&&a!==tg&&Ko(r);for(var s=[],l=0,c=t.count();l<c;l++)s.push(t.getRawDataItem(l));return s.sort(function(u,d){for(var p=0;p<o.length;p++){var h=o[p],g=t.retrieveValueFromItem(u,h.dimIdx),m=t.retrieveValueFromItem(d,h.dimIdx);h.parser&&(g=h.parser(g),m=h.parser(m));var v=h.comparator.evaluate(g,m);if(v!==0)return v}return 0}),{data:s}}};function VMr(e){e.registerTransform(jMr),e.registerTransform(HMr)}var GMr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.prototype.init=function(n,r,i){e.prototype.init.call(this,n,r,i),this._sourceManager=new yvt(this),_We(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),_We(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Mb},t})(Ri),$Mr=(function(e){gt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t})(cs);function UMr(e){e.registerComponentModel(GMr),e.registerComponentView($Mr)}var yv=Nb.CMD;function HR(e,t){return Math.abs(e-t)<1e-5}function Gve(e){var t=e.data,n=e.len(),r=[],i,o=0,a=0,s=0,l=0;function c(N,F){i&&i.length>2&&r.push(i),i=[N,F]}function u(N,F,L,W){HR(N,L)&&HR(F,W)||i.push(N,F,L,W,L,W)}function d(N,F,L,W,H,j){var G=Math.abs(F-N),q=Math.tan(G/4)*4/3,$=F<N?-1:1,U=Math.cos(N),X=Math.sin(N),Q=Math.cos(F),re=Math.sin(F),ee=U*H+L,se=X*j+W,pe=Q*H+L,te=re*j+W,ce=H*q*$,oe=j*q*$;i.push(ee-ce*X,se+oe*U,pe+ce*re,te-oe*Q,pe,te)}for(var p,h,g,m,v=0;v<n;){var y=t[v++],M=v===1;switch(M&&(o=t[v],a=t[v+1],s=o,l=a,(y===yv.L||y===yv.C||y===yv.Q)&&(i=[s,l])),y){case yv.M:o=s=t[v++],a=l=t[v++],c(s,l);break;case yv.L:p=t[v++],h=t[v++],u(o,a,p,h),o=p,a=h;break;case yv.C:i.push(t[v++],t[v++],t[v++],t[v++],o=t[v++],a=t[v++]);break;case yv.Q:p=t[v++],h=t[v++],g=t[v++],m=t[v++],i.push(o+2/3*(p-o),a+2/3*(h-a),g+2/3*(p-g),m+2/3*(h-m),g,m),o=g,a=m;break;case yv.A:var C=t[v++],x=t[v++],w=t[v++],S=t[v++],A=t[v++],z=t[v++]+A;v+=1;var O=!t[v++];p=Math.cos(A)*w+C,h=Math.sin(A)*S+x,M?(s=p,l=h,c(s,l)):u(o,a,p,h),o=Math.cos(z)*w+C,a=Math.sin(z)*S+x;for(var T=(O?-1:1)*Math.PI/2,I=A;O?I>z:I<z;I+=T){var P=O?Math.max(I+T,z):Math.min(I+T,z);d(I,P,C,x,w,S)}break;case yv.R:s=o=t[v++],l=a=t[v++],p=s+t[v++],h=l+t[v++],c(p,l),u(p,l,p,h),u(p,h,s,h),u(s,h,s,l),u(s,l,p,l);break;case yv.Z:i&&u(o,a,s,l),o=s,a=l;break}}return i&&i.length>2&&r.push(i),r}function $ve(e,t,n,r,i,o,a,s,l,c){if(HR(e,n)&&HR(t,r)&&HR(i,a)&&HR(o,s)){l.push(a,s);return}var u=2/c,d=u*u,p=a-e,h=s-t,g=Math.sqrt(p*p+h*h);p/=g,h/=g;var m=n-e,v=r-t,y=i-a,M=o-s,C=m*m+v*v,x=y*y+M*M;if(C<d&&x<d){l.push(a,s);return}var w=p*m+h*v,S=-p*y-h*M,A=C-w*w,z=x-S*S;if(A<d&&w>=0&&z<d&&S>=0){l.push(a,s);return}var O=[],T=[];iw(e,n,i,a,.5,O),iw(t,r,o,s,.5,T),$ve(O[0],T[0],O[1],T[1],O[2],T[2],O[3],T[3],l,c),$ve(O[4],T[4],O[5],T[5],O[6],T[6],O[7],T[7],l,c)}function XMr(e,t){var n=Gve(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var c=2;c<o.length;){var u=o[c++],d=o[c++],p=o[c++],h=o[c++],g=o[c++],m=o[c++];$ve(s,l,u,d,p,h,g,m,a,t),s=g,l=m}r.push(a)}return r}function _Mt(e,t,n){var r=e[t],i=e[1-t],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);s===0&&(s=1,a=n);for(var l=[],c=0;c<a;c++)l.push(s);var u=a*s,d=n-u;if(d>0)for(var c=0;c<d;c++)l[c%a]+=1;return l}function kHe(e,t,n){for(var r=e.r0,i=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),l=s*i,c=i-r,u=l>Math.abs(c),d=_Mt([l,c],u?0:1,t),p=(u?s:c)/d.length,h=0;h<d.length;h++)for(var g=(u?c:s)/d[h],m=0;m<d[h];m++){var v={};u?(v.startAngle=o+p*h,v.endAngle=o+p*(h+1),v.r0=r+g*m,v.r=r+g*(m+1)):(v.startAngle=o+g*m,v.endAngle=o+g*(m+1),v.r0=r+p*h,v.r=r+p*(h+1)),v.clockwise=e.clockwise,v.cx=e.cx,v.cy=e.cy,n.push(v)}}function YMr(e,t,n){for(var r=e.width,i=e.height,o=r>i,a=_Mt([r,i],o?0:1,t),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",d=e[s]/a.length,p=0;p<a.length;p++)for(var h=e[l]/a[p],g=0;g<a[p];g++){var m={};m[c]=p*d,m[u]=g*h,m[s]=d,m[l]=h,m.x+=e.x,m.y+=e.y,n.push(m)}}function LHe(e,t,n,r){return e*r-n*t}function KMr(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,p=LHe(u,d,l,c);if(Math.abs(p)<1e-6)return null;var h=e-i,g=t-o,m=LHe(h,g,u,d)/p;return m<0||m>1?null:new ci(m*l+e,m*c+t)}function QMr(e,t,n){var r=new ci;ci.sub(r,n,t),r.normalize();var i=new ci;ci.sub(i,e,t);var o=i.dot(r);return o}function eR(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function ZMr(e,t,n){for(var r=e.length,i=[],o=0;o<r;o++){var a=e[o],s=e[(o+1)%r],l=KMr(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&i.push({projPt:QMr(l,t,n),pt:l,idx:o})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(v,y){return v.projPt-y.projPt});var c=i[0],u=i[i.length-1];if(u.idx<c.idx){var d=c;c=u,u=d}for(var p=[c.pt.x,c.pt.y],h=[u.pt.x,u.pt.y],g=[p],m=[h],o=c.idx+1;o<=u.idx;o++)eR(g,e[o].slice());eR(g,h),eR(g,p);for(var o=u.idx+1;o<=c.idx+r;o++)eR(m,e[o%r].slice());return eR(m,p),eR(m,h),[{points:g},{points:m}]}function _He(e){var t=e.points,n=[],r=[];cJ(t,n,r);var i=new ui(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,c=new ci,u=new ci;return o>a?(c.x=u.x=s+o/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+o),ZMr(t,c,u)}function XU(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),o=e(t);XU(e,o[0],i,r),XU(e,o[1],n-i,r)}return r}function JMr(e,t){for(var n=[],r=0;r<t;r++)n.push(bSe(e));return n}function eCr(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function tCr(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function nCr(e,t){var n=[],r=e.shape,i;switch(e.type){case"rect":YMr(r,t,n),i=ao;break;case"sector":kHe(r,t,n),i=A0;break;case"circle":kHe({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=A0;break;default:var o=e.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Vt(XMr(e.getUpdatedPathProxy(),a),function(y){return tCr(y)}),l=s.length;if(l===0)XU(_He,{points:s[0]},t,n);else if(l===t)for(var c=0;c<l;c++)n.push({points:s[c]});else{var u=0,d=Vt(s,function(y){var M=[],C=[];cJ(y,M,C);var x=(C[1]-M[1])*(C[0]-M[0]);return u+=x,{poly:y,area:x}});d.sort(function(y,M){return M.area-y.area});for(var p=t,c=0;c<l;c++){var h=d[c];if(p<=0)break;var g=c===l-1?p:Math.ceil(h.area/u*t);g<0||(XU(_He,{points:h.poly},g,n),p-=g)}}i=O0;break}if(!i)return JMr(e,t);for(var m=[],c=0;c<n.length;c++){var v=new i;v.setShape(n[c]),eCr(e,v),m.push(v)}return m}function rCr(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],o=[],a=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,d=[a[0],a[1]],p=l,h=2;h<s;){var g=a[h-2],m=a[h-1],v=a[h++],y=a[h++],M=a[h++],C=a[h++],x=a[h++],w=a[h++];if(p<=0){d.push(v,y,M,C,x,w);continue}for(var S=Math.min(p,u-1)+1,A=1;A<=S;A++){var z=A/S;iw(g,v,M,x,z,i),iw(m,y,C,w,z,o),g=i[3],m=o[3],d.push(i[1],o[1],i[2],o[2],g,m),v=i[5],y=o[5],M=i[6],C=o[6]}p-=S-1}return a===e?[d,t]:[e,d]}function NHe(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],o=[],a=0;a<t.length;)o[a++]=r,o[a++]=i;return o}function iCr(e,t){for(var n,r,i,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],c=t[s],u=void 0,d=void 0;l?c?(n=rCr(l,c),u=n[0],d=n[1],r=u,i=d):(d=NHe(i||l,l),u=l):(u=NHe(r||c,c),d=c),o.push(u),a.push(d)}return[o,a]}function FHe(e){for(var t=0,n=0,r=0,i=e.length,o=0,a=i-2;o<i;a=o,o+=2){var s=e[a],l=e[a+1],c=e[o],u=e[o+1],d=s*u-c*l;t+=d,n+=(s+c)*d,r+=(l+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function oCr(e,t,n,r){for(var i=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,c=0;c<i;c++){for(var u=c*6,d=0,p=0;p<s;p+=2){var h=p===0?u:(u+p-2)%l+2,g=e[h]-n[0],m=e[h+1]-n[1],v=t[p]-r[0],y=t[p+1]-r[1],M=v-g,C=y-m;d+=M*M+C*C}d<o&&(o=d,a=c)}return a}function aCr(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function sCr(e,t,n,r){for(var i=[],o,a=0;a<e.length;a++){var s=e[a],l=t[a],c=FHe(s),u=FHe(l);o==null&&(o=c[2]<0!=u[2]<0);var d=[],p=[],h=0,g=1/0,m=[],v=s.length;o&&(s=aCr(s));for(var y=oCr(s,l,c,u)*6,M=v-2,C=0;C<M;C+=2){var x=(y+C)%M+2;d[C+2]=s[x]-c[0],d[C+3]=s[x+1]-c[1]}d[0]=s[y]-c[0],d[1]=s[y+1]-c[1];for(var w=r/n,S=-r/2;S<=r/2;S+=w){for(var A=Math.sin(S),z=Math.cos(S),O=0,C=0;C<s.length;C+=2){var T=d[C],I=d[C+1],P=l[C]-u[0],N=l[C+1]-u[1],F=P*z-N*A,L=P*A+N*z;m[C]=F,m[C+1]=L;var W=F-T,H=L-I;O+=W*W+H*H}if(O<g){g=O,h=S;for(var j=0;j<m.length;j++)p[j]=m[j]}}i.push({from:d,to:p,fromCp:c,toCp:u,rotation:-h})}return i}function YU(e){return e.__isCombineMorphing}var NMt="__mOriginal_";function KU(e,t,n){var r=NMt+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var l=arguments,c;return s&&s.apply(this,l),o?c=o.apply(this,l):c=i.apply(this,l),a&&a.apply(this,l),c}}function kF(e,t){var n=NMt+t;e[n]&&(e[t]=e[n],e[n]=null)}function WHe(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=t[0]*o+t[2]*a+t[4],r[i++]=t[1]*o+t[3]*a+t[5]}}function FMt(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=iCr(Gve(n),Gve(r)),o=i[0],a=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function c(){this.transform=null}s&&WHe(o,s),l&&WHe(a,l),KU(t,"updateTransform",{replace:c}),t.transform=null;var u=sCr(o,a,10,Math.PI),d=[];KU(t,"buildPath",{replace:function(p){for(var h=t.__morphT,g=1-h,m=[],v=0;v<u.length;v++){var y=u[v],M=y.from,C=y.to,x=y.rotation*h,w=y.fromCp,S=y.toCp,A=Math.sin(x),z=Math.cos(x);MF(m,w,S,h);for(var O=0;O<M.length;O+=2){var T=M[O],I=M[O+1],P=C[O],N=C[O+1],F=T*g+P*h,L=I*g+N*h;d[O]=F*z-L*A+m[0],d[O+1]=F*A+L*z+m[1]}var W=d[0],H=d[1];p.moveTo(W,H);for(var O=2;O<M.length;){var P=d[O++],N=d[O++],j=d[O++],G=d[O++],q=d[O++],$=d[O++];W===P&&H===N&&j===q&&G===$?p.lineTo(q,$):p.bezierCurveTo(P,N,j,G,q,$),W=q,H=$}}}})}function pOe(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;FMt(e,t),t.__morphT=0;function o(){kF(t,"buildPath"),kF(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},br({during:function(a){t.dirtyShape(),i&&i(a)},done:function(){o(),r&&r()}},n)),t}function lCr(e,t,n,r,i,o){var a=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=o===r?0:Math.round(32767*(t-r)/(o-r));for(var s=0,l,c=(1<<a)/2;c>0;c/=2){var u=0,d=0;(e&c)>0&&(u=1),(t&c)>0&&(d=1),s+=c*c*(3*u^d),d===0&&(u===1&&(e=c-1-e,t=c-1-t),l=e,e=t,t=l)}return s}function QU(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,o=Vt(e,function(s){var l=s.getBoundingRect(),c=s.getComputedTransform(),u=l.x+l.width/2+(c?c[4]:0),d=l.y+l.height/2+(c?c[5]:0);return t=Math.min(u,t),n=Math.min(d,n),r=Math.max(u,r),i=Math.max(d,i),[u,d]}),a=Vt(o,function(s,l){return{cp:s,z:lCr(s[0],s[1],t,n,r,i),path:e[l]}});return a.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function WMt(e){return nCr(e.path,e.count)}function Uve(){return{fromIndividuals:[],toIndividuals:[],count:0}}function cCr(e,t,n){var r=[];function i(w){for(var S=0;S<w.length;S++){var A=w[S];YU(A)?i(A.childrenRef()):A instanceof Di&&r.push(A)}}i(e);var o=r.length;if(!o)return Uve();var a=n.dividePath||WMt,s=a({path:t,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),Uve();r=QU(r),s=QU(s);for(var l=n.done,c=n.during,u=n.individualDelay,d=new Sy,p=0;p<o;p++){var h=r[p],g=s[p];g.parent=t,g.copyTransform(d),u||FMt(h,g)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function m(w){for(var S=0;S<s.length;S++)s[S].addSelfToZr(w)}KU(t,"addSelfToZr",{after:function(w){m(w)}}),KU(t,"removeSelfFromZr",{after:function(w){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(w)}});function v(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,kF(t,"addSelfToZr"),kF(t,"removeSelfFromZr")}var y=s.length;if(u)for(var M=y,C=function(){M--,M===0&&(v(),l&&l())},p=0;p<y;p++){var x=u?br({delay:(n.delay||0)+u(p,y,r[p],s[p]),done:C},n):n;pOe(r[p],s[p],x)}else t.__morphT=0,t.animateTo({__morphT:1},br({during:function(w){for(var S=0;S<y;S++){var A=s[S];A.__morphT=t.__morphT,A.dirtyShape()}c&&c(w)},done:function(){v();for(var w=0;w<e.length;w++)kF(e[w],"updateTransform");l&&l()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function uCr(e,t,n){var r=t.length,i=[],o=n.dividePath||WMt;function a(h){for(var g=0;g<h.length;g++){var m=h[g];YU(m)?a(m.childrenRef()):m instanceof Di&&i.push(m)}}if(YU(e)){a(e.childrenRef());var s=i.length;if(s<r)for(var l=0,c=s;c<r;c++)i.push(bSe(i[l++%s]));i.length=r}else{i=o({path:e,count:r});for(var u=e.getComputedTransform(),c=0;c<i.length;c++)i[c].setLocalTransform(u);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),Uve()}i=QU(i),t=QU(t);for(var d=n.individualDelay,c=0;c<r;c++){var p=d?br({delay:(n.delay||0)+d(c,r,i[c],t[c])},n):n;pOe(i[c],t[c],p)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function qHe(e){return Ht(e[0])}function BHe(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var o=t[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(t[i][a])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var o=l.length,c=Math.ceil(o/2);n[i].many=l.slice(c,o),n[s].many=l.slice(0,c),s++}return n}var dCr={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var i=bSe(e.path);i.setStyle("opacity",n),t.push(i)}return t},split:null};function sle(e,t,n,r,i,o){if(!e.length||!t.length)return;var a=tk("update",r,i);if(!(a&&a.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a),c,u;qHe(e)&&(c=e,u=t),qHe(t)&&(c=t,u=e);function d(y,M,C,x,w){var S=y.many,A=y.one;if(S.length===1&&!w){var z=M?S[0]:A,O=M?A:S[0];if(YU(z))d({many:[z],one:O},!0,C,x,!0);else{var T=s?br({delay:s(C,x)},l):l;pOe(z,O,T),o(z,O,z,O,T)}}else for(var I=br({dividePath:dCr[n],individualDelay:s&&function(H,j,G,q){return s(H+C,x)}},l),P=M?cCr(S,A,I):uCr(A,S,I),N=P.fromIndividuals,F=P.toIndividuals,L=N.length,W=0;W<L;W++){var T=s?br({delay:s(W,L)},l):l;o(N[W],F[W],M?S[W]:y.one,M?y.one:S[W],T)}}for(var p=c?c===e:e.length>t.length,h=c?BHe(u,c):BHe(p?t:e,[p?e:t]),g=0,m=0;m<h.length;m++)g+=h[m].many.length;for(var v=0,m=0;m<h.length;m++)d(h[m],p,v,g),v+=h[m].many.length}function WA(e){if(!e)return[];if(Ht(e)){for(var t=[],n=0;n<e.length;n++)t.push(WA(e[n]));return t}var r=[];return e.traverse(function(i){i instanceof Di&&!i.disableMorphing&&!i.invisible&&!i.ignore&&r.push(i)}),r}var qMt=1e4,pCr=0,jHe=1,HHe=2,hCr=mo();function fCr(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function gCr(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var o=e.get(r.name,t);return i&&i.categories[o]||o+""}}function VHe(e,t,n,r){var i=r?"itemChildGroupId":"itemGroupId",o=fCr(e,i);if(o){var a=gCr(e,t,o);return a}var s=e.getRawDataItem(t),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return n||e.getId(t)}function GHe(e){var t=[];return ye(e,function(n){var r=n.data,i=n.dataGroupId;if(!(r.count()>qMt))for(var o=r.getIndices(),a=0;a<o.length;a++)t.push({data:r,groupId:VHe(r,a,i,!1),childGroupId:VHe(r,a,i,!0),divide:n.divide,dataIndex:a})}),t}function lle(e,t,n){e.traverse(function(r){r instanceof Di&&vs(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function cle(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function tR(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function mCr(e,t,n){var r=tk("update",n,t);r&&e.traverse(function(i){if(i instanceof qf){var o=Uor(i);o&&i.animateFrom({style:o},r)}})}function vCr(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],o=t[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function BMt(e,t,n){var r=GHe(e),i=GHe(t);function o(C,x,w,S,A){(w||C)&&x.animateFrom({style:w&&w!==C?Nt(Nt({},w.style),C.style):C.style},A)}var a=!1,s=pCr,l=Yn(),c=Yn();r.forEach(function(C){C.groupId&&l.set(C.groupId,!0),C.childGroupId&&c.set(C.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(c.get(d)){s=jHe;break}var p=i[u].childGroupId;if(p&&l.get(p)){s=HHe;break}}function h(C,x){return function(w){var S=w.data,A=w.dataIndex;return x?S.getId(A):C?s===jHe?w.childGroupId:w.groupId:s===HHe?w.childGroupId:w.groupId}}var g=vCr(r,i),m={};if(!g)for(var u=0;u<i.length;u++){var v=i[u],y=v.data.getItemGraphicEl(v.dataIndex);y&&(m[y.id]=!0)}function M(C,x){var w=r[x],S=i[C],A=S.data.hostModel,z=w.data.getItemGraphicEl(w.dataIndex),O=S.data.getItemGraphicEl(S.dataIndex);if(z===O){O&&mCr(O,S.dataIndex,A);return}z&&m[z.id]||O&&(tR(O),z?(tR(z),cle(z),a=!0,sle(WA(z),WA(O),S.divide,A,C,o)):lle(O,A,C))}new oM(r,i,h(!0,g),h(!1,g),null,"multiple").update(M).updateManyToOne(function(C,x){var w=i[C],S=w.data,A=S.hostModel,z=S.getItemGraphicEl(w.dataIndex),O=ko(Vt(x,function(T){return r[T].data.getItemGraphicEl(r[T].dataIndex)}),function(T){return T&&T!==z&&!m[T.id]});z&&(tR(z),O.length?(ye(O,function(T){tR(T),cle(T)}),a=!0,sle(WA(O),WA(z),w.divide,A,C,o)):lle(z,A,w.dataIndex))}).updateOneToMany(function(C,x){var w=r[x],S=w.data.getItemGraphicEl(w.dataIndex);if(!(S&&m[S.id])){var A=ko(Vt(C,function(O){return i[O].data.getItemGraphicEl(i[O].dataIndex)}),function(O){return O&&O!==S}),z=i[C[0]].data.hostModel;A.length&&(ye(A,function(O){return tR(O)}),S?(tR(S),cle(S),a=!0,sle(WA(S),WA(A),w.divide,z,C[0],o)):ye(A,function(O){return lle(O,z,C[0])}))}}).updateManyToMany(function(C,x){new oM(x,C,function(w){return r[w].data.getId(r[w].dataIndex)},function(w){return i[w].data.getId(i[w].dataIndex)}).update(function(w,S){M(C[w],x[S])}).execute()}).execute(),a&&ye(t,function(C){var x=C.data,w=x.hostModel,S=w&&n.getViewOfSeriesModel(w),A=tk("update",w,0);S&&w.isAnimationEnabled()&&A&&A.duration>0&&S.group.traverse(function(z){z instanceof Di&&!z.animators.length&&z.animateFrom({style:{opacity:0}},A)})})}function $He(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function UHe(e){return Ht(e)?e.sort().join(","):e}function FC(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function bCr(e,t){var n=Yn(),r=Yn(),i=Yn();return ye(e.oldSeries,function(o,a){var s=e.oldDataGroupIds[a],l=e.oldData[a],c=$He(o),u=UHe(c);r.set(u,{dataGroupId:s,data:l}),Ht(c)&&ye(c,function(d){i.set(d,{key:u,dataGroupId:s,data:l})})}),ye(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var a=o.get("dataGroupId"),s=o.getData(),l=$He(o),c=UHe(l),u=r.get(c);if(u)n.set(c,{oldSeries:[{dataGroupId:u.dataGroupId,divide:FC(u.data),data:u.data}],newSeries:[{dataGroupId:a,divide:FC(s),data:s}]});else if(Ht(l)){var d=[];ye(l,function(g){var m=r.get(g);m.data&&d.push({dataGroupId:m.dataGroupId,divide:FC(m.data),data:m.data})}),d.length&&n.set(c,{oldSeries:d,newSeries:[{dataGroupId:a,data:s,divide:FC(s)}]})}else{var p=i.get(l);if(p){var h=n.get(p.key);h||(h={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:FC(p.data)}],newSeries:[]},n.set(p.key,h)),h.newSeries.push({dataGroupId:a,data:s,divide:FC(s)})}}}}),n}function XHe(e,t){for(var n=0;n<e.length;n++){var r=t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id;if(r)return n}}function yCr(e,t,n,r){var i=[],o=[];ye(Ta(e.from),function(a){var s=XHe(t.oldSeries,a);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:FC(t.oldData[s]),groupIdDim:a.dimension})}),ye(Ta(e.to),function(a){var s=XHe(n.updatedSeries,a);if(s>=0){var l=n.updatedSeries[s].getData();o.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:FC(l),groupIdDim:a.dimension})}}),i.length>0&&o.length>0&&BMt(i,o,r)}function MCr(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){ye(Ta(r.seriesTransition),function(i){ye(Ta(i.to),function(o){for(var a=r.updatedSeries,s=0;s<a.length;s++)(o.seriesIndex!=null&&o.seriesIndex===a[s].seriesIndex||o.seriesId!=null&&o.seriesId===a[s].id)&&(a[s][B7]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var i=hCr(n);if(i.oldSeries&&r.updatedSeries&&r.optionChanged){var o=r.seriesTransition;if(o)ye(Ta(o),function(h){yCr(h,i,r,n)});else{var a=bCr(i,r);ye(a.keys(),function(h){var g=a.get(h);BMt(g.oldSeries,g.newSeries,n)})}ye(r.updatedSeries,function(h){h[B7]&&(h[B7]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],c=i.oldDataGroupIds=[],u=i.oldData=[],d=0;d<s.length;d++){var p=s[d].getData();p.count()<qMt&&(l.push(s[d]),c.push(s[d].get("dataGroupId")),u.push(p))}})}Si([Rdr]);Si([Adr]);Si([Kdr,d0r,C0r,e1r,d1r,Q1r,Apr,lhr,Rhr,_hr,Ghr,Wfr,ugr,Cgr,Ngr,Bgr,Qgr,imr,gmr,Cmr,Imr,fvr]);Si(Dvr);Si(obr);Si(W2t);Si(bbr);Si(Syt);Si(xbr);Si(Ibr);Si(b2r);Si(N2r);Si(ej);Si(eyr);Si(ryr);Si(hyr);Si(Myr);Si(Oyr);Si(Pyr);Si(jyr);Si(aMr);Si(zMt);Si(TMt);Si(OMr);Si(DMt);Si(kMt);Si(IMr);Si(VMr);Si(UMr);Si(MCr);Si(Gur);const CCr=Object.freeze(Object.defineProperty({__proto__:null,Axis:ng,ChartView:da,ComponentModel:Ri,ComponentView:cs,List:y0,Model:_o,PRIORITY:Xvt,SeriesModel:Ra,color:drr,connect:ecr,dataTool:scr,dependencies:_lr,disConnect:tcr,disconnect:nbt,dispose:ncr,env:Ii,extendChartView:Pur,extendComponentModel:Eur,extendComponentView:Rur,extendSeriesModel:Iur,format:bur,getCoordinateSystemDimensions:icr,getInstanceByDom:YSe,getInstanceById:rcr,getMap:acr,graphic:vur,helper:cur,init:Jlr,innerDrawElementOnCanvas:GSe,matrix:Hnr,number:gur,parseGeoJSON:ive,parseGeoJson:ive,registerAction:Nm,registerCoordinateSystem:obt,registerLayout:abt,registerLoading:eAe,registerLocale:zSe,registerMap:sbt,registerPostInit:rbt,registerPostUpdate:ibt,registerPreprocessor:QSe,registerProcessor:ZSe,registerTheme:KSe,registerTransform:lbt,registerUpdateLifecycle:OJ,registerVisual:Ww,setCanvasCreator:ocr,setPlatformAPI:egt,throttle:SJ,time:mur,use:Si,util:yur,vector:Enr,version:Llr,zrUtil:xnr,zrender:$rr},Symbol.toStringTag,{value:"Module"}));var U2={},X2={},ule={},YHe;function xCr(){return YHe||(YHe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1,n=function(){return"".concat(t++)};e.default=n})(ule)),ule}var D_={},k_={},dle={},KHe;function jMt(){return KHe||(KHe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,o=null;return function(){for(var a=this,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];clearTimeout(o),o=setTimeout(function(){r.apply(a,l)},i)}};e.default=t})(dle)),dle}var Y2={},QHe;function hOe(){if(QHe)return Y2;QHe=1,Object.defineProperty(Y2,"__esModule",{value:!0}),Y2.SizeSensorId=Y2.SensorTabIndex=Y2.SensorClassName=void 0;var e="size-sensor-id";Y2.SizeSensorId=e;var t="size-sensor-object";Y2.SensorClassName=t;var n="-1";return Y2.SensorTabIndex=n,Y2}var ZHe;function wCr(){if(ZHe)return k_;ZHe=1,Object.defineProperty(k_,"__esModule",{value:!0}),k_.createSensor=void 0;var e=n(jMt()),t=hOe();function n(i){return i&&i.__esModule?i:{default:i}}var r=function(o,a){var s=void 0,l=[],c=function(){getComputedStyle(o).position==="static"&&(o.style.position="relative");var m=document.createElement("object");return m.onload=function(){m.contentDocument.defaultView.addEventListener("resize",u),u()},m.style.display="block",m.style.position="absolute",m.style.top="0",m.style.left="0",m.style.height="100%",m.style.width="100%",m.style.overflow="hidden",m.style.pointerEvents="none",m.style.zIndex="-1",m.style.opacity="0",m.setAttribute("class",t.SensorClassName),m.setAttribute("tabindex",t.SensorTabIndex),m.type="text/html",o.appendChild(m),m.data="about:blank",m},u=(0,e.default)(function(){l.forEach(function(g){g(o)})}),d=function(m){s||(s=c()),l.indexOf(m)===-1&&l.push(m)},p=function(){s&&s.parentNode&&(s.contentDocument&&s.contentDocument.defaultView.removeEventListener("resize",u),s.parentNode.removeChild(s),o.removeAttribute(t.SizeSensorId),s=void 0,l=[],a&&a())},h=function(m){var v=l.indexOf(m);v!==-1&&l.splice(v,1),l.length===0&&s&&p()};return{element:o,bind:d,destroy:p,unbind:h}};return k_.createSensor=r,k_}var L_={},JHe;function SCr(){if(JHe)return L_;JHe=1,Object.defineProperty(L_,"__esModule",{value:!0}),L_.createSensor=void 0;var e=hOe(),t=n(jMt());function n(i){return i&&i.__esModule?i:{default:i}}var r=function(o,a){var s=void 0,l=[],c=(0,t.default)(function(){l.forEach(function(g){g(o)})}),u=function(){var m=new ResizeObserver(c);return m.observe(o),c(),m},d=function(m){s||(s=u()),l.indexOf(m)===-1&&l.push(m)},p=function(){s.disconnect(),l=[],s=void 0,o.removeAttribute(e.SizeSensorId),a&&a()},h=function(m){var v=l.indexOf(m);v!==-1&&l.splice(v,1),l.length===0&&s&&p()};return{element:o,bind:d,destroy:p,unbind:h}};return L_.createSensor=r,L_}var e8e;function ACr(){if(e8e)return D_;e8e=1,Object.defineProperty(D_,"__esModule",{value:!0}),D_.createSensor=void 0;var e=wCr(),t=SCr(),n=typeof ResizeObserver<"u"?t.createSensor:e.createSensor;return D_.createSensor=n,D_}var t8e;function OCr(){if(t8e)return X2;t8e=1,Object.defineProperty(X2,"__esModule",{value:!0}),X2.removeSensor=X2.getSensor=X2.Sensors=void 0;var e=r(xCr()),t=ACr(),n=hOe();function r(l){return l&&l.__esModule?l:{default:l}}var i={};X2.Sensors=i;function o(l){l&&i[l]&&delete i[l]}var a=function(c){var u=c.getAttribute(n.SizeSensorId);if(u&&i[u])return i[u];var d=(0,e.default)();c.setAttribute(n.SizeSensorId,d);var p=(0,t.createSensor)(c,function(){return o(d)});return i[d]=p,p};X2.getSensor=a;var s=function(c){var u=c.element.getAttribute(n.SizeSensorId);c.destroy(),o(u)};return X2.removeSensor=s,X2}var n8e;function zCr(){if(n8e)return U2;n8e=1,Object.defineProperty(U2,"__esModule",{value:!0}),U2.ver=U2.clear=U2.bind=void 0;var e=OCr(),t=function(o,a){var s=(0,e.getSensor)(o);return s.bind(a),function(){s.unbind(a)}};U2.bind=t;var n=function(o){var a=(0,e.getSensor)(o);(0,e.removeSensor)(a)};U2.clear=n;var r="1.0.2";return U2.ver=r,U2}var r8e=zCr();function i8e(e,t){var n={};return t.forEach(function(r){n[r]=e[r]}),n}function ple(e){return typeof e=="function"}function o8e(e){return typeof e=="string"}var TCr=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.echarts=n.echarts,r.ele=null,r.isInitialResize=!0,r}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(n){var r=this.props.shouldSetOption;if(!(ple(r)&&!r(n,this.props))){if(!PA(n.theme,this.props.theme)||!PA(n.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var i=this.getEchartsInstance();PA(n.onEvents,this.props.onEvents)||(this.offEvents(i,n.onEvents),this.bindEvents(i,this.props.onEvents));var o=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];PA(i8e(this.props,o),i8e(n,o))||this.updateEChartsOption(),(!PA(n.style,this.props.style)||!PA(n.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return W5e(this,void 0,void 0,function(){var n=this;return q5e(this,function(r){return[2,new Promise(function(i){n.echarts.init(n.ele,n.props.theme,n.props.opts);var o=n.getEchartsInstance();o.on("finished",function(){var a=n.ele.clientWidth,s=n.ele.clientHeight;n.echarts.dispose(n.ele);var l=Dn({width:a,height:s},n.props.opts);i(n.echarts.init(n.ele,n.props.theme,l))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{r8e.clear(this.ele)}catch(n){console.warn(n)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return W5e(this,void 0,void 0,function(){var n,r,i,o,a,s,l=this;return q5e(this,function(c){switch(c.label){case 0:return n=this.props,r=n.onEvents,i=n.onChartReady,o=n.autoResize,a=o===void 0?!0:o,[4,this.initEchartsInstance()];case 1:return c.sent(),s=this.updateEChartsOption(),this.bindEvents(s,r||{}),ple(i)&&i(s),this.ele&&a&&r8e.bind(this.ele,function(){l.resize()}),[2]}})})},t.prototype.bindEvents=function(n,r){function i(a,s){o8e(a)&&ple(s)&&n.on(a,function(l){s(l,n)})}for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&i(o,r[o])},t.prototype.offEvents=function(n,r){if(r)for(var i in r)o8e(i)&&n.off(i)},t.prototype.updateEChartsOption=function(){var n=this.props,r=n.option,i=n.notMerge,o=i===void 0?!1:i,a=n.replaceMerge,s=a===void 0?null:a,l=n.lazyUpdate,c=l===void 0?!1:l,u=n.showLoading,d=n.loadingOption,p=d===void 0?null:d,h=this.getEchartsInstance();return h.setOption(r,{notMerge:o,replaceMerge:s,lazyUpdate:c}),u?h.showLoading(p):h.hideLoading(),h},t.prototype.resize=function(){var n=this.getEchartsInstance();if(!this.isInitialResize)try{n.resize({width:"auto",height:"auto"})}catch(r){console.warn(r)}this.isInitialResize=!1},t.prototype.render=function(){var n=this,r=this.props,i=r.style,o=r.className,a=o===void 0?"":o,s=Dn({height:300},i);return E.createElement("div",{ref:function(l){n.ele=l},style:s,className:"echarts-for-react ".concat(a)})},t})(b.PureComponent),SM=(function(e){gt(t,e);function t(n){var r=e.call(this,n)||this;return r.echarts=CCr,r}return t})(TCr);/*!
 * @kurkle/color v0.3.4
 * https://github.com/kurkle/color#readme
 * (c) 2024 Jukka Kurkela
 * Released under the MIT License
 */function tj(e){return e+.5|0}const vx=(e,t,n)=>Math.max(Math.min(e,n),t);function vN(e){return vx(tj(e*2.55),0,255)}function Wx(e){return vx(tj(e*255),0,255)}function cy(e){return vx(tj(e/2.55)/100,0,1)}function a8e(e){return vx(tj(e*100),0,100)}const qh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Xve=[..."0123456789ABCDEF"],ECr=e=>Xve[e&15],RCr=e=>Xve[(e&240)>>4]+Xve[e&15],$V=e=>(e&240)>>4===(e&15),ICr=e=>$V(e.r)&&$V(e.g)&&$V(e.b)&&$V(e.a);function PCr(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&qh[e[1]]*17,g:255&qh[e[2]]*17,b:255&qh[e[3]]*17,a:t===5?qh[e[4]]*17:255}:(t===7||t===9)&&(n={r:qh[e[1]]<<4|qh[e[2]],g:qh[e[3]]<<4|qh[e[4]],b:qh[e[5]]<<4|qh[e[6]],a:t===9?qh[e[7]]<<4|qh[e[8]]:255})),n}const DCr=(e,t)=>e<255?t(e):"";function kCr(e){var t=ICr(e)?ECr:RCr;return e?"#"+t(e.r)+t(e.g)+t(e.b)+DCr(e.a,t):void 0}const LCr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function HMt(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function _Cr(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function NCr(e,t,n){const r=HMt(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function FCr(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function fOe(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;let l,c,u;return o!==a&&(u=o-a,c=s>.5?u/(2-o-a):u/(o+a),l=FCr(n,r,i,u,o),l=l*60+.5),[l|0,c||0,s]}function gOe(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Wx)}function mOe(e,t,n){return gOe(HMt,e,t,n)}function WCr(e,t,n){return gOe(NCr,e,t,n)}function qCr(e,t,n){return gOe(_Cr,e,t,n)}function VMt(e){return(e%360+360)%360}function BCr(e){const t=LCr.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?vN(+t[5]):Wx(+t[5]));const i=VMt(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=WCr(i,o,a):t[1]==="hsv"?r=qCr(i,o,a):r=mOe(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function jCr(e,t){var n=fOe(e);n[0]=VMt(n[0]+t),n=mOe(n),e.r=n[0],e.g=n[1],e.b=n[2]}function HCr(e){if(!e)return;const t=fOe(e),n=t[0],r=a8e(t[1]),i=a8e(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${cy(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const s8e={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},l8e={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function VCr(){const e={},t=Object.keys(l8e),n=Object.keys(s8e);let r,i,o,a,s;for(r=0;r<t.length;r++){for(a=s=t[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,s8e[o]);o=parseInt(l8e[a],16),e[s]=[o>>16&255,o>>8&255,o&255]}return e}let UV;function GCr(e){UV||(UV=VCr(),UV.transparent=[0,0,0,0]);const t=UV[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const $Cr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function UCr(e){const t=$Cr.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?vN(a):vx(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?vN(r):vx(r,0,255)),i=255&(t[4]?vN(i):vx(i,0,255)),o=255&(t[6]?vN(o):vx(o,0,255)),{r,g:i,b:o,a:n}}}function XCr(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${cy(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const hle=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,nR=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function YCr(e,t,n){const r=nR(cy(e.r)),i=nR(cy(e.g)),o=nR(cy(e.b));return{r:Wx(hle(r+n*(nR(cy(t.r))-r))),g:Wx(hle(i+n*(nR(cy(t.g))-i))),b:Wx(hle(o+n*(nR(cy(t.b))-o))),a:e.a+n*(t.a-e.a)}}function XV(e,t,n){if(e){let r=fOe(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=mOe(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function GMt(e,t){return e&&Object.assign(t||{},e)}function c8e(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Wx(e[3]))):(t=GMt(e,{r:0,g:0,b:0,a:1}),t.a=Wx(t.a)),t}function KCr(e){return e.charAt(0)==="r"?UCr(e):BCr(e)}let $Mt=class Yve{constructor(t){if(t instanceof Yve)return t;const n=typeof t;let r;n==="object"?r=c8e(t):n==="string"&&(r=PCr(t)||GCr(t)||KCr(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=GMt(this._rgb);return t&&(t.a=cy(t.a)),t}set rgb(t){this._rgb=c8e(t)}rgbString(){return this._valid?XCr(this._rgb):void 0}hexString(){return this._valid?kCr(this._rgb):void 0}hslString(){return this._valid?HCr(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=YCr(this._rgb,t._rgb,n)),this}clone(){return new Yve(this.rgb)}alpha(t){return this._rgb.a=Wx(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=tj(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return XV(this._rgb,2,t),this}darken(t){return XV(this._rgb,2,-t),this}saturate(t){return XV(this._rgb,1,t),this}desaturate(t){return XV(this._rgb,1,-t),this}rotate(t){return jCr(this._rgb,t),this}};/*!
 * Chart.js v4.5.0
 * https://www.chartjs.org
 * (c) 2025 Chart.js Contributors
 * Released under the MIT License
 */function K2(){}const QCr=(()=>{let e=0;return()=>e++})();function Gs(e){return e==null}function $u(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function qa(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Bf(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Mv(e,t){return Bf(e)?e:t}function Do(e,t){return typeof e>"u"?t:e}const ZCr=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Li(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Bo(e,t,n,r){let i,o,a;if($u(e))for(o=e.length,i=0;i<o;i++)t.call(n,e[i],i);else if(qa(e))for(a=Object.keys(e),o=a.length,i=0;i<o;i++)t.call(n,e[a[i]],a[i])}function ZU(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function JU(e){if($u(e))return e.map(JU);if(qa(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=JU(e[n[i]]);return t}return e}function UMt(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function JCr(e,t,n,r){if(!UMt(e))return;const i=t[e],o=n[e];qa(i)&&qa(o)?kq(i,o,r):t[e]=JU(o)}function kq(e,t,n){const r=$u(t)?t:[t],i=r.length;if(!qa(e))return e;n=n||{};const o=n.merger||JCr;let a;for(let s=0;s<i;++s){if(a=r[s],!qa(a))continue;const l=Object.keys(a);for(let c=0,u=l.length;c<u;++c)o(l[c],e,a,n)}return e}function LF(e,t){return kq(e,t,{merger:exr})}function exr(e,t,n){if(!UMt(e))return;const r=t[e],i=n[e];qa(r)&&qa(i)?LF(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=JU(i))}const u8e={"":e=>e,x:e=>e.x,y:e=>e.y};function txr(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function nxr(e){const t=txr(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function eX(e,t){return(u8e[t]||(u8e[t]=nxr(t)))(e)}function vOe(e){return e.charAt(0).toUpperCase()+e.slice(1)}const tX=e=>typeof e<"u",cw=e=>typeof e=="function",d8e=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function rxr(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ku=Math.PI,Cb=2*Ku,ixr=Cb+Ku,nX=Number.POSITIVE_INFINITY,oxr=Ku/180,rm=Ku/2,yA=Ku/4,p8e=Ku*2/3,XMt=Math.log10,uw=Math.sign;function oz(e,t,n){return Math.abs(e-t)<n}function h8e(e){const t=Math.round(e);e=oz(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(XMt(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function axr(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function sxr(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Lq(e){return!sxr(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function lxr(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function cxr(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function xO(e){return e*(Ku/180)}function uxr(e){return e*(180/Ku)}function f8e(e){if(!Bf(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function dxr(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*Ku&&(o+=Cb),{angle:o,distance:i}}function Kve(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function pxr(e,t){return(e-t+ixr)%Cb-Ku}function TC(e){return(e%Cb+Cb)%Cb}function YMt(e,t,n,r){const i=TC(e),o=TC(t),a=TC(n),s=TC(o-i),l=TC(a-i),c=TC(i-o),u=TC(i-a);return i===o||i===a||r&&o===a||s>l&&c<u}function xf(e,t,n){return Math.max(t,Math.min(n,e))}function hxr(e){return xf(e,-32768,32767)}function bN(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function bOe(e,t,n){n=n||(a=>e[a]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const wO=(e,t,n,r)=>bOe(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),fxr=(e,t,n)=>bOe(e,n,r=>e[r][t]>=n);function gxr(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const KMt=["push","pop","shift","splice","unshift"];function mxr(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),KMt.forEach(n=>{const r="_onData"+vOe(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function g8e(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(KMt.forEach(o=>{delete e[o]}),delete e._chartjs)}function vxr(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const QMt=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function ZMt(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,QMt.call(window,()=>{r=!1,e.apply(t,n)}))}}function bxr(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const yOe=e=>e==="start"?"left":e==="end"?"right":"center",r0=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,yxr=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function Mxr(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,vScale:s,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=a.axis,{min:d,max:p,minDefined:h,maxDefined:g}=a.getUserBounds();if(h){if(i=Math.min(wO(l,u,d).lo,n?r:wO(t,u,a.getPixelForValue(d)).lo),c){const m=l.slice(0,i+1).reverse().findIndex(v=>!Gs(v[s.axis]));i-=Math.max(0,m)}i=xf(i,0,r-1)}if(g){let m=Math.max(wO(l,a.axis,p,!0).hi+1,n?0:wO(t,u,a.getPixelForValue(p),!0).hi+1);if(c){const v=l.slice(m-1).findIndex(y=>!Gs(y[s.axis]));m+=Math.max(0,v)}o=xf(m,i,r)-i}else o=r-i}return{start:i,count:o}}function Cxr(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const YV=e=>e===0||e===1,m8e=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Cb/n)),v8e=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Cb/n)+1,_F={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*rm)+1,easeOutSine:e=>Math.sin(e*rm),easeInOutSine:e=>-.5*(Math.cos(Ku*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>YV(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>YV(e)?e:m8e(e,.075,.3),easeOutElastic:e=>YV(e)?e:v8e(e,.075,.3),easeInOutElastic(e){return YV(e)?e:e<.5?.5*m8e(e*2,.1125,.45):.5+.5*v8e(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-_F.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?_F.easeInBounce(e*2)*.5:_F.easeOutBounce(e*2-1)*.5+.5};function MOe(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function b8e(e){return MOe(e)?e:new $Mt(e)}function fle(e){return MOe(e)?e:new $Mt(e).saturate(.5).darken(.1).hexString()}const xxr=["x","y","borderWidth","radius","tension"],wxr=["color","borderColor","backgroundColor"];function Sxr(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:wxr},numbers:{type:"number",properties:xxr}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Axr(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const y8e=new Map;function Oxr(e,t){t=t||{};const n=e+JSON.stringify(t);let r=y8e.get(n);return r||(r=new Intl.NumberFormat(e,t),y8e.set(n,r)),r}function JMt(e,t,n){return Oxr(t,n).format(e)}const zxr={values(e){return $u(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=Txr(e,n)}const a=XMt(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),JMt(e,r,l)}};function Txr(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var eCt={formatters:zxr};function Exr(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:eCt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const e3=Object.create(null),Qve=Object.create(null);function NF(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function gle(e,t,n){return typeof t=="string"?kq(NF(e,t),n):kq(NF(e,""),t)}class Rxr{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>fle(i.backgroundColor),this.hoverBorderColor=(r,i)=>fle(i.borderColor),this.hoverColor=(r,i)=>fle(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return gle(this,t,n)}get(t){return NF(this,t)}describe(t,n){return gle(Qve,t,n)}override(t,n){return gle(e3,t,n)}route(t,n,r,i){const o=NF(this,t),a=NF(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return qa(l)?Object.assign({},c,l):Do(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var Sc=new Rxr({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Sxr,Axr,Exr]);function Ixr(e){return!e||Gs(e.size)||Gs(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function M8e(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function MA(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function C8e(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Zve(e,t,n,r){tCt(e,t,n,r,null)}function tCt(e,t,n,r,i){let o,a,s,l,c,u,d,p;const h=t.pointStyle,g=t.rotation,m=t.radius;let v=(g||0)*oxr;if(h&&typeof h=="object"&&(o=h.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(v),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,m,0,0,Cb):e.arc(n,r,m,0,Cb),e.closePath();break;case"triangle":u=i?i/2:m,e.moveTo(n+Math.sin(v)*u,r-Math.cos(v)*m),v+=p8e,e.lineTo(n+Math.sin(v)*u,r-Math.cos(v)*m),v+=p8e,e.lineTo(n+Math.sin(v)*u,r-Math.cos(v)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,a=Math.cos(v+yA)*l,d=Math.cos(v+yA)*(i?i/2-c:l),s=Math.sin(v+yA)*l,p=Math.sin(v+yA)*(i?i/2-c:l),e.arc(n-d,r-s,c,v-Ku,v-rm),e.arc(n+p,r-a,c,v-rm,v),e.arc(n+d,r+s,c,v,v+rm),e.arc(n-p,r+a,c,v+rm,v+Ku),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}v+=yA;case"rectRot":d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+p,r-a),e.lineTo(n+d,r+s),e.lineTo(n-p,r+a),e.closePath();break;case"crossRot":v+=yA;case"cross":d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"star":d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a),v+=yA,d=Math.cos(v)*(i?i/2:m),a=Math.cos(v)*m,s=Math.sin(v)*m,p=Math.sin(v)*(i?i/2:m),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+p,r-a),e.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(v)*m,s=Math.sin(v)*m,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(v)*(i?i/2:m),r+Math.sin(v)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function qP(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function COe(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function xOe(e){e.restore()}function Pxr(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Dxr(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function kxr(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Gs(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Lxr(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function _xr(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function _q(e,t,n,r,i,o={}){const a=$u(t)?t:[t],s=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,kxr(e,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&_xr(e,o.backdrop),s&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),Gs(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),Lxr(e,n,r,c,o),r+=Number(i.lineHeight);e.restore()}function Jve(e,t){const{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*Ku,Ku,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,Ku,rm,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,rm,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-rm,!0),e.lineTo(n+a.topLeft,r)}const Nxr=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Fxr=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Wxr(e,t){const n=(""+e).match(Nxr);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const qxr=e=>+e||0;function nCt(e,t){const n={},r=qa(t),i=r?Object.keys(t):t,o=qa(e)?r?a=>Do(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=qxr(o(a));return n}function Bxr(e){return nCt(e,{top:"y",right:"x",bottom:"y",left:"x"})}function FF(e){return nCt(e,["topLeft","topRight","bottomLeft","bottomRight"])}function jf(e){const t=Bxr(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function f0(e,t){e=e||{},t=t||Sc.font;let n=Do(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Do(e.style,t.style);r&&!(""+r).match(Fxr)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Do(e.family,t.family),lineHeight:Wxr(Do(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Do(e.weight,t.weight),string:""};return i.string=Ixr(i),i}function KV(e,t,n,r){let i,o,a;for(i=0,o=e.length;i<o;++i)if(a=e[i],a!==void 0&&a!==void 0)return a}function jxr(e,t,n){const{min:r,max:i}=e,o=ZCr(t,(i-r)/2),a=(s,l)=>n&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function K3(e,t){return Object.assign(Object.create(e),t)}function wOe(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=aCt("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>wOe([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return iCt(s,l,()=>Kxr(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return w8e(s).includes(l)},ownKeys(s){return w8e(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function BP(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:rCt(e,r),setContext:o=>BP(e,o,n,r),override:o=>BP(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return iCt(o,a,()=>Vxr(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function rCt(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:cw(n)?n:()=>n,isIndexable:cw(r)?r:()=>r}}const Hxr=(e,t)=>e?e+vOe(t):t,SOe=(e,t)=>qa(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function iCt(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function Vxr(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return cw(s)&&a.isScriptable(t)&&(s=Gxr(t,s,e,n)),$u(s)&&s.length&&(s=$xr(t,s,e,a.isIndexable)),SOe(t,s)&&(s=BP(s,i,o&&o[t],a)),s}function Gxr(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),SOe(e,l)&&(l=AOe(i._scopes,i,e,l)),l}function $xr(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(qa(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=AOe(c,i,e,u);t.push(BP(d,o,a&&a[e],s))}}return t}function oCt(e,t,n){return cw(e)?e(t,n):e}const Uxr=(e,t)=>e===!0?t:typeof e=="string"?eX(t,e):void 0;function Xxr(e,t,n,r,i){for(const o of t){const a=Uxr(n,o);if(a){e.add(a);const s=oCt(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function AOe(e,t,n,r){const i=t._rootScopes,o=oCt(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=x8e(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=x8e(s,a,o,l,r),l===null)?!1:wOe(Array.from(s),[""],i,o,()=>Yxr(t,n,r))}function x8e(e,t,n,r,i){for(;n;)n=Xxr(e,t,n,r,i);return n}function Yxr(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return $u(i)&&qa(n)?n:i||{}}function Kxr(e,t,n,r){let i;for(const o of t)if(i=aCt(Hxr(o,e),n),typeof i<"u")return SOe(e,i)?AOe(n,r,e,i):i}function aCt(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function w8e(e){let t=e._keys;return t||(t=e._keys=Qxr(e._scopes)),t}function Qxr(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const Zxr=Number.EPSILON||1e-14,jP=(e,t)=>t<e.length&&!e[t].skip&&e[t],sCt=e=>e==="x"?"y":"x";function Jxr(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=Kve(o,i),l=Kve(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,p=r*u;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}}function ewr(e,t,n){const r=e.length;let i,o,a,s,l,c=jP(e,0);for(let u=0;u<r-1;++u)if(l=c,c=jP(e,u+1),!(!l||!c)){if(oz(t[u],0,Zxr)){n[u]=n[u+1]=0;continue}i=n[u]/t[u],o=n[u+1]/t[u],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),n[u]=i*a*t[u],n[u+1]=o*a*t[u])}}function twr(e,t,n="x"){const r=sCt(n),i=e.length;let o,a,s,l=jP(e,0);for(let c=0;c<i;++c){if(a=s,s=l,l=jP(e,c+1),!s)continue;const u=s[n],d=s[r];a&&(o=(u-a[n])/3,s[`cp1${n}`]=u-o,s[`cp1${r}`]=d-o*t[c]),l&&(o=(l[n]-u)/3,s[`cp2${n}`]=u+o,s[`cp2${r}`]=d+o*t[c])}}function nwr(e,t="x"){const n=sCt(t),r=e.length,i=Array(r).fill(0),o=Array(r);let a,s,l,c=jP(e,0);for(a=0;a<r;++a)if(s=l,l=c,c=jP(e,a+1),!!l){if(c){const u=c[t]-l[t];i[a]=u!==0?(c[n]-l[n])/u:0}o[a]=s?c?uw(i[a-1])!==uw(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}ewr(e,i,o),twr(e,o,t)}function QV(e,t,n){return Math.max(Math.min(e,n),t)}function rwr(e,t){let n,r,i,o,a,s=qP(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&qP(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=QV(i.cp1x,t.left,t.right),i.cp1y=QV(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=QV(i.cp2x,t.left,t.right),i.cp2y=QV(i.cp2y,t.top,t.bottom)))}function iwr(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")nwr(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)s=e[o],l=Jxr(c,s,e[Math.min(o+1,a-(r?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}t.capBezierPoints&&rwr(e,n)}function OOe(){return typeof window<"u"&&typeof document<"u"}function zOe(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function rX(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const WJ=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function owr(e,t){return WJ(e).getPropertyValue(t)}const awr=["top","right","bottom","left"];function az(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=awr[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const swr=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function lwr(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(swr(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Fv(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=WJ(n),o=i.boxSizing==="border-box",a=az(i,"padding"),s=az(i,"border","width"),{x:l,y:c,box:u}=lwr(e,n),d=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:h,height:g}=t;return o&&(h-=a.width+s.width,g-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((c-p)/g*n.height/r)}}function cwr(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&zOe(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=WJ(o),l=az(s,"border","width"),c=az(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=rX(s.maxWidth,o,"clientWidth"),i=rX(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||nX,maxHeight:i||nX}}const ZV=e=>Math.round(e*10)/10;function uwr(e,t,n,r){const i=WJ(e),o=az(i,"margin"),a=rX(i.maxWidth,e,"clientWidth")||nX,s=rX(i.maxHeight,e,"clientHeight")||nX,l=cwr(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const p=az(i,"border","width"),h=az(i,"padding");c-=h.width+p.width,u-=h.height+p.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=ZV(Math.min(c,a,l.maxWidth)),u=ZV(Math.min(u,s,l.maxHeight)),c&&!u&&(u=ZV(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=ZV(Math.floor(u*r))),{width:c,height:u}}function S8e(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const dwr=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};OOe()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function A8e(e,t){const n=owr(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function qA(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function pwr(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function hwr(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=qA(e,i,n),s=qA(i,o,n),l=qA(o,t,n),c=qA(a,s,n),u=qA(s,l,n);return qA(c,u,n)}const fwr=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},gwr=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function _I(e,t,n){return e?fwr(t,n):gwr()}function lCt(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function cCt(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function uCt(e){return e==="angle"?{between:YMt,compare:pxr,normalize:TC}:{between:bN,compare:(t,n)=>t-n,normalize:t=>t}}function O8e({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function mwr(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=uCt(r),l=t.length;let{start:c,end:u,loop:d}=e,p,h;if(d){for(c+=l,u+=l,p=0,h=l;p<h&&a(s(t[c%l][r]),i,o);++p)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function vwr(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,a=t.length,{compare:s,between:l,normalize:c}=uCt(r),{start:u,end:d,loop:p,style:h}=mwr(e,t,n),g=[];let m=!1,v=null,y,M,C;const x=()=>l(i,C,y)&&s(i,C)!==0,w=()=>s(o,y)===0||l(o,C,y),S=()=>m||x(),A=()=>!m||w();for(let z=u,O=u;z<=d;++z)M=t[z%a],!M.skip&&(y=c(M[r]),y!==C&&(m=l(y,i,o),v===null&&S()&&(v=s(y,i)===0?z:O),v!==null&&A()&&(g.push(O8e({start:v,end:z,loop:p,count:a,style:h})),v=null),O=z,C=y));return v!==null&&g.push(O8e({start:v,end:d,loop:p,count:a,style:h})),g}function bwr(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=vwr(r[i],e.points,t);o.length&&n.push(...o)}return n}function ywr(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function Mwr(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function Cwr(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=ywr(n,i,o,r);if(r===!0)return z8e(e,[{start:a,end:s,loop:o}],n,t);const l=s<a?s+i:s,c=!!e._fullLoop&&a===0&&s===i-1;return z8e(e,Mwr(n,a,l,c),n,t)}function z8e(e,t,n,r){return!r||!r.setContext||!n?t:xwr(e,t,n,r)}function xwr(e,t,n,r){const i=e._chart.getContext(),o=T8e(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=o,d=t[0].start,p=d;function h(g,m,v,y){const M=s?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=M;for(;n[m%l].skip;)m+=M;g%l!==m%l&&(c.push({start:g%l,end:m%l,loop:v,style:y}),u=y,d=m%l)}}for(const g of t){d=s?d:g.start;let m=n[d%l],v;for(p=d+1;p<=g.end;p++){const y=n[p%l];v=T8e(r.setContext(K3(i,{type:"segment",p0:m,p1:y,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),wwr(v,u)&&h(d,p-1,g.loop,u),m=y,u=v}d<p-1&&h(d,p-1,g.loop,u)}return c}function T8e(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function wwr(e,t){if(!t)return!1;const n=[],r=function(i,o){return MOe(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function JV(e,t,n){return e.options.clip?e[n]:t[n]}function Swr(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:JV(n,t,"left"),right:JV(n,t,"right"),top:JV(r,t,"top"),bottom:JV(r,t,"bottom")}:t}function Awr(e,t){const n=t._clip;if(n.disabled)return!1;const r=Swr(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
 * Chart.js v4.5.0
 * https://www.chartjs.org
 * (c) 2025 Chart.js Contributors
 * Released under the MIT License
 */class Owr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],a=n.duration;o.forEach(s=>s({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=QMt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ey=new Owr;const E8e="transparent",zwr={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=b8e(e||E8e),i=r.valid&&b8e(t||E8e);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};let Twr=class{constructor(t,n,r,i){const o=n[r];i=KV([t.to,i,o,t.from]);const a=KV([t.from,o,i]);this._active=!0,this._fn=t.fn||zwr[t.type||typeof a],this._easing=_F[t.easing]||_F.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=KV([t.to,n,i,t.from]),this._from=KV([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}};class dCt{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!qa(t))return;const n=Object.keys(Sc.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!qa(o))return;const a={};for(const s of n)a[s]=o[s];($u(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=Rwr(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&Ewr(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const p=r.get(c);if(d)if(p&&d.active()){d.update(p,u,s);continue}else d.cancel();if(!p||!p.duration){t[c]=u;continue}o[c]=d=new Twr(p,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return ey.add(this._chart,r),!0}}function Ewr(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Rwr(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function R8e(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function Iwr(e,t,n){if(n===!1)return!1;const r=R8e(e,n),i=R8e(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function Pwr(e){let t,n,r,i;return qa(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function pCt(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function I8e(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let a,s,l,c;if(t===null)return;let u=!1;for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(u=!0,r.all)continue;break}c=e.values[l],Bf(c)&&(o||t===0||uw(t)===uw(c))&&(t+=c)}return!u&&!r.all?0:t}function Dwr(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",o=r.axis==="x"?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[i]:u,[o]:e[u]};return s}function mle(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function kwr(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Lwr(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function _wr(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function P8e(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function D8e(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=kwr(o,a,r),d=t.length;let p;for(let h=0;h<d;++h){const g=t[h],{[l]:m,[c]:v}=g,y=g._stacks||(g._stacks={});p=y[c]=_wr(i,u,m),p[s]=v,p._top=P8e(p,a,!0,r.type),p._bottom=P8e(p,a,!1,r.type);const M=p._visualValues||(p._visualValues={});M[s]=v}}function vle(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function Nwr(e,t){return K3(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Fwr(e,t,n){return K3(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function __(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const ble=e=>e==="reset"||e==="none",k8e=(e,t)=>t?e:Object.assign({},e),Wwr=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:pCt(n,!0),values:null};class hCt{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=mle(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&__(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,p,h,g)=>d==="x"?p:d==="r"?g:h,o=n.xAxisID=Do(r.xAxisID,vle(t,"x")),a=n.yAxisID=Do(r.yAxisID,vle(t,"y")),s=n.rAxisID=Do(r.rAxisID,vle(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),u=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&g8e(this._data,this),t._stacked&&__(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(qa(n)){const i=this._cachedMeta;this._data=Dwr(n,i)}else if(r!==n){if(r){g8e(r,this);const i=this._cachedMeta;__(i),i._parsed=[]}n&&Object.isExtensible(n)&&mxr(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=mle(n.vScale,n),n.stack!==r.stack&&(i=!0,__(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&(D8e(this,n._parsed),n._stacked=mle(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{$u(i[t])?p=this.parseArrayData(r,i,t,n):qa(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const h=()=>d[s]===null||c&&d[s]<c[s];for(u=0;u<n;++u)r._parsed[u+t]=d=p[u],l&&(h()&&(l=!1),c=d);r._sorted=l}a&&D8e(this,p)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:a}=t,s=o.axis,l=a.axis,c=o.getLabels(),u=o===a,d=new Array(i);let p,h,g;for(p=0,h=i;p<h;++p)g=p+r,d[p]={[s]:u||o.parse(c[g],g),[l]:a.parse(n[g],g)};return d}parseArrayData(t,n,r,i){const{xScale:o,yScale:a}=t,s=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+r,d=n[u],s[l]={x:o.parse(d[0],u),y:a.parse(d[1],u)};return s}parseObjectData(t,n,r,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,p,h;for(u=0,d=i;u<d;++u)p=u+r,h=n[p],c[u]={x:o.parse(eX(h,s),p),y:a.parse(eX(h,l),p)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,a=n[t.axis],s={keys:pCt(i,!0),values:n._stacks[t.axis]._visualValues};return I8e(s,a,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,a=I8e(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,a=i.length,s=this._getOtherScale(t),l=Wwr(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=Lwr(s);let p,h;function g(){h=i[p];const m=h[s.axis];return!Bf(h[t.axis])||u>m||d<m}for(p=0;p<a&&!(!g()&&(this.updateRangeFromParsed(c,t,h,l),o));++p);if(o){for(p=a-1;p>=0;--p)if(!g()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i<o;++i)a=n[i][t.axis],Bf(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Pwr(Do(this.options.clip,Iwr(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,o,s,l),u=s;u<s+l;++u){const d=i[u];d.hidden||(d.active&&c?a.push(d):d.draw(t,o))}for(u=0;u<a.length;++u)a[u].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=Fwr(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=Nwr(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,a=t+"-"+n,s=o[a],l=this.enableOptionSharing&&tX(r);if(s)return k8e(s,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],p=c.getOptionScopes(this.getDataset(),u),h=Object.keys(Sc.elements[t]),g=()=>this.getContext(r,i,n),m=c.resolveNamedOptions(p,h,g,d);return m.$shared&&(m.$shared=l,o[a]=Object.freeze(k8e(m,l))),m}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),p=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(p,this.getContext(t,r,n))}const c=new dCt(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ble(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){ble(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!ble(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,a=t+n;let s;const l=c=>{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&__(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}class qwr extends hCt{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=Mxr(n,i,a);this._drawStart=s,this._drawCount=l,Cxr(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),p=a.axis,h=s.axis,{spanGaps:g,segment:m}=this.options,v=Lq(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||i==="none",M=n+r,C=t.length;let x=n>0&&this.getParsed(n-1);for(let w=0;w<C;++w){const S=t[w],A=y?S:{};if(w<n||w>=M){A.skip=!0;continue}const z=this.getParsed(w),O=Gs(z[h]),T=A[p]=a.getPixelForValue(z[p],w),I=A[h]=o||O?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,z,l):z[h],w);A.skip=isNaN(T)||isNaN(I)||O,A.stop=w>0&&Math.abs(z[p]-x[p])>v,m&&(A.parsed=z,A.raw=c.data[w]),d&&(A.options=u||this.resolveDataElementOptions(w,S.active?"active":i)),y||this.updateElement(S,w,A,i),x=z}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function CA(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class TOe{static override(t){Object.assign(TOe.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return CA()}parse(){return CA()}format(){return CA()}add(){return CA()}diff(){return CA()}startOf(){return CA()}endOf(){return CA()}}var fCt={_date:TOe};function Bwr(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const c=s._reversePixels?fxr:wO;if(r){if(i._sharedOptions){const u=o[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const p=c(o,t,n-d),h=c(o,t,n+d);return{lo:p.lo,hi:h.hi}}}}else{const u=c(o,t,n);if(l){const{vScale:d}=i._cachedMeta,{_parsed:p}=e,h=p.slice(0,u.lo+1).reverse().findIndex(m=>!Gs(m[d.axis]));u.lo-=Math.max(0,h);const g=p.slice(u.hi).findIndex(m=>!Gs(m[d.axis]));u.hi+=Math.max(0,g)}return u}}return{lo:0,hi:o.length-1}}function qJ(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s<l;++s){const{index:c,data:u}=o[s],{lo:d,hi:p}=Bwr(o[s],t,a,i);for(let h=d;h<=p;++h){const g=u[h];g.skip||r(g,c,h)}}}function jwr(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function yle(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||qJ(e,n,t,function(s,l,c){!i&&!qP(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&o.push({element:s,datasetIndex:l,index:c})},!0),o}function Hwr(e,t,n,r){let i=[];function o(a,s,l){const{startAngle:c,endAngle:u}=a.getProps(["startAngle","endAngle"],r),{angle:d}=dxr(a,{x:t.x,y:t.y});YMt(d,c,u)&&i.push({element:a,datasetIndex:s,index:l})}return qJ(e,n,t,o),i}function Vwr(e,t,n,r,i,o){let a=[];const s=jwr(n);let l=Number.POSITIVE_INFINITY;function c(u,d,p){const h=u.inRange(t.x,t.y,i);if(r&&!h)return;const g=u.getCenterPoint(i);if(!(!!o||e.isPointInArea(g))&&!h)return;const v=s(t,g);v<l?(a=[{element:u,datasetIndex:d,index:p}],l=v):v===l&&a.push({element:u,datasetIndex:d,index:p})}return qJ(e,n,t,c),a}function Mle(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?Hwr(e,t,n,i):Vwr(e,t,n,r,i,o)}function L8e(e,t,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return qJ(e,n,t,(l,c,u)=>{l[a]&&l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var Gwr={modes:{index(e,t,n,r){const i=Fv(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?yle(e,i,o,r,a):Mle(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=Fv(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?yle(e,i,o,r,a):Mle(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;u<c.length;++u)s.push({element:c[u],datasetIndex:l,index:u})}return s},point(e,t,n,r){const i=Fv(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return yle(e,i,o,r,a)},nearest(e,t,n,r){const i=Fv(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return Mle(e,i,o,n.intersect,r,a)},x(e,t,n,r){const i=Fv(t,e);return L8e(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Fv(t,e);return L8e(e,i,"y",n.intersect,r)}}};const gCt=["left","top","right","bottom"];function N_(e,t){return e.filter(n=>n.pos===t)}function _8e(e,t){return e.filter(n=>gCt.indexOf(n.pos)===-1&&n.box.axis===t)}function F_(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function $wr(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:a,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return t}function Uwr(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!gCt.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function Xwr(e,t){const n=Uwr(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,s;for(o=0,a=e.length;o<a;++o){s=e[o];const{fullSize:l}=s.box,c=n[s.stack],u=c&&s.stackWeight/c.weight;s.horizontal?(s.width=u?u*r:l&&t.availableWidth,s.height=i):(s.width=r,s.height=u?u*i:l&&t.availableHeight)}return n}function Ywr(e){const t=$wr(e),n=F_(t.filter(c=>c.box.fullSize),!0),r=F_(N_(t,"left"),!0),i=F_(N_(t,"right")),o=F_(N_(t,"top"),!0),a=F_(N_(t,"bottom")),s=_8e(t,"x"),l=_8e(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:N_(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function N8e(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function mCt(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Kwr(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!qa(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&mCt(a,o.getPadding());const s=Math.max(0,t.outerWidth-N8e(a,e,"left","right")),l=Math.max(0,t.outerHeight-N8e(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Qwr(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Zwr(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function yN(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o<a;++o){s=e[o],l=s.box,l.update(s.width||t.w,s.height||t.h,Zwr(s.horizontal,t));const{same:d,other:p}=Kwr(t,n,s,r);c|=d&&i.length,u=u||p,l.fullSize||i.push(s)}return c&&yN(i,t,n,r)||u}function eG(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function F8e(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const s of e){const l=s.box,c=r[s.stack]||{placed:0,weight:1},u=s.stackWeight/c.weight||1;if(s.horizontal){const d=t.w*u,p=c.size||l.height;tX(c.start)&&(a=c.start),l.fullSize?eG(l,i.left,a,n.outerWidth-i.right-i.left,p):eG(l,t.left+c.placed,a,d,p),c.start=a,c.placed+=d,a=l.bottom}else{const d=t.h*u,p=c.size||l.width;tX(c.start)&&(o=c.start),l.fullSize?eG(l,o,i.top,p,n.outerHeight-i.bottom-i.top):eG(l,o,t.top+c.placed,p,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=a}var wf={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=jf(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),s=Ywr(e.boxes),l=s.vertical,c=s.horizontal;Bo(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,v)=>v.box.options&&v.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},i);mCt(p,jf(r));const h=Object.assign({maxPadding:p,w:o,h:a,x:i.left,y:i.top},i),g=Xwr(l.concat(c),d);yN(s.fullSize,h,d,g),yN(l,h,d,g),yN(c,h,d,g)&&yN(l,h,d,g),Qwr(h),F8e(s.leftAndTop,h,d,g),h.x+=h.w,h.y+=h.h,F8e(s.rightAndBottom,h,d,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Bo(s.chartArea,m=>{const v=m.box;Object.assign(v,e.chartArea),v.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class vCt{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class Jwr extends vCt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Y7="$chartjs",eSr={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},W8e=e=>e===null||e==="";function tSr(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Y7]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",W8e(i)){const o=A8e(e,"width");o!==void 0&&(e.width=o)}if(W8e(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=A8e(e,"height");o!==void 0&&(e.height=o)}return e}const bCt=dwr?{passive:!0}:!1;function nSr(e,t,n){e&&e.addEventListener(t,n,bCt)}function rSr(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,bCt)}function iSr(e,t){const n=eSr[e.type]||e.type,{x:r,y:i}=Fv(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function iX(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function oSr(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||iX(s.addedNodes,r),a=a&&!iX(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function aSr(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||iX(s.removedNodes,r),a=a&&!iX(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Nq=new Map;let q8e=0;function yCt(){const e=window.devicePixelRatio;e!==q8e&&(q8e=e,Nq.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function sSr(e,t){Nq.size||window.addEventListener("resize",yCt),Nq.set(e,t)}function lSr(e){Nq.delete(e),Nq.size||window.removeEventListener("resize",yCt)}function cSr(e,t,n){const r=e.canvas,i=r&&zOe(r);if(!i)return;const o=ZMt((s,l)=>{const c=i.clientWidth;n(s,l),c<i.clientWidth&&n()},window),a=new ResizeObserver(s=>{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return a.observe(i),sSr(e,o),a}function Cle(e,t,n){n&&n.disconnect(),t==="resize"&&lSr(e)}function uSr(e,t,n){const r=e.canvas,i=ZMt(o=>{e.ctx!==null&&n(iSr(o,e))},e);return nSr(r,t,i),i}class dSr extends vCt{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(tSr(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Y7])return!1;const r=n[Y7].initial;["height","width"].forEach(o=>{const a=r[o];Gs(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Y7],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:oSr,detach:aSr,resize:cSr}[n]||uSr;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Cle,detach:Cle,resize:Cle}[n]||rSr)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return uwr(t,n,r,i)}isAttached(t){const n=t&&zOe(t);return!!(n&&n.isConnected)}}function pSr(e){return!OOe()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Jwr:dSr}let Q3=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Lq(this.x)&&Lq(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}};function hSr(e,t){const n=e.options.ticks,r=fSr(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?mSr(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return vSr(t,c,o,a/i),c;const u=gSr(o,t,i);if(a>0){let d,p;const h=a>1?Math.round((l-s)/(a-1)):null;for(tG(t,c,u,Gs(h)?0:s-h,s),d=0,p=a-1;d<p;d++)tG(t,c,u,o[d],o[d+1]);return tG(t,c,u,l,Gs(h)?t.length:l+h),c}return tG(t,c,u),c}function fSr(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function gSr(e,t,n){const r=bSr(e),i=t.length/n;if(!r)return Math.max(i,1);const o=axr(r);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function mSr(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function vSr(e,t,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}function tG(e,t,n,r,i){const o=Do(r,0),a=Math.min(Do(i,e.length),e.length);let s=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),u=o;u<0;)s++,u=Math.round(o+s*n);for(c=Math.max(o,0);c<a;c++)c===u&&(t.push(e[c]),s++,u=Math.round(o+s*n))}function bSr(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const ySr=e=>e==="left"?"right":e==="right"?"left":e,B8e=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,j8e=(e,t)=>Math.min(t||e,e);function H8e(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function MSr(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,a-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-s||l>a+s)))return l}function CSr(e,t){Bo(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function W_(e){return e.drawTicks?e.tickLength:0}function V8e(e,t){if(!e.display)return 0;const n=f0(e.font,t),r=jf(e.padding);return($u(e.text)?e.text.length:1)*n.lineHeight+r.height}function xSr(e,t){return K3(e,{scale:t,type:"scale"})}function wSr(e,t,n){return K3(e,{tick:n,index:t,type:"tick"})}function SSr(e,t,n){let r=yOe(e);return(n&&t!=="right"||!n&&t==="right")&&(r=ySr(r)),r}function ASr(e,t,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,p,h,g;const m=a-i,v=s-o;if(e.isHorizontal()){if(h=r0(r,o,s),qa(n)){const y=Object.keys(n)[0],M=n[y];g=u[y].getPixelForValue(M)+m-t}else n==="center"?g=(c.bottom+c.top)/2+m-t:g=B8e(e,n,t);p=s-o}else{if(qa(n)){const y=Object.keys(n)[0],M=n[y];h=u[y].getPixelForValue(M)-v+t}else n==="center"?h=(c.left+c.right)/2-v+t:h=B8e(e,n,t);g=r0(r,a,i),d=n==="left"?-rm:rm}return{titleX:h,titleY:g,maxWidth:p,rotation:d}}class gk extends Q3{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Mv(t,Number.POSITIVE_INFINITY),n=Mv(n,Number.NEGATIVE_INFINITY),r=Mv(r,Number.POSITIVE_INFINITY),i=Mv(i,Number.NEGATIVE_INFINITY),{min:Mv(t,r),max:Mv(n,i),minDefined:Bf(t),maxDefined:Bf(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)a=s[l].controller.getMinMax(this,t),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Mv(n,Mv(r,n)),max:Mv(r,Mv(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Li(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=jxr(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?H8e(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=hSr(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Li(this.options.afterUpdate,[this])}beforeSetDimensions(){Li(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Li(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Li(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Li(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=Li(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){Li(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Li(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=j8e(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let a=i,s,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,p=u.highest.height,h=xf(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:h/(r-1),d+6>s&&(s=h/(r-(t.offset?.5:1)),l=this.maxHeight-W_(t.grid)-n.padding-V8e(t.title,this.chart.options.font),c=Math.sqrt(d*d+p*p),a=uxr(Math.min(Math.asin(xf((u.highest.height+6)/s,-1,1)),Math.asin(xf(l/c,-1,1))-Math.asin(xf(p/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Li(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Li(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=V8e(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=W_(o)+l):(t.height=this.maxHeight,t.width=W_(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:p}=this._getLabelSizes(),h=r.padding*2,g=xO(this.labelRotation),m=Math.cos(g),v=Math.sin(g);if(s){const y=r.mirror?0:v*d.width+m*p.height;t.height=Math.min(this.maxHeight,t.height+y+h)}else{const y=r.mirror?0:m*d.width+v*p.height;t.width=Math.min(this.maxWidth,t.width+y+h)}this._calculatePadding(c,u,v,m)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,h=0;l?c?(p=i*t.width,h=r*n.height):(p=r*t.height,h=i*n.width):o==="start"?h=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,h=n.width/2),this.paddingLeft=Math.max((p-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+a)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Li(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Gs(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=H8e(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,a=[],s=[],l=Math.floor(n/j8e(n,r));let c=0,u=0,d,p,h,g,m,v,y,M,C,x,w;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),i.font=v=m.string,y=o[v]=o[v]||{data:{},gc:[]},M=m.lineHeight,C=x=0,!Gs(g)&&!$u(g))C=M8e(i,y.data,y.gc,C,g),x=M;else if($u(g))for(p=0,h=g.length;p<h;++p)w=g[p],!Gs(w)&&!$u(w)&&(C=M8e(i,y.data,y.gc,C,w),x+=M);a.push(C),s.push(x),c=Math.max(C,c),u=Math.max(x,u)}CSr(o,n);const S=a.indexOf(c),A=s.indexOf(u),z=O=>({width:a[O]||0,height:s[O]||0});return{first:z(0),last:z(n-1),widest:z(S),highest:z(A),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return hxr(this._alignToPixels?MA(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=wSr(this.getContext(),t,r))}return this.$context||(this.$context=xSr(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=xO(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),p=W_(o),h=[],g=s.setContext(this.getContext()),m=g.display?g.width:0,v=m/2,y=function(W){return MA(r,W,m)};let M,C,x,w,S,A,z,O,T,I,P,N;if(a==="top")M=y(this.bottom),A=this.bottom-p,O=M-v,I=y(t.top)+v,N=t.bottom;else if(a==="bottom")M=y(this.top),I=t.top,N=y(t.bottom)-v,A=M+v,O=this.top+p;else if(a==="left")M=y(this.right),S=this.right-p,z=M-v,T=y(t.left)+v,P=t.right;else if(a==="right")M=y(this.left),T=t.left,P=y(t.right)-v,S=M+v,z=this.left+p;else if(n==="x"){if(a==="center")M=y((t.top+t.bottom)/2+.5);else if(qa(a)){const W=Object.keys(a)[0],H=a[W];M=y(this.chart.scales[W].getPixelForValue(H))}I=t.top,N=t.bottom,A=M+v,O=A+p}else if(n==="y"){if(a==="center")M=y((t.left+t.right)/2);else if(qa(a)){const W=Object.keys(a)[0],H=a[W];M=y(this.chart.scales[W].getPixelForValue(H))}S=M-v,z=S-p,T=t.left,P=t.right}const F=Do(i.ticks.maxTicksLimit,d),L=Math.max(1,Math.ceil(d/F));for(C=0;C<d;C+=L){const W=this.getContext(C),H=o.setContext(W),j=s.setContext(W),G=H.lineWidth,q=H.color,$=j.dash||[],U=j.dashOffset,X=H.tickWidth,Q=H.tickColor,re=H.tickBorderDash||[],ee=H.tickBorderDashOffset;x=MSr(this,C,l),x!==void 0&&(w=MA(r,x,G),c?S=z=T=P=w:A=O=I=N=w,h.push({tx1:S,ty1:A,tx2:z,ty2:O,x1:T,y1:I,x2:P,y2:N,width:G,color:q,borderDash:$,borderDashOffset:U,tickWidth:X,tickColor:Q,tickBorderDash:re,tickBorderDashOffset:ee}))}return this._ticksLength=d,this._borderValue=M,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,p=W_(r.grid),h=p+u,g=d?-u:h,m=-xO(this.labelRotation),v=[];let y,M,C,x,w,S,A,z,O,T,I,P,N="middle";if(i==="top")S=this.bottom-g,A=this._getXAxisLabelAlignment();else if(i==="bottom")S=this.top+g,A=this._getXAxisLabelAlignment();else if(i==="left"){const L=this._getYAxisLabelAlignment(p);A=L.textAlign,w=L.x}else if(i==="right"){const L=this._getYAxisLabelAlignment(p);A=L.textAlign,w=L.x}else if(n==="x"){if(i==="center")S=(t.top+t.bottom)/2+h;else if(qa(i)){const L=Object.keys(i)[0],W=i[L];S=this.chart.scales[L].getPixelForValue(W)+h}A=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-h;else if(qa(i)){const L=Object.keys(i)[0],W=i[L];w=this.chart.scales[L].getPixelForValue(W)}A=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?N="top":l==="end"&&(N="bottom"));const F=this._getLabelSizes();for(y=0,M=s.length;y<M;++y){C=s[y],x=C.label;const L=o.setContext(this.getContext(y));z=this.getPixelForTick(y)+o.labelOffset,O=this._resolveTickFontOptions(y),T=O.lineHeight,I=$u(x)?x.length:1;const W=I/2,H=L.color,j=L.textStrokeColor,G=L.textStrokeWidth;let q=A;a?(w=z,A==="inner"&&(y===M-1?q=this.options.reverse?"left":"right":y===0?q=this.options.reverse?"right":"left":q="center"),i==="top"?c==="near"||m!==0?P=-I*T+T/2:c==="center"?P=-F.highest.height/2-W*T+T:P=-F.highest.height+T/2:c==="near"||m!==0?P=T/2:c==="center"?P=F.highest.height/2-W*T:P=F.highest.height-I*T,d&&(P*=-1),m!==0&&!L.showLabelBackdrop&&(w+=T/2*Math.sin(m))):(S=z,P=(1-I)*T/2);let $;if(L.showLabelBackdrop){const U=jf(L.backdropPadding),X=F.heights[y],Q=F.widths[y];let re=P-U.top,ee=0-U.left;switch(N){case"middle":re-=X/2;break;case"bottom":re-=X;break}switch(A){case"center":ee-=Q/2;break;case"right":ee-=Q;break;case"inner":y===M-1?ee-=Q:y>0&&(ee-=Q/2);break}$={left:ee,top:re,width:Q+U.width,height:X+U.height,color:L.backdropColor}}v.push({label:x,font:O,textOffset:P,options:{rotation:m,color:H,strokeColor:j,strokeWidth:G,textAlign:q,textBaseline:N,translation:[w,S],backdrop:$}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-xO(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o<a;++o){const l=i[o];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,p;this.isHorizontal()?(c=MA(t,this.left,a)-a/2,u=MA(t,this.right,s)+s/2,d=p=l):(d=MA(t,this.top,a)-a/2,p=MA(t,this.bottom,s)+s/2,c=u=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&COe(r,i);const o=this.getLabelItems(t);for(const a of o){const s=a.options,l=a.font,c=a.label,u=a.textOffset;_q(r,c,0,u,l,s)}i&&xOe(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=f0(r.font),a=jf(r.padding),s=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||qa(n)?(l+=a.bottom,$u(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:c,titleY:u,maxWidth:d,rotation:p}=ASr(this,l,n,s);_q(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:p,textAlign:SSr(s,n,i),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Do(t.grid&&t.grid.z,-1),i=Do(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==gk.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const s=n[o];s[r]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return f0(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class nG{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;TSr(n)&&(r=this.register(n));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,OSr(t,a,r),this.override&&Sc.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in Sc[i]&&(delete Sc[i][r],this.override&&delete e3[r])}}function OSr(e,t,n){const r=kq(Object.create(null),[n?Sc.get(n):{},Sc.get(t),e.defaults]);Sc.set(t,r),e.defaultRoutes&&zSr(t,e.defaultRoutes),e.descriptors&&Sc.describe(t,e.descriptors)}function zSr(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");Sc.route(o,i,l,s)})}function TSr(e){return"id"in e&&"defaults"in e}class ESr{constructor(){this.controllers=new nG(hCt,"datasets",!0),this.elements=new nG(Q3,"elements"),this.plugins=new nG(Object,"plugins"),this.scales=new nG(gk,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Bo(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=vOe(t);Li(r["before"+i],[],r),n[t](r),Li(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Ev=new ESr;class RSr{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,r,i){i=i||{};for(const o of t){const a=o.plugin,s=a[r],l=[n,i,o.options];if(Li(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){Gs(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Do(r.options&&r.options.plugins,{}),o=ISr(r);return i===!1&&!n?[]:DSr(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function ISr(e){const t={},n=[],r=Object.keys(Ev.plugins.items);for(let o=0;o<r.length;o++)n.push(Ev.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function PSr(e,t){return!t&&e===!1?null:e===!0?{}:e}function DSr(e,{plugins:t,localIds:n},r,i){const o=[],a=e.getContext();for(const s of t){const l=s.id,c=PSr(r[l],i);c!==null&&o.push({plugin:s,options:kSr(e.config,{plugin:s,local:n[l]},c,a)})}return o}function kSr(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(r,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ebe(e,t){const n=Sc.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function LSr(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function _Sr(e,t){return e===t?"_index_":"_value_"}function G8e(e){if(e==="x"||e==="y"||e==="r")return e}function NSr(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function tbe(e,...t){if(G8e(e))return e;for(const n of t){const r=n.axis||NSr(n.position)||e.length>1&&G8e(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function $8e(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function FSr(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return $8e(e,"x",n[0])||$8e(e,"y",n[0])}return{}}function WSr(e,t){const n=e3[e.type]||{scales:{}},r=t.scales||{},i=ebe(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!qa(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=tbe(a,s,FSr(a,e),Sc.scales[s.type]),c=_Sr(l,i),u=n.scales||{};o[a]=LF(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||ebe(s,t),u=(e3[s]||{}).scales||{};Object.keys(u).forEach(d=>{const p=LSr(d,l),h=a[p+"AxisID"]||p;o[h]=o[h]||Object.create(null),LF(o[h],[{axis:p},r[h],u[d]])})}),Object.keys(o).forEach(a=>{const s=o[a];LF(s,[Sc.scales[s.type],Sc.scale])}),o}function MCt(e){const t=e.options||(e.options={});t.plugins=Do(t.plugins,{}),t.scales=WSr(e,t)}function CCt(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function qSr(e){return e=e||{},e.data=CCt(e.data),MCt(e),e}const U8e=new Map,xCt=new Set;function rG(e,t){let n=U8e.get(e);return n||(n=t(),U8e.set(e,n),xCt.add(n)),n}const q_=(e,t,n)=>{const r=eX(t,n);r!==void 0&&e.add(r)};class BSr{constructor(t){this._config=qSr(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=CCt(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),MCt(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return rG(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return rG(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return rG(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return rG(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>q_(l,t,d))),u.forEach(d=>q_(l,i,d)),u.forEach(d=>q_(l,e3[o]||{},d)),u.forEach(d=>q_(l,Sc,d)),u.forEach(d=>q_(l,Qve,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),xCt.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,e3[n]||{},Sc.datasets[n]||{},{type:n},Sc,Qve]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=X8e(this._resolverCache,t,i);let l=a;if(HSr(a,n)){o.$shared=!1,r=cw(r)?r():r;const c=this.createResolver(t,r,s);l=BP(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=X8e(this._resolverCache,t,r);return qa(n)?BP(o,n,void 0,i):o}}function X8e(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:wOe(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const jSr=e=>qa(e)&&Object.getOwnPropertyNames(e).some(t=>cw(e[t]));function HSr(e,t){const{isScriptable:n,isIndexable:r}=rCt(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(cw(s)||jSr(s))||a&&$u(s))return!0}return!1}var VSr="4.5.0";const GSr=["top","bottom","left","right","chartArea"];function Y8e(e,t){return e==="top"||e==="bottom"||GSr.indexOf(e)===-1&&t==="x"}function K8e(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Q8e(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Li(n&&n.onComplete,[e],t)}function $Sr(e){const t=e.chart,n=t.options.animation;Li(n&&n.onProgress,[e],t)}function wCt(e){return OOe()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const K7={},Z8e=e=>{const t=wCt(e);return Object.values(K7).filter(n=>n.canvas===t).pop()};function USr(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function XSr(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}let BJ=class{static defaults=Sc;static instances=K7;static overrides=e3;static registry=Ev;static version=VSr;static getChart=Z8e;static register(...t){Ev.add(...t),J8e()}static unregister(...t){Ev.remove(...t),J8e()}constructor(t,n){const r=this.config=new BSr(n),i=wCt(t),o=Z8e(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||pSr(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=QCr(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new RSr,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=bxr(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],K7[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}ey.listen(this,"complete",Q8e),ey.listen(this,"progress",$Sr),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return Gs(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ev}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():S8e(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return C8e(this.canvas,this.ctx),this}stop(){return ey.stop(this),this}resize(t,n){ey.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,S8e(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Li(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Bo(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=tbe(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Bo(o,a=>{const s=a.options,l=s.id,c=tbe(l,s),u=Do(s.type,a.dtype);(s.position===void 0||Y8e(s.position,c)!==Y8e(a.dposition))&&(s.position=a.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const p=Ev.getScale(u);d=new p({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),Bo(i,(a,s)=>{a||delete r[s]}),Bo(r,a=>{wf.configure(this,a,a.options),wf.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(K8e("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let a=this.getDatasetMeta(r);const s=o.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=o.indexAxis||ebe(s,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=Ev.getController(s),{datasetElementType:c,dataElementType:u}=Sc.datasets[s];Object.assign(l,{dataElementType:Ev.getElement(u),datasetElementType:c&&Ev.getElement(c)}),a.controller=new l(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){Bo(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),p=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(p),a=Math.max(+d.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||Bo(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(K8e("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Bo(this.scales,t=>{wf.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!d8e(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;USr(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!d8e(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;wf.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Bo(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,cw(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ey.has(this)?this.attached&&!ey.running(this)&&ey.start(this):(this.draw(),Q8e({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];(!t||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},i=Awr(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&COe(n,i),t.controller.draw(),i&&xOe(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return qP(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=Gwr.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=K3(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);tX(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),ey.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),C8e(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete K7[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,a)=>{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};Bo(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){Bo(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Bo(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){a=t[s];const c=a&&this.getDatasetMeta(a.datasetIndex).controller;c&&c[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:a})=>{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!ZU(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=rxr(t),c=XSr(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Li(o.onHover,[t,s,this],this),l&&Li(o.onClick,[t,s,this],this));const u=!ZU(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}};function J8e(){return Bo(BJ.instances,e=>e._plugins.invalidate())}function SCt(e,t,n=t){e.lineCap=Do(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Do(n.borderDash,t.borderDash)),e.lineDashOffset=Do(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Do(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Do(n.borderWidth,t.borderWidth),e.strokeStyle=Do(n.borderColor,t.borderColor)}function YSr(e,t,n){e.lineTo(n.x,n.y)}function KSr(e){return e.stepped?Pxr:e.tension||e.cubicInterpolationMode==="monotone"?Dxr:YSr}function ACt(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function QSr(e,t,n,r){const{points:i,options:o}=t,{count:a,start:s,loop:l,ilen:c}=ACt(i,n,r),u=KSr(o);let{move:d=!0,reverse:p}=r||{},h,g,m;for(h=0;h<=c;++h)g=i[(s+(p?c-h:h))%a],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):u(e,m,g,p,o.stepped),m=g);return l&&(g=i[(s+(p?c:0))%a],u(e,m,g,p,o.stepped)),!!l}function ZSr(e,t,n,r){const i=t.points,{count:o,start:a,ilen:s}=ACt(i,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,p,h,g,m,v,y;const M=x=>(a+(c?s-x:x))%o,C=()=>{m!==v&&(e.lineTo(u,v),e.lineTo(u,m),e.lineTo(u,y))};for(l&&(h=i[M(0)],e.moveTo(h.x,h.y)),p=0;p<=s;++p){if(h=i[M(p)],h.skip)continue;const x=h.x,w=h.y,S=x|0;S===g?(w<m?m=w:w>v&&(v=w),u=(d*u+x)/++d):(C(),e.lineTo(x,w),g=S,d=0,m=v=w),y=w}C()}function nbe(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?ZSr:QSr}function JSr(e){return e.stepped?pwr:e.tension||e.cubicInterpolationMode==="monotone"?hwr:qA}function eAr(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),SCt(e,t.options),e.stroke(i)}function tAr(e,t,n,r){const{segments:i,options:o}=t,a=nbe(t);for(const s of i)SCt(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const nAr=typeof Path2D=="function";function rAr(e,t,n,r){nAr&&!t.options.segment?eAr(e,t,n,r):tAr(e,t,n,r)}class iAr extends Q3{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;iwr(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Cwr(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=bwr(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=JSr(r);let c,u;for(c=0,u=a.length;c<u;++c){const{start:d,end:p}=a[c],h=o[d],g=o[p];if(h===g){s.push(h);continue}const m=Math.abs((i-h[n])/(g[n]-h[n])),v=l(h,g,m,r.stepped);v[n]=t[n],s.push(v)}return s.length===1?s[0]:s}pathSegment(t,n,r){return nbe(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=nbe(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)a&=o(t,this,s,{start:n,end:n+r-1});return!!a}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),rAr(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function eVe(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class oAr extends Q3{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return eVe(this,t,"x",n)}inYRange(t,n){return eVe(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!qP(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,Zve(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}const tVe=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},aAr=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class nVe extends Q3{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Li(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=f0(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=tVe(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let d=t;o.textAlign="left",o.textBaseline="middle";let p=-1,h=-u;return this.legendItems.forEach((g,m)=>{const v=r+n/2+o.measureText(g.text).width;(m===0||c[c.length-1]+v+2*s>a)&&(d+=u,c[c.length-(m>0?0:1)]=0,h+=u,p++),l[m]={left:0,top:h,row:p,width:v,height:i},c[c.length-1]+=v+s}),d}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-t;let d=s,p=0,h=0,g=0,m=0;return this.legendItems.forEach((v,y)=>{const{itemWidth:M,itemHeight:C}=sAr(r,n,o,v,i);y>0&&h+C+2*s>u&&(d+=p+s,c.push({width:p,height:h}),g+=p+s,m++,p=h=0),l[y]={left:g,top:h,col:m,width:M,height:C},p=Math.max(p,M),h+=C+s}),d+=p,c.push({width:p,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=_I(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=r0(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=r0(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=r0(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=r0(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;COe(t,this),this._draw(),xOe(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=Sc.color,l=_I(t.rtl,this.left,this.width),c=f0(a.font),{padding:u}=a,d=c.size,p=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:v}=tVe(a,d),y=function(S,A,z){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const O=Do(z.lineWidth,1);if(i.fillStyle=Do(z.fillStyle,s),i.lineCap=Do(z.lineCap,"butt"),i.lineDashOffset=Do(z.lineDashOffset,0),i.lineJoin=Do(z.lineJoin,"miter"),i.lineWidth=O,i.strokeStyle=Do(z.strokeStyle,s),i.setLineDash(Do(z.lineDash,[])),a.usePointStyle){const T={radius:m*Math.SQRT2/2,pointStyle:z.pointStyle,rotation:z.rotation,borderWidth:O},I=l.xPlus(S,g/2),P=A+p;tCt(i,T,I,P,a.pointStyleWidth&&g)}else{const T=A+Math.max((d-m)/2,0),I=l.leftForLtr(S,g),P=FF(z.borderRadius);i.beginPath(),Object.values(P).some(N=>N!==0)?Jve(i,{x:I,y:T,w:g,h:m,radius:P}):i.rect(I,T,g,m),i.fill(),O!==0&&i.stroke()}i.restore()},M=function(S,A,z){_q(i,z.text,S,A+v/2,c,{strikethrough:z.hidden,textAlign:l.textAlign(z.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?h={x:r0(o,this.left+u,this.right-r[0]),y:this.top+u+x,line:0}:h={x:this.left+u,y:r0(o,this.top+x+u,this.bottom-n[0].height),line:0},lCt(this.ctx,t.textDirection);const w=v+u;this.legendItems.forEach((S,A)=>{i.strokeStyle=S.fontColor,i.fillStyle=S.fontColor;const z=i.measureText(S.text).width,O=l.textAlign(S.textAlign||(S.textAlign=a.textAlign)),T=g+p+z;let I=h.x,P=h.y;l.setWidth(this.width),C?A>0&&I+T+u>this.right&&(P=h.y+=w,h.line++,I=h.x=r0(o,this.left+u,this.right-r[h.line])):A>0&&P+w>this.bottom&&(I=h.x=I+n[h.line].width+u,h.line++,P=h.y=r0(o,this.top+x+u,this.bottom-n[h.line].height));const N=l.x(I);if(y(N,P,S),I=yxr(O,I+g+p,C?I+T:this.right,t.rtl),M(l.x(I),P,S),C)h.x+=T+u;else if(typeof S.text!="string"){const F=c.lineHeight;h.y+=OCt(S,F)+u}else h.y+=w}),cCt(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=f0(n.font),i=jf(n.padding);if(!n.display)return;const o=_I(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),u=this.top+c,d=r0(t.align,d,this.right-p);else{const g=this.columnSizes.reduce((m,v)=>Math.max(m,v.height),0);u=c+r0(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=r0(s,d,d+p);a.textAlign=o.textAlign(yOe(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,_q(a,n.text,h,u,r)}_computeTitleHeight(){const t=this.options.title,n=f0(t.font),r=jf(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(bN(t,this.left,this.right)&&bN(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],bN(t,i.left,i.left+i.width)&&bN(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!uAr(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=aAr(i,r);i&&!o&&Li(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&Li(n.onHover,[t,r,this],this)}else r&&Li(n.onClick,[t,r,this],this)}}function sAr(e,t,n,r,i){const o=lAr(r,e,t,n),a=cAr(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}function lAr(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function cAr(e,t,n){let r=e;return typeof t.text!="string"&&(r=OCt(t,n)),r}function OCt(e,t){const n=e.text?e.text.length:0;return t*n}function uAr(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var dAr={id:"legend",_element:nVe,start(e,t,n){const r=e.legend=new nVe({ctx:e.ctx,options:n,chart:e});wf.configure(e,r,n),wf.addBox(e,r)},stop(e){wf.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;wf.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=jf(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class zCt extends Q3{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=$u(r.text)?r.text.length:1;this._padding=jf(r.padding);const o=i*f0(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,c,u,d;return this.isHorizontal()?(u=r0(s,r,o),d=n+t,c=o-r):(a.position==="left"?(u=r+t,d=r0(s,i,n),l=Ku*-.5):(u=o-t,d=r0(s,n,i),l=Ku*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=f0(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);_q(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:yOe(n.align),textBaseline:"middle",translation:[a,s]})}}function pAr(e,t){const n=new zCt({ctx:e.ctx,options:t,chart:e});wf.configure(e,n,t),wf.addBox(e,n),e.titleBlock=n}var hAr={id:"title",_element:zCt,start(e,t,n){pAr(e,n)},stop(e){const t=e.titleBlock;wf.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;wf.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const MN={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),i+=l.y,++o}}return o===0||r.size===0?!1:{x:[...r].reduce((s,l)=>s+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o<a;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=Kve(t,c);u<i&&(i=u,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Ov(e,t){return t&&($u(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ty(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function fAr(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function rVe(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=f0(t.bodyFont),c=f0(t.titleFont),u=f0(t.footerFont),d=o.length,p=i.length,h=r.length,g=jf(t.padding);let m=g.height,v=0,y=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),y){const x=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;m+=h*x+(y-h)*l.lineHeight+(y-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let M=0;const C=function(x){v=Math.max(v,n.measureText(x).width+M)};return n.save(),n.font=c.string,Bo(e.title,C),n.font=l.string,Bo(e.beforeBody.concat(e.afterBody),C),M=t.displayColors?a+2+t.boxPadding:0,Bo(r,x=>{Bo(x.before,C),Bo(x.lines,C),Bo(x.after,C)}),M=0,n.font=u.string,Bo(e.footer,C),n.restore(),v+=g.width,{width:v,height:m}}function gAr(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function mAr(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function vAr(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),mAr(c,e,t,n)&&(c="center"),c}function iVe(e,t,n){const r=n.yAlign||t.yAlign||gAr(e,n);return{xAlign:n.xAlign||t.xAlign||vAr(e,t,n,r),yAlign:r}}function bAr(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function yAr(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function oVe(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=FF(a);let g=bAr(t,s);const m=yAr(t,l,c);return l==="center"?s==="left"?g+=c:s==="right"&&(g-=c):s==="left"?g-=Math.max(u,p)+i:s==="right"&&(g+=Math.max(d,h)+i),{x:xf(g,0,r.width-t.width),y:xf(m,0,r.height-t.height)}}function iG(e,t,n){const r=jf(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function aVe(e){return Ov([],ty(e))}function MAr(e,t,n){return K3(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function sVe(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const TCt={beforeTitle:K2,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:K2,beforeBody:K2,beforeLabel:K2,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Gs(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:K2,afterBody:K2,beforeFooter:K2,footer:K2,afterFooter:K2};function _1(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?TCt[t].call(n,r):i}let lVe=class extends Q3{static positioners=MN;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new dCt(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=MAr(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=_1(r,"beforeTitle",this,t),o=_1(r,"title",this,t),a=_1(r,"afterTitle",this,t);let s=[];return s=Ov(s,ty(i)),s=Ov(s,ty(o)),s=Ov(s,ty(a)),s}getBeforeBody(t,n){return aVe(_1(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Bo(t,o=>{const a={before:[],lines:[],after:[]},s=sVe(r,o);Ov(a.before,ty(_1(s,"beforeLabel",this,o))),Ov(a.lines,_1(s,"label",this,o)),Ov(a.after,ty(_1(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return aVe(_1(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=_1(r,"beforeFooter",this,t),o=_1(r,"footer",this,t),a=_1(r,"afterFooter",this,t);let s=[];return s=Ov(s,ty(i)),s=Ov(s,ty(o)),s=Ov(s,ty(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;l<c;++l)s.push(fAr(this.chart,n[l]));return t.filter&&(s=s.filter((u,d,p)=>t.filter(u,d,p,r))),t.itemSort&&(s=s.sort((u,d)=>t.itemSort(u,d,r))),Bo(s,u=>{const d=sVe(t.callbacks,u);i.push(_1(d,"labelColor",this,u)),o.push(_1(d,"labelPointStyle",this,u)),a.push(_1(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=MN[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=rVe(this,r),c=Object.assign({},s,l),u=iVe(this.chart,r,c),d=oVe(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=FF(s),{x:p,y:h}=t,{width:g,height:m}=n;let v,y,M,C,x,w;return o==="center"?(x=h+m/2,i==="left"?(v=p,y=v-a,C=x+a,w=x-a):(v=p+g,y=v+a,C=x-a,w=x+a),M=v):(i==="left"?y=p+Math.max(l,u)+a:i==="right"?y=p+g-Math.max(c,d)-a:y=this.caretX,o==="top"?(C=h,x=C-a,v=y-a,M=y+a):(C=h+m,x=C+a,v=y+a,M=y-a),w=C),{x1:v,x2:y,x3:M,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=_I(r.rtl,this.x,this.width);for(t.x=iG(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=f0(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,l+1===o&&(t.y+=r.titleMarginBottom-s)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=o,u=f0(o.bodyFont),d=iG(this,"left",o),p=i.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,g=n.y+h;if(o.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},v=i.leftForLtr(p,c)+c/2,y=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Zve(t,m,v,y),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Zve(t,m,v,y)}else{t.lineWidth=qa(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const m=i.leftForLtr(p,c),v=i.leftForLtr(i.xPlus(p,1),c-2),y=FF(a.borderRadius);Object.values(y).some(M=>M!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Jve(t,{x:m,y:g,w:c,h:l,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Jve(t,{x:v,y:g+1,w:c-2,h:l-2,radius:y}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,c,l),t.strokeRect(m,g,c,l),t.fillStyle=a.backgroundColor,t.fillRect(v,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=f0(r.bodyFont);let p=d.lineHeight,h=0;const g=_I(r.rtl,this.x,this.width),m=function(z){n.fillText(z,g.x(t.x+h),t.y+p/2),t.y+=p+o},v=g.textAlign(a);let y,M,C,x,w,S,A;for(n.textAlign=a,n.textBaseline="middle",n.font=d.string,t.x=iG(this,v,r),n.fillStyle=r.bodyColor,Bo(this.beforeBody,m),h=s&&v!=="right"?a==="center"?c/2+u:c+2+u:0,x=0,S=i.length;x<S;++x){for(y=i[x],M=this.labelTextColors[x],n.fillStyle=M,Bo(y.before,m),C=y.lines,s&&C.length&&(this._drawColorBox(n,t,x,g,r),p=Math.max(d.lineHeight,l)),w=0,A=C.length;w<A;++w)m(C[w]),p=d.lineHeight;Bo(y.after,m)}h=0,p=d.lineHeight,Bo(this.afterBody,m),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,s;if(o){const l=_I(r.rtl,this.x,this.width);for(t.x=iG(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=f0(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<o;++s)n.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:p,bottomLeft:h,bottomRight:g}=FF(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+d,l),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(s+c-p,l),n.quadraticCurveTo(s+c,l,s+c,l+p),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(s+c,l+u-g),n.quadraticCurveTo(s+c,l+u,s+c-g,l+u),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(s+h,l+u),n.quadraticCurveTo(s,l+u,s,l+u-h),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(s,l+d),n.quadraticCurveTo(s,l,s+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=MN[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=rVe(this,t),l=Object.assign({},a,this._size),c=iVe(n,t,l),u=oVe(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=jf(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),lCt(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),cCt(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!ZU(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!ZU(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=MN[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}};var CAr={id:"tooltip",_element:lVe,positioners:MN,afterInit(e,t,n){n&&(e.tooltip=new lVe({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:TCt},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const xAr=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function wAr(e,t,n,r){const i=e.indexOf(t);if(i===-1)return xAr(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const SAr=(e,t)=>e===null?null:xf(Math.round(e),0,t);function cVe(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class AAr extends gk{static id="category";static defaults={ticks:{callback:cVe}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Gs(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:wAr(r,t,Do(n,t),this._addedLabels),SAr(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return cVe.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function OAr(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:p}=e,h=o||1,g=u-1,{min:m,max:v}=t,y=!Gs(a),M=!Gs(s),C=!Gs(c),x=(v-m)/(d+1);let w=h8e((v-m)/g/h)*h,S,A,z,O;if(w<1e-14&&!y&&!M)return[{value:m},{value:v}];O=Math.ceil(v/w)-Math.floor(m/w),O>g&&(w=h8e(O*w/g/h)*h),Gs(l)||(S=Math.pow(10,l),w=Math.ceil(w*S)/S),i==="ticks"?(A=Math.floor(m/w)*w,z=Math.ceil(v/w)*w):(A=m,z=v),y&&M&&o&&lxr((s-a)/o,w/1e3)?(O=Math.round(Math.min((s-a)/w,u)),w=(s-a)/O,A=a,z=s):C?(A=y?a:A,z=M?s:z,O=c-1,w=(z-A)/O):(O=(z-A)/w,oz(O,Math.round(O),w/1e3)?O=Math.round(O):O=Math.ceil(O));const T=Math.max(f8e(w),f8e(A));S=Math.pow(10,Gs(l)?T:l),A=Math.round(A*S)/S,z=Math.round(z*S)/S;let I=0;for(y&&(p&&A!==a?(n.push({value:a}),A<a&&I++,oz(Math.round((A+I*w)*S)/S,a,uVe(a,x,e))&&I++):A<a&&I++);I<O;++I){const P=Math.round((A+I*w)*S)/S;if(M&&P>s)break;n.push({value:P})}return M&&p&&z!==s?n.length&&oz(n[n.length-1].value,s,uVe(s,x,e))?n[n.length-1].value=s:n.push({value:s}):(!M||z===s)&&n.push({value:z}),n}function uVe(e,t,{horizontal:n,minRotation:r}){const i=xO(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class zAr extends gk{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Gs(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=uw(i),c=uw(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=OAr(i,o);return t.bounds==="ticks"&&cxr(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return JMt(t,this.chart.options.locale,this.options.ticks.format)}}class TAr extends zAr{static id="linear";static defaults={ticks:{callback:eCt.formatters.numeric}};determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Bf(t)?t:0,this.max=Bf(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=xO(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const jJ={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},rp=Object.keys(jJ);function dVe(e,t){return e-t}function pVe(e,t){if(Gs(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Bf(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Lq(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function hVe(e,t,n,r){const i=rp.length;for(let o=rp.indexOf(e);o<i-1;++o){const a=jJ[rp[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(s*a.size))<=r)return rp[o]}return rp[i-1]}function EAr(e,t,n,r,i){for(let o=rp.length-1;o>=rp.indexOf(n);o--){const a=rp[o];if(jJ[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return rp[n?rp.indexOf(n):0]}function RAr(e){for(let t=rp.indexOf(e)+1,n=rp.length;t<n;++t)if(jJ[rp[t]].common)return rp[t]}function fVe(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=bOe(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function IAr(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function gVe(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a<o;++a)s=t[a],i[s]=a,r.push({value:s,major:!1});return o===0||!n?r:IAr(e,r,i,n)}class rbe extends gk{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new fCt._date(t.adapters.date);i.init(n),LF(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:pVe(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(c){!a&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!s&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!a||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Bf(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=Bf(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=gxr(i,o,a);return this._unit=n.unit||(r.autoSkip?hVe(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):EAr(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:RAr(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),gVe(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=xf(n,0,a),r=xf(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||hVe(o.minUnit,n,r,this._getLabelCapacity(n)),s=Do(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=Lq(l)||l===!0,u={};let d=n,p,h;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(p=d,h=0;p<r;p=+t.add(p,s,a),h++)fVe(u,p,g);return(p===r||i.bounds==="ticks"||h===1)&&fVe(u,p,g),Object.keys(u).sort(dVe).map(m=>+m)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Li(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],d=c&&s[c],p=r[n],h=c&&d&&p&&p.major;return this._adapter.format(t,i||(h?d:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=xO(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,gVe(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(pVe(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return vxr(t.sort(dVe))}}function oG(e,t,n){let r=0,i=e.length-1,o,a,s,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=wO(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=wO(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class $Vi extends rbe{static id="timeseries";static defaults=rbe.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=oG(n,this.min),this._tableRange=oG(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,u;for(a=0,s=t.length;a<s;++a)c=t[a],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;a<s;++a)u=i[a+1],l=i[a-1],c=i[a],Math.round((u+l)/2)!==c&&o.push({time:c,pos:a/(s-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(oG(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return oG(this._table,r*this._tableRange+this._minPos,!0)}}var xle={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */var mVe;function PAr(){return mVe||(mVe=1,(function(e){(function(t,n,r,i){var o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),s="function",l=Math.round,c=Math.abs,u=Date.now;function d(Re,qe,st){return setTimeout(C(Re,st),qe)}function p(Re,qe,st){return Array.isArray(Re)?(h(Re,st[qe],st),!0):!1}function h(Re,qe,st){var _t;if(Re)if(Re.forEach)Re.forEach(qe,st);else if(Re.length!==i)for(_t=0;_t<Re.length;)qe.call(st,Re[_t],_t,Re),_t++;else for(_t in Re)Re.hasOwnProperty(_t)&&qe.call(st,Re[_t],_t,Re)}function g(Re,qe,st){var _t="DEPRECATED METHOD: "+qe+`
`+st+` AT 
`;return function(){var hn=new Error("get-stack-trace"),hr=hn&&hn.stack?hn.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",eo=t.console&&(t.console.warn||t.console.log);return eo&&eo.call(t.console,_t,hr),Re.apply(this,arguments)}}var m;typeof Object.assign!="function"?m=function(qe){if(qe===i||qe===null)throw new TypeError("Cannot convert undefined or null to object");for(var st=Object(qe),_t=1;_t<arguments.length;_t++){var hn=arguments[_t];if(hn!==i&&hn!==null)for(var hr in hn)hn.hasOwnProperty(hr)&&(st[hr]=hn[hr])}return st}:m=Object.assign;var v=g(function(qe,st,_t){for(var hn=Object.keys(st),hr=0;hr<hn.length;)(!_t||_t&&qe[hn[hr]]===i)&&(qe[hn[hr]]=st[hn[hr]]),hr++;return qe},"extend","Use `assign`."),y=g(function(qe,st){return v(qe,st,!0)},"merge","Use `assign`.");function M(Re,qe,st){var _t=qe.prototype,hn;hn=Re.prototype=Object.create(_t),hn.constructor=Re,hn._super=_t,st&&m(hn,st)}function C(Re,qe){return function(){return Re.apply(qe,arguments)}}function x(Re,qe){return typeof Re==s?Re.apply(qe&&qe[0]||i,qe):Re}function w(Re,qe){return Re===i?qe:Re}function S(Re,qe,st){h(T(qe),function(_t){Re.addEventListener(_t,st,!1)})}function A(Re,qe,st){h(T(qe),function(_t){Re.removeEventListener(_t,st,!1)})}function z(Re,qe){for(;Re;){if(Re==qe)return!0;Re=Re.parentNode}return!1}function O(Re,qe){return Re.indexOf(qe)>-1}function T(Re){return Re.trim().split(/\s+/g)}function I(Re,qe,st){if(Re.indexOf&&!st)return Re.indexOf(qe);for(var _t=0;_t<Re.length;){if(st&&Re[_t][st]==qe||!st&&Re[_t]===qe)return _t;_t++}return-1}function P(Re){return Array.prototype.slice.call(Re,0)}function N(Re,qe,st){for(var _t=[],hn=[],hr=0;hr<Re.length;){var eo=Re[hr][qe];I(hn,eo)<0&&_t.push(Re[hr]),hn[hr]=eo,hr++}return _t=_t.sort(function(Al,cc){return Al[qe]>cc[qe]}),_t}function F(Re,qe){for(var st,_t,hn=qe[0].toUpperCase()+qe.slice(1),hr=0;hr<o.length;){if(st=o[hr],_t=st?st+hn:qe,_t in Re)return _t;hr++}return i}var L=1;function W(){return L++}function H(Re){var qe=Re.ownerDocument||Re;return qe.defaultView||qe.parentWindow||t}var j=/mobile|tablet|ip(ad|hone|od)|android/i,G="ontouchstart"in t,q=F(t,"PointerEvent")!==i,$=G&&j.test(navigator.userAgent),U="touch",X="pen",Q="mouse",re="kinect",ee=25,se=1,pe=2,te=4,ce=8,oe=1,ae=2,ne=4,le=8,he=16,be=ae|ne,me=le|he,Me=be|me,Oe=["x","y"],de=["clientX","clientY"];function ie(Re,qe){var st=this;this.manager=Re,this.callback=qe,this.element=Re.element,this.target=Re.options.inputTarget,this.domHandler=function(_t){x(Re.options.enable,[Re])&&st.handler(_t)},this.init()}ie.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(H(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(H(this.element),this.evWin,this.domHandler)}};function ue(Re){var qe,st=Re.options.inputClass;return st?qe=st:q?qe=Zn:$?qe=Je:G?qe=un:qe=Ft,new qe(Re,Ae)}function Ae(Re,qe,st){var _t=st.pointers.length,hn=st.changedPointers.length,hr=qe&se&&_t-hn===0,eo=qe&(te|ce)&&_t-hn===0;st.isFirst=!!hr,st.isFinal=!!eo,hr&&(Re.session={}),st.eventType=qe,Ce(Re,st),Re.emit("hammer.input",st),Re.recognize(st),Re.session.prevInput=st}function Ce(Re,qe){var st=Re.session,_t=qe.pointers,hn=_t.length;st.firstInput||(st.firstInput=_e(qe)),hn>1&&!st.firstMultiple?st.firstMultiple=_e(qe):hn===1&&(st.firstMultiple=!1);var hr=st.firstInput,eo=st.firstMultiple,Ns=eo?eo.center:hr.center,Al=qe.center=Ie(_t);qe.timeStamp=u(),qe.deltaTime=qe.timeStamp-hr.timeStamp,qe.angle=De(Ns,Al),qe.distance=ve(Ns,Al),Ee(st,qe),qe.offsetDirection=we(qe.deltaX,qe.deltaY);var cc=Le(qe.deltaTime,qe.deltaX,qe.deltaY);qe.overallVelocityX=cc.x,qe.overallVelocityY=cc.y,qe.overallVelocity=c(cc.x)>c(cc.y)?cc.x:cc.y,qe.scale=eo?Ve(eo.pointers,_t):1,qe.rotation=eo?ze(eo.pointers,_t):0,qe.maxPointers=st.prevInput?qe.pointers.length>st.prevInput.maxPointers?qe.pointers.length:st.prevInput.maxPointers:qe.pointers.length,Ge(st,qe);var P0=Re.element;z(qe.srcEvent.target,P0)&&(P0=qe.srcEvent.target),qe.target=P0}function Ee(Re,qe){var st=qe.center,_t=Re.offsetDelta||{},hn=Re.prevDelta||{},hr=Re.prevInput||{};(qe.eventType===se||hr.eventType===te)&&(hn=Re.prevDelta={x:hr.deltaX||0,y:hr.deltaY||0},_t=Re.offsetDelta={x:st.x,y:st.y}),qe.deltaX=hn.x+(st.x-_t.x),qe.deltaY=hn.y+(st.y-_t.y)}function Ge(Re,qe){var st=Re.lastInterval||qe,_t=qe.timeStamp-st.timeStamp,hn,hr,eo,Ns;if(qe.eventType!=ce&&(_t>ee||st.velocity===i)){var Al=qe.deltaX-st.deltaX,cc=qe.deltaY-st.deltaY,P0=Le(_t,Al,cc);hr=P0.x,eo=P0.y,hn=c(P0.x)>c(P0.y)?P0.x:P0.y,Ns=we(Al,cc),Re.lastInterval=qe}else hn=st.velocity,hr=st.velocityX,eo=st.velocityY,Ns=st.direction;qe.velocity=hn,qe.velocityX=hr,qe.velocityY=eo,qe.direction=Ns}function _e(Re){for(var qe=[],st=0;st<Re.pointers.length;)qe[st]={clientX:l(Re.pointers[st].clientX),clientY:l(Re.pointers[st].clientY)},st++;return{timeStamp:u(),pointers:qe,center:Ie(qe),deltaX:Re.deltaX,deltaY:Re.deltaY}}function Ie(Re){var qe=Re.length;if(qe===1)return{x:l(Re[0].clientX),y:l(Re[0].clientY)};for(var st=0,_t=0,hn=0;hn<qe;)st+=Re[hn].clientX,_t+=Re[hn].clientY,hn++;return{x:l(st/qe),y:l(_t/qe)}}function Le(Re,qe,st){return{x:qe/Re||0,y:st/Re||0}}function we(Re,qe){return Re===qe?oe:c(Re)>=c(qe)?Re<0?ae:ne:qe<0?le:he}function ve(Re,qe,st){st||(st=Oe);var _t=qe[st[0]]-Re[st[0]],hn=qe[st[1]]-Re[st[1]];return Math.sqrt(_t*_t+hn*hn)}function De(Re,qe,st){st||(st=Oe);var _t=qe[st[0]]-Re[st[0]],hn=qe[st[1]]-Re[st[1]];return Math.atan2(hn,_t)*180/Math.PI}function ze(Re,qe){return De(qe[1],qe[0],de)+De(Re[1],Re[0],de)}function Ve(Re,qe){return ve(qe[0],qe[1],de)/ve(Re[0],Re[1],de)}var Ke={mousedown:se,mousemove:pe,mouseup:te},et="mousedown",it="mousemove mouseup";function Ft(){this.evEl=et,this.evWin=it,this.pressed=!1,ie.apply(this,arguments)}M(Ft,ie,{handler:function(qe){var st=Ke[qe.type];st&se&&qe.button===0&&(this.pressed=!0),st&pe&&qe.which!==1&&(st=te),this.pressed&&(st&te&&(this.pressed=!1),this.callback(this.manager,st,{pointers:[qe],changedPointers:[qe],pointerType:Q,srcEvent:qe}))}});var Pt={pointerdown:se,pointermove:pe,pointerup:te,pointercancel:ce,pointerout:ce},Qn={2:U,3:X,4:Q,5:re},ir="pointerdown",jn="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(ir="MSPointerDown",jn="MSPointerMove MSPointerUp MSPointerCancel");function Zn(){this.evEl=ir,this.evWin=jn,ie.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}M(Zn,ie,{handler:function(qe){var st=this.store,_t=!1,hn=qe.type.toLowerCase().replace("ms",""),hr=Pt[hn],eo=Qn[qe.pointerType]||qe.pointerType,Ns=eo==U,Al=I(st,qe.pointerId,"pointerId");hr&se&&(qe.button===0||Ns)?Al<0&&(st.push(qe),Al=st.length-1):hr&(te|ce)&&(_t=!0),!(Al<0)&&(st[Al]=qe,this.callback(this.manager,hr,{pointers:st,changedPointers:[qe],pointerType:eo,srcEvent:qe}),_t&&st.splice(Al,1))}});var Br={touchstart:se,touchmove:pe,touchend:te,touchcancel:ce},vr="touchstart",Ne="touchstart touchmove touchend touchcancel";function He(){this.evTarget=vr,this.evWin=Ne,this.started=!1,ie.apply(this,arguments)}M(He,ie,{handler:function(qe){var st=Br[qe.type];if(st===se&&(this.started=!0),!!this.started){var _t=Xe.call(this,qe,st);st&(te|ce)&&_t[0].length-_t[1].length===0&&(this.started=!1),this.callback(this.manager,st,{pointers:_t[0],changedPointers:_t[1],pointerType:U,srcEvent:qe})}}});function Xe(Re,qe){var st=P(Re.touches),_t=P(Re.changedTouches);return qe&(te|ce)&&(st=N(st.concat(_t),"identifier")),[st,_t]}var ct={touchstart:se,touchmove:pe,touchend:te,touchcancel:ce},lt="touchstart touchmove touchend touchcancel";function Je(){this.evTarget=lt,this.targetIds={},ie.apply(this,arguments)}M(Je,ie,{handler:function(qe){var st=ct[qe.type],_t=ft.call(this,qe,st);_t&&this.callback(this.manager,st,{pointers:_t[0],changedPointers:_t[1],pointerType:U,srcEvent:qe})}});function ft(Re,qe){var st=P(Re.touches),_t=this.targetIds;if(qe&(se|pe)&&st.length===1)return _t[st[0].identifier]=!0,[st,st];var hn,hr,eo=P(Re.changedTouches),Ns=[],Al=this.target;if(hr=st.filter(function(cc){return z(cc.target,Al)}),qe===se)for(hn=0;hn<hr.length;)_t[hr[hn].identifier]=!0,hn++;for(hn=0;hn<eo.length;)_t[eo[hn].identifier]&&Ns.push(eo[hn]),qe&(te|ce)&&delete _t[eo[hn].identifier],hn++;if(Ns.length)return[N(hr.concat(Ns),"identifier"),Ns]}var Tt=2500,St=25;function un(){ie.apply(this,arguments);var Re=C(this.handler,this);this.touch=new Je(this.manager,Re),this.mouse=new Ft(this.manager,Re),this.primaryTouch=null,this.lastTouches=[]}M(un,ie,{handler:function(qe,st,_t){var hn=_t.pointerType==U,hr=_t.pointerType==Q;if(!(hr&&_t.sourceCapabilities&&_t.sourceCapabilities.firesTouchEvents)){if(hn)$n.call(this,st,_t);else if(hr&&yr.call(this,_t))return;this.callback(qe,st,_t)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function $n(Re,qe){Re&se?(this.primaryTouch=qe.changedPointers[0].identifier,Yr.call(this,qe)):Re&(te|ce)&&Yr.call(this,qe)}function Yr(Re){var qe=Re.changedPointers[0];if(qe.identifier===this.primaryTouch){var st={x:qe.clientX,y:qe.clientY};this.lastTouches.push(st);var _t=this.lastTouches,hn=function(){var hr=_t.indexOf(st);hr>-1&&_t.splice(hr,1)};setTimeout(hn,Tt)}}function yr(Re){for(var qe=Re.srcEvent.clientX,st=Re.srcEvent.clientY,_t=0;_t<this.lastTouches.length;_t++){var hn=this.lastTouches[_t],hr=Math.abs(qe-hn.x),eo=Math.abs(st-hn.y);if(hr<=St&&eo<=St)return!0}return!1}var dr=F(a.style,"touchAction"),si=dr!==i,Go="compute",$o="auto",Ki="manipulation",di="none",Dt="pan-x",It="pan-y",Hn=Ca();function jr(Re,qe){this.manager=Re,this.set(qe)}jr.prototype={set:function(Re){Re==Go&&(Re=this.compute()),si&&this.manager.element.style&&Hn[Re]&&(this.manager.element.style[dr]=Re),this.actions=Re.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var Re=[];return h(this.manager.recognizers,function(qe){x(qe.options.enable,[qe])&&(Re=Re.concat(qe.getTouchAction()))}),Jr(Re.join(" "))},preventDefaults:function(Re){var qe=Re.srcEvent,st=Re.offsetDirection;if(this.manager.session.prevented){qe.preventDefault();return}var _t=this.actions,hn=O(_t,di)&&!Hn[di],hr=O(_t,It)&&!Hn[It],eo=O(_t,Dt)&&!Hn[Dt];if(hn){var Ns=Re.pointers.length===1,Al=Re.distance<2,cc=Re.deltaTime<250;if(Ns&&Al&&cc)return}if(!(eo&&hr)&&(hn||hr&&st&be||eo&&st&me))return this.preventSrc(qe)},preventSrc:function(Re){this.manager.session.prevented=!0,Re.preventDefault()}};function Jr(Re){if(O(Re,di))return di;var qe=O(Re,Dt),st=O(Re,It);return qe&&st?di:qe||st?qe?Dt:It:O(Re,Ki)?Ki:$o}function Ca(){if(!si)return!1;var Re={},qe=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(st){Re[st]=qe?t.CSS.supports("touch-action",st):!0}),Re}var Uo=1,La=2,od=4,Lu=8,kc=Lu,Dd=16,fi=32;function _s(Re){this.options=m({},this.defaults,Re||{}),this.id=W(),this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Uo,this.simultaneous={},this.requireFail=[]}_s.prototype={defaults:{},set:function(Re){return m(this.options,Re),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(Re){if(p(Re,"recognizeWith",this))return this;var qe=this.simultaneous;return Re=ou(Re,this),qe[Re.id]||(qe[Re.id]=Re,Re.recognizeWith(this)),this},dropRecognizeWith:function(Re){return p(Re,"dropRecognizeWith",this)?this:(Re=ou(Re,this),delete this.simultaneous[Re.id],this)},requireFailure:function(Re){if(p(Re,"requireFailure",this))return this;var qe=this.requireFail;return Re=ou(Re,this),I(qe,Re)===-1&&(qe.push(Re),Re.requireFailure(this)),this},dropRequireFailure:function(Re){if(p(Re,"dropRequireFailure",this))return this;Re=ou(Re,this);var qe=I(this.requireFail,Re);return qe>-1&&this.requireFail.splice(qe,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(Re){return!!this.simultaneous[Re.id]},emit:function(Re){var qe=this,st=this.state;function _t(hn){qe.manager.emit(hn,Re)}st<Lu&&_t(qe.options.event+_u(st)),_t(qe.options.event),Re.additionalEvent&&_t(Re.additionalEvent),st>=Lu&&_t(qe.options.event+_u(st))},tryEmit:function(Re){if(this.canEmit())return this.emit(Re);this.state=fi},canEmit:function(){for(var Re=0;Re<this.requireFail.length;){if(!(this.requireFail[Re].state&(fi|Uo)))return!1;Re++}return!0},recognize:function(Re){var qe=m({},Re);if(!x(this.options.enable,[this,qe])){this.reset(),this.state=fi;return}this.state&(kc|Dd|fi)&&(this.state=Uo),this.state=this.process(qe),this.state&(La|od|Lu|Dd)&&this.tryEmit(qe)},process:function(Re){},getTouchAction:function(){},reset:function(){}};function _u(Re){return Re&Dd?"cancel":Re&Lu?"end":Re&od?"move":Re&La?"start":""}function kd(Re){return Re==he?"down":Re==le?"up":Re==ae?"left":Re==ne?"right":""}function ou(Re,qe){var st=qe.manager;return st?st.get(Re):Re}function ws(){_s.apply(this,arguments)}M(ws,_s,{defaults:{pointers:1},attrTest:function(Re){var qe=this.options.pointers;return qe===0||Re.pointers.length===qe},process:function(Re){var qe=this.state,st=Re.eventType,_t=qe&(La|od),hn=this.attrTest(Re);return _t&&(st&ce||!hn)?qe|Dd:_t||hn?st&te?qe|Lu:qe&La?qe|od:La:fi}});function au(){ws.apply(this,arguments),this.pX=null,this.pY=null}M(au,ws,{defaults:{event:"pan",threshold:10,pointers:1,direction:Me},getTouchAction:function(){var Re=this.options.direction,qe=[];return Re&be&&qe.push(It),Re&me&&qe.push(Dt),qe},directionTest:function(Re){var qe=this.options,st=!0,_t=Re.distance,hn=Re.direction,hr=Re.deltaX,eo=Re.deltaY;return hn&qe.direction||(qe.direction&be?(hn=hr===0?oe:hr<0?ae:ne,st=hr!=this.pX,_t=Math.abs(Re.deltaX)):(hn=eo===0?oe:eo<0?le:he,st=eo!=this.pY,_t=Math.abs(Re.deltaY))),Re.direction=hn,st&&_t>qe.threshold&&hn&qe.direction},attrTest:function(Re){return ws.prototype.attrTest.call(this,Re)&&(this.state&La||!(this.state&La)&&this.directionTest(Re))},emit:function(Re){this.pX=Re.deltaX,this.pY=Re.deltaY;var qe=kd(Re.direction);qe&&(Re.additionalEvent=this.options.event+qe),this._super.emit.call(this,Re)}});function Un(){ws.apply(this,arguments)}M(Un,ws,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[di]},attrTest:function(Re){return this._super.attrTest.call(this,Re)&&(Math.abs(Re.scale-1)>this.options.threshold||this.state&La)},emit:function(Re){if(Re.scale!==1){var qe=Re.scale<1?"in":"out";Re.additionalEvent=this.options.event+qe}this._super.emit.call(this,Re)}});function wn(){_s.apply(this,arguments),this._timer=null,this._input=null}M(wn,_s,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[$o]},process:function(Re){var qe=this.options,st=Re.pointers.length===qe.pointers,_t=Re.distance<qe.threshold,hn=Re.deltaTime>qe.time;if(this._input=Re,!_t||!st||Re.eventType&(te|ce)&&!hn)this.reset();else if(Re.eventType&se)this.reset(),this._timer=d(function(){this.state=kc,this.tryEmit()},qe.time,this);else if(Re.eventType&te)return kc;return fi},reset:function(){clearTimeout(this._timer)},emit:function(Re){this.state===kc&&(Re&&Re.eventType&te?this.manager.emit(this.options.event+"up",Re):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function nn(){ws.apply(this,arguments)}M(nn,ws,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[di]},attrTest:function(Re){return this._super.attrTest.call(this,Re)&&(Math.abs(Re.rotation)>this.options.threshold||this.state&La)}});function Lr(){ws.apply(this,arguments)}M(Lr,ws,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:be|me,pointers:1},getTouchAction:function(){return au.prototype.getTouchAction.call(this)},attrTest:function(Re){var qe=this.options.direction,st;return qe&(be|me)?st=Re.overallVelocity:qe&be?st=Re.overallVelocityX:qe&me&&(st=Re.overallVelocityY),this._super.attrTest.call(this,Re)&&qe&Re.offsetDirection&&Re.distance>this.options.threshold&&Re.maxPointers==this.options.pointers&&c(st)>this.options.velocity&&Re.eventType&te},emit:function(Re){var qe=kd(Re.offsetDirection);qe&&this.manager.emit(this.options.event+qe,Re),this.manager.emit(this.options.event,Re)}});function Ss(){_s.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}M(Ss,_s,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ki]},process:function(Re){var qe=this.options,st=Re.pointers.length===qe.pointers,_t=Re.distance<qe.threshold,hn=Re.deltaTime<qe.time;if(this.reset(),Re.eventType&se&&this.count===0)return this.failTimeout();if(_t&&hn&&st){if(Re.eventType!=te)return this.failTimeout();var hr=this.pTime?Re.timeStamp-this.pTime<qe.interval:!0,eo=!this.pCenter||ve(this.pCenter,Re.center)<qe.posThreshold;this.pTime=Re.timeStamp,this.pCenter=Re.center,!eo||!hr?this.count=1:this.count+=1,this._input=Re;var Ns=this.count%qe.taps;if(Ns===0)return this.hasRequireFailures()?(this._timer=d(function(){this.state=kc,this.tryEmit()},qe.interval,this),La):kc}return fi},failTimeout:function(){return this._timer=d(function(){this.state=fi},this.options.interval,this),fi},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==kc&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Va(Re,qe){return qe=qe||{},qe.recognizers=w(qe.recognizers,Va.defaults.preset),new lc(Re,qe)}Va.VERSION="2.0.7",Va.defaults={domEvents:!1,touchAction:Go,enable:!0,inputTarget:null,inputClass:null,preset:[[nn,{enable:!1}],[Un,{enable:!1},["rotate"]],[Lr,{direction:be}],[au,{direction:be},["swipe"]],[Ss],[Ss,{event:"doubletap",taps:2},["tap"]],[wn]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var xa=1,Lc=2;function lc(Re,qe){this.options=m({},Va.defaults,qe||{}),this.options.inputTarget=this.options.inputTarget||Re,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=Re,this.input=ue(this),this.touchAction=new jr(this,this.options.touchAction),C1(this,!0),h(this.options.recognizers,function(st){var _t=this.add(new st[0](st[1]));st[2]&&_t.recognizeWith(st[2]),st[3]&&_t.requireFailure(st[3])},this)}lc.prototype={set:function(Re){return m(this.options,Re),Re.touchAction&&this.touchAction.update(),Re.inputTarget&&(this.input.destroy(),this.input.target=Re.inputTarget,this.input.init()),this},stop:function(Re){this.session.stopped=Re?Lc:xa},recognize:function(Re){var qe=this.session;if(!qe.stopped){this.touchAction.preventDefaults(Re);var st,_t=this.recognizers,hn=qe.curRecognizer;(!hn||hn&&hn.state&kc)&&(hn=qe.curRecognizer=null);for(var hr=0;hr<_t.length;)st=_t[hr],qe.stopped!==Lc&&(!hn||st==hn||st.canRecognizeWith(hn))?st.recognize(Re):st.reset(),!hn&&st.state&(La|od|Lu)&&(hn=qe.curRecognizer=st),hr++}},get:function(Re){if(Re instanceof _s)return Re;for(var qe=this.recognizers,st=0;st<qe.length;st++)if(qe[st].options.event==Re)return qe[st];return null},add:function(Re){if(p(Re,"add",this))return this;var qe=this.get(Re.options.event);return qe&&this.remove(qe),this.recognizers.push(Re),Re.manager=this,this.touchAction.update(),Re},remove:function(Re){if(p(Re,"remove",this))return this;if(Re=this.get(Re),Re){var qe=this.recognizers,st=I(qe,Re);st!==-1&&(qe.splice(st,1),this.touchAction.update())}return this},on:function(Re,qe){if(Re!==i&&qe!==i){var st=this.handlers;return h(T(Re),function(_t){st[_t]=st[_t]||[],st[_t].push(qe)}),this}},off:function(Re,qe){if(Re!==i){var st=this.handlers;return h(T(Re),function(_t){qe?st[_t]&&st[_t].splice(I(st[_t],qe),1):delete st[_t]}),this}},emit:function(Re,qe){this.options.domEvents&&zp(Re,qe);var st=this.handlers[Re]&&this.handlers[Re].slice();if(!(!st||!st.length)){qe.type=Re,qe.preventDefault=function(){qe.srcEvent.preventDefault()};for(var _t=0;_t<st.length;)st[_t](qe),_t++}},destroy:function(){this.element&&C1(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function C1(Re,qe){var st=Re.element;if(st.style){var _t;h(Re.options.cssProps,function(hn,hr){_t=F(st.style,hr),qe?(Re.oldCssProps[_t]=st.style[_t],st.style[_t]=hn):st.style[_t]=Re.oldCssProps[_t]||""}),qe||(Re.oldCssProps={})}}function zp(Re,qe){var st=n.createEvent("Event");st.initEvent(Re,!0,!0),st.gesture=qe,qe.target.dispatchEvent(st)}m(Va,{INPUT_START:se,INPUT_MOVE:pe,INPUT_END:te,INPUT_CANCEL:ce,STATE_POSSIBLE:Uo,STATE_BEGAN:La,STATE_CHANGED:od,STATE_ENDED:Lu,STATE_RECOGNIZED:kc,STATE_CANCELLED:Dd,STATE_FAILED:fi,DIRECTION_NONE:oe,DIRECTION_LEFT:ae,DIRECTION_RIGHT:ne,DIRECTION_UP:le,DIRECTION_DOWN:he,DIRECTION_HORIZONTAL:be,DIRECTION_VERTICAL:me,DIRECTION_ALL:Me,Manager:lc,Input:ie,TouchAction:jr,TouchInput:Je,MouseInput:Ft,PointerEventInput:Zn,TouchMouseInput:un,SingleTouchInput:He,Recognizer:_s,AttrRecognizer:ws,Tap:Ss,Pan:au,Swipe:Lr,Pinch:Un,Rotate:nn,Press:wn,on:S,off:A,each:h,merge:y,extend:v,assign:m,inherit:M,bindFn:C,prefixed:F});var RM=typeof t<"u"?t:typeof self<"u"?self:{};RM.Hammer=Va,e.exports?e.exports=Va:t[r]=Va})(window,document,"Hammer")})(xle)),xle.exports}var DAr=PAr();const WF=qn(DAr);/*!
* chartjs-plugin-zoom v2.2.0
* https://www.chartjs.org/chartjs-plugin-zoom/2.2.0/
 * (c) 2016-2024 chartjs-plugin-zoom Contributors
 * Released under the MIT License
 */const Fq=e=>e&&e.enabled&&e.modifierKey,ECt=(e,t)=>e&&t[e+"Key"],EOe=(e,t)=>e&&!t[e+"Key"];function dw(e,t,n){return e===void 0?!0:typeof e=="string"?e.indexOf(t)!==-1:typeof e=="function"?e({chart:n}).indexOf(t)!==-1:!1}function wle(e,t){return typeof e=="function"&&(e=e({chart:t})),typeof e=="string"?{x:e.indexOf("x")!==-1,y:e.indexOf("y")!==-1}:{x:!1,y:!1}}function kAr(e,t){let n;return function(){return clearTimeout(n),n=setTimeout(e,t),t}}function LAr({x:e,y:t},n){const r=n.scales,i=Object.keys(r);for(let o=0;o<i.length;o++){const a=r[i[o]];if(t>=a.top&&t<=a.bottom&&e>=a.left&&e<=a.right)return a}return null}function RCt(e,t,n){const{mode:r="xy",scaleMode:i,overScaleMode:o}=e||{},a=LAr(t,n),s=wle(r,n),l=wle(i,n);if(o){const u=wle(o,n);for(const d of["x","y"])u[d]&&(l[d]=s[d],s[d]=!1)}if(a&&l[a.axis])return[a];const c=[];return Bo(n.scales,function(u){s[u.axis]&&c.push(u)}),c}const ibe=new WeakMap;function Fl(e){let t=ibe.get(e);return t||(t={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{},dragging:!1,panning:!1},ibe.set(e,t)),t}function _Ar(e){ibe.delete(e)}function ICt(e,t,n,r){const i=Math.max(0,Math.min(1,(e-t)/n||0)),o=1-i;return{min:r*i,max:r*o}}function PCt(e,t){const n=e.isHorizontal()?t.x:t.y;return e.getValueForPixel(n)}function DCt(e,t,n){const r=e.max-e.min,i=r*(t-1),o=PCt(e,n);return ICt(o,e.min,r,i)}function NAr(e,t,n){const r=PCt(e,n);if(r===void 0)return{min:e.min,max:e.max};const i=Math.log10(e.min),o=Math.log10(e.max),a=Math.log10(r),s=o-i,l=s*(t-1),c=ICt(a,i,s,l);return{min:Math.pow(10,i+c.min),max:Math.pow(10,o-c.max)}}function FAr(e,t){return t&&(t[e.id]||t[e.axis])||{}}function vVe(e,t,n,r,i){let o=n[r];if(o==="original"){const a=e.originalScaleLimits[t.id][r];o=Do(a.options,a.scale)}return Do(o,i)}function WAr(e,t,n){const r=e.getValueForPixel(t),i=e.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}function qAr(e,{min:t,max:n,minLimit:r,maxLimit:i},o){const a=(e-n+t)/2;t-=a,n+=a;const s=o.min.options??o.min.scale,l=o.max.options??o.max.scale,c=e/1e6;return oz(t,s,c)&&(t=s),oz(n,l,c)&&(n=l),t<r?(t=r,n=Math.min(r+e,i)):n>i&&(n=i,t=Math.max(i-e,r)),{min:t,max:n}}function Z3(e,{min:t,max:n},r,i=!1){const o=Fl(e.chart),{options:a}=e,s=FAr(e,r),{minRange:l=0}=s,c=vVe(o,e,s,"min",-1/0),u=vVe(o,e,s,"max",1/0);if(i==="pan"&&(t<c||n>u))return!0;const d=e.max-e.min,p=i?Math.max(n-t,l):d;if(i&&p===l&&d<=l)return!0;const h=qAr(p,{min:t,max:n,minLimit:c,maxLimit:u},o.originalScaleLimits[e.id]);return a.min=h.min,a.max=h.max,o.updatedScaleLimits[e.id]=h,e.parse(h.min)!==e.min||e.parse(h.max)!==e.max}function BAr(e,t,n,r){const i=DCt(e,t,n),o={min:e.min+i.min,max:e.max-i.max};return Z3(e,o,r,!0)}function jAr(e,t,n,r){const i=NAr(e,t,n);return Z3(e,i,r,!0)}function HAr(e,t,n,r){Z3(e,WAr(e,t,n),r,!0)}const bVe=e=>e===0||isNaN(e)?0:e<0?Math.min(Math.round(e),-1):Math.max(Math.round(e),1);function VAr(e){const n=e.getLabels().length-1;e.min>0&&(e.min-=1),e.max<n&&(e.max+=1)}function GAr(e,t,n,r){const i=DCt(e,t,n);e.min===e.max&&t<1&&VAr(e);const o={min:e.min+bVe(i.min),max:e.max-bVe(i.max)};return Z3(e,o,r,!0)}function $Ar(e){return e.isHorizontal()?e.width:e.height}function UAr(e,t,n){const i=e.getLabels().length-1;let{min:o,max:a}=e;const s=Math.max(a-o,1),l=Math.round($Ar(e)/Math.max(s,10)),c=Math.round(Math.abs(t/l));let u;return t<-l?(a=Math.min(a+c,i),o=s===1?a:a-s,u=a===i):t>l&&(o=Math.max(0,o-c),a=s===1?o:o+s,u=o===0),Z3(e,{min:o,max:a},n)||u}const XAr={second:500,minute:30*1e3,hour:1800*1e3,day:720*60*1e3,week:3.5*24*60*60*1e3,month:360*60*60*1e3,quarter:1440*60*60*1e3,year:4368*60*60*1e3};function kCt(e,t,n,r=!1){const{min:i,max:o,options:a}=e,s=a.time&&a.time.round,l=XAr[s]||0,c=e.getValueForPixel(e.getPixelForValue(i+l)-t),u=e.getValueForPixel(e.getPixelForValue(o+l)-t);return isNaN(c)||isNaN(u)?!0:Z3(e,{min:c,max:u},n,r?"pan":!1)}function yVe(e,t,n){return kCt(e,t,n,!0)}const obe={category:GAr,default:BAr,logarithmic:jAr},abe={default:HAr},sbe={category:UAr,default:kCt,logarithmic:yVe,timeseries:yVe};function YAr(e,t,n){const{id:r,options:{min:i,max:o}}=e;if(!t[r]||!n[r])return!0;const a=n[r];return a.min!==i||a.max!==o}function MVe(e,t){Bo(e,(n,r)=>{t[r]||delete e[r]})}function mk(e,t){const{scales:n}=e,{originalScaleLimits:r,updatedScaleLimits:i}=t;return Bo(n,function(o){YAr(o,r,i)&&(r[o.id]={min:{scale:o.min,options:o.options.min},max:{scale:o.max,options:o.options.max}})}),MVe(r,n),MVe(i,n),r}function CVe(e,t,n,r){const i=obe[e.type]||obe.default;Li(i,[e,t,n,r])}function xVe(e,t,n,r){const i=abe[e.type]||abe.default;Li(i,[e,t,n,r])}function KAr(e){const t=e.chartArea;return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function ROe(e,t,n="none",r="api"){const{x:i=1,y:o=1,focalPoint:a=KAr(e)}=typeof t=="number"?{x:t,y:t}:t,s=Fl(e),{options:{limits:l,zoom:c}}=s;mk(e,s);const u=i!==1,d=o!==1,p=RCt(c,a,e);Bo(p||e.scales,function(h){h.isHorizontal()&&u?CVe(h,i,a,l):!h.isHorizontal()&&d&&CVe(h,o,a,l)}),e.update(n),Li(c.onZoom,[{chart:e,trigger:r}])}function LCt(e,t,n,r="none",i="api"){const o=Fl(e),{options:{limits:a,zoom:s}}=o,{mode:l="xy"}=s;mk(e,o);const c=dw(l,"x",e),u=dw(l,"y",e);Bo(e.scales,function(d){d.isHorizontal()&&c?xVe(d,t.x,n.x,a):!d.isHorizontal()&&u&&xVe(d,t.y,n.y,a)}),e.update(r),Li(s.onZoom,[{chart:e,trigger:i}])}function QAr(e,t,n,r="none",i="api"){const o=Fl(e);mk(e,o);const a=e.scales[t];Z3(a,n,void 0,!0),e.update(r),Li(o.options.zoom?.onZoom,[{chart:e,trigger:i}])}function ZAr(e,t="default"){const n=Fl(e),r=mk(e,n);Bo(e.scales,function(i){const o=i.options;r[i.id]?(o.min=r[i.id].min.options,o.max=r[i.id].max.options):(delete o.min,delete o.max),delete n.updatedScaleLimits[i.id]}),e.update(t),Li(n.options.zoom.onZoomComplete,[{chart:e}])}function JAr(e,t){const n=e.originalScaleLimits[t];if(!n)return;const{min:r,max:i}=n;return Do(i.options,i.scale)-Do(r.options,r.scale)}function eOr(e){const t=Fl(e);let n=1,r=1;return Bo(e.scales,function(i){const o=JAr(t,i.id);if(o){const a=Math.round(o/(i.max-i.min)*100)/100;n=Math.min(n,a),r=Math.max(r,a)}}),n<1?n:r}function wVe(e,t,n,r){const{panDelta:i}=r,o=i[e.id]||0;uw(o)===uw(t)&&(t+=o);const a=sbe[e.type]||sbe.default;Li(a,[e,t,n])?i[e.id]=0:i[e.id]=t}function _Ct(e,t,n,r="none"){const{x:i=0,y:o=0}=typeof t=="number"?{x:t,y:t}:t,a=Fl(e),{options:{pan:s,limits:l}}=a,{onPan:c}=s||{};mk(e,a);const u=i!==0,d=o!==0;Bo(n||e.scales,function(p){p.isHorizontal()&&u?wVe(p,i,l,a):!p.isHorizontal()&&d&&wVe(p,o,l,a)}),e.update(r),Li(c,[{chart:e}])}function NCt(e){const t=Fl(e);mk(e,t);const n={};for(const r of Object.keys(e.scales)){const{min:i,max:o}=t.originalScaleLimits[r]||{min:{},max:{}};n[r]={min:i.scale,max:o.scale}}return n}function tOr(e){const t=Fl(e),n={};for(const r of Object.keys(e.scales))n[r]=t.updatedScaleLimits[r];return n}function nOr(e){const t=NCt(e);for(const n of Object.keys(e.scales)){const{min:r,max:i}=t[n];if(r!==void 0&&e.scales[n].min!==r||i!==void 0&&e.scales[n].max!==i)return!0}return!1}function SVe(e){const t=Fl(e);return t.panning||t.dragging}const AVe=(e,t,n)=>Math.min(n,Math.max(t,e));function J1(e,t){const{handlers:n}=Fl(e),r=n[t];r&&r.target&&(r.target.removeEventListener(t,r),delete n[t])}function qF(e,t,n,r){const{handlers:i,options:o}=Fl(e),a=i[n];if(a&&a.target===t)return;J1(e,n),i[n]=l=>r(e,l,o),i[n].target=t;const s=n==="wheel"?!1:void 0;t.addEventListener(n,i[n],{passive:s})}function rOr(e,t){const n=Fl(e);n.dragStart&&(n.dragging=!0,n.dragEnd=t,e.update("none"))}function iOr(e,t){const n=Fl(e);!n.dragStart||t.key!=="Escape"||(J1(e,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,e.update("none"))}function lbe(e,t){if(e.target!==t.canvas){const n=t.canvas.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}return Fv(e,t)}function FCt(e,t,n){const{onZoomStart:r,onZoomRejected:i}=n;if(r){const o=lbe(t,e);if(Li(r,[{chart:e,event:t,point:o}])===!1)return Li(i,[{chart:e,event:t}]),!1}}function oOr(e,t){if(e.legend){const o=Fv(t,e);if(qP(o,e.legend))return}const n=Fl(e),{pan:r,zoom:i={}}=n.options;if(t.button!==0||ECt(Fq(r),t)||EOe(Fq(i.drag),t))return Li(i.onZoomRejected,[{chart:e,event:t}]);FCt(e,t,i)!==!1&&(n.dragStart=t,qF(e,e.canvas.ownerDocument,"mousemove",rOr),qF(e,window.document,"keydown",iOr))}function aOr({begin:e,end:t},n){let r=t.x-e.x,i=t.y-e.y;const o=Math.abs(r/i);o>n?r=Math.sign(r)*Math.abs(i*n):o<n&&(i=Math.sign(i)*Math.abs(r/n)),t.x=e.x+r,t.y=e.y+i}function OVe(e,t,n,{min:r,max:i,prop:o}){e[r]=AVe(Math.min(n.begin[o],n.end[o]),t[r],t[i]),e[i]=AVe(Math.max(n.begin[o],n.end[o]),t[r],t[i])}function sOr(e,t,n){const r={begin:lbe(t.dragStart,e),end:lbe(t.dragEnd,e)};if(n){const i=e.chartArea.width/e.chartArea.height;aOr(r,i)}return r}function WCt(e,t,n,r){const i=dw(t,"x",e),o=dw(t,"y",e),{top:a,left:s,right:l,bottom:c,width:u,height:d}=e.chartArea,p={top:a,left:s,right:l,bottom:c},h=sOr(e,n,r&&i&&o);i&&OVe(p,e.chartArea,h,{min:"left",max:"right",prop:"x"}),o&&OVe(p,e.chartArea,h,{min:"top",max:"bottom",prop:"y"});const g=p.right-p.left,m=p.bottom-p.top;return{...p,width:g,height:m,zoomX:i&&g?1+(u-g)/u:1,zoomY:o&&m?1+(d-m)/d:1}}function lOr(e,t){const n=Fl(e);if(!n.dragStart)return;J1(e,"mousemove");const{mode:r,onZoomComplete:i,drag:{threshold:o=0,maintainAspectRatio:a}}=n.options.zoom,s=WCt(e,r,{dragStart:n.dragStart,dragEnd:t},a),l=dw(r,"x",e)?s.width:0,c=dw(r,"y",e)?s.height:0,u=Math.sqrt(l*l+c*c);if(n.dragStart=n.dragEnd=null,u<=o){n.dragging=!1,e.update("none");return}LCt(e,{x:s.left,y:s.top},{x:s.right,y:s.bottom},"zoom","drag"),n.dragging=!1,n.filterNextClick=!0,Li(i,[{chart:e}])}function cOr(e,t,n){if(EOe(Fq(n.wheel),t)){Li(n.onZoomRejected,[{chart:e,event:t}]);return}if(FCt(e,t,n)!==!1&&(t.cancelable&&t.preventDefault(),t.deltaY!==void 0))return!0}function uOr(e,t){const{handlers:{onZoomComplete:n},options:{zoom:r}}=Fl(e);if(!cOr(e,t,r))return;const i=t.target.getBoundingClientRect(),o=r.wheel.speed,a=t.deltaY>=0?2-1/(1-o):1+o,s={x:a,y:a,focalPoint:{x:t.clientX-i.left,y:t.clientY-i.top}};ROe(e,s,"zoom","wheel"),Li(n,[{chart:e}])}function dOr(e,t,n,r){n&&(Fl(e).handlers[t]=kAr(()=>Li(n,[{chart:e}]),r))}function pOr(e,t){const n=e.canvas,{wheel:r,drag:i,onZoomComplete:o}=t.zoom;r.enabled?(qF(e,n,"wheel",uOr),dOr(e,"onZoomComplete",o,250)):J1(e,"wheel"),i.enabled?(qF(e,n,"mousedown",oOr),qF(e,n.ownerDocument,"mouseup",lOr)):(J1(e,"mousedown"),J1(e,"mousemove"),J1(e,"mouseup"),J1(e,"keydown"))}function hOr(e){J1(e,"mousedown"),J1(e,"mousemove"),J1(e,"mouseup"),J1(e,"wheel"),J1(e,"click"),J1(e,"keydown")}function fOr(e,t){return function(n,r){const{pan:i,zoom:o={}}=t.options;if(!i||!i.enabled)return!1;const a=r&&r.srcEvent;return a&&!t.panning&&r.pointerType==="mouse"&&(EOe(Fq(i),a)||ECt(Fq(o.drag),a))?(Li(i.onPanRejected,[{chart:e,event:r}]),!1):!0}}function gOr(e,t){const n=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY),i=n/r;let o,a;return i>.3&&i<1.7?o=a=!0:n>r?o=!0:a=!0,{x:o,y:a}}function qCt(e,t,n){if(t.scale){const{center:r,pointers:i}=n,o=1/t.scale*n.scale,a=n.target.getBoundingClientRect(),s=gOr(i[0],i[1]),l=t.options.zoom.mode,c={x:s.x&&dw(l,"x",e)?o:1,y:s.y&&dw(l,"y",e)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}};ROe(e,c,"zoom","pinch"),t.scale=n.scale}}function mOr(e,t,n){if(t.options.zoom.pinch.enabled){const r=Fv(n,e);Li(t.options.zoom.onZoomStart,[{chart:e,event:n,point:r}])===!1?(t.scale=null,Li(t.options.zoom.onZoomRejected,[{chart:e,event:n}])):t.scale=1}}function vOr(e,t,n){t.scale&&(qCt(e,t,n),t.scale=null,Li(t.options.zoom.onZoomComplete,[{chart:e}]))}function BCt(e,t,n){const r=t.delta;r&&(t.panning=!0,_Ct(e,{x:n.deltaX-r.x,y:n.deltaY-r.y},t.panScales),t.delta={x:n.deltaX,y:n.deltaY})}function bOr(e,t,n){const{enabled:r,onPanStart:i,onPanRejected:o}=t.options.pan;if(!r)return;const a=n.target.getBoundingClientRect(),s={x:n.center.x-a.left,y:n.center.y-a.top};if(Li(i,[{chart:e,event:n,point:s}])===!1)return Li(o,[{chart:e,event:n}]);t.panScales=RCt(t.options.pan,s,e),t.delta={x:0,y:0},BCt(e,t,n)}function yOr(e,t){t.delta=null,t.panning&&(t.panning=!1,t.filterNextClick=!0,Li(t.options.pan.onPanComplete,[{chart:e}]))}const cbe=new WeakMap;function zVe(e,t){const n=Fl(e),r=e.canvas,{pan:i,zoom:o}=t,a=new WF.Manager(r);o&&o.pinch.enabled&&(a.add(new WF.Pinch),a.on("pinchstart",s=>mOr(e,n,s)),a.on("pinch",s=>qCt(e,n,s)),a.on("pinchend",s=>vOr(e,n,s))),i&&i.enabled&&(a.add(new WF.Pan({threshold:i.threshold,enable:fOr(e,n)})),a.on("panstart",s=>bOr(e,n,s)),a.on("panmove",s=>BCt(e,n,s)),a.on("panend",()=>yOr(e,n))),cbe.set(e,a)}function TVe(e){const t=cbe.get(e);t&&(t.remove("pinchstart"),t.remove("pinch"),t.remove("pinchend"),t.remove("panstart"),t.remove("pan"),t.remove("panend"),t.destroy(),cbe.delete(e))}function MOr(e,t){const{pan:n,zoom:r}=e,{pan:i,zoom:o}=t;return r?.zoom?.pinch?.enabled!==o?.zoom?.pinch?.enabled||n?.enabled!==i?.enabled||n?.threshold!==i?.threshold}var COr="2.2.0";function aG(e,t,n){const r=n.zoom.drag,{dragStart:i,dragEnd:o}=Fl(e);if(r.drawTime!==t||!o)return;const{left:a,top:s,width:l,height:c}=WCt(e,n.zoom.mode,{dragStart:i,dragEnd:o},r.maintainAspectRatio),u=e.ctx;u.save(),u.beginPath(),u.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",u.fillRect(a,s,l,c),r.borderWidth>0&&(u.lineWidth=r.borderWidth,u.strokeStyle=r.borderColor||"rgba(225,225,225)",u.strokeRect(a,s,l,c)),u.restore()}var xOr={id:"zoom",version:COr,defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(e,t,n){const r=Fl(e);r.options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),WF&&zVe(e,n),e.pan=(i,o,a)=>_Ct(e,i,o,a),e.zoom=(i,o)=>ROe(e,i,o),e.zoomRect=(i,o,a)=>LCt(e,i,o,a),e.zoomScale=(i,o,a)=>QAr(e,i,o,a),e.resetZoom=i=>ZAr(e,i),e.getZoomLevel=()=>eOr(e),e.getInitialScaleBounds=()=>NCt(e),e.getZoomedScaleBounds=()=>tOr(e),e.isZoomedOrPanned=()=>nOr(e),e.isZoomingOrPanning=()=>SVe(e)},beforeEvent(e,{event:t}){if(SVe(e))return!1;if(t.type==="click"||t.type==="mouseup"){const n=Fl(e);if(n.filterNextClick)return n.filterNextClick=!1,!1}},beforeUpdate:function(e,t,n){const r=Fl(e),i=r.options;r.options=n,MOr(i,n)&&(TVe(e),zVe(e,n)),pOr(e,n)},beforeDatasetsDraw(e,t,n){aG(e,"beforeDatasetsDraw",n)},afterDatasetsDraw(e,t,n){aG(e,"afterDatasetsDraw",n)},beforeDraw(e,t,n){aG(e,"beforeDraw",n)},afterDraw(e,t,n){aG(e,"afterDraw",n)},stop:function(e){hOr(e),WF&&TVe(e),_Ar(e)},panFunctions:sbe,zoomFunctions:obe,zoomRectFunctions:abe};const jCt="label";function EVe(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function wOr(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function HCt(e,t){e.labels=t}function VCt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jCt;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function SOr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jCt;const n={labels:[],datasets:[]};return HCt(n,e.labels),VCt(n,e.datasets,t),n}function AOr(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...p}=e,h=b.useRef(null),g=b.useRef(null),m=()=>{h.current&&(g.current=new BJ(h.current,{type:a,data:SOr(s,o),options:l&&{...l},plugins:c}),EVe(t,g.current))},v=()=>{EVe(t,null),g.current&&(g.current.destroy(),g.current=null)};return b.useEffect(()=>{!i&&g.current&&l&&wOr(g.current,l)},[i,l]),b.useEffect(()=>{!i&&g.current&&HCt(g.current.config.data,s.labels)},[i,s.labels]),b.useEffect(()=>{!i&&g.current&&s.datasets&&VCt(g.current.config.data,s.datasets,o)},[i,s.datasets]),b.useEffect(()=>{g.current&&(i?(v(),setTimeout(m)):g.current.update(d))},[i,l,s.labels,s.datasets,d]),b.useEffect(()=>{g.current&&(v(),setTimeout(m))},[a]),b.useEffect(()=>(m(),()=>v()),[]),E.createElement("canvas",{ref:h,role:"img",height:n,width:r,...p},u)}const OOr=b.forwardRef(AOr);function zOr(e,t){return BJ.register(t),b.forwardRef((n,r)=>E.createElement(OOr,{...n,ref:r,type:e}))}const TOr=zOr("line",qwr);var Sle={};const EOr="Á",ROr="á",IOr="Ă",POr="ă",DOr="∾",kOr="∿",LOr="∾̳",_Or="Â",NOr="â",FOr="´",WOr="А",qOr="а",BOr="Æ",jOr="æ",HOr="⁡",VOr="𝔄",GOr="𝔞",$Or="À",UOr="à",XOr="ℵ",YOr="ℵ",KOr="Α",QOr="α",ZOr="Ā",JOr="ā",ezr="⨿",tzr="&",nzr="&",rzr="⩕",izr="⩓",ozr="∧",azr="⩜",szr="⩘",lzr="⩚",czr="∠",uzr="⦤",dzr="∠",pzr="⦨",hzr="⦩",fzr="⦪",gzr="⦫",mzr="⦬",vzr="⦭",bzr="⦮",yzr="⦯",Mzr="∡",Czr="∟",xzr="⊾",wzr="⦝",Szr="∢",Azr="Å",Ozr="⍼",zzr="Ą",Tzr="ą",Ezr="𝔸",Rzr="𝕒",Izr="⩯",Pzr="≈",Dzr="⩰",kzr="≊",Lzr="≋",_zr="'",Nzr="⁡",Fzr="≈",Wzr="≊",qzr="Å",Bzr="å",jzr="𝒜",Hzr="𝒶",Vzr="≔",Gzr="*",$zr="≈",Uzr="≍",Xzr="Ã",Yzr="ã",Kzr="Ä",Qzr="ä",Zzr="∳",Jzr="⨑",e3r="≌",t3r="϶",n3r="‵",r3r="∽",i3r="⋍",o3r="∖",a3r="⫧",s3r="⊽",l3r="⌅",c3r="⌆",u3r="⌅",d3r="⎵",p3r="⎶",h3r="≌",f3r="Б",g3r="б",m3r="„",v3r="∵",b3r="∵",y3r="∵",M3r="⦰",C3r="϶",x3r="ℬ",w3r="ℬ",S3r="Β",A3r="β",O3r="ℶ",z3r="≬",T3r="𝔅",E3r="𝔟",R3r="⋂",I3r="◯",P3r="⋃",D3r="⨀",k3r="⨁",L3r="⨂",_3r="⨆",N3r="★",F3r="▽",W3r="△",q3r="⨄",B3r="⋁",j3r="⋀",H3r="⤍",V3r="⧫",G3r="▪",$3r="▴",U3r="▾",X3r="◂",Y3r="▸",K3r="␣",Q3r="▒",Z3r="░",J3r="▓",eTr="█",tTr="=⃥",nTr="≡⃥",rTr="⫭",iTr="⌐",oTr="𝔹",aTr="𝕓",sTr="⊥",lTr="⊥",cTr="⋈",uTr="⧉",dTr="┐",pTr="╕",hTr="╖",fTr="╗",gTr="┌",mTr="╒",vTr="╓",bTr="╔",yTr="─",MTr="═",CTr="┬",xTr="╤",wTr="╥",STr="╦",ATr="┴",OTr="╧",zTr="╨",TTr="╩",ETr="⊟",RTr="⊞",ITr="⊠",PTr="┘",DTr="╛",kTr="╜",LTr="╝",_Tr="└",NTr="╘",FTr="╙",WTr="╚",qTr="│",BTr="║",jTr="┼",HTr="╪",VTr="╫",GTr="╬",$Tr="┤",UTr="╡",XTr="╢",YTr="╣",KTr="├",QTr="╞",ZTr="╟",JTr="╠",eEr="‵",tEr="˘",nEr="˘",rEr="¦",iEr="𝒷",oEr="ℬ",aEr="⁏",sEr="∽",lEr="⋍",cEr="⧅",uEr="\\",dEr="⟈",pEr="•",hEr="•",fEr="≎",gEr="⪮",mEr="≏",vEr="≎",bEr="≏",yEr="Ć",MEr="ć",CEr="⩄",xEr="⩉",wEr="⩋",SEr="∩",AEr="⋒",OEr="⩇",zEr="⩀",TEr="ⅅ",EEr="∩︀",REr="⁁",IEr="ˇ",PEr="ℭ",DEr="⩍",kEr="Č",LEr="č",_Er="Ç",NEr="ç",FEr="Ĉ",WEr="ĉ",qEr="∰",BEr="⩌",jEr="⩐",HEr="Ċ",VEr="ċ",GEr="¸",$Er="¸",UEr="⦲",XEr="¢",YEr="·",KEr="·",QEr="𝔠",ZEr="ℭ",JEr="Ч",eRr="ч",tRr="✓",nRr="✓",rRr="Χ",iRr="χ",oRr="ˆ",aRr="≗",sRr="↺",lRr="↻",cRr="⊛",uRr="⊚",dRr="⊝",pRr="⊙",hRr="®",fRr="Ⓢ",gRr="⊖",mRr="⊕",vRr="⊗",bRr="○",yRr="⧃",MRr="≗",CRr="⨐",xRr="⫯",wRr="⧂",SRr="∲",ARr="”",ORr="’",zRr="♣",TRr="♣",ERr=":",RRr="∷",IRr="⩴",PRr="≔",DRr="≔",kRr=",",LRr="@",_Rr="∁",NRr="∘",FRr="∁",WRr="ℂ",qRr="≅",BRr="⩭",jRr="≡",HRr="∮",VRr="∯",GRr="∮",$Rr="𝕔",URr="ℂ",XRr="∐",YRr="∐",KRr="©",QRr="©",ZRr="℗",JRr="∳",eIr="↵",tIr="✗",nIr="⨯",rIr="𝒞",iIr="𝒸",oIr="⫏",aIr="⫑",sIr="⫐",lIr="⫒",cIr="⋯",uIr="⤸",dIr="⤵",pIr="⋞",hIr="⋟",fIr="↶",gIr="⤽",mIr="⩈",vIr="⩆",bIr="≍",yIr="∪",MIr="⋓",CIr="⩊",xIr="⊍",wIr="⩅",SIr="∪︀",AIr="↷",OIr="⤼",zIr="⋞",TIr="⋟",EIr="⋎",RIr="⋏",IIr="¤",PIr="↶",DIr="↷",kIr="⋎",LIr="⋏",_Ir="∲",NIr="∱",FIr="⌭",WIr="†",qIr="‡",BIr="ℸ",jIr="↓",HIr="↡",VIr="⇓",GIr="‐",$Ir="⫤",UIr="⊣",XIr="⤏",YIr="˝",KIr="Ď",QIr="ď",ZIr="Д",JIr="д",ePr="‡",tPr="⇊",nPr="ⅅ",rPr="ⅆ",iPr="⤑",oPr="⩷",aPr="°",sPr="∇",lPr="Δ",cPr="δ",uPr="⦱",dPr="⥿",pPr="𝔇",hPr="𝔡",fPr="⥥",gPr="⇃",mPr="⇂",vPr="´",bPr="˙",yPr="˝",MPr="`",CPr="˜",xPr="⋄",wPr="⋄",SPr="⋄",APr="♦",OPr="♦",zPr="¨",TPr="ⅆ",EPr="ϝ",RPr="⋲",IPr="÷",PPr="÷",DPr="⋇",kPr="⋇",LPr="Ђ",_Pr="ђ",NPr="⌞",FPr="⌍",WPr="$",qPr="𝔻",BPr="𝕕",jPr="¨",HPr="˙",VPr="⃜",GPr="≐",$Pr="≑",UPr="≐",XPr="∸",YPr="∔",KPr="⊡",QPr="⌆",ZPr="∯",JPr="¨",eDr="⇓",tDr="⇐",nDr="⇔",rDr="⫤",iDr="⟸",oDr="⟺",aDr="⟹",sDr="⇒",lDr="⊨",cDr="⇑",uDr="⇕",dDr="∥",pDr="⤓",hDr="↓",fDr="↓",gDr="⇓",mDr="⇵",vDr="̑",bDr="⇊",yDr="⇃",MDr="⇂",CDr="⥐",xDr="⥞",wDr="⥖",SDr="↽",ADr="⥟",ODr="⥗",zDr="⇁",TDr="↧",EDr="⊤",RDr="⤐",IDr="⌟",PDr="⌌",DDr="𝒟",kDr="𝒹",LDr="Ѕ",_Dr="ѕ",NDr="⧶",FDr="Đ",WDr="đ",qDr="⋱",BDr="▿",jDr="▾",HDr="⇵",VDr="⥯",GDr="⦦",$Dr="Џ",UDr="џ",XDr="⟿",YDr="É",KDr="é",QDr="⩮",ZDr="Ě",JDr="ě",ekr="Ê",tkr="ê",nkr="≖",rkr="≕",ikr="Э",okr="э",akr="⩷",skr="Ė",lkr="ė",ckr="≑",ukr="ⅇ",dkr="≒",pkr="𝔈",hkr="𝔢",fkr="⪚",gkr="È",mkr="è",vkr="⪖",bkr="⪘",ykr="⪙",Mkr="∈",Ckr="⏧",xkr="ℓ",wkr="⪕",Skr="⪗",Akr="Ē",Okr="ē",zkr="∅",Tkr="∅",Ekr="◻",Rkr="∅",Ikr="▫",Pkr=" ",Dkr=" ",kkr=" ",Lkr="Ŋ",_kr="ŋ",Nkr=" ",Fkr="Ę",Wkr="ę",qkr="𝔼",Bkr="𝕖",jkr="⋕",Hkr="⧣",Vkr="⩱",Gkr="ε",$kr="Ε",Ukr="ε",Xkr="ϵ",Ykr="≖",Kkr="≕",Qkr="≂",Zkr="⪖",Jkr="⪕",eLr="⩵",tLr="=",nLr="≂",rLr="≟",iLr="⇌",oLr="≡",aLr="⩸",sLr="⧥",lLr="⥱",cLr="≓",uLr="ℯ",dLr="ℰ",pLr="≐",hLr="⩳",fLr="≂",gLr="Η",mLr="η",vLr="Ð",bLr="ð",yLr="Ë",MLr="ë",CLr="€",xLr="!",wLr="∃",SLr="∃",ALr="ℰ",OLr="ⅇ",zLr="ⅇ",TLr="≒",ELr="Ф",RLr="ф",ILr="♀",PLr="ﬃ",DLr="ﬀ",kLr="ﬄ",LLr="𝔉",_Lr="𝔣",NLr="ﬁ",FLr="◼",WLr="▪",qLr="fj",BLr="♭",jLr="ﬂ",HLr="▱",VLr="ƒ",GLr="𝔽",$Lr="𝕗",ULr="∀",XLr="∀",YLr="⋔",KLr="⫙",QLr="ℱ",ZLr="⨍",JLr="½",e4r="⅓",t4r="¼",n4r="⅕",r4r="⅙",i4r="⅛",o4r="⅔",a4r="⅖",s4r="¾",l4r="⅗",c4r="⅜",u4r="⅘",d4r="⅚",p4r="⅝",h4r="⅞",f4r="⁄",g4r="⌢",m4r="𝒻",v4r="ℱ",b4r="ǵ",y4r="Γ",M4r="γ",C4r="Ϝ",x4r="ϝ",w4r="⪆",S4r="Ğ",A4r="ğ",O4r="Ģ",z4r="Ĝ",T4r="ĝ",E4r="Г",R4r="г",I4r="Ġ",P4r="ġ",D4r="≥",k4r="≧",L4r="⪌",_4r="⋛",N4r="≥",F4r="≧",W4r="⩾",q4r="⪩",B4r="⩾",j4r="⪀",H4r="⪂",V4r="⪄",G4r="⋛︀",$4r="⪔",U4r="𝔊",X4r="𝔤",Y4r="≫",K4r="⋙",Q4r="⋙",Z4r="ℷ",J4r="Ѓ",e_r="ѓ",t_r="⪥",n_r="≷",r_r="⪒",i_r="⪤",o_r="⪊",a_r="⪊",s_r="⪈",l_r="≩",c_r="⪈",u_r="≩",d_r="⋧",p_r="𝔾",h_r="𝕘",f_r="`",g_r="≥",m_r="⋛",v_r="≧",b_r="⪢",y_r="≷",M_r="⩾",C_r="≳",x_r="𝒢",w_r="ℊ",S_r="≳",A_r="⪎",O_r="⪐",z_r="⪧",T_r="⩺",E_r=">",R_r=">",I_r="≫",P_r="⋗",D_r="⦕",k_r="⩼",L_r="⪆",__r="⥸",N_r="⋗",F_r="⋛",W_r="⪌",q_r="≷",B_r="≳",j_r="≩︀",H_r="≩︀",V_r="ˇ",G_r=" ",$_r="½",U_r="ℋ",X_r="Ъ",Y_r="ъ",K_r="⥈",Q_r="↔",Z_r="⇔",J_r="↭",e5r="^",t5r="ℏ",n5r="Ĥ",r5r="ĥ",i5r="♥",o5r="♥",a5r="…",s5r="⊹",l5r="𝔥",c5r="ℌ",u5r="ℋ",d5r="⤥",p5r="⤦",h5r="⇿",f5r="∻",g5r="↩",m5r="↪",v5r="𝕙",b5r="ℍ",y5r="―",M5r="─",C5r="𝒽",x5r="ℋ",w5r="ℏ",S5r="Ħ",A5r="ħ",O5r="≎",z5r="≏",T5r="⁃",E5r="‐",R5r="Í",I5r="í",P5r="⁣",D5r="Î",k5r="î",L5r="И",_5r="и",N5r="İ",F5r="Е",W5r="е",q5r="¡",B5r="⇔",j5r="𝔦",H5r="ℑ",V5r="Ì",G5r="ì",$5r="ⅈ",U5r="⨌",X5r="∭",Y5r="⧜",K5r="℩",Q5r="Ĳ",Z5r="ĳ",J5r="Ī",eNr="ī",tNr="ℑ",nNr="ⅈ",rNr="ℐ",iNr="ℑ",oNr="ı",aNr="ℑ",sNr="⊷",lNr="Ƶ",cNr="⇒",uNr="℅",dNr="∞",pNr="⧝",hNr="ı",fNr="⊺",gNr="∫",mNr="∬",vNr="ℤ",bNr="∫",yNr="⊺",MNr="⋂",CNr="⨗",xNr="⨼",wNr="⁣",SNr="⁢",ANr="Ё",ONr="ё",zNr="Į",TNr="į",ENr="𝕀",RNr="𝕚",INr="Ι",PNr="ι",DNr="⨼",kNr="¿",LNr="𝒾",_Nr="ℐ",NNr="∈",FNr="⋵",WNr="⋹",qNr="⋴",BNr="⋳",jNr="∈",HNr="⁢",VNr="Ĩ",GNr="ĩ",$Nr="І",UNr="і",XNr="Ï",YNr="ï",KNr="Ĵ",QNr="ĵ",ZNr="Й",JNr="й",eFr="𝔍",tFr="𝔧",nFr="ȷ",rFr="𝕁",iFr="𝕛",oFr="𝒥",aFr="𝒿",sFr="Ј",lFr="ј",cFr="Є",uFr="є",dFr="Κ",pFr="κ",hFr="ϰ",fFr="Ķ",gFr="ķ",mFr="К",vFr="к",bFr="𝔎",yFr="𝔨",MFr="ĸ",CFr="Х",xFr="х",wFr="Ќ",SFr="ќ",AFr="𝕂",OFr="𝕜",zFr="𝒦",TFr="𝓀",EFr="⇚",RFr="Ĺ",IFr="ĺ",PFr="⦴",DFr="ℒ",kFr="Λ",LFr="λ",_Fr="⟨",NFr="⟪",FFr="⦑",WFr="⟨",qFr="⪅",BFr="ℒ",jFr="«",HFr="⇤",VFr="⤟",GFr="←",$Fr="↞",UFr="⇐",XFr="⤝",YFr="↩",KFr="↫",QFr="⤹",ZFr="⥳",JFr="↢",eWr="⤙",tWr="⤛",nWr="⪫",rWr="⪭",iWr="⪭︀",oWr="⤌",aWr="⤎",sWr="❲",lWr="{",cWr="[",uWr="⦋",dWr="⦏",pWr="⦍",hWr="Ľ",fWr="ľ",gWr="Ļ",mWr="ļ",vWr="⌈",bWr="{",yWr="Л",MWr="л",CWr="⤶",xWr="“",wWr="„",SWr="⥧",AWr="⥋",OWr="↲",zWr="≤",TWr="≦",EWr="⟨",RWr="⇤",IWr="←",PWr="←",DWr="⇐",kWr="⇆",LWr="↢",_Wr="⌈",NWr="⟦",FWr="⥡",WWr="⥙",qWr="⇃",BWr="⌊",jWr="↽",HWr="↼",VWr="⇇",GWr="↔",$Wr="↔",UWr="⇔",XWr="⇆",YWr="⇋",KWr="↭",QWr="⥎",ZWr="↤",JWr="⊣",eqr="⥚",tqr="⋋",nqr="⧏",rqr="⊲",iqr="⊴",oqr="⥑",aqr="⥠",sqr="⥘",lqr="↿",cqr="⥒",uqr="↼",dqr="⪋",pqr="⋚",hqr="≤",fqr="≦",gqr="⩽",mqr="⪨",vqr="⩽",bqr="⩿",yqr="⪁",Mqr="⪃",Cqr="⋚︀",xqr="⪓",wqr="⪅",Sqr="⋖",Aqr="⋚",Oqr="⪋",zqr="⋚",Tqr="≦",Eqr="≶",Rqr="≶",Iqr="⪡",Pqr="≲",Dqr="⩽",kqr="≲",Lqr="⥼",_qr="⌊",Nqr="𝔏",Fqr="𝔩",Wqr="≶",qqr="⪑",Bqr="⥢",jqr="↽",Hqr="↼",Vqr="⥪",Gqr="▄",$qr="Љ",Uqr="љ",Xqr="⇇",Yqr="≪",Kqr="⋘",Qqr="⌞",Zqr="⇚",Jqr="⥫",e6r="◺",t6r="Ŀ",n6r="ŀ",r6r="⎰",i6r="⎰",o6r="⪉",a6r="⪉",s6r="⪇",l6r="≨",c6r="⪇",u6r="≨",d6r="⋦",p6r="⟬",h6r="⇽",f6r="⟦",g6r="⟵",m6r="⟵",v6r="⟸",b6r="⟷",y6r="⟷",M6r="⟺",C6r="⟼",x6r="⟶",w6r="⟶",S6r="⟹",A6r="↫",O6r="↬",z6r="⦅",T6r="𝕃",E6r="𝕝",R6r="⨭",I6r="⨴",P6r="∗",D6r="_",k6r="↙",L6r="↘",_6r="◊",N6r="◊",F6r="⧫",W6r="(",q6r="⦓",B6r="⇆",j6r="⌟",H6r="⇋",V6r="⥭",G6r="‎",$6r="⊿",U6r="‹",X6r="𝓁",Y6r="ℒ",K6r="↰",Q6r="↰",Z6r="≲",J6r="⪍",eBr="⪏",tBr="[",nBr="‘",rBr="‚",iBr="Ł",oBr="ł",aBr="⪦",sBr="⩹",lBr="<",cBr="<",uBr="≪",dBr="⋖",pBr="⋋",hBr="⋉",fBr="⥶",gBr="⩻",mBr="◃",vBr="⊴",bBr="◂",yBr="⦖",MBr="⥊",CBr="⥦",xBr="≨︀",wBr="≨︀",SBr="¯",ABr="♂",OBr="✠",zBr="✠",TBr="↦",EBr="↦",RBr="↧",IBr="↤",PBr="↥",DBr="▮",kBr="⨩",LBr="М",_Br="м",NBr="—",FBr="∺",WBr="∡",qBr=" ",BBr="ℳ",jBr="𝔐",HBr="𝔪",VBr="℧",GBr="µ",$Br="*",UBr="⫰",XBr="∣",YBr="·",KBr="⊟",QBr="−",ZBr="∸",JBr="⨪",ejr="∓",tjr="⫛",njr="…",rjr="∓",ijr="⊧",ojr="𝕄",ajr="𝕞",sjr="∓",ljr="𝓂",cjr="ℳ",ujr="∾",djr="Μ",pjr="μ",hjr="⊸",fjr="⊸",gjr="∇",mjr="Ń",vjr="ń",bjr="∠⃒",yjr="≉",Mjr="⩰̸",Cjr="≋̸",xjr="ŉ",wjr="≉",Sjr="♮",Ajr="ℕ",Ojr="♮",zjr=" ",Tjr="≎̸",Ejr="≏̸",Rjr="⩃",Ijr="Ň",Pjr="ň",Djr="Ņ",kjr="ņ",Ljr="≇",_jr="⩭̸",Njr="⩂",Fjr="Н",Wjr="н",qjr="–",Bjr="⤤",jjr="↗",Hjr="⇗",Vjr="↗",Gjr="≠",$jr="≐̸",Ujr="​",Xjr="​",Yjr="​",Kjr="​",Qjr="≢",Zjr="⤨",Jjr="≂̸",eHr="≫",tHr="≪",nHr=`
`,rHr="∄",iHr="∄",oHr="𝔑",aHr="𝔫",sHr="≧̸",lHr="≱",cHr="≱",uHr="≧̸",dHr="⩾̸",pHr="⩾̸",hHr="⋙̸",fHr="≵",gHr="≫⃒",mHr="≯",vHr="≯",bHr="≫̸",yHr="↮",MHr="⇎",CHr="⫲",xHr="∋",wHr="⋼",SHr="⋺",AHr="∋",OHr="Њ",zHr="њ",THr="↚",EHr="⇍",RHr="‥",IHr="≦̸",PHr="≰",DHr="↚",kHr="⇍",LHr="↮",_Hr="⇎",NHr="≰",FHr="≦̸",WHr="⩽̸",qHr="⩽̸",BHr="≮",jHr="⋘̸",HHr="≴",VHr="≪⃒",GHr="≮",$Hr="⋪",UHr="⋬",XHr="≪̸",YHr="∤",KHr="⁠",QHr=" ",ZHr="𝕟",JHr="ℕ",e8r="⫬",t8r="¬",n8r="≢",r8r="≭",i8r="∦",o8r="∉",a8r="≠",s8r="≂̸",l8r="∄",c8r="≯",u8r="≱",d8r="≧̸",p8r="≫̸",h8r="≹",f8r="⩾̸",g8r="≵",m8r="≎̸",v8r="≏̸",b8r="∉",y8r="⋵̸",M8r="⋹̸",C8r="∉",x8r="⋷",w8r="⋶",S8r="⧏̸",A8r="⋪",O8r="⋬",z8r="≮",T8r="≰",E8r="≸",R8r="≪̸",I8r="⩽̸",P8r="≴",D8r="⪢̸",k8r="⪡̸",L8r="∌",_8r="∌",N8r="⋾",F8r="⋽",W8r="⊀",q8r="⪯̸",B8r="⋠",j8r="∌",H8r="⧐̸",V8r="⋫",G8r="⋭",$8r="⊏̸",U8r="⋢",X8r="⊐̸",Y8r="⋣",K8r="⊂⃒",Q8r="⊈",Z8r="⊁",J8r="⪰̸",eVr="⋡",tVr="≿̸",nVr="⊃⃒",rVr="⊉",iVr="≁",oVr="≄",aVr="≇",sVr="≉",lVr="∤",cVr="∦",uVr="∦",dVr="⫽⃥",pVr="∂̸",hVr="⨔",fVr="⊀",gVr="⋠",mVr="⊀",vVr="⪯̸",bVr="⪯̸",yVr="⤳̸",MVr="↛",CVr="⇏",xVr="↝̸",wVr="↛",SVr="⇏",AVr="⋫",OVr="⋭",zVr="⊁",TVr="⋡",EVr="⪰̸",RVr="𝒩",IVr="𝓃",PVr="∤",DVr="∦",kVr="≁",LVr="≄",_Vr="≄",NVr="∤",FVr="∦",WVr="⋢",qVr="⋣",BVr="⊄",jVr="⫅̸",HVr="⊈",VVr="⊂⃒",GVr="⊈",$Vr="⫅̸",UVr="⊁",XVr="⪰̸",YVr="⊅",KVr="⫆̸",QVr="⊉",ZVr="⊃⃒",JVr="⊉",eGr="⫆̸",tGr="≹",nGr="Ñ",rGr="ñ",iGr="≸",oGr="⋪",aGr="⋬",sGr="⋫",lGr="⋭",cGr="Ν",uGr="ν",dGr="#",pGr="№",hGr=" ",fGr="≍⃒",gGr="⊬",mGr="⊭",vGr="⊮",bGr="⊯",yGr="≥⃒",MGr=">⃒",CGr="⤄",xGr="⧞",wGr="⤂",SGr="≤⃒",AGr="<⃒",OGr="⊴⃒",zGr="⤃",TGr="⊵⃒",EGr="∼⃒",RGr="⤣",IGr="↖",PGr="⇖",DGr="↖",kGr="⤧",LGr="Ó",_Gr="ó",NGr="⊛",FGr="Ô",WGr="ô",qGr="⊚",BGr="О",jGr="о",HGr="⊝",VGr="Ő",GGr="ő",$Gr="⨸",UGr="⊙",XGr="⦼",YGr="Œ",KGr="œ",QGr="⦿",ZGr="𝔒",JGr="𝔬",e7r="˛",t7r="Ò",n7r="ò",r7r="⧁",i7r="⦵",o7r="Ω",a7r="∮",s7r="↺",l7r="⦾",c7r="⦻",u7r="‾",d7r="⧀",p7r="Ō",h7r="ō",f7r="Ω",g7r="ω",m7r="Ο",v7r="ο",b7r="⦶",y7r="⊖",M7r="𝕆",C7r="𝕠",x7r="⦷",w7r="“",S7r="‘",A7r="⦹",O7r="⊕",z7r="↻",T7r="⩔",E7r="∨",R7r="⩝",I7r="ℴ",P7r="ℴ",D7r="ª",k7r="º",L7r="⊶",_7r="⩖",N7r="⩗",F7r="⩛",W7r="Ⓢ",q7r="𝒪",B7r="ℴ",j7r="Ø",H7r="ø",V7r="⊘",G7r="Õ",$7r="õ",U7r="⨶",X7r="⨷",Y7r="⊗",K7r="Ö",Q7r="ö",Z7r="⌽",J7r="‾",e$r="⏞",t$r="⎴",n$r="⏜",r$r="¶",i$r="∥",o$r="∥",a$r="⫳",s$r="⫽",l$r="∂",c$r="∂",u$r="П",d$r="п",p$r="%",h$r=".",f$r="‰",g$r="⊥",m$r="‱",v$r="𝔓",b$r="𝔭",y$r="Φ",M$r="φ",C$r="ϕ",x$r="ℳ",w$r="☎",S$r="Π",A$r="π",O$r="⋔",z$r="ϖ",T$r="ℏ",E$r="ℎ",R$r="ℏ",I$r="⨣",P$r="⊞",D$r="⨢",k$r="+",L$r="∔",_$r="⨥",N$r="⩲",F$r="±",W$r="±",q$r="⨦",B$r="⨧",j$r="±",H$r="ℌ",V$r="⨕",G$r="𝕡",$$r="ℙ",U$r="£",X$r="⪷",Y$r="⪻",K$r="≺",Q$r="≼",Z$r="⪷",J$r="≺",e9r="≼",t9r="≺",n9r="⪯",r9r="≼",i9r="≾",o9r="⪯",a9r="⪹",s9r="⪵",l9r="⋨",c9r="⪯",u9r="⪳",d9r="≾",p9r="′",h9r="″",f9r="ℙ",g9r="⪹",m9r="⪵",v9r="⋨",b9r="∏",y9r="∏",M9r="⌮",C9r="⌒",x9r="⌓",w9r="∝",S9r="∝",A9r="∷",O9r="∝",z9r="≾",T9r="⊰",E9r="𝒫",R9r="𝓅",I9r="Ψ",P9r="ψ",D9r=" ",k9r="𝔔",L9r="𝔮",_9r="⨌",N9r="𝕢",F9r="ℚ",W9r="⁗",q9r="𝒬",B9r="𝓆",j9r="ℍ",H9r="⨖",V9r="?",G9r="≟",$9r='"',U9r='"',X9r="⇛",Y9r="∽̱",K9r="Ŕ",Q9r="ŕ",Z9r="√",J9r="⦳",eUr="⟩",tUr="⟫",nUr="⦒",rUr="⦥",iUr="⟩",oUr="»",aUr="⥵",sUr="⇥",lUr="⤠",cUr="⤳",uUr="→",dUr="↠",pUr="⇒",hUr="⤞",fUr="↪",gUr="↬",mUr="⥅",vUr="⥴",bUr="⤖",yUr="↣",MUr="↝",CUr="⤚",xUr="⤜",wUr="∶",SUr="ℚ",AUr="⤍",OUr="⤏",zUr="⤐",TUr="❳",EUr="}",RUr="]",IUr="⦌",PUr="⦎",DUr="⦐",kUr="Ř",LUr="ř",_Ur="Ŗ",NUr="ŗ",FUr="⌉",WUr="}",qUr="Р",BUr="р",jUr="⤷",HUr="⥩",VUr="”",GUr="”",$Ur="↳",UUr="ℜ",XUr="ℛ",YUr="ℜ",KUr="ℝ",QUr="ℜ",ZUr="▭",JUr="®",eXr="®",tXr="∋",nXr="⇋",rXr="⥯",iXr="⥽",oXr="⌋",aXr="𝔯",sXr="ℜ",lXr="⥤",cXr="⇁",uXr="⇀",dXr="⥬",pXr="Ρ",hXr="ρ",fXr="ϱ",gXr="⟩",mXr="⇥",vXr="→",bXr="→",yXr="⇒",MXr="⇄",CXr="↣",xXr="⌉",wXr="⟧",SXr="⥝",AXr="⥕",OXr="⇂",zXr="⌋",TXr="⇁",EXr="⇀",RXr="⇄",IXr="⇌",PXr="⇉",DXr="↝",kXr="↦",LXr="⊢",_Xr="⥛",NXr="⋌",FXr="⧐",WXr="⊳",qXr="⊵",BXr="⥏",jXr="⥜",HXr="⥔",VXr="↾",GXr="⥓",$Xr="⇀",UXr="˚",XXr="≓",YXr="⇄",KXr="⇌",QXr="‏",ZXr="⎱",JXr="⎱",eYr="⫮",tYr="⟭",nYr="⇾",rYr="⟧",iYr="⦆",oYr="𝕣",aYr="ℝ",sYr="⨮",lYr="⨵",cYr="⥰",uYr=")",dYr="⦔",pYr="⨒",hYr="⇉",fYr="⇛",gYr="›",mYr="𝓇",vYr="ℛ",bYr="↱",yYr="↱",MYr="]",CYr="’",xYr="’",wYr="⋌",SYr="⋊",AYr="▹",OYr="⊵",zYr="▸",TYr="⧎",EYr="⧴",RYr="⥨",IYr="℞",PYr="Ś",DYr="ś",kYr="‚",LYr="⪸",_Yr="Š",NYr="š",FYr="⪼",WYr="≻",qYr="≽",BYr="⪰",jYr="⪴",HYr="Ş",VYr="ş",GYr="Ŝ",$Yr="ŝ",UYr="⪺",XYr="⪶",YYr="⋩",KYr="⨓",QYr="≿",ZYr="С",JYr="с",eKr="⊡",tKr="⋅",nKr="⩦",rKr="⤥",iKr="↘",oKr="⇘",aKr="↘",sKr="§",lKr=";",cKr="⤩",uKr="∖",dKr="∖",pKr="✶",hKr="𝔖",fKr="𝔰",gKr="⌢",mKr="♯",vKr="Щ",bKr="щ",yKr="Ш",MKr="ш",CKr="↓",xKr="←",wKr="∣",SKr="∥",AKr="→",OKr="↑",zKr="­",TKr="Σ",EKr="σ",RKr="ς",IKr="ς",PKr="∼",DKr="⩪",kKr="≃",LKr="≃",_Kr="⪞",NKr="⪠",FKr="⪝",WKr="⪟",qKr="≆",BKr="⨤",jKr="⥲",HKr="←",VKr="∘",GKr="∖",$Kr="⨳",UKr="⧤",XKr="∣",YKr="⌣",KKr="⪪",QKr="⪬",ZKr="⪬︀",JKr="Ь",eQr="ь",tQr="⌿",nQr="⧄",rQr="/",iQr="𝕊",oQr="𝕤",aQr="♠",sQr="♠",lQr="∥",cQr="⊓",uQr="⊓︀",dQr="⊔",pQr="⊔︀",hQr="√",fQr="⊏",gQr="⊑",mQr="⊏",vQr="⊑",bQr="⊐",yQr="⊒",MQr="⊐",CQr="⊒",xQr="□",wQr="□",SQr="⊓",AQr="⊏",OQr="⊑",zQr="⊐",TQr="⊒",EQr="⊔",RQr="▪",IQr="□",PQr="▪",DQr="→",kQr="𝒮",LQr="𝓈",_Qr="∖",NQr="⌣",FQr="⋆",WQr="⋆",qQr="☆",BQr="★",jQr="ϵ",HQr="ϕ",VQr="¯",GQr="⊂",$Qr="⋐",UQr="⪽",XQr="⫅",YQr="⊆",KQr="⫃",QQr="⫁",ZQr="⫋",JQr="⊊",eZr="⪿",tZr="⥹",nZr="⊂",rZr="⋐",iZr="⊆",oZr="⫅",aZr="⊆",sZr="⊊",lZr="⫋",cZr="⫇",uZr="⫕",dZr="⫓",pZr="⪸",hZr="≻",fZr="≽",gZr="≻",mZr="⪰",vZr="≽",bZr="≿",yZr="⪰",MZr="⪺",CZr="⪶",xZr="⋩",wZr="≿",SZr="∋",AZr="∑",OZr="∑",zZr="♪",TZr="¹",EZr="²",RZr="³",IZr="⊃",PZr="⋑",DZr="⪾",kZr="⫘",LZr="⫆",_Zr="⊇",NZr="⫄",FZr="⊃",WZr="⊇",qZr="⟉",BZr="⫗",jZr="⥻",HZr="⫂",VZr="⫌",GZr="⊋",$Zr="⫀",UZr="⊃",XZr="⋑",YZr="⊇",KZr="⫆",QZr="⊋",ZZr="⫌",JZr="⫈",eJr="⫔",tJr="⫖",nJr="⤦",rJr="↙",iJr="⇙",oJr="↙",aJr="⤪",sJr="ß",lJr="	",cJr="⌖",uJr="Τ",dJr="τ",pJr="⎴",hJr="Ť",fJr="ť",gJr="Ţ",mJr="ţ",vJr="Т",bJr="т",yJr="⃛",MJr="⌕",CJr="𝔗",xJr="𝔱",wJr="∴",SJr="∴",AJr="∴",OJr="Θ",zJr="θ",TJr="ϑ",EJr="ϑ",RJr="≈",IJr="∼",PJr="  ",DJr=" ",kJr=" ",LJr="≈",_Jr="∼",NJr="Þ",FJr="þ",WJr="˜",qJr="∼",BJr="≃",jJr="≅",HJr="≈",VJr="⨱",GJr="⊠",$Jr="×",UJr="⨰",XJr="∭",YJr="⤨",KJr="⌶",QJr="⫱",ZJr="⊤",JJr="𝕋",eei="𝕥",tei="⫚",nei="⤩",rei="‴",iei="™",oei="™",aei="▵",sei="▿",lei="◃",cei="⊴",uei="≜",dei="▹",pei="⊵",hei="◬",fei="≜",gei="⨺",mei="⃛",vei="⨹",bei="⧍",yei="⨻",Mei="⏢",Cei="𝒯",xei="𝓉",wei="Ц",Sei="ц",Aei="Ћ",Oei="ћ",zei="Ŧ",Tei="ŧ",Eei="≬",Rei="↞",Iei="↠",Pei="Ú",Dei="ú",kei="↑",Lei="↟",_ei="⇑",Nei="⥉",Fei="Ў",Wei="ў",qei="Ŭ",Bei="ŭ",jei="Û",Hei="û",Vei="У",Gei="у",$ei="⇅",Uei="Ű",Xei="ű",Yei="⥮",Kei="⥾",Qei="𝔘",Zei="𝔲",Jei="Ù",eti="ù",tti="⥣",nti="↿",rti="↾",iti="▀",oti="⌜",ati="⌜",sti="⌏",lti="◸",cti="Ū",uti="ū",dti="¨",pti="_",hti="⏟",fti="⎵",gti="⏝",mti="⋃",vti="⊎",bti="Ų",yti="ų",Mti="𝕌",Cti="𝕦",xti="⤒",wti="↑",Sti="↑",Ati="⇑",Oti="⇅",zti="↕",Tti="↕",Eti="⇕",Rti="⥮",Iti="↿",Pti="↾",Dti="⊎",kti="↖",Lti="↗",_ti="υ",Nti="ϒ",Fti="ϒ",Wti="Υ",qti="υ",Bti="↥",jti="⊥",Hti="⇈",Vti="⌝",Gti="⌝",$ti="⌎",Uti="Ů",Xti="ů",Yti="◹",Kti="𝒰",Qti="𝓊",Zti="⋰",Jti="Ũ",eni="ũ",tni="▵",nni="▴",rni="⇈",ini="Ü",oni="ü",ani="⦧",sni="⦜",lni="ϵ",cni="ϰ",uni="∅",dni="ϕ",pni="ϖ",hni="∝",fni="↕",gni="⇕",mni="ϱ",vni="ς",bni="⊊︀",yni="⫋︀",Mni="⊋︀",Cni="⫌︀",xni="ϑ",wni="⊲",Sni="⊳",Ani="⫨",Oni="⫫",zni="⫩",Tni="В",Eni="в",Rni="⊢",Ini="⊨",Pni="⊩",Dni="⊫",kni="⫦",Lni="⊻",_ni="∨",Nni="⋁",Fni="≚",Wni="⋮",qni="|",Bni="‖",jni="|",Hni="‖",Vni="∣",Gni="|",$ni="❘",Uni="≀",Xni=" ",Yni="𝔙",Kni="𝔳",Qni="⊲",Zni="⊂⃒",Jni="⊃⃒",eri="𝕍",tri="𝕧",nri="∝",rri="⊳",iri="𝒱",ori="𝓋",ari="⫋︀",sri="⊊︀",lri="⫌︀",cri="⊋︀",uri="⊪",dri="⦚",pri="Ŵ",hri="ŵ",fri="⩟",gri="∧",mri="⋀",vri="≙",bri="℘",yri="𝔚",Mri="𝔴",Cri="𝕎",xri="𝕨",wri="℘",Sri="≀",Ari="≀",Ori="𝒲",zri="𝓌",Tri="⋂",Eri="◯",Rri="⋃",Iri="▽",Pri="𝔛",Dri="𝔵",kri="⟷",Lri="⟺",_ri="Ξ",Nri="ξ",Fri="⟵",Wri="⟸",qri="⟼",Bri="⋻",jri="⨀",Hri="𝕏",Vri="𝕩",Gri="⨁",$ri="⨂",Uri="⟶",Xri="⟹",Yri="𝒳",Kri="𝓍",Qri="⨆",Zri="⨄",Jri="△",eii="⋁",tii="⋀",nii="Ý",rii="ý",iii="Я",oii="я",aii="Ŷ",sii="ŷ",lii="Ы",cii="ы",uii="¥",dii="𝔜",pii="𝔶",hii="Ї",fii="ї",gii="𝕐",mii="𝕪",vii="𝒴",bii="𝓎",yii="Ю",Mii="ю",Cii="ÿ",xii="Ÿ",wii="Ź",Sii="ź",Aii="Ž",Oii="ž",zii="З",Tii="з",Eii="Ż",Rii="ż",Iii="ℨ",Pii="​",Dii="Ζ",kii="ζ",Lii="𝔷",_ii="ℨ",Nii="Ж",Fii="ж",Wii="⇝",qii="𝕫",Bii="ℤ",jii="𝒵",Hii="𝓏",Vii="‍",Gii="‌",$ii={Aacute:EOr,aacute:ROr,Abreve:IOr,abreve:POr,ac:DOr,acd:kOr,acE:LOr,Acirc:_Or,acirc:NOr,acute:FOr,Acy:WOr,acy:qOr,AElig:BOr,aelig:jOr,af:HOr,Afr:VOr,afr:GOr,Agrave:$Or,agrave:UOr,alefsym:XOr,aleph:YOr,Alpha:KOr,alpha:QOr,Amacr:ZOr,amacr:JOr,amalg:ezr,amp:tzr,AMP:nzr,andand:rzr,And:izr,and:ozr,andd:azr,andslope:szr,andv:lzr,ang:czr,ange:uzr,angle:dzr,angmsdaa:pzr,angmsdab:hzr,angmsdac:fzr,angmsdad:gzr,angmsdae:mzr,angmsdaf:vzr,angmsdag:bzr,angmsdah:yzr,angmsd:Mzr,angrt:Czr,angrtvb:xzr,angrtvbd:wzr,angsph:Szr,angst:Azr,angzarr:Ozr,Aogon:zzr,aogon:Tzr,Aopf:Ezr,aopf:Rzr,apacir:Izr,ap:Pzr,apE:Dzr,ape:kzr,apid:Lzr,apos:_zr,ApplyFunction:Nzr,approx:Fzr,approxeq:Wzr,Aring:qzr,aring:Bzr,Ascr:jzr,ascr:Hzr,Assign:Vzr,ast:Gzr,asymp:$zr,asympeq:Uzr,Atilde:Xzr,atilde:Yzr,Auml:Kzr,auml:Qzr,awconint:Zzr,awint:Jzr,backcong:e3r,backepsilon:t3r,backprime:n3r,backsim:r3r,backsimeq:i3r,Backslash:o3r,Barv:a3r,barvee:s3r,barwed:l3r,Barwed:c3r,barwedge:u3r,bbrk:d3r,bbrktbrk:p3r,bcong:h3r,Bcy:f3r,bcy:g3r,bdquo:m3r,becaus:v3r,because:b3r,Because:y3r,bemptyv:M3r,bepsi:C3r,bernou:x3r,Bernoullis:w3r,Beta:S3r,beta:A3r,beth:O3r,between:z3r,Bfr:T3r,bfr:E3r,bigcap:R3r,bigcirc:I3r,bigcup:P3r,bigodot:D3r,bigoplus:k3r,bigotimes:L3r,bigsqcup:_3r,bigstar:N3r,bigtriangledown:F3r,bigtriangleup:W3r,biguplus:q3r,bigvee:B3r,bigwedge:j3r,bkarow:H3r,blacklozenge:V3r,blacksquare:G3r,blacktriangle:$3r,blacktriangledown:U3r,blacktriangleleft:X3r,blacktriangleright:Y3r,blank:K3r,blk12:Q3r,blk14:Z3r,blk34:J3r,block:eTr,bne:tTr,bnequiv:nTr,bNot:rTr,bnot:iTr,Bopf:oTr,bopf:aTr,bot:sTr,bottom:lTr,bowtie:cTr,boxbox:uTr,boxdl:dTr,boxdL:pTr,boxDl:hTr,boxDL:fTr,boxdr:gTr,boxdR:mTr,boxDr:vTr,boxDR:bTr,boxh:yTr,boxH:MTr,boxhd:CTr,boxHd:xTr,boxhD:wTr,boxHD:STr,boxhu:ATr,boxHu:OTr,boxhU:zTr,boxHU:TTr,boxminus:ETr,boxplus:RTr,boxtimes:ITr,boxul:PTr,boxuL:DTr,boxUl:kTr,boxUL:LTr,boxur:_Tr,boxuR:NTr,boxUr:FTr,boxUR:WTr,boxv:qTr,boxV:BTr,boxvh:jTr,boxvH:HTr,boxVh:VTr,boxVH:GTr,boxvl:$Tr,boxvL:UTr,boxVl:XTr,boxVL:YTr,boxvr:KTr,boxvR:QTr,boxVr:ZTr,boxVR:JTr,bprime:eEr,breve:tEr,Breve:nEr,brvbar:rEr,bscr:iEr,Bscr:oEr,bsemi:aEr,bsim:sEr,bsime:lEr,bsolb:cEr,bsol:uEr,bsolhsub:dEr,bull:pEr,bullet:hEr,bump:fEr,bumpE:gEr,bumpe:mEr,Bumpeq:vEr,bumpeq:bEr,Cacute:yEr,cacute:MEr,capand:CEr,capbrcup:xEr,capcap:wEr,cap:SEr,Cap:AEr,capcup:OEr,capdot:zEr,CapitalDifferentialD:TEr,caps:EEr,caret:REr,caron:IEr,Cayleys:PEr,ccaps:DEr,Ccaron:kEr,ccaron:LEr,Ccedil:_Er,ccedil:NEr,Ccirc:FEr,ccirc:WEr,Cconint:qEr,ccups:BEr,ccupssm:jEr,Cdot:HEr,cdot:VEr,cedil:GEr,Cedilla:$Er,cemptyv:UEr,cent:XEr,centerdot:YEr,CenterDot:KEr,cfr:QEr,Cfr:ZEr,CHcy:JEr,chcy:eRr,check:tRr,checkmark:nRr,Chi:rRr,chi:iRr,circ:oRr,circeq:aRr,circlearrowleft:sRr,circlearrowright:lRr,circledast:cRr,circledcirc:uRr,circleddash:dRr,CircleDot:pRr,circledR:hRr,circledS:fRr,CircleMinus:gRr,CirclePlus:mRr,CircleTimes:vRr,cir:bRr,cirE:yRr,cire:MRr,cirfnint:CRr,cirmid:xRr,cirscir:wRr,ClockwiseContourIntegral:SRr,CloseCurlyDoubleQuote:ARr,CloseCurlyQuote:ORr,clubs:zRr,clubsuit:TRr,colon:ERr,Colon:RRr,Colone:IRr,colone:PRr,coloneq:DRr,comma:kRr,commat:LRr,comp:_Rr,compfn:NRr,complement:FRr,complexes:WRr,cong:qRr,congdot:BRr,Congruent:jRr,conint:HRr,Conint:VRr,ContourIntegral:GRr,copf:$Rr,Copf:URr,coprod:XRr,Coproduct:YRr,copy:KRr,COPY:QRr,copysr:ZRr,CounterClockwiseContourIntegral:JRr,crarr:eIr,cross:tIr,Cross:nIr,Cscr:rIr,cscr:iIr,csub:oIr,csube:aIr,csup:sIr,csupe:lIr,ctdot:cIr,cudarrl:uIr,cudarrr:dIr,cuepr:pIr,cuesc:hIr,cularr:fIr,cularrp:gIr,cupbrcap:mIr,cupcap:vIr,CupCap:bIr,cup:yIr,Cup:MIr,cupcup:CIr,cupdot:xIr,cupor:wIr,cups:SIr,curarr:AIr,curarrm:OIr,curlyeqprec:zIr,curlyeqsucc:TIr,curlyvee:EIr,curlywedge:RIr,curren:IIr,curvearrowleft:PIr,curvearrowright:DIr,cuvee:kIr,cuwed:LIr,cwconint:_Ir,cwint:NIr,cylcty:FIr,dagger:WIr,Dagger:qIr,daleth:BIr,darr:jIr,Darr:HIr,dArr:VIr,dash:GIr,Dashv:$Ir,dashv:UIr,dbkarow:XIr,dblac:YIr,Dcaron:KIr,dcaron:QIr,Dcy:ZIr,dcy:JIr,ddagger:ePr,ddarr:tPr,DD:nPr,dd:rPr,DDotrahd:iPr,ddotseq:oPr,deg:aPr,Del:sPr,Delta:lPr,delta:cPr,demptyv:uPr,dfisht:dPr,Dfr:pPr,dfr:hPr,dHar:fPr,dharl:gPr,dharr:mPr,DiacriticalAcute:vPr,DiacriticalDot:bPr,DiacriticalDoubleAcute:yPr,DiacriticalGrave:MPr,DiacriticalTilde:CPr,diam:xPr,diamond:wPr,Diamond:SPr,diamondsuit:APr,diams:OPr,die:zPr,DifferentialD:TPr,digamma:EPr,disin:RPr,div:IPr,divide:PPr,divideontimes:DPr,divonx:kPr,DJcy:LPr,djcy:_Pr,dlcorn:NPr,dlcrop:FPr,dollar:WPr,Dopf:qPr,dopf:BPr,Dot:jPr,dot:HPr,DotDot:VPr,doteq:GPr,doteqdot:$Pr,DotEqual:UPr,dotminus:XPr,dotplus:YPr,dotsquare:KPr,doublebarwedge:QPr,DoubleContourIntegral:ZPr,DoubleDot:JPr,DoubleDownArrow:eDr,DoubleLeftArrow:tDr,DoubleLeftRightArrow:nDr,DoubleLeftTee:rDr,DoubleLongLeftArrow:iDr,DoubleLongLeftRightArrow:oDr,DoubleLongRightArrow:aDr,DoubleRightArrow:sDr,DoubleRightTee:lDr,DoubleUpArrow:cDr,DoubleUpDownArrow:uDr,DoubleVerticalBar:dDr,DownArrowBar:pDr,downarrow:hDr,DownArrow:fDr,Downarrow:gDr,DownArrowUpArrow:mDr,DownBreve:vDr,downdownarrows:bDr,downharpoonleft:yDr,downharpoonright:MDr,DownLeftRightVector:CDr,DownLeftTeeVector:xDr,DownLeftVectorBar:wDr,DownLeftVector:SDr,DownRightTeeVector:ADr,DownRightVectorBar:ODr,DownRightVector:zDr,DownTeeArrow:TDr,DownTee:EDr,drbkarow:RDr,drcorn:IDr,drcrop:PDr,Dscr:DDr,dscr:kDr,DScy:LDr,dscy:_Dr,dsol:NDr,Dstrok:FDr,dstrok:WDr,dtdot:qDr,dtri:BDr,dtrif:jDr,duarr:HDr,duhar:VDr,dwangle:GDr,DZcy:$Dr,dzcy:UDr,dzigrarr:XDr,Eacute:YDr,eacute:KDr,easter:QDr,Ecaron:ZDr,ecaron:JDr,Ecirc:ekr,ecirc:tkr,ecir:nkr,ecolon:rkr,Ecy:ikr,ecy:okr,eDDot:akr,Edot:skr,edot:lkr,eDot:ckr,ee:ukr,efDot:dkr,Efr:pkr,efr:hkr,eg:fkr,Egrave:gkr,egrave:mkr,egs:vkr,egsdot:bkr,el:ykr,Element:Mkr,elinters:Ckr,ell:xkr,els:wkr,elsdot:Skr,Emacr:Akr,emacr:Okr,empty:zkr,emptyset:Tkr,EmptySmallSquare:Ekr,emptyv:Rkr,EmptyVerySmallSquare:Ikr,emsp13:Pkr,emsp14:Dkr,emsp:kkr,ENG:Lkr,eng:_kr,ensp:Nkr,Eogon:Fkr,eogon:Wkr,Eopf:qkr,eopf:Bkr,epar:jkr,eparsl:Hkr,eplus:Vkr,epsi:Gkr,Epsilon:$kr,epsilon:Ukr,epsiv:Xkr,eqcirc:Ykr,eqcolon:Kkr,eqsim:Qkr,eqslantgtr:Zkr,eqslantless:Jkr,Equal:eLr,equals:tLr,EqualTilde:nLr,equest:rLr,Equilibrium:iLr,equiv:oLr,equivDD:aLr,eqvparsl:sLr,erarr:lLr,erDot:cLr,escr:uLr,Escr:dLr,esdot:pLr,Esim:hLr,esim:fLr,Eta:gLr,eta:mLr,ETH:vLr,eth:bLr,Euml:yLr,euml:MLr,euro:CLr,excl:xLr,exist:wLr,Exists:SLr,expectation:ALr,exponentiale:OLr,ExponentialE:zLr,fallingdotseq:TLr,Fcy:ELr,fcy:RLr,female:ILr,ffilig:PLr,fflig:DLr,ffllig:kLr,Ffr:LLr,ffr:_Lr,filig:NLr,FilledSmallSquare:FLr,FilledVerySmallSquare:WLr,fjlig:qLr,flat:BLr,fllig:jLr,fltns:HLr,fnof:VLr,Fopf:GLr,fopf:$Lr,forall:ULr,ForAll:XLr,fork:YLr,forkv:KLr,Fouriertrf:QLr,fpartint:ZLr,frac12:JLr,frac13:e4r,frac14:t4r,frac15:n4r,frac16:r4r,frac18:i4r,frac23:o4r,frac25:a4r,frac34:s4r,frac35:l4r,frac38:c4r,frac45:u4r,frac56:d4r,frac58:p4r,frac78:h4r,frasl:f4r,frown:g4r,fscr:m4r,Fscr:v4r,gacute:b4r,Gamma:y4r,gamma:M4r,Gammad:C4r,gammad:x4r,gap:w4r,Gbreve:S4r,gbreve:A4r,Gcedil:O4r,Gcirc:z4r,gcirc:T4r,Gcy:E4r,gcy:R4r,Gdot:I4r,gdot:P4r,ge:D4r,gE:k4r,gEl:L4r,gel:_4r,geq:N4r,geqq:F4r,geqslant:W4r,gescc:q4r,ges:B4r,gesdot:j4r,gesdoto:H4r,gesdotol:V4r,gesl:G4r,gesles:$4r,Gfr:U4r,gfr:X4r,gg:Y4r,Gg:K4r,ggg:Q4r,gimel:Z4r,GJcy:J4r,gjcy:e_r,gla:t_r,gl:n_r,glE:r_r,glj:i_r,gnap:o_r,gnapprox:a_r,gne:s_r,gnE:l_r,gneq:c_r,gneqq:u_r,gnsim:d_r,Gopf:p_r,gopf:h_r,grave:f_r,GreaterEqual:g_r,GreaterEqualLess:m_r,GreaterFullEqual:v_r,GreaterGreater:b_r,GreaterLess:y_r,GreaterSlantEqual:M_r,GreaterTilde:C_r,Gscr:x_r,gscr:w_r,gsim:S_r,gsime:A_r,gsiml:O_r,gtcc:z_r,gtcir:T_r,gt:E_r,GT:R_r,Gt:I_r,gtdot:P_r,gtlPar:D_r,gtquest:k_r,gtrapprox:L_r,gtrarr:__r,gtrdot:N_r,gtreqless:F_r,gtreqqless:W_r,gtrless:q_r,gtrsim:B_r,gvertneqq:j_r,gvnE:H_r,Hacek:V_r,hairsp:G_r,half:$_r,hamilt:U_r,HARDcy:X_r,hardcy:Y_r,harrcir:K_r,harr:Q_r,hArr:Z_r,harrw:J_r,Hat:e5r,hbar:t5r,Hcirc:n5r,hcirc:r5r,hearts:i5r,heartsuit:o5r,hellip:a5r,hercon:s5r,hfr:l5r,Hfr:c5r,HilbertSpace:u5r,hksearow:d5r,hkswarow:p5r,hoarr:h5r,homtht:f5r,hookleftarrow:g5r,hookrightarrow:m5r,hopf:v5r,Hopf:b5r,horbar:y5r,HorizontalLine:M5r,hscr:C5r,Hscr:x5r,hslash:w5r,Hstrok:S5r,hstrok:A5r,HumpDownHump:O5r,HumpEqual:z5r,hybull:T5r,hyphen:E5r,Iacute:R5r,iacute:I5r,ic:P5r,Icirc:D5r,icirc:k5r,Icy:L5r,icy:_5r,Idot:N5r,IEcy:F5r,iecy:W5r,iexcl:q5r,iff:B5r,ifr:j5r,Ifr:H5r,Igrave:V5r,igrave:G5r,ii:$5r,iiiint:U5r,iiint:X5r,iinfin:Y5r,iiota:K5r,IJlig:Q5r,ijlig:Z5r,Imacr:J5r,imacr:eNr,image:tNr,ImaginaryI:nNr,imagline:rNr,imagpart:iNr,imath:oNr,Im:aNr,imof:sNr,imped:lNr,Implies:cNr,incare:uNr,in:"∈",infin:dNr,infintie:pNr,inodot:hNr,intcal:fNr,int:gNr,Int:mNr,integers:vNr,Integral:bNr,intercal:yNr,Intersection:MNr,intlarhk:CNr,intprod:xNr,InvisibleComma:wNr,InvisibleTimes:SNr,IOcy:ANr,iocy:ONr,Iogon:zNr,iogon:TNr,Iopf:ENr,iopf:RNr,Iota:INr,iota:PNr,iprod:DNr,iquest:kNr,iscr:LNr,Iscr:_Nr,isin:NNr,isindot:FNr,isinE:WNr,isins:qNr,isinsv:BNr,isinv:jNr,it:HNr,Itilde:VNr,itilde:GNr,Iukcy:$Nr,iukcy:UNr,Iuml:XNr,iuml:YNr,Jcirc:KNr,jcirc:QNr,Jcy:ZNr,jcy:JNr,Jfr:eFr,jfr:tFr,jmath:nFr,Jopf:rFr,jopf:iFr,Jscr:oFr,jscr:aFr,Jsercy:sFr,jsercy:lFr,Jukcy:cFr,jukcy:uFr,Kappa:dFr,kappa:pFr,kappav:hFr,Kcedil:fFr,kcedil:gFr,Kcy:mFr,kcy:vFr,Kfr:bFr,kfr:yFr,kgreen:MFr,KHcy:CFr,khcy:xFr,KJcy:wFr,kjcy:SFr,Kopf:AFr,kopf:OFr,Kscr:zFr,kscr:TFr,lAarr:EFr,Lacute:RFr,lacute:IFr,laemptyv:PFr,lagran:DFr,Lambda:kFr,lambda:LFr,lang:_Fr,Lang:NFr,langd:FFr,langle:WFr,lap:qFr,Laplacetrf:BFr,laquo:jFr,larrb:HFr,larrbfs:VFr,larr:GFr,Larr:$Fr,lArr:UFr,larrfs:XFr,larrhk:YFr,larrlp:KFr,larrpl:QFr,larrsim:ZFr,larrtl:JFr,latail:eWr,lAtail:tWr,lat:nWr,late:rWr,lates:iWr,lbarr:oWr,lBarr:aWr,lbbrk:sWr,lbrace:lWr,lbrack:cWr,lbrke:uWr,lbrksld:dWr,lbrkslu:pWr,Lcaron:hWr,lcaron:fWr,Lcedil:gWr,lcedil:mWr,lceil:vWr,lcub:bWr,Lcy:yWr,lcy:MWr,ldca:CWr,ldquo:xWr,ldquor:wWr,ldrdhar:SWr,ldrushar:AWr,ldsh:OWr,le:zWr,lE:TWr,LeftAngleBracket:EWr,LeftArrowBar:RWr,leftarrow:IWr,LeftArrow:PWr,Leftarrow:DWr,LeftArrowRightArrow:kWr,leftarrowtail:LWr,LeftCeiling:_Wr,LeftDoubleBracket:NWr,LeftDownTeeVector:FWr,LeftDownVectorBar:WWr,LeftDownVector:qWr,LeftFloor:BWr,leftharpoondown:jWr,leftharpoonup:HWr,leftleftarrows:VWr,leftrightarrow:GWr,LeftRightArrow:$Wr,Leftrightarrow:UWr,leftrightarrows:XWr,leftrightharpoons:YWr,leftrightsquigarrow:KWr,LeftRightVector:QWr,LeftTeeArrow:ZWr,LeftTee:JWr,LeftTeeVector:eqr,leftthreetimes:tqr,LeftTriangleBar:nqr,LeftTriangle:rqr,LeftTriangleEqual:iqr,LeftUpDownVector:oqr,LeftUpTeeVector:aqr,LeftUpVectorBar:sqr,LeftUpVector:lqr,LeftVectorBar:cqr,LeftVector:uqr,lEg:dqr,leg:pqr,leq:hqr,leqq:fqr,leqslant:gqr,lescc:mqr,les:vqr,lesdot:bqr,lesdoto:yqr,lesdotor:Mqr,lesg:Cqr,lesges:xqr,lessapprox:wqr,lessdot:Sqr,lesseqgtr:Aqr,lesseqqgtr:Oqr,LessEqualGreater:zqr,LessFullEqual:Tqr,LessGreater:Eqr,lessgtr:Rqr,LessLess:Iqr,lesssim:Pqr,LessSlantEqual:Dqr,LessTilde:kqr,lfisht:Lqr,lfloor:_qr,Lfr:Nqr,lfr:Fqr,lg:Wqr,lgE:qqr,lHar:Bqr,lhard:jqr,lharu:Hqr,lharul:Vqr,lhblk:Gqr,LJcy:$qr,ljcy:Uqr,llarr:Xqr,ll:Yqr,Ll:Kqr,llcorner:Qqr,Lleftarrow:Zqr,llhard:Jqr,lltri:e6r,Lmidot:t6r,lmidot:n6r,lmoustache:r6r,lmoust:i6r,lnap:o6r,lnapprox:a6r,lne:s6r,lnE:l6r,lneq:c6r,lneqq:u6r,lnsim:d6r,loang:p6r,loarr:h6r,lobrk:f6r,longleftarrow:g6r,LongLeftArrow:m6r,Longleftarrow:v6r,longleftrightarrow:b6r,LongLeftRightArrow:y6r,Longleftrightarrow:M6r,longmapsto:C6r,longrightarrow:x6r,LongRightArrow:w6r,Longrightarrow:S6r,looparrowleft:A6r,looparrowright:O6r,lopar:z6r,Lopf:T6r,lopf:E6r,loplus:R6r,lotimes:I6r,lowast:P6r,lowbar:D6r,LowerLeftArrow:k6r,LowerRightArrow:L6r,loz:_6r,lozenge:N6r,lozf:F6r,lpar:W6r,lparlt:q6r,lrarr:B6r,lrcorner:j6r,lrhar:H6r,lrhard:V6r,lrm:G6r,lrtri:$6r,lsaquo:U6r,lscr:X6r,Lscr:Y6r,lsh:K6r,Lsh:Q6r,lsim:Z6r,lsime:J6r,lsimg:eBr,lsqb:tBr,lsquo:nBr,lsquor:rBr,Lstrok:iBr,lstrok:oBr,ltcc:aBr,ltcir:sBr,lt:lBr,LT:cBr,Lt:uBr,ltdot:dBr,lthree:pBr,ltimes:hBr,ltlarr:fBr,ltquest:gBr,ltri:mBr,ltrie:vBr,ltrif:bBr,ltrPar:yBr,lurdshar:MBr,luruhar:CBr,lvertneqq:xBr,lvnE:wBr,macr:SBr,male:ABr,malt:OBr,maltese:zBr,Map:"⤅",map:TBr,mapsto:EBr,mapstodown:RBr,mapstoleft:IBr,mapstoup:PBr,marker:DBr,mcomma:kBr,Mcy:LBr,mcy:_Br,mdash:NBr,mDDot:FBr,measuredangle:WBr,MediumSpace:qBr,Mellintrf:BBr,Mfr:jBr,mfr:HBr,mho:VBr,micro:GBr,midast:$Br,midcir:UBr,mid:XBr,middot:YBr,minusb:KBr,minus:QBr,minusd:ZBr,minusdu:JBr,MinusPlus:ejr,mlcp:tjr,mldr:njr,mnplus:rjr,models:ijr,Mopf:ojr,mopf:ajr,mp:sjr,mscr:ljr,Mscr:cjr,mstpos:ujr,Mu:djr,mu:pjr,multimap:hjr,mumap:fjr,nabla:gjr,Nacute:mjr,nacute:vjr,nang:bjr,nap:yjr,napE:Mjr,napid:Cjr,napos:xjr,napprox:wjr,natural:Sjr,naturals:Ajr,natur:Ojr,nbsp:zjr,nbump:Tjr,nbumpe:Ejr,ncap:Rjr,Ncaron:Ijr,ncaron:Pjr,Ncedil:Djr,ncedil:kjr,ncong:Ljr,ncongdot:_jr,ncup:Njr,Ncy:Fjr,ncy:Wjr,ndash:qjr,nearhk:Bjr,nearr:jjr,neArr:Hjr,nearrow:Vjr,ne:Gjr,nedot:$jr,NegativeMediumSpace:Ujr,NegativeThickSpace:Xjr,NegativeThinSpace:Yjr,NegativeVeryThinSpace:Kjr,nequiv:Qjr,nesear:Zjr,nesim:Jjr,NestedGreaterGreater:eHr,NestedLessLess:tHr,NewLine:nHr,nexist:rHr,nexists:iHr,Nfr:oHr,nfr:aHr,ngE:sHr,nge:lHr,ngeq:cHr,ngeqq:uHr,ngeqslant:dHr,nges:pHr,nGg:hHr,ngsim:fHr,nGt:gHr,ngt:mHr,ngtr:vHr,nGtv:bHr,nharr:yHr,nhArr:MHr,nhpar:CHr,ni:xHr,nis:wHr,nisd:SHr,niv:AHr,NJcy:OHr,njcy:zHr,nlarr:THr,nlArr:EHr,nldr:RHr,nlE:IHr,nle:PHr,nleftarrow:DHr,nLeftarrow:kHr,nleftrightarrow:LHr,nLeftrightarrow:_Hr,nleq:NHr,nleqq:FHr,nleqslant:WHr,nles:qHr,nless:BHr,nLl:jHr,nlsim:HHr,nLt:VHr,nlt:GHr,nltri:$Hr,nltrie:UHr,nLtv:XHr,nmid:YHr,NoBreak:KHr,NonBreakingSpace:QHr,nopf:ZHr,Nopf:JHr,Not:e8r,not:t8r,NotCongruent:n8r,NotCupCap:r8r,NotDoubleVerticalBar:i8r,NotElement:o8r,NotEqual:a8r,NotEqualTilde:s8r,NotExists:l8r,NotGreater:c8r,NotGreaterEqual:u8r,NotGreaterFullEqual:d8r,NotGreaterGreater:p8r,NotGreaterLess:h8r,NotGreaterSlantEqual:f8r,NotGreaterTilde:g8r,NotHumpDownHump:m8r,NotHumpEqual:v8r,notin:b8r,notindot:y8r,notinE:M8r,notinva:C8r,notinvb:x8r,notinvc:w8r,NotLeftTriangleBar:S8r,NotLeftTriangle:A8r,NotLeftTriangleEqual:O8r,NotLess:z8r,NotLessEqual:T8r,NotLessGreater:E8r,NotLessLess:R8r,NotLessSlantEqual:I8r,NotLessTilde:P8r,NotNestedGreaterGreater:D8r,NotNestedLessLess:k8r,notni:L8r,notniva:_8r,notnivb:N8r,notnivc:F8r,NotPrecedes:W8r,NotPrecedesEqual:q8r,NotPrecedesSlantEqual:B8r,NotReverseElement:j8r,NotRightTriangleBar:H8r,NotRightTriangle:V8r,NotRightTriangleEqual:G8r,NotSquareSubset:$8r,NotSquareSubsetEqual:U8r,NotSquareSuperset:X8r,NotSquareSupersetEqual:Y8r,NotSubset:K8r,NotSubsetEqual:Q8r,NotSucceeds:Z8r,NotSucceedsEqual:J8r,NotSucceedsSlantEqual:eVr,NotSucceedsTilde:tVr,NotSuperset:nVr,NotSupersetEqual:rVr,NotTilde:iVr,NotTildeEqual:oVr,NotTildeFullEqual:aVr,NotTildeTilde:sVr,NotVerticalBar:lVr,nparallel:cVr,npar:uVr,nparsl:dVr,npart:pVr,npolint:hVr,npr:fVr,nprcue:gVr,nprec:mVr,npreceq:vVr,npre:bVr,nrarrc:yVr,nrarr:MVr,nrArr:CVr,nrarrw:xVr,nrightarrow:wVr,nRightarrow:SVr,nrtri:AVr,nrtrie:OVr,nsc:zVr,nsccue:TVr,nsce:EVr,Nscr:RVr,nscr:IVr,nshortmid:PVr,nshortparallel:DVr,nsim:kVr,nsime:LVr,nsimeq:_Vr,nsmid:NVr,nspar:FVr,nsqsube:WVr,nsqsupe:qVr,nsub:BVr,nsubE:jVr,nsube:HVr,nsubset:VVr,nsubseteq:GVr,nsubseteqq:$Vr,nsucc:UVr,nsucceq:XVr,nsup:YVr,nsupE:KVr,nsupe:QVr,nsupset:ZVr,nsupseteq:JVr,nsupseteqq:eGr,ntgl:tGr,Ntilde:nGr,ntilde:rGr,ntlg:iGr,ntriangleleft:oGr,ntrianglelefteq:aGr,ntriangleright:sGr,ntrianglerighteq:lGr,Nu:cGr,nu:uGr,num:dGr,numero:pGr,numsp:hGr,nvap:fGr,nvdash:gGr,nvDash:mGr,nVdash:vGr,nVDash:bGr,nvge:yGr,nvgt:MGr,nvHarr:CGr,nvinfin:xGr,nvlArr:wGr,nvle:SGr,nvlt:AGr,nvltrie:OGr,nvrArr:zGr,nvrtrie:TGr,nvsim:EGr,nwarhk:RGr,nwarr:IGr,nwArr:PGr,nwarrow:DGr,nwnear:kGr,Oacute:LGr,oacute:_Gr,oast:NGr,Ocirc:FGr,ocirc:WGr,ocir:qGr,Ocy:BGr,ocy:jGr,odash:HGr,Odblac:VGr,odblac:GGr,odiv:$Gr,odot:UGr,odsold:XGr,OElig:YGr,oelig:KGr,ofcir:QGr,Ofr:ZGr,ofr:JGr,ogon:e7r,Ograve:t7r,ograve:n7r,ogt:r7r,ohbar:i7r,ohm:o7r,oint:a7r,olarr:s7r,olcir:l7r,olcross:c7r,oline:u7r,olt:d7r,Omacr:p7r,omacr:h7r,Omega:f7r,omega:g7r,Omicron:m7r,omicron:v7r,omid:b7r,ominus:y7r,Oopf:M7r,oopf:C7r,opar:x7r,OpenCurlyDoubleQuote:w7r,OpenCurlyQuote:S7r,operp:A7r,oplus:O7r,orarr:z7r,Or:T7r,or:E7r,ord:R7r,order:I7r,orderof:P7r,ordf:D7r,ordm:k7r,origof:L7r,oror:_7r,orslope:N7r,orv:F7r,oS:W7r,Oscr:q7r,oscr:B7r,Oslash:j7r,oslash:H7r,osol:V7r,Otilde:G7r,otilde:$7r,otimesas:U7r,Otimes:X7r,otimes:Y7r,Ouml:K7r,ouml:Q7r,ovbar:Z7r,OverBar:J7r,OverBrace:e$r,OverBracket:t$r,OverParenthesis:n$r,para:r$r,parallel:i$r,par:o$r,parsim:a$r,parsl:s$r,part:l$r,PartialD:c$r,Pcy:u$r,pcy:d$r,percnt:p$r,period:h$r,permil:f$r,perp:g$r,pertenk:m$r,Pfr:v$r,pfr:b$r,Phi:y$r,phi:M$r,phiv:C$r,phmmat:x$r,phone:w$r,Pi:S$r,pi:A$r,pitchfork:O$r,piv:z$r,planck:T$r,planckh:E$r,plankv:R$r,plusacir:I$r,plusb:P$r,pluscir:D$r,plus:k$r,plusdo:L$r,plusdu:_$r,pluse:N$r,PlusMinus:F$r,plusmn:W$r,plussim:q$r,plustwo:B$r,pm:j$r,Poincareplane:H$r,pointint:V$r,popf:G$r,Popf:$$r,pound:U$r,prap:X$r,Pr:Y$r,pr:K$r,prcue:Q$r,precapprox:Z$r,prec:J$r,preccurlyeq:e9r,Precedes:t9r,PrecedesEqual:n9r,PrecedesSlantEqual:r9r,PrecedesTilde:i9r,preceq:o9r,precnapprox:a9r,precneqq:s9r,precnsim:l9r,pre:c9r,prE:u9r,precsim:d9r,prime:p9r,Prime:h9r,primes:f9r,prnap:g9r,prnE:m9r,prnsim:v9r,prod:b9r,Product:y9r,profalar:M9r,profline:C9r,profsurf:x9r,prop:w9r,Proportional:S9r,Proportion:A9r,propto:O9r,prsim:z9r,prurel:T9r,Pscr:E9r,pscr:R9r,Psi:I9r,psi:P9r,puncsp:D9r,Qfr:k9r,qfr:L9r,qint:_9r,qopf:N9r,Qopf:F9r,qprime:W9r,Qscr:q9r,qscr:B9r,quaternions:j9r,quatint:H9r,quest:V9r,questeq:G9r,quot:$9r,QUOT:U9r,rAarr:X9r,race:Y9r,Racute:K9r,racute:Q9r,radic:Z9r,raemptyv:J9r,rang:eUr,Rang:tUr,rangd:nUr,range:rUr,rangle:iUr,raquo:oUr,rarrap:aUr,rarrb:sUr,rarrbfs:lUr,rarrc:cUr,rarr:uUr,Rarr:dUr,rArr:pUr,rarrfs:hUr,rarrhk:fUr,rarrlp:gUr,rarrpl:mUr,rarrsim:vUr,Rarrtl:bUr,rarrtl:yUr,rarrw:MUr,ratail:CUr,rAtail:xUr,ratio:wUr,rationals:SUr,rbarr:AUr,rBarr:OUr,RBarr:zUr,rbbrk:TUr,rbrace:EUr,rbrack:RUr,rbrke:IUr,rbrksld:PUr,rbrkslu:DUr,Rcaron:kUr,rcaron:LUr,Rcedil:_Ur,rcedil:NUr,rceil:FUr,rcub:WUr,Rcy:qUr,rcy:BUr,rdca:jUr,rdldhar:HUr,rdquo:VUr,rdquor:GUr,rdsh:$Ur,real:UUr,realine:XUr,realpart:YUr,reals:KUr,Re:QUr,rect:ZUr,reg:JUr,REG:eXr,ReverseElement:tXr,ReverseEquilibrium:nXr,ReverseUpEquilibrium:rXr,rfisht:iXr,rfloor:oXr,rfr:aXr,Rfr:sXr,rHar:lXr,rhard:cXr,rharu:uXr,rharul:dXr,Rho:pXr,rho:hXr,rhov:fXr,RightAngleBracket:gXr,RightArrowBar:mXr,rightarrow:vXr,RightArrow:bXr,Rightarrow:yXr,RightArrowLeftArrow:MXr,rightarrowtail:CXr,RightCeiling:xXr,RightDoubleBracket:wXr,RightDownTeeVector:SXr,RightDownVectorBar:AXr,RightDownVector:OXr,RightFloor:zXr,rightharpoondown:TXr,rightharpoonup:EXr,rightleftarrows:RXr,rightleftharpoons:IXr,rightrightarrows:PXr,rightsquigarrow:DXr,RightTeeArrow:kXr,RightTee:LXr,RightTeeVector:_Xr,rightthreetimes:NXr,RightTriangleBar:FXr,RightTriangle:WXr,RightTriangleEqual:qXr,RightUpDownVector:BXr,RightUpTeeVector:jXr,RightUpVectorBar:HXr,RightUpVector:VXr,RightVectorBar:GXr,RightVector:$Xr,ring:UXr,risingdotseq:XXr,rlarr:YXr,rlhar:KXr,rlm:QXr,rmoustache:ZXr,rmoust:JXr,rnmid:eYr,roang:tYr,roarr:nYr,robrk:rYr,ropar:iYr,ropf:oYr,Ropf:aYr,roplus:sYr,rotimes:lYr,RoundImplies:cYr,rpar:uYr,rpargt:dYr,rppolint:pYr,rrarr:hYr,Rrightarrow:fYr,rsaquo:gYr,rscr:mYr,Rscr:vYr,rsh:bYr,Rsh:yYr,rsqb:MYr,rsquo:CYr,rsquor:xYr,rthree:wYr,rtimes:SYr,rtri:AYr,rtrie:OYr,rtrif:zYr,rtriltri:TYr,RuleDelayed:EYr,ruluhar:RYr,rx:IYr,Sacute:PYr,sacute:DYr,sbquo:kYr,scap:LYr,Scaron:_Yr,scaron:NYr,Sc:FYr,sc:WYr,sccue:qYr,sce:BYr,scE:jYr,Scedil:HYr,scedil:VYr,Scirc:GYr,scirc:$Yr,scnap:UYr,scnE:XYr,scnsim:YYr,scpolint:KYr,scsim:QYr,Scy:ZYr,scy:JYr,sdotb:eKr,sdot:tKr,sdote:nKr,searhk:rKr,searr:iKr,seArr:oKr,searrow:aKr,sect:sKr,semi:lKr,seswar:cKr,setminus:uKr,setmn:dKr,sext:pKr,Sfr:hKr,sfr:fKr,sfrown:gKr,sharp:mKr,SHCHcy:vKr,shchcy:bKr,SHcy:yKr,shcy:MKr,ShortDownArrow:CKr,ShortLeftArrow:xKr,shortmid:wKr,shortparallel:SKr,ShortRightArrow:AKr,ShortUpArrow:OKr,shy:zKr,Sigma:TKr,sigma:EKr,sigmaf:RKr,sigmav:IKr,sim:PKr,simdot:DKr,sime:kKr,simeq:LKr,simg:_Kr,simgE:NKr,siml:FKr,simlE:WKr,simne:qKr,simplus:BKr,simrarr:jKr,slarr:HKr,SmallCircle:VKr,smallsetminus:GKr,smashp:$Kr,smeparsl:UKr,smid:XKr,smile:YKr,smt:KKr,smte:QKr,smtes:ZKr,SOFTcy:JKr,softcy:eQr,solbar:tQr,solb:nQr,sol:rQr,Sopf:iQr,sopf:oQr,spades:aQr,spadesuit:sQr,spar:lQr,sqcap:cQr,sqcaps:uQr,sqcup:dQr,sqcups:pQr,Sqrt:hQr,sqsub:fQr,sqsube:gQr,sqsubset:mQr,sqsubseteq:vQr,sqsup:bQr,sqsupe:yQr,sqsupset:MQr,sqsupseteq:CQr,square:xQr,Square:wQr,SquareIntersection:SQr,SquareSubset:AQr,SquareSubsetEqual:OQr,SquareSuperset:zQr,SquareSupersetEqual:TQr,SquareUnion:EQr,squarf:RQr,squ:IQr,squf:PQr,srarr:DQr,Sscr:kQr,sscr:LQr,ssetmn:_Qr,ssmile:NQr,sstarf:FQr,Star:WQr,star:qQr,starf:BQr,straightepsilon:jQr,straightphi:HQr,strns:VQr,sub:GQr,Sub:$Qr,subdot:UQr,subE:XQr,sube:YQr,subedot:KQr,submult:QQr,subnE:ZQr,subne:JQr,subplus:eZr,subrarr:tZr,subset:nZr,Subset:rZr,subseteq:iZr,subseteqq:oZr,SubsetEqual:aZr,subsetneq:sZr,subsetneqq:lZr,subsim:cZr,subsub:uZr,subsup:dZr,succapprox:pZr,succ:hZr,succcurlyeq:fZr,Succeeds:gZr,SucceedsEqual:mZr,SucceedsSlantEqual:vZr,SucceedsTilde:bZr,succeq:yZr,succnapprox:MZr,succneqq:CZr,succnsim:xZr,succsim:wZr,SuchThat:SZr,sum:AZr,Sum:OZr,sung:zZr,sup1:TZr,sup2:EZr,sup3:RZr,sup:IZr,Sup:PZr,supdot:DZr,supdsub:kZr,supE:LZr,supe:_Zr,supedot:NZr,Superset:FZr,SupersetEqual:WZr,suphsol:qZr,suphsub:BZr,suplarr:jZr,supmult:HZr,supnE:VZr,supne:GZr,supplus:$Zr,supset:UZr,Supset:XZr,supseteq:YZr,supseteqq:KZr,supsetneq:QZr,supsetneqq:ZZr,supsim:JZr,supsub:eJr,supsup:tJr,swarhk:nJr,swarr:rJr,swArr:iJr,swarrow:oJr,swnwar:aJr,szlig:sJr,Tab:lJr,target:cJr,Tau:uJr,tau:dJr,tbrk:pJr,Tcaron:hJr,tcaron:fJr,Tcedil:gJr,tcedil:mJr,Tcy:vJr,tcy:bJr,tdot:yJr,telrec:MJr,Tfr:CJr,tfr:xJr,there4:wJr,therefore:SJr,Therefore:AJr,Theta:OJr,theta:zJr,thetasym:TJr,thetav:EJr,thickapprox:RJr,thicksim:IJr,ThickSpace:PJr,ThinSpace:DJr,thinsp:kJr,thkap:LJr,thksim:_Jr,THORN:NJr,thorn:FJr,tilde:WJr,Tilde:qJr,TildeEqual:BJr,TildeFullEqual:jJr,TildeTilde:HJr,timesbar:VJr,timesb:GJr,times:$Jr,timesd:UJr,tint:XJr,toea:YJr,topbot:KJr,topcir:QJr,top:ZJr,Topf:JJr,topf:eei,topfork:tei,tosa:nei,tprime:rei,trade:iei,TRADE:oei,triangle:aei,triangledown:sei,triangleleft:lei,trianglelefteq:cei,triangleq:uei,triangleright:dei,trianglerighteq:pei,tridot:hei,trie:fei,triminus:gei,TripleDot:mei,triplus:vei,trisb:bei,tritime:yei,trpezium:Mei,Tscr:Cei,tscr:xei,TScy:wei,tscy:Sei,TSHcy:Aei,tshcy:Oei,Tstrok:zei,tstrok:Tei,twixt:Eei,twoheadleftarrow:Rei,twoheadrightarrow:Iei,Uacute:Pei,uacute:Dei,uarr:kei,Uarr:Lei,uArr:_ei,Uarrocir:Nei,Ubrcy:Fei,ubrcy:Wei,Ubreve:qei,ubreve:Bei,Ucirc:jei,ucirc:Hei,Ucy:Vei,ucy:Gei,udarr:$ei,Udblac:Uei,udblac:Xei,udhar:Yei,ufisht:Kei,Ufr:Qei,ufr:Zei,Ugrave:Jei,ugrave:eti,uHar:tti,uharl:nti,uharr:rti,uhblk:iti,ulcorn:oti,ulcorner:ati,ulcrop:sti,ultri:lti,Umacr:cti,umacr:uti,uml:dti,UnderBar:pti,UnderBrace:hti,UnderBracket:fti,UnderParenthesis:gti,Union:mti,UnionPlus:vti,Uogon:bti,uogon:yti,Uopf:Mti,uopf:Cti,UpArrowBar:xti,uparrow:wti,UpArrow:Sti,Uparrow:Ati,UpArrowDownArrow:Oti,updownarrow:zti,UpDownArrow:Tti,Updownarrow:Eti,UpEquilibrium:Rti,upharpoonleft:Iti,upharpoonright:Pti,uplus:Dti,UpperLeftArrow:kti,UpperRightArrow:Lti,upsi:_ti,Upsi:Nti,upsih:Fti,Upsilon:Wti,upsilon:qti,UpTeeArrow:Bti,UpTee:jti,upuparrows:Hti,urcorn:Vti,urcorner:Gti,urcrop:$ti,Uring:Uti,uring:Xti,urtri:Yti,Uscr:Kti,uscr:Qti,utdot:Zti,Utilde:Jti,utilde:eni,utri:tni,utrif:nni,uuarr:rni,Uuml:ini,uuml:oni,uwangle:ani,vangrt:sni,varepsilon:lni,varkappa:cni,varnothing:uni,varphi:dni,varpi:pni,varpropto:hni,varr:fni,vArr:gni,varrho:mni,varsigma:vni,varsubsetneq:bni,varsubsetneqq:yni,varsupsetneq:Mni,varsupsetneqq:Cni,vartheta:xni,vartriangleleft:wni,vartriangleright:Sni,vBar:Ani,Vbar:Oni,vBarv:zni,Vcy:Tni,vcy:Eni,vdash:Rni,vDash:Ini,Vdash:Pni,VDash:Dni,Vdashl:kni,veebar:Lni,vee:_ni,Vee:Nni,veeeq:Fni,vellip:Wni,verbar:qni,Verbar:Bni,vert:jni,Vert:Hni,VerticalBar:Vni,VerticalLine:Gni,VerticalSeparator:$ni,VerticalTilde:Uni,VeryThinSpace:Xni,Vfr:Yni,vfr:Kni,vltri:Qni,vnsub:Zni,vnsup:Jni,Vopf:eri,vopf:tri,vprop:nri,vrtri:rri,Vscr:iri,vscr:ori,vsubnE:ari,vsubne:sri,vsupnE:lri,vsupne:cri,Vvdash:uri,vzigzag:dri,Wcirc:pri,wcirc:hri,wedbar:fri,wedge:gri,Wedge:mri,wedgeq:vri,weierp:bri,Wfr:yri,wfr:Mri,Wopf:Cri,wopf:xri,wp:wri,wr:Sri,wreath:Ari,Wscr:Ori,wscr:zri,xcap:Tri,xcirc:Eri,xcup:Rri,xdtri:Iri,Xfr:Pri,xfr:Dri,xharr:kri,xhArr:Lri,Xi:_ri,xi:Nri,xlarr:Fri,xlArr:Wri,xmap:qri,xnis:Bri,xodot:jri,Xopf:Hri,xopf:Vri,xoplus:Gri,xotime:$ri,xrarr:Uri,xrArr:Xri,Xscr:Yri,xscr:Kri,xsqcup:Qri,xuplus:Zri,xutri:Jri,xvee:eii,xwedge:tii,Yacute:nii,yacute:rii,YAcy:iii,yacy:oii,Ycirc:aii,ycirc:sii,Ycy:lii,ycy:cii,yen:uii,Yfr:dii,yfr:pii,YIcy:hii,yicy:fii,Yopf:gii,yopf:mii,Yscr:vii,yscr:bii,YUcy:yii,yucy:Mii,yuml:Cii,Yuml:xii,Zacute:wii,zacute:Sii,Zcaron:Aii,zcaron:Oii,Zcy:zii,zcy:Tii,Zdot:Eii,zdot:Rii,zeetrf:Iii,ZeroWidthSpace:Pii,Zeta:Dii,zeta:kii,zfr:Lii,Zfr:_ii,ZHcy:Nii,zhcy:Fii,zigrarr:Wii,zopf:qii,Zopf:Bii,Zscr:jii,zscr:Hii,zwj:Vii,zwnj:Gii};var Ale,RVe;function GCt(){return RVe||(RVe=1,Ale=$ii),Ale}var Ole,IVe;function IOe(){return IVe||(IVe=1,Ole=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Ole}var rR={},zle,PVe;function Uii(){if(PVe)return zle;PVe=1;var e={};function t(r){var i,o,a=e[r];if(a)return a;for(a=e[r]=[],i=0;i<128;i++)o=String.fromCharCode(i),/^[0-9a-z]$/i.test(o)?a.push(o):a.push("%"+("0"+i.toString(16).toUpperCase()).slice(-2));for(i=0;i<r.length;i++)a[r.charCodeAt(i)]=r[i];return a}function n(r,i,o){var a,s,l,c,u,d="";for(typeof i!="string"&&(o=i,i=n.defaultChars),typeof o>"u"&&(o=!0),u=t(i),a=0,s=r.length;a<s;a++){if(l=r.charCodeAt(a),o&&l===37&&a+2<s&&/^[0-9a-f]{2}$/i.test(r.slice(a+1,a+3))){d+=r.slice(a,a+3),a+=2;continue}if(l<128){d+=u[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&a+1<s&&(c=r.charCodeAt(a+1),c>=56320&&c<=57343)){d+=encodeURIComponent(r[a]+r[a+1]),a++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(r[a])}return d}return n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",zle=n,zle}var Tle,DVe;function Xii(){if(DVe)return Tle;DVe=1;var e={};function t(r){var i,o,a=e[r];if(a)return a;for(a=e[r]=[],i=0;i<128;i++)o=String.fromCharCode(i),a.push(o);for(i=0;i<r.length;i++)o=r.charCodeAt(i),a[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2);return a}function n(r,i){var o;return typeof i!="string"&&(i=n.defaultChars),o=t(i),r.replace(/(%[a-f0-9]{2})+/gi,function(a){var s,l,c,u,d,p,h,g="";for(s=0,l=a.length;s<l;s+=3){if(c=parseInt(a.slice(s+1,s+3),16),c<128){g+=o[c];continue}if((c&224)===192&&s+3<l&&(u=parseInt(a.slice(s+4,s+6),16),(u&192)===128)){h=c<<6&1984|u&63,h<128?g+="��":g+=String.fromCharCode(h),s+=3;continue}if((c&240)===224&&s+6<l&&(u=parseInt(a.slice(s+4,s+6),16),d=parseInt(a.slice(s+7,s+9),16),(u&192)===128&&(d&192)===128)){h=c<<12&61440|u<<6&4032|d&63,h<2048||h>=55296&&h<=57343?g+="���":g+=String.fromCharCode(h),s+=6;continue}if((c&248)===240&&s+9<l&&(u=parseInt(a.slice(s+4,s+6),16),d=parseInt(a.slice(s+7,s+9),16),p=parseInt(a.slice(s+10,s+12),16),(u&192)===128&&(d&192)===128&&(p&192)===128)){h=c<<18&1835008|u<<12&258048|d<<6&4032|p&63,h<65536||h>1114111?g+="����":(h-=65536,g+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),s+=9;continue}g+="�"}return g})}return n.defaultChars=";/?:@&=+$,#",n.componentChars="",Tle=n,Tle}var Ele,kVe;function Yii(){return kVe||(kVe=1,Ele=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n}),Ele}var Rle,LVe;function Kii(){if(LVe)return Rle;LVe=1;function e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var t=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["<",">",'"',"`"," ","\r",`
`,"	"],o=["{","}","|","\\","^","`"].concat(i),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),l=["/","?","#"],c=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function g(m,v){if(m&&m instanceof e)return m;var y=new e;return y.parse(m,v),y}return e.prototype.parse=function(m,v){var y,M,C,x,w,S=m;if(S=S.trim(),!v&&m.split("#").length===1){var A=r.exec(S);if(A)return this.pathname=A[1],A[2]&&(this.search=A[2]),this}var z=t.exec(S);if(z&&(z=z[0],C=z.toLowerCase(),this.protocol=z,S=S.substr(z.length)),(v||z||S.match(/^\/\/[^@\/]+@[^@\/]+/))&&(w=S.substr(0,2)==="//",w&&!(z&&p[z])&&(S=S.substr(2),this.slashes=!0)),!p[z]&&(w||z&&!h[z])){var O=-1;for(y=0;y<l.length;y++)x=S.indexOf(l[y]),x!==-1&&(O===-1||x<O)&&(O=x);var T,I;for(O===-1?I=S.lastIndexOf("@"):I=S.lastIndexOf("@",O),I!==-1&&(T=S.slice(0,I),S=S.slice(I+1),this.auth=T),O=-1,y=0;y<s.length;y++)x=S.indexOf(s[y]),x!==-1&&(O===-1||x<O)&&(O=x);O===-1&&(O=S.length),S[O-1]===":"&&O--;var P=S.slice(0,O);S=S.slice(O),this.parseHost(P),this.hostname=this.hostname||"";var N=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!N){var F=this.hostname.split(/\./);for(y=0,M=F.length;y<M;y++){var L=F[y];if(L&&!L.match(u)){for(var W="",H=0,j=L.length;H<j;H++)L.charCodeAt(H)>127?W+="x":W+=L[H];if(!W.match(u)){var G=F.slice(0,y),q=F.slice(y+1),$=L.match(d);$&&(G.push($[1]),q.unshift($[2])),q.length&&(S=q.join(".")+S),this.hostname=G.join(".");break}}}}this.hostname.length>c&&(this.hostname=""),N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var U=S.indexOf("#");U!==-1&&(this.hash=S.substr(U),S=S.slice(0,U));var X=S.indexOf("?");return X!==-1&&(this.search=S.substr(X),S=S.slice(0,X)),S&&(this.pathname=S),h[C]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(m){var v=n.exec(m);v&&(v=v[0],v!==":"&&(this.port=v.substr(1)),m=m.substr(0,m.length-v.length)),m&&(this.hostname=m)},Rle=g,Rle}var _Ve;function $Ct(){return _Ve||(_Ve=1,rR.encode=Uii(),rR.decode=Xii(),rR.format=Yii(),rR.parse=Kii()),rR}var xA={},Ile,NVe;function UCt(){return NVe||(NVe=1,Ile=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Ile}var Ple,FVe;function XCt(){return FVe||(FVe=1,Ple=/[\0-\x1F\x7F-\x9F]/),Ple}var Dle,WVe;function Qii(){return WVe||(WVe=1,Dle=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Dle}var kle,qVe;function YCt(){return qVe||(qVe=1,kle=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),kle}var BVe;function Zii(){return BVe||(BVe=1,xA.Any=UCt(),xA.Cc=XCt(),xA.Cf=Qii(),xA.P=IOe(),xA.Z=YCt()),xA}var jVe;function Ja(){return jVe||(jVe=1,(function(e){function t(F){return Object.prototype.toString.call(F)}function n(F){return t(F)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(F,L){return r.call(F,L)}function o(F){var L=Array.prototype.slice.call(arguments,1);return L.forEach(function(W){if(W){if(typeof W!="object")throw new TypeError(W+"must be object");Object.keys(W).forEach(function(H){F[H]=W[H]})}}),F}function a(F,L,W){return[].concat(F.slice(0,L),W,F.slice(L+1))}function s(F){return!(F>=55296&&F<=57343||F>=64976&&F<=65007||(F&65535)===65535||(F&65535)===65534||F>=0&&F<=8||F===11||F>=14&&F<=31||F>=127&&F<=159||F>1114111)}function l(F){if(F>65535){F-=65536;var L=55296+(F>>10),W=56320+(F&1023);return String.fromCharCode(L,W)}return String.fromCharCode(F)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+u.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=GCt();function g(F,L){var W;return i(h,L)?h[L]:L.charCodeAt(0)===35&&p.test(L)&&(W=L[1].toLowerCase()==="x"?parseInt(L.slice(2),16):parseInt(L.slice(1),10),s(W))?l(W):F}function m(F){return F.indexOf("\\")<0?F:F.replace(c,"$1")}function v(F){return F.indexOf("\\")<0&&F.indexOf("&")<0?F:F.replace(d,function(L,W,H){return W||g(L,H)})}var y=/[&<>"]/,M=/[&<>"]/g,C={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function x(F){return C[F]}function w(F){return y.test(F)?F.replace(M,x):F}var S=/[.?*+^$[\]\\(){}|-]/g;function A(F){return F.replace(S,"\\$&")}function z(F){switch(F){case 9:case 32:return!0}return!1}function O(F){if(F>=8192&&F<=8202)return!0;switch(F){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var T=IOe();function I(F){return T.test(F)}function P(F){switch(F){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function N(F){return F=F.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(F=F.replace(/ẞ/g,"ß")),F.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=$Ct(),e.lib.ucmicro=Zii(),e.assign=o,e.isString=n,e.has=i,e.unescapeMd=m,e.unescapeAll=v,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=w,e.arrayReplaceAt=a,e.isSpace=z,e.isWhiteSpace=O,e.isMdAsciiPunct=P,e.isPunctChar=I,e.escapeRE=A,e.normalizeReference=N})(Sle)),Sle}var B_={},Lle,HVe;function Jii(){return HVe||(HVe=1,Lle=function(t,n,r){var i,o,a,s,l=-1,c=t.posMax,u=t.pos;for(t.pos=n+1,i=1;t.pos<c;){if(a=t.src.charCodeAt(t.pos),a===93&&(i--,i===0)){o=!0;break}if(s=t.pos,t.md.inline.skipToken(t),a===91){if(s===t.pos-1)i++;else if(r)return t.pos=u,-1}}return o&&(l=t.pos),t.pos=u,l}),Lle}var _le,VVe;function eoi(){if(VVe)return _le;VVe=1;var e=Ja().unescapeAll;return _le=function(n,r,i){var o,a,s=r,l={ok:!1,pos:0,lines:0,str:""};if(n.charCodeAt(s)===60){for(s++;s<i;){if(o=n.charCodeAt(s),o===10||o===60)return l;if(o===62)return l.pos=s+1,l.str=e(n.slice(r+1,s)),l.ok=!0,l;if(o===92&&s+1<i){s+=2;continue}s++}return l}for(a=0;s<i&&(o=n.charCodeAt(s),!(o===32||o<32||o===127));){if(o===92&&s+1<i){if(n.charCodeAt(s+1)===32)break;s+=2;continue}if(o===40&&(a++,a>32))return l;if(o===41){if(a===0)break;a--}s++}return r===s||a!==0||(l.str=e(n.slice(r,s)),l.pos=s,l.ok=!0),l},_le}var Nle,GVe;function toi(){if(GVe)return Nle;GVe=1;var e=Ja().unescapeAll;return Nle=function(n,r,i){var o,a,s=0,l=r,c={ok:!1,pos:0,lines:0,str:""};if(l>=i||(a=n.charCodeAt(l),a!==34&&a!==39&&a!==40))return c;for(l++,a===40&&(a=41);l<i;){if(o=n.charCodeAt(l),o===a)return c.pos=l+1,c.lines=s,c.str=e(n.slice(r+1,l)),c.ok=!0,c;if(o===40&&a===41)return c;o===10?s++:o===92&&l+1<i&&(l++,n.charCodeAt(l)===10&&s++),l++}return c},Nle}var $Ve;function noi(){return $Ve||($Ve=1,B_.parseLinkLabel=Jii(),B_.parseLinkDestination=eoi(),B_.parseLinkTitle=toi()),B_}var Fle,UVe;function roi(){if(UVe)return Fle;UVe=1;var e=Ja().assign,t=Ja().unescapeAll,n=Ja().escapeHtml,r={};r.code_inline=function(o,a,s,l,c){var u=o[a];return"<code"+c.renderAttrs(u)+">"+n(u.content)+"</code>"},r.code_block=function(o,a,s,l,c){var u=o[a];return"<pre"+c.renderAttrs(u)+"><code>"+n(o[a].content)+`</code></pre>
`},r.fence=function(o,a,s,l,c){var u=o[a],d=u.info?t(u.info).trim():"",p="",h="",g,m,v,y,M;return d&&(v=d.split(/(\s+)/g),p=v[0],h=v.slice(2).join("")),s.highlight?g=s.highlight(u.content,p,h)||n(u.content):g=n(u.content),g.indexOf("<pre")===0?g+`
`:d?(m=u.attrIndex("class"),y=u.attrs?u.attrs.slice():[],m<0?y.push(["class",s.langPrefix+p]):(y[m]=y[m].slice(),y[m][1]+=" "+s.langPrefix+p),M={attrs:y},"<pre><code"+c.renderAttrs(M)+">"+g+`</code></pre>
`):"<pre><code"+c.renderAttrs(u)+">"+g+`</code></pre>
`},r.image=function(o,a,s,l,c){var u=o[a];return u.attrs[u.attrIndex("alt")][1]=c.renderInlineAsText(u.children,s,l),c.renderToken(o,a,s)},r.hardbreak=function(o,a,s){return s.xhtmlOut?`<br />
`:`<br>
`},r.softbreak=function(o,a,s){return s.breaks?s.xhtmlOut?`<br />
`:`<br>
`:`
`},r.text=function(o,a){return n(o[a].content)},r.html_block=function(o,a){return o[a].content},r.html_inline=function(o,a){return o[a].content};function i(){this.rules=e({},r)}return i.prototype.renderAttrs=function(a){var s,l,c;if(!a.attrs)return"";for(c="",s=0,l=a.attrs.length;s<l;s++)c+=" "+n(a.attrs[s][0])+'="'+n(a.attrs[s][1])+'"';return c},i.prototype.renderToken=function(a,s,l){var c,u="",d=!1,p=a[s];return p.hidden?"":(p.block&&p.nesting!==-1&&s&&a[s-1].hidden&&(u+=`
`),u+=(p.nesting===-1?"</":"<")+p.tag,u+=this.renderAttrs(p),p.nesting===0&&l.xhtmlOut&&(u+=" /"),p.block&&(d=!0,p.nesting===1&&s+1<a.length&&(c=a[s+1],(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===p.tag)&&(d=!1))),u+=d?`>
`:">",u)},i.prototype.renderInline=function(o,a,s){for(var l,c="",u=this.rules,d=0,p=o.length;d<p;d++)l=o[d].type,typeof u[l]<"u"?c+=u[l](o,d,a,s,this):c+=this.renderToken(o,d,a);return c},i.prototype.renderInlineAsText=function(o,a,s){for(var l="",c=0,u=o.length;c<u;c++)o[c].type==="text"?l+=o[c].content:o[c].type==="image"?l+=this.renderInlineAsText(o[c].children,a,s):o[c].type==="softbreak"&&(l+=`
`);return l},i.prototype.render=function(o,a,s){var l,c,u,d="",p=this.rules;for(l=0,c=o.length;l<c;l++)u=o[l].type,u==="inline"?d+=this.renderInline(o[l].children,a,s):typeof p[u]<"u"?d+=p[u](o,l,a,s,this):d+=this.renderToken(o,l,a,s);return d},Fle=i,Fle}var Wle,XVe;function POe(){if(XVe)return Wle;XVe=1;function e(){this.__rules__=[],this.__cache__=null}return e.prototype.__find__=function(t){for(var n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===t)return n;return-1},e.prototype.__compile__=function(){var t=this,n=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(i){n.indexOf(i)<0&&n.push(i)})}),t.__cache__={},n.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(i){i.enabled&&(r&&i.alt.indexOf(r)<0||t.__cache__[r].push(i.fn))})})},e.prototype.at=function(t,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__[i].fn=n,this.__rules__[i].alt=o.alt||[],this.__cache__=null},e.prototype.before=function(t,n,r,i){var o=this.__find__(t),a=i||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:n,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},e.prototype.after=function(t,n,r,i){var o=this.__find__(t),a=i||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:n,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},e.prototype.push=function(t,n,r){var i=r||{};this.__rules__.push({name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},e.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(i){var o=this.__find__(i);if(o<0){if(n)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[o].enabled=!0,r.push(i)},this),this.__cache__=null,r},e.prototype.enableOnly=function(t,n){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,n)},e.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(i){var o=this.__find__(i);if(o<0){if(n)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[o].enabled=!1,r.push(i)},this),this.__cache__=null,r},e.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]},Wle=e,Wle}var qle,YVe;function ioi(){if(YVe)return qle;YVe=1;var e=/\r\n?|\n/g,t=/\0/g;return qle=function(r){var i;i=r.src.replace(e,`
`),i=i.replace(t,"�"),r.src=i},qle}var Ble,KVe;function ooi(){return KVe||(KVe=1,Ble=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}),Ble}var jle,QVe;function aoi(){return QVe||(QVe=1,jle=function(t){var n=t.tokens,r,i,o;for(i=0,o=n.length;i<o;i++)r=n[i],r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}),jle}var Hle,ZVe;function soi(){if(ZVe)return Hle;ZVe=1;var e=Ja().arrayReplaceAt;function t(r){return/^<a[>\s]/i.test(r)}function n(r){return/^<\/a\s*>/i.test(r)}return Hle=function(i){var o,a,s,l,c,u,d,p,h,g,m,v,y,M,C,x,w=i.tokens,S;if(i.md.options.linkify){for(a=0,s=w.length;a<s;a++)if(!(w[a].type!=="inline"||!i.md.linkify.pretest(w[a].content)))for(l=w[a].children,y=0,o=l.length-1;o>=0;o--){if(u=l[o],u.type==="link_close"){for(o--;l[o].level!==u.level&&l[o].type!=="link_open";)o--;continue}if(u.type==="html_inline"&&(t(u.content)&&y>0&&y--,n(u.content)&&y++),!(y>0)&&u.type==="text"&&i.md.linkify.test(u.content)){for(h=u.content,S=i.md.linkify.match(h),d=[],v=u.level,m=0,S.length>0&&S[0].index===0&&o>0&&l[o-1].type==="text_special"&&(S=S.slice(1)),p=0;p<S.length;p++)M=S[p].url,C=i.md.normalizeLink(M),i.md.validateLink(C)&&(x=S[p].text,S[p].schema?S[p].schema==="mailto:"&&!/^mailto:/i.test(x)?x=i.md.normalizeLinkText("mailto:"+x).replace(/^mailto:/,""):x=i.md.normalizeLinkText(x):x=i.md.normalizeLinkText("http://"+x).replace(/^http:\/\//,""),g=S[p].index,g>m&&(c=new i.Token("text","",0),c.content=h.slice(m,g),c.level=v,d.push(c)),c=new i.Token("link_open","a",1),c.attrs=[["href",C]],c.level=v++,c.markup="linkify",c.info="auto",d.push(c),c=new i.Token("text","",0),c.content=x,c.level=v,d.push(c),c=new i.Token("link_close","a",-1),c.level=--v,c.markup="linkify",c.info="auto",d.push(c),m=S[p].lastIndex);m<h.length&&(c=new i.Token("text","",0),c.content=h.slice(m),c.level=v,d.push(c)),w[a].children=l=e(l,o,d)}}}},Hle}var Vle,JVe;function loi(){if(JVe)return Vle;JVe=1;var e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,t=/\((c|tm|r)\)/i,n=/\((c|tm|r)\)/ig,r={c:"©",r:"®",tm:"™"};function i(s,l){return r[l.toLowerCase()]}function o(s){var l,c,u=0;for(l=s.length-1;l>=0;l--)c=s[l],c.type==="text"&&!u&&(c.content=c.content.replace(n,i)),c.type==="link_open"&&c.info==="auto"&&u--,c.type==="link_close"&&c.info==="auto"&&u++}function a(s){var l,c,u=0;for(l=s.length-1;l>=0;l--)c=s[l],c.type==="text"&&!u&&e.test(c.content)&&(c.content=c.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),c.type==="link_open"&&c.info==="auto"&&u--,c.type==="link_close"&&c.info==="auto"&&u++}return Vle=function(l){var c;if(l.md.options.typographer)for(c=l.tokens.length-1;c>=0;c--)l.tokens[c].type==="inline"&&(t.test(l.tokens[c].content)&&o(l.tokens[c].children),e.test(l.tokens[c].content)&&a(l.tokens[c].children))},Vle}var Gle,eGe;function coi(){if(eGe)return Gle;eGe=1;var e=Ja().isWhiteSpace,t=Ja().isPunctChar,n=Ja().isMdAsciiPunct,r=/['"]/,i=/['"]/g,o="’";function a(l,c,u){return l.slice(0,c)+u+l.slice(c+1)}function s(l,c){var u,d,p,h,g,m,v,y,M,C,x,w,S,A,z,O,T,I,P,N,F;for(P=[],u=0;u<l.length;u++){for(d=l[u],v=l[u].level,T=P.length-1;T>=0&&!(P[T].level<=v);T--);if(P.length=T+1,d.type==="text"){p=d.content,g=0,m=p.length;e:for(;g<m&&(i.lastIndex=g,h=i.exec(p),!!h);){if(z=O=!0,g=h.index+1,I=h[0]==="'",M=32,h.index-1>=0)M=p.charCodeAt(h.index-1);else for(T=u-1;T>=0&&!(l[T].type==="softbreak"||l[T].type==="hardbreak");T--)if(l[T].content){M=l[T].content.charCodeAt(l[T].content.length-1);break}if(C=32,g<m)C=p.charCodeAt(g);else for(T=u+1;T<l.length&&!(l[T].type==="softbreak"||l[T].type==="hardbreak");T++)if(l[T].content){C=l[T].content.charCodeAt(0);break}if(x=n(M)||t(String.fromCharCode(M)),w=n(C)||t(String.fromCharCode(C)),S=e(M),A=e(C),A?z=!1:w&&(S||x||(z=!1)),S?O=!1:x&&(A||w||(O=!1)),C===34&&h[0]==='"'&&M>=48&&M<=57&&(O=z=!1),z&&O&&(z=x,O=w),!z&&!O){I&&(d.content=a(d.content,h.index,o));continue}if(O){for(T=P.length-1;T>=0&&(y=P[T],!(P[T].level<v));T--)if(y.single===I&&P[T].level===v){y=P[T],I?(N=c.md.options.quotes[2],F=c.md.options.quotes[3]):(N=c.md.options.quotes[0],F=c.md.options.quotes[1]),d.content=a(d.content,h.index,F),l[y.token].content=a(l[y.token].content,y.pos,N),g+=F.length-1,y.token===u&&(g+=N.length-1),p=d.content,m=p.length,P.length=T;continue e}}z?P.push({token:u,pos:h.index,single:I,level:v}):O&&I&&(d.content=a(d.content,h.index,o))}}}}return Gle=function(c){var u;if(c.md.options.typographer)for(u=c.tokens.length-1;u>=0;u--)c.tokens[u].type!=="inline"||!r.test(c.tokens[u].content)||s(c.tokens[u].children,c)},Gle}var $le,tGe;function uoi(){return tGe||(tGe=1,$le=function(t){var n,r,i,o,a,s,l=t.tokens;for(n=0,r=l.length;n<r;n++)if(l[n].type==="inline"){for(i=l[n].children,a=i.length,o=0;o<a;o++)i[o].type==="text_special"&&(i[o].type="text");for(o=s=0;o<a;o++)i[o].type==="text"&&o+1<a&&i[o+1].type==="text"?i[o+1].content=i[o].content+i[o+1].content:(o!==s&&(i[s]=i[o]),s++);o!==s&&(i.length=s)}}),$le}var Ule,nGe;function DOe(){if(nGe)return Ule;nGe=1;function e(t,n,r){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}return e.prototype.attrIndex=function(n){var r,i,o;if(!this.attrs)return-1;for(r=this.attrs,i=0,o=r.length;i<o;i++)if(r[i][0]===n)return i;return-1},e.prototype.attrPush=function(n){this.attrs?this.attrs.push(n):this.attrs=[n]},e.prototype.attrSet=function(n,r){var i=this.attrIndex(n),o=[n,r];i<0?this.attrPush(o):this.attrs[i]=o},e.prototype.attrGet=function(n){var r=this.attrIndex(n),i=null;return r>=0&&(i=this.attrs[r][1]),i},e.prototype.attrJoin=function(n,r){var i=this.attrIndex(n);i<0?this.attrPush([n,r]):this.attrs[i][1]=this.attrs[i][1]+" "+r},Ule=e,Ule}var Xle,rGe;function doi(){if(rGe)return Xle;rGe=1;var e=DOe();function t(n,r,i){this.src=n,this.env=i,this.tokens=[],this.inlineMode=!1,this.md=r}return t.prototype.Token=e,Xle=t,Xle}var Yle,iGe;function poi(){if(iGe)return Yle;iGe=1;var e=POe(),t=[["normalize",ioi()],["block",ooi()],["inline",aoi()],["linkify",soi()],["replacements",loi()],["smartquotes",coi()],["text_join",uoi()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1])}return n.prototype.process=function(r){var i,o,a;for(a=this.ruler.getRules(""),i=0,o=a.length;i<o;i++)a[i](r)},n.prototype.State=doi(),Yle=n,Yle}var Kle,oGe;function hoi(){if(oGe)return Kle;oGe=1;var e=Ja().isSpace;function t(r,i){var o=r.bMarks[i]+r.tShift[i],a=r.eMarks[i];return r.src.slice(o,a)}function n(r){var i=[],o=0,a=r.length,s,l=!1,c=0,u="";for(s=r.charCodeAt(o);o<a;)s===124&&(l?(u+=r.substring(c,o-1),c=o):(i.push(u+r.substring(c,o)),u="",c=o+1)),l=s===92,o++,s=r.charCodeAt(o);return i.push(u+r.substring(c)),i}return Kle=function(i,o,a,s){var l,c,u,d,p,h,g,m,v,y,M,C,x,w,S,A,z,O;if(o+2>a||(h=o+1,i.sCount[h]<i.blkIndent)||i.sCount[h]-i.blkIndent>=4||(u=i.bMarks[h]+i.tShift[h],u>=i.eMarks[h])||(z=i.src.charCodeAt(u++),z!==124&&z!==45&&z!==58)||u>=i.eMarks[h]||(O=i.src.charCodeAt(u++),O!==124&&O!==45&&O!==58&&!e(O))||z===45&&e(O))return!1;for(;u<i.eMarks[h];){if(l=i.src.charCodeAt(u),l!==124&&l!==45&&l!==58&&!e(l))return!1;u++}for(c=t(i,o+1),g=c.split("|"),y=[],d=0;d<g.length;d++){if(M=g[d].trim(),!M){if(d===0||d===g.length-1)continue;return!1}if(!/^:?-+:?$/.test(M))return!1;M.charCodeAt(M.length-1)===58?y.push(M.charCodeAt(0)===58?"center":"right"):M.charCodeAt(0)===58?y.push("left"):y.push("")}if(c=t(i,o).trim(),c.indexOf("|")===-1||i.sCount[o]-i.blkIndent>=4||(g=n(c),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),m=g.length,m===0||m!==y.length))return!1;if(s)return!0;for(w=i.parentType,i.parentType="table",A=i.md.block.ruler.getRules("blockquote"),v=i.push("table_open","table",1),v.map=C=[o,0],v=i.push("thead_open","thead",1),v.map=[o,o+1],v=i.push("tr_open","tr",1),v.map=[o,o+1],d=0;d<g.length;d++)v=i.push("th_open","th",1),y[d]&&(v.attrs=[["style","text-align:"+y[d]]]),v=i.push("inline","",0),v.content=g[d].trim(),v.children=[],v=i.push("th_close","th",-1);for(v=i.push("tr_close","tr",-1),v=i.push("thead_close","thead",-1),h=o+2;h<a&&!(i.sCount[h]<i.blkIndent);h++){for(S=!1,d=0,p=A.length;d<p;d++)if(A[d](i,h,a,!0)){S=!0;break}if(S||(c=t(i,h).trim(),!c)||i.sCount[h]-i.blkIndent>=4)break;for(g=n(c),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),h===o+2&&(v=i.push("tbody_open","tbody",1),v.map=x=[o+2,0]),v=i.push("tr_open","tr",1),v.map=[h,h+1],d=0;d<m;d++)v=i.push("td_open","td",1),y[d]&&(v.attrs=[["style","text-align:"+y[d]]]),v=i.push("inline","",0),v.content=g[d]?g[d].trim():"",v.children=[],v=i.push("td_close","td",-1);v=i.push("tr_close","tr",-1)}return x&&(v=i.push("tbody_close","tbody",-1),x[1]=h),v=i.push("table_close","table",-1),C[1]=h,i.parentType=w,i.line=h,!0},Kle}var Qle,aGe;function foi(){return aGe||(aGe=1,Qle=function(t,n,r){var i,o,a;if(t.sCount[n]-t.blkIndent<4)return!1;for(o=i=n+1;i<r;){if(t.isEmpty(i)){i++;continue}if(t.sCount[i]-t.blkIndent>=4){i++,o=i;continue}break}return t.line=o,a=t.push("code_block","code",0),a.content=t.getLines(n,o,4+t.blkIndent,!1)+`
`,a.map=[n,t.line],!0}),Qle}var Zle,sGe;function goi(){return sGe||(sGe=1,Zle=function(t,n,r,i){var o,a,s,l,c,u,d,p=!1,h=t.bMarks[n]+t.tShift[n],g=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||h+3>g||(o=t.src.charCodeAt(h),o!==126&&o!==96)||(c=h,h=t.skipChars(h,o),a=h-c,a<3)||(d=t.src.slice(c,h),s=t.src.slice(h,g),o===96&&s.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(l=n;l++,!(l>=r||(h=c=t.bMarks[l]+t.tShift[l],g=t.eMarks[l],h<g&&t.sCount[l]<t.blkIndent));)if(t.src.charCodeAt(h)===o&&!(t.sCount[l]-t.blkIndent>=4)&&(h=t.skipChars(h,o),!(h-c<a)&&(h=t.skipSpaces(h),!(h<g)))){p=!0;break}return a=t.sCount[n],t.line=l+(p?1:0),u=t.push("fence","code",0),u.info=s,u.content=t.getLines(n+1,l,a,!0),u.markup=d,u.map=[n,t.line],!0}),Zle}var Jle,lGe;function moi(){if(lGe)return Jle;lGe=1;var e=Ja().isSpace;return Jle=function(n,r,i,o){var a,s,l,c,u,d,p,h,g,m,v,y,M,C,x,w,S,A,z,O,T=n.lineMax,I=n.bMarks[r]+n.tShift[r],P=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(I)!==62)return!1;if(o)return!0;for(m=[],v=[],C=[],x=[],A=n.md.block.ruler.getRules("blockquote"),M=n.parentType,n.parentType="blockquote",h=r;h<i&&(O=n.sCount[h]<n.blkIndent,I=n.bMarks[h]+n.tShift[h],P=n.eMarks[h],!(I>=P));h++){if(n.src.charCodeAt(I++)===62&&!O){for(c=n.sCount[h]+1,n.src.charCodeAt(I)===32?(I++,c++,a=!1,w=!0):n.src.charCodeAt(I)===9?(w=!0,(n.bsCount[h]+c)%4===3?(I++,c++,a=!1):a=!0):w=!1,g=c,m.push(n.bMarks[h]),n.bMarks[h]=I;I<P&&(s=n.src.charCodeAt(I),e(s));){s===9?g+=4-(g+n.bsCount[h]+(a?1:0))%4:g++;I++}d=I>=P,v.push(n.bsCount[h]),n.bsCount[h]=n.sCount[h]+1+(w?1:0),C.push(n.sCount[h]),n.sCount[h]=g-c,x.push(n.tShift[h]),n.tShift[h]=I-n.bMarks[h];continue}if(d)break;for(S=!1,l=0,u=A.length;l<u;l++)if(A[l](n,h,i,!0)){S=!0;break}if(S){n.lineMax=h,n.blkIndent!==0&&(m.push(n.bMarks[h]),v.push(n.bsCount[h]),x.push(n.tShift[h]),C.push(n.sCount[h]),n.sCount[h]-=n.blkIndent);break}m.push(n.bMarks[h]),v.push(n.bsCount[h]),x.push(n.tShift[h]),C.push(n.sCount[h]),n.sCount[h]=-1}for(y=n.blkIndent,n.blkIndent=0,z=n.push("blockquote_open","blockquote",1),z.markup=">",z.map=p=[r,0],n.md.block.tokenize(n,r,h),z=n.push("blockquote_close","blockquote",-1),z.markup=">",n.lineMax=T,n.parentType=M,p[1]=n.line,l=0;l<x.length;l++)n.bMarks[l+r]=m[l],n.tShift[l+r]=x[l],n.sCount[l+r]=C[l],n.bsCount[l+r]=v[l];return n.blkIndent=y,!0},Jle}var ece,cGe;function voi(){if(cGe)return ece;cGe=1;var e=Ja().isSpace;return ece=function(n,r,i,o){var a,s,l,c,u=n.bMarks[r]+n.tShift[r],d=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(a=n.src.charCodeAt(u++),a!==42&&a!==45&&a!==95))return!1;for(s=1;u<d;){if(l=n.src.charCodeAt(u++),l!==a&&!e(l))return!1;l===a&&s++}return s<3?!1:(o||(n.line=r+1,c=n.push("hr","hr",0),c.map=[r,n.line],c.markup=Array(s+1).join(String.fromCharCode(a))),!0)},ece}var tce,uGe;function boi(){if(uGe)return tce;uGe=1;var e=Ja().isSpace;function t(i,o){var a,s,l,c;return s=i.bMarks[o]+i.tShift[o],l=i.eMarks[o],a=i.src.charCodeAt(s++),a!==42&&a!==45&&a!==43||s<l&&(c=i.src.charCodeAt(s),!e(c))?-1:s}function n(i,o){var a,s=i.bMarks[o]+i.tShift[o],l=s,c=i.eMarks[o];if(l+1>=c||(a=i.src.charCodeAt(l++),a<48||a>57))return-1;for(;;){if(l>=c)return-1;if(a=i.src.charCodeAt(l++),a>=48&&a<=57){if(l-s>=10)return-1;continue}if(a===41||a===46)break;return-1}return l<c&&(a=i.src.charCodeAt(l),!e(a))?-1:l}function r(i,o){var a,s,l=i.level+2;for(a=o+2,s=i.tokens.length-2;a<s;a++)i.tokens[a].level===l&&i.tokens[a].type==="paragraph_open"&&(i.tokens[a+2].hidden=!0,i.tokens[a].hidden=!0,a+=2)}return tce=function(o,a,s,l){var c,u,d,p,h,g,m,v,y,M,C,x,w,S,A,z,O,T,I,P,N,F,L,W,H,j,G,q=a,$=!1,U=!0;if(o.sCount[q]-o.blkIndent>=4||o.listIndent>=0&&o.sCount[q]-o.listIndent>=4&&o.sCount[q]<o.blkIndent)return!1;if(l&&o.parentType==="paragraph"&&o.sCount[q]>=o.blkIndent&&($=!0),(F=n(o,q))>=0){if(m=!0,W=o.bMarks[q]+o.tShift[q],w=Number(o.src.slice(W,F-1)),$&&w!==1)return!1}else if((F=t(o,q))>=0)m=!1;else return!1;if($&&o.skipSpaces(F)>=o.eMarks[q])return!1;if(l)return!0;for(x=o.src.charCodeAt(F-1),C=o.tokens.length,m?(G=o.push("ordered_list_open","ol",1),w!==1&&(G.attrs=[["start",w]])):G=o.push("bullet_list_open","ul",1),G.map=M=[q,0],G.markup=String.fromCharCode(x),L=!1,j=o.md.block.ruler.getRules("list"),O=o.parentType,o.parentType="list";q<s;){for(N=F,S=o.eMarks[q],g=A=o.sCount[q]+F-(o.bMarks[q]+o.tShift[q]);N<S;){if(c=o.src.charCodeAt(N),c===9)A+=4-(A+o.bsCount[q])%4;else if(c===32)A++;else break;N++}if(u=N,u>=S?h=1:h=A-g,h>4&&(h=1),p=g+h,G=o.push("list_item_open","li",1),G.markup=String.fromCharCode(x),G.map=v=[q,0],m&&(G.info=o.src.slice(W,F-1)),P=o.tight,I=o.tShift[q],T=o.sCount[q],z=o.listIndent,o.listIndent=o.blkIndent,o.blkIndent=p,o.tight=!0,o.tShift[q]=u-o.bMarks[q],o.sCount[q]=A,u>=S&&o.isEmpty(q+1)?o.line=Math.min(o.line+2,s):o.md.block.tokenize(o,q,s,!0),(!o.tight||L)&&(U=!1),L=o.line-q>1&&o.isEmpty(o.line-1),o.blkIndent=o.listIndent,o.listIndent=z,o.tShift[q]=I,o.sCount[q]=T,o.tight=P,G=o.push("list_item_close","li",-1),G.markup=String.fromCharCode(x),q=o.line,v[1]=q,q>=s||o.sCount[q]<o.blkIndent||o.sCount[q]-o.blkIndent>=4)break;for(H=!1,d=0,y=j.length;d<y;d++)if(j[d](o,q,s,!0)){H=!0;break}if(H)break;if(m){if(F=n(o,q),F<0)break;W=o.bMarks[q]+o.tShift[q]}else if(F=t(o,q),F<0)break;if(x!==o.src.charCodeAt(F-1))break}return m?G=o.push("ordered_list_close","ol",-1):G=o.push("bullet_list_close","ul",-1),G.markup=String.fromCharCode(x),M[1]=q,o.line=q,o.parentType=O,U&&r(o,C),!0},tce}var nce,dGe;function yoi(){if(dGe)return nce;dGe=1;var e=Ja().normalizeReference,t=Ja().isSpace;return nce=function(r,i,o,a){var s,l,c,u,d,p,h,g,m,v,y,M,C,x,w,S,A=0,z=r.bMarks[i]+r.tShift[i],O=r.eMarks[i],T=i+1;if(r.sCount[i]-r.blkIndent>=4||r.src.charCodeAt(z)!==91)return!1;for(;++z<O;)if(r.src.charCodeAt(z)===93&&r.src.charCodeAt(z-1)!==92){if(z+1===O||r.src.charCodeAt(z+1)!==58)return!1;break}for(u=r.lineMax,w=r.md.block.ruler.getRules("reference"),v=r.parentType,r.parentType="reference";T<u&&!r.isEmpty(T);T++)if(!(r.sCount[T]-r.blkIndent>3)&&!(r.sCount[T]<0)){for(x=!1,p=0,h=w.length;p<h;p++)if(w[p](r,T,u,!0)){x=!0;break}if(x)break}for(C=r.getLines(i,T,r.blkIndent,!1).trim(),O=C.length,z=1;z<O;z++){if(s=C.charCodeAt(z),s===91)return!1;if(s===93){m=z;break}else s===10?A++:s===92&&(z++,z<O&&C.charCodeAt(z)===10&&A++)}if(m<0||C.charCodeAt(m+1)!==58)return!1;for(z=m+2;z<O;z++)if(s=C.charCodeAt(z),s===10)A++;else if(!t(s))break;if(y=r.md.helpers.parseLinkDestination(C,z,O),!y.ok||(d=r.md.normalizeLink(y.str),!r.md.validateLink(d)))return!1;for(z=y.pos,A+=y.lines,l=z,c=A,M=z;z<O;z++)if(s=C.charCodeAt(z),s===10)A++;else if(!t(s))break;for(y=r.md.helpers.parseLinkTitle(C,z,O),z<O&&M!==z&&y.ok?(S=y.str,z=y.pos,A+=y.lines):(S="",z=l,A=c);z<O&&(s=C.charCodeAt(z),!!t(s));)z++;if(z<O&&C.charCodeAt(z)!==10&&S)for(S="",z=l,A=c;z<O&&(s=C.charCodeAt(z),!!t(s));)z++;return z<O&&C.charCodeAt(z)!==10||(g=e(C.slice(1,m)),!g)?!1:(a||(typeof r.env.references>"u"&&(r.env.references={}),typeof r.env.references[g]>"u"&&(r.env.references[g]={title:S,href:d}),r.parentType=v,r.line=i+A+1),!0)},nce}var rce,pGe;function Moi(){return pGe||(pGe=1,rce=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]),rce}var sG={},hGe;function KCt(){if(hGe)return sG;hGe=1;var e="[a-zA-Z_:][a-zA-Z0-9:._-]*",t="[^\"'=<>`\\x00-\\x20]+",n="'[^']*'",r='"[^"]*"',i="(?:"+t+"|"+n+"|"+r+")",o="(?:\\s+"+e+"(?:\\s*=\\s*"+i+")?)",a="<[A-Za-z][A-Za-z0-9\\-]*"+o+"*\\s*\\/?>",s="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",l="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",c="<[?][\\s\\S]*?[?]>",u="<![A-Z]+\\s+[^>]*>",d="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",p=new RegExp("^(?:"+a+"|"+s+"|"+l+"|"+c+"|"+u+"|"+d+")"),h=new RegExp("^(?:"+a+"|"+s+")");return sG.HTML_TAG_RE=p,sG.HTML_OPEN_CLOSE_TAG_RE=h,sG}var ice,fGe;function Coi(){if(fGe)return ice;fGe=1;var e=Moi(),t=KCt().HTML_OPEN_CLOSE_TAG_RE,n=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(t.source+"\\s*$"),/^$/,!1]];return ice=function(i,o,a,s){var l,c,u,d,p=i.bMarks[o]+i.tShift[o],h=i.eMarks[o];if(i.sCount[o]-i.blkIndent>=4||!i.md.options.html||i.src.charCodeAt(p)!==60)return!1;for(d=i.src.slice(p,h),l=0;l<n.length&&!n[l][0].test(d);l++);if(l===n.length)return!1;if(s)return n[l][2];if(c=o+1,!n[l][1].test(d)){for(;c<a&&!(i.sCount[c]<i.blkIndent);c++)if(p=i.bMarks[c]+i.tShift[c],h=i.eMarks[c],d=i.src.slice(p,h),n[l][1].test(d)){d.length!==0&&c++;break}}return i.line=c,u=i.push("html_block","",0),u.map=[o,c],u.content=i.getLines(o,c,i.blkIndent,!0),!0},ice}var oce,gGe;function xoi(){if(gGe)return oce;gGe=1;var e=Ja().isSpace;return oce=function(n,r,i,o){var a,s,l,c,u=n.bMarks[r]+n.tShift[r],d=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(a=n.src.charCodeAt(u),a!==35||u>=d))return!1;for(s=1,a=n.src.charCodeAt(++u);a===35&&u<d&&s<=6;)s++,a=n.src.charCodeAt(++u);return s>6||u<d&&!e(a)?!1:(o||(d=n.skipSpacesBack(d,u),l=n.skipCharsBack(d,35,u),l>u&&e(n.src.charCodeAt(l-1))&&(d=l),n.line=r+1,c=n.push("heading_open","h"+String(s),1),c.markup="########".slice(0,s),c.map=[r,n.line],c=n.push("inline","",0),c.content=n.src.slice(u,d).trim(),c.map=[r,n.line],c.children=[],c=n.push("heading_close","h"+String(s),-1),c.markup="########".slice(0,s)),!0)},oce}var ace,mGe;function woi(){return mGe||(mGe=1,ace=function(t,n,r){var i,o,a,s,l,c,u,d,p,h=n+1,g,m=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(g=t.parentType,t.parentType="paragraph";h<r&&!t.isEmpty(h);h++)if(!(t.sCount[h]-t.blkIndent>3)){if(t.sCount[h]>=t.blkIndent&&(c=t.bMarks[h]+t.tShift[h],u=t.eMarks[h],c<u&&(p=t.src.charCodeAt(c),(p===45||p===61)&&(c=t.skipChars(c,p),c=t.skipSpaces(c),c>=u)))){d=p===61?1:2;break}if(!(t.sCount[h]<0)){for(o=!1,a=0,s=m.length;a<s;a++)if(m[a](t,h,r,!0)){o=!0;break}if(o)break}}return d?(i=t.getLines(n,h,t.blkIndent,!1).trim(),t.line=h+1,l=t.push("heading_open","h"+String(d),1),l.markup=String.fromCharCode(p),l.map=[n,t.line],l=t.push("inline","",0),l.content=i,l.map=[n,t.line-1],l.children=[],l=t.push("heading_close","h"+String(d),-1),l.markup=String.fromCharCode(p),t.parentType=g,!0):!1}),ace}var sce,vGe;function Soi(){return vGe||(vGe=1,sce=function(t,n,r){var i,o,a,s,l,c,u=n+1,d=t.md.block.ruler.getRules("paragraph");for(c=t.parentType,t.parentType="paragraph";u<r&&!t.isEmpty(u);u++)if(!(t.sCount[u]-t.blkIndent>3)&&!(t.sCount[u]<0)){for(o=!1,a=0,s=d.length;a<s;a++)if(d[a](t,u,r,!0)){o=!0;break}if(o)break}return i=t.getLines(n,u,t.blkIndent,!1).trim(),t.line=u,l=t.push("paragraph_open","p",1),l.map=[n,t.line],l=t.push("inline","",0),l.content=i,l.map=[n,t.line],l.children=[],l=t.push("paragraph_close","p",-1),t.parentType=c,!0}),sce}var lce,bGe;function Aoi(){if(bGe)return lce;bGe=1;var e=DOe(),t=Ja().isSpace;function n(r,i,o,a){var s,l,c,u,d,p,h,g;for(this.src=r,this.md=i,this.env=o,this.tokens=a,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",l=this.src,g=!1,c=u=p=h=0,d=l.length;u<d;u++){if(s=l.charCodeAt(u),!g)if(t(s)){p++,s===9?h+=4-h%4:h++;continue}else g=!0;(s===10||u===d-1)&&(s!==10&&u++,this.bMarks.push(c),this.eMarks.push(u),this.tShift.push(p),this.sCount.push(h),this.bsCount.push(0),g=!1,p=0,h=0,c=u+1)}this.bMarks.push(l.length),this.eMarks.push(l.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}return n.prototype.push=function(r,i,o){var a=new e(r,i,o);return a.block=!0,o<0&&this.level--,a.level=this.level,o>0&&this.level++,this.tokens.push(a),a},n.prototype.isEmpty=function(i){return this.bMarks[i]+this.tShift[i]>=this.eMarks[i]},n.prototype.skipEmptyLines=function(i){for(var o=this.lineMax;i<o&&!(this.bMarks[i]+this.tShift[i]<this.eMarks[i]);i++);return i},n.prototype.skipSpaces=function(i){for(var o,a=this.src.length;i<a&&(o=this.src.charCodeAt(i),!!t(o));i++);return i},n.prototype.skipSpacesBack=function(i,o){if(i<=o)return i;for(;i>o;)if(!t(this.src.charCodeAt(--i)))return i+1;return i},n.prototype.skipChars=function(i,o){for(var a=this.src.length;i<a&&this.src.charCodeAt(i)===o;i++);return i},n.prototype.skipCharsBack=function(i,o,a){if(i<=a)return i;for(;i>a;)if(o!==this.src.charCodeAt(--i))return i+1;return i},n.prototype.getLines=function(i,o,a,s){var l,c,u,d,p,h,g,m=i;if(i>=o)return"";for(h=new Array(o-i),l=0;m<o;m++,l++){for(c=0,g=d=this.bMarks[m],m+1<o||s?p=this.eMarks[m]+1:p=this.eMarks[m];d<p&&c<a;){if(u=this.src.charCodeAt(d),t(u))u===9?c+=4-(c+this.bsCount[m])%4:c++;else if(d-g<this.tShift[m])c++;else break;d++}c>a?h[l]=new Array(c-a+1).join(" ")+this.src.slice(d,p):h[l]=this.src.slice(d,p)}return h.join("")},n.prototype.Token=e,lce=n,lce}var cce,yGe;function Ooi(){if(yGe)return cce;yGe=1;var e=POe(),t=[["table",hoi(),["paragraph","reference"]],["code",foi()],["fence",goi(),["paragraph","reference","blockquote","list"]],["blockquote",moi(),["paragraph","reference","blockquote","list"]],["hr",voi(),["paragraph","reference","blockquote","list"]],["list",boi(),["paragraph","reference","blockquote"]],["reference",yoi()],["html_block",Coi(),["paragraph","reference","blockquote"]],["heading",xoi(),["paragraph","reference","blockquote"]],["lheading",woi()],["paragraph",Soi()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1],{alt:(t[r][2]||[]).slice()})}return n.prototype.tokenize=function(r,i,o){for(var a,s,l,c=this.ruler.getRules(""),u=c.length,d=i,p=!1,h=r.md.options.maxNesting;d<o&&(r.line=d=r.skipEmptyLines(d),!(d>=o||r.sCount[d]<r.blkIndent));){if(r.level>=h){r.line=o;break}for(l=r.line,s=0;s<u;s++)if(a=c[s](r,d,o,!1),a){if(l>=r.line)throw new Error("block rule didn't increment state.line");break}if(!a)throw new Error("none of the block rules matched");r.tight=!p,r.isEmpty(r.line-1)&&(p=!0),d=r.line,d<o&&r.isEmpty(d)&&(p=!0,d++,r.line=d)}},n.prototype.parse=function(r,i,o,a){var s;r&&(s=new this.State(r,i,o,a),this.tokenize(s,s.line,s.lineMax))},n.prototype.State=Aoi(),cce=n,cce}var uce,MGe;function zoi(){if(MGe)return uce;MGe=1;function e(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}return uce=function(n,r){for(var i=n.pos;i<n.posMax&&!e(n.src.charCodeAt(i));)i++;return i===n.pos?!1:(r||(n.pending+=n.src.slice(n.pos,i)),n.pos=i,!0)},uce}var dce,CGe;function Toi(){if(CGe)return dce;CGe=1;var e=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;return dce=function(n,r){var i,o,a,s,l,c,u,d;return!n.md.options.linkify||n.linkLevel>0||(i=n.pos,o=n.posMax,i+3>o)||n.src.charCodeAt(i)!==58||n.src.charCodeAt(i+1)!==47||n.src.charCodeAt(i+2)!==47||(a=n.pending.match(e),!a)||(s=a[1],l=n.md.linkify.matchAtStart(n.src.slice(i-s.length)),!l)||(c=l.url,c.length<=s.length)||(c=c.replace(/\*+$/,""),u=n.md.normalizeLink(c),!n.md.validateLink(u))?!1:(r||(n.pending=n.pending.slice(0,-s.length),d=n.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=n.push("text","",0),d.content=n.md.normalizeLinkText(c),d=n.push("link_close","a",-1),d.markup="linkify",d.info="auto"),n.pos+=c.length-s.length,!0)},dce}var pce,xGe;function Eoi(){if(xGe)return pce;xGe=1;var e=Ja().isSpace;return pce=function(n,r){var i,o,a,s=n.pos;if(n.src.charCodeAt(s)!==10)return!1;if(i=n.pending.length-1,o=n.posMax,!r)if(i>=0&&n.pending.charCodeAt(i)===32)if(i>=1&&n.pending.charCodeAt(i-1)===32){for(a=i-1;a>=1&&n.pending.charCodeAt(a-1)===32;)a--;n.pending=n.pending.slice(0,a),n.push("hardbreak","br",0)}else n.pending=n.pending.slice(0,-1),n.push("softbreak","br",0);else n.push("softbreak","br",0);for(s++;s<o&&e(n.src.charCodeAt(s));)s++;return n.pos=s,!0},pce}var hce,wGe;function Roi(){if(wGe)return hce;wGe=1;for(var e=Ja().isSpace,t=[],n=0;n<256;n++)t.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){t[r.charCodeAt(0)]=1}),hce=function(i,o){var a,s,l,c,u,d=i.pos,p=i.posMax;if(i.src.charCodeAt(d)!==92||(d++,d>=p))return!1;if(a=i.src.charCodeAt(d),a===10){for(o||i.push("hardbreak","br",0),d++;d<p&&(a=i.src.charCodeAt(d),!!e(a));)d++;return i.pos=d,!0}return c=i.src[d],a>=55296&&a<=56319&&d+1<p&&(s=i.src.charCodeAt(d+1),s>=56320&&s<=57343&&(c+=i.src[d+1],d++)),l="\\"+c,o||(u=i.push("text_special","",0),a<256&&t[a]!==0?u.content=c:u.content=l,u.markup=l,u.info="escape"),i.pos=d+1,!0},hce}var fce,SGe;function Ioi(){return SGe||(SGe=1,fce=function(t,n){var r,i,o,a,s,l,c,u,d=t.pos,p=t.src.charCodeAt(d);if(p!==96)return!1;for(r=d,d++,i=t.posMax;d<i&&t.src.charCodeAt(d)===96;)d++;if(o=t.src.slice(r,d),c=o.length,t.backticksScanned&&(t.backticks[c]||0)<=r)return n||(t.pending+=o),t.pos+=c,!0;for(l=d;(s=t.src.indexOf("`",l))!==-1;){for(l=s+1;l<i&&t.src.charCodeAt(l)===96;)l++;if(u=l-s,u===c)return n||(a=t.push("code_inline","code",0),a.markup=o,a.content=t.src.slice(d,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=l,!0;t.backticks[u]=s}return t.backticksScanned=!0,n||(t.pending+=o),t.pos+=c,!0}),fce}var lG={},AGe;function OGe(){if(AGe)return lG;AGe=1,lG.tokenize=function(n,r){var i,o,a,s,l,c=n.pos,u=n.src.charCodeAt(c);if(r||u!==126||(o=n.scanDelims(n.pos,!0),s=o.length,l=String.fromCharCode(u),s<2))return!1;for(s%2&&(a=n.push("text","",0),a.content=l,s--),i=0;i<s;i+=2)a=n.push("text","",0),a.content=l+l,n.delimiters.push({marker:u,length:0,token:n.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return n.pos+=o.length,!0};function e(t,n){var r,i,o,a,s,l=[],c=n.length;for(r=0;r<c;r++)o=n[r],o.marker===126&&o.end!==-1&&(a=n[o.end],s=t.tokens[o.token],s.type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",s=t.tokens[a.token],s.type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&l.push(a.token-1));for(;l.length;){for(r=l.pop(),i=r+1;i<t.tokens.length&&t.tokens[i].type==="s_close";)i++;i--,r!==i&&(s=t.tokens[i],t.tokens[i]=t.tokens[r],t.tokens[r]=s)}}return lG.postProcess=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(n,i[r].delimiters)},lG}var cG={},zGe;function TGe(){if(zGe)return cG;zGe=1,cG.tokenize=function(n,r){var i,o,a,s=n.pos,l=n.src.charCodeAt(s);if(r||l!==95&&l!==42)return!1;for(o=n.scanDelims(n.pos,l===42),i=0;i<o.length;i++)a=n.push("text","",0),a.content=String.fromCharCode(l),n.delimiters.push({marker:l,length:o.length,token:n.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return n.pos+=o.length,!0};function e(t,n){var r,i,o,a,s,l,c=n.length;for(r=c-1;r>=0;r--)i=n[r],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(o=n[i.end],l=r>0&&n[r-1].end===i.end+1&&n[r-1].marker===i.marker&&n[r-1].token===i.token-1&&n[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),a=t.tokens[i.token],a.type=l?"strong_open":"em_open",a.tag=l?"strong":"em",a.nesting=1,a.markup=l?s+s:s,a.content="",a=t.tokens[o.token],a.type=l?"strong_close":"em_close",a.tag=l?"strong":"em",a.nesting=-1,a.markup=l?s+s:s,a.content="",l&&(t.tokens[n[r-1].token].content="",t.tokens[n[i.end+1].token].content="",r--))}return cG.postProcess=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(n,i[r].delimiters)},cG}var gce,EGe;function Poi(){if(EGe)return gce;EGe=1;var e=Ja().normalizeReference,t=Ja().isSpace;return gce=function(r,i){var o,a,s,l,c,u,d,p,h,g="",m="",v=r.pos,y=r.posMax,M=r.pos,C=!0;if(r.src.charCodeAt(r.pos)!==91||(c=r.pos+1,l=r.md.helpers.parseLinkLabel(r,r.pos,!0),l<0))return!1;if(u=l+1,u<y&&r.src.charCodeAt(u)===40){for(C=!1,u++;u<y&&(a=r.src.charCodeAt(u),!(!t(a)&&a!==10));u++);if(u>=y)return!1;if(M=u,d=r.md.helpers.parseLinkDestination(r.src,u,r.posMax),d.ok){for(g=r.md.normalizeLink(d.str),r.md.validateLink(g)?u=d.pos:g="",M=u;u<y&&(a=r.src.charCodeAt(u),!(!t(a)&&a!==10));u++);if(d=r.md.helpers.parseLinkTitle(r.src,u,r.posMax),u<y&&M!==u&&d.ok)for(m=d.str,u=d.pos;u<y&&(a=r.src.charCodeAt(u),!(!t(a)&&a!==10));u++);}(u>=y||r.src.charCodeAt(u)!==41)&&(C=!0),u++}if(C){if(typeof r.env.references>"u")return!1;if(u<y&&r.src.charCodeAt(u)===91?(M=u+1,u=r.md.helpers.parseLinkLabel(r,u),u>=0?s=r.src.slice(M,u++):u=l+1):u=l+1,s||(s=r.src.slice(c,l)),p=r.env.references[e(s)],!p)return r.pos=v,!1;g=p.href,m=p.title}return i||(r.pos=c,r.posMax=l,h=r.push("link_open","a",1),h.attrs=o=[["href",g]],m&&o.push(["title",m]),r.linkLevel++,r.md.inline.tokenize(r),r.linkLevel--,h=r.push("link_close","a",-1)),r.pos=u,r.posMax=y,!0},gce}var mce,RGe;function Doi(){if(RGe)return mce;RGe=1;var e=Ja().normalizeReference,t=Ja().isSpace;return mce=function(r,i){var o,a,s,l,c,u,d,p,h,g,m,v,y,M="",C=r.pos,x=r.posMax;if(r.src.charCodeAt(r.pos)!==33||r.src.charCodeAt(r.pos+1)!==91||(u=r.pos+2,c=r.md.helpers.parseLinkLabel(r,r.pos+1,!1),c<0))return!1;if(d=c+1,d<x&&r.src.charCodeAt(d)===40){for(d++;d<x&&(a=r.src.charCodeAt(d),!(!t(a)&&a!==10));d++);if(d>=x)return!1;for(y=d,h=r.md.helpers.parseLinkDestination(r.src,d,r.posMax),h.ok&&(M=r.md.normalizeLink(h.str),r.md.validateLink(M)?d=h.pos:M=""),y=d;d<x&&(a=r.src.charCodeAt(d),!(!t(a)&&a!==10));d++);if(h=r.md.helpers.parseLinkTitle(r.src,d,r.posMax),d<x&&y!==d&&h.ok)for(g=h.str,d=h.pos;d<x&&(a=r.src.charCodeAt(d),!(!t(a)&&a!==10));d++);else g="";if(d>=x||r.src.charCodeAt(d)!==41)return r.pos=C,!1;d++}else{if(typeof r.env.references>"u")return!1;if(d<x&&r.src.charCodeAt(d)===91?(y=d+1,d=r.md.helpers.parseLinkLabel(r,d),d>=0?l=r.src.slice(y,d++):d=c+1):d=c+1,l||(l=r.src.slice(u,c)),p=r.env.references[e(l)],!p)return r.pos=C,!1;M=p.href,g=p.title}return i||(s=r.src.slice(u,c),r.md.inline.parse(s,r.md,r.env,v=[]),m=r.push("image","img",0),m.attrs=o=[["src",M],["alt",""]],m.children=v,m.content=s,g&&o.push(["title",g])),r.pos=d,r.posMax=x,!0},mce}var vce,IGe;function koi(){if(IGe)return vce;IGe=1;var e=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,t=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;return vce=function(r,i){var o,a,s,l,c,u,d=r.pos;if(r.src.charCodeAt(d)!==60)return!1;for(c=r.pos,u=r.posMax;;){if(++d>=u||(l=r.src.charCodeAt(d),l===60))return!1;if(l===62)break}return o=r.src.slice(c+1,d),t.test(o)?(a=r.md.normalizeLink(o),r.md.validateLink(a)?(i||(s=r.push("link_open","a",1),s.attrs=[["href",a]],s.markup="autolink",s.info="auto",s=r.push("text","",0),s.content=r.md.normalizeLinkText(o),s=r.push("link_close","a",-1),s.markup="autolink",s.info="auto"),r.pos+=o.length+2,!0):!1):e.test(o)?(a=r.md.normalizeLink("mailto:"+o),r.md.validateLink(a)?(i||(s=r.push("link_open","a",1),s.attrs=[["href",a]],s.markup="autolink",s.info="auto",s=r.push("text","",0),s.content=r.md.normalizeLinkText(o),s=r.push("link_close","a",-1),s.markup="autolink",s.info="auto"),r.pos+=o.length+2,!0):!1):!1},vce}var bce,PGe;function Loi(){if(PGe)return bce;PGe=1;var e=KCt().HTML_TAG_RE;function t(i){return/^<a[>\s]/i.test(i)}function n(i){return/^<\/a\s*>/i.test(i)}function r(i){var o=i|32;return o>=97&&o<=122}return bce=function(o,a){var s,l,c,u,d=o.pos;return!o.md.options.html||(c=o.posMax,o.src.charCodeAt(d)!==60||d+2>=c)||(s=o.src.charCodeAt(d+1),s!==33&&s!==63&&s!==47&&!r(s))||(l=o.src.slice(d).match(e),!l)?!1:(a||(u=o.push("html_inline","",0),u.content=l[0],t(u.content)&&o.linkLevel++,n(u.content)&&o.linkLevel--),o.pos+=l[0].length,!0)},bce}var yce,DGe;function _oi(){if(DGe)return yce;DGe=1;var e=GCt(),t=Ja().has,n=Ja().isValidEntityCode,r=Ja().fromCodePoint,i=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,o=/^&([a-z][a-z0-9]{1,31});/i;return yce=function(s,l){var c,u,d,p,h=s.pos,g=s.posMax;if(s.src.charCodeAt(h)!==38||h+1>=g)return!1;if(c=s.src.charCodeAt(h+1),c===35){if(d=s.src.slice(h).match(i),d)return l||(u=d[1][0].toLowerCase()==="x"?parseInt(d[1].slice(1),16):parseInt(d[1],10),p=s.push("text_special","",0),p.content=n(u)?r(u):r(65533),p.markup=d[0],p.info="entity"),s.pos+=d[0].length,!0}else if(d=s.src.slice(h).match(o),d&&t(e,d[1]))return l||(p=s.push("text_special","",0),p.content=e[d[1]],p.markup=d[0],p.info="entity"),s.pos+=d[0].length,!0;return!1},yce}var Mce,kGe;function Noi(){if(kGe)return Mce;kGe=1;function e(t){var n,r,i,o,a,s,l,c,u={},d=t.length;if(d){var p=0,h=-2,g=[];for(n=0;n<d;n++)if(i=t[n],g.push(0),(t[p].marker!==i.marker||h!==i.token-1)&&(p=n),h=i.token,i.length=i.length||0,!!i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),a=u[i.marker][(i.open?3:0)+i.length%3],r=p-g[p]-1,s=r;r>a;r-=g[r]+1)if(o=t[r],o.marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(l=!0),!l)){c=r>0&&!t[r-1].open?g[r-1]+1:0,g[n]=n-r+c,g[r]=c,i.open=!1,o.end=n,o.close=!1,s=-1,h=-2;break}s!==-1&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}return Mce=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(i[r].delimiters)},Mce}var Cce,LGe;function Foi(){return LGe||(LGe=1,Cce=function(t){var n,r,i=0,o=t.tokens,a=t.tokens.length;for(n=r=0;n<a;n++)o[n].nesting<0&&i--,o[n].level=i,o[n].nesting>0&&i++,o[n].type==="text"&&n+1<a&&o[n+1].type==="text"?o[n+1].content=o[n].content+o[n+1].content:(n!==r&&(o[r]=o[n]),r++);n!==r&&(o.length=r)}),Cce}var xce,_Ge;function Woi(){if(_Ge)return xce;_Ge=1;var e=DOe(),t=Ja().isWhiteSpace,n=Ja().isPunctChar,r=Ja().isMdAsciiPunct;function i(o,a,s,l){this.src=o,this.env=s,this.md=a,this.tokens=l,this.tokens_meta=Array(l.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}return i.prototype.pushPending=function(){var o=new e("text","",0);return o.content=this.pending,o.level=this.pendingLevel,this.tokens.push(o),this.pending="",o},i.prototype.push=function(o,a,s){this.pending&&this.pushPending();var l=new e(o,a,s),c=null;return s<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),l.level=this.level,s>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],c={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(c),l},i.prototype.scanDelims=function(o,a){var s=o,l,c,u,d,p,h,g,m,v,y=!0,M=!0,C=this.posMax,x=this.src.charCodeAt(o);for(l=o>0?this.src.charCodeAt(o-1):32;s<C&&this.src.charCodeAt(s)===x;)s++;return u=s-o,c=s<C?this.src.charCodeAt(s):32,g=r(l)||n(String.fromCharCode(l)),v=r(c)||n(String.fromCharCode(c)),h=t(l),m=t(c),m?y=!1:v&&(h||g||(y=!1)),h?M=!1:g&&(m||v||(M=!1)),a?(d=y,p=M):(d=y&&(!M||g),p=M&&(!y||v)),{can_open:d,can_close:p,length:u}},i.prototype.Token=e,xce=i,xce}var wce,NGe;function qoi(){if(NGe)return wce;NGe=1;var e=POe(),t=[["text",zoi()],["linkify",Toi()],["newline",Eoi()],["escape",Roi()],["backticks",Ioi()],["strikethrough",OGe().tokenize],["emphasis",TGe().tokenize],["link",Poi()],["image",Doi()],["autolink",koi()],["html_inline",Loi()],["entity",_oi()]],n=[["balance_pairs",Noi()],["strikethrough",OGe().postProcess],["emphasis",TGe().postProcess],["fragments_join",Foi()]];function r(){var i;for(this.ruler=new e,i=0;i<t.length;i++)this.ruler.push(t[i][0],t[i][1]);for(this.ruler2=new e,i=0;i<n.length;i++)this.ruler2.push(n[i][0],n[i][1])}return r.prototype.skipToken=function(i){var o,a,s=i.pos,l=this.ruler.getRules(""),c=l.length,u=i.md.options.maxNesting,d=i.cache;if(typeof d[s]<"u"){i.pos=d[s];return}if(i.level<u){for(a=0;a<c;a++)if(i.level++,o=l[a](i,!0),i.level--,o){if(s>=i.pos)throw new Error("inline rule didn't increment state.pos");break}}else i.pos=i.posMax;o||i.pos++,d[s]=i.pos},r.prototype.tokenize=function(i){for(var o,a,s,l=this.ruler.getRules(""),c=l.length,u=i.posMax,d=i.md.options.maxNesting;i.pos<u;){if(s=i.pos,i.level<d){for(a=0;a<c;a++)if(o=l[a](i,!1),o){if(s>=i.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(i.pos>=u)break;continue}i.pending+=i.src[i.pos++]}i.pending&&i.pushPending()},r.prototype.parse=function(i,o,a,s){var l,c,u,d=new this.State(i,o,a,s);for(this.tokenize(d),c=this.ruler2.getRules(""),u=c.length,l=0;l<u;l++)c[l](d)},r.prototype.State=Woi(),wce=r,wce}var Sce,FGe;function Boi(){return FGe||(FGe=1,Sce=function(e){var t={};e=e||{},t.src_Any=UCt().source,t.src_Cc=XCt().source,t.src_Z=YCt().source,t.src_P=IOe().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><｜]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Sce}var Ace,WGe;function joi(){if(WGe)return Ace;WGe=1;function e(C){var x=Array.prototype.slice.call(arguments,1);return x.forEach(function(w){w&&Object.keys(w).forEach(function(S){C[S]=w[S]})}),C}function t(C){return Object.prototype.toString.call(C)}function n(C){return t(C)==="[object String]"}function r(C){return t(C)==="[object Object]"}function i(C){return t(C)==="[object RegExp]"}function o(C){return t(C)==="[object Function]"}function a(C){return C.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function l(C){return Object.keys(C||{}).reduce(function(x,w){return x||s.hasOwnProperty(w)},!1)}var c={"http:":{validate:function(C,x,w){var S=C.slice(x);return w.re.http||(w.re.http=new RegExp("^\\/\\/"+w.re.src_auth+w.re.src_host_port_strict+w.re.src_path,"i")),w.re.http.test(S)?S.match(w.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(C,x,w){var S=C.slice(x);return w.re.no_http||(w.re.no_http=new RegExp("^"+w.re.src_auth+"(?:localhost|(?:(?:"+w.re.src_domain+")\\.)+"+w.re.src_domain_root+")"+w.re.src_port+w.re.src_host_terminator+w.re.src_path,"i")),w.re.no_http.test(S)?x>=3&&C[x-3]===":"||x>=3&&C[x-3]==="/"?0:S.match(w.re.no_http)[0].length:0}},"mailto:":{validate:function(C,x,w){var S=C.slice(x);return w.re.mailto||(w.re.mailto=new RegExp("^"+w.re.src_email_name+"@"+w.re.src_host_strict,"i")),w.re.mailto.test(S)?S.match(w.re.mailto)[0].length:0}}},u="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(C){C.__index__=-1,C.__text_cache__=""}function h(C){return function(x,w){var S=x.slice(w);return C.test(S)?S.match(C)[0].length:0}}function g(){return function(C,x){x.normalize(C)}}function m(C){var x=C.re=Boi()(C.__opts__),w=C.__tlds__.slice();C.onCompile(),C.__tlds_replaced__||w.push(u),w.push(x.src_xn),x.src_tlds=w.join("|");function S(T){return T.replace("%TLDS%",x.src_tlds)}x.email_fuzzy=RegExp(S(x.tpl_email_fuzzy),"i"),x.link_fuzzy=RegExp(S(x.tpl_link_fuzzy),"i"),x.link_no_ip_fuzzy=RegExp(S(x.tpl_link_no_ip_fuzzy),"i"),x.host_fuzzy_test=RegExp(S(x.tpl_host_fuzzy_test),"i");var A=[];C.__compiled__={};function z(T,I){throw new Error('(LinkifyIt) Invalid schema "'+T+'": '+I)}Object.keys(C.__schemas__).forEach(function(T){var I=C.__schemas__[T];if(I!==null){var P={validate:null,link:null};if(C.__compiled__[T]=P,r(I)){i(I.validate)?P.validate=h(I.validate):o(I.validate)?P.validate=I.validate:z(T,I),o(I.normalize)?P.normalize=I.normalize:I.normalize?z(T,I):P.normalize=g();return}if(n(I)){A.push(T);return}z(T,I)}}),A.forEach(function(T){C.__compiled__[C.__schemas__[T]]&&(C.__compiled__[T].validate=C.__compiled__[C.__schemas__[T]].validate,C.__compiled__[T].normalize=C.__compiled__[C.__schemas__[T]].normalize)}),C.__compiled__[""]={validate:null,normalize:g()};var O=Object.keys(C.__compiled__).filter(function(T){return T.length>0&&C.__compiled__[T]}).map(a).join("|");C.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+x.src_ZPCc+"))("+O+")","i"),C.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+x.src_ZPCc+"))("+O+")","ig"),C.re.schema_at_start=RegExp("^"+C.re.schema_search.source,"i"),C.re.pretest=RegExp("("+C.re.schema_test.source+")|("+C.re.host_fuzzy_test.source+")|@","i"),p(C)}function v(C,x){var w=C.__index__,S=C.__last_index__,A=C.__text_cache__.slice(w,S);this.schema=C.__schema__.toLowerCase(),this.index=w+x,this.lastIndex=S+x,this.raw=A,this.text=A,this.url=A}function y(C,x){var w=new v(C,x);return C.__compiled__[w.schema].normalize(w,C),w}function M(C,x){if(!(this instanceof M))return new M(C,x);x||l(C)&&(x=C,C={}),this.__opts__=e({},s,x),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},c,C),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},m(this)}return M.prototype.add=function(x,w){return this.__schemas__[x]=w,m(this),this},M.prototype.set=function(x){return this.__opts__=e(this.__opts__,x),this},M.prototype.test=function(x){if(this.__text_cache__=x,this.__index__=-1,!x.length)return!1;var w,S,A,z,O,T,I,P,N;if(this.re.schema_test.test(x)){for(I=this.re.schema_search,I.lastIndex=0;(w=I.exec(x))!==null;)if(z=this.testSchemaAt(x,w[2],I.lastIndex),z){this.__schema__=w[2],this.__index__=w.index+w[1].length,this.__last_index__=w.index+w[0].length+z;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(P=x.search(this.re.host_fuzzy_test),P>=0&&(this.__index__<0||P<this.__index__)&&(S=x.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(O=S.index+S[1].length,(this.__index__<0||O<this.__index__)&&(this.__schema__="",this.__index__=O,this.__last_index__=S.index+S[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(N=x.indexOf("@"),N>=0&&(A=x.match(this.re.email_fuzzy))!==null&&(O=A.index+A[1].length,T=A.index+A[0].length,(this.__index__<0||O<this.__index__||O===this.__index__&&T>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=O,this.__last_index__=T))),this.__index__>=0},M.prototype.pretest=function(x){return this.re.pretest.test(x)},M.prototype.testSchemaAt=function(x,w,S){return this.__compiled__[w.toLowerCase()]?this.__compiled__[w.toLowerCase()].validate(x,S,this):0},M.prototype.match=function(x){var w=0,S=[];this.__index__>=0&&this.__text_cache__===x&&(S.push(y(this,w)),w=this.__last_index__);for(var A=w?x.slice(w):x;this.test(A);)S.push(y(this,w)),A=A.slice(this.__last_index__),w+=this.__last_index__;return S.length?S:null},M.prototype.matchAtStart=function(x){if(this.__text_cache__=x,this.__index__=-1,!x.length)return null;var w=this.re.schema_at_start.exec(x);if(!w)return null;var S=this.testSchemaAt(x,w[2],w[0].length);return S?(this.__schema__=w[2],this.__index__=w.index+w[1].length,this.__last_index__=w.index+w[0].length+S,y(this,0)):null},M.prototype.tlds=function(x,w){return x=Array.isArray(x)?x:[x],w?(this.__tlds__=this.__tlds__.concat(x).sort().filter(function(S,A,z){return S!==z[A-1]}).reverse(),m(this),this):(this.__tlds__=x.slice(),this.__tlds_replaced__=!0,m(this),this)},M.prototype.normalize=function(x){x.schema||(x.url="http://"+x.url),x.schema==="mailto:"&&!/^mailto:/i.test(x.url)&&(x.url="mailto:"+x.url)},M.prototype.onCompile=function(){},Ace=M,Ace}const NI=2147483647,rb=36,kOe=1,Wq=26,Hoi=38,Voi=700,QCt=72,ZCt=128,JCt="-",Goi=/^xn--/,$oi=/[^\0-\x7F]/,Uoi=/[\x2E\u3002\uFF0E\uFF61]/g,Xoi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Oce=rb-kOe,ib=Math.floor,zce=String.fromCharCode;function WC(e){throw new RangeError(Xoi[e])}function Yoi(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function ext(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Uoi,".");const i=e.split("."),o=Yoi(i,t).join(".");return r+o}function LOe(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const txt=e=>String.fromCodePoint(...e),Koi=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:rb},qGe=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},nxt=function(e,t,n){let r=0;for(e=n?ib(e/Voi):e>>1,e+=ib(e/t);e>Oce*Wq>>1;r+=rb)e=ib(e/Oce);return ib(r+(Oce+1)*e/(e+Hoi))},_Oe=function(e){const t=[],n=e.length;let r=0,i=ZCt,o=QCt,a=e.lastIndexOf(JCt);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&WC("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=r;for(let u=1,d=rb;;d+=rb){s>=n&&WC("invalid-input");const p=Koi(e.charCodeAt(s++));p>=rb&&WC("invalid-input"),p>ib((NI-r)/u)&&WC("overflow"),r+=p*u;const h=d<=o?kOe:d>=o+Wq?Wq:d-o;if(p<h)break;const g=rb-h;u>ib(NI/g)&&WC("overflow"),u*=g}const c=t.length+1;o=nxt(r-l,c,l==0),ib(r/c)>NI-i&&WC("overflow"),i+=ib(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},NOe=function(e){const t=[];e=LOe(e);const n=e.length;let r=ZCt,i=0,o=QCt;for(const l of e)l<128&&t.push(zce(l));const a=t.length;let s=a;for(a&&t.push(JCt);s<n;){let l=NI;for(const u of e)u>=r&&u<l&&(l=u);const c=s+1;l-r>ib((NI-i)/c)&&WC("overflow"),i+=(l-r)*c,r=l;for(const u of e)if(u<r&&++i>NI&&WC("overflow"),u===r){let d=i;for(let p=rb;;p+=rb){const h=p<=o?kOe:p>=o+Wq?Wq:p-o;if(d<h)break;const g=d-h,m=rb-h;t.push(zce(qGe(h+g%m,0))),d=ib(g/m)}t.push(zce(qGe(d,0))),o=nxt(i,c,s===a),i=0,++s}++i,++r}return t.join("")},rxt=function(e){return ext(e,function(t){return Goi.test(t)?_Oe(t.slice(4).toLowerCase()):t})},ixt=function(e){return ext(e,function(t){return $oi.test(t)?"xn--"+NOe(t):t})},Qoi={version:"2.3.1",ucs2:{decode:LOe,encode:txt},decode:_Oe,encode:NOe,toASCII:ixt,toUnicode:rxt},Zoi=Object.freeze(Object.defineProperty({__proto__:null,decode:_Oe,default:Qoi,encode:NOe,toASCII:ixt,toUnicode:rxt,ucs2decode:LOe,ucs2encode:txt},Symbol.toStringTag,{value:"Module"})),Joi=oK(Zoi);var Tce,BGe;function eai(){return BGe||(BGe=1,Tce={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),Tce}var Ece,jGe;function tai(){return jGe||(jGe=1,Ece={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}),Ece}var Rce,HGe;function nai(){return HGe||(HGe=1,Rce={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}),Rce}var Ice,VGe;function rai(){if(VGe)return Ice;VGe=1;var e=Ja(),t=noi(),n=roi(),r=poi(),i=Ooi(),o=qoi(),a=joi(),s=$Ct(),l=Joi,c={default:eai(),zero:tai(),commonmark:nai()},u=/^(vbscript|javascript|file|data):/,d=/^data:image\/(gif|png|jpeg|webp);/;function p(y){var M=y.trim().toLowerCase();return u.test(M)?!!d.test(M):!0}var h=["http:","https:","mailto:"];function g(y){var M=s.parse(y,!0);if(M.hostname&&(!M.protocol||h.indexOf(M.protocol)>=0))try{M.hostname=l.toASCII(M.hostname)}catch{}return s.encode(s.format(M))}function m(y){var M=s.parse(y,!0);if(M.hostname&&(!M.protocol||h.indexOf(M.protocol)>=0))try{M.hostname=l.toUnicode(M.hostname)}catch{}return s.decode(s.format(M),s.decode.defaultChars+"%")}function v(y,M){if(!(this instanceof v))return new v(y,M);M||e.isString(y)||(M=y||{},y="default"),this.inline=new o,this.block=new i,this.core=new r,this.renderer=new n,this.linkify=new a,this.validateLink=p,this.normalizeLink=g,this.normalizeLinkText=m,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(y),M&&this.set(M)}return v.prototype.set=function(y){return e.assign(this.options,y),this},v.prototype.configure=function(y){var M=this,C;if(e.isString(y)&&(C=y,y=c[C],!y))throw new Error('Wrong `markdown-it` preset "'+C+'", check name');if(!y)throw new Error("Wrong `markdown-it` preset, can't be empty");return y.options&&M.set(y.options),y.components&&Object.keys(y.components).forEach(function(x){y.components[x].rules&&M[x].ruler.enableOnly(y.components[x].rules),y.components[x].rules2&&M[x].ruler2.enableOnly(y.components[x].rules2)}),this},v.prototype.enable=function(y,M){var C=[];Array.isArray(y)||(y=[y]),["core","block","inline"].forEach(function(w){C=C.concat(this[w].ruler.enable(y,!0))},this),C=C.concat(this.inline.ruler2.enable(y,!0));var x=y.filter(function(w){return C.indexOf(w)<0});if(x.length&&!M)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+x);return this},v.prototype.disable=function(y,M){var C=[];Array.isArray(y)||(y=[y]),["core","block","inline"].forEach(function(w){C=C.concat(this[w].ruler.disable(y,!0))},this),C=C.concat(this.inline.ruler2.disable(y,!0));var x=y.filter(function(w){return C.indexOf(w)<0});if(x.length&&!M)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+x);return this},v.prototype.use=function(y){var M=[this].concat(Array.prototype.slice.call(arguments,1));return y.apply(y,M),this},v.prototype.parse=function(y,M){if(typeof y!="string")throw new Error("Input data should be a String");var C=new this.core.State(y,this,M);return this.core.process(C),C.tokens},v.prototype.render=function(y,M){return M=M||{},this.renderer.render(this.parse(y,M),this.options,M)},v.prototype.parseInline=function(y,M){var C=new this.core.State(y,this,M);return C.inlineMode=!0,this.core.process(C),C.tokens},v.prototype.renderInline=function(y,M){return M=M||{},this.renderer.render(this.parseInline(y,M),this.options,M)},Ice=v,Ice}var Pce,GGe;function iai(){return GGe||(GGe=1,Pce=rai()),Pce}var oai=iai();const aai=qn(oai);var uG,sai=new Uint8Array(16);function lai(){if(!uG&&(uG=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!uG))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return uG(sai)}const cai=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function uai(e){return typeof e=="string"&&cai.test(e)}var ud=[];for(var Dce=0;Dce<256;++Dce)ud.push((Dce+256).toString(16).substr(1));function dai(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ud[e[t+0]]+ud[e[t+1]]+ud[e[t+2]]+ud[e[t+3]]+"-"+ud[e[t+4]]+ud[e[t+5]]+"-"+ud[e[t+6]]+ud[e[t+7]]+"-"+ud[e[t+8]]+ud[e[t+9]]+"-"+ud[e[t+10]]+ud[e[t+11]]+ud[e[t+12]]+ud[e[t+13]]+ud[e[t+14]]+ud[e[t+15]]).toLowerCase();if(!uai(n))throw TypeError("Stringified UUID is invalid");return n}function oxt(e,t,n){e=e||{};var r=e.random||(e.rng||lai)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,dai(r)}function Pc(e){return b.createElement("i",{className:"rmel-iconfont rmel-icon-"+e.type})}function pai(e){return b.createElement("div",{className:"rc-md-navigation "+(e.visible?"visible":"in-visible")},b.createElement("div",{className:"navigation-nav left"},b.createElement("div",{className:"button-wrap"},e.left)),b.createElement("div",{className:"navigation-nav right"},b.createElement("div",{className:"button-wrap"},e.right)))}function hai(e){return b.createElement("div",{className:"tool-bar",style:e.style},e.children)}var kce={exports:{}},$Ge;function fai(){return $Ge||($Ge=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,d||l,p),g=n?n+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,h=d.length,g=new Array(h);p<h;p++)g[p]=d[p].fn;return g},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,h,g){var m=n?n+c:c;if(!this._events[m])return!1;var v=this._events[m],y=arguments.length,M,C;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,d),!0;case 4:return v.fn.call(v.context,u,d,p),!0;case 5:return v.fn.call(v.context,u,d,p,h),!0;case 6:return v.fn.call(v.context,u,d,p,h,g),!0}for(C=1,M=new Array(y-1);C<y;C++)M[C-1]=arguments[C];v.fn.apply(v.context,M)}else{var x=v.length,w;for(C=0;C<x;C++)switch(v[C].once&&this.removeListener(c,v[C].fn,void 0,!0),y){case 1:v[C].fn.call(v[C].context);break;case 2:v[C].fn.call(v[C].context,u);break;case 3:v[C].fn.call(v[C].context,u,d);break;case 4:v[C].fn.call(v[C].context,u,d,p);break;default:if(!M)for(w=1,M=new Array(y-1);w<y;w++)M[w-1]=arguments[w];v[C].fn.apply(v[C].context,M)}}return!0},s.prototype.on=function(c,u,d){return o(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return o(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var h=n?n+c:c;if(!this._events[h])return this;if(!u)return a(this,h),this;var g=this._events[h];if(g.fn)g.fn===u&&(!p||g.once)&&(!d||g.context===d)&&a(this,h);else{for(var m=0,v=[],y=g.length;m<y;m++)(g[m].fn!==u||p&&!g[m].once||d&&g[m].context!==d)&&v.push(g[m]);v.length?this._events[h]=v.length===1?v[0]:v:a(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(kce)),kce.exports}var gai=fai(),axt=(function(e){pa(t,e);function t(){for(var n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=e.call.apply(e,[this].concat(i))||this,n.EVENT_CHANGE="a1",n.EVENT_FULL_SCREEN="a2",n.EVENT_VIEW_CHANGE="a3",n.EVENT_KEY_DOWN="a4",n.EVENT_EDITOR_KEY_DOWN="a5",n.EVENT_FOCUS="a5",n.EVENT_BLUR="a6",n.EVENT_SCROLL="a7",n.EVENT_LANG_CHANGE="b1",n}return t})(gai.EventEmitter),bx=new axt;const mai={clearTip:"Are you sure you want to clear all contents?",btnHeader:"Header",btnClear:"Clear",btnBold:"Bold",btnItalic:"Italic",btnUnderline:"Underline",btnStrikethrough:"Strikethrough",btnUnordered:"Unordered list",btnOrdered:"Ordered list",btnQuote:"Quote",btnLineBreak:"Line break",btnInlineCode:"Inline code",btnCode:"Code",btnTable:"Table",btnImage:"Image",btnLink:"Link",btnUndo:"Undo",btnRedo:"Redo",btnFullScreen:"Full screen",btnExitFullScreen:"Exit full screen",btnModeEditor:"Only display editor",btnModePreview:"Only display preview",btnModeAll:"Display both editor and preview",selectTabMap:"Actual input when typing a Tab key",tab:"Tab",spaces:"Spaces"},vai={clearTip:"您确定要清空所有内容吗？",btnHeader:"标题",btnClear:"清空",btnBold:"加粗",btnItalic:"斜体",btnUnderline:"下划线",btnStrikethrough:"删除线",btnUnordered:"无序列表",btnOrdered:"有序列表",btnQuote:"引用",btnLineBreak:"换行",btnInlineCode:"行内代码",btnCode:"代码块",btnTable:"表格",btnImage:"图片",btnLink:"链接",btnUndo:"撤销",btnRedo:"重做",btnFullScreen:"全屏",btnExitFullScreen:"退出全屏",btnModeEditor:"仅显示编辑器",btnModePreview:"仅显示预览",btnModeAll:"显示编辑器与预览",selectTabMap:"按下 Tab 键时实际的输入",tab:"制表符",spaces:"空格"};var bai=(function(){function e(){this.langs={enUS:mai,zhCN:vai},this.current="enUS",this.setUp()}var t=e.prototype;return t.setUp=function(){if(!(typeof window>"u")){var r="enUS";if(navigator.language){var i=navigator.language.split("-");r=i[0],i.length!==1&&(r+=i[i.length-1].toUpperCase())}if(navigator.browserLanguage){var o=navigator.browserLanguage.split("-");r=o[0],o[1]&&(r+=o[1].toUpperCase())}this.current!==r&&this.isAvailable(r)&&(this.current=r,bx.emit(bx.EVENT_LANG_CHANGE,this,r,this.langs[r]))}},t.isAvailable=function(r){return typeof this.langs[r]<"u"},t.add=function(r,i){this.langs[r]=i},t.setCurrent=function(r){if(!this.isAvailable(r))throw new Error("Language "+r+" is not exists");this.current!==r&&(this.current=r,bx.emit(bx.EVENT_LANG_CHANGE,this,r,this.langs[r]))},t.get=function(r,i){var o=this.langs[this.current][r]||"";return i&&Object.keys(i).forEach(function(a){o=o.replace(new RegExp("\\{"+a+"\\}","g"),i[a])}),o},t.getCurrent=function(){return this.current},e})(),bs=new bai,Hl=(function(e){pa(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getConfig=function(i,o){return typeof this.props.config[i]<"u"&&this.props.config[i]!==null?this.props.config[i]:o},so(t,[{key:"editor",get:function(){return this.props.editor}},{key:"editorConfig",get:function(){return this.props.editorConfig}}]),t})(b.Component);Hl.pluginName="";Hl.align="left";Hl.defaultConfig={};var ube=(function(e){pa(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){return b.createElement("span",{className:"rc-md-divider"})},t})(Hl);ube.pluginName="divider";var yai={start:0,end:0,text:""};function Mai(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Cai(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cai(e,t){if(e){if(typeof e=="string")return UGe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UGe(e,t)}}function UGe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FOe(e){return e&&(e instanceof Promise||(typeof e=="object"||typeof e=="function")&&typeof e.then=="function")}function xai(e,t){for(var n="",r=t;r--;)n+=e;return n}function wai(e,t){var n=t.withKey,r=t.keyCode,i=t.key,o=t.aliasCommand,a={ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,shiftKey:e.shiftKey,keyCode:e.keyCode,key:e.key};if(o&&(a.ctrlKey=a.ctrlKey||a.metaKey),n&&n.length>0)for(var s=Mai(n),l;!(l=s()).done;){var c=l.value;if(typeof a[c]<"u"&&!a[c])return!1}else if(a.metaKey||a.ctrlKey||a.shiftKey||a.altKey)return!1;return a.key?a.key===i:a.keyCode===r}function Lce(e,t){var n=e.split(`
`),r=e.substr(0,t).split(`
`),i=r.length,o=r[r.length-1].length,a=n[r.length-1],s=r.length>1?r[r.length-2]:null,l=n.length>r.length?n[r.length]:null;return{line:i,col:o,beforeText:e.substr(0,t),afterText:e.substr(t),curLine:a,prevLine:s,nextLine:l}}var AR={bold:["**","**"],italic:["*","*"],underline:["++","++"],strikethrough:["~~","~~"],quote:[`
> `,`
`],inlinecode:["`","`"],code:["\n```\n","\n```\n"]};for(var dG=1;dG<=6;dG++)AR["h"+dG]=[`
`+xai("#",dG)+" ",`
`];function Sai(e){for(var t=e.row,n=t===void 0?2:t,r=e.col,i=r===void 0?2:r,o=["|"],a=["|"],s=["|"],l="",c=1;c<=i;c++)o.push(" Head |"),s.push(" --- |"),a.push(" Data |");for(var u=1;u<=n;u++)l+=`
`+a.join("");return o.join("")+`
`+s.join("")+l}function XGe(e,t){var n=t;if(n.substr(0,1)!==`
`&&(n=`
`+n),e==="unordered")return n.length>1?n.replace(/\n/g,`
* `).trim():"* ";var r=1;return n.length>1?n.replace(/\n/g,function(){return`
`+r+++". "}).trim():"1. "}function _ce(e,t){return{text:e,newBlock:t,selection:{start:e.length,end:e.length}}}function dbe(e,t,n){if(typeof AR[t]<"u")return{text:""+AR[t][0]+e+AR[t][1],selection:{start:AR[t][0].length,end:AR[t][0].length+e.length}};switch(t){case"tab":var r=n.tabMapValue===1?"	":" ".repeat(n.tabMapValue),i=r+e.replace(/\n/g,`
`+r),o=e.includes(`
`)?e.match(/\n/g).length:0;return{text:i,selection:{start:n.tabMapValue,end:n.tabMapValue*(o+1)+e.length}};case"unordered":return _ce(XGe("unordered",e),!0);case"order":return _ce(XGe("order",e),!0);case"hr":return _ce("---",!0);case"table":return{text:Sai(n),newBlock:!0};case"image":return{text:"!["+(e||n.target)+"]("+(n.imageUrl||"")+")",selection:{start:2,end:e.length+2}};case"link":return{text:"["+e+"]("+(n.linkUrl||"")+")",selection:{start:1,end:e.length+1}}}return{text:e,selection:{start:0,end:e.length}}}function sxt(e,t){var n={};return Object.keys(e).forEach(function(r){if(typeof t[r]>"u"){n[r]=e[r];return}if(typeof t[r]=="object"){Array.isArray(t[r])?n[r]=[].concat(t[r]):n[r]=sxt(e[r],t[r]);return}n[r]=t[r]}),n}function Aai(e){for(var t=Y({},e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach(function(o){typeof o=="object"&&(t=sxt(t,o))}),t}function lxt(e,t){var n=dbe("","image",{target:"Uploading_"+oxt(),imageUrl:""}).text,r=new Promise(function(i){var o=!0,a=function(c){o&&console.warn("Deprecated: onImageUpload should return a Promise, callback will be removed in future"),i(dbe("","image",{target:e.name,imageUrl:c}).text)},s=t(e,a);FOe(s)&&(o=!1,s.then(a))});return{placeholder:n,uploaded:r}}var YGe={theme:"default",view:{menu:!0,md:!0,html:!0},canView:{menu:!0,md:!0,html:!0,both:!0,fullScreen:!0,hideMenu:!0},htmlClass:"",markdownClass:"",syncScrollMode:["rightFollowLeft","leftFollowRight"],imageUrl:"",imageAccept:"",linkUrl:"",loggerMaxSize:100,loggerInterval:600,table:{maxRow:4,maxCol:6},allowPasteImage:!0,onImageUpload:void 0,onCustomImageUpload:void 0,shortcuts:!0,onChangeTrigger:"both"},Oai=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.el=b.createRef(),i}var n=t.prototype;return n.getElement=function(){return this.el.current},n.getHeight=function(){return this.el.current?this.el.current.offsetHeight:0},t})(b.Component),zai=(function(e){pa(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getHtml=function(){return typeof this.props.html=="string"?this.props.html:this.el.current?this.el.current.innerHTML:""},n.render=function(){return typeof this.props.html=="string"?b.createElement("div",{ref:this.el,dangerouslySetInnerHTML:{__html:this.props.html},className:this.props.className||"custom-html-style"}):b.createElement("div",{ref:this.el,className:this.props.className||"custom-html-style"},this.props.html)},t})(Oai);function Nce(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Tai(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tai(e,t){if(e){if(typeof e=="string")return KGe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KGe(e,t)}}function KGe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sl=(function(e){pa(t,e),t.use=function(i,o){o===void 0&&(o={});for(var a=0;a<t.plugins.length;a++)if(t.plugins[a].comp===i){t.plugins.splice(a,1,{comp:i,config:o});return}t.plugins.push({comp:i,config:o})},t.unuse=function(i){for(var o=0;o<t.plugins.length;o++)if(t.plugins[o].comp===i){t.plugins.splice(o,1);return}},t.unuseAll=function(){t.plugins=[]};function t(r){var i;return i=e.call(this,r)||this,i.nodeMdText=b.createRef(),i.nodeMdPreview=b.createRef(),i.nodeMdPreviewWrapper=b.createRef(),i.hasContentChanged=!0,i.composing=!1,i.pluginApis=new Map,i.scrollScale=1,i.isSyncingScroll=!1,i.shouldSyncScroll="md",i.keyboardListeners=[],i.emitter=new axt,i.config=Aai(YGe,i.props.config,i.props),i.state={text:(i.props.value||i.props.defaultValue||"").replace(/↵/g,`
`),html:"",view:i.config.view||YGe.view,fullScreen:!1,plugins:i.getPlugins()},i.config.canView&&!i.config.canView.menu&&(i.state.view.menu=!1),i.nodeMdText=b.createRef(),i.nodeMdPreviewWrapper=b.createRef(),i.handleChange=i.handleChange.bind(xn(i)),i.handlePaste=i.handlePaste.bind(xn(i)),i.handleDrop=i.handleDrop.bind(xn(i)),i.handleToggleMenu=i.handleToggleMenu.bind(xn(i)),i.handleKeyDown=i.handleKeyDown.bind(xn(i)),i.handleEditorKeyDown=i.handleEditorKeyDown.bind(xn(i)),i.handleLocaleUpdate=i.handleLocaleUpdate.bind(xn(i)),i.handleFocus=i.handleFocus.bind(xn(i)),i.handleBlur=i.handleBlur.bind(xn(i)),i.handleInputScroll=i.handleSyncScroll.bind(xn(i),"md"),i.handlePreviewScroll=i.handleSyncScroll.bind(xn(i),"html"),i}var n=t.prototype;return n.componentDidMount=function(){var i=this.state.text;this.renderHTML(i),bx.on(bx.EVENT_LANG_CHANGE,this.handleLocaleUpdate),bs.setUp()},n.componentWillUnmount=function(){bx.off(bx.EVENT_LANG_CHANGE,this.handleLocaleUpdate)},n.componentDidUpdate=function(i){if(typeof this.props.value<"u"&&this.props.value!==this.state.text){var o=this.props.value;typeof o!="string"&&(o=String(o).toString()),o=o.replace(/↵/g,`
`),this.state.text!==o&&(this.setState({text:o}),this.renderHTML(o))}i.plugins!==this.props.plugins&&this.setState({plugins:this.getPlugins()})},n.isComposing=function(){return this.composing},n.getPlugins=function(){var i=this,o=[];if(this.props.plugins)for(var a=function(p){if(p===ube.pluginName){o.push({comp:ube,config:{}});return}for(var h=Nce(t.plugins),g;!(g=h()).done;){var m=g.value;if(m.comp.pluginName===p){o.push(m);return}}},s=Nce(this.props.plugins),l;!(l=s()).done;){var c=l.value;c==="fonts"?(a("font-bold"),a("font-italic"),a("font-underline"),a("font-strikethrough"),a("list-unordered"),a("list-ordered"),a("block-quote"),a("block-wrap"),a("block-code-inline"),a("block-code-block")):a(c)}else o=[].concat(t.plugins);var u={};return o.forEach(function(d){typeof u[d.comp.align]>"u"&&(u[d.comp.align]=[]);var p=d.comp.pluginName==="divider"?oxt():d.comp.pluginName;u[d.comp.align].push(b.createElement(d.comp,{editor:i,editorConfig:i.config,config:Y({},d.comp.defaultConfig||{},d.config||{}),key:p}))}),u},n.handleSyncScroll=function(i,o){var a=this;if(i===this.shouldSyncScroll){this.props.onScroll&&this.props.onScroll(o,i),this.emitter.emit(this.emitter.EVENT_SCROLL,o,i);var s=this.config.syncScrollMode,l=s===void 0?[]:s;l.includes(i==="md"?"rightFollowLeft":"leftFollowRight")&&(this.hasContentChanged&&this.nodeMdText.current&&this.nodeMdPreviewWrapper.current&&(this.scrollScale=this.nodeMdText.current.scrollHeight/this.nodeMdPreviewWrapper.current.scrollHeight,this.hasContentChanged=!1),this.isSyncingScroll||(this.isSyncingScroll=!0,requestAnimationFrame(function(){a.nodeMdText.current&&a.nodeMdPreviewWrapper.current&&(i==="md"?a.nodeMdPreviewWrapper.current.scrollTop=a.nodeMdText.current.scrollTop/a.scrollScale:a.nodeMdText.current.scrollTop=a.nodeMdPreviewWrapper.current.scrollTop*a.scrollScale),a.isSyncingScroll=!1})))}},n.renderHTML=function(i){var o=this;if(!this.props.renderHTML)return console.error("renderHTML props is required!"),Promise.resolve();var a=this.props.renderHTML(i);return FOe(a)?a.then(function(s){return o.setHtml(s)}):typeof a=="function"?this.setHtml(a()):this.setHtml(a)},n.setHtml=function(i){var o=this;return new Promise(function(a){o.setState({html:i},a)})},n.handleToggleMenu=function(){this.setView({menu:!this.state.view.menu})},n.handleFocus=function(i){var o=this.props.onFocus;o&&o(i),this.emitter.emit(this.emitter.EVENT_FOCUS,i)},n.handleBlur=function(i){var o=this.props.onBlur;o&&o(i),this.emitter.emit(this.emitter.EVENT_BLUR,i)},n.handleChange=function(i){i.persist();var o=i.target.value;this.setText(o,i)},n.handlePaste=function(i){if(!(!this.config.allowPasteImage||!this.config.onImageUpload)){var o=i.nativeEvent,a=(o.clipboardData||window.clipboardData).items;a&&(i.preventDefault(),this.uploadWithDataTransfer(a))}},n.handleDrop=function(i){if(this.config.onImageUpload){var o=i.nativeEvent;if(o.dataTransfer){var a=o.dataTransfer.items;a&&(i.preventDefault(),this.uploadWithDataTransfer(a))}}},n.handleEditorKeyDown=function(i){var o=this,a=i.keyCode,s=i.key,l=i.currentTarget;if((a===13||s==="Enter")&&this.composing===!1){var c=l.value,u=l.selectionStart,d=Lce(c,u),p=function(){var M=l.value.substr(0,u-d.curLine.length)+l.value.substr(u);o.setText(M,void 0,{start:u-d.curLine.length,end:u-d.curLine.length}),i.preventDefault()},h=function(M){o.insertText(`
`+M,!1,{start:M.length+1,end:M.length+1}),i.preventDefault()},g=d.curLine.match(/^(\s*?)\* /);if(g){if(/^(\s*?)\* $/.test(d.curLine)){p();return}h(g[0]);return}var m=d.curLine.match(/^(\s*?)(\d+)\. /);if(m){if(/^(\s*?)(\d+)\. $/.test(d.curLine)){p();return}var v=""+m[1]+(parseInt(m[2],10)+1)+". ";h(v);return}}this.emitter.emit(this.emitter.EVENT_EDITOR_KEY_DOWN,i)},n.handleLocaleUpdate=function(){this.forceUpdate()},n.getMdElement=function(){return this.nodeMdText.current},n.getHtmlElement=function(){return this.nodeMdPreviewWrapper.current},n.clearSelection=function(){this.nodeMdText.current&&this.nodeMdText.current.setSelectionRange(0,0,"none")},n.getSelection=function(){var i=this.nodeMdText.current;if(!i)return Y({},yai);var o=i.selectionStart,a=i.selectionEnd,s=(i.value||"").slice(o,a);return{start:o,end:a,text:s}},n.setSelection=function(i){this.nodeMdText.current&&(this.nodeMdText.current.setSelectionRange(i.start,i.end,"forward"),this.nodeMdText.current.focus())},n.insertMarkdown=function(i,o){o===void 0&&(o={});var a=this.getSelection(),s=o?Y({},o):{};if(i==="image"&&(s=Y({},s,{target:o.target||a.text||"",imageUrl:o.imageUrl||this.config.imageUrl})),i==="link"&&(s=Y({},s,{linkUrl:this.config.linkUrl})),i==="tab"&&a.start!==a.end){var l=this.getMdValue().slice(0,a.start).lastIndexOf(`
`)+1;this.setSelection({start:l,end:a.end})}var c=dbe(a.text,i,s),u=c.text,d=c.selection;if(c.newBlock){var p=Lce(this.getMdValue(),a.start),h=p.col,g=p.curLine;h>0&&g.length>0&&(u=`
`+u,d&&(d.start++,d.end++));var m=p.afterText;a.start!==a.end&&(m=Lce(this.getMdValue(),a.end).afterText),m.trim()!==""&&m.substr(0,2)!==`

`&&(m.substr(0,1)!==`
`&&(u+=`
`),u+=`
`)}this.insertText(u,!0,d)},n.insertPlaceholder=function(i,o){var a=this;this.insertText(i,!0),o.then(function(s){var l=a.getMdValue().replace(i,s);a.setText(l)})},n.insertText=function(i,o,a){i===void 0&&(i=""),o===void 0&&(o=!1);var s=this.state.text,l=this.getSelection(),c=s.slice(0,l.start),u=s.slice(o?l.end:l.start,s.length);this.setText(c+i+u,void 0,a?{start:a.start+c.length,end:a.end+c.length}:{start:l.start,end:l.start})},n.setText=function(i,o,a){var s=this;i===void 0&&(i="");var l=this.config.onChangeTrigger,c=l===void 0?"both":l,u=i.replace(/↵/g,`
`);if(this.state.text!==i){this.setState({text:u}),this.props.onChange&&(c==="both"||c==="beforeRender")&&this.props.onChange({text:u,html:this.getHtmlValue()},o),this.emitter.emit(this.emitter.EVENT_CHANGE,i,o,typeof o>"u"),a&&setTimeout(function(){return s.setSelection(a)}),this.hasContentChanged||(this.hasContentChanged=!0);var d=this.renderHTML(u);(c==="both"||c==="afterRender")&&d.then(function(){s.props.onChange&&s.props.onChange({text:s.state.text,html:s.getHtmlValue()},o)})}},n.getMdValue=function(){return this.state.text},n.getHtmlValue=function(){return typeof this.state.html=="string"?this.state.html:this.nodeMdPreview.current?this.nodeMdPreview.current.getHtml():""},n.onKeyboard=function(i){var o=this;if(Array.isArray(i)){i.forEach(function(a){return o.onKeyboard(a)});return}this.keyboardListeners.includes(i)||this.keyboardListeners.push(i)},n.offKeyboard=function(i){var o=this;if(Array.isArray(i)){i.forEach(function(s){return o.offKeyboard(s)});return}var a=this.keyboardListeners.indexOf(i);a>=0&&this.keyboardListeners.splice(a,1)},n.handleKeyDown=function(i){for(var o=Nce(this.keyboardListeners),a;!(a=o()).done;){var s=a.value;if(wai(i,s)){i.preventDefault(),s.callback(i);return}}this.emitter.emit(this.emitter.EVENT_KEY_DOWN,i)},n.getEventType=function(i){switch(i){case"change":return this.emitter.EVENT_CHANGE;case"fullscreen":return this.emitter.EVENT_FULL_SCREEN;case"viewchange":return this.emitter.EVENT_VIEW_CHANGE;case"keydown":return this.emitter.EVENT_KEY_DOWN;case"editor_keydown":return this.emitter.EVENT_EDITOR_KEY_DOWN;case"blur":return this.emitter.EVENT_BLUR;case"focus":return this.emitter.EVENT_FOCUS;case"scroll":return this.emitter.EVENT_SCROLL}},n.on=function(i,o){var a=this.getEventType(i);a&&this.emitter.on(a,o)},n.off=function(i,o){var a=this.getEventType(i);a&&this.emitter.off(a,o)},n.setView=function(i){var o=this,a=Y({},this.state.view,i);this.setState({view:a},function(){o.emitter.emit(o.emitter.EVENT_VIEW_CHANGE,a)})},n.getView=function(){return Y({},this.state.view)},n.fullScreen=function(i){var o=this;this.state.fullScreen!==i&&this.setState({fullScreen:i},function(){o.emitter.emit(o.emitter.EVENT_FULL_SCREEN,i)})},n.registerPluginApi=function(i,o){this.pluginApis.set(i,o)},n.unregisterPluginApi=function(i){this.pluginApis.delete(i)},n.callPluginApi=function(i){var o=this.pluginApis.get(i);if(!o)throw new Error("API "+i+" not found");for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return o.apply(void 0,s)},n.isFullScreen=function(){return this.state.fullScreen},n.uploadWithDataTransfer=function(i){var o=this,a=this.config.onImageUpload;if(a){var s=[];Array.prototype.forEach.call(i,function(l){if(l.kind==="file"&&l.type.includes("image")){var c=l.getAsFile();if(c){var u=lxt(c,a);s.push(Promise.resolve(u.placeholder)),u.uploaded.then(function(d){var p=o.getMdValue().replace(u.placeholder,d),h=d.length-u.placeholder.length,g=o.getSelection();o.setText(p,void 0,{start:g.start+h,end:g.start+h})})}}else l.kind==="string"&&l.type==="text/plain"&&s.push(new Promise(function(d){return l.getAsString(d)}))}),Promise.all(s).then(function(l){var c=l.join(""),u=o.getSelection();o.insertText(c,!0,{start:u.start===u.end?c.length:0,end:c.length})})}},n.render=function(){var i=this,o=this.state,a=o.view,s=o.fullScreen,l=o.text,c=o.html,u=this.props,d=u.id,p=u.className,h=p===void 0?"":p,g=u.style,m=u.name,v=m===void 0?"textarea":m,y=u.autoFocus,M=u.placeholder,C=u.readOnly,x=this.config.canView&&this.config.canView.hideMenu&&!this.config.canView.menu,w=function(T){return i.state.plugins[T]||[]},S=!!a.menu,A=d?d+"_md":void 0,z=d?d+"_html":void 0;return b.createElement("div",{id:d,className:"rc-md-editor "+(s?"full":"")+" "+h,style:g,onKeyDown:this.handleKeyDown,onDrop:this.handleDrop},b.createElement(pai,{visible:S,left:w("left"),right:w("right")}),b.createElement("div",{className:"editor-container"},x&&b.createElement(hai,null,b.createElement("span",{className:"button button-type-menu",title:S?"hidden menu":"show menu",onClick:this.handleToggleMenu},b.createElement(Pc,{type:"expand-"+(S?"less":"more")}))),b.createElement("section",{className:"section sec-md "+(a.md?"visible":"in-visible")},b.createElement("textarea",{id:A,ref:this.nodeMdText,name:v,autoFocus:y,placeholder:M,readOnly:C,value:l,className:"section-container input "+(this.config.markdownClass||""),wrap:"hard",onChange:this.handleChange,onScroll:this.handleInputScroll,onMouseOver:function(){return i.shouldSyncScroll="md"},onKeyDown:this.handleEditorKeyDown,onCompositionStart:function(){return i.composing=!0},onCompositionEnd:function(){return i.composing=!1},onPaste:this.handlePaste,onFocus:this.handleFocus,onBlur:this.handleBlur})),b.createElement("section",{className:"section sec-html "+(a.html?"visible":"in-visible")},b.createElement("div",{id:z,className:"section-container html-wrap",ref:this.nodeMdPreviewWrapper,onMouseOver:function(){return i.shouldSyncScroll="html"},onScroll:this.handlePreviewScroll},b.createElement(zai,{html:c,className:this.config.htmlClass,ref:this.nodeMdPreview})))))},t})(b.Component);Sl.plugins=[];Sl.addLocale=bs.add.bind(bs);Sl.useLocale=bs.setCurrent.bind(bs);Sl.getLocale=bs.getCurrent.bind(bs);var cxt=(function(e){pa(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-code-block",title:bs.get("btnCode"),onClick:function(){return i.editor.insertMarkdown("code")}},b.createElement(Pc,{type:"code-block"}))},t})(Hl);cxt.pluginName="block-code-block";var uxt=(function(e){pa(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-code-inline",title:bs.get("btnInlineCode"),onClick:function(){return i.editor.insertMarkdown("inlinecode")}},b.createElement(Pc,{type:"code"}))},t})(Hl);uxt.pluginName="block-code-inline";var dxt=(function(e){pa(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-quote",title:bs.get("btnQuote"),onClick:function(){return i.editor.insertMarkdown("quote")}},b.createElement(Pc,{type:"quote"}))},t})(Hl);dxt.pluginName="block-quote";var pxt=(function(e){pa(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-wrap",title:bs.get("btnLineBreak"),onClick:function(){return i.editor.insertMarkdown("hr")}},b.createElement(Pc,{type:"wrap"}))},t})(Hl);pxt.pluginName="block-wrap";var hxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleClick=i.handleClick.bind(xn(i)),i}var n=t.prototype;return n.handleClick=function(){if(this.editor.getMdValue()!==""&&window.confirm&&typeof window.confirm=="function"){var i=window.confirm(bs.get("clearTip"));i&&this.editor.setText("")}},n.render=function(){return b.createElement("span",{className:"button button-type-clear",title:bs.get("btnClear"),onClick:this.handleClick},b.createElement(Pc,{type:"delete"}))},t})(Hl);hxt.pluginName="clear";var fxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"b",keyCode:66,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return i.editor.insertMarkdown("bold")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-bold",title:bs.get("btnBold"),onClick:function(){return i.editor.insertMarkdown("bold")}},b.createElement(Pc,{type:"bold"}))},t})(Hl);fxt.pluginName="font-bold";var gxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"i",keyCode:73,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return i.editor.insertMarkdown("italic")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-italic",title:bs.get("btnItalic"),onClick:function(){return i.editor.insertMarkdown("italic")}},b.createElement(Pc,{type:"italic"}))},t})(Hl);gxt.pluginName="font-italic";var mxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"d",keyCode:68,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return i.editor.insertMarkdown("strikethrough")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-strikethrough",title:bs.get("btnStrikethrough"),onClick:function(){return i.editor.insertMarkdown("strikethrough")}},b.createElement(Pc,{type:"strikethrough"}))},t})(Hl);mxt.pluginName="font-strikethrough";var vxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"u",keyCode:85,withKey:["ctrlKey"],callback:function(){return i.editor.insertMarkdown("underline")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-underline",title:bs.get("btnUnderline"),onClick:function(){return i.editor.insertMarkdown("underline")}},b.createElement(Pc,{type:"underline"}))},t})(Hl);vxt.pluginName="font-underline";var WOe=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleClick=i.handleClick.bind(xn(i)),i.handleChange=i.handleChange.bind(xn(i)),i.state={enable:i.editor.isFullScreen()},i}var n=t.prototype;return n.handleClick=function(){this.editor.fullScreen(!this.state.enable)},n.handleChange=function(i){this.setState({enable:i})},n.componentDidMount=function(){this.editor.on("fullscreen",this.handleChange)},n.componentWillUnmount=function(){this.editor.off("fullscreen",this.handleChange)},n.render=function(){if(this.editorConfig.canView&&this.editorConfig.canView.fullScreen){var i=this.state.enable;return b.createElement("span",{className:"button button-type-fullscreen",title:bs.get(i?"btnExitFullScreen":"btnFullScreen"),onClick:this.handleClick},b.createElement(Pc,{type:i?"fullscreen-exit":"fullscreen"}))}return null},t})(Hl);WOe.pluginName="full-screen";WOe.align="right";var bxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleClose=i.handleClose.bind(xn(i)),i}var n=t.prototype;return n.handleClose=function(i){i.stopPropagation();var o=this.props.onClose;typeof o=="function"&&o()},n.render=function(){return b.createElement("div",{className:"drop-wrap "+(this.props.show?"show":"hidden"),onClick:this.handleClose},this.props.children)},t})(b.Component),Eai=(function(e){pa(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.handleHeader=function(i){var o=this.props.onSelectHeader;typeof o=="function"&&o(i)},n.render=function(){return b.createElement("ul",{className:"header-list"},b.createElement("li",{className:"list-item"},b.createElement("h1",{onClick:this.handleHeader.bind(this,"h1")},"H1")),b.createElement("li",{className:"list-item"},b.createElement("h2",{onClick:this.handleHeader.bind(this,"h2")},"H2")),b.createElement("li",{className:"list-item"},b.createElement("h3",{onClick:this.handleHeader.bind(this,"h3")},"H3")),b.createElement("li",{className:"list-item"},b.createElement("h4",{onClick:this.handleHeader.bind(this,"h4")},"H4")),b.createElement("li",{className:"list-item"},b.createElement("h5",{onClick:this.handleHeader.bind(this,"h5")},"H5")),b.createElement("li",{className:"list-item"},b.createElement("h6",{onClick:this.handleHeader.bind(this,"h6")},"H6")))},t})(b.Component),yxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.show=i.show.bind(xn(i)),i.hide=i.hide.bind(xn(i)),i.state={show:!1},i}var n=t.prototype;return n.show=function(){this.setState({show:!0})},n.hide=function(){this.setState({show:!1})},n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-header",title:bs.get("btnHeader"),onMouseEnter:this.show,onMouseLeave:this.hide},b.createElement(Pc,{type:"font-size"}),b.createElement(bxt,{show:this.state.show,onClose:this.hide},b.createElement(Eai,{onSelectHeader:function(a){return i.editor.insertMarkdown(a)}})))},t})(Hl);yxt.pluginName="header";var Rai=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.timerId=void 0,i.locked=!1,i.input=b.createRef(),i}var n=t.prototype;return n.click=function(){var i=this;this.locked||!this.input.current||(this.locked=!0,this.input.current.value="",this.input.current.click(),this.timerId&&window.clearTimeout(this.timerId),this.timerId=window.setTimeout(function(){i.locked=!1,window.clearTimeout(i.timerId),i.timerId=void 0},200))},n.componentWillUnmount=function(){this.timerId&&window.clearTimeout(this.timerId)},n.render=function(){return b.createElement("input",{type:"file",ref:this.input,accept:this.props.accept,style:{position:"absolute",zIndex:-1,left:0,top:0,width:0,height:0,opacity:0},onChange:this.props.onChange})},t})(b.Component),Mxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.inputFile=b.createRef(),i.onImageChanged=i.onImageChanged.bind(xn(i)),i.handleCustomImageUpload=i.handleCustomImageUpload.bind(xn(i)),i.handleImageUpload=i.handleImageUpload.bind(xn(i)),i.state={show:!1},i}var n=t.prototype;return n.handleImageUpload=function(){var i=this.editorConfig.onImageUpload;typeof i=="function"?this.inputFile.current&&this.inputFile.current.click():this.editor.insertMarkdown("image")},n.onImageChanged=function(i){var o=this.editorConfig.onImageUpload;if(o){var a=lxt(i,o);this.editor.insertPlaceholder(a.placeholder,a.uploaded)}},n.handleCustomImageUpload=function(i){var o=this,a=this.editorConfig.onCustomImageUpload;if(a){var s=a.call(this,i);FOe(s)&&s.then(function(l){l&&l.url&&o.editor.insertMarkdown("image",{target:l.text,imageUrl:l.url})})}},n.render=function(){var i=this,o=!!this.editorConfig.onCustomImageUpload;return o?b.createElement("span",{className:"button button-type-image",title:bs.get("btnImage"),onClick:this.handleCustomImageUpload},b.createElement(Pc,{type:"image"})):b.createElement("span",{className:"button button-type-image",title:bs.get("btnImage"),onClick:this.handleImageUpload,style:{position:"relative"}},b.createElement(Pc,{type:"image"}),b.createElement(Rai,{accept:this.editorConfig.imageAccept||"",ref:this.inputFile,onChange:function(s){s.persist(),s.target.files&&s.target.files.length>0&&i.onImageChanged(s.target.files[0])}}))},t})(Hl);Mxt.pluginName="image";var Cxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"k",keyCode:75,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return i.editor.insertMarkdown("link")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-link",title:bs.get("btnLink"),onClick:function(){return i.editor.insertMarkdown("link")}},b.createElement(Pc,{type:"link"}))},t})(Hl);Cxt.pluginName="link";var xxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"7",keyCode:55,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return i.editor.insertMarkdown("order")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-ordered",title:bs.get("btnOrdered"),onClick:function(){return i.editor.insertMarkdown("order")}},b.createElement(Pc,{type:"list-ordered"}))},t})(Hl);xxt.pluginName="list-ordered";var wxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboard={key:"8",keyCode:56,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return i.editor.insertMarkdown("unordered")}},i}var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var i=this;return b.createElement("span",{className:"button button-type-unordered",title:bs.get("btnUnordered"),onClick:function(){return i.editor.insertMarkdown("unordered")}},b.createElement(Pc,{type:"list-unordered"}))},t})(Hl);wxt.pluginName="list-unordered";var Iai=100,Pai=(function(){function e(n){n===void 0&&(n={}),this.record=[],this.recycle=[],this.initValue="";var r=n,i=r.maxSize,o=i===void 0?Iai:i;this.maxSize=o}var t=e.prototype;return t.push=function(r){for(var i=this.record.push(r);this.record.length>this.maxSize;)this.record.shift();return i},t.get=function(){return this.record},t.getLast=function(){var r=this.record.length;return this.record[r-1]},t.undo=function(r){var i=this.record.pop();if(typeof i>"u")return this.initValue;if(i!==r)return this.recycle.push(i),i;var o=this.record.pop();return typeof o>"u"?(this.recycle.push(i),this.initValue):(this.recycle.push(i),o)},t.redo=function(){var r=this.recycle.pop();if(typeof r<"u")return this.push(r),r},t.cleanRedo=function(){this.recycle=[]},t.getUndoCount=function(){return this.undo.length},t.getRedoCount=function(){return this.recycle.length},e})(),Sxt=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleKeyboards=[],i.lastPop=null,i.handleChange=i.handleChange.bind(xn(i)),i.handleRedo=i.handleRedo.bind(xn(i)),i.handleUndo=i.handleUndo.bind(xn(i)),i.handleKeyboards=[{key:"y",keyCode:89,withKey:["ctrlKey"],callback:i.handleRedo},{key:"z",keyCode:90,withKey:["metaKey","shiftKey"],callback:i.handleRedo},{key:"z",keyCode:90,aliasCommand:!0,withKey:["ctrlKey"],callback:i.handleUndo}],i.logger=new Pai({maxSize:i.editorConfig.loggerMaxSize}),i.editor.registerPluginApi("undo",i.handleUndo),i.editor.registerPluginApi("redo",i.handleRedo),i}var n=t.prototype;return n.handleUndo=function(){var i=this.logger.undo(this.editor.getMdValue());typeof i<"u"&&(this.pause(),this.lastPop=i,this.editor.setText(i),this.forceUpdate())},n.handleRedo=function(){var i=this.logger.redo();typeof i<"u"&&(this.lastPop=i,this.editor.setText(i),this.forceUpdate())},n.handleChange=function(i,o,a){var s=this;if(!(this.logger.getLast()===i||this.lastPop!==null&&this.lastPop===i)){if(this.logger.cleanRedo(),a){this.logger.push(i),this.lastPop=null,this.forceUpdate();return}this.timerId&&(window.clearTimeout(this.timerId),this.timerId=0),this.timerId=window.setTimeout(function(){s.logger.getLast()!==i&&(s.logger.push(i),s.lastPop=null,s.forceUpdate()),window.clearTimeout(s.timerId),s.timerId=0},this.editorConfig.loggerInterval)}},n.componentDidMount=function(){var i=this;this.editor.on("change",this.handleChange),this.handleKeyboards.forEach(function(o){return i.editor.onKeyboard(o)}),this.logger.initValue=this.editor.getMdValue(),this.forceUpdate()},n.componentWillUnmount=function(){var i=this;this.timerId&&window.clearTimeout(this.timerId),this.editor.off("change",this.handleChange),this.editor.unregisterPluginApi("undo"),this.editor.unregisterPluginApi("redo"),this.handleKeyboards.forEach(function(o){return i.editor.offKeyboard(o)})},n.pause=function(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)},n.render=function(){var i=this.logger.getUndoCount()>1||this.logger.initValue!==this.editor.getMdValue(),o=this.logger.getRedoCount()>0;return b.createElement(b.Fragment,null,b.createElement("span",{className:"button button-type-undo "+(i?"":"disabled"),title:bs.get("btnUndo"),onClick:this.handleUndo},b.createElement(Pc,{type:"undo"})),b.createElement("span",{className:"button button-type-redo "+(o?"":"disabled"),title:bs.get("btnRedo"),onClick:this.handleRedo},b.createElement(Pc,{type:"redo"})))},t})(Hl);Sxt.pluginName="logger";var Jd;(function(e){e[e.SHOW_ALL=0]="SHOW_ALL",e[e.SHOW_MD=1]="SHOW_MD",e[e.SHOW_HTML=2]="SHOW_HTML"})(Jd||(Jd={}));var qOe=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.handleClick=i.handleClick.bind(xn(i)),i.handleChange=i.handleChange.bind(xn(i)),i.state={view:i.editor.getView()},i}var n=t.prototype;return n.handleClick=function(){switch(this.next){case Jd.SHOW_ALL:this.editor.setView({html:!0,md:!0});break;case Jd.SHOW_HTML:this.editor.setView({html:!0,md:!1});break;case Jd.SHOW_MD:this.editor.setView({html:!1,md:!0});break}},n.handleChange=function(i){this.setState({view:i})},n.componentDidMount=function(){this.editor.on("viewchange",this.handleChange)},n.componentWillUnmount=function(){this.editor.off("viewchange",this.handleChange)},n.getDisplayInfo=function(){var i=this.next;switch(i){case Jd.SHOW_ALL:return{icon:"view-split",title:"All"};case Jd.SHOW_HTML:return{icon:"visibility",title:"Preview"};default:return{icon:"keyboard",title:"Editor"}}},n.render=function(){if(this.isDisplay){var i=this.getDisplayInfo();return b.createElement("span",{className:"button button-type-mode",title:bs.get("btnMode"+i.title),onClick:this.handleClick},b.createElement(Pc,{type:i.icon}))}return null},so(t,[{key:"isDisplay",get:function(){var i=this.editorConfig.canView;return i?[i.html,i.md,i.both].filter(function(o){return o}).length>=2:!1}},{key:"next",get:function(){var i=this.editorConfig.canView,o=this.state.view,a=[Jd.SHOW_ALL,Jd.SHOW_MD,Jd.SHOW_HTML];i&&(i.both||a.splice(a.indexOf(Jd.SHOW_ALL),1),i.md||a.splice(a.indexOf(Jd.SHOW_MD),1),i.html||a.splice(a.indexOf(Jd.SHOW_HTML),1));var s=Jd.SHOW_MD;if(o.html&&(s=Jd.SHOW_HTML),o.html&&o.md&&(s=Jd.SHOW_ALL),a.length===0)return s;if(a.length===1)return a[0];var l=a.indexOf(s);return l<a.length-1?a[l+1]:a[0]}}]),t})(Hl);qOe.pluginName="mode-toggle";qOe.align="right";var Dai=(function(e){pa(t,e);function t(r){var i;i=e.call(this,r)||this,i.config={padding:3,width:20,height:20};var o=r.maxRow,a=o===void 0?5:o,s=r.maxCol,l=s===void 0?6:s;return i.state={maxRow:a,maxCol:l,list:i.formatTableModel(a,l)},i}var n=t.prototype;return n.formatTableModel=function(i,o){i===void 0&&(i=0),o===void 0&&(o=0);var a=new Array(i).fill(void 0);return a.map(function(s){return new Array(o).fill(0)})},n.calcWrapStyle=function(){var i=this.state,o=i.maxRow,a=i.maxCol,s=this.config,l=s.width,c=s.height,u=s.padding,d=(l+u)*a-u,p=(c+u)*o-u;return{width:d+"px",height:p+"px"}},n.calcItemStyle=function(i,o){i===void 0&&(i=0),o===void 0&&(o=0);var a=this.config,s=a.width,l=a.height,c=a.padding,u=(l+c)*i,d=(s+c)*o;return{top:u+"px",left:d+"px"}},n.getList=function(i,o){var a=this.state.list;return a.map(function(s,l){return s.map(function(c,u){return l<=i&&u<=o?1:0})})},n.handleHover=function(i,o){this.setState({list:this.getList(i,o)})},n.handleSetTable=function(i,o){var a=this.props.onSetTable;typeof a=="function"&&a({row:i+1,col:o+1})},n.componentDidUpdate=function(i){this.props.visibility===!1&&i.visibility!==this.props.visibility&&this.setState({list:this.getList(-1,-1)})},n.render=function(){var i=this;return b.createElement("ul",{className:"table-list wrap",style:this.calcWrapStyle()},this.state.list.map(function(o,a){return o.map(function(s,l){return b.createElement("li",{className:"list-item "+(s===1?"active":""),key:a+"-"+l,style:i.calcItemStyle(a,l),onMouseOver:i.handleHover.bind(i,a,l),onClick:i.handleSetTable.bind(i,a,l)})})}))},t})(b.Component),BOe=(function(e){pa(t,e);function t(r){var i;return i=e.call(this,r)||this,i.show=i.show.bind(xn(i)),i.hide=i.hide.bind(xn(i)),i.state={show:!1},i}var n=t.prototype;return n.show=function(){this.setState({show:!0})},n.hide=function(){this.setState({show:!1})},n.render=function(){var i=this,o=this.editorConfig.table||this.props.config;return b.createElement("span",{className:"button button-type-table",title:bs.get("btnTable"),onMouseEnter:this.show,onMouseLeave:this.hide},b.createElement(Pc,{type:"grid"}),b.createElement(bxt,{show:this.state.show,onClose:this.hide},b.createElement(Dai,{visibility:this.state.show,maxRow:o.maxRow,maxCol:o.maxCol,onSetTable:function(s){return i.editor.insertMarkdown("table",s)}})))},t})(Hl);BOe.pluginName="table";BOe.defaultConfig={maxRow:6,maxCol:6};var Fce={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var QGe;function kai(){return QGe||(QGe=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Fce)),Fce.exports}var Lai=kai();const xd=qn(Lai);Sl.use(yxt);Sl.use(fxt);Sl.use(gxt);Sl.use(vxt);Sl.use(mxt);Sl.use(wxt);Sl.use(xxt);Sl.use(dxt);Sl.use(pxt);Sl.use(uxt);Sl.use(cxt);Sl.use(BOe);Sl.use(Mxt);Sl.use(Cxt);Sl.use(hxt);Sl.use(Sxt);Sl.use(qOe);Sl.use(WOe);function J3(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}const _ai=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function HP(e,t,n){const r=Nai(e),{webkitRelativePath:i}=e,o=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&ZGe(r,"path",o),ZGe(r,"relativePath",o),r}function Nai(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=_ai.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function ZGe(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const Fai=[".DS_Store","Thumbs.db"];function Wai(e){return J3(this,void 0,void 0,function*(){return oX(e)&&qai(e.dataTransfer)?Vai(e.dataTransfer,e.type):Bai(e)?jai(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?Hai(e):[]})}function qai(e){return oX(e)}function Bai(e){return oX(e)&&oX(e.target)}function oX(e){return typeof e=="object"&&e!==null}function jai(e){return pbe(e.target.files).map(t=>HP(t))}function Hai(e){return J3(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>HP(n))})}function Vai(e,t){return J3(this,void 0,void 0,function*(){if(e.items){const n=pbe(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(Gai));return JGe(Axt(r))}return JGe(pbe(e.files).map(n=>HP(n)))})}function JGe(e){return e.filter(t=>Fai.indexOf(t.name)===-1)}function pbe(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function Gai(e){if(typeof e.webkitGetAsEntry!="function")return e7e(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?Oxt(t):e7e(e,t)}function Axt(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?Axt(n):[n]],[])}function e7e(e,t){return J3(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const o=yield e.getAsFileSystemHandle();if(o===null)throw new Error(`${e} is not a File`);if(o!==void 0){const a=yield o.getFile();return a.handle=o,HP(a)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return HP(r,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function $ai(e){return J3(this,void 0,void 0,function*(){return e.isDirectory?Oxt(e):Uai(e)})}function Oxt(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function o(){t.readEntries(a=>J3(this,void 0,void 0,function*(){if(a.length){const s=Promise.all(a.map($ai));i.push(s),o()}else try{const s=yield Promise.all(i);n(s)}catch(s){r(s)}}),a=>{r(a)})}o()})}function Uai(e){return J3(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=HP(r,e.fullPath);t(i)},r=>{n(r)})})})}var pG={},t7e;function Xai(){return t7e||(t7e=1,pG.__esModule=!0,pG.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0}),pG}var Yai=Xai();const Wce=qn(Yai);function n7e(e){return Zai(e)||Qai(e)||Txt(e)||Kai()}function Kai(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qai(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zai(e){if(Array.isArray(e))return hbe(e)}function r7e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function i7e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r7e(Object(n),!0).forEach(function(r){zxt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r7e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zxt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qq(e,t){return tsi(e)||esi(e,t)||Txt(e,t)||Jai()}function Jai(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Txt(e,t){if(e){if(typeof e=="string")return hbe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hbe(e,t)}}function hbe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function esi(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function tsi(e){if(Array.isArray(e))return e}var nsi=typeof Wce=="function"?Wce:Wce.default,rsi="file-invalid-type",isi="file-too-large",osi="file-too-small",asi="too-many-files",ssi=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:rsi,message:"File type must be ".concat(r)}},o7e=function(t){return{code:isi,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},a7e=function(t){return{code:osi,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},lsi={code:asi,message:"Too many files"};function Ext(e,t){var n=e.type==="application/x-moz-file"||nsi(e,t);return[n,n?null:ssi(t)]}function Rxt(e,t,n){if(eO(e.size))if(eO(t)&&eO(n)){if(e.size>n)return[!1,o7e(n)];if(e.size<t)return[!1,a7e(t)]}else{if(eO(t)&&e.size<t)return[!1,a7e(t)];if(eO(n)&&e.size>n)return[!1,o7e(n)]}return[!0,null]}function eO(e){return e!=null}function csi(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var c=Ext(l,n),u=qq(c,1),d=u[0],p=Rxt(l,r,i),h=qq(p,1),g=h[0],m=s?s(l):null;return d&&g&&!m})}function aX(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function hG(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function s7e(e){e.preventDefault()}function usi(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function dsi(e){return e.indexOf("Edge/")!==-1}function psi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return usi(e)||dsi(e)}function Cv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!aX(r)&&s&&s.apply(void 0,[r].concat(o)),aX(r)})}}function hsi(){return"showOpenFilePicker"in window}function fsi(e){if(eO(e)){var t=Object.entries(e).filter(function(n){var r=qq(n,2),i=r[0],o=r[1],a=!0;return Ixt(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(Pxt))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=qq(r,2),o=i[0],a=i[1];return i7e(i7e({},n),{},zxt({},o,a))},{});return[{description:"Files",accept:t}]}return e}function gsi(e){if(eO(e))return Object.entries(e).reduce(function(t,n){var r=qq(n,2),i=r[0],o=r[1];return[].concat(n7e(t),[i],n7e(o))},[]).filter(function(t){return Ixt(t)||Pxt(t)}).join(",")}function msi(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function vsi(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Ixt(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function Pxt(e){return/^.*\.[\w]+$/.test(e)}var bsi=["children"],ysi=["open"],Msi=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Csi=["refKey","onChange","onClick"];function xsi(e){return Asi(e)||Ssi(e)||Dxt(e)||wsi()}function wsi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ssi(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Asi(e){if(Array.isArray(e))return fbe(e)}function qce(e,t){return Tsi(e)||zsi(e,t)||Dxt(e,t)||Osi()}function Osi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dxt(e,t){if(e){if(typeof e=="string")return fbe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fbe(e,t)}}function fbe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zsi(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function Tsi(e){if(Array.isArray(e))return e}function l7e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l7e(Object(n),!0).forEach(function(r){gbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l7e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gbe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sX(e,t){if(e==null)return{};var n=Esi(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Esi(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var jOe=b.forwardRef(function(e,t){var n=e.children,r=sX(e,bsi),i=Lxt(r),o=i.open,a=sX(i,ysi);return b.useImperativeHandle(t,function(){return{open:o}},[o]),E.createElement(b.Fragment,null,n(Rl(Rl({},a),{},{open:o})))});jOe.displayName="Dropzone";var kxt={disabled:!1,getFilesFromEvent:Wai,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};jOe.defaultProps=kxt;jOe.propTypes={children:Z.func,accept:Z.objectOf(Z.arrayOf(Z.string)),multiple:Z.bool,preventDropOnDocument:Z.bool,noClick:Z.bool,noKeyboard:Z.bool,noDrag:Z.bool,noDragEventsBubbling:Z.bool,minSize:Z.number,maxSize:Z.number,maxFiles:Z.number,disabled:Z.bool,getFilesFromEvent:Z.func,onFileDialogCancel:Z.func,onFileDialogOpen:Z.func,useFsAccessApi:Z.bool,autoFocus:Z.bool,onDragEnter:Z.func,onDragLeave:Z.func,onDragOver:Z.func,onDrop:Z.func,onDropAccepted:Z.func,onDropRejected:Z.func,onError:Z.func,validator:Z.func};var mbe={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Lxt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Rl(Rl({},kxt),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,m=t.onFileDialogCancel,v=t.onFileDialogOpen,y=t.useFsAccessApi,M=t.autoFocus,C=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,S=t.noDrag,A=t.noDragEventsBubbling,z=t.onError,O=t.validator,T=b.useMemo(function(){return gsi(n)},[n]),I=b.useMemo(function(){return fsi(n)},[n]),P=b.useMemo(function(){return typeof v=="function"?v:c7e},[v]),N=b.useMemo(function(){return typeof m=="function"?m:c7e},[m]),F=b.useRef(null),L=b.useRef(null),W=b.useReducer(Rsi,mbe),H=qce(W,2),j=H[0],G=H[1],q=j.isFocused,$=j.isFileDialogActive,U=b.useRef(typeof window<"u"&&window.isSecureContext&&y&&hsi()),X=function(){!U.current&&$&&setTimeout(function(){if(L.current){var Ee=L.current.files;Ee.length||(G({type:"closeDialog"}),N())}},300)};b.useEffect(function(){return window.addEventListener("focus",X,!1),function(){window.removeEventListener("focus",X,!1)}},[L,$,N,U]);var Q=b.useRef([]),re=function(Ee){F.current&&F.current.contains(Ee.target)||(Ee.preventDefault(),Q.current=[])};b.useEffect(function(){return C&&(document.addEventListener("dragover",s7e,!1),document.addEventListener("drop",re,!1)),function(){C&&(document.removeEventListener("dragover",s7e),document.removeEventListener("drop",re))}},[F,C]),b.useEffect(function(){return!r&&M&&F.current&&F.current.focus(),function(){}},[F,M,r]);var ee=b.useCallback(function(Ce){z?z(Ce):console.error(Ce)},[z]),se=b.useCallback(function(Ce){Ce.preventDefault(),Ce.persist(),de(Ce),Q.current=[].concat(xsi(Q.current),[Ce.target]),hG(Ce)&&Promise.resolve(i(Ce)).then(function(Ee){if(!(aX(Ce)&&!A)){var Ge=Ee.length,_e=Ge>0&&csi({files:Ee,accept:T,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:O}),Ie=Ge>0&&!_e;G({isDragAccept:_e,isDragReject:Ie,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Ce)}}).catch(function(Ee){return ee(Ee)})},[i,c,ee,A,T,a,o,s,l,O]),pe=b.useCallback(function(Ce){Ce.preventDefault(),Ce.persist(),de(Ce);var Ee=hG(Ce);if(Ee&&Ce.dataTransfer)try{Ce.dataTransfer.dropEffect="copy"}catch{}return Ee&&d&&d(Ce),!1},[d,A]),te=b.useCallback(function(Ce){Ce.preventDefault(),Ce.persist(),de(Ce);var Ee=Q.current.filter(function(_e){return F.current&&F.current.contains(_e)}),Ge=Ee.indexOf(Ce.target);Ge!==-1&&Ee.splice(Ge,1),Q.current=Ee,!(Ee.length>0)&&(G({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),hG(Ce)&&u&&u(Ce))},[F,u,A]),ce=b.useCallback(function(Ce,Ee){var Ge=[],_e=[];Ce.forEach(function(Ie){var Le=Ext(Ie,T),we=qce(Le,2),ve=we[0],De=we[1],ze=Rxt(Ie,a,o),Ve=qce(ze,2),Ke=Ve[0],et=Ve[1],it=O?O(Ie):null;if(ve&&Ke&&!it)Ge.push(Ie);else{var Ft=[De,et];it&&(Ft=Ft.concat(it)),_e.push({file:Ie,errors:Ft.filter(function(Pt){return Pt})})}}),(!s&&Ge.length>1||s&&l>=1&&Ge.length>l)&&(Ge.forEach(function(Ie){_e.push({file:Ie,errors:[lsi]})}),Ge.splice(0)),G({acceptedFiles:Ge,fileRejections:_e,isDragReject:_e.length>0,type:"setFiles"}),p&&p(Ge,_e,Ee),_e.length>0&&g&&g(_e,Ee),Ge.length>0&&h&&h(Ge,Ee)},[G,s,T,a,o,l,p,h,g,O]),oe=b.useCallback(function(Ce){Ce.preventDefault(),Ce.persist(),de(Ce),Q.current=[],hG(Ce)&&Promise.resolve(i(Ce)).then(function(Ee){aX(Ce)&&!A||ce(Ee,Ce)}).catch(function(Ee){return ee(Ee)}),G({type:"reset"})},[i,ce,ee,A]),ae=b.useCallback(function(){if(U.current){G({type:"openDialog"}),P();var Ce={multiple:s,types:I};window.showOpenFilePicker(Ce).then(function(Ee){return i(Ee)}).then(function(Ee){ce(Ee,null),G({type:"closeDialog"})}).catch(function(Ee){msi(Ee)?(N(Ee),G({type:"closeDialog"})):vsi(Ee)?(U.current=!1,L.current?(L.current.value=null,L.current.click()):ee(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ee(Ee)});return}L.current&&(G({type:"openDialog"}),P(),L.current.value=null,L.current.click())},[G,P,N,y,ce,ee,I,s]),ne=b.useCallback(function(Ce){!F.current||!F.current.isEqualNode(Ce.target)||(Ce.key===" "||Ce.key==="Enter"||Ce.keyCode===32||Ce.keyCode===13)&&(Ce.preventDefault(),ae())},[F,ae]),le=b.useCallback(function(){G({type:"focus"})},[]),he=b.useCallback(function(){G({type:"blur"})},[]),be=b.useCallback(function(){x||(psi()?setTimeout(ae,0):ae())},[x,ae]),me=function(Ee){return r?null:Ee},Me=function(Ee){return w?null:me(Ee)},Oe=function(Ee){return S?null:me(Ee)},de=function(Ee){A&&Ee.stopPropagation()},ie=b.useMemo(function(){return function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ee=Ce.refKey,Ge=Ee===void 0?"ref":Ee,_e=Ce.role,Ie=Ce.onKeyDown,Le=Ce.onFocus,we=Ce.onBlur,ve=Ce.onClick,De=Ce.onDragEnter,ze=Ce.onDragOver,Ve=Ce.onDragLeave,Ke=Ce.onDrop,et=sX(Ce,Msi);return Rl(Rl(gbe({onKeyDown:Me(Cv(Ie,ne)),onFocus:Me(Cv(Le,le)),onBlur:Me(Cv(we,he)),onClick:me(Cv(ve,be)),onDragEnter:Oe(Cv(De,se)),onDragOver:Oe(Cv(ze,pe)),onDragLeave:Oe(Cv(Ve,te)),onDrop:Oe(Cv(Ke,oe)),role:typeof _e=="string"&&_e!==""?_e:"presentation"},Ge,F),!r&&!w?{tabIndex:0}:{}),et)}},[F,ne,le,he,be,se,pe,te,oe,w,S,r]),ue=b.useCallback(function(Ce){Ce.stopPropagation()},[]),Ae=b.useMemo(function(){return function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ee=Ce.refKey,Ge=Ee===void 0?"ref":Ee,_e=Ce.onChange,Ie=Ce.onClick,Le=sX(Ce,Csi),we=gbe({accept:T,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:me(Cv(_e,oe)),onClick:me(Cv(Ie,ue)),tabIndex:-1},Ge,L);return Rl(Rl({},we),Le)}},[L,n,s,oe,r]);return Rl(Rl({},j),{},{isFocused:q&&!r,getRootProps:ie,getInputProps:Ae,rootRef:F,inputRef:L,open:me(ae)})}function Rsi(e,t){switch(t.type){case"focus":return Rl(Rl({},e),{},{isFocused:!0});case"blur":return Rl(Rl({},e),{},{isFocused:!1});case"openDialog":return Rl(Rl({},mbe),{},{isFileDialogActive:!0});case"closeDialog":return Rl(Rl({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Rl(Rl({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Rl(Rl({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Rl({},mbe);default:return e}}function c7e(){}var j_={},u7e;function Isi(){if(u7e)return j_;u7e=1;var e=ri(),t=ii();Object.defineProperty(j_,"__esModule",{value:!0}),j_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0-3.14-.85-4-2.15.02-1.32 2.67-2.05 4-2.05s3.98.73 4 2.05c-.86 1.3-2.33 2.15-4 2.15z"}),"PersonPinCircle");return j_.default=i,j_}var Psi=Isi();const Dsi=qn(Psi);let HOe=rj();const io=e=>nj(e,HOe);let VOe=rj();io.write=e=>nj(e,VOe);let GOe=rj();io.onStart=e=>nj(e,GOe);let _xt=rj();io.onFrame=e=>nj(e,_xt);let Nxt=rj();io.onFinish=e=>nj(e,Nxt);let FI=[];io.setTimeout=(e,t)=>{let n=io.now()+t,r=()=>{let o=FI.findIndex(a=>a.cancel==r);~o&&FI.splice(o,1),AO.count-=~o?1:0},i={time:n,handler:e,cancel:r};return FI.splice(Fxt(n),0,i),AO.count+=1,Wxt(),i};let Fxt=e=>~(~FI.findIndex(t=>t.time>e)||~FI.length);io.cancel=e=>{HOe.delete(e),VOe.delete(e)};io.sync=e=>{vbe=!0,io.batchedUpdates(e),vbe=!1};io.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,io.onStart(n)}return r.handler=e,r.cancel=()=>{GOe.delete(n),t=null},r};let $Oe=typeof window<"u"?window.requestAnimationFrame:()=>{};io.use=e=>$Oe=e;io.now=typeof performance<"u"?()=>performance.now():Date.now;io.batchedUpdates=e=>e();io.catch=console.error;io.frameLoop="always";io.advance=()=>{io.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Bxt()};let SO=-1,vbe=!1;function nj(e,t){vbe?(t.delete(e),e(0)):(t.add(e),Wxt())}function Wxt(){SO<0&&(SO=0,io.frameLoop!=="demand"&&$Oe(qxt))}function qxt(){~SO&&($Oe(qxt),io.batchedUpdates(Bxt))}function Bxt(){let e=SO;SO=io.now();let t=Fxt(SO);t&&(jxt(FI.splice(0,t),n=>n.handler()),AO.count-=t),GOe.flush(),HOe.flush(e?Math.min(64,SO-e):16.667),_xt.flush(),VOe.flush(),Nxt.flush()}function rj(){let e=new Set,t=e;return{add(n){AO.count+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return AO.count-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,AO.count-=t.size,jxt(t,r=>r(n)&&e.add(r)),AO.count+=e.size,t=e)}}}function jxt(e,t){e.forEach(n=>{try{t(n)}catch(r){io.catch(r)}})}const AO={count:0};function bbe(){}const ksi=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),On={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function oy(e,t){if(On.arr(e)){if(!On.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const ro=(e,t)=>e.forEach(t);function Fb(e,t,n){if(On.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const a1=e=>On.und(e)?[]:On.arr(e)?e:[e];function BF(e,t){if(e.size){const n=Array.from(e);e.clear(),ro(n,t)}}const CN=(e,...t)=>BF(e,n=>n(...t));let UOe,Hxt,qx=null,Vxt=!1,XOe=bbe;const Lsi=e=>{e.to&&(Hxt=e.to),e.now&&(io.now=e.now),e.colors!==void 0&&(qx=e.colors),e.skipAnimation!=null&&(Vxt=e.skipAnimation),e.createStringInterpolator&&(UOe=e.createStringInterpolator),e.requestAnimationFrame&&io.use(e.requestAnimationFrame),e.batchedUpdates&&(io.batchedUpdates=e.batchedUpdates),e.willAdvance&&(XOe=e.willAdvance),e.frameLoop&&(io.frameLoop=e.frameLoop)};var Wb=Object.freeze({__proto__:null,get createStringInterpolator(){return UOe},get to(){return Hxt},get colors(){return qx},get skipAnimation(){return Vxt},get willAdvance(){return XOe},assign:Lsi});const jF=new Set;let mf=[],Bce=[],lX=0;const HJ={get idle(){return!jF.size&&!mf.length},start(e){lX>e.priority?(jF.add(e),io.onStart(_si)):(Gxt(e),io(ybe))},advance:ybe,sort(e){if(lX)io.onFrame(()=>HJ.sort(e));else{const t=mf.indexOf(e);~t&&(mf.splice(t,1),$xt(e))}},clear(){mf=[],jF.clear()}};function _si(){jF.forEach(Gxt),jF.clear(),io(ybe)}function Gxt(e){mf.includes(e)||$xt(e)}function $xt(e){mf.splice(Nsi(mf,t=>t.priority>e.priority),0,e)}function ybe(e){const t=Bce;for(let n=0;n<mf.length;n++){const r=mf[n];lX=r.priority,r.idle||(XOe(r),r.advance(e),r.idle||t.push(r))}return lX=0,Bce=mf,Bce.length=0,mf=t,mf.length>0}function Nsi(e,t){const n=e.findIndex(t);return n<0?e.length:n}const Fsi={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},im="[-+]?\\d*\\.?\\d+",cX=im+"%";function VJ(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Wsi=new RegExp("rgb"+VJ(im,im,im)),qsi=new RegExp("rgba"+VJ(im,im,im,im)),Bsi=new RegExp("hsl"+VJ(im,cX,cX)),jsi=new RegExp("hsla"+VJ(im,cX,cX,im)),Hsi=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Vsi=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Gsi=/^#([0-9a-fA-F]{6})$/,$si=/^#([0-9a-fA-F]{8})$/;function Usi(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Gsi.exec(e))?parseInt(t[1]+"ff",16)>>>0:qx&&qx[e]!==void 0?qx[e]:(t=Wsi.exec(e))?(iR(t[1])<<24|iR(t[2])<<16|iR(t[3])<<8|255)>>>0:(t=qsi.exec(e))?(iR(t[1])<<24|iR(t[2])<<16|iR(t[3])<<8|h7e(t[4]))>>>0:(t=Hsi.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=$si.exec(e))?parseInt(t[1],16)>>>0:(t=Vsi.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Bsi.exec(e))?(d7e(p7e(t[1]),fG(t[2]),fG(t[3]))|255)>>>0:(t=jsi.exec(e))?(d7e(p7e(t[1]),fG(t[2]),fG(t[3]))|h7e(t[4]))>>>0:null}function jce(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function d7e(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=jce(i,r,e+1/3),a=jce(i,r,e),s=jce(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function iR(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function p7e(e){return(parseFloat(e)%360+360)%360/360}function h7e(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function fG(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function f7e(e){let t=Usi(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}const Bq=(e,t,n)=>{if(On.fun(e))return e;if(On.arr(e))return Bq({range:e,output:t,extrapolate:n});if(On.str(e.output[0]))return UOe(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=Ysi(c,o);return Xsi(c,o[u],o[u+1],i[u],i[u+1],l,a,s,r.map)}};function Xsi(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if(a==="identity")return c;a==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=o(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function Ysi(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}function Mbe(){return Mbe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mbe.apply(this,arguments)}const VP=Symbol.for("FluidValue.get"),t3=Symbol.for("FluidValue.observers"),uf=e=>!!(e&&e[VP]),X1=e=>e&&e[VP]?e[VP]():e,g7e=e=>e[t3]||null;function Ksi(e,t){e.eventObserved?e.eventObserved(t):e(t)}function jq(e,t){let n=e[t3];n&&n.forEach(r=>{Ksi(r,t)})}class Uxt{constructor(t){if(this[VP]=void 0,this[t3]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");Qsi(this,t)}}const Qsi=(e,t)=>Xxt(e,VP,t);function vk(e,t){if(e[VP]){let n=e[t3];n||Xxt(e,t3,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Hq(e,t){let n=e[t3];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[t3]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Xxt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Q7=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Zsi=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,m7e=new RegExp(`(${Q7.source})(%|[a-z]+)`,"i");let Hce;const Jsi=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eli=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Yxt=e=>{Hce||(Hce=qx?new RegExp(`(${Object.keys(qx).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>X1(o).replace(Zsi,f7e).replace(Hce,f7e)),n=t.map(o=>o.match(Q7).map(Number)),i=n[0].map((o,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(o=>Bq(Mbe({},e,{output:o})));return o=>{var a;const s=!m7e.test(t[0])&&((a=t.find(c=>m7e.test(c)))==null?void 0:a.replace(Q7,""));let l=0;return t[0].replace(Q7,()=>`${i[l++](o)}${s||""}`).replace(Jsi,eli)}},YOe="react-spring: ",Kxt=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${YOe}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},tli=Kxt(console.warn);function nli(){tli(`${YOe}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const rli=Kxt(console.warn);function ili(){rli(`${YOe}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function GJ(e){return On.str(e)&&(e[0]=="#"||/\d/.test(e)||e in(qx||{}))}const $J=e=>b.useEffect(e,oli),oli=[];function KOe(){const e=b.useState()[1],t=b.useState(ali)[0];return $J(t.unmount),()=>{t.current&&e({})}}function ali(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function sli(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&lli(t,o.inputs)||(o={inputs:t,result:e()}):o=n,b.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function lli(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Cbe(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}const VR=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,Vq=Symbol.for("Animated:node"),cli=e=>!!e&&e[Vq]===e,Dv=e=>e&&e[Vq],QOe=(e,t)=>ksi(e,Vq,t),UJ=e=>e&&e[Vq]&&e[Vq].getPayload();class Qxt{constructor(){this.payload=void 0,QOe(this,this)}getPayload(){return this.payload||[]}}class bk extends Qxt{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,On.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new bk(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return On.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,On.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class GP extends bk{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=Bq({output:[t,t]})}static create(t){return new GP(t)}getValue(){let t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(On.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Bq({output:[this.getValue(),t]})),this._value=0,super.reset()}}const uX={dependencies:null};class XJ extends Qxt{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const n={};return Fb(this.source,(r,i)=>{cli(r)?n[i]=r.getValue(t):uf(r)?n[i]=X1(r):t||(n[i]=r)}),n}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&ro(this.payload,t=>t.reset())}_makePayload(t){if(t){const n=new Set;return Fb(t,this._addToPayload,n),Array.from(n)}}_addToPayload(t){uX.dependencies&&uf(t)&&uX.dependencies.add(t);const n=UJ(t);n&&ro(n,r=>this.add(r))}}class ZOe extends XJ{constructor(t){super(t)}static create(t){return new ZOe(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,i)=>r.setValue(t[i])).some(Boolean):(super.setValue(t.map(uli)),!0)}}function uli(e){return(GJ(e)?GP:bk).create(e)}function xbe(e){const t=Dv(e);return t?t.constructor:On.arr(e)?ZOe:GJ(e)?GP:bk}function dX(){return dX=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dX.apply(this,arguments)}const v7e=(e,t)=>{const n=!On.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const o=b.useRef(null),a=n&&b.useCallback(g=>{o.current=hli(i,g)},[i]),[s,l]=pli(r,t),c=KOe(),u=()=>{const g=o.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&c()},d=new dli(u,l),p=b.useRef();VR(()=>{const g=p.current;p.current=d,ro(l,m=>vk(m,d)),g&&(ro(g.deps,m=>Hq(m,g)),io.cancel(g.update))}),b.useEffect(u,[]),$J(()=>()=>{const g=p.current;ro(g.deps,m=>Hq(m,g))});const h=t.getComponentProps(s.getValue());return b.createElement(e,dX({},h,{ref:a}))})};class dli{constructor(t,n){this.update=t,this.deps=n}eventObserved(t){t.type=="change"&&io.write(this.update)}}function pli(e,t){const n=new Set;return uX.dependencies=n,e.style&&(e=dX({},e,{style:t.createAnimatedStyle(e.style)})),e=new XJ(e),uX.dependencies=null,[e,n]}function hli(e,t){return e&&(On.fun(e)?e(t):e.current=t),t}const b7e=Symbol.for("AnimatedComponent"),fli=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new XJ(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=y7e(a)||"Anonymous";return On.str(a)?a=o[a]||(o[a]=v7e(a,i)):a=a[b7e]||(a[b7e]=v7e(a,i)),a.displayName=`Animated(${s})`,a};return Fb(e,(a,s)=>{On.arr(e)&&(s=y7e(a)),o[s]=o(a)}),{animated:o}},y7e=e=>On.str(e)?e:e&&On.str(e.displayName)?e.displayName:On.fun(e)&&e.name||null;function tc(){return tc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tc.apply(this,arguments)}function Y1(e,...t){return On.fun(e)?e(...t):e}const HF=(e,t)=>e===!0||!!(t&&e&&(On.fun(e)?e(t):a1(e).includes(t))),Zxt=(e,t)=>On.obj(e)?t&&e[t]:e,Jxt=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,gli=e=>e,YJ=(e,t=gli)=>{let n=mli;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);On.und(o)||(r[i]=o)}return r},mli=["config","onProps","onStart","onChange","onPause","onResume","onRest"],vli={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function bli(e){const t={};let n=0;if(Fb(e,(r,i)=>{vli[i]||(t[i]=r,n++)}),n)return t}function JOe(e){const t=bli(e);if(t){const n={to:t};return Fb(e,(r,i)=>i in t||(n[i]=r)),n}return tc({},e)}function Gq(e){return e=X1(e),On.arr(e)?e.map(Gq):GJ(e)?Wb.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function ewt(e){for(const t in e)return!0;return!1}function wbe(e){return On.fun(e)||On.arr(e)&&On.obj(e[0])}function Sbe(e,t){var n;(n=e.ref)==null||n.delete(e),t?.delete(e)}function twt(e,t){if(t&&e.ref!==t){var n;(n=e.ref)==null||n.delete(e),t.add(e),e.ref=t}}const eze={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},yli=e=>e,Abe=tc({},eze.default,{mass:1,damping:1,easing:yli,clamp:!1});class Mli{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Abe)}}function Cli(e,t,n){n&&(n=tc({},n),M7e(n,t),t=tc({},n,t)),M7e(e,t),Object.assign(e,t);for(const a in Abe)e[a]==null&&(e[a]=Abe[a]);let{mass:r,frequency:i,damping:o}=e;return On.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i),e}function M7e(e,t){if(!On.und(t.decay))e.duration=void 0;else{const n=!On.und(t.tension)||!On.und(t.friction);(n||!On.und(t.frequency)||!On.und(t.damping)||!On.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}const C7e=[];class xli{constructor(){this.changed=!1,this.values=C7e,this.toValues=null,this.fromValues=C7e,this.to=void 0,this.from=void 0,this.config=new Mli,this.immediate=!1}}function nwt(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{var l;let c,u,d=HF((l=n.cancel)!=null?l:r?.cancel,t);if(d)g();else{On.und(n.pause)||(i.paused=HF(n.pause,t));let m=r?.pause;m!==!0&&(m=i.paused||HF(m,t)),c=Y1(n.delay||0,t),m?(i.resumeQueue.add(h),o.pause()):(o.resume(),h())}function p(){i.resumeQueue.add(h),i.timeouts.delete(u),u.cancel(),c=u.time-io.now()}function h(){c>0&&!Wb.skipAnimation?(u=io.setTimeout(g,c),i.pauseQueue.add(p),i.timeouts.add(u)):g()}function g(){i.pauseQueue.delete(p),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(tc({},n,{callId:e,cancel:d}),a)}catch(m){s(m)}}})}const tze=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?WI(e.get()):t.every(n=>n.noop)?rwt(e.get()):$g(e.get(),t.every(n=>n.finished)),rwt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),$g=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),WI=e=>({value:e,cancelled:!0,finished:!1});function iwt(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return!o&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=YJ(t,(v,y)=>y==="onRest"?void 0:v);let u,d;const p=new Promise((v,y)=>(u=v,d=y)),h=v=>{const y=i<=(n.cancelId||0)&&WI(r)||i!==n.asyncId&&$g(r,!1);if(y)throw v.result=y,d(v),v},g=(v,y)=>{const M=new x7e,C=new w7e;return(async()=>{if(Wb.skipAnimation)throw $q(n),C.result=$g(r,!1),d(C),C;h(M);const x=On.obj(v)?tc({},v):tc({},y,{to:v});x.parentId=i,Fb(c,(S,A)=>{On.und(x[A])&&(x[A]=S)});const w=await r.start(x);return h(M),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),w})()};let m;if(Wb.skipAnimation)return $q(n),$g(r,!1);try{let v;On.arr(e)?v=(async y=>{for(const M of y)await g(M)})(e):v=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([v.then(u),p]),m=$g(r.get(),!0,!1)}catch(v){if(v instanceof x7e)m=v.result;else if(v instanceof w7e)m=v.result;else throw v}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return On.fun(a)&&io.batchedUpdates(()=>{a(m,r,r.item)}),m})()}function $q(e,t){BF(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class x7e extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class w7e extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Obe=e=>e instanceof nze;let wli=1;class nze extends Uxt{constructor(...t){super(...t),this.id=wli++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Dv(this);return t&&t.getValue()}to(...t){return Wb.to(this,t)}interpolate(...t){return nli(),Wb.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,n=!1){jq(this,{type:"change",parent:this,value:t,idle:n})}_onPriorityChange(t){this.idle||HJ.sort(this),jq(this,{type:"priority",parent:this,priority:t})}}const n3=Symbol.for("SpringPhase"),owt=1,zbe=2,Tbe=4,Vce=e=>(e[n3]&owt)>0,gC=e=>(e[n3]&zbe)>0,H_=e=>(e[n3]&Tbe)>0,S7e=(e,t)=>t?e[n3]|=zbe|owt:e[n3]&=~zbe,A7e=(e,t)=>t?e[n3]|=Tbe:e[n3]&=~Tbe;class Sli extends nze{constructor(t,n){if(super(),this.key=void 0,this.animation=new xli,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!On.und(t)||!On.und(n)){const r=On.obj(t)?tc({},t):tc({},n,{from:t});On.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(gC(this)||this._state.asyncTo)||H_(this)}get goal(){return X1(this.animation.to)}get velocity(){const t=Dv(this);return t instanceof bk?t.lastVelocity||0:t.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return Vce(this)}get isAnimating(){return gC(this)}get isPaused(){return H_(this)}advance(t){let n=!0,r=!1;const i=this.animation;let{config:o,toValues:a}=i;const s=UJ(i.to);!s&&uf(i.to)&&(a=a1(X1(i.to))),i.values.forEach((u,d)=>{if(u.done)return;const p=u.constructor==GP?1:s?s[d].lastPosition:a[d];let h=i.immediate,g=p;if(!h){if(g=u.lastPosition,o.tension<=0){u.done=!0;return}let m=u.elapsedTime+=t;const v=i.fromValues[d],y=u.v0!=null?u.v0:u.v0=On.arr(o.velocity)?o.velocity[d]:o.velocity;let M;if(On.und(o.duration))if(o.decay){const C=o.decay===!0?.998:o.decay,x=Math.exp(-(1-C)*m);g=v+y/(1-C)*(1-x),h=Math.abs(u.lastPosition-g)<.1,M=y*x}else{M=u.lastVelocity==null?y:u.lastVelocity;const C=o.precision||(v==p?.005:Math.min(1,Math.abs(p-v)*.001)),x=o.restVelocity||C/10,w=o.clamp?0:o.bounce,S=!On.und(w),A=v==p?u.v0>0:v<p;let z,O=!1;const T=1,I=Math.ceil(t/T);for(let P=0;P<I&&(z=Math.abs(M)>x,!(!z&&(h=Math.abs(p-g)<=C,h)));++P){S&&(O=g==p||g>p==A,O&&(M=-M*w,g=p));const N=-o.tension*1e-6*(g-p),F=-o.friction*.001*M,L=(N+F)/o.mass;M=M+L*T,g=g+M*T}}else{let C=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,u.durationProgress>0&&(u.elapsedTime=o.duration*u.durationProgress,m=u.elapsedTime+=t)),C=(o.progress||0)+m/this._memoizedDuration,C=C>1?1:C<0?0:C,u.durationProgress=C),g=v+o.easing(C)*(p-v),M=(g-u.lastPosition)/t,h=C==1}u.lastVelocity=M,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),h=!0)}s&&!s[d].done&&(h=!1),h?u.done=!0:n=!1,u.setValue(g,o.round)&&(r=!0)});const l=Dv(this),c=l.getValue();if(n){const u=X1(i.to);(c!==u||r)&&!o.decay?(l.setValue(u),this._onChange(u)):r&&o.decay&&this._onChange(c),this._stop()}else r&&this._onChange(c)}set(t){return io.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(gC(this)){const{to:t,config:n}=this.animation;io.batchedUpdates(()=>{this._onStart(),n.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,n){let r;return On.und(t)?(r=this.queue||[],this.queue=[]):r=[On.obj(t)?t:tc({},n,{to:t})],Promise.all(r.map(i=>this._update(i))).then(i=>tze(this,i))}stop(t){const{to:n}=this.animation;return this._focus(this.get()),$q(this._state,t&&this._lastCallId),io.batchedUpdates(()=>this._stop(n,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const n=this.key||"";let{to:r,from:i}=t;r=On.obj(r)?r[n]:r,(r==null||wbe(r))&&(r=void 0),i=On.obj(i)?i[n]:i,i==null&&(i=void 0);const o={to:r,from:i};return Vce(this)||(t.reverse&&([r,i]=[i,r]),i=X1(i),On.und(i)?Dv(this)||this._set(r):this._set(i)),o}_update(t,n){let r=tc({},t);const{key:i,defaultProps:o}=this;r.default&&Object.assign(o,YJ(r,(l,c)=>/^on/.test(c)?Zxt(l,i):l)),z7e(this,r,"onProps"),G_(this,"onProps",r,this);const a=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return nwt(++this._lastCallId,{key:i,props:r,defaultProps:o,state:s,actions:{pause:()=>{H_(this)||(A7e(this,!0),CN(s.pauseQueue),G_(this,"onPause",$g(this,V_(this,this.animation.to)),this))},resume:()=>{H_(this)&&(A7e(this,!1),gC(this)&&this._resume(),CN(s.resumeQueue),G_(this,"onResume",$g(this,V_(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(l=>{if(r.loop&&l.finished&&!(n&&l.noop)){const c=awt(r);if(c)return this._update(c,!0)}return l})}_merge(t,n,r){if(n.cancel)return this.stop(!0),r(WI(this));const i=!On.und(t.to),o=!On.und(t.from);if(i||o)if(n.callId>this._lastToId)this._lastToId=n.callId;else return r(WI(this));const{key:a,defaultProps:s,animation:l}=this,{to:c,from:u}=l;let{to:d=c,from:p=u}=t;o&&!i&&(!n.default||On.und(d))&&(d=p),n.reverse&&([d,p]=[p,d]);const h=!oy(p,u);h&&(l.from=p),p=X1(p);const g=!oy(d,c);g&&this._focus(d);const m=wbe(n.to),{config:v}=l,{decay:y,velocity:M}=v;(i||o)&&(v.velocity=0),n.config&&!m&&Cli(v,Y1(n.config,a),n.config!==s.config?Y1(s.config,a):void 0);let C=Dv(this);if(!C||On.und(d))return r($g(this,!0));const x=On.und(n.reset)?o&&!n.default:!On.und(p)&&HF(n.reset,a),w=x?p:this.get(),S=Gq(d),A=On.num(S)||On.arr(S)||GJ(S),z=!m&&(!A||HF(s.immediate||n.immediate,a));if(g){const P=xbe(d);if(P!==C.constructor)if(z)C=this._set(S);else throw Error(`Cannot animate between ${C.constructor.name} and ${P.name}, as the "to" prop suggests`)}const O=C.constructor;let T=uf(d),I=!1;if(!T){const P=x||!Vce(this)&&h;(g||P)&&(I=oy(Gq(w),S),T=!I),(!oy(l.immediate,z)&&!z||!oy(v.decay,y)||!oy(v.velocity,M))&&(T=!0)}if(I&&gC(this)&&(l.changed&&!x?T=!0:T||this._stop(c)),!m&&((T||uf(c))&&(l.values=C.getPayload(),l.toValues=uf(d)?null:O==GP?[1]:a1(S)),l.immediate!=z&&(l.immediate=z,!z&&!x&&this._set(c)),T)){const{onRest:P}=l;ro(Oli,F=>z7e(this,n,F));const N=$g(this,V_(this,c));CN(this._pendingCalls,N),this._pendingCalls.add(r),l.changed&&io.batchedUpdates(()=>{l.changed=!x,P?.(N,this),x?Y1(s.onRest,N):l.onStart==null||l.onStart(N,this)})}x&&this._set(w),m?r(iwt(n.to,n,this._state,this)):T?this._start():gC(this)&&!g?this._pendingCalls.add(r):r(rwt(w))}_focus(t){const n=this.animation;t!==n.to&&(g7e(this)&&this._detach(),n.to=t,g7e(this)&&this._attach())}_attach(){let t=0;const{to:n}=this.animation;uf(n)&&(vk(n,this),Obe(n)&&(t=n.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;uf(t)&&Hq(t,this)}_set(t,n=!0){const r=X1(t);if(!On.und(r)){const i=Dv(this);if(!i||!oy(r,i.getValue())){const o=xbe(r);!i||i.constructor!=o?QOe(this,o.create(r)):i.setValue(r),i&&io.batchedUpdates(()=>{this._onChange(r,n)})}}return Dv(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,G_(this,"onStart",$g(this,V_(this,t.to)),this))}_onChange(t,n){n||(this._onStart(),Y1(this.animation.onChange,t,this)),Y1(this.defaultProps.onChange,t,this),super._onChange(t,n)}_start(){const t=this.animation;Dv(this).reset(X1(t.to)),t.immediate||(t.fromValues=t.values.map(n=>n.lastPosition)),gC(this)||(S7e(this,!0),H_(this)||this._resume())}_resume(){Wb.skipAnimation?this.finish():HJ.start(this)}_stop(t,n){if(gC(this)){S7e(this,!1);const r=this.animation;ro(r.values,o=>{o.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),jq(this,{type:"idle",parent:this});const i=n?WI(this.get()):$g(this.get(),V_(this,t??r.to));CN(this._pendingCalls,i),r.changed&&(r.changed=!1,G_(this,"onRest",i,this))}}}function V_(e,t){const n=Gq(t),r=Gq(e.get());return oy(r,n)}function awt(e,t=e.loop,n=e.to){let r=Y1(t);if(r){const i=r!==!0&&JOe(r),o=(i||e).reverse,a=!i||i.reset;return Uq(tc({},e,{loop:t,default:!1,pause:void 0,to:!o||wbe(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function Uq(e){const{to:t,from:n}=e=JOe(e),r=new Set;return On.obj(t)&&O7e(t,r),On.obj(n)&&O7e(n,r),e.keys=r.size?Array.from(r):null,e}function Ali(e){const t=Uq(e);return On.und(t.default)&&(t.default=YJ(t)),t}function O7e(e,t){Fb(e,(n,r)=>n!=null&&t.add(r))}const Oli=["onStart","onRest","onChange","onPause","onResume"];function z7e(e,t,n){e.animation[n]=t[n]!==Jxt(t,n)?Zxt(t[n],e.key):void 0}function G_(e,t,...n){var r,i,o,a;(r=(i=e.animation)[t])==null||r.call(i,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}const zli=["onStart","onChange","onRest"];let Tli=1;class swt{constructor(t,n){this.id=Tli++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start(tc({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((n,r)=>t[r]=n.get()),t}set(t){for(const n in t){const r=t[n];On.und(r)||this.springs[n].set(r)}}update(t){return t&&this.queue.push(Uq(t)),this}start(t){let{queue:n}=this;return t?n=a1(t).map(Uq):this.queue=[],this._flush?this._flush(this,n):(pwt(this,n),Ebe(this,n))}stop(t,n){if(t!==!!t&&(n=t),n){const r=this.springs;ro(a1(n),i=>r[i].stop(!!t))}else $q(this._state,this._lastAsyncId),this.each(r=>r.stop(!!t));return this}pause(t){if(On.und(t))this.start({pause:!0});else{const n=this.springs;ro(a1(t),r=>n[r].pause())}return this}resume(t){if(On.und(t))this.start({pause:!1});else{const n=this.springs;ro(a1(t),r=>n[r].resume())}return this}each(t){Fb(this.springs,t)}_onFrame(){const{onStart:t,onChange:n,onRest:r}=this._events,i=this._active.size>0,o=this._changed.size>0;(i&&!this._started||o&&!this._started)&&(this._started=!0,BF(t,([l,c])=>{c.value=this.get(),l(c,this,this._item)}));const a=!i&&this._started,s=o||a&&r.size?this.get():null;o&&n.size&&BF(n,([l,c])=>{c.value=s,l(c,this,this._item)}),a&&(this._started=!1,BF(r,([l,c])=>{c.value=s,l(c,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;io.onFrame(this._onFrame)}}function Ebe(e,t){return Promise.all(t.map(n=>lwt(e,n))).then(n=>tze(e,n))}async function lwt(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=On.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const u=On.arr(i)||On.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):ro(zli,m=>{const v=t[m];if(On.fun(v)){const y=e._events[m];t[m]=({finished:M,cancelled:C})=>{const x=y.get(v);x?(M||(x.finished=!1),C&&(x.cancelled=!0)):y.set(v,{value:null,finished:M||!1,cancelled:C||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,CN(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),h=t.cancel===!0||Jxt(t,"cancel")===!0;(u||h&&d.asyncId)&&p.push(nwt(++e._lastAsyncId,{props:t,state:d,actions:{pause:bbe,resume:bbe,start(m,v){h?($q(d,e._lastAsyncId),v(WI(e))):(m.onRest=s,v(iwt(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const g=tze(e,await Promise.all(p));if(a&&g.finished&&!(n&&g.noop)){const m=awt(t,a,i);if(m)return pwt(e,[m]),lwt(e,m,!0)}return l&&io.batchedUpdates(()=>l(g,e,e.item)),g}function Rbe(e,t){const n=tc({},e.springs);return t&&ro(a1(t),r=>{On.und(r.keys)&&(r=Uq(r)),On.obj(r.to)||(r=tc({},r,{to:void 0})),dwt(n,r,i=>uwt(i))}),cwt(e,n),n}function cwt(e,t){Fb(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,vk(n,e))})}function uwt(e,t){const n=new Sli;return n.key=e,t&&vk(n,t),n}function dwt(e,t,n){t.keys&&ro(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function pwt(e,t){ro(t,n=>{dwt(e.springs,n,r=>uwt(r,e))})}function Eli(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Rli=["children"],ij=e=>{let{children:t}=e,n=Eli(e,Rli);const r=b.useContext(pX),i=n.pause||!!r.pause,o=n.immediate||!!r.immediate;n=sli(()=>({pause:i,immediate:o}),[i,o]);const{Provider:a}=pX;return b.createElement(a,{value:n},t)},pX=Ili(ij,{});ij.Provider=pX.Provider;ij.Consumer=pX.Consumer;function Ili(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}const hwt=()=>{const e=[],t=function(i){ili();const o=[];return ro(e,(a,s)=>{if(On.und(i))o.push(a.start());else{const l=n(i,a,s);l&&o.push(a.start(l))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return ro(e,r=>r.pause(...arguments)),this},t.resume=function(){return ro(e,r=>r.resume(...arguments)),this},t.set=function(r){ro(e,i=>i.set(r))},t.start=function(r){const i=[];return ro(e,(o,a)=>{if(On.und(r))i.push(o.start());else{const s=this._getProps(r,o,a);s&&i.push(o.start(s))}}),i},t.stop=function(){return ro(e,r=>r.stop(...arguments)),this},t.update=function(r){return ro(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(i,o,a){return On.fun(i)?i(a,o):i};return t._getProps=n,t};function Pli(e,t,n){const r=On.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?hwt():void 0,[]),o=b.useRef(0),a=KOe(),s=b.useMemo(()=>({ctrls:[],queue:[],flush(y,M){const C=Rbe(y,M);return o.current>0&&!s.queue.length&&!Object.keys(C).some(w=>!y.springs[w])?Ebe(y,M):new Promise(w=>{cwt(y,C),s.queue.push(()=>{w(Ebe(y,M))}),a()})}}),[]),l=b.useRef([...s.ctrls]),c=[],u=Cbe(e)||0;b.useMemo(()=>{ro(l.current.slice(e,u),y=>{Sbe(y,i),y.stop(!0)}),l.current.length=e,d(u,e)},[e]),b.useMemo(()=>{d(0,Math.min(u,e))},n);function d(y,M){for(let C=y;C<M;C++){const x=l.current[C]||(l.current[C]=new swt(null,s.flush)),w=r?r(C,x):t[C];w&&(c[C]=Ali(w))}}const p=l.current.map((y,M)=>Rbe(y,c[M])),h=b.useContext(ij),g=Cbe(h),m=h!==g&&ewt(h);VR(()=>{o.current++,s.ctrls=l.current;const{queue:y}=s;y.length&&(s.queue=[],ro(y,M=>M())),ro(l.current,(M,C)=>{i?.add(M),m&&M.start({default:h});const x=c[C];x&&(twt(M,x.ref),M.ref?M.queue.push(x):M.start(x))})}),$J(()=>()=>{ro(s.ctrls,y=>y.stop(!0))});const v=p.map(y=>tc({},y));return i?[v,i]:v}function oj(e,t){const n=On.fun(e),[[r],i]=Pli(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}let H1;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(H1||(H1={}));function fwt(e,t,n){const r=On.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,onDestroyed:l,ref:c,config:u}=r?r():t,d=b.useMemo(()=>r||arguments.length==3?hwt():void 0,[]),p=a1(e),h=[],g=b.useRef(null),m=i?null:g.current;VR(()=>{g.current=h}),$J(()=>()=>ro(g.current,I=>{I.expired&&clearTimeout(I.expirationId),Sbe(I.ctrl,d),I.ctrl.stop(!0)}));const v=kli(p,r?r():t,m),y=i&&g.current||[];VR(()=>ro(y,({ctrl:I,item:P,key:N})=>{Sbe(I,d),Y1(l,P,N)}));const M=[];if(m&&ro(m,(I,P)=>{I.expired?(clearTimeout(I.expirationId),y.push(I)):(P=M[P]=v.indexOf(I.key),~P&&(h[P]=I))}),ro(p,(I,P)=>{h[P]||(h[P]={key:v[P],item:I,phase:H1.MOUNT,ctrl:new swt},h[P].ctrl.item=I)}),M.length){let I=-1;const{leave:P}=r?r():t;ro(M,(N,F)=>{const L=m[F];~N?(I=h.indexOf(L),h[I]=tc({},L,{item:p[N]})):P&&h.splice(++I,0,L)})}On.fun(o)&&h.sort((I,P)=>o(I.item,P.item));let C=-a;const x=KOe(),w=YJ(t),S=new Map;ro(h,(I,P)=>{const N=I.key,F=I.phase,L=r?r():t;let W,H,j=Y1(L.delay||0,N);if(F==H1.MOUNT)W=L.enter,H=H1.ENTER;else{const U=v.indexOf(N)<0;if(F!=H1.LEAVE)if(U)W=L.leave,H=H1.LEAVE;else if(W=L.update)H=H1.UPDATE;else return;else if(!U)W=L.enter,H=H1.ENTER;else return}if(W=Y1(W,I.item,P),W=On.obj(W)?JOe(W):{to:W},!W.config){const U=u||w.config;W.config=Y1(U,I.item,P,H)}C+=a;const G=tc({},w,{delay:j+C,ref:c,immediate:L.immediate,reset:!1},W);if(H==H1.ENTER&&On.und(G.from)){const U=r?r():t,X=On.und(U.initial)||m?U.from:U.initial;G.from=Y1(X,I.item,P)}const{onResolve:q}=G;G.onResolve=U=>{Y1(q,U);const X=g.current,Q=X.find(re=>re.key===N);if(Q&&!(U.cancelled&&Q.phase!=H1.UPDATE)&&Q.ctrl.idle){const re=X.every(ee=>ee.ctrl.idle);if(Q.phase==H1.LEAVE){const ee=Y1(s,Q.item);if(ee!==!1){const se=ee===!0?0:ee;if(Q.expired=!0,!re&&se>0){se<=2147483647&&(Q.expirationId=setTimeout(x,se));return}}}re&&X.some(ee=>ee.expired)&&x()}};const $=Rbe(I.ctrl,G);S.set(I,{phase:H,springs:$,payload:G})});const A=b.useContext(ij),z=Cbe(A),O=A!==z&&ewt(A);VR(()=>{O&&ro(h,I=>{I.ctrl.start({default:A})})},[A]),VR(()=>{ro(S,({phase:I,payload:P},N)=>{const{ctrl:F}=N;N.phase=I,d?.add(F),O&&I==H1.ENTER&&F.start({default:A}),P&&(twt(F,P.ref),F.ref?F.update(P):F.start(P))})},i?void 0:n);const T=I=>b.createElement(b.Fragment,null,h.map((P,N)=>{const{springs:F}=S.get(P)||P.ctrl,L=I(tc({},F),P.item,P,N);return L&&L.type?b.createElement(L.type,tc({},L.props,{key:On.str(P.key)||On.num(P.key)?P.key:P.ctrl.id,ref:L.ref})):L}));return d?[T,d]:T}let Dli=1;function kli(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const a=r&&r.find(s=>s.item===o&&s.phase!==H1.LEAVE&&!i.has(s));return a?(i.add(a),a.key):Dli++})}return On.und(n)?e:On.fun(n)?e.map(n):a1(n)}class gwt extends nze{constructor(t,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=Bq(...n);const r=this._get(),i=xbe(r);QOe(this,i.create(r))}advance(t){const n=this._get(),r=this.get();oy(n,r)||(Dv(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&T7e(this._active)&&Gce(this)}_get(){const t=On.arr(this.source)?this.source.map(X1):a1(X1(this.source));return this.calc(...t)}_start(){this.idle&&!T7e(this._active)&&(this.idle=!1,ro(UJ(this),t=>{t.done=!1}),Wb.skipAnimation?(io.batchedUpdates(()=>this.advance()),Gce(this)):HJ.start(this))}_attach(){let t=1;ro(a1(this.source),n=>{uf(n)&&vk(n,this),Obe(n)&&(n.idle||this._active.add(n),t=Math.max(t,n.priority+1))}),this.priority=t,this._start()}_detach(){ro(a1(this.source),t=>{uf(t)&&Hq(t,this)}),this._active.clear(),Gce(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=a1(this.source).reduce((n,r)=>Math.max(n,(Obe(r)?r.priority:0)+1),0))}}function Lli(e){return e.idle!==!1}function T7e(e){return!e.size||Array.from(e).every(Lli)}function Gce(e){e.idle||(e.idle=!0,ro(UJ(e),t=>{t.done=!0}),jq(e,{type:"idle",parent:e}))}const E7e=(e,...t)=>new gwt(e,t);Wb.assign({createStringInterpolator:Yxt,to:(e,t)=>new gwt(e,t)});function rze(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const _li=["style","children","scrollTop","scrollLeft"],mwt=/^--/;function Nli(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!mwt.test(e)&&!(VF.hasOwnProperty(e)&&VF[e])?t+"px":(""+t).trim()}const R7e={};function Fli(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",r=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=r,l=rze(r,_li),c=Object.values(l),u=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:R7e[d]||(R7e[d]=d.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(let d in i)if(i.hasOwnProperty(d)){const p=Nli(d,i[d]);mwt.test(d)?e.style.setProperty(d,p):e.style[d]=p}u.forEach((d,p)=>{e.setAttribute(d,c[p])}),a!==void 0&&(e.scrollTop=a),s!==void 0&&(e.scrollLeft=s)}let VF={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Wli=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),qli=["Webkit","Ms","Moz","O"];VF=Object.keys(VF).reduce((e,t)=>(qli.forEach(n=>e[Wli(n,t)]=e[t]),e),VF);const Bli=["x","y","z"],jli=/^(matrix|translate|scale|rotate|skew)/,Hli=/^(translate)/,Vli=/^(rotate|skew)/,$ce=(e,t)=>On.num(e)&&e!==0?e+t:e,Z7=(e,t)=>On.arr(e)?e.every(n=>Z7(n,t)):On.num(e)?e===t:parseFloat(e)===t;class Gli extends XJ{constructor(t){let{x:n,y:r,z:i}=t,o=rze(t,Bli);const a=[],s=[];(n||r||i)&&(a.push([n||0,r||0,i||0]),s.push(l=>[`translate3d(${l.map(c=>$ce(c,"px")).join(",")})`,Z7(l,0)])),Fb(o,(l,c)=>{if(c==="transform")a.push([l||""]),s.push(u=>[u,u===""]);else if(jli.test(c)){if(delete o[c],On.und(l))return;const u=Hli.test(c)?"px":Vli.test(c)?"deg":"";a.push(a1(l)),s.push(c==="rotate3d"?([d,p,h,g])=>[`rotate3d(${d},${p},${h},${$ce(g,u)})`,Z7(g,0)]:d=>[`${c}(${d.map(p=>$ce(p,u)).join(",")})`,Z7(d,c.startsWith("scale")?1:0)])}}),a.length&&(o.transform=new $li(a,s)),super(o)}}class $li extends Uxt{constructor(t,n){super(),this._value=null,this.inputs=t,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let t="",n=!0;return ro(this.inputs,(r,i)=>{const o=X1(r[0]),[a,s]=this.transforms[i](On.arr(o)?o:r.map(X1));t+=" "+a,n=n&&s}),n?"none":t}observerAdded(t){t==1&&ro(this.inputs,n=>ro(n,r=>uf(r)&&vk(r,this)))}observerRemoved(t){t==0&&ro(this.inputs,n=>ro(n,r=>uf(r)&&Hq(r,this)))}eventObserved(t){t.type=="change"&&(this._value=null),jq(this,t)}}const Uli=["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","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"],Xli=["scrollTop","scrollLeft"];Wb.assign({batchedUpdates:ql.unstable_batchedUpdates,createStringInterpolator:Yxt,colors:Fsi});const Yli=fli(Uli,{applyAnimatedValues:Fli,createAnimatedStyle:e=>new Gli(e),getComponentProps:e=>rze(e,Xli)}),If=Yli.animated;function r3(){return r3=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r3.apply(this,arguments)}var Kli={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},I7e=function(e,t){return"translate("+e+"px, "+t+"px)"},vwt=b.memo((function(e){var t,n=e.position,r=e.anchor,i=e.children,o=ig(),a=dj(),s=a.animate,l=a.config,c=rAt(),u=c[0],d=c[1],p=b.useRef(!1),h=void 0,g=!1,m=d.width>0&&d.height>0,v=Math.round(n[0]),y=Math.round(n[1]);m&&(r==="top"?(v-=d.width/2,y-=d.height+14):r==="right"?(v+=14,y-=d.height/2):r==="bottom"?(v-=d.width/2,y+=14):r==="left"?(v-=d.width+14,y-=d.height/2):r==="center"&&(v-=d.width/2,y-=d.height/2),h={transform:I7e(v,y)},p.current||(g=!0),p.current=[v,y]);var M=oj({to:h,config:l,immediate:!s||g}),C=r3({},Kli,o.tooltip,{transform:(t=M.transform)!=null?t:I7e(v,y)});return f.jsx(If.div,{ref:u,style:C,children:i})}));vwt.displayName="TooltipWrapper";var Qli=b.memo((function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return f.jsx("span",{style:r3({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})})),Zli=b.memo((function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,l=e.renderContent,c=ig(),u=iAt(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=f.jsxs("div",{style:c.tooltip.basic,children:[a&&f.jsx(Qli,{color:s,style:c.tooltip.chip}),d!==void 0?f.jsxs("span",{children:[n,": ",f.jsx("strong",{children:""+d})]}):n]})}return f.jsx("div",{style:c.tooltip.container,children:t})})),Jli={width:"100%",borderCollapse:"collapse"},eci=b.memo((function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=ig();return i.length?(t=typeof o=="function"?o():f.jsxs("div",{children:[n&&n,f.jsx("table",{style:r3({},Jli,a.tooltip.table),children:f.jsx("tbody",{children:i.map((function(s,l){return f.jsx("tr",{children:s.map((function(c,u){return f.jsx("td",{style:a.tooltip.tableCell,children:c},u)}))},l)}))})})]}),f.jsx("div",{style:a.tooltip.container,children:t})):null}));eci.displayName="TableTooltip";var Ibe=b.memo((function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=ig(),a=dj(),s=a.animate,l=a.config,c=b.useMemo((function(){return r3({},o.crosshair.line,{pointerEvents:"none"})}),[o.crosshair.line]),u=oj({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return f.jsx(If.line,r3({},u,{fill:"none",style:c}))}));Ibe.displayName="CrosshairLine";var tci=b.memo((function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),f.jsxs(f.Fragment,{children:[t&&f.jsx(Ibe,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&f.jsx(Ibe,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})}));tci.displayName="Crosshair";var bwt=b.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Pbe={isVisible:!1,position:[null,null],content:null,anchor:null},ywt=b.createContext(Pbe),nci=function(e){var t=b.useState(Pbe),n=t[0],r=t[1],i=b.useCallback((function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})}),[r]),o=b.useCallback((function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=l.clientX-u.left,p=l.clientY-u.top;c!=="left"&&c!=="right"||(c=d<u.width/2?"right":"left"),r({isVisible:!0,position:[d,p],anchor:c,content:s})}),[e,r]),a=b.useCallback((function(){r(Pbe)}),[r]);return{actions:b.useMemo((function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}}),[i,o,a]),state:n}},Mwt=function(){var e=b.useContext(bwt);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},rci=function(){var e=b.useContext(ywt);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},ici=function(e){return e.isVisible},oci=function(){var e=rci();return ici(e)?f.jsx(vwt,{position:e.position,anchor:e.anchor,children:e.content}):null},aci=function(e){var t=e.container,n=e.children,r=nci(t),i=r.actions,o=r.state;return f.jsx(bwt.Provider,{value:i,children:f.jsx(ywt.Provider,{value:o,children:n})})},Uce,P7e;function sci(){if(P7e)return Uce;P7e=1;function e(){this.__data__=[],this.size=0}return Uce=e,Uce}var Xce,D7e;function aj(){if(D7e)return Xce;D7e=1;function e(t,n){return t===n||t!==t&&n!==n}return Xce=e,Xce}var Yce,k7e;function KJ(){if(k7e)return Yce;k7e=1;var e=aj();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Yce=t,Yce}var Kce,L7e;function lci(){if(L7e)return Kce;L7e=1;var e=KJ(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var s=o.length-1;return a==s?o.pop():n.call(o,a,1),--this.size,!0}return Kce=r,Kce}var Qce,_7e;function cci(){if(_7e)return Qce;_7e=1;var e=KJ();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Qce=t,Qce}var Zce,N7e;function uci(){if(N7e)return Zce;N7e=1;var e=KJ();function t(n){return e(this.__data__,n)>-1}return Zce=t,Zce}var Jce,F7e;function dci(){if(F7e)return Jce;F7e=1;var e=KJ();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return Jce=t,Jce}var eue,W7e;function QJ(){if(W7e)return eue;W7e=1;var e=sci(),t=lci(),n=cci(),r=uci(),i=dci();function o(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,eue=o,eue}var tue,q7e;function pci(){if(q7e)return tue;q7e=1;var e=QJ();function t(){this.__data__=new e,this.size=0}return tue=t,tue}var nue,B7e;function hci(){if(B7e)return nue;B7e=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return nue=e,nue}var rue,j7e;function fci(){if(j7e)return rue;j7e=1;function e(t){return this.__data__.get(t)}return rue=e,rue}var iue,H7e;function gci(){if(H7e)return iue;H7e=1;function e(t){return this.__data__.has(t)}return iue=e,iue}var oue,V7e;function Cwt(){if(V7e)return oue;V7e=1;var e=typeof tx=="object"&&tx&&tx.Object===Object&&tx;return oue=e,oue}var aue,G7e;function i2(){if(G7e)return aue;G7e=1;var e=Cwt(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return aue=n,aue}var sue,$7e;function yk(){if($7e)return sue;$7e=1;var e=i2(),t=e.Symbol;return sue=t,sue}var lue,U7e;function mci(){if(U7e)return lue;U7e=1;var e=yk(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var s=n.call(a,i),l=a[i];try{a[i]=void 0;var c=!0}catch{}var u=r.call(a);return c&&(s?a[i]=l:delete a[i]),u}return lue=o,lue}var cue,X7e;function vci(){if(X7e)return cue;X7e=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return cue=n,cue}var uue,Y7e;function AM(){if(Y7e)return uue;Y7e=1;var e=yk(),t=mci(),n=vci(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?i:r:o&&o in Object(s)?t(s):n(s)}return uue=a,uue}var due,K7e;function o2(){if(K7e)return due;K7e=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return due=e,due}var pue,Q7e;function ZJ(){if(Q7e)return pue;Q7e=1;var e=AM(),t=o2(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(s){if(!t(s))return!1;var l=e(s);return l==r||l==i||l==n||l==o}return pue=a,pue}var hue,Z7e;function bci(){if(Z7e)return hue;Z7e=1;var e=i2(),t=e["__core-js_shared__"];return hue=t,hue}var fue,J7e;function yci(){if(J7e)return fue;J7e=1;var e=bci(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return fue=n,fue}var gue,e$e;function xwt(){if(e$e)return gue;e$e=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return gue=n,gue}var mue,t$e;function Mci(){if(t$e)return mue;t$e=1;var e=ZJ(),t=yci(),n=o2(),r=xwt(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!n(p)||t(p))return!1;var h=e(p)?u:o;return h.test(r(p))}return mue=d,mue}var vue,n$e;function Cci(){if(n$e)return vue;n$e=1;function e(t,n){return t?.[n]}return vue=e,vue}var bue,r$e;function eT(){if(r$e)return bue;r$e=1;var e=Mci(),t=Cci();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return bue=n,bue}var yue,i$e;function ize(){if(i$e)return yue;i$e=1;var e=eT(),t=i2(),n=e(t,"Map");return yue=n,yue}var Mue,o$e;function JJ(){if(o$e)return Mue;o$e=1;var e=eT(),t=e(Object,"create");return Mue=t,Mue}var Cue,a$e;function xci(){if(a$e)return Cue;a$e=1;var e=JJ();function t(){this.__data__=e?e(null):{},this.size=0}return Cue=t,Cue}var xue,s$e;function wci(){if(s$e)return xue;s$e=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return xue=e,xue}var wue,l$e;function Sci(){if(l$e)return wue;l$e=1;var e=JJ(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var a=this.__data__;if(e){var s=a[o];return s===t?void 0:s}return r.call(a,o)?a[o]:void 0}return wue=i,wue}var Sue,c$e;function Aci(){if(c$e)return Sue;c$e=1;var e=JJ(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return Sue=r,Sue}var Aue,u$e;function Oci(){if(u$e)return Aue;u$e=1;var e=JJ(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return Aue=n,Aue}var Oue,d$e;function zci(){if(d$e)return Oue;d$e=1;var e=xci(),t=wci(),n=Sci(),r=Aci(),i=Oci();function o(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Oue=o,Oue}var zue,p$e;function Tci(){if(p$e)return zue;p$e=1;var e=zci(),t=QJ(),n=ize();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return zue=r,zue}var Tue,h$e;function Eci(){if(h$e)return Tue;h$e=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Tue=e,Tue}var Eue,f$e;function eee(){if(f$e)return Eue;f$e=1;var e=Eci();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Eue=t,Eue}var Rue,g$e;function Rci(){if(g$e)return Rue;g$e=1;var e=eee();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Rue=t,Rue}var Iue,m$e;function Ici(){if(m$e)return Iue;m$e=1;var e=eee();function t(n){return e(this,n).get(n)}return Iue=t,Iue}var Pue,v$e;function Pci(){if(v$e)return Pue;v$e=1;var e=eee();function t(n){return e(this,n).has(n)}return Pue=t,Pue}var Due,b$e;function Dci(){if(b$e)return Due;b$e=1;var e=eee();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return Due=t,Due}var kue,y$e;function oze(){if(y$e)return kue;y$e=1;var e=Tci(),t=Rci(),n=Ici(),r=Pci(),i=Dci();function o(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,kue=o,kue}var Lue,M$e;function kci(){if(M$e)return Lue;M$e=1;var e=QJ(),t=ize(),n=oze(),r=200;function i(o,a){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<r-1)return l.push([o,a]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(o,a),this.size=s.size,this}return Lue=i,Lue}var _ue,C$e;function tee(){if(C$e)return _ue;C$e=1;var e=QJ(),t=pci(),n=hci(),r=fci(),i=gci(),o=kci();function a(s){var l=this.__data__=new e(s);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,_ue=a,_ue}var Nue,x$e;function wwt(){if(x$e)return Nue;x$e=1;var e=eT(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Nue=t,Nue}var Fue,w$e;function aze(){if(w$e)return Fue;w$e=1;var e=wwt();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return Fue=t,Fue}var Wue,S$e;function Swt(){if(S$e)return Wue;S$e=1;var e=aze(),t=aj();function n(r,i,o){(o!==void 0&&!t(r[i],o)||o===void 0&&!(i in r))&&e(r,i,o)}return Wue=n,Wue}var que,A$e;function Lci(){if(A$e)return que;A$e=1;function e(t){return function(n,r,i){for(var o=-1,a=Object(n),s=i(n),l=s.length;l--;){var c=s[t?l:++o];if(r(a[c],c,a)===!1)break}return n}}return que=e,que}var Bue,O$e;function Awt(){if(O$e)return Bue;O$e=1;var e=Lci(),t=e();return Bue=t,Bue}var xN={exports:{}};xN.exports;var z$e;function Owt(){return z$e||(z$e=1,(function(e,t){var n=i2(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,p=s?s(d):new c.constructor(d);return c.copy(p),p}e.exports=l})(xN,xN.exports)),xN.exports}var jue,T$e;function zwt(){if(T$e)return jue;T$e=1;var e=i2(),t=e.Uint8Array;return jue=t,jue}var Hue,E$e;function sze(){if(E$e)return Hue;E$e=1;var e=zwt();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return Hue=t,Hue}var Vue,R$e;function Twt(){if(R$e)return Vue;R$e=1;var e=sze();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.length)}return Vue=t,Vue}var Gue,I$e;function Ewt(){if(I$e)return Gue;I$e=1;function e(t,n){var r=-1,i=t.length;for(n||(n=Array(i));++r<i;)n[r]=t[r];return n}return Gue=e,Gue}var $ue,P$e;function _ci(){if(P$e)return $ue;P$e=1;var e=o2(),t=Object.create,n=(function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var o=new r;return r.prototype=void 0,o}})();return $ue=n,$ue}var Uue,D$e;function Rwt(){if(D$e)return Uue;D$e=1;function e(t,n){return function(r){return t(n(r))}}return Uue=e,Uue}var Xue,k$e;function lze(){if(k$e)return Xue;k$e=1;var e=Rwt(),t=e(Object.getPrototypeOf,Object);return Xue=t,Xue}var Yue,L$e;function cze(){if(L$e)return Yue;L$e=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Yue=t,Yue}var Kue,_$e;function Iwt(){if(_$e)return Kue;_$e=1;var e=_ci(),t=lze(),n=cze();function r(i){return typeof i.constructor=="function"&&!n(i)?e(t(i)):{}}return Kue=r,Kue}var Que,N$e;function rg(){if(N$e)return Que;N$e=1;function e(t){return t!=null&&typeof t=="object"}return Que=e,Que}var Zue,F$e;function Nci(){if(F$e)return Zue;F$e=1;var e=AM(),t=rg(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Zue=r,Zue}var Jue,W$e;function nee(){if(W$e)return Jue;W$e=1;var e=Nci(),t=rg(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return Jue=o,Jue}var ede,q$e;function y1(){if(q$e)return ede;q$e=1;var e=Array.isArray;return ede=e,ede}var tde,B$e;function uze(){if(B$e)return tde;B$e=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return tde=t,tde}var nde,j$e;function Mk(){if(j$e)return nde;j$e=1;var e=ZJ(),t=uze();function n(r){return r!=null&&t(r.length)&&!e(r)}return nde=n,nde}var rde,H$e;function Pwt(){if(H$e)return rde;H$e=1;var e=Mk(),t=rg();function n(r){return t(r)&&e(r)}return rde=n,rde}var wN={exports:{}},ide,V$e;function Fci(){if(V$e)return ide;V$e=1;function e(){return!1}return ide=e,ide}wN.exports;var G$e;function ree(){return G$e||(G$e=1,(function(e,t){var n=i2(),r=Fci(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(wN,wN.exports)),wN.exports}var ode,$$e;function dze(){if($$e)return ode;$$e=1;var e=AM(),t=lze(),n=rg(),r="[object Object]",i=Function.prototype,o=Object.prototype,a=i.toString,s=o.hasOwnProperty,l=a.call(Object);function c(u){if(!n(u)||e(u)!=r)return!1;var d=t(u);if(d===null)return!0;var p=s.call(d,"constructor")&&d.constructor;return typeof p=="function"&&p instanceof p&&a.call(p)==l}return ode=c,ode}var ade,U$e;function Wci(){if(U$e)return ade;U$e=1;var e=AM(),t=uze(),n=rg(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",d="[object Object]",p="[object RegExp]",h="[object Set]",g="[object String]",m="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",M="[object Float32Array]",C="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",z="[object Uint8ClampedArray]",O="[object Uint16Array]",T="[object Uint32Array]",I={};I[M]=I[C]=I[x]=I[w]=I[S]=I[A]=I[z]=I[O]=I[T]=!0,I[r]=I[i]=I[v]=I[o]=I[y]=I[a]=I[s]=I[l]=I[c]=I[u]=I[d]=I[p]=I[h]=I[g]=I[m]=!1;function P(N){return n(N)&&t(N.length)&&!!I[e(N)]}return ade=P,ade}var sde,X$e;function Ck(){if(X$e)return sde;X$e=1;function e(t){return function(n){return t(n)}}return sde=e,sde}var SN={exports:{}};SN.exports;var Y$e;function iee(){return Y$e||(Y$e=1,(function(e,t){var n=Cwt(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();e.exports=s})(SN,SN.exports)),SN.exports}var lde,K$e;function pze(){if(K$e)return lde;K$e=1;var e=Wci(),t=Ck(),n=iee(),r=n&&n.isTypedArray,i=r?t(r):e;return lde=i,lde}var cde,Q$e;function Dwt(){if(Q$e)return cde;Q$e=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return cde=e,cde}var ude,Z$e;function hze(){if(Z$e)return ude;Z$e=1;var e=aze(),t=aj(),n=Object.prototype,r=n.hasOwnProperty;function i(o,a,s){var l=o[a];(!(r.call(o,a)&&t(l,s))||s===void 0&&!(a in o))&&e(o,a,s)}return ude=i,ude}var dde,J$e;function xk(){if(J$e)return dde;J$e=1;var e=hze(),t=aze();function n(r,i,o,a){var s=!o;o||(o={});for(var l=-1,c=i.length;++l<c;){var u=i[l],d=a?a(o[u],r[u],u,o,r):void 0;d===void 0&&(d=r[u]),s?t(o,u,d):e(o,u,d)}return o}return dde=n,dde}var pde,e9e;function qci(){if(e9e)return pde;e9e=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return pde=e,pde}var hde,t9e;function oee(){if(t9e)return hde;t9e=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return hde=n,hde}var fde,n9e;function kwt(){if(n9e)return fde;n9e=1;var e=qci(),t=nee(),n=y1(),r=ree(),i=oee(),o=pze(),a=Object.prototype,s=a.hasOwnProperty;function l(c,u){var d=n(c),p=!d&&t(c),h=!d&&!p&&r(c),g=!d&&!p&&!h&&o(c),m=d||p||h||g,v=m?e(c.length,String):[],y=v.length;for(var M in c)(u||s.call(c,M))&&!(m&&(M=="length"||h&&(M=="offset"||M=="parent")||g&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||i(M,y)))&&v.push(M);return v}return fde=l,fde}var gde,r9e;function Bci(){if(r9e)return gde;r9e=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return gde=e,gde}var mde,i9e;function jci(){if(i9e)return mde;i9e=1;var e=o2(),t=cze(),n=Bci(),r=Object.prototype,i=r.hasOwnProperty;function o(a){if(!e(a))return n(a);var s=t(a),l=[];for(var c in a)c=="constructor"&&(s||!i.call(a,c))||l.push(c);return l}return mde=o,mde}var vde,o9e;function sj(){if(o9e)return vde;o9e=1;var e=kwt(),t=jci(),n=Mk();function r(i){return n(i)?e(i,!0):t(i)}return vde=r,vde}var bde,a9e;function Hci(){if(a9e)return bde;a9e=1;var e=xk(),t=sj();function n(r){return e(r,t(r))}return bde=n,bde}var yde,s9e;function Vci(){if(s9e)return yde;s9e=1;var e=Swt(),t=Owt(),n=Twt(),r=Ewt(),i=Iwt(),o=nee(),a=y1(),s=Pwt(),l=ree(),c=ZJ(),u=o2(),d=dze(),p=pze(),h=Dwt(),g=Hci();function m(v,y,M,C,x,w,S){var A=h(v,M),z=h(y,M),O=S.get(z);if(O){e(v,M,O);return}var T=w?w(A,z,M+"",v,y,S):void 0,I=T===void 0;if(I){var P=a(z),N=!P&&l(z),F=!P&&!N&&p(z);T=z,P||N||F?a(A)?T=A:s(A)?T=r(A):N?(I=!1,T=t(z,!0)):F?(I=!1,T=n(z,!0)):T=[]:d(z)||o(z)?(T=A,o(A)?T=g(A):(!u(A)||c(A))&&(T=i(z))):I=!1}I&&(S.set(z,T),x(T,z,C,w,S),S.delete(z)),e(v,M,T)}return yde=m,yde}var Mde,l9e;function Gci(){if(l9e)return Mde;l9e=1;var e=tee(),t=Swt(),n=Awt(),r=Vci(),i=o2(),o=sj(),a=Dwt();function s(l,c,u,d,p){l!==c&&n(c,function(h,g){if(p||(p=new e),i(h))r(l,c,g,u,s,d,p);else{var m=d?d(a(l,g),h,g+"",l,c,p):void 0;m===void 0&&(m=h),t(l,g,m)}},o)}return Mde=s,Mde}var Cde,c9e;function aee(){if(c9e)return Cde;c9e=1;function e(t){return t}return Cde=e,Cde}var xde,u9e;function $ci(){if(u9e)return xde;u9e=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return xde=e,xde}var wde,d9e;function Lwt(){if(d9e)return wde;d9e=1;var e=$ci(),t=Math.max;function n(r,i,o){return i=t(i===void 0?r.length-1:i,0),function(){for(var a=arguments,s=-1,l=t(a.length-i,0),c=Array(l);++s<l;)c[s]=a[i+s];s=-1;for(var u=Array(i+1);++s<i;)u[s]=a[s];return u[i]=o(c),e(r,this,u)}}return wde=n,wde}var Sde,p9e;function Uci(){if(p9e)return Sde;p9e=1;function e(t){return function(){return t}}return Sde=e,Sde}var Ade,h9e;function Xci(){if(h9e)return Ade;h9e=1;var e=Uci(),t=wwt(),n=aee(),r=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return Ade=r,Ade}var Ode,f9e;function Yci(){if(f9e)return Ode;f9e=1;var e=800,t=16,n=Date.now;function r(i){var o=0,a=0;return function(){var s=n(),l=t-(s-a);if(a=s,l>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return Ode=r,Ode}var zde,g9e;function _wt(){if(g9e)return zde;g9e=1;var e=Xci(),t=Yci(),n=t(e);return zde=n,zde}var Tde,m9e;function fze(){if(m9e)return Tde;m9e=1;var e=aee(),t=Lwt(),n=_wt();function r(i,o){return n(t(i,o,e),i+"")}return Tde=r,Tde}var Ede,v9e;function Nwt(){if(v9e)return Ede;v9e=1;var e=aj(),t=Mk(),n=oee(),r=o2();function i(o,a,s){if(!r(s))return!1;var l=typeof a;return(l=="number"?t(s)&&n(a,s.length):l=="string"&&a in s)?e(s[a],o):!1}return Ede=i,Ede}var Rde,b9e;function Kci(){if(b9e)return Rde;b9e=1;var e=fze(),t=Nwt();function n(r){return e(function(i,o){var a=-1,s=o.length,l=s>1?o[s-1]:void 0,c=s>2?o[2]:void 0;for(l=r.length>3&&typeof l=="function"?(s--,l):void 0,c&&t(o[0],o[1],c)&&(l=s<3?void 0:l,s=1),i=Object(i);++a<s;){var u=o[a];u&&r(i,u,a,l)}return i})}return Rde=n,Rde}var Ide,y9e;function Qci(){if(y9e)return Ide;y9e=1;var e=Gci(),t=Kci(),n=t(function(r,i,o){e(r,i,o)});return Ide=n,Ide}var Zci=Qci();const Jci=qn(Zci);var Pde,M9e;function see(){if(M9e)return Pde;M9e=1;var e=AM(),t=rg(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Pde=r,Pde}var Dde,C9e;function gze(){if(C9e)return Dde;C9e=1;var e=y1(),t=see(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){if(e(o))return!1;var s=typeof o;return s=="number"||s=="symbol"||s=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||a!=null&&o in Object(a)}return Dde=i,Dde}var kde,x9e;function eui(){if(x9e)return kde;x9e=1;var e=oze(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var a=arguments,s=i?i.apply(this,a):a[0],l=o.cache;if(l.has(s))return l.get(s);var c=r.apply(this,a);return o.cache=l.set(s,c)||l,c};return o.cache=new(n.Cache||e),o}return n.Cache=e,kde=n,kde}var Lde,w9e;function tui(){if(w9e)return Lde;w9e=1;var e=eui(),t=500;function n(r){var i=e(r,function(a){return o.size===t&&o.clear(),a}),o=i.cache;return i}return Lde=n,Lde}var _de,S9e;function nui(){if(S9e)return _de;S9e=1;var e=tui(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(a,s,l,c){o.push(l?c.replace(n,"$1"):s||a)}),o});return _de=r,_de}var Nde,A9e;function lee(){if(A9e)return Nde;A9e=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return Nde=e,Nde}var Fde,O9e;function rui(){if(O9e)return Fde;O9e=1;var e=yk(),t=lee(),n=y1(),r=see(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function a(s){if(typeof s=="string")return s;if(n(s))return t(s,a)+"";if(r(s))return o?o.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return Fde=a,Fde}var Wde,z9e;function iui(){if(z9e)return Wde;z9e=1;var e=rui();function t(n){return n==null?"":e(n)}return Wde=t,Wde}var qde,T9e;function wk(){if(T9e)return qde;T9e=1;var e=y1(),t=gze(),n=nui(),r=iui();function i(o,a){return e(o)?o:t(o,a)?[o]:n(r(o))}return qde=i,qde}var Bde,E9e;function Sk(){if(E9e)return Bde;E9e=1;var e=see();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Bde=t,Bde}var jde,R9e;function lj(){if(R9e)return jde;R9e=1;var e=wk(),t=Sk();function n(r,i){i=e(i,r);for(var o=0,a=i.length;r!=null&&o<a;)r=r[t(i[o++])];return o&&o==a?r:void 0}return jde=n,jde}var Hde,I9e;function Fwt(){if(I9e)return Hde;I9e=1;var e=lj();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return Hde=t,Hde}var oui=Fwt();const Bx=qn(oui);var Vde,P9e;function Wwt(){if(P9e)return Vde;P9e=1;var e=hze(),t=wk(),n=oee(),r=o2(),i=Sk();function o(a,s,l,c){if(!r(a))return a;s=t(s,a);for(var u=-1,d=s.length,p=d-1,h=a;h!=null&&++u<d;){var g=i(s[u]),m=l;if(g==="__proto__"||g==="constructor"||g==="prototype")return a;if(u!=p){var v=h[g];m=c?c(v,g,h):void 0,m===void 0&&(m=r(v)?v:n(s[u+1])?[]:{})}e(h,g,m),h=h[g]}return a}return Vde=o,Vde}var Gde,D9e;function aui(){if(D9e)return Gde;D9e=1;var e=Wwt();function t(n,r,i){return n==null?n:e(n,r,i)}return Gde=t,Gde}var sui=aui();const $de=qn(sui);function cee(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function mze(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ak(){}var i3=.7,$P=1/i3,qI="\\s*([+-]?\\d+)\\s*",Xq="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",xb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lui=/^#([0-9a-f]{3,8})$/,cui=new RegExp("^rgb\\("+[qI,qI,qI]+"\\)$"),uui=new RegExp("^rgb\\("+[xb,xb,xb]+"\\)$"),dui=new RegExp("^rgba\\("+[qI,qI,qI,Xq]+"\\)$"),pui=new RegExp("^rgba\\("+[xb,xb,xb,Xq]+"\\)$"),hui=new RegExp("^hsl\\("+[Xq,xb,xb]+"\\)$"),fui=new RegExp("^hsla\\("+[Xq,xb,xb,Xq]+"\\)$"),k9e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};cee(Ak,Yq,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:L9e,formatHex:L9e,formatHsl:gui,formatRgb:_9e,toString:_9e});function L9e(){return this.rgb().formatHex()}function gui(){return Bwt(this).formatHsl()}function _9e(){return this.rgb().formatRgb()}function Yq(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=lui.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?N9e(t):n===3?new s1(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?gG(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?gG(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=cui.exec(e))?new s1(t[1],t[2],t[3],1):(t=uui.exec(e))?new s1(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=dui.exec(e))?gG(t[1],t[2],t[3],t[4]):(t=pui.exec(e))?gG(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hui.exec(e))?q9e(t[1],t[2]/100,t[3]/100,1):(t=fui.exec(e))?q9e(t[1],t[2]/100,t[3]/100,t[4]):k9e.hasOwnProperty(e)?N9e(k9e[e]):e==="transparent"?new s1(NaN,NaN,NaN,0):null}function N9e(e){return new s1(e>>16&255,e>>8&255,e&255,1)}function gG(e,t,n,r){return r<=0&&(e=t=n=NaN),new s1(e,t,n,r)}function qwt(e){return e instanceof Ak||(e=Yq(e)),e?(e=e.rgb(),new s1(e.r,e.g,e.b,e.opacity)):new s1}function UP(e,t,n,r){return arguments.length===1?qwt(e):new s1(e,t,n,r??1)}function s1(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}cee(s1,UP,mze(Ak,{brighter:function(e){return e=e==null?$P:Math.pow($P,e),new s1(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?i3:Math.pow(i3,e),new s1(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:F9e,formatHex:F9e,formatRgb:W9e,toString:W9e}));function F9e(){return"#"+Ude(this.r)+Ude(this.g)+Ude(this.b)}function W9e(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Ude(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function q9e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $v(e,t,n,r)}function Bwt(e){if(e instanceof $v)return new $v(e.h,e.s,e.l,e.opacity);if(e instanceof Ak||(e=Yq(e)),!e)return new $v;if(e instanceof $v)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new $v(a,s,l,e.opacity)}function mui(e,t,n,r){return arguments.length===1?Bwt(e):new $v(e,t,n,r??1)}function $v(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cee($v,mui,mze(Ak,{brighter:function(e){return e=e==null?$P:Math.pow($P,e),new $v(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?i3:Math.pow(i3,e),new $v(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new s1(Xde(e>=240?e-240:e+120,i,r),Xde(e,i,r),Xde(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Xde(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const vui=Math.PI/180,bui=180/Math.PI;var jwt=-.14861,vze=1.78277,bze=-.29227,uee=-.90649,Kq=1.97294,B9e=Kq*uee,j9e=Kq*vze,H9e=vze*bze-uee*jwt;function yui(e){if(e instanceof sz)return new sz(e.h,e.s,e.l,e.opacity);e instanceof s1||(e=qwt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(H9e*r+B9e*t-j9e*n)/(H9e+B9e-j9e),o=r-i,a=(Kq*(n-i)-bze*o)/uee,s=Math.sqrt(a*a+o*o)/(Kq*i*(1-i)),l=s?Math.atan2(a,o)*bui-120:NaN;return new sz(l<0?l+360:l,s,i,e.opacity)}function qb(e,t,n,r){return arguments.length===1?yui(e):new sz(e,t,n,r??1)}function sz(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cee(sz,qb,mze(Ak,{brighter:function(e){return e=e==null?$P:Math.pow($P,e),new sz(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?i3:Math.pow(i3,e),new sz(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*vui,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new s1(255*(t+n*(jwt*r+vze*i)),255*(t+n*(bze*r+uee*i)),255*(t+n*(Kq*r)),this.opacity)}}));function Mui(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Cui(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Mui((n-r/t)*t,a,i,o,s)}}const dee=e=>()=>e;function Hwt(e,t){return function(n){return e+n*t}}function xui(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function wui(e,t){var n=t-e;return n?Hwt(e,n>180||n<-180?n-360*Math.round(n/360):n):dee(isNaN(e)?t:e)}function Sui(e){return(e=+e)==1?BI:function(t,n){return n-t?xui(t,n,e):dee(isNaN(t)?n:t)}}function BI(e,t){var n=t-e;return n?Hwt(e,n):dee(isNaN(e)?t:e)}const V9e=(function e(t){var n=Sui(t);function r(i,o){var a=n((i=UP(i)).r,(o=UP(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=BI(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r})(1);function Aui(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=UP(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=o(l),s+""}}}var Oui=Aui(Cui);function zui(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function Tui(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Eui(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=yze(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Rui(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function hX(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Iui(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=yze(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Dbe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yde=new RegExp(Dbe.source,"g");function Pui(e){return function(){return e}}function Dui(e){return function(t){return e(t)+""}}function kui(e,t){var n=Dbe.lastIndex=Yde.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Dbe.exec(e))&&(i=Yde.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:hX(r,i)})),n=Yde.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?Dui(l[0].x):Pui(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function yze(e,t){var n=typeof t,r;return t==null||n==="boolean"?dee(t):(n==="number"?hX:n==="string"?(r=Yq(t))?(t=r,V9e):kui:t instanceof Yq?V9e:t instanceof Date?Rui:Tui(t)?zui:Array.isArray(t)?Eui:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Iui:hX)(e,t)}function Lui(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Vwt(e){return(function t(n){n=+n;function r(i,o){var a=e((i=qb(i)).h,(o=qb(o)).h),s=BI(i.s,o.s),l=BI(i.l,o.l),c=BI(i.opacity,o.opacity);return function(u){return i.h=a(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r})(1)}Vwt(wui);var Mze=Vwt(BI),Kde,G9e;function _ui(){if(G9e)return Kde;G9e=1;var e=AM(),t=y1(),n=rg(),r="[object String]";function i(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return Kde=i,Kde}var Nui=_ui();const Fui=qn(Nui);var Qde,$9e;function Gwt(){if($9e)return Qde;$9e=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Qde=e,Qde}var Wui=Gwt();const li=qn(Wui);y1();function $wt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Cze(e){let t=e,n=e;e.length===1&&(t=(a,s)=>e(a)-s,n=qui(e));function r(a,s,l,c){for(l==null&&(l=0),c==null&&(c=a.length);l<c;){const u=l+c>>>1;n(a[u],s)<0?l=u+1:c=u}return l}function i(a,s,l,c){for(l==null&&(l=0),c==null&&(c=a.length);l<c;){const u=l+c>>>1;n(a[u],s)>0?c=u:l=u+1}return l}function o(a,s,l,c){l==null&&(l=0),c==null&&(c=a.length);const u=r(a,s,l,c-1);return u>l&&t(a[u-1],s)>-t(a[u],s)?u-1:u}return{left:r,center:o,right:i}}function qui(e){return(t,n)=>$wt(e(t),n)}function Bui(e){return e===null?NaN:+e}const jui=Cze($wt),Hui=jui.right;Cze(Bui).center;var kbe=Math.sqrt(50),Lbe=Math.sqrt(10),_be=Math.sqrt(2);function Nbe(e,t,n){var r,i=-1,o,a,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),(s=Uwt(e,t,n))===0||!isFinite(s))return[];if(s>0){let l=Math.round(e/s),c=Math.round(t/s);for(l*s<e&&++l,c*s>t&&--c,a=new Array(o=c-l+1);++i<o;)a[i]=(l+i)*s}else{s=-s;let l=Math.round(e*s),c=Math.round(t*s);for(l/s<e&&++l,c/s>t&&--c,a=new Array(o=c-l+1);++i<o;)a[i]=(l+i)/s}return r&&a.reverse(),a}function Uwt(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=kbe?10:o>=Lbe?5:o>=_be?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=kbe?10:o>=Lbe?5:o>=_be?2:1)}function Fbe(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=kbe?i*=10:o>=Lbe?i*=5:o>=_be&&(i*=2),t<e?-i:i}function Vui(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function tT(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const U9e=Symbol("implicit");function OO(){var e=new Map,t=[],n=[],r=U9e;function i(o){var a=o+"",s=e.get(a);if(!s){if(r!==U9e)return r;e.set(a,s=t.push(o))}return n[(s-1)%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Map;for(const a of o){const s=a+"";e.has(s)||e.set(s,t.push(a))}return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return OO(t,n).unknown(r)},tT.apply(i,arguments),i}function xze(){var e=OO().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var p=t().length,h=i<r,g=h?i:r,m=h?r:i;o=(m-g)/Math.max(1,p-l+c*2),s&&(o=Math.floor(o)),g+=(m-g-o*(p-l))*u,a=o*(1-l),s&&(g=Math.round(g),a=Math.round(a));var v=Vui(p).map(function(y){return g+o*y});return n(h?v.reverse():v)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([r,i]=p,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(p){return[r,i]=p,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(l=Math.min(1,c=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(c=+p,d()):c},e.align=function(p){return arguments.length?(u=Math.max(0,Math.min(1,p)),d()):u},e.copy=function(){return xze(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},tT.apply(d(),arguments)}function Xwt(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Xwt(t())},e}function Gui(){return Xwt(xze.apply(null,arguments).paddingInner(1))}function $ui(e){return function(){return e}}function Uui(e){return+e}var X9e=[0,1];function GR(e){return e}function Wbe(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:$ui(isNaN(t)?NaN:.5)}function Xui(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Yui(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Wbe(i,r),o=n(a,o)):(r=Wbe(r,i),o=n(o,a)),function(s){return o(r(s))}}function Kui(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Wbe(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Hui(e,s,1,r)-1;return o[l](i[l](s))}}function pee(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function wze(){var e=X9e,t=X9e,n=yze,r,i,o,a=GR,s,l,c;function u(){var p=Math.min(e.length,t.length);return a!==GR&&(a=Xui(e[0],e[p-1])),s=p>2?Kui:Yui,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?o:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(i((c||(c=s(t,e.map(r),hX)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Uui),u()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),u()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=Lui,u()},d.clamp=function(p){return arguments.length?(a=p?!0:GR,u()):a!==GR},d.interpolate=function(p){return arguments.length?(n=p,u()):n},d.unknown=function(p){return arguments.length?(o=p,d):o},function(p,h){return r=p,i=h,u()}}function Ywt(){return wze()(GR,GR)}function Qui(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function fX(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function XP(e){return e=fX(Math.abs(e)),e?e[1]:NaN}function Zui(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Jui(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var edi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gX(e){if(!(t=edi.exec(e)))throw new Error("invalid format: "+e);var t;return new Sze({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}gX.prototype=Sze.prototype;function Sze(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Sze.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function tdi(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Kwt;function ndi(e,t){var n=fX(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Kwt=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+fX(e,Math.max(0,t+o-1))[0]}function Y9e(e,t){var n=fX(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const K9e={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Qui,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Y9e(e*100,t)},r:Y9e,s:ndi,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Q9e(e){return e}var Z9e=Array.prototype.map,J9e=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rdi(e){var t=e.grouping===void 0||e.thousands===void 0?Q9e:Zui(Z9e.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal+"",o=e.numerals===void 0?Q9e:Jui(Z9e.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=gX(d);var p=d.fill,h=d.align,g=d.sign,m=d.symbol,v=d.zero,y=d.width,M=d.comma,C=d.precision,x=d.trim,w=d.type;w==="n"?(M=!0,w="g"):K9e[w]||(C===void 0&&(C=12),x=!0,w="g"),(v||p==="0"&&h==="=")&&(v=!0,p="0",h="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",A=m==="$"?r:/[%p]/.test(w)?a:"",z=K9e[w],O=/[defgprs%]/.test(w);C=C===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function T(I){var P=S,N=A,F,L,W;if(w==="c")N=z(I)+N,I="";else{I=+I;var H=I<0||1/I<0;if(I=isNaN(I)?l:z(Math.abs(I),C),x&&(I=tdi(I)),H&&+I==0&&g!=="+"&&(H=!1),P=(H?g==="("?g:s:g==="-"||g==="("?"":g)+P,N=(w==="s"?J9e[8+Kwt/3]:"")+N+(H&&g==="("?")":""),O){for(F=-1,L=I.length;++F<L;)if(W=I.charCodeAt(F),48>W||W>57){N=(W===46?i+I.slice(F+1):I.slice(F))+N,I=I.slice(0,F);break}}}M&&!v&&(I=t(I,1/0));var j=P.length+I.length+N.length,G=j<y?new Array(y-j+1).join(p):"";switch(M&&v&&(I=t(G+I,G.length?y-N.length:1/0),G=""),h){case"<":I=P+I+N+G;break;case"=":I=P+G+I+N;break;case"^":I=G.slice(0,j=G.length>>1)+P+I+N+G.slice(j);break;default:I=G+P+I+N;break}return o(I)}return T.toString=function(){return d+""},T}function u(d,p){var h=c((d=gX(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(XP(p)/3)))*3,m=Math.pow(10,-g),v=J9e[8+g/3];return function(y){return h(m*y)+v}}return{format:c,formatPrefix:u}}var mG,cj,Qwt;idi({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function idi(e){return mG=rdi(e),cj=mG.format,Qwt=mG.formatPrefix,mG}function odi(e){return Math.max(0,-XP(Math.abs(e)))}function adi(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(XP(t)/3)))*3-XP(Math.abs(e)))}function sdi(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,XP(t)-XP(e))+1}function ldi(e,t,n,r){var i=Fbe(e,t,n),o;switch(r=gX(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=adi(i,a))&&(r.precision=o),Qwt(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=sdi(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=odi(i))&&(r.precision=o-(r.type==="%")*2);break}}return cj(r)}function Zwt(e){var t=e.domain;return e.ticks=function(n){var r=t();return Nbe(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return ldi(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=Uwt(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Jwt(){var e=Ywt();return e.copy=function(){return pee(e,Jwt())},tT.apply(e,arguments),Zwt(e)}function eSt(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function eUe(e){return Math.log(e)}function tUe(e){return Math.exp(e)}function cdi(e){return-Math.log(-e)}function udi(e){return-Math.exp(-e)}function ddi(e){return isFinite(e)?+("1e"+e):e<0?0:e}function pdi(e){return e===10?ddi:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function hdi(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function nUe(e){return function(t){return-e(-t)}}function fdi(e){var t=e(eUe,tUe),n=t.domain,r=10,i,o;function a(){return i=hdi(r),o=pdi(r),n()[0]<0?(i=nUe(i),o=nUe(o),e(cdi,udi)):e(eUe,tUe),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=function(s){var l=n(),c=l[0],u=l[l.length-1],d;(d=u<c)&&(p=c,c=u,u=p);var p=i(c),h=i(u),g,m,v,y=s==null?10:+s,M=[];if(!(r%1)&&h-p<y){if(p=Math.floor(p),h=Math.ceil(h),c>0){for(;p<=h;++p)for(m=1,g=o(p);m<r;++m)if(v=g*m,!(v<c)){if(v>u)break;M.push(v)}}else for(;p<=h;++p)for(m=r-1,g=o(p);m>=1;--m)if(v=g*m,!(v<c)){if(v>u)break;M.push(v)}M.length*2<y&&(M=Nbe(c,u,y))}else M=Nbe(p,h,Math.min(h-p,y)).map(o);return d?M.reverse():M},t.tickFormat=function(s,l){if(l==null&&(l=r===10?".0e":","),typeof l!="function"&&(l=cj(l)),s===1/0)return l;s==null&&(s=10);var c=Math.max(1,r*s/t.ticks().length);return function(u){var d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=function(){return n(eSt(n(),{floor:function(s){return o(Math.floor(i(s)))},ceil:function(s){return o(Math.ceil(i(s)))}}))},t}function tSt(){var e=fdi(wze()).domain([1,10]);return e.copy=function(){return pee(e,tSt()).base(e.base())},tT.apply(e,arguments),e}function rUe(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function iUe(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gdi(e){var t=1,n=e(rUe(t),iUe(t));return n.constant=function(r){return arguments.length?e(rUe(t=+r),iUe(t)):t},Zwt(n)}function nSt(){var e=gdi(wze());return e.copy=function(){return pee(e,nSt()).constant(e.constant())},tT.apply(e,arguments)}var Zde=new Date,Jde=new Date;function Ju(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return Ju(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return Zde.setTime(+o),Jde.setTime(+a),e(Zde),e(Jde),Math.floor(n(Zde,Jde))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var mX=Ju(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});mX.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ju(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):mX};mX.range;const Oy=1e3,Sf=Oy*60,zy=Sf*60,o3=zy*24,Aze=o3*7,oUe=o3*30,e0e=o3*365;var zO=Ju(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Oy)},function(e,t){return(t-e)/Oy},function(e){return e.getUTCSeconds()});zO.range;var Oze=Ju(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oy)},function(e,t){e.setTime(+e+t*Sf)},function(e,t){return(t-e)/Sf},function(e){return e.getMinutes()});Oze.range;var zze=Ju(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oy-e.getMinutes()*Sf)},function(e,t){e.setTime(+e+t*zy)},function(e,t){return(t-e)/zy},function(e){return e.getHours()});zze.range;var Tze=Ju(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sf)/o3,e=>e.getDate()-1);Tze.range;function nT(e){return Ju(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Sf)/Aze})}var Eze=nT(0),mdi=nT(1),vdi=nT(2),bdi=nT(3),ydi=nT(4),Mdi=nT(5),Cdi=nT(6);Eze.range;mdi.range;vdi.range;bdi.range;ydi.range;Mdi.range;Cdi.range;var Rze=Ju(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});Rze.range;var hee=Ju(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});hee.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ju(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};hee.range;var Ize=Ju(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Sf)},function(e,t){return(t-e)/Sf},function(e){return e.getUTCMinutes()});Ize.range;var Pze=Ju(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*zy)},function(e,t){return(t-e)/zy},function(e){return e.getUTCHours()});Pze.range;var Dze=Ju(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/o3},function(e){return e.getUTCDate()-1});Dze.range;function rT(e){return Ju(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/Aze})}var kze=rT(0),xdi=rT(1),wdi=rT(2),Sdi=rT(3),Adi=rT(4),Odi=rT(5),zdi=rT(6);kze.range;xdi.range;wdi.range;Sdi.range;Adi.range;Odi.range;zdi.range;var Lze=Ju(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});Lze.range;var fee=Ju(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});fee.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ju(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};fee.range;function rSt(e,t,n,r,i,o){const a=[[zO,1,Oy],[zO,5,5*Oy],[zO,15,15*Oy],[zO,30,30*Oy],[o,1,Sf],[o,5,5*Sf],[o,15,15*Sf],[o,30,30*Sf],[i,1,zy],[i,3,3*zy],[i,6,6*zy],[i,12,12*zy],[r,1,o3],[r,2,2*o3],[n,1,Aze],[t,1,oUe],[t,3,3*oUe],[e,1,e0e]];function s(c,u,d){const p=u<c;p&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),g=h?h.range(c,+u+1):[];return p?g.reverse():g}function l(c,u,d){const p=Math.abs(u-c)/d,h=Cze(([,,v])=>v).right(a,p);if(h===a.length)return e.every(Fbe(c/e0e,u/e0e,d));if(h===0)return mX.every(Math.max(Fbe(c,u,d),1));const[g,m]=a[p/a[h-1][2]<a[h][2]/p?h-1:h];return g.every(m)}return[s,l]}const[Tdi,Edi]=rSt(fee,Lze,kze,Dze,Pze,Ize),[Rdi,Idi]=rSt(hee,Rze,Eze,Tze,zze,Oze);var t0e=new Date,n0e=new Date;function nu(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return nu(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return t0e.setTime(+o),n0e.setTime(+a),e(t0e),e(n0e),Math.floor(n(t0e,n0e))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var Qq=nu(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Qq.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?nu(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Qq};Qq.range;var vX=1e3,a3=6e4,bX=36e5,iSt=864e5,oSt=6048e5,qbe=nu(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*vX)},function(e,t){return(t-e)/vX},function(e){return e.getUTCSeconds()});qbe.range;var aSt=nu(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*vX)},function(e,t){e.setTime(+e+t*a3)},function(e,t){return(t-e)/a3},function(e){return e.getMinutes()});aSt.range;var sSt=nu(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*vX-e.getMinutes()*a3)},function(e,t){e.setTime(+e+t*bX)},function(e,t){return(t-e)/bX},function(e){return e.getHours()});sSt.range;var _ze=nu(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*a3)/iSt},function(e){return e.getDate()-1});_ze.range;function iT(e){return nu(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*a3)/oSt})}var yX=iT(0),Zq=iT(1),lSt=iT(2),cSt=iT(3),s3=iT(4),uSt=iT(5),dSt=iT(6);yX.range;Zq.range;lSt.range;cSt.range;s3.range;uSt.range;dSt.range;var pSt=nu(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});pSt.range;var pw=nu(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});pw.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:nu(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};pw.range;var hSt=nu(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*a3)},function(e,t){return(t-e)/a3},function(e){return e.getUTCMinutes()});hSt.range;var fSt=nu(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*bX)},function(e,t){return(t-e)/bX},function(e){return e.getUTCHours()});fSt.range;var Nze=nu(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/iSt},function(e){return e.getUTCDate()-1});Nze.range;function oT(e){return nu(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/oSt})}var MX=oT(0),Jq=oT(1),gSt=oT(2),mSt=oT(3),l3=oT(4),vSt=oT(5),bSt=oT(6);MX.range;Jq.range;gSt.range;mSt.range;l3.range;vSt.range;bSt.range;var ySt=nu(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});ySt.range;var hw=nu(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});hw.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:nu(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};hw.range;function r0e(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function i0e(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function $_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Pdi(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=U_(i),u=X_(i),d=U_(o),p=X_(o),h=U_(a),g=X_(a),m=U_(s),v=X_(s),y=U_(l),M=X_(l),C={a:H,A:j,b:G,B:q,c:null,d:dUe,e:dUe,f:t0i,g:d0i,G:h0i,H:Zdi,I:Jdi,j:e0i,L:MSt,m:n0i,M:r0i,p:$,q:U,Q:fUe,s:gUe,S:i0i,u:o0i,U:a0i,V:s0i,w:l0i,W:c0i,x:null,X:null,y:u0i,Y:p0i,Z:f0i,"%":hUe},x={a:X,A:Q,b:re,B:ee,c:null,d:pUe,e:pUe,f:b0i,g:T0i,G:R0i,H:g0i,I:m0i,j:v0i,L:xSt,m:y0i,M:M0i,p:se,q:pe,Q:fUe,s:gUe,S:C0i,u:x0i,U:w0i,V:S0i,w:A0i,W:O0i,x:null,X:null,y:z0i,Y:E0i,Z:I0i,"%":hUe},w={a:T,A:I,b:P,B:N,c:F,d:cUe,e:cUe,f:Xdi,g:lUe,G:sUe,H:uUe,I:uUe,j:Vdi,L:Udi,m:Hdi,M:Gdi,p:O,q:jdi,Q:Kdi,s:Qdi,S:$di,u:Ndi,U:Fdi,V:Wdi,w:_di,W:qdi,x:L,X:W,y:lUe,Y:sUe,Z:Bdi,"%":Ydi};C.x=S(n,C),C.X=S(r,C),C.c=S(t,C),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x);function S(te,ce){return function(oe){var ae=[],ne=-1,le=0,he=te.length,be,me,Me;for(oe instanceof Date||(oe=new Date(+oe));++ne<he;)te.charCodeAt(ne)===37&&(ae.push(te.slice(le,ne)),(me=aUe[be=te.charAt(++ne)])!=null?be=te.charAt(++ne):me=be==="e"?" ":"0",(Me=ce[be])&&(be=Me(oe,me)),ae.push(be),le=ne+1);return ae.push(te.slice(le,ne)),ae.join("")}}function A(te,ce){return function(oe){var ae=$_(1900,void 0,1),ne=z(ae,te,oe+="",0),le,he;if(ne!=oe.length)return null;if("Q"in ae)return new Date(ae.Q);if("s"in ae)return new Date(ae.s*1e3+("L"in ae?ae.L:0));if(ce&&!("Z"in ae)&&(ae.Z=0),"p"in ae&&(ae.H=ae.H%12+ae.p*12),ae.m===void 0&&(ae.m="q"in ae?ae.q:0),"V"in ae){if(ae.V<1||ae.V>53)return null;"w"in ae||(ae.w=1),"Z"in ae?(le=i0e($_(ae.y,0,1)),he=le.getUTCDay(),le=he>4||he===0?Jq.ceil(le):Jq(le),le=Nze.offset(le,(ae.V-1)*7),ae.y=le.getUTCFullYear(),ae.m=le.getUTCMonth(),ae.d=le.getUTCDate()+(ae.w+6)%7):(le=r0e($_(ae.y,0,1)),he=le.getDay(),le=he>4||he===0?Zq.ceil(le):Zq(le),le=_ze.offset(le,(ae.V-1)*7),ae.y=le.getFullYear(),ae.m=le.getMonth(),ae.d=le.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),he="Z"in ae?i0e($_(ae.y,0,1)).getUTCDay():r0e($_(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+ae.W*7-(he+5)%7:ae.w+ae.U*7-(he+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,i0e(ae)):r0e(ae)}}function z(te,ce,oe,ae){for(var ne=0,le=ce.length,he=oe.length,be,me;ne<le;){if(ae>=he)return-1;if(be=ce.charCodeAt(ne++),be===37){if(be=ce.charAt(ne++),me=w[be in aUe?ce.charAt(ne++):be],!me||(ae=me(te,oe,ae))<0)return-1}else if(be!=oe.charCodeAt(ae++))return-1}return ae}function O(te,ce,oe){var ae=c.exec(ce.slice(oe));return ae?(te.p=u.get(ae[0].toLowerCase()),oe+ae[0].length):-1}function T(te,ce,oe){var ae=h.exec(ce.slice(oe));return ae?(te.w=g.get(ae[0].toLowerCase()),oe+ae[0].length):-1}function I(te,ce,oe){var ae=d.exec(ce.slice(oe));return ae?(te.w=p.get(ae[0].toLowerCase()),oe+ae[0].length):-1}function P(te,ce,oe){var ae=y.exec(ce.slice(oe));return ae?(te.m=M.get(ae[0].toLowerCase()),oe+ae[0].length):-1}function N(te,ce,oe){var ae=m.exec(ce.slice(oe));return ae?(te.m=v.get(ae[0].toLowerCase()),oe+ae[0].length):-1}function F(te,ce,oe){return z(te,t,ce,oe)}function L(te,ce,oe){return z(te,n,ce,oe)}function W(te,ce,oe){return z(te,r,ce,oe)}function H(te){return a[te.getDay()]}function j(te){return o[te.getDay()]}function G(te){return l[te.getMonth()]}function q(te){return s[te.getMonth()]}function $(te){return i[+(te.getHours()>=12)]}function U(te){return 1+~~(te.getMonth()/3)}function X(te){return a[te.getUTCDay()]}function Q(te){return o[te.getUTCDay()]}function re(te){return l[te.getUTCMonth()]}function ee(te){return s[te.getUTCMonth()]}function se(te){return i[+(te.getUTCHours()>=12)]}function pe(te){return 1+~~(te.getUTCMonth()/3)}return{format:function(te){var ce=S(te+="",C);return ce.toString=function(){return te},ce},parse:function(te){var ce=A(te+="",!1);return ce.toString=function(){return te},ce},utcFormat:function(te){var ce=S(te+="",x);return ce.toString=function(){return te},ce},utcParse:function(te){var ce=A(te+="",!0);return ce.toString=function(){return te},ce}}}var aUe={"-":"",_:" ",0:"0"},ed=/^\s*\d+/,Ddi=/^%/,kdi=/[\\^$*+?|[\]().{}]/g;function Ia(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Ldi(e){return e.replace(kdi,"\\$&")}function U_(e){return new RegExp("^(?:"+e.map(Ldi).join("|")+")","i")}function X_(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function _di(e,t,n){var r=ed.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ndi(e,t,n){var r=ed.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Fdi(e,t,n){var r=ed.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Wdi(e,t,n){var r=ed.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function qdi(e,t,n){var r=ed.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function sUe(e,t,n){var r=ed.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lUe(e,t,n){var r=ed.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Bdi(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function jdi(e,t,n){var r=ed.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Hdi(e,t,n){var r=ed.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function cUe(e,t,n){var r=ed.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Vdi(e,t,n){var r=ed.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function uUe(e,t,n){var r=ed.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Gdi(e,t,n){var r=ed.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function $di(e,t,n){var r=ed.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Udi(e,t,n){var r=ed.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Xdi(e,t,n){var r=ed.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ydi(e,t,n){var r=Ddi.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Kdi(e,t,n){var r=ed.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Qdi(e,t,n){var r=ed.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function dUe(e,t){return Ia(e.getDate(),t,2)}function Zdi(e,t){return Ia(e.getHours(),t,2)}function Jdi(e,t){return Ia(e.getHours()%12||12,t,2)}function e0i(e,t){return Ia(1+_ze.count(pw(e),e),t,3)}function MSt(e,t){return Ia(e.getMilliseconds(),t,3)}function t0i(e,t){return MSt(e,t)+"000"}function n0i(e,t){return Ia(e.getMonth()+1,t,2)}function r0i(e,t){return Ia(e.getMinutes(),t,2)}function i0i(e,t){return Ia(e.getSeconds(),t,2)}function o0i(e){var t=e.getDay();return t===0?7:t}function a0i(e,t){return Ia(yX.count(pw(e)-1,e),t,2)}function CSt(e){var t=e.getDay();return t>=4||t===0?s3(e):s3.ceil(e)}function s0i(e,t){return e=CSt(e),Ia(s3.count(pw(e),e)+(pw(e).getDay()===4),t,2)}function l0i(e){return e.getDay()}function c0i(e,t){return Ia(Zq.count(pw(e)-1,e),t,2)}function u0i(e,t){return Ia(e.getFullYear()%100,t,2)}function d0i(e,t){return e=CSt(e),Ia(e.getFullYear()%100,t,2)}function p0i(e,t){return Ia(e.getFullYear()%1e4,t,4)}function h0i(e,t){var n=e.getDay();return e=n>=4||n===0?s3(e):s3.ceil(e),Ia(e.getFullYear()%1e4,t,4)}function f0i(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ia(t/60|0,"0",2)+Ia(t%60,"0",2)}function pUe(e,t){return Ia(e.getUTCDate(),t,2)}function g0i(e,t){return Ia(e.getUTCHours(),t,2)}function m0i(e,t){return Ia(e.getUTCHours()%12||12,t,2)}function v0i(e,t){return Ia(1+Nze.count(hw(e),e),t,3)}function xSt(e,t){return Ia(e.getUTCMilliseconds(),t,3)}function b0i(e,t){return xSt(e,t)+"000"}function y0i(e,t){return Ia(e.getUTCMonth()+1,t,2)}function M0i(e,t){return Ia(e.getUTCMinutes(),t,2)}function C0i(e,t){return Ia(e.getUTCSeconds(),t,2)}function x0i(e){var t=e.getUTCDay();return t===0?7:t}function w0i(e,t){return Ia(MX.count(hw(e)-1,e),t,2)}function wSt(e){var t=e.getUTCDay();return t>=4||t===0?l3(e):l3.ceil(e)}function S0i(e,t){return e=wSt(e),Ia(l3.count(hw(e),e)+(hw(e).getUTCDay()===4),t,2)}function A0i(e){return e.getUTCDay()}function O0i(e,t){return Ia(Jq.count(hw(e)-1,e),t,2)}function z0i(e,t){return Ia(e.getUTCFullYear()%100,t,2)}function T0i(e,t){return e=wSt(e),Ia(e.getUTCFullYear()%100,t,2)}function E0i(e,t){return Ia(e.getUTCFullYear()%1e4,t,4)}function R0i(e,t){var n=e.getUTCDay();return e=n>=4||n===0?l3(e):l3.ceil(e),Ia(e.getUTCFullYear()%1e4,t,4)}function I0i(){return"+0000"}function hUe(){return"%"}function fUe(e){return+e}function gUe(e){return Math.floor(+e/1e3)}var oR,gee,SSt,ASt,OSt;P0i({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function P0i(e){return oR=Pdi(e),gee=oR.format,SSt=oR.parse,ASt=oR.utcFormat,OSt=oR.utcParse,oR}function D0i(e){return new Date(e)}function k0i(e){return e instanceof Date?+e:+new Date(+e)}function Fze(e,t,n,r,i,o,a,s,l,c){var u=Ywt(),d=u.invert,p=u.domain,h=c(".%L"),g=c(":%S"),m=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),M=c("%b %d"),C=c("%B"),x=c("%Y");function w(S){return(l(S)<S?h:s(S)<S?g:a(S)<S?m:o(S)<S?v:r(S)<S?i(S)<S?y:M:n(S)<S?C:x)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?p(Array.from(S,k0i)):p().map(D0i)},u.ticks=function(S){var A=p();return e(A[0],A[A.length-1],S??10)},u.tickFormat=function(S,A){return A==null?w:c(A)},u.nice=function(S){var A=p();return(!S||typeof S.range!="function")&&(S=t(A[0],A[A.length-1],S??10)),S?p(eSt(A,S)):u},u.copy=function(){return pee(u,Fze(e,t,n,r,i,o,a,s,l,c))},u}function L0i(){return tT.apply(Fze(Rdi,Idi,hee,Rze,Eze,Tze,zze,Oze,zO,gee).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function _0i(){return tT.apply(Fze(Tdi,Edi,fee,Lze,kze,Dze,Pze,Ize,zO,ASt).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ao(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const N0i=Ao("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),F0i=Ao("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),W0i=Ao("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),q0i=Ao("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),B0i=Ao("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),j0i=Ao("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),H0i=Ao("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),V0i=Ao("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),zSt=Ao("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ds=e=>Oui(e[e.length-1]);var mee=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Ao);const G0i=Ds(mee);var vee=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Ao);const $0i=Ds(vee);var bee=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Ao);const U0i=Ds(bee);var yee=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Ao);const X0i=Ds(yee);var Mee=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Ao);const Y0i=Ds(Mee);var Cee=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Ao);const K0i=Ds(Cee);var xee=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Ao);const Q0i=Ds(xee);var wee=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Ao);const Z0i=Ds(wee);var See=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Ao);const J0i=Ds(See);var Aee=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Ao);const e1i=Ds(Aee);var Oee=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Ao);const t1i=Ds(Oee);var zee=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Ao);const n1i=Ds(zee);var Tee=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Ao);const r1i=Ds(Tee);var Eee=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Ao);const i1i=Ds(Eee);var Ree=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Ao);const o1i=Ds(Ree);var Iee=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Ao);const a1i=Ds(Iee);var Pee=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Ao);const s1i=Ds(Pee);var Dee=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Ao);const l1i=Ds(Dee);var kee=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Ao);const c1i=Ds(kee);var Lee=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Ao);const u1i=Ds(Lee);var _ee=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Ao);const d1i=Ds(_ee);var Nee=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Ao);const p1i=Ds(Nee);var Fee=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Ao);const h1i=Ds(Fee);var Wee=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Ao);const f1i=Ds(Wee);var qee=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Ao);const g1i=Ds(qee);var Bee=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Ao);const m1i=Ds(Bee);var jee=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Ao);const v1i=Ds(jee);function b1i(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const y1i=Mze(qb(300,.5,0),qb(-240,.5,1));var M1i=Mze(qb(-100,.75,.35),qb(80,1.5,.8)),C1i=Mze(qb(260,.75,.35),qb(80,1.5,.8)),vG=qb();function x1i(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return vG.h=360*e-100,vG.s=1.5-1.5*t,vG.l=.8-.9*t,vG+""}var bG=UP(),w1i=Math.PI/3,S1i=Math.PI*2/3;function A1i(e){var t;return e=(.5-e)*Math.PI,bG.r=255*(t=Math.sin(e))*t,bG.g=255*(t=Math.sin(e+w1i))*t,bG.b=255*(t=Math.sin(e+S1i))*t,bG+""}function O1i(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Hee(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const z1i=Hee(Ao("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var T1i=Hee(Ao("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),E1i=Hee(Ao("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),R1i=Hee(Ao("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),I1i=ZJ();const P1i=qn(I1i);var o0e,mUe;function D1i(){if(mUe)return o0e;mUe=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return o0e=t,o0e}var a0e,vUe;function k1i(){if(vUe)return a0e;vUe=1;function e(t){return this.__data__.has(t)}return a0e=e,a0e}var s0e,bUe;function Wze(){if(bUe)return s0e;bUe=1;var e=oze(),t=D1i(),n=k1i();function r(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,s0e=r,s0e}var l0e,yUe;function L1i(){if(yUe)return l0e;yUe=1;function e(t,n,r,i){for(var o=t.length,a=r+(i?1:-1);i?a--:++a<o;)if(n(t[a],a,t))return a;return-1}return l0e=e,l0e}var c0e,MUe;function _1i(){if(MUe)return c0e;MUe=1;function e(t){return t!==t}return c0e=e,c0e}var u0e,CUe;function N1i(){if(CUe)return u0e;CUe=1;function e(t,n,r){for(var i=r-1,o=t.length;++i<o;)if(t[i]===n)return i;return-1}return u0e=e,u0e}var d0e,xUe;function F1i(){if(xUe)return d0e;xUe=1;var e=L1i(),t=_1i(),n=N1i();function r(i,o,a){return o===o?n(i,o,a):e(i,t,a)}return d0e=r,d0e}var p0e,wUe;function TSt(){if(wUe)return p0e;wUe=1;var e=F1i();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return p0e=t,p0e}var h0e,SUe;function ESt(){if(SUe)return h0e;SUe=1;function e(t,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)if(r(n,t[i]))return!0;return!1}return h0e=e,h0e}var f0e,AUe;function qze(){if(AUe)return f0e;AUe=1;function e(t,n){return t.has(n)}return f0e=e,f0e}var g0e,OUe;function W1i(){if(OUe)return g0e;OUe=1;var e=Wze(),t=TSt(),n=ESt(),r=lee(),i=Ck(),o=qze(),a=200;function s(l,c,u,d){var p=-1,h=t,g=!0,m=l.length,v=[],y=c.length;if(!m)return v;u&&(c=r(c,i(u))),d?(h=n,g=!1):c.length>=a&&(h=o,g=!1,c=new e(c));e:for(;++p<m;){var M=l[p],C=u==null?M:u(M);if(M=d||M!==0?M:0,g&&C===C){for(var x=y;x--;)if(c[x]===C)continue e;v.push(M)}else h(c,C,d)||v.push(M)}return v}return g0e=s,g0e}var m0e,zUe;function q1i(){if(zUe)return m0e;zUe=1;var e=W1i(),t=fze(),n=Pwt(),r=t(function(i,o){return n(i)?e(i,o):[]});return m0e=r,m0e}var B1i=q1i();const RSt=qn(B1i);function yG(e){return function(){return e}}var TUe=1e-12;function ISt(e){this._context=e}ISt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function j1i(e){return new ISt(e)}var EUe=Array.prototype.slice;function fw(){}function CX(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Vee(e){this._context=e}Vee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:CX(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:CX(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function H1i(e){return new Vee(e)}function PSt(e){this._context=e}PSt.prototype={areaStart:fw,areaEnd:fw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:CX(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function V1i(e){return new PSt(e)}function DSt(e){this._context=e}DSt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:CX(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function G1i(e){return new DSt(e)}function kSt(e,t){this._basis=new Vee(e),this._beta=t}kSt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const $1i=(function e(t){function n(r){return t===1?new Vee(r):new kSt(r,t)}return n.beta=function(r){return e(+r)},n})(.85);function xX(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Bze(e,t){this._context=e,this._k=(1-t)/6}Bze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:xX(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:xX(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const U1i=(function e(t){function n(r){return new Bze(r,t)}return n.tension=function(r){return e(+r)},n})(0);function jze(e,t){this._context=e,this._k=(1-t)/6}jze.prototype={areaStart:fw,areaEnd:fw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xX(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const X1i=(function e(t){function n(r){return new jze(r,t)}return n.tension=function(r){return e(+r)},n})(0);function Hze(e,t){this._context=e,this._k=(1-t)/6}Hze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xX(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Y1i=(function e(t){function n(r){return new Hze(r,t)}return n.tension=function(r){return e(+r)},n})(0);function Vze(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>TUe){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>TUe){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function LSt(e,t){this._context=e,this._alpha=t}LSt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Vze(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const K1i=(function e(t){function n(r){return t?new LSt(r,t):new Bze(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function _St(e,t){this._context=e,this._alpha=t}_St.prototype={areaStart:fw,areaEnd:fw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Vze(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Q1i=(function e(t){function n(r){return t?new _St(r,t):new jze(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function NSt(e,t){this._context=e,this._alpha=t}NSt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Vze(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Z1i=(function e(t){function n(r){return t?new NSt(r,t):new Hze(r,0)}return n.alpha=function(r){return e(+r)},n})(.5);function FSt(e){this._context=e}FSt.prototype={areaStart:fw,areaEnd:fw,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function J1i(e){return new FSt(e)}function RUe(e){return e<0?-1:1}function IUe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(RUe(o)+RUe(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function PUe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function v0e(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function wX(e){this._context=e}wX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:v0e(this,this._t0,PUe(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,v0e(this,PUe(this,n=IUe(this,e,t)),n);break;default:v0e(this,this._t0,n=IUe(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function WSt(e){this._context=new qSt(e)}(WSt.prototype=Object.create(wX.prototype)).point=function(e,t){wX.prototype.point.call(this,t,e)};function qSt(e){this._context=e}qSt.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function epi(e){return new wX(e)}function tpi(e){return new WSt(e)}function BSt(e){this._context=e}BSt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=DUe(e),i=DUe(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function DUe(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function npi(e){return new BSt(e)}function Gee(e,t){this._context=e,this._t=t}Gee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function rpi(e){return new Gee(e,.5)}function ipi(e){return new Gee(e,0)}function opi(e){return new Gee(e,1)}function YP(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function KP(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function api(e,t){return e[t]}function spi(){var e=yG([]),t=KP,n=YP,r=api;function i(o){var a=e.apply(this,arguments),s,l=o.length,c=a.length,u=new Array(c),d;for(s=0;s<c;++s){for(var p=a[s],h=u[s]=new Array(l),g=0,m;g<l;++g)h[g]=m=[0,+r(o[g],p,g,o)],m.data=o[g];h.key=p}for(s=0,d=t(u);s<c;++s)u[d[s]].index=s;return n(u,d),u}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:yG(EUe.call(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:yG(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?KP:typeof o=="function"?o:yG(EUe.call(o)),i):t},i.offset=function(o){return arguments.length?(n=o??YP,i):n},i}function lpi(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}YP(e,t)}}function jSt(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function cpi(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}YP(e,t)}}function upi(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,p=u[r-1][1]||0,h=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],v=m[r][1]||0,y=m[r-1][1]||0;h+=v-y}l+=d,c+=h*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,YP(e,t)}}function dpi(e){var t=e.map(ppi);return KP(e).sort(function(n,r){return t[n]-t[r]})}function ppi(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function HSt(e){var t=e.map(VSt);return KP(e).sort(function(n,r){return t[n]-t[r]})}function VSt(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function hpi(e){return HSt(e).reverse()}function fpi(e){var t=e.length,n,r,i=e.map(VSt),o=dpi(e),a=0,s=0,l=[],c=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)}function gpi(e){return KP(e).reverse()}var b0e,kUe;function mpi(){if(kUe)return b0e;kUe=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return b0e=e,b0e}var y0e,LUe;function GSt(){if(LUe)return y0e;LUe=1;var e=Wze(),t=mpi(),n=qze(),r=1,i=2;function o(a,s,l,c,u,d){var p=l&r,h=a.length,g=s.length;if(h!=g&&!(p&&g>h))return!1;var m=d.get(a),v=d.get(s);if(m&&v)return m==s&&v==a;var y=-1,M=!0,C=l&i?new e:void 0;for(d.set(a,s),d.set(s,a);++y<h;){var x=a[y],w=s[y];if(c)var S=p?c(w,x,y,s,a,d):c(x,w,y,a,s,d);if(S!==void 0){if(S)continue;M=!1;break}if(C){if(!t(s,function(A,z){if(!n(C,z)&&(x===A||u(x,A,l,c,d)))return C.push(z)})){M=!1;break}}else if(!(x===w||u(x,w,l,c,d))){M=!1;break}}return d.delete(a),d.delete(s),M}return y0e=o,y0e}var M0e,_Ue;function vpi(){if(_Ue)return M0e;_Ue=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return M0e=e,M0e}var C0e,NUe;function Gze(){if(NUe)return C0e;NUe=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return C0e=e,C0e}var x0e,FUe;function bpi(){if(FUe)return x0e;FUe=1;var e=yk(),t=zwt(),n=aj(),r=GSt(),i=vpi(),o=Gze(),a=1,s=2,l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Map]",p="[object Number]",h="[object RegExp]",g="[object Set]",m="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",M="[object DataView]",C=e?e.prototype:void 0,x=C?C.valueOf:void 0;function w(S,A,z,O,T,I,P){switch(z){case M:if(S.byteLength!=A.byteLength||S.byteOffset!=A.byteOffset)return!1;S=S.buffer,A=A.buffer;case y:return!(S.byteLength!=A.byteLength||!I(new t(S),new t(A)));case l:case c:case p:return n(+S,+A);case u:return S.name==A.name&&S.message==A.message;case h:case m:return S==A+"";case d:var N=i;case g:var F=O&a;if(N||(N=o),S.size!=A.size&&!F)return!1;var L=P.get(S);if(L)return L==A;O|=s,P.set(S,A);var W=r(N(S),N(A),O,T,I,P);return P.delete(S),W;case v:if(x)return x.call(S)==x.call(A)}return!1}return x0e=w,x0e}var w0e,WUe;function $ze(){if(WUe)return w0e;WUe=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return w0e=e,w0e}var S0e,qUe;function $St(){if(qUe)return S0e;qUe=1;var e=$ze(),t=y1();function n(r,i,o){var a=i(r);return t(r)?a:e(a,o(r))}return S0e=n,S0e}var A0e,BUe;function USt(){if(BUe)return A0e;BUe=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,a=[];++r<i;){var s=t[r];n(s,r,t)&&(a[o++]=s)}return a}return A0e=e,A0e}var O0e,jUe;function XSt(){if(jUe)return O0e;jUe=1;function e(){return[]}return O0e=e,O0e}var z0e,HUe;function Uze(){if(HUe)return z0e;HUe=1;var e=USt(),t=XSt(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(s){return r.call(a,s)}))}:t;return z0e=o,z0e}var T0e,VUe;function ypi(){if(VUe)return T0e;VUe=1;var e=Rwt(),t=e(Object.keys,Object);return T0e=t,T0e}var E0e,GUe;function Mpi(){if(GUe)return E0e;GUe=1;var e=cze(),t=ypi(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var s in Object(o))r.call(o,s)&&s!="constructor"&&a.push(s);return a}return E0e=i,E0e}var R0e,$Ue;function uj(){if($Ue)return R0e;$Ue=1;var e=kwt(),t=Mpi(),n=Mk();function r(i){return n(i)?e(i):t(i)}return R0e=r,R0e}var I0e,UUe;function YSt(){if(UUe)return I0e;UUe=1;var e=$St(),t=Uze(),n=uj();function r(i){return e(i,n,t)}return I0e=r,I0e}var P0e,XUe;function Cpi(){if(XUe)return P0e;XUe=1;var e=YSt(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,a,s,l,c,u){var d=s&t,p=e(o),h=p.length,g=e(a),m=g.length;if(h!=m&&!d)return!1;for(var v=h;v--;){var y=p[v];if(!(d?y in a:r.call(a,y)))return!1}var M=u.get(o),C=u.get(a);if(M&&C)return M==a&&C==o;var x=!0;u.set(o,a),u.set(a,o);for(var w=d;++v<h;){y=p[v];var S=o[y],A=a[y];if(l)var z=d?l(A,S,y,a,o,u):l(S,A,y,o,a,u);if(!(z===void 0?S===A||c(S,A,s,l,u):z)){x=!1;break}w||(w=y=="constructor")}if(x&&!w){var O=o.constructor,T=a.constructor;O!=T&&"constructor"in o&&"constructor"in a&&!(typeof O=="function"&&O instanceof O&&typeof T=="function"&&T instanceof T)&&(x=!1)}return u.delete(o),u.delete(a),x}return P0e=i,P0e}var D0e,YUe;function xpi(){if(YUe)return D0e;YUe=1;var e=eT(),t=i2(),n=e(t,"DataView");return D0e=n,D0e}var k0e,KUe;function wpi(){if(KUe)return k0e;KUe=1;var e=eT(),t=i2(),n=e(t,"Promise");return k0e=n,k0e}var L0e,QUe;function KSt(){if(QUe)return L0e;QUe=1;var e=eT(),t=i2(),n=e(t,"Set");return L0e=n,L0e}var _0e,ZUe;function Spi(){if(ZUe)return _0e;ZUe=1;var e=eT(),t=i2(),n=e(t,"WeakMap");return _0e=n,_0e}var N0e,JUe;function $ee(){if(JUe)return N0e;JUe=1;var e=xpi(),t=ize(),n=wpi(),r=KSt(),i=Spi(),o=AM(),a=xwt(),s="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",d="[object WeakMap]",p="[object DataView]",h=a(e),g=a(t),m=a(n),v=a(r),y=a(i),M=o;return(e&&M(new e(new ArrayBuffer(1)))!=p||t&&M(new t)!=s||n&&M(n.resolve())!=c||r&&M(new r)!=u||i&&M(new i)!=d)&&(M=function(C){var x=o(C),w=x==l?C.constructor:void 0,S=w?a(w):"";if(S)switch(S){case h:return p;case g:return s;case m:return c;case v:return u;case y:return d}return x}),N0e=M,N0e}var F0e,eXe;function Api(){if(eXe)return F0e;eXe=1;var e=tee(),t=GSt(),n=bpi(),r=Cpi(),i=$ee(),o=y1(),a=ree(),s=pze(),l=1,c="[object Arguments]",u="[object Array]",d="[object Object]",p=Object.prototype,h=p.hasOwnProperty;function g(m,v,y,M,C,x){var w=o(m),S=o(v),A=w?u:i(m),z=S?u:i(v);A=A==c?d:A,z=z==c?d:z;var O=A==d,T=z==d,I=A==z;if(I&&a(m)){if(!a(v))return!1;w=!0,O=!1}if(I&&!O)return x||(x=new e),w||s(m)?t(m,v,y,M,C,x):n(m,v,A,y,M,C,x);if(!(y&l)){var P=O&&h.call(m,"__wrapped__"),N=T&&h.call(v,"__wrapped__");if(P||N){var F=P?m.value():m,L=N?v.value():v;return x||(x=new e),C(F,L,y,M,x)}}return I?(x||(x=new e),r(m,v,y,M,C,x)):!1}return F0e=g,F0e}var W0e,tXe;function Xze(){if(tXe)return W0e;tXe=1;var e=Api(),t=rg();function n(r,i,o,a,s){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,a,n,s)}return W0e=n,W0e}var q0e,nXe;function Opi(){if(nXe)return q0e;nXe=1;var e=Xze();function t(n,r){return e(n,r)}return q0e=t,q0e}Opi();var zpi=dze();const QSt=qn(zpi);var B0e,rXe;function Tpi(){if(rXe)return B0e;rXe=1;var e=lj(),t=Wwt(),n=wk();function r(i,o,a){for(var s=-1,l=o.length,c={};++s<l;){var u=o[s],d=e(i,u);a(d,u)&&t(c,n(u,i),d)}return c}return B0e=r,B0e}var j0e,iXe;function Epi(){if(iXe)return j0e;iXe=1;function e(t,n){return t!=null&&n in Object(t)}return j0e=e,j0e}var H0e,oXe;function Rpi(){if(oXe)return H0e;oXe=1;var e=wk(),t=nee(),n=y1(),r=oee(),i=uze(),o=Sk();function a(s,l,c){l=e(l,s);for(var u=-1,d=l.length,p=!1;++u<d;){var h=o(l[u]);if(!(p=s!=null&&c(s,h)))break;s=s[h]}return p||++u!=d?p:(d=s==null?0:s.length,!!d&&i(d)&&r(h,d)&&(n(s)||t(s)))}return H0e=a,H0e}var V0e,aXe;function ZSt(){if(aXe)return V0e;aXe=1;var e=Epi(),t=Rpi();function n(r,i){return r!=null&&t(r,i,e)}return V0e=n,V0e}var G0e,sXe;function Ipi(){if(sXe)return G0e;sXe=1;var e=Tpi(),t=ZSt();function n(r,i){return e(r,i,function(o,a){return t(r,a)})}return G0e=n,G0e}var $0e,lXe;function Ppi(){if(lXe)return $0e;lXe=1;var e=yk(),t=nee(),n=y1(),r=e?e.isConcatSpreadable:void 0;function i(o){return n(o)||t(o)||!!(r&&o&&o[r])}return $0e=i,$0e}var U0e,cXe;function JSt(){if(cXe)return U0e;cXe=1;var e=$ze(),t=Ppi();function n(r,i,o,a,s){var l=-1,c=r.length;for(o||(o=t),s||(s=[]);++l<c;){var u=r[l];i>0&&o(u)?i>1?n(u,i-1,o,a,s):e(s,u):a||(s[s.length]=u)}return s}return U0e=n,U0e}var X0e,uXe;function Dpi(){if(uXe)return X0e;uXe=1;var e=JSt();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return X0e=t,X0e}var Y0e,dXe;function eAt(){if(dXe)return Y0e;dXe=1;var e=Dpi(),t=Lwt(),n=_wt();function r(i){return n(t(i,void 0,e),i+"")}return Y0e=r,Y0e}var K0e,pXe;function kpi(){if(pXe)return K0e;pXe=1;var e=Ipi(),t=eAt(),n=t(function(r,i){return r==null?{}:e(r,i)});return K0e=n,K0e}kpi();function g1(){return g1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g1.apply(this,arguments)}function tAt(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var gw={fill:Z.string,fontSize:Z.number,fontFamily:Z.string},Lpi=Z.shape({domain:Z.shape({line:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,strokeDasharray:Z.string}).isRequired}).isRequired,ticks:Z.shape({line:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,strokeDasharray:Z.string}).isRequired,text:Z.shape(g1({},gw)).isRequired}).isRequired,legend:Z.shape({text:Z.shape(g1({},gw)).isRequired}).isRequired}),_pi=Z.shape({line:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,strokeDasharray:Z.string}).isRequired}),Npi=Z.shape({hidden:Z.shape({symbol:Z.shape({fill:Z.string.isRequired,opacity:Z.number}).isRequired,text:Z.shape(g1({},gw,{opacity:Z.number})).isRequired}).isRequired,text:Z.shape(g1({},gw)).isRequired}),Fpi=Z.shape({text:Z.shape(g1({},gw)).isRequired}),Wpi=Z.shape({text:Z.shape(g1({},gw)).isRequired}),qpi=Z.shape({text:Z.shape(g1({},gw)).isRequired}),Bpi=Z.shape({line:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,strokeDasharray:Z.string}).isRequired}),jpi=Z.shape({text:Z.shape(g1({},gw,{outlineWidth:Z.number.isRequired,outlineColor:Z.string.isRequired})).isRequired,link:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,outlineWidth:Z.number.isRequired,outlineColor:Z.string.isRequired}).isRequired,outline:Z.shape({stroke:Z.string.isRequired,strokeWidth:Z.number.isRequired,outlineWidth:Z.number.isRequired,outlineColor:Z.string.isRequired}).isRequired,symbol:Z.shape({fill:Z.string.isRequired,outlineWidth:Z.number.isRequired,outlineColor:Z.string.isRequired}).isRequired});Z.shape({background:Z.string.isRequired,fontFamily:Z.string.isRequired,fontSize:Z.number.isRequired,textColor:Z.string.isRequired,axis:Lpi.isRequired,grid:_pi.isRequired,legends:Npi.isRequired,labels:Fpi.isRequired,dots:Wpi.isRequired,markers:qpi,crosshair:Bpi.isRequired,annotations:jpi.isRequired});var Hpi={background:"transparent",fontFamily:"sans-serif",fontSize:11,textColor:"#333333",axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},Vpi=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],Gpi=function(e,t){var n=Jci({},e,t);return Vpi.forEach((function(r){Bx(n,r+".fontFamily")===void 0&&$de(n,r+".fontFamily",n.fontFamily),Bx(n,r+".fontSize")===void 0&&$de(n,r+".fontSize",n.fontSize),Bx(n,r+".fill")===void 0&&$de(n,r+".fill",n.textColor)})),n},nAt=b.createContext(),Yze=function(e){var t=e.children,n=e.animate,r=e.stiffness,i=e.damping,o=e.config,a=b.useMemo((function(){var s=Fui(o)?eze[o]:o;return{animate:n,springConfig:{stiffness:r,damping:i},config:s}}),[n,r,i,o]);return f.jsx(nAt.Provider,{value:a,children:t})},MG={animate:Z.bool,motionStiffness:Z.number,motionDamping:Z.number,motionConfig:Z.oneOfType([Z.oneOf(Object.keys(eze)),Z.shape({mass:Z.number,tension:Z.number,friction:Z.number,clamp:Z.bool,precision:Z.number,velocity:Z.number,duration:Z.number,easing:Z.func})])};Yze.propTypes={children:Z.node.isRequired,animate:MG.animate,stiffness:MG.motionStiffness,damping:MG.motionDamping,config:MG.motionConfig};var $pi={animate:!0,stiffness:90,damping:15,config:"default"};Yze.defaultProps=$pi;var dj=function(){return b.useContext(nAt)},Upi={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:li(mee),PRGn:li(vee),PiYG:li(bee),PuOr:li(yee),RdBu:li(Mee),RdGy:li(Cee),RdYlBu:li(xee),RdYlGn:li(wee),spectral:li(See),blues:li(Nee),greens:li(Fee),greys:li(Wee),oranges:li(jee),purples:li(qee),reds:li(Bee),BuGn:li(Aee),BuPu:li(Oee),GnBu:li(zee),OrRd:li(Tee),PuBuGn:li(Eee),PuBu:li(Ree),PuRd:li(Iee),RdPu:li(Pee),YlGnBu:li(Dee),YlGn:li(kee),YlOrBr:li(Lee),YlOrRd:li(_ee)},Xpi=Object.keys(Upi);li(mee),li(vee),li(bee),li(yee),li(Mee),li(Cee),li(xee),li(wee),li(See),li(Nee),li(Fee),li(Wee),li(jee),li(qee),li(Bee),li(Aee),li(Oee),li(zee),li(Tee),li(Eee),li(Ree),li(Iee),li(Pee),li(Dee),li(kee),li(Lee),li(_ee);Z.oneOfType([Z.oneOf(Xpi),Z.func,Z.arrayOf(Z.string)]);var Ypi={basis:H1i,basisClosed:V1i,basisOpen:G1i,bundle:$1i,cardinal:U1i,cardinalClosed:X1i,cardinalOpen:Y1i,catmullRom:K1i,catmullRomClosed:Q1i,catmullRomOpen:Z1i,linear:j1i,linearClosed:J1i,monotoneX:epi,monotoneY:tpi,natural:npi,step:rpi,stepAfter:opi,stepBefore:ipi},Uee=Object.keys(Ypi);Z.oneOf(Uee);Uee.filter((function(e){return e.endsWith("Closed")}));RSt(Uee,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var Kpi=RSt(Uee,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");Z.oneOf(Kpi);Z.arrayOf(Z.shape({id:Z.string.isRequired})).isRequired,Z.arrayOf(Z.shape({id:Z.string.isRequired,match:Z.oneOfType([Z.oneOf(["*"]),Z.object,Z.func]).isRequired})).isRequired;var Qpi={ascending:HSt,descending:hpi,insideOut:fpi,none:KP,reverse:gpi},Zpi=Object.keys(Qpi);Z.oneOf(Zpi);var Jpi={expand:lpi,diverging:jSt,none:YP,silhouette:cpi,wiggle:upi},ehi=Object.keys(Jpi);Z.oneOf(ehi);Z.shape({top:Z.number,right:Z.number,bottom:Z.number,left:Z.number}).isRequired;var thi=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];Z.oneOf(thi);OO(zSt);var nhi={top:0,right:0,bottom:0,left:0},rhi=function(e,t,n){return n===void 0&&(n={}),b.useMemo((function(){var r=g1({},nhi,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n.top,n.right,n.bottom,n.left])},rAt=function(){var e=b.useRef(null),t=b.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=b.useState((function(){return new ResizeObserver((function(o){var a=o[0];return r(a.contentRect)}))}))[0];return b.useEffect((function(){return e.current&&i.observe(e.current),function(){return i.disconnect()}}),[]),[e,n]},ihi=function(e){return b.useMemo((function(){return Gpi(Hpi,e)}),[e])},ohi=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?gee(e.slice("5")):cj(e):function(t){return""+t}},iAt=function(e){return b.useMemo((function(){return ohi(e)}),[e])},oAt=b.createContext(),ahi={},aAt=function(e){var t=e.theme,n=t===void 0?ahi:t,r=e.children,i=ihi(n);return f.jsx(oAt.Provider,{value:i,children:r})};aAt.propTypes={children:Z.node.isRequired,theme:Z.object};var ig=function(){return b.useContext(oAt)},sAt=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?b.cloneElement(r,{},t):t};sAt.propTypes={children:Z.node.isRequired,condition:Z.bool.isRequired,wrapper:Z.element.isRequired};var shi={position:"relative"},lAt=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,l=e.motionStiffness,c=e.motionDamping,u=e.motionConfig,d=b.useRef(null);return f.jsx(aAt,{theme:n,children:f.jsx(Yze,{animate:s,stiffness:l,damping:c,config:u,children:f.jsx(aci,{container:d,children:f.jsxs(sAt,{condition:i,wrapper:f.jsx("div",{style:shi,ref:d}),children:[t,a&&f.jsx(oci,{})]})})})})};lAt.propTypes={children:Z.element.isRequired,isInteractive:Z.bool,renderWrapper:Z.bool,theme:Z.object,animate:Z.bool,motionStiffness:Z.number,motionDamping:Z.number,motionConfig:Z.string};Z.func.isRequired,Z.bool,Z.bool,Z.object.isRequired,Z.bool.isRequired,Z.number,Z.number,Z.string;var cAt=function(e){var t=e.children,n=rAt(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return f.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};cAt.propTypes={children:Z.func.isRequired};var lhi=["id","colors"],uAt=function(e){var t=e.id,n=e.colors,r=tAt(e,lhi);return f.jsx("linearGradient",g1({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map((function(i){var o=i.offset,a=i.color,s=i.opacity;return f.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)}))}))};uAt.propTypes={id:Z.string.isRequired,colors:Z.arrayOf(Z.shape({offset:Z.number.isRequired,color:Z.string.isRequired,opacity:Z.number})).isRequired,gradientTransform:Z.string};var chi={linearGradient:uAt},J7=b.memo((function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,a=e.stagger,s=i+o,l=i/2,c=o/2;return a===!0&&(s=2*i+2*o),f.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[f.jsx("rect",{width:s,height:s,fill:n}),f.jsx("circle",{cx:c+l,cy:c+l,r:l,fill:r}),a&&f.jsx("circle",{cx:1.5*o+i+l,cy:1.5*o+i+l,r:l,fill:r})]})}));J7.displayName="PatternDots",J7.propTypes={id:Z.string.isRequired,color:Z.string.isRequired,background:Z.string.isRequired,size:Z.number.isRequired,padding:Z.number.isRequired,stagger:Z.bool.isRequired},J7.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var e6=function(e){return e*Math.PI/180},uhi=function(e){return 180*e/Math.PI},dhi=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},phi=function(e){var t=e%360;return t<0&&(t+=360),t},hhi={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},e$=b.memo((function(e){var t=e.id,n=e.spacing,r=e.rotation,i=e.background,o=e.color,a=e.lineWidth,s=Math.round(r)%360,l=Math.abs(n);s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);var c,u=l,d=l;return s===0?c=`
                M 0 0 L `+u+` 0
                M 0 `+d+" L "+u+" "+d+`
            `:s===90?c=`
                M 0 0 L 0 `+d+`
                M `+u+" 0 L "+u+" "+d+`
            `:(u=Math.abs(l/Math.sin(e6(s))),d=l/Math.sin(e6(90-s)),c=s>0?`
                    M 0 `+-d+" L "+2*u+" "+d+`
                    M `+-u+" "+-d+" L "+u+" "+d+`
                    M `+-u+" 0 L "+u+" "+2*d+`
                `:`
                    M `+-u+" "+d+" L "+u+" "+-d+`
                    M `+-u+" "+2*d+" L "+2*u+" "+-d+`
                    M 0 `+2*d+" L "+2*u+` 0
                `),f.jsxs("pattern",{id:t,width:u,height:d,patternUnits:"userSpaceOnUse",children:[f.jsx("rect",{width:u,height:d,fill:i,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),f.jsx("path",{d:c,strokeWidth:a,stroke:o,strokeLinecap:"square"})]})}));e$.displayName="PatternLines",e$.propTypes={id:Z.string.isRequired,spacing:Z.number.isRequired,rotation:Z.number.isRequired,background:Z.string.isRequired,color:Z.string.isRequired,lineWidth:Z.number.isRequired},e$.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var t$=b.memo((function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,a=e.stagger,s=i+o,l=o/2;return a===!0&&(s=2*i+2*o),f.jsxs("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[f.jsx("rect",{width:s,height:s,fill:n}),f.jsx("rect",{x:l,y:l,width:i,height:i,fill:r}),a&&f.jsx("rect",{x:1.5*o+i,y:1.5*o+i,width:i,height:i,fill:r})]})}));t$.displayName="PatternSquares",t$.propTypes={id:Z.string.isRequired,color:Z.string.isRequired,background:Z.string.isRequired,size:Z.number.isRequired,padding:Z.number.isRequired,stagger:Z.bool.isRequired},t$.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var fhi={patternDots:J7,patternLines:e$,patternSquares:t$},ghi=["type"],Bbe=g1({},chi,fhi),dAt=function(e){var t=e.defs;return!t||t.length<1?null:f.jsx("defs",{"aria-hidden":!0,children:t.map((function(n){var r=n.type,i=tAt(n,ghi);return Bbe[r]?b.createElement(Bbe[r],g1({key:i.id},i)):null}))})};dAt.propTypes={defs:Z.arrayOf(Z.shape({type:Z.oneOf(Object.keys(Bbe)).isRequired,id:Z.string.isRequired}))};b.memo(dAt);Z.number.isRequired,Z.number.isRequired,Z.shape({top:Z.number.isRequired,left:Z.number.isRequired}).isRequired,Z.array,Z.oneOfType([Z.arrayOf(Z.node),Z.node]).isRequired,Z.string,Z.bool,Z.string,Z.string,Z.string;var pAt=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return f.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};pAt.propTypes={size:Z.number.isRequired,color:Z.string.isRequired,borderWidth:Z.number.isRequired,borderColor:Z.string.isRequired};var mhi=b.memo(pAt),hAt=function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?mhi:r,o=e.size,a=e.datum,s=e.color,l=e.borderWidth,c=e.borderColor,u=e.label,d=e.labelTextAnchor,p=d===void 0?"middle":d,h=e.labelYOffset,g=h===void 0?-12:h,m=ig(),v=dj(),y=v.animate,M=v.config,C=oj({transform:"translate("+t+", "+n+")",config:M,immediate:!y});return f.jsxs(If.g,{transform:C.transform,style:{pointerEvents:"none"},children:[b.createElement(i,{size:o,color:s,datum:a,borderWidth:l,borderColor:c}),u&&f.jsx("text",{textAnchor:p,y:g,style:m.dots.text,children:u})]})};hAt.propTypes={x:Z.number.isRequired,y:Z.number.isRequired,datum:Z.object.isRequired,size:Z.number.isRequired,color:Z.string.isRequired,borderWidth:Z.number.isRequired,borderColor:Z.string.isRequired,symbol:Z.oneOfType([Z.func,Z.object]),label:Z.oneOfType([Z.string,Z.number]),labelTextAnchor:Z.oneOf(["start","middle","end"]),labelYOffset:Z.number.isRequired};b.memo(hAt);var jbe=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,c=e.legendPosition,u=e.legendOffsetX,d=e.legendOffsetY,p=e.legendOrientation,h=ig(),g=0,m=0,v=0,y=0;r==="y"?(v=i(o),m=t):(g=i(o),y=n);var M=null;if(l){var C=(function(x){var w=x.axis,S=x.width,A=x.height,z=x.position,O=x.offsetX,T=x.offsetY,I=x.orientation,P=0,N=0,F=I==="vertical"?-90:0,L="start";if(w==="x")switch(z){case"top-left":P=-O,N=T,L="end";break;case"top":N=-T,L=I==="horizontal"?"middle":"start";break;case"top-right":P=O,N=T,L=I==="horizontal"?"start":"end";break;case"right":P=O,N=A/2,L=I==="horizontal"?"start":"middle";break;case"bottom-right":P=O,N=A-T,L="start";break;case"bottom":N=A+T,L=I==="horizontal"?"middle":"end";break;case"bottom-left":N=A-T,P=-O,L=I==="horizontal"?"end":"start";break;case"left":P=-O,N=A/2,L=I==="horizontal"?"end":"middle"}else switch(z){case"top-left":P=O,N=-T,L="start";break;case"top":P=S/2,N=-T,L=I==="horizontal"?"middle":"start";break;case"top-right":P=S-O,N=-T,L=I==="horizontal"?"end":"start";break;case"right":P=S+O,L=I==="horizontal"?"start":"middle";break;case"bottom-right":P=S-O,N=T,L="end";break;case"bottom":P=S/2,N=T,L=I==="horizontal"?"middle":"end";break;case"bottom-left":P=O,N=T,L=I==="horizontal"?"start":"end";break;case"left":P=-O,L=I==="horizontal"?"end":"middle"}return{x:P,y:N,rotation:F,textAnchor:L}})({axis:r,width:t,height:n,position:c,offsetX:u,offsetY:d,orientation:p});M=f.jsx("text",{transform:"translate("+C.x+", "+C.y+") rotate("+C.rotation+")",textAnchor:C.textAnchor,dominantBaseline:"central",style:s,children:l})}return f.jsxs("g",{transform:"translate("+g+", "+v+")",children:[f.jsx("line",{x1:0,x2:m,y1:0,y2:y,stroke:h.markers.lineColor,strokeWidth:h.markers.lineStrokeWidth,style:a}),M]})};jbe.propTypes={width:Z.number.isRequired,height:Z.number.isRequired,axis:Z.oneOf(["x","y"]).isRequired,scale:Z.func.isRequired,value:Z.oneOfType([Z.number,Z.string,Z.instanceOf(Date)]).isRequired,lineStyle:Z.object,textStyle:Z.object,legend:Z.string,legendPosition:Z.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:Z.number.isRequired,legendOffsetY:Z.number.isRequired,legendOrientation:Z.oneOf(["horizontal","vertical"]).isRequired},jbe.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var vhi=b.memo(jbe),fAt=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&t.length!==0?t.map((function(a,s){return f.jsx(vhi,g1({},a,{width:n,height:r,scale:a.axis==="y"?o:i}),s)})):null};fAt.propTypes={width:Z.number.isRequired,height:Z.number.isRequired,xScale:Z.func.isRequired,yScale:Z.func.isRequired,markers:Z.arrayOf(Z.shape({axis:Z.oneOf(["x","y"]).isRequired,value:Z.oneOfType([Z.number,Z.string,Z.instanceOf(Date)]).isRequired,lineStyle:Z.object,textStyle:Z.object}))};b.memo(fAt);var gAt=function(e){return P1i(e)?e:function(t){return Bx(t,e)}},Q0e=function(e){return b.useMemo((function(){return gAt(e)}),[e])},bhi=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},Z0e=function(e,t){var n=t.clientX,r=t.clientY,i=e.getBoundingClientRect();return[n-i.left,r-i.top]},J0e,hXe;function yhi(){if(hXe)return J0e;hXe=1;function e(){}return J0e=e,J0e}var e1e,fXe;function Mhi(){if(fXe)return e1e;fXe=1;var e=KSt(),t=yhi(),n=Gze(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return e1e=i,e1e}var t1e,gXe;function mAt(){if(gXe)return t1e;gXe=1;var e=Wze(),t=TSt(),n=ESt(),r=qze(),i=Mhi(),o=Gze(),a=200;function s(l,c,u){var d=-1,p=t,h=l.length,g=!0,m=[],v=m;if(u)g=!1,p=n;else if(h>=a){var y=c?null:i(l);if(y)return o(y);g=!1,p=r,v=new e}else v=c?[]:m;e:for(;++d<h;){var M=l[d],C=c?c(M):M;if(M=u||M!==0?M:0,g&&C===C){for(var x=v.length;x--;)if(v[x]===C)continue e;c&&v.push(C),m.push(M)}else p(v,C,u)||(v!==m&&v.push(C),m.push(M))}return m}return t1e=s,t1e}var n1e,mXe;function Chi(){if(mXe)return n1e;mXe=1;var e=mAt();function t(n){return n&&n.length?e(n):[]}return n1e=t,n1e}Chi();var r1e,vXe;function xhi(){if(vXe)return r1e;vXe=1;var e=tee(),t=Xze(),n=1,r=2;function i(o,a,s,l){var c=s.length,u=c,d=!l;if(o==null)return!u;for(o=Object(o);c--;){var p=s[c];if(d&&p[2]?p[1]!==o[p[0]]:!(p[0]in o))return!1}for(;++c<u;){p=s[c];var h=p[0],g=o[h],m=p[1];if(d&&p[2]){if(g===void 0&&!(h in o))return!1}else{var v=new e;if(l)var y=l(g,m,h,o,a,v);if(!(y===void 0?t(m,g,n|r,l,v):y))return!1}}return!0}return r1e=i,r1e}var i1e,bXe;function vAt(){if(bXe)return i1e;bXe=1;var e=o2();function t(n){return n===n&&!e(n)}return i1e=t,i1e}var o1e,yXe;function whi(){if(yXe)return o1e;yXe=1;var e=vAt(),t=uj();function n(r){for(var i=t(r),o=i.length;o--;){var a=i[o],s=r[a];i[o]=[a,s,e(s)]}return i}return o1e=n,o1e}var a1e,MXe;function bAt(){if(MXe)return a1e;MXe=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return a1e=e,a1e}var s1e,CXe;function Shi(){if(CXe)return s1e;CXe=1;var e=xhi(),t=whi(),n=bAt();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(a){return a===i||e(a,i,o)}}return s1e=r,s1e}var l1e,xXe;function Ahi(){if(xXe)return l1e;xXe=1;var e=Xze(),t=Fwt(),n=ZSt(),r=gze(),i=vAt(),o=bAt(),a=Sk(),s=1,l=2;function c(u,d){return r(u)&&i(d)?o(a(u),d):function(p){var h=t(p,u);return h===void 0&&h===d?n(p,u):e(d,h,s|l)}}return l1e=c,l1e}var c1e,wXe;function Ohi(){if(wXe)return c1e;wXe=1;function e(t){return function(n){return n?.[t]}}return c1e=e,c1e}var u1e,SXe;function zhi(){if(SXe)return u1e;SXe=1;var e=lj();function t(n){return function(r){return e(r,n)}}return u1e=t,u1e}var d1e,AXe;function Thi(){if(AXe)return d1e;AXe=1;var e=Ohi(),t=zhi(),n=gze(),r=Sk();function i(o){return n(o)?e(r(o)):t(o)}return d1e=i,d1e}var p1e,OXe;function Kze(){if(OXe)return p1e;OXe=1;var e=Shi(),t=Ahi(),n=aee(),r=y1(),i=Thi();function o(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):i(a)}return p1e=o,p1e}var h1e,zXe;function Ehi(){if(zXe)return h1e;zXe=1;var e=Kze(),t=mAt();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return h1e=n,h1e}var Rhi=Ehi();const TXe=qn(Rhi);var f1e,EXe;function Ihi(){if(EXe)return f1e;EXe=1;var e=Awt(),t=uj();function n(r,i){return r&&e(r,i,t)}return f1e=n,f1e}var g1e,RXe;function Phi(){if(RXe)return g1e;RXe=1;var e=Mk();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var a=i.length,s=r?a:-1,l=Object(i);(r?s--:++s<a)&&o(l[s],s,l)!==!1;);return i}}return g1e=t,g1e}var m1e,IXe;function yAt(){if(IXe)return m1e;IXe=1;var e=Ihi(),t=Phi(),n=t(e);return m1e=n,m1e}var v1e,PXe;function Dhi(){if(PXe)return v1e;PXe=1;var e=yAt(),t=Mk();function n(r,i){var o=-1,a=t(r)?Array(r.length):[];return e(r,function(s,l,c){a[++o]=i(s,l,c)}),a}return v1e=n,v1e}var b1e,DXe;function khi(){if(DXe)return b1e;DXe=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return b1e=e,b1e}var y1e,kXe;function Lhi(){if(kXe)return y1e;kXe=1;var e=see();function t(n,r){if(n!==r){var i=n!==void 0,o=n===null,a=n===n,s=e(n),l=r!==void 0,c=r===null,u=r===r,d=e(r);if(!c&&!d&&!s&&n>r||s&&l&&u&&!c&&!d||o&&l&&u||!i&&u||!a)return 1;if(!o&&!s&&!d&&n<r||d&&i&&a&&!o&&!s||c&&i&&a||!l&&a||!u)return-1}return 0}return y1e=t,y1e}var M1e,LXe;function _hi(){if(LXe)return M1e;LXe=1;var e=Lhi();function t(n,r,i){for(var o=-1,a=n.criteria,s=r.criteria,l=a.length,c=i.length;++o<l;){var u=e(a[o],s[o]);if(u){if(o>=c)return u;var d=i[o];return u*(d=="desc"?-1:1)}}return n.index-r.index}return M1e=t,M1e}var C1e,_Xe;function Nhi(){if(_Xe)return C1e;_Xe=1;var e=lee(),t=lj(),n=Kze(),r=Dhi(),i=khi(),o=Ck(),a=_hi(),s=aee(),l=y1();function c(u,d,p){d.length?d=e(d,function(m){return l(m)?function(v){return t(v,m.length===1?m[0]:m)}:m}):d=[s];var h=-1;d=e(d,o(n));var g=r(u,function(m,v,y){var M=e(d,function(C){return C(m)});return{criteria:M,index:++h,value:m}});return i(g,function(m,v){return a(m,v,p)})}return C1e=c,C1e}var x1e,NXe;function Fhi(){if(NXe)return x1e;NXe=1;var e=JSt(),t=Nhi(),n=fze(),r=Nwt(),i=n(function(o,a){if(o==null)return[];var s=a.length;return s>1&&r(o,a[0],a[1])?a=[]:s>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),t(o,e(a,1),[])});return x1e=i,x1e}Fhi();var w1e,FXe;function Whi(){if(FXe)return w1e;FXe=1;var e=AM(),t=rg(),n="[object Date]";function r(i){return t(i)&&e(i)==n}return w1e=r,w1e}var S1e,WXe;function qhi(){if(WXe)return S1e;WXe=1;var e=Whi(),t=Ck(),n=iee(),r=n&&n.isDate,i=r?t(r):e;return S1e=i,S1e}qhi();var aR=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],Bhi={millisecond:[],second:aR.slice(0,1),minute:aR.slice(0,2),hour:aR.slice(0,3),day:aR.slice(0,4),month:aR.slice(0,5),year:aR.slice(0,6)},jhi=function(e){return function(t){return Bhi[e].forEach((function(n){n(t)})),t}},Hhi=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,o=e.useUTC,a=o===void 0||o,s=jhi(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=a?OSt(n):SSt(n);return s(c(l))}},Vhi=function(e,t,n,r){var i,o,a,s,l=e.min,c=l===void 0?0:l,u=e.max,d=u===void 0?"auto":u,p=e.stacked,h=p!==void 0&&p,g=e.reverse,m=g!==void 0&&g,v=e.clamp,y=v!==void 0&&v,M=e.nice,C=M!==void 0&&M;c==="auto"?i=h===!0?(o=t.minStacked)!=null?o:0:t.min:i=c,d==="auto"?a=h===!0?(s=t.maxStacked)!=null?s:0:t.max:a=d;var x=Jwt().rangeRound(r==="x"?[0,n]:[n,0]).domain(m?[a,i]:[i,a]).clamp(y);return C===!0?x.nice():typeof C=="number"&&x.nice(C),Ghi(x,h)},Ghi=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},$hi=function(e,t,n){var r=Gui().range([0,n]).domain(t.all);return r.type="point",r},Uhi=function(e,t,n,r){var i=e.round,o=i===void 0||i,a=xze().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return Xhi(a)},Xhi=function(e){var t=e;return t.type="band",t},Yhi=function(e,t,n){var r,i,o=e.format,a=o===void 0?"native":o,s=e.precision,l=s===void 0?"millisecond":s,c=e.min,u=c===void 0?"auto":c,d=e.max,p=d===void 0?"auto":d,h=e.useUTC,g=h===void 0||h,m=e.nice,v=m!==void 0&&m,y=Hhi({format:a,precision:l,useUTC:g});r=u==="auto"?y(t.min):a!=="native"?y(u):u,i=p==="auto"?y(t.max):a!=="native"?y(p):p;var M=g?_0i():L0i();M.range([0,n]),r&&i&&M.domain([r,i]),v===!0?M.nice():typeof v!="object"&&typeof v!="number"||M.nice(v);var C=M;return C.type="time",C.useUTC=g,C},Khi=function(e,t,n,r){var i,o=e.base,a=o===void 0?10:o,s=e.min,l=s===void 0?"auto":s,c=e.max,u=c===void 0?"auto":c;if(t.all.some((function(m){return m===0})))throw new Error("a log scale domain must not include or cross zero");var d,p,h=!1;if(t.all.filter((function(m){return m!=null})).forEach((function(m){h||(i===void 0?i=Math.sign(m):Math.sign(m)!==i&&(h=!0))})),h)throw new Error("a log scale domain must be strictly-positive or strictly-negative");d=l==="auto"?t.min:l,p=u==="auto"?t.max:u;var g=tSt().domain([d,p]).rangeRound(r==="x"?[0,n]:[n,0]).base(a).nice();return g.type="log",g},Qhi=function(e,t,n,r){var i,o,a=e.constant,s=a===void 0?1:a,l=e.min,c=l===void 0?"auto":l,u=e.max,d=u===void 0?"auto":u,p=e.reverse,h=p!==void 0&&p;i=c==="auto"?t.min:c,o=d==="auto"?t.max:d;var g=nSt().constant(s).rangeRound(r==="x"?[0,n]:[n,0]).nice();h===!0?g.domain([o,i]):g.domain([i,o]);var m=g;return m.type="symlog",m};function Qze(e,t,n,r){switch(e.type){case"linear":return Vhi(e,t,n,r);case"point":return $hi(0,t,n);case"band":return Uhi(e,t,n,r);case"time":return Yhi(e,t,n);case"log":return Khi(e,t,n,r);case"symlog":return Qhi(e,t,n,r);default:throw new Error("invalid scale spec")}}var MAt=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},CAt={millisecond:[Qq,Qq],second:[qbe,qbe],minute:[aSt,hSt],hour:[sSt,fSt],day:[nu((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)})),nu((function(e){return e.setUTCHours(0,0,0,0)}),(function(e,t){return e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)}))],week:[yX,MX],sunday:[yX,MX],monday:[Zq,Jq],tuesday:[lSt,gSt],wednesday:[cSt,mSt],thursday:[s3,l3],friday:[uSt,vSt],saturday:[dSt,bSt],month:[pSt,ySt],year:[pw,hw]},Zhi=Object.keys(CAt),Jhi=new RegExp("^every\\s*(\\d+)?\\s*("+Zhi.join("|")+")s?$","i"),xAt=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(Jhi);if(n){var r=n[1],i=n[2],o=CAt[i][e.useUTC?1:0];if(i==="day"){var a,s,l=e.domain(),c=l[0],u=l[1],d=new Date(u);return d.setDate(d.getDate()+1),(a=(s=o.every(Number(r??1)))==null?void 0:s.range(c,d))!=null?a:[]}if(r===void 0)return e.ticks(o);var p=o.every(Number(r));if(p)return e.ticks(p)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function zm(){return zm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zm.apply(this,arguments)}var wAt=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.engine,u=c===void 0?"svg":c,d=xAt(r,o),p=hhi[u],h="bandwidth"in r?MAt(r):r,g={lineX:0,lineY:0},m={textX:0,textY:0},v=typeof document=="object"&&document.dir==="rtl",y=p.align.center,M=p.baseline.center;return n==="x"?(t=function(C){var x;return{x:(x=h(C))!=null?x:0,y:0}},g.lineY=a*(i==="after"?1:-1),m.textY=(a+s)*(i==="after"?1:-1),M=i==="after"?p.baseline.top:p.baseline.bottom,l===0?y=p.align.center:i==="after"&&l<0||i==="before"&&l>0?(y=p.align[v?"left":"right"],M=p.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(y=p.align[v?"right":"left"],M=p.baseline.center)):(t=function(C){var x;return{x:0,y:(x=h(C))!=null?x:0}},g.lineX=a*(i==="after"?1:-1),m.textX=(a+s)*(i==="after"?1:-1),y=i==="after"?p.align.left:p.align.right),{ticks:d.map((function(C){return zm({key:typeof C=="number"||typeof C=="string"?C:""+C,value:C},t(C),g,m)})),textAlign:y,textBaseline:M}},SAt=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=gee(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return cj(e)},Hbe=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||xAt(i,a)),l="bandwidth"in i?MAt(i):i,c=o==="x"?s.map((function(u){var d,p;return{key:""+u,x1:(d=l(u))!=null?d:0,x2:(p=l(u))!=null?p:0,y1:0,y2:r}})):s.map((function(u){var d,p;return{key:""+u,x1:0,x2:n,y1:(d=l(u))!=null?d:0,y2:(p=l(u))!=null?p:0}}));return c},efi=b.memo((function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,c=e.animatedProps,u=ig(),d=(t=r?.(n))!=null?t:n,p=b.useMemo((function(){var h={opacity:c.opacity};return a?{style:zm({},h,{cursor:"pointer"}),onClick:function(g){return a(g,d)}}:{style:h}}),[c.opacity,a,d]);return f.jsxs(If.g,zm({transform:c.transform},p,{children:[f.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:u.axis.ticks.line}),f.jsx(If.text,{dominantBaseline:s,textAnchor:l,transform:c.textTransform,style:u.axis.ticks.text,children:d})]}))})),tfi=b.memo((function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,o=e.y,a=o===void 0?0:o,s=e.length,l=e.ticksPosition,c=e.tickValues,u=e.tickSize,d=u===void 0?5:u,p=e.tickPadding,h=p===void 0?5:p,g=e.tickRotation,m=g===void 0?0:g,v=e.format,y=e.renderTick,M=y===void 0?efi:y,C=e.legend,x=e.legendPosition,w=x===void 0?"end":x,S=e.legendOffset,A=S===void 0?0:S,z=e.onClick,O=e.ariaHidden,T=ig(),I=b.useMemo((function(){return SAt(v,n)}),[v,n]),P=wAt({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:m}),N=P.ticks,F=P.textAlign,L=P.textBaseline,W=null;if(C!==void 0){var H,j=0,G=0,q=0;t==="y"?(q=-90,j=A,w==="start"?(H="start",G=s):w==="middle"?(H="middle",G=s/2):w==="end"&&(H="end")):(G=A,w==="start"?H="start":w==="middle"?(H="middle",j=s/2):w==="end"&&(H="end",j=s)),W=f.jsx("text",{transform:"translate("+j+", "+G+") rotate("+q+")",textAnchor:H,style:zm({dominantBaseline:"central"},T.axis.legend.text),children:C})}var $=dj(),U=$.animate,X=$.config,Q=oj({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:X,immediate:!U}),re=fwt(N,{keys:function(ee){return ee.key},initial:function(ee){return{opacity:1,transform:"translate("+ee.x+","+ee.y+")",textTransform:"translate("+ee.textX+","+ee.textY+") rotate("+m+")"}},from:function(ee){return{opacity:0,transform:"translate("+ee.x+","+ee.y+")",textTransform:"translate("+ee.textX+","+ee.textY+") rotate("+m+")"}},enter:function(ee){return{opacity:1,transform:"translate("+ee.x+","+ee.y+")",textTransform:"translate("+ee.textX+","+ee.textY+") rotate("+m+")"}},update:function(ee){return{opacity:1,transform:"translate("+ee.x+","+ee.y+")",textTransform:"translate("+ee.textX+","+ee.textY+") rotate("+m+")"}},leave:{opacity:0},config:X,immediate:!U});return f.jsxs(If.g,{transform:Q.transform,"aria-hidden":O,children:[re((function(ee,se,pe,te){return b.createElement(M,zm({tickIndex:te,format:I,rotate:m,textBaseline:L,textAnchor:F,animatedProps:ee},se,z?{onClick:z}:{}))})),f.jsx(If.line,{style:T.axis.domain.line,x1:0,x2:Q.lineX2,y1:0,y2:Q.lineY2}),W]})})),nfi={ticksPosition:Z.oneOf(["before","after"]),tickValues:Z.oneOfType([Z.number,Z.arrayOf(Z.oneOfType([Z.number,Z.string,Z.instanceOf(Date)])),Z.string]),tickSize:Z.number,tickPadding:Z.number,tickRotation:Z.number,format:Z.oneOfType([Z.func,Z.string]),renderTick:Z.func,legend:Z.node,legendPosition:Z.oneOf(["start","middle","end"]),legendOffset:Z.number,ariaHidden:Z.bool};Z.shape(nfi);var AAt=["top","right","bottom","left"];b.memo((function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return f.jsx(f.Fragment,{children:AAt.map((function(a){var s=o[a];if(!s)return null;var l=a==="top"||a==="bottom";return f.jsx(tfi,zm({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:a==="top"||a==="left"?"before":"after"}),a)}))})}));var rfi=b.memo((function(e){var t=e.animatedProps,n=ig();return f.jsx(If.line,zm({},t,n.grid.line))})),qXe=b.memo((function(e){var t=e.lines,n=dj(),r=n.animate,i=n.config,o=fwt(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:i,immediate:!r});return f.jsx("g",{children:o((function(a,s){return b.createElement(rfi,zm({},s,{key:s.key,animatedProps:a}))}))})}));b.memo((function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=b.useMemo((function(){return!!r&&Hbe({width:t,height:n,scale:r,axis:"x",values:o})}),[r,o,t,n]),l=b.useMemo((function(){return!!i&&Hbe({width:t,height:n,scale:i,axis:"y",values:a})}),[n,t,i,a]);return f.jsxs(f.Fragment,{children:[s&&f.jsx(qXe,{lines:s}),l&&f.jsx(qXe,{lines:l})]})}));var ifi=function(e,t){var n,r=t.axis,i=t.scale,o=t.x,a=o===void 0?0:o,s=t.y,l=s===void 0?0:s,c=t.length,u=t.ticksPosition,d=t.tickValues,p=t.tickSize,h=p===void 0?5:p,g=t.tickPadding,m=g===void 0?5:g,v=t.tickRotation,y=v===void 0?0:v,M=t.format,C=t.legend,x=t.legendPosition,w=x===void 0?"end":x,S=t.legendOffset,A=S===void 0?0:S,z=t.theme,O=wAt({axis:r,scale:i,ticksPosition:u,tickValues:d,tickSize:h,tickPadding:m,tickRotation:y,engine:"canvas"}),T=O.ticks,I=O.textAlign,P=O.textBaseline;e.save(),e.translate(a,l),e.textAlign=I,e.textBaseline=P,e.font=(z.axis.ticks.text.fontWeight?z.axis.ticks.text.fontWeight+" ":"")+z.axis.ticks.text.fontSize+"px "+z.axis.ticks.text.fontFamily,((n=z.axis.domain.line.strokeWidth)!=null?n:0)>0&&(e.lineWidth=Number(z.axis.domain.line.strokeWidth),e.lineCap="square",z.axis.domain.line.stroke&&(e.strokeStyle=z.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(r==="x"?c:0,r==="x"?0:c),e.stroke());var N=typeof M=="function"?M:function(j){return""+j};if(T.forEach((function(j){var G;((G=z.axis.ticks.line.strokeWidth)!=null?G:0)>0&&(e.lineWidth=Number(z.axis.ticks.line.strokeWidth),e.lineCap="square",z.axis.ticks.line.stroke&&(e.strokeStyle=z.axis.ticks.line.stroke),e.beginPath(),e.moveTo(j.x,j.y),e.lineTo(j.x+j.lineX,j.y+j.lineY),e.stroke());var q=N(j.value);e.save(),e.translate(j.x+j.textX,j.y+j.textY),e.rotate(e6(y)),z.axis.ticks.text.fill&&(e.fillStyle=z.axis.ticks.text.fill),e.fillText(String(q),0,0),e.restore()})),C!==void 0){var F=0,L=0,W=0,H="center";r==="y"?(W=-90,F=A,w==="start"?(H="start",L=c):w==="middle"?(H="center",L=c/2):w==="end"&&(H="end")):(L=A,w==="start"?H="start":w==="middle"?(H="center",F=c/2):w==="end"&&(H="end",F=c)),e.translate(F,L),e.rotate(e6(W)),e.font=(z.axis.legend.text.fontWeight?z.axis.legend.text.fontWeight+" ":"")+z.axis.legend.text.fontSize+"px "+z.axis.legend.text.fontFamily,z.axis.legend.text.fill&&(e.fillStyle=z.axis.legend.text.fill),e.textAlign=H,e.textBaseline="middle",e.fillText(C,0,0)}e.restore()},ofi=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:a,right:s,bottom:l,left:c};AAt.forEach((function(p){var h=d[p];if(!h)return null;var g=p==="top"||p==="bottom",m=p==="top"||p==="left"?"before":"after",v=g?n:r,y=SAt(h.format,v);ifi(e,zm({},h,{axis:g?"x":"y",x:p==="right"?i:0,y:p==="bottom"?o:0,scale:v,format:y,length:g?i:o,ticksPosition:m,theme:u}))}))},BXe=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;Hbe({width:n,height:r,scale:i,axis:o,values:a}).forEach((function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()}))},A1e,jXe;function afi(){if(jXe)return A1e;jXe=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return A1e=e,A1e}var O1e,HXe;function sfi(){if(HXe)return O1e;HXe=1;var e=xk(),t=uj();function n(r,i){return r&&e(i,t(i),r)}return O1e=n,O1e}var z1e,VXe;function lfi(){if(VXe)return z1e;VXe=1;var e=xk(),t=sj();function n(r,i){return r&&e(i,t(i),r)}return z1e=n,z1e}var T1e,GXe;function cfi(){if(GXe)return T1e;GXe=1;var e=xk(),t=Uze();function n(r,i){return e(r,t(r),i)}return T1e=n,T1e}var E1e,$Xe;function OAt(){if($Xe)return E1e;$Xe=1;var e=$ze(),t=lze(),n=Uze(),r=XSt(),i=Object.getOwnPropertySymbols,o=i?function(a){for(var s=[];a;)e(s,n(a)),a=t(a);return s}:r;return E1e=o,E1e}var R1e,UXe;function ufi(){if(UXe)return R1e;UXe=1;var e=xk(),t=OAt();function n(r,i){return e(r,t(r),i)}return R1e=n,R1e}var I1e,XXe;function zAt(){if(XXe)return I1e;XXe=1;var e=$St(),t=OAt(),n=sj();function r(i){return e(i,n,t)}return I1e=r,I1e}var P1e,YXe;function dfi(){if(YXe)return P1e;YXe=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r){var i=r.length,o=new r.constructor(i);return i&&typeof r[0]=="string"&&t.call(r,"index")&&(o.index=r.index,o.input=r.input),o}return P1e=n,P1e}var D1e,KXe;function pfi(){if(KXe)return D1e;KXe=1;var e=sze();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.byteLength)}return D1e=t,D1e}var k1e,QXe;function hfi(){if(QXe)return k1e;QXe=1;var e=/\w*$/;function t(n){var r=new n.constructor(n.source,e.exec(n));return r.lastIndex=n.lastIndex,r}return k1e=t,k1e}var L1e,ZXe;function ffi(){if(ZXe)return L1e;ZXe=1;var e=yk(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function r(i){return n?Object(n.call(i)):{}}return L1e=r,L1e}var _1e,JXe;function gfi(){if(JXe)return _1e;JXe=1;var e=sze(),t=pfi(),n=hfi(),r=ffi(),i=Twt(),o="[object Boolean]",a="[object Date]",s="[object Map]",l="[object Number]",c="[object RegExp]",u="[object Set]",d="[object String]",p="[object Symbol]",h="[object ArrayBuffer]",g="[object DataView]",m="[object Float32Array]",v="[object Float64Array]",y="[object Int8Array]",M="[object Int16Array]",C="[object Int32Array]",x="[object Uint8Array]",w="[object Uint8ClampedArray]",S="[object Uint16Array]",A="[object Uint32Array]";function z(O,T,I){var P=O.constructor;switch(T){case h:return e(O);case o:case a:return new P(+O);case g:return t(O,I);case m:case v:case y:case M:case C:case x:case w:case S:case A:return i(O,I);case s:return new P;case l:case d:return new P(O);case c:return n(O);case u:return new P;case p:return r(O)}}return _1e=z,_1e}var N1e,eYe;function mfi(){if(eYe)return N1e;eYe=1;var e=$ee(),t=rg(),n="[object Map]";function r(i){return t(i)&&e(i)==n}return N1e=r,N1e}var F1e,tYe;function vfi(){if(tYe)return F1e;tYe=1;var e=mfi(),t=Ck(),n=iee(),r=n&&n.isMap,i=r?t(r):e;return F1e=i,F1e}var W1e,nYe;function bfi(){if(nYe)return W1e;nYe=1;var e=$ee(),t=rg(),n="[object Set]";function r(i){return t(i)&&e(i)==n}return W1e=r,W1e}var q1e,rYe;function yfi(){if(rYe)return q1e;rYe=1;var e=bfi(),t=Ck(),n=iee(),r=n&&n.isSet,i=r?t(r):e;return q1e=i,q1e}var B1e,iYe;function Mfi(){if(iYe)return B1e;iYe=1;var e=tee(),t=afi(),n=hze(),r=sfi(),i=lfi(),o=Owt(),a=Ewt(),s=cfi(),l=ufi(),c=YSt(),u=zAt(),d=$ee(),p=dfi(),h=gfi(),g=Iwt(),m=y1(),v=ree(),y=vfi(),M=o2(),C=yfi(),x=uj(),w=sj(),S=1,A=2,z=4,O="[object Arguments]",T="[object Array]",I="[object Boolean]",P="[object Date]",N="[object Error]",F="[object Function]",L="[object GeneratorFunction]",W="[object Map]",H="[object Number]",j="[object Object]",G="[object RegExp]",q="[object Set]",$="[object String]",U="[object Symbol]",X="[object WeakMap]",Q="[object ArrayBuffer]",re="[object DataView]",ee="[object Float32Array]",se="[object Float64Array]",pe="[object Int8Array]",te="[object Int16Array]",ce="[object Int32Array]",oe="[object Uint8Array]",ae="[object Uint8ClampedArray]",ne="[object Uint16Array]",le="[object Uint32Array]",he={};he[O]=he[T]=he[Q]=he[re]=he[I]=he[P]=he[ee]=he[se]=he[pe]=he[te]=he[ce]=he[W]=he[H]=he[j]=he[G]=he[q]=he[$]=he[U]=he[oe]=he[ae]=he[ne]=he[le]=!0,he[N]=he[F]=he[X]=!1;function be(me,Me,Oe,de,ie,ue){var Ae,Ce=Me&S,Ee=Me&A,Ge=Me&z;if(Oe&&(Ae=ie?Oe(me,de,ie,ue):Oe(me)),Ae!==void 0)return Ae;if(!M(me))return me;var _e=m(me);if(_e){if(Ae=p(me),!Ce)return a(me,Ae)}else{var Ie=d(me),Le=Ie==F||Ie==L;if(v(me))return o(me,Ce);if(Ie==j||Ie==O||Le&&!ie){if(Ae=Ee||Le?{}:g(me),!Ce)return Ee?l(me,i(Ae,me)):s(me,r(Ae,me))}else{if(!he[Ie])return ie?me:{};Ae=h(me,Ie,Ce)}}ue||(ue=new e);var we=ue.get(me);if(we)return we;ue.set(me,Ae),C(me)?me.forEach(function(ze){Ae.add(be(ze,Me,Oe,ze,me,ue))}):y(me)&&me.forEach(function(ze,Ve){Ae.set(Ve,be(ze,Me,Oe,Ve,me,ue))});var ve=Ge?Ee?u:c:Ee?w:x,De=_e?void 0:ve(me);return t(De||me,function(ze,Ve){De&&(Ve=ze,ze=me[Ve]),n(Ae,Ve,be(ze,Me,Oe,Ve,me,ue))}),Ae}return B1e=be,B1e}var j1e,oYe;function Cfi(){if(oYe)return j1e;oYe=1;function e(t,n,r){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(o);++i<o;)a[i]=t[i+n];return a}return j1e=e,j1e}var H1e,aYe;function xfi(){if(aYe)return H1e;aYe=1;var e=lj(),t=Cfi();function n(r,i){return i.length<2?r:e(r,t(i,0,-1))}return H1e=n,H1e}var V1e,sYe;function wfi(){if(sYe)return V1e;sYe=1;var e=wk(),t=Gwt(),n=xfi(),r=Sk();function i(o,a){return a=e(a,o),o=n(o,a),o==null||delete o[r(t(a))]}return V1e=i,V1e}var G1e,lYe;function Sfi(){if(lYe)return G1e;lYe=1;var e=dze();function t(n){return e(n)?void 0:n}return G1e=t,G1e}var $1e,cYe;function Afi(){if(cYe)return $1e;cYe=1;var e=lee(),t=Mfi(),n=wfi(),r=wk(),i=xk(),o=Sfi(),a=eAt(),s=zAt(),l=1,c=2,u=4,d=a(function(p,h){var g={};if(p==null)return g;var m=!1;h=e(h,function(y){return y=r(y,p),m||(m=y.length>1),y}),i(p,s(p),g),m&&(g=t(g,l|c|u,o));for(var v=h.length;v--;)n(g,h[v]);return g});return $1e=d,$1e}var Ofi=Afi();const zfi=qn(Ofi);var U1e,uYe;function Tfi(){if(uYe)return U1e;uYe=1;var e=AM(),t=rg(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return U1e=r,U1e}var Efi=Tfi();const dYe=qn(Efi);var X1e,pYe;function Rfi(){if(pYe)return X1e;pYe=1;var e=yAt();function t(n,r){var i=[];return e(n,function(o,a,s){r(o,a,s)&&i.push(o)}),i}return X1e=t,X1e}var Y1e,hYe;function Ifi(){if(hYe)return Y1e;hYe=1;var e=USt(),t=Rfi(),n=Kze(),r=y1();function i(o,a){var s=r(o)?e:t;return s(o,n(a,3))}return Y1e=i,Y1e}var Pfi=Ifi();const Dfi=qn(Pfi);function t6(){return t6=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t6.apply(this,arguments)}var fYe={noteWidth:120,noteTextOffset:8},kfi=function(e){var t=typeof e;return t==="string"||t==="function"},SX=function(e){return e.type==="circle"},gYe=function(e){return e.type==="dot"},AX=function(e){return e.type==="rect"},Lfi=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce((function(o,a){var s=a.offset||0;return[].concat(o,Dfi(t,a.match).map((function(l){var c=r(l),u=i(l);return(SX(a)||AX(a))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),t6({},zfi(a,["match","offset"]),c,u,{size:a.size||u.size,datum:l})})))}),[])},_fi=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return phi(uhi(i))},Nfi=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,l=s===void 0?fYe.noteWidth:s,c=e.noteTextOffset,u=c===void 0?fYe.noteTextOffset:c;if(dYe(o))t=r+o;else{if(o.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(dYe(a))n=i+a;else{if(a.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var d=r,p=i,h=_fi(r,i,t,n);if(SX(e)){var g=dhi(e6(h),e.size/2);d+=g.x,p+=g.y}if(AX(e)){var m=Math.round((h+90)/45)%8;m===0&&(p-=e.height/2),m===1&&(d+=e.width/2,p-=e.height/2),m===2&&(d+=e.width/2),m===3&&(d+=e.width/2,p+=e.height/2),m===4&&(p+=e.height/2),m===5&&(d-=e.width/2,p+=e.height/2),m===6&&(d-=e.width/2),m===7&&(d-=e.width/2,p-=e.height/2)}var v=t,y=t;return(h+90)%360>180?(v-=l,y-=l):y+=l,{points:[[d,p],[t,n],[y,n]],text:[v,n-u],angle:h+90}},Ffi=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return b.useMemo((function(){return Lfi({data:t,annotations:n,getPosition:r,getDimensions:i})}),[t,n,r,i])},Wfi=function(e){var t=e.annotations;return b.useMemo((function(){return t.map((function(n){return t6({},n,{computed:Nfi(t6({},n))})}))}),[t])},mYe=function(e,t){t.forEach((function(n,r){var i=n[0],o=n[1];r===0?e.moveTo(i,o):e.lineTo(i,o)}))},qfi=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach((function(i){if(!kfi(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),mYe(e,i.computed.points),e.stroke(),e.lineCap="butt"),SX(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),gYe(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),AX(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),mYe(e,i.computed.points),e.stroke(),SX(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),gYe(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),AX(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))})),e.restore())};function OX(){return OX=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OX.apply(this,arguments)}function vYe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bfi(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=(function(i,o){if(i){if(typeof i=="string")return vYe(i,o);var a=Object.prototype.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?vYe(i,o):void 0}})(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var TAt={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:N0i,accent:F0i,dark2:W0i,paired:q0i,pastel1:B0i,pastel2:j0i,set1:H0i,set2:V0i,set3:zSt},jfi=Object.keys(TAt),EAt={brown_blueGreen:mee,purpleRed_green:vee,pink_yellowGreen:bee,purple_orange:yee,red_blue:Mee,red_grey:Cee,red_yellow_blue:xee,red_yellow_green:wee,spectral:See},Hfi=Object.keys(EAt),Vfi={brown_blueGreen:G0i,purpleRed_green:$0i,pink_yellowGreen:U0i,purple_orange:X0i,red_blue:Y0i,red_grey:K0i,red_yellow_blue:Q0i,red_yellow_green:Z0i,spectral:J0i},RAt={blues:Nee,greens:Fee,greys:Wee,oranges:jee,purples:qee,reds:Bee,blue_green:Aee,blue_purple:Oee,green_blue:zee,orange_red:Tee,purple_blue_green:Eee,purple_blue:Ree,purple_red:Iee,red_purple:Pee,yellow_green_blue:Dee,yellow_green:kee,yellow_orange_brown:Lee,yellow_orange_red:_ee},Gfi=Object.keys(RAt),$fi={blues:p1i,greens:h1i,greys:f1i,oranges:v1i,purples:g1i,reds:m1i,turbo:O1i,viridis:z1i,inferno:E1i,magma:T1i,plasma:R1i,cividis:b1i,warm:M1i,cool:C1i,cubehelixDefault:y1i,blue_green:e1i,blue_purple:t1i,green_blue:n1i,orange_red:r1i,purple_blue_green:i1i,purple_blue:o1i,purple_red:a1i,red_purple:s1i,yellow_green_blue:l1i,yellow_green:c1i,yellow_orange_brown:u1i,yellow_orange_red:d1i},n$=OX({},TAt,EAt,RAt),Ufi=Object.keys(n$),Xfi=function(e){return jfi.includes(e)},Yfi=function(e){return Hfi.includes(e)},Kfi=function(e){return Gfi.includes(e)},Qfi={rainbow:x1i,sinebow:A1i};OX({},Vfi,$fi,Qfi);var Zfi=function(e,t){if(typeof e=="function")return e;if(QSt(e)){if((function(l){return l.theme!==void 0})(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=Bx(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if((function(l){return l.from!==void 0})(e)){var r=function(l){return Bx(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var l=i.value,c=l[0],u=l[1];if(c==="brighter")o.push((function(d){return d.brighter(u)}));else if(c==="darker")o.push((function(d){return d.darker(u)}));else{if(c!=="opacity")throw new Error("Invalid color modifier: '"+c+"', must be one of: 'brighter', 'darker', 'opacity'");o.push((function(d){return d.opacity=u,d}))}},s=Bfi(e.modifiers);!(i=s()).done;)a();return o.length===0?r:function(l){return o.reduce((function(c,u){return u(c)}),UP(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},bYe=function(e,t){return b.useMemo((function(){return Zfi(e,t)}),[e,t])};Z.oneOfType([Z.func,Z.arrayOf(Z.string),Z.shape({scheme:Z.oneOf(Ufi).isRequired,size:Z.number}),Z.shape({datum:Z.string.isRequired}),Z.string]);Z.oneOfType([Z.string,Z.func,Z.shape({theme:Z.string.isRequired}),Z.shape({from:Z.string.isRequired,modifiers:Z.arrayOf(Z.array)})]);var Jfi=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return Bx(d,t)};if(Array.isArray(e)){var r=OO(e),i=function(d){return r(n(d))};return i.scale=r,i}if(QSt(e)){if((function(d){return d.datum!==void 0})(e))return function(d){return Bx(d,e.datum)};if((function(d){return d.scheme!==void 0})(e)){if(Xfi(e.scheme)){var o=OO(n$[e.scheme]),a=function(d){return o(n(d))};return a.scale=o,a}if(Yfi(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=OO(n$[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(Kfi(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=OO(n$[e.scheme][e.size||9]),u=function(d){return c(n(d))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},egi=function(e,t){return b.useMemo((function(){return Jfi(e,t)}),[e,t])};function Vbe(){return Vbe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vbe.apply(this,arguments)}var tgi={top:0,right:0,bottom:0,left:0},ngi=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:Vbe({},tgi,i),c=l.left+l.right,u=l.top+l.bottom,d=a+c,p=s+u,h=(o-1)*r;return n==="row"?d=a*o+h+c:n==="column"&&(p=s*o+h+u),{width:d,height:p,padding:l}},rgi=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(o-s)/2;break;case"bottom-right":l+=i-a,c+=o-s;break;case"bottom":l+=(i-a)/2,c+=o-s;break;case"bottom-left":c+=o-s;break;case"left":c+=(o-s)/2;break;case"center":l+=(i-a)/2,c+=(o-s)/2}return{x:l,y:c}},igi=function(e){var t,n,r,i,o,a,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,p=e.height;switch(s){case"left-to-right":t=0,n=(p-c)/2,i=p/2,a="central",l?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(p-c)/2,i=p/2,a="central",l?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",l?(i=p,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=p-c,r=d/2,o="middle",l?(i=0,a="text-before-edge"):(i=p-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},ogi={start:"left",middle:"center",end:"right"},agi=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=o===void 0?0:o,s=t.translateY,l=s===void 0?0:s,c=t.anchor,u=t.direction,d=t.padding,p=d===void 0?0:d,h=t.justify,g=h!==void 0&&h,m=t.itemsSpacing,v=m===void 0?0:m,y=t.itemWidth,M=t.itemHeight,C=t.itemDirection,x=C===void 0?"left-to-right":C,w=t.itemTextColor,S=t.symbolSize,A=S===void 0?16:S,z=t.symbolSpacing,O=z===void 0?8:z,T=t.theme,I=ngi({itemCount:n.length,itemWidth:y,itemHeight:M,itemsSpacing:v,direction:u,padding:p}),P=I.width,N=I.height,F=I.padding,L=rgi({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:P,height:N}),W=L.x,H=L.y,j=u==="row"?y+v:0,G=u==="column"?M+v:0;e.save(),e.translate(W,H),e.font=T.legends.text.fontSize+"px "+(T.legends.text.fontFamily||"sans-serif"),n.forEach((function(q,$){var U,X,Q=$*j+F.left,re=$*G+F.top,ee=igi({direction:x,justify:g,symbolSize:A,symbolSpacing:O,width:y,height:M}),se=ee.symbolX,pe=ee.symbolY,te=ee.labelX,ce=ee.labelY,oe=ee.labelAnchor,ae=ee.labelAlignment;e.fillStyle=(U=q.color)!=null?U:"black",e.fillRect(Q+se,re+pe,A,A),e.textAlign=ogi[oe],ae==="central"&&(e.textBaseline="middle"),e.fillStyle=(X=w??T.legends.text.fill)!=null?X:"black",e.fillText(String(q.label),Q+te,re+ce)})),e.restore()};Z.arrayOf(Z.object),Z.oneOf(["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left","center"]).isRequired,Z.number,Z.number,Z.oneOf(["row","column"]).isRequired,Z.number,Z.number.isRequired,Z.number.isRequired,Z.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]),Z.string,Z.string,Z.number,Z.oneOfType([Z.oneOf(["circle","diamond","square","triangle"]),Z.func]),Z.number,Z.number,Z.number,Z.string,Z.func,Z.func,Z.func,Z.arrayOf(Z.shape({on:Z.oneOfType([Z.oneOf(["hover"])]).isRequired,style:Z.shape({itemTextColor:Z.string,itemBackground:Z.string,itemOpacity:Z.number,symbolSize:Z.number,symbolBorderWidth:Z.number,symbolBorderColor:Z.string}).isRequired}));function tu(){return tu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tu.apply(this,arguments)}function pj(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var yYe,sgi=["data"],lgi=function(e){var t,n=e.bar,r=n.data,i=pj(n,sgi),o=e.style,a=o.borderColor,s=o.color,l=o.height,c=o.labelColor,u=o.labelOpacity,d=o.labelX,p=o.labelY,h=o.transform,g=o.width,m=e.borderRadius,v=e.borderWidth,y=e.label,M=e.shouldRenderLabel,C=e.isInteractive,x=e.onClick,w=e.onMouseEnter,S=e.onMouseLeave,A=e.tooltip,z=e.isFocusable,O=e.ariaLabel,T=e.ariaLabelledBy,I=e.ariaDescribedBy,P=ig(),N=Mwt(),F=N.showTooltipFromEvent,L=N.showTooltipAt,W=N.hideTooltip,H=b.useMemo((function(){return function(){return b.createElement(A,tu({},i,r))}}),[A,i,r]),j=b.useCallback((function(Q){x?.(tu({color:i.color},r),Q)}),[i,r,x]),G=b.useCallback((function(Q){return F(H(),Q)}),[F,H]),q=b.useCallback((function(Q){w?.(r,Q),F(H(),Q)}),[r,w,F,H]),$=b.useCallback((function(Q){S?.(r,Q),W()}),[r,W,S]),U=b.useCallback((function(){L(H(),[i.absX+i.width/2,i.absY])}),[L,H,i]),X=b.useCallback((function(){W()}),[W]);return f.jsxs(If.g,{transform:h,children:[f.jsx(If.rect,{width:E7e(g,(function(Q){return Math.max(Q,0)})),height:E7e(l,(function(Q){return Math.max(Q,0)})),rx:m,ry:m,fill:(t=r.fill)!=null?t:s,strokeWidth:v,stroke:a,focusable:z,tabIndex:z?0:void 0,"aria-label":O?O(r):void 0,"aria-labelledby":T?T(r):void 0,"aria-describedby":I?I(r):void 0,onMouseEnter:C?q:void 0,onMouseMove:C?G:void 0,onMouseLeave:C?$:void 0,onClick:C?j:void 0,onFocus:C&&z?U:void 0,onBlur:C&&z?X:void 0}),M&&f.jsx(If.text,{x:d,y:p,textAnchor:"middle",dominantBaseline:"central",fillOpacity:u,style:tu({},P.labels.text,{pointerEvents:"none",fill:c}),children:y})]})},cgi=["color","label"],gl={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",reverse:!1,minValue:"auto",maxValue:"auto",valueScale:{type:"linear"},indexScale:{type:"band",round:!0},padding:.1,innerPadding:0,axisBottom:{},axisLeft:{},enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{from:"theme",theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,r=pj(e,cgi);return f.jsx(Zli,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],markers:[]};tu({},gl,{layers:["grid","axes","bars","markers","legends","annotations"],barComponent:lgi,defs:[],fill:[],animate:!0,motionConfig:"default",role:"img",isFocusable:!1});var Dg=tu({},gl,{layers:["grid","axes","bars","legends","annotations"],pixelRatio:typeof window<"u"&&(yYe=window.devicePixelRatio)!=null?yYe:1}),IAt=function(e,t,n,r,i,o){return Qze(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},PAt=function(e,t){return e.map((function(n){return tu({},t.reduce((function(r,i){return r[i]=null,r}),{}),n)}))},Xee=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})},Yee=function(e){return[e,Number(e)]},ugi=["layout","minValue","maxValue","reverse","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Zze=function(e,t){return e>t},DAt=function(e,t){return e<t},kAt=function(e,t){return Array.from(" ".repeat(t-e),(function(n,r){return e+r}))},dgi=function(e){return Zze(e,0)?0:e},pgi=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,s=e.getIndex,l=e.getTooltipLabel,c=e.innerPadding,u=c===void 0?0:c,d=e.keys,p=e.xScale,h=e.yScale,g=e.margin,m=n?DAt:Zze,v=i.map(Xee),y=[];return d.forEach((function(M,C){return kAt(0,p.domain().length).forEach((function(x){var w,S,A,z=Yee(i[x][M]),O=z[0],T=z[1],I=s(i[x]),P=((w=p(I))!=null?w:0)+t*C+u*C,N=m(S=T,0)?(A=h(S))!=null?A:0:r,F=(function(W,H){var j;return m(W,0)?r-H:((j=h(W))!=null?j:0)-r})(T,N),L={id:M,value:O===null?O:T,formattedValue:o(T),hidden:!1,index:x,indexValue:I,data:v[x]};y.push({key:M+"."+L.indexValue,index:y.length,data:L,x:P,y:N,absX:g.left+P,absY:g.top+N,width:t,height:F,color:a(L),label:l(L)})}))})),y},hgi=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,s=e.getColor,l=e.getTooltipLabel,c=e.keys,u=e.innerPadding,d=u===void 0?0:u,p=e.xScale,h=e.yScale,g=e.margin,m=n?DAt:Zze,v=i.map(Xee),y=[];return c.forEach((function(M,C){return kAt(0,h.domain().length).forEach((function(x){var w,S,A,z=Yee(i[x][M]),O=z[0],T=z[1],I=a(i[x]),P=m(S=T,0)?r:(A=p(S))!=null?A:0,N=((w=h(I))!=null?w:0)+t*C+d*C,F=(function(W,H){var j;return m(W,0)?((j=p(W))!=null?j:0)-r:r-H})(T,P),L={id:M,value:O===null?O:T,formattedValue:o(T),hidden:!1,index:x,indexValue:I,data:v[x]};y.push({key:M+"."+L.indexValue,index:y.length,data:L,x:P,y:N,absX:g.left+P,absY:g.top+N,width:F,height:t,color:s(L),label:l(L)})}))})),y},fgi=function(e){var t,n,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,l=e.height,c=e.padding,u=c===void 0?0:c,d=e.innerPadding,p=d===void 0?0:d,h=e.valueScale,g=e.indexScale,m=e.hiddenIds,v=m===void 0?[]:m,y=pj(e,ugi),M=y.keys.filter((function(q){return!v.includes(q)})),C=PAt(y.data,M),x=r==="vertical"?["y","x",s]:["x","y",l],w=x[0],S=x[1],A=x[2],z=IAt(C,y.getIndex,u,g,A,S),O=tu({max:o,min:i,reverse:a},h),T=O.min==="auto"?dgi:function(q){return q},I=C.reduce((function(q,$){return[].concat(q,M.map((function(U){return $[U]})))}),[]).filter(Boolean),P=T(Math.min.apply(Math,I)),N=(n=Math.max.apply(Math,I),isFinite(n)?n:0),F=Qze(O,{all:I,min:P,max:N},w==="x"?s:l,w),L=r==="vertical"?[z,F]:[F,z],W=L[0],H=L[1],j=(z.bandwidth()-p*(M.length-1))/M.length,G=[tu({},y,{data:C,keys:M,innerPadding:p,xScale:W,yScale:H}),j,O.reverse,(t=F(0))!=null?t:0];return{xScale:W,yScale:H,bars:j>0?r==="vertical"?pgi.apply(void 0,G):hgi.apply(void 0,G):[]}},ggi=["data","layout","minValue","maxValue","reverse","width","height","padding","valueScale","indexScale","hiddenIds"],mgi=function e(t){var n;return t.some(Array.isArray)?e((n=[]).concat.apply(n,t)):t},vgi=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,p=[];return l.forEach((function(h){return c.domain().forEach((function(g,m){var v,y,M=h[m],C=(v=c(o(M.data)))!=null?v:0,x=((y=(function(T){return u(T[n?0:1])})(M))!=null?y:0)+.5*s,w=(function(T,I){var P;return((P=u(T[n?1:0]))!=null?P:0)-I})(M,x)-s,S=Yee(M.data[h.key]),A=S[0],z=S[1],O={id:h.key,value:A===null?A:z,formattedValue:r(z),hidden:!1,index:m,indexValue:g,data:Xee(M.data)};p.push({key:h.key+"."+g,index:p.length,data:O,x:C,y:x,absX:d.left+C,absY:d.top+x,width:t,height:w,color:i(O),label:a(O)})}))})),p},bgi=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,p=[];return l.forEach((function(h){return u.domain().forEach((function(g,m){var v,y,M=h[m],C=(v=u(o(M.data)))!=null?v:0,x=((y=(function(T){return c(T[n?1:0])})(M))!=null?y:0)+.5*s,w=(function(T,I){var P;return((P=c(T[n?0:1]))!=null?P:0)-I})(M,x)-s,S=Yee(M.data[h.key]),A=S[0],z=S[1],O={id:h.key,value:A===null?A:z,formattedValue:r(z),hidden:!1,index:m,indexValue:g,data:Xee(M.data)};p.push({key:h.key+"."+g,index:p.length,data:O,x,y:C,absX:d.left+x,absY:d.top+C,width:w,height:t,color:i(O),label:a(O)})}))})),p},ygi=function(e){var t,n=e.data,r=e.layout,i=e.minValue,o=e.maxValue,a=e.reverse,s=e.width,l=e.height,c=e.padding,u=c===void 0?0:c,d=e.valueScale,p=e.indexScale,h=e.hiddenIds,g=h===void 0?[]:h,m=pj(e,ggi),v=m.keys.filter((function(j){return!g.includes(j)})),y=spi().keys(v).offset(jSt)(PAt(n,v)),M=r==="vertical"?["y","x",s]:["x","y",l],C=M[0],x=M[1],w=M[2],S=IAt(n,m.getIndex,u,p,w,x),A=tu({max:o,min:i,reverse:a},d),z=(t=mgi(y),d.type==="log"?t.filter((function(j){return j!==0})):t),O=Math.min.apply(Math,z),T=Math.max.apply(Math,z),I=Qze(A,{all:z,min:O,max:T},C==="x"?s:l,C),P=r==="vertical"?[S,I]:[I,S],N=P[0],F=P[1],L=m.innerPadding>0?m.innerPadding:0,W=S.bandwidth(),H=[tu({},m,{innerPadding:L,stackedData:y,xScale:N,yScale:F}),W,A.reverse];return{xScale:N,yScale:F,bars:W>0?r==="vertical"?vgi.apply(void 0,H):bgi.apply(void 0,H):[]}},Mgi=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,s=e.reverse,l=gAt(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?(function(c,u,d){var p=TXe(c.map((function(h){var g,m;return{id:(g=h.data.indexValue)!=null?g:"",label:d(h.data),hidden:h.data.hidden,color:(m=h.color)!=null?m:"#000"}})),(function(h){return h.id}));return u==="horizontal"&&p.reverse(),p})(t,o,l):(function(c,u,d,p,h,g){var m=TXe(c.map((function(v){var y;return{id:v.data.id,label:g(v.data),hidden:v.data.hidden,color:(y=v.color)!=null?y:"#000"}})),(function(v){return v.id}));return(u==="vertical"&&p==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&p==="stacked"&&h===!0)&&m.reverse(),m})(t,o,n,i,s,l)},Cgi=function(e){var t=e.indexBy,n=t===void 0?gl.indexBy:t,r=e.keys,i=r===void 0?gl.keys:r,o=e.label,a=o===void 0?gl.label:o,s=e.tooltipLabel,l=s===void 0?gl.tooltipLabel:s,c=e.valueFormat,u=e.colors,d=u===void 0?gl.colors:u,p=e.colorBy,h=p===void 0?gl.colorBy:p,g=e.borderColor,m=g===void 0?gl.borderColor:g,v=e.labelTextColor,y=v===void 0?gl.labelTextColor:v,M=e.groupMode,C=M===void 0?gl.groupMode:M,x=e.layout,w=x===void 0?gl.layout:x,S=e.reverse,A=S===void 0?gl.reverse:S,z=e.data,O=e.minValue,T=O===void 0?gl.minValue:O,I=e.maxValue,P=I===void 0?gl.maxValue:I,N=e.margin,F=e.width,L=e.height,W=e.padding,H=W===void 0?gl.padding:W,j=e.innerPadding,G=j===void 0?gl.innerPadding:j,q=e.valueScale,$=q===void 0?gl.valueScale:q,U=e.indexScale,X=U===void 0?gl.indexScale:U,Q=e.initialHiddenIds,re=Q===void 0?gl.initialHiddenIds:Q,ee=e.enableLabel,se=ee===void 0?gl.enableLabel:ee,pe=e.labelSkipWidth,te=pe===void 0?gl.labelSkipWidth:pe,ce=e.labelSkipHeight,oe=ce===void 0?gl.labelSkipHeight:ce,ae=e.legends,ne=ae===void 0?gl.legends:ae,le=e.legendLabel,he=b.useState(re??[]),be=he[0],me=he[1],Me=b.useCallback((function(Ke){me((function(et){return et.indexOf(Ke)>-1?et.filter((function(it){return it!==Ke})):[].concat(et,[Ke])}))}),[]),Oe=Q0e(n),de=Q0e(a),ie=Q0e(l),ue=iAt(c),Ae=ig(),Ce=egi(d,h),Ee=bYe(m,Ae),Ge=bYe(y,Ae),_e=(C==="grouped"?fgi:ygi)({layout:w,reverse:A,data:z,getIndex:Oe,keys:i,minValue:T,maxValue:P,width:F,height:L,getColor:Ce,padding:H,innerPadding:G,valueScale:$,indexScale:X,hiddenIds:be,formatValue:ue,getTooltipLabel:ie,margin:N}),Ie=_e.bars,Le=_e.xScale,we=_e.yScale,ve=b.useMemo((function(){return Ie.filter((function(Ke){return Ke.data.value!==null})).map((function(Ke,et){return tu({},Ke,{index:et})}))}),[Ie]),De=b.useCallback((function(Ke){var et=Ke.width,it=Ke.height;return!!se&&!(te>0&&et<te)&&!(oe>0&&it<oe)}),[se,te,oe]),ze=b.useMemo((function(){return i.map((function(Ke){var et=Ie.find((function(it){return it.data.id===Ke}));return tu({},et,{data:tu({id:Ke},et?.data,{hidden:be.includes(Ke)})})}))}),[be,i,Ie]),Ve=b.useMemo((function(){return ne.map((function(Ke){return[Ke,Mgi({bars:Ke.dataFrom==="keys"?ze:Ie,direction:Ke.direction,from:Ke.dataFrom,groupMode:C,layout:w,legendLabel:le,reverse:A})]}))}),[ne,ze,Ie,C,w,le,A]);return{bars:Ie,barsWithValue:ve,xScale:Le,yScale:we,getIndex:Oe,getLabel:de,getTooltipLabel:ie,formatValue:ue,getColor:Ce,getBorderColor:Ee,getLabelColor:Ge,shouldRenderBarLabel:De,hiddenIds:be,toggleSerie:Me,legendsWithData:Ve}},xgi=["isInteractive","renderWrapper","theme"],K1e=function(e,t,n,r){return e.find((function(i){return bhi(i.x+t.left,i.y+t.top,i.width,i.height,n,r)}))},wgi=function(e){var t=e.data,n=e.indexBy,r=e.keys,i=e.margin,o=e.width,a=e.height,s=e.groupMode,l=e.layout,c=e.reverse,u=e.minValue,d=e.maxValue,p=e.valueScale,h=e.indexScale,g=e.padding,m=e.innerPadding,v=e.axisTop,y=e.axisRight,M=e.axisBottom,C=M===void 0?Dg.axisBottom:M,x=e.axisLeft,w=x===void 0?Dg.axisLeft:x,S=e.enableGridX,A=S===void 0?Dg.enableGridX:S,z=e.enableGridY,O=z===void 0?Dg.enableGridY:z,T=e.gridXValues,I=e.gridYValues,P=e.layers,N=P===void 0?Dg.layers:P,F=e.renderBar,L=F===void 0?function(Je,ft){var Tt=ft.bar,St=Tt.color,un=Tt.height,$n=Tt.width,Yr=Tt.x,yr=Tt.y,dr=ft.borderColor,si=ft.borderRadius,Go=ft.borderWidth,$o=ft.label,Ki=ft.labelColor,di=ft.shouldRenderLabel;if(Je.fillStyle=St,Go>0&&(Je.strokeStyle=dr,Je.lineWidth=Go),Je.beginPath(),si>0){var Dt=Math.min(si,un);Je.moveTo(Yr+Dt,yr),Je.lineTo(Yr+$n-Dt,yr),Je.quadraticCurveTo(Yr+$n,yr,Yr+$n,yr+Dt),Je.lineTo(Yr+$n,yr+un-Dt),Je.quadraticCurveTo(Yr+$n,yr+un,Yr+$n-Dt,yr+un),Je.lineTo(Yr+Dt,yr+un),Je.quadraticCurveTo(Yr,yr+un,Yr,yr+un-Dt),Je.lineTo(Yr,yr+Dt),Je.quadraticCurveTo(Yr,yr,Yr+Dt,yr),Je.closePath()}else Je.rect(Yr,yr,$n,un);Je.fill(),Go>0&&Je.stroke(),di&&(Je.textBaseline="middle",Je.textAlign="center",Je.fillStyle=Ki,Je.fillText($o,Yr+$n/2,yr+un/2))}:F,W=e.enableLabel,H=e.label,j=e.labelSkipWidth,G=e.labelSkipHeight,q=e.labelTextColor,$=e.colorBy,U=e.colors,X=e.borderRadius,Q=X===void 0?Dg.borderRadius:X,re=e.borderWidth,ee=re===void 0?Dg.borderWidth:re,se=e.borderColor,pe=e.annotations,te=pe===void 0?Dg.annotations:pe,ce=e.legendLabel,oe=e.tooltipLabel,ae=e.valueFormat,ne=e.isInteractive,le=ne===void 0?Dg.isInteractive:ne,he=e.tooltip,be=he===void 0?Dg.tooltip:he,me=e.onClick,Me=e.onMouseEnter,Oe=e.onMouseLeave,de=e.legends,ie=e.pixelRatio,ue=ie===void 0?Dg.pixelRatio:ie,Ae=e.canvasRef,Ce=b.useRef(null),Ee=ig(),Ge=rhi(o,a,i),_e=Ge.margin,Ie=Ge.innerWidth,Le=Ge.innerHeight,we=Ge.outerWidth,ve=Ge.outerHeight,De=Cgi({indexBy:n,label:H,tooltipLabel:oe,valueFormat:ae,colors:U,colorBy:$,borderColor:se,labelTextColor:q,groupMode:s,layout:l,reverse:c,data:t,keys:r,minValue:u,maxValue:d,margin:_e,width:Ie,height:Le,padding:g,innerPadding:m,valueScale:p,indexScale:h,enableLabel:W,labelSkipWidth:j,labelSkipHeight:G,legends:de,legendLabel:ce}),ze=De.bars,Ve=De.barsWithValue,Ke=De.xScale,et=De.yScale,it=De.getLabel,Ft=De.getTooltipLabel,Pt=De.getBorderColor,Qn=De.getLabelColor,ir=De.shouldRenderBarLabel,jn=De.legendsWithData,Zn=Mwt(),Br=Zn.showTooltipFromEvent,vr=Zn.hideTooltip,Ne=Wfi({annotations:Ffi({data:ze,annotations:te,getPosition:function(Je){return{x:Je.x,y:Je.y}},getDimensions:function(Je){var ft=Je.width,Tt=Je.height;return{width:ft,height:Tt,size:Math.max(ft,Tt)}}})}),He=b.useMemo((function(){return{borderRadius:Q,borderWidth:ee,enableLabel:W,isInteractive:le,labelSkipWidth:j,labelSkipHeight:G,onClick:me,onMouseEnter:Me,onMouseLeave:Oe,getTooltipLabel:Ft,tooltip:be,margin:_e,innerWidth:Ie,innerHeight:Le,width:o,height:a,bars:ze,xScale:Ke,yScale:et}}),[Q,ee,W,Ft,a,Le,Ie,le,G,j,_e,me,Me,Oe,ze,Ke,et,be,o]);b.useEffect((function(){var Je,ft=(Je=Ce.current)==null?void 0:Je.getContext("2d");Ce.current&&ft&&(Ce.current.width=we*ue,Ce.current.height=ve*ue,ft.scale(ue,ue),ft.fillStyle=Ee.background,ft.fillRect(0,0,we,ve),ft.translate(_e.left,_e.top),N.forEach((function(Tt){Tt==="grid"?typeof Ee.grid.line.strokeWidth=="number"&&Ee.grid.line.strokeWidth>0&&(ft.lineWidth=Ee.grid.line.strokeWidth,ft.strokeStyle=Ee.grid.line.stroke,A&&BXe(ft,{width:o,height:a,scale:Ke,axis:"x",values:T}),O&&BXe(ft,{width:o,height:a,scale:et,axis:"y",values:I})):Tt==="axes"?ofi(ft,{xScale:Ke,yScale:et,width:Ie,height:Le,top:v,right:y,bottom:C,left:w,theme:Ee}):Tt==="bars"?Ve.forEach((function(St){L(ft,{bar:St,borderColor:Pt(St),borderRadius:Q,borderWidth:ee,label:it(St.data),labelColor:Qn(St),shouldRenderLabel:ir(St)})})):Tt==="legends"?jn.forEach((function(St){var un=St[0],$n=St[1];agi(ft,tu({},un,{data:$n,containerWidth:Ie,containerHeight:Le,theme:Ee}))})):Tt==="annotations"?qfi(ft,{annotations:Ne,theme:Ee}):typeof Tt=="function"&&Tt(ft,He)})),ft.save())}),[C,w,y,v,Ve,Q,ee,Ne,A,O,Pt,it,Qn,T,I,s,a,Le,Ie,He,N,l,jn,_e.left,_e.top,ve,we,ue,L,Ke,et,c,ir,Ee,o]);var Xe=b.useCallback((function(Je){if(ze&&Ce.current){var ft=Z0e(Ce.current,Je),Tt=ft[0],St=ft[1],un=K1e(ze,_e,Tt,St);un!==void 0?(Br(b.createElement(be,tu({},un.data,{color:un.color,label:un.label,value:Number(un.data.value)})),Je),Je.type==="mouseenter"&&Me?.(un.data,Je)):vr()}}),[vr,_e,Me,ze,Br,be]),ct=b.useCallback((function(Je){if(ze&&Ce.current){vr();var ft=Z0e(Ce.current,Je),Tt=ft[0],St=ft[1],un=K1e(ze,_e,Tt,St);un&&Oe?.(un.data,Je)}}),[vr,_e,Oe,ze]),lt=b.useCallback((function(Je){if(ze&&Ce.current){var ft=Z0e(Ce.current,Je),Tt=ft[0],St=ft[1],un=K1e(ze,_e,Tt,St);un!==void 0&&me?.(tu({},un.data,{color:un.color}),Je)}}),[_e,me,ze]);return f.jsx("canvas",{ref:function(Je){Ce.current=Je,Ae&&"current"in Ae&&(Ae.current=Je)},width:we*ue,height:ve*ue,style:{width:we,height:ve,cursor:le?"auto":"normal"},onMouseEnter:le?Xe:void 0,onMouseMove:le?Xe:void 0,onMouseLeave:le?ct:void 0,onClick:le?lt:void 0})},Sgi=b.forwardRef((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=pj(e,xgi);return f.jsx(lAt,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:f.jsx(wgi,tu({},o,{canvasRef:t}))})}));b.forwardRef((function(e,t){return f.jsx(cAt,{children:function(n){var r=n.width,i=n.height;return f.jsx(Sgi,tu({width:r,height:i},e,{ref:t}))}})}));var Y_={},MYe;function Agi(){if(MYe)return Y_;MYe=1;var e=ri(),t=ii();Object.defineProperty(Y_,"__esModule",{value:!0}),Y_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");return Y_.default=i,Y_}var Ogi=Agi();const Kee=qn(Ogi);var K_={},CYe;function zgi(){if(CYe)return K_;CYe=1;var e=ri(),t=ii();Object.defineProperty(K_,"__esModule",{value:!0}),K_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code");return K_.default=i,K_}var Tgi=zgi();const Egi=qn(Tgi);var Q_={},xYe;function Rgi(){if(xYe)return Q_;xYe=1;var e=ri(),t=ii();Object.defineProperty(Q_,"__esModule",{value:!0}),Q_.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp");return Q_.default=i,Q_}var Igi=Rgi();const Qee=qn(Igi),Pgi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Dgi=(e,t,n)=>{let r;const i=Pgi[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Q1e(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const kgi={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lgi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_gi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ngi={date:Q1e({formats:kgi,defaultWidth:"full"}),time:Q1e({formats:Lgi,defaultWidth:"full"}),dateTime:Q1e({formats:_gi,defaultWidth:"full"})},Fgi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wgi=(e,t,n,r)=>Fgi[e];function Z_(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n?.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n?.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const qgi={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bgi={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jgi={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Hgi={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Vgi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ggi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$gi=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ugi={ordinalNumber:$gi,era:Z_({values:qgi,defaultWidth:"wide"}),quarter:Z_({values:Bgi,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Z_({values:jgi,defaultWidth:"wide"}),day:Z_({values:Hgi,defaultWidth:"wide"}),dayPeriod:Z_({values:Vgi,defaultWidth:"wide",formattingValues:Ggi,defaultFormattingWidth:"wide"})};function J_(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Ygi(s,d=>d.test(a)):Xgi(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function Xgi(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Ygi(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Kgi(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Qgi=/^(\d+)(th|st|nd|rd)?/i,Zgi=/\d+/i,Jgi={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},emi={any:[/^b/i,/^(a|c)/i]},tmi={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nmi={any:[/1/i,/2/i,/3/i,/4/i]},rmi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},imi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},omi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ami={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},smi={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lmi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cmi={ordinalNumber:Kgi({matchPattern:Qgi,parsePattern:Zgi,valueCallback:e=>parseInt(e,10)}),era:J_({matchPatterns:Jgi,defaultMatchWidth:"wide",parsePatterns:emi,defaultParseWidth:"any"}),quarter:J_({matchPatterns:tmi,defaultMatchWidth:"wide",parsePatterns:nmi,defaultParseWidth:"any",valueCallback:e=>e+1}),month:J_({matchPatterns:rmi,defaultMatchWidth:"wide",parsePatterns:imi,defaultParseWidth:"any"}),day:J_({matchPatterns:omi,defaultMatchWidth:"wide",parsePatterns:ami,defaultParseWidth:"any"}),dayPeriod:J_({matchPatterns:smi,defaultMatchWidth:"any",parsePatterns:lmi,defaultParseWidth:"any"})},umi={code:"en-US",formatDistance:Dgi,formatLong:Ngi,formatRelative:Wgi,localize:Ugi,match:cmi,options:{weekStartsOn:0,firstWeekContainsDate:1}};let dmi={};function hj(){return dmi}const LAt=6048e5,pmi=864e5,wYe=Symbol.for("constructDateFrom");function mw(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&wYe in e?e[wYe](t):e instanceof Date?new e.constructor(t):new Date(t)}function Fm(e,t){return mw(t||e,e)}function SYe(e){const t=Fm(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function hmi(e,...t){const n=mw.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function AYe(e,t){const n=Fm(e,t?.in);return n.setHours(0,0,0,0),n}function fmi(e,t,n){const[r,i]=hmi(n?.in,e,t),o=AYe(r),a=AYe(i),s=+o-SYe(o),l=+a-SYe(a);return Math.round((s-l)/pmi)}function gmi(e,t){const n=Fm(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function mmi(e,t){const n=Fm(e,t?.in);return fmi(n,gmi(n))+1}function n6(e,t){const n=hj(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Fm(e,t?.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function zX(e,t){return n6(e,{...t,weekStartsOn:1})}function _At(e,t){const n=Fm(e,t?.in),r=n.getFullYear(),i=mw(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=zX(i),a=mw(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=zX(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function vmi(e,t){const n=_At(e,t),r=mw(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),zX(r)}function bmi(e,t){const n=Fm(e,t?.in),r=+zX(n)-+vmi(n);return Math.round(r/LAt)+1}function NAt(e,t){const n=Fm(e,t?.in),r=n.getFullYear(),i=hj(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=mw(t?.in||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=n6(a,t),l=mw(t?.in||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=n6(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function ymi(e,t){const n=hj(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=NAt(e,t),o=mw(t?.in||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),n6(o,t)}function Mmi(e,t){const n=Fm(e,t?.in),r=+n6(n,t)-+ymi(n,t);return Math.round(r/LAt)+1}function os(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const mC={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return os(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):os(n+1,2)},d(e,t){return os(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return os(e.getHours()%12||12,t.length)},H(e,t){return os(e.getHours(),t.length)},m(e,t){return os(e.getMinutes(),t.length)},s(e,t){return os(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return os(i,t.length)}},sR={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},OYe={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return mC.y(e,t)},Y:function(e,t,n,r){const i=NAt(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return os(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):os(o,t.length)},R:function(e,t){const n=_At(e);return os(n,t.length)},u:function(e,t){const n=e.getFullYear();return os(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return os(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return os(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return mC.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return os(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Mmi(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):os(i,t.length)},I:function(e,t,n){const r=bmi(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):os(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):mC.d(e,t)},D:function(e,t,n){const r=mmi(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):os(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return os(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return os(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return os(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=sR.noon:r===0?i=sR.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=sR.evening:r>=12?i=sR.afternoon:r>=4?i=sR.morning:i=sR.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return mC.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):mC.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):os(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):os(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):mC.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):mC.s(e,t)},S:function(e,t){return mC.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return TYe(r);case"XXXX":case"XX":return BA(r);case"XXXXX":case"XXX":default:return BA(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return TYe(r);case"xxxx":case"xx":return BA(r);case"xxxxx":case"xxx":default:return BA(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zYe(r,":");case"OOOO":default:return"GMT"+BA(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zYe(r,":");case"zzzz":default:return"GMT"+BA(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return os(r,t.length)},T:function(e,t,n){return os(+e,t.length)}};function zYe(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+os(o,2)}function TYe(e,t){return e%60===0?(e>0?"-":"+")+os(Math.abs(e)/60,2):BA(e,t)}function BA(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=os(Math.trunc(r/60),2),o=os(r%60,2);return n+i+t+o}const EYe=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},FAt=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Cmi=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return EYe(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",EYe(r,t)).replace("{{time}}",FAt(i,t))},xmi={p:FAt,P:Cmi},wmi=/^D+$/,Smi=/^Y+$/,Ami=["D","DD","YY","YYYY"];function Omi(e){return wmi.test(e)}function zmi(e){return Smi.test(e)}function Tmi(e,t,n){const r=Emi(e,t,n);if(console.warn(r),Ami.includes(e))throw new RangeError(r)}function Emi(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Rmi(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Imi(e){return!(!Rmi(e)&&typeof e!="number"||isNaN(+Fm(e)))}const Pmi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dmi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kmi=/^'([^]*?)'?$/,Lmi=/''/g,_mi=/[a-zA-Z]/;function WAt(e,t,n){const r=hj(),i=n?.locale??r.locale??umi,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Fm(e,n?.in);if(!Imi(s))throw new RangeError("Invalid time value");let l=t.match(Dmi).map(u=>{const d=u[0];if(d==="p"||d==="P"){const p=xmi[d];return p(u,i.formatLong)}return u}).join("").match(Pmi).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:Nmi(u)};if(OYe[d])return{isToken:!0,value:u};if(d.match(_mi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&zmi(d)||!n?.useAdditionalDayOfYearTokens&&Omi(d))&&Tmi(d,t,String(e));const p=OYe[d[0]];return p(s,d,i.localize,c)}).join("")}function Nmi(e){const t=e.match(kmi);return t?t[1].replace(Lmi,"'"):e}function Fmi(){return Object.assign({},hj())}function RYe(e,t,n){const r=Fmi(),i=Bmi(e,n.timeZone,n.locale??r.locale);return"formatToParts"in i?Wmi(i,t):qmi(i,t)}function Wmi(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function qmi(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function Bmi(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function jmi(e,t){const n=Umi(t);return"formatToParts"in n?Vmi(n,e):Gmi(n,e)}const Hmi={year:0,month:1,day:2,hour:3,minute:4,second:5};function Vmi(e,t){try{const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const o=Hmi[n[i].type];o!==void 0&&(r[o]=parseInt(n[i].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function Gmi(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Z1e={},IYe=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),$mi=IYe==="06/25/2014, 00:00:00"||IYe==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function Umi(e){return Z1e[e]||(Z1e[e]=$mi?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Z1e[e]}function Jze(e,t,n,r,i,o,a){const s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,i,o,a),s}const PYe=36e5,Xmi=6e4,J1e={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Zee(e,t,n){if(!e)return 0;let r=J1e.timezoneZ.exec(e);if(r)return 0;let i,o;if(r=J1e.timezoneHH.exec(e),r)return i=parseInt(r[1],10),DYe(i)?-(i*PYe):NaN;if(r=J1e.timezoneHHMM.exec(e),r){i=parseInt(r[2],10);const a=parseInt(r[3],10);return DYe(i,a)?(o=Math.abs(i)*PYe+a*Xmi,r[1]==="+"?-o:o):NaN}if(Qmi(e)){t=new Date(t||Date.now());const a=n?t:Ymi(t),s=Gbe(a,e);return-(n?s:Kmi(t,s,e))}return NaN}function Ymi(e){return Jze(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Gbe(e,t){const n=jmi(e,t),r=Jze(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let i=e.getTime();const o=i%1e3;return i-=o>=0?o:1e3+o,r-i}function Kmi(e,t,n){let i=e.getTime()-t;const o=Gbe(new Date(i),n);if(t===o)return t;i-=o-t;const a=Gbe(new Date(i),n);return o===a?o:Math.max(o,a)}function DYe(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const kYe={};function Qmi(e){if(kYe[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),kYe[e]=!0,!0}catch{return!1}}const Zmi=60*1e3,Jmi={X:function(e,t,n){const r=epe(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return LYe(r);case"XXXX":case"XX":return OR(r);case"XXXXX":case"XXX":default:return OR(r,":")}},x:function(e,t,n){const r=epe(n.timeZone,e);switch(t){case"x":return LYe(r);case"xxxx":case"xx":return OR(r);case"xxxxx":case"xxx":default:return OR(r,":")}},O:function(e,t,n){const r=epe(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+evi(r,":");case"OOOO":default:return"GMT"+OR(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return RYe("short",e,n);case"zzzz":default:return RYe("long",e,n)}}};function epe(e,t){const n=e?Zee(e,t,!0)/Zmi:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function TX(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function OR(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=TX(Math.floor(r/60),2),o=TX(Math.floor(r%60),2);return n+i+t+o}function LYe(e,t){return e%60===0?(e>0?"-":"+")+TX(Math.abs(e)/60,2):OR(e,t)}function evi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+TX(o,2)}function _Ye(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const qAt=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,tpe=36e5,NYe=6e4,tvi=2,n1={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:qAt};function EX(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?tvi:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=nvi(e),{year:i,restDateString:o}=rvi(r.date,n),a=ivi(o,i);if(a===null||isNaN(a.getTime()))return new Date(NaN);if(a){const s=a.getTime();let l=0,c;if(r.time&&(l=ovi(r.time),l===null||isNaN(l)))return new Date(NaN);if(r.timeZone||t.timeZone){if(c=Zee(r.timeZone||t.timeZone,new Date(s+l)),isNaN(c))return new Date(NaN)}else c=_Ye(new Date(s+l)),c=_Ye(new Date(s+l+c));return new Date(s+l+c)}else return new Date(NaN)}function nvi(e){const t={};let n=n1.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=n1.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const i=n1.timeZone.exec(r);i?(t.time=r.replace(i[1],""),t.timeZone=i[1].trim()):t.time=r}return t}function rvi(e,t){if(e){const n=n1.YYY[t],r=n1.YYYYY[t];let i=n1.YYYY.exec(e)||r.exec(e);if(i){const o=i[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(i=n1.YY.exec(e)||n.exec(e),i){const o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}}return{year:null}}function ivi(e,t){if(t===null)return null;let n,r,i;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let o=n1.MM.exec(e);if(o)return n=new Date(0),r=parseInt(o[1],10)-1,WYe(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(o=n1.DDD.exec(e),o){n=new Date(0);const a=parseInt(o[1],10);return lvi(t,a)?(n.setUTCFullYear(t,0,a),n):new Date(NaN)}if(o=n1.MMDD.exec(e),o){n=new Date(0),r=parseInt(o[1],10)-1;const a=parseInt(o[2],10);return WYe(t,r,a)?(n.setUTCFullYear(t,r,a),n):new Date(NaN)}if(o=n1.Www.exec(e),o)return i=parseInt(o[1],10)-1,qYe(i)?FYe(t,i):new Date(NaN);if(o=n1.WwwD.exec(e),o){i=parseInt(o[1],10)-1;const a=parseInt(o[2],10)-1;return qYe(i,a)?FYe(t,i,a):new Date(NaN)}return null}function ovi(e){let t,n,r=n1.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),npe(t)?t%24*tpe:NaN;if(r=n1.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),npe(t,n)?t%24*tpe+n*NYe:NaN;if(r=n1.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const i=parseFloat(r[3].replace(",","."));return npe(t,n,i)?t%24*tpe+n*NYe+i*1e3:NaN}return null}function FYe(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=t*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const avi=[31,28,31,30,31,30,31,31,30,31,30,31],svi=[31,29,31,30,31,30,31,31,30,31,30,31];function BAt(e){return e%400===0||e%4===0&&e%100!==0}function WYe(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=BAt(e);if(r&&n>svi[t]||!r&&n>avi[t])return!1}return!0}function lvi(e,t){if(t<1)return!1;const n=BAt(e);return!(n&&t>366||!n&&t>365)}function qYe(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function npe(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const cvi=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function $be(e,t,n={}){t=String(t);const r=t.match(cvi);if(r){const i=EX(n.originalDate||e,n);t=r.reduce(function(o,a){if(a[0]==="'")return o;const s=o.indexOf(a),l=o[s-1]==="'",c=o.replace(a,"'"+Jmi[a[0]](i,a,n)+"'");return l?c.substring(0,s-1)+c.substring(s+1):c},t)}return WAt(e,t,n)}function uvi(e,t,n){e=EX(e,n);const r=Zee(t,e,!0),i=new Date(e.getTime()-r),o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}function dvi(e,t,n,r){return r={...r,timeZone:t,originalDate:e},$be(uvi(e,t,{timeZone:r.timeZone}),n,r)}function pvi(e,t,n){if(typeof e=="string"&&!e.match(qAt))return EX(e,{...n,timeZone:t});e=EX(e,n);const r=Jze(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),i=Zee(t,new Date(r));return new Date(r+i)}var hvi=[{name:"adalv",description:"Andorra",alias:["Europe/Andorra"]},{name:"aedxb",description:"Dubai, United Arab Emirates",alias:["Asia/Dubai"]},{name:"afkbl",description:"Kabul, Afghanistan",alias:["Asia/Kabul"]},{name:"aganu",description:"Antigua",alias:["America/Antigua"]},{name:"aiaxa",description:"Anguilla",alias:["America/Anguilla"]},{name:"altia",description:"Tirane, Albania",alias:["Europe/Tirane"]},{name:"amevn",description:"Yerevan, Armenia",alias:["Asia/Yerevan"]},{name:"ancur",description:"Curaçao",alias:["America/Curacao"]},{name:"aolad",description:"Luanda, Angola",alias:["Africa/Luanda"]},{name:"aqcas",description:"Casey Station, Bailey Peninsula",alias:["Antarctica/Casey"]},{name:"aqdav",description:"Davis Station, Vestfold Hills",alias:["Antarctica/Davis"]},{name:"aqddu",description:"Dumont d'Urville Station, Terre Adélie",alias:["Antarctica/DumontDUrville"]},{name:"aqmaw",description:"Mawson Station, Holme Bay",alias:["Antarctica/Mawson"]},{name:"aqmcm",description:"McMurdo Station, Ross Island",alias:["Antarctica/McMurdo"]},{name:"aqplm",description:"Palmer Station, Anvers Island",alias:["Antarctica/Palmer"]},{name:"aqrot",description:"Rothera Station, Adelaide Island",alias:["Antarctica/Rothera"]},{name:"aqsyw",description:"Syowa Station, East Ongul Island",alias:["Antarctica/Syowa"]},{name:"aqtrl",description:"Troll Station, Queen Maud Land",alias:["Antarctica/Troll"]},{name:"aqvos",description:"Vostok Station, Lake Vostok",alias:["Antarctica/Vostok"]},{name:"arbue",description:"Buenos Aires, Argentina",alias:["America/Buenos_Aires","America/Argentina/Buenos_Aires"]},{name:"arcor",description:"Córdoba, Argentina",alias:["America/Cordoba","America/Argentina/Cordoba","America/Rosario"]},{name:"arctc",description:"Catamarca, Argentina",alias:["America/Catamarca","America/Argentina/Catamarca","America/Argentina/ComodRivadavia"]},{name:"arirj",description:"La Rioja, Argentina",alias:["America/Argentina/La_Rioja"]},{name:"arjuj",description:"Jujuy, Argentina",alias:["America/Jujuy","America/Argentina/Jujuy"]},{name:"arluq",description:"San Luis, Argentina",alias:["America/Argentina/San_Luis"]},{name:"armdz",description:"Mendoza, Argentina",alias:["America/Mendoza","America/Argentina/Mendoza"]},{name:"arrgl",description:"Río Gallegos, Argentina",alias:["America/Argentina/Rio_Gallegos"]},{name:"arsla",description:"Salta, Argentina",alias:["America/Argentina/Salta"]},{name:"artuc",description:"Tucumán, Argentina",alias:["America/Argentina/Tucuman"]},{name:"aruaq",description:"San Juan, Argentina",alias:["America/Argentina/San_Juan"]},{name:"arush",description:"Ushuaia, Argentina",alias:["America/Argentina/Ushuaia"]},{name:"asppg",description:"Pago Pago, American Samoa",alias:["Pacific/Pago_Pago","Pacific/Samoa","US/Samoa"]},{name:"atvie",description:"Vienna, Austria",alias:["Europe/Vienna"]},{name:"auadl",description:"Adelaide, Australia",alias:["Australia/Adelaide","Australia/South"]},{name:"aubhq",description:"Broken Hill, Australia",alias:["Australia/Broken_Hill","Australia/Yancowinna"]},{name:"aubne",description:"Brisbane, Australia",alias:["Australia/Brisbane","Australia/Queensland"]},{name:"audrw",description:"Darwin, Australia",alias:["Australia/Darwin","Australia/North"]},{name:"aueuc",description:"Eucla, Australia",alias:["Australia/Eucla"]},{name:"auhba",description:"Hobart, Australia",alias:["Australia/Hobart","Australia/Tasmania"]},{name:"aukns",description:"Currie, Australia",alias:["Australia/Currie"]},{name:"auldc",description:"Lindeman Island, Australia",alias:["Australia/Lindeman"]},{name:"auldh",description:"Lord Howe Island, Australia",alias:["Australia/Lord_Howe","Australia/LHI"]},{name:"aumel",description:"Melbourne, Australia",alias:["Australia/Melbourne","Australia/Victoria"]},{name:"aumqi",description:"Macquarie Island Station, Macquarie Island",alias:["Antarctica/Macquarie"]},{name:"auper",description:"Perth, Australia",alias:["Australia/Perth","Australia/West"]},{name:"ausyd",description:"Sydney, Australia",alias:["Australia/Sydney","Australia/ACT","Australia/Canberra","Australia/NSW"]},{name:"awaua",description:"Aruba",alias:["America/Aruba"]},{name:"azbak",description:"Baku, Azerbaijan",alias:["Asia/Baku"]},{name:"basjj",description:"Sarajevo, Bosnia and Herzegovina",alias:["Europe/Sarajevo"]},{name:"bbbgi",description:"Barbados",alias:["America/Barbados"]},{name:"bddac",description:"Dhaka, Bangladesh",alias:["Asia/Dhaka","Asia/Dacca"]},{name:"bebru",description:"Brussels, Belgium",alias:["Europe/Brussels"]},{name:"bfoua",description:"Ouagadougou, Burkina Faso",alias:["Africa/Ouagadougou"]},{name:"bgsof",description:"Sofia, Bulgaria",alias:["Europe/Sofia"]},{name:"bhbah",description:"Bahrain",alias:["Asia/Bahrain"]},{name:"bibjm",description:"Bujumbura, Burundi",alias:["Africa/Bujumbura"]},{name:"bjptn",description:"Porto-Novo, Benin",alias:["Africa/Porto-Novo"]},{name:"bmbda",description:"Bermuda",alias:["Atlantic/Bermuda"]},{name:"bnbwn",description:"Brunei",alias:["Asia/Brunei"]},{name:"bolpb",description:"La Paz, Bolivia",alias:["America/La_Paz"]},{name:"bqkra",description:"Bonaire, Sint Estatius and Saba",alias:["America/Kralendijk"]},{name:"braux",description:"Araguaína, Brazil",alias:["America/Araguaina"]},{name:"brbel",description:"Belém, Brazil",alias:["America/Belem"]},{name:"brbvb",description:"Boa Vista, Brazil",alias:["America/Boa_Vista"]},{name:"brcgb",description:"Cuiabá, Brazil",alias:["America/Cuiaba"]},{name:"brcgr",description:"Campo Grande, Brazil",alias:["America/Campo_Grande"]},{name:"brern",description:"Eirunepé, Brazil",alias:["America/Eirunepe"]},{name:"brfen",description:"Fernando de Noronha, Brazil",alias:["America/Noronha","Brazil/DeNoronha"]},{name:"brfor",description:"Fortaleza, Brazil",alias:["America/Fortaleza"]},{name:"brmao",description:"Manaus, Brazil",alias:["America/Manaus","Brazil/West"]},{name:"brmcz",description:"Maceió, Brazil",alias:["America/Maceio"]},{name:"brpvh",description:"Porto Velho, Brazil",alias:["America/Porto_Velho"]},{name:"brrbr",description:"Rio Branco, Brazil",alias:["America/Rio_Branco","America/Porto_Acre","Brazil/Acre"]},{name:"brrec",description:"Recife, Brazil",alias:["America/Recife"]},{name:"brsao",description:"São Paulo, Brazil",alias:["America/Sao_Paulo","Brazil/East"]},{name:"brssa",description:"Bahia, Brazil",alias:["America/Bahia"]},{name:"brstm",description:"Santarém, Brazil",alias:["America/Santarem"]},{name:"bsnas",description:"Nassau, Bahamas",alias:["America/Nassau"]},{name:"btthi",description:"Thimphu, Bhutan",alias:["Asia/Thimphu","Asia/Thimbu"]},{name:"bwgbe",description:"Gaborone, Botswana",alias:["Africa/Gaborone"]},{name:"bymsq",description:"Minsk, Belarus",alias:["Europe/Minsk"]},{name:"bzbze",description:"Belize",alias:["America/Belize"]},{name:"cacfq",description:"Creston, Canada",alias:["America/Creston"]},{name:"caedm",description:"Edmonton, Canada",alias:["America/Edmonton","Canada/Mountain"]},{name:"caffs",description:"Rainy River, Canada",alias:["America/Rainy_River"]},{name:"cafne",description:"Fort Nelson, Canada",alias:["America/Fort_Nelson"]},{name:"caglb",description:"Glace Bay, Canada",alias:["America/Glace_Bay"]},{name:"cagoo",description:"Goose Bay, Canada",alias:["America/Goose_Bay"]},{name:"cahal",description:"Halifax, Canada",alias:["America/Halifax","Canada/Atlantic"]},{name:"caiql",description:"Iqaluit, Canada",alias:["America/Iqaluit"]},{name:"camon",description:"Moncton, Canada",alias:["America/Moncton"]},{name:"capnt",description:"Pangnirtung, Canada",alias:["America/Pangnirtung"]},{name:"careb",description:"Resolute, Canada",alias:["America/Resolute"]},{name:"careg",description:"Regina, Canada",alias:["America/Regina","Canada/East-Saskatchewan","Canada/Saskatchewan"]},{name:"casjf",description:"St. John's, Canada",alias:["America/St_Johns","Canada/Newfoundland"]},{name:"canpg",description:"Nipigon, Canada",alias:["America/Nipigon"]},{name:"cathu",description:"Thunder Bay, Canada",alias:["America/Thunder_Bay"]},{name:"cator",description:"Toronto, Canada",alias:["America/Toronto","Canada/Eastern"]},{name:"cavan",description:"Vancouver, Canada",alias:["America/Vancouver","Canada/Pacific"]},{name:"cawnp",description:"Winnipeg, Canada",alias:["America/Winnipeg","Canada/Central"]},{name:"caybx",description:"Blanc-Sablon, Canada",alias:["America/Blanc-Sablon"]},{name:"caycb",description:"Cambridge Bay, Canada",alias:["America/Cambridge_Bay"]},{name:"cayda",description:"Dawson, Canada",alias:["America/Dawson"]},{name:"caydq",description:"Dawson Creek, Canada",alias:["America/Dawson_Creek"]},{name:"cayek",description:"Rankin Inlet, Canada",alias:["America/Rankin_Inlet"]},{name:"cayev",description:"Inuvik, Canada",alias:["America/Inuvik"]},{name:"cayxy",description:"Whitehorse, Canada",alias:["America/Whitehorse","Canada/Yukon"]},{name:"cayyn",description:"Swift Current, Canada",alias:["America/Swift_Current"]},{name:"cayzf",description:"Yellowknife, Canada",alias:["America/Yellowknife"]},{name:"cayzs",description:"Atikokan, Canada",alias:["America/Coral_Harbour","America/Atikokan"]},{name:"cccck",description:"Cocos (Keeling) Islands",alias:["Indian/Cocos"]},{name:"cdfbm",description:"Lubumbashi, Democratic Republic of the Congo",alias:["Africa/Lubumbashi"]},{name:"cdfih",description:"Kinshasa, Democratic Republic of the Congo",alias:["Africa/Kinshasa"]},{name:"cfbgf",description:"Bangui, Central African Republic",alias:["Africa/Bangui"]},{name:"cgbzv",description:"Brazzaville, Republic of the Congo",alias:["Africa/Brazzaville"]},{name:"chzrh",description:"Zurich, Switzerland",alias:["Europe/Zurich"]},{name:"ciabj",description:"Abidjan, Côte d'Ivoire",alias:["Africa/Abidjan"]},{name:"ckrar",description:"Rarotonga, Cook Islands",alias:["Pacific/Rarotonga"]},{name:"clipc",description:"Easter Island, Chile",alias:["Pacific/Easter","Chile/EasterIsland"]},{name:"clpuq",description:"Punta Arenas, Chile",alias:["America/Punta_Arenas"]},{name:"clscl",description:"Santiago, Chile",alias:["America/Santiago","Chile/Continental"]},{name:"cmdla",description:"Douala, Cameroon",alias:["Africa/Douala"]},{name:"cnsha",description:"Shanghai, China",alias:["Asia/Shanghai","Asia/Chongqing","Asia/Chungking","Asia/Harbin","PRC"]},{name:"cnurc",description:"Ürümqi, China",alias:["Asia/Urumqi","Asia/Kashgar"]},{name:"cobog",description:"Bogotá, Colombia",alias:["America/Bogota"]},{name:"crsjo",description:"Costa Rica",alias:["America/Costa_Rica"]},{name:"cst6cdt",description:"POSIX style time zone for US Central Time",alias:["CST6CDT"]},{name:"cuhav",description:"Havana, Cuba",alias:["America/Havana","Cuba"]},{name:"cvrai",description:"Cape Verde",alias:["Atlantic/Cape_Verde"]},{name:"cxxch",description:"Christmas Island",alias:["Indian/Christmas"]},{name:"cyfmg",description:"Famagusta, Cyprus",alias:["Asia/Famagusta"]},{name:"cynic",description:"Nicosia, Cyprus",alias:["Asia/Nicosia","Europe/Nicosia"]},{name:"czprg",description:"Prague, Czech Republic",alias:["Europe/Prague"]},{name:"deber",description:"Berlin, Germany",alias:["Europe/Berlin"]},{name:"debsngn",description:"Busingen, Germany",alias:["Europe/Busingen"]},{name:"djjib",description:"Djibouti",alias:["Africa/Djibouti"]},{name:"dkcph",description:"Copenhagen, Denmark",alias:["Europe/Copenhagen"]},{name:"dmdom",description:"Dominica",alias:["America/Dominica"]},{name:"dosdq",description:"Santo Domingo, Dominican Republic",alias:["America/Santo_Domingo"]},{name:"dzalg",description:"Algiers, Algeria",alias:["Africa/Algiers"]},{name:"ecgps",description:"Galápagos Islands, Ecuador",alias:["Pacific/Galapagos"]},{name:"ecgye",description:"Guayaquil, Ecuador",alias:["America/Guayaquil"]},{name:"eetll",description:"Tallinn, Estonia",alias:["Europe/Tallinn"]},{name:"egcai",description:"Cairo, Egypt",alias:["Africa/Cairo","Egypt"]},{name:"eheai",description:"El Aaiún, Western Sahara",alias:["Africa/El_Aaiun"]},{name:"erasm",description:"Asmara, Eritrea",alias:["Africa/Asmera","Africa/Asmara"]},{name:"esceu",description:"Ceuta, Spain",alias:["Africa/Ceuta"]},{name:"eslpa",description:"Canary Islands, Spain",alias:["Atlantic/Canary"]},{name:"esmad",description:"Madrid, Spain",alias:["Europe/Madrid"]},{name:"est5edt",description:"POSIX style time zone for US Eastern Time",alias:["EST5EDT"]},{name:"etadd",description:"Addis Ababa, Ethiopia",alias:["Africa/Addis_Ababa"]},{name:"fihel",description:"Helsinki, Finland",alias:["Europe/Helsinki"]},{name:"fimhq",description:"Mariehamn, Åland, Finland",alias:["Europe/Mariehamn"]},{name:"fjsuv",description:"Fiji",alias:["Pacific/Fiji"]},{name:"fkpsy",description:"Stanley, Falkland Islands",alias:["Atlantic/Stanley"]},{name:"fmksa",description:"Kosrae, Micronesia",alias:["Pacific/Kosrae"]},{name:"fmpni",description:"Pohnpei, Micronesia",alias:["Pacific/Ponape","Pacific/Pohnpei"]},{name:"fmtkk",description:"Chuuk, Micronesia",alias:["Pacific/Truk","Pacific/Chuuk","Pacific/Yap"]},{name:"fotho",description:"Faroe Islands",alias:["Atlantic/Faeroe","Atlantic/Faroe"]},{name:"frpar",description:"Paris, France",alias:["Europe/Paris"]},{name:"galbv",description:"Libreville, Gabon",alias:["Africa/Libreville"]},{name:"gazastrp",description:"Gaza Strip, Palestinian Territories",alias:["Asia/Gaza"]},{name:"gblon",description:"London, United Kingdom",alias:["Europe/London","Europe/Belfast","GB","GB-Eire"]},{name:"gdgnd",description:"Grenada",alias:["America/Grenada"]},{name:"getbs",description:"Tbilisi, Georgia",alias:["Asia/Tbilisi"]},{name:"gfcay",description:"Cayenne, French Guiana",alias:["America/Cayenne"]},{name:"gggci",description:"Guernsey",alias:["Europe/Guernsey"]},{name:"ghacc",description:"Accra, Ghana",alias:["Africa/Accra"]},{name:"gigib",description:"Gibraltar",alias:["Europe/Gibraltar"]},{name:"gldkshvn",description:"Danmarkshavn, Greenland",alias:["America/Danmarkshavn"]},{name:"glgoh",description:"Nuuk (Godthåb), Greenland",alias:["America/Godthab","America/Nuuk"]},{name:"globy",description:"Ittoqqortoormiit (Scoresbysund), Greenland",alias:["America/Scoresbysund"]},{name:"glthu",description:"Qaanaaq (Thule), Greenland",alias:["America/Thule"]},{name:"gmbjl",description:"Banjul, Gambia",alias:["Africa/Banjul"]},{name:"gmt",description:"Greenwich Mean Time",alias:["Etc/GMT","Etc/GMT+0","Etc/GMT-0","Etc/GMT0","Etc/Greenwich","GMT","GMT+0","GMT-0","GMT0","Greenwich"]},{name:"gncky",description:"Conakry, Guinea",alias:["Africa/Conakry"]},{name:"gpbbr",description:"Guadeloupe",alias:["America/Guadeloupe"]},{name:"gpmsb",description:"Marigot, Saint Martin",alias:["America/Marigot"]},{name:"gpsbh",description:"Saint Barthélemy",alias:["America/St_Barthelemy"]},{name:"gqssg",description:"Malabo, Equatorial Guinea",alias:["Africa/Malabo"]},{name:"grath",description:"Athens, Greece",alias:["Europe/Athens"]},{name:"gsgrv",description:"South Georgia and the South Sandwich Islands",alias:["Atlantic/South_Georgia"]},{name:"gtgua",description:"Guatemala",alias:["America/Guatemala"]},{name:"gugum",description:"Guam",alias:["Pacific/Guam"]},{name:"gwoxb",description:"Bissau, Guinea-Bissau",alias:["Africa/Bissau"]},{name:"gygeo",description:"Guyana",alias:["America/Guyana"]},{name:"hebron",description:"West Bank, Palestinian Territories",alias:["Asia/Hebron"]},{name:"hkhkg",description:"Hong Kong SAR China",alias:["Asia/Hong_Kong","Hongkong"]},{name:"hntgu",description:"Tegucigalpa, Honduras",alias:["America/Tegucigalpa"]},{name:"hrzag",description:"Zagreb, Croatia",alias:["Europe/Zagreb"]},{name:"htpap",description:"Port-au-Prince, Haiti",alias:["America/Port-au-Prince"]},{name:"hubud",description:"Budapest, Hungary",alias:["Europe/Budapest"]},{name:"iddjj",description:"Jayapura, Indonesia",alias:["Asia/Jayapura"]},{name:"idjkt",description:"Jakarta, Indonesia",alias:["Asia/Jakarta"]},{name:"idmak",description:"Makassar, Indonesia",alias:["Asia/Makassar","Asia/Ujung_Pandang"]},{name:"idpnk",description:"Pontianak, Indonesia",alias:["Asia/Pontianak"]},{name:"iedub",description:"Dublin, Ireland",alias:["Europe/Dublin","Eire"]},{name:"imdgs",description:"Isle of Man",alias:["Europe/Isle_of_Man"]},{name:"inccu",description:"Kolkata, India",alias:["Asia/Calcutta","Asia/Kolkata"]},{name:"iodga",description:"Chagos Archipelago",alias:["Indian/Chagos"]},{name:"iqbgw",description:"Baghdad, Iraq",alias:["Asia/Baghdad"]},{name:"irthr",description:"Tehran, Iran",alias:["Asia/Tehran","Iran"]},{name:"isrey",description:"Reykjavik, Iceland",alias:["Atlantic/Reykjavik","Iceland"]},{name:"itrom",description:"Rome, Italy",alias:["Europe/Rome"]},{name:"jeruslm",description:"Jerusalem",alias:["Asia/Jerusalem","Asia/Tel_Aviv","Israel"]},{name:"jesth",description:"Jersey",alias:["Europe/Jersey"]},{name:"jmkin",description:"Jamaica",alias:["America/Jamaica","Jamaica"]},{name:"joamm",description:"Amman, Jordan",alias:["Asia/Amman"]},{name:"jptyo",description:"Tokyo, Japan",alias:["Asia/Tokyo","Japan"]},{name:"kenbo",description:"Nairobi, Kenya",alias:["Africa/Nairobi"]},{name:"kgfru",description:"Bishkek, Kyrgyzstan",alias:["Asia/Bishkek"]},{name:"khpnh",description:"Phnom Penh, Cambodia",alias:["Asia/Phnom_Penh"]},{name:"kicxi",description:"Kiritimati, Kiribati",alias:["Pacific/Kiritimati"]},{name:"kipho",description:"Enderbury Island, Kiribati",alias:["Pacific/Enderbury"]},{name:"kitrw",description:"Tarawa, Kiribati",alias:["Pacific/Tarawa"]},{name:"kmyva",description:"Comoros",alias:["Indian/Comoro"]},{name:"knbas",description:"Saint Kitts",alias:["America/St_Kitts"]},{name:"kpfnj",description:"Pyongyang, North Korea",alias:["Asia/Pyongyang"]},{name:"krsel",description:"Seoul, South Korea",alias:["Asia/Seoul","ROK"]},{name:"kwkwi",description:"Kuwait",alias:["Asia/Kuwait"]},{name:"kygec",description:"Cayman Islands",alias:["America/Cayman"]},{name:"kzaau",description:"Aqtau, Kazakhstan",alias:["Asia/Aqtau"]},{name:"kzakx",description:"Aqtobe, Kazakhstan",alias:["Asia/Aqtobe"]},{name:"kzala",description:"Almaty, Kazakhstan",alias:["Asia/Almaty"]},{name:"kzguw",description:"Atyrau (Guryev), Kazakhstan",alias:["Asia/Atyrau"]},{name:"kzksn",description:"Qostanay (Kostanay), Kazakhstan",alias:["Asia/Qostanay"]},{name:"kzkzo",description:"Kyzylorda, Kazakhstan",alias:["Asia/Qyzylorda"]},{name:"kzura",description:"Oral, Kazakhstan",alias:["Asia/Oral"]},{name:"lavte",description:"Vientiane, Laos",alias:["Asia/Vientiane"]},{name:"lbbey",description:"Beirut, Lebanon",alias:["Asia/Beirut"]},{name:"lccas",description:"Saint Lucia",alias:["America/St_Lucia"]},{name:"livdz",description:"Vaduz, Liechtenstein",alias:["Europe/Vaduz"]},{name:"lkcmb",description:"Colombo, Sri Lanka",alias:["Asia/Colombo"]},{name:"lrmlw",description:"Monrovia, Liberia",alias:["Africa/Monrovia"]},{name:"lsmsu",description:"Maseru, Lesotho",alias:["Africa/Maseru"]},{name:"ltvno",description:"Vilnius, Lithuania",alias:["Europe/Vilnius"]},{name:"lulux",description:"Luxembourg",alias:["Europe/Luxembourg"]},{name:"lvrix",description:"Riga, Latvia",alias:["Europe/Riga"]},{name:"lytip",description:"Tripoli, Libya",alias:["Africa/Tripoli","Libya"]},{name:"macas",description:"Casablanca, Morocco",alias:["Africa/Casablanca"]},{name:"mcmon",description:"Monaco",alias:["Europe/Monaco"]},{name:"mdkiv",description:"Chişinău, Moldova",alias:["Europe/Chisinau","Europe/Tiraspol"]},{name:"metgd",description:"Podgorica, Montenegro",alias:["Europe/Podgorica"]},{name:"mgtnr",description:"Antananarivo, Madagascar",alias:["Indian/Antananarivo"]},{name:"mhkwa",description:"Kwajalein, Marshall Islands",alias:["Pacific/Kwajalein","Kwajalein"]},{name:"mhmaj",description:"Majuro, Marshall Islands",alias:["Pacific/Majuro"]},{name:"mkskp",description:"Skopje, Macedonia",alias:["Europe/Skopje"]},{name:"mlbko",description:"Bamako, Mali",alias:["Africa/Bamako","Africa/Timbuktu"]},{name:"mmrgn",description:"Yangon (Rangoon), Burma",alias:["Asia/Rangoon","Asia/Yangon"]},{name:"mncoq",description:"Choibalsan, Mongolia",alias:["Asia/Choibalsan"]},{name:"mnhvd",description:"Khovd (Hovd), Mongolia",alias:["Asia/Hovd"]},{name:"mnuln",description:"Ulaanbaatar (Ulan Bator), Mongolia",alias:["Asia/Ulaanbaatar","Asia/Ulan_Bator"]},{name:"momfm",description:"Macau SAR China",alias:["Asia/Macau","Asia/Macao"]},{name:"mpspn",description:"Saipan, Northern Mariana Islands",alias:["Pacific/Saipan"]},{name:"mqfdf",description:"Martinique",alias:["America/Martinique"]},{name:"mrnkc",description:"Nouakchott, Mauritania",alias:["Africa/Nouakchott"]},{name:"msmni",description:"Montserrat",alias:["America/Montserrat"]},{name:"mst7mdt",description:"POSIX style time zone for US Mountain Time",alias:["MST7MDT"]},{name:"mtmla",description:"Malta",alias:["Europe/Malta"]},{name:"muplu",description:"Mauritius",alias:["Indian/Mauritius"]},{name:"mvmle",description:"Maldives",alias:["Indian/Maldives"]},{name:"mwblz",description:"Blantyre, Malawi",alias:["Africa/Blantyre"]},{name:"mxchi",description:"Chihuahua, Mexico",alias:["America/Chihuahua"]},{name:"mxcun",description:"Cancún, Mexico",alias:["America/Cancun"]},{name:"mxhmo",description:"Hermosillo, Mexico",alias:["America/Hermosillo"]},{name:"mxmam",description:"Matamoros, Mexico",alias:["America/Matamoros"]},{name:"mxmex",description:"Mexico City, Mexico",alias:["America/Mexico_City","Mexico/General"]},{name:"mxmid",description:"Mérida, Mexico",alias:["America/Merida"]},{name:"mxmty",description:"Monterrey, Mexico",alias:["America/Monterrey"]},{name:"mxmzt",description:"Mazatlán, Mexico",alias:["America/Mazatlan","Mexico/BajaSur"]},{name:"mxoji",description:"Ojinaga, Mexico",alias:["America/Ojinaga"]},{name:"mxpvr",description:"Bahía de Banderas, Mexico",alias:["America/Bahia_Banderas"]},{name:"mxstis",description:"Santa Isabel (Baja California), Mexico",alias:["America/Santa_Isabel"]},{name:"mxtij",description:"Tijuana, Mexico",alias:["America/Tijuana","America/Ensenada","Mexico/BajaNorte"]},{name:"mykch",description:"Kuching, Malaysia",alias:["Asia/Kuching"]},{name:"mykul",description:"Kuala Lumpur, Malaysia",alias:["Asia/Kuala_Lumpur"]},{name:"mzmpm",description:"Maputo, Mozambique",alias:["Africa/Maputo"]},{name:"nawdh",description:"Windhoek, Namibia",alias:["Africa/Windhoek"]},{name:"ncnou",description:"Noumea, New Caledonia",alias:["Pacific/Noumea"]},{name:"nenim",description:"Niamey, Niger",alias:["Africa/Niamey"]},{name:"nfnlk",description:"Norfolk Island",alias:["Pacific/Norfolk"]},{name:"nglos",description:"Lagos, Nigeria",alias:["Africa/Lagos"]},{name:"nimga",description:"Managua, Nicaragua",alias:["America/Managua"]},{name:"nlams",description:"Amsterdam, Netherlands",alias:["Europe/Amsterdam"]},{name:"noosl",description:"Oslo, Norway",alias:["Europe/Oslo"]},{name:"npktm",description:"Kathmandu, Nepal",alias:["Asia/Katmandu","Asia/Kathmandu"]},{name:"nrinu",description:"Nauru",alias:["Pacific/Nauru"]},{name:"nuiue",description:"Niue",alias:["Pacific/Niue"]},{name:"nzakl",description:"Auckland, New Zealand",alias:["Pacific/Auckland","Antarctica/South_Pole","NZ"]},{name:"nzcht",description:"Chatham Islands, New Zealand",alias:["Pacific/Chatham","NZ-CHAT"]},{name:"ommct",description:"Muscat, Oman",alias:["Asia/Muscat"]},{name:"papty",description:"Panama",alias:["America/Panama"]},{name:"pelim",description:"Lima, Peru",alias:["America/Lima"]},{name:"pfgmr",description:"Gambiera Islands, French Polynesia",alias:["Pacific/Gambier"]},{name:"pfnhv",description:"Marquesas Islands, French Polynesia",alias:["Pacific/Marquesas"]},{name:"pfppt",description:"Tahiti, French Polynesia",alias:["Pacific/Tahiti"]},{name:"pgpom",description:"Port Moresby, Papua New Guinea",alias:["Pacific/Port_Moresby"]},{name:"pgraw",description:"Bougainville, Papua New Guinea",alias:["Pacific/Bougainville"]},{name:"phmnl",description:"Manila, Philippines",alias:["Asia/Manila"]},{name:"pkkhi",description:"Karachi, Pakistan",alias:["Asia/Karachi"]},{name:"plwaw",description:"Warsaw, Poland",alias:["Europe/Warsaw","Poland"]},{name:"pmmqc",description:"Saint Pierre and Miquelon",alias:["America/Miquelon"]},{name:"pnpcn",description:"Pitcairn Islands",alias:["Pacific/Pitcairn"]},{name:"prsju",description:"Puerto Rico",alias:["America/Puerto_Rico"]},{name:"pst8pdt",description:"POSIX style time zone for US Pacific Time",alias:["PST8PDT"]},{name:"ptfnc",description:"Madeira, Portugal",alias:["Atlantic/Madeira"]},{name:"ptlis",description:"Lisbon, Portugal",alias:["Europe/Lisbon","Portugal"]},{name:"ptpdl",description:"Azores, Portugal",alias:["Atlantic/Azores"]},{name:"pwror",description:"Palau",alias:["Pacific/Palau"]},{name:"pyasu",description:"Asunción, Paraguay",alias:["America/Asuncion"]},{name:"qadoh",description:"Qatar",alias:["Asia/Qatar"]},{name:"rereu",description:"Réunion",alias:["Indian/Reunion"]},{name:"robuh",description:"Bucharest, Romania",alias:["Europe/Bucharest"]},{name:"rsbeg",description:"Belgrade, Serbia",alias:["Europe/Belgrade"]},{name:"ruasf",description:"Astrakhan, Russia",alias:["Europe/Astrakhan"]},{name:"rubax",description:"Barnaul, Russia",alias:["Asia/Barnaul"]},{name:"ruchita",description:"Chita Zabaykalsky, Russia",alias:["Asia/Chita"]},{name:"rudyr",description:"Anadyr, Russia",alias:["Asia/Anadyr"]},{name:"rugdx",description:"Magadan, Russia",alias:["Asia/Magadan"]},{name:"ruikt",description:"Irkutsk, Russia",alias:["Asia/Irkutsk"]},{name:"rukgd",description:"Kaliningrad, Russia",alias:["Europe/Kaliningrad"]},{name:"rukhndg",description:"Khandyga Tomponsky, Russia",alias:["Asia/Khandyga"]},{name:"rukra",description:"Krasnoyarsk, Russia",alias:["Asia/Krasnoyarsk"]},{name:"rukuf",description:"Samara, Russia",alias:["Europe/Samara"]},{name:"rukvx",description:"Kirov, Russia",alias:["Europe/Kirov"]},{name:"rumow",description:"Moscow, Russia",alias:["Europe/Moscow","W-SU"]},{name:"runoz",description:"Novokuznetsk, Russia",alias:["Asia/Novokuznetsk"]},{name:"ruoms",description:"Omsk, Russia",alias:["Asia/Omsk"]},{name:"ruovb",description:"Novosibirsk, Russia",alias:["Asia/Novosibirsk"]},{name:"rupkc",description:"Kamchatka Peninsula, Russia",alias:["Asia/Kamchatka"]},{name:"rurtw",description:"Saratov, Russia",alias:["Europe/Saratov"]},{name:"rusred",description:"Srednekolymsk, Russia",alias:["Asia/Srednekolymsk"]},{name:"rutof",description:"Tomsk, Russia",alias:["Asia/Tomsk"]},{name:"ruuly",description:"Ulyanovsk, Russia",alias:["Europe/Ulyanovsk"]},{name:"ruunera",description:"Ust-Nera Oymyakonsky, Russia",alias:["Asia/Ust-Nera"]},{name:"ruuus",description:"Sakhalin, Russia",alias:["Asia/Sakhalin"]},{name:"ruvog",description:"Volgograd, Russia",alias:["Europe/Volgograd"]},{name:"ruvvo",description:"Vladivostok, Russia",alias:["Asia/Vladivostok"]},{name:"ruyek",description:"Yekaterinburg, Russia",alias:["Asia/Yekaterinburg"]},{name:"ruyks",description:"Yakutsk, Russia",alias:["Asia/Yakutsk"]},{name:"rwkgl",description:"Kigali, Rwanda",alias:["Africa/Kigali"]},{name:"saruh",description:"Riyadh, Saudi Arabia",alias:["Asia/Riyadh"]},{name:"sbhir",description:"Guadalcanal, Solomon Islands",alias:["Pacific/Guadalcanal"]},{name:"scmaw",description:"Mahé, Seychelles",alias:["Indian/Mahe"]},{name:"sdkrt",description:"Khartoum, Sudan",alias:["Africa/Khartoum"]},{name:"sesto",description:"Stockholm, Sweden",alias:["Europe/Stockholm"]},{name:"sgsin",description:"Singapore",alias:["Asia/Singapore","Singapore"]},{name:"shshn",description:"Saint Helena",alias:["Atlantic/St_Helena"]},{name:"silju",description:"Ljubljana, Slovenia",alias:["Europe/Ljubljana"]},{name:"sjlyr",description:"Longyearbyen, Svalbard",alias:["Arctic/Longyearbyen","Atlantic/Jan_Mayen"]},{name:"skbts",description:"Bratislava, Slovakia",alias:["Europe/Bratislava"]},{name:"slfna",description:"Freetown, Sierra Leone",alias:["Africa/Freetown"]},{name:"smsai",description:"San Marino",alias:["Europe/San_Marino"]},{name:"sndkr",description:"Dakar, Senegal",alias:["Africa/Dakar"]},{name:"somgq",description:"Mogadishu, Somalia",alias:["Africa/Mogadishu"]},{name:"srpbm",description:"Paramaribo, Suriname",alias:["America/Paramaribo"]},{name:"ssjub",description:"Juba, South Sudan",alias:["Africa/Juba"]},{name:"sttms",description:"São Tomé, São Tomé and Príncipe",alias:["Africa/Sao_Tome"]},{name:"svsal",description:"El Salvador",alias:["America/El_Salvador"]},{name:"sxphi",description:"Sint Maarten",alias:["America/Lower_Princes"]},{name:"sydam",description:"Damascus, Syria",alias:["Asia/Damascus"]},{name:"szqmn",description:"Mbabane, Swaziland",alias:["Africa/Mbabane"]},{name:"tcgdt",description:"Grand Turk, Turks and Caicos Islands",alias:["America/Grand_Turk"]},{name:"tdndj",description:"N'Djamena, Chad",alias:["Africa/Ndjamena"]},{name:"tfpfr",description:"Kerguelen Islands, French Southern Territories",alias:["Indian/Kerguelen"]},{name:"tglfw",description:"Lomé, Togo",alias:["Africa/Lome"]},{name:"thbkk",description:"Bangkok, Thailand",alias:["Asia/Bangkok"]},{name:"tjdyu",description:"Dushanbe, Tajikistan",alias:["Asia/Dushanbe"]},{name:"tkfko",description:"Fakaofo, Tokelau",alias:["Pacific/Fakaofo"]},{name:"tldil",description:"Dili, East Timor",alias:["Asia/Dili"]},{name:"tmasb",description:"Ashgabat, Turkmenistan",alias:["Asia/Ashgabat","Asia/Ashkhabad"]},{name:"tntun",description:"Tunis, Tunisia",alias:["Africa/Tunis"]},{name:"totbu",description:"Tongatapu, Tonga",alias:["Pacific/Tongatapu"]},{name:"trist",description:"Istanbul, Turkey",alias:["Europe/Istanbul","Asia/Istanbul","Turkey"]},{name:"ttpos",description:"Port of Spain, Trinidad and Tobago",alias:["America/Port_of_Spain"]},{name:"tvfun",description:"Funafuti, Tuvalu",alias:["Pacific/Funafuti"]},{name:"twtpe",description:"Taipei, Taiwan",alias:["Asia/Taipei","ROC"]},{name:"tzdar",description:"Dar es Salaam, Tanzania",alias:["Africa/Dar_es_Salaam"]},{name:"uaiev",description:"Kiev, Ukraine",alias:["Europe/Kiev"]},{name:"uaozh",description:"Zaporizhia (Zaporozhye), Ukraine",alias:["Europe/Zaporozhye"]},{name:"uasip",description:"Simferopol, Ukraine",alias:["Europe/Simferopol"]},{name:"uauzh",description:"Uzhhorod (Uzhgorod), Ukraine",alias:["Europe/Uzhgorod"]},{name:"ugkla",description:"Kampala, Uganda",alias:["Africa/Kampala"]},{name:"umawk",description:"Wake Island, U.S. Minor Outlying Islands",alias:["Pacific/Wake"]},{name:"umjon",description:"Johnston Atoll, U.S. Minor Outlying Islands",alias:["Pacific/Johnston"]},{name:"ummdy",description:"Midway Islands, U.S. Minor Outlying Islands",alias:["Pacific/Midway"]},{name:"unk",description:"Unknown time zone",alias:["Etc/Unknown"]},{name:"usadk",description:"Adak (Alaska), United States",alias:["America/Adak","America/Atka","US/Aleutian"]},{name:"usaeg",description:"Marengo (Indiana), United States",alias:["America/Indiana/Marengo"]},{name:"usanc",description:"Anchorage, United States",alias:["America/Anchorage","US/Alaska"]},{name:"usboi",description:"Boise (Idaho), United States",alias:["America/Boise"]},{name:"uschi",description:"Chicago, United States",alias:["America/Chicago","US/Central"]},{name:"usden",description:"Denver, United States",alias:["America/Denver","America/Shiprock","Navajo","US/Mountain"]},{name:"usdet",description:"Detroit, United States",alias:["America/Detroit","US/Michigan"]},{name:"ushnl",description:"Honolulu, United States",alias:["Pacific/Honolulu","US/Hawaii"]},{name:"usind",description:"Indianapolis, United States",alias:["America/Indianapolis","America/Fort_Wayne","America/Indiana/Indianapolis","US/East-Indiana"]},{name:"usinvev",description:"Vevay (Indiana), United States",alias:["America/Indiana/Vevay"]},{name:"usjnu",description:"Juneau (Alaska), United States",alias:["America/Juneau"]},{name:"usknx",description:"Knox (Indiana), United States",alias:["America/Indiana/Knox","America/Knox_IN","US/Indiana-Starke"]},{name:"uslax",description:"Los Angeles, United States",alias:["America/Los_Angeles","US/Pacific","US/Pacific-New"]},{name:"uslui",description:"Louisville (Kentucky), United States",alias:["America/Louisville","America/Kentucky/Louisville"]},{name:"usmnm",description:"Menominee (Michigan), United States",alias:["America/Menominee"]},{name:"usmtm",description:"Metlakatla (Alaska), United States",alias:["America/Metlakatla"]},{name:"usmoc",description:"Monticello (Kentucky), United States",alias:["America/Kentucky/Monticello"]},{name:"usndcnt",description:"Center (North Dakota), United States",alias:["America/North_Dakota/Center"]},{name:"usndnsl",description:"New Salem (North Dakota), United States",alias:["America/North_Dakota/New_Salem"]},{name:"usnyc",description:"New York, United States",alias:["America/New_York","US/Eastern"]},{name:"usoea",description:"Vincennes (Indiana), United States",alias:["America/Indiana/Vincennes"]},{name:"usome",description:"Nome (Alaska), United States",alias:["America/Nome"]},{name:"usphx",description:"Phoenix, United States",alias:["America/Phoenix","US/Arizona"]},{name:"ussit",description:"Sitka (Alaska), United States",alias:["America/Sitka"]},{name:"ustel",description:"Tell City (Indiana), United States",alias:["America/Indiana/Tell_City"]},{name:"uswlz",description:"Winamac (Indiana), United States",alias:["America/Indiana/Winamac"]},{name:"uswsq",description:"Petersburg (Indiana), United States",alias:["America/Indiana/Petersburg"]},{name:"usxul",description:"Beulah (North Dakota), United States",alias:["America/North_Dakota/Beulah"]},{name:"usyak",description:"Yakutat (Alaska), United States",alias:["America/Yakutat"]},{name:"utc",description:"UTC (Coordinated Universal Time)",alias:["Etc/UTC","Etc/UCT","Etc/Universal","Etc/Zulu","UCT","UTC","Universal","Zulu"]},{name:"utce01",description:"1 hour ahead of UTC",alias:["Etc/GMT-1"]},{name:"utce02",description:"2 hours ahead of UTC",alias:["Etc/GMT-2"]},{name:"utce03",description:"3 hours ahead of UTC",alias:["Etc/GMT-3"]},{name:"utce04",description:"4 hours ahead of UTC",alias:["Etc/GMT-4"]},{name:"utce05",description:"5 hours ahead of UTC",alias:["Etc/GMT-5"]},{name:"utce06",description:"6 hours ahead of UTC",alias:["Etc/GMT-6"]},{name:"utce07",description:"7 hours ahead of UTC",alias:["Etc/GMT-7"]},{name:"utce08",description:"8 hours ahead of UTC",alias:["Etc/GMT-8"]},{name:"utce09",description:"9 hours ahead of UTC",alias:["Etc/GMT-9"]},{name:"utce10",description:"10 hours ahead of UTC",alias:["Etc/GMT-10"]},{name:"utce11",description:"11 hours ahead of UTC",alias:["Etc/GMT-11"]},{name:"utce12",description:"12 hours ahead of UTC",alias:["Etc/GMT-12"]},{name:"utce13",description:"13 hours ahead of UTC",alias:["Etc/GMT-13"]},{name:"utce14",description:"14 hours ahead of UTC",alias:["Etc/GMT-14"]},{name:"utcw01",description:"1 hour behind UTC",alias:["Etc/GMT+1"]},{name:"utcw02",description:"2 hours behind UTC",alias:["Etc/GMT+2"]},{name:"utcw03",description:"3 hours behind UTC",alias:["Etc/GMT+3"]},{name:"utcw04",description:"4 hours behind UTC",alias:["Etc/GMT+4"]},{name:"utcw05",description:"5 hours behind UTC",alias:["Etc/GMT+5","EST"]},{name:"utcw06",description:"6 hours behind UTC",alias:["Etc/GMT+6"]},{name:"utcw07",description:"7 hours behind UTC",alias:["Etc/GMT+7","MST"]},{name:"utcw08",description:"8 hours behind UTC",alias:["Etc/GMT+8"]},{name:"utcw09",description:"9 hours behind UTC",alias:["Etc/GMT+9"]},{name:"utcw10",description:"10 hours behind UTC",alias:["Etc/GMT+10","HST"]},{name:"utcw11",description:"11 hours behind UTC",alias:["Etc/GMT+11"]},{name:"utcw12",description:"12 hours behind UTC",alias:["Etc/GMT+12"]},{name:"uymvd",description:"Montevideo, Uruguay",alias:["America/Montevideo"]},{name:"uzskd",description:"Samarkand, Uzbekistan",alias:["Asia/Samarkand"]},{name:"uztas",description:"Tashkent, Uzbekistan",alias:["Asia/Tashkent"]},{name:"vavat",description:"Vatican City",alias:["Europe/Vatican"]},{name:"vcsvd",description:"Saint Vincent, Saint Vincent and the Grenadines",alias:["America/St_Vincent"]},{name:"veccs",description:"Caracas, Venezuela",alias:["America/Caracas"]},{name:"vgtov",description:"Tortola, British Virgin Islands",alias:["America/Tortola"]},{name:"vistt",description:"Saint Thomas, U.S. Virgin Islands",alias:["America/St_Thomas","America/Virgin"]},{name:"vnsgn",description:"Ho Chi Minh City, Vietnam",alias:["Asia/Saigon","Asia/Ho_Chi_Minh"]},{name:"vuvli",description:"Efate, Vanuatu",alias:["Pacific/Efate"]},{name:"wfmau",description:"Wallis Islands, Wallis and Futuna",alias:["Pacific/Wallis"]},{name:"wsapw",description:"Apia, Samoa",alias:["Pacific/Apia"]},{name:"yeade",description:"Aden, Yemen",alias:["Asia/Aden"]},{name:"ytmam",description:"Mayotte",alias:["Indian/Mayotte"]},{name:"zajnb",description:"Johannesburg, South Africa",alias:["Africa/Johannesburg"]},{name:"zmlun",description:"Lusaka, Zambia",alias:["Africa/Lusaka"]},{name:"zwhre",description:"Harare, Zimbabwe",alias:["Africa/Harare"]}],fvi=[{windowsName:"Dateline Standard Time",territory:"001",iana:["Etc/GMT+12"]},{windowsName:"Dateline Standard Time",territory:"ZZ",iana:["Etc/GMT+12"]},{windowsName:"UTC-11",territory:"001",iana:["Etc/GMT+11"]},{windowsName:"UTC-11",territory:"AS",iana:["Pacific/Pago_Pago"]},{windowsName:"UTC-11",territory:"NU",iana:["Pacific/Niue"]},{windowsName:"UTC-11",territory:"UM",iana:["Pacific/Midway"]},{windowsName:"UTC-11",territory:"ZZ",iana:["Etc/GMT+11"]},{windowsName:"Aleutian Standard Time",territory:"001",iana:["America/Adak"]},{windowsName:"Aleutian Standard Time",territory:"US",iana:["America/Adak"]},{windowsName:"Hawaiian Standard Time",territory:"001",iana:["Pacific/Honolulu"]},{windowsName:"Hawaiian Standard Time",territory:"CK",iana:["Pacific/Rarotonga"]},{windowsName:"Hawaiian Standard Time",territory:"PF",iana:["Pacific/Tahiti"]},{windowsName:"Hawaiian Standard Time",territory:"UM",iana:["Pacific/Johnston"]},{windowsName:"Hawaiian Standard Time",territory:"US",iana:["Pacific/Honolulu"]},{windowsName:"Hawaiian Standard Time",territory:"ZZ",iana:["Etc/GMT+10"]},{windowsName:"Marquesas Standard Time",territory:"001",iana:["Pacific/Marquesas"]},{windowsName:"Marquesas Standard Time",territory:"PF",iana:["Pacific/Marquesas"]},{windowsName:"Alaskan Standard Time",territory:"001",iana:["America/Anchorage"]},{windowsName:"Alaskan Standard Time",territory:"US",iana:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},{windowsName:"UTC-09",territory:"001",iana:["Etc/GMT+9"]},{windowsName:"UTC-09",territory:"PF",iana:["Pacific/Gambier"]},{windowsName:"UTC-09",territory:"ZZ",iana:["Etc/GMT+9"]},{windowsName:"Pacific Standard Time (Mexico)",territory:"001",iana:["America/Tijuana"]},{windowsName:"Pacific Standard Time (Mexico)",territory:"MX",iana:["America/Tijuana","America/Santa_Isabel"]},{windowsName:"UTC-08",territory:"001",iana:["Etc/GMT+8"]},{windowsName:"UTC-08",territory:"PN",iana:["Pacific/Pitcairn"]},{windowsName:"UTC-08",territory:"ZZ",iana:["Etc/GMT+8"]},{windowsName:"Pacific Standard Time",territory:"001",iana:["America/Los_Angeles"]},{windowsName:"Pacific Standard Time",territory:"CA",iana:["America/Vancouver"]},{windowsName:"Pacific Standard Time",territory:"US",iana:["America/Los_Angeles"]},{windowsName:"Pacific Standard Time",territory:"ZZ",iana:["PST8PDT"]},{windowsName:"US Mountain Standard Time",territory:"001",iana:["America/Phoenix"]},{windowsName:"US Mountain Standard Time",territory:"CA",iana:["America/Creston","America/Dawson_Creek","America/Fort_Nelson"]},{windowsName:"US Mountain Standard Time",territory:"MX",iana:["America/Hermosillo"]},{windowsName:"US Mountain Standard Time",territory:"US",iana:["America/Phoenix"]},{windowsName:"US Mountain Standard Time",territory:"ZZ",iana:["Etc/GMT+7"]},{windowsName:"Mountain Standard Time (Mexico)",territory:"001",iana:["America/Chihuahua"]},{windowsName:"Mountain Standard Time (Mexico)",territory:"MX",iana:["America/Chihuahua","America/Mazatlan"]},{windowsName:"Mountain Standard Time",territory:"001",iana:["America/Denver"]},{windowsName:"Mountain Standard Time",territory:"CA",iana:["America/Edmonton","America/Cambridge_Bay","America/Inuvik","America/Yellowknife"]},{windowsName:"Mountain Standard Time",territory:"MX",iana:["America/Ojinaga"]},{windowsName:"Mountain Standard Time",territory:"US",iana:["America/Denver","America/Boise"]},{windowsName:"Mountain Standard Time",territory:"ZZ",iana:["MST7MDT"]},{windowsName:"Yukon Standard Time",territory:"001",iana:["America/Whitehorse"]},{windowsName:"Yukon Standard Time",territory:"CA",iana:["America/Whitehorse","America/Dawson"]},{windowsName:"Central America Standard Time",territory:"001",iana:["America/Guatemala"]},{windowsName:"Central America Standard Time",territory:"BZ",iana:["America/Belize"]},{windowsName:"Central America Standard Time",territory:"CR",iana:["America/Costa_Rica"]},{windowsName:"Central America Standard Time",territory:"EC",iana:["Pacific/Galapagos"]},{windowsName:"Central America Standard Time",territory:"GT",iana:["America/Guatemala"]},{windowsName:"Central America Standard Time",territory:"HN",iana:["America/Tegucigalpa"]},{windowsName:"Central America Standard Time",territory:"NI",iana:["America/Managua"]},{windowsName:"Central America Standard Time",territory:"SV",iana:["America/El_Salvador"]},{windowsName:"Central America Standard Time",territory:"ZZ",iana:["Etc/GMT+6"]},{windowsName:"Central Standard Time",territory:"001",iana:["America/Chicago"]},{windowsName:"Central Standard Time",territory:"CA",iana:["America/Winnipeg","America/Rainy_River","America/Rankin_Inlet","America/Resolute"]},{windowsName:"Central Standard Time",territory:"MX",iana:["America/Matamoros"]},{windowsName:"Central Standard Time",territory:"US",iana:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem"]},{windowsName:"Central Standard Time",territory:"ZZ",iana:["CST6CDT"]},{windowsName:"Easter Island Standard Time",territory:"001",iana:["Pacific/Easter"]},{windowsName:"Easter Island Standard Time",territory:"CL",iana:["Pacific/Easter"]},{windowsName:"Central Standard Time (Mexico)",territory:"001",iana:["America/Mexico_City"]},{windowsName:"Central Standard Time (Mexico)",territory:"MX",iana:["America/Mexico_City","America/Bahia_Banderas","America/Merida","America/Monterrey"]},{windowsName:"Canada Central Standard Time",territory:"001",iana:["America/Regina"]},{windowsName:"Canada Central Standard Time",territory:"CA",iana:["America/Regina","America/Swift_Current"]},{windowsName:"SA Pacific Standard Time",territory:"001",iana:["America/Bogota"]},{windowsName:"SA Pacific Standard Time",territory:"BR",iana:["America/Rio_Branco","America/Eirunepe"]},{windowsName:"SA Pacific Standard Time",territory:"CA",iana:["America/Coral_Harbour"]},{windowsName:"SA Pacific Standard Time",territory:"CO",iana:["America/Bogota"]},{windowsName:"SA Pacific Standard Time",territory:"EC",iana:["America/Guayaquil"]},{windowsName:"SA Pacific Standard Time",territory:"JM",iana:["America/Jamaica"]},{windowsName:"SA Pacific Standard Time",territory:"KY",iana:["America/Cayman"]},{windowsName:"SA Pacific Standard Time",territory:"PA",iana:["America/Panama"]},{windowsName:"SA Pacific Standard Time",territory:"PE",iana:["America/Lima"]},{windowsName:"SA Pacific Standard Time",territory:"ZZ",iana:["Etc/GMT+5"]},{windowsName:"Eastern Standard Time (Mexico)",territory:"001",iana:["America/Cancun"]},{windowsName:"Eastern Standard Time (Mexico)",territory:"MX",iana:["America/Cancun"]},{windowsName:"Eastern Standard Time",territory:"001",iana:["America/New_York"]},{windowsName:"Eastern Standard Time",territory:"BS",iana:["America/Nassau"]},{windowsName:"Eastern Standard Time",territory:"CA",iana:["America/Toronto","America/Iqaluit","America/Montreal","America/Nipigon","America/Pangnirtung","America/Thunder_Bay"]},{windowsName:"Eastern Standard Time",territory:"US",iana:["America/New_York","America/Detroit","America/Indiana/Petersburg","America/Indiana/Vincennes","America/Indiana/Winamac","America/Kentucky/Monticello","America/Louisville"]},{windowsName:"Eastern Standard Time",territory:"ZZ",iana:["EST5EDT"]},{windowsName:"Haiti Standard Time",territory:"001",iana:["America/Port-au-Prince"]},{windowsName:"Haiti Standard Time",territory:"HT",iana:["America/Port-au-Prince"]},{windowsName:"Cuba Standard Time",territory:"001",iana:["America/Havana"]},{windowsName:"Cuba Standard Time",territory:"CU",iana:["America/Havana"]},{windowsName:"US Eastern Standard Time",territory:"001",iana:["America/Indianapolis"]},{windowsName:"US Eastern Standard Time",territory:"US",iana:["America/Indianapolis","America/Indiana/Marengo","America/Indiana/Vevay"]},{windowsName:"Turks And Caicos Standard Time",territory:"001",iana:["America/Grand_Turk"]},{windowsName:"Turks And Caicos Standard Time",territory:"TC",iana:["America/Grand_Turk"]},{windowsName:"Paraguay Standard Time",territory:"001",iana:["America/Asuncion"]},{windowsName:"Paraguay Standard Time",territory:"PY",iana:["America/Asuncion"]},{windowsName:"Atlantic Standard Time",territory:"001",iana:["America/Halifax"]},{windowsName:"Atlantic Standard Time",territory:"BM",iana:["Atlantic/Bermuda"]},{windowsName:"Atlantic Standard Time",territory:"CA",iana:["America/Halifax","America/Glace_Bay","America/Goose_Bay","America/Moncton"]},{windowsName:"Atlantic Standard Time",territory:"GL",iana:["America/Thule"]},{windowsName:"Venezuela Standard Time",territory:"001",iana:["America/Caracas"]},{windowsName:"Venezuela Standard Time",territory:"VE",iana:["America/Caracas"]},{windowsName:"Central Brazilian Standard Time",territory:"001",iana:["America/Cuiaba"]},{windowsName:"Central Brazilian Standard Time",territory:"BR",iana:["America/Cuiaba","America/Campo_Grande"]},{windowsName:"SA Western Standard Time",territory:"001",iana:["America/La_Paz"]},{windowsName:"SA Western Standard Time",territory:"AG",iana:["America/Antigua"]},{windowsName:"SA Western Standard Time",territory:"AI",iana:["America/Anguilla"]},{windowsName:"SA Western Standard Time",territory:"AW",iana:["America/Aruba"]},{windowsName:"SA Western Standard Time",territory:"BB",iana:["America/Barbados"]},{windowsName:"SA Western Standard Time",territory:"BL",iana:["America/St_Barthelemy"]},{windowsName:"SA Western Standard Time",territory:"BO",iana:["America/La_Paz"]},{windowsName:"SA Western Standard Time",territory:"BQ",iana:["America/Kralendijk"]},{windowsName:"SA Western Standard Time",territory:"BR",iana:["America/Manaus","America/Boa_Vista","America/Porto_Velho"]},{windowsName:"SA Western Standard Time",territory:"CA",iana:["America/Blanc-Sablon"]},{windowsName:"SA Western Standard Time",territory:"CW",iana:["America/Curacao"]},{windowsName:"SA Western Standard Time",territory:"DM",iana:["America/Dominica"]},{windowsName:"SA Western Standard Time",territory:"DO",iana:["America/Santo_Domingo"]},{windowsName:"SA Western Standard Time",territory:"GD",iana:["America/Grenada"]},{windowsName:"SA Western Standard Time",territory:"GP",iana:["America/Guadeloupe"]},{windowsName:"SA Western Standard Time",territory:"GY",iana:["America/Guyana"]},{windowsName:"SA Western Standard Time",territory:"KN",iana:["America/St_Kitts"]},{windowsName:"SA Western Standard Time",territory:"LC",iana:["America/St_Lucia"]},{windowsName:"SA Western Standard Time",territory:"MF",iana:["America/Marigot"]},{windowsName:"SA Western Standard Time",territory:"MQ",iana:["America/Martinique"]},{windowsName:"SA Western Standard Time",territory:"MS",iana:["America/Montserrat"]},{windowsName:"SA Western Standard Time",territory:"PR",iana:["America/Puerto_Rico"]},{windowsName:"SA Western Standard Time",territory:"SX",iana:["America/Lower_Princes"]},{windowsName:"SA Western Standard Time",territory:"TT",iana:["America/Port_of_Spain"]},{windowsName:"SA Western Standard Time",territory:"VC",iana:["America/St_Vincent"]},{windowsName:"SA Western Standard Time",territory:"VG",iana:["America/Tortola"]},{windowsName:"SA Western Standard Time",territory:"VI",iana:["America/St_Thomas"]},{windowsName:"SA Western Standard Time",territory:"ZZ",iana:["Etc/GMT+4"]},{windowsName:"Pacific SA Standard Time",territory:"001",iana:["America/Santiago"]},{windowsName:"Pacific SA Standard Time",territory:"CL",iana:["America/Santiago"]},{windowsName:"Newfoundland Standard Time",territory:"001",iana:["America/St_Johns"]},{windowsName:"Newfoundland Standard Time",territory:"CA",iana:["America/St_Johns"]},{windowsName:"Tocantins Standard Time",territory:"001",iana:["America/Araguaina"]},{windowsName:"Tocantins Standard Time",territory:"BR",iana:["America/Araguaina"]},{windowsName:"E. South America Standard Time",territory:"001",iana:["America/Sao_Paulo"]},{windowsName:"E. South America Standard Time",territory:"BR",iana:["America/Sao_Paulo"]},{windowsName:"SA Eastern Standard Time",territory:"001",iana:["America/Cayenne"]},{windowsName:"SA Eastern Standard Time",territory:"AQ",iana:["Antarctica/Rothera","Antarctica/Palmer"]},{windowsName:"SA Eastern Standard Time",territory:"BR",iana:["America/Fortaleza","America/Belem","America/Maceio","America/Recife","America/Santarem"]},{windowsName:"SA Eastern Standard Time",territory:"FK",iana:["Atlantic/Stanley"]},{windowsName:"SA Eastern Standard Time",territory:"GF",iana:["America/Cayenne"]},{windowsName:"SA Eastern Standard Time",territory:"SR",iana:["America/Paramaribo"]},{windowsName:"SA Eastern Standard Time",territory:"ZZ",iana:["Etc/GMT+3"]},{windowsName:"Argentina Standard Time",territory:"001",iana:["America/Buenos_Aires"]},{windowsName:"Argentina Standard Time",territory:"AR",iana:["America/Buenos_Aires","America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},{windowsName:"Greenland Standard Time",territory:"001",iana:["America/Godthab"]},{windowsName:"Greenland Standard Time",territory:"GL",iana:["America/Godthab"]},{windowsName:"Montevideo Standard Time",territory:"001",iana:["America/Montevideo"]},{windowsName:"Montevideo Standard Time",territory:"UY",iana:["America/Montevideo"]},{windowsName:"Magallanes Standard Time",territory:"001",iana:["America/Punta_Arenas"]},{windowsName:"Magallanes Standard Time",territory:"CL",iana:["America/Punta_Arenas"]},{windowsName:"Saint Pierre Standard Time",territory:"001",iana:["America/Miquelon"]},{windowsName:"Saint Pierre Standard Time",territory:"PM",iana:["America/Miquelon"]},{windowsName:"Bahia Standard Time",territory:"001",iana:["America/Bahia"]},{windowsName:"Bahia Standard Time",territory:"BR",iana:["America/Bahia"]},{windowsName:"UTC-02",territory:"001",iana:["Etc/GMT+2"]},{windowsName:"UTC-02",territory:"BR",iana:["America/Noronha"]},{windowsName:"UTC-02",territory:"GS",iana:["Atlantic/South_Georgia"]},{windowsName:"UTC-02",territory:"ZZ",iana:["Etc/GMT+2"]},{windowsName:"Azores Standard Time",territory:"001",iana:["Atlantic/Azores"]},{windowsName:"Azores Standard Time",territory:"GL",iana:["America/Scoresbysund"]},{windowsName:"Azores Standard Time",territory:"PT",iana:["Atlantic/Azores"]},{windowsName:"Cape Verde Standard Time",territory:"001",iana:["Atlantic/Cape_Verde"]},{windowsName:"Cape Verde Standard Time",territory:"CV",iana:["Atlantic/Cape_Verde"]},{windowsName:"Cape Verde Standard Time",territory:"ZZ",iana:["Etc/GMT+1"]},{windowsName:"UTC",territory:"001",iana:["Etc/UTC"]},{windowsName:"UTC",territory:"ZZ",iana:["Etc/UTC","Etc/GMT"]},{windowsName:"GMT Standard Time",territory:"001",iana:["Europe/London"]},{windowsName:"GMT Standard Time",territory:"ES",iana:["Atlantic/Canary"]},{windowsName:"GMT Standard Time",territory:"FO",iana:["Atlantic/Faeroe"]},{windowsName:"GMT Standard Time",territory:"GB",iana:["Europe/London"]},{windowsName:"GMT Standard Time",territory:"GG",iana:["Europe/Guernsey"]},{windowsName:"GMT Standard Time",territory:"IE",iana:["Europe/Dublin"]},{windowsName:"GMT Standard Time",territory:"IM",iana:["Europe/Isle_of_Man"]},{windowsName:"GMT Standard Time",territory:"JE",iana:["Europe/Jersey"]},{windowsName:"GMT Standard Time",territory:"PT",iana:["Europe/Lisbon","Atlantic/Madeira"]},{windowsName:"Greenwich Standard Time",territory:"001",iana:["Atlantic/Reykjavik"]},{windowsName:"Greenwich Standard Time",territory:"BF",iana:["Africa/Ouagadougou"]},{windowsName:"Greenwich Standard Time",territory:"CI",iana:["Africa/Abidjan"]},{windowsName:"Greenwich Standard Time",territory:"GH",iana:["Africa/Accra"]},{windowsName:"Greenwich Standard Time",territory:"GL",iana:["America/Danmarkshavn"]},{windowsName:"Greenwich Standard Time",territory:"GM",iana:["Africa/Banjul"]},{windowsName:"Greenwich Standard Time",territory:"GN",iana:["Africa/Conakry"]},{windowsName:"Greenwich Standard Time",territory:"GW",iana:["Africa/Bissau"]},{windowsName:"Greenwich Standard Time",territory:"IS",iana:["Atlantic/Reykjavik"]},{windowsName:"Greenwich Standard Time",territory:"LR",iana:["Africa/Monrovia"]},{windowsName:"Greenwich Standard Time",territory:"ML",iana:["Africa/Bamako"]},{windowsName:"Greenwich Standard Time",territory:"MR",iana:["Africa/Nouakchott"]},{windowsName:"Greenwich Standard Time",territory:"SH",iana:["Atlantic/St_Helena"]},{windowsName:"Greenwich Standard Time",territory:"SL",iana:["Africa/Freetown"]},{windowsName:"Greenwich Standard Time",territory:"SN",iana:["Africa/Dakar"]},{windowsName:"Greenwich Standard Time",territory:"TG",iana:["Africa/Lome"]},{windowsName:"Sao Tome Standard Time",territory:"001",iana:["Africa/Sao_Tome"]},{windowsName:"Sao Tome Standard Time",territory:"ST",iana:["Africa/Sao_Tome"]},{windowsName:"Morocco Standard Time",territory:"001",iana:["Africa/Casablanca"]},{windowsName:"Morocco Standard Time",territory:"EH",iana:["Africa/El_Aaiun"]},{windowsName:"Morocco Standard Time",territory:"MA",iana:["Africa/Casablanca"]},{windowsName:"W. Europe Standard Time",territory:"001",iana:["Europe/Berlin"]},{windowsName:"W. Europe Standard Time",territory:"AD",iana:["Europe/Andorra"]},{windowsName:"W. Europe Standard Time",territory:"AT",iana:["Europe/Vienna"]},{windowsName:"W. Europe Standard Time",territory:"CH",iana:["Europe/Zurich"]},{windowsName:"W. Europe Standard Time",territory:"DE",iana:["Europe/Berlin","Europe/Busingen"]},{windowsName:"W. Europe Standard Time",territory:"GI",iana:["Europe/Gibraltar"]},{windowsName:"W. Europe Standard Time",territory:"IT",iana:["Europe/Rome"]},{windowsName:"W. Europe Standard Time",territory:"LI",iana:["Europe/Vaduz"]},{windowsName:"W. Europe Standard Time",territory:"LU",iana:["Europe/Luxembourg"]},{windowsName:"W. Europe Standard Time",territory:"MC",iana:["Europe/Monaco"]},{windowsName:"W. Europe Standard Time",territory:"MT",iana:["Europe/Malta"]},{windowsName:"W. Europe Standard Time",territory:"NL",iana:["Europe/Amsterdam"]},{windowsName:"W. Europe Standard Time",territory:"NO",iana:["Europe/Oslo"]},{windowsName:"W. Europe Standard Time",territory:"SE",iana:["Europe/Stockholm"]},{windowsName:"W. Europe Standard Time",territory:"SJ",iana:["Arctic/Longyearbyen"]},{windowsName:"W. Europe Standard Time",territory:"SM",iana:["Europe/San_Marino"]},{windowsName:"W. Europe Standard Time",territory:"VA",iana:["Europe/Vatican"]},{windowsName:"Central Europe Standard Time",territory:"001",iana:["Europe/Budapest"]},{windowsName:"Central Europe Standard Time",territory:"AL",iana:["Europe/Tirane"]},{windowsName:"Central Europe Standard Time",territory:"CZ",iana:["Europe/Prague"]},{windowsName:"Central Europe Standard Time",territory:"HU",iana:["Europe/Budapest"]},{windowsName:"Central Europe Standard Time",territory:"ME",iana:["Europe/Podgorica"]},{windowsName:"Central Europe Standard Time",territory:"RS",iana:["Europe/Belgrade"]},{windowsName:"Central Europe Standard Time",territory:"SI",iana:["Europe/Ljubljana"]},{windowsName:"Central Europe Standard Time",territory:"SK",iana:["Europe/Bratislava"]},{windowsName:"Romance Standard Time",territory:"001",iana:["Europe/Paris"]},{windowsName:"Romance Standard Time",territory:"BE",iana:["Europe/Brussels"]},{windowsName:"Romance Standard Time",territory:"DK",iana:["Europe/Copenhagen"]},{windowsName:"Romance Standard Time",territory:"ES",iana:["Europe/Madrid","Africa/Ceuta"]},{windowsName:"Romance Standard Time",territory:"FR",iana:["Europe/Paris"]},{windowsName:"Central European Standard Time",territory:"001",iana:["Europe/Warsaw"]},{windowsName:"Central European Standard Time",territory:"BA",iana:["Europe/Sarajevo"]},{windowsName:"Central European Standard Time",territory:"HR",iana:["Europe/Zagreb"]},{windowsName:"Central European Standard Time",territory:"MK",iana:["Europe/Skopje"]},{windowsName:"Central European Standard Time",territory:"PL",iana:["Europe/Warsaw"]},{windowsName:"W. Central Africa Standard Time",territory:"001",iana:["Africa/Lagos"]},{windowsName:"W. Central Africa Standard Time",territory:"AO",iana:["Africa/Luanda"]},{windowsName:"W. Central Africa Standard Time",territory:"BJ",iana:["Africa/Porto-Novo"]},{windowsName:"W. Central Africa Standard Time",territory:"CD",iana:["Africa/Kinshasa"]},{windowsName:"W. Central Africa Standard Time",territory:"CF",iana:["Africa/Bangui"]},{windowsName:"W. Central Africa Standard Time",territory:"CG",iana:["Africa/Brazzaville"]},{windowsName:"W. Central Africa Standard Time",territory:"CM",iana:["Africa/Douala"]},{windowsName:"W. Central Africa Standard Time",territory:"DZ",iana:["Africa/Algiers"]},{windowsName:"W. Central Africa Standard Time",territory:"GA",iana:["Africa/Libreville"]},{windowsName:"W. Central Africa Standard Time",territory:"GQ",iana:["Africa/Malabo"]},{windowsName:"W. Central Africa Standard Time",territory:"NE",iana:["Africa/Niamey"]},{windowsName:"W. Central Africa Standard Time",territory:"NG",iana:["Africa/Lagos"]},{windowsName:"W. Central Africa Standard Time",territory:"TD",iana:["Africa/Ndjamena"]},{windowsName:"W. Central Africa Standard Time",territory:"TN",iana:["Africa/Tunis"]},{windowsName:"W. Central Africa Standard Time",territory:"ZZ",iana:["Etc/GMT-1"]},{windowsName:"Jordan Standard Time",territory:"001",iana:["Asia/Amman"]},{windowsName:"Jordan Standard Time",territory:"JO",iana:["Asia/Amman"]},{windowsName:"GTB Standard Time",territory:"001",iana:["Europe/Bucharest"]},{windowsName:"GTB Standard Time",territory:"CY",iana:["Asia/Nicosia","Asia/Famagusta"]},{windowsName:"GTB Standard Time",territory:"GR",iana:["Europe/Athens"]},{windowsName:"GTB Standard Time",territory:"RO",iana:["Europe/Bucharest"]},{windowsName:"Middle East Standard Time",territory:"001",iana:["Asia/Beirut"]},{windowsName:"Middle East Standard Time",territory:"LB",iana:["Asia/Beirut"]},{windowsName:"Egypt Standard Time",territory:"001",iana:["Africa/Cairo"]},{windowsName:"Egypt Standard Time",territory:"EG",iana:["Africa/Cairo"]},{windowsName:"E. Europe Standard Time",territory:"001",iana:["Europe/Chisinau"]},{windowsName:"E. Europe Standard Time",territory:"MD",iana:["Europe/Chisinau"]},{windowsName:"Syria Standard Time",territory:"001",iana:["Asia/Damascus"]},{windowsName:"Syria Standard Time",territory:"SY",iana:["Asia/Damascus"]},{windowsName:"West Bank Standard Time",territory:"001",iana:["Asia/Hebron"]},{windowsName:"West Bank Standard Time",territory:"PS",iana:["Asia/Hebron","Asia/Gaza"]},{windowsName:"South Africa Standard Time",territory:"001",iana:["Africa/Johannesburg"]},{windowsName:"South Africa Standard Time",territory:"BI",iana:["Africa/Bujumbura"]},{windowsName:"South Africa Standard Time",territory:"BW",iana:["Africa/Gaborone"]},{windowsName:"South Africa Standard Time",territory:"CD",iana:["Africa/Lubumbashi"]},{windowsName:"South Africa Standard Time",territory:"LS",iana:["Africa/Maseru"]},{windowsName:"South Africa Standard Time",territory:"MW",iana:["Africa/Blantyre"]},{windowsName:"South Africa Standard Time",territory:"MZ",iana:["Africa/Maputo"]},{windowsName:"South Africa Standard Time",territory:"RW",iana:["Africa/Kigali"]},{windowsName:"South Africa Standard Time",territory:"SZ",iana:["Africa/Mbabane"]},{windowsName:"South Africa Standard Time",territory:"ZA",iana:["Africa/Johannesburg"]},{windowsName:"South Africa Standard Time",territory:"ZM",iana:["Africa/Lusaka"]},{windowsName:"South Africa Standard Time",territory:"ZW",iana:["Africa/Harare"]},{windowsName:"South Africa Standard Time",territory:"ZZ",iana:["Etc/GMT-2"]},{windowsName:"FLE Standard Time",territory:"001",iana:["Europe/Kiev"]},{windowsName:"FLE Standard Time",territory:"AX",iana:["Europe/Mariehamn"]},{windowsName:"FLE Standard Time",territory:"BG",iana:["Europe/Sofia"]},{windowsName:"FLE Standard Time",territory:"EE",iana:["Europe/Tallinn"]},{windowsName:"FLE Standard Time",territory:"FI",iana:["Europe/Helsinki"]},{windowsName:"FLE Standard Time",territory:"LT",iana:["Europe/Vilnius"]},{windowsName:"FLE Standard Time",territory:"LV",iana:["Europe/Riga"]},{windowsName:"FLE Standard Time",territory:"UA",iana:["Europe/Kiev","Europe/Uzhgorod","Europe/Zaporozhye"]},{windowsName:"Israel Standard Time",territory:"001",iana:["Asia/Jerusalem"]},{windowsName:"Israel Standard Time",territory:"IL",iana:["Asia/Jerusalem"]},{windowsName:"South Sudan Standard Time",territory:"001",iana:["Africa/Juba"]},{windowsName:"South Sudan Standard Time",territory:"SS",iana:["Africa/Juba"]},{windowsName:"Kaliningrad Standard Time",territory:"001",iana:["Europe/Kaliningrad"]},{windowsName:"Kaliningrad Standard Time",territory:"RU",iana:["Europe/Kaliningrad"]},{windowsName:"Sudan Standard Time",territory:"001",iana:["Africa/Khartoum"]},{windowsName:"Sudan Standard Time",territory:"SD",iana:["Africa/Khartoum"]},{windowsName:"Libya Standard Time",territory:"001",iana:["Africa/Tripoli"]},{windowsName:"Libya Standard Time",territory:"LY",iana:["Africa/Tripoli"]},{windowsName:"Namibia Standard Time",territory:"001",iana:["Africa/Windhoek"]},{windowsName:"Namibia Standard Time",territory:"NA",iana:["Africa/Windhoek"]},{windowsName:"Arabic Standard Time",territory:"001",iana:["Asia/Baghdad"]},{windowsName:"Arabic Standard Time",territory:"IQ",iana:["Asia/Baghdad"]},{windowsName:"Turkey Standard Time",territory:"001",iana:["Europe/Istanbul"]},{windowsName:"Turkey Standard Time",territory:"TR",iana:["Europe/Istanbul"]},{windowsName:"Arab Standard Time",territory:"001",iana:["Asia/Riyadh"]},{windowsName:"Arab Standard Time",territory:"BH",iana:["Asia/Bahrain"]},{windowsName:"Arab Standard Time",territory:"KW",iana:["Asia/Kuwait"]},{windowsName:"Arab Standard Time",territory:"QA",iana:["Asia/Qatar"]},{windowsName:"Arab Standard Time",territory:"SA",iana:["Asia/Riyadh"]},{windowsName:"Arab Standard Time",territory:"YE",iana:["Asia/Aden"]},{windowsName:"Belarus Standard Time",territory:"001",iana:["Europe/Minsk"]},{windowsName:"Belarus Standard Time",territory:"BY",iana:["Europe/Minsk"]},{windowsName:"Russian Standard Time",territory:"001",iana:["Europe/Moscow"]},{windowsName:"Russian Standard Time",territory:"RU",iana:["Europe/Moscow","Europe/Kirov"]},{windowsName:"Russian Standard Time",territory:"UA",iana:["Europe/Simferopol"]},{windowsName:"E. Africa Standard Time",territory:"001",iana:["Africa/Nairobi"]},{windowsName:"E. Africa Standard Time",territory:"AQ",iana:["Antarctica/Syowa"]},{windowsName:"E. Africa Standard Time",territory:"DJ",iana:["Africa/Djibouti"]},{windowsName:"E. Africa Standard Time",territory:"ER",iana:["Africa/Asmera"]},{windowsName:"E. Africa Standard Time",territory:"ET",iana:["Africa/Addis_Ababa"]},{windowsName:"E. Africa Standard Time",territory:"KE",iana:["Africa/Nairobi"]},{windowsName:"E. Africa Standard Time",territory:"KM",iana:["Indian/Comoro"]},{windowsName:"E. Africa Standard Time",territory:"MG",iana:["Indian/Antananarivo"]},{windowsName:"E. Africa Standard Time",territory:"SO",iana:["Africa/Mogadishu"]},{windowsName:"E. Africa Standard Time",territory:"TZ",iana:["Africa/Dar_es_Salaam"]},{windowsName:"E. Africa Standard Time",territory:"UG",iana:["Africa/Kampala"]},{windowsName:"E. Africa Standard Time",territory:"YT",iana:["Indian/Mayotte"]},{windowsName:"E. Africa Standard Time",territory:"ZZ",iana:["Etc/GMT-3"]},{windowsName:"Iran Standard Time",territory:"001",iana:["Asia/Tehran"]},{windowsName:"Iran Standard Time",territory:"IR",iana:["Asia/Tehran"]},{windowsName:"Arabian Standard Time",territory:"001",iana:["Asia/Dubai"]},{windowsName:"Arabian Standard Time",territory:"AE",iana:["Asia/Dubai"]},{windowsName:"Arabian Standard Time",territory:"OM",iana:["Asia/Muscat"]},{windowsName:"Arabian Standard Time",territory:"ZZ",iana:["Etc/GMT-4"]},{windowsName:"Astrakhan Standard Time",territory:"001",iana:["Europe/Astrakhan"]},{windowsName:"Astrakhan Standard Time",territory:"RU",iana:["Europe/Astrakhan","Europe/Ulyanovsk"]},{windowsName:"Azerbaijan Standard Time",territory:"001",iana:["Asia/Baku"]},{windowsName:"Azerbaijan Standard Time",territory:"AZ",iana:["Asia/Baku"]},{windowsName:"Russia Time Zone 3",territory:"001",iana:["Europe/Samara"]},{windowsName:"Russia Time Zone 3",territory:"RU",iana:["Europe/Samara"]},{windowsName:"Mauritius Standard Time",territory:"001",iana:["Indian/Mauritius"]},{windowsName:"Mauritius Standard Time",territory:"MU",iana:["Indian/Mauritius"]},{windowsName:"Mauritius Standard Time",territory:"RE",iana:["Indian/Reunion"]},{windowsName:"Mauritius Standard Time",territory:"SC",iana:["Indian/Mahe"]},{windowsName:"Saratov Standard Time",territory:"001",iana:["Europe/Saratov"]},{windowsName:"Saratov Standard Time",territory:"RU",iana:["Europe/Saratov"]},{windowsName:"Georgian Standard Time",territory:"001",iana:["Asia/Tbilisi"]},{windowsName:"Georgian Standard Time",territory:"GE",iana:["Asia/Tbilisi"]},{windowsName:"Volgograd Standard Time",territory:"001",iana:["Europe/Volgograd"]},{windowsName:"Volgograd Standard Time",territory:"RU",iana:["Europe/Volgograd"]},{windowsName:"Caucasus Standard Time",territory:"001",iana:["Asia/Yerevan"]},{windowsName:"Caucasus Standard Time",territory:"AM",iana:["Asia/Yerevan"]},{windowsName:"Afghanistan Standard Time",territory:"001",iana:["Asia/Kabul"]},{windowsName:"Afghanistan Standard Time",territory:"AF",iana:["Asia/Kabul"]},{windowsName:"West Asia Standard Time",territory:"001",iana:["Asia/Tashkent"]},{windowsName:"West Asia Standard Time",territory:"AQ",iana:["Antarctica/Mawson"]},{windowsName:"West Asia Standard Time",territory:"KZ",iana:["Asia/Oral","Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau"]},{windowsName:"West Asia Standard Time",territory:"MV",iana:["Indian/Maldives"]},{windowsName:"West Asia Standard Time",territory:"TF",iana:["Indian/Kerguelen"]},{windowsName:"West Asia Standard Time",territory:"TJ",iana:["Asia/Dushanbe"]},{windowsName:"West Asia Standard Time",territory:"TM",iana:["Asia/Ashgabat"]},{windowsName:"West Asia Standard Time",territory:"UZ",iana:["Asia/Tashkent","Asia/Samarkand"]},{windowsName:"West Asia Standard Time",territory:"ZZ",iana:["Etc/GMT-5"]},{windowsName:"Ekaterinburg Standard Time",territory:"001",iana:["Asia/Yekaterinburg"]},{windowsName:"Ekaterinburg Standard Time",territory:"RU",iana:["Asia/Yekaterinburg"]},{windowsName:"Pakistan Standard Time",territory:"001",iana:["Asia/Karachi"]},{windowsName:"Pakistan Standard Time",territory:"PK",iana:["Asia/Karachi"]},{windowsName:"Qyzylorda Standard Time",territory:"001",iana:["Asia/Qyzylorda"]},{windowsName:"Qyzylorda Standard Time",territory:"KZ",iana:["Asia/Qyzylorda"]},{windowsName:"India Standard Time",territory:"001",iana:["Asia/Calcutta"]},{windowsName:"India Standard Time",territory:"IN",iana:["Asia/Calcutta"]},{windowsName:"Sri Lanka Standard Time",territory:"001",iana:["Asia/Colombo"]},{windowsName:"Sri Lanka Standard Time",territory:"LK",iana:["Asia/Colombo"]},{windowsName:"Nepal Standard Time",territory:"001",iana:["Asia/Katmandu"]},{windowsName:"Nepal Standard Time",territory:"NP",iana:["Asia/Katmandu"]},{windowsName:"Central Asia Standard Time",territory:"001",iana:["Asia/Almaty"]},{windowsName:"Central Asia Standard Time",territory:"AQ",iana:["Antarctica/Vostok"]},{windowsName:"Central Asia Standard Time",territory:"CN",iana:["Asia/Urumqi"]},{windowsName:"Central Asia Standard Time",territory:"IO",iana:["Indian/Chagos"]},{windowsName:"Central Asia Standard Time",territory:"KG",iana:["Asia/Bishkek"]},{windowsName:"Central Asia Standard Time",territory:"KZ",iana:["Asia/Almaty","Asia/Qostanay"]},{windowsName:"Central Asia Standard Time",territory:"ZZ",iana:["Etc/GMT-6"]},{windowsName:"Bangladesh Standard Time",territory:"001",iana:["Asia/Dhaka"]},{windowsName:"Bangladesh Standard Time",territory:"BD",iana:["Asia/Dhaka"]},{windowsName:"Bangladesh Standard Time",territory:"BT",iana:["Asia/Thimphu"]},{windowsName:"Omsk Standard Time",territory:"001",iana:["Asia/Omsk"]},{windowsName:"Omsk Standard Time",territory:"RU",iana:["Asia/Omsk"]},{windowsName:"Myanmar Standard Time",territory:"001",iana:["Asia/Rangoon"]},{windowsName:"Myanmar Standard Time",territory:"CC",iana:["Indian/Cocos"]},{windowsName:"Myanmar Standard Time",territory:"MM",iana:["Asia/Rangoon"]},{windowsName:"SE Asia Standard Time",territory:"001",iana:["Asia/Bangkok"]},{windowsName:"SE Asia Standard Time",territory:"AQ",iana:["Antarctica/Davis"]},{windowsName:"SE Asia Standard Time",territory:"CX",iana:["Indian/Christmas"]},{windowsName:"SE Asia Standard Time",territory:"ID",iana:["Asia/Jakarta","Asia/Pontianak"]},{windowsName:"SE Asia Standard Time",territory:"KH",iana:["Asia/Phnom_Penh"]},{windowsName:"SE Asia Standard Time",territory:"LA",iana:["Asia/Vientiane"]},{windowsName:"SE Asia Standard Time",territory:"TH",iana:["Asia/Bangkok"]},{windowsName:"SE Asia Standard Time",territory:"VN",iana:["Asia/Saigon"]},{windowsName:"SE Asia Standard Time",territory:"ZZ",iana:["Etc/GMT-7"]},{windowsName:"Altai Standard Time",territory:"001",iana:["Asia/Barnaul"]},{windowsName:"Altai Standard Time",territory:"RU",iana:["Asia/Barnaul"]},{windowsName:"W. Mongolia Standard Time",territory:"001",iana:["Asia/Hovd"]},{windowsName:"W. Mongolia Standard Time",territory:"MN",iana:["Asia/Hovd"]},{windowsName:"North Asia Standard Time",territory:"001",iana:["Asia/Krasnoyarsk"]},{windowsName:"North Asia Standard Time",territory:"RU",iana:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},{windowsName:"N. Central Asia Standard Time",territory:"001",iana:["Asia/Novosibirsk"]},{windowsName:"N. Central Asia Standard Time",territory:"RU",iana:["Asia/Novosibirsk"]},{windowsName:"Tomsk Standard Time",territory:"001",iana:["Asia/Tomsk"]},{windowsName:"Tomsk Standard Time",territory:"RU",iana:["Asia/Tomsk"]},{windowsName:"China Standard Time",territory:"001",iana:["Asia/Shanghai"]},{windowsName:"China Standard Time",territory:"CN",iana:["Asia/Shanghai"]},{windowsName:"China Standard Time",territory:"HK",iana:["Asia/Hong_Kong"]},{windowsName:"China Standard Time",territory:"MO",iana:["Asia/Macau"]},{windowsName:"North Asia East Standard Time",territory:"001",iana:["Asia/Irkutsk"]},{windowsName:"North Asia East Standard Time",territory:"RU",iana:["Asia/Irkutsk"]},{windowsName:"Singapore Standard Time",territory:"001",iana:["Asia/Singapore"]},{windowsName:"Singapore Standard Time",territory:"BN",iana:["Asia/Brunei"]},{windowsName:"Singapore Standard Time",territory:"ID",iana:["Asia/Makassar"]},{windowsName:"Singapore Standard Time",territory:"MY",iana:["Asia/Kuala_Lumpur","Asia/Kuching"]},{windowsName:"Singapore Standard Time",territory:"PH",iana:["Asia/Manila"]},{windowsName:"Singapore Standard Time",territory:"SG",iana:["Asia/Singapore"]},{windowsName:"Singapore Standard Time",territory:"ZZ",iana:["Etc/GMT-8"]},{windowsName:"W. Australia Standard Time",territory:"001",iana:["Australia/Perth"]},{windowsName:"W. Australia Standard Time",territory:"AU",iana:["Australia/Perth"]},{windowsName:"Taipei Standard Time",territory:"001",iana:["Asia/Taipei"]},{windowsName:"Taipei Standard Time",territory:"TW",iana:["Asia/Taipei"]},{windowsName:"Ulaanbaatar Standard Time",territory:"001",iana:["Asia/Ulaanbaatar"]},{windowsName:"Ulaanbaatar Standard Time",territory:"MN",iana:["Asia/Ulaanbaatar","Asia/Choibalsan"]},{windowsName:"Aus Central W. Standard Time",territory:"001",iana:["Australia/Eucla"]},{windowsName:"Aus Central W. Standard Time",territory:"AU",iana:["Australia/Eucla"]},{windowsName:"Transbaikal Standard Time",territory:"001",iana:["Asia/Chita"]},{windowsName:"Transbaikal Standard Time",territory:"RU",iana:["Asia/Chita"]},{windowsName:"Tokyo Standard Time",territory:"001",iana:["Asia/Tokyo"]},{windowsName:"Tokyo Standard Time",territory:"ID",iana:["Asia/Jayapura"]},{windowsName:"Tokyo Standard Time",territory:"JP",iana:["Asia/Tokyo"]},{windowsName:"Tokyo Standard Time",territory:"PW",iana:["Pacific/Palau"]},{windowsName:"Tokyo Standard Time",territory:"TL",iana:["Asia/Dili"]},{windowsName:"Tokyo Standard Time",territory:"ZZ",iana:["Etc/GMT-9"]},{windowsName:"North Korea Standard Time",territory:"001",iana:["Asia/Pyongyang"]},{windowsName:"North Korea Standard Time",territory:"KP",iana:["Asia/Pyongyang"]},{windowsName:"Korea Standard Time",territory:"001",iana:["Asia/Seoul"]},{windowsName:"Korea Standard Time",territory:"KR",iana:["Asia/Seoul"]},{windowsName:"Yakutsk Standard Time",territory:"001",iana:["Asia/Yakutsk"]},{windowsName:"Yakutsk Standard Time",territory:"RU",iana:["Asia/Yakutsk","Asia/Khandyga"]},{windowsName:"Cen. Australia Standard Time",territory:"001",iana:["Australia/Adelaide"]},{windowsName:"Cen. Australia Standard Time",territory:"AU",iana:["Australia/Adelaide","Australia/Broken_Hill"]},{windowsName:"AUS Central Standard Time",territory:"001",iana:["Australia/Darwin"]},{windowsName:"AUS Central Standard Time",territory:"AU",iana:["Australia/Darwin"]},{windowsName:"E. Australia Standard Time",territory:"001",iana:["Australia/Brisbane"]},{windowsName:"E. Australia Standard Time",territory:"AU",iana:["Australia/Brisbane","Australia/Lindeman"]},{windowsName:"AUS Eastern Standard Time",territory:"001",iana:["Australia/Sydney"]},{windowsName:"AUS Eastern Standard Time",territory:"AU",iana:["Australia/Sydney","Australia/Melbourne"]},{windowsName:"West Pacific Standard Time",territory:"001",iana:["Pacific/Port_Moresby"]},{windowsName:"West Pacific Standard Time",territory:"AQ",iana:["Antarctica/DumontDUrville"]},{windowsName:"West Pacific Standard Time",territory:"FM",iana:["Pacific/Truk"]},{windowsName:"West Pacific Standard Time",territory:"GU",iana:["Pacific/Guam"]},{windowsName:"West Pacific Standard Time",territory:"MP",iana:["Pacific/Saipan"]},{windowsName:"West Pacific Standard Time",territory:"PG",iana:["Pacific/Port_Moresby"]},{windowsName:"West Pacific Standard Time",territory:"ZZ",iana:["Etc/GMT-10"]},{windowsName:"Tasmania Standard Time",territory:"001",iana:["Australia/Hobart"]},{windowsName:"Tasmania Standard Time",territory:"AU",iana:["Australia/Hobart","Australia/Currie","Antarctica/Macquarie"]},{windowsName:"Vladivostok Standard Time",territory:"001",iana:["Asia/Vladivostok"]},{windowsName:"Vladivostok Standard Time",territory:"RU",iana:["Asia/Vladivostok","Asia/Ust-Nera"]},{windowsName:"Lord Howe Standard Time",territory:"001",iana:["Australia/Lord_Howe"]},{windowsName:"Lord Howe Standard Time",territory:"AU",iana:["Australia/Lord_Howe"]},{windowsName:"Bougainville Standard Time",territory:"001",iana:["Pacific/Bougainville"]},{windowsName:"Bougainville Standard Time",territory:"PG",iana:["Pacific/Bougainville"]},{windowsName:"Russia Time Zone 10",territory:"001",iana:["Asia/Srednekolymsk"]},{windowsName:"Russia Time Zone 10",territory:"RU",iana:["Asia/Srednekolymsk"]},{windowsName:"Magadan Standard Time",territory:"001",iana:["Asia/Magadan"]},{windowsName:"Magadan Standard Time",territory:"RU",iana:["Asia/Magadan"]},{windowsName:"Norfolk Standard Time",territory:"001",iana:["Pacific/Norfolk"]},{windowsName:"Norfolk Standard Time",territory:"NF",iana:["Pacific/Norfolk"]},{windowsName:"Sakhalin Standard Time",territory:"001",iana:["Asia/Sakhalin"]},{windowsName:"Sakhalin Standard Time",territory:"RU",iana:["Asia/Sakhalin"]},{windowsName:"Central Pacific Standard Time",territory:"001",iana:["Pacific/Guadalcanal"]},{windowsName:"Central Pacific Standard Time",territory:"AQ",iana:["Antarctica/Casey"]},{windowsName:"Central Pacific Standard Time",territory:"FM",iana:["Pacific/Ponape","Pacific/Kosrae"]},{windowsName:"Central Pacific Standard Time",territory:"NC",iana:["Pacific/Noumea"]},{windowsName:"Central Pacific Standard Time",territory:"SB",iana:["Pacific/Guadalcanal"]},{windowsName:"Central Pacific Standard Time",territory:"VU",iana:["Pacific/Efate"]},{windowsName:"Central Pacific Standard Time",territory:"ZZ",iana:["Etc/GMT-11"]},{windowsName:"Russia Time Zone 11",territory:"001",iana:["Asia/Kamchatka"]},{windowsName:"Russia Time Zone 11",territory:"RU",iana:["Asia/Kamchatka","Asia/Anadyr"]},{windowsName:"New Zealand Standard Time",territory:"001",iana:["Pacific/Auckland"]},{windowsName:"New Zealand Standard Time",territory:"AQ",iana:["Antarctica/McMurdo"]},{windowsName:"New Zealand Standard Time",territory:"NZ",iana:["Pacific/Auckland"]},{windowsName:"UTC+12",territory:"001",iana:["Etc/GMT-12"]},{windowsName:"UTC+12",territory:"KI",iana:["Pacific/Tarawa"]},{windowsName:"UTC+12",territory:"MH",iana:["Pacific/Majuro","Pacific/Kwajalein"]},{windowsName:"UTC+12",territory:"NR",iana:["Pacific/Nauru"]},{windowsName:"UTC+12",territory:"TV",iana:["Pacific/Funafuti"]},{windowsName:"UTC+12",territory:"UM",iana:["Pacific/Wake"]},{windowsName:"UTC+12",territory:"WF",iana:["Pacific/Wallis"]},{windowsName:"UTC+12",territory:"ZZ",iana:["Etc/GMT-12"]},{windowsName:"Fiji Standard Time",territory:"001",iana:["Pacific/Fiji"]},{windowsName:"Fiji Standard Time",territory:"FJ",iana:["Pacific/Fiji"]},{windowsName:"Chatham Islands Standard Time",territory:"001",iana:["Pacific/Chatham"]},{windowsName:"Chatham Islands Standard Time",territory:"NZ",iana:["Pacific/Chatham"]},{windowsName:"UTC+13",territory:"001",iana:["Etc/GMT-13"]},{windowsName:"UTC+13",territory:"KI",iana:["Pacific/Enderbury"]},{windowsName:"UTC+13",territory:"TK",iana:["Pacific/Fakaofo"]},{windowsName:"UTC+13",territory:"ZZ",iana:["Etc/GMT-13"]},{windowsName:"Tonga Standard Time",territory:"001",iana:["Pacific/Tongatapu"]},{windowsName:"Tonga Standard Time",territory:"TO",iana:["Pacific/Tongatapu"]},{windowsName:"Samoa Standard Time",territory:"001",iana:["Pacific/Apia"]},{windowsName:"Samoa Standard Time",territory:"WS",iana:["Pacific/Apia"]},{windowsName:"Line Islands Standard Time",territory:"001",iana:["Pacific/Kiritimati"]},{windowsName:"Line Islands Standard Time",territory:"KI",iana:["Pacific/Kiritimati"]},{windowsName:"Line Islands Standard Time",territory:"ZZ",iana:["Etc/GMT-14"]}];function gvi(e){var t=new Set;return hvi.filter(function(n){var r=n.alias;return r.includes(e)}).map(function(n){return n.alias}).flat().forEach(function(n){t.add(n)}),Array.from(t)}function mvi(e,t){var n=new Set;return fvi.filter(function(r){return r.windowsName===e}).map(function(r){return r.iana}).flat().map(gvi).flat().forEach(function(r){n.add(r)}),Array.from(n)}var e5={},BYe;function vvi(){if(BYe)return e5;BYe=1;var e=ri(),t=ii();Object.defineProperty(e5,"__esModule",{value:!0}),e5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}),"PersonOutline");return e5.default=i,e5}var bvi=vvi();const yvi=qn(bvi);var t5={},jYe;function Mvi(){if(jYe)return t5;jYe=1;var e=ri(),t=ii();Object.defineProperty(t5,"__esModule",{value:!0}),t5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");return t5.default=i,t5}var Cvi=Mvi();const xvi=qn(Cvi);/*! @azure/msal-browser v2.39.0 2024-06-06 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ube=function(e,t){return Ube=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ube(e,t)};function Id(e,t){Ube(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Sr=function(){return Sr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Sr.apply(this,arguments)};function HYe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function dn(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})}function pn(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function wvi(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function e3e(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(wvi(arguments[t]));return e}/*! @azure/msal-common v13.3.3 2024-06-06 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Xbe=function(e,t){return Xbe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Xbe(e,t)};function Ap(e,t){Xbe(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Fa=function(){return Fa=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Fa.apply(this,arguments)};function qi(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})}function Bi(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Jee(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}/*! @azure/msal-common v13.3.3 2024-06-06 */var yt={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},fj=[yt.OPENID_SCOPE,yt.PROFILE_SCOPE,yt.OFFLINE_ACCESS_SCOPE],VYe=Jee(fj,[yt.EMAIL_SCOPE]),ah;(function(e){e.CONTENT_TYPE="Content-Type",e.RETRY_AFTER="Retry-After",e.CCS_HEADER="X-AnchorMailbox",e.WWWAuthenticate="WWW-Authenticate",e.AuthenticationInfo="Authentication-Info",e.X_MS_REQUEST_ID="x-ms-request-id",e.X_MS_HTTP_VERSION="x-ms-httpver"})(ah||(ah={}));var fu;(function(e){e.ID_TOKEN="idtoken",e.CLIENT_INFO="client.info",e.ADAL_ID_TOKEN="adal.idtoken",e.ERROR="error",e.ERROR_DESC="error.description",e.ACTIVE_ACCOUNT="active-account",e.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(fu||(fu={}));var lz;(function(e){e.COMMON="common",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers"})(lz||(lz={}));var Zi;(function(e){e.CLIENT_ID="client_id",e.REDIRECT_URI="redirect_uri",e.RESPONSE_TYPE="response_type",e.RESPONSE_MODE="response_mode",e.GRANT_TYPE="grant_type",e.CLAIMS="claims",e.SCOPE="scope",e.ERROR="error",e.ERROR_DESCRIPTION="error_description",e.ACCESS_TOKEN="access_token",e.ID_TOKEN="id_token",e.REFRESH_TOKEN="refresh_token",e.EXPIRES_IN="expires_in",e.STATE="state",e.NONCE="nonce",e.PROMPT="prompt",e.SESSION_STATE="session_state",e.CLIENT_INFO="client_info",e.CODE="code",e.CODE_CHALLENGE="code_challenge",e.CODE_CHALLENGE_METHOD="code_challenge_method",e.CODE_VERIFIER="code_verifier",e.CLIENT_REQUEST_ID="client-request-id",e.X_CLIENT_SKU="x-client-SKU",e.X_CLIENT_VER="x-client-VER",e.X_CLIENT_OS="x-client-OS",e.X_CLIENT_CPU="x-client-CPU",e.X_CLIENT_CURR_TELEM="x-client-current-telemetry",e.X_CLIENT_LAST_TELEM="x-client-last-telemetry",e.X_MS_LIB_CAPABILITY="x-ms-lib-capability",e.X_APP_NAME="x-app-name",e.X_APP_VER="x-app-ver",e.POST_LOGOUT_URI="post_logout_redirect_uri",e.ID_TOKEN_HINT="id_token_hint",e.DEVICE_CODE="device_code",e.CLIENT_SECRET="client_secret",e.CLIENT_ASSERTION="client_assertion",e.CLIENT_ASSERTION_TYPE="client_assertion_type",e.TOKEN_TYPE="token_type",e.REQ_CNF="req_cnf",e.OBO_ASSERTION="assertion",e.REQUESTED_TOKEN_USE="requested_token_use",e.ON_BEHALF_OF="on_behalf_of",e.FOCI="foci",e.CCS_HEADER="X-AnchorMailbox",e.RETURN_SPA_CODE="return_spa_code",e.NATIVE_BROKER="nativebroker",e.LOGOUT_HINT="logout_hint"})(Zi||(Zi={}));var $R;(function(e){e.ACCESS_TOKEN="access_token",e.XMS_CC="xms_cc"})($R||($R={}));var g0={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},GF;(function(e){e.ACCOUNT="account",e.SID="sid",e.LOGIN_HINT="login_hint",e.ID_TOKEN="id_token",e.DOMAIN_HINT="domain_hint",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers",e.ACCOUNT_ID="accountIdentifier",e.HOMEACCOUNT_ID="homeAccountIdentifier"})(GF||(GF={}));var GYe={PLAIN:"plain",S256:"S256"},RX;(function(e){e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post"})(RX||(RX={}));var IX;(function(e){e.IMPLICIT_GRANT="implicit",e.AUTHORIZATION_CODE_GRANT="authorization_code",e.CLIENT_CREDENTIALS_GRANT="client_credentials",e.RESOURCE_OWNER_PASSWORD_GRANT="password",e.REFRESH_TOKEN_GRANT="refresh_token",e.DEVICE_CODE_GRANT="device_code",e.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(IX||(IX={}));var tO;(function(e){e.MSSTS_ACCOUNT_TYPE="MSSTS",e.ADFS_ACCOUNT_TYPE="ADFS",e.MSAV1_ACCOUNT_TYPE="MSA",e.GENERIC_ACCOUNT_TYPE="Generic"})(tO||(tO={}));var Mu;(function(e){e.CACHE_KEY_SEPARATOR="-",e.CLIENT_INFO_SEPARATOR="."})(Mu||(Mu={}));var ti;(function(e){e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",e.REFRESH_TOKEN="RefreshToken"})(ti||(ti={}));var $F;(function(e){e[e.ADFS=1001]="ADFS",e[e.MSA=1002]="MSA",e[e.MSSTS=1003]="MSSTS",e[e.GENERIC=1004]="GENERIC",e[e.ACCESS_TOKEN=2001]="ACCESS_TOKEN",e[e.REFRESH_TOKEN=2002]="REFRESH_TOKEN",e[e.ID_TOKEN=2003]="ID_TOKEN",e[e.APP_METADATA=3001]="APP_METADATA",e[e.UNDEFINED=9999]="UNDEFINED"})($F||($F={}));var Ybe="appmetadata",Svi="client_info",UF="1",XF={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},$h;(function(e){e.CONFIG="config",e.CACHE="cache",e.NETWORK="network",e.HARDCODED_VALUES="hardcoded_values"})($h||($h={}));var dd={SCHEMA_VERSION:5,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Qa;(function(e){e.BEARER="Bearer",e.POP="pop",e.SSH="ssh-cert"})(Qa||(Qa={}));var YF={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},$Ye={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},PX;(function(e){e.username="username",e.password="password"})(PX||(PX={}));var UR;(function(e){e[e.httpSuccess=200]="httpSuccess",e[e.httpBadRequest=400]="httpBadRequest"})(UR||(UR={}));var qC;(function(e){e.FAILED_AUTO_DETECTION="1",e.INTERNAL_CACHE="2",e.ENVIRONMENT_VARIABLE="3",e.IMDS="4"})(qC||(qC={}));var KF;(function(e){e.CONFIGURED_MATCHES_DETECTED="1",e.CONFIGURED_NO_AUTO_DETECTION="2",e.CONFIGURED_NOT_DETECTED="3",e.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",e.AUTO_DETECTION_REQUESTED_FAILED="5"})(KF||(KF={}));var ZC;(function(e){e.NO_CACHE_HIT="0",e.FORCE_REFRESH="1",e.NO_CACHED_ACCESS_TOKEN="2",e.CACHED_ACCESS_TOKEN_EXPIRED="3",e.REFRESH_CACHED_ACCESS_TOKEN="4",e.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(ZC||(ZC={}));var Kbe;(function(e){e.Jwt="JWT",e.Jwk="JWK",e.Pop="pop"})(Kbe||(Kbe={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var CG={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},Gr=(function(e){Ap(t,e);function t(n,r,i){var o=this,a=r?n+": "+r:n;return o=e.call(this,a)||this,Object.setPrototypeOf(o,t.prototype),o.errorCode=n||yt.EMPTY_STRING,o.errorMessage=r||yt.EMPTY_STRING,o.subError=i||yt.EMPTY_STRING,o.name="AuthError",o}return t.prototype.setCorrelationId=function(n){this.correlationId=n},t.createUnexpectedError=function(n){return new t(CG.unexpectedError.code,CG.unexpectedError.desc+": "+n)},t.createPostRequestFailed=function(n){return new t(CG.postRequestFailed.code,CG.postRequestFailed.desc+": "+n)},t})(Error);/*! @azure/msal-common v13.3.3 2024-06-06 */var DX={createNewGuid:function(){var e="Crypto interface - createNewGuid() has not been implemented";throw Gr.createUnexpectedError(e)},base64Decode:function(){var e="Crypto interface - base64Decode() has not been implemented";throw Gr.createUnexpectedError(e)},base64Encode:function(){var e="Crypto interface - base64Encode() has not been implemented";throw Gr.createUnexpectedError(e)},generatePkceCodes:function(){return qi(this,void 0,void 0,function(){var e;return Bi(this,function(t){throw e="Crypto interface - generatePkceCodes() has not been implemented",Gr.createUnexpectedError(e)})})},getPublicKeyThumbprint:function(){return qi(this,void 0,void 0,function(){var e;return Bi(this,function(t){throw e="Crypto interface - getPublicKeyThumbprint() has not been implemented",Gr.createUnexpectedError(e)})})},removeTokenBindingKey:function(){return qi(this,void 0,void 0,function(){var e;return Bi(this,function(t){throw e="Crypto interface - removeTokenBindingKey() has not been implemented",Gr.createUnexpectedError(e)})})},clearKeystore:function(){return qi(this,void 0,void 0,function(){var e;return Bi(this,function(t){throw e="Crypto interface - clearKeystore() has not been implemented",Gr.createUnexpectedError(e)})})},signJwt:function(){return qi(this,void 0,void 0,function(){var e;return Bi(this,function(t){throw e="Crypto interface - signJwt() has not been implemented",Gr.createUnexpectedError(e)})})},hashString:function(){return qi(this,void 0,void 0,function(){var e;return Bi(this,function(t){throw e="Crypto interface - hashString() has not been implemented",Gr.createUnexpectedError(e)})})}};/*! @azure/msal-common v13.3.3 2024-06-06 */var zn={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},Ar=(function(e){Ap(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.name="ClientAuthError",Object.setPrototypeOf(i,t.prototype),i}return t.createClientInfoDecodingError=function(n){return new t(zn.clientInfoDecodingError.code,zn.clientInfoDecodingError.desc+" Failed with error: "+n)},t.createClientInfoEmptyError=function(){return new t(zn.clientInfoEmptyError.code,""+zn.clientInfoEmptyError.desc)},t.createTokenParsingError=function(n){return new t(zn.tokenParsingError.code,zn.tokenParsingError.desc+" Failed with error: "+n)},t.createTokenNullOrEmptyError=function(n){return new t(zn.nullOrEmptyToken.code,zn.nullOrEmptyToken.desc+" Raw Token Value: "+n)},t.createEndpointDiscoveryIncompleteError=function(n){return new t(zn.endpointResolutionError.code,zn.endpointResolutionError.desc+" Detail: "+n)},t.createNetworkError=function(n,r){return new t(zn.networkError.code,zn.networkError.desc+" | Fetch client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},t.createUnableToGetOpenidConfigError=function(n){return new t(zn.unableToGetOpenidConfigError.code,zn.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+n)},t.createHashNotDeserializedError=function(n){return new t(zn.hashNotDeserialized.code,zn.hashNotDeserialized.desc+" Given Object: "+n)},t.createInvalidStateError=function(n,r){return new t(zn.invalidStateError.code,zn.invalidStateError.desc+" Invalid State: "+n+", Root Err: "+r)},t.createStateMismatchError=function(){return new t(zn.stateMismatchError.code,zn.stateMismatchError.desc)},t.createStateNotFoundError=function(n){return new t(zn.stateNotFoundError.code,zn.stateNotFoundError.desc+":  "+n)},t.createNonceMismatchError=function(){return new t(zn.nonceMismatchError.code,zn.nonceMismatchError.desc)},t.createAuthTimeNotFoundError=function(){return new t(zn.authTimeNotFoundError.code,zn.authTimeNotFoundError.desc)},t.createMaxAgeTranspiredError=function(){return new t(zn.maxAgeTranspiredError.code,zn.maxAgeTranspiredError.desc)},t.createNonceNotFoundError=function(n){return new t(zn.nonceNotFoundError.code,zn.nonceNotFoundError.desc+":  "+n)},t.createMultipleMatchingTokensInCacheError=function(){return new t(zn.multipleMatchingTokens.code,zn.multipleMatchingTokens.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(zn.multipleMatchingAccounts.code,zn.multipleMatchingAccounts.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(zn.multipleMatchingAppMetadata.code,zn.multipleMatchingAppMetadata.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(zn.tokenRequestCannotBeMade.code,zn.tokenRequestCannotBeMade.desc)},t.createAppendEmptyScopeToSetError=function(n){return new t(zn.appendEmptyScopeError.code,zn.appendEmptyScopeError.desc+" Given Scope: "+n)},t.createRemoveEmptyScopeFromSetError=function(n){return new t(zn.removeEmptyScopeError.code,zn.removeEmptyScopeError.desc+" Given Scope: "+n)},t.createAppendScopeSetError=function(n){return new t(zn.appendScopeSetError.code,zn.appendScopeSetError.desc+" Detail Error: "+n)},t.createEmptyInputScopeSetError=function(){return new t(zn.emptyInputScopeSetError.code,""+zn.emptyInputScopeSetError.desc)},t.createDeviceCodeCancelledError=function(){return new t(zn.DeviceCodePollingCancelled.code,""+zn.DeviceCodePollingCancelled.desc)},t.createDeviceCodeExpiredError=function(){return new t(zn.DeviceCodeExpired.code,""+zn.DeviceCodeExpired.desc)},t.createDeviceCodeUnknownError=function(){return new t(zn.DeviceCodeUnknownError.code,""+zn.DeviceCodeUnknownError.desc)},t.createNoAccountInSilentRequestError=function(){return new t(zn.NoAccountInSilentRequest.code,""+zn.NoAccountInSilentRequest.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(zn.invalidCacheRecord.code,zn.invalidCacheRecord.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(zn.invalidCacheEnvironment.code,zn.invalidCacheEnvironment.desc)},t.createNoAccountFoundError=function(){return new t(zn.noAccountFound.code,zn.noAccountFound.desc)},t.createCachePluginError=function(){return new t(zn.CachePluginError.code,""+zn.CachePluginError.desc)},t.createNoCryptoObjectError=function(n){return new t(zn.noCryptoObj.code,""+zn.noCryptoObj.desc+n)},t.createInvalidCacheTypeError=function(){return new t(zn.invalidCacheType.code,""+zn.invalidCacheType.desc)},t.createUnexpectedAccountTypeError=function(){return new t(zn.unexpectedAccountType.code,""+zn.unexpectedAccountType.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(zn.unexpectedCredentialType.code,""+zn.unexpectedCredentialType.desc)},t.createInvalidAssertionError=function(){return new t(zn.invalidAssertion.code,""+zn.invalidAssertion.desc)},t.createInvalidCredentialError=function(){return new t(zn.invalidClientCredential.code,""+zn.invalidClientCredential.desc)},t.createRefreshRequiredError=function(){return new t(zn.tokenRefreshRequired.code,zn.tokenRefreshRequired.desc)},t.createUserTimeoutReachedError=function(){return new t(zn.userTimeoutReached.code,zn.userTimeoutReached.desc)},t.createTokenClaimsRequiredError=function(){return new t(zn.tokenClaimsRequired.code,zn.tokenClaimsRequired.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(zn.noAuthorizationCodeFromServer.code,zn.noAuthorizationCodeFromServer.desc)},t.createBindingKeyNotRemovedError=function(){return new t(zn.bindingKeyNotRemovedError.code,zn.bindingKeyNotRemovedError.desc)},t.createLogoutNotSupportedError=function(){return new t(zn.logoutNotSupported.code,zn.logoutNotSupported.desc)},t.createKeyIdMissingError=function(){return new t(zn.keyIdMissing.code,zn.keyIdMissing.desc)},t.createNoNetworkConnectivityError=function(){return new t(zn.noNetworkConnectivity.code,zn.noNetworkConnectivity.desc)},t.createUserCanceledError=function(){return new t(zn.userCanceledError.code,zn.userCanceledError.desc)},t})(Gr);/*! @azure/msal-common v13.3.3 2024-06-06 */var mr=(function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw Ar.createTokenNullOrEmptyError(t);var n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,r=n.exec(t);if(!r||r.length<4)throw Ar.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));var i={header:r[1],JWSPayload:r[2],JWSSig:r[3]};return i},e.isEmpty=function(t){return typeof t>"u"||!t||t.length===0},e.isEmptyObj=function(t){if(t&&!e.isEmpty(t))try{var n=JSON.parse(t);return Object.keys(n).length===0}catch{}return!0},e.startsWith=function(t,n){return t.indexOf(n)===0},e.endsWith=function(t,n){return t.length>=n.length&&t.lastIndexOf(n)===t.length-n.length},e.queryStringToObject=function(t){var n={},r=t.split("&"),i=function(o){return decodeURIComponent(o.replace(/\+/g," "))};return r.forEach(function(o){if(o.trim()){var a=o.split(/=(.+)/g,2),s=a[0],l=a[1];s&&l&&(n[i(s)]=i(l))}}),n},e.trimArrayEntries=function(t){return t.map(function(n){return n.trim()})},e.removeEmptyStringsFromArray=function(t){return t.filter(function(n){return!e.isEmpty(n)})},e.jsonParseHelper=function(t){try{return JSON.parse(t)}catch{return null}},e.matchPattern=function(t,n){var r=new RegExp(t.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return r.test(n)},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Kl;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"})(Kl||(Kl={}));var ete=(function(){function e(t,n,r){this.level=Kl.Info;var i=function(){},o=t||e.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||i,this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level=typeof o.logLevel=="number"?o.logLevel:Kl.Info,this.correlationId=o.correlationId||yt.EMPTY_STRING,this.packageName=n||yt.EMPTY_STRING,this.packageVersion=r||yt.EMPTY_STRING}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Kl.Info}},e.prototype.clone=function(t,n,r){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},t,n)},e.prototype.logMessage=function(t,n){if(!(n.logLevel>this.level||!this.piiLoggingEnabled&&n.containsPii)){var r=new Date().toUTCString(),i;mr.isEmpty(n.correlationId)?mr.isEmpty(this.correlationId)?i="["+r+"]":i="["+r+"] : ["+this.correlationId+"]":i="["+r+"] : ["+n.correlationId+"]";var o=i+" : "+this.packageName+"@"+this.packageVersion+" : "+Kl[n.logLevel]+" - "+t;this.executeCallback(n.logLevel,o,n.containsPii||!1)}},e.prototype.executeCallback=function(t,n,r){this.localCallback&&this.localCallback(t,n,r)},e.prototype.error=function(t,n){this.logMessage(t,{logLevel:Kl.Error,containsPii:!1,correlationId:n||yt.EMPTY_STRING})},e.prototype.errorPii=function(t,n){this.logMessage(t,{logLevel:Kl.Error,containsPii:!0,correlationId:n||yt.EMPTY_STRING})},e.prototype.warning=function(t,n){this.logMessage(t,{logLevel:Kl.Warning,containsPii:!1,correlationId:n||yt.EMPTY_STRING})},e.prototype.warningPii=function(t,n){this.logMessage(t,{logLevel:Kl.Warning,containsPii:!0,correlationId:n||yt.EMPTY_STRING})},e.prototype.info=function(t,n){this.logMessage(t,{logLevel:Kl.Info,containsPii:!1,correlationId:n||yt.EMPTY_STRING})},e.prototype.infoPii=function(t,n){this.logMessage(t,{logLevel:Kl.Info,containsPii:!0,correlationId:n||yt.EMPTY_STRING})},e.prototype.verbose=function(t,n){this.logMessage(t,{logLevel:Kl.Verbose,containsPii:!1,correlationId:n||yt.EMPTY_STRING})},e.prototype.verbosePii=function(t,n){this.logMessage(t,{logLevel:Kl.Verbose,containsPii:!0,correlationId:n||yt.EMPTY_STRING})},e.prototype.trace=function(t,n){this.logMessage(t,{logLevel:Kl.Trace,containsPii:!1,correlationId:n||yt.EMPTY_STRING})},e.prototype.tracePii=function(t,n){this.logMessage(t,{logLevel:Kl.Trace,containsPii:!0,correlationId:n||yt.EMPTY_STRING})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var jAt="@azure/msal-common",t3e="13.3.3";/*! @azure/msal-common v13.3.3 2024-06-06 */var r6;(function(e){e[e.None=0]="None",e.AzurePublic="https://login.microsoftonline.com",e.AzurePpe="https://login.windows-ppe.net",e.AzureChina="https://login.chinacloudapi.cn",e.AzureGermany="https://login.microsoftonline.de",e.AzureUsGovernment="https://login.microsoftonline.us"})(r6||(r6={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var Wi={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'.  Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},Vs=(function(e){Ap(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.name="ClientConfigurationError",Object.setPrototypeOf(i,t.prototype),i}return t.createRedirectUriEmptyError=function(){return new t(Wi.redirectUriNotSet.code,Wi.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(Wi.postLogoutUriNotSet.code,Wi.postLogoutUriNotSet.desc)},t.createClaimsRequestParsingError=function(n){return new t(Wi.claimsRequestParsingError.code,Wi.claimsRequestParsingError.desc+" Given value: "+n)},t.createInsecureAuthorityUriError=function(n){return new t(Wi.authorityUriInsecure.code,Wi.authorityUriInsecure.desc+" Given URI: "+n)},t.createUrlParseError=function(n){return new t(Wi.urlParseError.code,Wi.urlParseError.desc+" Given Error: "+n)},t.createUrlEmptyError=function(){return new t(Wi.urlEmptyError.code,Wi.urlEmptyError.desc)},t.createEmptyScopesArrayError=function(){return new t(Wi.emptyScopesError.code,""+Wi.emptyScopesError.desc)},t.createClientIdSingleScopeError=function(n){return new t(Wi.clientIdSingleScopeError.code,Wi.clientIdSingleScopeError.desc+" Given Scopes: "+n)},t.createInvalidPromptError=function(n){return new t(Wi.invalidPrompt.code,Wi.invalidPrompt.desc+" Given value: "+n)},t.createInvalidClaimsRequestError=function(){return new t(Wi.invalidClaimsRequest.code,Wi.invalidClaimsRequest.desc)},t.createEmptyLogoutRequestError=function(){return new t(Wi.logoutRequestEmptyError.code,Wi.logoutRequestEmptyError.desc)},t.createEmptyTokenRequestError=function(){return new t(Wi.tokenRequestEmptyError.code,Wi.tokenRequestEmptyError.desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(Wi.invalidCodeChallengeMethod.code,Wi.invalidCodeChallengeMethod.desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(Wi.invalidCodeChallengeParams.code,Wi.invalidCodeChallengeParams.desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(Wi.invalidCloudDiscoveryMetadata.code,Wi.invalidCloudDiscoveryMetadata.desc)},t.createInvalidAuthorityMetadataError=function(){return new t(Wi.invalidAuthorityMetadata.code,Wi.invalidAuthorityMetadata.desc)},t.createUntrustedAuthorityError=function(){return new t(Wi.untrustedAuthority.code,Wi.untrustedAuthority.desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(Wi.invalidAzureCloudInstance.code,Wi.invalidAzureCloudInstance.desc)},t.createMissingSshJwkError=function(){return new t(Wi.missingSshJwk.code,Wi.missingSshJwk.desc)},t.createMissingSshKidError=function(){return new t(Wi.missingSshKid.code,Wi.missingSshKid.desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(Wi.missingNonceAuthenticationHeader.code,Wi.missingNonceAuthenticationHeader.desc)},t.createInvalidAuthenticationHeaderError=function(n,r){return new t(Wi.invalidAuthenticationHeader.code,Wi.invalidAuthenticationHeader.desc+". Invalid header: "+n+". Details: "+r)},t.createAuthorityMismatchError=function(){return new t(Wi.authorityMismatch.code,Wi.authorityMismatch.desc)},t})(Ar);/*! @azure/msal-common v13.3.3 2024-06-06 */var c0=(function(){function e(t){var n=this,r=t?mr.trimArrayEntries(Jee(t)):[],i=r?mr.removeEmptyStringsFromArray(r):[];this.validateInputScopes(i),this.scopes=new Set,i.forEach(function(o){return n.scopes.add(o)})}return e.fromString=function(t){var n=t||yt.EMPTY_STRING,r=n.split(" ");return new e(r)},e.createSearchScopes=function(t){var n=new e(t);return n.containsOnlyOIDCScopes()?n.removeScope(yt.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),n},e.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw Vs.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var n=this.printScopesLowerCase().split(" "),r=new e(n);return mr.isEmpty(t)?!1:r.scopes.has(t.toLowerCase())},e.prototype.containsScopeSet=function(t){var n=this;return!t||t.scopes.size<=0?!1:this.scopes.size>=t.scopes.size&&t.asArray().every(function(r){return n.containsScope(r)})},e.prototype.containsOnlyOIDCScopes=function(){var t=this,n=0;return VYe.forEach(function(r){t.containsScope(r)&&(n+=1)}),this.scopes.size===n},e.prototype.appendScope=function(t){mr.isEmpty(t)||this.scopes.add(t.trim())},e.prototype.appendScopes=function(t){var n=this;try{t.forEach(function(r){return n.appendScope(r)})}catch(r){throw Ar.createAppendScopeSetError(r)}},e.prototype.removeScope=function(t){if(mr.isEmpty(t))throw Ar.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},e.prototype.removeOIDCScopes=function(){var t=this;VYe.forEach(function(n){t.scopes.delete(n)})},e.prototype.unionScopeSets=function(t){if(!t)throw Ar.createEmptyInputScopeSetError();var n=new Set;return t.scopes.forEach(function(r){return n.add(r.toLowerCase())}),this.scopes.forEach(function(r){return n.add(r.toLowerCase())}),n},e.prototype.intersectingScopeSets=function(t){if(!t)throw Ar.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var n=this.unionScopeSets(t),r=t.getScopeCount(),i=this.getScopeCount(),o=n.size;return o<i+r},e.prototype.getScopeCount=function(){return this.scopes.size},e.prototype.asArray=function(){var t=[];return this.scopes.forEach(function(n){return t.push(n)}),t},e.prototype.printScopes=function(){if(this.scopes){var t=this.asArray();return t.join(" ")}return yt.EMPTY_STRING},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */function kX(e,t){if(mr.isEmpty(e))throw Ar.createClientInfoEmptyError();try{var n=t.base64Decode(e);return JSON.parse(n)}catch(r){throw Ar.createClientInfoDecodingError(r.message)}}function XR(e){if(mr.isEmpty(e))throw Ar.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(Mu.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?yt.EMPTY_STRING:t[1]}}/*! @azure/msal-common v13.3.3 2024-06-06 */var U1;(function(e){e[e.Default=0]="Default",e[e.Adfs=1]="Adfs",e[e.Dsts=2]="Dsts",e[e.Ciam=3]="Ciam"})(U1||(U1={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var QP;(function(e){e.AAD="AAD",e.OIDC="OIDC"})(QP||(QP={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var M0=(function(){function e(){}return e.prototype.generateAccountId=function(){var t=[this.homeAccountId,this.environment];return t.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.prototype.generateAccountKey=function(){return e.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},e.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType}},e.generateAccountCacheKey=function(t){var n=[t.homeAccountId,t.environment||yt.EMPTY_STRING,t.tenantId||yt.EMPTY_STRING];return n.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,n){var r=new e;n.authorityType===U1.Adfs?r.authorityType=tO.ADFS_ACCOUNT_TYPE:n.protocolMode===QP.AAD?r.authorityType=tO.MSSTS_ACCOUNT_TYPE:r.authorityType=tO.GENERIC_ACCOUNT_TYPE,r.clientInfo=t.clientInfo,r.homeAccountId=t.homeAccountId,r.nativeAccountId=t.nativeAccountId;var i=t.environment||n&&n.getPreferredCache();if(!i)throw Ar.createInvalidCacheEnvironmentError();if(r.environment=i,r.realm=t.idTokenClaims.tid||yt.EMPTY_STRING,r.idTokenClaims=t.idTokenClaims,r.localAccountId=t.idTokenClaims.oid||t.idTokenClaims.sub||yt.EMPTY_STRING,r.authorityType===tO.MSSTS_ACCOUNT_TYPE){var o=t.idTokenClaims.preferred_username,a=t.idTokenClaims.emails?t.idTokenClaims.emails[0]:null;r.username=o||a||""}else r.username=t.idTokenClaims.upn||"";return r.name=t.idTokenClaims.name,r.cloudGraphHostName=t.cloudGraphHostName,r.msGraphHost=t.msGraphHost,r},e.createFromAccountInfo=function(t,n,r){var i=new e;return i.authorityType=t.authorityType||tO.GENERIC_ACCOUNT_TYPE,i.homeAccountId=t.homeAccountId,i.localAccountId=t.localAccountId,i.nativeAccountId=t.nativeAccountId,i.realm=t.tenantId,i.environment=t.environment,i.username=t.username,i.name=t.name,i.idTokenClaims=t.idTokenClaims,i.cloudGraphHostName=n,i.msGraphHost=r,i},e.generateHomeAccountId=function(t,n,r,i,o){var a=o?.sub?o.sub:yt.EMPTY_STRING;if(n===U1.Adfs||n===U1.Dsts)return a;if(t)try{var s=kX(t,i);if(!mr.isEmpty(s.uid)&&!mr.isEmpty(s.utid))return""+s.uid+Mu.CLIENT_INFO_SEPARATOR+s.utid}catch{}return r.verbose("No client info in response"),a},e.isAccountEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("localAccountId")&&t.hasOwnProperty("username")&&t.hasOwnProperty("authorityType"):!1},e.accountInfoIsEqual=function(t,n,r){if(!t||!n)return!1;var i=!0;if(r){var o=t.idTokenClaims||{},a=n.idTokenClaims||{};i=o.iat===a.iat&&o.nonce===a.nonce}return t.homeAccountId===n.homeAccountId&&t.localAccountId===n.localAccountId&&t.username===n.username&&t.tenantId===n.tenantId&&t.environment===n.environment&&t.nativeAccountId===n.nativeAccountId&&i},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Bb=(function(){function e(t,n){if(mr.isEmpty(t))throw Ar.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,n)}return e.extractTokenClaims=function(t,n){var r=mr.decodeAuthToken(t);try{var i=r.JWSPayload,o=n.base64Decode(i);return JSON.parse(o)}catch(a){throw Ar.createTokenParsingError(a)}},e.checkMaxAge=function(t,n){var r=3e5;if(n===0||Date.now()-r>t+n)throw Ar.createMaxAgeTranspiredError()},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var q1=(function(){function e(t,n,r){this.clientId=t,this.cryptoImpl=n,this.commonLogger=r.clone(jAt,t3e)}return e.prototype.getAllAccounts=function(){var t=this,n=this.getAccountKeys();if(n.length<1)return[];var r=n.reduce(function(o,a){var s=t.getAccount(a);return s&&o.push(s),o},[]);if(r.length<1)return[];var i=r.map(function(o){return t.getAccountInfoFromEntity(o)});return i},e.prototype.getAccountInfoFilteredBy=function(t){var n=this.getAccountsFilteredBy(t);return n.length>0?this.getAccountInfoFromEntity(n[0]):null},e.prototype.getAccountInfoFromEntity=function(t){var n=t.getAccountInfo(),r=this.getIdToken(n);return r&&(n.idToken=r.secret,n.idTokenClaims=new Bb(r.secret,this.cryptoImpl).claims),n},e.prototype.saveCacheRecord=function(t){return qi(this,void 0,void 0,function(){return Bi(this,function(n){switch(n.label){case 0:if(!t)throw Ar.createNullOrUndefinedCacheRecord();return t.account&&this.setAccount(t.account),t.idToken&&this.setIdTokenCredential(t.idToken),t.accessToken?[4,this.saveAccessToken(t.accessToken)]:[3,2];case 1:n.sent(),n.label=2;case 2:return t.refreshToken&&this.setRefreshTokenCredential(t.refreshToken),t.appMetadata&&this.setAppMetadata(t.appMetadata),[2]}})})},e.prototype.saveAccessToken=function(t){return qi(this,void 0,void 0,function(){var n,r,i,o,a=this;return Bi(this,function(s){switch(s.label){case 0:return n={clientId:t.clientId,credentialType:t.credentialType,environment:t.environment,homeAccountId:t.homeAccountId,realm:t.realm,tokenType:t.tokenType,requestedClaimsHash:t.requestedClaimsHash},r=this.getTokenKeys(),i=c0.fromString(t.target),o=[],r.accessToken.forEach(function(l){if(a.accessTokenKeyMatchesFilter(l,n,!1)){var c=a.getAccessTokenCredential(l);if(c&&a.credentialMatchesFilter(c,n)){var u=c0.fromString(c.target);u.intersectingScopeSets(i)&&o.push(a.removeAccessToken(l))}}}),[4,Promise.all(o)];case 1:return s.sent(),this.setAccessTokenCredential(t),[2]}})})},e.prototype.getAccountsFilteredBy=function(t){var n=this,r=this.getAccountKeys(),i=[];return r.forEach(function(o){if(n.isAccountKey(o,t.homeAccountId,t.realm)){var a=n.getAccount(o);a&&(t.homeAccountId&&!n.matchHomeAccountId(a,t.homeAccountId)||t.localAccountId&&!n.matchLocalAccountId(a,t.localAccountId)||t.username&&!n.matchUsername(a,t.username)||t.environment&&!n.matchEnvironment(a,t.environment)||t.realm&&!n.matchRealm(a,t.realm)||t.nativeAccountId&&!n.matchNativeAccountId(a,t.nativeAccountId)||i.push(a))}}),i},e.prototype.isAccountKey=function(t,n,r){return!(t.split(Mu.CACHE_KEY_SEPARATOR).length<3||n&&!t.toLowerCase().includes(n.toLowerCase())||r&&!t.toLowerCase().includes(r.toLowerCase()))},e.prototype.isCredentialKey=function(t){if(t.split(Mu.CACHE_KEY_SEPARATOR).length<6)return!1;var n=t.toLowerCase();if(n.indexOf(ti.ID_TOKEN.toLowerCase())===-1&&n.indexOf(ti.ACCESS_TOKEN.toLowerCase())===-1&&n.indexOf(ti.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&n.indexOf(ti.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(n.indexOf(ti.REFRESH_TOKEN.toLowerCase())>-1){var r=""+ti.REFRESH_TOKEN+Mu.CACHE_KEY_SEPARATOR+this.clientId+Mu.CACHE_KEY_SEPARATOR,i=""+ti.REFRESH_TOKEN+Mu.CACHE_KEY_SEPARATOR+UF+Mu.CACHE_KEY_SEPARATOR;if(n.indexOf(r.toLowerCase())===-1&&n.indexOf(i.toLowerCase())===-1)return!1}else if(n.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},e.prototype.credentialMatchesFilter=function(t,n){return!(n.clientId&&!this.matchClientId(t,n.clientId)||n.userAssertionHash&&!this.matchUserAssertionHash(t,n.userAssertionHash)||typeof n.homeAccountId=="string"&&!this.matchHomeAccountId(t,n.homeAccountId)||n.environment&&!this.matchEnvironment(t,n.environment)||n.realm&&!this.matchRealm(t,n.realm)||n.credentialType&&!this.matchCredentialType(t,n.credentialType)||n.familyId&&!this.matchFamilyId(t,n.familyId)||n.target&&!this.matchTarget(t,n.target)||(n.requestedClaimsHash||t.requestedClaimsHash)&&t.requestedClaimsHash!==n.requestedClaimsHash||t.credentialType===ti.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(n.tokenType&&!this.matchTokenType(t,n.tokenType)||n.tokenType===Qa.SSH&&n.keyId&&!this.matchKeyId(t,n.keyId)))},e.prototype.getAppMetadataFilteredBy=function(t){return this.getAppMetadataFilteredByInternal(t.environment,t.clientId)},e.prototype.getAppMetadataFilteredByInternal=function(t,n){var r=this,i=this.getKeys(),o={};return i.forEach(function(a){if(r.isAppMetadata(a)){var s=r.getAppMetadata(a);s&&(t&&!r.matchEnvironment(s,t)||n&&!r.matchClientId(s,n)||(o[a]=s))}}),o},e.prototype.getAuthorityMetadataByAlias=function(t){var n=this,r=this.getAuthorityMetadataKeys(),i=null;return r.forEach(function(o){if(!(!n.isAuthorityMetadata(o)||o.indexOf(n.clientId)===-1)){var a=n.getAuthorityMetadata(o);a&&a.aliases.indexOf(t)!==-1&&(i=a)}}),i},e.prototype.removeAllAccounts=function(){return qi(this,void 0,void 0,function(){var t,n,r=this;return Bi(this,function(i){switch(i.label){case 0:return t=this.getAccountKeys(),n=[],t.forEach(function(o){n.push(r.removeAccount(o))}),[4,Promise.all(n)];case 1:return i.sent(),[2]}})})},e.prototype.removeAccount=function(t){return qi(this,void 0,void 0,function(){var n;return Bi(this,function(r){switch(r.label){case 0:if(n=this.getAccount(t),!n)throw Ar.createNoAccountFoundError();return[4,this.removeAccountContext(n)];case 1:return r.sent(),this.removeItem(t),[2]}})})},e.prototype.removeAccountContext=function(t){return qi(this,void 0,void 0,function(){var n,r,i,o=this;return Bi(this,function(a){switch(a.label){case 0:return n=this.getTokenKeys(),r=t.generateAccountId(),i=[],n.idToken.forEach(function(s){s.indexOf(r)===0&&o.removeIdToken(s)}),n.accessToken.forEach(function(s){s.indexOf(r)===0&&i.push(o.removeAccessToken(s))}),n.refreshToken.forEach(function(s){s.indexOf(r)===0&&o.removeRefreshToken(s)}),[4,Promise.all(i)];case 1:return a.sent(),[2]}})})},e.prototype.removeAccessToken=function(t){return qi(this,void 0,void 0,function(){var n,r,i;return Bi(this,function(o){switch(o.label){case 0:if(n=this.getAccessTokenCredential(t),!n)return[2];if(n.credentialType.toLowerCase()!==ti.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(n.tokenType!==Qa.POP)return[3,4];if(r=n,i=r.keyId,!i)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(i)];case 2:return o.sent(),[3,4];case 3:throw o.sent(),Ar.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(t)]}})})},e.prototype.removeAppMetadata=function(){var t=this,n=this.getKeys();return n.forEach(function(r){t.isAppMetadata(r)&&t.removeItem(r)}),!0},e.prototype.readCacheRecord=function(t,n,r){var i=this.getTokenKeys(),o=this.readAccountFromCache(t),a=this.getIdToken(t,i),s=this.getAccessToken(t,n,i),l=this.getRefreshToken(t,!1,i),c=this.readAppMetadataFromCache(r);return o&&a&&(o.idTokenClaims=new Bb(a.secret,this.cryptoImpl).claims),{account:o,idToken:a,accessToken:s,refreshToken:l,appMetadata:c}},e.prototype.readAccountFromCache=function(t){var n=M0.generateAccountCacheKey(t);return this.getAccount(n)},e.prototype.getIdToken=function(t,n){var r=this;this.commonLogger.trace("CacheManager - getIdToken called");var i={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:ti.ID_TOKEN,clientId:this.clientId,realm:t.tenantId},o=this.getIdTokensByFilter(i,n),a=o.length;return a<1?(this.commonLogger.info("CacheManager:getIdToken - No token found"),null):a>1?(this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"),o.forEach(function(s){r.removeIdToken(s.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getIdToken - Returning id token"),o[0])},e.prototype.getIdTokensByFilter=function(t,n){var r=this,i=n&&n.idToken||this.getTokenKeys().idToken,o=[];return i.forEach(function(a){if(r.idTokenKeyMatchesFilter(a,Fa({clientId:r.clientId},t))){var s=r.getIdTokenCredential(a);s&&r.credentialMatchesFilter(s,t)&&o.push(s)}}),o},e.prototype.idTokenKeyMatchesFilter=function(t,n){var r=t.toLowerCase();return!(n.clientId&&r.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&r.indexOf(n.homeAccountId.toLowerCase())===-1)},e.prototype.removeIdToken=function(t){this.removeItem(t)},e.prototype.removeRefreshToken=function(t){this.removeItem(t)},e.prototype.getAccessToken=function(t,n,r){var i=this;this.commonLogger.trace("CacheManager - getAccessToken called");var o=c0.createSearchScopes(n.scopes),a=n.authenticationScheme||Qa.BEARER,s=a&&a.toLowerCase()!==Qa.BEARER.toLowerCase()?ti.ACCESS_TOKEN_WITH_AUTH_SCHEME:ti.ACCESS_TOKEN,l={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:s,clientId:this.clientId,realm:t.tenantId,target:o,tokenType:a,keyId:n.sshKid,requestedClaimsHash:n.requestedClaimsHash},c=r&&r.accessToken||this.getTokenKeys().accessToken,u=[];c.forEach(function(p){if(i.accessTokenKeyMatchesFilter(p,l,!0)){var h=i.getAccessTokenCredential(p);h&&i.credentialMatchesFilter(h,l)&&u.push(h)}});var d=u.length;return d<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):d>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),u.forEach(function(p){i.removeAccessToken(p.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0])},e.prototype.accessTokenKeyMatchesFilter=function(t,n,r){var i=t.toLowerCase();if(n.clientId&&i.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&i.indexOf(n.homeAccountId.toLowerCase())===-1||n.realm&&i.indexOf(n.realm.toLowerCase())===-1||n.requestedClaimsHash&&i.indexOf(n.requestedClaimsHash.toLowerCase())===-1)return!1;if(n.target)for(var o=n.target.asArray(),a=0;a<o.length;a++){if(r&&!i.includes(o[a].toLowerCase()))return!1;if(!r&&i.includes(o[a].toLowerCase()))return!0}return!0},e.prototype.getAccessTokensByFilter=function(t){var n=this,r=this.getTokenKeys(),i=[];return r.accessToken.forEach(function(o){if(n.accessTokenKeyMatchesFilter(o,t,!0)){var a=n.getAccessTokenCredential(o);a&&n.credentialMatchesFilter(a,t)&&i.push(a)}}),i},e.prototype.getRefreshToken=function(t,n,r){var i=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var o=n?UF:void 0,a={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:ti.REFRESH_TOKEN,clientId:this.clientId,familyId:o},s=r&&r.refreshToken||this.getTokenKeys().refreshToken,l=[];s.forEach(function(u){if(i.refreshTokenKeyMatchesFilter(u,a)){var d=i.getRefreshTokenCredential(u);d&&i.credentialMatchesFilter(d,a)&&l.push(d)}});var c=l.length;return c<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])},e.prototype.refreshTokenKeyMatchesFilter=function(t,n){var r=t.toLowerCase();return!(n.familyId&&r.indexOf(n.familyId.toLowerCase())===-1||!n.familyId&&n.clientId&&r.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&r.indexOf(n.homeAccountId.toLowerCase())===-1)},e.prototype.readAppMetadataFromCache=function(t){var n={environment:t,clientId:this.clientId},r=this.getAppMetadataFilteredBy(n),i=Object.keys(r).map(function(a){return r[a]}),o=i.length;if(o<1)return null;if(o>1)throw Ar.createMultipleMatchingAppMetadataInCacheError();return i[0]},e.prototype.isAppMetadataFOCI=function(t){var n=this.readAppMetadataFromCache(t);return!!(n&&n.familyId===UF)},e.prototype.matchHomeAccountId=function(t,n){return typeof t.homeAccountId=="string"&&n===t.homeAccountId},e.prototype.matchLocalAccountId=function(t,n){return typeof t.localAccountId=="string"&&n===t.localAccountId},e.prototype.matchUsername=function(t,n){return typeof t.username=="string"&&n.toLowerCase()===t.username.toLowerCase()},e.prototype.matchUserAssertionHash=function(t,n){return!!(t.userAssertionHash&&n===t.userAssertionHash)},e.prototype.matchEnvironment=function(t,n){var r=this.getAuthorityMetadataByAlias(n);return!!(r&&r.aliases.indexOf(t.environment)>-1)},e.prototype.matchCredentialType=function(t,n){return t.credentialType&&n.toLowerCase()===t.credentialType.toLowerCase()},e.prototype.matchClientId=function(t,n){return!!(t.clientId&&n===t.clientId)},e.prototype.matchFamilyId=function(t,n){return!!(t.familyId&&n===t.familyId)},e.prototype.matchRealm=function(t,n){return!!(t.realm&&n===t.realm)},e.prototype.matchNativeAccountId=function(t,n){return!!(t.nativeAccountId&&n===t.nativeAccountId)},e.prototype.matchTarget=function(t,n){var r=t.credentialType!==ti.ACCESS_TOKEN&&t.credentialType!==ti.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(r||!t.target)return!1;var i=c0.fromString(t.target);return i.containsScopeSet(n)},e.prototype.matchTokenType=function(t,n){return!!(t.tokenType&&t.tokenType===n)},e.prototype.matchKeyId=function(t,n){return!!(t.keyId&&t.keyId===n)},e.prototype.isAppMetadata=function(t){return t.indexOf(Ybe)!==-1},e.prototype.isAuthorityMetadata=function(t){return t.indexOf(XF.CACHE_KEY)!==-1},e.prototype.generateAuthorityMetadataCacheKey=function(t){return XF.CACHE_KEY+"-"+this.clientId+"-"+t},e.toObject=function(t,n){for(var r in n)t[r]=n[r];return t},e})(),Avi=(function(e){Ap(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setAccount=function(){var n="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAccount=function(){var n="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setIdTokenCredential=function(){var n="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getIdTokenCredential=function(){var n="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setAccessTokenCredential=function(){var n="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAccessTokenCredential=function(){var n="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setRefreshTokenCredential=function(){var n="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getRefreshTokenCredential=function(){var n="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setAppMetadata=function(){var n="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAppMetadata=function(){var n="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setServerTelemetry=function(){var n="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getServerTelemetry=function(){var n="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setAuthorityMetadata=function(){var n="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAuthorityMetadata=function(){var n="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAuthorityMetadataKeys=function(){var n="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.setThrottlingCache=function(){var n="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getThrottlingCache=function(){var n="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.removeItem=function(){var n="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.containsKey=function(){var n="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getKeys=function(){var n="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getAccountKeys=function(){var n="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.getTokenKeys=function(){var n="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t.prototype.clear=function(){return qi(this,void 0,void 0,function(){var n;return Bi(this,function(r){throw n="Storage interface - clear() has not been implemented for the cacheStorage interface.",Gr.createUnexpectedError(n)})})},t.prototype.updateCredentialCacheKey=function(){var n="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw Gr.createUnexpectedError(n)},t})(q1);/*! @azure/msal-common v13.3.3 2024-06-06 */var Ovi=300,HAt={tokenRenewalOffsetSeconds:Ovi,preventCorsPreflight:!1},zvi={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Kl.Info,correlationId:yt.EMPTY_STRING},Tvi={claimsBasedCachingEnabled:!0},Evi={sendGetRequestAsync:function(){return qi(this,void 0,void 0,function(){var e;return Bi(this,function(t){throw e="Network interface - sendGetRequestAsync() has not been implemented",Gr.createUnexpectedError(e)})})},sendPostRequestAsync:function(){return qi(this,void 0,void 0,function(){var e;return Bi(this,function(t){throw e="Network interface - sendPostRequestAsync() has not been implemented",Gr.createUnexpectedError(e)})})}},Rvi={sku:yt.SKU,version:t3e,cpu:yt.EMPTY_STRING,os:yt.EMPTY_STRING},Ivi={clientSecret:yt.EMPTY_STRING,clientAssertion:void 0},Pvi={azureCloudInstance:r6.None,tenant:""+yt.DEFAULT_COMMON_TENANT},Dvi={application:{appName:"",appVersion:""}};function kvi(e){var t=e.authOptions,n=e.systemOptions,r=e.loggerOptions,i=e.cacheOptions,o=e.storageInterface,a=e.networkInterface,s=e.cryptoInterface,l=e.clientCredentials,c=e.libraryInfo,u=e.telemetry,d=e.serverTelemetryManager,p=e.persistencePlugin,h=e.serializableCache,g=Fa(Fa({},zvi),r);return{authOptions:Lvi(t),systemOptions:Fa(Fa({},HAt),n),loggerOptions:g,cacheOptions:Fa(Fa({},Tvi),i),storageInterface:o||new Avi(t.clientId,DX,new ete(g)),networkInterface:a||Evi,cryptoInterface:s||DX,clientCredentials:l||Ivi,libraryInfo:Fa(Fa({},Rvi),c),telemetry:Fa(Fa({},Dvi),u),serverTelemetryManager:d||null,persistencePlugin:p||null,serializableCache:h||null}}function Lvi(e){return Fa({clientCapabilities:[],azureCloudOptions:Pvi,skipAuthorityMetadataCache:!1},e)}/*! @azure/msal-common v13.3.3 2024-06-06 */var c3=(function(e){Ap(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.name="ServerError",Object.setPrototypeOf(o,t.prototype),o}return t})(Gr);/*! @azure/msal-common v13.3.3 2024-06-06 */var LX=(function(){function e(){}return e.generateThrottlingStorageKey=function(t){return YF.THROTTLING_PREFIX+"."+JSON.stringify(t)},e.preProcess=function(t,n){var r,i=e.generateThrottlingStorageKey(n),o=t.getThrottlingCache(i);if(o){if(o.throttleTime<Date.now()){t.removeItem(i);return}throw new c3(((r=o.errorCodes)===null||r===void 0?void 0:r.join(" "))||yt.EMPTY_STRING,o.errorMessage,o.subError)}},e.postProcess=function(t,n,r){if(e.checkResponseStatus(r)||e.checkResponseForRetryAfter(r)){var i={throttleTime:e.calculateThrottleTime(parseInt(r.headers[ah.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};t.setThrottlingCache(e.generateThrottlingStorageKey(n),i)}},e.checkResponseStatus=function(t){return t.status===429||t.status>=500&&t.status<600},e.checkResponseForRetryAfter=function(t){return t.headers?t.headers.hasOwnProperty(ah.RETRY_AFTER)&&(t.status<200||t.status>=300):!1},e.calculateThrottleTime=function(t){var n=t<=0?0:t,r=Date.now()/1e3;return Math.floor(Math.min(r+(n||YF.DEFAULT_THROTTLE_TIME_SECONDS),r+YF.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},e.removeThrottle=function(t,n,r,i){var o={clientId:n,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:i,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},a=this.generateThrottlingStorageKey(o);t.removeItem(a)},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var _vi=(function(){function e(t,n){this.networkClient=t,this.cacheManager=n}return e.prototype.sendPostRequest=function(t,n,r){return qi(this,void 0,void 0,function(){var i,o;return Bi(this,function(a){switch(a.label){case 0:LX.preProcess(this.cacheManager,t),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(n,r)];case 2:return i=a.sent(),[3,4];case 3:throw o=a.sent(),o instanceof Gr?o:Ar.createNetworkError(n,o);case 4:return LX.postProcess(this.cacheManager,t,i),[2,i]}})})},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var th;(function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"})(th||(th={}));/*! @azure/msal-common v13.3.3 2024-06-06 */var jA=(function(){function e(){}return e.validateRedirectUri=function(t){if(mr.isEmpty(t))throw Vs.createRedirectUriEmptyError()},e.validatePrompt=function(t){var n=[];for(var r in g0)n.push(g0[r]);if(n.indexOf(t)<0)throw Vs.createInvalidPromptError(t)},e.validateClaims=function(t){try{JSON.parse(t)}catch{throw Vs.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(t,n){if(mr.isEmpty(t)||mr.isEmpty(n))throw Vs.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(n)},e.validateCodeChallengeMethod=function(t){if([GYe.PLAIN,GYe.S256].indexOf(t)<0)throw Vs.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(t,n){return t?(n.forEach(function(r,i){t[i]&&delete t[i]}),Object.fromEntries(Object.entries(t).filter(function(r){var i=r[1];return i!==""}))):{}},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var QF=(function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(Zi.RESPONSE_TYPE,encodeURIComponent(yt.CODE_RESPONSE_TYPE))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Zi.RESPONSE_TYPE,encodeURIComponent(yt.TOKEN_RESPONSE_TYPE+" "+yt.ID_TOKEN_RESPONSE_TYPE))},e.prototype.addResponseMode=function(t){this.parameters.set(Zi.RESPONSE_MODE,encodeURIComponent(t||RX.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(Zi.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(t,n){n===void 0&&(n=!0);var r=n?Jee(t||[],fj):t||[],i=new c0(r);this.parameters.set(Zi.SCOPE,encodeURIComponent(i.printScopes()))},e.prototype.addClientId=function(t){this.parameters.set(Zi.CLIENT_ID,encodeURIComponent(t))},e.prototype.addRedirectUri=function(t){jA.validateRedirectUri(t),this.parameters.set(Zi.REDIRECT_URI,encodeURIComponent(t))},e.prototype.addPostLogoutRedirectUri=function(t){jA.validateRedirectUri(t),this.parameters.set(Zi.POST_LOGOUT_URI,encodeURIComponent(t))},e.prototype.addIdTokenHint=function(t){this.parameters.set(Zi.ID_TOKEN_HINT,encodeURIComponent(t))},e.prototype.addDomainHint=function(t){this.parameters.set(GF.DOMAIN_HINT,encodeURIComponent(t))},e.prototype.addLoginHint=function(t){this.parameters.set(GF.LOGIN_HINT,encodeURIComponent(t))},e.prototype.addCcsUpn=function(t){this.parameters.set(ah.CCS_HEADER,encodeURIComponent("UPN:"+t))},e.prototype.addCcsOid=function(t){this.parameters.set(ah.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},e.prototype.addSid=function(t){this.parameters.set(GF.SID,encodeURIComponent(t))},e.prototype.addClaims=function(t,n){var r=this.addClientCapabilitiesToClaims(t,n);jA.validateClaims(r),this.parameters.set(Zi.CLAIMS,encodeURIComponent(r))},e.prototype.addCorrelationId=function(t){this.parameters.set(Zi.CLIENT_REQUEST_ID,encodeURIComponent(t))},e.prototype.addLibraryInfo=function(t){this.parameters.set(Zi.X_CLIENT_SKU,t.sku),this.parameters.set(Zi.X_CLIENT_VER,t.version),t.os&&this.parameters.set(Zi.X_CLIENT_OS,t.os),t.cpu&&this.parameters.set(Zi.X_CLIENT_CPU,t.cpu)},e.prototype.addApplicationTelemetry=function(t){t?.appName&&this.parameters.set(Zi.X_APP_NAME,t.appName),t?.appVersion&&this.parameters.set(Zi.X_APP_VER,t.appVersion)},e.prototype.addPrompt=function(t){jA.validatePrompt(t),this.parameters.set(""+Zi.PROMPT,encodeURIComponent(t))},e.prototype.addState=function(t){mr.isEmpty(t)||this.parameters.set(Zi.STATE,encodeURIComponent(t))},e.prototype.addNonce=function(t){this.parameters.set(Zi.NONCE,encodeURIComponent(t))},e.prototype.addCodeChallengeParams=function(t,n){if(jA.validateCodeChallengeParams(t,n),t&&n)this.parameters.set(Zi.CODE_CHALLENGE,encodeURIComponent(t)),this.parameters.set(Zi.CODE_CHALLENGE_METHOD,encodeURIComponent(n));else throw Vs.createInvalidCodeChallengeParamsError()},e.prototype.addAuthorizationCode=function(t){this.parameters.set(Zi.CODE,encodeURIComponent(t))},e.prototype.addDeviceCode=function(t){this.parameters.set(Zi.DEVICE_CODE,encodeURIComponent(t))},e.prototype.addRefreshToken=function(t){this.parameters.set(Zi.REFRESH_TOKEN,encodeURIComponent(t))},e.prototype.addCodeVerifier=function(t){this.parameters.set(Zi.CODE_VERIFIER,encodeURIComponent(t))},e.prototype.addClientSecret=function(t){this.parameters.set(Zi.CLIENT_SECRET,encodeURIComponent(t))},e.prototype.addClientAssertion=function(t){mr.isEmpty(t)||this.parameters.set(Zi.CLIENT_ASSERTION,encodeURIComponent(t))},e.prototype.addClientAssertionType=function(t){mr.isEmpty(t)||this.parameters.set(Zi.CLIENT_ASSERTION_TYPE,encodeURIComponent(t))},e.prototype.addOboAssertion=function(t){this.parameters.set(Zi.OBO_ASSERTION,encodeURIComponent(t))},e.prototype.addRequestTokenUse=function(t){this.parameters.set(Zi.REQUESTED_TOKEN_USE,encodeURIComponent(t))},e.prototype.addGrantType=function(t){this.parameters.set(Zi.GRANT_TYPE,encodeURIComponent(t))},e.prototype.addClientInfo=function(){this.parameters.set(Svi,"1")},e.prototype.addExtraQueryParameters=function(t){var n=this,r=jA.sanitizeEQParams(t,this.parameters);Object.keys(r).forEach(function(i){n.parameters.set(i,t[i])})},e.prototype.addClientCapabilitiesToClaims=function(t,n){var r;if(!t)r={};else try{r=JSON.parse(t)}catch{throw Vs.createInvalidClaimsRequestError()}return n&&n.length>0&&(r.hasOwnProperty($R.ACCESS_TOKEN)||(r[$R.ACCESS_TOKEN]={}),r[$R.ACCESS_TOKEN][$R.XMS_CC]={values:n}),JSON.stringify(r)},e.prototype.addUsername=function(t){this.parameters.set(PX.username,encodeURIComponent(t))},e.prototype.addPassword=function(t){this.parameters.set(PX.password,encodeURIComponent(t))},e.prototype.addPopToken=function(t){mr.isEmpty(t)||(this.parameters.set(Zi.TOKEN_TYPE,Qa.POP),this.parameters.set(Zi.REQ_CNF,encodeURIComponent(t)))},e.prototype.addSshJwk=function(t){mr.isEmpty(t)||(this.parameters.set(Zi.TOKEN_TYPE,Qa.SSH),this.parameters.set(Zi.REQ_CNF,encodeURIComponent(t)))},e.prototype.addServerTelemetry=function(t){this.parameters.set(Zi.X_CLIENT_CURR_TELEM,t.generateCurrentRequestHeaderValue()),this.parameters.set(Zi.X_CLIENT_LAST_TELEM,t.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(Zi.X_MS_LIB_CAPABILITY,YF.X_MS_LIB_CAPABILITY_VALUE)},e.prototype.addLogoutHint=function(t){this.parameters.set(Zi.LOGOUT_HINT,encodeURIComponent(t))},e.prototype.createQueryString=function(){var t=new Array;return this.parameters.forEach(function(n,r){t.push(r+"="+n)}),t.join("&")},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var n3e=(function(){function e(t,n){this.config=kvi(t),this.logger=new ete(this.config.loggerOptions,jAt,t3e),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new _vi(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n}return e.prototype.createTokenRequestHeaders=function(t){var n={};if(n[ah.CONTENT_TYPE]=yt.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case th.HOME_ACCOUNT_ID:try{var r=XR(t.credential);n[ah.CCS_HEADER]="Oid:"+r.uid+"@"+r.utid}catch(i){this.logger.verbose("Could not parse home account ID for CCS Header: "+i)}break;case th.UPN:n[ah.CCS_HEADER]="UPN: "+t.credential;break}return n},e.prototype.executePostToTokenEndpoint=function(t,n,r,i){return qi(this,void 0,void 0,function(){var o;return Bi(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(i,t,{body:n,headers:r})];case 1:return o=a.sent(),this.config.serverTelemetryManager&&o.status<500&&o.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}})})},e.prototype.updateAuthority=function(t){if(!t.discoveryComplete())throw Ar.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},e.prototype.createTokenQueryParameters=function(t){var n=new QF;return t.tokenQueryParameters&&n.addExtraQueryParameters(t.tokenQueryParameters),n.createQueryString()},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var r3e=(function(){function e(){}return e.prototype.generateAccountId=function(){return e.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},e.prototype.generateCredentialId=function(){return e.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},e.prototype.generateTarget=function(){return e.generateTargetForCacheKey(this.target)},e.prototype.generateCredentialKey=function(){return e.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},e.prototype.generateType=function(){switch(this.credentialType){case ti.ID_TOKEN:return $F.ID_TOKEN;case ti.ACCESS_TOKEN:case ti.ACCESS_TOKEN_WITH_AUTH_SCHEME:return $F.ACCESS_TOKEN;case ti.REFRESH_TOKEN:return $F.REFRESH_TOKEN;default:throw Ar.createUnexpectedCredentialTypeError()}},e.generateCredentialCacheKey=function(t,n,r,i,o,a,s,l,c){var u=[this.generateAccountIdForCacheKey(t,n),this.generateCredentialIdForCacheKey(r,i,o,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(c),this.generateSchemeForCacheKey(l)];return u.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(t,n){var r=[t,n];return r.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(t,n,r,i){var o=t===ti.REFRESH_TOKEN&&i||n,a=[t,o,r||yt.EMPTY_STRING];return a.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(t){return(t||yt.EMPTY_STRING).toLowerCase()},e.generateClaimsHashForCacheKey=function(t){return(t||yt.EMPTY_STRING).toLowerCase()},e.generateSchemeForCacheKey=function(t){return t&&t.toLowerCase()!==Qa.BEARER.toLowerCase()?t.toLowerCase():yt.EMPTY_STRING},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var JC=(function(e){Ap(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.createIdTokenEntity=function(n,r,i,o,a){var s=new t;return s.credentialType=ti.ID_TOKEN,s.homeAccountId=n,s.environment=r,s.clientId=o,s.secret=i,s.realm=a,s},t.isIdTokenEntity=function(n){return n?n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("realm")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")&&n.credentialType===ti.ID_TOKEN:!1},t})(r3e);/*! @azure/msal-common v13.3.3 2024-06-06 */var Pf=(function(){function e(){}return e.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},e.isTokenExpired=function(t,n){var r=Number(t)||0,i=e.nowSeconds()+n;return i>r},e.wasClockTurnedBack=function(t){var n=Number(t);return n>e.nowSeconds()},e.delay=function(t,n){return new Promise(function(r){return setTimeout(function(){return r(n)},t)})},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var ex=(function(e){Ap(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.createAccessTokenEntity=function(n,r,i,o,a,s,l,c,u,d,p,h,g,m,v){var y,M,C=new t;C.homeAccountId=n,C.credentialType=ti.ACCESS_TOKEN,C.secret=i;var x=Pf.nowSeconds();if(C.cachedAt=x.toString(),C.expiresOn=l.toString(),C.extendedExpiresOn=c.toString(),d&&(C.refreshOn=d.toString()),C.environment=r,C.clientId=o,C.realm=a,C.target=s,C.userAssertionHash=h,C.tokenType=mr.isEmpty(p)?Qa.BEARER:p,m&&(C.requestedClaims=m,C.requestedClaimsHash=v),((y=C.tokenType)===null||y===void 0?void 0:y.toLowerCase())!==Qa.BEARER.toLowerCase())switch(C.credentialType=ti.ACCESS_TOKEN_WITH_AUTH_SCHEME,C.tokenType){case Qa.POP:var w=Bb.extractTokenClaims(i,u);if(!(!((M=w?.cnf)===null||M===void 0)&&M.kid))throw Ar.createTokenClaimsRequiredError();C.keyId=w.cnf.kid;break;case Qa.SSH:C.keyId=g}return C},t.isAccessTokenEntity=function(n){return n?n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("realm")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")&&n.hasOwnProperty("target")&&(n.credentialType===ti.ACCESS_TOKEN||n.credentialType===ti.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},t})(r3e);/*! @azure/msal-common v13.3.3 2024-06-06 */var YR=(function(e){Ap(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.createRefreshTokenEntity=function(n,r,i,o,a,s){var l=new t;return l.clientId=o,l.credentialType=ti.REFRESH_TOKEN,l.environment=r,l.homeAccountId=n,l.secret=i,l.userAssertionHash=s,a&&(l.familyId=a),l},t.isRefreshTokenEntity=function(n){return n?n.hasOwnProperty("homeAccountId")&&n.hasOwnProperty("environment")&&n.hasOwnProperty("credentialType")&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("secret")&&n.credentialType===ti.REFRESH_TOKEN:!1},t})(r3e);/*! @azure/msal-common v13.3.3 2024-06-06 */var UYe=["interaction_required","consent_required","login_required"],Nvi=["message_only","additional_action","basic_action","user_password_expired","consent_required"],KR={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},om=(function(e){Ap(t,e);function t(n,r,i,o,a,s,l){var c=e.call(this,n,r,i)||this;return Object.setPrototypeOf(c,t.prototype),c.timestamp=o||yt.EMPTY_STRING,c.traceId=a||yt.EMPTY_STRING,c.correlationId=s||yt.EMPTY_STRING,c.claims=l||yt.EMPTY_STRING,c.name="InteractionRequiredAuthError",c}return t.isInteractionRequiredError=function(n,r,i){var o=!!n&&UYe.indexOf(n)>-1,a=!!i&&Nvi.indexOf(i)>-1,s=!!r&&UYe.some(function(l){return r.indexOf(l)>-1});return o||s||a},t.createNoTokensFoundError=function(){return new t(KR.noTokensFoundError.code,KR.noTokensFoundError.desc)},t.createNativeAccountUnavailableError=function(){return new t(KR.native_account_unavailable.code,KR.native_account_unavailable.desc)},t})(Gr);/*! @azure/msal-common v13.3.3 2024-06-06 */var jI=(function(){function e(t,n,r,i,o){this.account=t||null,this.idToken=n||null,this.accessToken=r||null,this.refreshToken=i||null,this.appMetadata=o||null}return e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Ny=(function(){function e(){}return e.setRequestState=function(t,n,r){var i=e.generateLibraryState(t,r);return mr.isEmpty(n)?i:""+i+yt.RESOURCE_DELIM+n},e.generateLibraryState=function(t,n){if(!t)throw Ar.createNoCryptoObjectError("generateLibraryState");var r={id:t.createNewGuid()};n&&(r.meta=n);var i=JSON.stringify(r);return t.base64Encode(i)},e.parseRequestState=function(t,n){if(!t)throw Ar.createNoCryptoObjectError("parseRequestState");if(mr.isEmpty(n))throw Ar.createInvalidStateError(n,"Null, undefined or empty state");try{var r=n.split(yt.RESOURCE_DELIM),i=r[0],o=r.length>1?r.slice(1).join(yt.RESOURCE_DELIM):yt.EMPTY_STRING,a=t.base64Decode(i),s=JSON.parse(a);return{userRequestState:mr.isEmpty(o)?yt.EMPTY_STRING:o,libraryState:s}}catch(l){throw Ar.createInvalidStateError(n,l)}},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var ia=(function(){function e(t){if(this._urlString=t,mr.isEmpty(this._urlString))throw Vs.createUrlEmptyError();mr.isEmpty(this.getHash())&&(this._urlString=e.canonicalizeUri(t))}return Object.defineProperty(e.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),e.canonicalizeUri=function(t){if(t){var n=t.toLowerCase();return mr.endsWith(n,"?")?n=n.slice(0,-1):mr.endsWith(n,"?/")&&(n=n.slice(0,-2)),mr.endsWith(n,"/")||(n+="/"),n}return t},e.prototype.validateAsUri=function(){var t;try{t=this.getUrlComponents()}catch(n){throw Vs.createUrlParseError(n)}if(!t.HostNameAndPort||!t.PathSegments)throw Vs.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||t.Protocol.toLowerCase()!=="https:")throw Vs.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(t,n){return mr.isEmpty(n)?t:t.indexOf("?")<0?t+"?"+n:t+"&"+n},e.removeHashFromUrl=function(t){return e.canonicalizeUri(t.split("#")[0])},e.prototype.replaceTenantPath=function(t){var n=this.getUrlComponents(),r=n.PathSegments;return t&&r.length!==0&&(r[0]===lz.COMMON||r[0]===lz.ORGANIZATIONS)&&(r[0]=t),e.constructAuthorityUriFromObject(n)},e.prototype.getHash=function(){return e.parseHash(this.urlString)},e.prototype.getUrlComponents=function(){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),n=this.urlString.match(t);if(!n)throw Vs.createUrlParseError("Given url string: "+this.urlString);var r={Protocol:n[1],HostNameAndPort:n[4],AbsolutePath:n[5],QueryString:n[7]},i=r.AbsolutePath.split("/");return i=i.filter(function(o){return o&&o.length>0}),r.PathSegments=i,!mr.isEmpty(r.QueryString)&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r},e.getDomainFromUrl=function(t){var n=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=t.match(n);if(!r)throw Vs.createUrlParseError("Given url string: "+t);return r[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===yt.FORWARD_SLASH){var r=new e(n),i=r.getUrlComponents();return i.Protocol+"//"+i.HostNameAndPort+t}return t},e.parseHash=function(t){var n=t.indexOf("#"),r=t.indexOf("#/");return r>-1?t.substring(r+2):n>-1?t.substring(n+1):yt.EMPTY_STRING},e.parseQueryString=function(t){var n=t.indexOf("?"),r=t.indexOf("/?");return r>-1?t.substring(r+2):n>-1?t.substring(n+1):yt.EMPTY_STRING},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(mr.isEmpty(t))return{};var n=e.parseHash(t),r=mr.queryStringToObject(mr.isEmpty(n)?t:n);if(!r)throw Ar.createHashNotDeserializedError(JSON.stringify(r));return r},e.getDeserializedQueryString=function(t){if(mr.isEmpty(t))return{};var n=e.parseQueryString(t),r=mr.queryStringToObject(mr.isEmpty(n)?t:n);if(!r)throw Ar.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if(mr.isEmpty(t)||t.indexOf("=")<0)return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Xt;(function(e){e.AcquireTokenByCode="acquireTokenByCode",e.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",e.AcquireTokenSilent="acquireTokenSilent",e.AcquireTokenSilentAsync="acquireTokenSilentAsync",e.AcquireTokenPopup="acquireTokenPopup",e.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",e.CryptoOptsSignJwt="cryptoOptsSignJwt",e.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",e.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",e.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",e.SsoSilent="ssoSilent",e.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",e.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",e.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",e.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",e.BrokerHandhshake="brokerHandshake",e.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",e.AcquireTokenByBroker="acquireTokenByBroker",e.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",e.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",e.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",e.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",e.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",e.AcquireTokenFromCache="acquireTokenFromCache",e.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",e.InitializeBaseRequest="initializeBaseRequest",e.InitializeSilentRequest="initializeSilentRequest",e.InitializeClientApplication="initializeClientApplication",e.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",e.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",e.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",e.SilentHandlerLoadFrame="silentHandlerLoadFrame",e.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",e.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",e.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",e.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",e.GetAuthCodeUrl="getAuthCodeUrl",e.HandleCodeResponseFromServer="handleCodeResponseFromServer",e.HandleCodeResponseFromHash="handleCodeResponseFromHash",e.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",e.AuthClientAcquireToken="authClientAcquireToken",e.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",e.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",e.AuthClientCreateQueryString="authClientCreateQueryString",e.PopTokenGenerateCnf="popTokenGenerateCnf",e.PopTokenGenerateKid="popTokenGenerateKid",e.HandleServerTokenResponse="handleServerTokenResponse",e.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",e.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",e.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",e.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",e.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",e.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",e.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",e.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",e.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",e.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",e.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",e.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",e.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",e.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",e.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",e.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",e.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",e.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(Xt||(Xt={}));var _X;(function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"})(_X||(_X={}));var Fvi=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.3 2024-06-06 */var Qbe;(function(e){e.SW="sw",e.UHW="uhw"})(Qbe||(Qbe={}));var ZP=(function(){function e(t,n){this.cryptoUtils=t,this.performanceClient=n}return e.prototype.generateCnf=function(t){var n,r;return qi(this,void 0,void 0,function(){var i,o,a;return Bi(this,function(s){switch(s.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.PopTokenGenerateCnf,t.correlationId),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Xt.PopTokenGenerateKid,t.correlationId),[4,this.generateKid(t)];case 1:return i=s.sent(),o=this.cryptoUtils.base64Encode(JSON.stringify(i)),a={kid:i.kid,reqCnfString:o},[4,this.cryptoUtils.hashString(o)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}})})},e.prototype.generateKid=function(t){var n;return qi(this,void 0,void 0,function(){var r;return Bi(this,function(i){switch(i.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.PopTokenGenerateKid,t.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return r=i.sent(),[2,{kid:r,xms_ksl:Qbe.SW}]}})})},e.prototype.signPopToken=function(t,n,r){return qi(this,void 0,void 0,function(){return Bi(this,function(i){return[2,this.signPayload(t,n,r)]})})},e.prototype.signPayload=function(t,n,r,i){return qi(this,void 0,void 0,function(){var o,a,s,l,c,u;return Bi(this,function(d){switch(d.label){case 0:return o=r.resourceRequestMethod,a=r.resourceRequestUri,s=r.shrClaims,l=r.shrNonce,c=a?new ia(a):void 0,u=c?.getUrlComponents(),[4,this.cryptoUtils.signJwt(Fa({at:t,ts:Pf.nowSeconds(),m:o?.toUpperCase(),u:u?.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:u?.AbsolutePath,q:u?.QueryString?[[],u.QueryString]:void 0,client_claims:s||void 0},i),n,r.correlationId)];case 1:return[2,d.sent()]}})})},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Zbe=(function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(t,n){var r=[Ybe,t,n];return r.join(Mu.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,n,r){var i=new e;return i.clientId=t,i.environment=n,r&&(i.familyId=r),i},e.isAppMetadataEntity=function(t,n){return n?t.indexOf(Ybe)===0&&n.hasOwnProperty("clientId")&&n.hasOwnProperty("environment"):!1},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Wvi=(function(){function e(t,n){this.cache=t,this.hasChanged=n}return Object.defineProperty(e.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var NX=(function(){function e(t,n,r,i,o,a,s){this.clientId=t,this.cacheStorage=n,this.cryptoObj=r,this.logger=i,this.serializableCache=o,this.persistencePlugin=a,this.performanceClient=s}return e.prototype.validateServerAuthorizationCodeResponse=function(t,n,r){if(!t.state||!n)throw t.state?Ar.createStateNotFoundError("Cached State"):Ar.createStateNotFoundError("Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(n))throw Ar.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw om.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new om(t.error||yt.EMPTY_STRING,t.error_description,t.suberror,t.timestamp||yt.EMPTY_STRING,t.trace_id||yt.EMPTY_STRING,t.correlation_id||yt.EMPTY_STRING,t.claims||yt.EMPTY_STRING):new c3(t.error||yt.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&kX(t.client_info,r)},e.prototype.validateTokenResponse=function(t){if(t.error||t.error_description||t.suberror){if(om.isInteractionRequiredError(t.error,t.error_description,t.suberror))throw new om(t.error,t.error_description,t.suberror,t.timestamp||yt.EMPTY_STRING,t.trace_id||yt.EMPTY_STRING,t.correlation_id||yt.EMPTY_STRING,t.claims||yt.EMPTY_STRING);var n=t.error_codes+" - ["+t.timestamp+"]: "+t.error_description+" - Correlation ID: "+t.correlation_id+" - Trace ID: "+t.trace_id;throw new c3(t.error,n,t.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,i,o,a,s,l,c){var u;return qi(this,void 0,void 0,function(){var d,p,h,g,m,v,y;return Bi(this,function(M){switch(M.label){case 0:if((u=this.performanceClient)===null||u===void 0||u.addQueueMeasurement(Xt.HandleServerTokenResponse,t.correlation_id),t.id_token){if(d=new Bb(t.id_token||yt.EMPTY_STRING,this.cryptoObj),o&&!mr.isEmpty(o.nonce)&&d.claims.nonce!==o.nonce)throw Ar.createNonceMismatchError();if(i.maxAge||i.maxAge===0){if(p=d.claims.auth_time,!p)throw Ar.createAuthTimeNotFoundError();Bb.checkMaxAge(p,i.maxAge)}}this.homeAccountIdentifier=M0.generateHomeAccountId(t.client_info||yt.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,d?.claims),o&&o.state&&(h=Ny.parseRequestState(this.cryptoObj,o.state)),t.key_id=t.key_id||i.sshKid||void 0,g=this.generateCacheRecord(t,n,r,i,d,a,o),M.label=1;case 1:return M.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new Wvi(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:M.sent(),M.label=3;case 3:return s&&!l&&g.account&&(v=g.account.generateAccountKey(),y=this.cacheStorage.getAccount(v),!y)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,n,g,!1,i,d,h,void 0,c)]):[4,this.cacheStorage.saveCacheRecord(g)];case 4:return M.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:M.sent(),M.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,g,!1,i,d,h,t,c)]}})})},e.prototype.generateCacheRecord=function(t,n,r,i,o,a,s){var l=n.getPreferredCache();if(mr.isEmpty(l))throw Ar.createInvalidCacheEnvironmentError();var c,u;!mr.isEmpty(t.id_token)&&o&&(c=JC.createIdTokenEntity(this.homeAccountIdentifier,l,t.id_token||yt.EMPTY_STRING,this.clientId,o.claims.tid||yt.EMPTY_STRING),u=M0.createAccount({homeAccountId:this.homeAccountIdentifier,idTokenClaims:o.claims,clientInfo:t.client_info||yt.EMPTY_STRING,cloudGraphHostName:s?.cloud_graph_host_name,msGraphHost:s?.msgraph_host},n));var d=null;if(!mr.isEmpty(t.access_token)){var p=t.scope?c0.fromString(t.scope):new c0(i.scopes||[]),h=(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,g=(typeof t.ext_expires_in=="string"?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,m=(typeof t.refresh_in=="string"?parseInt(t.refresh_in,10):t.refresh_in)||void 0,v=r+h,y=v+g,M=m&&m>0?r+m:void 0;d=ex.createAccessTokenEntity(this.homeAccountIdentifier,l,t.access_token||yt.EMPTY_STRING,this.clientId,o?o.claims.tid||yt.EMPTY_STRING:n.tenant,p.printScopes(),v,y,this.cryptoObj,M,t.token_type,a,t.key_id,i.claims,i.requestedClaimsHash)}var C=null;mr.isEmpty(t.refresh_token)||(C=YR.createRefreshTokenEntity(this.homeAccountIdentifier,l,t.refresh_token||yt.EMPTY_STRING,this.clientId,t.foci,a));var x=null;return mr.isEmpty(t.foci)||(x=Zbe.createAppMetadataEntity(this.clientId,l,t.foci)),new jI(u,c,d,C,x)},e.generateAuthenticationResult=function(t,n,r,i,o,a,s,l,c){var u,d,p;return qi(this,void 0,void 0,function(){var h,g,m,v,y,M,C,x,w,S,A;return Bi(this,function(z){switch(z.label){case 0:if(h=yt.EMPTY_STRING,g=[],m=null,y=yt.EMPTY_STRING,!r.accessToken)return[3,4];if(r.accessToken.tokenType!==Qa.POP)return[3,2];if(M=new ZP(t),C=r.accessToken,x=C.secret,w=C.keyId,!w)throw Ar.createKeyIdMissingError();return[4,M.signPopToken(x,w,o)];case 1:return h=z.sent(),[3,3];case 2:h=r.accessToken.secret,z.label=3;case 3:g=c0.fromString(r.accessToken.target).asArray(),m=new Date(Number(r.accessToken.expiresOn)*1e3),v=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),z.label=4;case 4:return r.appMetadata&&(y=r.appMetadata.familyId===UF?UF:yt.EMPTY_STRING),S=a?.claims.oid||a?.claims.sub||yt.EMPTY_STRING,A=a?.claims.tid||yt.EMPTY_STRING,l?.spa_accountid&&r.account&&(r.account.nativeAccountId=l?.spa_accountid),[2,{authority:n.canonicalAuthority,uniqueId:S,tenantId:A,scopes:g,account:r.account?r.account.getAccountInfo():null,idToken:a?a.rawToken:yt.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:h,fromCache:i,expiresOn:m,correlationId:o.correlationId,requestId:c||yt.EMPTY_STRING,extExpiresOn:v,familyId:y,tokenType:((u=r.accessToken)===null||u===void 0?void 0:u.tokenType)||yt.EMPTY_STRING,state:s?s.userRequestState:yt.EMPTY_STRING,cloudGraphHostName:((d=r.account)===null||d===void 0?void 0:d.cloudGraphHostName)||yt.EMPTY_STRING,msGraphHost:((p=r.account)===null||p===void 0?void 0:p.msGraphHost)||yt.EMPTY_STRING,code:l?.spa_code,fromNativeBroker:!1}]}})})},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var VAt=(function(e){Ap(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.includeRedirectUri=!0,i}return t.prototype.getAuthCodeUrl=function(n){var r,i;return qi(this,void 0,void 0,function(){var o;return Bi(this,function(a){switch(a.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.GetAuthCodeUrl,n.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(Xt.AuthClientCreateQueryString,n.correlationId),[4,this.createAuthCodeUrlQueryString(n)];case 1:return o=a.sent(),[2,ia.appendQueryString(this.authority.authorizationEndpoint,o)]}})})},t.prototype.acquireToken=function(n,r){var i,o,a,s,l,c;return qi(this,void 0,void 0,function(){var u,d,p,h,g,m,v=this;return Bi(this,function(y){switch(y.label){case 0:if(!n||!n.code)throw Ar.createTokenRequestCannotBeMadeError();return(i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(Xt.AuthClientAcquireToken,n.correlationId),u=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement("AuthCodeClientAcquireToken",n.correlationId),this.logger.info("in acquireToken call in auth-code client"),d=Pf.nowSeconds(),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Xt.AuthClientExecuteTokenRequest,n.correlationId),[4,this.executeTokenRequest(this.authority,n)];case 1:return p=y.sent(),h=(s=p.headers)===null||s===void 0?void 0:s[ah.X_MS_REQUEST_ID],g=(l=p.headers)===null||l===void 0?void 0:l[ah.X_MS_HTTP_VERSION],g&&u?.addStaticFields({httpVerAuthority:g}),m=new NX(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),m.validateTokenResponse(p.body),(c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(Xt.HandleServerTokenResponse,n.correlationId),[2,m.handleServerTokenResponse(p.body,this.authority,d,n,r,void 0,void 0,void 0,h).then(function(M){return u?.endMeasurement({success:!0}),M}).catch(function(M){throw v.logger.verbose("Error in fetching token in ACC",n.correlationId),u?.endMeasurement({errorCode:M.errorCode,subErrorCode:M.subError,success:!1}),M})]}})})},t.prototype.handleFragmentResponse=function(n,r){var i=new NX(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new ia(n),a=ia.getDeserializedHash(o.getHash());if(i.validateServerAuthorizationCodeResponse(a,r,this.cryptoUtils),!a.code)throw Ar.createNoAuthCodeInServerResponseError();return Fa(Fa({},a),{code:a.code})},t.prototype.getLogoutUri=function(n){if(!n)throw Vs.createEmptyLogoutRequestError();var r=this.createLogoutUrlQueryString(n);return ia.appendQueryString(this.authority.endSessionEndpoint,r)},t.prototype.executeTokenRequest=function(n,r){var i,o;return qi(this,void 0,void 0,function(){var a,s,l,c,u,d,p;return Bi(this,function(h){switch(h.label){case 0:return(i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(Xt.AuthClientExecuteTokenRequest,r.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.AuthClientCreateTokenRequestBody,r.correlationId),a=this.createTokenQueryParameters(r),s=ia.appendQueryString(n.tokenEndpoint,a),[4,this.createTokenRequestBody(r)];case 1:if(l=h.sent(),c=void 0,r.clientInfo)try{u=kX(r.clientInfo,this.cryptoUtils),c={credential:""+u.uid+Mu.CLIENT_INFO_SEPARATOR+u.utid,type:th.HOME_ACCOUNT_ID}}catch(g){this.logger.verbose("Could not parse client info for CCS Header: "+g)}return d=this.createTokenRequestHeaders(c||r.ccsCredential),p={clientId:this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},[2,this.executePostToTokenEndpoint(s,l,d,p)]}})})},t.prototype.createTokenRequestBody=function(n){var r,i;return qi(this,void 0,void 0,function(){var o,a,s,l,c,u,d,d,p;return Bi(this,function(h){switch(h.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.AuthClientCreateTokenRequestBody,n.correlationId),o=new QF,o.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?o.addRedirectUri(n.redirectUri):jA.validateRedirectUri(n.redirectUri),o.addScopes(n.scopes),o.addAuthorizationCode(n.code),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&o.addServerTelemetry(this.serverTelemetryManager),n.codeVerifier&&o.addCodeVerifier(n.codeVerifier),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a=this.config.clientCredentials.clientAssertion,o.addClientAssertion(a.assertion),o.addClientAssertionType(a.assertionType)),o.addGrantType(IX.AUTHORIZATION_CODE_GRANT),o.addClientInfo(),n.authenticationScheme!==Qa.POP?[3,2]:(s=new ZP(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(Xt.PopTokenGenerateCnf,n.correlationId),[4,s.generateCnf(n)]);case 1:return l=h.sent(),o.addPopToken(l.reqCnfString),[3,3];case 2:if(n.authenticationScheme===Qa.SSH)if(n.sshJwk)o.addSshJwk(n.sshJwk);else throw Vs.createMissingSshJwkError();h.label=3;case 3:if(c=n.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(c),(!mr.isEmptyObj(n.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(n.claims,this.config.authOptions.clientCapabilities),u=void 0,n.clientInfo)try{d=kX(n.clientInfo,this.cryptoUtils),u={credential:""+d.uid+Mu.CLIENT_INFO_SEPARATOR+d.utid,type:th.HOME_ACCOUNT_ID}}catch(g){this.logger.verbose("Could not parse client info for CCS Header: "+g)}else u=n.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case th.HOME_ACCOUNT_ID:try{d=XR(u.credential),o.addCcsOid(d)}catch(g){this.logger.verbose("Could not parse home account ID for CCS Header: "+g)}break;case th.UPN:o.addCcsUpn(u.credential);break}return n.tokenBodyParameters&&o.addExtraQueryParameters(n.tokenBodyParameters),n.enableSpaAuthorizationCode&&(!n.tokenBodyParameters||!n.tokenBodyParameters[Zi.RETURN_SPA_CODE])&&o.addExtraQueryParameters((p={},p[Zi.RETURN_SPA_CODE]="1",p)),[2,o.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(n){var r;return qi(this,void 0,void 0,function(){var i,o,a,s,l,c,c,c,u,d;return Bi(this,function(p){switch(p.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.AuthClientCreateQueryString,n.correlationId),i=new QF,i.addClientId(this.config.authOptions.clientId),o=Jee(n.scopes||[],n.extraScopesToConsent||[]),i.addScopes(o),i.addRedirectUri(n.redirectUri),a=n.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(a),i.addResponseMode(n.responseMode),i.addResponseTypeCode(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addClientInfo(),n.codeChallenge&&n.codeChallengeMethod&&i.addCodeChallengeParams(n.codeChallenge,n.codeChallengeMethod),n.prompt&&i.addPrompt(n.prompt),n.domainHint&&i.addDomainHint(n.domainHint),n.prompt!==g0.SELECT_ACCOUNT)if(n.sid&&n.prompt===g0.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),i.addSid(n.sid);else if(n.account){if(s=this.extractAccountSid(n.account),l=this.extractLoginHint(n.account),l){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),i.addLoginHint(l);try{c=XR(n.account.homeAccountId),i.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&n.prompt===g0.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),i.addSid(s);try{c=XR(n.account.homeAccountId),i.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(n.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),i.addLoginHint(n.loginHint),i.addCcsUpn(n.loginHint);else if(n.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),i.addLoginHint(n.account.username);try{c=XR(n.account.homeAccountId),i.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else n.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),i.addLoginHint(n.loginHint),i.addCcsUpn(n.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return n.nonce&&i.addNonce(n.nonce),n.state&&i.addState(n.state),(!mr.isEmpty(n.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(n.claims,this.config.authOptions.clientCapabilities),n.extraQueryParameters&&i.addExtraQueryParameters(n.extraQueryParameters),n.nativeBroker?(i.addNativeBroker(),n.authenticationScheme!==Qa.POP?[3,2]:(u=new ZP(this.cryptoUtils),[4,u.generateCnf(n)])):[3,2];case 1:d=p.sent(),i.addPopToken(d.reqCnfString),p.label=2;case 2:return[2,i.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(n){var r=new QF;return n.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(n.postLogoutRedirectUri),n.correlationId&&r.addCorrelationId(n.correlationId),n.idTokenHint&&r.addIdTokenHint(n.idTokenHint),n.state&&r.addState(n.state),n.logoutHint&&r.addLogoutHint(n.logoutHint),n.extraQueryParameters&&r.addExtraQueryParameters(n.extraQueryParameters),r.createQueryString()},t.prototype.extractAccountSid=function(n){var r;return((r=n.idTokenClaims)===null||r===void 0?void 0:r.sid)||null},t.prototype.extractLoginHint=function(n){var r;return((r=n.idTokenClaims)===null||r===void 0?void 0:r.login_hint)||null},t})(n3e);/*! @azure/msal-common v13.3.3 2024-06-06 */var GAt=(function(e){Ap(t,e);function t(n,r){return e.call(this,n,r)||this}return t.prototype.acquireToken=function(n){var r,i,o,a,s,l,c;return qi(this,void 0,void 0,function(){var u,d,p,h,g,m,v=this;return Bi(this,function(y){switch(y.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.RefreshTokenClientAcquireToken,n.correlationId),u=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(Xt.RefreshTokenClientAcquireToken,n.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",n.correlationId),d=Pf.nowSeconds(),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.RefreshTokenClientExecuteTokenRequest,n.correlationId),[4,this.executeTokenRequest(n,this.authority)];case 1:return p=y.sent(),h=(a=p.headers)===null||a===void 0?void 0:a[ah.X_MS_HTTP_VERSION],u?.addStaticFields({refreshTokenSize:((s=p.body.refresh_token)===null||s===void 0?void 0:s.length)||0}),h&&u?.addStaticFields({httpVerToken:h}),g=(l=p.headers)===null||l===void 0?void 0:l[ah.X_MS_REQUEST_ID],m=new NX(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),m.validateTokenResponse(p.body),(c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(Xt.HandleServerTokenResponse,n.correlationId),[2,m.handleServerTokenResponse(p.body,this.authority,d,n,void 0,void 0,!0,n.forceCache,g).then(function(M){return u?.endMeasurement({success:!0}),M}).catch(function(M){throw v.logger.verbose("Error in fetching refresh token",n.correlationId),u?.endMeasurement({errorCode:M.errorCode,subErrorCode:M.subError,success:!1}),M})]}})})},t.prototype.acquireTokenByRefreshToken=function(n){var r,i,o,a;return qi(this,void 0,void 0,function(){var s,l,c;return Bi(this,function(u){if(!n)throw Vs.createEmptyTokenRequestError();if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.RefreshTokenClientAcquireTokenByRefreshToken,n.correlationId),!n.account)throw Ar.createNoAccountInSilentRequestError();if(s=this.cacheManager.isAppMetadataFOCI(n.account.environment),s)try{return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(Xt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.correlationId),[2,this.acquireTokenWithCachedRefreshToken(n,!0)]}catch(d){if(l=d instanceof om&&d.errorCode===KR.noTokensFoundError.code,c=d instanceof c3&&d.errorCode===$Ye.INVALID_GRANT_ERROR&&d.subError===$Ye.CLIENT_MISMATCH_ERROR,l||c)return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.correlationId),[2,this.acquireTokenWithCachedRefreshToken(n,!1)];throw d}return(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Xt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.correlationId),[2,this.acquireTokenWithCachedRefreshToken(n,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(n,r){var i,o,a;return qi(this,void 0,void 0,function(){var s,l,c;return Bi(this,function(u){if((i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(Xt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.correlationId),s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(Xt.RefreshTokenClientAcquireTokenWithCachedRefreshToken,n.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",n.correlationId),l=this.cacheManager.getRefreshToken(n.account,r),!l)throw s?.discardMeasurement(),om.createNoTokensFoundError();return s?.endMeasurement({success:!0}),c=Fa(Fa({},n),{refreshToken:l.secret,authenticationScheme:n.authenticationScheme||Qa.BEARER,ccsCredential:{credential:n.account.homeAccountId,type:th.HOME_ACCOUNT_ID}}),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Xt.RefreshTokenClientAcquireToken,n.correlationId),[2,this.acquireToken(c)]})})},t.prototype.executeTokenRequest=function(n,r){var i,o,a;return qi(this,void 0,void 0,function(){var s,l,c,u,d,p;return Bi(this,function(h){switch(h.label){case 0:return(i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(Xt.RefreshTokenClientExecuteTokenRequest,n.correlationId),s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(Xt.RefreshTokenClientExecuteTokenRequest,n.correlationId),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Xt.RefreshTokenClientCreateTokenRequestBody,n.correlationId),l=this.createTokenQueryParameters(n),c=ia.appendQueryString(r.tokenEndpoint,l),[4,this.createTokenRequestBody(n)];case 1:return u=h.sent(),d=this.createTokenRequestHeaders(n.ccsCredential),p={clientId:this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},[2,this.executePostToTokenEndpoint(c,u,d,p).then(function(g){return s?.endMeasurement({success:!0}),g}).catch(function(g){throw s?.endMeasurement({success:!1}),g})]}})})},t.prototype.createTokenRequestBody=function(n){var r,i,o;return qi(this,void 0,void 0,function(){var a,s,l,c,u,d,p;return Bi(this,function(h){switch(h.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.RefreshTokenClientCreateTokenRequestBody,n.correlationId),a=n.correlationId,s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(Xt.BaseClientCreateTokenRequestHeaders,a),l=new QF,l.addClientId(this.config.authOptions.clientId),l.addScopes(n.scopes),l.addGrantType(IX.REFRESH_TOKEN_GRANT),l.addClientInfo(),l.addLibraryInfo(this.config.libraryInfo),l.addApplicationTelemetry(this.config.telemetry.application),l.addThrottling(),this.serverTelemetryManager&&l.addServerTelemetry(this.serverTelemetryManager),l.addCorrelationId(a),l.addRefreshToken(n.refreshToken),this.config.clientCredentials.clientSecret&&l.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(c=this.config.clientCredentials.clientAssertion,l.addClientAssertion(c.assertion),l.addClientAssertionType(c.assertionType)),n.authenticationScheme!==Qa.POP?[3,2]:(u=new ZP(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.PopTokenGenerateCnf,n.correlationId),[4,u.generateCnf(n)]);case 1:return d=h.sent(),l.addPopToken(d.reqCnfString),[3,3];case 2:if(n.authenticationScheme===Qa.SSH)if(n.sshJwk)l.addSshJwk(n.sshJwk);else throw s?.endMeasurement({success:!1}),Vs.createMissingSshJwkError();h.label=3;case 3:if((!mr.isEmptyObj(n.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&l.addClaims(n.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&n.ccsCredential)switch(n.ccsCredential.type){case th.HOME_ACCOUNT_ID:try{p=XR(n.ccsCredential.credential),l.addCcsOid(p)}catch(g){this.logger.verbose("Could not parse home account ID for CCS Header: "+g)}break;case th.UPN:l.addCcsUpn(n.ccsCredential.credential);break}return s?.endMeasurement({success:!0}),[2,l.createQueryString()]}})})},t})(n3e);/*! @azure/msal-common v13.3.3 2024-06-06 */var qvi=(function(e){Ap(t,e);function t(n,r){return e.call(this,n,r)||this}return t.prototype.acquireToken=function(n){return qi(this,void 0,void 0,function(){var r,i;return Bi(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.acquireCachedToken(n)];case 1:return[2,o.sent()];case 2:if(r=o.sent(),r instanceof Ar&&r.errorCode===zn.tokenRefreshRequired.code)return i=new GAt(this.config,this.performanceClient),[2,i.acquireTokenByRefreshToken(n)];throw r;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(n){var r,i,o,a,s;return qi(this,void 0,void 0,function(){var l,c;return Bi(this,function(u){switch(u.label){case 0:if(!n)throw Vs.createEmptyTokenRequestError();if(n.forceRefresh)throw(r=this.serverTelemetryManager)===null||r===void 0||r.setCacheOutcome(ZC.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),Ar.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!mr.isEmptyObj(n.claims))throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(ZC.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),Ar.createRefreshRequiredError();if(!n.account)throw Ar.createNoAccountInSilentRequestError();if(l=n.authority||this.authority.getPreferredCache(),c=this.cacheManager.readCacheRecord(n.account,n,l),c.accessToken){if(Pf.wasClockTurnedBack(c.accessToken.cachedAt)||Pf.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(ZC.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),Ar.createRefreshRequiredError();if(c.accessToken.refreshOn&&Pf.isTokenExpired(c.accessToken.refreshOn,0))throw(s=this.serverTelemetryManager)===null||s===void 0||s.setCacheOutcome(ZC.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),Ar.createRefreshRequiredError()}else throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(ZC.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),Ar.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(c,n)];case 1:return[2,u.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(n,r){return qi(this,void 0,void 0,function(){var i,o;return Bi(this,function(a){switch(a.label){case 0:if(n.idToken&&(i=new Bb(n.idToken.secret,this.config.cryptoInterface)),r.maxAge||r.maxAge===0){if(o=i?.claims.auth_time,!o)throw Ar.createAuthTimeNotFoundError();Bb.checkMaxAge(o,r.maxAge)}return[4,NX.generateAuthenticationResult(this.cryptoUtils,this.authority,n,!0,r,i)];case 1:return[2,a.sent()]}})})},t})(n3e);/*! @azure/msal-common v13.3.3 2024-06-06 */function Bvi(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.3 2024-06-06 */var $At={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},XYe=$At.endpointMetadata,YYe=$At.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.3 2024-06-06 */var Jbe=(function(){function e(){this.expiresAt=Pf.nowSeconds()+XF.REFRESH_TIME_SECONDS}return e.prototype.updateCloudDiscoveryMetadata=function(t,n){this.aliases=t.aliases,this.preferred_cache=t.preferred_cache,this.preferred_network=t.preferred_network,this.aliasesFromNetwork=n},e.prototype.updateEndpointMetadata=function(t,n){this.authorization_endpoint=t.authorization_endpoint,this.token_endpoint=t.token_endpoint,this.end_session_endpoint=t.end_session_endpoint,this.issuer=t.issuer,this.endpointsFromNetwork=n,this.jwks_uri=t.jwks_uri},e.prototype.updateCanonicalAuthority=function(t){this.canonical_authority=t},e.prototype.resetExpiresAt=function(){this.expiresAt=Pf.nowSeconds()+XF.REFRESH_TIME_SECONDS},e.prototype.isExpired=function(){return this.expiresAt<=Pf.nowSeconds()},e.isAuthorityMetadataEntity=function(t,n){return n?t.indexOf(XF.CACHE_KEY)===0&&n.hasOwnProperty("aliases")&&n.hasOwnProperty("preferred_cache")&&n.hasOwnProperty("preferred_network")&&n.hasOwnProperty("canonical_authority")&&n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("aliasesFromNetwork")&&n.hasOwnProperty("endpointsFromNetwork")&&n.hasOwnProperty("expiresAt")&&n.hasOwnProperty("jwks_uri"):!1},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */function jvi(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.3 2024-06-06 */function Hvi(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.3 2024-06-06 */var Vvi=(function(){function e(t,n,r){this.networkInterface=t,this.performanceClient=n,this.correlationId=r}return e.prototype.detectRegion=function(t,n){var r,i,o,a;return qi(this,void 0,void 0,function(){var s,l,c,u,d;return Bi(this,function(p){switch(p.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.RegionDiscoveryDetectRegion,this.correlationId),s=t,s)return[3,8];l=e.IMDS_OPTIONS,p.label=1;case 1:return p.trys.push([1,6,,7]),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(Xt.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(yt.IMDS_VERSION,l)];case 2:return c=p.sent(),c.status===UR.httpSuccess&&(s=c.body,n.region_source=qC.IMDS),c.status!==UR.httpBadRequest?[3,5]:((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(l)]);case 3:return u=p.sent(),u?((a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(Xt.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,l)]):(n.region_source=qC.FAILED_AUTO_DETECTION,[2,null]);case 4:d=p.sent(),d.status===UR.httpSuccess&&(s=d.body,n.region_source=qC.IMDS),p.label=5;case 5:return[3,7];case 6:return p.sent(),n.region_source=qC.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:n.region_source=qC.ENVIRONMENT_VARIABLE,p.label=9;case 9:return s||(n.region_source=qC.FAILED_AUTO_DETECTION),[2,s||null]}})})},e.prototype.getRegionFromIMDS=function(t,n){var r;return qi(this,void 0,void 0,function(){return Bi(this,function(i){return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(Xt.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(yt.IMDS_ENDPOINT+"?api-version="+t+"&format=text",n,yt.IMDS_TIMEOUT)]})})},e.prototype.getCurrentVersion=function(t){var n;return qi(this,void 0,void 0,function(){var r;return Bi(this,function(i){switch(i.label){case 0:(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.RegionDiscoveryGetCurrentVersion,this.correlationId),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(yt.IMDS_ENDPOINT+"?format=json",t)];case 2:return r=i.sent(),r.status===UR.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?[2,r.body["newest-versions"][0]]:[2,null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var i6=(function(){function e(t,n,r,i,o,a,s){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=n,this.cacheManager=r,this.authorityOptions=i,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new Vvi(n,this.performanceClient,this.correlationId)}return e.prototype.getAuthorityType=function(t){if(t.HostNameAndPort.endsWith(yt.CIAM_AUTH_URL))return U1.Ciam;var n=t.PathSegments;if(n.length)switch(n[0].toLowerCase()){case yt.ADFS:return U1.Adfs;case yt.DSTS:return U1.Dsts}return U1.Default},Object.defineProperty(e.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(t){this._canonicalAuthority=new ia(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Ar.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),e.prototype.canReplaceTenant=function(t){return t.PathSegments.length===1&&!e.reservedTenantDomains.has(t.PathSegments[0])&&this.getAuthorityType(t)===U1.Default&&this.protocolMode===QP.AAD},e.prototype.replaceTenant=function(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)},e.prototype.replacePath=function(t){var n=this,r=t,i=new ia(this.metadata.canonical_authority),o=i.getUrlComponents(),a=o.PathSegments,s=this.canonicalAuthorityUrlComponents.PathSegments;return s.forEach(function(l,c){var u=a[c];if(c===0&&n.canReplaceTenant(o)){var d=new ia(n.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];u!==d&&(n.logger.verbose("Replacing tenant domain name "+u+" with id "+d),u=d)}l!==u&&(r=r.replace("/"+u+"/","/"+l+"/"))}),this.replaceTenant(r)},Object.defineProperty(e.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===U1.Adfs||this.authorityType===U1.Dsts||this.protocolMode===QP.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),e.prototype.discoveryComplete=function(){return!!this.metadata},e.prototype.resolveEndpointsAsync=function(){var t,n,r;return qi(this,void 0,void 0,function(){var i,o,a,s;return Bi(this,function(l){switch(l.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Xt.AuthorityResolveEndpointsAsync,this.correlationId),i=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),i||(i=new Jbe,i.updateCanonicalAuthority(this.canonicalAuthority)),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(Xt.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(i)];case 1:return o=l.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,i.preferred_network),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Xt.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(i)];case 2:return a=l.sent(),o!==$h.CACHE&&a!==$h.CACHE&&(i.resetExpiresAt(),i.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(i.preferred_cache),this.cacheManager.setAuthorityMetadata(s,i),this.metadata=i,[2]}})})},e.prototype.updateEndpointMetadata=function(t){var n,r,i,o,a,s;return qi(this,void 0,void 0,function(){var l,c;return Bi(this,function(u){switch(u.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.AuthorityUpdateEndpointMetadata,this.correlationId),l=this.getEndpointMetadataFromConfig(),l?(t.updateEndpointMetadata(l,!1),[2,$h.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,$h.CACHE]:((r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Xt.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return l=u.sent(),l?!((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0)&&i.azureRegion?((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(Xt.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,3]:[3,4];case 2:l=u.sent(),u.label=3;case 3:return t.updateEndpointMetadata(l,!0),[2,$h.NETWORK];case 4:return c=this.getEndpointMetadataFromHardcodedValues(),c&&!this.authorityOptions.skipAuthorityMetadataCache?!((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0)&&a.azureRegion?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(Xt.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,6]:[3,7];case 5:c=u.sent(),u.label=6;case 6:return t.updateEndpointMetadata(c,!1),[2,$h.HARDCODED_VALUES];case 7:throw Ar.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},e.prototype.isAuthoritySameType=function(t){var n=new ia(t.canonical_authority),r=n.getUrlComponents().PathSegments;return r.length===this.canonicalAuthorityUrlComponents.PathSegments.length},e.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Vs.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var t;return qi(this,void 0,void 0,function(){var n,r;return Bi(this,function(i){switch(i.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Xt.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),n={},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,n)];case 2:return r=i.sent(),[2,Bvi(r.body)?r.body:null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},e.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in XYe?XYe[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var n,r,i,o;return qi(this,void 0,void 0,function(){var a,s;return Bi(this,function(l){switch(l.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),a=(r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0?void 0:r.azureRegion,a?a!==yt.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=KF.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=a,[2,e.replaceWithRegionalInformation(t,a)]):((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(Xt.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0?void 0:o.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(s=l.sent(),s)return this.regionDiscoveryMetadata.region_outcome=KF.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=s,[2,e.replaceWithRegionalInformation(t,s)];this.regionDiscoveryMetadata.region_outcome=KF.AUTO_DETECTION_REQUESTED_FAILED,l.label=2;case 2:return[2,t]}})})},e.prototype.updateCloudDiscoveryMetadata=function(t){var n,r;return qi(this,void 0,void 0,function(){var i,o,a;return Bi(this,function(s){switch(s.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(Xt.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||yt.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||yt.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(t.canonical_authority||yt.NOT_APPLICABLE)),i=this.getCloudDiscoveryMetadataFromConfig(),i?(this.logger.verbose("Found cloud discovery metadata in the config."),t.updateCloudDiscoveryMetadata(i,!1),[2,$h.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),o=t.isExpired(),this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!o?(this.logger.verbose("Found metadata in the cache."),[2,$h.CACHE]):(o&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(Xt.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(i=s.sent(),i)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),t.updateCloudDiscoveryMetadata(i,!0),[2,$h.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),a=this.getCloudDiscoveryMetadataFromHarcodedValues(),a&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),t.updateCloudDiscoveryMetadata(a,!1),[2,$h.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),Vs.createUntrustedAuthorityError()}})})},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===U1.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=e.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),n)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),n;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Vs.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},e.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var t;return qi(this,void 0,void 0,function(){var n,r,i,o,a,s,l,c;return Bi(this,function(u){switch(u.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(Xt.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),n=""+yt.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},i=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(n,r)];case 2:if(o=u.sent(),a=void 0,s=void 0,jvi(o.body))a=o.body,s=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else if(Hvi(o.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+o.status),a=o.body,a.error===yt.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),i=e.getCloudDiscoveryMetadataFromNetworkResponse(s,this.hostnameAndPort),[3,4];case 3:return l=u.sent(),l instanceof Gr?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
Error: `+l.errorCode+`
Error Description: `+l.errorMessage):(c=l,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
Error: `+c.name+`
Error Description: `+c.message)),[2,null];case 4:return i||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),i=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},e.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in YYe?YYe[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var t=this,n=this.authorityOptions.knownAuthorities.filter(function(r){return ia.getDomainFromUrl(r).toLowerCase()===t.hostnameAndPort});return n.length>0},e.generateAuthority=function(t,n){var r;if(n&&n.azureCloudInstance!==r6.None){var i=n.tenant?n.tenant:yt.DEFAULT_COMMON_TENANT;r=n.azureCloudInstance+"/"+i+"/"}return r||t},e.createCloudDiscoveryMetadataFromHost=function(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}},e.getCloudDiscoveryMetadataFromNetworkResponse=function(t,n){for(var r=0;r<t.length;r++){var i=t[r];if(i.aliases.indexOf(n)>-1)return i}return null},e.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw Ar.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},e.isPublicCloudAuthority=function(t){return yt.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},e.buildRegionalAuthorityString=function(t,n,r){var i=new ia(t);i.validateAsUri();var o=i.getUrlComponents(),a=n+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(a=n+"."+yt.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=ia.constructAuthorityUriFromObject(Fa(Fa({},i.getUrlComponents()),{HostNameAndPort:a})).urlString;return r?s+"?"+r:s},e.replaceWithRegionalInformation=function(t,n){return t.authorization_endpoint=e.buildRegionalAuthorityString(t.authorization_endpoint,n),t.token_endpoint=e.buildRegionalAuthorityString(t.token_endpoint,n,yt.REGIONAL_AUTH_NON_MSI_QUERY_STRING),t.end_session_endpoint&&(t.end_session_endpoint=e.buildRegionalAuthorityString(t.end_session_endpoint,n)),t},e.transformCIAMAuthority=function(t){var n=t.endsWith(yt.FORWARD_SLASH)?t:""+t+yt.FORWARD_SLASH,r=new ia(t),i=r.getUrlComponents();if(i.PathSegments.length===0&&i.HostNameAndPort.endsWith(yt.CIAM_AUTH_URL)){var o=i.HostNameAndPort.split(".")[0];n=""+n+o+yt.AAD_TENANT_DOMAIN_SUFFIX}return n},e.reservedTenantDomains=new Set(["{tenant}","{tenantid}",lz.COMMON,lz.CONSUMERS,lz.ORGANIZATIONS]),e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var FX=(function(){function e(){}return e.createDiscoveredInstance=function(t,n,r,i,o,a,s){return qi(this,void 0,void 0,function(){var l,c,u;return Bi(this,function(d){switch(d.label){case 0:a?.addQueueMeasurement(Xt.AuthorityFactoryCreateDiscoveredInstance,s),l=i6.transformCIAMAuthority(t),c=e.createInstance(l,n,r,i,o,a,s),d.label=1;case 1:return d.trys.push([1,3,,4]),a?.setPreQueueTime(Xt.AuthorityResolveEndpointsAsync,s),[4,c.resolveEndpointsAsync()];case 2:return d.sent(),[2,c];case 3:throw u=d.sent(),Ar.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}})})},e.createInstance=function(t,n,r,i,o,a,s){if(mr.isEmpty(t))throw Vs.createUrlEmptyError();return new i6(t,n,r,i,o,a,s)},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var WX=(function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(t,n){var r=t.indexOf(dd.CACHE_KEY)===0,i=!0;return n&&(i=n.hasOwnProperty("failedRequests")&&n.hasOwnProperty("errors")&&n.hasOwnProperty("cacheHits")),r&&i},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var KYe=(function(){function e(){}return e.isThrottlingEntity=function(t,n){var r=!1;t&&(r=t.indexOf(YF.THROTTLING_PREFIX)===0);var i=!0;return n&&(i=n.hasOwnProperty("throttleTime")),r&&i},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Gvi={sendGetRequestAsync:function(){var e="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Gr.createUnexpectedError(e))},sendPostRequestAsync:function(){var e="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Gr.createUnexpectedError(e))}};/*! @azure/msal-common v13.3.3 2024-06-06 */var xG={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},QYe=(function(e){Ap(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.name="JoseHeaderError",Object.setPrototypeOf(i,t.prototype),i}return t.createMissingKidError=function(){return new t(xG.missingKidError.code,xG.missingKidError.desc)},t.createMissingAlgError=function(){return new t(xG.missingAlgError.code,xG.missingAlgError.desc)},t})(Gr);/*! @azure/msal-common v13.3.3 2024-06-06 */var $vi=(function(){function e(t){this.typ=t.typ,this.alg=t.alg,this.kid=t.kid}return e.getShrHeaderString=function(t){if(!t.kid)throw QYe.createMissingKidError();if(!t.alg)throw QYe.createMissingAlgError();var n=new e({typ:t.typ||Kbe.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(n)},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var Uvi=(function(){function e(t,n){this.cacheOutcome=ZC.NO_CACHE_HIT,this.cacheManager=n,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||yt.EMPTY_STRING,this.wrapperVer=t.wrapperVer||yt.EMPTY_STRING,this.telemetryCacheKey=dd.CACHE_KEY+Mu.CACHE_KEY_SEPARATOR+t.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+dd.VALUE_SEPARATOR+this.cacheOutcome,n=[this.wrapperSKU,this.wrapperVer].join(dd.VALUE_SEPARATOR),r=this.getRegionDiscoveryFields(),i=[t,r].join(dd.VALUE_SEPARATOR);return[dd.SCHEMA_VERSION,i,n].join(dd.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join(dd.VALUE_SEPARATOR),i=t.errors.slice(0,n).join(dd.VALUE_SEPARATOR),o=t.errors.length,a=n<o?dd.OVERFLOW_TRUE:dd.OVERFLOW_FALSE,s=[o,a].join(dd.VALUE_SEPARATOR);return[dd.SCHEMA_VERSION,t.cacheHits,r,i,s].join(dd.CATEGORY_SEPARATOR)},e.prototype.cacheFailedRequest=function(t){var n=this.getLastRequests();n.errors.length>=dd.MAX_CACHED_ERRORS&&(n.failedRequests.shift(),n.failedRequests.shift(),n.errors.shift()),n.failedRequests.push(this.apiId,this.correlationId),mr.isEmpty(t.subError)?mr.isEmpty(t.errorCode)?t&&t.toString()?n.errors.push(t.toString()):n.errors.push(dd.UNKNOWN_ERROR):n.errors.push(t.errorCode):n.errors.push(t.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n)},e.prototype.incrementCacheHits=function(){var t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t),t.cacheHits},e.prototype.getLastRequests=function(){var t=new WX,n=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return n||t},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.errors.length;if(n===r)this.cacheManager.removeItem(this.telemetryCacheKey);else{var i=new WX;i.failedRequests=t.failedRequests.slice(n*2),i.errors=t.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i)}},e.maxErrorsToSend=function(t){var n,r=0,i=0,o=t.errors.length;for(n=0;n<o;n++){var a=t.failedRequests[2*n]||yt.EMPTY_STRING,s=t.failedRequests[2*n+1]||yt.EMPTY_STRING,l=t.errors[n]||yt.EMPTY_STRING;if(i+=a.toString().length+s.toString().length+l.length+3,i<dd.MAX_LAST_HEADER_BYTES)r+=1;else break}return r},e.prototype.getRegionDiscoveryFields=function(){var t=[];return t.push(this.regionUsed||yt.EMPTY_STRING),t.push(this.regionSource||yt.EMPTY_STRING),t.push(this.regionOutcome||yt.EMPTY_STRING),t.join(",")},e.prototype.updateRegionDiscoveryMetadata=function(t){this.regionUsed=t.region_used,this.regionSource=t.region_source,this.regionOutcome=t.region_outcome},e.prototype.setCacheOutcome=function(t){this.cacheOutcome=t},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var UAt=(function(){function e(t,n,r,i,o,a){this.authority=n,this.libraryName=i,this.libraryVersion=o,this.applicationTelemetry=a,this.clientId=t,this.logger=r,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return e.prototype.startPerformanceMeasurement=function(t,n){return{}},e.prototype.startPerformanceMeasuremeant=function(t,n){return{}},e.prototype.getIntFields=function(){return Fvi},e.prototype.getPreQueueTime=function(t,n){var r=this.preQueueTimeByCorrelationId.get(n);if(r){if(r.name!==t){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+t+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+n+", unable to add queue measurement");return}return r.time},e.prototype.calculateQueuedTime=function(t,n){return t<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+t),0):n<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+n),0):n<t?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):n-t},e.prototype.addQueueMeasurement=function(t,n,r,i){if(!n){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+t+", cannot add queue measurement");return}if(r===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+t+" is "+r);else if(!r){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+t);return}var o={eventName:t,queueTime:r,manuallyCompleted:i},a=this.queueMeasurements.get(n);if(a)a.push(o),this.queueMeasurements.set(n,a);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+n+" to queue measurements");var s=[o];this.queueMeasurements.set(n,s)}this.preQueueTimeByCorrelationId.delete(n)},e.prototype.startMeasurement=function(t,n){var r=this,i,o,a=n||this.generateId();n||this.logger.info("PerformanceClient: No correlation id provided for "+t+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+t,a);var s=this.startPerformanceMeasuremeant(t,a);s.startMeasurement();var l={eventId:this.generateId(),status:_X.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:t,startTimeMs:Date.now(),correlationId:a,appName:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appName,appVersion:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appVersion};return this.cacheEventByCorrelationId(l),{endMeasurement:function(c){return r.endMeasurement(Fa(Fa({},l),c),s)},discardMeasurement:function(){return r.discardMeasurements(l.correlationId)},addStaticFields:function(c){return r.addStaticFields(c,l.correlationId)},increment:function(c){return r.increment(c,l.correlationId)},measurement:s,event:l}},e.prototype.endMeasurement=function(t,n){var r=this,i,o,a=this.eventsByCorrelationId.get(t.correlationId);if(!a)return this.logger.trace("PerformanceClient: Measurement not found for "+t.eventId,t.correlationId),null;var s=t.eventId===a.eventId,l={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(l=this.getQueueInfo(t.correlationId),this.discardCache(a.correlationId)):(i=a.incompleteSubMeasurements)===null||i===void 0||i.delete(t.eventId),n?.endMeasurement();var c=n?.flushMeasurement();if(!c)return this.logger.trace("PerformanceClient: Performance measurement not taken",a.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+t.name+": "+c+" ms",t.correlationId),!s)return a[t.name+"DurationMs"]=Math.floor(c),Fa({},a);var u=Fa(Fa({},a),t),d=0;return(o=u.incompleteSubMeasurements)===null||o===void 0||o.forEach(function(p){r.logger.trace("PerformanceClient: Incomplete submeasurement "+p.name+" found for "+t.name,u.correlationId),d++}),u.incompleteSubMeasurements=void 0,u=Fa(Fa({},u),{durationMs:Math.round(c),queuedTimeMs:l.totalQueueTime,queuedCount:l.totalQueueCount,queuedManuallyCompletedCount:l.manuallyCompletedCount,status:_X.Completed,incompleteSubsCount:d}),this.truncateIntegralFields(u,this.getIntFields()),this.emitEvents([u],t.correlationId),u},e.prototype.addStaticFields=function(t,n){this.logger.trace("PerformanceClient: Updating static fields");var r=this.eventsByCorrelationId.get(n);r?this.eventsByCorrelationId.set(n,Fa(Fa({},r),t)):this.logger.trace("PerformanceClient: Event not found for",n)},e.prototype.increment=function(t,n){this.logger.trace("PerformanceClient: Updating counters");var r=this.eventsByCorrelationId.get(n);if(r)for(var i in t)r.hasOwnProperty(i)||(r[i]=0),r[i]+=t[i];else this.logger.trace("PerformanceClient: Event not found for",n)},e.prototype.cacheEventByCorrelationId=function(t){var n=this.eventsByCorrelationId.get(t.correlationId);n?(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" added/updated",t.correlationId),n.incompleteSubMeasurements=n.incompleteSubMeasurements||new Map,n.incompleteSubMeasurements.set(t.eventId,{name:t.name,startTimeMs:t.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" started",t.correlationId),this.eventsByCorrelationId.set(t.correlationId,Fa({},t)))},e.prototype.getQueueInfo=function(t){var n=this.queueMeasurements.get(t);n||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+t);var r=0,i=0,o=0;return n?.forEach(function(a){r+=a.queueTime,i++,o+=a.manuallyCompleted?1:0}),{totalQueueTime:r,totalQueueCount:i,manuallyCompletedCount:o}},e.prototype.discardMeasurements=function(t){this.logger.trace("PerformanceClient: Performance measurements discarded",t),this.eventsByCorrelationId.delete(t)},e.prototype.discardCache=function(t){this.discardMeasurements(t),this.logger.trace("PerformanceClient: QueueMeasurements discarded",t),this.queueMeasurements.delete(t),this.logger.trace("PerformanceClient: Pre-queue times discarded",t),this.preQueueTimeByCorrelationId.delete(t)},e.prototype.addPerformanceCallback=function(t){var n=this.generateId();return this.callbacks.set(n,t),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+n),n},e.prototype.removePerformanceCallback=function(t){var n=this.callbacks.delete(t);return n?this.logger.verbose("PerformanceClient: Performance callback "+t+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+t+" not removed."),n},e.prototype.emitEvents=function(t,n){var r=this;this.logger.verbose("PerformanceClient: Emitting performance events",n),this.callbacks.forEach(function(i,o){r.logger.trace("PerformanceClient: Emitting event to callback "+o,n),i.apply(null,[t])})},e.prototype.truncateIntegralFields=function(t,n){n.forEach(function(r){r in t&&typeof t[r]=="number"&&(t[r]=Math.floor(t[r]))})},e})();/*! @azure/msal-common v13.3.3 2024-06-06 */var ZYe=(function(){function e(){}return e.prototype.startMeasurement=function(){},e.prototype.endMeasurement=function(){},e.prototype.flushMeasurement=function(){return null},e})(),Xvi=(function(e){Ap(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new ZYe},t.prototype.startPerformanceMeasurement=function(){return new ZYe},t.prototype.calculateQueuedTime=function(n,r){return 0},t.prototype.addQueueMeasurement=function(n,r,i){},t.prototype.setPreQueueTime=function(n,r){},t})(UAt);/*! @azure/msal-browser v2.39.0 2024-06-06 */var An={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.  For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},tr=(function(e){Id(t,e);function t(n,r){var i=e.call(this,n,r)||this;return Object.setPrototypeOf(i,t.prototype),i.name="BrowserAuthError",i}return t.createPkceNotGeneratedError=function(n){return new t(An.pkceNotGenerated.code,An.pkceNotGenerated.desc+" Detail:"+n)},t.createCryptoNotAvailableError=function(n){return new t(An.cryptoDoesNotExist.code,An.cryptoDoesNotExist.desc+" Detail:"+n)},t.createHttpMethodNotImplementedError=function(n){return new t(An.httpMethodNotImplementedError.code,An.httpMethodNotImplementedError.desc+" Given Method: "+n)},t.createEmptyNavigationUriError=function(){return new t(An.emptyNavigateUriError.code,An.emptyNavigateUriError.desc)},t.createEmptyHashError=function(n){return new t(An.hashEmptyError.code,An.hashEmptyError.desc+" Given Url: "+n)},t.createHashDoesNotContainStateError=function(){return new t(An.hashDoesNotContainStateError.code,An.hashDoesNotContainStateError.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(An.hashDoesNotContainKnownPropertiesError.code,An.hashDoesNotContainKnownPropertiesError.desc)},t.createUnableToParseStateError=function(){return new t(An.unableToParseStateError.code,An.unableToParseStateError.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(An.stateInteractionTypeMismatchError.code,An.stateInteractionTypeMismatchError.desc)},t.createInteractionInProgressError=function(){return new t(An.interactionInProgress.code,An.interactionInProgress.desc)},t.createPopupWindowError=function(n){var r=An.popupWindowError.desc;return r=mr.isEmpty(n)?r:r+" Details: "+n,new t(An.popupWindowError.code,r)},t.createEmptyWindowCreatedError=function(){return new t(An.emptyWindowError.code,An.emptyWindowError.desc)},t.createUserCancelledError=function(){return new t(An.userCancelledError.code,An.userCancelledError.desc)},t.createMonitorPopupTimeoutError=function(){return new t(An.monitorPopupTimeoutError.code,An.monitorPopupTimeoutError.desc)},t.createMonitorIframeTimeoutError=function(){return new t(An.monitorIframeTimeoutError.code,An.monitorIframeTimeoutError.desc)},t.createRedirectInIframeError=function(n){return new t(An.redirectInIframeError.code,An.redirectInIframeError.desc+" (window.parent !== window) => "+n)},t.createBlockReloadInHiddenIframeError=function(){return new t(An.blockTokenRequestsInHiddenIframeError.code,An.blockTokenRequestsInHiddenIframeError.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(An.blockAcquireTokenInPopupsError.code,An.blockAcquireTokenInPopupsError.desc)},t.createIframeClosedPrematurelyError=function(){return new t(An.iframeClosedPrematurelyError.code,An.iframeClosedPrematurelyError.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(An.silentLogoutUnsupportedError.code,An.silentLogoutUnsupportedError.desc)},t.createNoAccountError=function(){return new t(An.noAccountError.code,An.noAccountError.desc)},t.createSilentPromptValueError=function(n){return new t(An.silentPromptValueError.code,An.silentPromptValueError.desc+" Given value: "+n)},t.createUnableToParseTokenRequestCacheError=function(){return new t(An.unableToParseTokenRequestCacheError.code,An.unableToParseTokenRequestCacheError.desc)},t.createNoTokenRequestCacheError=function(){return new t(An.noTokenRequestCacheError.code,An.noTokenRequestCacheError.desc)},t.createAuthRequestNotSetError=function(){return new t(An.authRequestNotSet.code,An.authRequestNotSet.desc)},t.createNoCachedAuthorityError=function(){return new t(An.noCachedAuthorityError.code,An.noCachedAuthorityError.desc)},t.createInvalidCacheTypeError=function(){return new t(An.invalidCacheType.code,""+An.invalidCacheType.desc)},t.createNonBrowserEnvironmentError=function(){return new t(An.notInBrowserEnvironment.code,An.notInBrowserEnvironment.desc)},t.createDatabaseNotOpenError=function(){return new t(An.databaseNotOpen.code,An.databaseNotOpen.desc)},t.createNoNetworkConnectivityError=function(){return new t(An.noNetworkConnectivity.code,An.noNetworkConnectivity.desc)},t.createPostRequestFailedError=function(n,r){return new t(An.postRequestFailed.code,An.postRequestFailed.desc+" | Network client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},t.createGetRequestFailedError=function(n,r){return new t(An.getRequestFailed.code,An.getRequestFailed.desc+" | Network client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},t.createFailedToParseNetworkResponseError=function(n){return new t(An.failedToParseNetworkResponse.code,An.failedToParseNetworkResponse.desc+" | Attempted to reach: "+n.split("?")[0])},t.createUnableToLoadTokenError=function(n){return new t(An.unableToLoadTokenError.code,An.unableToLoadTokenError.desc+" | "+n)},t.createSigningKeyNotFoundInStorageError=function(n){return new t(An.signingKeyNotFoundInStorage.code,An.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+n)},t.createAuthCodeRequiredError=function(){return new t(An.authCodeRequired.code,An.authCodeRequired.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(An.authCodeOrNativeAccountRequired.code,An.authCodeOrNativeAccountRequired.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(An.spaCodeAndNativeAccountPresent.code,An.spaCodeAndNativeAccountPresent.desc)},t.createDatabaseUnavailableError=function(){return new t(An.databaseUnavailable.code,An.databaseUnavailable.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(An.unableToAcquireTokenFromNativePlatform.code,An.unableToAcquireTokenFromNativePlatform.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(An.nativeHandshakeTimeout.code,An.nativeHandshakeTimeout.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(An.nativeExtensionNotInstalled.code,An.nativeExtensionNotInstalled.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(An.nativeConnectionNotEstablished.code,An.nativeConnectionNotEstablished.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(An.nativeBrokerCalledBeforeInitialize.code,An.nativeBrokerCalledBeforeInitialize.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(An.nativePromptNotSupported.code,An.nativePromptNotSupported.desc)},t})(Gr);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ug={INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},AN={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Ty;(function(e){e.HandshakeRequest="Handshake",e.HandshakeResponse="HandshakeResponse",e.GetToken="GetToken",e.Response="Response"})(Ty||(Ty={}));var Xc;(function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage"})(Xc||(Xc={}));var Wv;(function(e){e.GET="GET",e.POST="POST"})(Wv||(Wv={}));var ba;(function(e){e.AUTHORITY="authority",e.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",e.SESSION_STATE="session.state",e.REQUEST_STATE="request.state",e.NONCE_IDTOKEN="nonce.id_token",e.ORIGIN_URI="request.origin",e.RENEW_STATUS="token.renew.status",e.URL_HASH="urlHash",e.REQUEST_PARAMS="request.params",e.SCOPES="scopes",e.INTERACTION_STATUS_KEY="interaction.status",e.CCS_CREDENTIAL="ccs.credential",e.CORRELATION_ID="request.correlationId",e.NATIVE_REQUEST="request.native",e.REDIRECT_CONTEXT="request.redirect.context"})(ba||(ba={}));var Rv;(function(e){e.ACCOUNT_KEYS="msal.account.keys",e.TOKEN_KEYS="msal.token.keys"})(Rv||(Rv={}));var QR;(function(e){e.WRAPPER_SKU="wrapper.sku",e.WRAPPER_VER="wrapper.version"})(QR||(QR={}));var Hs;(function(e){e[e.acquireTokenRedirect=861]="acquireTokenRedirect",e[e.acquireTokenPopup=862]="acquireTokenPopup",e[e.ssoSilent=863]="ssoSilent",e[e.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",e[e.handleRedirectPromise=865]="handleRedirectPromise",e[e.acquireTokenByCode=866]="acquireTokenByCode",e[e.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",e[e.logout=961]="logout",e[e.logoutPopup=962]="logoutPopup"})(Hs||(Hs={}));var Cr;(function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"})(Cr||(Cr={}));var Vc;(function(e){e.Startup="startup",e.Login="login",e.Logout="logout",e.AcquireToken="acquireToken",e.SsoSilent="ssoSilent",e.HandleRedirect="handleRedirect",e.None="none"})(Vc||(Vc={}));var JYe={scopes:fj},JP="jwk",e2e;(function(e){e.React="@azure/msal-react",e.Angular="@azure/msal-angular"})(e2e||(e2e={}));var t2e="msal.db",Yvi=1,Kvi=t2e+".keys",K1;(function(e){e[e.Default=0]="Default",e[e.AccessToken=1]="AccessToken",e[e.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",e[e.RefreshToken=3]="RefreshToken",e[e.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",e[e.Skip=5]="Skip"})(K1||(K1={}));/*! @azure/msal-browser v2.39.0 2024-06-06 */var N1={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},Hc=(function(e){Id(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.name="BrowserConfigurationAuthError",Object.setPrototypeOf(i,t.prototype),i}return t.createRedirectUriEmptyError=function(){return new t(N1.redirectUriNotSet.code,N1.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(N1.postLogoutUriNotSet.code,N1.postLogoutUriNotSet.desc)},t.createStorageNotSupportedError=function(n){return new t(N1.storageNotSupportedError.code,N1.storageNotSupportedError.desc+" Given Location: "+n)},t.createRedirectCallbacksNotSetError=function(){return new t(N1.noRedirectCallbacksSet.code,N1.noRedirectCallbacksSet.desc)},t.createStubPcaInstanceCalledError=function(){return new t(N1.stubPcaInstanceCalled.code,N1.stubPcaInstanceCalled.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(N1.inMemRedirectUnavailable.code,N1.inMemRedirectUnavailable.desc)},t.createEntropyNotProvided=function(){return new t(N1.entropyNotProvided.code,N1.entropyNotProvided.desc)},t})(Gr);/*! @azure/msal-browser v2.39.0 2024-06-06 */var eKe=(function(){function e(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return e.prototype.validateWindowStorage=function(t){if(t!==Xc.LocalStorage&&t!==Xc.SessionStorage)throw Hc.createStorageNotSupportedError(t);var n=!!window[t];if(!n)throw Hc.createStorageNotSupportedError(t)},e.prototype.getItem=function(t){return this.windowStorage.getItem(t)},e.prototype.setItem=function(t,n){this.windowStorage.setItem(t,n)},e.prototype.removeItem=function(t){this.windowStorage.removeItem(t)},e.prototype.getKeys=function(){return Object.keys(this.windowStorage)},e.prototype.containsKey=function(t){return this.windowStorage.hasOwnProperty(t)},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var n2e=(function(){function e(){this.cache=new Map}return e.prototype.getItem=function(t){return this.cache.get(t)||null},e.prototype.setItem=function(t,n){this.cache.set(t,n)},e.prototype.removeItem=function(t){this.cache.delete(t)},e.prototype.getKeys=function(){var t=[];return this.cache.forEach(function(n,r){t.push(r)}),t},e.prototype.containsKey=function(t){return this.cache.has(t)},e.prototype.clear=function(){this.cache.clear()},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var XAt=(function(){function e(){}return e.extractBrowserRequestState=function(t,n){if(mr.isEmpty(n))return null;try{var r=Ny.parseRequestState(t,n);return r.libraryState.meta}catch(i){throw Ar.createInvalidStateError(n,i)}},e.parseServerResponseFromHash=function(t){if(!t)return{};var n=new ia(t);return ia.getDeserializedHash(n.getHash())},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var r2e=(function(e){Id(t,e);function t(n,r,i,o){var a=e.call(this,n,i,o)||this;return a.COOKIE_LIFE_MULTIPLIER=1440*60*1e3,a.cacheConfig=r,a.logger=o,a.internalStorage=new n2e,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation,a.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(a.migrateCacheEntries(),a.createKeyMaps()),a}return t.prototype.setupBrowserStorage=function(n){switch(n){case Xc.LocalStorage:case Xc.SessionStorage:try{return new eKe(n)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=Xc.MemoryStorage,new n2e},t.prototype.setupTemporaryCacheStorage=function(n,r){switch(r){case Xc.LocalStorage:case Xc.SessionStorage:try{return new eKe(n||Xc.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}case Xc.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var n=this,r=yt.CACHE_PREFIX+"."+fu.ID_TOKEN,i=yt.CACHE_PREFIX+"."+fu.CLIENT_INFO,o=yt.CACHE_PREFIX+"."+fu.ERROR,a=yt.CACHE_PREFIX+"."+fu.ERROR_DESC,s=this.browserStorage.getItem(r),l=this.browserStorage.getItem(i),c=this.browserStorage.getItem(o),u=this.browserStorage.getItem(a),d=[s,l,c,u],p=[fu.ID_TOKEN,fu.CLIENT_INFO,fu.ERROR,fu.ERROR_DESC];p.forEach(function(h,g){return n.migrateCacheEntry(h,d[g])})},t.prototype.migrateCacheEntry=function(n,r){r&&this.setTemporaryCache(n,r,!0)},t.prototype.createKeyMaps=function(){var n=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var r=this.getItem(Rv.ACCOUNT_KEYS),i=this.getItem(Rv.TOKEN_KEYS+"."+this.clientId);if(r&&i){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var o=this.browserStorage.getKeys();o.forEach(function(a){if(n.isCredentialKey(a)){var s=n.getItem(a);if(s){var l=n.validateAndParseJson(s);if(l&&l.hasOwnProperty("credentialType"))switch(l.credentialType){case ti.ID_TOKEN:if(JC.isIdTokenEntity(l)){n.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),n.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+a+" found, saving key to token key map");var c=q1.toObject(new JC,l),u=n.updateCredentialCacheKey(a,c);n.addTokenKey(u,ti.ID_TOKEN);return}else n.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),n.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+a);break;case ti.ACCESS_TOKEN:case ti.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(ex.isAccessTokenEntity(l)){n.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),n.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+a+" found, saving key to token key map");var d=q1.toObject(new ex,l),u=n.updateCredentialCacheKey(a,d);n.addTokenKey(u,ti.ACCESS_TOKEN);return}else n.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),n.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+a);break;case ti.REFRESH_TOKEN:if(YR.isRefreshTokenEntity(l)){n.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),n.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+a+" found, saving key to token key map");var p=q1.toObject(new YR,l),u=n.updateCredentialCacheKey(a,p);n.addTokenKey(u,ti.REFRESH_TOKEN);return}else n.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),n.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+a);break}}}if(n.isAccountKey(a)){var s=n.getItem(a);if(s){var h=n.validateAndParseJson(s);h&&M0.isAccountEntity(h)&&(n.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),n.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+a+" found, saving key to account key map"),n.addAccountKeyToMap(a))}}})},t.prototype.validateAndParseJson=function(n){try{var r=JSON.parse(n);return r&&typeof r=="object"?r:null}catch{return null}},t.prototype.getItem=function(n){return this.browserStorage.getItem(n)},t.prototype.setItem=function(n,r){this.browserStorage.setItem(n,r)},t.prototype.getAccount=function(n){this.logger.trace("BrowserCacheManager.getAccount called");var r=this.getItem(n);if(!r)return this.removeAccountKeyFromMap(n),null;var i=this.validateAndParseJson(r);return!i||!M0.isAccountEntity(i)?(this.removeAccountKeyFromMap(n),null):q1.toObject(new M0,i)},t.prototype.setAccount=function(n){this.logger.trace("BrowserCacheManager.setAccount called");var r=n.generateAccountKey();this.setItem(r,JSON.stringify(n)),this.addAccountKeyToMap(r)},t.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var n=this.getItem(Rv.ACCOUNT_KEYS);return n?JSON.parse(n):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},t.prototype.addAccountKeyToMap=function(n){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+n);var r=this.getAccountKeys();r.indexOf(n)===-1?(r.push(n),this.setItem(Rv.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},t.prototype.removeAccountKeyFromMap=function(n){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+n);var r=this.getAccountKeys(),i=r.indexOf(n);i>-1?(r.splice(i,1),this.setItem(Rv.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},t.prototype.removeAccount=function(n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return e.prototype.removeAccount.call(this,n),this.removeAccountKeyFromMap(n),[2]})})},t.prototype.removeIdToken=function(n){e.prototype.removeIdToken.call(this,n),this.removeTokenKey(n,ti.ID_TOKEN)},t.prototype.removeAccessToken=function(n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return e.prototype.removeAccessToken.call(this,n),this.removeTokenKey(n,ti.ACCESS_TOKEN),[2]})})},t.prototype.removeRefreshToken=function(n){e.prototype.removeRefreshToken.call(this,n),this.removeTokenKey(n,ti.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var n=this.getItem(Rv.TOKEN_KEYS+"."+this.clientId);if(n){var r=this.validateAndParseJson(n);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},t.prototype.addTokenKey=function(n,r){this.logger.trace("BrowserCacheManager addTokenKey called");var i=this.getTokenKeys();switch(r){case ti.ID_TOKEN:i.idToken.indexOf(n)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),i.idToken.push(n));break;case ti.ACCESS_TOKEN:i.accessToken.indexOf(n)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),i.accessToken.push(n));break;case ti.REFRESH_TOKEN:i.refreshToken.indexOf(n)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),i.refreshToken.push(n));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+r),Ar.createUnexpectedCredentialTypeError()}this.setItem(Rv.TOKEN_KEYS+"."+this.clientId,JSON.stringify(i))},t.prototype.removeTokenKey=function(n,r){this.logger.trace("BrowserCacheManager removeTokenKey called");var i=this.getTokenKeys();switch(r){case ti.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+n+" from map");var o=i.idToken.indexOf(n);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),i.idToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case ti.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+n+" from map");var a=i.accessToken.indexOf(n);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),i.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case ti.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+n+" from map");var s=i.refreshToken.indexOf(n);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),i.refreshToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+r),Ar.createUnexpectedCredentialTypeError()}this.setItem(Rv.TOKEN_KEYS+"."+this.clientId,JSON.stringify(i))},t.prototype.getIdTokenCredential=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.ID_TOKEN),null;var i=this.validateAndParseJson(r);return!i||!JC.isIdTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),q1.toObject(new JC,i))},t.prototype.setIdTokenCredential=function(n){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var r=n.generateCredentialKey();this.setItem(r,JSON.stringify(n)),this.addTokenKey(r,ti.ID_TOKEN)},t.prototype.getAccessTokenCredential=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.ACCESS_TOKEN),null;var i=this.validateAndParseJson(r);return!i||!ex.isAccessTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),q1.toObject(new ex,i))},t.prototype.setAccessTokenCredential=function(n){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var r=n.generateCredentialKey();this.setItem(r,JSON.stringify(n)),this.addTokenKey(r,ti.ACCESS_TOKEN)},t.prototype.getRefreshTokenCredential=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.REFRESH_TOKEN),null;var i=this.validateAndParseJson(r);return!i||!YR.isRefreshTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(n,ti.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),q1.toObject(new YR,i))},t.prototype.setRefreshTokenCredential=function(n){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var r=n.generateCredentialKey();this.setItem(r,JSON.stringify(n)),this.addTokenKey(r,ti.REFRESH_TOKEN)},t.prototype.getAppMetadata=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var i=this.validateAndParseJson(r);return!i||!Zbe.isAppMetadataEntity(n,i)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),q1.toObject(new Zbe,i))},t.prototype.setAppMetadata=function(n){this.logger.trace("BrowserCacheManager.setAppMetadata called");var r=n.generateAppMetadataKey();this.setItem(r,JSON.stringify(n))},t.prototype.getServerTelemetry=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var i=this.validateAndParseJson(r);return!i||!WX.isServerTelemetryEntity(n,i)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),q1.toObject(new WX,i))},t.prototype.setServerTelemetry=function(n,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(n,JSON.stringify(r))},t.prototype.getAuthorityMetadata=function(n){var r=this.internalStorage.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var i=this.validateAndParseJson(r);return i&&Jbe.isAuthorityMetadataEntity(n,i)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),q1.toObject(new Jbe,i)):null},t.prototype.getAuthorityMetadataKeys=function(){var n=this,r=this.internalStorage.getKeys();return r.filter(function(i){return n.isAuthorityMetadata(i)})},t.prototype.setWrapperMetadata=function(n,r){this.internalStorage.setItem(QR.WRAPPER_SKU,n),this.internalStorage.setItem(QR.WRAPPER_VER,r)},t.prototype.getWrapperMetadata=function(){var n=this.internalStorage.getItem(QR.WRAPPER_SKU)||yt.EMPTY_STRING,r=this.internalStorage.getItem(QR.WRAPPER_VER)||yt.EMPTY_STRING;return[n,r]},t.prototype.setAuthorityMetadata=function(n,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(n,JSON.stringify(r))},t.prototype.getActiveAccount=function(){var n=this.generateCacheKey(fu.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(n);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var i=this.generateCacheKey(fu.ACTIVE_ACCOUNT),o=this.getItem(i);if(!o)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:o})[0]||null;return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(r);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},t.prototype.setActiveAccount=function(n){var r=this.generateCacheKey(fu.ACTIVE_ACCOUNT_FILTERS),i=this.generateCacheKey(fu.ACTIVE_ACCOUNT);if(n){this.logger.verbose("setActiveAccount: Active account set");var o={homeAccountId:n.homeAccountId,localAccountId:n.localAccountId};this.browserStorage.setItem(r,JSON.stringify(o)),this.browserStorage.setItem(i,n.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(i)},t.prototype.getAccountInfoByFilter=function(n){var r=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+r.length+" accounts found"),r.filter(function(i){return!(n.username&&n.username.toLowerCase()!==i.username.toLowerCase()||n.homeAccountId&&n.homeAccountId!==i.homeAccountId||n.localAccountId&&n.localAccountId!==i.localAccountId||n.tenantId&&n.tenantId!==i.tenantId||n.environment&&n.environment!==i.environment)})},t.prototype.getAccountInfoByHints=function(n,r){var i=this.getAllAccounts().filter(function(o){if(r){var a=o.idTokenClaims&&o.idTokenClaims.sid;return r===a}return n?n===o.username:!1});if(i.length===1)return i[0];if(i.length>1)throw Ar.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(n){var r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var i=this.validateAndParseJson(r);return!i||!KYe.isThrottlingEntity(n,i)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),q1.toObject(new KYe,i))},t.prototype.setThrottlingCache=function(n,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(n,JSON.stringify(r))},t.prototype.getTemporaryCache=function(n,r){var i=r?this.generateCacheKey(n):n;if(this.cacheConfig.storeAuthStateInCookie){var o=this.getItemCookie(i);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}var a=this.temporaryCacheStorage.getItem(i);if(!a){if(this.cacheConfig.cacheLocation===Xc.LocalStorage){var s=this.browserStorage.getItem(i);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a},t.prototype.setTemporaryCache=function(n,r,i){var o=i?this.generateCacheKey(n):n;this.temporaryCacheStorage.setItem(o,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(o,r))},t.prototype.removeItem=function(n){this.browserStorage.removeItem(n),this.temporaryCacheStorage.removeItem(n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(n))},t.prototype.containsKey=function(n){return this.browserStorage.containsKey(n)||this.temporaryCacheStorage.containsKey(n)},t.prototype.getKeys=function(){return e3e(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return dn(this,void 0,void 0,function(){var n=this;return pn(this,function(r){switch(r.label){case 0:return[4,this.removeAllAccounts()];case 1:return r.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(i){(n.browserStorage.containsKey(i)||n.temporaryCacheStorage.containsKey(i))&&(i.indexOf(yt.CACHE_PREFIX)!==-1||i.indexOf(n.clientId)!==-1)&&n.removeItem(i)}),this.internalStorage.clear(),[2]}})})},t.prototype.clearTokensAndKeysWithClaims=function(){return dn(this,void 0,void 0,function(){var n,r,i=this;return pn(this,function(o){switch(o.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),n=this.getTokenKeys(),r=[],n.accessToken.forEach(function(a){var s=i.getAccessTokenCredential(a);s?.requestedClaimsHash&&a.includes(s.requestedClaimsHash.toLowerCase())&&r.push(i.removeAccessToken(a))}),[4,Promise.all(r)];case 1:return o.sent(),r.length>0&&this.logger.warning(r.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},t.prototype.setItemCookie=function(n,r,i){var o=encodeURIComponent(n)+"="+encodeURIComponent(r)+";path=/;SameSite=Lax;";if(i){var a=this.getCookieExpirationTime(i);o+="expires="+a+";"}this.cacheConfig.secureCookies&&(o+="Secure;"),document.cookie=o},t.prototype.getItemCookie=function(n){for(var r=encodeURIComponent(n)+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){for(var a=i[o];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(r)===0)return decodeURIComponent(a.substring(r.length,a.length))}return yt.EMPTY_STRING},t.prototype.clearMsalCookies=function(){var n=this,r=yt.CACHE_PREFIX+"."+this.clientId,i=document.cookie.split(";");i.forEach(function(o){for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(r)===0){var a=o.split("=")[0];n.clearItemCookie(a)}})},t.prototype.clearItemCookie=function(n){this.setItemCookie(n,yt.EMPTY_STRING,-1)},t.prototype.getCookieExpirationTime=function(n){var r=new Date,i=new Date(r.getTime()+n*this.COOKIE_LIFE_MULTIPLIER);return i.toUTCString()},t.prototype.getCache=function(){return this.browserStorage},t.prototype.setCache=function(){},t.prototype.generateCacheKey=function(n){var r=this.validateAndParseJson(n);return r?JSON.stringify(n):mr.startsWith(n,yt.CACHE_PREFIX)||mr.startsWith(n,fu.ADAL_ID_TOKEN)?n:yt.CACHE_PREFIX+"."+this.clientId+"."+n},t.prototype.generateAuthorityKey=function(n){var r=Ny.parseRequestState(this.cryptoImpl,n).libraryState.id;return this.generateCacheKey(ba.AUTHORITY+"."+r)},t.prototype.generateNonceKey=function(n){var r=Ny.parseRequestState(this.cryptoImpl,n).libraryState.id;return this.generateCacheKey(ba.NONCE_IDTOKEN+"."+r)},t.prototype.generateStateKey=function(n){var r=Ny.parseRequestState(this.cryptoImpl,n).libraryState.id;return this.generateCacheKey(ba.REQUEST_STATE+"."+r)},t.prototype.getCachedAuthority=function(n){var r=this.generateStateKey(n),i=this.getTemporaryCache(r);if(!i)return null;var o=this.generateAuthorityKey(i);return this.getTemporaryCache(o)},t.prototype.updateCacheEntries=function(n,r,i,o,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(n);this.setTemporaryCache(s,n,!1);var l=this.generateNonceKey(n);this.setTemporaryCache(l,r,!1);var c=this.generateAuthorityKey(n);if(this.setTemporaryCache(c,i,!1),a){var u={credential:a.homeAccountId,type:th.HOME_ACCOUNT_ID};this.setTemporaryCache(ba.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!mr.isEmpty(o)){var u={credential:o,type:th.UPN};this.setTemporaryCache(ba.CCS_CREDENTIAL,JSON.stringify(u),!0)}},t.prototype.resetRequestCache=function(n){var r=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),mr.isEmpty(n)||this.getKeys().forEach(function(i){i.indexOf(n)!==-1&&r.removeItem(i)}),n&&(this.removeItem(this.generateStateKey(n)),this.removeItem(this.generateNonceKey(n)),this.removeItem(this.generateAuthorityKey(n))),this.removeItem(this.generateCacheKey(ba.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(ba.ORIGIN_URI)),this.removeItem(this.generateCacheKey(ba.URL_HASH)),this.removeItem(this.generateCacheKey(ba.CORRELATION_ID)),this.removeItem(this.generateCacheKey(ba.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(ba.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},t.prototype.cleanRequestByState=function(n){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),n){var r=this.generateStateKey(n),i=this.temporaryCacheStorage.getItem(r);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+i),this.resetRequestCache(i||yt.EMPTY_STRING)}this.clearMsalCookies()},t.prototype.cleanRequestByInteractionType=function(n){var r=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(i){if(i.indexOf(ba.REQUEST_STATE)!==-1){var o=r.temporaryCacheStorage.getItem(i);if(o){var a=XAt.extractBrowserRequestState(r.cryptoImpl,o);a&&a.interactionType===n&&(r.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+o),r.resetRequestCache(o))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},t.prototype.cacheCodeRequest=function(n,r){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var i=r.base64Encode(JSON.stringify(n));this.setTemporaryCache(ba.REQUEST_PARAMS,i,!0)},t.prototype.getCachedRequest=function(n,r){this.logger.trace("BrowserCacheManager.getCachedRequest called");var i=this.getTemporaryCache(ba.REQUEST_PARAMS,!0);if(!i)throw tr.createNoTokenRequestCacheError();var o=this.validateAndParseJson(r.base64Decode(i));if(!o)throw tr.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(ba.REQUEST_PARAMS)),mr.isEmpty(o.authority)){var a=this.generateAuthorityKey(n),s=this.getTemporaryCache(a);if(!s)throw tr.createNoCachedAuthorityError();o.authority=s}return o},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var n=this.getTemporaryCache(ba.NATIVE_REQUEST,!0);if(!n)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var r=this.validateAndParseJson(n);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},t.prototype.isInteractionInProgress=function(n){var r=this.getInteractionInProgress();return n?r===this.clientId:!!r},t.prototype.getInteractionInProgress=function(){var n=yt.CACHE_PREFIX+"."+ba.INTERACTION_STATUS_KEY;return this.getTemporaryCache(n,!1)},t.prototype.setInteractionInProgress=function(n){var r=yt.CACHE_PREFIX+"."+ba.INTERACTION_STATUS_KEY;if(n){if(this.getInteractionInProgress())throw tr.createInteractionInProgressError();this.setTemporaryCache(r,this.clientId,!1)}else!n&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)},t.prototype.getLegacyLoginHint=function(){var n=this.getTemporaryCache(fu.ADAL_ID_TOKEN);n&&(this.browserStorage.removeItem(fu.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var r=this.getTemporaryCache(fu.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(fu.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var i=r||n;if(i){var o=new Bb(i,this.cryptoImpl);if(o.claims&&o.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),o.claims.preferred_username;if(o.claims&&o.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),o.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},t.prototype.updateCredentialCacheKey=function(n,r){var i=r.generateCredentialKey();if(n!==i){var o=this.getItem(n);if(o)return this.removeItem(n),this.setItem(i,o),this.logger.verbose("Updated an outdated "+r.credentialType+" cache key"),i;this.logger.error("Attempted to update an outdated "+r.credentialType+" cache key but no item matching the outdated key was found in storage")}return n},t.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(ba.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(n){this.setTemporaryCache(ba.REDIRECT_CONTEXT,n,!0)},t.prototype.hydrateCache=function(n,r){var i,o,a,s,l,c;return dn(this,void 0,void 0,function(){var u,d,p,h;return pn(this,function(g){switch(g.label){case 0:return u=JC.createIdTokenEntity(((i=n.account)===null||i===void 0?void 0:i.homeAccountId)||"",((o=n.account)===null||o===void 0?void 0:o.environment)||"",n.idToken,this.clientId,n.tenantId),r.claims?[4,this.cryptoImpl.hashString(r.claims)]:[3,2];case 1:d=g.sent(),g.label=2;case 2:return p=ex.createAccessTokenEntity(((a=n.account)===null||a===void 0?void 0:a.homeAccountId)||"",((s=n.account)===null||s===void 0?void 0:s.environment)||"",n.accessToken,this.clientId,n.tenantId,n.scopes.join(" "),((l=n.expiresOn)===null||l===void 0?void 0:l.getTime())||0,((c=n.extExpiresOn)===null||c===void 0?void 0:c.getTime())||0,this.cryptoImpl,void 0,n.tokenType,void 0,r.sshKid,r.claims,d),h=new jI(void 0,u,p),[2,this.saveCacheRecord(h)]}})})},t})(q1),Qvi=function(e,t){var n={cacheLocation:Xc.MemoryStorage,temporaryCacheLocation:Xc.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new r2e(e,n,DX,t)};/*! @azure/msal-browser v2.39.0 2024-06-06 */var rpe="@azure/msal-browser",ZF="2.39.0";/*! @azure/msal-browser v2.39.0 2024-06-06 */var Zvi=(function(){function e(){}return e.prototype.sendGetRequestAsync=function(t,n){return dn(this,void 0,void 0,function(){var r,i,o;return pn(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(t,{method:Wv.GET,headers:this.getFetchHeaders(n)})];case 1:return r=a.sent(),[3,3];case 2:throw i=a.sent(),window.navigator.onLine?tr.createGetRequestFailedError(i,t):tr.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),o={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 4:return[2,(o.body=a.sent(),o.status=r.status,o)];case 5:throw a.sent(),tr.createFailedToParseNetworkResponseError(t);case 6:return[2]}})})},e.prototype.sendPostRequestAsync=function(t,n){return dn(this,void 0,void 0,function(){var r,i,o,a;return pn(this,function(s){switch(s.label){case 0:r=n&&n.body||yt.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(t,{method:Wv.POST,headers:this.getFetchHeaders(n),body:r})];case 2:return i=s.sent(),[3,4];case 3:throw o=s.sent(),window.navigator.onLine?tr.createPostRequestFailedError(o,t):tr.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),a={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 5:return[2,(a.body=s.sent(),a.status=i.status,a)];case 6:throw s.sent(),tr.createFailedToParseNetworkResponseError(t);case 7:return[2]}})})},e.prototype.getFetchHeaders=function(t){var n=new Headers;if(!(t&&t.headers))return n;var r=t.headers;return Object.keys(r).forEach(function(i){n.append(i,r[i])}),n},e.prototype.getHeaderDict=function(t){var n={};return t.forEach(function(r,i){n[i]=r}),n},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Jvi=(function(){function e(){}return e.prototype.sendGetRequestAsync=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,this.sendRequestAsync(t,Wv.GET,n)]})})},e.prototype.sendPostRequestAsync=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,this.sendRequestAsync(t,Wv.POST,n)]})})},e.prototype.sendRequestAsync=function(t,n,r){var i=this;return new Promise(function(o,a){var s=new XMLHttpRequest;if(s.open(n,t,!0),i.setXhrHeaders(s,r),s.onload=function(){(s.status<200||s.status>=300)&&(n===Wv.POST?a(tr.createPostRequestFailedError("Failed with status "+s.status,t)):a(tr.createGetRequestFailedError("Failed with status "+s.status,t)));try{var l=JSON.parse(s.responseText),c={headers:i.getHeaderDict(s),body:l,status:s.status};o(c)}catch{a(tr.createFailedToParseNetworkResponseError(t))}},s.onerror=function(){window.navigator.onLine?n===Wv.POST?a(tr.createPostRequestFailedError("Failed with status "+s.status,t)):a(tr.createGetRequestFailedError("Failed with status "+s.status,t)):a(tr.createNoNetworkConnectivityError())},n===Wv.POST&&r&&r.body)s.send(r.body);else if(n===Wv.GET)s.send();else throw tr.createHttpMethodNotImplementedError(n)})},e.prototype.setXhrHeaders=function(t,n){if(n&&n.headers){var r=n.headers;Object.keys(r).forEach(function(i){t.setRequestHeader(i,r[i])})}},e.prototype.getHeaderDict=function(t){var n=t.getAllResponseHeaders(),r=n.trim().split(/[\r\n]+/),i={};return r.forEach(function(o){var a=o.split(": "),s=a.shift(),l=a.join(": ");s&&l&&(i[s]=l)}),i},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Zl=(function(){function e(){}return e.clearHash=function(t){t.location.hash=yt.EMPTY_STRING,typeof t.history.replaceState=="function"&&t.history.replaceState(null,yt.EMPTY_STRING,""+t.location.origin+t.location.pathname+t.location.search)},e.replaceHash=function(t){var n=t.split("#");n.shift(),window.location.hash=n.length>0?n.join("#"):yt.EMPTY_STRING},e.isInIframe=function(){return window.parent!==window},e.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(Ug.POPUP_NAME_PREFIX+".")===0},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var t=new ia(window.location.href),n=t.getUrlComponents();return n.Protocol+"//"+n.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Zvi:new Jvi},e.blockReloadInHiddenIframes=function(){var t=ia.hashContainsKnownProperties(window.location.hash);if(t&&e.isInIframe())throw tr.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===Cr.Redirect&&r&&!n)throw tr.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw tr.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(t){if(!t)throw tr.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(t,n){if(t&&!n)throw tr.createNativeBrokerCalledBeforeInitialize()},e.detectIEOrEdge=function(){var t=window.navigator.userAgent,n=t.indexOf("MSIE "),r=t.indexOf("Trident/"),i=t.indexOf("Edge/"),o=n>0||r>0,a=i>0;return o||a},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var YAt=(function(){function e(t,n,r,i,o,a,s,l,c){this.config=t,this.browserStorage=n,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=a,this.nativeMessageHandler=l,this.correlationId=c||this.browserCrypto.createNewGuid(),this.logger=i.clone(Ug.MSAL_SKU,ZF,this.correlationId),this.performanceClient=s}return e.prototype.clearCacheOnLogout=function(t){return dn(this,void 0,void 0,function(){return pn(this,function(n){switch(n.label){case 0:if(!t)return[3,5];M0.accountInfoIsEqual(t,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(M0.generateAccountCacheKey(t))];case 2:return n.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return n.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return n.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return n.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return n.sent(),[3,9];case 8:return n.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},e.prototype.initializeBaseRequest=function(t,n){return dn(this,void 0,void 0,function(){var r,i,o,a;return pn(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.InitializeBaseRequest,t.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),r=t.authority||this.config.auth.authority,n?[4,this.validateRequestAuthority(r,n)]:[3,2];case 1:s.sent(),s.label=2;case 2:if(i=e3e(t&&t.scopes||[]),o=Sr(Sr({},t),{correlationId:this.correlationId,authority:r,scopes:i}),!o.authenticationScheme)o.authenticationScheme=Qa.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(o.authenticationScheme===Qa.SSH){if(!t.sshJwk)throw Vs.createMissingSshJwkError();if(!t.sshKid)throw Vs.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+o.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&t.claims&&!mr.isEmptyObj(t.claims)?(a=o,[4,this.browserCrypto.hashString(t.claims)]):[3,4];case 3:a.requestedClaimsHash=s.sent(),s.label=4;case 4:return[2,o]}})})},e.prototype.getRedirectUri=function(t){this.logger.verbose("getRedirectUri called");var n=t||this.config.auth.redirectUri||Zl.getCurrentUri();return ia.getAbsoluteUrl(n,Zl.getCurrentUri())},e.prototype.validateRequestAuthority=function(t,n){return dn(this,void 0,void 0,function(){var r;return pn(this,function(i){switch(i.label){case 0:return[4,this.getDiscoveredAuthority(t)];case 1:if(r=i.sent(),!r.isAlias(n.environment))throw Vs.createAuthorityMismatchError();return[2]}})})},e.prototype.initializeServerTelemetryManager=function(t,n){this.logger.verbose("initializeServerTelemetryManager called");var r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:t,forceRefresh:n||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Uvi(r,this.browserStorage)},e.prototype.getDiscoveredAuthority=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){switch(r.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),n={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},t?(this.logger.verbose("Creating discovered authority with request authority"),[4,FX.createDiscoveredInstance(t,this.config.system.networkClient,this.browserStorage,n,this.logger)]):[3,2];case 1:return[2,r.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,FX.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,n,this.logger)];case 3:return[2,r.sent()]}})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ok=(function(e){Id(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.initializeAuthorizationCodeRequest=function(n){return dn(this,void 0,void 0,function(){var r,i;return pn(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),this.logger.verbose("initializeAuthorizationRequest called",n.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return r=o.sent(),i=Sr(Sr({},n),{redirectUri:n.redirectUri,code:yt.EMPTY_STRING,codeVerifier:r.verifier}),n.codeChallenge=r.challenge,n.codeChallengeMethod=yt.S256_CODE_CHALLENGE_METHOD,[2,i]}})})},t.prototype.initializeLogoutRequest=function(n){this.logger.verbose("initializeLogoutRequest called",n?.correlationId);var r=Sr({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},n);if(n)if(n.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(n.account){var i=this.getLogoutHintFromIdTokenClaims(n.account);i&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=i)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!n||n.postLogoutRedirectUri!==null?n&&n.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=ia.getAbsoluteUrl(n.postLogoutRedirectUri,Zl.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",r.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",r.correlationId),r.postLogoutRedirectUri=ia.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Zl.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=ia.getAbsoluteUrl(Zl.getCurrentUri(),Zl.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r},t.prototype.getLogoutHintFromIdTokenClaims=function(n){var r=n.idTokenClaims;if(r){if(r.login_hint)return r.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},t.prototype.createAuthCodeClient=function(n,r,i){return dn(this,void 0,void 0,function(){var o;return pn(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(n,r,i)];case 1:return o=a.sent(),[2,new VAt(o,this.performanceClient)]}})})},t.prototype.getClientConfiguration=function(n,r,i){return dn(this,void 0,void 0,function(){var o,a;return pn(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(r,i)];case 1:return o=s.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:o,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:n,libraryInfo:{sku:Ug.MSAL_SKU,version:ZF,cpu:yt.EMPTY_STRING,os:yt.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},t.prototype.validateAndExtractStateFromHash=function(n,r,i){if(this.logger.verbose("validateAndExtractStateFromHash called",i),!n.state)throw tr.createHashDoesNotContainStateError();var o=XAt.extractBrowserRequestState(this.browserCrypto,n.state);if(!o)throw tr.createUnableToParseStateError();if(o.interactionType!==r)throw tr.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",i),n.state},t.prototype.getDiscoveredAuthority=function(n,r){var i;return dn(this,void 0,void 0,function(){var o,a,s,l;return pn(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(Xt.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=n||this.config.auth.authority,l=i6.generateAuthority(s,r||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(Xt.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,FX.createDiscoveredInstance(l,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(u){return o.endMeasurement({success:!0}),u}).catch(function(u){throw o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})];case 1:return[2,c.sent()]}})})},t.prototype.initializeAuthorizationRequest=function(n,r){return dn(this,void 0,void 0,function(){var i,o,a,s,l,c,u;return pn(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),i=this.getRedirectUri(n.redirectUri),o={interactionType:r},a=Ny.setRequestState(this.browserCrypto,n&&n.state||yt.EMPTY_STRING,o),this.performanceClient.setPreQueueTime(Xt.InitializeBaseRequest,this.correlationId),l=[{}],[4,this.initializeBaseRequest(n)];case 1:return s=Sr.apply(void 0,[Sr.apply(void 0,l.concat([d.sent()])),{redirectUri:i,state:a,nonce:n.nonce||this.browserCrypto.createNewGuid(),responseMode:RX.FRAGMENT}]),c=n.account||this.browserStorage.getActiveAccount(),c&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+c.homeAccountId,this.correlationId),s.account=c),mr.isEmpty(s.loginHint)&&!c&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},t})(YAt);/*! @azure/msal-browser v2.39.0 2024-06-06 */var i3e=(function(){function e(t,n,r,i,o){this.authModule=t,this.browserStorage=n,this.authCodeRequest=r,this.logger=i,this.performanceClient=o}return e.prototype.handleCodeResponseFromHash=function(t,n,r,i){return dn(this,void 0,void 0,function(){var o,a,s;return pn(this,function(l){if(this.performanceClient.addQueueMeasurement(Xt.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),mr.isEmpty(t))throw tr.createEmptyHashError(t);if(o=this.browserStorage.generateStateKey(n),a=this.browserStorage.getTemporaryCache(o),!a)throw Ar.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(t,a)}catch(c){throw c instanceof c3&&c.subError===An.userCancelledError.code?tr.createUserCancelledError():c}return this.performanceClient.setPreQueueTime(Xt.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,n,r,i)]})})},e.prototype.handleCodeResponseFromServer=function(t,n,r,i,o){return o===void 0&&(o=!0),dn(this,void 0,void 0,function(){var a,s,l,c,u,d;return pn(this,function(p){switch(p.label){case 0:if(this.performanceClient.addQueueMeasurement(Xt.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw Ar.createStateNotFoundError("Cached State");return l=this.browserStorage.generateNonceKey(s),c=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=t.code,t.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(Xt.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(t.cloud_instance_host_name,r,i)]):[3,2];case 1:p.sent(),p.label=2;case 2:return o&&(t.nonce=c||void 0),t.state=s,t.client_info?this.authCodeRequest.clientInfo=t.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),this.performanceClient.setPreQueueTime(Xt.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,t)];case 3:return d=p.sent(),this.browserStorage.cleanRequestByState(n),[2,d]}})})},e.prototype.updateTokenEndpointAuthority=function(t,n,r){return dn(this,void 0,void 0,function(){var i,o;return pn(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),i="https://"+t+"/"+n.tenant+"/",[4,FX.createDiscoveredInstance(i,r,this.browserStorage,n.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return o=a.sent(),this.authModule.updateAuthority(o),[2]}})})},e.prototype.checkCcsCredentials=function(){var t=this.browserStorage.getTemporaryCache(ba.CCS_CREDENTIAL,!0);if(t)try{return JSON.parse(t)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+t)}return null},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var tKe=(function(e){Id(t,e);function t(n,r,i,o,a,s){var l=e.call(this,n,r,i,o,s)||this;return l.browserCrypto=a,l}return t.prototype.initiateAuthRequest=function(n,r){return dn(this,void 0,void 0,function(){var i,o;return pn(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),mr.isEmpty(n)?[3,7]:(r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ba.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ba.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+n),i={apiId:Hs.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1},typeof r.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),o=r.onRedirectNavigate(n),o===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,r.navigationClient.navigateExternal(n,i)])));case 1:return a.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,r.navigationClient.navigateExternal(n,i)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),tr.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(n,r,i,o){return dn(this,void 0,void 0,function(){var a,s,l,c,u,d,p;return pn(this,function(h){switch(h.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),mr.isEmpty(n))throw tr.createEmptyHashError(n);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(r),s=this.browserStorage.getTemporaryCache(a),!s)throw Ar.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(n,s)}catch(g){throw g instanceof c3&&g.subError===An.userCancelledError.code?tr.createUserCancelledError():g}return c=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,i,o)]:[3,2];case 1:h.sent(),h.label=2;case 2:return l.nonce=u||void 0,l.state=s,l.client_info?this.authCodeRequest.clientInfo=l.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,l)];case 3:return p=h.sent(),this.browserStorage.cleanRequestByState(r),[2,p]}})})},t})(i3e);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Vr;(function(e){e.INITIALIZE_START="msal:initializeStart",e.INITIALIZE_END="msal:initializeEnd",e.ACCOUNT_ADDED="msal:accountAdded",e.ACCOUNT_REMOVED="msal:accountRemoved",e.LOGIN_START="msal:loginStart",e.LOGIN_SUCCESS="msal:loginSuccess",e.LOGIN_FAILURE="msal:loginFailure",e.ACQUIRE_TOKEN_START="msal:acquireTokenStart",e.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",e.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",e.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",e.SSO_SILENT_START="msal:ssoSilentStart",e.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",e.SSO_SILENT_FAILURE="msal:ssoSilentFailure",e.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",e.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",e.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",e.HANDLE_REDIRECT_START="msal:handleRedirectStart",e.HANDLE_REDIRECT_END="msal:handleRedirectEnd",e.POPUP_OPENED="msal:popupOpened",e.LOGOUT_START="msal:logoutStart",e.LOGOUT_SUCCESS="msal:logoutSuccess",e.LOGOUT_FAILURE="msal:logoutFailure",e.LOGOUT_END="msal:logoutEnd",e.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(Vr||(Vr={}));/*! @azure/msal-browser v2.39.0 2024-06-06 */var BC;(function(e){e.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",e.USER_CANCEL="USER_CANCEL",e.NO_NETWORK="NO_NETWORK",e.TRANSIENT_ERROR="TRANSIENT_ERROR",e.PERSISTENT_ERROR="PERSISTENT_ERROR",e.DISABLED="DISABLED",e.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(BC||(BC={}));var n5={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},ob=(function(e){Id(t,e);function t(n,r,i){var o=e.call(this,n,r)||this;return Object.setPrototypeOf(o,t.prototype),o.name="NativeAuthError",o.ext=i,o}return t.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===BC.PERSISTENT_ERROR||this.ext.status===BC.DISABLED))return!0;switch(this.errorCode){case n5.extensionError.code:return!0;default:return!1}},t.createError=function(n,r,i){if(i&&i.status)switch(i.status){case BC.ACCOUNT_UNAVAILABLE:return om.createNativeAccountUnavailableError();case BC.USER_INTERACTION_REQUIRED:return new om(n,r);case BC.USER_CANCEL:return tr.createUserCancelledError();case BC.NO_NETWORK:return tr.createNoNetworkConnectivityError()}return new t(n,r,i)},t.createUserSwitchError=function(){return new t(n5.userSwitch.code,n5.userSwitch.desc)},t.createTokensNotFoundInCacheError=function(){return new t(n5.tokensNotFoundInCache.code,n5.tokensNotFoundInCache.desc)},t})(Gr);/*! @azure/msal-browser v2.39.0 2024-06-06 */var KAt=(function(e){Id(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s;return pn(this,function(l){switch(l.label){case 0:return r=this.performanceClient.startMeasurement(Xt.SilentCacheClientAcquireToken,n.correlationId),i=this.initializeServerTelemetryManager(Hs.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(i,n.authority,n.azureCloudOptions)];case 1:o=l.sent(),this.logger.verbose("Silent auth client created"),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,o.acquireCachedToken(n)];case 3:return a=l.sent(),r.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=l.sent(),s instanceof tr&&s.errorCode===An.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),r.endMeasurement({errorCode:s instanceof Gr&&s.errorCode||void 0,subErrorCode:s instanceof Gr&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(tr.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(n,r,i){return dn(this,void 0,void 0,function(){var o;return pn(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(n,r,i)];case 1:return o=a.sent(),[2,new qvi(o,this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(n,r){return dn(this,void 0,void 0,function(){var i;return pn(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(Xt.InitializeBaseRequest,this.correlationId),i=[Sr({},n)],[4,this.initializeBaseRequest(n,r)];case 1:return[2,Sr.apply(void 0,[Sr.apply(void 0,i.concat([o.sent()])),{account:r,forceRefresh:n.forceRefresh||!1}])]}})})},t})(Ok);/*! @azure/msal-browser v2.39.0 2024-06-06 */var HI=(function(e){Id(t,e);function t(n,r,i,o,a,s,l,c,u,d,p,h){var g=e.call(this,n,r,i,o,a,s,c,u,h)||this;return g.apiId=l,g.accountId=d,g.nativeMessageHandler=u,g.nativeStorageManager=p,g.silentCacheClient=new KAt(n,g.nativeStorageManager,i,o,a,s,c,u,h),g}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c;return pn(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),r=this.performanceClient.startMeasurement(Xt.NativeInteractionClientAcquireToken,n.correlationId),i=Pf.nowSeconds(),[4,this.initializeNativeRequest(n)];case 1:o=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,o)];case 3:return a=u.sent(),r.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,a];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:Ty.GetToken,request:o},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return l=u.sent(),c=this.validateNativeResponse(l),[2,this.handleNativeResponse(c,o,i).then(function(d){return r.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw r.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},t.prototype.createSilentCacheRequest=function(n,r){return{authority:n.authority,correlationId:this.correlationId,scopes:c0.fromString(n.scope).asArray(),account:r,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(n,r){return dn(this,void 0,void 0,function(){var i,o,a,s,l;return pn(this,function(c){switch(c.label){case 0:if(!n)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Ar.createNoAccountFoundError();if(i=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:n}),!i)throw Ar.createNoAccountFoundError();c.label=1;case 1:return c.trys.push([1,3,,4]),o=this.createSilentCacheRequest(r,i),[4,this.silentCacheClient.acquireToken(o)];case 2:return a=c.sent(),s=Sr(Sr({},i),{idTokenClaims:a.idTokenClaims}),[2,Sr(Sr({},a),{account:s})];case 3:throw l=c.sent(),l;case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l;return pn(this,function(c){switch(c.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(n)];case 1:r=c.sent(),i={method:Ty.GetToken,request:r},c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(i)];case 3:return o=c.sent(),this.validateNativeResponse(o),[3,5];case 4:if(a=c.sent(),a instanceof ob&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ba.NATIVE_REQUEST,JSON.stringify(r),!0),s={apiId:Hs.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(n.redirectUri),[4,this.navigationClient.navigateExternal(l,s)];case 6:return c.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return dn(this,void 0,void 0,function(){var n,r,i,o,a,s,l,c;return pn(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(n=this.browserStorage.getCachedNativeRequest(),!n)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];r=n.prompt,i=HYe(n,["prompt"]),r&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ba.NATIVE_REQUEST)),o={method:Ty.GetToken,request:i},a=Pf.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(o)];case 2:return s=u.sent(),this.validateNativeResponse(s),l=this.handleNativeResponse(s,i,a),this.browserStorage.setInteractionInProgress(!1),[2,l];case 3:throw c=u.sent(),this.browserStorage.setInteractionInProgress(!1),c;case 4:return[2]}})})},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(n,r,i){return dn(this,void 0,void 0,function(){var o,a,s,l,c;return pn(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),n.account.id!==r.accountId)throw ob.createUserSwitchError();return[4,this.getDiscoveredAuthority(r.authority)];case 1:return o=u.sent(),a=this.createIdTokenObj(n),s=this.createHomeAccountIdentifier(n,a),l=M0.createAccount({homeAccountId:s,idTokenClaims:a.claims,clientInfo:n.client_info,nativeAccountId:n.account.id},o),[4,this.generateAuthenticationResult(n,r,a,l,o.canonicalAuthority,i)];case 2:return c=u.sent(),this.cacheAccount(l),this.cacheNativeTokens(n,r,s,a,c.accessToken,c.tenantId,i),[2,c]}})})},t.prototype.createIdTokenObj=function(n){return new Bb(n.id_token||yt.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(n,r){var i=M0.generateHomeAccountId(n.client_info||yt.EMPTY_STRING,U1.Default,this.logger,this.browserCrypto,r.claims);return i},t.prototype.generateScopes=function(n,r){return n.scope?c0.fromString(n.scope):c0.fromString(r.scope)},t.prototype.generatePopAccessToken=function(n,r){return dn(this,void 0,void 0,function(){var i,o;return pn(this,function(a){switch(a.label){case 0:if(r.tokenType!==Qa.POP)return[3,2];if(n.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,n.shr];if(i=new ZP(this.browserCrypto),o={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce},!r.keyId)throw Ar.createKeyIdMissingError();return[4,i.signPopToken(n.access_token,r.keyId,o)];case 1:return[2,a.sent()];case 2:return[2,n.access_token]}})})},t.prototype.generateAuthenticationResult=function(n,r,i,o,a,s){return dn(this,void 0,void 0,function(){var l,c,u,d,p,h,g,m;return pn(this,function(v){switch(v.label){case 0:return l=this.addTelemetryFromNativeResponse(n),c=n.scope?c0.fromString(n.scope):c0.fromString(r.scope),u=n.account.properties||{},d=u.UID||i.claims.oid||i.claims.sub||yt.EMPTY_STRING,p=u.TenantId||i.claims.tid||yt.EMPTY_STRING,[4,this.generatePopAccessToken(n,r)];case 1:return h=v.sent(),g=r.tokenType===Qa.POP?Qa.POP:Qa.BEARER,m={authority:a,uniqueId:d,tenantId:p,scopes:c.asArray(),account:o.getAccountInfo(),idToken:n.id_token,idTokenClaims:i.claims,accessToken:h,fromCache:l?this.isResponseFromCache(l):!1,expiresOn:new Date(Number(s+n.expires_in)*1e3),tokenType:g,correlationId:this.correlationId,state:n.state,fromNativeBroker:!0},[2,m]}})})},t.prototype.cacheAccount=function(n){var r=this;this.browserStorage.setAccount(n),this.browserStorage.removeAccountContext(n).catch(function(i){r.logger.error("Error occurred while removing account context from browser storage. "+i)})},t.prototype.cacheNativeTokens=function(n,r,i,o,a,s,l){var c=JC.createIdTokenEntity(i,r.authority,n.id_token||yt.EMPTY_STRING,r.clientId,o.claims.tid||yt.EMPTY_STRING),u=r.tokenType===Qa.POP?yt.SHR_NONCE_VALIDITY:(typeof n.expires_in=="string"?parseInt(n.expires_in,10):n.expires_in)||0,d=l+u,p=this.generateScopes(n,r),h=ex.createAccessTokenEntity(i,r.authority,a,r.clientId,o?o.claims.tid||yt.EMPTY_STRING:s,p.printScopes(),d,0,this.browserCrypto),g=new jI(void 0,c,h);this.nativeStorageManager.saveCacheRecord(g)},t.prototype.addTelemetryFromNativeResponse=function(n){var r=this.getMATSFromResponse(n);return r?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:r.broker_version,matsAccountJoinOnStart:r.account_join_on_start,matsAccountJoinOnEnd:r.account_join_on_end,matsDeviceJoin:r.device_join,matsPromptBehavior:r.prompt_behavior,matsApiErrorCode:r.api_error_code,matsUiVisible:r.ui_visible,matsSilentCode:r.silent_code,matsSilentBiSubCode:r.silent_bi_sub_code,matsSilentMessage:r.silent_message,matsSilentStatus:r.silent_status,matsHttpStatus:r.http_status,matsHttpEventCount:r.http_event_count},this.correlationId),r):null},t.prototype.validateNativeResponse=function(n){if(n.hasOwnProperty("access_token")&&n.hasOwnProperty("id_token")&&n.hasOwnProperty("client_info")&&n.hasOwnProperty("account")&&n.hasOwnProperty("scope")&&n.hasOwnProperty("expires_in"))return n;throw ob.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(n){if(n.properties.MATS)try{return JSON.parse(n.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(n){return typeof n.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!n.is_cached},t.prototype.initializeNativeRequest=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c,u,d,p,h=this;return pn(this,function(g){switch(g.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),r=n.authority||this.config.auth.authority,n.account?[4,this.validateRequestAuthority(r,n.account)]:[3,2];case 1:g.sent(),g.label=2;case 2:return i=new ia(r),i.validateAsUri(),o=n.scopes,a=HYe(n,["scopes"]),s=new c0(o||[]),s.appendScopes(fj),l=function(){switch(h.apiId){case Hs.ssoSilent:case Hs.acquireTokenSilent_silentFlow:return h.logger.trace("initializeNativeRequest: silent request sets prompt to none"),g0.NONE}if(!n.prompt){h.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(n.prompt){case g0.NONE:case g0.CONSENT:case g0.LOGIN:return h.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),n.prompt;default:throw h.logger.trace("initializeNativeRequest: prompt = "+n.prompt+" is not compatible with native flow"),tr.createNativePromptParameterNotSupportedError()}},c=Sr(Sr({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:i.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(n.redirectUri),prompt:l(),correlationId:this.correlationId,tokenType:n.authenticationScheme,windowTitleSubstring:document.title,extraParameters:Sr(Sr(Sr({},n.extraQueryParameters),n.tokenQueryParameters),{telemetry:AN.MATS_TELEMETRY}),extendedExpiryToken:!1}),n.authenticationScheme!==Qa.POP?[3,4]:(u={resourceRequestUri:n.resourceRequestUri,resourceRequestMethod:n.resourceRequestMethod,shrClaims:n.shrClaims,shrNonce:n.shrNonce},d=new ZP(this.browserCrypto),[4,d.generateCnf(u)]);case 3:p=g.sent(),c.reqCnf=p.reqCnfString,c.keyId=p.kid,g.label=4;case 4:return[2,c]}})})},t})(YAt);/*! @azure/msal-browser v2.39.0 2024-06-06 */var cz=(function(){function e(t,n,r,i){this.logger=t,this.handshakeTimeoutMs=n,this.extensionId=i,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(Xt.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(t){return dn(this,void 0,void 0,function(){var n,r=this;return pn(this,function(i){return this.logger.trace("NativeMessageHandler - sendMessage called."),n={channel:AN.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:t},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(n)),this.messageChannel.port1.postMessage(n),[2,new Promise(function(o,a){r.resolvers.set(n.responseId,{resolve:o,reject:a})})]})})},e.createProvider=function(t,n,r){return dn(this,void 0,void 0,function(){var i,o;return pn(this,function(a){switch(a.label){case 0:t.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),i=new e(t,n,r,AN.PREFERRED_EXTENSION_ID),[4,i.sendHandshakeRequest()];case 2:return a.sent(),[2,i];case 3:return a.sent(),o=new e(t,n,r),[4,o.sendHandshakeRequest()];case 4:return a.sent(),[2,o];case 5:return[2]}})})},e.prototype.sendHandshakeRequest=function(){return dn(this,void 0,void 0,function(){var t,n=this;return pn(this,function(r){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),t={channel:AN.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Ty.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(i){n.onChannelMessage(i)},window.postMessage(t,window.origin,[this.messageChannel.port2]),[2,new Promise(function(i,o){n.handshakeResolvers.set(t.responseId,{resolve:i,reject:o}),n.timeoutId=window.setTimeout(function(){window.removeEventListener("message",n.windowListener,!1),n.messageChannel.port1.close(),n.messageChannel.port2.close(),n.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),o(tr.createNativeHandshakeTimeoutError()),n.handshakeResolvers.delete(t.responseId)},n.handshakeTimeoutMs)})]})})},e.prototype.onWindowMessage=function(t){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),t.source===window){var n=t.data;if(!(!n.channel||n.channel!==AN.CHANNEL_ID)&&!(n.extensionId&&n.extensionId!==this.extensionId)&&n.body.method===Ty.HandshakeRequest){this.logger.verbose(n.extensionId?"Extension with id: "+n.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var r=this.handshakeResolvers.get(n.responseId);r&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),r.reject(tr.createNativeExtensionNotInstalledError()))}}},e.prototype.onChannelMessage=function(t){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var n=t.data,r=this.resolvers.get(n.responseId),i=this.handshakeResolvers.get(n.responseId);try{var o=n.body.method;if(o===Ty.Response){if(!r)return;var a=n.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")r.reject(ob.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?r.reject(ob.createError(a.result.code,a.result.description,a.result.ext)):r.resolve(a.result);else throw Gr.createUnexpectedError("Event does not contain result.");this.resolvers.delete(n.responseId)}else if(o===Ty.HandshakeResponse){if(!i)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=n.extensionId,this.extensionVersion=n.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),i.resolve(),this.handshakeResolvers.delete(n.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+t),r?r.reject(s):i&&i.reject(s)}},e.prototype.getExtensionId=function(){return this.extensionId},e.prototype.getExtensionVersion=function(){return this.extensionVersion},e.isNativeAvailable=function(t,n,r,i){if(n.trace("isNativeAvailable called"),!t.system.allowNativeBroker)return n.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!r)return n.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(i)switch(i){case Qa.BEARER:case Qa.POP:return n.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return n.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var ebi=(function(e){Id(t,e);function t(n,r,i,o,a,s,l,c,u,d){var p=e.call(this,n,r,i,o,a,s,l,u,d)||this;return p.nativeStorage=c,p}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c,u,d,p=this;return pn(this,function(h){switch(h.label){case 0:return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationRequest,n.correlationId),[4,this.initializeAuthorizationRequest(n,Cr.Redirect)];case 1:r=h.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||yt.EMPTY_STRING,r.account||null),i=this.initializeServerTelemetryManager(Hs.acquireTokenRedirect),o=function(g){g.persisted&&(p.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),p.browserStorage.cleanRequestByState(r.state),p.eventHandler.emitEvent(Vr.RESTORE_FROM_BFCACHE,Cr.Redirect))},h.label=2;case 2:return h.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 3:return a=h.sent(),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(i,r.authority,r.azureCloudOptions)];case 4:return s=h.sent(),this.logger.verbose("Auth code client created"),l=new tKe(s,this.browserStorage,a,this.logger,this.browserCrypto,this.performanceClient),[4,s.getAuthCodeUrl(Sr(Sr({},r),{nativeBroker:cz.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 5:return c=h.sent(),u=this.getRedirectStartPage(n.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",o),[4,l.initiateAuthRequest(c,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:n.onRedirectNavigate})];case 6:return[2,h.sent()];case 7:throw d=h.sent(),d instanceof Gr&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),i.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(r.state),d;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c,u,d,p,h,g;return pn(this,function(m){switch(m.label){case 0:r=this.initializeServerTelemetryManager(Hs.handleRedirectPromise),m.label=1;case 1:if(m.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(i=this.getRedirectResponseHash(n||window.location.hash),!i)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(Cr.Redirect),[2,null];o=void 0;try{a=ia.getDeserializedHash(i),o=this.validateAndExtractStateFromHash(a,Cr.Redirect),this.logger.verbose("State extracted from hash")}catch(v){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+v),this.browserStorage.cleanRequestByInteractionType(Cr.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(ba.ORIGIN_URI,!0)||yt.EMPTY_STRING,l=ia.removeHashFromUrl(s),c=ia.removeHashFromUrl(window.location.href),l===c&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(i,o,r)]):[3,3];case 2:return u=m.sent(),s.indexOf("#")>-1&&Zl.replaceHash(s),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(i,o,r)]);case 4:return!Zl.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(ba.URL_HASH,i,!0),d={apiId:Hs.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},p=!0,!s||s==="null"?(h=Zl.getHomepage(),this.browserStorage.setTemporaryCache(ba.ORIGIN_URI,h,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(h,d)]):[3,6]):[3,9];case 5:return p=m.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:p=m.sent(),m.label=8;case 8:if(!p)return[2,this.handleHash(i,o,r)];m.label=9;case 9:return[2,null];case 10:throw g=m.sent(),g instanceof Gr&&g.setCorrelationId(this.correlationId),r.cacheFailedRequest(g),this.browserStorage.cleanRequestByInteractionType(Cr.Redirect),g;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(n){this.logger.verbose("getRedirectResponseHash called");var r=ia.hashContainsKnownProperties(n);if(r)return Zl.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),n;var i=this.browserStorage.getTemporaryCache(ba.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ba.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),i},t.prototype.handleHash=function(n,r,i){return dn(this,void 0,void 0,function(){var o,a,s,l,c,u,d,p=this;return pn(this,function(h){switch(h.label){case 0:if(o=this.browserStorage.getCachedRequest(r,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=ia.getDeserializedHash(n),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw tr.createNativeConnectionNotEstablishedError();return s=new HI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Hs.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.nativeStorage,o.correlationId),l=Ny.parseRequestState(this.browserCrypto,r).userRequestState,[2,s.acquireToken(Sr(Sr({},o),{state:l,prompt:void 0})).finally(function(){p.browserStorage.cleanRequestByState(r)})]}if(c=this.browserStorage.getCachedAuthority(r),!c)throw tr.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,o.correlationId),[4,this.createAuthCodeClient(i,c)];case 1:return u=h.sent(),this.logger.verbose("Auth code client created"),LX.removeThrottle(this.browserStorage,this.config.auth.clientId,o),d=new tKe(u,this.browserStorage,o,this.logger,this.browserCrypto,this.performanceClient),[4,d.handleCodeResponseFromHash(n,r,u.authority,this.networkClient)];case 2:return[2,h.sent()]}})})},t.prototype.logout=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c;return pn(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),r=this.initializeLogoutRequest(n),i=this.initializeServerTelemetryManager(Hs.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(Vr.LOGOUT_START,Cr.Redirect,n),[4,this.clearCacheOnLogout(r.account)];case 2:return u.sent(),o={apiId:Hs.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(i,n&&n.authority)];case 3:return a=u.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(r),this.eventHandler.emitEvent(Vr.LOGOUT_SUCCESS,Cr.Redirect,r),n&&typeof n.onRedirectNavigate=="function"?(l=n.onRedirectNavigate(s),l===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,o)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,o)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw c=u.sent(),c instanceof Gr&&c.setCorrelationId(this.correlationId),i.cacheFailedRequest(c),this.eventHandler.emitEvent(Vr.LOGOUT_FAILURE,Cr.Redirect,null,c),this.eventHandler.emitEvent(Vr.LOGOUT_END,Cr.Redirect),c;case 11:return this.eventHandler.emitEvent(Vr.LOGOUT_END,Cr.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(n){var r=n||window.location.href;return ia.getAbsoluteUrl(r,Zl.getCurrentUri())},t})(Ok);/*! @azure/msal-browser v2.39.0 2024-06-06 */var tbi=(function(e){Id(t,e);function t(n,r,i,o,a,s,l,c,u,d){var p=e.call(this,n,r,i,o,a,s,l,u,d)||this;return p.unloadWindow=p.unloadWindow.bind(p),p.nativeStorage=c,p}return t.prototype.acquireToken=function(n){try{var r=this.generatePopupName(n.scopes||fj,n.authority||this.config.auth.authority),i=n.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(n,r,i);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var o=this.openSizedPopup("about:blank",r,i);return this.acquireTokenPopupAsync(n,r,i,o)}catch(a){return Promise.reject(a)}},t.prototype.logout=function(n){try{this.logger.verbose("logoutPopup called");var r=this.initializeLogoutRequest(n),i=this.generateLogoutPopupName(r),o=n&&n.authority,a=n&&n.mainWindowRedirectUri,s=n?.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,i,s,o,void 0,a);this.logger.verbose("asyncPopup set to false, opening popup");var l=this.openSizedPopup("about:blank",i,s);return this.logoutPopupAsync(r,i,s,o,l,a)}catch(c){return Promise.reject(c)}},t.prototype.acquireTokenPopupAsync=function(n,r,i,o){return dn(this,void 0,void 0,function(){var a,s,l,c,u,d,p,h,g,m,v,y,M,C,x,w,S,A=this;return pn(this,function(z){switch(z.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(Hs.acquireTokenPopup),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationRequest,n.correlationId),[4,this.initializeAuthorizationRequest(n,Cr.Popup)];case 1:s=z.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||yt.EMPTY_STRING,s.account||null),z.label=2;case 2:return z.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return l=z.sent(),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return c=z.sent(),this.logger.verbose("Auth code client created"),u=cz.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme),d=void 0,u&&(d=this.performanceClient.startMeasurement(Xt.FetchAccountIdWithNativeBroker,n.correlationId)),[4,c.getAuthCodeUrl(Sr(Sr({},s),{nativeBroker:u}))];case 5:return p=z.sent(),h=new i3e(c,this.browserStorage,l,this.logger,this.performanceClient),g={popup:o,popupName:r,popupWindowAttributes:i},m=this.initiateAuthRequest(p,g),this.eventHandler.emitEvent(Vr.POPUP_OPENED,Cr.Popup,{popupWindow:m},null),[4,this.monitorPopupForHash(m)];case 6:if(v=z.sent(),y=ia.getDeserializedHash(v),M=this.validateAndExtractStateFromHash(y,Cr.Popup,s.correlationId),LX.removeThrottle(this.browserStorage,this.config.auth.clientId,l),y.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw tr.createNativeConnectionNotEstablishedError();return C=new HI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Hs.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,y.accountId,this.nativeStorage,s.correlationId),x=Ny.parseRequestState(this.browserCrypto,M).userRequestState,[2,C.acquireToken(Sr(Sr({},s),{state:x,prompt:void 0})).finally(function(){A.browserStorage.cleanRequestByState(M)})]}return[4,h.handleCodeResponseFromHash(v,M,c.authority,this.networkClient)];case 7:return w=z.sent(),[2,w];case 8:throw S=z.sent(),o&&o.close(),S instanceof Gr&&S.setCorrelationId(this.correlationId),a.cacheFailedRequest(S),this.browserStorage.cleanRequestByState(s.state),S;case 9:return[2]}})})},t.prototype.logoutPopupAsync=function(n,r,i,o,a,s){return dn(this,void 0,void 0,function(){var l,c,u,d,p,h,g;return pn(this,function(m){switch(m.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Vr.LOGOUT_START,Cr.Popup,n),l=this.initializeServerTelemetryManager(Hs.logoutPopup),m.label=1;case 1:return m.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(n.account)];case 2:return m.sent(),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(l,o)];case 3:return c=m.sent(),this.logger.verbose("Auth code client created"),u=c.getLogoutUri(n),this.eventHandler.emitEvent(Vr.LOGOUT_SUCCESS,Cr.Popup,n),d=this.openPopup(u,{popupName:r,popupWindowAttributes:i,popup:a}),this.eventHandler.emitEvent(Vr.POPUP_OPENED,Cr.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return m.sent(),s?(p={apiId:Hs.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},h=ia.getAbsoluteUrl(s,Zl.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+h),this.navigationClient.navigateInternal(h,p)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw g=m.sent(),a&&a.close(),g instanceof Gr&&g.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Vr.LOGOUT_FAILURE,Cr.Popup,null,g),this.eventHandler.emitEvent(Vr.LOGOUT_END,Cr.Popup),l.cacheFailedRequest(g),g;case 6:return this.eventHandler.emitEvent(Vr.LOGOUT_END,Cr.Popup),[2]}})})},t.prototype.initiateAuthRequest=function(n,r){if(mr.isEmpty(n))throw this.logger.error("Navigate url is empty"),tr.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+n),this.openPopup(n,r)},t.prototype.monitorPopupForHash=function(n){var r=this;return new Promise(function(i,o){var a=r.config.system.windowHashTimeout/r.config.system.pollIntervalMilliseconds,s=0;r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var l=setInterval(function(){if(n.closed){r.logger.error("PopupHandler.monitorPopupForHash - window closed"),r.cleanPopup(),clearInterval(l),o(tr.createUserCancelledError());return}var c=yt.EMPTY_STRING,u=yt.EMPTY_STRING;try{c=n.location.href,u=n.location.hash}catch{}mr.isEmpty(c)||c==="about:blank"||(r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,u?(r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(l),r.cleanPopup(n),ia.hashContainsKnownProperties(u)?(r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),i(u)):(r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),o(tr.createHashDoesNotContainKnownPropertiesError()))):s>a&&(r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(l),o(tr.createMonitorPopupTimeoutError())))},r.config.system.pollIntervalMilliseconds)})},t.prototype.waitForLogoutPopup=function(n){var r=this;return new Promise(function(i){r.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var o=setInterval(function(){n.closed&&(r.logger.error("PopupHandler.waitForLogoutPopup - window closed"),r.cleanPopup(),clearInterval(o),i());var a=yt.EMPTY_STRING;try{a=n.location.href}catch{}mr.isEmpty(a)||a==="about:blank"||(r.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(o),r.cleanPopup(n),i())},r.config.system.pollIntervalMilliseconds)})},t.prototype.openPopup=function(n,r){try{var i=void 0;if(r.popup?(i=r.popup,this.logger.verbosePii("Navigating popup window to: "+n),i.location.assign(n)):typeof r.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+n),i=this.openSizedPopup(n,r.popupName,r.popupWindowAttributes)),!i)throw tr.createEmptyWindowCreatedError();return i.focus&&i.focus(),this.currentWindow=i,window.addEventListener("beforeunload",this.unloadWindow),i}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),tr.createPopupWindowError(o.toString())}},t.prototype.openSizedPopup=function(n,r,i){var o,a,s,l,c=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,p=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,h=(o=i.popupSize)===null||o===void 0?void 0:o.width,g=(a=i.popupSize)===null||a===void 0?void 0:a.height,m=(s=i.popupPosition)===null||s===void 0?void 0:s.top,v=(l=i.popupPosition)===null||l===void 0?void 0:l.left;return(!h||h<0||h>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),h=Ug.POPUP_WIDTH),(!g||g<0||g>p)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),g=Ug.POPUP_HEIGHT),(!m||m<0||m>p)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),m=Math.max(0,p/2-Ug.POPUP_HEIGHT/2+u)),(!v||v<0||v>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),v=Math.max(0,d/2-Ug.POPUP_WIDTH/2+c)),window.open(n,r,"width="+h+", height="+g+", top="+m+", left="+v+", scrollbars=yes")},t.prototype.unloadWindow=function(n){this.browserStorage.cleanRequestByInteractionType(Cr.Popup),this.currentWindow&&this.currentWindow.close(),n.preventDefault()},t.prototype.cleanPopup=function(n){n&&n.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(n,r){return Ug.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n.join("-")+"."+r+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(n){var r=n.account&&n.account.homeAccountId;return Ug.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r+"."+this.correlationId},t})(Ok);/*! @azure/msal-browser v2.39.0 2024-06-06 */var nbi=(function(){function e(){}return e.prototype.navigateInternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.prototype.navigateExternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.defaultNavigateWindow=function(t,n){return n.noHistory?window.location.replace(t):window.location.assign(t),new Promise(function(r){setTimeout(function(){r(!0)},n.timeout)})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var rbi=6e4,i2e=6e3,ibi=3e4,obi=2e3;function abi(e,t){var n=e.auth,r=e.cache,i=e.system,o=e.telemetry,a={clientId:yt.EMPTY_STRING,authority:""+yt.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:yt.EMPTY_STRING,authorityMetadata:yt.EMPTY_STRING,redirectUri:yt.EMPTY_STRING,postLogoutRedirectUri:yt.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:QP.AAD,azureCloudOptions:{azureCloudInstance:r6.None,tenant:yt.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:Xc.SessionStorage,temporaryCacheLocation:Xc.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(r&&r.cacheLocation===Xc.LocalStorage),claimsBasedCachingEnabled:!0},l={loggerCallback:function(){},logLevel:Kl.Info,piiLoggingEnabled:!1},c=Sr(Sr({},HAt),{loggerOptions:l,networkClient:t?Zl.getBrowserNetworkClient():Gvi,navigationClient:new nbi,loadFrameTimeout:0,windowHashTimeout:i?.loadFrameTimeout||rbi,iframeHashTimeout:i?.loadFrameTimeout||i2e,navigateFrameWait:t&&Zl.detectIEOrEdge()?500:0,redirectNavigationTimeout:ibi,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:i?.nativeBrokerHandshakeTimeout||obi,pollIntervalMilliseconds:Ug.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=Sr(Sr({},i),{loggerOptions:i?.loggerOptions||l}),d={application:{appName:yt.EMPTY_STRING,appVersion:yt.EMPTY_STRING}},p={auth:Sr(Sr({},a),n),cache:Sr(Sr({},s),r),system:Sr(Sr({},c),u),telemetry:Sr(Sr({},d),o)};return p}/*! @azure/msal-browser v2.39.0 2024-06-06 */var QAt=(function(e){Id(t,e);function t(n,r,i,o,a,s){var l=e.call(this,n,r,i,o,s)||this;return l.navigateFrameWait=a.navigateFrameWait,l.pollIntervalMilliseconds=a.pollIntervalMilliseconds,l}return t.prototype.initiateAuthRequest=function(n){return dn(this,void 0,void 0,function(){return pn(this,function(r){switch(r.label){case 0:if(this.performanceClient.addQueueMeasurement(Xt.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),mr.isEmpty(n))throw this.logger.info("Navigate url is empty"),tr.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(Xt.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(n)]):[3,2];case 1:return[2,r.sent()];case 2:return[2,this.loadFrameSync(n)]}})})},t.prototype.monitorIframeForHash=function(n,r){var i=this;return this.performanceClient.addQueueMeasurement(Xt.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(o,a){r<i2e&&i.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+r+"ms) than the default ("+i2e+"ms). This may result in timeouts.");var s=window.performance.now(),l=s+r,c=setInterval(function(){if(window.performance.now()>l){i.removeHiddenIframe(n),clearInterval(c),a(tr.createMonitorIframeTimeoutError());return}var u=yt.EMPTY_STRING,d=n.contentWindow;try{u=d?d.location.href:yt.EMPTY_STRING}catch{}if(!mr.isEmpty(u)){var p=d?d.location.hash:yt.EMPTY_STRING;if(ia.hashContainsKnownProperties(p)){i.removeHiddenIframe(n),clearInterval(c),o(p);return}}},i.pollIntervalMilliseconds)})},t.prototype.loadFrame=function(n){var r=this;return this.performanceClient.addQueueMeasurement(Xt.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(i,o){var a=r.createHiddenIframe();setTimeout(function(){if(!a){o("Unable to load iframe");return}a.src=n,i(a)},r.navigateFrameWait)})},t.prototype.loadFrameSync=function(n){var r=this.createHiddenIframe();return r.src=n,r},t.prototype.createHiddenIframe=function(){var n=document.createElement("iframe");return n.className="msalSilentIframe",n.style.visibility="hidden",n.style.position="absolute",n.style.width=n.style.height="0",n.style.border="0",n.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(n),n},t.prototype.removeHiddenIframe=function(n){document.body===n.parentNode&&document.body.removeChild(n)},t})(i3e);/*! @azure/msal-browser v2.39.0 2024-06-06 */var sbi=(function(e){Id(t,e);function t(n,r,i,o,a,s,l,c,u,d,p){var h=e.call(this,n,r,i,o,a,s,c,d,p)||this;return h.apiId=l,h.nativeStorage=u,h}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s;return pn(this,function(l){switch(l.label){case 0:if(this.performanceClient.addQueueMeasurement(Xt.SilentIframeClientAcquireToken,n.correlationId),this.logger.verbose("acquireTokenByIframe called"),r=this.performanceClient.startMeasurement(Xt.SilentIframeClientAcquireToken,n.correlationId),mr.isEmpty(n.loginHint)&&mr.isEmpty(n.sid)&&(!n.account||mr.isEmpty(n.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),n.prompt&&n.prompt!==g0.NONE&&n.prompt!==g0.NO_SESSION)throw r.endMeasurement({success:!1}),tr.createSilentPromptValueError(n.prompt);return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationRequest,n.correlationId),[4,this.initializeAuthorizationRequest(Sr(Sr({},n),{prompt:n.prompt||g0.NONE}),Cr.Silent)];case 1:i=l.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||yt.EMPTY_STRING,i.account||null),o=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(o,i.authority,i.azureCloudOptions)];case 3:return a=l.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(Xt.SilentIframeClientTokenHelper,n.correlationId),[4,this.silentTokenHelper(a,i).then(function(c){return r.endMeasurement({success:!0,fromCache:!1,requestId:c.requestId}),c})];case 4:return[2,l.sent()];case 5:throw s=l.sent(),s instanceof Gr&&s.setCorrelationId(this.correlationId),o.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(i.state),r.endMeasurement({errorCode:s instanceof Gr&&s.errorCode||void 0,subErrorCode:s instanceof Gr&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(tr.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(n,r){return dn(this,void 0,void 0,function(){var i,o,a,s,l,c,u,d,p,h=this;return pn(this,function(g){switch(g.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.SilentIframeClientTokenHelper,r.correlationId),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 1:return i=g.sent(),this.performanceClient.setPreQueueTime(Xt.GetAuthCodeUrl,r.correlationId),[4,n.getAuthCodeUrl(Sr(Sr({},r),{nativeBroker:cz.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 2:return o=g.sent(),a=new QAt(n,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(Xt.SilentHandlerInitiateAuthRequest,r.correlationId),[4,a.initiateAuthRequest(o)];case 3:return s=g.sent(),this.performanceClient.setPreQueueTime(Xt.SilentHandlerMonitorIframeForHash,r.correlationId),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(l=g.sent(),c=ia.getDeserializedHash(l),u=this.validateAndExtractStateFromHash(c,Cr.Silent,i.correlationId),c.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw tr.createNativeConnectionNotEstablishedError();return d=new HI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,c.accountId,this.browserStorage,this.correlationId),p=Ny.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(Sr(Sr({},r),{state:p,prompt:r.prompt||g0.NONE})).finally(function(){h.browserStorage.cleanRequestByState(u)})]}return this.performanceClient.setPreQueueTime(Xt.HandleCodeResponseFromHash,r.correlationId),[2,a.handleCodeResponseFromHash(l,u,n.authority,this.networkClient)]}})})},t})(Ok);/*! @azure/msal-browser v2.39.0 2024-06-06 */var lbi=(function(e){Id(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l=this;return pn(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.SilentRefreshClientAcquireToken,n.correlationId),this.performanceClient.setPreQueueTime(Xt.InitializeBaseRequest,n.correlationId),i=[Sr({},n)],[4,this.initializeBaseRequest(n,n.account)];case 1:return r=Sr.apply(void 0,i.concat([c.sent()])),o=this.performanceClient.startMeasurement(Xt.SilentRefreshClientAcquireToken,r.correlationId),a=this.initializeServerTelemetryManager(Hs.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,r.authority,r.azureCloudOptions)];case 2:return s=c.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(Xt.RefreshTokenClientAcquireTokenByRefreshToken,n.correlationId),[2,s.acquireTokenByRefreshToken(r).then(function(u){return o.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof Gr&&u.setCorrelationId(l.correlationId),a.cacheFailedRequest(u),o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},t.prototype.logout=function(){return Promise.reject(tr.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(n,r,i){return dn(this,void 0,void 0,function(){var o;return pn(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(n,r,i)];case 1:return o=a.sent(),[2,new GAt(o,this.performanceClient)]}})})},t})(Ok);/*! @azure/msal-browser v2.39.0 2024-06-06 */var cbi=(function(){function e(t,n){this.eventCallbacks=new Map,this.logger=t,this.browserCrypto=n,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return e.prototype.addEventCallback=function(t){if(typeof window<"u"){var n=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(n,t),this.logger.verbose("Event callback registered with id: "+n),n}return null},e.prototype.removeEventCallback=function(t){this.eventCallbacks.delete(t),this.logger.verbose("Event callback "+t+" removed.")},e.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},e.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},e.prototype.emitEvent=function(t,n,r,i){var o=this;if(typeof window<"u"){var a={eventType:t,interactionType:n||null,payload:r||null,error:i||null,timestamp:Date.now()};this.logger.info("Emitting event: "+t),this.eventCallbacks.forEach(function(s,l){o.logger.verbose("Emitting event to callback "+l+": "+t),s.apply(null,[a])})}},e.prototype.handleAccountCacheChange=function(t){try{var n=t.newValue||t.oldValue;if(!n)return;var r=JSON.parse(n);if(typeof r!="object"||!M0.isAccountEntity(r))return;var i=q1.toObject(new M0,r),o=i.getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Vr.ACCOUNT_ADDED,void 0,o)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Vr.ACCOUNT_REMOVED,void 0,o))}catch{return}},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Xd=(function(){function e(){}return e.decimalToHex=function(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var ZAt=(function(){function e(t){this.cryptoObj=t}return e.prototype.generateGuid=function(){try{var t=new Uint8Array(16);return this.cryptoObj.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,Xd.decimalToHex(t[0])+Xd.decimalToHex(t[1])+Xd.decimalToHex(t[2])+Xd.decimalToHex(t[3])+"-"+Xd.decimalToHex(t[4])+Xd.decimalToHex(t[5])+"-"+Xd.decimalToHex(t[6])+Xd.decimalToHex(t[7])+"-"+Xd.decimalToHex(t[8])+Xd.decimalToHex(t[9])+"-"+Xd.decimalToHex(t[10])+Xd.decimalToHex(t[11])+Xd.decimalToHex(t[12])+Xd.decimalToHex(t[13])+Xd.decimalToHex(t[14])+Xd.decimalToHex(t[15])}catch{for(var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r="0123456789abcdef",i=0,o=yt.EMPTY_STRING,a=0;a<36;a++)n[a]!=="-"&&n[a]!=="4"&&(i=Math.random()*16|0),n[a]==="x"?o+=r[i]:n[a]==="y"?(i&=3,i|=8,o+=r[i]):o+=n[a];return o}},e.prototype.isGuid=function(t){var n=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return n.test(t)},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Fy=(function(){function e(){}return e.stringToUtf8Arr=function(t){for(var n,r=0,i=t.length,o=0;o<i;o++)n=t.charCodeAt(o),r+=n<128?1:n<2048?2:n<65536?3:n<2097152?4:n<67108864?5:6;for(var a=new Uint8Array(r),s=0,l=0;s<r;l++)n=t.charCodeAt(l),n<128?a[s++]=n:n<2048?(a[s++]=192+(n>>>6),a[s++]=128+(n&63)):n<65536?(a[s++]=224+(n>>>12),a[s++]=128+(n>>>6&63),a[s++]=128+(n&63)):n<2097152?(a[s++]=240+(n>>>18),a[s++]=128+(n>>>12&63),a[s++]=128+(n>>>6&63),a[s++]=128+(n&63)):n<67108864?(a[s++]=248+(n>>>24),a[s++]=128+(n>>>18&63),a[s++]=128+(n>>>12&63),a[s++]=128+(n>>>6&63),a[s++]=128+(n&63)):(a[s++]=252+(n>>>30),a[s++]=128+(n>>>24&63),a[s++]=128+(n>>>18&63),a[s++]=128+(n>>>12&63),a[s++]=128+(n>>>6&63),a[s++]=128+(n&63));return a},e.stringToArrayBuffer=function(t){for(var n=new ArrayBuffer(t.length),r=new Uint8Array(n),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return n},e.utf8ArrToString=function(t){for(var n=yt.EMPTY_STRING,r=void 0,i=t.length,o=0;o<i;o++)r=t[o],n+=String.fromCharCode(r>251&&r<254&&o+5<i?(r-252)*1073741824+(t[++o]-128<<24)+(t[++o]-128<<18)+(t[++o]-128<<12)+(t[++o]-128<<6)+t[++o]-128:r>247&&r<252&&o+4<i?(r-248<<24)+(t[++o]-128<<18)+(t[++o]-128<<12)+(t[++o]-128<<6)+t[++o]-128:r>239&&r<248&&o+3<i?(r-240<<18)+(t[++o]-128<<12)+(t[++o]-128<<6)+t[++o]-128:r>223&&r<240&&o+2<i?(r-224<<12)+(t[++o]-128<<6)+t[++o]-128:r>191&&r<224&&o+1<i?(r-192<<6)+t[++o]-128:r);return n},e.getSortedObjectString=function(t){return JSON.stringify(t,Object.keys(t).sort())},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var JAt=(function(){function e(){}return e.prototype.urlEncode=function(t){return encodeURIComponent(this.encode(t).replace(/=/g,yt.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(t){return this.base64EncArr(t).replace(/=/g,yt.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(t){var n=Fy.stringToUtf8Arr(t);return this.base64EncArr(n)},e.prototype.base64EncArr=function(t){for(var n=(3-t.length%3)%3,r=yt.EMPTY_STRING,i=void 0,o=t.length,a=0,s=0;s<o;s++)i=s%3,a|=t[s]<<(16>>>i&24),(i===2||t.length-s===1)&&(r+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(a&63)),a=0);return n===0?r:r.substring(0,r.length-n)+(n===1?"=":"==")},e.prototype.uint6ToB64=function(t){return t<26?t+65:t<52?t+71:t<62?t-4:t===62?43:t===63?47:65},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var ubi=(function(){function e(){}return e.prototype.decode=function(t){var n=t.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("Invalid base64 string")}var r=this.base64DecToArr(n);return Fy.utf8ArrToString(r)},e.prototype.base64DecToArr=function(t,n){for(var r=t.replace(/[^A-Za-z0-9\+\/]/g,yt.EMPTY_STRING),i=r.length,o=n?Math.ceil((i*3+1>>>2)/n)*n:i*3+1>>>2,a=new Uint8Array(o),s=void 0,l=void 0,c=0,u=0,d=0;d<i;d++)if(l=d&3,c|=this.b64ToUint6(r.charCodeAt(d))<<18-6*l,l===3||i-d===1){for(s=0;s<3&&u<o;s++,u++)a[u]=c>>>(16>>>s&24)&255;c=0}return a},e.prototype.b64ToUint6=function(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:t===43?62:t===47?63:0},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var dbi=32,pbi=(function(){function e(t){this.base64Encode=new JAt,this.cryptoObj=t}return e.prototype.generateCodes=function(){return dn(this,void 0,void 0,function(){var t,n;return pn(this,function(r){switch(r.label){case 0:return t=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(t)];case 1:return n=r.sent(),[2,{verifier:t,challenge:n}]}})})},e.prototype.generateCodeVerifier=function(){try{var t=new Uint8Array(dbi);this.cryptoObj.getRandomValues(t);var n=this.base64Encode.urlEncodeArr(t);return n}catch(r){throw tr.createPkceNotGeneratedError(r)}},e.prototype.generateCodeChallengeFromVerifier=function(t){return dn(this,void 0,void 0,function(){var n,r;return pn(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(t)];case 1:return n=i.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(n))];case 2:throw r=i.sent(),tr.createPkceNotGeneratedError(r);case 3:return[2]}})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var hbi=(function(){function e(){}return e.prototype.getRandomValues=function(t){return window.crypto.getRandomValues(t)},e.prototype.generateKey=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,window.crypto.subtle.generateKey(t,n,r)]})})},e.prototype.exportKey=function(t){return dn(this,void 0,void 0,function(){return pn(this,function(n){return[2,window.crypto.subtle.exportKey(JP,t)]})})},e.prototype.importKey=function(t,n,r,i){return dn(this,void 0,void 0,function(){return pn(this,function(o){return[2,window.crypto.subtle.importKey(JP,t,n,r,i)]})})},e.prototype.sign=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,window.crypto.subtle.sign(t,n,r)]})})},e.prototype.digest=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,window.crypto.subtle.digest(t,n)]})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var fbi=(function(){function e(){}return e.prototype.initPrng=function(t){return window.msrCrypto.initPrng(e3e(t))},e.prototype.getRandomValues=function(t){return window.msrCrypto.getRandomValues(t)},e.prototype.generateKey=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,window.msrCrypto.subtle.generateKey(t,n,r)]})})},e.prototype.exportKey=function(t){return dn(this,void 0,void 0,function(){return pn(this,function(n){return[2,window.msrCrypto.subtle.exportKey(JP,t)]})})},e.prototype.importKey=function(t,n,r,i){return dn(this,void 0,void 0,function(){return pn(this,function(o){return[2,window.msrCrypto.subtle.importKey(JP,t,n,r,i)]})})},e.prototype.sign=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,window.msrCrypto.subtle.sign(t,n,r)]})})},e.prototype.digest=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,window.msrCrypto.subtle.digest(t,n)]})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var gbi=(function(){function e(){}return e.prototype.getRandomValues=function(t){return window.msCrypto.getRandomValues(t)},e.prototype.generateKey=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,new Promise(function(o,a){var s=window.msCrypto.subtle.generateKey(t,n,r);s.addEventListener("complete",function(l){o(l.target.result)}),s.addEventListener("error",function(l){a(l)})})]})})},e.prototype.exportKey=function(t){return dn(this,void 0,void 0,function(){return pn(this,function(n){return[2,new Promise(function(r,i){var o=window.msCrypto.subtle.exportKey(JP,t);o.addEventListener("complete",function(a){var s=a.target.result,l=Fy.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,yt.EMPTY_STRING).replace(/\n/g,yt.EMPTY_STRING).replace(/\t/g,yt.EMPTY_STRING).split(" ").join(yt.EMPTY_STRING).replace("\0",yt.EMPTY_STRING);try{r(JSON.parse(l))}catch(c){i(c)}}),o.addEventListener("error",function(a){i(a)})})]})})},e.prototype.importKey=function(t,n,r,i){return dn(this,void 0,void 0,function(){var o,a;return pn(this,function(s){return o=Fy.getSortedObjectString(t),a=Fy.stringToArrayBuffer(o),[2,new Promise(function(l,c){var u=window.msCrypto.subtle.importKey(JP,a,n,r,i);u.addEventListener("complete",function(d){l(d.target.result)}),u.addEventListener("error",function(d){c(d)})})]})})},e.prototype.sign=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,new Promise(function(o,a){var s=window.msCrypto.subtle.sign(t,n,r);s.addEventListener("complete",function(l){o(l.target.result)}),s.addEventListener("error",function(l){a(l)})})]})})},e.prototype.digest=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,new Promise(function(i,o){var a=window.msCrypto.subtle.digest(t,n.buffer);a.addEventListener("complete",function(s){i(s.target.result)}),a.addEventListener("error",function(s){o(s)})})]})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var mbi="RSASSA-PKCS1-v1_5",nKe="SHA-256",vbi=2048,bbi=new Uint8Array([1,0,1]),eOt=(function(){function e(t,n){var r,i;if(this.logger=t,this.cryptoOptions=n,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new hbi;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new gbi;else if(this.hasMsrCrypto()&&(!((r=this.cryptoOptions)===null||r===void 0)&&r.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new fbi;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),tr.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((i=this.cryptoOptions)===null||i===void 0)&&i.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),Hc.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:mbi,hash:nKe,modulusLength:vbi,publicExponent:bbi}}return e.prototype.hasIECrypto=function(){return"msCrypto"in window},e.prototype.hasBrowserCrypto=function(){return"crypto"in window},e.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},e.prototype.sha256Digest=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){return n=Fy.stringToUtf8Arr(t),[2,this.subtleCrypto.digest({name:nKe},n)]})})},e.prototype.getRandomValues=function(t){return this.subtleCrypto.getRandomValues(t)},e.prototype.generateKeyPair=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,t,n)]})})},e.prototype.exportJwk=function(t){return dn(this,void 0,void 0,function(){return pn(this,function(n){return[2,this.subtleCrypto.exportKey(t)]})})},e.prototype.importJwk=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){return[2,this.subtleCrypto.importKey(t,this.keygenAlgorithmOptions,n,r)]})})},e.prototype.sign=function(t,n){return dn(this,void 0,void 0,function(){return pn(this,function(r){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,t,n)]})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var ybi=(function(){function e(){this.dbName=t2e,this.version=Yvi,this.tableName=Kvi,this.dbOpen=!1}return e.prototype.open=function(){return dn(this,void 0,void 0,function(){var t=this;return pn(this,function(n){return[2,new Promise(function(r,i){var o=window.indexedDB.open(t.dbName,t.version);o.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(t.tableName)}),o.addEventListener("success",function(a){var s=a;t.db=s.target.result,t.dbOpen=!0,r()}),o.addEventListener("error",function(){return i(tr.createDatabaseUnavailableError())})})]})})},e.prototype.closeConnection=function(){var t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return dn(this,void 0,void 0,function(){return pn(this,function(t){switch(t.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,t.sent()];case 2:return[2]}})})},e.prototype.getItem=function(t){return dn(this,void 0,void 0,function(){var n=this;return pn(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(i,o){if(!n.db)return o(tr.createDatabaseNotOpenError());var a=n.db.transaction([n.tableName],"readonly"),s=a.objectStore(n.tableName),l=s.get(t);l.addEventListener("success",function(c){var u=c;n.closeConnection(),i(u.target.result)}),l.addEventListener("error",function(c){n.closeConnection(),o(c)})})]}})})},e.prototype.setItem=function(t,n){return dn(this,void 0,void 0,function(){var r=this;return pn(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(o,a){if(!r.db)return a(tr.createDatabaseNotOpenError());var s=r.db.transaction([r.tableName],"readwrite"),l=s.objectStore(r.tableName),c=l.put(n,t);c.addEventListener("success",function(){r.closeConnection(),o()}),c.addEventListener("error",function(u){r.closeConnection(),a(u)})})]}})})},e.prototype.removeItem=function(t){return dn(this,void 0,void 0,function(){var n=this;return pn(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(i,o){if(!n.db)return o(tr.createDatabaseNotOpenError());var a=n.db.transaction([n.tableName],"readwrite"),s=a.objectStore(n.tableName),l=s.delete(t);l.addEventListener("success",function(){n.closeConnection(),i()}),l.addEventListener("error",function(c){n.closeConnection(),o(c)})})]}})})},e.prototype.getKeys=function(){return dn(this,void 0,void 0,function(){var t=this;return pn(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(r,i){if(!t.db)return i(tr.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly"),a=o.objectStore(t.tableName),s=a.getAllKeys();s.addEventListener("success",function(l){var c=l;t.closeConnection(),r(c.target.result)}),s.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},e.prototype.containsKey=function(t){return dn(this,void 0,void 0,function(){var n=this;return pn(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(i,o){if(!n.db)return o(tr.createDatabaseNotOpenError());var a=n.db.transaction([n.tableName],"readonly"),s=a.objectStore(n.tableName),l=s.count(t);l.addEventListener("success",function(c){var u=c;n.closeConnection(),i(u.target.result===1)}),l.addEventListener("error",function(c){n.closeConnection(),o(c)})})]}})})},e.prototype.deleteDatabase=function(){return dn(this,void 0,void 0,function(){return pn(this,function(t){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(n,r){var i=window.indexedDB.deleteDatabase(t2e);i.addEventListener("success",function(){return n(!0)}),i.addEventListener("blocked",function(){return n(!0)}),i.addEventListener("error",function(){return r(!1)})})]})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var rKe=(function(){function e(t,n){this.inMemoryCache=new n2e,this.indexedDBCache=new ybi,this.logger=t,this.storeName=n}return e.prototype.handleDatabaseAccessError=function(t){if(t instanceof tr&&t.errorCode===An.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw t},e.prototype.getItem=function(t){return dn(this,void 0,void 0,function(){var n,r;return pn(this,function(i){switch(i.label){case 0:if(n=this.inMemoryCache.getItem(t),n)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(t)];case 2:return[2,i.sent()];case 3:return r=i.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,n]}})})},e.prototype.setItem=function(t,n){return dn(this,void 0,void 0,function(){var r;return pn(this,function(i){switch(i.label){case 0:this.inMemoryCache.setItem(t,n),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(t,n)];case 2:return i.sent(),[3,4];case 3:return r=i.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},e.prototype.removeItem=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){switch(r.label){case 0:this.inMemoryCache.removeItem(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(t)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},e.prototype.getKeys=function(){return dn(this,void 0,void 0,function(){var t,n;return pn(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.getKeys(),t.length!==0)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},e.prototype.containsKey=function(t){return dn(this,void 0,void 0,function(){var n,r;return pn(this,function(i){switch(i.label){case 0:if(n=this.inMemoryCache.containsKey(t),n)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(t)];case 2:return[2,i.sent()];case 3:return r=i.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,n]}})})},e.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},e.prototype.clearPersistent=function(){return dn(this,void 0,void 0,function(){var t,n;return pn(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return t=r.sent(),t&&this.logger.verbose("Persistent keystore deleted"),[2,t];case 2:return n=r.sent(),this.handleDatabaseAccessError(n),[2,!1];case 3:return[2]}})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var qX;(function(e){e.asymmetricKeys="asymmetricKeys",e.symmetricKeys="symmetricKeys"})(qX||(qX={}));var Mbi=(function(){function e(t){this.logger=t,this.asymmetricKeys=new rKe(this.logger,qX.asymmetricKeys),this.symmetricKeys=new rKe(this.logger,qX.symmetricKeys)}return e.prototype.clear=function(){return dn(this,void 0,void 0,function(){var t;return pn(this,function(n){switch(n.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return n.sent(),[2,!0];case 3:return t=n.sent(),t instanceof Error?this.logger.error("Clearing keystore failed with error: "+t.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Cbi=(function(){function e(t,n,r){this.logger=t,this.browserCrypto=new eOt(this.logger,r),this.b64Encode=new JAt,this.b64Decode=new ubi,this.guidGenerator=new ZAt(this.browserCrypto),this.pkceGenerator=new pbi(this.browserCrypto),this.cache=new Mbi(this.logger),this.performanceClient=n}return e.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},e.prototype.base64Encode=function(t){return this.b64Encode.encode(t)},e.prototype.base64Decode=function(t){return this.b64Decode.decode(t)},e.prototype.generatePkceCodes=function(){return dn(this,void 0,void 0,function(){return pn(this,function(t){return[2,this.pkceGenerator.generateCodes()]})})},e.prototype.getPublicKeyThumbprint=function(t){var n;return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c,u;return pn(this,function(d){switch(d.label){case 0:return r=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(Xt.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return i=d.sent(),[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return o=d.sent(),a={e:o.e,kty:o.kty,n:o.n},s=Fy.getSortedObjectString(a),[4,this.hashString(s)];case 3:return l=d.sent(),[4,this.browserCrypto.exportJwk(i.privateKey)];case 4:return c=d.sent(),[4,this.browserCrypto.importJwk(c,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:i.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return d.sent(),r&&r.endMeasurement({success:!0}),[2,l]}})})},e.prototype.removeTokenBindingKey=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){switch(r.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(t)];case 1:return r.sent(),[4,this.cache.asymmetricKeys.containsKey(t)];case 2:return n=r.sent(),[2,!n]}})})},e.prototype.clearKeystore=function(){return dn(this,void 0,void 0,function(){return pn(this,function(t){switch(t.label){case 0:return[4,this.cache.clear()];case 1:return[2,t.sent()]}})})},e.prototype.signJwt=function(t,n,r){var i;return dn(this,void 0,void 0,function(){var o,a,s,l,c,u,d,p,h,g,m,v,y;return pn(this,function(M){switch(M.label){case 0:return o=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(Xt.CryptoOptsSignJwt,r),[4,this.cache.asymmetricKeys.getItem(n)];case 1:if(a=M.sent(),!a)throw tr.createSigningKeyNotFoundInStorageError(n);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=M.sent(),l=Fy.getSortedObjectString(s),c=this.b64Encode.urlEncode(JSON.stringify({kid:n})),u=$vi.getShrHeaderString({kid:c,alg:s.alg}),d=this.b64Encode.urlEncode(u),t.cnf={jwk:JSON.parse(l)},p=this.b64Encode.urlEncode(JSON.stringify(t)),h=d+"."+p,g=Fy.stringToArrayBuffer(h),[4,this.browserCrypto.sign(a.privateKey,g)];case 3:return m=M.sent(),v=this.b64Encode.urlEncodeArr(new Uint8Array(m)),y=h+"."+v,o&&o.endMeasurement({success:!0}),[2,y]}})})},e.prototype.hashString=function(t){return dn(this,void 0,void 0,function(){var n,r;return pn(this,function(i){switch(i.label){case 0:return[4,this.browserCrypto.sha256Digest(t)];case 1:return n=i.sent(),r=new Uint8Array(n),[2,this.b64Encode.urlEncodeArr(r)]}})})},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var iKe=(function(){function e(t,n){this.correlationId=n,this.measureName=e.makeMeasureName(t,n),this.startMark=e.makeStartMark(t,n),this.endMark=e.makeEndMark(t,n)}return e.makeMeasureName=function(t,n){return"msal.measure."+t+"."+n},e.makeStartMark=function(t,n){return"msal.start."+t+"."+n},e.makeEndMark=function(t,n){return"msal.end."+t+"."+n},e.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},e.flushMeasurements=function(t,n){if(e.supportsBrowserPerformance())try{n.forEach(function(r){var i=e.makeMeasureName(r.name,t),o=window.performance.getEntriesByName(i,"measure");o.length>0&&(window.performance.clearMeasures(i),window.performance.clearMarks(e.makeStartMark(i,t)),window.performance.clearMarks(e.makeEndMark(i,t)))})}catch{}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},e.prototype.flushMeasurement=function(){if(e.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var n=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),n}}catch{}return null},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var xbi=(function(e){Id(t,e);function t(n,r,i,o,a,s,l){var c=e.call(this,n,r,i,o,a,s)||this;return c.browserCrypto=new eOt(c.logger,l),c.guidGenerator=new ZAt(c.browserCrypto),c}return t.prototype.startPerformanceMeasuremeant=function(n,r){return new iKe(n,r)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var n;return((n=document.visibilityState)===null||n===void 0?void 0:n.toString())||null},t.prototype.deleteIncompleteSubMeasurements=function(n){var r=this.eventsByCorrelationId.get(n.event.correlationId),i=r&&r.eventId===n.event.eventId,o=[];i&&r?.incompleteSubMeasurements&&r.incompleteSubMeasurements.forEach(function(a){o.push(Sr({},a))}),o.length>0&&iKe.flushMeasurements(n.event.correlationId,o)},t.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},t.prototype.startMeasurement=function(n,r){var i=this,o=this.getPageVisibility(),a=e.prototype.startMeasurement.call(this,n,r);return Sr(Sr({},a),{endMeasurement:function(s){var l=a.endMeasurement(Sr({startPageVisibility:o,endPageVisibility:i.getPageVisibility()},s));return i.deleteIncompleteSubMeasurements(a),l},discardMeasurement:function(){a.discardMeasurement(),i.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},t.prototype.setPreQueueTime=function(n,r){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+n);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+n+" not provided, unable to set telemetry queue time");return}var i=this.preQueueTimeByCorrelationId.get(r);i&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+i.name+" found",r),this.addQueueMeasurement(i.name,r,void 0,!0)),this.preQueueTimeByCorrelationId.set(r,{name:n,time:window.performance.now()})},t.prototype.addQueueMeasurement=function(n,r,i,o){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+n);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+n+" not provided, unable to add queue measurement");return}var a=e.prototype.getPreQueueTime.call(this,n,r);if(a){var s=window.performance.now(),l=i||e.prototype.calculateQueuedTime.call(this,a,s);return e.prototype.addQueueMeasurement.call(this,n,r,l,o)}},t})(UAt);/*! @azure/msal-browser v2.39.0 2024-06-06 */var wbi=(function(){function e(t,n,r,i){this.isBrowserEnvironment=typeof window<"u",this.config=t,this.storage=n,this.logger=r,this.cryptoObj=i}return e.prototype.loadExternalTokens=function(t,n,r){if(this.logger.info("TokenCache - loadExternalTokens called"),!n.id_token)throw tr.createUnableToLoadTokenError("Please ensure server response includes id token.");var i=new Bb(n.id_token,this.cryptoObj),o,a,s;if(t.account)s=M0.createFromAccountInfo(t.account),o=new jI(s,this.loadIdToken(i,s.homeAccountId,t.account.environment,t.account.tenantId),this.loadAccessToken(t,n,s.homeAccountId,t.account.environment,t.account.tenantId,r),this.loadRefreshToken(t,n,s.homeAccountId,t.account.environment));else if(t.authority){var l=i6.generateAuthority(t.authority,t.azureCloudOptions),c={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new i6(l,this.config.system.networkClient,this.storage,c,this.logger),r.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),s=this.loadAccount(i,a,r.clientInfo),o=new jI(s,this.loadIdToken(i,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(t,n,s.homeAccountId,a.hostnameAndPort,a.tenant,r),this.loadRefreshToken(t,n,s.homeAccountId,a.hostnameAndPort));else if(n.client_info)this.logger.trace("TokenCache - homeAccountId from response"),s=this.loadAccount(i,a,n.client_info),o=new jI(s,this.loadIdToken(i,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(t,n,s.homeAccountId,a.hostnameAndPort,a.tenant,r),this.loadRefreshToken(t,n,s.homeAccountId,a.hostnameAndPort));else throw tr.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw tr.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(t,i,o,s,a)},e.prototype.loadAccount=function(t,n,r,i){var o;if(i?o=i:n.authorityType!==void 0&&r&&(o=M0.generateHomeAccountId(r,n.authorityType,this.logger,this.cryptoObj,t.claims)),!o)throw tr.createUnableToLoadTokenError("Unexpected missing homeAccountId");var a=M0.createAccount({homeAccountId:o,idTokenClaims:t.claims,clientInfo:r,environment:n.hostnameAndPort},n);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(a),a;throw tr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(t,n,r,i){var o=JC.createIdTokenEntity(n,r,t.rawToken,this.config.auth.clientId,i);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(o),o;throw tr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadAccessToken=function(t,n,r,i,o,a){if(!n.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!n.expires_in)throw tr.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw tr.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new c0(t.scopes).printScopes(),l=a.expiresOn||n.expires_in+new Date().getTime()/1e3,c=a.extendedExpiresOn,u=ex.createAccessTokenEntity(r,i,n.access_token,this.config.auth.clientId,o,s,l,c,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw tr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadRefreshToken=function(t,n,r,i){if(!n.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var o=YR.createRefreshTokenEntity(r,i,n.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(o),o;throw tr.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(t,n,r,i,o){var a,s=yt.EMPTY_STRING,l=[],c=null,u;r.accessToken&&(s=r.accessToken.secret,l=c0.fromString(r.accessToken.target).asArray(),c=new Date(Number(r.accessToken.expiresOn)*1e3),u=new Date(Number(r.accessToken.extendedExpiresOn)*1e3));var d=n?.claims.oid||n?.claims.sub||yt.EMPTY_STRING,p=n?.claims.tid||yt.EMPTY_STRING;return{authority:o?o.canonicalAuthority:yt.EMPTY_STRING,uniqueId:d,tenantId:p,scopes:l,account:i?i.getAccountInfo():null,idToken:n?n.rawToken:yt.EMPTY_STRING,idTokenClaims:n?n.claims:{},accessToken:s,fromCache:!0,expiresOn:c,correlationId:t.correlationId||yt.EMPTY_STRING,requestId:yt.EMPTY_STRING,extExpiresOn:u,familyId:yt.EMPTY_STRING,tokenType:((a=r?.accessToken)===null||a===void 0?void 0:a.tokenType)||yt.EMPTY_STRING,state:yt.EMPTY_STRING,cloudGraphHostName:i.cloudGraphHostName||yt.EMPTY_STRING,msGraphHost:i.msGraphHost||yt.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var Sbi=(function(e){Id(t,e);function t(n){var r=e.call(this,n)||this;return r.includeRedirectUri=!1,r}return t})(VAt);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Abi=(function(e){Id(t,e);function t(n,r,i,o,a,s,l,c,u,d){var p=e.call(this,n,r,i,o,a,s,c,u,d)||this;return p.apiId=l,p}return t.prototype.acquireToken=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c;return pn(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!n.code)throw tr.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientInitializeAuthorizationRequest,n.correlationId),[4,this.initializeAuthorizationRequest(n,Cr.Silent)];case 1:r=u.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||yt.EMPTY_STRING,r.account||null),i=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),o=Sr(Sr({},r),{code:n.code}),this.performanceClient.setPreQueueTime(Xt.StandardInteractionClientGetClientConfiguration,n.correlationId),[4,this.getClientConfiguration(i,r.authority)];case 3:return a=u.sent(),s=new Sbi(a),this.logger.verbose("Auth code client created"),l=new QAt(s,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),[2,l.handleCodeResponseFromServer({code:n.code,msgraph_host:n.msGraphHost,cloud_graph_host_name:n.cloudGraphHostName,cloud_instance_host_name:n.cloudInstanceHostName},r.state,s.authority,this.networkClient,!1)];case 4:throw c=u.sent(),c instanceof Gr&&c.setCorrelationId(this.correlationId),i.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(r.state),c;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(tr.createSilentLogoutUnsupportedError())},t})(Ok);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Obi=(function(){function e(t){this.isBrowserEnvironment=typeof window<"u",this.config=abi(t,this.isBrowserEnvironment),this.initialized=!1,this.logger=new ete(this.config.system.loggerOptions,rpe,ZF),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new xbi(this.config.auth.clientId,this.config.auth.authority,this.logger,rpe,ZF,this.config.telemetry.application,this.config.system.cryptoOptions):new Xvi(this.config.auth.clientId,this.config.auth.authority,this.logger,rpe,ZF,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new Cbi(this.logger,this.performanceClient,this.config.system.cryptoOptions):DX,this.eventHandler=new cbi(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new r2e(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):Qvi(this.config.auth.clientId,this.logger);var n={cacheLocation:Xc.MemoryStorage,temporaryCacheLocation:Xc.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new r2e(this.config.auth.clientId,n,this.browserCrypto,this.logger),this.tokenCache=new wbi(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return dn(this,void 0,void 0,function(){var t,n,r,i,o;return pn(this,function(a){switch(a.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(t=this.config.system.allowNativeBroker,n=this.performanceClient.startMeasurement(Xt.InitializeClientApplication),this.eventHandler.emitEvent(Vr.INITIALIZE_START),!t)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),r=this,[4,cz.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return r.nativeExtensionProvider=a.sent(),[3,4];case 3:return i=a.sent(),this.logger.verbose(i),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),o=this.performanceClient.startMeasurement(Xt.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),o.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(Vr.INITIALIZE_END),n.endMeasurement({allowNativeBroker:t,success:!0}),[2]}})})},e.prototype.handleRedirectPromise=function(t){return dn(this,void 0,void 0,function(){var n,r,i,o,a,s,l,c,u=this;return pn(this,function(d){return this.logger.verbose("handleRedirectPromise called"),Zl.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),n=this.getAllAccounts(),this.isBrowserEnvironment?(r=t||yt.EMPTY_STRING,i=this.redirectResponse.get(r),typeof i>"u"?(this.eventHandler.emitEvent(Vr.HANDLE_REDIRECT_START,Cr.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),a=void 0,o&&cz.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new HI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Hs.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),l=this.browserStorage.getTemporaryCache(ba.CORRELATION_ID,!0)||yt.EMPTY_STRING,c=this.createRedirectClient(l),a=c.handleRedirectPromise(t)),i=a.then(function(p){if(p){var h=n.length<u.getAllAccounts().length;h?(u.eventHandler.emitEvent(Vr.LOGIN_SUCCESS,Cr.Redirect,p),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_SUCCESS,Cr.Redirect,p),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(Vr.HANDLE_REDIRECT_END,Cr.Redirect),p}).catch(function(p){throw n.length>0?u.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_FAILURE,Cr.Redirect,null,p):u.eventHandler.emitEvent(Vr.LOGIN_FAILURE,Cr.Redirect,null,p),u.eventHandler.emitEvent(Vr.HANDLE_REDIRECT_END,Cr.Redirect),p}),this.redirectResponse.set(r,i)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,i]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},e.prototype.acquireTokenRedirect=function(t){return dn(this,void 0,void 0,function(){var n,r,i,o,a,s=this;return pn(this,function(l){return n=this.getRequestCorrelationId(t),this.logger.verbose("acquireTokenRedirect called",n),this.preflightBrowserEnvironmentCheck(Cr.Redirect),r=this.getAllAccounts().length>0,r?this.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_START,Cr.Redirect,t):this.eventHandler.emitEvent(Vr.LOGIN_START,Cr.Redirect,t),this.nativeExtensionProvider&&this.canUseNative(t)?(o=new HI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Hs.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),i=o.acquireTokenRedirect(t).catch(function(c){if(c instanceof ob&&c.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createRedirectClient(t.correlationId);return u.acquireToken(t)}else if(c instanceof om){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var u=s.createRedirectClient(t.correlationId);return u.acquireToken(t)}throw s.browserStorage.setInteractionInProgress(!1),c})):(a=this.createRedirectClient(t.correlationId),i=a.acquireToken(t)),[2,i.catch(function(c){throw r?s.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_FAILURE,Cr.Redirect,null,c):s.eventHandler.emitEvent(Vr.LOGIN_FAILURE,Cr.Redirect,null,c),c})]})})},e.prototype.acquireTokenPopup=function(t){var n=this,r=this.getRequestCorrelationId(t),i=this.performanceClient.startMeasurement(Xt.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(Cr.Popup)}catch(l){return Promise.reject(l)}var o=this.getAllAccounts();o.length>0?this.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_START,Cr.Popup,t):this.eventHandler.emitEvent(Vr.LOGIN_START,Cr.Popup,t);var a;if(this.canUseNative(t))a=this.acquireTokenNative(t,Hs.acquireTokenPopup).then(function(l){return n.browserStorage.setInteractionInProgress(!1),i.endMeasurement({success:!0,isNativeBroker:!0,requestId:l.requestId}),l}).catch(function(l){if(l instanceof ob&&l.isFatal()){n.nativeExtensionProvider=void 0;var c=n.createPopupClient(t.correlationId);return c.acquireToken(t)}else if(l instanceof om){n.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var c=n.createPopupClient(t.correlationId);return c.acquireToken(t)}throw n.browserStorage.setInteractionInProgress(!1),l});else{var s=this.createPopupClient(t.correlationId);a=s.acquireToken(t)}return a.then(function(l){var c=o.length<n.getAllAccounts().length;return c?n.eventHandler.emitEvent(Vr.LOGIN_SUCCESS,Cr.Popup,l):n.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_SUCCESS,Cr.Popup,l),i.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),i.endMeasurement({success:!0,requestId:l.requestId}),l}).catch(function(l){return o.length>0?n.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_FAILURE,Cr.Popup,null,l):n.eventHandler.emitEvent(Vr.LOGIN_FAILURE,Cr.Popup,null,l),i.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),Promise.reject(l)})},e.prototype.trackPageVisibilityWithMeasurement=function(){var t=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;t&&(this.logger.info("Perf: Visibility change detected in ",t.event.name),t.increment({visibilityChangeCount:1}))},e.prototype.ssoSilent=function(t){var n;return dn(this,void 0,void 0,function(){var r,i,o,a,s=this;return pn(this,function(l){return r=this.getRequestCorrelationId(t),i=Sr(Sr({},t),{prompt:t.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(Cr.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(Xt.SsoSilent,r),(n=this.ssoSilentMeasurement)===null||n===void 0||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(Vr.SSO_SILENT_START,Cr.Silent,i),this.canUseNative(i)?o=this.acquireTokenNative(i,Hs.ssoSilent).catch(function(c){if(c instanceof ob&&c.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createSilentIframeClient(i.correlationId);return u.acquireToken(i)}throw c}):(a=this.createSilentIframeClient(i.correlationId),o=a.acquireToken(i)),[2,o.then(function(c){var u,d;return s.eventHandler.emitEvent(Vr.SSO_SILENT_SUCCESS,Cr.Silent,c),(u=s.ssoSilentMeasurement)===null||u===void 0||u.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),(d=s.ssoSilentMeasurement)===null||d===void 0||d.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),c}).catch(function(c){var u;throw s.eventHandler.emitEvent(Vr.SSO_SILENT_FAILURE,Cr.Silent,null,c),(u=s.ssoSilentMeasurement)===null||u===void 0||u.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c}).finally(function(){document.removeEventListener("visibilitychange",s.trackPageVisibilityWithMeasurement)})]})})},e.prototype.acquireTokenByCode=function(t){return dn(this,void 0,void 0,function(){var n,r,i,o,a=this;return pn(this,function(s){n=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(Cr.Silent),this.logger.trace("acquireTokenByCode called",n),this.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_BY_CODE_START,Cr.Silent,t),r=this.performanceClient.startMeasurement(Xt.AcquireTokenByCode,t.correlationId);try{if(t.code&&t.nativeAccountId)throw tr.createSpaCodeAndNativeAccountIdPresentError();if(t.code)return i=t.code,o=this.hybridAuthCodeResponses.get(i),o?(this.logger.verbose("Existing acquireTokenByCode request found",t.correlationId),r.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",n),o=this.acquireTokenByCodeAsync(Sr(Sr({},t),{correlationId:n})).then(function(l){return a.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_BY_CODE_SUCCESS,Cr.Silent,l),a.hybridAuthCodeResponses.delete(i),r.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),r.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){throw a.hybridAuthCodeResponses.delete(i),a.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_BY_CODE_FAILURE,Cr.Silent,null,l),r.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}),this.hybridAuthCodeResponses.set(i,o)),[2,o];if(t.nativeAccountId){if(this.canUseNative(t,t.nativeAccountId))return[2,this.acquireTokenNative(t,Hs.acquireTokenByCode,t.nativeAccountId).catch(function(l){throw l instanceof ob&&l.isFatal()&&(a.nativeExtensionProvider=void 0),l})];throw tr.createUnableToAcquireTokenFromNativePlatformError()}else throw tr.createAuthCodeOrNativeAccountIdRequiredError()}catch(l){throw this.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_BY_CODE_FAILURE,Cr.Silent,null,l),r.endMeasurement({errorCode:l instanceof Gr&&l.errorCode||void 0,subErrorCode:l instanceof Gr&&l.subError||void 0,success:!1}),l}return[2]})})},e.prototype.acquireTokenByCodeAsync=function(t){var n;return dn(this,void 0,void 0,function(){var r,i,o=this;return pn(this,function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",t.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(Xt.AcquireTokenByCodeAsync,t.correlationId),(n=this.acquireTokenByCodeAsyncMeasurement)===null||n===void 0||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),r=this.createSilentAuthCodeClient(t.correlationId),[4,r.acquireToken(t).then(function(s){var l;return(l=o.acquireTokenByCodeAsyncMeasurement)===null||l===void 0||l.endMeasurement({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromNativeBroker,requestId:s.requestId}),s}).catch(function(s){var l;throw(l=o.acquireTokenByCodeAsyncMeasurement)===null||l===void 0||l.endMeasurement({errorCode:s.errorCode,subErrorCode:s.subError,success:!1}),s}).finally(function(){document.removeEventListener("visibilitychange",o.trackPageVisibilityWithMeasurement)})];case 1:return i=a.sent(),[2,i]}})})},e.prototype.acquireTokenFromCache=function(t,n,r){return dn(this,void 0,void 0,function(){return pn(this,function(i){switch(this.performanceClient.addQueueMeasurement(Xt.AcquireTokenFromCache,n.correlationId),r.cacheLookupPolicy){case K1.Default:case K1.AccessToken:case K1.AccessTokenAndRefreshToken:return[2,t.acquireToken(n)];default:throw Ar.createRefreshRequiredError()}return[2]})})},e.prototype.acquireTokenByRefreshToken=function(t,n){return dn(this,void 0,void 0,function(){var r;return pn(this,function(i){switch(this.performanceClient.addQueueMeasurement(Xt.AcquireTokenByRefreshToken,t.correlationId),n.cacheLookupPolicy){case K1.Default:case K1.AccessTokenAndRefreshToken:case K1.RefreshToken:case K1.RefreshTokenAndNetwork:return r=this.createSilentRefreshClient(t.correlationId),this.performanceClient.setPreQueueTime(Xt.SilentRefreshClientAcquireToken,t.correlationId),[2,r.acquireToken(t)];default:throw Ar.createRefreshRequiredError()}return[2]})})},e.prototype.acquireTokenBySilentIframe=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){return this.performanceClient.addQueueMeasurement(Xt.AcquireTokenBySilentIframe,t.correlationId),n=this.createSilentIframeClient(t.correlationId),this.performanceClient.setPreQueueTime(Xt.SilentIframeClientAcquireToken,t.correlationId),[2,n.acquireToken(t)]})})},e.prototype.logout=function(t){return dn(this,void 0,void 0,function(){var n;return pn(this,function(r){return n=this.getRequestCorrelationId(t),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",n),[2,this.logoutRedirect(Sr({correlationId:n},t))]})})},e.prototype.logoutRedirect=function(t){return dn(this,void 0,void 0,function(){var n,r;return pn(this,function(i){return n=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(Cr.Redirect),r=this.createRedirectClient(n),[2,r.logout(t)]})})},e.prototype.logoutPopup=function(t){try{var n=this.getRequestCorrelationId(t);this.preflightBrowserEnvironmentCheck(Cr.Popup);var r=this.createPopupClient(n);return r.logout(t)}catch(i){return Promise.reject(i)}},e.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},e.prototype.getAccountByUsername=function(t){if(this.logger.trace("getAccountByUsername called"),!t)return this.logger.warning("getAccountByUsername: No username provided"),null;var n=this.browserStorage.getAccountInfoFilteredBy({username:t});return n?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+t),n):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},e.prototype.getAccountByHomeId=function(t){if(this.logger.trace("getAccountByHomeId called"),!t)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var n=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:t});return n?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+t),n):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},e.prototype.getAccountByLocalId=function(t){if(this.logger.trace("getAccountByLocalId called"),!t)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var n=this.browserStorage.getAccountInfoFilteredBy({localAccountId:t});return n?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+t),n):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},e.prototype.setActiveAccount=function(t){this.browserStorage.setActiveAccount(t)},e.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},e.prototype.preflightBrowserEnvironmentCheck=function(t,n){if(n===void 0&&(n=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Zl.blockNonBrowserEnvironment(this.isBrowserEnvironment),Zl.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),Zl.blockReloadInHiddenIframes(),Zl.blockAcquireTokenInPopups(),Zl.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t===Cr.Redirect&&this.config.cache.cacheLocation===Xc.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Hc.createInMemoryRedirectUnavailableError();(t===Cr.Redirect||t===Cr.Popup)&&this.preflightInteractiveRequest(n)},e.prototype.preflightInteractiveRequest=function(t){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Zl.blockReloadInHiddenIframes(),t&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(t,n,r){return dn(this,void 0,void 0,function(){var i;return pn(this,function(o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw tr.createNativeConnectionNotEstablishedError();return i=new HI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,n,this.performanceClient,this.nativeExtensionProvider,r||this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),[2,i.acquireToken(t)]})})},e.prototype.canUseNative=function(t,n){if(this.logger.trace("canUseNative called"),!cz.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(t.prompt)switch(t.prompt){case g0.NONE:case g0.CONSENT:case g0.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+t.prompt+" is not compatible with native flow, returning false"),!1}return!n&&!this.getNativeAccountId(t)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},e.prototype.getNativeAccountId=function(t){var n=t.account||this.browserStorage.getAccountInfoByHints(t.loginHint,t.sid)||this.getActiveAccount();return n&&n.nativeAccountId||""},e.prototype.createPopupClient=function(t){return new tbi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},e.prototype.createRedirectClient=function(t){return new ebi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},e.prototype.createSilentIframeClient=function(t){return new sbi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Hs.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},e.prototype.createSilentCacheClient=function(t){return new KAt(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},e.prototype.createSilentRefreshClient=function(t){return new lbi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},e.prototype.createSilentAuthCodeClient=function(t){return new Abi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Hs.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,t)},e.prototype.addEventCallback=function(t){return this.eventHandler.addEventCallback(t)},e.prototype.removeEventCallback=function(t){this.eventHandler.removeEventCallback(t)},e.prototype.addPerformanceCallback=function(t){return this.performanceClient.addPerformanceCallback(t)},e.prototype.removePerformanceCallback=function(t){return this.performanceClient.removePerformanceCallback(t)},e.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},e.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},e.prototype.getTokenCache=function(){return this.tokenCache},e.prototype.getLogger=function(){return this.logger},e.prototype.setLogger=function(t){this.logger=t},e.prototype.initializeWrapperLibrary=function(t,n){this.browserStorage.setWrapperMetadata(t,n)},e.prototype.setNavigationClient=function(t){this.navigationClient=t},e.prototype.getConfiguration=function(){return this.config},e.prototype.getRequestCorrelationId=function(t){return t?.correlationId?t.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():yt.EMPTY_STRING},e})();/*! @azure/msal-browser v2.39.0 2024-06-06 */var zbi=(function(e){Id(t,e);function t(n){var r=e.call(this,n)||this;return r.astsAsyncMeasurement=void 0,r.activeSilentTokenRequests=new Map,r.trackPageVisibility=r.trackPageVisibility.bind(r),r}return t.prototype.loginRedirect=function(n){return dn(this,void 0,void 0,function(){var r;return pn(this,function(i){return r=this.getRequestCorrelationId(n),this.logger.verbose("loginRedirect called",r),[2,this.acquireTokenRedirect(Sr({correlationId:r},n||JYe))]})})},t.prototype.loginPopup=function(n){var r=this.getRequestCorrelationId(n);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup(Sr({correlationId:r},n||JYe))},t.prototype.acquireTokenSilent=function(n){return dn(this,void 0,void 0,function(){var r,i,o,a,s,l,c,u=this;return pn(this,function(d){if(r=this.getRequestCorrelationId(n),i=this.performanceClient.startMeasurement(Xt.AcquireTokenSilent,r),i.addStaticFields({cacheLookupPolicy:n.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(Cr.Silent),this.logger.verbose("acquireTokenSilent called",r),o=n.account||this.getActiveAccount(),!o)throw tr.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:n.authority||yt.EMPTY_STRING,scopes:n.scopes,homeAccountIdentifier:o.homeAccountId,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},s=JSON.stringify(a),l=this.activeSilentTokenRequests.get(s),typeof l>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r),this.performanceClient.setPreQueueTime(Xt.AcquireTokenSilentAsync,r),c=this.acquireTokenSilentAsync(Sr(Sr({},n),{correlationId:r}),o).then(function(p){return u.activeSilentTokenRequests.delete(s),i.addStaticFields({accessTokenSize:p.accessToken.length,idTokenSize:p.idToken.length}),i.endMeasurement({success:!0,fromCache:p.fromCache,isNativeBroker:p.fromNativeBroker,cacheLookupPolicy:n.cacheLookupPolicy,requestId:p.requestId}),p}).catch(function(p){throw u.activeSilentTokenRequests.delete(s),i.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p}),this.activeSilentTokenRequests.set(s,c),[2,c]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),i.discardMeasurement(),[2,l])})})},t.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},t.prototype.acquireTokenSilentAsync=function(n,r){var i;return dn(this,void 0,void 0,function(){var o,a,s,l,c,u=this;return pn(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(Xt.AcquireTokenSilentAsync,n.correlationId),this.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_START,Cr.Silent,n),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(Xt.AcquireTokenSilentAsync,n.correlationId),(i=this.astsAsyncMeasurement)===null||i===void 0||i.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),cz.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,n.authenticationScheme)&&r.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=Sr(Sr({},n),{account:r}),o=this.acquireTokenNative(a,Hs.acquireTokenSilent_silentFlow).catch(function(p){return dn(u,void 0,void 0,function(){var h;return pn(this,function(g){if(p instanceof ob&&p.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,h=this.createSilentIframeClient(n.correlationId),[2,h.acquireToken(n)];throw p})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(n.correlationId),this.performanceClient.setPreQueueTime(Xt.InitializeSilentRequest,n.correlationId),[4,s.initializeSilentRequest(n,r)];case 2:l=d.sent(),c=Sr(Sr({},n),{cacheLookupPolicy:n.cacheLookupPolicy||K1.Default}),this.performanceClient.setPreQueueTime(Xt.AcquireTokenFromCache,l.correlationId),o=this.acquireTokenFromCache(s,l,c).catch(function(p){if(c.cacheLookupPolicy===K1.AccessToken)throw p;return Zl.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_NETWORK_START,Cr.Silent,l),u.performanceClient.setPreQueueTime(Xt.AcquireTokenByRefreshToken,l.correlationId),u.acquireTokenByRefreshToken(l,c).catch(function(h){var g=h instanceof c3,m=h instanceof om,v=h.errorCode===KR.noTokensFoundError.code,y=h.errorCode===Ug.INVALID_GRANT_ERROR;if((!g||!y||m||c.cacheLookupPolicy===K1.AccessTokenAndRefreshToken||c.cacheLookupPolicy===K1.RefreshToken)&&c.cacheLookupPolicy!==K1.Skip&&!v)throw h;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",n.correlationId),u.performanceClient.setPreQueueTime(Xt.AcquireTokenBySilentIframe,l.correlationId),u.acquireTokenBySilentIframe(l)})}),d.label=3;case 3:return[2,o.then(function(p){var h;return u.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_SUCCESS,Cr.Silent,p),(h=u.astsAsyncMeasurement)===null||h===void 0||h.endMeasurement({success:!0,fromCache:p.fromCache,isNativeBroker:p.fromNativeBroker,requestId:p.requestId}),p}).catch(function(p){var h;throw u.eventHandler.emitEvent(Vr.ACQUIRE_TOKEN_FAILURE,Cr.Silent,null,p),(h=u.astsAsyncMeasurement)===null||h===void 0||h.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibility)})]}})})},t.prototype.hydrateCache=function(n,r){return dn(this,void 0,void 0,function(){var i;return pn(this,function(o){return this.logger.verbose("hydrateCache called"),n.account?(i=M0.createFromAccountInfo(n.account,n.cloudGraphHostName,n.msGraphHost),this.browserStorage.setAccount(i),n.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),[2,this.nativeInternalStorage.hydrateCache(n,r)]):[2,this.browserStorage.hydrateCache(n,r)]):[2]})})},t})(Obi);/*! @azure/msal-browser v2.39.0 2024-06-06 */var Tbi={initialize:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},acquireTokenPopup:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},acquireTokenRedirect:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},acquireTokenSilent:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},acquireTokenByCode:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},getAllAccounts:function(){return[]},getAccountByHomeId:function(){return null},getAccountByUsername:function(){return null},getAccountByLocalId:function(){return null},handleRedirectPromise:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},loginPopup:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},loginRedirect:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},logout:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},logoutRedirect:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},logoutPopup:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},ssoSilent:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())},addEventCallback:function(){return null},removeEventCallback:function(){},addPerformanceCallback:function(){return""},removePerformanceCallback:function(){return!1},enableAccountStorageEvents:function(){},disableAccountStorageEvents:function(){},getTokenCache:function(){throw Hc.createStubPcaInstanceCalledError()},getLogger:function(){throw Hc.createStubPcaInstanceCalledError()},setLogger:function(){},setActiveAccount:function(){},getActiveAccount:function(){return null},initializeWrapperLibrary:function(){},setNavigationClient:function(){},getConfiguration:function(){throw Hc.createStubPcaInstanceCalledError()},hydrateCache:function(){return Promise.reject(Hc.createStubPcaInstanceCalledError())}};/*! @azure/msal-browser v2.39.0 2024-06-06 */var Ebi=(function(){function e(){}return e.getInteractionStatusFromEvent=function(t,n){switch(t.eventType){case Vr.LOGIN_START:return Vc.Login;case Vr.SSO_SILENT_START:return Vc.SsoSilent;case Vr.ACQUIRE_TOKEN_START:if(t.interactionType===Cr.Redirect||t.interactionType===Cr.Popup)return Vc.AcquireToken;break;case Vr.HANDLE_REDIRECT_START:return Vc.HandleRedirect;case Vr.LOGOUT_START:return Vc.Logout;case Vr.SSO_SILENT_SUCCESS:case Vr.SSO_SILENT_FAILURE:if(n&&n!==Vc.SsoSilent)break;return Vc.None;case Vr.LOGOUT_END:if(n&&n!==Vc.Logout)break;return Vc.None;case Vr.HANDLE_REDIRECT_END:if(n&&n!==Vc.HandleRedirect)break;return Vc.None;case Vr.LOGIN_SUCCESS:case Vr.LOGIN_FAILURE:case Vr.ACQUIRE_TOKEN_SUCCESS:case Vr.ACQUIRE_TOKEN_FAILURE:case Vr.RESTORE_FROM_BFCACHE:if(t.interactionType===Cr.Redirect||t.interactionType===Cr.Popup){if(n&&n!==Vc.Login&&n!==Vc.AcquireToken)break;return Vc.None}break}return null},e})();const Rbi={instance:Tbi,inProgress:Vc.None,accounts:[],logger:new ete({})},o3e=b.createContext(Rbi);o3e.Consumer;function oKe(e,t){if(e.length!==t.length)return!1;const n=[...t];return e.every(r=>{const i=n.shift();return!r||!i?!1:r.homeAccountId===i.homeAccountId&&r.localAccountId===i.localAccountId&&r.username===i.username})}const Ibi="@azure/msal-react",aKe="1.5.13";var eD;(function(e){e.UNBLOCK_INPROGRESS="UNBLOCK_INPROGRESS",e.EVENT="EVENT"})(eD||(eD={}));const Pbi=(e,t)=>{const{type:n,payload:r}=t;let i=e.inProgress;switch(n){case eD.UNBLOCK_INPROGRESS:e.inProgress===Vc.Startup&&(i=Vc.None,r.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case eD.EVENT:const a=r.message,s=Ebi.getInteractionStatusFromEvent(a,e.inProgress);s&&(r.logger.info(`MsalProvider - ${a.eventType} results in setting inProgress from ${e.inProgress} to ${s}`),i=s);break;default:throw new Error(`Unknown action type: ${n}`)}const o=r.instance.getAllAccounts();return i!==e.inProgress&&!oKe(o,e.accounts)?{...e,inProgress:i,accounts:o}:i!==e.inProgress?{...e,inProgress:i}:oKe(o,e.accounts)?e:{...e,accounts:o}};function Dbi(e){let{instance:t,children:n}=e;b.useEffect(()=>{t.initializeWrapperLibrary(e2e.React,aKe)},[t]);const r=b.useMemo(()=>t.getLogger().clone(Ibi,aKe),[t]),[i,o]=b.useReducer(Pbi,void 0,()=>({inProgress:Vc.Startup,accounts:t.getAllAccounts()}));b.useEffect(()=>{const s=t.addEventCallback(l=>{o({payload:{instance:t,logger:r,message:l},type:eD.EVENT})});return r.verbose(`MsalProvider - Registered event callback with id: ${s}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{o({payload:{instance:t,logger:r},type:eD.UNBLOCK_INPROGRESS})})}),()=>{s&&(r.verbose(`MsalProvider - Removing event callback ${s}`),t.removeEventCallback(s))}},[t,r]);const a={instance:t,inProgress:i.inProgress,accounts:i.accounts,logger:r};return E.createElement(o3e.Provider,{value:a},n)}const kbi=()=>b.useContext(o3e);var r5={},sKe;function Lbi(){if(sKe)return r5;sKe=1;var e=ri(),t=ii();Object.defineProperty(r5,"__esModule",{value:!0}),r5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"}),"Cloud");return r5.default=i,r5}var _bi=Lbi();const Nbi=qn(_bi);var i5={},lKe;function Fbi(){if(lKe)return i5;lKe=1;var e=ri(),t=ii();Object.defineProperty(i5,"__esModule",{value:!0}),i5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"Refresh");return i5.default=i,i5}var Wbi=Fbi();const qbi=qn(Wbi);var o5={},cKe;function Bbi(){if(cKe)return o5;cKe=1;var e=ri(),t=ii();Object.defineProperty(o5,"__esModule",{value:!0}),o5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");return o5.default=i,o5}var jbi=Bbi();const Hbi=qn(jbi);var a5={},uKe;function Vbi(){if(uKe)return a5;uKe=1;var e=ri(),t=ii();Object.defineProperty(a5,"__esModule",{value:!0}),a5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zM7 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"}),"ToggleOff");return a5.default=i,a5}var Gbi=Vbi();const $bi=qn(Gbi);var s5={},dKe;function Ubi(){if(dKe)return s5;dKe=1;var e=ri(),t=ii();Object.defineProperty(s5,"__esModule",{value:!0}),s5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zm0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"}),"ToggleOn");return s5.default=i,s5}var Xbi=Ubi();const Ybi=qn(Xbi);var l5={},pKe;function Kbi(){if(pKe)return l5;pKe=1;var e=ri(),t=ii();Object.defineProperty(l5,"__esModule",{value:!0}),l5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),"Description");return l5.default=i,l5}var Qbi=Kbi();const tOt=qn(Qbi);var c5={},hKe;function Zbi(){if(hKe)return c5;hKe=1;var e=ri(),t=ii();Object.defineProperty(c5,"__esModule",{value:!0}),c5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}),"Image");return c5.default=i,c5}var Jbi=Zbi();const nOt=qn(Jbi);var u5={},fKe;function e2i(){if(fKe)return u5;fKe=1;var e=ri(),t=ii();Object.defineProperty(u5,"__esModule",{value:!0}),u5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19 5v14H5V5h14m1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9zM11 7h6v2h-6V7zm0 4h6v2h-6v-2zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt");return u5.default=i,u5}var t2i=e2i();const rOt=qn(t2i);var d5={},gKe;function n2i(){if(gKe)return d5;gKe=1;var e=ri(),t=ii();Object.defineProperty(d5,"__esModule",{value:!0}),d5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L20 19.59zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3z"}),"FindInPage");return d5.default=i,d5}var r2i=n2i();const iOt=qn(r2i);var o2e=function(e,t){return o2e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},o2e(e,t)};function tte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");o2e(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var tt=function(){return tt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},tt.apply(this,arguments)};function a2(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ct(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function xt(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function xi(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var i2i=function(e){return Mp({root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})},o2i=or(i2i)(function(e){var t=e.children,n=e.classes,r=e.onClose,i=a2(e,["children","classes","onClose"]);return E.createElement(T0,tt({disableTypography:!0,style:{display:"flex",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"baseline"}},i),E.createElement(bt,{variant:"h6"},t),r?E.createElement(yn,{"aria-label":"close",className:n.closeButton,onClick:r},E.createElement(nQ,null)):E.createElement(E.Fragment,null))}),a2i=or(function(e){return{root:{padding:e.spacing(2),minWidth:600,overflow:"hidden"}}})(ru),s2i=or(function(e){return{root:{margin:0,padding:e.spacing(1)}}})(Td);function l2i(e){var t=e.children,n=e.title,r=e.handleClose,i=e.open,o=e.id,a=o===void 0?"mesf-modal":o,s=e.maxWidth,l=s===void 0?"lg":s;return E.createElement(Qu,{onClose:function(){return r()},"aria-labelledby":a,open:i,maxWidth:l,style:{minWidth:320}},E.createElement(o2i,{id:a,onClose:function(){return r()}},n),t)}var We=Object.assign(l2i,{Content:a2i,Actions:s2i}),Mt=function(e){var t=e.error,n=e.onHide,r=e.title,i=r===void 0?"Ups!":r,o=e.size,a=o===void 0?"md":o;return t?E.createElement(We,{open:!0,handleClose:function(){n()},title:i,maxWidth:a},E.createElement(We.Content,null,E.createElement("div",null,t)),E.createElement(We.Actions,null,E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end",style:{padding:"1rem",minWidth:"600px"}},E.createElement(D,{item:!0,md:2,xs:12},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){n()}},"Ok"))))):null},oOt=b.createContext(void 0),c2i=function(e){var t=e.navbarTitle,n=e.children;return E.createElement(oOt.Provider,{value:{navbarTitle:t}},n)},u2i=function(){var e=b.useContext(oOt);if(e===void 0)throw new Error("useHelmet must be used within a HelmetProvider");return e},Mn=function(e){var t=e.title,n=a2(e,["title"]),r=u2i().navbarTitle;return E.createElement(hRn,tt({defer:!1},n),E.createElement("title",null,t," - ",r))},mKe=[],p5=[];function aOt(e,t){if(e&&typeof document<"u"){var n,r=t.prepend===!0?"prepend":"append",i=t.singleTag===!0,o=typeof t.container=="string"?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var a=mKe.indexOf(o);a===-1&&(a=mKe.push(o)-1,p5[a]={}),n=p5[a]&&p5[a][r]?p5[a][r]:p5[a][r]=s()}else n=s();e.charCodeAt(0)===65279&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function s(){var l=document.createElement("style");if(l.setAttribute("type","text/css"),t.attributes)for(var c=Object.keys(t.attributes),u=0;u<c.length;u++)l.setAttribute(c[u],t.attributes[c[u]]);var d=r==="prepend"?"afterbegin":"beforeend";return o.insertAdjacentElement(d,l),l}}var d2i=`.lds-ring {
	display: inline-block;
	position: relative;
	width: 80px;
	height: 80px;
}
.lds-ring div {
	box-sizing: border-box;
	display: block;
	position: absolute;
	width: 64px;
	height: 64px;
	margin: 8px;
	border: 5px solid rgb(63, 81, 181);
	border-radius: 50%;
	animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	border-color: rgb(63, 81, 181) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
	animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
	animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
	animation-delay: -0.15s;
}
@keyframes lds-ring {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
`;aOt(d2i,{});var zk=function(){return E.createElement(E.Fragment,null,E.createElement("div",{className:"lds-ring"},E.createElement("div",null),E.createElement("div",null),E.createElement("div",null),E.createElement("div",null)))},Wm=function(){return E.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(zk,null))};Z.array,Z.array;function p2i(e){return E.createElement(Tz,tt({fontSize:"inherit",style:{width:14,height:14}},e),E.createElement("path",{d:"M22.047 22.074v0 0-20.147 0h-20.12v0 20.147 0h20.12zM22.047 24h-20.12q-.803 0-1.365-.562t-.562-1.365v-20.147q0-.776.562-1.351t1.365-.575h20.147q.776 0 1.351.575t.575 1.351v20.147q0 .803-.575 1.365t-1.378.562v0zM17.873 11.023h-11.826q-.375 0-.669.281t-.294.682v0q0 .401.294 .682t.669.281h11.826q.375 0 .669-.281t.294-.682v0q0-.401-.294-.682t-.669-.281z"}))}function h2i(e){return E.createElement(Tz,tt({fontSize:"inherit",style:{width:14,height:14}},e),E.createElement("path",{d:"M22.047 22.074v0 0-20.147 0h-20.12v0 20.147 0h20.12zM22.047 24h-20.12q-.803 0-1.365-.562t-.562-1.365v-20.147q0-.776.562-1.351t1.365-.575h20.147q.776 0 1.351.575t.575 1.351v20.147q0 .803-.575 1.365t-1.378.562v0zM17.873 12.977h-4.923v4.896q0 .401-.281.682t-.682.281v0q-.375 0-.669-.281t-.294-.682v-4.896h-4.923q-.401 0-.682-.294t-.281-.669v0q0-.401.281-.682t.682-.281h4.923v-4.896q0-.401.294-.682t.669-.281v0q.401 0 .682.281t.281.682v4.896h4.923q.401 0 .682.281t.281.682v0q0 .375-.281.669t-.682.294z"}))}function sOt(e){var t=oj({from:{opacity:0,transform:"translate3d(20px,0,0)"},to:{opacity:e.in?1:0,transform:"translate3d(".concat(e.in?0:20,"px,0,0)")}});return E.createElement(If.div,{style:t},E.createElement(xMe,tt({},e)))}sOt.propTypes={in:Z.bool};var f2i=or(function(e){return{iconContainer:{"& .close":{opacity:.3}},group:{marginLeft:7,paddingLeft:18,borderLeft:"1px dashed ".concat(jo(e.palette.text.primary,.4))},label:{backgroundColor:function(t){return t.isChecked?jo(e.palette.primary.main,.8)+" !important":"inherit"}}}})(function(e){return E.createElement(PEn,tt({},e,{TransitionComponent:sOt}))}),g2i=Rt(function(e){return{root:{minHeight:350,flexGrow:1,height:"100%",overflow:"auto",overflowX:"hidden",width:"100%"},treeContainer:{flex:1,overflow:"auto",display:"flex",flexDirection:"column",paddingTop:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),paddingBottom:e.spacing(2)},treLabelIcon:{marginRight:e.spacing(1)},treeLabelRoot:{display:"flex",alignItems:"center",padding:e.spacing(.5,0)},treeLabelText:{fontWeight:"inherit",flexGrow:1},treeLabelInactive:{textDecoration:"line-through",textDecorationColor:"red"},treeLabelUnselectable:{color:"grey"},smallCheckbox:{transform:"scale(0.8)"},searchField:{marginBottom:e.spacing(1),"& .MuiOutlinedInput-root":{padding:"6px 8px"},"& .MuiInputBase-input":{padding:"8px 0px"}},searchResults:{position:"absolute",zIndex:1300,width:"100%",maxHeight:300,overflow:"auto",marginTop:e.spacing(1),boxShadow:e.shadows[3]},searchResultItem:{cursor:"pointer",paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5),minHeight:"auto","&:hover":{backgroundColor:e.palette.action.hover},"&.focused":{backgroundColor:e.palette.action.selected,outline:"2px solid ".concat(e.palette.primary.main),outlineOffset:"-2px"}},searchResultPath:{fontSize:"0.75rem",color:e.palette.text.secondary,fontStyle:"italic",marginTop:e.spacing(.25)},searchResultIcon:{minWidth:32},searchContainer:{position:"sticky",top:0,zIndex:1e3,backgroundColor:e.palette.background.paper,borderBottom:"1px solid ".concat(e.palette.divider),padding:e.spacing(1),paddingBottom:e.spacing(.5),marginBottom:e.spacing(.5)}}}),lOt=function(e){var t=e.onClose,n=e.value,r=e.open,i=e.title,o=e.data,a=e.selectBranch,s=e.selectActive,l=e.selectInternal,c=e.multipleSelectNodes,u=e.onHide,d=e.listAssetDrawings,p=e.setListAssetDrawings,h=e.onSuccess,g=e.isLoading,m=e.mostUsedCount,v=e.itemsWithParent,y=e.dialogMaxWidth,M=y===void 0?"sm":y,C=e.allowSearch,x=C===void 0?!1:C,w=a2(e,["onClose","value","open","title","data","selectBranch","selectActive","selectInternal","multipleSelectNodes","onHide","listAssetDrawings","setListAssetDrawings","onSuccess","isLoading","mostUsedCount","itemsWithParent","dialogMaxWidth","allowSearch"]),S=b.useState(n),A=S[0],z=S[1],O=b.useState([]),T=O[0],I=O[1],P=b.useRef(null),N=b.useState([]),F=N[0],L=N[1],W=b.useState(""),H=W[0],j=W[1],G=b.useState([]),q=G[0],$=G[1],U=b.useState(!1),X=U[0],Q=U[1],re=b.useState(-1),ee=re[0],se=re[1],pe=b.useRef(null),te=b.useRef(null),ce=b.useRef([]),oe=b.useRef(null),ae=g2i();b.useEffect(function(){r?(n!==void 0&&(Oe(n),setTimeout(function(){var ve=document.getElementById(n.toString());ve&&ve.scrollIntoView({behavior:"smooth",block:"center"})},300)),x&&setTimeout(function(){if(oe.current)oe.current.focus();else{var ve=document.querySelector('input[placeholder*="Search"]');ve&&ve.focus()}},200)):(z(n),j(""),$([]),Q(!1),se(-1))},[n,r,x]),b.useEffect(function(){if(Array.isArray(d)&&d.length>=1){L(d);var ve=ne(o,d);I(ve)}},[d,o]);var ne=function(ve,De){var ze=[];if(De.includes(ve.id)&&ze.push(ve.id.toString()),Array.isArray(ve.children))for(var Ve=0,Ke=ve.children;Ve<Ke.length;Ve++){var et=Ke[Ve],it=ne(et,De);it.length>0&&(ze.push(ve.id.toString()),ze=ze.concat(it))}return ze},le=function(){j(""),$([]),Q(!1),se(-1),z(n),t(),u&&u(!1)},he=function(){var ve=ue(o,A!==void 0?A:-1);ve===null&&(ve={});var De=s&&ve.isActive||s!==!0,ze=l&&ve.isInternal||l!==!0,Ve=a&&!ve.isLeaf;ve.isLeaf?De&&ze&&(t(A,ve.name,ve),h&&h(!0)):Ve&&(t(A,ve.name,ve),h&&h(!0))},be=function(ve){if(ve.key==="Escape"){X?(j(""),$([]),Q(!1),se(-1)):(j(""),$([]),Q(!1),se(-1),z(n),t());return}if(X&&q.length>0){if(ve.key==="ArrowDown"){ve.preventDefault();var De=ee<q.length-1?ee+1:0;se(De),setTimeout(function(){return Ee(De)},0)}else if(ve.key==="ArrowUp"){ve.preventDefault();var ze=ee>0?ee-1:q.length-1;se(ze),setTimeout(function(){return Ee(ze)},0)}else if(ve.key==="Enter"&&ee>=0){ve.preventDefault();var Ve=q[ee];Ve&&Le(Ve)}}else ve.key==="Enter"&&!X&&(ve.preventDefault(),he())},me=function(ve){ve.stopPropagation()},Me=function(ve,De,ze){if(ze===void 0&&(ze=[]),!ve||ve.id===void 0)return[];if(ve.id===De)return ze.push(ve.id.toString()),ze;if(Array.isArray(ve.children)){ze.push(ve.id.toString());for(var Ve=0;Ve<ve.children.length;Ve++){var Ke=Me(ve.children[Ve],De,ze.slice());if(Ke.length>0)return Ke}}return[]},Oe=function(ve){var De=Me(o,ve,[]);De.push(ve.toString());var ze=Array.from(new Set(xi(xi([],T,!0),De,!0)));I(ze)},de=function(ve,De){var ze=ue(o,De!==void 0?Number.parseInt(De):-1);ze?.hasOwnProperty("isSelectable")&&ze.isSelectable===!1||z(Number.parseInt(De))},ie=function(ve,De){I(De)},ue=function(ve,De){if(De===void 0)return null;if(ve.id===De)return ve;if(Array.isArray(ve.children)){var ze,Ve=null;for(ze=0;Ve==null&&ze<ve.children.length;ze++)Ve=ue(ve.children[ze],De);return Ve}return null},Ae=function(ve){if(ve){var De=F.includes(ve.id),ze=void 0;De?ze=F.filter(function(Ke){return Ke!==ve.id}):ze=xi(xi([],F,!0),[ve.id],!1),L(ze),p&&p(ze);var Ve=ne(o,ze);I(Ve)}};function Ce(ve,De){De===void 0&&(De=void 0);var ze=[],Ve=Array.isArray(ve)?ve:[ve];return Ve.forEach(function(Ke){De!==void 0?Ke.parentName=De:delete Ke.parentName,ze.push(Ke),Ke.children&&Ke.children.length>0&&(ze=ze.concat(Ce(Ke.children,Ke.name)))}),ze}var Ee=function(ve){var De;ce.current[ve]&&((De=ce.current[ve])===null||De===void 0||De.scrollIntoView({behavior:"smooth",block:"nearest"}))},Ge=b.useMemo(function(){var ve=[],De=function(ze,Ve){Ve===void 0&&(Ve=[]);var Ke=xi(xi([],Ve,!0),[ze.name],!1),et=Ke.join("/"),it=ze.isLeaf===void 0?!!(ze.children&&ze.children.length>0):!ze.isLeaf;if(ve.push({id:ze.id,name:ze.name,path:et,isCode:ze.isCode,hasChildren:it,node:ze}),ze.children)for(var Ft=0,Pt=ze.children;Ft<Pt.length;Ft++){var Qn=Pt[Ft];De(Qn,Ke)}};return o&&De(o),ve},[o]),_e=function(ve){var De=ve.toLowerCase();return Ge.filter(function(ze){return ze.name.toLowerCase().includes(De)})},Ie=function(ve){var De=ve.target.value;if(j(De),pe.current&&clearTimeout(pe.current),De.trim()===""||De.length<2){$([]),Q(!1);return}pe.current=setTimeout(function(){var ze=_e(De);$(ze),Q(ze.length>0);var Ve=ze.length>0?0:-1;se(Ve),ce.current=new Array(ze.length).fill(null),Ve>=0&&setTimeout(function(){return Ee(Ve)},100)},250)},Le=function(ve){var De=Me(o,ve.id,[]),ze=Array.from(new Set(xi(xi([],T,!0),De,!0)));I(ze),z(ve.id),j(""),$([]),Q(!1),se(-1),oe.current&&oe.current.blur(),setTimeout(function(){var Ve=document.getElementById(ve.id.toString());Ve&&Ve.scrollIntoView({behavior:"smooth",block:"center"})},300)},we=function(ve){return E.createElement(f2i,{isChecked:F.includes(ve.id),key:ve.id,nodeId:ve.id.toString(),label:E.createElement("div",{className:ae.treeLabelRoot},ve.isCode===!0&&E.createElement(Egi,{className:ae.treLabelIcon,htmlColor:"#1ABC9C"}),ve.isCode===!1&&E.createElement(q3,{className:ae.treLabelIcon,htmlColor:"#F1C40F"}),E.createElement(bt,{variant:"body2",className:`
							`.concat(ae.treeLabelText,`
							`).concat(ve.isActive?"":ae.treeLabelInactive,`
							`).concat(ve?.hasOwnProperty("isSelectable")&&ve.isSelectable===!1?ae.treeLabelUnselectable:"",`
						`)},E.createElement("span",null,ve.isCode&&E.createElement("i",{className:"fas fa-square mr-2",style:{color:ve.delayCategoryColor||"#FFFFFF"}}),ve.name)),c&&E.createElement(Qr,{className:ae.smallCheckbox,size:"small",color:"primary",checked:F.includes(ve.id),onChange:function(){Ae(ve)},onClick:me})),className:"delay-item-node",id:ve.id.toString(),"data-isbranch":!ve.isCode},Array.isArray(ve.children)?ve.children.map(function(De){return we(De)}):null)};return E.createElement(Qu,tt({onClose:u?function(){return u(!1)}:function(){return null},"aria-label":i,maxWidth:M,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,"aria-labelledby":"confirmation-dialog-title",open:r},w,{onKeyDown:be}),E.createElement(T0,{id:"confirmation-dialog-title"},i),g?E.createElement("div",{style:{width:600,minHeight:416,display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(zk,null)):E.createElement(ru,{dividers:!0,style:{height:"500px",overflow:"hidden",display:"flex",flexDirection:"column",padding:0}},x&&E.createElement("div",{className:ae.searchContainer,ref:te},E.createElement(je,{className:ae.searchField,placeholder:"Search (min. 2 characters)...",variant:"outlined",size:"small",fullWidth:!0,value:H,onChange:Ie,inputRef:oe,InputProps:{startAdornment:E.createElement(_3,{style:{marginRight:8,color:"#999"}})}}),X&&E.createElement(kt,{className:ae.searchResults},E.createElement(tp,null,q.map(function(ve,De){return E.createElement(ya,{key:ve.id,button:!0,ref:function(ze){ce.current[De]=ze},className:"".concat(ae.searchResultItem," ").concat(De===ee?"focused":""),onClick:function(){return Le(ve)}},E.createElement($0,{className:ae.searchResultIcon},ve.hasChildren?E.createElement(Kee,{color:"primary",fontSize:"small"}):E.createElement(Nxe,{color:"primary",fontSize:"small"})),E.createElement(na,{primary:ve.name,secondary:ve.path,classes:{secondary:ae.searchResultPath}}))})))),E.createElement("div",{className:ae.treeContainer},E.createElement(FEn,{autoFocus:!1,className:ae.root,defaultCollapseIcon:E.createElement(p2i,null),defaultExpandIcon:E.createElement(h2i,null),ref:P,selected:A===void 0?"":A.toString(),expanded:T,onNodeSelect:de,onNodeToggle:ie},o&&o.id!==void 0&&E.createElement(D,null,m>0&&E.createElement(D,{item:!0,md:12},Ce(o).sort(function(ve,De){if(!ve.sortOrder)return 1;if(!De.sortOrder)return-1;var ze=ve.sortOrder,Ve=De.sortOrder;return ze-Ve}).slice(0,m).map(function(ve){return E.createElement(Fe,{onClick:function(){t(ve.id,ve.name),h&&h(!0)},style:{marginRight:5,marginBottom:8}},E.createElement(fM,{label:v.includes(ve.name)?"".concat(ve.parentName,"/").concat(ve.name):ve.name,size:"medium",variant:"outlined",style:{cursor:"pointer"}}))})),we(o))))),E.createElement(Td,null,E.createElement(Fe,{onClick:le,color:"primary"},"Cancel"),E.createElement(Fe,{onClick:function(){return he()},color:"primary"},"OK")))},m2i=Rt(function(e){return{root:{width:"100%",backgroundColor:e.palette.background.paper,"& .MuiInputBase-input":{color:"black",cursor:"pointer",paddingRight:45}},paper:{width:"100%",maxHeight:600}}}),tD=function(e){var t=m2i(),n=e.onSelect,r=e.value;e.styleLabel;var i=e.dataSource,o=e.inputTitle,a=o===void 0?"Asset":o;e.showPath;var s=e.multipleSelectNodes,l=s===void 0?!1:s,c=e.showClearButton,u=c===void 0?!1:c,d=e.showAssetTree,p=e.onHide,h=e.listAssetDrawings,g=h===void 0?[]:h,m=e.onSuccess,v=e.isLoading,y=e.allowSearch,M=y===void 0?!1:y,C=a2(e,["onSelect","value","styleLabel","dataSource","inputTitle","showPath","multipleSelectNodes","showClearButton","showAssetTree","onHide","listAssetDrawings","onSuccess","isLoading","allowSearch"]),x=b.useState(d||!1),w=x[0],S=x[1],A=function(I){I.stopPropagation(),S(!0)},z=function(I,P,N){d||S(!1),I!=null&&n!==void 0&&n(I,P,N)},O=function(I){if(e.showPath&&I?.includes("/")&&I.split("/").length>3){for(var P=I.split("/"),N="",F=0;F<P.length;F++)F<P.length-2?N+=".../":F===P.length-2?P[F].length>6?N+=P[F].substring(0,6)+".../":N+=P[F]+"/":(N+=P[F],F<P.length-1&&(N+="/"));return N}else return I},T=b.useMemo(function(){return O(e.description)},[e.description]);return E.createElement(D,{container:!0,className:t.root},d?E.createElement("div",null):E.createElement(D,{container:!0,item:!0,md:12,xs:12,style:{position:"relative"},title:e.description},E.createElement(D,{item:!0,style:{position:"relative",width:"100%"}},E.createElement(je,{id:"treePickerTextField",label:a,variant:"outlined",value:T,margin:"dense",autoComplete:"off",fullWidth:!0,disabled:!0,InputProps:{endAdornment:E.createElement(nc,{position:"end",style:{cursor:"pointer"}},u&&r?E.createElement(yn,{"aria-label":"clear input",onClick:function(I){console.log("onClear -> onSelect"),I.stopPropagation(),n(0,"","")},style:{cursor:"pointer",zIndex:100},edge:"end"},E.createElement(vCe,null)):null,E.createElement(Kee,{style:{cursor:"pointer"}}))}})),E.createElement("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:999,cursor:"pointer"},onClick:A})),E.createElement(D,{item:!0,xs:12,md:12},E.createElement(lOt,tt({classes:{paper:t.paper},onHide:p,id:"modal-treeview-filters",title:e.title,keepMounted:!0,open:w,onClose:z,isLoading:v,value:r,data:i,onBackdropClick:function(){return S(!1)},multipleSelectNodes:l,listAssetDrawings:g,setListAssetDrawings:g,onSuccess:m,allowSearch:M},C))))},v2i=Rt(function(e){return{root:{width:"100%",backgroundColor:e.palette.background.paper},paper:{width:"100%",maxHeight:600}}});function cOt(e,t){if(e?.id===t)return e.name;if(e?.children)for(var n=0,r=e.children;n<r.length;n++){var i=r[n],o=cOt(i,t);if(o!==null)return o}return null}function uOt(e,t,n,r){if(n===void 0&&(n=""),r===void 0&&(r=!0),e.id===t)return r?"":n?"".concat(n,"/").concat(e.name):e.name;if(e.children&&e.children.length>0)for(var i=0,o=e.children;i<o.length;i++){var a=o[i],s=r?"":n?"".concat(n,"/").concat(e.name):e.name,l=uOt(a,t,s,!1);if(l!==null)return l}return null}var a3e=function(e){var t=v2i(),n=e.value,r=e.onSelect;e.styleLabel;var i=e.dataSource;e.getOptionName;var o=e.inputTitle,a=o===void 0?"Asset":o;e.showPath;var s=e.multipleSelectNodes,l=s===void 0?!1:s,c=e.showClearButton,u=c===void 0?!1:c,d=e.showFullPath,p=d===void 0?!1:d,h=e.showAssetTree,g=e.onHide,m=e.listAssetDrawings,v=m===void 0?[]:m,y=e.onSuccess,M=e.isLoading,C=e.disabled,x=C===void 0?!1:C,w=e.mostUsedCount,S=w===void 0?0:w,A=e.itemsWithParent,z=A===void 0?[]:A,O=e.dialogMaxWidth,T=O===void 0?"sm":O,I=e.allowSearch,P=I===void 0?!1:I,N=a2(e,["value","onSelect","styleLabel","dataSource","getOptionName","inputTitle","showPath","multipleSelectNodes","showClearButton","showFullPath","showAssetTree","onHide","listAssetDrawings","onSuccess","isLoading","disabled","mostUsedCount","itemsWithParent","dialogMaxWidth","allowSearch"]),F=b.useState(!1),L=F[0],W=F[1],H=function($){$.stopPropagation(),!x&&W(!0)},j=function($,U,X){W(!1),$!=null&&r!==void 0&&r($,U,X)},G=b.useMemo(function(){return cOt(i,n)||""},[i,n]),q=b.useMemo(function(){return uOt(i,n)||""},[i,n]);return E.createElement(D,{container:!0,className:t.root},h?E.createElement("div",null):E.createElement(D,{container:!0,item:!0,md:12,xs:12,style:{position:"relative"},title:e.description},E.createElement(D,{item:!0,style:{position:"relative",width:"100%"}},E.createElement(je,{id:"treePickerTextField",label:a||"",variant:"outlined",value:p?q:G,margin:"dense",autoComplete:"off",fullWidth:!0,disabled:!0,InputProps:{style:{color:x?"grey":"black",cursor:"pointer",paddingRight:25},endAdornment:E.createElement(nc,{position:"end",style:{cursor:"pointer"}},u&&n?E.createElement(yn,{"aria-label":"clear input",onClick:function($){$.stopPropagation(),r(0,"","")},style:{cursor:"pointer",zIndex:100},edge:"end",size:"small"},E.createElement(vCe,null)):null,E.createElement(Kee,{style:{cursor:"pointer"}}))}})),E.createElement("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0,cursor:"pointer"},onClick:H})),E.createElement(D,{item:!0,xs:12,md:12},E.createElement(lOt,tt({classes:{paper:t.paper},onHide:g,id:"modal-treeview-filter",title:e.title,keepMounted:!0,open:L,onClose:j,isLoading:M,value:n,data:i,onBackdropClick:function(){return W(!1)},multipleSelectNodes:l,listAssetDrawings:v,setListAssetDrawings:v,onSuccess:y,mostUsedCount:S,itemsWithParent:z,dialogMaxWidth:T,allowSearch:P},N))))};(function(e){tte(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this;return E.createElement("div",{className:"input-group"},E.createElement("div",{className:"input-group-prepend"},E.createElement("span",{className:"input-group-text",style:this.props.styleLabel||{}},this.props.title)),E.createElement("input",{className:"form-control ",type:"password",placeholder:this.props.title,readOnly:this.props.readOnly,value:this.props.value||"",onChange:function(r){return n.props.onChange(r.target.value,n.props.name||"")},style:this.props.styleTextBox||{},maxLength:this.props.lengthCharacters||""}))},t})(b.Component);function b2i(e){var t=e.title,n=e.dataSource,r=n===void 0?[]:n,i=e.selectedValue,o=e.onChange,a=e.showColor,s=e.styleList,l=e.hasChoose;return E.createElement(je,{select:!0,label:t,variant:"outlined",value:i||"DEFAULT",onChange:function(c){return o&&o(c.target.value==="DEFAULT"?"":c.target.value)},style:s,size:"small"},l&&E.createElement(sr,{value:"DEFAULT"},"Choose ".concat(t)),r.map(function(c,u){return E.createElement(sr,{value:c.id.toString(),key:u},a&&E.createElement("span",{style:{display:"inline-block",width:12,height:12,marginRight:8,backgroundColor:c.color||"#FFFFFF"}}),c.description)}))}function y2i(e){var t=e.row.map(function(n,r){return E.createElement("td",{key:r},n)});return E.createElement("tr",null,t)}(function(e){tte(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props.columns.map(function(i,o){return E.createElement("th",{scope:"col",key:o},i)}),r=this.props.data.map(function(i,o){return E.createElement(y2i,{row:i,key:o})});return E.createElement(E.Fragment,null,E.createElement("div",{className:"container-fluid my-3"},E.createElement("div",{className:"table-responsive-md"},E.createElement("table",{className:"table table-hover table-striped table-sm"},E.createElement("thead",null,E.createElement("tr",null,n)),E.createElement("tbody",null,r)))))},t})(b.Component);Rt(function(e){return{root:{flexDirection:"column","& .ant-empty-img-1":{fill:e.palette.type==="light"?"#aeb8c2":"#262626"},"& .ant-empty-img-2":{fill:e.palette.type==="light"?"#f5f5f7":"#595959"},"& .ant-empty-img-3":{fill:e.palette.type==="light"?"#dce0e6":"#434343"},"& .ant-empty-img-4":{fill:e.palette.type==="light"?"#fff":"#1c1c1c"},"& .ant-empty-img-5":{fillOpacity:e.palette.type==="light"?"0.8":"0.08",fill:e.palette.type==="light"?"#f5f5f5":"#fff"}},label:{marginTop:e.spacing(1)}}});Z.array,Z.array;Rt(function(e){return{contentWrapper:{padding:e.spacing(2)},title:{marginBottom:e.spacing(2),"& small":{marginLeft:e.spacing(1),color:e.palette.text.secondary}},alertContainer:{marginBottom:e.spacing(2)},alert:{padding:e.spacing(1,2)},success:{backgroundColor:"#d4edda",color:"#155724",border:"1px solid #c3e6cb"},error:{backgroundColor:"#f8d7da",color:"#721c24",border:"1px solid #f5c6cb"},alertContent:{display:"flex",alignItems:"center",justifyContent:"space-between"},alertMessage:{padding:e.spacing(1)},closeButton:{padding:e.spacing(.5)},masterDetailPanel:{marginBottom:e.spacing(2)},buttonContainer:{display:"flex",justifyContent:"flex-end",marginTop:e.spacing(2)},button:{marginLeft:e.spacing(1)},cancelButton:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText,"&:hover":{backgroundColor:e.palette.error.dark}},saveButton:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},exportButton:{backgroundColor:"#28a745",color:"#fff","&:hover":{backgroundColor:"#218838"}},filterPanel:{marginBottom:e.spacing(2)},filterButtons:{display:"flex",marginTop:e.spacing(2)}}});var s3e=function(e){var t=cEn(Ot(e,"response.data.errors",null)),n="";return t.length&&(n=M2i(t,n)),Ot(e,"response.data.result",Ot(e,"response.data.message",Ot(e,"internalError.message",Ot(e,"response.data.detail",Ot(e,"response.data.title",e.toString())+" "+n))))},M2i=function(e,t){return e.forEach(function(n,r){r!==0&&(t+=". "),t+=n.join("")}),t},vKe={ERROR_USER_API:"Error on fetching data",ERROR_USER_DEFAULT:"Unknow error"},Yd=(function(e){tte(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.getMessageUser=function(){return o.name==="FetchError"?vKe.ERROR_USER_API:vKe.ERROR_USER_DEFAULT},o.name="FetchError",o.message=n||"Error al procesar la solicitud",o.status=r,o.internalError=i,o.stack=o.stack||"",o}return t})(Error),C2i=y3({palette:{type:"light",primary:{main:"#3f51b5"},secondary:{main:"#f50057"}},typography:{fontSize:14,h6:{fontSize:"1.1rem",fontWeight:500},subtitle1:{fontSize:"0.875rem"},body1:{fontSize:"0.875rem"},body2:{fontSize:"0.875rem"}},overrides:{MuiListItemText:{primary:{fontSize:"0.875rem"}},MuiListSubheader:{root:{fontSize:"0.875rem",fontWeight:600}},MuiListItemIcon:{root:{minWidth:"40px"}}}}),x2i=Wl({feature:"mesfGrid",css:`
    .ag-header-cell-label {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ag-header-cell {
      padding: 0px !important;
      text-align: center !important;
      font-size: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ag-header-group-cell-label {
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ag-theme-material .ag-row:hover, & .ag-theme-material .ag-row.custom-selected {
      backgroundColor: #C8DEF7,
    }

    .ag-row-hover .buttons  {
      opacity: 1
    }
    .ag-row-focus .buttons  {
      opacity: 1
    }
    .ag-row-selected .buttons {
      opacity: 1
    }`}),qw=Dye.withPart(x2i);znt({theme:qw});var w2i=function(){return Ct(void 0,void 0,void 0,function(){var e,t,n;return xt(this,function(r){switch(r.label){case 0:return e=new Ye,[4,e.callV2("[SYSTEM].[GetJobsStatus]",[])];case 1:if(t=r.sent(),t.ok)return n=Ot(t,"data.tables[0].rows",[]),n=n.map(function(i){return tt(tt({},i),{LastStarted:i.LastStarted?mt.utc(i.LastStarted).toDate():null,LastContact:i.LastContact?mt.utc(i.LastContact).toDate():null,LastCounter:i.LastCounter?mt.utc(i.LastCounter).toDate():null,StartTime:i.StartTime?mt.utc(i.StartTime).toDate():null,NextExecutionTime:i.NextExecutionTime?mt.utc(i.NextExecutionTime).toDate():null,LastExecutionTime:i.LastExecutionTime?mt.utc(i.LastExecutionTime).toDate():null})}),[2,n];throw new Error(t.message||"Error fetching jobs")}})})},S2i=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"JobId",value:e.JobId},{name:"sProcedure",value:e.sProcedure},{name:"StartTime",value:e.StartTime},{name:"PeriodTime",value:e.PeriodTime},{name:"RestartAfterFailure",value:e.RestartAfterFailure}],[4,t.callV2("[SYSTEM].[UpsertJob]",n)];case 1:if(r=i.sent(),r.ok)return[2,Ot(r,"data.returnValue",null)];throw new Error(r.message||"Error when upsert job")}})})},A2i=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.enabled,a=t.jobId;return xt(this,function(s){switch(s.label){case 0:return n=new Ye,r=[{name:"Enabled",value:o??!0},{name:"JobId",value:a}],[4,n.callV2("[SYSTEM].[SetJobEnable]",r)];case 1:if(i=s.sent(),!i.ok)throw new Error(i.message||"Error when enable job");return[2]}})})},O2i=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"JobId",value:e}],[4,t.callV2("[SYSTEM].[RestartJob]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error when restart job");return[2]}})})},z2i=function(e){var t=e.jobSelected,n=e.show,r=e.onHide,i=b.useState(""),o=i[0],a=i[1],s=b.useState(!1),l=s[0],c=s[1],u=b.useState(!1),d=u[0],p=u[1],h=aa({mutationFn:O2i,onSuccess:function(){p(!0),r(!0)},onError:function(m){a(m.message)},onSettled:function(){c(!1)}}),g=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(m){switch(m.label){case 0:return c(!0),[4,h.mutate(t?.JobId)];case 1:return m.sent(),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{title:"RESET JOB",open:n,handleClose:function(){return r(!1)},id:"reset-job-modal"},E.createElement(We.Content,null,"Are you sure you want to reset? This action leaves the task in enable"),E.createElement(We.Actions,{style:{padding:"16px 24px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Disagree")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,startIcon:l&&E.createElement(Kt,{size:"1rem"}),onClick:function(){return g()},disabled:l,variant:"contained",color:"primary"},"Agree"))))),E.createElement(Mt,{error:o,onHide:function(){return a("")}}),E.createElement(pr,{open:d,autoHideDuration:2500,onClose:function(){return p(!1)}},E.createElement(Pr,{severity:"success",onClose:function(){return p(!1)}},"The job was reseted succesfully")))},T2i=function(e){var t=e.jobSelected,n=e.show,r=e.onHide,i=b.useState(""),o=i[0],a=i[1],s=b.useState(!1),l=s[0],c=s[1],u=b.useState(!1),d=u[0],p=u[1],h=aa({mutationFn:A2i,onSuccess:function(){p(!0),r(!0)},onError:function(m){a(m.message),r(!1)},onSettled:function(){c(!1)}}),g=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(m){switch(m.label){case 0:return c(!0),[4,h.mutate({jobId:t?.JobId,enabled:!t?.Enabled})];case 1:return m.sent(),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{title:"".concat(t?.Enabled?"DISABLE":"ENABLE"," JOB"),open:n,handleClose:function(){return r(!1)},id:"enable-job-modal"},E.createElement(We.Content,null,"Are you sure you want to ",t?.Enabled?"disable":"enable"," ","the job?"),E.createElement(We.Actions,{style:{padding:"16px 24px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Disagree")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,startIcon:l&&E.createElement(Kt,{size:"1rem"}),onClick:function(){return g()},disabled:l,variant:"contained",color:"primary"},"Agree"))))),E.createElement(Mt,{error:o,onHide:function(){return a("")}}),E.createElement(pr,{open:d,autoHideDuration:2500,onClose:function(){return p(!1)}},E.createElement(Pr,{severity:"success",onClose:function(){return p(!1)}},"The job was ",t?.Enabled?"disabled":"enabled"," ","succesfully")))},E2i=function(e){var t=e.job,n=e.modal,r=e.onHide,i=e.suffixTitle,o=b.useState(!1),a=o[0],s=o[1],l=b.useState(""),c=l[0],u=l[1],d=b.useState(!1),p=d[0],h=d[1],g=Gn({mode:"onChange"}),m=g.control,v=g.reset,y=g.handleSubmit,M=g.formState.dirtyFields,C=Object.keys(M).length!==0,x=aa({mutationFn:S2i,onSuccess:function(S){return Ct(void 0,void 0,void 0,function(){return xt(this,function(A){return h(!0),r({close:!1,entityId:S}),[2]})})},onError:function(S){u(S.message)},onSettled:function(){s(!1)}}),w=function(S){return Ct(void 0,void 0,void 0,function(){return xt(this,function(A){switch(A.label){case 0:return s(!0),n==="reset"?[3,2]:[4,x.mutate(S)];case 1:A.sent(),A.label=2;case 2:return[2]}})})};return b.useEffect(function(){(n==="create"||n==="update")&&(v(t||{sProcedure:"",RestartAfterFailure:!0,PeriodTime:null,StartTime:null,LastStatus:null,LastExecutionTime:null,LastExecutionResult:"",NextExecutionTime:null}),s(!1))},[n,t]),E.createElement(E.Fragment,null,(n=="update"||n=="create")&&E.createElement(Mn,{title:"".concat(n=="update"?t?.sProcedure:"New Job").concat(i?" - ".concat(i):"")}),(t===null||n!=="update")&&n!=="create"?E.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"}},E.createElement(bt,null,"Select a job or create a new one")):E.createElement("form",{onSubmit:y(w)},E.createElement(D,{container:!0,spacing:2},E.createElement(D,{item:!0,xs:12,md:12},E.createElement(Ue,{name:"sProcedure",control:m,rules:{required:"Name is required"},render:function(S){var A,z=S.field,O=S.fieldState.error;return E.createElement(je,{label:"Name",value:(A=z.value)!==null&&A!==void 0?A:"",onChange:z.onChange,variant:"outlined",size:"small",fullWidth:!0,error:!!O,helperText:O?.message})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"RestartAfterFailure",control:m,render:function(S){var A=S.field;return E.createElement(Io,{control:E.createElement(Qr,{checked:!!A.value,onChange:A.onChange,name:"RestartAfterFailure",color:"primary"}),label:"Restart After Failure"})}})),E.createElement(D,{item:!0,xs:12,md:6,style:{marginTop:-7}},E.createElement(Ue,{name:"PeriodTime",control:m,rules:{required:"Period time is required"},render:function(S){var A,z=S.field,O=S.fieldState.error;return E.createElement(je,{label:"Period Time (seconds)",value:(A=z.value)!==null&&A!==void 0?A:"",onChange:z.onChange,variant:"outlined",size:"small",margin:"dense",fullWidth:!0,error:!!O,helperText:O?.message})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"StartTime",control:m,render:function(S){var A=S.field,z=S.fieldState.error;return E.createElement(E.Fragment,null,E.createElement(Cd,{label:"Start Time",value:A.value?ra(A.value):null,onChange:A.onChange,format:"MM/DD/YYYY HH:mm:ss",views:["year","month","day","hours","minutes"],ampm:!1,timezone:Rc.getInstance().getServerTimeZone(),slotProps:{textField:{size:"small",margin:"none",error:!!z,fullWidth:!0}}}))}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"LastStatus",control:m,render:function(S){var A,z=S.field;return E.createElement(je,{label:"Last Status",value:(A=z.value)!==null&&A!==void 0?A:"",variant:"outlined",size:"small",fullWidth:!0,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"LastExecutionTime",control:m,render:function(S){var A=S.field;return E.createElement(Cd,{label:"Last Execution Time",value:A.value?ra(A.value):null,format:"MM/DD/YYYY HH:mm:ss",views:["year","month","day","hours","minutes"],ampm:!1,timezone:Rc.getInstance().getServerTimeZone(),disabled:!0,slotProps:{textField:{size:"small",margin:"none",fullWidth:!0}}})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"NextExecutionTime",control:m,render:function(S){var A=S.field;return E.createElement(Cd,{label:"Next Execution Time",value:A.value?ra(A.value):null,format:"MM/DD/YYYY HH:mm:ss",views:["year","month","day","hours","minutes"],ampm:!1,timezone:Rc.getInstance().getServerTimeZone(),disabled:!0,slotProps:{textField:{size:"small",margin:"none",fullWidth:!0}}})}})),E.createElement(D,{item:!0,xs:12,md:12},E.createElement(Ue,{name:"LastExecutionResult",control:m,render:function(S){var A,z=S.field;return E.createElement(je,{label:"Last Execution Result",value:(A=z.value)!==null&&A!==void 0?A:"",variant:"outlined",size:"small",margin:"dense",fullWidth:!0,multiline:!0,minRows:2,maxRows:2,disabled:!0})}})),E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end",style:{margin:15}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r({close:!0})}},"Close")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,startIcon:a&&E.createElement(Kt,{size:"1rem"}),disabled:a||!C,variant:"contained",color:"primary",type:"submit"},"Save")))))),E.createElement(pr,{open:p,autoHideDuration:2500,onClose:function(){return h(!1)}},E.createElement(Pr,{severity:"success",onClose:function(){return h(!1)}},"The job was updated succesfully")),E.createElement(Mt,{error:c,onHide:function(){return u("")}}))},R2i=function(e){var t=e.setShowModal,n=e.setJobSelected,r=Gf(),i=function(o){var a=[];return a=a.concat([{name:"New Job",key:"new_job",onClick:function(){t("create")},icon:E.createElement(Zo,null)}]),o&&(a=a.concat([{name:"Enable Job",key:"enable_job",disabled:!!o.Enabled,onClick:function(){t("enable"),n(o)},icon:E.createElement(Ybi,null)},{name:"Disable Job",key:"disable_job",disabled:!o.Enabled,onClick:function(){t("enable"),n(o)},icon:E.createElement($bi,null)},{name:"Reset Job",key:"reset_job",onClick:function(){t("reset"),n(o)},icon:E.createElement(Hbi,null)}])),a=a.concat([{name:"Refresh Job",key:"refresh_job",onClick:function(){r.invalidateQueries({queryKey:["jobs"]})},icon:E.createElement(qbi,null)}]),a};return{getMenuOptions:i}},I2i=function(e){var t=e.setShowModal,n=e.setJobSelected,r=e.showContextMenu,i=function(a){return E.createElement(yn,{style:{},onClick:function(s){return r(s,a.data,"jobsContext")},size:"small"},E.createElement(Kf,{style:{height:"auto"},fontSize:"small",color:"action"}))},o=[{field:"sProcedure",headerName:"Procedures",type:"string",flex:3,cellStyle:{justifyContent:"flex-start"}},{field:"PeriodTime",headerName:"Period Time",flex:2,valueFormatter:function(a){var s=a.value;if(s==null)return"";var l=Math.floor(s/3600),c=Math.floor(s%3600/60),u=s%60;return"".concat(l,"h ").concat(c,"min ").concat(u,"s")}},{field:"NextExecutionTime",headerName:"Next Execution",valueFormatter:function(a){var s=a.value;return s===null?"":mt(s).format("DD/MM/YY HH:mm")},flex:2},{field:"Enabled",headerName:"Enabled",minWidth:50,valueFormatter:function(a){var s=a.value;return s?"Y":"N"},flex:1,cellRenderer:function(a){return E.createElement(Y$,{checked:!!a.data.Enabled,color:"primary",size:"small",onChange:function(s,l){n(a.data),t("enable")}})}},{field:"-",headerName:"",cellRenderer:i,flex:1,wrapText:!1,sortable:!1,filter:!1,maxWidth:50}];return{columnDefs:o}},P2i=function(e){var t=e.handleNew;return b.createElement(yn,{onClick:t,color:"primary",style:{marginLeft:-15}},b.createElement(Zo,{style:{width:30,height:30}}))},D2i=Rt(function(e){return{root:{"& .MuiDataGrid-row":{cursor:"pointer"},"& .MuiDataGrid-columnHeaderTitle, & .MuiTablePagination-caption":{fontWeight:"bold",fontColor:"black"}}}}),k2i=function(){var e=D2i(),t=Gf(),n=b.useState(null),r=n[0],i=n[1],o=b.useState(null),a=o[0],s=o[1],l=b.useState(""),c=l[0],u=l[1],d=b.useState(""),p=d[0],h=d[1],g=L2i(),m=g.data,v=g.isLoading,y=g.isError,M=g.error,C=b.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,suppressHeaderMenuButton:!0,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),x=function(F){var L=a?.getFocusedCell();L?.column.getColId()!=="-"&&F.node.isSelected()&&(i(F.data),h("update")),L?.column.getColId()==="Enabled"&&(i(F.data),h("enable"))},w=ks(),S=w.showContextMenu,A=w.registerConfig,z=R2i({setShowModal:h,setJobSelected:i}).getMenuOptions,O=I2i({setJobSelected:i,setShowModal:h,showContextMenu:S}).columnDefs,T=function(F){var L,W,H=(L=F.node)===null||L===void 0?void 0:L.data;return S(event,H,"jobsContext"),H&&(F.api.deselectAll(),(W=F.node)===null||W===void 0||W.setSelected(!0)),[]},I=function(){a&&a.deselectAll(),h("create"),i(null)},P=function(F){return Ct(void 0,[F],void 0,function(L){var W=L.close,H=L.entityId;return xt(this,function(j){switch(j.label){case 0:return W?(h(""),i(null),a&&a?.deselectAll(),[2]):[4,t.invalidateQueries({queryKey:["jobs"]}).then(function(){H&&setTimeout(function(){var G,q=a?.getRowNode(String(H));q&&(a?.ensureIndexVisible((G=q?.rowIndex)!==null&&G!==void 0?G:0),q?.setSelected(!0),i(q?.data))},100)})];case 1:return j.sent(),[2]}})})},N=function(F){var L=F.api,W=F.node,H=F.event;if(H){var j=H.key;if(j==="ArrowUp"||j==="ArrowDown"){H.preventDefault();var G=W.rowIndex!==null?W.rowIndex:-1,q=j==="ArrowUp"?G-1:G+1,$=L.getDisplayedRowAtIndex(q);$&&($.setSelected(!0),L.ensureIndexVisible(q),i($.data))}}};return b.useEffect(function(){M&&y&&u(M.message)},[M,y]),b.useEffect(function(){A({id:"jobsContext",getOptions:z})},[]),b.createElement(b.Fragment,null,b.createElement(D,{container:!0,justifyContent:"flex-start"},b.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},b.createElement(bt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"System Jobs")),b.createElement(D,{container:!0,justifyContent:"flex-start",alignItems:"center",className:e.root,style:{width:"100%",padding:"0 10px"},spacing:2},b.createElement(D,{item:!0,md:6,xs:12},b.createElement(kt,{elevation:2,style:{height:"70vh",width:"100%"}},b.createElement(Kn,{loading:v,rowData:m,columnDefs:O,defaultColDef:C,getContextMenuItems:T,loadingOverlayComponent:Wm,rowHeight:34,headerHeight:34,animateRows:!0,rowSelection:"single",onGridReady:function(F){return s(F.api)},getRowId:function(F){return"".concat(F.data.JobId)},onRowClicked:x,onCellKeyDown:N,gridOptions:{theme:qw,statusBar:{statusPanels:[{statusPanel:function(F){return b.createElement(P2i,{handleNew:I})},align:"left"},{statusPanel:"agTotalRowCountComponent",align:"right"}]}}}))),b.createElement(D,{item:!0,md:6,xs:12},b.createElement(kt,{elevation:2,style:{height:"70vh",width:"100%",padding:15},className:"ag-theme-material"},b.createElement(E2i,{job:r,modal:p,onHide:P,suffixTitle:"System Jobs"}))))),b.createElement(z2i,{show:p==="reset",onHide:function(F){return Ct(void 0,void 0,void 0,function(){return xt(this,function(L){switch(L.label){case 0:return h(""),i(null),a&&a.deselectAll(),F?[4,t.invalidateQueries({queryKey:["jobs"]})]:[3,2];case 1:L.sent(),L.label=2;case 2:return[2]}})})},jobSelected:r}),b.createElement(T2i,{show:p==="enable",onHide:function(F){return Ct(void 0,void 0,void 0,function(){return xt(this,function(L){switch(L.label){case 0:return h(""),i(null),a&&a.deselectAll(),F?[4,t.invalidateQueries({queryKey:["jobs"]})]:[3,2];case 1:L.sent(),L.label=2;case 2:return[2]}})})},jobSelected:r}),b.createElement(Mt,{error:c,onHide:function(){return u("")}}))},L2i=function(){return Bl({queryKey:["jobs"],queryFn:function(){return w2i()}})},_2i=function(){return b.createElement(b.Fragment,null,b.createElement(Mn,{title:"System Jobs"}),b.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},b.createElement(D,{item:!0,md:12,xs:12,style:{margin:0}},b.createElement(k2i,null))))},N2i={jobsData:[],blockButtons:!1},BX=Ni({name:"__",initialState:N2i,reducers:{setJobs:function(e,t){var n=t.payload;e.jobsData=n},setBlockButtons:function(e,t){var n=t.payload;e.blockButtons=n}}}),F2i=b.createContext({state:BX.getInitialState(),actions:BX.actions}),W2i=function(e){var t=e.children,n=Ui.useComplexState({initialState:BX.getInitialState(),reducers:BX.caseReducers}),r=n[0],i=n[1];return E.createElement(F2i.Provider,{value:{state:r,actions:i}},t)},q2i=function(e){return b.createElement(W2i,null,b.createElement(_2i,null))},jX={I:{id:"I",color:"#3f51b5",description:"Info"},E:{id:"E",color:"#f44336",description:"Error"},W:{id:"W",color:"#E69C00",description:"Warning"},D:{id:"D",color:"#FF79C6",description:"Debug"}},B2i=function(e){var t=e.LogTypeCode,n=e.setLogTypeCodeFilter,r=function(i){var o=xi([],i,!0).sort();return o.length===3&&o.includes("I")&&o.includes("W")&&o.includes("E")?"All":o.length===4&&o.includes("I")&&o.includes("W")&&o.includes("E")&&o.includes("D")?"All + Debug":i.map(function(a){var s;return((s=jX[a])===null||s===void 0?void 0:s.description)||a}).join(" + ")};return E.createElement("div",{style:{marginTop:6,borderTopLeftRadius:3,borderTopRightRadius:3}},E.createElement(il,{id:"demo-simple-select-label",style:{fontSize:10,marginBottom:0}},"Type"),E.createElement(ls,{labelId:"code-filter-select-label",id:"code-filter-select",multiple:!0,value:t,onChange:function(i){var o=i.target.value;o.length>0&&n(o)},renderValue:function(i){return r(i)},style:{minWidth:"100%"}},Object.values(jX).map(function(i){return E.createElement(sr,{key:"logId-".concat(i.id),value:i.id,style:{padding:"0px 8px"}},E.createElement(Qr,{checked:t.includes(i.id),size:"small",color:"primary"}),E.createElement(na,{primary:i.description}))})))},bKe=function(e){var t=e.date,n=e.setDate,r=e.label,i=r===void 0?"Date":r,o=e.minDate,a=e.maxDate,s=function(l){l&&n(l.toDate())};return E.createElement(iZ,{utils:rZ},E.createElement(oB,{disableToolbar:!0,variant:"inline",format:"MM/DD/yyyy",id:"date-picker-inline",autoOk:!0,minDate:o,maxDate:a||mt().toDate(),style:{minWidth:"100%",borderTopLeftRadius:3,borderTopRightRadius:3},label:i,value:t,onChange:s,KeyboardButtonProps:{"aria-label":"change date"}}))},j2i=function(e){var t=e.search,n=e.setSearch;return E.createElement("div",{style:{marginTop:8}},E.createElement(je,{style:{minWidth:"100%"},label:"Search",variant:"outlined",size:"small",value:t,onChange:function(r){return n(r.target.value)},autoComplete:"off"}))},H2i=function(){var e=function(n){return w9.get(jX,"".concat(n[0],".color"),"#BBBBBB")},t=b.useState([{field:"Timestamp",headerName:"Time",minWidth:220,flex:1,headerClass:"ag-header-cell-centered"},{field:"Source",headerName:"Source",minWidth:290,flex:2,type:"string",cellStyle:{justifyContent:"flex-start"}},{field:"Message",headerName:"Message",minWidth:150,flex:5,type:"string",cellStyle:{justifyContent:"flex-start"}},{field:"LogTypeCode",headerName:"Type",minWidth:50,maxWidth:70,flex:1,cellRenderer:function(n){return E.createElement(fM,{style:{backgroundColor:e(n.value),color:"white"},label:n.value,size:"small"})}},{field:"User",headerName:"User",minWidth:70,flex:1,type:"string",valueFormatter:function(n){var r=n.value;return r||" "},headerClass:"ag-header-cell-centered"}])[0];return{columnDefs:t}},V2i=Rt(function(e){return{root:{"& .MuiDataGrid-row":{cursor:"pointer"},"& .MuiPaper-root ":{height:"100% !important"},"& .MuiDataGrid-columnHeaderTitle, & .MuiTablePagination-caption":{fontWeight:"bold"}},card:{backgroundColor:"#ffffff",display:"flex",alignItems:"center",height:"100%"},form:{}}}),G2i=function(e){var t=e.value,n=e.onChange;return E.createElement("div",{style:{marginTop:6,borderTopLeftRadius:3,borderTopRightRadius:3}},E.createElement(il,{id:"timezone-selector-label",style:{fontSize:10,marginBottom:0}},"Timezone"),E.createElement(ls,{labelId:"timezone-selector-label",id:"timezone-selector",value:t,onChange:function(r){return n(r.target.value)},style:{minWidth:"100%"}},E.createElement(sr,{value:"UTC"},"UTC"),E.createElement(sr,{value:"Server"},"Server")))},$2i=Rt(function(e){return{title:{fontSize:15},messageTitle:{marginBottom:5,fontSize:12,color:"#0000008A"}}}),U2i=function(e){if(e==null)return"";var t;if(e instanceof Date)t=e;else if(typeof e=="string"||typeof e=="number")t=new Date(e);else return"";return isNaN(t.getTime())?"":t.toLocaleDateString()+" "+t.toLocaleTimeString()},X2i=function(e){var t,n=e.show,r=e.onHide,i=e.selectedLog,o=e.suffixTitle,a=$2i();return E.createElement(E.Fragment,null,n&&E.createElement(Mn,{title:"".concat((t=i?.Source)!==null&&t!==void 0?t:""," - Log Details").concat(o?" - ".concat(o):"")}),E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},E.createElement(We,{title:"LOG DETAILS",open:n,handleClose:function(){return r(!1)},maxWidth:"md",id:"log-details-modal"},E.createElement(We.Content,{style:{padding:"15px 30px"}},E.createElement(D,{container:!0,spacing:1,alignItems:"flex-start"},E.createElement(D,{item:!0,md:6,xs:12,style:{paddingRight:20,paddingLeft:5}},E.createElement(je,{variant:"standard",fullWidth:!0,margin:"dense",label:"User",defaultValue:i?.User,InputProps:{readOnly:!0}})),E.createElement(D,{item:!0,md:6,xs:12,style:{paddingRight:20,paddingLeft:5}},E.createElement(je,{variant:"standard",fullWidth:!0,margin:"dense",label:"Time",defaultValue:U2i(i?.Timestamp),InputProps:{readOnly:!0}})),E.createElement(D,{item:!0,md:6,xs:12,style:{paddingRight:20,paddingLeft:5}},E.createElement(je,{variant:"standard",fullWidth:!0,margin:"dense",label:"Source",defaultValue:i?.Source,InputProps:{readOnly:!0}})),E.createElement(D,{item:!0,md:6,xs:12,style:{paddingRight:20,paddingLeft:5}},E.createElement(je,{variant:"standard",fullWidth:!0,margin:"dense",label:"Type",defaultValue:i?.LogTypeCode,InputProps:{readOnly:!0}})),E.createElement(D,{item:!0,md:12,xs:12,style:{paddingRight:20,paddingLeft:5,marginBottom:20}},E.createElement(yD,{variant:"outlined",style:{backgroundColor:"#E9F2F8"}},E.createElement(MD,null,E.createElement(bt,{className:a.messageTitle},"Message:"),E.createElement(bt,{style:{fontSize:17}},i?.Message)))))),E.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!0)}},"Close")))))))},Y2i=function(e){var t=e.setSelectedLog,n=e.setShowLogModal,r=e.handleResetButtonClick,i=function(o){var a=[];return o&&(a=a.concat([{name:"View Log",key:"view_log",onClick:function(){t(o),n(!0)},icon:E.createElement(Zo,null)},{name:"Reset Filter",key:"reset_filters",onClick:function(){r()},icon:E.createElement(No,null)}])),a};return{getMenuOptions:i}},K2i=function(e){return Ot(jX,"".concat(e,".description")," -")},Q2i=function(){var e=V2i(),t=b.useState(mt().add(-5,"days").hour(0).minute(0).second(0).toDate()),n=t[0],r=t[1],i=b.useState(mt().hour(23).minute(59).second(59).toDate()),o=i[0],a=i[1],s=b.useState("UTC"),l=s[0],c=s[1],u=b.useState(""),d=u[0],p=u[1],h=b.useState(["I","W","E"]),g=h[0],m=h[1],v=b.useState(!1),y=v[0],M=v[1],C=b.useState(null),x=C[0],w=C[1],S=b.useState(""),A=S[0],z=S[1],O=b.useState(!1),T=O[0],I=O[1],P=b.useState(void 0),N=P[0],F=P[1],L=J2i({startDate:n,endDate:o,logTypeCode:g.join(","),autoRefresh:y}),W=L.data,H=L.isLoading,j=L.refetch,G=L.isError,q=L.error,$=function(ne){w(ne.api)},U=W?.map(function(ne){var le=ne.LogId,he=ne.Timestamp,be=ne.Source,me=ne.Message,Me=ne.LogTypeCode,Oe=ne.User;return{id:le,Timestamp:l==="UTC"?mt(he).utc().format("YYYY-MM-DD HH:mm:ss z"):Wn(he,"yyyy-MM-dd HH:mm:ss z"),Source:be,Message:gi(me)?"":me.replaceAll("Added"," Added"),LogTypeCode:K2i(Me),User:Oe}}),X=H2i().columnDefs,Q=b.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),re=ks(),ee=re.showContextMenu,se=re.registerConfig,pe=function(){te(),r(mt().add(-5,"days").hour(0).minute(0).second(0).toDate()),a(mt().hour(23).minute(59).second(59).toDate()),p(""),x?.setGridOption("quickFilterText",""),m(["I","W","E"]),j(),z("")},te=function(){r(mt().add(-5,"days").hour(0).minute(0).second(0).toDate()),a(mt().hour(23).minute(59).second(59).toDate()),p(""),x?.setGridOption("quickFilterText",""),m(["I","W","E"]),F(void 0)},ce=function(ne){var le=ne.data;le&&(F(le),I(!0))},oe=function(ne){var le,he,be=(le=ne.node)===null||le===void 0?void 0:le.data;return ne.api.deselectAll(),(he=ne.node)===null||he===void 0||he.setSelected(!0),ee(event,be,"TableLogs"),[]},ae=Y2i({setSelectedLog:F,setShowLogModal:I,handleResetButtonClick:pe}).getMenuOptions;return b.useEffect(function(){se({id:"TableLogs",getOptions:ae})},[]),b.useEffect(function(){G&&q&&z(q.message)},[G,q]),b.createElement(b.Fragment,null,b.createElement(D,{container:!0,justifyContent:"flex-start"},b.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},b.createElement(bt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"MES and System Logs")),b.createElement(D,{container:!0,justifyContent:"flex-start",alignItems:"center",className:e.root,style:{width:"100%",padding:"0 10px"},spacing:2},b.createElement(D,{item:!0,md:12,xs:12},b.createElement(yD,{className:e.card},b.createElement(MD,{style:{padding:"6px !important",width:"100%"}},b.createElement(D,{container:!0,alignItems:"center",direction:"row",spacing:1},b.createElement(D,{item:!0,style:{width:"fit-content"}},b.createElement(bKe,{label:"From",date:n,setDate:function(ne){return r(ne||new Date)},maxDate:o??void 0})),b.createElement(D,{item:!0,style:{width:"fit-content"}},b.createElement(bKe,{label:"To",date:o,setDate:function(ne){ne&&(a(ne),M(!1))},minDate:n})),b.createElement(D,{item:!0,md:2,xs:12},b.createElement(B2i,{LogTypeCode:g,setLogTypeCodeFilter:function(ne){return m(ne)}})),b.createElement(D,{item:!0,md:1,xs:12},b.createElement(G2i,{value:l,onChange:c})),b.createElement(D,{item:!0,md:1,xs:12},b.createElement(Io,{checked:y,control:b.createElement(Y$,{color:"primary"}),label:"Auto Refresh",onChange:function(ne,le){a(le?null:mt().hour(23).minute(59).second(59).toDate()),M(le)}})),b.createElement(D,{item:!0,md:3,xs:12},b.createElement(j2i,{search:d,setSearch:function(ne){p(ne),x?.setGridOption("quickFilterText",ne)}})),b.createElement(D,{item:!0,md:1,xs:12,style:{paddingTop:8}},b.createElement(Fe,{variant:"contained",color:"default",onClick:pe,fullWidth:!0},"Reset")))))),b.createElement(D,{item:!0,md:12,xs:12,style:{height:"70vh"}},b.createElement(kt,{style:{height:"100%",width:"100%"}},b.createElement(Kn,{loading:H,gridOptions:{theme:qw},rowData:U,columnDefs:X,defaultColDef:Q,onGridReady:$,getRowId:function(ne){return ne.data.id},rowHeight:34,headerHeight:40,animateRows:!0,loadingOverlayComponent:Wm,getContextMenuItems:function(ne){return oe(ne)},rowSelection:"single",onRowDoubleClicked:function(ne){ce(ne)}})))),b.createElement(Mt,{error:A,onHide:function(){return z("")}})),b.createElement(X2i,{show:T,onHide:function(){return I(!1)},selectedLog:N,suffixTitle:"MES and System Logs"}))},Z2i=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a,s,l=t.startDate,c=t.endDate,u=t.logTypeCode;return xt(this,function(d){switch(d.label){case 0:return n=new Ye,r=new Date,r.setDate(r.getDate()+1),i=c||r,o=[{name:"Start",value:l},{name:"End",value:i},{name:"LogTypeCode",value:u==="A"?null:u}],[4,n.callV2("[MES].[GetLogs]",o)];case 1:if(a=d.sent(),a.ok)return s=Ot(a,"data.tables[0].rows",[]),s=s.map(function(p){return tt(tt({},p),{Timestamp:p.Timestamp?mt.utc(p.Timestamp).toDate():null})}),[2,s];throw new Error(a.message||"Error fetching logs")}})})},J2i=function(e){var t=e.startDate,n=e.endDate,r=e.logTypeCode,i=e.autoRefresh;return Bl({queryKey:["logs",t,n,r],queryFn:function(){return Z2i({startDate:t,endDate:n,logTypeCode:r})},refetchInterval:i?5e3:!1})},eyi=function(e){return E.createElement(E.Fragment,null,E.createElement(Mn,{title:"MES and System Logs"}),E.createElement(Q2i,null))},tyi=function(e){return b.createElement(eyi,null)},ph=function(e){return E.createElement(Pr,tt({elevation:6,variant:"filled"},e))},dOt={ProfileId:null,ProfileName:""},nyi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[SEC].[GetProfiles]",[])];case 1:if(t=n.sent(),t.ok)return[2,Ot(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching users")}})})},pOt=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.ProfileId,a=t.ProfileName;return xt(this,function(s){switch(s.label){case 0:return n=new Ye,r=[{name:"ProfileId",value:o},{name:"ProfileName",value:a}],[4,n.callV2("[SEC].[UpsertProfile]",r)];case 1:if(i=s.sent(),!i.ok)throw new Error(i.message||"Error when upsert profile");return[2]}})})},ryi=function(){return Ct(void 0,void 0,void 0,function(){var e,t,n;return xt(this,function(r){switch(r.label){case 0:return e=new Ye,t=[],[4,e.callV2("[SEC].[GetActions]",t)];case 1:if(n=r.sent(),n.ok)return[2,Ot(n,"data.tables[0].rows",[])];throw new Error(n.message||"Error fetching actions")}})})},iyi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"ProfileId",value:e}],[4,t.callV2("[SEC].[GetActionsByProfileId]",n)];case 1:if(r=i.sent(),r.ok)return[2,Ot(r,"data.tables[0].rows",[])];throw new Error(r.message||"Error fetching actions of profile")}})})},oyi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a,s=t.profileId,l=t.actions;return xt(this,function(c){switch(c.label){case 0:return n=new Ye,r=l.map(function(u){return u.ActionId}),i=r.join(","),o=[{name:"ProfileId",value:s},{name:"ActionIds",value:i}],[4,n.callV2("[SEC].[UpsertProfileActions]",o)];case 1:if(a=c.sent(),!a.ok)throw new Error(a.message||"Error when upsert actions of profile");return[2]}})})},ayi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"ProfileId",value:e}],[4,t.callV2("[SEC].[DeleteProfile]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error when delete profile");return[2]}})})},syi=Rt(function(e){return{title:{fontSize:15},modalTitle:{fontSize:15,marginTop:e.spacing(1)},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"}}}),lyi=function(e){var t,n=e.show,r=e.onHide,i=e.suffixTitle,o=b.useState(!1),a=o[0],s=o[1],l=b.useState(""),c=l[0],u=l[1],d=b.useState(!1),p=d[0],h=d[1],g=b.useState(""),m=g[0],v=g[1],y=syi(),M=Gn({defaultValues:dOt}),C=M.register,x=M.handleSubmit,w=M.reset,S=M.formState.errors,A=aa({mutationFn:pOt,onSuccess:function(){u("The profile was created successfully"),s(!0),r(!0)},onError:function(T){v(T.message)},onSettled:function(){h(!1)}}),z=function(T){return Ct(void 0,void 0,void 0,function(){return xt(this,function(I){switch(I.label){case 0:return h(!0),[4,A.mutate({ProfileId:T.ProfileId,ProfileName:T.ProfileName})];case 1:return I.sent(),[2]}})})},O=function(T,I){I!=="clickaway"&&s(!1)};return b.useEffect(function(){n&&w()},[n]),b.createElement(b.Fragment,null,n&&b.createElement(Mn,{title:"New Profile".concat(i?" - ".concat(i):"")}),b.createElement(D,{container:!0},b.createElement(D,{item:!0},b.createElement(We,{title:"NEW PROFILE",open:n,handleClose:function(){return r(!1)},id:"create-profile-modal",maxWidth:"md"},b.createElement("form",{onSubmit:x(z)},b.createElement(We.Content,{style:{padding:"15px 30px"}},b.createElement(D,{container:!0,spacing:1},b.createElement(D,{item:!0,md:12,xs:12},b.createElement(je,tt({},C("ProfileName",{required:!0}),{label:"Profile name",variant:"outlined",error:!!S.ProfileName,fullWidth:!0,margin:"dense",autoComplete:"off"}))," ",((t=S.ProfileName)===null||t===void 0?void 0:t.type)==="required"&&b.createElement("span",{className:y.errorLabel},"Profile name is required")))),b.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},b.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,startIcon:p&&b.createElement(Kt,{size:"1rem"}),disabled:p,variant:"contained",color:"primary",type:"submit"},"Save")))))))),b.createElement(pr,{open:a,autoHideDuration:2500,onClose:O},b.createElement(ph,{severity:"success",onClose:O},c)),b.createElement(Mt,{error:m,onHide:function(){return v("")},title:"Error Creating Profile"}))},cyi=function(e){var t=e.profile,n=e.show,r=e.onHide,i=e.suffixTitle,o=b.useState(!1),a=o[0],s=o[1],l=b.useState(""),c=l[0],u=l[1],d=b.useState(!0),p=d[0],h=d[1],g=b.useState(!1),m=g[0],v=g[1],y=b.useState(!1),M=y[0],C=y[1],x=function(A,z){z!=="clickaway"&&(s(!1),C(!1))},w=aa({mutationFn:ayi,onSuccess:function(){s(!0),r(!0)},onError:function(A){u(A.message)},onSettled:function(){C(!1),v(!1)}}),S=function(A){return Ct(void 0,void 0,void 0,function(){return xt(this,function(z){switch(z.label){case 0:return v(!0),[4,w.mutate(A)];case 1:return z.sent(),[2]}})})};return b.useEffect(function(){n&&(h(!1),v(!1))},[n]),E.createElement(E.Fragment,null,n&&E.createElement(Mn,{title:"Delete Profile".concat(i?" - ".concat(i):"")}),E.createElement(We,{title:"DELETE PROFILE",open:n,handleClose:function(){return r(!1)},id:"delete-profile-modal",maxWidth:"md"},E.createElement("form",null,E.createElement(We.Content,{style:{padding:"15px 30px"}},p&&E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"150px"}},E.createElement(zk,null)),!p&&E.createElement(E.Fragment,null,E.createElement(D,{container:!0,spacing:1},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(bt,null,"Are you sure you want to delete"," ",E.createElement("strong",null,t?.ProfileName)," profile?"))))),E.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"secondary",onClick:function(){return C(!0)}},"DELETE")))),E.createElement(Qu,{open:M,onClose:function(){return x()},"aria-labelledby":"responsive-dialog-title"},E.createElement(T0,{id:"responsive-dialog-title"},"WARNING"),E.createElement(ru,null,E.createElement(gM,{style:{padding:0,margin:0}},"Be careful, once deleted you will not be able to recover this profile, are you sure you want to delete it?")),E.createElement(Td,{style:{padding:"16px 24px"}},E.createElement(Fe,{onClick:function(){return C(!1)},autoFocus:!0,color:"default"},"CANCEL"),E.createElement(Fe,{startIcon:m&&E.createElement(Kt,{size:"1rem"}),autoFocus:!0,color:"secondary",onClick:function(){return S(t?.ProfileId)}},"Delete"))))),E.createElement(pr,{open:a,autoHideDuration:2500,onClose:x},E.createElement(ph,{severity:"success",onClose:x},"The profile was deleted successfully")),E.createElement(Mt,{error:c,onHide:function(){return u("")},title:"Error Deleting Profile"}))},uyi=function(){return Bl({queryKey:["actions"],queryFn:function(){return ryi()}})},dyi=function(e){var t=e.actionsOfProfile,n=e.onSelectionChanged,r=b.useState(""),i=r[0],o=r[1],a=b.useState(""),s=a[0],l=a[1],c=b.useState(null),u=c[0],d=c[1],p=function(z){z.api.applyColumnState({state:[{colId:"ActionName",sort:"asc",sortIndex:0}]})},h=uyi(),g=h.data,m=h.isLoading,v=h.isError,y=h.error,M=g?.map(function(z){var O=z.ActionId,T=z.ActionName;return{ActionId:O,ActionName:T}}),C=[{field:"ActionId",headerName:"#",flex:1,maxWidth:100,checkboxSelection:!0,showDisabledCheckboxes:!0,sortIndex:1},{field:"ActionName",headerName:"Name",flex:4,sortIndex:0,comparator:function(z,O,T,I,P){var N;return T.isSelected()&&!I.isSelected()?-1:!T.isSelected()&&I.isSelected()?1:(N=T.data.ActionName)===null||N===void 0?void 0:N.localeCompare(I.data.ActionName)}}],x=b.useMemo(function(){return{resizable:!0,sortable:!0,filter:!0,suppressHeaderMenuButton:!0}},[]),w=function(z){p(z);var O=z.api.getSelectedRows();n(O)},S=b.useCallback(function(z){z.api.forEachNode(function(O){O.setSelected(!!O.data&&!gi(t.find(function(T){return T.ActionId===O.data.ActionId})))}),p(z)},[p]),A=b.useCallback(function(z){d(z.api)},[d]);return b.useEffect(function(){y&&v&&l(y.message)},[y,v]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0,md:12,xs:12,style:{padding:"0 0 10px",justifyContent:"space-between"}},E.createElement(D,{item:!0,md:12,xs:12},"Actions"),E.createElement(D,{item:!0,md:12,xs:12},E.createElement(je,{id:"outlined-basic",label:"Search",variant:"outlined",value:i,onChange:function(z){o(z.target.value),u?.setGridOption("quickFilterText",z?.target.value)},margin:"dense",style:{width:"100%"}}))),E.createElement("div",{style:{width:"100%",height:"60vh"}},E.createElement(Kn,{loading:m,gridOptions:{theme:Dye.withParams({spacing:4})},rowData:M||[],getRowId:function(z){return String(z.data.ActionId)},onGridReady:A,columnDefs:C,defaultColDef:x,onFirstDataRendered:S,rowSelection:"multiple",rowMultiSelectWithClick:!0,onSelectionChanged:w})),E.createElement(Mt,{error:s,onHide:function(){return l("")}}))},pyi=Rt(function(e){return{root:{"& .MuiFormLabel-asterisk":{display:"none"}}}}),hyi=function(e){var t=e.profileId;return Bl({queryKey:["actions",t],queryFn:function(){return t?iyi(t):[]}})},fyi=function(e){var t,n=e.profileForEdit,r=e.show,i=e.onHide,o=e.suffixTitle,a=pyi(),s=b.useState(!1),l=s[0],c=s[1],u=b.useState(!1),d=u[0],p=u[1],h=b.useState(!1),g=h[0],m=h[1],v=b.useState([]),y=v[0],M=v[1],C=b.useState(""),x=C[0],w=C[1],S=b.useState(""),A=S[0],z=S[1],O=b.useState(""),T=O[0],I=O[1],P=b.useState(!1);P[0];var N=P[1],F=hyi({profileId:(t=n?.ProfileId)!==null&&t!==void 0?t:null}),L=F.data,W=F.isLoading,H=F.isError,j=F.error,G=Gn({defaultValues:dOt}).handleSubmit,q=function(ee,se){se!=="clickaway"&&(p(!1),c(!1))},$=function(ee){z(ee.target.value)},U=Gf(),X=aa({mutationFn:pOt,onSuccess:function(){i(!0),c(!0)},onError:function(ee){I(ee.message)},onSettled:function(){m(!1)}}),Q=aa({mutationFn:oyi,onSuccess:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ee){switch(ee.label){case 0:return[4,U.invalidateQueries({queryKey:["actions",n?.ProfileId]})];case 1:return ee.sent(),n?.ProfileName===A?[3,3]:[4,X.mutate({ProfileId:n?.ProfileId,ProfileName:A})];case 2:return ee.sent(),setTimeout(function(){return p(!0)},2600),[3,4];case 3:p(!0),i(!0),ee.label=4;case 4:return[2]}})})},onError:function(ee){w(ee.message)},onSettled:function(){m(!1)}}),re=function(){return Ct(void 0,void 0,void 0,function(){var ee;return xt(this,function(se){switch(se.label){case 0:return m(!0),ee=L?.length===y.length&&L.every(function(pe,te){return pe.ActionId===y[te].ActionId}),ee?[4,X.mutate({ProfileId:n?.ProfileId,ProfileName:A})]:[3,2];case 1:return se.sent(),[3,4];case 2:return[4,Q.mutate({profileId:n?.ProfileId,actions:y})];case 3:se.sent(),se.label=4;case 4:return[2]}})})};return b.useEffect(function(){r&&(N(!1),z(n?.ProfileName),m(!1))},[r,n?.ProfileId]),b.useEffect(function(){j&&H&&w(j.message)},[j,H]),b.createElement(b.Fragment,null,r&&b.createElement(Mn,{title:"Edit Profile".concat(o?" - ".concat(o):"")}),b.createElement(We,{title:"EDIT PROFILE",open:r,handleClose:function(){return i(!1)},id:"edit-profile-modal",maxWidth:"xl"},b.createElement("form",{onSubmit:G(re)},b.createElement(We.Content,{style:{padding:"0 30px 15px"}},b.createElement(D,{container:!0,style:{position:"relative"},className:a.root},b.createElement(D,{item:!0,md:12,xs:12},b.createElement(je,{id:"outlined-basic",label:"Name",variant:"outlined",value:A,fullWidth:!0,size:"small",margin:"dense",autoComplete:"off",onChange:function(ee){return $(ee)},InputLabelProps:{shrink:!0},required:!0,error:A.length===0}))),W&&b.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"60px"}},b.createElement(Kt,{size:"3rem"})),!W&&L&&b.createElement(dyi,{actionsOfProfile:L,onSelectionChanged:M})),b.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},!W&&b.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return i(!1)}},"Cancel")),b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,startIcon:g&&b.createElement(Kt,{size:"1rem"}),disabled:g,variant:"contained",color:"primary",type:"submit"},"Save")))))),b.createElement(pr,{open:d,autoHideDuration:2500,onClose:q},b.createElement(ph,{severity:"info",onClose:q},"The actions of the profile were edited successfully")),b.createElement(pr,{open:l,autoHideDuration:2500,onClose:q},b.createElement(ph,{severity:"success",onClose:q},"The name of the profile were edited successfully")),b.createElement(Mt,{error:x,onHide:function(){return w("")},title:"Error Editing Profile"}),b.createElement(Mt,{error:T,onHide:function(){return I("")},title:"Error Editing Profile"}))},gyi=function(e){var t=e.setProfileId,n=e.setShowDeleteModal,r=e.setShowCreateModal,i=e.setModalProceduresProfile,o=function(a){var s=[];return a?s=s.concat([{name:"New Profile",key:"new_profile",onClick:function(){r(!0)},icon:E.createElement(Zo,null)},{name:"Edit Profile",key:"edit_profile",onClick:function(){t(a),i(!0)},icon:E.createElement(No,null)},{name:"Delete Profile",key:"delete_profile",onClick:function(){t(a),n(!0)},icon:E.createElement(Mo,null)}]):s=s.concat([{name:"New Profile",key:"new_profile",onClick:function(){r(!0)},icon:E.createElement(Zo,null)}]),s};return{getMenuOptions:o}},myi=Rt(function(e){return{buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}}}),vyi=function(e){var t=e.setProfileId,n=e.setModalProceduresProfile,r=e.setModalDeleteProfile,i=e.showContextMenu,o=myi(),a=[{field:"ProfileName",headerName:"Profile name",minWidth:170,flex:2,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"Actions",cellRenderer:function(s){return E.createElement(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:o.buttons},E.createElement(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Fe,{onClick:function(){(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(l){return t(s?.data),n(!0),[2]})})})()}},E.createElement(No,{color:"primary"})),E.createElement(Fe,{onClick:function(){(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(l){return t(s.data),r(!0),[2]})})})()}},E.createElement(Mo,{color:"secondary"})),E.createElement(Fe,{style:{},onClick:function(l){return i(l,s.data,"TableProfiles")}},E.createElement(Kf,{style:{height:"auto"},color:"action"}))))},headerName:" ",wrapText:!1,autoHeight:!1,wrapHeaderText:!1,sortable:!1,flex:2,minWidth:300}];return{columnDefs:a}},byi=Rt(function(e){return{root:{"& .ag-icon-menu":{display:"none"},"& .ag-header-cell-label":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1rem"},"& .ag-header-cell-text":{textAlign:"center !important"},"& .ag-checkbox-input-wrapper":{margin:"0 10px"},"& .ag-cell":{alignItems:"center",padding:"0 !important",border:"unset !important"},"& .ag-header-cell":{padding:"0px !important",textAlign:"center !important",fontSize:10,display:"flex",alignItems:"center",justifyContent:"center"},"& .ag-cell-wrapper":{textAlign:"center"},"& .ag-menu-option":{cursor:"pointer"},"& .MuiDataGrid-row":{cursor:"pointer"},"& .MuiDataGrid-columnHeaderTitle, & .MuiTablePagination-caption":{fontWeight:"bold",fontSize:"12px"},"& .MuiDataGrid-columnHeaderTitleContainer":{padding:"0"},"& .MuiDataGrid-cell--textLeft":{fontSize:"12px"}},btnModal:{display:"flex",justifyContent:"flex-end"}}}),yyi=function(){var e=byi(),t=b.useState(!1),n=t[0],r=t[1],i=b.useState(!1),o=i[0],a=i[1],s=b.useState(!1),l=s[0],c=s[1],u=b.useState(null),d=u[0],p=u[1],h=b.useState(null);h[0];var g=h[1],m=b.useState("");m[0];var v=m[1],y=hOt(),M=y.data,C=y.isLoading,x=y.isError,w=y.error,S=y.refetch,A=M?.map(function(L){var W=L.ProfileId,H=L.ProfileName;return{id:W,ProfileId:W,ProfileName:H}}),z=b.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),O=gyi({setProfileId:p,setShowCreateModal:r,setShowDeleteModal:c,setModalProceduresProfile:a}).getMenuOptions,T=ks(),I=T.showContextMenu,P=T.registerConfig,N=vyi({setModalDeleteProfile:c,setModalProceduresProfile:a,setProfileId:p,showContextMenu:I}).columnDefs,F=function(L){var W,H,j=(W=L.node)===null||W===void 0?void 0:W.data;return L.api.deselectAll(),(H=L.node)===null||H===void 0||H.setSelected(!0),I(event,j,"TableProfiles"),[]};return b.useEffect(function(){P({id:"TableProfiles",getOptions:O})},[]),b.useEffect(function(){w&&x&&v(w.message)},[w,x]),b.createElement(b.Fragment,null,b.createElement(D,{container:!0,justifyContent:"center"},b.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},b.createElement(bt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"Profile Management")),b.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},b.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},b.createElement(D,{item:!0,md:12,xs:12,component:kt,style:{height:"70vh"}},b.createElement(Kn,{loading:C,gridOptions:{theme:qw},rowData:A||[],columnDefs:N,defaultColDef:z,rowHeight:34,headerHeight:34,loadingOverlayComponent:Wm,animateRows:!0,getContextMenuItems:function(L){return F(L)},getRowId:function(L){return L.data.ProfileId},rowSelection:"single",onRowDoubleClicked:function(L){p(L.data),a(!0)},onGridReady:function(L){return g(L.api)}})),b.createElement(D,{container:!0,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:2,xs:12,className:e.btnModal},b.createElement(Fe,{variant:"contained",color:"primary",onClick:function(){return r(!n)},fullWidth:!0,style:{marginTop:"10px"}},"NEW PROFILE")))))),b.createElement(lyi,{show:n,onHide:function(L){r(!1),L&&S()},suffixTitle:"Profile Management"}),b.createElement(cyi,{show:l,profile:d,onHide:function(L){c(!1),p(null),L&&S()},suffixTitle:"Profile Management"}),b.createElement(fyi,{show:o,profileForEdit:d,onHide:function(L){a(!1),p(null),L&&S()},suffixTitle:"Profile Management"}))},hOt=function(){return Bl({queryKey:["profiles"],queryFn:function(){return nyi()}})},Myi=function(){return b.createElement(b.Fragment,null,b.createElement(Mn,{title:"Profile Management"}),b.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},b.createElement(yyi,null)))},Cyi=function(e){return b.createElement(Myi,null)},l3e={PatternStart:new Date,ShiftCodes:"",Crews:"",User:"",PatternDays:5,CrewRotation:"",Comments:"",CanEdit:!1,ShiftsPerDay:1,NumberOfCrews:1},xyi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[MES].[GetShiftParameters]",[])];case 1:if(t=n.sent(),t.ok)return[2,Ot(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching shifts")}})})},fOt=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.PatternStart,a=t.ShiftCodes,s=t.Crews,l=t.CrewRotation,c=t.Comments;return xt(this,function(u){switch(u.label){case 0:return n=new Ye,r=[{name:"AssetId",value:null},{name:"PatternStart",value:o},{name:"ShiftCodes",value:a},{name:"Crews",value:s},{name:"CrewRotation",value:l},{name:"Comments",value:c}],[4,n.callV2("[MES].[UpsertShiftParameters]",r)];case 1:if(i=u.sent(),!i.ok)throw new Error(i.message||"Error when upsert shift");return[2]}})})},wyi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[],n.push({name:"AssetId",value:null}),n.push({name:"PatternStart",value:e}),[4,t.callV2("[MES].[DeleteShiftParameters]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error when delete shift");return[2]}})})},Syi=Rt(function(e){return{title:{fontSize:15},modalTitle:{fontSize:15,marginTop:e.spacing(1)},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},infoLabel:{fontSize:12,color:"#757575"}}}),Ayi=function(e){var t,n,r=e.shiftSelected,i=e.show,o=e.onHide,a=e.suffixTitle,s=b.useState(!1),l=s[0],c=s[1],u=b.useState(!1),d=u[0],p=u[1],h=b.useState(""),g=h[0],m=h[1],v=Syi(),y=Gn({defaultValues:r||l3e}),M=y.control,C=y.handleSubmit,x=y.reset,w=y.watch,S=y.setValue,A=y.formState.errors,z=function(){return H?.length/G*100},O=aa({mutationFn:fOt,onSuccess:function(){c(!0),o(!0)},onError:function(q){m(q.message)},onSettled:function(){p(!1)}}),T=function(q){return Ct(void 0,void 0,void 0,function(){return xt(this,function($){switch($.label){case 0:return p(!0),[4,O.mutate(q)];case 1:return $.sent(),[2]}})})},I=function(q,$){$!=="clickaway"&&c(!1)},P=w("ShiftsPerDay"),N=w("ShiftCodes"),F=w("NumberOfCrews"),L=w("Crews"),W=w("PatternDays"),H=w("CrewRotation"),j=w("Comments"),G=P*W;return b.useEffect(function(){i&&(x(),S("PatternStart",new Date))},[i]),b.createElement(b.Fragment,null,i&&b.createElement(Mn,{title:"New Shift/Crew".concat(a?" - ".concat(a):"")}),b.createElement(D,{container:!0},b.createElement(D,{item:!0},b.createElement(We,{title:"NEW SHIFT/CREW",open:i,handleClose:function(){return o(!1)},id:"create-shift-modal",maxWidth:"md"},b.createElement("form",{onSubmit:C(T)},b.createElement(We.Content,{style:{padding:"15px 30px 0"}},b.createElement(D,{container:!0,spacing:2},b.createElement(Ue,{name:"PatternStart",control:M,render:function(q){var $=q.field,U=$.value,X=$.onChange;return b.createElement(iZ,{utils:rZ},b.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 0"}},b.createElement(oB,{fullWidth:!0,disablePast:!0,disableToolbar:!0,variant:"inline",format:"MM/DD/yyyy",id:"date-picker-inline",style:{minWidth:"100%",borderTopLeftRadius:3,borderTopRightRadius:3},label:"Start",value:U,onChange:function(Q){return X(Q?.toDate())},KeyboardButtonProps:{"aria-label":"change date"}})),b.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 18px"}},b.createElement(aZ,{fullWidth:!0,variant:"inline",id:"time-picker",label:"Time",value:U,onChange:function(Q){return X(Q?.toDate())},KeyboardButtonProps:{"aria-label":"change time"}})))}}),b.createElement(D,{item:!0,md:6,xs:6},b.createElement(Ue,{name:"ShiftsPerDay",control:M,rules:{min:1},render:function(q){var $=q.field,U=$.onChange,X=$.value;return b.createElement(je,{label:"# ".concat(P>1?"Shifts":"Shift","  per day"),variant:"outlined",error:!!A.ShiftsPerDay,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",value:X,onChange:function(Q){return parseInt(Q.target.value)>=1&&parseInt(Q.target.value)<=10&&U(Q)}})}}),((t=A.ShiftsPerDay)===null||t===void 0?void 0:t.type)==="min"&&b.createElement("span",{className:v.errorLabel},"Shifts per day is required")),b.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},b.createElement(Ue,{name:"ShiftCodes",control:M,rules:{validate:function(q){return q.length==P}},render:function(q){var $=q.field,U=$.onChange,X=$.value;return b.createElement(je,{label:"Shifts Ids",variant:"outlined",error:!!A.ShiftCodes,fullWidth:!0,margin:"dense",autoComplete:"off",value:X,onChange:function(Q){Q.target.value.length<=P&&U(Q.target.value.toString().toUpperCase())}})}}),!!A.ShiftCodes&&b.createElement("span",{className:v.errorLabel},"Please put ",P," shifts"),N.length<P&&!A.ShiftCodes&&b.createElement("span",{className:v.infoLabel},"Insert: ".concat(P," ").concat(P==1?"Id":"Ids",". ").concat(P>1?"The Ids must be differents":""))),b.createElement(D,{item:!0,md:6,xs:6},b.createElement(Ue,{name:"NumberOfCrews",control:M,rules:{min:1,max:9},render:function(q){var $=q.field,U=$.onChange,X=$.value;return b.createElement(je,{label:"# ".concat(F>1?"Crews":"Crew"),variant:"outlined",error:!!A.NumberOfCrews,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",onChange:function(Q){parseInt(Q.target.value)>=1&&parseInt(Q.target.value)<=15&&U(Q)},value:X})}}),((n=A.NumberOfCrews)===null||n===void 0?void 0:n.type)==="min"&&b.createElement("span",{className:v.errorLabel},"# Crewss day is required")),b.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},b.createElement(Ue,{name:"Crews",control:M,rules:{validate:function(q){return q.length==F}},render:function(q){var $=q.field,U=$.onChange,X=$.value;return b.createElement(je,{label:"Crews Ids",variant:"outlined",error:!!A.Crews,fullWidth:!0,margin:"dense",autoComplete:"off",value:X,onChange:function(Q){Q.target.value.length<=F&&U(Q.target.value.toString().toUpperCase())}})}}),!!A.Crews&&b.createElement("span",{className:v.errorLabel},"Please put ",F," crews"),L.length<F&&!A.Crews&&b.createElement("span",{className:v.infoLabel},"Insert: ".concat(F," ").concat(F==1?"Crew":"Crews",". ").concat(F>1?"The Crews must be differents":""))),b.createElement(D,{item:!0,md:6,xs:6,style:{marginBottom:"8px"}},b.createElement(Ue,{name:"PatternDays",control:M,render:function(q){var $=q.field,U=$.value,X=$.onChange;return b.createElement(je,{label:"Rotation Pattern",variant:"outlined",error:!!A.PatternDays,fullWidth:!0,type:"number",margin:"dense",autoComplete:"off",value:U,onChange:function(Q){parseInt(Q.target.value)>=5&&parseInt(Q.target.value)<=60&&X(Q)}})}})),b.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 8px"}},b.createElement(Ue,{name:"CrewRotation",control:M,rules:{validate:function(q){return q.length==G}},render:function(q){var $=q.field,U=$.value,X=$.onChange;return b.createElement(je,{value:U,onChange:function(Q){Q.target.value.length<=G&&X(Q.target.value.toString().toUpperCase())},label:"Crew rotation",variant:"outlined",fullWidth:!0,error:!!A.CrewRotation,margin:"dense",autoComplete:"off"})}}),b.createElement(D,{container:!0,style:{padding:"0",height:2}},b.createElement(D,{item:!0,style:{height:2,width:"".concat(z(),"% "),backgroundColor:"".concat(H.length==G?"#4CAF50":"#F44336"),transition:" 0.2s ease",margin:"0 5px"}})),b.createElement(D,{container:!0,style:{margin:"4px 0 0"}},b.createElement(D,{item:!0},H?.length>=1&&H?.length!==G&&b.createElement("span",{className:v.infoLabel,style:{marginLeft:5}},"".concat(H?.length,"/").concat(G)))),!!A.CrewRotation&&b.createElement("span",{className:v.errorLabel},"Please put ",G," crews"),F>0&&Number.isInteger(G/F)===!1&&b.createElement(D,{container:!0,style:{padding:"0",marginLeft:5}},b.createElement(D,{item:!0,className:v.errorLabel},"Rotation # not a multiple of Shifts (".concat(G,") / Crews (").concat(F,")")))),b.createElement(D,{item:!0,md:12,xs:12,style:{margin:"12px 0 20px",padding:"0 8px"}},b.createElement(Ue,{name:"Comments",control:M,render:function(q){var $=q.field,U=$.value,X=$.onChange;return b.createElement(je,{style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Comments",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:U,onChange:function(Q){Q.target.value.length<=200&&X(Q)}})}}),b.createElement(D,{container:!0,style:{marginBottom:18}},b.createElement(D,{item:!0},j?.length>=1&&j?.length!==200&&b.createElement("span",{className:v.infoLabel,style:{marginLeft:5}},"".concat(j?.length,"/200 max.")),j?.length==200&&b.createElement("span",{className:v.infoLabel,style:{marginLeft:5}},"Max. 200")))))),b.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},b.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return o(!1)}},"Cancel")),b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,startIcon:d&&b.createElement(Kt,{size:"1rem"}),disabled:d,variant:"contained",color:"primary",type:"submit"},"Save")))))))),b.createElement(Mt,{error:g,onHide:function(){return m("")},title:"Error Creating Shift"}),b.createElement(pr,{open:l,autoHideDuration:2500,onClose:I},b.createElement(ph,{severity:"success",onClose:I},"The shift was created successfully")))},Oyi=Rt(function(e){return{title:{fontSize:15},modalTitle:{fontSize:15,marginTop:e.spacing(1)},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},infoLabel:{fontSize:12,color:"#757575"}}}),zyi=function(e){var t,n=e.shiftSelected,r=e.show,i=e.onHide,o=e.suffixTitle,a=Oyi(),s=b.useState(!1),l=s[0],c=s[1],u=b.useState(!1),d=u[0],p=u[1],h=b.useState(!1),g=h[0],m=h[1],v=b.useState(""),y=v[0],M=v[1],C=Gn({defaultValues:l3e}),x=C.control,w=C.setValue,S=C.reset,A=C.watch,z=C.formState.errors,O=aa({mutationFn:wyi,onSuccess:function(){c(!0),i(!0)},onError:function(j){M(j.message)},onSettled:function(){p(!1),m(!1)}}),T=function(j){return Ct(void 0,void 0,void 0,function(){return xt(this,function(G){switch(G.label){case 0:return p(!0),[4,O.mutate(j)];case 1:return G.sent(),[2]}})})},I=function(j,G){G!=="clickaway"&&(c(!1),m(!1))},P=A("PatternStart"),N=A("ShiftsPerDay"),F=A("CrewRotation"),L=A("NumberOfCrews"),W=A("Crews"),H=A("PatternDays");return b.useEffect(function(){var j,G,q,$,U,X;r&&(S(),w("PatternStart",(j=n?.PatternStart)!==null&&j!==void 0?j:new Date),w("ShiftCodes",(G=n?.ShiftCodes)!==null&&G!==void 0?G:""),w("Crews",(q=n?.Crews)!==null&&q!==void 0?q:""),w("PatternDays",($=n?.PatternDays)!==null&&$!==void 0?$:0),w("CrewRotation",(U=n?.CrewRotation)!==null&&U!==void 0?U:""),w("Comments",(X=n?.Comments)!==null&&X!==void 0?X:""))},[r]),b.createElement(b.Fragment,null,r&&b.createElement(Mn,{title:"Delete Shift".concat(o?" - ".concat(o):"")}),b.createElement(D,{container:!0},b.createElement(D,{item:!0},b.createElement(We,{title:"DELETE SHIFT",open:r,handleClose:function(){return i(!1)},id:"delete-shift-MesfModal",maxWidth:"md"},b.createElement("form",null,b.createElement(We.Content,{style:{padding:"15px 30px 0"}},b.createElement(D,{container:!0,spacing:2},b.createElement(Ue,{name:"PatternStart",control:x,render:function(j){var G=j.field,q=G.value,$=G.onChange;return b.createElement(iZ,{utils:rZ},b.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 0"}},b.createElement(oB,{fullWidth:!0,disableToolbar:!0,variant:"inline",format:"MM/DD/yyyy",id:"date-picker-inline",style:{minWidth:"100%",borderTopLeftRadius:3,borderTopRightRadius:3},label:"Start",value:q,disabled:!!n,onChange:function(U){return $(U?.toDate())},KeyboardButtonProps:{"aria-label":"change date"}})),b.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 18px"}},b.createElement(aZ,{fullWidth:!0,variant:"inline",id:"time-picker",label:"Time",value:q,disabled:!!n,onChange:function(U){return $(U?.toDate())},KeyboardButtonProps:{"aria-label":"change time"}})))}}),b.createElement(D,{item:!0,md:6,xs:6},b.createElement(Ue,{name:"ShiftsPerDay",control:x,rules:{min:1},render:function(j){var G=j.field;return G.onChange,G.value,b.createElement(je,{label:"# ".concat(N>1?"Shifts":"Shift","  per day"),variant:"outlined",error:!!z.ShiftsPerDay,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",value:F.length/H,disabled:!!n})}}),((t=z.ShiftsPerDay)===null||t===void 0?void 0:t.type)==="min"&&b.createElement("span",{className:a.errorLabel},"Shifts per day is required")),b.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},b.createElement(Ue,{name:"ShiftCodes",control:x,render:function(j){var G=j.field.value;return b.createElement(je,{label:"Shifts Ids",variant:"outlined",error:!!z.ShiftCodes,fullWidth:!0,margin:"dense",autoComplete:"off",value:G,disabled:!!n})}})),b.createElement(D,{item:!0,md:6,xs:6},b.createElement(Ue,{name:"NumberOfCrews",control:x,rules:{min:1,max:9},render:function(j){return j.field.value,b.createElement(je,{label:"# ".concat(L>1?"Crews":"Crew"),variant:"outlined",error:!!z.NumberOfCrews,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",value:W.length,disabled:!!n})}})),b.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},b.createElement(Ue,{name:"Crews",control:x,render:function(j){var G=j.field.value;return b.createElement(je,{label:"Crews Ids",variant:"outlined",error:!!z.Crews,fullWidth:!0,margin:"dense",autoComplete:"off",value:G,disabled:!!n})}})),b.createElement(D,{item:!0,md:6,xs:6},b.createElement(Ue,{name:"PatternDays",control:x,render:function(j){var G=j.field.value;return b.createElement(je,{label:"Rotation Pattern",variant:"outlined",error:!!z.PatternDays,fullWidth:!0,type:"number",margin:"dense",autoComplete:"off",value:G,disabled:!!n})}})),b.createElement(D,{item:!0,md:12,xs:12},b.createElement(Ue,{name:"CrewRotation",control:x,render:function(j){var G=j.field,q=G.value;return G.onChange,b.createElement(je,{label:"Crew rotation",variant:"outlined",fullWidth:!0,margin:"dense",autoComplete:"off",value:q,disabled:!!n})}})),b.createElement(D,{item:!0,md:12,xs:12},b.createElement(Ue,{name:"Comments",control:x,render:function(j){var G=j.field,q=G.value;return G.onChange,b.createElement(je,{style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Comments",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:q,disabled:!!n})}})))),b.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},b.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return i(!1)}},"Cancel")),b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,startIcon:d&&b.createElement(Kt,{size:"1rem"}),disabled:d||(n?new Date(n.PatternStart)<new Date&&!0:!1),variant:"contained",color:"secondary",onClick:function(){return m(!0)}},"Delete"),n&&new Date(n?.PatternStart)<new Date&&b.createElement(D,{item:!0},b.createElement("span",{className:a.errorLabel,style:{fontSize:10}},"Can not delete before the current date"))))),b.createElement(Qu,{open:g,onClose:function(){return I()},"aria-labelledby":"responsive-dialog-title"},b.createElement(T0,{id:"responsive-dialog-title"},"WARNING"),b.createElement(ru,null,b.createElement(gM,{style:{padding:0,margin:0}},"Be careful, once deleted you will not be able to recover this shift, are you sure you want to delete it?")),b.createElement(Td,{style:{padding:"16px 24px"}},b.createElement(Fe,{onClick:function(){return m(!1)},autoFocus:!0,color:"default"},"CANCEL"),b.createElement(Fe,{startIcon:d&&b.createElement(Kt,{size:"1rem"}),autoFocus:!0,color:"secondary",onClick:function(){return T(P)}},"Delete"))))))),b.createElement(Mt,{error:y,onHide:function(){return M("")}}),b.createElement(pr,{open:l,autoHideDuration:2500,onClose:I},b.createElement(ph,{severity:"warning",onClose:I},"The shift was deleted successfully")))},Tyi=Rt(function(e){return{title:{fontSize:15},modalTitle:{fontSize:15,marginTop:e.spacing(1)},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},infoLabel:{fontSize:12,color:"#757575"}}}),Eyi=function(e){var t,n=e.shiftSelected,r=e.show,i=e.onHide,o=e.suffixTitle,a=Tyi(),s=b.useState(!1),l=s[0],c=s[1],u=b.useState(""),d=u[0],p=u[1],h=b.useState(!1),g=h[0],m=h[1],v=b.useState(!1),y=v[0],M=v[1],C=Gn({defaultValues:l3e}),x=C.control,w=C.setValue,S=C.handleSubmit,A=C.reset,z=C.watch,O=C.formState.errors,T=function(){return q?.length/$*100},I=aa({mutationFn:fOt,onSuccess:function(){c(!0),i(!0)},onError:function(U){p(U.message)},onSettled:function(){m(!1)}}),P=function(U){return Ct(void 0,void 0,void 0,function(){return xt(this,function(X){switch(X.label){case 0:return m(!0),[4,I.mutate(U)];case 1:return X.sent(),[2]}})})},N=function(U,X){X!=="clickaway"&&c(!1)},F=z("ShiftsPerDay"),L=z("ShiftCodes"),W=z("NumberOfCrews"),H=z("Crews"),j=z("PatternDays"),G=z("Comments"),q=z("CrewRotation"),$=F*j;return b.useEffect(function(){var U,X,Q,re,ee,se;r&&(A(),w("PatternStart",(U=n?.PatternStart)!==null&&U!==void 0?U:new Date),w("ShiftCodes",(X=n?.ShiftCodes)!==null&&X!==void 0?X:""),w("Crews",(Q=n?.Crews)!==null&&Q!==void 0?Q:""),w("PatternDays",(re=n?.PatternDays)!==null&&re!==void 0?re:0),w("CrewRotation",(ee=n?.CrewRotation)!==null&&ee!==void 0?ee:""),w("Comments",(se=n?.Comments)!==null&&se!==void 0?se:""),M(!y))},[r]),b.useEffect(function(){w("ShiftsPerDay",q.length/j),w("NumberOfCrews",H.length)},[y]),b.createElement(b.Fragment,null,r&&b.createElement(Mn,{title:"Edit Shift".concat(o?" - ".concat(o):"")}),b.createElement(D,{container:!0},b.createElement(D,{item:!0},b.createElement(We,{title:"EDIT SHIFT",open:r,handleClose:function(){return i(!1)},id:"edit-shift-modal",maxWidth:"md"},b.createElement("form",{onSubmit:S(P)},b.createElement(We.Content,{style:{padding:"15px 30px 0"}},b.createElement(D,{container:!0,spacing:2},b.createElement(Ue,{name:"PatternStart",control:x,render:function(U){var X=U.field,Q=X.value,re=X.onChange;return b.createElement(iZ,{utils:rZ},b.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 0"}},b.createElement(oB,{fullWidth:!0,disablePast:!0,disableToolbar:!0,variant:"inline",format:"MM/DD/yyyy",id:"date-picker-inline",style:{minWidth:"100%",borderTopLeftRadius:3,borderTopRightRadius:3},label:"Start",value:Q,onChange:function(ee){return re(ee?.toDate())},KeyboardButtonProps:{"aria-label":"change date"}})),b.createElement(D,{item:!0,md:6,xs:12,style:{margin:"8px 0 18px"}},b.createElement(aZ,{fullWidth:!0,variant:"inline",id:"time-picker",label:"Time",value:Q,onChange:function(ee){return re(ee?.toDate())},KeyboardButtonProps:{"aria-label":"change time"}})))}}),b.createElement(D,{item:!0,md:6,xs:6},b.createElement(Ue,{name:"ShiftsPerDay",control:x,rules:{min:1},render:function(U){var X=U.field,Q=X.onChange,re=X.value;return b.createElement(je,{label:"# ".concat(F>1?"Shifts":"Shift","  per day"),variant:"outlined",error:!!O.ShiftsPerDay,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",value:re,onChange:function(ee){return parseInt(ee.target.value)>=1&&parseInt(ee.target.value)<=10&&Q(ee)}})}})),b.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},b.createElement(Ue,{name:"ShiftCodes",control:x,rules:{validate:function(U){return U.length==F}},render:function(U){var X=U.field,Q=X.onChange,re=X.value;return b.createElement(je,{label:"Shifts Ids",variant:"outlined",error:!!O.ShiftCodes,fullWidth:!0,margin:"dense",autoComplete:"off",value:re,onChange:function(ee){ee.target.value.length<=F&&Q(ee.target.value.toString().toUpperCase())}})}}),!!O.ShiftCodes&&b.createElement("span",{className:a.errorLabel},"Please put ",F," shifts"),L.length<F&&!O.ShiftCodes&&b.createElement("span",{className:a.infoLabel},"Insert: ".concat(F," ").concat(F==1?"Id":"Ids",". ").concat(F>1?"The Ids must be differents":""))),b.createElement(D,{item:!0,md:6,xs:6},b.createElement(Ue,{name:"NumberOfCrews",control:x,rules:{min:1,max:9},render:function(U){var X=U.field,Q=X.onChange,re=X.value;return b.createElement(je,{label:"# ".concat(W>1?"Crews":"Crew"),variant:"outlined",error:!!O.NumberOfCrews,fullWidth:!0,margin:"dense",autoComplete:"off",type:"number",value:re,onChange:function(ee){parseInt(ee.target.value)>=1&&parseInt(ee.target.value)<=9&&Q(ee)}})}}),((t=O.NumberOfCrews)===null||t===void 0?void 0:t.type)==="min"&&b.createElement("span",{className:a.errorLabel},"# Crewss day is required")),b.createElement(D,{item:!0,md:6,xs:6,style:{paddingBottom:"0"}},b.createElement(Ue,{name:"Crews",control:x,rules:{validate:function(U){return U.length==W}},render:function(U){var X=U.field,Q=X.onChange,re=X.value;return b.createElement(je,{label:"Crews Ids",variant:"outlined",error:!!O.Crews,disabled:W<=0,fullWidth:!0,margin:"dense",autoComplete:"off",value:re,onChange:function(ee){ee.target.value.length<=W&&Q(ee.target.value.toString().toUpperCase())}})}}),!!O.Crews&&b.createElement("span",{className:a.errorLabel},"Please put ",W," crews"),H.length<W&&!O.Crews&&b.createElement("span",{className:a.infoLabel},"Insert: ".concat(W," ").concat(W==1?"Crew":"Crews",". ").concat(W>1?"The Crews must be differents":""))),b.createElement(D,{item:!0,md:6,xs:6},b.createElement(Ue,{name:"PatternDays",control:x,render:function(U){var X=U.field,Q=X.value,re=X.onChange;return b.createElement(je,{label:"Rotation Pattern",variant:"outlined",error:!!O.PatternDays,fullWidth:!0,type:"number",margin:"dense",autoComplete:"off",value:Q,onChange:function(ee){parseInt(ee.target.value)>=5&&parseInt(ee.target.value)<=60&&re(ee)}})}})),b.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 8px"}},b.createElement(Ue,{name:"CrewRotation",control:x,rules:{validate:function(U){return U.length==$}},render:function(U){var X=U.field,Q=X.value,re=X.onChange;return b.createElement(je,{value:Q,onChange:function(ee){ee.target.value.length<=$&&re(ee.target.value.toString().toUpperCase())},error:!!O.CrewRotation,label:"Crew rotation",variant:"outlined",fullWidth:!0,margin:"dense",autoComplete:"off"})}}),b.createElement(D,{container:!0,style:{padding:"0",height:2}},b.createElement(D,{item:!0,style:{height:2,width:"".concat(T(),"% "),backgroundColor:"".concat(q.length==$?"#4CAF50":"#F44336"),transition:" 0.2s ease",margin:"0 5px"}})),b.createElement(D,{container:!0,style:{margin:"4px 0 0"}},b.createElement(D,{item:!0},q?.length>=1&&q?.length!==$&&b.createElement("span",{className:a.infoLabel,style:{marginLeft:5}},"".concat(q?.length,"/").concat($)))),!!O.CrewRotation&&b.createElement("span",{className:a.errorLabel},"Please put ",$," crews"),W>0&&Number.isInteger($/W)===!1&&b.createElement(D,{container:!0,style:{padding:"0",marginLeft:5}},b.createElement(D,{item:!0,className:a.errorLabel},"Rotation # not a multiple of Shifts (".concat($,") / Crews (").concat(W,")")))),b.createElement(D,{item:!0,md:12,xs:12,style:{margin:"12px 0 20px",padding:"0 8px"}},b.createElement(Ue,{name:"Comments",control:x,render:function(U){var X=U.field,Q=X.value,re=X.onChange;return b.createElement(je,{style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Comments",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:Q,onChange:function(ee){ee.target.value.length<=200&&re(ee)}})}}),b.createElement(D,{container:!0,style:{marginBottom:18}},b.createElement(D,{item:!0},G?.length>=1&&G?.length!==200&&b.createElement("span",{className:a.infoLabel,style:{marginLeft:5}},"".concat(G?.length,"/200")),G?.length==200&&b.createElement("span",{className:a.infoLabel,style:{marginLeft:5}},"Max. 200")))))),b.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},b.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return i(!1)}},"Cancel")),b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,startIcon:g&&b.createElement(Kt,{size:"1rem"}),disabled:g,variant:"contained",color:"primary",type:"submit"},"Save")))))))),b.createElement(Mt,{error:d,onHide:function(){return p("")}}),b.createElement(pr,{open:l,autoHideDuration:2500,onClose:N},b.createElement(ph,{severity:"success",onClose:N},"The shift was created successfully")))},Ryi=function(e){var t=e.setShiftId,n=e.setShowDeleteModal,r=e.setShowCreateModal,i=e.setShowEditModal,o=function(a){var s=[];return a?s=s.concat([{name:"New Shift",key:"new_shift",onClick:function(){r(!0)},icon:E.createElement(Zo,null)},{name:"Edit Shift",key:"edit_shift",onClick:function(){t(a),i(!0)},icon:E.createElement(No,null)},{name:"Delete Shift",key:"delete_shift",onClick:function(){t(a),n(!0)},icon:E.createElement(Mo,null)}]):s=s.concat([{name:"New Shift",key:"new_shift",onClick:function(){r(!0)},icon:E.createElement(Zo,null)}]),s};return{getMenuOptions:o}},Iyi=Rt(function(e){return{root:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}}}),Pyi=function(e){var t=e.setShiftSelected,n=e.setOpenModalEditShift,r=e.setOpenModalDeleteShift,i=e.showContextMenu,o=Iyi(),a=[{field:"PatternStart",headerName:"Pattern Start",valueFormatter:function(s){var l=s.value;return"".concat(mt(l).format("L"),", ").concat(mt(l).format("LTS"))},minWidth:180,flex:4,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"ShiftCodes",headerName:"Shift Codes",minWidth:150,flex:2,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"Crews",headerName:"Crews",minWidth:150,flex:2,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{sortable:!1,field:"PatternDays",headerName:"Shifts",minWidth:130,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{cellRenderer:function(s){return E.createElement(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:o.root},E.createElement(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Fe,{style:{},onClick:function(){t(s?.data),n(!0)}},E.createElement(No,{color:"primary"})),E.createElement(Fe,{style:{},onClick:function(){t(s?.data),r(!0)}},E.createElement(Mo,{color:"secondary"})),E.createElement(Fe,{style:{},onClick:function(l){return i(l,s.data,"TableShifts")}},E.createElement(Kf,{color:"action"}))))},field:"",flex:3,minWidth:240,editable:!1,autoHeight:!1,suppressNavigable:!0}];return{columnDefs:a}},Dyi=Rt(function(e){return{btnModal:{display:"flex",justifyContent:"flex-end"}}}),kyi=function(){var e=Dyi(),t=b.useRef(null),n=b.useState("");n[0];var r=n[1],i=b.useState(!1),o=i[0],a=i[1],s=b.useState(!1),l=s[0],c=s[1],u=b.useState(!1),d=u[0],p=u[1],h=b.useState(null),g=h[0],m=h[1],v=Lyi(),y=v.data,M=v.isLoading,C=v.isError,x=v.error,w=v.refetch,S=y?.map(function(F){var L=F.PatternStart,W=F.ShiftCodes,H=F.Crews,j=F.PatternDays,G=F.CrewRotation,q=F.Comments,$=F.CanEdit;return{id:W,PatternStart:L,ShiftCodes:W,Crews:H,PatternDays:j,CrewRotation:G,Comments:q,CanEdit:$}}),A=b.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),z=Ryi({setShiftId:m,setShowCreateModal:a,setShowDeleteModal:p,setShowEditModal:c}).getMenuOptions,O=ks(),T=O.showContextMenu,I=O.registerConfig,P=Pyi({setShiftSelected:m,setOpenModalEditShift:c,setOpenModalDeleteShift:p,showContextMenu:T}).columnDefs,N=function(F){var L,W,H=(L=F.node)===null||L===void 0?void 0:L.data;return F.api.deselectAll(),(W=F.node)===null||W===void 0||W.setSelected(!0),T(event,H,"TableShifts"),[]};return b.useEffect(function(){I({id:"TableShifts",getOptions:z})},[]),b.useEffect(function(){x&&C&&r(x.message)},[x,C]),b.createElement(b.Fragment,null,b.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},b.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},b.createElement(bt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"Shifts / Crew")),b.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},b.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},b.createElement(D,{component:kt,item:!0,md:12,xs:12,style:{height:"70vh"}},b.createElement(Kn,{loading:M,gridOptions:{theme:qw},ref:t,rowData:S||[],columnDefs:P,defaultColDef:A,rowHeight:34,headerHeight:34,animateRows:!0,loadingOverlayComponent:Wm,getContextMenuItems:function(F){return N(F)},rowSelection:"single",onRowDoubleClicked:function(F){m(F.data),c(!0)}})),b.createElement(D,{container:!0,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:2,xs:12,className:e.btnModal},b.createElement(Fe,{variant:"contained",color:"primary",onClick:function(){return a(!o)},fullWidth:!0,style:{marginTop:10}},"NEW SHIFT")))))),b.createElement(Ayi,{shiftSelected:g,show:o,onHide:function(F){a(!1),F&&w()},suffixTitle:"Shifts / Crew"}),b.createElement(Eyi,{shiftSelected:g,show:l,onHide:function(F){c(!1),F&&w()},suffixTitle:"Shifts / Crew"}),b.createElement(zyi,{shiftSelected:g,show:d,onHide:function(F){p(!1),F&&w()},suffixTitle:"Shifts / Crew"}))},Lyi=function(){return Bl({queryKey:["shifts"],queryFn:function(){return xyi()}})},_yi=function(){return b.createElement(b.Fragment,null,b.createElement(Mn,{title:"Shifts and Crews"}),b.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},b.createElement(kyi,null)))},Nyi=function(e){return b.createElement(_yi,null)},Fyi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[MES].[GetAssets]",[])];case 1:if(t=n.sent(),t.ok)return[2,Ot(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching assets")}})})},Wyi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[UTL].[GetSettings]",[])];case 1:if(t=n.sent(),t.ok)return[2,Ot(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching settings")}})})},qyi=function(e,t){return Ct(void 0,void 0,void 0,function(){var n,r,i;return xt(this,function(o){switch(o.label){case 0:return n=new Ye,r=[],r.push({name:"UserId",value:e}),r.push({name:"DefaultAssetId",value:t}),[4,n.callV2("[SEC].[UpsertDefaultAssetId]",r)];case 1:return i=o.sent(),[2,i]}})})},Byi=function(e){var t={id:e.AssetId,parent:e.ParentAssetId===null?-1:e.ParentAssetId,text:e.AssetName,isAtTop:!1,isAtBottom:!1,sortOrder:null,data:{fileType:"csv",fileSize:""},droppable:e.IsBranch,isEditable:!0};return t},jyi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.AssetIds,a=t.ParentAssetId;return xt(this,function(s){switch(s.label){case 0:return n=new Ye,r=[{name:"AssetIds",value:o.join(",")},{name:"ParentAssetId",value:a}],[4,n.callV2("[MES].[UpdateParentAssetId]",r)];case 1:if(i=s.sent(),!i.ok)throw new Error(i.message||"Error when drag asset");return[2]}})})},Hyi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.AssetName,a=t.ParentAssetId,s=t.CanBeDefaultAsset;return xt(this,function(l){switch(l.label){case 0:return n=new Ye,r=[{name:"AssetName",value:o},{name:"ParentAssetId",value:a},{name:"CanBeDefaultAsset",value:s}],[4,n.callV2("[MES].[InsertAsset]",r)];case 1:if(i=l.sent(),!i.ok)throw new Error(i.message||"Error when create asset");return[2]}})})},Vyi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.AssetId,a=t.AssetName,s=t.ParentAssetId,l=t.IsAsset,c=t.CanBeDefaultAsset;return xt(this,function(u){switch(u.label){case 0:return n=new Ye,r=[{name:"AssetId",value:o},{name:"AssetName",value:a},{name:"ParentAssetId",value:s},{name:"IsAsset",value:l},{name:"CanBeDefaultAsset",value:c}],[4,n.callV2("[MES].[UpdateAssetData]",r)];case 1:if(i=u.sent(),!i.ok)throw new Error(i.message||"Error when upsert asset");return[2]}})})},Gyi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.AssetId,a=t.IsActive;return xt(this,function(s){switch(s.label){case 0:return n=new Ye,r=[{name:"AssetId",value:o},{name:"IsActive",value:a}],[4,n.callV2("[MES].[RemoveAsset]",r)];case 1:if(i=s.sent(),!i.ok)throw new Error(i.message||"Error when delete asset");return[2]}})})},$yi=function(e){var t=e.asset,n=e.selectedNodes,r=e.setSelectedNodes,i=e.isCtrlPressing,o=e.setIsDragging,a=e.setIsCtrlPressing,s=e.onAssetUpdateEnd;b.useEffect(function(){var m=function(y){y.key.toLowerCase()==="escape"?r([]):(y.ctrlKey||y.metaKey)&&a(!0)},v=function(y){(y.key.toLowerCase()==="control"||y.key.toLowerCase()==="meta")&&a(!1)};return window.addEventListener("keydown",m),window.addEventListener("keyup",v),function(){window.removeEventListener("keydown",m),window.removeEventListener("keyup",v)}},[]);var l=aa({mutationFn:jyi,onSuccess:function(){r([]),s({ok:!0})},onError:function(m){s({ok:!1,message:m.message})}}),c=function(m,v){return Ct(void 0,void 0,void 0,function(){var y;return xt(this,function(M){switch(M.label){case 0:return y=v.dropTargetId,y===-1||y===null||y===void 0?(s({ok:!1,message:"Cannot move assets to root level. Only one root asset (Plant) is allowed."}),[2]):[4,l.mutate({AssetIds:n.map(function(C){return C.id}),ParentAssetId:y})];case 1:return M.sent(),[2]}})})},u=function(m){r([m])},d=function(m){var v=n.map(function(M){return M.id});if(!v.includes(m.id)&&!v.some(function(M){return zP(t,M,m.id)})){var y=xi([],n,!0);y=y.filter(function(M){return!zP(t,m.id,M.id)}),y=xi(xi([],y,!0),[m],!1),r(y)}},p=function(m,v){m.ctrlKey||m.metaKey?d(v):u(v)},h=function(m){var v=n.some(function(y){return y.id===m.id});if(o(!0),!(!i&&v)){if(!i){r([m]);return}n.some(function(y){return y.id===m.id})||r(xi(xi([],n,!0),[m],!1))}},g=function(){o(!1),a(!1)};return{handleDrop:c,handleCtrlClick:p,handleDragEnd:g,handleDragStart:h}},Uyi=function(e){var t=e.assetNodes,n=e.externalSearchTerm,r=e.onSearchTermChange,i=b.useState(n||""),o=i[0],a=i[1],s=b.useState([]),l=s[0],c=s[1],u=b.useState(!1),d=u[0],p=u[1],h=b.useState(-1),g=h[0],m=h[1],v=b.useRef(null),y=b.useRef([]),M=b.useMemo(function(){var O=[],T=new Map;t.forEach(function(P){P.id!==void 0&&P.id!==null&&T.set(P.id,P)});var I=function(P){for(var N=[],F=T.get(P);F&&F.parent!==-1;)N.unshift(F.text),F=T.get(F.parent);return F&&F.parent===-1&&N.unshift(F.text),N};return t.forEach(function(P){if(!(P.id===void 0||P.id===null||!P.text)){var N=I(P.id),F=N.join(" > "),L=t.some(function(W){return W.parent===P.id});O.push({id:P.id,name:P.text,path:F,isDroppable:P.droppable||!1,hasChildren:L,node:P})}}),O},[t]),C=function(O){var T=O.toLowerCase();return M.filter(function(I){return I.name.toLowerCase().includes(T)})};E.useEffect(function(){n!==void 0&&n!==o&&a(n)},[n]);var x=function(O){var T=O.target.value;if(a(T),r?.(T),v.current&&clearTimeout(v.current),T.trim()===""||T.length<2){c([]),p(!1),m(-1);return}v.current=setTimeout(function(){var I=C(T);c(I),p(I.length>0);var P=I.length>0?0:-1;m(P),y.current=new Array(I.length).fill(null)},250)},w=function(O){if(O.key==="Escape"){d&&(a(""),c([]),p(!1),m(-1));return}if(d&&l.length>0){if(O.key==="ArrowDown"){O.preventDefault();var T=g<l.length-1?g+1:0;m(T),setTimeout(function(){return S(T)},0)}else if(O.key==="ArrowUp"){O.preventDefault();var I=g>0?g-1:l.length-1;m(I),setTimeout(function(){return S(I)},0)}else if(O.key==="Enter"&&g>=0){O.preventDefault();var P=l[g];return P}}},S=function(O){var T;y.current[O]&&((T=y.current[O])===null||T===void 0||T.scrollIntoView({behavior:"smooth",block:"nearest"}))},A=function(){a(""),c([]),p(!1),m(-1),r?.("")},z=function(O){if(a(O),r?.(O),v.current&&clearTimeout(v.current),O.trim()===""||O.length<2){c([]),p(!1),m(-1);return}v.current=setTimeout(function(){var T=C(O);c(T),p(T.length>0);var I=T.length>0?0:-1;m(I),y.current=new Array(T.length).fill(null)},250)};return{searchTerm:o,searchResults:l,showSearchResults:d,focusedSearchIndex:g,searchResultsRefs:y,handleSearchChange:x,handleKeyDown:w,scrollFocusedItemIntoView:S,clearSearch:A,triggerSearch:z}},Xyi=function(e){var t=e.assetNodes,n=e.onSearchResultClick,r=b.useRef(null),i=b.useState(null),o=i[0],a=i[1],s=Uyi({assetNodes:t}),l=s.searchTerm,c=s.searchResults,u=s.showSearchResults,d=s.focusedSearchIndex,p=s.searchResultsRefs,h=s.handleSearchChange,g=s.handleKeyDown,m=s.clearSearch,v=function(x){n(x),m(),a(null)},y=function(x){var w=g(x);w&&v(w)},M=function(x){h(x),!o&&r.current&&a(r.current)},C=function(){a(null)};return E.createElement("div",{onKeyDown:y,style:{marginBottom:16}},E.createElement(je,{placeholder:"Search assets (min. 2 characters)...",variant:"outlined",size:"small",fullWidth:!0,value:l,onChange:M,inputRef:r,InputProps:{startAdornment:E.createElement(nc,{position:"start"},E.createElement(_3,{color:"action"}))}}),E.createElement(S3,{open:u&&!!o,anchorEl:o,onClose:C,disableAutoFocus:!0,disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{style:{width:o?.offsetWidth,maxHeight:300}}},E.createElement(TMe,{dense:!0},c.map(function(x,w){return E.createElement(sr,{key:x.id,ref:function(S){p.current&&(p.current[w]=S)},selected:w===d,onClick:function(){return v(x)}},E.createElement($0,null,x.hasChildren||x.isDroppable?E.createElement(Kee,{color:"primary",fontSize:"small"}):E.createElement(Nxe,{color:"primary",fontSize:"small"})),E.createElement(na,{primary:x.name,secondary:x.path,secondaryTypographyProps:{variant:"caption",color:"textSecondary",style:{fontStyle:"italic"}}}))}))))},Yyi=function(e){var t=e.reduce(function(r,i,o){return r[i.id]=o,r},{}),n;return e.forEach(function(r){if(r.parentId===null){n=r;return}var i=e[t[r.parentId]];i&&(i.children=xi(xi([],i?.children||[],!0),[r],!1))}),n},nte=function(e){var t=e.label,n=t===void 0?"Asset":t,r=e.value,i=e.onChange,o=e.disabled,a=e.fieldError,s=e.filterAssets,l=s===void 0?!1:s,c=b.useState(""),u=c[0],d=c[1],p=Tk(),h=p.data,g=p.isLoading,m=p.error,v=p.isError,y=(Array.isArray(h)?h:[]).filter(function(C){return!l||C.CanBeDefaultAsset}).map(function(C){return{id:C.AssetId,parentId:C.ParentAssetId,name:C.AssetName,isLeaf:C.IsLeaf,isActive:!0,children:[]}}),M=Yyi(y||[]);return b.useEffect(function(){m&&v&&d(m.message)},[m,v]),g||M==null?E.createElement(je,{disabled:!0,label:"Code",variant:"outlined",fullWidth:!0,size:"small",InputProps:{endAdornment:E.createElement(Kt,{color:"inherit",size:20})}}):E.createElement(E.Fragment,null,E.createElement(ja,{error:!!a,fullWidth:!0},E.createElement(a3e,{inputTitle:n,title:n,dataSource:M,value:r||0,onSelect:function(C){i(C)},allowSearch:!0,selectBranch:!0,selectActive:!1,selectInternal:!1,disabled:o}),a&&E.createElement(KK,null,a.message)),E.createElement(Mt,{error:u,onHide:function(){return d("")}}))},HX={AssetId:0,AssetName:"",CanBeDefaultAsset:!1,ParentAssetId:0,IsAsset:!1,IsLeaf:null,ParentAssetName:"",IsBranch:!1},Kyi=Rt(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"}},checkbox:{userSelect:"none"}}}),Qyi=function(e){var t=e.assetNodeSelectedInTree,n=e.show,r=e.onHide,i=e.suffixTitle,o=Kyi(),a=b.useState(!1),s=a[0],l=a[1],c=b.useState(""),u=c[0],d=c[1],p=b.useState(!1),h=p[0],g=p[1],m=Tk(),v=m.data,y=m.isLoading,M=m.isError,C=m.error,x=m.isSuccess,w=Gn({defaultValues:HX}),S=w.control,A=w.handleSubmit,z=w.reset,O=w.setValue,T=function(F,L){L!=="clickaway"&&l(!1)},I=aa({mutationFn:Hyi,onSuccess:function(){l(!0),r(!0)},onError:function(F){d(F.message)},onSettled:function(){g(!1)}}),P=function(F){return Ct(void 0,void 0,void 0,function(){return xt(this,function(L){switch(L.label){case 0:return g(!0),[4,I.mutate({AssetName:F.AssetName,ParentAssetId:F.ParentAssetId,CanBeDefaultAsset:F.CanBeDefaultAsset})];case 1:return L.sent(),[2]}})})},N=A(P);return b.useEffect(function(){var F;if(n)if(z(HX),t?.id)O("ParentAssetId",t?.id);else{var L=(F=v?.find(function(W){return W.ParentAssetId===null}))===null||F===void 0?void 0:F.AssetId;O("ParentAssetId",L??null)}},[n,t,x]),b.useEffect(function(){C&&M&&d(C.message)},[C,M]),E.createElement(E.Fragment,null,n&&E.createElement(Mn,{title:"New Asset".concat(i?" - ".concat(i):"")}),E.createElement(Qu,{fullWidth:!0,maxWidth:"sm",open:n,onClose:function(){return r(!1)},disableEnforceFocus:!0,className:o.root},y?E.createElement("div",{style:{minHeight:300,alignItems:"center",display:"flex"}},E.createElement(Wm,null)):E.createElement("form",{onSubmit:N},E.createElement(D,{container:!0,style:{padding:"15px 0 20px",height:"50%"}},E.createElement(D,{container:!0,item:!0},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(bt,{style:{padding:"0 24px 12px",fontSize:25}},"NEW ASSET"))),E.createElement(D,{container:!0,style:{alignItems:"center"}},E.createElement(ru,{dividers:!0,style:{padding:"10px 24px 0"}},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(Ue,{name:"AssetName",control:S,rules:{validate:{notEmpty:function(F){return F.trim()!==""}}},render:function(F){var L=F.field,W=L.onChange,H=L.value,j=F.fieldState.error;return E.createElement(E.Fragment,null,E.createElement(je,{label:"Asset Name",variant:"outlined",error:!!j,helperText:j?.message,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:W,value:H}))}})),E.createElement(D,{container:!0},E.createElement(D,{item:!0,md:12,xs:12,style:{marginBottom:"8px"}},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:0,marginTop:10}},E.createElement(Ue,{name:"ParentAssetId",control:S,render:function(F){var L=F.field,W=F.fieldState.error;return E.createElement(nte,{label:"Parent",value:L.value,onChange:L.onChange,fieldError:W})}}))),E.createElement(D,{container:!0,style:{marginTop:"10px 0",padding:"0"}},E.createElement(D,{item:!0,xs:6,md:6},E.createElement(Ue,{name:"CanBeDefaultAsset",control:S,defaultValue:!1,render:function(F){var L=F.field;return E.createElement(Io,{className:o.checkbox,control:E.createElement(Qr,{checked:L.value,onChange:function(W){return L.onChange(W.target.checked)},name:"CanBeDefaultAsset",color:"primary"}),label:"Can be Default Asset"})}}))))),E.createElement(D,{item:!0,md:12,xs:12,style:{marginTop:"15px"}},E.createElement(Td,{style:{padding:"0px 24px"}},E.createElement(D,{container:!0,justifyContent:"flex-end",style:{margin:0}},E.createElement(D,{container:!0,item:!0,style:{marginLeft:"auto",marginTop:5,marginBottom:0}},E.createElement(D,{item:!0,md:6,xs:12,style:{paddingLeft:"0",paddingRight:"16px"}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Fe,{fullWidth:!0,startIcon:h&&E.createElement(Kt,{size:"1rem"}),disabled:h,variant:"contained",color:"primary",type:"submit"},"Save")))))))))),E.createElement(Mt,{error:u,onHide:function(){return d("")}}),E.createElement(pr,{open:s,autoHideDuration:2500,onClose:T},E.createElement(Pr,{severity:"info",onClose:T},"Document created successfully")))},Zyi=Rt(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"}},checkbox:{userSelect:"none"}}}),Jyi=function(e){var t=e.selectedAssetId,n=e.show,r=e.onHide,i=e.suffixTitle,o=Zyi(),a=b.useState(!1),s=a[0],l=a[1],c=b.useState(""),u=c[0],d=c[1],p=b.useState(!1),h=p[0],g=p[1],m=Tk(),v=m.data,y=m.isLoading,M=m.isError,C=m.error,x=m.isSuccess,w=v&&v.length>0?v.find(function(L){return L.AssetId===t}):null,S=Gn({defaultValues:w||HX}),A=S.control,z=S.reset,O=S.setValue,T=S.handleSubmit,I=function(L,W){W!=="clickaway"&&l(!0)},P=aa({mutationFn:Vyi,onSuccess:function(){l(!0),r(!0)},onError:function(L){d(L.message)},onSettled:function(){g(!1)}}),N=function(L){return Ct(void 0,void 0,void 0,function(){return xt(this,function(W){switch(W.label){case 0:return g(!0),[4,P.mutate({AssetId:t,AssetName:L.AssetName,ParentAssetId:L.ParentAssetId,IsAsset:L.IsAsset,CanBeDefaultAsset:L.CanBeDefaultAsset})];case 1:return W.sent(),[2]}})})},F=T(N);return b.useEffect(function(){var L,W,H,j;n&&(z(),O("AssetName",(L=w?.AssetName)!==null&&L!==void 0?L:""),O("ParentAssetId",(W=w?.ParentAssetId)!==null&&W!==void 0?W:null),O("IsBranch",(H=w?.IsBranch)!==null&&H!==void 0?H:!1),O("CanBeDefaultAsset",(j=w?.CanBeDefaultAsset)!==null&&j!==void 0?j:!1))},[n,t,x]),b.useEffect(function(){C&&M&&d(C.message)},[C,M]),E.createElement(E.Fragment,null,n&&E.createElement(Mn,{title:"Edit Asset".concat(i?" - ".concat(i):"")}),E.createElement(Qu,{fullWidth:!0,maxWidth:"sm",open:n,onClose:function(){return r(!1)},disableEnforceFocus:!0,className:o.root},y?E.createElement("div",{style:{minHeight:300,alignItems:"center",display:"flex"}},E.createElement(Wm,null)):E.createElement("form",{onSubmit:F},E.createElement(D,{container:!0,style:{padding:"15px 0 20px",height:"50%"}},E.createElement(D,{container:!0,item:!0},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(bt,{style:{padding:"0 24px 12px",fontSize:25}},w?.AssetName))),E.createElement(D,{container:!0,style:{alignItems:"center"}},E.createElement(ru,{dividers:!0,style:{padding:"10px 24px 0"}},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(Ue,{name:"AssetName",control:A,render:function(L){var W=L.field,H=W.onChange,j=W.value,G=L.fieldState.error;return E.createElement(E.Fragment,null,E.createElement(je,{label:"Asset Name",variant:"outlined",error:!!G,helperText:G?.message,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:H,value:j}))}})),E.createElement(D,{container:!0},E.createElement(D,{item:!0,md:12,xs:12,style:{marginBottom:"8px"}},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(Ue,{name:"ParentAssetId",control:A,render:function(L){var W=L.field,H=L.fieldState.error;return E.createElement(nte,{label:"Parent",value:W.value,onChange:W.onChange,fieldError:H})}})),E.createElement(D,{container:!0,style:{marginTop:"10px",padding:"0px"}},E.createElement(D,{item:!0,xs:6,md:6},E.createElement(Ue,{name:"IsBranch",control:A,defaultValue:!1,render:function(L){var W=L.field;return E.createElement(Io,{className:o.checkbox,control:E.createElement(Qr,{checked:W.value,onChange:function(H){return W.onChange(H.target.checked)},name:"IsAsset",color:"primary",disabled:!0}),label:"Has Children"})}})),E.createElement(D,{item:!0,xs:6,md:6},E.createElement(Ue,{name:"CanBeDefaultAsset",control:A,defaultValue:!1,render:function(L){var W=L.field;return E.createElement(Io,{className:o.checkbox,control:E.createElement(Qr,{checked:W.value,onChange:function(H){return W.onChange(H.target.checked)},name:"CanBeDefaultAsset",color:"primary"}),label:"Can be Default Asset"})}})))))),E.createElement(D,{item:!0,md:12,xs:12,justifyContent:"flex-end",style:{marginTop:"15px"}},E.createElement(Td,{style:{padding:"0px 24px"}},E.createElement(D,{container:!0,justifyContent:"flex-end",style:{margin:0}},E.createElement(D,{container:!0,item:!0,style:{marginLeft:"auto",marginTop:5,marginBottom:0}},E.createElement(D,{item:!0,md:6,xs:12,style:{paddingLeft:"0",paddingRight:"16px"}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Fe,{fullWidth:!0,startIcon:h&&E.createElement(Kt,{size:"1rem"}),disabled:h,variant:"contained",color:"primary",type:"submit"},"Save")))))))))),E.createElement(Mt,{error:u,onHide:function(){return d("")}}),E.createElement(pr,{open:s,autoHideDuration:2500,onClose:I},E.createElement(Pr,{severity:"info",onClose:I},"Document created succesfully")))},eMi=Rt(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiDialogContent-dividers":{padding:0}}}}),tMi=function(e){var t=e.selectedAssetId,n=e.selectedAssetName,r=e.show,i=e.onHide,o=e.suffixTitle,a=eMi(),s=b.useState(!1),l=s[0],c=s[1],u=b.useState(""),d=u[0],p=u[1],h=b.useState(!1),g=h[0],m=h[1],v=function(){m(!1),i(!1)},y=function(x,w){w!=="clickaway"&&c(!1)},M=aa({mutationFn:Gyi,onSuccess:function(){c(!0),i(!0)},onError:function(x){p(x.message)},onSettled:function(){m(!1)}}),C=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(x){switch(x.label){case 0:return m(!0),[4,M.mutate({AssetId:t,IsActive:!1})];case 1:return x.sent(),[2]}})})};return E.createElement(E.Fragment,null,r&&E.createElement(Mn,{title:"Delete Asset".concat(o?" - ".concat(o):"")}),E.createElement(Qu,{fullWidth:!0,maxWidth:"sm",open:r,onClose:function(){return v()},disableEnforceFocus:!0,className:a.root},E.createElement(T0,{id:"responsive-dialog-title"},"WARNING"),E.createElement(ru,null,E.createElement(gM,{style:{padding:0,margin:0}},"Be careful, once deleted you will not be able to recover this asset"," ",E.createElement("b",null,"(",n,")"),", are you sure you want to delete?")),E.createElement(Td,{style:{padding:"16px 24px"}},E.createElement(Fe,{onClick:function(){return i(!1)},autoFocus:!0,color:"default"},"CANCEL"),E.createElement(Fe,{autoFocus:!0,color:"secondary",startIcon:g&&E.createElement(Kt,{size:"1rem"}),onClick:C},"Delete"))),E.createElement(Mt,{error:d,onHide:function(){return p("")}}),E.createElement(pr,{open:l,autoHideDuration:2500,onClose:y},E.createElement(Pr,{severity:"info",onClose:y},"Asset removed succesfully")))},nMi=Rt(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"},"& .MuiDialogContent-dividers":{borderBottom:"unset"}},checkbox:{userSelect:"none"}}}),rMi=function(e){var t=e.selectedAssetId,n=e.show,r=e.onHide,i=e.suffixTitle,o=nMi(),a=b.useState(""),s=a[0],l=a[1],c=Tk(),u=c.data,d=c.isLoading,p=c.isError,h=c.error,g=c.isSuccess,m=u&&u.length>0?u.find(function(x){return x.AssetId===t}):null,v=Gn({defaultValues:m||HX}),y=v.control,M=v.reset,C=v.setValue;return b.useEffect(function(){var x,w,S;if(n&&g){M(),C("ParentAssetId",(x=m?.ParentAssetId)!==null&&x!==void 0?x:null),C("AssetName",(w=m?.AssetName)!==null&&w!==void 0?w:"");var A=u?.find(function(z){return z.AssetId===m?.ParentAssetId});C("ParentAssetName",A?.AssetName),C("IsBranch",(S=m?.IsBranch)!==null&&S!==void 0?S:!1),C("CanBeDefaultAsset",m?.CanBeDefaultAsset)}},[n,t,g]),b.useEffect(function(){h&&p&&l(h.message)},[h,p]),E.createElement(E.Fragment,null,n&&E.createElement(Mn,{title:"View Asset".concat(i?" - ".concat(i):"")}),E.createElement(Qu,{fullWidth:!0,maxWidth:"sm",open:n,onClose:function(){return r(!1)},disableEnforceFocus:!0,className:o.root},d?E.createElement("div",{style:{minHeight:300,alignItems:"center",display:"flex"}},E.createElement(Wm,null)):E.createElement("form",{onSubmit:function(){}},E.createElement(D,{container:!0,style:{padding:"15px 0",height:"50%"}},E.createElement(D,{container:!0,item:!0},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(bt,{style:{padding:"0 24px 12px",fontSize:25}},m?.AssetName))),E.createElement(D,{container:!0,style:{alignItems:"center"}},E.createElement(ru,{dividers:!0,style:{padding:"10px 24px 0"}},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(Ue,{name:"AssetName",control:y,render:function(x){var w=x.field,S=w.onChange,A=w.value,z=x.fieldState.error;return E.createElement(E.Fragment,null,E.createElement(je,{label:"Asset Name",variant:"outlined",error:!!z,helperText:z?.message,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:S,value:A,disabled:!0}))}})),E.createElement(D,{container:!0},E.createElement(D,{item:!0,md:12,xs:12,style:{marginBottom:"8px"}},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:0,marginTop:10}},E.createElement(Ue,{name:"ParentAssetName",control:y,render:function(x){var w=x.field,S=w.onChange,A=w.value,z=x.fieldState.error;return E.createElement(E.Fragment,null,A?E.createElement(je,{label:"Parent Asset",variant:"outlined",error:!!z,helperText:z?.message,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:S,value:A||"",disabled:!0}):E.createElement(E.Fragment,null))}}))),E.createElement(D,{container:!0,style:{marginTop:"5px",padding:"0 8px"}},E.createElement(D,{item:!0,xs:6,md:6},E.createElement(Ue,{name:"IsBranch",control:y,defaultValue:!1,render:function(x){var w=x.field;return E.createElement(Io,{className:o.checkbox,control:E.createElement(Qr,{checked:w.value,onChange:function(S){return w.onChange(S.target.checked)},name:"IsBranch",color:"primary",disabled:!0}),label:"Has Children"})}})),E.createElement(D,{item:!0,xs:6,md:6},E.createElement(Ue,{name:"CanBeDefaultAsset",control:y,defaultValue:!1,render:function(x){var w=x.field;return E.createElement(Io,{className:o.checkbox,control:E.createElement(Qr,{checked:w.value,onChange:function(S){return w.onChange(S.target.checked)},name:"CanBeDefaultAsset",color:"primary",disabled:!0}),label:"Can be Default Asset"})}}))))))))),E.createElement(Mt,{error:s,onHide:function(){return l("")}}))},c3e=function(e){if(e.droppable)return E.createElement(q3,null);switch(e.fileType){case"image":return E.createElement(nOt,null);case"csv":return E.createElement(rOt,null);case"text":return E.createElement(tOt,null);default:return null}},iMi=Rt(function(e){return{root:{alignItems:"center",backgroundColor:"#1967d2",borderRadius:"4px",boxShadow:" 0 12px 24px -6px rgba(0, 0, 0, .25); 0 0 0 1px rgba(0, 0, 0, .08)",color:"#fff",display:"inline-grid",fontSize:"14px",gap:"8px",gridTemplateColumns:"auto auto",padding:"4px 8px",pointerEvents:"none"},icon:{alignItems:"center",display:"flex"},label:{alignItems:"center",display:"flex"}}}),oMi=function(e){var t,n=iMi(),r=e.monitorProps.item;return E.createElement("div",{className:n.root},E.createElement("div",{className:n.icon},E.createElement(c3e,{droppable:r.droppable,fileType:(t=r?.data)===null||t===void 0?void 0:t.fileType})),E.createElement("div",{className:n.label},r.text))},aMi=Rt(function(e){return{root:{alignItems:"flex-start",backgroundColor:"#1967d2",borderRadius:"4px",boxShadow:"0 12px 24px -6px rgba(0, 0, 0, 0.25); 0 0 0 1px rgba(0, 0, 0, 0.08)",display:"flex",flexDirection:"column",gap:"4px",padding:"8px"},item:{alignItems:"center",color:"#fff",display:"inline-grid",fontSize:"14px",gap:"8px",gridTemplateColumns:"auto auto"},icon:{alignItems:"center",display:"flex"},label:{alignItems:"center",display:"flex"},badge:{border:"solid 2px #fff"}}}),sMi=function(e){var t=aMi();return E.createElement(qot,{classes:{badge:t.badge},color:"error",badgeContent:e.dragSources.length,anchorOrigin:{vertical:"top",horizontal:"right"}},E.createElement("div",{className:t.root,"data-testid":"custom-drag-preview"},e.dragSources.map(function(n){var r;return E.createElement("div",{className:t.item},E.createElement("div",{className:t.icon},E.createElement(c3e,{droppable:n.droppable||!1,fileType:(r=n?.data)===null||r===void 0?void 0:r.fileType})),E.createElement("div",{className:t.label},n.text))})))},lMi=function(e){var t=e.setAssetNodeSelectedInTree,n=e.setAssetId,r=e.setShowModal,i=function(o){var a=[];return a=a.concat([{name:"New Asset",key:"new_asset",onClick:function(){o||t(null),r("new")},icon:E.createElement(Zo,null)}]),o&&(a=a.concat([{name:"Edit Asset",key:"edit_asset",onClick:function(){n(o.id),r("edit")},icon:E.createElement(No,null)},{name:"View Asset",key:"view_asset",onClick:function(){n(o.id),r("view")},icon:E.createElement(iOt,null)}]),o.droppable||(a=a.concat([{name:"Delete Asset",key:"delete_asset",onClick:function(){n(o.id),r("delete")},icon:E.createElement(Mo,null)}]))),a};return{getMenuOptions:i}},cMi=Rt(function(e){return{root:{alignItems:"center",display:"flex",height:"32px"},customNodeRoot:{listStyleType:"none",margin:0,padding:0},arrow:{alignItems:"center",cursor:"pointer",display:"flex",height:"24px",justifyContent:"center",width:"24px",transition:"transform linear 0.1s",transform:"rotate(0deg)"},"arrow > div":{alignItems:"center",display:"flex"},"arrow.is-open":{transform:"rotate(90deg)"},filetype:{display:"flex"},label:{paddingInlineStart:"8px"},selected:{backgroundColor:"#e8f0fe"},dragging:{opacity:.5}}}),uMi=`
  ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
`,dMi=function(e){var t=e.openAssets,n=e.setOpenAssets,r=e.setContextMenuOver,i=e.onDoubleClick;e.testIdPrefix;var o=e.isSelected,a=a2(e,["openAssets","setOpenAssets","setContextMenuOver","onDoubleClick","testIdPrefix","isSelected"]),s=a.node,l=s.id,c=s.droppable,u=s.data,d=a.depth*24,p=cMi(),h="".concat(p.customNodeRoot," ").concat(p.root," ").concat(o?p.selected:""),g=function(M){a.onClick(M,a.node)},m=function(M){var C;if(M.stopPropagation(),t[l]===l){var x=tt({},t);delete x[l],n(x)}else n(tt(tt({},t),(C={},C[l]=l,C)));a.onToggle()},v=b.useCallback(function(M){M.stopPropagation(),M.preventDefault(),r(a.node,M)},[l,r]),y=b.useCallback(function(M){M.stopPropagation(),M.preventDefault(),i(a.node,M),r({id:"",parent:"",text:"",droppable:!1},M)},[l,i]);return b.useEffect(function(){var M,C;return(M=a.containerRef.current)===null||M===void 0||M.addEventListener("contextmenu",v),(C=a.containerRef.current)===null||C===void 0||C.addEventListener("dblclick",y),function(){var x,w;(x=a.containerRef.current)===null||x===void 0||x.removeEventListener("contextmenu",v),(w=a.containerRef.current)===null||w===void 0||w.removeEventListener("dblclick",y)}},[]),E.createElement("div",{className:h,style:{paddingInlineStart:d},"data-node-id":l,onClick:g,title:"".concat(a.node.id," - ").concat(a.node.text)},E.createElement("style",null,uMi),a.node.droppable?E.createElement("div",{className:"".concat(p.arrow," ").concat(a.isOpen?p["arrow.is-open"]:"")},E.createElement("div",{onClick:m},E.createElement(oQ,{"data-testid":"arrow-right-icon-".concat(l)}))):null,E.createElement("div",{className:p.filetype},E.createElement(c3e,{droppable:c,fileType:u?.fileType})),E.createElement("div",{className:p.label},E.createElement(bt,{variant:"body2"},a.node.text)))},pMi=Rt(function(e){return{root:{},contextMenu:{backgroundColor:"#F8F8F8",borderRadius:"4px",padding:"0",height:"auto",width:"170px",margin:"0",position:"fixed",listStyle:"none",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.15)",zIndex:1e3},menuItem:{padding:"6px 12px 6px 10px",cursor:"pointer",display:"flex",alignItems:"center",backgroundColor:"#F8F8F8",fontSize:"12px",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"&:last-child":{borderBottom:"none"},"&:hover":{backgroundColor:"#d4edff"}},storyRoot:{display:"grid",height:"100%",gridTemplateRows:"auto 1fr",listStyleType:"none !important"},assetRoot:{boxSizing:"border-box",height:"100%",padding:"32px"},dropTarget:{boxShadow:"0 0 0 1px #1967d2 inset"}}}),Tk=function(){return Bl({queryKey:["assets"],queryFn:function(){return Fyi()}})},hMi=function(){var e,t=pMi(),n=ks(),r=n.showContextMenu,i=n.registerConfig,o=b.useState([]),a=o[0],s=o[1],l=b.useState(!1),c=l[0],u=l[1],d=b.useState(!1),p=d[0],h=d[1],g=b.useState(""),m=g[0],v=g[1],y=b.useState(null),M=y[0],C=y[1],x=b.useState({}),w=x[0],S=x[1],A=b.useState([]),z=A[0],O=A[1],T=b.useState([]),I=T[0],P=T[1],N=b.useState(null),F=N[0],L=N[1],W=b.useState(""),H=W[0],j=W[1],G=b.useState(!1),q=G[0],$=G[1],U=Tk(),X=U.data,Q=U.isLoading,re=U.isError,ee=U.error,se=U.isSuccess,pe=U.isFetching,te=U.refetch,ce=lMi({setAssetNodeSelectedInTree:L,setAssetId:C,setShowModal:v}).getMenuOptions,oe=$yi({asset:I,selectedNodes:a,setSelectedNodes:s,setIsDragging:u,isCtrlPressing:p,setIsCtrlPressing:h,onAssetUpdateEnd:function(ie){ie.ok?($(!0),te()):j(ie.message)}}),ae=oe.handleDrop,ne=oe.handleCtrlClick,le=oe.handleDragStart,he=oe.handleDragEnd,be=function(ie,ue){ue!=="clickaway"&&$(!1)},me=function(ie,ue){if(ue.preventDefault(),ue.type==="contextmenu"){s([ie]),r(ue,ie,"assetContext");var Ae=z.find(function(Ce){return Ce.id===ie.id});Ae&&L(Ae)}},Me=function(ie,ue){ue.preventDefault();var Ae=z.find(function(Ce){return Ce.id===ie.id});Ae&&(L(Ae),C(Ae.id),v("view"))},Oe=function(ie){var ue=function(Ee){var Ge=[],_e=function(Ie){var Le=I.find(function(we){return we.id===Ie});Le&&Le.parent!==-1?(Ge.unshift(Ie),_e(Le.parent)):Le&&Ge.unshift(Ie)};return _e(Ee),Ge},Ae=ue(ie.id),Ce=tt({},w);Ae.forEach(function(Ee){Ce[Ee]=Ee}),S(Ce),s([ie.node]),setTimeout(function(){var Ee=document.querySelector('[data-node-id="'.concat(ie.id,'"]'));Ee&&Ee.scrollIntoView({behavior:"smooth",block:"center"})},300)},de=b.useMemo(function(){return Object.keys(w).map(function(ie){return Number.parseInt(ie)})},[w]);return b.useEffect(function(){if(se){var ie=[],ue=X.map(function(Ae){return{id:Ae.AssetId,parent:Ae.ParentAssetId||0,text:Ae.AssetName,isAtTop:!1,isAtBottom:!1,isEditable:!0,sortOrder:0,data:{fileType:Ae.IsLeaf?"file":"folder",fileSize:"0"},droppable:!Ae.IsLeaf,isOpen:!1}});O(ue),X.forEach(function(Ae){var Ce=Byi(Ae);ie=xi(xi([],ie,!0),[Ce],!1)}),P(ie)}},[se,pe]),b.useEffect(function(){ee&&re&&j(ee.message)},[ee,re]),b.useEffect(function(){i({id:"assetContext",getOptions:ce})},[]),E.createElement(E.Fragment,null,E.createElement(Mn,{title:"Assets Tree"}),E.createElement(E.Fragment,null,E.createElement("div",{onContextMenu:function(ie){return r(ie,null,"assetContext")},style:{width:"100%",height:"100%"}},E.createElement("div",null,E.createElement(D,{container:!0,justifyContent:"flex-start"},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(bt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"Assets Tree")),Q?E.createElement(D,{container:!0,style:{width:"100%",height:"100%"}},E.createElement(D,{item:!0,xs:12,md:12,style:{height:"71vh",justifyContent:"center",alignItems:"center"}},E.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(zk,null)))):E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(kt,{elevation:2,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"}},E.createElement(Xyi,{assetNodes:I,onSearchResultClick:Oe}),E.createElement(D,{container:!0,alignItems:"center"},E.createElement(D,{container:!0,style:{height:"71vh",overflowY:"auto",paddingBottom:10}},E.createElement(D,null,E.createElement(UZ,{rootId:-1,initialOpen:de,tree:I,enableAnimateExpand:!0,classes:{root:t.assetRoot,dropTarget:t.dropTarget},onDrop:ae,onDragStart:le,onDragEnd:he,canDrop:function(ie,ue){return!a.some(function(Ae){return Ae.id===ue.dropTargetId})},render:function(ie,ue){var Ae=a.some(function(Ce){return Ce.id===ie.id});return E.createElement(dMi,tt({},ue,{node:ie,openAssets:w,setOpenAssets:S,setContextMenuOver:me,isSelected:Ae,isDragging:Ae&&c,onClick:ne,onDoubleClick:Me}))},dragPreviewRender:function(ie){return a.length>1?E.createElement(sMi,{dragSources:a}):E.createElement(oMi,{monitorProps:ie})}}))))))),E.createElement(pr,{open:q,autoHideDuration:2500,onClose:be},E.createElement(Pr,{severity:"success",onClose:be},"Asset updated successfully")))),E.createElement(Qyi,{assetNodeSelectedInTree:F,show:m==="new",onHide:function(ie){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ue){return v(""),ie&&te(),[2]})})},suffixTitle:"Assets Tree"}),E.createElement(Jyi,{selectedAssetId:M,show:m==="edit",onHide:function(ie){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ue){switch(ue.label){case 0:return v(""),ie?[4,te()]:[3,2];case 1:ue.sent(),ue.label=2;case 2:return[2]}})})},suffixTitle:"Assets Tree"}),E.createElement(rMi,{selectedAssetId:M,show:m==="view",onHide:function(){return v("")},suffixTitle:"Assets Tree"}),E.createElement(tMi,{selectedAssetId:M,selectedAssetName:(e=F?.text)!==null&&e!==void 0?e:"",show:m==="delete",onHide:function(ie){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ue){switch(ue.label){case 0:return v(""),ie?[4,te()]:[3,2];case 1:ue.sent(),ue.label=2;case 2:return[2]}})})},suffixTitle:"Assets Tree"}),E.createElement(Mt,{error:H,onHide:function(){return j("")}})))},fMi=function(){return E.createElement(E.Fragment,null,E.createElement(D,{container:!0,justifyContent:"flex-start",alignItems:"center"},E.createElement(pZ,{backend:hZ},E.createElement(hMi,null))))},gMi=function(e){return b.createElement(fMi,null)},mMi=function(e){return b.createElement(nCi,null)},gOt=(function(){function e(){var t;this.API_PROCEDURE_URL=document.getElementsByTagName("base")[0].href+"backend",this.API_AUTH_URL=document.getElementsByTagName("base")[0].href+"authentication",this.TOKEN=((t=JSON.parse(localStorage.getItem("userMESData")))===null||t===void 0?void 0:t.token)||""}return e})(),ipe,yKe=document.getElementsByTagName("base")[0].getAttribute("href")||"/";function vMi(){return Ct(this,void 0,void 0,function(){var e,t,n,r,i;return xt(this,function(o){switch(o.label){case 0:if(e=localStorage.getItem("refreshToken"),!e)throw new Error("refresh token does not exist");return t=new gOt,n=new FormData,n.append("refreshToken",e),[4,Xs.post("".concat(t.API_AUTH_URL,"/refresh"),n,{headers:{"Content-Type":"application/json"},params:{refreshToken:e}})];case 1:if(r=o.sent(),i=r.data.result,i)return[2,[i,e]];throw new Error("Token is not valid")}})})}function MKe(e){var t=e.response.status;return t===499||t===499}var u3=Xs.create({headers:{Authorization:"Bearer ".concat((ipe=localStorage.getItem("token"))!==null&&ipe!==void 0?ipe:"")}}),wG;u3.interceptors.response.use(function(e){return e},function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i,o,a,s;return xt(this,function(l){switch(l.label){case 0:if(t=e.config,t.headers.MESF_Retries===1)return localStorage.removeItem("token"),localStorage.removeItem("refreshToken"),window.location.href="".concat(yKe,"logout?message=Session%20expired&redirectTo=").concat(window.location.href),[2,Promise.reject(e)];if(n=jC(),!n||!MKe(e))return[2,Promise.reject(e)];l.label=1;case 1:return l.trys.push([1,7,8,9]),wG||(wG=vMi()),[4,wG];case 2:r=l.sent(),i=r[0],o=r[1],localStorage.setItem("token",i),localStorage.setItem("refreshToken",o),u3.defaults.headers.Authorization="Bearer ".concat(i),t.headers.Authorization="Bearer ".concat(i),t.headers.MESF_Retries=1,l.label=3;case 3:return l.trys.push([3,5,,6]),[4,Xs.request(t)];case 4:return[2,l.sent()];case 5:return a=l.sent(),MKe(a)?[2,Promise.reject(a)]:[2,Promise.reject(a)];case 6:return[3,9];case 7:return s=l.sent(),localStorage.removeItem("token"),localStorage.removeItem("refreshToken"),window.location.href="".concat(yKe,"logout?message=Session%20expired&redirectTo=").concat(window.location.href),[2,Promise.reject(s)];case 8:return wG=void 0,[7];case 9:return[2]}})})});var h5=document.getElementsByTagName("base")[0].getAttribute("href")||"/",Ye=(function(){function e(){this.config=new gOt,this.hasErrors=!1,this.error=void 0,this.TOKEN=this.config.TOKEN}return e.prototype.prepareCall=function(){this.hasErrors=!1,this.error=void 0},e.prototype.changePassword=function(t,n){return Ct(this,void 0,void 0,function(){var r,i,o=this;return xt(this,function(a){return this.prepareCall(),r={ok:!0},i={},i.userId=t,i.password=n,[2,fetch(this.config.API_AUTH_URL+"/ChangePassword",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+jC()},body:JSON.stringify(i)}).catch(function(s){throw new Yd(s.message,404,"ERR_CONNECTION_REFUSED")}).then(function(s){return r={ok:s.ok,status:s.status,statusText:s.statusText},s.json()}).then(function(s){if(!r.ok)throw new Yd(r.statusText,r.status,s);return s}).catch(function(s){return o.hasErrors=!0,o.error=s,{hasErrors:!0,error:s}})]})})},e.prototype.authenticate=function(t,n){return Ct(this,void 0,void 0,function(){var r,i,o=this;return xt(this,function(a){return this.prepareCall(),r={ok:!0},i={},i.userName=t,i.password=n,[2,fetch(this.config.API_AUTH_URL+"/Authenticate",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).catch(function(s){throw new Yd(s.message,404,"ERR_CONNECTION_REFUSED")}).then(function(s){return r={ok:s.ok,status:s.status,statusText:s.statusText},s.json()}).then(function(s){if(!r.ok)throw new Yd(r.statusText,r.status,s);return s}).catch(function(s){return o.hasErrors=!0,o.error=s,{hasErrors:!0,error:s}})]})})},e.prototype.loginWithAzureAD=function(t){return Ct(this,void 0,void 0,function(){var n,r,i=this;return xt(this,function(o){return this.prepareCall(),n={ok:!0},r={},r.AccessToken=t,[2,fetch(this.config.API_AUTH_URL+"/authenticate/azure-ad",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).catch(function(a){throw new Yd(a.message,404,"ERR_CONNECTION_REFUSED")}).then(function(a){return n={ok:a.ok,status:a.status,statusText:a.statusText},a.json()}).then(function(a){if(!n.ok)throw new Yd(n.statusText,n.status,a);return a}).catch(function(a){return i.hasErrors=!0,i.error=a,{hasErrors:!0,error:a}})]})})},e.prototype.loginWithWindowsAuthentication=function(){return Ct(this,void 0,void 0,function(){return xt(this,function(t){return[2,fetch(this.config.API_AUTH_URL+"/authenticate/windows",{method:"POST",mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({})})]})})},e.prototype.uploadFiles=function(t){return Ct(this,arguments,void 0,function(n,r){var i,o,a,s,l;return r===void 0&&(r=""),xt(this,function(c){switch(c.label){case 0:for(i=new FormData,o=0,a=n;o<a.length;o++)s=a[o],i.append("files",s,s.name);return i.append("folderName",r),[4,u3.post("/backend/uploadFiles",i)];case 1:return l=c.sent(),[2,l.data]}})})},e.prototype.call=function(t,n){return Ct(this,arguments,void 0,function(r,i,o){var a,s,l,c=this;return o===void 0&&(o=""),xt(this,function(u){return a={},s=[],i.forEach(function(d){var p={};p.name=d.name,d.value===null||d.value===void 0?p.value=null:p.value=d.value,s.push(p)}),a.method=r,a.dataBaseName=o,a.parameters=s,Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},l={ok:!0},[2,fetch(this.config.API_PROCEDURE_URL+"/Execute",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+jC()},body:JSON.stringify(a)}).catch(function(d){throw new Yd(d.message,404,"ERR_CONNECTION_REFUSED")}).then(function(d){return(d.status===499||d.status===401)&&(window.location.href="".concat(h5,"logout?message=Session%20expired&redirectTo=").concat(window.location.href)),l={ok:d.ok,status:d.status,statusText:d.statusText},d.json()}).then(function(d){if(!l.ok)throw new Yd(l.statusText,l.status,d);return d}).catch(function(d){c.hasErrors=!0,c.error=d})]})})},e.prototype.callV2=function(t,n,r){return Ct(this,void 0,void 0,function(){var i,o,a,s,l;return xt(this,function(c){switch(c.label){case 0:i={},o=[],n.forEach(function(u){var d={};d.name=u.name,u.value===null||u.value===void 0?d.value=null:d.value=u.value,o.push(d)}),i.method=t,i.parameters=o,Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},a=t.replace(/[\[\]]/g,""),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,u3.post("/action/".concat(a),i,{signal:r,params:i.parameters.map(function(u){var d,p,h=u.name.replace("@","");return typeof u.value=="string"&&u.value.length>100?(d={},d[h]="__truncated__",d):(p={},p[h]=u.value,p)})})];case 2:return s=c.sent(),[2,{ok:!0,data:s.data}];case 3:return l=c.sent(),this.hasErrors=!0,this.error=l,[2,{ok:!1,message:s3e(l)}];case 4:return[2]}})})},e.prototype.callJSON=function(t,n){return Ct(this,arguments,void 0,function(r,i,o){var a,s,l,c=this;return o===void 0&&(o=""),xt(this,function(u){return a={},s=[],i.forEach(function(d){var p={};p.name=d.name,d.value===null||d.value===void 0?p.value=null:p.value=d.value,s.push(p)}),a.method=r,a.dataBaseName=o,a.parameters=s,Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},l={ok:!0},[2,fetch(this.config.API_PROCEDURE_URL+"/ExecuteJSON",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+jC()},body:JSON.stringify(a)}).catch(function(d){throw new Yd(d.message,404,"ERR_CONNECTION_REFUSED")}).then(function(d){return(d.status===499||d.status===401)&&(window.location.href="".concat(h5,"logout?message=Session%20expired&redirectTo=").concat(window.location.href)),l={ok:d.ok,status:d.status,statusText:d.statusText},d.json()}).then(function(d){if(!l.ok)throw new Yd(l.statusText,l.status,d);return d}).catch(function(d){c.hasErrors=!0,c.error=d})]})})},e.prototype.import=function(t,n,r,i){return Ct(this,arguments,void 0,function(o,a,s,l,c){var u,d,p,h=this;return c===void 0&&(c=""),xt(this,function(g){return u=new FormData,d=[],a.forEach(function(m){var v={};v.name=m.name,m.value===null||m.value===void 0?v.value=null:v.value=m.value,d.push(v)}),Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},p={ok:!0},s.forEach(function(m){u.append("formFiles",m)}),u.append("method",o),u.append("dataBaseName",c),u.append("processFirstFile",l),u.append("parameters",JSON.stringify(d)),[2,fetch(this.config.API_PROCEDURE_URL+"/Import",{method:"POST",mode:"cors",headers:{Authorization:"Bearer "+jC()},body:u}).catch(function(m){throw new Yd(m.message,404,"ERR_CONNECTION_REFUSED")}).then(function(m){return(m.status===499||m.status===401)&&(window.location.href="".concat(h5,"logout?message=Session%20expired&redirectTo=").concat(window.location.href)),p={ok:m.ok,status:m.status,statusText:m.statusText},m.json()}).then(function(m){if(!p.ok)throw new Yd(p.statusText,p.status,m);return m}).catch(function(m){h.hasErrors=!0,h.error=m})]})})},e.prototype.export=function(t,n,r){return Ct(this,arguments,void 0,function(i,o,a,s){var l,c,u,d=this;return s===void 0&&(s=""),xt(this,function(p){return l={},c=[],o.forEach(function(h){var g={};g.name=h.name,h.value===null||h.value===void 0?g.value=null:g.value=h.value,c.push(g)}),l.method=i,l.dataBaseName=s,l.parameters=c,l.fileName=a||"Default.xlsx",Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},u={ok:!0},[2,fetch(this.config.API_PROCEDURE_URL+"/Export",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+jC()},body:JSON.stringify(l)}).catch(function(h){throw new Yd(h.message,404,"ERR_CONNECTION_REFUSED")}).then(function(h){return(h.status===499||h.status===401)&&(window.location.href="".concat(h5,"logout?message=Session%20expired&redirectTo=").concat(window.location.href)),u={ok:h.ok,status:h.status,statusText:h.statusText},u.ok?h.blob():h.json()}).then(function(h){if(!u.ok)throw new Yd(u.statusText,u.status,h);var g=window.URL.createObjectURL(h),m=document.createElement("a");return m.href=g,m.download=a||"Default.xlsx",document.body.appendChild(m),m.click(),m.remove(),"ok"}).catch(function(h){d.hasErrors=!0,d.error=h})]})})},e.prototype.exportExcel=function(t,n,r,i){return Ct(this,arguments,void 0,function(o,a,s,l,c){var u,d,p,h=this;return c===void 0&&(c=""),xt(this,function(g){return u={},d=[],a.forEach(function(m){var v={};v.name=m.name,m.value===null||m.value===void 0?v.value=null:v.value=m.value,d.push(v)}),l.showAllSheets!==void 0&&l.showAllSheets!==null&&(u.showAllSheets=l.showAllSheets),l.sheets!==void 0&&l.sheets!==null&&(u.sheets=l.sheets),u.method=o,u.dataBaseName=c,u.parameters=d,u.fileName=s||"Default.xlsx",Date.prototype.toJSON=function(){return mt(this).format("YYYY-MM-DDTHH:mm:ss")},p={ok:!0},[2,fetch(this.config.API_PROCEDURE_URL+"/ExportExcel",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer "+jC()},body:JSON.stringify(u)}).catch(function(m){throw new Yd(m.message,404,"ERR_CONNECTION_REFUSED")}).then(function(m){return(m.status===499||m.status===401)&&(window.location.href="".concat(h5,"logout?message=Session%20expired&redirectTo=").concat(window.location.href)),p={ok:m.ok,status:m.status,statusText:m.statusText},p.ok?m.blob():m.json()}).then(function(m){if(!p.ok)throw new Yd(p.statusText,p.status,m);var v=window.URL.createObjectURL(m),y=document.createElement("a");return y.href=v,y.download=s||"Default.xlsx",document.body.appendChild(y),y.click(),y.remove(),"ok"}).catch(function(m){h.hasErrors=!0,h.error=m})]})})},e.prototype.checkIfWindowsAuthIsEnabled=function(){return Ct(this,void 0,void 0,function(){var t;return xt(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,fetch("".concat(this.config.API_AUTH_URL,"/is-windows-auth-enabled")).then(function(r){return r.json()})];case 1:return t=n.sent(),[2,t];case 2:return n.sent(),[2,!1];case 3:return[2]}})})},e})(),Rc=(function(){function e(){this.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.setTimeZone=function(t){var n=mvi(t);n.length?this.timeZone=n[0]:this.timeZone=t,ra.tz.setDefault(this.timeZone)},e.prototype.toUTC=function(t,n){try{return t instanceof Date?$be(t,n):$be(pvi(t,e.instance.timeZone),n)}catch(r){return console.log({datetime:t,e:r}),""}},e.prototype.toLocalServerTime=function(t,n){try{return gi(t)||!t?"":(typeof t=="string"&&(t.includes("Z")?t=new Date(t):t=new Date("".concat(t,"Z"))),dvi(t,e.instance.timeZone,n))}catch(r){return console.log({datetime:t,e:r}),""}},e.prototype.getServerTimeZone=function(){return this.timeZone},e})(),Rn=function(){return ra};Rc.getInstance().toUTC;var Wn=Rc.getInstance().toLocalServerTime,r$=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i,o,a;return xt(this,function(s){switch(s.label){case 0:t=(a=e.productionDate)===null||a===void 0?void 0:a.toISOString(),s.label=1;case 1:return s.trys.push([1,3,,4]),n=[],n.push({name:"@ShiftId",value:e.shiftId===0?null:e.shiftId}),n.push({name:"@ProductionDate",value:t}),r=new Ye,[4,r.callV2("[MES].[GetShiftByParameters]",n)];case 2:return i=s.sent(),i.ok?[2,{ok:!0,data:Ot(i.data,"tables[0].rows[0]",{})}]:[2,{ok:!1,message:i.message}];case 3:return o=s.sent(),[2,{ok:!1,message:o.toString()}];case 4:return[2]}})})},bMi=function(){var e=b.useState(null),t=e[0],n=e[1],r=b.useState(!1);r[0];var i=r[1],o=b.useState("");o[0];var a=o[1],s=function(u){return Ct(void 0,void 0,void 0,function(){var d,p,h;return xt(this,function(g){switch(g.label){case 0:return gi(t)?[2]:(i(!0),d=null,u==="Next"&&t.NextShiftId!==null?d=t.NextShiftId:u==="Previous"&&t.PreviousShiftId!==null?d=t.PreviousShiftId:u==="Last"&&t.LastShiftId!==null&&(d=t.LastShiftId),d?[4,r$({productionDate:null,shiftId:d})]:[3,2]);case 1:if(p=g.sent(),p.ok)return h=tt(tt({},p.data),{CurrentProductionDate:mt.utc(p.data.CurrentProductionDate).toDate(),CurrentStart:mt.utc(p.data.CurrentStart).toDate(),CurrentEnd:mt.utc(p.data.CurrentEnd).toDate(),PreviousProductionDate:mt.utc(p.data.PreviousProductionDate).toDate(),PreviousStart:mt.utc(p.data.PreviousStart).toDate(),PreviousEnd:mt.utc(p.data.PreviousEnd).toDate(),LastProductionDate:mt.utc(p.data.LastProductionDate).toDate(),LastStart:mt.utc(p.data.LastStart).toDate(),LastEnd:mt.utc(p.data.LastEnd).toDate()}),n(h),[2,h];g.label=2;case 2:return[2]}})})},l=function(u,d){return Ct(void 0,void 0,void 0,function(){var p,h,g;return xt(this,function(m){switch(m.label){case 0:i(!0),m.label=1;case 1:return m.trys.push([1,3,,4]),[4,r$({productionDate:u,shiftId:d})];case 2:return p=m.sent(),p.ok?(h=tt(tt({},p.data),{CurrentProductionDate:mt.utc(p.data.CurrentProductionDate).toDate(),CurrentStart:mt.utc(p.data.CurrentStart).toDate(),CurrentEnd:mt.utc(p.data.CurrentEnd).toDate(),PreviousProductionDate:mt.utc(p.data.PreviousProductionDate).toDate(),PreviousStart:mt.utc(p.data.PreviousStart).toDate(),PreviousEnd:mt.utc(p.data.PreviousEnd).toDate(),LastProductionDate:mt.utc(p.data.LastProductionDate).toDate(),LastStart:mt.utc(p.data.LastStart).toDate(),LastEnd:mt.utc(p.data.LastEnd).toDate()}),n(h),[2,h]):[3,4];case 3:return g=m.sent(),a(g.toString()),[3,4];case 4:return i(!1),[2]}})})},c=function(){return Ct(void 0,void 0,void 0,function(){var u,d;return xt(this,function(p){switch(p.label){case 0:return[4,r$({productionDate:new Date,shiftId:0})];case 1:return u=p.sent(),u.ok?(d=tt(tt({},u.data),{CurrentProductionDate:mt.utc(u.data.CurrentProductionDate).toDate(),CurrentStart:mt.utc(u.data.CurrentStart).toDate(),CurrentEnd:mt.utc(u.data.CurrentEnd).toDate(),PreviousProductionDate:mt.utc(u.data.PreviousProductionDate).toDate(),PreviousStart:mt.utc(u.data.PreviousStart).toDate(),PreviousEnd:mt.utc(u.data.PreviousEnd).toDate(),LastProductionDate:mt.utc(u.data.LastProductionDate).toDate(),LastStart:mt.utc(u.data.LastStart).toDate(),LastEnd:mt.utc(u.data.LastEnd).toDate()}),n(d),[2,d]):[2]}})})};return{shiftInfo:t,moveShift:s,getShiftDataFromAPI:l,initShiftNavigator:c}},mOt=b.createContext({getShiftDataFromAPI:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(e){return[2]})})},initShiftNavigator:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(e){return[2]})})},moveShift:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(e){return[2]})})},shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:null,NextProductionDate:null,NextProductionShift:null,NextShift:null,NextCrew:null,NextStart:null,NextEnd:null,LastShiftId:0,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastCrew:"",LastStart:new Date,LastEnd:new Date}}),la=function(){return b.useContext(mOt)},yMi=function(e){var t=e.children,n=bMi();return E.createElement(mOt.Provider,{value:n},t)},s2=function(e){var t,n=e.useRouter,r=e.onShiftChange,i=e.preventInit,o=e.withPaper,a=o===void 0?!0:o,s=e.margin,l=s===void 0?"1rem 1rem 1rem 1rem":s,c=la(),u=c.shiftInfo,d=c.initShiftNavigator,p=c.moveShift,h=c.getShiftDataFromAPI,g=b.useState(u),m=g[0],v=g[1],y=b.useState("");y[0];var M=y[1],C=Ms().shiftId,x=b.useRef(!0),w=function(A){var z=location.pathname.split("/");window.history.replaceState(null,"","/".concat(z[1])+"/".concat(A))};u!==null&&u.CurrentShiftId&&n&&w((t=u?.CurrentShiftId)===null||t===void 0?void 0:t.toString()),b.useEffect(function(){var A=function(){return Ct(void 0,void 0,void 0,function(){var O,T,I;return xt(this,function(P){switch(P.label){case 0:if(!(u?.CurrentEnd&&u.CurrentEnd<new Date))return[3,4];P.label=1;case 1:return P.trys.push([1,3,,4]),[4,r$({productionDate:null,shiftId:u.CurrentShiftId})];case 2:return O=P.sent(),O.ok&&(T=tt(tt({},O.data),{CurrentProductionDate:ra.utc(O.data.CurrentProductionDate).toDate(),CurrentStart:ra.utc(O.data.CurrentStart).toDate(),CurrentEnd:ra.utc(O.data.CurrentEnd).toDate(),PreviousProductionDate:ra.utc(O.data.PreviousProductionDate).toDate(),PreviousStart:ra.utc(O.data.PreviousStart).toDate(),PreviousEnd:ra.utc(O.data.PreviousEnd).toDate(),LastProductionDate:ra.utc(O.data.LastProductionDate).toDate(),LastStart:ra.utc(O.data.LastStart).toDate(),LastEnd:ra.utc(O.data.LastEnd).toDate()}),v(T)),[3,4];case 3:return I=P.sent(),M(s3e(I)),[3,4];case 4:return[2]}})})},z=setInterval(A,6e4);return function(){return clearInterval(z)}},[u]),b.useEffect(function(){v(u)},[u]),b.useEffect(function(){if(x.current){if(x.current=!1,i)return;n&&C?h(null,Number(C)).then(function(){r&&r(Number(C))}):d().then(function(){r&&r(Number(C))})}},[]);var S=E.createElement(D,{item:!0,container:!0,style:{minWidth:"0%",margin:l},direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:1},E.createElement(D,{item:!0},E.createElement(tl,{title:"Previous Shift"},E.createElement(yn,{"aria-label":"Previous Shift",color:"primary",disabled:!u?.PreviousShiftId,onClick:function(){p("Previous").then(function(){})},size:"small"},E.createElement(rQ,null)))),E.createElement(D,{item:!0},E.createElement(_f,{label:"Current Date",timezone:"UTC",format:"MM/DD/YYYY",maxDate:ra(),closeOnSelect:!0,formatDensity:"dense",value:ra(u?.CurrentProductionDate),onChange:function(A){A&&h(A.toDate(),0).then(function(){})},slots:{textField:je},slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{textAlign:"center",width:"110px"}}}}})),E.createElement(D,{item:!0,style:{maxWidth:"100px"}},E.createElement(je,{label:"Shift - Crew",value:"".concat(u?.CurrentShift||""," - ").concat(u?.CurrentCrew||""),placeholder:"Shift","aria-readonly":!0,variant:"outlined",size:"small"})),E.createElement(D,{item:!0},E.createElement(tl,{title:"Next Shift"},E.createElement(yn,{"aria-label":"next",color:"primary",disabled:!m?.NextShiftId,onClick:function(){p("Next").then(function(){})},size:"small"},E.createElement(iQ,null)))),E.createElement(D,{item:!0},E.createElement(tl,{title:"Last Shift"},E.createElement(yn,{"aria-label":"delete",color:"primary",disabled:!m?.LastShiftId||!m?.NextShiftId,onClick:function(){p("Last").then(function(){})},size:"small"},E.createElement(sQ,null)))));return a!==!1?E.createElement(kt,null,S):S},MMi=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ct(void 0,xi([e],t,!0),void 0,function(r,i,o,a,s,l){var c,u,d;return i===void 0&&(i=null),o===void 0&&(o=null),a===void 0&&(a=null),s===void 0&&(s=null),l===void 0&&(l=null),xt(this,function(p){switch(p.label){case 0:return c=new Ye,[4,c.callV2("[MES].[GetShiftsRangeByParameters]",[{name:"Period",value:r},{name:"Start",value:i?.toISOString()},{name:"End",value:o?.toISOString()},{name:"StartShiftId",value:a},{name:"EndShiftId",value:s},{name:"Action",value:l}])];case 1:return u=p.sent(),u.ok?(d=u.data,d.tables[0].rows.map(function(h){h.Start=ra.utc(h.Start).toDate(),h.End=ra.utc(h.End).toDate()}),[2,{ok:!0,data:d}]):[2,{ok:!1,message:u.message}]}})})},CMi=Rt(function(e){return{container:{display:"grid",gridTemplateColumns:"auto minmax(100px, 1fr) 80px minmax(100px, 1fr) auto auto",alignItems:"center",width:"100%",margin:0,padding:"8px 0",gap:"8px"},gridItem:{display:"flex",alignItems:"center"},datePickerWrapper:{minWidth:"100px",fontSize:".8rem!important",margin:"0!important","& .MuiInputAdornment-root":{margin:"0!important"},"& .MuiInputBase-input":{fontSize:"1rem!important",padding:"4px 8px !important"}},selectWrapper:{width:"80px","& .MuiInputBase-input":{fontSize:"0.8rem !important",padding:"4px 8px !important",display:"inline-flex",alignItems:"center"}}}}),xMi=[{value:"Shift",label:"Shift"},{value:"Day",label:"Day"},{value:"4Days",label:"4 Days"},{value:"Week",label:"Week"},{value:"Month",label:"Month"}],wMi=function(e){var t,n,r,i=e.value,o=e.actualPeriod,a=e.onChange,s=e.showShiftAndCrews,l=s===void 0?!0:s,c=e.dateFormat,u=c===void 0?"MM/DD/YYYY HH:mm a":c,d=e.periodOptions,p=d===void 0?xMi:d,h=CMi(),g=b.useState(o?(n=(t=p.find(function(se){return se.value==o}))===null||t===void 0?void 0:t.value)!==null&&n!==void 0?n:null:((r=p[0])===null||r===void 0?void 0:r.value)||"Day"),m=g[0],v=g[1],y=b.useState(!1),M=y[0],C=y[1],x=b.useState("");x[0];var w=x[1],S=b.useState([]),A=S[0],z=S[1],O=b.useState(!1),T=O[0],I=O[1],P=b.useState(null),N=P[0],F=P[1],L=b.useState(null),W=L[0],H=L[1],j=function(se){return Ct(void 0,void 0,void 0,function(){var pe;return xt(this,function(te){switch(te.label){case 0:if(m==="Custom")return[2];if(!X?.Start&&!Q?.End)return[2];te.label=1;case 1:return te.trys.push([1,6,,7]),se==="prev"&&X?.Start?[4,q(m,ra(X.Start).toDate(),null,!1,"prev")]:[3,3];case 2:return te.sent(),[3,5];case 3:return se==="next"&&Q?.End?[4,q(m,null,ra(Q.End).toDate(),!1,"next")]:[3,5];case 4:te.sent(),te.label=5;case 5:return[3,7];case 6:return pe=te.sent(),w(pe),[3,7];case 7:return[2]}})})},G=function(){return Ct(void 0,void 0,void 0,function(){var se;return xt(this,function(pe){switch(pe.label){case 0:if(m==="Custom")return[2];pe.label=1;case 1:return pe.trys.push([1,3,,4]),[4,q(m,null,null,!1,"last")];case 2:return pe.sent(),[3,4];case 3:return se=pe.sent(),w(se),[3,4];case 4:return[2]}})})},q=function(se,pe,te){for(var ce=[],oe=3;oe<arguments.length;oe++)ce[oe-3]=arguments[oe];return Ct(void 0,xi([se,pe,te],ce,!0),void 0,function(ae,ne,le,he,be){var me,Me,Oe,de,ie,ue,Ae;return he===void 0&&(he=!0),be===void 0&&(be=null),xt(this,function(Ce){switch(Ce.label){case 0:if(T)return[2];I(!0),C(!0),Ce.label=1;case 1:return Ce.trys.push([1,3,4,5]),[4,MMi(ae,ne,le,he&&(ue=i?.StartShiftId)!==null&&ue!==void 0?ue:null,he&&(Ae=i?.EndShiftId)!==null&&Ae!==void 0?Ae:null,be)];case 2:return me=Ce.sent(),me.ok?(Me=Ot(me,"data.tables[0].rows",[]),z(Me),ae==="Custom"?Me.length>=1&&(Oe=Me[0],de=Me[Me.length-1],a({StartShiftId:Oe.ShiftId,EndShiftId:de.ShiftId},ae)):Me.length>=2?a({StartShiftId:Me[0].ShiftId,EndShiftId:Me[1].ShiftId},ae):Me.length===1&&a({StartShiftId:Me[0].ShiftId,EndShiftId:Me[0].ShiftId},ae)):w(me.message),[3,5];case 3:return ie=Ce.sent(),w(ie),[3,5];case 4:return C(!1),I(!1),[7];case 5:return[2]}})})},$=function(se,pe){return Ct(void 0,void 0,void 0,function(){var te,ce;return xt(this,function(oe){switch(oe.label){case 0:return!se||!se.isValid()?[2]:m!=="Custom"?[3,6]:pe!=="start"?[3,3]:(F(se),W?[4,q("Custom",se.toDate(),W.toDate(),!1)]:[3,2]);case 1:oe.sent(),oe.label=2;case 2:return[3,5];case 3:return H(se),N?[4,q("Custom",N.toDate(),se.toDate(),!1)]:[3,5];case 4:oe.sent(),oe.label=5;case 5:return[2];case 6:return oe.trys.push([6,11,,12]),te=se.toDate(),pe!=="start"?[3,8]:[4,q(m,te,null,!1)];case 7:return oe.sent(),[3,10];case 8:return[4,q(m,null,te,!1)];case 9:oe.sent(),oe.label=10;case 10:return[3,12];case 11:return ce=oe.sent(),w(ce),[3,12];case 12:return[2]}})})},U=function(se){return Ct(void 0,void 0,void 0,function(){var pe,te,ce;return xt(this,function(oe){switch(oe.label){case 0:return pe=se.target.value,v(pe),pe!=="Custom"?[3,2]:(te=ra(),ce=ra().subtract(1,"day"),F(ce),H(te),[4,q("Custom",ce.toDate(),te.toDate(),!1)]);case 1:return oe.sent(),[3,4];case 2:return F(null),H(null),[4,q(pe,null,Q?.Start?ra(Q.Start).toDate():null,!1)];case 3:oe.sent(),oe.label=4;case 4:return[2]}})})};b.useEffect(function(){(i?.StartShiftId||i?.EndShiftId)&&q(m,null,null,!0)},[i?.StartShiftId,i?.EndShiftId]),b.useEffect(function(){q(m,null,null,!0)},[]);var X=A[0],Q=A[1]||A[0],re=function(se){return!l||!se||m==="Custom"?null:E.createElement("span",{style:{paddingRight:5,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:15,fontWeight:"bold"}},se.Shift," - ",se.Crew)},ee=m==="Custom";return E.createElement("div",{className:h.container},E.createElement("div",{className:h.gridItem},E.createElement(yn,{size:"small",color:"primary",disabled:M||ee,onClick:function(){return j("prev")}},E.createElement(L6,null))),E.createElement("div",{className:"".concat(h.gridItem," ").concat(h.datePickerWrapper)},E.createElement(_f,{label:"Start",format:u,value:ee?N||ra().subtract(1,"day"):ra(X?.Start||ra().subtract(1,"day")),onChange:function(se){return $(se?ra(se):null,"start")},disabled:M,maxDate:ee?ra():void 0,enableAccessibleFieldDOMStructure:!1,slots:{textField:function(se){return E.createElement(je,tt({},se,{size:"small",variant:"outlined",fullWidth:!0,style:{width:"100%"},InputProps:tt(tt({},se.InputProps),{style:{paddingTop:"2px"}})}))},openPickerIcon:function(){return E.createElement("div",{style:{display:"flex",alignItems:"center",width:"100%"}},re(X),E.createElement(yn,{style:{padding:"0px",flexShrink:0}},E.createElement(l9,null)))}}})),E.createElement("div",{className:"".concat(h.gridItem," ").concat(h.selectWrapper)},E.createElement(ja,{variant:"outlined",size:"small",fullWidth:!0},E.createElement(il,{id:"period-select-label"},"Period"),E.createElement(ls,{value:m,onChange:U,disabled:M,label:"Period",labelId:"period-select-label",style:{width:"100%"}},p.map(function(se){return E.createElement(sr,{key:se.value,value:se.value},se.label)})))),E.createElement("div",{className:"".concat(h.gridItem," ").concat(h.datePickerWrapper)},E.createElement(_f,{label:"End",format:u,value:ee?W||ra():ra(Q?.End||Q?.Start||ra()),onChange:function(se){return $(se?ra(se):null,"end")},disabled:M,minDate:ee&&N?N:void 0,maxDate:ee?ra():void 0,enableAccessibleFieldDOMStructure:!1,slots:{textField:function(se){return E.createElement(je,tt({},se,{size:"small",variant:"outlined",fullWidth:!0,style:{width:"100%"},InputProps:tt(tt({},se.InputProps),{style:{paddingTop:"2px"}})}))},openPickerIcon:function(){return E.createElement("div",{style:{display:"flex",alignItems:"center",margin:"0 !important",width:"100%"}},re(Q),E.createElement(yn,{style:{padding:"0px",flexShrink:0}},E.createElement(l9,null)))}}})),E.createElement("div",{className:h.gridItem},E.createElement(yn,{size:"small",disabled:M||ee,onClick:function(){return j("next")}},E.createElement(aQ,null))),E.createElement("div",{className:h.gridItem},E.createElement(yn,{size:"small",disabled:M||ee,onClick:G},E.createElement(Hxe,null))))},SMi=Rt(function(e){return{contextMenu:{backgroundColor:"#fff",borderRadius:"2px",padding:"5px 0",width:"180px",height:"auto",margin:"0",position:"fixed",zIndex:1,listStyle:"none",boxShadow:"0 0 20px 0 #ccc","& .MuiMenuItem-root":{fontSize:"14px"},"& .MuiListItemIcon-root":{minWidth:"25px",padding:"0"},"& .MuiSvgIcon-root":{fontSize:"16px"}}}}),vOt=b.createContext({show:!1,position:{x:0,y:0},options:[],showContextMenu:function(){},registerConfig:function(){},onClickOutside:function(){}}),rte=function(e){var t=e.children,n=b.useState(!1),r=n[0],i=n[1],o=b.useState({x:0,y:0}),a=o[0],s=o[1],l=b.useState([]),c=l[0],u=l[1],d=b.useState({}),p=d[0],h=d[1],g=b.useRef(null),m=b.useRef(null),v=function(x){h(function(w){var S;return tt(tt({},w),(S={},S[x.id]=x,S))})},y=function(x,w,S){x.preventDefault(),x.stopPropagation(),i(!0),s({x:x.clientX,y:x.clientY}),g.current=w,m.current=S,p[S]?u(p[S].getOptions(w)):(console.warn("No config found for id: ".concat(S)),u([]))},M=function(){i(!1)};b.useEffect(function(){var x=function(w){r&&M()};return document.addEventListener("click",x),function(){document.removeEventListener("click",x)}},[r]);var C={show:r,position:a,options:c,showContextMenu:y,registerConfig:v,onClickOutside:M};return E.createElement(vOt.Provider,{value:C},t,E.createElement(AMi,null))},ks=function(){return b.useContext(vOt)},AMi=function(){var e=ks(),t=e.show,n=e.position,r=e.options,i=SMi(),o=b.useRef(null),a=b.useState("0"),s=a[0],l=a[1],c=b.useState("0"),u=c[0],d=c[1];return b.useEffect(function(){var p=function(){if(t&&o.current){var h=o.current.getBoundingClientRect(),g=window.innerWidth,m=window.innerHeight,v=n.x,y=n.y;v+h.width>g&&(v=g-h.width),y+h.height>m&&(y=m-h.height),l("".concat(v,"px")),d("".concat(y,"px"))}else l("0"),d("0")};p()},[t,n.x,n.y]),t?b.createElement("ul",{ref:o,className:i.contextMenu,style:{position:"fixed",opacity:t?1:0,left:s,top:u}},r.map(function(p,h){return b.createElement(sr,{key:p.key+h,style:p.style,onClick:p.onClick,disabled:p.disabled},b.createElement($0,{style:{padding:0,margin:0}},p.icon),p.name)})):null},OMi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[SEC].[GetUsers]",[])];case 1:if(t=n.sent(),t.ok)return[2,Ot(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching users")}})})},zMi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.userId;return xt(this,function(a){switch(a.label){case 0:return n=new Ye,r=[{name:"UserId",value:o},{name:"UserName",value:null}],[4,n.callV2("[SEC].[GetUser]",r)];case 1:if(i=a.sent(),i.ok)return[2,Ot(i,"data.tables[0].rows",[])];throw new Error(i.message||"Error fetching user data")}})})},TMi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"UserId",value:e}],[4,t.callV2("[SEC].[DeleteUser]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error when delete user");return[2]}})})},bOt=function(e,t){return Ct(void 0,void 0,void 0,function(){var n,r,i;return xt(this,function(o){switch(o.label){case 0:n=new Ye,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,n.changePassword(e.toString(),t)];case 2:return r=o.sent(),[2,{ok:!0,data:r}];case 3:return i=o.sent(),[2,{ok:!1,message:i.toString()}];case 4:return[2]}})})},u3e=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"UserId",value:e.UserId},{name:"UserName",value:e.UserName},{name:"Name",value:e.FirstName},{name:"LastName",value:e.LastName},{name:"AuthTypeId",value:e.AuthTypeId},{name:"IsActive",value:e.IsActive},{name:"DefaultAssetId",value:e.DefaultAssetId}],[4,t.callV2("[SEC].[UpsertUser]",n)];case 1:if(r=i.sent(),r.ok)return[2,Ot(r,"data.tables[0].rows[0].UserId",0)];throw new Error(r.message||"Error when upsert user data")}})})},EMi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[SEC].[GetAuthTypes]",[])];case 1:if(t=n.sent(),t.ok)return[2,Ot(t,"data.tables[0].rows",0)];throw new Error(t.message||"Error fetching auth types")}})})},yOt=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.UserId,a=t.profileIds;return xt(this,function(s){switch(s.label){case 0:return n=new Ye,r=[{name:"UserId",value:o},{name:"ProfileIds",value:a.join(" , ")}],[4,n.callV2("[SEC].[setProfilesToUser]",r)];case 1:if(i=s.sent(),!i.ok)throw new Error(i.message||"Error when set profiles to user");return[2]}})})},RMi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a=t.UserId,s=a===void 0?null:a,l=t.UserName,c=l===void 0?null:l;return xt(this,function(u){switch(u.label){case 0:return n=new Ye,r=[{name:"UserId",value:s},{name:"UserName",value:c}],[4,n.callV2("SEC.GetPermissions",r)];case 1:return i=u.sent(),o=Ot(i,"data.tables[0].rows",[]),[2,o[0]?o[0]:null]}})})},MOt=function(e){var t=e.show,n=e.userId,r=e.onHide,i=e.suffixTitle,o=b.useState(""),a=o[0],s=o[1],l=b.useState(!1),c=l[0],u=l[1],d=b.useCallback(function(p){return Ct(void 0,void 0,void 0,function(){return xt(this,function(h){switch(h.label){case 0:return p.preventDefault(),[4,bOt(n,a)];case 1:return h.sent(),r(!0),[2]}})})},[n,a]);return b.useEffect(function(){t&&(s(""),u(!1))},[t]),n?b.createElement(b.Fragment,null,t&&b.createElement(Mn,{title:"Change Password".concat(i?" - ".concat(i):"")}),b.createElement(We,{title:"Change password",open:t,handleClose:function(){return r(!1)},maxWidth:"lg"},b.createElement(D,{container:!0},b.createElement(D,{item:!0,md:12,xs:12},b.createElement(We.Content,{style:{padding:"6px 16px 16px"}},b.createElement("form",{onSubmit:d},b.createElement(D,{item:!0,md:12,xs:12},b.createElement(je,{label:"New Password",value:a,onChange:function(p){u(!0),s(p.target.value)},variant:"outlined",error:mEn(a)&&c,fullWidth:!0,autoComplete:"off"})),b.createElement(D,{item:!0,md:12,xs:12,style:{marginTop:15}},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"primary",type:"submit"},"APPLY")))))))):b.createElement(b.Fragment,null)},d3e={UserId:null,UserName:"",FirstName:"",LastName:"",AuthTypeId:1,IsActive:!0,LastLogin:null,DefaultAssetId:null,ProfilesId:[],Profiles:[],Permissions:[]},IMi={areasList:[],allAssets:[],plantAssetId:1},a2e=Ni({name:"__",initialState:IMi,reducers:{setAreasList:function(e,t){var n=t.payload;e.areasList=n},setAllAssets:function(e,t){var n=t.payload;e.allAssets=n},setPlantAssetId:function(e,t){var n=t.payload;e.plantAssetId=n}}}),COt=b.createContext({state:a2e.getInitialState(),actions:a2e.actions}),ite=function(){return b.useContext(COt)},PMi=function(e){var t=e.children,n=e.plantAssetId,r=n===void 0?1:n,i=Ui.useComplexState({initialState:{areasList:[],allAssets:[],plantAssetId:r},reducers:a2e.caseReducers}),o=i[0],a=i[1];return E.createElement(COt.Provider,{value:{state:o,actions:a}},t)},p3e=function(e){var t=e.value,n=e.onChange,r=e.disabled,i=r===void 0?!1:r,o=ite().state,a=o.areasList,s=o.plantAssetId,l=a&&a.length>0,c=E.useMemo(function(){return l?w9.isNil(t)?s:t:""},[t,l,s]),u=function(d){var p=d.target.value;n(p===""?null:Number(p))};return E.useEffect(function(){w9.isNil(t)&&n(s)},[t,n,s]),E.createElement(ja,{variant:"outlined",fullWidth:!0,margin:"dense",disabled:i},E.createElement(il,null,"Default Asset"),E.createElement(ls,{value:c,onChange:u,label:"Default Asset"},l?a.map(function(d){return E.createElement(sr,{key:d?.AssetId,value:d?.AssetId},d?.AssetName)}):E.createElement(sr,{value:""},E.createElement("em",null,"None"))))},DMi=Rt(function(e){return{root:{"& .MuiSelect-select":{minHeight:"40px"}},formControl:{width:"100%",marginTop:8},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2}}}),kMi=function(){return Bl({queryKey:["authTypes"],queryFn:function(){return EMi()}})},LMi=48,_Mi=8,NMi={PaperProps:{style:{maxHeight:LMi*4.5+_Mi,width:250}}},h3e=function(e){var t=e.value,n=e.onChange,r=e.disabled,i=DMi(),o=oc(),a=b.useState(""),s=a[0],l=a[1],c=kMi(),u=c.data,d=c.isLoading;c.isSuccess;var p=c.isError,h=c.error,g=function(v,y,M){return{fontWeight:y.find(function(C){return C.AuthTypeId===v})?M.typography.fontWeightRegular:M.typography.fontWeightMedium}},m=b.useMemo(function(){var v;return((v=u?.find(function(y){return y.AuthTypeId===t}))===null||v===void 0?void 0:v.Name)||"Empty"},[u,t]);return b.useEffect(function(){h&&p&&l(h.message)},[h,p]),b.createElement("div",{className:i.root},!d&&u?.length?b.createElement(ja,{className:i.formControl,disabled:r},b.createElement(il,{id:"demo-mutiple-chip-label"},"Auth type"),b.createElement(ls,{autoWidth:!0,labelId:"demo-mutiple-chip-label",id:"demo-mutiple-chip",value:t,style:{padding:0},onChange:n,input:b.createElement(R6,{id:"select-multiple-chip"}),renderValue:function(v){return b.createElement("div",{className:i.chips},b.createElement(fM,{key:"selected-authType-".concat(v),label:m,className:i.chip}))},MenuProps:NMi},u.map(function(v){return b.createElement(sr,{key:"auth-".concat(v.AuthTypeId),value:v.AuthTypeId,style:g(v.AuthTypeId,u,o)},v.Name)}))):b.createElement(b.Fragment,null),b.createElement(Mt,{error:s,onHide:function(){return l("")}}))},FMi=Rt(function(e){return{root:{"& .MuiSelect-select":{height:"auto",minHeight:"40px"}},formControl:{margin:e.spacing(1),width:"100%"},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},noLabel:{marginTop:e.spacing(3)}}}),WMi=function(e,t,n){return{fontWeight:t.find(function(r){return r.ProfileId===e})?n.typography.fontWeightRegular:n.typography.fontWeightMedium}},qMi=48,BMi=8,jMi={PaperProps:{style:{maxHeight:qMi*4.5+BMi,width:250}}},f3e=function(e){var t=e.value,n=e.onChange;e.userIdForDelete,e.setprofileError;var r=e.disabled,i=FMi(),o=oc(),a=b.useState(""),s=a[0],l=a[1],c=hOt(),u=c.data,d=c.isLoading,p=c.isError,h=c.error;function g(m){var v;return((v=u?.find(function(y){return y.ProfileId===m}))===null||v===void 0?void 0:v.ProfileName.replaceAll("Profile",""))||""}return b.useEffect(function(){h&&p&&l(h.message)},[h,p]),E.createElement("div",{className:i.root},!d&&u?.length?E.createElement(ja,{className:i.formControl,disabled:r},E.createElement(il,{id:"demo-mutiple-chip-label",style:t.length?{display:"flex",alignItems:"center"}:{display:"flex",alignItems:"center",marginTop:10}},"Profiles"),E.createElement(ls,{autoWidth:!0,labelId:"demo-mutiple-chip-label",id:"demo-mutiple-chip",multiple:!0,value:t,onChange:n,input:E.createElement(R6,{id:"select-multiple-chip"}),renderValue:function(m){return E.createElement("div",{className:i.chips},m.map(function(v){return E.createElement(fM,{key:"selected-profile-".concat(v),label:g(v),className:i.chip})}))},MenuProps:jMi},u.map(function(m){return E.createElement(sr,{key:"profile-".concat(m.ProfileId),value:m.ProfileId,style:WMi(m.ProfileId,u,o)},m.ProfileName.replaceAll("Profile",""))}))):E.createElement(E.Fragment,null),E.createElement(Mt,{error:s,onHide:function(){return l("")}}))},HMi=Rt(function(e){return{checkbox:{userSelect:"none"},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"}}}),VMi=function(e){var t,n,r,i=e.show,o=e.onHide,a=e.suffixTitle,s=b.useState(!1),l=s[0],c=s[1],u=b.useState(!1),d=u[0],p=u[1],h=b.useState(""),g=h[0],m=h[1],v=b.useState(""),y=v[0],M=v[1],C=HMi(),x=Gn({defaultValues:d3e}),w=x.register,S=x.control,A=x.handleSubmit,z=x.reset,O=x.watch,T=x.formState.errors,I=function(L,W){W!=="clickaway"&&c(!1)},P=O("UserName"),N=aa({mutationFn:function(L){return Ct(void 0,void 0,void 0,function(){var W,H;return xt(this,function(j){switch(j.label){case 0:return[4,u3e(L)];case 1:return W=j.sent(),[4,bOt(W,L.UserName)];case 2:if(H=j.sent(),!H.ok)throw new Error(H.message||"Error setting password");return L.ProfilesId&&Array.isArray(L.ProfilesId)?[4,yOt({UserId:W,profileIds:L.ProfilesId})]:[3,4];case 3:j.sent(),j.label=4;case 4:return[2,W]}})})},onSuccess:function(){c(!0),o(!0)},onError:function(L){m(L.message)},onSettled:function(){p(!1)}}),F=function(L){return Ct(void 0,void 0,void 0,function(){return xt(this,function(W){switch(W.label){case 0:return p(!0),[4,N.mutate(L)];case 1:return W.sent(),[2]}})})};return b.useEffect(function(){i&&z()},[i]),b.createElement(b.Fragment,null,i&&b.createElement(Mn,{title:"New User".concat(a?" - ".concat(a):"")}),b.createElement(We,{title:"NEW USER",open:i,handleClose:function(){return o(!1)},id:"create-user-modal",maxWidth:"md"},b.createElement("form",{onSubmit:A(F)},b.createElement(We.Content,{style:{padding:"15px 30px"}},b.createElement(D,{container:!0,spacing:1},b.createElement(D,{item:!0,xs:12,md:6},b.createElement(je,tt({},w("UserName",{required:!0}),{label:"Username",variant:"outlined",error:!!T.UserName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((t=T.UserName)===null||t===void 0?void 0:t.type)==="required"&&b.createElement("span",{className:C.errorLabel},"User name is required")),b.createElement(D,{item:!0,xs:12,md:6},b.createElement(je,{disabled:!0,label:"Password",value:P,variant:"outlined",error:!!T.UserName,fullWidth:!0,margin:"dense",autoComplete:"off"})),b.createElement(D,{item:!0,md:6,xs:12},b.createElement(je,tt({},w("FirstName",{required:!0}),{label:"First name",variant:"outlined",error:!!T.FirstName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((n=T.FirstName)===null||n===void 0?void 0:n.type)==="required"&&b.createElement("span",{className:C.errorLabel},"First name is required")),b.createElement(D,{item:!0,md:6,xs:12},b.createElement(je,tt({},w("LastName",{required:!0}),{label:"Last name",variant:"outlined",error:!!T.FirstName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((r=T.LastName)===null||r===void 0?void 0:r.type)==="required"&&b.createElement("span",{className:C.errorLabel},"Last name is required")),b.createElement(D,{item:!0,xs:12,md:6},b.createElement(Ue,{name:"ProfilesId",control:S,rules:{required:!0},render:function(L){var W=L.field,H=W.onChange,j=W.value;return b.createElement(f3e,{onChange:H,value:j,userIdForDelete:null,setprofileError:M})}}),T.ProfilesId&&b.createElement("span",{className:C.errorLabel},"Select a profile(s)")),b.createElement(D,{item:!0,xs:12,md:6},b.createElement(Ue,{name:"AuthTypeId",control:S,render:function(L){var W=L.field,H=W.value,j=W.onChange;return b.createElement(h3e,{value:H,onChange:j})}})),b.createElement(D,{item:!0,xs:12,md:6},b.createElement(Ue,{name:"DefaultAssetId",control:S,render:function(L){var W=L.field,H=W.value,j=W.onChange;return b.createElement(p3e,{value:H,onChange:j})}})),b.createElement(D,{item:!0,xs:12,md:6,style:{marginTop:"5px"}},b.createElement(Ue,{name:"IsActive",control:S,render:function(L){var W=L.field;return b.createElement(Io,{className:C.checkbox,control:b.createElement(Qr,{checked:W.value,onChange:W.onChange,name:"IsActive",color:"primary"}),label:"Active"})}})))),b.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},b.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:3,xs:12},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return o(!1)}},"Cancel")),b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,startIcon:d&&b.createElement(Kt,{size:"1rem"}),disabled:d,variant:"contained",color:"primary",type:"submit"},"Save"))))),b.createElement(Mt,{error:g,onHide:function(){return m("")},title:"Error Creating User"}),b.createElement(Mt,{error:y,onHide:function(){return M("")},title:"Error Choosing Profile"})),b.createElement(pr,{open:l,autoHideDuration:2500,onClose:I},b.createElement(ph,{severity:"success",onClose:I},"The user was created successfully")))},GMi=function(e){var t=e.userId,n=e.show,r=e.onHide,i=e.suffixTitle,o=b.useState(!1),a=o[0],s=o[1],l=b.useState(!1),c=l[0],u=l[1],d=b.useState(!1),p=d[0],h=d[1],g=b.useState(""),m=g[0],v=g[1],y=b.useState(""),M=y[0],C=y[1],x=ate({userId:t}),w=x.data,S=x.isLoading,A=x.isError,z=x.error,O=x.isSuccess,T=Gn({defaultValues:d3e}),I=T.register,P=T.control,N=T.setValue,F=function(H,j){j!=="clickaway"&&(s(!1),h(!1))},L=aa({mutationFn:TMi,onSuccess:function(){s(!0),r(!0)},onError:function(H){v(H.message)},onSettled:function(){h(!1),u(!1)}}),W=function(H){return Ct(void 0,void 0,void 0,function(){return xt(this,function(j){switch(j.label){case 0:return u(!0),[4,L.mutate(H)];case 1:return j.sent(),[2]}})})};return b.useEffect(function(){var H;if(n&&(u(!1),O)){var j=w?w[0]:null;if(j){var G=(((H=j.ProfilesId)===null||H===void 0?void 0:H.toString())||"").split(",")||[];N("UserId",j.UserId),N("UserName",j.UserName),N("FirstName",j.FirstName),N("LastName",j.LastName),N("AuthTypeId",j.AuthTypeId),N("IsActive",j.IsActive),N("LastLogin",j.LastLogin),N("DefaultAssetId",j.DefaultAssetId),N("ProfilesId",G.map(function(q){return parseInt(q)}))}}},[n,O,w,t]),b.useEffect(function(){z&&A&&v(z.message)},[z,A]),E.createElement(E.Fragment,null,n&&E.createElement(Mn,{title:"Delete User".concat(i?" - ".concat(i):"")}),E.createElement(We,{title:"DELETE USER",open:n,handleClose:function(){return r(!1)},id:"delete-user-modal",maxWidth:"md"},E.createElement("form",null,E.createElement(We.Content,{style:{padding:"15px 30px"}},S&&E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"}},E.createElement(zk,null)),!S&&E.createElement(E.Fragment,null,E.createElement(D,{container:!0,spacing:1},E.createElement(D,{item:!0,xs:12},E.createElement(je,tt({},I("UserName",{required:!0}),{label:"Username",disabled:!0,variant:"outlined",fullWidth:!0,margin:"dense",autoComplete:"off"}))),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(je,tt({},I("FirstName",{required:!0}),{label:"First name",variant:"outlined",disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"}))),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(je,tt({},I("LastName",{required:!0}),{label:"Last name",variant:"outlined",disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"}))),E.createElement(D,{item:!0,container:!0,xs:12,spacing:3},E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"ProfilesId",control:P,rules:{required:!0},render:function(H){var j=H.field,G=j.onChange,q=j.value;return E.createElement(f3e,{onChange:G,value:q,userIdForDelete:null,setprofileError:C,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"AuthTypeId",control:P,render:function(H){var j=H.field,G=j.value,q=j.onChange;return E.createElement(h3e,{value:G,onChange:q,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"DefaultAssetId",control:P,render:function(H){var j=H.field,G=j.value,q=j.onChange;return E.createElement(p3e,{value:G,onChange:q,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"IsActive",control:P,render:function(H){var j=H.field;return E.createElement(Io,{control:E.createElement(Qr,{checked:j.value,onChange:j.onChange,name:"IsActive",color:"primary",disabled:!0}),label:"Active"})}})))))),E.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"CANCEL")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"secondary",onClick:function(){return h(!0)}},"DELETE")))))),E.createElement(pr,{open:a,autoHideDuration:2500,onClose:F},E.createElement(ph,{severity:"warning",onClose:F},"The user was deleted successfully")),E.createElement(We,{open:p,title:"WARNING",handleClose:function(){return F()},id:"responsive-dialog-title"},E.createElement(We.Content,null,"Be careful, once deleted you will not be able to recover this user, are you sure you want to delete it?"),E.createElement(We.Actions,{style:{padding:"16px 24px"}},E.createElement(Fe,{onClick:function(){return h(!1)},variant:"contained",color:"default"},"CANCEL"),E.createElement(Fe,{startIcon:c&&E.createElement(Kt,{size:"1rem"}),variant:"contained",color:"secondary",onClick:function(){return W(t)}},"Delete"))),E.createElement(Mt,{error:m,onHide:function(){return v("")},title:"Error Deleting User"}),E.createElement(Mt,{error:M,onHide:function(){return C("")},title:"Error Choosing Profile"}))},ote=function(e){var t=e.onReceiveMessage;b.useEffect(function(){var n=new LJe().withUrl("/ws").withAutomaticReconnect().configureLogging(on.Information).build();return n.start().then(function(){console.log("Connection started")}).catch(function(r){console.log("Error while starting connection: "+r)}),n.on("ReceiveMessage",function(r,i){t(r,i)}),function(){n.stop().then(function(){console.log("Connection stopped")}).catch(function(r){console.log("Error while stopping connection: "+r)})}},[])},$Mi={userLastName:"",userId:null,defaultAreaId:null,defaultAreaName:"",userLogged:!1,permissions:[],profiles:[]},VX=Ni({name:"__",initialState:$Mi,reducers:{setUserId:function(e,t){var n=t.payload;e.userId=n},setUserLastName:function(e,t){var n=t.payload;e.userLastName=n},setDefaultAreaId:function(e,t){var n=t.payload;e.defaultAreaId=n},setDefaultAreaName:function(e,t){var n=t.payload;e.defaultAreaName=n},setUserLogged:function(e,t){var n=t.payload;e.userLogged=n},setPermissions:function(e,t){var n=t.payload;e.permissions=n},setProfiles:function(e,t){var n=t.payload;e.profiles=n}}}),xOt=b.createContext({state:VX.getInitialState(),actions:VX.actions,isLoading:!0}),Bw=function(){return b.useContext(xOt)},wOt=function(){var e=Bw().state;return function(t){return e.permissions.some(function(n){return n===t})}},UMi=function(e){var t=e.children,n=Ui.useComplexState({initialState:VX.getInitialState(),reducers:VX.caseReducers}),r=n[0],i=n[1],o=b.useState(!1),a=o[0],s=o[1],l=b.useState(!1),c=l[0],u=l[1],d=function(){var g=localStorage.getItem("userMESData")||"{}",m=JSON.parse(g);return Ot(m,"id",null)},p=function(){return Ct(void 0,void 0,void 0,function(){var g,m,v,y,M;return xt(this,function(C){switch(C.label){case 0:if(g=d(),!g)return[3,4];C.label=1;case 1:return C.trys.push([1,3,,4]),[4,RMi({UserId:g})];case 2:return m=C.sent(),m&&m.Permissions&&(v=m.Permissions.split(","),i.setPermissions(v),s(!0)),m&&m.Profiles&&(y=m.Profiles.split(","),i.setProfiles(y),u(!0)),[3,4];case 3:return M=C.sent(),console.error("Failed to load permissions:",M),[3,4];case 4:return[2]}})})},h=d();return b.useEffect(function(){p()},[h]),ote({onReceiveMessage:function(g,m){m==="SEC.GetPermissions"&&p()}}),E.createElement(xOt.Provider,{value:{state:r,actions:i,isLoading:!a||!c}},t)},jC=function(){return localStorage.getItem("token")};function Ek(){var e=Bw().actions.setUserLogged,t=b.useState(jC()),n=t[0],r=t[1],i=function(d){localStorage.setItem("userMESData",JSON.stringify(d)),localStorage.setItem("refreshToken",d.refreshToken),localStorage.setItem("token",d.token),r(d.token),u3.defaults.headers.Authorization="Bearer ".concat(d.token),e(!0)},o=function(){localStorage.removeItem("userMESData"),localStorage.removeItem("token"),localStorage.removeItem("refreshToken"),r(""),e(!1)},a=function(){var d=localStorage.getItem("userMESData"),p=JSON.parse(d);return((p||{}).lastName||"")+", "+((p||{}).firstName||"")},s=function(){var d=localStorage.getItem("userMESData"),p=JSON.parse(d);return(p||{}).firstName||""},l=function(){var d=localStorage.getItem("userMESData"),p=JSON.parse(d);return(p||{}).lastName||""},c=function(){var d=localStorage.getItem("userMESData"),p=JSON.parse(d);return e(!0),(p||{}).id||-1},u=function(d){var p=localStorage.getItem("userMESData");if(p===void 0)return!1;var h=JSON.parse(p),g=h.permissions||[];return g.indexOf(d)>-1};return{getUserName:a,saveUserData:i,clearUserData:o,getFirstName:s,getLastName:l,getUserId:c,hasPermission:u,token:n}}var XMi=Rt(function(e){return{checkbox:{userSelect:"none"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"}}}),YMi=function(e){var t,n,r,i=e.userId,o=e.show,a=e.onHide,s=e.suffixTitle,l=XMi(),c=b.useState(!1),u=c[0],d=c[1],p=b.useState(!1),h=p[0],g=p[1],m=b.useState(""),v=m[0],y=m[1],M=b.useState(""),C=M[0],x=M[1],w=ate({userId:i}),S=w.data,A=w.isLoading,z=w.isError,O=w.error,T=w.isSuccess,I=Ek().getUserId,P=ite().state.areasList,N=Bw().actions,F=N.setDefaultAreaId,L=N.setDefaultAreaName,W=Gn({defaultValues:d3e}),H=W.register,j=W.control,G=W.setValue,q=W.handleSubmit,$=W.watch,U=W.formState.errors,X=$("ProfilesId"),Q=$("DefaultAssetId"),re=function(pe,te){te!=="clickaway"&&d(!1)},ee=aa({mutationFn:function(pe){return Ct(void 0,void 0,void 0,function(){var te,ce;return xt(this,function(oe){switch(oe.label){case 0:return[4,u3e(pe)];case 1:return te=oe.sent(),ce=Array.isArray(X)?X.filter(function(ae){return!isNaN(ae)&&ae>0}):[],[4,yOt({UserId:te,profileIds:ce})];case 2:return oe.sent(),[2,te]}})})},onSuccess:function(pe){return Ct(void 0,void 0,void 0,function(){var te,ce;return xt(this,function(oe){return te=I(),te===pe&&Q&&(ce=P.find(function(ae){return ae?.AssetId===Q}),ce&&(F(Q),L(ce.AssetName))),a(!0),d(!0),[2]})})},onError:function(pe){y(pe.message)},onSettled:function(){g(!1)}}),se=function(pe){return Ct(void 0,void 0,void 0,function(){return xt(this,function(te){switch(te.label){case 0:return g(!0),[4,ee.mutate(pe)];case 1:return te.sent(),[2]}})})};return b.useEffect(function(){var pe;if(o&&(g(!1),T)){var te=S?S[0]:null;if(te){var ce=((pe=te.ProfilesId)===null||pe===void 0?void 0:pe.toString())||"",oe=ce.split(",").map(function(ae){return ae.trim()}).filter(function(ae){return ae!==""}).map(function(ae){return parseInt(ae)}).filter(function(ae){return!isNaN(ae)});G("UserId",te.UserId),G("UserName",te.UserName),G("FirstName",te.FirstName),G("LastName",te.LastName),G("AuthTypeId",te.AuthTypeId),G("IsActive",te.IsActive),G("LastLogin",te.LastLogin),G("DefaultAssetId",te.DefaultAssetId),G("ProfilesId",oe)}}},[o,T,S,i]),b.useEffect(function(){O&&z&&y(O.message)},[O,z]),b.createElement(b.Fragment,null,o&&b.createElement(Mn,{title:"Edit User".concat(s?" - ".concat(s):"")}),b.createElement(We,{title:"EDIT USER",open:o,handleClose:function(){return a(!1)},id:"edit-user-modal",maxWidth:"md"},b.createElement("form",{onSubmit:q(se)},b.createElement(We.Content,{className:l.modalBody,style:{padding:"15px 30px"}},A&&b.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"}},b.createElement(zk,null)),!A&&b.createElement(b.Fragment,null,b.createElement(D,{container:!0,spacing:1},b.createElement(D,{item:!0,xs:12},b.createElement(je,tt({},H("UserName",{required:!0}),{label:"Username",variant:"outlined",error:!!U.UserName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((t=U.UserName)===null||t===void 0?void 0:t.type)==="required"&&b.createElement("span",{className:l.errorLabel},"User name is required")),b.createElement(D,{item:!0,md:6,xs:12},b.createElement(je,tt({},H("FirstName",{required:!0}),{label:"First name",variant:"outlined",error:!!U.FirstName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((n=U.FirstName)===null||n===void 0?void 0:n.type)==="required"&&b.createElement("span",{className:l.errorLabel},"First name is required")),b.createElement(D,{item:!0,md:6,xs:12},b.createElement(je,tt({},H("LastName",{required:!0}),{label:"Last name",variant:"outlined",error:!!U.FirstName,fullWidth:!0,margin:"dense",autoComplete:"off"})),((r=U.LastName)===null||r===void 0?void 0:r.type)==="required"&&b.createElement("span",{className:l.errorLabel},"Last name is required")),b.createElement(D,{item:!0,container:!0,xs:12,spacing:3,style:{margin:0}},b.createElement(D,{item:!0,xs:12,md:6,style:{padding:"0 15px 0 0"}},b.createElement(Ue,{name:"ProfilesId",control:j,rules:{required:!0},render:function(pe){var te=pe.field,ce=te.onChange,oe=te.value;return b.createElement(f3e,{onChange:ce,value:oe,userIdForDelete:null,setprofileError:x})}}),U.ProfilesId&&b.createElement("span",{className:l.errorLabel},"Select a profile(s)")),b.createElement(D,{item:!0,xs:12,md:6,style:{padding:"0 0 0 5px"}},b.createElement(Ue,{name:"AuthTypeId",control:j,render:function(pe){var te=pe.field,ce=te.value,oe=te.onChange;return b.createElement(h3e,{value:ce,onChange:oe})}})),b.createElement(D,{item:!0,xs:12,md:6,style:{padding:"0 0 0 5px"}},b.createElement(Ue,{name:"DefaultAssetId",control:j,render:function(pe){var te=pe.field,ce=te.value,oe=te.onChange;return b.createElement(p3e,{value:ce,onChange:oe})}})),b.createElement(D,{item:!0,xs:12,md:6},b.createElement(Ue,{name:"IsActive",control:j,render:function(pe){var te=pe.field;return b.createElement(Io,{className:l.checkbox,control:b.createElement(Qr,{checked:te.value,onChange:te.onChange,name:"IsActive",color:"primary"}),label:"Active"})}})))))),b.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},b.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return a(!1)}},"Cancel")),b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,startIcon:h?b.createElement(Kt,{size:"1rem"}):b.createElement(b.Fragment,null),disabled:h,variant:"contained",color:"primary",type:"submit"},"Save")))))),b.createElement(pr,{open:u,autoHideDuration:2500,onClose:re},b.createElement(ph,{severity:"info",onClose:re},"The user was edited successfully")),b.createElement(Mt,{error:v,onHide:function(){return y("")},title:"Error Editing User"}),b.createElement(Mt,{error:C,onHide:function(){return x("")},title:"Error Choosing Profile"}))},KMi=Rt(function(e){return{buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}}}),QMi=function(e){var t=KMi(),n=e.setUserId,r=e.setOpenModalEditDataUser,i=e.setOpenModalDeleteUser,o=e.setOpenModalChangePasswordd,a=e.showContextMenu;return E.createElement(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:t.buttons},E.createElement(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Fe,{onClick:function(){(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(s){return n(e.data.UserId),o(!0),[2]})})})()}},E.createElement(Hut,{style:{height:"auto"},color:"primary"})),E.createElement(Fe,{onClick:function(){(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(s){return n(e.data.UserId),r(!0),[2]})})})()}},E.createElement(No,{style:{height:"auto"},color:"primary"})),E.createElement(Fe,{onClick:function(){(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(s){return n(e.data.UserId),i(!0),[2]})})})()}},E.createElement(Mo,{style:{height:"auto"},color:"secondary"})),E.createElement(Fe,{style:{},onClick:function(s){a(s,e.data,"TableUsers")}},E.createElement(Kf,{style:{height:"auto"},color:"action"}))))},ZMi=function(e){var t=e.setUserId,n=e.setOpenModalEditDataUser,r=e.setOpenModalDeleteUser,i=e.setOpenModalChangePasswordd,o=e.showContextMenu,a=[{field:"UserName",headerName:"UserName",sortable:!1,flex:1,minWidth:130,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"FirstName",headerName:"First name",sortable:!1,flex:1,minWidth:130,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"LastName",headerName:"Last name",sortable:!1,flex:1,minWidth:130,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"Profiles",headerName:"Profiles",sortable:!1,flex:2,minWidth:220,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{cellRenderer:QMi,cellRendererParams:{setUserId:t,setOpenModalEditDataUser:n,setOpenModalDeleteUser:r,setOpenModalChangePasswordd:i,showContextMenu:o},wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:" ",sortable:!1,flex:1,minWidth:260,maxWidth:260}];return{columnDefs:a}},JMi=function(e){var t=e.setUserId,n=e.setShowEditModal,r=e.setShowDeleteModal,i=e.setShowCreateModal,o=e.setShowChangePasswordModal,a=function(s){var l=[];return s?l=l.concat([{name:"New User",key:"new_user",onClick:function(){i(!0)},icon:E.createElement(Zo,null)},{name:"Edit User",key:"edit_user",onClick:function(){t(s.UserId),n(!0)},icon:E.createElement(No,null)},{name:"Delete User",key:"delete_user",onClick:function(){t(s.UserId),r(!0)},icon:E.createElement(Mo,null)},{name:"Change Password",key:"change_password_user",onClick:function(){t(s.UserId),o(!0)},icon:E.createElement(Hut,null)}]):l=l.concat([{name:"New User",key:"new_user",onClick:function(){i(!0)},icon:E.createElement(Zo,null)}]),l};return{getMenuOptions:a}},eCi=function(){var e=b.useState(!1),t=e[0],n=e[1],r=b.useState(!1),i=r[0],o=r[1],a=b.useState(!1),s=a[0],l=a[1],c=b.useState(!1),u=c[0],d=c[1],p=b.useState(""),h=p[0],g=p[1],m=b.useState(""),v=m[0],y=m[1],M=b.useState(null),C=M[0],x=M[1],w=b.useState(null),S=w[0],A=w[1],z=tCi(),O=z.data,T=z.isLoading,I=z.isError,P=z.error,N=z.refetch,F=O?.map(function(U){var X=U.UserId,Q=U.UserName,re=U.LastName,ee=U.FirstName,se=U.Profiles;return{UserId:X,UserName:Q,LastName:re,FirstName:ee,Profiles:se?.replaceAll("Profile",""),id:X}}),L=JMi({setUserId:x,setShowEditModal:o,setShowDeleteModal:l,setShowCreateModal:n,setShowChangePasswordModal:d}).getMenuOptions,W=ks(),H=W.showContextMenu,j=W.registerConfig,G=ZMi({setUserId:x,setOpenModalEditDataUser:o,setOpenModalDeleteUser:l,setOpenModalChangePasswordd:d,showContextMenu:H}).columnDefs,q=b.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),$=function(U){var X,Q,re=(X=U.node)===null||X===void 0?void 0:X.data;return U.api.deselectAll(),(Q=U.node)===null||Q===void 0||Q.setSelected(!0),H(event,re,"TableUsers"),[]};return b.useEffect(function(){j({id:"TableUsers",getOptions:L})},[]),b.useEffect(function(){P&&I&&g(P.message)},[P,I]),b.createElement(b.Fragment,null,b.createElement(D,{container:!0,justifyContent:"flex-start"},b.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},b.createElement(bt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"User Management")),b.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},b.createElement(je,{fullWidth:!0,label:"Search",variant:"outlined",size:"small",margin:"dense",value:v,onChange:function(U){y(U.target.value),S?.setGridOption("quickFilterText",U.target.value)},InputProps:{startAdornment:b.createElement(nc,{position:"start"},b.createElement(yn,{edge:"start",type:"submit"},b.createElement(_3,null)))}})),b.createElement(D,{item:!0,container:!0,justifyContent:"center",alignItems:"center",style:{padding:"2px 10px 0px"}},b.createElement(D,{item:!0,md:12,xs:12},b.createElement(kt,{style:{height:"70vh"}},b.createElement(Kn,{loading:T,gridOptions:{theme:qw},rowData:F||[],columnDefs:G,defaultColDef:q,rowHeight:34,headerHeight:34,loadingOverlayComponent:Wm,animateRows:!0,getContextMenuItems:$,getRowId:function(U){return U.data.UserId},rowSelection:"single",onRowDoubleClicked:function(U){x(U.data.UserId),o(!0)},onGridReady:function(U){return A(U.api)}}))),b.createElement(D,{container:!0,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:2,xs:12},b.createElement(Fe,{variant:"contained",color:"primary",onClick:function(){return n(!t)},fullWidth:!0,style:{marginTop:"10px"}},"New user"))))),b.createElement(VMi,{show:t,onHide:function(U){n(!1),x(null),U&&N()},suffixTitle:"User Management"}),b.createElement(YMi,{show:i,userId:C,onHide:function(U){o(!1),x(null),U&&N()},suffixTitle:"User Management"}),b.createElement(MOt,{show:u,userId:C,onHide:function(U){d(!1),x(null),U&&N()},suffixTitle:"User Management"}),b.createElement(GMi,{show:s,userId:C,onHide:function(U){l(!1),x(null),U&&N()},suffixTitle:"User Management"}),b.createElement(Mt,{error:h,onHide:function(){return g("")}}))},tCi=function(){return Bl({queryKey:["users"],queryFn:function(){return OMi()}})},ate=function(e){var t=e.userId;return Bl({queryKey:["user",t],queryFn:function(){return t?zMi({userId:t}):[]}})},nCi=function(){return b.createElement(b.Fragment,null,b.createElement(Mn,{title:"User Management"}),b.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},b.createElement(eCi,null)))},rCi=function(){var e=Ek(),t=e.getUserId;e.getUserName,e.getFirstName,e.getLastName;var n=b.useState(""),r=n[0],i=n[1],o=b.useState(""),a=o[0],s=o[1],l=b.useState(""),c=l[0],u=l[1],d=b.useState(""),p=d[0],h=d[1],g=b.useState(!1),m=g[0],v=g[1],y=b.useState(!1),M=y[0],C=y[1],x=b.useState(""),w=x[0],S=x[1],A=b.useState(""),z=A[0],O=A[1],T=b.useState(""),I=T[0];T[1];var P=b.useState(""),N=P[0],F=P[1],L=b.useState(""),W=L[0],H=L[1],j=b.useState(!1),G=j[0],q=j[1],$=b.useState(!1),U=$[0],X=$[1],Q=b.useState(!1),re=Q[0],ee=Q[1],se=b.useState(""),pe=se[0],te=se[1],ce=t(),oe=ate({userId:ce}),ae=oe.data,ne=oe.isError,le=oe.error,he=oe.isSuccess,be=oe.isFetched,me=aa({mutationFn:u3e,onSuccess:function(){u(N.trim()),h(W.trim());var Ce=localStorage.getItem("userMESData");if(Ce){var Ee=JSON.parse(Ce);Ee.firstName=N.trim(),Ee.lastName=W.trim(),localStorage.setItem("userMESData",JSON.stringify(Ee))}ee(!0),te("Profile updated successfully.")},onError:function(Ce){i(Ce.message)}}),Me=function(){return N!==c||W!==p},Oe=function(){return Ct(void 0,void 0,void 0,function(){var Ce,Ee,Ge;return xt(this,function(_e){switch(_e.label){case 0:if(!Me()||!N.trim()||!W.trim())return[2];q(!0),_e.label=1;case 1:return _e.trys.push([1,3,4,5]),Ce=t(),Ee={UserId:Ce,UserName:a,FirstName:N.trim(),LastName:W.trim(),AuthTypeId:m?1:0,IsActive:M,LastLogin:null,DefaultAssetId:null,ProfilesId:"",Profiles:"",Permissions:""},[4,me.mutateAsync(Ee)];case 2:return _e.sent(),[3,5];case 3:return Ge=_e.sent(),i(Ge.toString()),[3,5];case 4:return q(!1),[7];case 5:return[2]}})})},de=function(Ce){X(!1),Ce&&(ee(!0),te("Password changed successfully."))},ie=function(Ce){Ce.key==="Enter"&&Me()&&N.trim()&&W.trim()&&!G&&Oe()},ue=function(Ce){return Ce=Ce.replace(/,/g,`
`),Ce=Ce.replace(/ *\([^)]*\) */g,""),Ce},Ae=function(){setTimeout(function(){ee(!1),te("")},2e3)};return b.useEffect(function(){re&&Ae()},[re]),b.useEffect(function(){if(he&&be){var Ce=ae?ae[0]:null;if(!Ce)return;var Ee=Ce.FirstName||"",Ge=Ce.LastName||"";s(Ce.UserName),u(Ee),h(Ge),F(Ee),H(Ge),v(!!Ce.AuthTypeId),C(Ce.IsActive),S(ue(Ce.Profiles||"")),O(ue(Ce.Permissions||""))}},[he,be]),b.useEffect(function(){le&&ne&&i(le.message)},[le,ne]),E.createElement(E.Fragment,null,E.createElement(Mn,{title:"Account Configuration"}),E.createElement(Tn,{p:3,maxWidth:"100%"},re&&E.createElement(kt,{elevation:2,style:{padding:16,marginBottom:16,backgroundColor:"#c8e6c9",color:"#1b5e20",display:"flex",alignItems:"center"}},E.createElement(bt,null,pe)),E.createElement(Tn,null,E.createElement(bt,{variant:"h5",component:"h1",gutterBottom:!0,style:{fontWeight:600,marginBottom:16}},"Account Configuration"),E.createElement(D,{container:!0,spacing:3},E.createElement(D,{item:!0,xs:12,md:6},E.createElement(kt,{style:{padding:24,height:"100%",minHeight:"350px"}},E.createElement(bt,{variant:"h6",gutterBottom:!0,style:{marginBottom:24,fontWeight:600}},"Account Information"),E.createElement(Tn,{mb:2},E.createElement(je,{label:"Username",value:a,variant:"outlined",fullWidth:!0,style:{pointerEvents:"none",cursor:"default"},InputProps:{readOnly:!0},tabIndex:-1})),E.createElement(Tn,{mt:3,display:"flex",flexDirection:"column",style:{gap:4}},E.createElement(Io,{control:E.createElement(Qr,{checked:m,disabled:!0}),label:"Domain User"}),E.createElement(Io,{control:E.createElement(Qr,{checked:M,disabled:!0}),label:"Active Account"})))),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(kt,{style:{padding:24,height:"100%",minHeight:"350px"}},E.createElement(bt,{variant:"h6",gutterBottom:!0,style:{marginBottom:24,fontWeight:600}},"Personal Details"),E.createElement(Tn,{mb:2},E.createElement(je,{label:"First Name",value:N,variant:"outlined",fullWidth:!0,onChange:function(Ce){return F(Ce.target.value)},onKeyDown:ie,error:!N.trim(),helperText:N.trim()?"":"First name is required"})),E.createElement(Tn,{mb:2},E.createElement(je,{label:"Last Name",value:W,variant:"outlined",fullWidth:!0,onChange:function(Ce){return H(Ce.target.value)},onKeyDown:ie,error:!W.trim(),helperText:W.trim()?"":"Last name is required"})),E.createElement(ua,{style:{margin:"24px 0 20px"}}),E.createElement(Tn,{mt:2,display:"flex",flexDirection:"column",style:{gap:8}},E.createElement(Fe,{fullWidth:!0,startIcon:G&&E.createElement(Kt,{size:"1rem"}),disabled:!Me()||G||!N.trim()||!W.trim(),variant:"contained",color:"primary",onClick:Oe,style:{marginBottom:"8px"}},"Save Changes"),E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"primary",onClick:function(){return X(!0)}},"Change Password"))))),E.createElement(kt,{elevation:2,style:{padding:24,marginBottom:24,marginTop:24}},E.createElement(bt,{variant:"h6",gutterBottom:!0,style:{marginBottom:24,fontWeight:600}},"Permissions & Access"),E.createElement(D,{container:!0,spacing:3},E.createElement(D,{item:!0,xs:12,md:4},E.createElement(bt,{variant:"body1",gutterBottom:!0,color:"textSecondary"},"Assigned Profiles"),E.createElement("textarea",{style:{width:"100%",minHeight:"300px",padding:16,fontFamily:"inherit",fontSize:"14px",lineHeight:"1.5",border:"2px solid #e0e0e0",borderRadius:8,backgroundColor:"#fff",resize:"vertical",outline:"none"},placeholder:"No profiles assigned",readOnly:!0,value:w})),E.createElement(D,{item:!0,xs:12,md:4},E.createElement(bt,{variant:"body1",gutterBottom:!0,color:"textSecondary"},"System Permissions"),E.createElement("textarea",{style:{width:"100%",minHeight:"300px",padding:16,fontFamily:"inherit",fontSize:"14px",lineHeight:"1.5",border:"2px solid #e0e0e0",borderRadius:8,backgroundColor:"#fff",resize:"vertical",outline:"none"},placeholder:"No permissions assigned",readOnly:!0,value:z})),E.createElement(D,{item:!0,xs:12,md:4},E.createElement(bt,{variant:"body1",gutterBottom:!0,color:"textSecondary"},"Available Procedures"),E.createElement("textarea",{style:{width:"100%",minHeight:"300px",padding:16,fontFamily:"inherit",fontSize:"14px",lineHeight:"1.5",border:"2px solid #e0e0e0",borderRadius:8,backgroundColor:"#fff",resize:"vertical",outline:"none"},placeholder:"No procedures available",readOnly:!0,value:I})))))),E.createElement(Mt,{error:r,onHide:function(){i("")}}),E.createElement(MOt,{show:U,userId:t(),onHide:de}))},aT=E.createContext({}),iCi=function(e){var t=e.children,n=e.authConfig,r=Ek();return E.createElement(E.Fragment,null,E.createElement(aT.Provider,{value:r},!!r.token&&E.createElement(oCi,null,t),!r.token&&E.createElement(aCi,{authConfig:n})))},oCi=function(e){var t=e.children;return E.createElement(E.Fragment,null,t)},aCi=function(e){var t=e.authConfig,n=b.useContext(aT).clearUserData,r=b.useRef(new URL(document.location).searchParams);return b.useEffect(function(){n();var i=window.location.origin+"?"+r.current.toString();window.history.replaceState({path:i},"",i)},[]),E.createElement(yCi,{authConfig:t})},sCi=Rt(function(e){return{button:{padding:e.spacing(1.2),fontWeight:600,transition:"all 0.3s ease","&:hover":{transform:"translateY(-2px)",boxShadow:e.shadows[4]}},icon:{marginRight:e.spacing(1)}}}),lCi=function(){var e=sCi(),t=E.useState(!1),n=t[0],r=t[1],i=E.useState(void 0),o=i[0],a=i[1],s=E.useContext(aT).saveUserData,l=new Ye,c=function(u){return Ct(void 0,void 0,void 0,function(){var d;return xt(this,function(p){switch(p.label){case 0:return u.preventDefault(),[4,l.authenticate("public","public")];case 1:return d=p.sent(),l.hasErrors?(r(!0),a(l.error)):s(d),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(xMe,{in:n},E.createElement(Pr,{severity:"error",variant:"filled",onClose:function(){r(!1),a(void 0)}},E.createElement("strong",null,"Bad credentials"),E.createElement("p",null,o===void 0?"There was an error":o.internalError.message===void 0?o.internalError:o.internalError.message))),E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"primary",className:e.button,style:{backgroundColor:"#479DC4",color:"white"},role:"button",onClick:c,startIcon:E.createElement(yvi,{className:e.icon})},"Guest Access"))},cCi=Rt(function(e){return{form:{width:"100%",marginTop:e.spacing(1)},textField:{marginBottom:e.spacing(2)},submitButton:{margin:e.spacing(2,0),padding:e.spacing(1.2),fontWeight:600,transition:"all 0.3s ease","&:hover":{transform:"translateY(-2px)",boxShadow:e.shadows[4]}},icon:{color:e.palette.text.secondary}}}),CKe=function(){var e=cCi(),t=b.useState(""),n=t[0],r=t[1],i=b.useState(""),o=i[0],a=i[1],s=E.useState(!1),l=s[0],c=s[1],u=E.useState(void 0),d=u[0],p=u[1],h=E.useContext(aT).saveUserData,g=function(v){return Ct(void 0,void 0,void 0,function(){var y,M;return xt(this,function(C){switch(C.label){case 0:return v.preventDefault(),y=new Ye,[4,y.authenticate(n,o)];case 1:return M=C.sent(),y.hasErrors?(c(!0),p(y.error)):h(M),[2]}})})},m=function(){c(!1),p(void 0)};return E.createElement(E.Fragment,null,E.createElement("form",{onSubmit:g,className:e.form},E.createElement(je,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,id:"txtUserName",label:"Username",name:"userName",autoComplete:"username",autoFocus:!0,className:e.textField,value:n,onChange:function(v){return r(v.target.value)},InputProps:{startAdornment:E.createElement(nc,{position:"start"},E.createElement(xvi,{className:e.icon}))}}),E.createElement(je,{variant:"outlined",margin:"normal",required:!0,fullWidth:!0,name:"password",label:"Password",type:"password",id:"txtPassword",autoComplete:"current-password",className:e.textField,value:o,onChange:function(v){return a(v.target.value)},InputProps:{startAdornment:E.createElement(nc,{position:"start"},E.createElement(vB,{className:e.icon}))}}),E.createElement(Fe,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",className:e.submitButton,disabled:o.length===0||n.length===0},"Login"),E.createElement(pr,{open:l,autoHideDuration:6e3,onClose:m,anchorOrigin:{vertical:"top",horizontal:"center"}},E.createElement(Pr,{severity:"error",variant:"filled",onClose:m,action:E.createElement(yn,{size:"small","aria-label":"close",color:"inherit",onClick:m},E.createElement(nQ,{fontSize:"small"}))},E.createElement(bt,{variant:"subtitle2",style:{fontWeight:"bold"}},"Bad credentials"),E.createElement(bt,{variant:"body2"},d===void 0?"There was an error":d.internalError.message===void 0?d.internalError:d.internalError.message)))))},uCi=function(e){var t=e.color,n=t===void 0?"white":t;return E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:50,height:50,viewBox:"0 0 30 30"},E.createElement("path",{color:n,d:"M12 16H3v7.75l9 1.238zm0-11L3 6.25V14h9zm2-.25V14h13V3zM14 16v9.25L27 27V16z"}))},dCi=Rt(function(e){return{button:{padding:e.spacing(1.2),fontWeight:600,transition:"all 0.3s ease","&:hover":{transform:"translateY(-2px)",boxShadow:e.shadows[4]}},icon:{marginRight:e.spacing(1)},alertContainer:{marginBottom:e.spacing(2)}}}),pCi=function(){var e=dCi(),t=E.useState(!1),n=t[0],r=t[1],i=E.useState(void 0),o=i[0],a=i[1],s=E.useContext(aT).saveUserData,l=b.useState(!1),c=l[0],u=l[1],d=function(){return Ct(void 0,void 0,void 0,function(){var g,m;return xt(this,function(v){switch(v.label){case 0:return g=new Ye,[4,g.checkIfWindowsAuthIsEnabled()];case 1:return m=v.sent(),g.hasErrors?(r(!0),a(g.error)):u(m??!1),[2]}})})},p=b.useCallback(function(g){return Ct(void 0,void 0,void 0,function(){var m,v,y,M;return xt(this,function(C){switch(C.label){case 0:m=new Ye,g.preventDefault(),C.label=1;case 1:return C.trys.push([1,4,,5]),[4,m.loginWithWindowsAuthentication()];case 2:return v=C.sent(),[4,v.json()];case 3:return y=C.sent(),s(y),[3,5];case 4:return M=C.sent(),r(!0),a(M.toString()),[3,5];case 5:return[2]}})})},[r,a,s]),h=function(){r(!1),a(void 0)};return b.useEffect(function(){d().then(function(){})},[]),c?E.createElement(E.Fragment,null,n&&E.createElement(Tn,{className:e.alertContainer},E.createElement(Pr,{severity:"error",variant:"filled",onClose:h,action:E.createElement(yn,{size:"small","aria-label":"close",color:"inherit",onClick:h},E.createElement(nQ,{fontSize:"small"}))},E.createElement(bt,{variant:"subtitle2",style:{fontWeight:"bold"}},"Bad credentials"),E.createElement(bt,{variant:"body2"},o))),E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"primary",className:e.button,role:"button",onClick:p,startIcon:E.createElement(uCi,{color:"red"})},"Windows Authentication")):null},hCi={auth:{clientId:"7c77d607-51e0-4e03-bd50-d7aa18a7163g",authority:"https://login.microsoftonline.com/common",redirectUri:"http://localhost:5000/"},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:function(e,t,n){if(!n)switch(e){case Kl.Error:console.error(t);return;case Kl.Info:console.info(t);return;case Kl.Verbose:console.debug(t);return;case Kl.Warning:console.warn(t);return}}}}},fCi={scopes:["User.Read"]},gCi=Rt(function(e){return{button:{padding:e.spacing(1.2),fontWeight:600,transition:"all 0.3s ease","&:hover":{transform:"translateY(-2px)",boxShadow:e.shadows[4]}},icon:{marginRight:e.spacing(1)}}}),mCi=function(){var e=gCi(),t=E.useContext(aT).saveUserData,n=kbi().instance,r=function(i){return Ct(void 0,void 0,void 0,function(){var o,a,s,l,c;return xt(this,function(u){switch(u.label){case 0:i.preventDefault(),u.label=1;case 1:return u.trys.push([1,7,,8]),[4,n.loginPopup(fCi)];case 2:o=u.sent(),a=new Ye,u.label=3;case 3:return u.trys.push([3,5,,6]),[4,a.loginWithAzureAD(o.accessToken)];case 4:return s=u.sent(),t(s),[3,6];case 5:return l=u.sent(),console.log(l),[3,6];case 6:return[3,8];case 7:return c=u.sent(),console.log({e:c}),[3,8];case 8:return[2]}})})};return E.createElement("form",{onSubmit:r},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"primary",className:e.button,style:{backgroundColor:"#479DC4",color:"white"},type:"submit",startIcon:E.createElement(Nbi,{className:e.icon})},"Login with Azure AD"))},vCi=function(e){var t=e.config,n=new zbi(tt(tt({},hCi),{auth:tt({},t)}));return E.createElement(E.Fragment,null,E.createElement(Dbi,{instance:n},E.createElement(mCi,null)))},bCi=Rt(function(e){return{root:{minHeight:"100vh",backgroundImage:"linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)",display:"flex",flexDirection:"column"},appBar:{backgroundColor:e.palette.primary.main,boxShadow:"0 4px 20px 0 rgba(0, 0, 0, 0.1)"},brand:{textDecoration:"none",color:"white",fontWeight:"bold",display:"flex",alignItems:"center"},brandText:{marginLeft:e.spacing(1),fontWeight:700,letter:"1px"},container:{padding:e.spacing(4),flex:1,display:"flex",alignItems:"center",justifyContent:"center"},loginCard:{margin:"".concat(e.spacing(5),"px auto"),maxWidth:800,borderRadius:e.spacing(1),overflow:"hidden",boxShadow:"0 10px 30px 0 rgba(0, 0, 0, 0.1)"},cardHeader:{textAlign:"center",padding:e.spacing(3),fontWeight:"bold",backgroundColor:"#f5f5f5",borderBottom:"1px solid #eaeaea"},loginPaper:{padding:e.spacing(5),margin:e.spacing(3),borderRadius:e.spacing(1),boxShadow:"0 5px 15px 0 rgba(0, 0, 0, 0.05)",transition:"all 0.3s ease","&:hover":{boxShadow:"0 8px 25px 0 rgba(0, 0, 0, 0.1)",transform:"translateY(-5px)"}},orDivider:{textAlign:"center",fontWeight:"bold",color:e.palette.text.secondary,margin:e.spacing(2,0)},rightSidePaper:{padding:e.spacing(5),margin:e.spacing(3),minHeight:248,display:"flex",flexDirection:"column",justifyContent:"space-evenly",borderRadius:e.spacing(1),boxShadow:"0 5px 15px 0 rgba(0, 0, 0, 0.05)",transition:"all 0.3s ease","&:hover":{boxShadow:"0 8px 25px 0 rgba(0, 0, 0, 0.1)",transform:"translateY(-5px)"}}}});function yCi(e){var t=e.authConfig,n=bCi(),r=b.useRef(new URL(document.location).searchParams),i=b.useState(!1),o=i[0],a=i[1],s=b.useState(""),l=s[0],c=s[1],u=Ot(t,"useEmailAndPassword",!0),d=Ot(t,"useAzureAD",!1),p=Ot(t,"useWindowsAuth",!1),h=Ot(t,"guestIsEnabled",!1),g=function(){a(!1),r.current.delete("message");var m=window.location.origin+"?"+r.current.toString();window.history.replaceState({path:m},"",m)};return b.useEffect(function(){r.current.has("message")&&(c(r.current.get("message")),a(!0))},[r.toString()]),E.createElement("div",{className:n.root},E.createElement(Hot,null),E.createElement(wMe,{position:"static",className:n.appBar},E.createElement(eQ,null,E.createElement(bt,{variant:"h6"},E.createElement("a",{href:"/",className:n.brand},E.createElement(Tn,{component:"span",className:n.brandText},"MESF"))))),E.createElement(Vln,{className:n.container},E.createElement(kt,{elevation:3,className:n.loginCard},E.createElement("div",{className:n.cardHeader},E.createElement(bt,{variant:"h5"},"Welcome Back"),E.createElement(bt,{variant:"body2",color:"textSecondary"},"Please sign in to your account")),E.createElement(D,{container:!0,justifyContent:"space-between",alignItems:"center",spacing:2},!d&&!h&&!p?E.createElement(D,{item:!0,xs:12},E.createElement(kt,{elevation:0,className:n.loginPaper},u&&E.createElement(CKe,null))):E.createElement(E.Fragment,null,E.createElement(D,{item:!0,md:6,xs:12},E.createElement(kt,{elevation:0,className:n.loginPaper},u&&E.createElement(CKe,null))),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(kt,{elevation:0,className:n.rightSidePaper},E.createElement(Tn,{display:"flex",flexDirection:"column"},E.createElement(pCi,null),d&&E.createElement(vCi,{config:t.AzureConfig}),h&&E.createElement(lCi,null)))))))),E.createElement(pr,{open:o,autoHideDuration:6e3,onClose:g,anchorOrigin:{vertical:"top",horizontal:"center"}},E.createElement(Pr,{onClose:g,severity:"info",variant:"filled"},l)))}function MCi(){var e=b.useContext(aT).clearUserData,t=fa(),n=Rd(),r=n[0],i=b.useState(""),o=i[0],a=i[1],s=function(){localStorage.removeItem("shiftAutoLogout"),e();var l=r.get("message");if(l){var c=new URLSearchParams(r);c.delete("message"),t("/?".concat(c.toString()))}else t("/?".concat(r.toString()))};return b.useEffect(function(){var l=r.get("message");l&&a(decodeURIComponent(l));var c=setTimeout(function(){s()},o?2e3:0);return function(){return clearTimeout(c)}},[]),E.createElement(E.Fragment,null,E.createElement(Tn,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh"},o&&E.createElement(Pr,{severity:"info",style:{marginBottom:20}},E.createElement(MEn,null,"Session Ended"),E.createElement(bt,null,o)),E.createElement(bt,{variant:"h6"},"Logging out...")))}var CCi=Rt(function(e){return{container:{display:"flex",alignItems:"center",color:"white"},timeDisplay:{marginRight:e.spacing(2),color:"white"},userButton:{marginLeft:e.spacing(1),display:"flex",alignItems:"center",color:"white"},userIcon:{marginRight:e.spacing(1),color:"white"}}}),xCi=function(e){var t=e.className,n=CCi(),r=Ek().getUserName,i=b.useState(r()),o=i[0],a=i[1],s=b.useState(new Date),l=s[0],c=s[1],u=b.useState(null),d=u[0],p=u[1],h=function(){c(new Date);var v=r();v!==o&&a(v)};b.useEffect(function(){var v=setTimeout(function(){h()},1e3);return function(){clearTimeout(v)}});var g=function(v){p(v.currentTarget)},m=function(){p(null)};return E.createElement("div",{className:"".concat(n.container," ").concat(t||"")},E.createElement(bt,{variant:"body2",className:n.timeDisplay},Wn(l,"HH:mm:ss z")),E.createElement(Fe,{className:n.userButton,onClick:g,color:"inherit"},E.createElement(BEn,{className:n.userIcon}),o),E.createElement($$,{id:"user-menu",anchorEl:d,keepMounted:!0,open:!!d,onClose:m},E.createElement(sr,{component:"a",href:"account"},"Account"),E.createElement(sr,{component:"a",href:"logout"},"Logout")))},Da=function(e){var t=e.children,n=e.isLoading,r=a2(e,["children","isLoading"]);return E.createElement(Fe,tt({},r,{disabled:n}),n&&E.createElement(Kt,{size:"1rem"}),t)},s2e={entry:{withAssetFilter:"tree",filterAssets:void 0,canEditAsset:!0,allowAttachments:!0,canEditShift:!0,showShiftCrew:!0,exportToExcel:!0,shiftsRange:7},report:{withAssetFilter:"tree",filterAssets:void 0,showAttachments:!0,showAsset:!0,showShiftCrew:!0,exportToExcel:!0}},SOt=b.createContext(s2e),AOt=function(){return b.useContext(SOt)},wCi=function(e){var t=e.children,n=e.logbookSettings,r=n===void 0?{}:n,i=b.useMemo(function(){return{entry:tt(tt({},s2e.entry),r.entry||{}),report:tt(tt({},s2e.report),r.report||{})}},[r]);return E.createElement(SOt.Provider,{value:i},t)},SCi=function(e){var t=e.setSettingId,n=e.setShowDeleteModal,r=e.setShowCreateModal,i=e.setShowEditModal,o=function(a){var s=[];return a?s=s.concat([{name:"New Setting",key:"new_setting",onClick:function(){r(!0)},icon:E.createElement(Zo,null)},{name:"Edit Setting",key:"edit_setting",onClick:function(){t(a),i(!0)},icon:E.createElement(No,null)},{name:"Delete Setting",key:"delete_setting",onClick:function(){t(a),n(!0)},icon:E.createElement(Mo,null)}]):s=s.concat([{name:"New Setting",key:"new_setting",onClick:function(){r(!0)},icon:E.createElement(Zo,null)}]),s};return{getMenuOptions:o}},ACi=Rt(function(e){return{root:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}}}),OCi=function(e){var t=e.setOpenModalEditSetting,n=e.setOpenModalDeleteSetting,r=e.showContextMenu,i=e.setSettingSelected,o=ACi(),a=[{field:"SettingName",headerName:"Name",minWidth:180,flex:4},{field:"Value",headerName:"Value",minWidth:180,flex:2},{field:"Description",headerName:"Description",minWidth:150,flex:4},{cellRenderer:function(l){return E.createElement(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:o.root},E.createElement(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"space-evenly",alignItems:"center"}},E.createElement(yn,{size:"small",onClick:function(){i(l?.data),t(!0)}},E.createElement(No,{color:"primary"})),E.createElement(yn,{size:"small",onClick:function(){i(l?.data),n(!0)}},E.createElement(Mo,{color:"secondary"})),E.createElement(yn,{size:"small",onClick:function(c){return r(c,l.data,"TableSettings")}},E.createElement(Kf,{color:"action"}))))},field:"",flex:1,minWidth:240,editable:!1,autoHeight:!1,suppressNavigable:!0}],s=b.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]);return{columnDefs:a,defaultColDef:s}},g3e={SettingName:"",Value:"",Description:""},OOt=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.oldName,a=t.newName,s=t.description,l=t.value;return xt(this,function(c){switch(c.label){case 0:return n=new Ye,r=[{name:"OldName",value:o},{name:"NewName",value:a},{name:"Description",value:s},{name:"Value",value:l}],[4,n.callV2("[UTL].[SetSetting]",r)];case 1:if(i=c.sent(),!i.ok)throw new Error(i.message||"Error when upsert setting");return[2]}})})},zCi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"SettingName",value:e}],[4,t.callV2("[UTL].[DeleteSetting]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error when delete setting");return[2]}})})},TCi=function(e){var t=e.settingSelected,n=e.show,r=e.onHide,i=e.suffixTitle,o=b.useState(!1),a=o[0],s=o[1],l=b.useState(!1),c=l[0],u=l[1],d=b.useState(""),p=d[0],h=d[1],g=Gn({defaultValues:t||g3e}),m=g.control,v=g.handleSubmit,y=g.reset,M=aa({mutationFn:OOt,onSuccess:function(){s(!0),r(!0)},onError:function(w){h(w.message)},onSettled:function(){u(!1)}}),C=function(w){return Ct(void 0,void 0,void 0,function(){return xt(this,function(S){switch(S.label){case 0:return u(!0),[4,M.mutate({oldName:"",newName:w.SettingName,description:w.Description,value:w.Value})];case 1:return S.sent(),[2]}})})},x=function(w,S){S!=="clickaway"&&s(!1)};return b.useEffect(function(){n&&y()},[n]),b.createElement(b.Fragment,null,n&&b.createElement(Mn,{title:"New Setting".concat(i?" - ".concat(i):"")}),b.createElement(D,{container:!0},b.createElement(D,{item:!0},b.createElement(We,{title:"NEW SETTING",open:n,handleClose:function(){return r(!1)},id:"create-setting-modal",maxWidth:"md"},b.createElement("form",{onSubmit:v(C)},b.createElement(We.Content,{style:{padding:"15px 30px 0"}},b.createElement(D,{container:!0,spacing:2},b.createElement(D,{item:!0,xs:12,md:6},b.createElement(Ue,{name:"SettingName",control:m,rules:{required:"Name is required"},render:function(w){var S=w.field,A=w.fieldState.error;return b.createElement(je,tt({},S,{label:"Name",variant:"outlined",error:!!A,helperText:A?A.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),b.createElement(D,{item:!0,xs:12,md:6},b.createElement(Ue,{name:"Value",control:m,rules:{required:"Value is required",pattern:{value:/^[A-Za-z0-9]+$/,message:"Only letters and numbers are allowed"}},render:function(w){var S=w.field,A=w.fieldState.error;return b.createElement(je,tt({},S,{label:"Value",variant:"outlined",error:!!A,helperText:A?A.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),b.createElement(D,{item:!0,md:12,xs:12,style:{margin:"12px 0 20px",padding:"0 8px"}},b.createElement(Ue,{name:"Description",control:m,render:function(w){var S=w.field,A=S.value,z=S.onChange;return b.createElement(je,{style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Description",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:A,onChange:function(O){O.target.value.length<=200&&z(O)}})}})))),b.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},b.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,startIcon:c&&b.createElement(Kt,{size:"1rem"}),disabled:c,variant:"contained",color:"primary",type:"submit"},"Save")))))))),b.createElement(Mt,{error:p,onHide:function(){return h("")},title:"Error Creating Setting"}),b.createElement(pr,{open:a,autoHideDuration:2500,onClose:x},b.createElement(ph,{severity:"success",onClose:x},"The setting was created successfully")))},ECi=function(e){var t=e.settingSelected,n=e.show,r=e.onHide,i=e.suffixTitle,o=b.useState(!1),a=o[0],s=o[1],l=b.useState(!1),c=l[0],u=l[1],d=b.useState(""),p=d[0],h=d[1],g=Gn({defaultValues:t||g3e}),m=g.control,v=g.handleSubmit,y=g.reset,M=g.setValue,C=aa({mutationFn:zCi,onSuccess:function(){s(!0),r(!0)},onError:function(S){h(S.message)},onSettled:function(){u(!1)}}),x=function(S){return Ct(void 0,void 0,void 0,function(){return xt(this,function(A){switch(A.label){case 0:return u(!0),[4,C.mutate(S.SettingName)];case 1:return A.sent(),[2]}})})},w=function(S,A){A!=="clickaway"&&s(!1)};return b.useEffect(function(){n&&(y(),t&&(M("SettingName",t.SettingName),M("Value",t.Value),M("Description",t.Description)))},[n]),b.createElement(b.Fragment,null,n&&b.createElement(Mn,{title:"Delete Setting".concat(i?" - ".concat(i):"")}),b.createElement(D,{container:!0},b.createElement(D,{item:!0},b.createElement(We,{title:"DELETE SETTING",open:n,handleClose:function(){return r(!1)},id:"delete-setting-modal",maxWidth:"md"},b.createElement("form",{onSubmit:v(x)},b.createElement(We.Content,{style:{padding:"15px 30px 0"}},b.createElement(D,{container:!0,spacing:2},b.createElement(D,{item:!0,xs:12,md:6},b.createElement(Ue,{name:"SettingName",control:m,rules:{required:"Name is required"},render:function(S){var A=S.field,z=S.fieldState.error;return b.createElement(je,tt({disabled:!0},A,{label:"Name",variant:"outlined",error:!!z,helperText:z?z.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),b.createElement(D,{item:!0,xs:12,md:6},b.createElement(Ue,{name:"Value",control:m,rules:{required:"Value is required"},render:function(S){var A=S.field,z=S.fieldState.error;return b.createElement(je,tt({disabled:!0},A,{label:"Value",variant:"outlined",error:!!z,helperText:z?z.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),b.createElement(D,{item:!0,md:12,xs:12,style:{margin:"12px 0 20px",padding:"0 8px"}},b.createElement(Ue,{name:"Description",control:m,render:function(S){var A=S.field,z=A.value,O=A.onChange;return b.createElement(je,{disabled:!0,style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Description",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:z,onChange:function(T){T.target.value.length<=200&&O(T)}})}})))),b.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},b.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,startIcon:c&&b.createElement(Kt,{size:"1rem"}),disabled:c,variant:"contained",color:"secondary",type:"submit"},"Delete")))))))),b.createElement(Mt,{error:p,onHide:function(){return h("")},title:"Error deleting Setting"}),b.createElement(pr,{open:a,autoHideDuration:2500,onClose:w},b.createElement(ph,{severity:"success",onClose:w},"The setting was deleted successfully")))},RCi=function(e){var t=e.settingSelected,n=e.show,r=e.onHide,i=e.suffixTitle,o=b.useState(!1),a=o[0],s=o[1],l=b.useState(!1),c=l[0],u=l[1],d=b.useState(""),p=d[0],h=d[1],g=Gn({defaultValues:t||g3e}),m=g.control,v=g.handleSubmit,y=g.reset,M=g.setValue,C=aa({mutationFn:OOt,onSuccess:function(){s(!0),r(!0)},onError:function(S){h(S.message)},onSettled:function(){u(!1)}}),x=function(S){return Ct(void 0,void 0,void 0,function(){var A;return xt(this,function(z){switch(z.label){case 0:return u(!0),[4,C.mutate({oldName:(A=t?.SettingName)!==null&&A!==void 0?A:null,newName:S.SettingName,description:S.Description,value:S.Value})];case 1:return z.sent(),[2]}})})},w=function(S,A){A!=="clickaway"&&s(!1)};return b.useEffect(function(){n&&(y(),t&&(M("SettingName",t.SettingName),M("Value",t.Value),M("Description",t.Description)))},[n]),b.createElement(b.Fragment,null,n&&b.createElement(Mn,{title:"Edit Setting".concat(i?" - ".concat(i):"")}),b.createElement(D,{container:!0},b.createElement(D,{item:!0},b.createElement(We,{title:"EDIT SETTING",open:n,handleClose:function(){return r(!1)},id:"edit-setting-modal",maxWidth:"md"},b.createElement("form",{onSubmit:v(x)},b.createElement(We.Content,{style:{padding:"15px 30px 0"}},b.createElement(D,{container:!0,spacing:2},b.createElement(D,{item:!0,xs:12,md:6},b.createElement(Ue,{name:"SettingName",control:m,rules:{required:"Name is required"},render:function(S){var A=S.field,z=S.fieldState.error;return b.createElement(je,tt({},A,{label:"Name",variant:"outlined",error:!!z,helperText:z?z.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),b.createElement(D,{item:!0,xs:12,md:6},b.createElement(Ue,{name:"Value",control:m,rules:{required:"Value is required",pattern:{value:/^[A-Za-z0-9]+$/,message:"Only letters and numbers are allowed"}},render:function(S){var A=S.field,z=S.fieldState.error;return b.createElement(je,tt({},A,{label:"Value",variant:"outlined",error:!!z,helperText:z?z.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"}))}})),b.createElement(D,{item:!0,md:12,xs:12,style:{margin:"12px 0 20px",padding:"0 8px"}},b.createElement(Ue,{name:"Description",control:m,render:function(S){var A=S.field,z=A.value,O=A.onChange;return b.createElement(je,{style:{margin:"8px 0"},size:"medium",maxRows:5,label:"Description",multiline:!0,variant:"outlined",fullWidth:!0,autoComplete:"off",value:z,onChange:function(T){T.target.value.length<=200&&O(T)}})}})))),b.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},b.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r(!1)}},"Cancel")),b.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},b.createElement(Fe,{fullWidth:!0,startIcon:c&&b.createElement(Kt,{size:"1rem"}),disabled:c,variant:"contained",color:"primary",type:"submit"},"Save")))))))),b.createElement(Mt,{error:p,onHide:function(){return h("")},title:"Error updating Setting"}),b.createElement(pr,{open:a,autoHideDuration:2500,onClose:w},b.createElement(ph,{severity:"success",onClose:w},"The setting was edited successfully")))},ICi=function(){var e=Gf(),t=ks(),n=t.showContextMenu,r=t.registerConfig,i=b.useState(""),o=i[0],a=i[1],s=b.useState(null),l=s[0],c=s[1],u=b.useState(""),d=u[0],p=u[1],h=b.useState(null),g=h[0],m=h[1],v=b.useState(!1),y=v[0],M=v[1],C=b.useState(!1),x=C[0],w=C[1],S=b.useState(!1),A=S[0],z=S[1],O=zOt(),T=O.data,I=O.isLoading,P=O.isError,N=O.error,F=SCi({setSettingId:m,setShowDeleteModal:z,setShowCreateModal:M,setShowEditModal:w}).getMenuOptions,L=OCi({setOpenModalEditSetting:w,setOpenModalDeleteSetting:z,showContextMenu:n,setSettingSelected:m}),W=L.columnDefs,H=L.defaultColDef,j=function(G){var q,$,U=(q=G.node)===null||q===void 0?void 0:q.data;return G.api.deselectAll(),($=G.node)===null||$===void 0||$.setSelected(!0),n(event,U,"TableSettings"),[]};return b.useEffect(function(){r({id:"TableSettings",getOptions:F})},[]),b.useEffect(function(){N&&P&&a(N.message)},[N,P]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0,justifyContent:"center"},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(bt,{variant:"h5",style:{margin:"0px 0 10px",fontWeight:600}},"Settings")),E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(je,{fullWidth:!0,label:"Search",variant:"outlined",size:"small",margin:"dense",value:d,onChange:function(G){p(G.target.value),l?.setGridOption("quickFilterText",G.target.value)},InputProps:{startAdornment:E.createElement(nc,{position:"start"},E.createElement(yn,{edge:"start",type:"submit"},E.createElement(_3,null)))}})),E.createElement(D,{item:!0,container:!0,md:12,xs:12,style:{padding:"2px 10px 0px"}},E.createElement(D,{item:!0,md:12,xs:12,style:{height:"70vh"}},E.createElement(kt,{style:{height:"100%",width:"100%"}},E.createElement(Kn,{loading:I,gridOptions:{theme:qw},rowData:T,columnDefs:W,defaultColDef:H,rowHeight:34,headerHeight:34,animateRows:!0,loadingOverlayComponent:Wm,getContextMenuItems:function(G){return j(G)},rowSelection:"single",onRowDoubleClicked:function(G){m(G.data),w(!0)},onGridReady:function(G){return c(G.api)}}))),E.createElement(D,{container:!0,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:2,xs:12,style:{display:"flex",justifyContent:"flex-end",marginTop:10}},E.createElement(Fe,{variant:"contained",color:"primary",onClick:function(){return M(!y)},fullWidth:!0},"NEW SETTING"))))),E.createElement(TCi,{settingSelected:g,show:y,onHide:function(G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){switch(q.label){case 0:return M(!1),G?[4,e.invalidateQueries({queryKey:["settings"]})]:[3,2];case 1:q.sent(),q.label=2;case 2:return[2]}})})},suffixTitle:"Settings"}),E.createElement(RCi,{settingSelected:g,show:x,onHide:function(G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){switch(q.label){case 0:return w(!1),G?[4,e.invalidateQueries({queryKey:["settings"]})]:[3,2];case 1:q.sent(),q.label=2;case 2:return[2]}})})},suffixTitle:"Settings"}),E.createElement(ECi,{settingSelected:g,show:A,onHide:function(G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){switch(q.label){case 0:return z(!1),G?[4,e.invalidateQueries({queryKey:["settings"]})]:[3,2];case 1:q.sent(),q.label=2;case 2:return[2]}})})},suffixTitle:"Settings"}),E.createElement(Mt,{error:o,onHide:function(){return a("")}}))},zOt=function(){return Bl({queryKey:["settings"],queryFn:function(){return Wyi()}})},PCi=function(){return E.createElement(E.Fragment,null,E.createElement(Mn,{title:"Settings"}),E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},E.createElement(ICi,null)))},DCi={serverTimeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,settings:{}},GX=Ni({name:"__",initialState:DCi,reducers:{setServerTimeZone:function(e,t){var n=t.payload;e.serverTimeZone=n},setSetting:function(e,t){var n=t.payload;e.settings[n.key]=n.value},initSettings:function(e,t){var n=t.payload;e.settings=n.reduce(function(r,i){if(i.SettingName.trim().toLowerCase()==="timezone"){var o=Rc.getInstance();o.setTimeZone(i.Value)}return r[i.SettingName.trim()]=i.Value,r},{})}}}),TOt=b.createContext({state:GX.getInitialState(),actions:GX.actions,isLoading:!0}),ka=function(){return b.useContext(TOt)},kCi=function(e){var t=e.children,n=Ui.useComplexState({initialState:GX.getInitialState(),reducers:GX.caseReducers}),r=n[0],i=n[1],o=zOt(),a=o.data,s=o.isLoading,l=o.isError,c=o.error,u=o.isSuccess,d=o.refetch;return b.useEffect(function(){if(u){var p=a,h=p.map(function(g){return tt(tt({},g),{SettingName:g.SettingName.trim()})});i.initSettings(h)}},[u]),b.useEffect(function(){c&&l&&console.error(c.message)},[c,l]),ote({onReceiveMessage:function(p,h){h==="UTL.GetSettings"&&d()}}),E.createElement(TOt.Provider,{value:{state:r,actions:i,isLoading:s}},t)},EOt=b.createContext(function(){return E.createElement(E.Fragment,null)}),ROt=b.createContext([[],function(){return E.createElement(E.Fragment,null)}]),IOt=b.createContext(function(){return E.createElement(E.Fragment,null)}),LCi=b.lazy(function(){return Promise.resolve().then(function(){return tSi}).then(function(e){return{default:e.AreaSelector}})}),_Ci=Rt(function(e){return{appBar:{backgroundColor:e.palette.primary.main},title:{flexGrow:0,marginRight:e.spacing(2),textDecoration:"none",color:"white",textWrap:"nowrap"},navContainer:{display:"flex",flexGrow:1,"& a":{color:"white"}},rightItems:{display:"flex",alignItems:"center",color:"white"},menuButton:{marginRight:e.spacing(2),color:"white"},drawer:{width:250,"& .MuiDrawer-paper":{width:250,marginTop:56,height:"calc(100% - 56px)",backgroundColor:e.palette.grey[100]}},mobileNav:{width:"100%",backgroundColor:e.palette.grey[100],"& a, & button":{width:"100%",justifyContent:"flex-start",padding:e.spacing(1,2),color:e.palette.text.primary}}}});function NCi(e){var t=e.showAreaSelector,n=t===void 0?!1:t,r=e.showTrendingsIcon,i=r===void 0?!0:r,o=e.showTrendingsV2Icon,a=o===void 0?!0:o,s=e.navbarTitle,l=s===void 0?"MESF":s,c=_Ci(),u=b.useState(""),d=u[0],p=u[1],h=b.useContext(IOt),g=b.useState(!1),m=g[0],v=g[1],y=wOt();Bw().state.userLogged;var M=function(){v(!m)};b.useEffect(function(){var x=function(w){var S=w.target,A=S.closest(".MuiMenuItem-root");A&&v(!1)};return document.addEventListener("click",x),function(){document.removeEventListener("click",x)}},[]);var C=y("ui.navbar.settings");return E.createElement(E.Fragment,null,E.createElement(wMe,{position:"static",className:c.appBar},E.createElement(eQ,null,E.createElement(ZIe,{mdUp:!0},E.createElement(yn,{edge:"start",className:c.menuButton,color:"inherit","aria-label":"menu",onClick:M},E.createElement(J5n,null))),E.createElement(bt,{variant:"h6",component:Xo,to:"/home",className:c.title},l),E.createElement("div",{className:c.navContainer},E.createElement(ZIe,{smDown:!0},E.createElement(h,{closeDrawer:M}))),E.createElement("div",{className:c.rightItems},i&&E.createElement(tl,{title:"Trendings",placement:"bottom",arrow:!0,enterDelay:1500},E.createElement(yn,{color:"inherit",component:Xo,to:"/trendings"},E.createElement(iNn,null))),a&&E.createElement(tl,{title:"Trendings V2 (ECharts)",placement:"bottom",arrow:!0,enterDelay:1500},E.createElement(yn,{color:"inherit",component:Xo,to:"/trendings-v2"},E.createElement(sNn,null))),C&&E.createElement(tl,{title:"Settings",placement:"bottom"},E.createElement(yn,{color:"inherit",component:Xo,to:"/configuration"},E.createElement(Nxe,null))),n&&E.createElement(b.Suspense,{fallback:E.createElement("div",null,"...")},E.createElement(LCi,null)),E.createElement(xCi,null)))),E.createElement(Uot,{variant:"temporary",anchor:"left",open:m,onClose:M,className:c.drawer,ModalProps:{keepMounted:!0}},E.createElement("div",{className:c.mobileNav},E.createElement(h,{isMobile:!0}))),E.createElement(Mt,{error:d,onHide:function(){return p("")}}))}var FCi=function(){return E.createElement("div",{style:{backgroundImage:'url("/home.jpg")',backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",minHeight:"100%",height:"100vh",width:"100%",position:"absolute"}})},WCi=Rt(function(e){return{root:{width:"100%",maxWidth:800,margin:"0 auto",padding:e.spacing(3)},messageList:{height:400,overflow:"auto",marginBottom:e.spacing(2),padding:e.spacing(2),backgroundColor:e.palette.background.default},messageForm:{display:"flex",gap:e.spacing(2)},messageInput:{flexGrow:1},timestamp:{color:e.palette.text.secondary,fontSize:"0.8rem"},statusChip:{marginBottom:e.spacing(2)}}}),qCi=function(){var e=WCi(),t=b.useState("/ws"),n=t[0];t[1];var r=b.useState(null),i=r[0],o=r[1],a=b.useState({isConnected:!1}),s=a[0],l=a[1],c=b.useState([]),u=c[0],d=c[1],p=b.useState(""),h=p[0],g=p[1],m=b.useState(""),v=m[0],y=m[1],M=b.useRef(null),C=b.useRef([]);C.current=u;var x=function(){var A;(A=M.current)===null||A===void 0||A.scrollIntoView({behavior:"smooth"})};b.useEffect(function(){x()},[u]);var w=b.useCallback(function(){return Ct(void 0,void 0,void 0,function(){var A,z;return xt(this,function(O){switch(O.label){case 0:return O.trys.push([0,2,,3]),A=new LJe().withUrl(n).withAutomaticReconnect().configureLogging(on.Information).build(),A.on("ReceiveMessage",function(T,I){var P={user:T,message:I,timestamp:new Date};d(function(N){return xi(xi([],N,!0),[P],!1)})}),A.on("UserConnected",function(T){console.log("User connected: ".concat(T)),l(function(I){return tt(tt({},I),{isConnected:!0,connectionId:T})})}),A.on("UserDisconnected",function(T){console.log("User disconnected: ".concat(T)),T===s.connectionId&&l(function(I){return tt(tt({},I),{isConnected:!1,connectionId:void 0})})}),[4,A.start()];case 1:return O.sent(),o(A),console.log("SignalR Connected"),[3,3];case 2:return z=O.sent(),console.error("SignalR Connection Error:",z),l(function(T){return tt(tt({},T),{isConnected:!1,error:z})}),[3,3];case 3:return[2]}})})},[n]);b.useEffect(function(){return w(),function(){i?.stop()}},[w]);var S=function(A){return Ct(void 0,void 0,void 0,function(){var z;return xt(this,function(O){switch(O.label){case 0:if(A.preventDefault(),!i||!v||!h)return[2];O.label=1;case 1:return O.trys.push([1,3,,4]),[4,i.invoke("SendMessage",h,v)];case 2:return O.sent(),y(""),[3,4];case 3:return z=O.sent(),console.error("Error sending message:",z),[3,4];case 4:return[2]}})})};return E.createElement(E.Fragment,null,E.createElement(Mn,{title:"Client - Real Time"}),E.createElement(kt,{className:e.root,elevation:3},E.createElement(Tn,{mb:2},E.createElement(fM,{label:s.isConnected?"Connected":"Disconnected",color:s.isConnected?"primary":"default",className:e.statusChip}),s.error&&E.createElement(bt,{color:"error"},"Error: ",s.error.message)),E.createElement(kt,{className:e.messageList,variant:"outlined"},E.createElement(tp,null,u.map(function(A,z){return E.createElement(ya,{key:z},E.createElement(na,{primary:E.createElement(bt,null,E.createElement("strong",null,A.user,":")," ",A.message),secondary:E.createElement("span",{className:e.timestamp},A.timestamp.toLocaleTimeString())}))}),E.createElement("div",{ref:M}))),E.createElement("form",{onSubmit:S,className:e.messageForm},E.createElement(je,{value:h,onChange:function(A){return g(A.target.value)},label:"Your name",variant:"outlined",size:"small"}),E.createElement(je,{className:e.messageInput,value:v,onChange:function(A){return y(A.target.value)},label:"Type a message",variant:"outlined",size:"small"}),E.createElement(Fe,{type:"submit",variant:"contained",color:"primary",disabled:!s.isConnected||!h||!v,endIcon:E.createElement(v1n,null)},"Send"))))},BCi=function(){return Ct(void 0,void 0,void 0,function(){var e,t,n,r;return xt(this,function(i){switch(i.label){case 0:return e=new Ye,[4,e.callV2("[SYSTEM].[GetQueryCacheInvalidations]",[])];case 1:if(t=i.sent(),t.ok)return n=Ot(t,"data.tables[0].rows",[]),r=Ot(t,"data.tables[1].rows",[]),[2,{cacheInvalidations:n,actions:r}];throw new Error(t.message||"Error fetching query cache invalidations")}})})},jCi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i=t.actionId,o=t.targets;return xt(this,function(a){switch(a.label){case 0:return n=new Ye,[4,n.callV2("[SYSTEM].[UpsertQueryCacheInvalidations]",[{name:"SourceId",value:i},{name:"TargetsCSV",value:o.map(function(s){return s.ActionId}).join(",")}])];case 1:if(r=a.sent(),!r.ok)throw new Error(r.message||"Error when upsert query cache invalidations");return[2]}})})},HCi=function(){return Bl({queryKey:["queryCacheInvalidations"],queryFn:function(){return BCi()}})},VCi=function(){var e=b.useRef(null),t=b.useState([]),n=t[0],r=t[1],i=b.useState([]),o=i[0],a=i[1],s=b.useState(""),l=s[0],c=s[1],u=b.useState(null);u[0];var d=u[1],p=b.useState("");p[0];var h=p[1],g=b.useState(!1),m=g[0],v=g[1],y=Gn({defaultValues:{source:null,targets:[]}}),M=y.control,C=y.reset,x=y.handleSubmit,w=b.useMemo(function(){return{sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}},[]),S=[{field:"SourceId",headerName:"Source ID",flex:1},{field:"Source",headerName:"Source",flex:2},{field:"TargetNamesCSV",headerName:"Targets",flex:3},{headerName:"Actions",flex:1,cellRenderer:function(G){return E.createElement(Fe,{variant:"contained",color:"primary",onClick:function(){return W(G.data)},style:{width:"100%",height:"28px",minWidth:"60px"}},"EDIT")}}],A=HCi(),z=A.data,O=A.isLoading,T=A.isSuccess,I=A.isError,P=A.error,N=A.isFetched,F=A.refetch,L=function(){C({source:null,targets:[]}),c("add")},W=function(G){d(G);var q=G.TargetsCSV.split(",").map(Number);C({source:o.find(function($){return $.ActionId===G.SourceId})||null,targets:o.filter(function($){return q.includes($.ActionId)})}),c("edit")},H=aa({mutationFn:jCi,onSuccess:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(G){switch(G.label){case 0:return h("Operation successful"),[4,F()];case 1:return G.sent(),[2]}})})},onError:function(G){h("Operation failed")},onSettled:function(){c(""),v(!1)}}),j=function(G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){switch(q.label){case 0:return G.source?(v(!0),[4,H.mutate({actionId:G.source.ActionId,targets:G.targets})]):[2];case 1:return q.sent(),[2]}})})};return b.useEffect(function(){T&&N&&(r(z.cacheInvalidations),a(z.actions))},[T,N,z]),b.useEffect(function(){P&&I&&(h("Failed to fetch data"),console.error("Fetch error:",P.message))},[P,I]),E.createElement(E.Fragment,null,E.createElement(Mn,{title:"Query Cache Invalidations - Real Time"}),["add","edit"].includes(l)&&E.createElement(Mn,{title:"".concat(l==="add"?"Add Cache Invalidation":"Edit Cache Invalidation"," - Query Cache Invalidations")}),E.createElement(D,{container:!0,justifyContent:"flex-start",alignItems:"center"},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(bt,{variant:"h5",style:{margin:"0px 0px 10px",fontWeight:600}},"Query Cache Invalidations")),E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center"},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"0 10px"}},E.createElement(D,{component:kt,item:!0,md:12,xs:12,style:{height:"70vh"}},E.createElement(Kn,{loading:O,gridOptions:{theme:qw},ref:e,rowData:n,columnDefs:S,defaultColDef:w,rowHeight:34,headerHeight:34,animateRows:!0,rowSelection:"single",onRowDoubleClicked:function(G){W(G.data)}})),E.createElement(D,{container:!0,justifyContent:"flex-end",style:{marginTop:10}},E.createElement(D,{item:!0,md:2,xs:12},E.createElement(Fe,{variant:"contained",color:"primary",onClick:L,fullWidth:!0},"ADD NEW"))))),E.createElement(We,{title:l==="add"?"Add Cache Invalidation":"Edit Cache Invalidation",open:["add","edit"].includes(l),handleClose:function(){return c("")}},E.createElement("form",{onSubmit:x(j)},E.createElement(We.Content,{dividers:!0},E.createElement(D,{container:!0,spacing:3},E.createElement(D,{item:!0,xs:12},E.createElement(Ue,{control:M,name:"source",render:function(G){return E.createElement(Ji,{options:o,getOptionLabel:function(q){return"".concat(q.ActionName)},value:G.field.value,onChange:function(q,$){return G.field.onChange($)},renderInput:function(q){return E.createElement(je,tt({},q,{label:"Select Source Action",variant:"outlined"}))},style:{marginTop:16,marginBottom:16},disabled:l==="edit"})}})),E.createElement(D,{item:!0,xs:12},E.createElement(Ue,{control:M,name:"targets",render:function(G){return E.createElement(Ji,{multiple:!0,options:o.filter(function(q){var $;return q.ActionId!==(($=M._formValues.source)===null||$===void 0?void 0:$.ActionId)}),getOptionLabel:function(q){return q.ActionName},value:G.field.value,onChange:function(q,$){G.field.onChange($)},renderInput:function(q){return E.createElement(je,tt({},q,{label:"Select Target Actions",variant:"outlined"}))},style:{marginTop:16,marginBottom:16}})}})))),E.createElement(We.Actions,null,E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return c("")}},"Cancel")),E.createElement(D,{item:!0,md:3,xs:12},E.createElement(Fe,{fullWidth:!0,startIcon:m&&E.createElement(Kt,{size:"1rem"}),disabled:m,variant:"contained",color:"primary",type:"submit"},"Save"))))))))},GCi=function(){return E.createElement(PCi,null)},$Ci=function(){var e=Ms().option,t=b.useContext(ROt),n=t[0],r=t[1],i=xi([{path:"/",sidebar:function(){return E.createElement("div",null,"Configuration")},main:function(){return E.createElement(HO,{to:"users"})}},{path:"shifts",sidebar:function(){return E.createElement("div",null,"Shifts")},main:function(){return E.createElement(Nyi,null)}},{path:"asset",sidebar:function(){return E.createElement("div",null,"Configuration Asset")},main:function(){return E.createElement(gMi,null)}},{path:"users",sidebar:function(){return E.createElement("div",null,"Users")},main:function(){return E.createElement(mMi,null)}},{path:"profiles",sidebar:function(){return E.createElement("div",null,"profiles")},main:function(){return E.createElement(Cyi,null)}},{path:"logs",sidebar:function(){return E.createElement("div",null,"Logs")},main:function(){return E.createElement(tyi,null)}},{path:"jobs",sidebar:function(){return E.createElement("div",null,"Jobs")},main:function(){return E.createElement(q2i,null)}},{path:"settings",sidebar:function(){return E.createElement("div",null,"Settings")},main:function(){return E.createElement(GCi,null)}},{path:"real-time/client",sidebar:function(){return E.createElement("div",null,"Client")},main:function(){return E.createElement(qCi,null)}},{path:"real-time/config",sidebar:function(){return E.createElement("div",null,"Config")},main:function(){return E.createElement(VCi,null)}}],n,!0),o=oc(),a=Kot(o.breakpoints.down("sm")),s=b.useState(!a),l=s[0],c=s[1];E.useEffect(function(){c(!a)},[a]);var u=function(){return E.createElement(E.Fragment,null,E.createElement(bt,{variant:"h6",style:{padding:o.spacing(2,2,1),color:o.palette.primary.main}},"Configuration"),E.createElement(ua,null),E.createElement(tp,{subheader:E.createElement(qv,{style:{backgroundColor:o.palette.background.paper,color:o.palette.primary.main,fontWeight:600}},"Plant")},E.createElement(ya,{button:!0,selected:e==="shifts",component:Xo,to:"/configuration/shifts"},E.createElement($0,null,E.createElement(g1n,null)),E.createElement(na,{primary:"Shift / Crews"})),E.createElement(ya,{button:!0,selected:e==="asset",component:Xo,to:"/configuration/asset"},E.createElement($0,null,E.createElement(y1n,null)),E.createElement(na,{primary:"Assets Tree"}))),E.createElement(ua,null),E.createElement(tp,{subheader:E.createElement(qv,{style:{backgroundColor:o.palette.background.paper,color:o.palette.primary.main,fontWeight:600}},"Security")},E.createElement(ya,{button:!0,selected:e==="users",component:Xo,to:"/configuration/users"},E.createElement($0,null,E.createElement(h1n,null)),E.createElement(na,{primary:"Users"})),E.createElement(ya,{button:!0,selected:e==="profiles",component:Xo,to:"/configuration/profiles"},E.createElement($0,null,E.createElement(a1n,null)),E.createElement(na,{primary:"Profiles"}))),E.createElement(ua,null),E.createElement("div",null,E.createElement(r,{option:e})),E.createElement(ua,null),E.createElement(tp,{subheader:E.createElement(qv,{style:{backgroundColor:o.palette.background.paper,color:o.palette.primary.main,fontWeight:600}},"Real Time")},E.createElement(ya,{button:!0,selected:e==="real-time/client",component:Xo,to:"/configuration/real-time/client"},E.createElement($0,null,E.createElement(c1n,null)),E.createElement(na,{primary:"Client"})),E.createElement(ya,{button:!0,selected:e==="real-time/config",component:Xo,to:"/configuration/real-time/config"},E.createElement($0,null,E.createElement(M1n,null)),E.createElement(na,{primary:"Config"}))),E.createElement(ua,null),E.createElement(tp,{subheader:E.createElement(qv,{style:{backgroundColor:o.palette.background.paper,color:o.palette.primary.main,fontWeight:600}},"Maintenance")},E.createElement(ya,{button:!0,selected:e==="logs",component:Xo,to:"/configuration/logs"},E.createElement($0,null,E.createElement($at,null)),E.createElement(na,{primary:"Logs"})),E.createElement(ya,{button:!0,selected:e==="jobs",component:Xo,to:"/configuration/jobs"},E.createElement($0,null,E.createElement(l1n,null)),E.createElement(na,{primary:"Jobs"})),E.createElement(ya,{button:!0,selected:e==="settings",component:Xo,to:"/configuration/settings"},E.createElement($0,null,E.createElement(b1n,null)),E.createElement(na,{primary:"Settings"}))))};return b.useEffect(function(){var d=function(p){var h=p.target,g=h.closest(".MuiListItem-root");g&&a&&c(!1)};return document.addEventListener("click",d),function(){document.removeEventListener("click",d)}},[a]),E.createElement("div",{style:{display:"flex",position:"relative"}},E.createElement(Uot,{variant:a?"temporary":"permanent",open:l,onClose:function(){return a&&c(!1)},style:{width:l?240:0,flexShrink:0},PaperProps:{style:{width:240,height:"calc(100vh - 64px)",backgroundColor:o.palette.background.paper,top:64,zIndex:1200}}},u()),E.createElement("main",{style:{flexGrow:1,padding:o.spacing(3),transition:o.transitions.create(["padding-left"],{easing:o.transitions.easing.sharp,duration:o.transitions.duration.leavingScreen}),width:"100%"}},E.createElement(ZQ,null,i.map(function(d){return E.createElement(cr,{key:"".concat(d.path),path:d.path,element:E.createElement(E.Fragment,null,a&&E.createElement(yn,{onClick:function(){return c(!l)},style:{position:"relative",left:0,top:-10,zIndex:1100,borderRadius:"0 4px 4px 0",color:o.palette.primary.main,backgroundColor:o.palette.background.paper}},l?E.createElement(L6,null):E.createElement(f1n,null)),E.createElement(d.main,null))})}))))},m3e=["#5eaf60","green","#62bd9c","#53a285","#add8e6","#3280ba","blue","#5293c5","#3d556f","#a362bf","#dab0d8","black","#e74b3c","red","#bf3b2c"],vC=xi([],m3e,!0),ope=null,gj=function(){vC.length===0&&(vC=xi([],m3e,!0),ope&&vC.length>1&&vC.splice(vC.indexOf(ope),1));var e=Math.floor(Math.random()*vC.length),t=vC[e];return vC.splice(e,1),ope=t,t},POt=b.createContext(void 0),UCi=function(){var e=new Date,t=new Date(e.getTime()-480*60*1e3);return{start:t,end:e}},XCi=function(e){var t=e.children,n=UCi(),r=b.useState({}),i=r[0],o=r[1],a=b.useState(null),s=a[0],l=a[1],c=b.useState([]),u=c[0],d=c[1],p=b.useState(n.start),h=p[0],g=p[1],m=b.useState(n.end),v=m[0],y=m[1],M=b.useState("1 hour"),C=M[0],x=M[1],w=b.useState(!1),S=w[0],A=w[1],z=b.useState(null),O=z[0],T=z[1],I=b.useState({showLegend:!1,showTooltip:!0,animation:!1,theme:"light"}),P=I[0],N=I[1],F=b.useState({}),L=F[0],W=F[1],H=b.useState(null),j=H[0],G=H[1],q=b.useState(function(){var ne=n.end.getTime()-n.start.getTime();return n.start.getTime()+ne*.1}),$=q[0],U=q[1],X=b.useState(function(){var ne=n.end.getTime()-n.start.getTime();return n.start.getTime()+ne*.9}),Q=X[0],re=X[1],ee=b.useState(null),se=ee[0],pe=ee[1],te=b.useMemo(function(){return{viewTags:i,viewSelected:s,views:u,timeScopeStart:h,timeScopeEnd:v,scope:C,shouldRefetchSeries:S,cursorData:O,chartConfig:P,seriesMinMax:L,highlightedSeries:j,cursor1Time:$,cursor2Time:Q,selectedCursor:se}},[i,s,u,h,v,C,S,O,P,L,j,$,Q,se]),ce=E.useCallback(function(){var ne=v.getTime()-h.getTime(),le=h.getTime()+ne*.1,he=h.getTime()+ne*.9;U(le),re(he)},[h,v]);E.useEffect(function(){var ne=v.getTime()-h.getTime(),le=ne*.5,he=$<h.getTime()-le||$>v.getTime()+le,be=Q<h.getTime()-le||Q>v.getTime()+le;(he||be)&&ce()},[h,v,$,Q,ce]);var oe=b.useMemo(function(){return{setViewTags:o,setViewTagsAndRefetch:function(ne){o(ne),A(function(le){return!le})},setViewSelected:l,setViews:d,setTotalScope:function(ne){var le=ne.start,he=ne.end,be=ne.scope;ne.graphPan,le&&g(le),he&&y(he),be&&x(be),A(function(me){return!me})},setCursorData:T,setChartConfig:function(ne){N(function(le){return tt(tt({},le),ne)})},triggerSeriesRefetch:function(){A(function(ne){return!ne})},setSeriesMinMax:W,highlightSeries:function(ne){G(ne)},updateCursor1Time:function(ne){var le=v.getTime()-h.getTime(),he=le*.01,be=Math.max(h.getTime(),Math.min(ne,Q-he));U(be)},updateCursor2Time:function(ne){var le=v.getTime()-h.getTime(),he=le*.01,be=Math.min(v.getTime(),Math.max(ne,$+he));re(be)},setSelectedCursor:pe,resetCursors:ce}},[h,v,$,Q,ce]),ae=b.useMemo(function(){return{state:te,actions:oe}},[te,oe]);return E.createElement(POt.Provider,{value:ae},t)},Rk=function(){var e=b.useContext(POt);if(!e)throw new Error("useTrendingContextV2 must be used within TrendingProviderV2");return e},YCi=function(e,t){return b.useMemo(function(){var n={};return!e||e.length===0||e.forEach(function(r,i){var o=t[i];if(!(!o||!r||r.length===0)){for(var a=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,l=0,c=r;l<c.length;l++){var u=c[l];u.value!==null&&u.value!==void 0&&(u.value<a&&(a=u.value),u.value>s&&(s=u.value))}a!==Number.POSITIVE_INFINITY&&s!==Number.NEGATIVE_INFINITY?n[o]={min:a,max:s}:n[o]={min:0,max:0}}}),n},[e,t])},qm=function(){return localStorage.getItem("ihPath")||"[mssql2022].[IH_100020].[ih]"},DOt=function(){return Ct(void 0,void 0,void 0,function(){var e,t,n;return xt(this,function(r){switch(r.label){case 0:return e=new Ye,t=[],[4,e.callV2(qm()+".[GetTagsTree]",t)];case 1:return n=r.sent(),[2,n]}})})},KCi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i;return xt(this,function(o){switch(o.label){case 0:return t=new Ye,n=[],r=1e6,e&&e>r&&(e=e-r),n.push({name:"TagFolderId",value:e}),[4,t.callV2(qm()+".[DeleteTagFolder]",n)];case 1:return i=o.sent(),[2,i]}})})},ste=function(e,t,n,r){return Ct(void 0,void 0,void 0,function(){var i,o,a,s;return xt(this,function(l){switch(l.label){case 0:return i=new Ye,o=[],a=1e6,e&&e>a&&(e=e-a),t&&t>a&&(t=t-a),o.push({name:"TagFolderId",value:e}),o.push({name:"ParentTagFolderId",value:t}),o.push({name:"TagFolderName",value:n}),o.push({name:"IsActive",value:r}),[4,i.callV2(qm()+".[UpsertTagFolder]",o)];case 1:return s=l.sent(),[2,s]}})})},kOt=function(e,t){return Ct(void 0,void 0,void 0,function(){var n,r,i,o;return xt(this,function(a){switch(a.label){case 0:return n=new Ye,r=[],i=1e6,t&&t>i&&(t=t-i),r.push({name:"TagId",value:e}),r.push({name:"TagFolderId",value:t}),[4,n.callV2(qm()+".[ChangeTagFolderToTag]",r)];case 1:return o=a.sent(),[2,o]}})})},LOt=function(e,t,n,r,i,o){return Ct(void 0,void 0,void 0,function(){var a,s,l;return xt(this,function(c){switch(c.label){case 0:return a=new Ye,s=[],s.push({name:"TagId",value:e}),s.push({name:"Alias",value:t}),s.push({name:"Color",value:n}),s.push({name:"MinScale",value:r}),s.push({name:"MaxScale",value:i}),s.push({name:"Unit",value:o}),[4,a.callV2(qm()+".[SaveTagDefaults]",s)];case 1:return l=c.sent(),[2,l]}})})},_Ot=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[],n.push({name:"Search",value:e}),[4,t.callV2(qm()+".[GetViews]",n)];case 1:return r=i.sent(),[2,r]}})})},mj=function(e,t,n){return Ct(void 0,void 0,void 0,function(){var r,i,o;return xt(this,function(a){switch(a.label){case 0:return r=new Ye,i=[],i.push({name:"ViewId",value:e}),i.push({name:"ViewName",value:t}),i.push({name:"isPublic",value:n}),[4,r.callV2(qm()+".[UpsertView]",i)];case 1:return o=a.sent(),[2,o]}})})},NOt=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[],n.push({name:"ViewId",value:e}),[4,t.callV2(qm()+".[DeleteView]",n)];case 1:return r=i.sent(),[2,r]}})})},v3e=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[],n.push({name:"ViewId",value:e}),[4,t.callV2(qm()+".[GetViewTags]",n)];case 1:return r=i.sent(),[2,r]}})})},nD=function(e,t,n,r,i,o,a,s){return Ct(void 0,void 0,void 0,function(){var l,c,u;return xt(this,function(d){switch(d.label){case 0:return l=new Ye,c=[],c.push({name:"ViewId",value:e}),c.push({name:"TagId",value:t}),c.push({name:"Color",value:n}),c.push({name:"MinScale",value:r}),c.push({name:"MaxScale",value:i}),c.push({name:"IsVisible",value:o}),c.push({name:"IsAutoScale",value:a}),c.push({name:"Unit",value:s}),[4,l.callV2(qm()+".[UpsertViewTag]",c)];case 1:return u=d.sent(),[2,u]}})})},FOt=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[],n.push({name:"ViewId",value:e}),[4,t.callV2(qm()+".[DeleteAllViewTagsFromView]",n)];case 1:return r=i.sent(),[2,r]}})})},sT=Rt(function(e){return{datetimePicker:{alignItems:"center","& .MuiInputBase-root":{color:"black",backgroundColor:"white",borderRadius:e.shape.borderRadius,width:"90%",minWidth:"90%",maxWidth:"90%"},"& .MuiInputBase-input":{fontSize:"13px !important",height:"15px !important",paddingRight:"3px",paddingLeft:"3px"},"& .MuiInput-underline:before":{borderBottomColor:"rgba(0, 0, 0, 0.42)"},padding:0},select:{"& .MuiInput-root":{width:"100%"},"& .MuiInputBase-root":{color:"black",backgroundColor:"white",borderRadius:e.shape.borderRadius,minWidth:"100%"},"& .MuiInputBase-input":{fontSize:"14px !important",height:"15px !important"},"& .MuiInput-underline:before":{borderBottomColor:"rgba(0, 0, 0, 0.42)"},padding:0},labelOptions:{paddingLeft:"2rem",userSelect:"none","& > label":{display:"flex",alignItems:"center",gap:"5px"},'& input[type="checkbox"]':{zoom:1.5}},isPublicCheckbox:{userSelect:"none",paddingLeft:"1rem","& > label":{display:"flex",alignItems:"center",gap:"15px"},'& input[type="checkbox"]':{zoom:1.5}},navigatorButton:{"& .MuiSvgIcon-root":{cursor:"pointer !important",height:"24px",width:"24px","& svg":{fontSize:"1.5rem"}},color:"black"},iconContainer:{display:"flex",justifyContent:"flex-end",alignItems:"center",flex:1},optionContainer:{display:"flex",justifyContent:"flex-start",alignItems:"center",width:"100%"},optionLabel:{flexGrow:1},inputCustom:{color:"rgba(0, 0, 0, 0.87)",cursor:"text",fontSize:"0.7rem",boxSizing:"border-box",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',fontWeight:400,lineHeight:1.1876,letterSpacing:"0.00938em","& .MuiOutlinedInput-input":{padding:"10px 10px"}}}}),QCi=Rt(function(e){return{checkbox:{userSelect:"none","& .MuiOutlinedInput-root":{height:"51px"},margin:"8px 0px"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},colorPicker:{border:"1px solid #c4c4c4",borderRadius:"4px",padding:"3.5px"}}}),WOt=function(e,t,n,r,i){i===void 0&&(i=!1);var o,a=t;if(i)if(a=new Date,n==="custom")o=e;else{var s=n.split(" "),l=s[0],c=s[1];o=mt(a).subtract(l,c[0]).toDate()}else if(n==="custom"){var u=mt(t).diff(mt(e));o=mt(e)[r](u).toDate()}else{var d=n.split(" "),l=d[0],c=d[1];o=mt(e)[r](l,c[0]).toDate(),a=mt(t)[r](l,c[0]).toDate()}return{newStartDate:o,newEndDate:a}},qOt=function(e){var t=e.title,n=e.message,r=e.open,i=e.onClose,o=e.suffixTitle,a=a2(e,["title","message","open","onClose","suffixTitle"]),s=function(){i("Cancel")},l=function(){i("OK")};return E.createElement(E.Fragment,null,r&&E.createElement(Mn,{title:"".concat(t).concat(o?" - ".concat(o):"")}),E.createElement(Qu,tt({maxWidth:"xs",open:r},a),E.createElement(T0,null,t),E.createElement(ru,{dividers:!0},E.createElement(gM,null,n)),E.createElement(Td,null,E.createElement(Fe,{variant:"contained",size:"small",autoFocus:!0,onClick:s},"Cancel"),E.createElement(Fe,{variant:"contained",size:"small",color:"primary",onClick:l},"Ok"))))},b3e=function(e){var t,n,r,i=e.open,o=e.mode,a=e.handleClose,s=e.view,l=QCi(),c=Gf(),u=b.useState(!1),d=u[0],p=u[1],h=b.useState(!1),g=h[0],m=h[1],v=b.useState(""),y=v[0],M=v[1],C=b.useState(""),x=C[0],w=C[1],S=b.useState(!1),A=S[0],z=S[1],O=Rk(),T=O.state,I=T.viewTags,P=T.views,N=T.viewSelected,F=O.actions.setViewSelected,L=Gn({defaultValues:{ViewId:null,ViewName:"",IsPublic:!0}}),W=L.register,H=L.control,j=L.handleSubmit,G=L.reset,q=L.setValue,$=L.watch,U=L.formState.errors,X=$("ViewName"),Q=b.useMemo(function(){switch(o){case"update":return"UPDATE VIEW";case"delete":return"DELETE VIEW";case"create":default:return"SAVE VIEW AS"}},[o]),re=function(oe,ae){ae!=="clickaway"&&m(!1)},ee=aa({mutationFn:function(oe){var ae=oe.viewId,ne=oe.tagId,le=oe.color,he=oe.minScale,be=oe.maxScale,me=oe.isVisible,Me=oe.isAutoScale,Oe=oe.unit;return nD(ae,ne,le,he,be,me,Me,Oe)},onError:function(oe){w(oe.message)}}),se=aa({mutationFn:function(oe){return NOt(oe)},onSuccess:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(oe){switch(oe.label){case 0:return M("The view was deleted successfully"),m(!0),[4,c.invalidateQueries({queryKey:["views-v2"]})];case 1:return oe.sent(),a(!0),[2]}})})},onError:function(oe){w(oe.message)}}),pe=aa({mutationFn:function(oe){return Ct(void 0,[oe],void 0,function(ae){var ne,le,he,be,me,Me=ae.viewId,Oe=ae.viewName,de=ae.isPublic;return xt(this,function(ie){switch(ie.label){case 0:return[4,mj(Me,Oe,de)];case 1:if(ne=ie.sent(),ne.ok)return le=(me=(be=(he=ne.data.tables[0].rows[0])===null||he===void 0?void 0:he.ViewId)!==null&&be!==void 0?be:Me)!==null&&me!==void 0?me:0,[2,le];throw new Error(ne.message||"Failed to save view")}})})},onSuccess:function(oe){return Ct(void 0,void 0,void 0,function(){var ae,ne;return xt(this,function(le){switch(le.label){case 0:return[4,Promise.allSettled(Object.values(I).sort(function(he,be){return he.order-be.order}).map(function(he){return Ct(void 0,[he],void 0,function(be){var me=be.viewTag;return xt(this,function(Me){switch(Me.label){case 0:return[4,ee.mutate({viewId:oe,tagId:me.TagId,color:me.Color,minScale:me.MinScale,maxScale:me.MaxScale,isVisible:me.IsVisible,isAutoScale:me.IsAutoScale,unit:me.Unit})];case 1:return Me.sent(),[2]}})})}))];case 1:return ae=le.sent(),ne=ae.filter(function(he){return he.status==="rejected"}),ne.length>0?(w("Some tags failed to save"),[3,4]):[3,2];case 2:return M(o==="update"?"The view was updated successfully":"The view was created successfully"),m(!0),[4,c.invalidateQueries({queryKey:["views-v2"]})];case 3:le.sent(),a(!0),le.label=4;case 4:return[2]}})})},onError:function(oe){w(oe.message)}}),te=function(oe){return Ct(void 0,void 0,void 0,function(){var ae;return xt(this,function(ne){switch(ne.label){case 0:return oe!=="OK"?(z(!1),[2]):(z(!1),p(!0),ae=s||N,gi(ae)?[3,2]:[4,se.mutate(ae.ViewId)]);case 1:ne.sent(),ne.label=2;case 2:return p(!1),[2]}})})},ce=function(oe){return Ct(void 0,void 0,void 0,function(){var ae,ne;return xt(this,function(le){switch(le.label){case 0:return p(!0),o!=="delete"?[3,1]:(z(!0),[3,3]);case 1:return ae=o==="update"?s||N:null,[4,pe.mutate({viewId:(ne=ae?.ViewId)!==null&&ne!==void 0?ne:null,viewName:oe.ViewName,isPublic:oe.IsPublic})];case 2:le.sent(),le.label=3;case 3:return p(!1),[2]}})})};return b.useEffect(function(){if(i)if(o==="update"||o==="delete"){var oe=s||N;oe&&G({ViewId:oe.ViewId,ViewName:oe.ViewName,IsPublic:oe.IsPublic})}else o==="create"&&G({ViewId:null,ViewName:"",IsPublic:!0})},[o,s,N,G,i]),E.createElement(E.Fragment,null,E.createElement(We,{open:i,handleClose:function(){return a(!1)},maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:Q},E.createElement("form",{onSubmit:j(ce)},E.createElement(We.Content,{dividers:!0,className:l.modalBody,style:{padding:"15px 30px"}},E.createElement(D,{container:!0,spacing:1},E.createElement(D,{item:!0,xs:12},o==="create"&&P.length>0&&N?E.createElement(Ji,{size:"small",id:"list-of-views",options:P,defaultValue:N,getOptionLabel:function(oe){return oe.ViewName},freeSolo:!0,onChange:function(oe,ae){ae&&typeof ae!="string"&&(F(ae),q("ViewName",""))},onInputChange:function(oe,ae){var ne=P.some(function(le){return le.ViewName===ae});ne||q("ViewName",ae)},style:{width:"100%"},renderInput:function(oe){var ae,ne;return E.createElement(je,tt({},oe,W("ViewName",{required:!0,maxLength:100}),{label:"Views",variant:"outlined",error:!!U.ViewName,helperText:((ae=U.ViewName)===null||ae===void 0?void 0:ae.type)==="maxLength"?"Maximum length is 100 characters":((ne=U.ViewName)===null||ne===void 0?void 0:ne.type)==="required"?"View name is required":"",margin:"dense",autoComplete:"off"}))}}):E.createElement(je,tt({},W("ViewName",{required:!0,maxLength:100}),{label:"View Name",variant:"outlined",error:!!U.ViewName,helperText:((t=U.ViewName)===null||t===void 0?void 0:t.type)==="maxLength"?"Maximum length is 100 characters":((n=U.ViewName)===null||n===void 0?void 0:n.type)==="required"?"View name is required":"",fullWidth:!0,margin:"dense",autoComplete:"off",disabled:o==="delete"}))),E.createElement(D,{item:!0,xs:12,md:6},E.createElement(Ue,{name:"IsPublic",control:H,render:function(oe){var ae=oe.field;return E.createElement("div",{onClick:function(){return o!=="delete"&&ae.onChange(!ae.value)},style:{cursor:o!=="delete"?"pointer":"default"}},E.createElement(je,{fullWidth:!0,variant:"outlined",label:"Public",value:"",disabled:!0,className:l.checkbox,InputLabelProps:{style:{color:o==="delete"?"#a4a4a4":"black",fontWeight:o==="delete"?500:400}},InputProps:{endAdornment:E.createElement(nc,{position:"end"},E.createElement(Qr,{checked:!!ae.value,onChange:function(ne){return ae.onChange(ne.target.checked)},color:"primary",disabled:o==="delete",size:"small",style:{cursor:o!=="delete"?"pointer":"default"}}))}}))}})))),E.createElement(We.Actions,{style:{padding:"20px 30px 30px"}},E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-end"},E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return a(!1)}},"Cancel")),E.createElement(D,{item:!0,md:3,xs:12,style:{margin:0}},E.createElement(Fe,{fullWidth:!0,startIcon:d&&E.createElement(Kt,{size:"1rem"}),disabled:d||o!=="delete"&&!X?.trim(),variant:"contained",color:o==="delete"?"secondary":"primary",type:"submit"},o==="delete"?"Delete":"Save")))))),E.createElement(qOt,{title:"Confirmation",message:"Are you sure you want to delete permanently the view: ".concat((r=s||N)===null||r===void 0?void 0:r.ViewName,"?"),open:A,onClose:te}),E.createElement(pr,{open:g,autoHideDuration:2500,onClose:re},E.createElement(Pr,{elevation:6,variant:"filled",severity:"success",onClose:re},y)),E.createElement(Mt,{error:x,onHide:function(){return w("")}}))},ZCi=function(e){switch(e){case"10 min":return 600*1e3;case"1 hour":return 3600*1e3;case"4 hours":return 14400*1e3;case"12 hours":return 720*60*1e3;case"1 day":return 1440*60*1e3;case"10 days":return 14400*60*1e3;case"custom":return null;default:return null}},ape=function(e,t,n){var r=ZCi(n);return r===null?null:t==="start"?{start:e,end:new Date(e.getTime()+r)}:{start:new Date(e.getTime()-r),end:e}},BOt=E.memo(function(e){var t=e.autoRefresh,n=e.setAutoRefresh,r=e.setChartOptions,i=e.chartInstance,o=Gf(),a=sT(),s=Rk(),l=s.state,c=l.timeScopeStart,u=l.timeScopeEnd,d=l.scope,p=l.viewSelected,h=l.views,g=s.actions,m=g.setTotalScope,v=g.setViewSelected,y=b.useState({showGridLines:!0,showSymbols:!1,smoothLines:!0,showLegend:!1,showTooltip:!0,combinedView:!1,showToolbox:!0,showYAxisNames:!0}),M=y[0],C=y[1],x=b.useState(null),w=x[0],S=x[1],A=b.useState(null),z=A[0],O=A[1],T=b.useState(""),I=T[0],P=T[1],N=function(U,X){X===void 0&&(X=!1);var Q=WOt(c,u,d,U,X);Q&&m({start:Q.newStartDate,end:Q.newEndDate,scope:d})},F=function(U){var X=mt(u).diff(mt(c)),Q=Math.round(X*.2),re=mt(c)[U](Q,"milliseconds").toDate(),ee=mt(u)[U](Q,"milliseconds").toDate();m({start:re,end:ee,scope:d})},L=function(U,X){var Q,re,ee=mt(U).toDate();if(d==="custom"){m((Q={},Q[X]=ee,Q));return}var se=ape(ee,X,d);m(se?{start:se.start,end:se.end,scope:d}:(re={},re[X]=ee,re))},W=function(U){if(U==="custom"){m({scope:U});return}var X=ape(c,"start",U);X&&m({start:X.start,end:X.end,scope:U})},H=function(U,X){return Ct(void 0,void 0,void 0,function(){return xt(this,function(Q){switch(Q.label){case 0:return X?(v(X),[4,o.invalidateQueries({queryKey:["viewTags-v2",X.ViewId]})]):[3,2];case 1:Q.sent(),Q.label=2;case 2:return[2]}})})},j=function(U,X){X.stopPropagation(),U.ViewId===p?.ViewId?P("Cannot delete current view"):(O(U),S("delete"))},G=function(U,X){X.stopPropagation(),O(U),S("update")},q=function(){!i||i._disposed||i.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!0})},$=function(){!i||i._disposed||i.dispatchAction({type:"restore"})};return b.useEffect(function(){r&&r(M)},[M,r]),E.createElement(E.Fragment,null,E.createElement(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"space-between",alignItems:"center",style:{height:"auto",minHeight:"50px"}},E.createElement(D,{md:5,item:!0,container:!0,justifyContent:"flex-start",alignItems:"center",wrap:"wrap"},E.createElement(kt,{elevation:0,style:{padding:"8px 12px",backgroundColor:"white",display:"flex",flexWrap:"wrap",gap:"4px",alignItems:"center",width:"100%",minHeight:"80px"}},E.createElement(D,{item:!0},E.createElement(yn,{color:"primary",onClick:function(){return N("subtract")},className:a.navigatorButton},E.createElement(L6,{fontSize:"large"}))),E.createElement(D,{item:!0},E.createElement(tl,{title:"Navigate backward 20%",arrow:!0},E.createElement(yn,{color:"primary",onClick:function(){return F("subtract")},className:a.navigatorButton},E.createElement(HFn,{fontSize:"large"})))),E.createElement(D,{item:!0},E.createElement(je,{type:"datetime-local",className:a.datetimePicker,label:"Start",variant:"outlined",value:mt(c).format("YYYY-MM-DDTHH:mm:ss"),onChange:function(U){return L(U.target.value,"start")},InputLabelProps:{shrink:!0,style:{marginLeft:"10px"}},InputProps:{max:u}})),E.createElement(D,{item:!0,className:a.select},E.createElement(ja,{variant:"outlined"},E.createElement(ls,{value:d,onChange:function(U){return W(U.target.value)},displayEmpty:!0},E.createElement(sr,{value:"10 min"},"10 min"),E.createElement(sr,{value:"1 hour"},"1 hour"),E.createElement(sr,{value:"4 hours"},"4 hours"),E.createElement(sr,{value:"12 hours"},"12 hours"),E.createElement(sr,{value:"1 day"},"1 day"),E.createElement(sr,{value:"10 days"},"10 days"),E.createElement(sr,{value:"custom"},"Custom")))),E.createElement(D,{item:!0},E.createElement(je,{label:"End",variant:"outlined",className:a.datetimePicker,type:"datetime-local",value:t?"":mt(u).format("YYYY-MM-DDTHH:mm:ss"),onChange:function(U){return L(U.target.value,"end")},InputLabelProps:{shrink:!0,style:{marginLeft:"10px"}}})),E.createElement(D,{item:!0},E.createElement(tl,{title:"Navigate forward 20%",arrow:!0},E.createElement(yn,{color:"primary",onClick:function(){return F("add")},className:a.navigatorButton},E.createElement(qFn,{fontSize:"large"})))),E.createElement(D,{item:!0},E.createElement(yn,{onClick:function(){return N("add")},className:a.navigatorButton},E.createElement(aQ,{fontSize:"large"}))),E.createElement(D,{item:!0},E.createElement(yn,{onClick:function(){return N("subtract",!0)},className:a.navigatorButton},E.createElement(Hxe,{fontSize:"large"}))))),E.createElement(D,{md:4,item:!0},E.createElement(kt,{elevation:0,style:{padding:"8px 12px",backgroundColor:"white",display:"flex",flexDirection:"column",gap:"8px",minHeight:"80px"}},E.createElement("div",{style:{display:"flex",gap:"12px",alignItems:"stretch"}},E.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",flex:1}},E.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",alignItems:"center"}},E.createElement(Io,{checked:M.showGridLines,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Grid"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{showGridLines:X})})}}),E.createElement(Io,{checked:M.showSymbols,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Symbols"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{showSymbols:X})})}}),E.createElement(Io,{checked:M.smoothLines,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Smooth"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{smoothLines:X})})}}),E.createElement(Io,{checked:M.showTooltip,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Tooltip"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{showTooltip:X})})}})),E.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",alignItems:"center"}},E.createElement(Io,{checked:M.showToolbox,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Toolbox"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{showToolbox:X})})}}),E.createElement(Io,{checked:M.showYAxisNames,control:E.createElement(Qr,{color:"primary",size:"small",style:{padding:"4px"}}),label:E.createElement("span",{style:{fontSize:"0.75rem"}},"Y-Axis Names"),style:{margin:"0 4px"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{showYAxisNames:X})})}}))),E.createElement(ua,{orientation:"vertical",flexItem:!0}),E.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",justifyContent:"space-between"}},E.createElement(Io,{checked:M.combinedView,control:E.createElement(Y$,{color:"primary",size:"small"}),label:E.createElement("span",{style:{fontSize:"0.75rem",fontWeight:600}},"Combined"),style:{margin:"0"},onChange:function(U,X){C(function(Q){return tt(tt({},Q),{combinedView:X})})}}),E.createElement(Io,{checked:t,control:E.createElement(Y$,{color:"primary",size:"small"}),label:E.createElement("span",{style:{fontSize:"0.75rem",fontWeight:600}},"Auto Refresh"),style:{margin:"0"},onChange:function(U,X){if(X){var Q=new Date;if(d!=="custom"){var re=ape(Q,"end",d);re&&m({start:re.start,end:re.end,scope:d})}}n(X)}})),E.createElement(ua,{orientation:"vertical",flexItem:!0}),E.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",justifyContent:"space-between"}},E.createElement(Fe,{variant:"outlined",size:"small",color:"primary",startIcon:E.createElement(ZFn,null),onClick:q,style:{fontSize:"0.7rem",padding:"4px 8px"}},"Zoom"),E.createElement(Fe,{variant:"outlined",size:"small",color:"primary",startIcon:E.createElement(jxe,null),onClick:$,style:{fontSize:"0.7rem",padding:"4px 8px"}},"Restore"))))),E.createElement(D,{md:3,item:!0,container:!0,justifyContent:"flex-end",alignItems:"center"},E.createElement(kt,{elevation:0,style:{padding:"8px 12px",backgroundColor:"white",width:"100%",minHeight:"80px"}},E.createElement(Ji,{size:"small",id:"view-selector",options:h,getOptionLabel:function(U){return U.ViewName},value:p,onChange:H,noOptionsText:"No views available",renderOption:function(U){return E.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"}},E.createElement("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis"}},U.ViewName),E.createElement("div",{style:{display:"flex",gap:"2px"}},!U.IsPublic&&E.createElement(tl,{title:"Private",arrow:!0},E.createElement(vB,{fontSize:"small",style:{height:"16px",width:"16px",color:"rgba(0, 0, 0, 0.54)"}})),E.createElement(yn,{size:"small",onClick:function(X){return G(U,X)},style:{padding:"2px"}},E.createElement(Bxe,{fontSize:"small",color:"primary",style:{height:"16px",width:"16px"}})),E.createElement(yn,{size:"small",onClick:function(X){return j(U,X)},style:{padding:"2px"}},E.createElement(Mo,{fontSize:"small",color:"secondary",style:{height:"16px",width:"16px"}}))))},renderInput:function(U){return E.createElement(je,tt({},U,{label:"View",variant:"outlined",size:"small",style:{minWidth:"100%"}}))}})))),w&&E.createElement(b3e,{open:!0,mode:w,view:z,handleClose:function(U){return Ct(void 0,void 0,void 0,function(){return xt(this,function(X){switch(X.label){case 0:return S(null),O(null),U?[4,o.invalidateQueries({queryKey:["views-v2"]})]:[3,2];case 1:X.sent(),X.label=2;case 2:return[2]}})})}}),E.createElement(Mt,{error:I,onHide:function(){return P("")}}))});BOt.displayName="HeaderSectionV2";var JCi=["#5eaf60","green","#62bd9c","#53a285","#add8e6","#3280ba","blue","#5293c5","#3d556f","#a362bf","#dab0d8","black","#e74b3c","red","#bf3b2c"],jOt=Rt({swatch:{width:"25px",height:"25px",display:"inline-block",margin:"2px",borderRadius:"4px",cursor:"pointer","&:hover":{transform:"scale(1.1)",transition:"transform 0.1s ease-in-out"}},popover:{display:"flex",flexWrap:"wrap",padding:"10px",maxWidth:"165px"}}),exi=function(e){var t=e.color,n=e.onSelect,r=jOt();return E.createElement("div",{className:r.swatch,style:{backgroundColor:t},onClick:function(){return n(t)}})},txi=function(e){var t=e.color,n=e.onColorChange,r=jOt(),i=b.useState(null),o=i[0],a=i[1],s=function(p){a(p.currentTarget)},l=function(){a(null)},c=function(p){n(p),l()},u=!!o,d=u?"color-picker-popover":void 0;return E.createElement("div",null,E.createElement(Fe,{"aria-describedby":d,variant:"outlined",onClick:s,style:{backgroundColor:t,width:"30px",height:"24px",minWidth:"30px",padding:0,margin:"0 auto",border:"1px solid #ccc"}}),E.createElement(S3,{id:d,open:u,anchorEl:o,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},E.createElement("div",{className:r.popover},JCi.map(function(p){return E.createElement(exi,{key:p,color:p,onSelect:c})}))))},lte=Rt(function(e){return{dataTypeOfTree:{width:"25px",height:"25px",color:"white",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",border:"1px black solid"},root:{alignItems:"center",display:"flex",height:"32px"},customNodeRoot:{listStyleType:"none",margin:0,padding:0,"&:hover":{backgroundColor:"#f2f2f2"}},arrow:{alignItems:"center",cursor:"pointer",display:"flex",height:"24px",justifyContent:"center",width:"24px",transition:"transform linear 0.1s",transform:"rotate(0deg)"},"arrow > div":{alignItems:"center",display:"flex"},"arrow.is-open":{transform:"rotate(90deg)"},filetype:{display:"flex"},label:{paddingInlineStart:"8px"},selected:{backgroundColor:"#e8f0fe"},dragging:{opacity:.5},contextMenu:{fontSize:"14px",backgroundColor:"#fff",borderRadius:"2px",padding:"5px 10px;",width:"140px",height:"auto",margin:"0",position:"fixed",boxShadow:"0 0 20px 0 #ccc",display:"flex",flexDirection:"column"},storyRoot:{display:"grid",height:"100%",gridTemplateRows:"auto 1fr",listStyleType:"none !important"},assetRoot:{boxSizing:"border-box",height:"100%",padding:"32px"},dropTarget:{boxShadow:"0 0 0 1px #1967d2 inset",borderRadius:"1px",backgroundColor:"#DAE4F2"},customDragRoot:{alignItems:"center",backgroundColor:"#1967d2",borderRadius:"4px",boxShadow:" 0 12px 24px -6px rgba(0, 0, 0, .25); 0 0 0 1px rgba(0, 0, 0, .08)",color:"#fff",display:"inline-grid",fontSize:"14px",gap:"8px",gridTemplateColumns:"auto auto",padding:"4px 8px",pointerEvents:"none"},icon:{alignItems:"center",display:"flex"},customDragLabel:{alignItems:"center",display:"flex"}}}),nxi=function(e){var t=e.open,n=e.handleClose,r=e.tagNodeSelectedInTree,i=b.useState(),o=i[0],a=i[1],s=b.useState(""),l=s[0],c=s[1],u=b.useState(!1),d=u[0],p=u[1],h=function(g){return Ct(void 0,void 0,void 0,function(){var m,v,y,M;return xt(this,function(C){switch(C.label){case 0:return g.preventDefault(),m=Number(r?.parent)||null,v=((M=r?.data)===null||M===void 0?void 0:M.TagTypeCode)==="F"?Number(r.id):m,p(!0),o?[4,ste(null,v,o,!0)]:[3,2];case 1:y=C.sent(),y.ok||c(y.message),C.label=2;case 2:return n(!0),a(""),p(!1),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"lg","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"New folder"},E.createElement(We.Content,null,E.createElement(Tn,null,E.createElement(je,{style:{minWidth:"600px"},id:"outlined-basic",label:"Folder name",variant:"outlined",value:o,onChange:function(g){return a(g.target.value)}}))),E.createElement(We.Actions,null,E.createElement("div",null,E.createElement(Fe,{color:"secondary",variant:"outlined",onClick:function(){return n(!1)}},"Cancel")),E.createElement("div",null,E.createElement(Da,{isLoading:d,onClick:h,color:"primary",variant:"contained"},"Save")))),E.createElement(Mt,{error:l,onHide:function(){return c("")}}))},rxi=function(e){var t=e.open,n=e.handleClose,r=e.tagNodeSelectedInTree,i=b.useState(""),o=i[0],a=i[1],s=b.useState(!1),l=s[0],c=s[1],u=function(d){return Ct(void 0,void 0,void 0,function(){var p,h,g,m;return xt(this,function(v){switch(v.label){case 0:return d.preventDefault(),r?(p=Number(r?.parent)||null,h=r?.text,g=Number(r?.id),m=void 0,c(!0),p?[4,KCi(g)]:[3,2]):[3,5];case 1:return m=v.sent(),m.ok||a(m.message),[3,4];case 2:return[4,ste(g,p,h,!1)];case 3:m=v.sent(),v.label=4;case 4:m.ok||a(m.message),v.label=5;case 5:return n(!0),c(!1),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"lg","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Remove Folder"},E.createElement(We.Content,null,E.createElement(Tn,null,E.createElement(bt,null,"Are you sure you want to remove"," ",E.createElement("strong",null,r?.text)," folder?"))),E.createElement(We.Actions,null,E.createElement("div",null,E.createElement(Fe,{color:"secondary",variant:"outlined",onClick:function(){return n(!1)}},"Cancel")),E.createElement("div",null,E.createElement(Da,{isLoading:l,onClick:u,color:"primary",variant:"contained"},"Remove")))),E.createElement(Mt,{error:o,onHide:function(){return a("")}}))},HOt=function(e){var t,n=e.isOpen,r=e.anchorPoint,i=e.tagNodeSelectedInTree,o=e.getTagsTreeData,a=e.setShowContextMenu,s=lte(),l=b.useState(!1),c=l[0],u=l[1],d=b.useState(!1),p=d[0],h=d[1],g=((t=i?.data)===null||t===void 0?void 0:t.TagTypeCode)==="F";return E.createElement(E.Fragment,null,n&&r?E.createElement("ul",{className:s.contextMenu,style:{top:r.y,left:r.x}},E.createElement(sr,{style:{width:"100%",justifyContent:"left"},onClick:function(){return u(!0)}},"New Folder"),i&&g&&E.createElement(sr,{style:{width:"100%",justifyContent:"left"},onClick:function(){return h(!0)}},"Remove Folder")):null,E.createElement(nxi,{open:c,handleClose:function(m){m&&o(),a(!1),u(!1)},tagNodeSelectedInTree:i}),E.createElement(rxi,{open:p,handleClose:function(m){m&&o(),a(!1),h(!1)},tagNodeSelectedInTree:i}))},VOt=function(e){var t,n,r,i=lte(),o=e.monitorProps.item,a=((t=o.data)===null||t===void 0?void 0:t.TagTypeCode)==="F";return E.createElement("div",{className:i.customDragRoot},E.createElement("div",{className:i.icon},a?E.createElement(q3,null):E.createElement(XZ,{fontSize:"small"})),E.createElement("div",{className:i.customDragLabel},((n=o.data)===null||n===void 0?void 0:n.Alias)||((r=o.data)===null||r===void 0?void 0:r.TagName)))};function GOt(e){var t=[];return e.forEach(function(n){var r={id:n.TagId,parent:n.ParentTagId||0,text:n.TagName,data:n,droppable:n.TagTypeCode==="F"};return t.push(r)}),t}var ixi=Rt(function(e){return{customNodeRoot:{listStyleType:"none",margin:0,padding:0,"&:hover":{backgroundColor:"#f2f2f2"}},root:{alignItems:"center",display:"flex",height:"32px"},selected:{backgroundColor:"#e8f0fe"},dataTypeChip:{width:"20px",height:"20px",color:"white",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"10px",fontWeight:"bold",margin:"0 5px",borderRadius:"3px",border:"1px solid rgba(0, 0, 0, 0.2)"},analogType:{backgroundColor:"#AD48C4"},digitalType:{backgroundColor:"#C46F48"}}}),oxi=`
  ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
`,axi=function(e){var t,n,r,i,o,a,s,l,c=e.node,u=e.options,d=u.depth,p=u.isOpen,h=u.onToggle,g=u.containerRef,m=e.options,v=e.setOpenTagFolders,y=e.openTagFolders,M=e.handleSelect,C=e.setContextMenuOver,x=e.isSelected,w=ixi(),S="".concat(w.customNodeRoot," ").concat(w.root," ").concat(x?w.selected:""),A=function(){var O,T;if(m.hasChild||((T=c.data)===null||T===void 0?void 0:T.TagTypeCode)==="F"){if(y[c.id]){var I=tt({},y);delete I[c.id],v(I)}else v(tt(tt({},y),(O={},O[c.id]=c.id,O)));h();return}m.hasChild||M(c)},z=b.useCallback(function(O){O.stopPropagation(),O.preventDefault(),C(c,O)},[c.id,C]);return b.useEffect(function(){var O;return(O=g.current)===null||O===void 0||O.addEventListener("contextmenu",z),function(){var T;(T=g.current)===null||T===void 0||T.removeEventListener("contextmenu",z)}},[]),E.createElement("div",{className:S,onClick:A,style:{paddingLeft:d*20,cursor:"pointer"}},E.createElement("style",null,oxi),E.createElement(E.Fragment,null,m.hasChild?E.createElement("div",null,p?E.createElement(Zft,null):E.createElement(oQ,null)):null,E.createElement("div",null,m.hasChild||((t=c.data)===null||t===void 0?void 0:t.TagTypeCode)==="F"?E.createElement(q3,null):E.createElement(XZ,{fontSize:"small"}))),((n=c.data)===null||n===void 0?void 0:n.TagName)&&E.createElement(E.Fragment,null,((r=c.data)===null||r===void 0?void 0:r.TagTypeCode)&&((i=c.data)===null||i===void 0?void 0:i.TagTypeCode)!=="F"&&E.createElement("div",{className:"".concat(w.dataTypeChip," ").concat(((o=c.data)===null||o===void 0?void 0:o.TagTypeCode)==="A"?w.analogType:w.digitalType)},(a=c.data)===null||a===void 0?void 0:a.TagTypeCode),E.createElement(tl,{title:c.data.TagName,placement:"top",arrow:!0},E.createElement(bt,{variant:"body2"},((s=c.data)===null||s===void 0?void 0:s.Alias)||((l=c.data)===null||l===void 0?void 0:l.TagName)))))},sxi=function(e){var t=e.tagNodes,n=e.externalSearchTerm,r=e.onSearchTermChange,i=b.useState(n||""),o=i[0],a=i[1],s=b.useState([]),l=s[0],c=s[1],u=b.useState(!1),d=u[0],p=u[1],h=b.useState(-1),g=h[0],m=h[1],v=b.useRef(null),y=b.useRef([]),M=b.useMemo(function(){var O=[],T=new Map;t.forEach(function(P){P.id!==void 0&&P.id!==null&&T.set(P.id,P)});var I=function(P){for(var N=[],F=T.get(P);F&&F.parent!==1e6;)N.unshift(F.text),F=T.get(F.parent);return F&&F.parent===1e6&&N.unshift(F.text),N};return t.forEach(function(P){var N,F;if(!(P.id===void 0||P.id===null||!P.text)&&((N=P.data)===null||N===void 0?void 0:N.TagTypeCode)!=="F"){var L=I(P.id),W=L.join(" > "),H=t.some(function(j){return j.parent===P.id});O.push({id:P.id,name:P.text,path:W,isDroppable:P.droppable||!1,hasChildren:H,tagTypeCode:((F=P.data)===null||F===void 0?void 0:F.TagTypeCode)||"",node:P})}}),O},[t]),C=function(O){var T=O.toLowerCase();return M.filter(function(I){return I.name.toLowerCase().includes(T)})};E.useEffect(function(){n!==void 0&&n!==o&&a(n)},[n]);var x=function(O){var T=O.target.value;if(a(T),r?.(T),v.current&&clearTimeout(v.current),T.trim()===""||T.length<2){c([]),p(!1),m(-1);return}v.current=setTimeout(function(){var I=C(T);c(I),p(I.length>0);var P=I.length>0?0:-1;m(P),y.current=new Array(I.length).fill(null)},250)},w=function(O){if(O.key==="Escape"){d&&(a(""),c([]),p(!1),m(-1));return}if(d&&l.length>0){if(O.key==="ArrowDown"){O.preventDefault();var T=g<l.length-1?g+1:0;m(T),setTimeout(function(){return S(T)},0)}else if(O.key==="ArrowUp"){O.preventDefault();var I=g>0?g-1:l.length-1;m(I),setTimeout(function(){return S(I)},0)}else if(O.key==="Enter"&&g>=0){O.preventDefault();var P=l[g];return P}}},S=function(O){var T;y.current[O]&&((T=y.current[O])===null||T===void 0||T.scrollIntoView({behavior:"smooth",block:"nearest"}))},A=function(){a(""),c([]),p(!1),m(-1),r?.("")},z=function(O){if(a(O),r?.(O),v.current&&clearTimeout(v.current),O.trim()===""||O.length<2){c([]),p(!1),m(-1);return}v.current=setTimeout(function(){var T=C(O);c(T),p(T.length>0);var I=T.length>0?0:-1;m(I),y.current=new Array(T.length).fill(null)},250)};return{searchTerm:o,searchResults:l,showSearchResults:d,focusedSearchIndex:g,searchResultsRefs:y,handleSearchChange:x,handleKeyDown:w,scrollFocusedItemIntoView:S,clearSearch:A,triggerSearch:z}},lxi=Rt(function(e){return{dataTypeChip:{width:"20px",height:"20px",color:"white",display:"inline-flex",justifyContent:"center",alignItems:"center",fontSize:"10px",fontWeight:"bold",borderRadius:"3px",marginRight:"8px",border:"1px solid rgba(0, 0, 0, 0.2)"},analogType:{backgroundColor:"#AD48C4"},digitalType:{backgroundColor:"#C46F48"}}}),cxi=function(e){var t=e.tagNodes,n=e.onSearchResultClick,r=lxi(),i=b.useRef(null),o=b.useState(null),a=o[0],s=o[1],l=sxi({tagNodes:t}),c=l.searchTerm,u=l.searchResults,d=l.showSearchResults,p=l.focusedSearchIndex,h=l.searchResultsRefs,g=l.handleSearchChange,m=l.handleKeyDown,v=l.clearSearch,y=function(w){n(w),v(),s(null)},M=function(w){var S=m(w);S&&y(S)},C=function(w){g(w),!a&&i.current&&s(i.current)},x=function(){s(null)};return E.createElement("div",{onKeyDown:M,style:{marginBottom:16}},E.createElement(je,{placeholder:"Search tags (min. 2 characters)...",variant:"outlined",size:"small",fullWidth:!0,value:c,onChange:C,inputRef:i,InputProps:{startAdornment:E.createElement(nc,{position:"start"},E.createElement(_3,{color:"action"}))}}),E.createElement(S3,{open:d&&!!a,anchorEl:a,onClose:x,disableAutoFocus:!0,disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{style:{width:a?.offsetWidth,maxHeight:300}}},E.createElement(TMe,{dense:!0},u.map(function(w,S){return E.createElement(sr,{key:w.id,ref:function(A){h.current&&(h.current[S]=A)},selected:S===p,onClick:function(){return y(w)}},E.createElement($0,null,w.hasChildren||w.isDroppable?E.createElement(q3,{color:"primary",fontSize:"small"}):E.createElement(XZ,{color:"primary",fontSize:"small"})),E.createElement(na,{primary:E.createElement("div",{style:{display:"flex",alignItems:"center"}},w.tagTypeCode&&w.tagTypeCode!=="F"&&E.createElement("span",{className:"".concat(r.dataTypeChip," ").concat(w.tagTypeCode==="A"?r.analogType:r.digitalType)},w.tagTypeCode),E.createElement("span",null,w.name)),secondary:w.path,secondaryTypographyProps:{variant:"caption",color:"textSecondary",style:{fontStyle:"italic"}}}))}))))},uxi=function(){return Bl({queryKey:["tagsTree-v2"],queryFn:function(){return Ct(void 0,void 0,void 0,function(){var e;return xt(this,function(t){switch(t.label){case 0:return[4,DOt()];case 1:if(e=t.sent(),e.ok)return[2,e.data.tables[0].rows];throw new Error(e.message||"Failed to fetch tags tree")}})})},enabled:!1})},dxi=Rt(function(e){return{assetRoot:{boxSizing:"border-box",height:"100%",padding:"32px"},dropTarget:{boxShadow:"0 0 0 1px #1967d2 inset",borderRadius:"1px",backgroundColor:"#DAE4F2"}}}),pxi=function(e){var t=e.open,n=e.handleClose,r=e.onTagSelect,i=dxi(),o=b.useState(!1),a=o[0],s=o[1],l=b.useState(""),c=l[0],u=l[1],d=b.useState([]),p=d[0],h=d[1],g=b.useState(null),m=g[0],v=g[1],y=b.useState(null),M=y[0],C=y[1],x=b.useState(!1),w=x[0],S=x[1],A=1e6,z=b.useState({}),O=z[0],T=z[1],I=b.useState([]),P=I[0],N=I[1],F=function(ce,oe){oe.preventDefault();var ae=oe.clientY,ne=oe.clientX;C({x:ne,y:ae}),N([ce]),S(!0);var le=p.find(function(he){var be;return((be=he.data)===null||be===void 0?void 0:be.TagId)===ce.id});le&&v(le)},L=uxi(),W=L.data,H=L.isLoading,j=L.isError,G=L.error,q=L.isSuccess,$=L.isFetched,U=L.refetch,X=aa({mutationFn:function(ce){var oe=ce.tagFolderId,ae=ce.parentTagFolderId,ne=ce.tagFolderName,le=ce.isActive;return ste(oe,ae,ne,le)},onError:function(ce){u(ce.message)}}),Q=aa({mutationFn:function(ce){var oe=ce.tagId,ae=ce.tagFolderId;return kOt(oe,ae)},onError:function(ce){u(ce.message)}}),re=b.useMemo(function(){return Object.keys(O).map(function(ce){return Number.parseInt(ce)})},[O]),ee=function(ce,oe){return Ct(void 0,void 0,void 0,function(){var ae,ne,le,he;return xt(this,function(be){switch(be.label){case 0:return s(!0),oe.dragSource?(ae=Number(oe.dragSource.id),ne=Number((le=oe.dropTarget)===null||le===void 0?void 0:le.id)||null,ae===ne?(s(!1),[2]):((he=oe.dragSource.data)===null||he===void 0?void 0:he.TagTypeCode)!=="F"?[3,2]:[4,X.mutate({tagFolderId:ae,parentTagFolderId:ne,tagFolderName:oe.dragSource.text,isActive:!0})]):[3,5];case 1:return be.sent(),[3,4];case 2:return[4,Q.mutate({tagId:ae,tagFolderId:ne})];case 3:be.sent(),be.label=4;case 4:h(ce),be.label=5;case 5:return s(!1),[2]}})})},se=function(ce){ce.data&&ce.data.TagTypeCode!=="F"&&r(ce.data)},pe=function(ce){w&&S(!1)},te=function(ce){var oe=function(le){var he=[],be=function(me){var Me=p.find(function(Oe){return Oe.id===me});Me&&Me.parent!==A?(he.unshift(me),be(Me.parent)):Me&&he.unshift(me)};return be(le),he},ae=oe(ce.id),ne=tt({},O);ae.forEach(function(le){ne[le]=le}),T(ne),N([ce.node]),setTimeout(function(){var le=document.querySelector('[data-node-id="'.concat(ce.id,'"]'));le&&le.scrollIntoView({behavior:"smooth",block:"center"})},300)};return b.useEffect(function(){t&&U()},[t]),b.useEffect(function(){if(t&&W){var ce=GOt(W);ce=ce.map(function(ae){return ae.parent===0?tt(tt({},ae),{parent:A}):ae});var oe=new Set(ce.map(function(ae){return ae.id}));ce=ce.map(function(ae){return ae.parent!==A&&!oe.has(ae.parent)?tt(tt({},ae),{parent:A}):ae}),ce=ce.filter(function(ae){return ae.id!==A}),ce=ce.filter(function(ae){return ae.id!==0}),h(ce)}},[q,$,t]),b.useEffect(function(){G&&j&&u(G instanceof Error?G.message:String(G))},[G,j]),E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:n,maxWidth:"lg","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Tags"},E.createElement(We.Content,null,E.createElement("div",{style:{display:t?"block":"none",minHeight:"700px",minWidth:"800px"},onClick:pe},E.createElement(cxi,{tagNodes:p,onSearchResultClick:te}),E.createElement("div",{style:{overflowY:"auto",maxHeight:"650px"}},a||H?E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"100px"}},E.createElement(Kt,{size:"2rem"})):E.createElement(pZ,{backend:hZ},E.createElement(UZ,{classes:{root:i.assetRoot,dropTarget:i.dropTarget},initialOpen:re,tree:p,rootId:A,onDrop:ee,canDrop:function(ce,oe){return!P.some(function(ae){return Number(ae.id)===Number(oe.dropTargetId)})},render:function(ce,oe){var ae=P.some(function(ne){return Number(ne.id)===Number(ce.id)});return E.createElement(axi,{setContextMenuOver:F,node:ce,options:oe,isSelected:ae,openTagFolders:O,setOpenTagFolders:T,handleSelect:se})},dragPreviewRender:function(ce){return E.createElement(VOt,{monitorProps:ce})}})))),E.createElement(HOt,{anchorPoint:M,isOpen:w,setShowContextMenu:S,tagNodeSelectedInTree:m,getTagsTreeData:function(){return U()}}),E.createElement(Mt,{error:c,onHide:function(){return u("")}}))))},hxi=function(e){var t=e.open,n=e.handleClose,r=Gf(),i=Rk(),o=i.state,a=o.views,s=o.viewSelected,l=i.actions.setViewSelected,c=sT(),u=b.useState(null),d=u[0],p=u[1],h=b.useState(null),g=h[0],m=h[1],v=b.useState(null),y=v[0],M=v[1],C=b.useState(!1),x=C[0],w=C[1],S=b.useState(!1),A=S[0],z=S[1],O=b.useState(""),T=O[0],I=O[1],P=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(j){switch(j.label){case 0:return z(!0),y?(l(y),[4,r.invalidateQueries({queryKey:["viewTags-v2",y.ViewId]})]):[3,2];case 1:j.sent(),j.label=2;case 2:return z(!1),n(),[2]}})})},N=function(j,G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){return G.stopPropagation(),j.ViewId===s?.ViewId?I("Cannot delete current view"):(m(j),p("delete")),[2]})})},F=function(j,G){return Ct(void 0,void 0,void 0,function(){return xt(this,function(q){return G.stopPropagation(),m(j),p("update"),[2]})})},L=function(){w(function(j){return!j})},W=b.useMemo(function(){return a.filter(function(j){return j.IsPublic===!0})},[a]),H=x?a:W;return E.createElement("div",null,E.createElement(We,{open:t,handleClose:n,maxWidth:"xl","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Views"},E.createElement(We.Content,{dividers:!0},E.createElement(D,{container:!0},a.length?E.createElement(E.Fragment,null,E.createElement(D,{item:!0,md:12},E.createElement("div",{className:c.isPublicCheckbox,style:{paddingBottom:"1rem"}},E.createElement("label",{htmlFor:""},E.createElement("input",{type:"checkbox",checked:x,onChange:L}),E.createElement(bt,null,"All Views")))),E.createElement(D,{item:!0,md:12},E.createElement(Ji,{size:"small",id:"list-of-views",noOptionsText:x?"No views detected, please create a new view":"No public views detected, please create a new view",options:H,getOptionLabel:function(j){return j.ViewName},onChange:function(j,G){return M(G)},defaultValue:y||s,style:{width:"100%"},renderOption:function(j){return E.createElement("div",{className:c.optionContainer},E.createElement("div",{className:c.optionLabel},j.ViewName),E.createElement("div",{className:c.iconContainer},j.IsPublic?"":E.createElement(E.Fragment,null,E.createElement(tl,{title:"Private",arrow:!0},E.createElement(vB,{fontSize:"small",style:{color:"black",height:"18px",width:"18px",cursor:"auto"}}))),E.createElement(yn,{onClick:function(G){return F(j,G)}},E.createElement(Bxe,{fontSize:"small",color:"primary",style:{height:"18px",width:"18px",cursor:"pointer"}})),E.createElement(yn,{onClick:function(G){return N(j,G)}},E.createElement(Mo,{fontSize:"small",color:"secondary",style:{height:"18px",width:"18px",cursor:"pointer"}}))))},renderInput:function(j){return E.createElement(je,tt({},j,{label:"Views",variant:"outlined"}))}}))):E.createElement(bt,null,"No views detected, please add one"))),E.createElement(We.Actions,null,E.createElement("div",{style:{paddingTop:"1rem"}},E.createElement(Fe,{variant:"outlined",style:{marginRight:"1rem"},color:"secondary",onClick:n},"Cancel"),a.length?E.createElement(Da,{onClick:P,variant:"contained",color:"primary",isLoading:A,style:{marginRight:"1rem"},disabled:!y},"Apply"):E.createElement(Fe,{variant:"contained",style:{marginRight:"1rem"},color:"primary",onClick:n},"Ok")))),d&&E.createElement(b3e,{open:!0,mode:d,view:g,handleClose:function(j){return Ct(void 0,void 0,void 0,function(){return xt(this,function(G){switch(G.label){case 0:return p(null),m(null),j?[4,r.invalidateQueries({queryKey:["views-v2"]})]:[3,2];case 1:G.sent(),G.label=2;case 2:return[2]}})})}}),E.createElement(Mt,{error:T,onHide:function(){return I("")}}))},fxi=function(){var e=Gf(),t=ks(),n=t.registerConfig,r=t.showContextMenu,i=Rk(),o=i.state,a=o.viewTags,s=o.cursorData,l=o.viewSelected;o.views;var c=o.seriesMinMax,u=i.actions,d=u.setViewTags,p=u.setViewTagsAndRefetch;u.setViewSelected,u.setViews;var h=u.highlightSeries,g=b.useMemo(function(){return new Intl.NumberFormat("en-US",{minimumFractionDigits:1,maximumFractionDigits:1})},[]),m=b.useMemo(function(){return new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:0})},[]),v=b.useState(""),y=v[0],M=v[1],C=b.useState(!1);C[0];var x=C[1],w=b.useState(null);w[0];var S=w[1],A=b.useState(!1),z=A[0],O=A[1],T=b.useState(!1),I=T[0],P=T[1],N=b.useState(!1),F=N[0],L=N[1],W=b.useState(""),H=W[0],j=W[1],G=b.useState(null),q=G[0],$=G[1],U=b.useState(null),X=U[0],Q=U[1],re=aa({mutationFn:function(we){return FOt(we)},onError:function(we){M(we.message)}}),ee=aa({mutationFn:function(we){var ve=we.viewId,De=we.viewName,ze=we.isPublic;return mj(ve,De,ze)},onSuccess:function(){return Ct(void 0,void 0,void 0,function(){var we,ve,De;return xt(this,function(ze){switch(ze.label){case 0:return[4,re.mutate((De=l?.ViewId)!==null&&De!==void 0?De:0)];case 1:return ze.sent(),[4,Promise.allSettled(Object.values(a).sort(function(Ve,Ke){return Ke.order-Ve.order}).map(function(Ve){var Ke,et=Ve.viewTag;return nD((Ke=l?.ViewId)!==null&&Ke!==void 0?Ke:0,et.TagId,et.Color,et.MinScale,et.MaxScale,et.IsVisible,et.IsAutoScale,et.Unit)}))];case 2:return we=ze.sent(),ve=we.filter(function(Ve){return Ve.status==="rejected"}),ve.length>0?M("Some tags failed to save"):j("View saved successfully"),[2]}})})},onError:function(we){M(we.message)}}),se=aa({mutationFn:function(we){var ve=we.viewId,De=we.tagId,ze=we.color,Ve=we.minScale,Ke=we.maxScale,et=we.isVisible,it=we.isAutoScale,Ft=we.unit;return nD(ve,De,ze,Ve,Ke,et,it,Ft)},onError:function(we){M(we.message)}}),pe=aa({mutationFn:function(we){var ve=we.tagId,De=we.alias,ze=we.color,Ve=we.minScale,Ke=we.maxScale,et=we.unit;return LOt(ve,De,ze,Ve,Ke,et)},onSuccess:function(){j("Tag defaults saved successfully")},onError:function(we){M(we.message)}}),te=b.useCallback(function(we){if(!a[we]){M("Tag ".concat(we," not found. The view may have changed."));return}var ve=a,De=we;ve[De];var ze=a2(ve,[typeof De=="symbol"?De:De+""]);d(ze)},[a,d]),ce=b.useCallback(function(we){var ve,De,ze,Ve=Math.max.apply(Math,xi(xi([],Object.values(a).map(function(Ft){return Ft.order}),!1),[0],!1))+1,Ke=we.TagTypeCode==="A"||we.TagTypeCode==="D"?we.TagTypeCode:"A",et={TagId:we.TagId,TagName:we.TagName,TagType:Ke,Alias:we.Alias||we.TagName,Color:we.Color||gj(),MinScale:(De=we.MinScale)!==null&&De!==void 0?De:0,MaxScale:(ze=we.MaxScale)!==null&&ze!==void 0?ze:100,IsAutoScale:!0,IsVisible:!0,Unit:we.Unit||""},it=tt(tt({},a),(ve={},ve[we.TagId]={viewTag:et,order:Ve},ve));p(it)},[a,p]),oe=function(we){var ve=a[we.TagId];if(ve){M("".concat(we.TagName," is already selected"));return}ce(we)},ae=b.useCallback(function(we,ve){if(we!==ve){var De=Object.entries(a).map(function(Ft){var Pt=Ft[0],Qn=Ft[1];return tt({tagId:Number(Pt)},Qn)}).sort(function(Ft,Pt){return Ft.order-Pt.order}),ze=De.findIndex(function(Ft){return Ft.tagId===we}),Ve=De.findIndex(function(Ft){return Ft.tagId===ve});if(!(ze===-1||Ve===-1)){var Ke=xi([],De,!0),et=Ke.splice(ze,1)[0];Ke.splice(Ve,0,et);var it={};Ke.forEach(function(Ft,Pt){it[Ft.tagId]={viewTag:Ft.viewTag,order:Pt}}),d(it)}}},[a,d]),ne=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(we){switch(we.label){case 0:return l?[3,1]:(P(!0),[2]);case 1:return x(!0),l?.ViewId?[4,ee.mutate({viewId:l?.ViewId,viewName:l.ViewName,isPublic:l.IsPublic})]:[3,3];case 2:we.sent(),we.label=3;case 3:x(!1),we.label=4;case 4:return[2]}})})},le=function(we){return Ct(void 0,void 0,void 0,function(){var ve,De,ze,Ve,Ke,et,it,Ft,Pt;return xt(this,function(Qn){switch(Qn.label){case 0:return l&&we!==null?(ve=a[we].viewTag,De=ve.TagId,ze=ve.Alias,Ve=ve.Color,Ke=ve.MinScale,et=ve.MaxScale,it=ve.Unit,Ft=ve.IsVisible,Pt=ve.IsAutoScale,[4,pe.mutate({tagId:De,alias:ze,color:Ve,minScale:Ke,maxScale:et,unit:it})]):[3,3];case 1:return Qn.sent(),[4,se.mutate({viewId:l?.ViewId,tagId:De,color:Ve,minScale:Ke,maxScale:et,isVisible:Ft,isAutoScale:Pt,unit:it})];case 2:Qn.sent(),Qn.label=3;case 3:return[2]}})})},he=function(we,ve){ve!=="clickaway"&&j("")},be=function(we){var ve=[];return we&&(ve.push({key:"delete",name:"Remove Tag",onClick:function(){gi(we)||(Ae.current(we.TagId),S(null))}}),ve.push({key:"saveDefault",name:"Save Default To Tag",onClick:function(){le(we.TagId)}})),ve=ve.concat([{key:"add",name:"Tags Tree",onClick:function(){O(!0)}},{key:"saveView",name:"Save View",onClick:function(){ne()}},{key:"saveViewAs",name:"Save View as",onClick:function(){P(!0)}},{key:"loadView",name:"Load View",onClick:function(){L(!0)}}]),ve};b.useEffect(function(){n({id:"chartContextV2",getOptions:be})},[]);var me=b.useCallback(function(we){var ve;we.preventDefault();var De=we.target,ze=De.closest("[data-id]");if(ze){var Ve=ze.getAttribute("data-id");if(Ve){var Ke=Number(Ve),et=ue.current,it=(ve=et[Ke])===null||ve===void 0?void 0:ve.viewTag;if(it){S(Ke),r(we,it,"chartContextV2");return}}}r(we,null,"chartContextV2")},[r]),Me=b.useMemo(function(){var we,ve;if(!s)return{};var De={};for(var ze in s.tagValues){var Ve=s.tagValues[ze];De[ze]={y1:Ve.y1||0,y2:Ve.y2||0,y2y1:Ve.y2y1||0,min:((we=Ve.pmin)===null||we===void 0?void 0:we.y)||0,max:((ve=Ve.pmax)===null||ve===void 0?void 0:ve.y)||0}}return De},[s]),Oe=b.useMemo(function(){return Object.values(a).filter(function(we){return we&&we.viewTag}).sort(function(we,ve){return ve.order-we.order}).map(function(we){var ve=we.viewTag,De=Me[ve.TagId]||{y1:0,y2:0,y2y1:0},ze=c[ve.TagId]||{min:0,max:0};return{id:ve.TagId,visible:ve.IsVisible,type:ve.TagType,alias:ve.Alias?ve.Alias:ve.TagName,tagName:ve.TagName,color:ve.Color,minScale:ve.MinScale,maxScale:ve.MaxScale,autoScale:ve.IsAutoScale,unit:ve.Unit,y1:De.y1,y2:De.y2,y2y1:De.y2y1,min:ze.min,max:ze.max,overallMin:ze.min,overallMax:ze.max}})},[a,Me,c]),de=b.useCallback(function(we,ve){var De,ze=we.id,Ve=we.minScale!==ve.minScale,Ke=we.maxScale!==ve.maxScale,et=Ve||Ke;return d(tt(tt({},a),(De={},De[ze]=tt(tt({},a[ze]),{viewTag:tt(tt({},a[ze].viewTag),{Alias:we.alias,MinScale:we.minScale,MaxScale:we.maxScale,IsAutoScale:et?!1:we.autoScale,Unit:we.unit,IsVisible:we.visible})}),De))),et&&(we.autoScale=!1),we},[a,d]),ie=b.useCallback(function(we){var ve=we.value;return E.createElement(fM,{label:ve,size:"small",style:{backgroundColor:ve==="A"?"#AD48C4":"#C46F48",color:"white",fontWeight:"bold",fontSize:"0.7rem",height:"20px"}})},[]),ue=E.useRef(a),Ae=E.useRef(te);E.useEffect(function(){ue.current=a},[a]),E.useEffect(function(){Ae.current=te},[te]);var Ce=b.useCallback(function(we,ve){var De,ze=ue.current;ze[we]&&d(tt(tt({},ze),(De={},De[we]=tt(tt({},ze[we]),{viewTag:tt(tt({},ze[we].viewTag),{Color:ve})}),De)))},[d]),Ee=b.useCallback(function(we){var ve=Number(we.row.id);return E.createElement(txi,{color:we.value,onColorChange:function(De){return Ce(ve,De)}})},[Ce]),Ge=b.useCallback(function(we){return E.createElement(tl,{title:we.row.tagName,placement:"top",arrow:!0},E.createElement("div",{style:{width:"100%",cursor:"pointer"}},we.value))},[]),_e=b.useCallback(function(we){var ve=Number(we.row.id),De=function(ze){var Ve,Ke=ue.current;Ke[ve]&&d(tt(tt({},Ke),(Ve={},Ve[ve]=tt(tt({},Ke[ve]),{viewTag:tt(tt({},Ke[ve].viewTag),{IsVisible:ze.target.checked})}),Ve)))};return E.createElement(Qr,{checked:we.value,onChange:De,color:"primary",size:"small",style:{cursor:"pointer"}})},[d]),Ie=b.useCallback(function(we){var ve=Number(we.row.id),De=function(ze){var Ve,Ke=ue.current;Ke[ve]&&d(tt(tt({},Ke),(Ve={},Ve[ve]=tt(tt({},Ke[ve]),{viewTag:tt(tt({},Ke[ve].viewTag),{IsAutoScale:ze.target.checked})}),Ve)))};return E.createElement(Qr,{checked:we.value,onChange:De,color:"primary",size:"small",style:{cursor:"pointer"}})},[d]),Le=b.useMemo(function(){return[{field:"addTag",headerName:"",width:50,sortable:!1,filterable:!1,disableColumnMenu:!0,renderHeader:function(){return E.createElement(tl,{title:"Add Tag",arrow:!0},E.createElement(yn,{size:"small",onClick:function(){return O(!0)},color:"primary",style:{padding:"4px",cursor:"pointer"}},E.createElement(Zo,{fontSize:"small",style:{cursor:"pointer"}})))},renderCell:function(){return E.createElement("div",{style:{cursor:"grab",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center"}},E.createElement(tWn,{fontSize:"small",style:{color:"#666"}}))}},{field:"visible",headerName:"Visible",width:70,type:"boolean",editable:!1,renderCell:_e},{field:"type",headerName:"Type",width:60,renderCell:ie},{field:"alias",headerName:"Alias/TagName",width:320,editable:!0,renderCell:Ge},{field:"color",headerName:"Color",width:80,renderCell:Ee,editable:!1},{field:"minScale",headerName:"Min Scale",width:90,editable:!0,valueFormatter:function(we){return we==null?"":m.format(Number(we))},cellClassName:function(we){return we.row.autoScale?"disabled-cell":""},preProcessEditCellProps:function(we){if(we.row.autoScale)return tt(tt({},we.props),{error:!0});var ve=String(we.props.value).trim();if(ve==="")return we.props;var De=/^-?\d+\.?\d*$|^-?\d*\.\d+$/;if(!De.test(ve))return tt(tt({},we.props),{error:!0});var ze=ve.replace(/,/g,""),Ve=Number.parseFloat(ze);return Number.isNaN(Ve)?tt(tt({},we.props),{error:!0}):we.props}},{field:"maxScale",headerName:"Max Scale",width:90,editable:!0,valueFormatter:function(we){return we==null?"":m.format(Number(we))},cellClassName:function(we){return we.row.autoScale?"disabled-cell":""},preProcessEditCellProps:function(we){if(we.row.autoScale)return tt(tt({},we.props),{error:!0});var ve=String(we.props.value).trim();if(ve==="")return we.props;var De=/^-?\d+\.?\d*$|^-?\d*\.\d+$/;if(!De.test(ve))return tt(tt({},we.props),{error:!0});var ze=ve.replace(/,/g,""),Ve=Number.parseFloat(ze);return Number.isNaN(Ve)?tt(tt({},we.props),{error:!0}):we.props}},{field:"autoScale",headerName:"Auto",width:70,type:"boolean",editable:!1,renderCell:Ie},{field:"unit",headerName:"Unit",width:70,editable:!0},{field:"y1",headerName:"Y1",width:80,type:"number",valueFormatter:function(we){return we==null?"":g.format(Number(we))}},{field:"y2",headerName:"Y2",width:80,type:"number",valueFormatter:function(we){return we==null?"":g.format(Number(we))}},{field:"y2y1",headerName:"Y2-Y1",width:80,type:"number",valueFormatter:function(we){return we==null?"":g.format(Number(we))}},{field:"min",headerName:"Min",width:80,type:"number",valueFormatter:function(we){return we==null?"":g.format(Number(we))}},{field:"max",headerName:"Max",width:80,type:"number",valueFormatter:function(we){return we==null?"":g.format(Number(we))}},{field:"actions",headerName:"",width:80,sortable:!1,filterable:!1,disableColumnMenu:!0,renderCell:function(we){return E.createElement("div",{style:{display:"flex",gap:"2px",alignItems:"center"}},E.createElement(tl,{title:"Save Default To Tag",arrow:!0},E.createElement(yn,{size:"small",onClick:function(){return le(Number(we.row.id))},color:"primary",style:{padding:"4px",cursor:"pointer"}},E.createElement(p1t,{fontSize:"small",style:{cursor:"pointer"}}))),E.createElement(tl,{title:"Remove Tag",arrow:!0},E.createElement(yn,{size:"small",onClick:function(){return te(Number(we.row.id))},color:"secondary",style:{padding:"4px",cursor:"pointer"}},E.createElement(Mo,{fontSize:"small",style:{cursor:"pointer"}}))))}}]},[_e,Ie,ie,Ee,Ge,te,le,ae,q,X,$,Q,g,m]);return E.createElement(kt,{style:{height:"100%",width:"100%"},onContextMenu:me},E.createElement(AKn,{rows:Oe,columns:Le,disableRowSelectionOnClick:!0,density:"compact",processRowUpdate:de,onProcessRowUpdateError:function(we){M("Error updating row: ".concat(we.message))},hideFooter:!0,getRowClassName:function(we){return q===we.id?"dragging-row":X===we.id?"drag-over-row":""},slotProps:{row:{draggable:!0,onDragStart:function(we){we.stopPropagation();var ve=we.currentTarget,De=ve.getAttribute("data-id");De&&($(Number(De)),we.dataTransfer.effectAllowed="move")},onDragEnd:function(we){we.stopPropagation(),$(null),Q(null)},onDragOver:function(we){we.preventDefault(),we.stopPropagation(),we.dataTransfer.dropEffect="move";var ve=we.currentTarget,De=ve.getAttribute("data-id");De&&Number(De)!==q&&Q(Number(De))},onDragLeave:function(we){we.stopPropagation(),Q(null)},onDrop:function(we){we.preventDefault(),we.stopPropagation();var ve=we.currentTarget,De=ve.getAttribute("data-id");De&&q!==null&&Number(De)!==q&&ae(q,Number(De)),$(null),Q(null)},onMouseEnter:function(we){var ve=we.currentTarget,De=ve.getAttribute("data-id");if(De){var ze=Oe.find(function(Ve){return Ve.id===Number(De)});ze&&h(ze.alias||ze.tagName)}},onMouseLeave:function(){h(null)}}},sx:{"& .MuiDataGrid-cell":{padding:"0 8px",fontSize:"0.75rem",display:"flex",alignItems:"center"},"& .MuiDataGrid-cell--editable":{cursor:"pointer"},"& .MuiDataGrid-cell--editing input":{fontSize:"0.75rem"},"& .MuiDataGrid-cell.disabled-cell":{opacity:.4,backgroundColor:"#f5f5f5",cursor:"not-allowed",pointerEvents:"none"},"& .MuiDataGrid-columnHeader":{padding:"0 8px",fontSize:"0.75rem",fontWeight:600},"& .MuiDataGrid-row":{minHeight:"32px !important",maxHeight:"32px !important",cursor:"grab","&.dragging-row":{opacity:.5,cursor:"grabbing"},"&.drag-over-row":{backgroundColor:"#e3f2fd"}},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:600},"& .MuiDataGrid-cellContent":{display:"flex",alignItems:"center"}}}),E.createElement(pxi,{open:z,handleClose:function(){return O(!1)},onTagSelect:oe}),E.createElement(b3e,{open:I,mode:"create",handleClose:function(we){P(!1),we&&e.invalidateQueries({queryKey:["views-v2"]})}}),E.createElement(hxi,{open:F,handleClose:function(){return L(!1)}}),E.createElement(Mt,{error:y,onHide:function(){return M("")}}),E.createElement(pr,{open:!!H,autoHideDuration:3e3,onClose:he,anchorOrigin:{vertical:"bottom",horizontal:"center"}},E.createElement(Pr,{onClose:he,severity:"success"},H)))},l2e=E.memo(function(e){var t=e.initialLeft,n=e.otherLineCoord,r=e.onDragEnd,i=e.onChange,o=e.color,a=e.chartArea,s=e.minSpacing,l=s===void 0?20:s,c=e.timestamp,u=b.useState(!1),d=u[0],p=u[1],h=b.useState(t),g=h[0],m=h[1],v=b.useRef(null),y=b.useRef(t);b.useEffect(function(){m(t)},[t]);var M=b.useCallback(function(A){p(!0),y.current=g,A.stopPropagation(),A.preventDefault()},[g]),C=b.useCallback(function(A){if(!(!d||!v.current||!v.current.offsetParent)){var z=v.current.offsetParent.getBoundingClientRect(),O=A.clientX-z.left;if(O=Math.max(a.left,Math.min(O,a.right)),n!==void 0){var T=o==="red"||O<n;T&&O>n-l?O=n-l:!T&&O<n+l&&(O=n+l)}m(O),i&&i(O)}},[d,a,n,o,l,i]),x=b.useCallback(function(){d&&(p(!1),g!==y.current&&r(g))},[d,g,r]);b.useEffect(function(){if(d)return window.addEventListener("mousemove",C),window.addEventListener("mouseup",x),function(){window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",x)}},[d,C,x]);var w=a.bottom-a.top,S=function(A){if(!A)return"";var z=new Date(A),O=String(z.getMonth()+1).padStart(2,"0"),T=String(z.getDate()).padStart(2,"0"),I=z.getFullYear(),P=String(z.getHours()).padStart(2,"0"),N=String(z.getMinutes()).padStart(2,"0"),F=String(z.getSeconds()).padStart(2,"0");return"".concat(O,"/").concat(T,"/").concat(I," ").concat(P,":").concat(N,":").concat(F)};return E.createElement("div",{ref:v,onMouseDown:M,style:{position:"absolute",top:a.top-10,left:g-10,width:20,height:20,backgroundColor:o,borderRadius:"50%",cursor:d?"grabbing":"grab",zIndex:1e3,boxShadow:d?"0 4px 8px rgba(0, 0, 0, 0.3)":"0 2px 4px rgba(0, 0, 0, 0.2)",transition:d?"none":"box-shadow 0.2s ease",userSelect:"none"}},E.createElement("div",{style:{position:"absolute",top:20,left:9,width:2,height:w,backgroundColor:o,pointerEvents:"none",opacity:d?.8:1}}),c&&E.createElement("div",{style:{position:"absolute",top:20+w+4,left:"50%",transform:"translateX(-50%)",backgroundColor:"rgba(255, 255, 255, 0.95)",color:o,padding:"4px 8px",borderRadius:"4px",fontSize:"11px",fontWeight:"bold",whiteSpace:"nowrap",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)",border:"2px solid ".concat(o),pointerEvents:"none",zIndex:1001}},S(c)))});l2e.displayName="DraggableLineControlV2";var gxi=function(e,t,n,r){return b.useMemo(function(){if(!n||n.length===0||Object.keys(r).length===0)return null;var i={},o=Object.values(r).filter(function(a){return a&&a.viewTag}).sort(function(a,s){return s.order-a.order});return o.forEach(function(a,s){var l,c,u,d,p,h=a.viewTag,g=n[s];if(!g||g.length===0){i[h.TagId]={y1:0,y2:0,y2y1:0,pmin:{x:0,y:0},pmax:{x:0,y:0}};return}for(var m=null,v=null,y={x:0,y:Number.POSITIVE_INFINITY},M={x:0,y:Number.NEGATIVE_INFINITY},C=0,x=g;C<x.length;C++){var w=x[C],S=typeof w.timestamp=="string"?new Date(w.timestamp).getTime():w.timestamp,A=(l=w.value)!==null&&l!==void 0?l:0;if(S<=e&&(m={timestamp:S,value:A}),S>e&&S<=t&&(v={timestamp:S,value:A},A<y.y&&(y={x:S,y:A}),A>M.y&&(M={x:S,y:A})),S>t)break}!v&&m&&(v=m);var z=(c=m?.value)!==null&&c!==void 0?c:0,O=(u=v?.value)!==null&&u!==void 0?u:0;y.y===Number.POSITIVE_INFINITY&&(y={x:(d=m?.timestamp)!==null&&d!==void 0?d:0,y:z}),M.y===Number.NEGATIVE_INFINITY&&(M={x:(p=v?.timestamp)!==null&&p!==void 0?p:0,y:O}),i[h.TagId]={y1:z,y2:O,y2y1:O-z,pmin:y,pmax:M}}),{x1:e,x2:t,tagValues:i}},[e,t,n,r])};function SG(e,t,n){var r=Math.max(t.left,Math.min(e,t.right)),i=t.right-t.left,o=n.end-n.start;if(i<=0)return n.start;var a=r-t.left,s=a/i,l=n.start+s*o;return Math.round(l)}function AG(e,t,n){var r=n.end-n.start,i=t.right-t.left;if(r<=0)return t.left;var o=e-n.start,a=o/r,s=Math.max(0,Math.min(a,1)),l=t.left+s*i;return l}var mxi=function(e){return e.map(function(t){return[t.timestamp,t.value]})},vxi=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],bxi=function(e){var t=e.series,n=t===void 0?[]:t,r=e.customOptions,i=e.isLoading,o=i===void 0?!1:i,a=e.onChartReady,s=e.dataLoadedTrigger,l=s===void 0?0:s,c=b.useRef(null),u=Rk(),d=u.state,p=d.timeScopeStart,h=d.timeScopeEnd,g=d.viewTags,m=d.highlightedSeries,v=d.cursor1Time,y=d.cursor2Time,M=d.selectedCursor,C=u.actions;C.setTotalScope;var x=C.updateCursor1Time,w=C.updateCursor2Time,S=C.setSelectedCursor,A=C.setCursorData,z=b.useRef(!1);b.useRef(null);var O=b.useState(null),T=O[0],I=O[1],P=b.useState(null),N=P[0],F=P[1],L=b.useState({start:p.getTime(),end:h.getTime()}),W=L[0],H=L[1],j=b.useState(null),G=j[0],q=j[1],$=b.useState(null),U=$[0],X=$[1];b.useEffect(function(){H({start:p.getTime(),end:h.getTime()})},[p,h]);var Q=b.useState(null),re=Q[0],ee=Q[1],se=b.useRef(""),pe=b.useRef(""),te=b.useRef(void 0),ce=b.useMemo(function(){var Ie=Object.values(g).filter(function(ze){return ze&&ze.viewTag}).sort(function(ze,Ve){return Ve.order-ze.order});if(!n||n.length===0||Ie.length===0)return{analogSeries:[],digitalSeries:[],analogTags:[],digitalTags:[]};var Le=[],we=[],ve=[],De=[];return n.forEach(function(ze,Ve){var Ke=Ie[Ve];if(Ke){var et=Ke.viewTag,it=mxi(ze.map(function(Pt){return{timestamp:typeof Pt.timestamp=="string"?new Date(Pt.timestamp).getTime():Pt.timestamp,value:Pt.value}})),Ft={name:et.Alias||et.TagName,data:it,tagId:et.TagId,color:et.Color,visible:et.IsVisible};et.TagType==="D"?(we.push(Ft),De.push(et)):(Le.push(Ft),ve.push(et))}}),{analogSeries:Le,digitalSeries:we,analogTags:ve,digitalTags:De}},[n,g,p,h]),oe=r||{showGridLines:!0,showSymbols:!1,smoothLines:!0,showLegend:!0,showTooltip:!0,combinedView:!1,showToolbox:!0,showYAxisNames:!0};b.useEffect(function(){var Ie="".concat(p.getTime(),"-").concat(h.getTime()),Le=Ie!==pe.current&&pe.current!=="",we=te.current!==void 0&&oe.combinedView!==te.current;(Le||we)&&ee(null),pe.current=Ie,te.current=oe.combinedView},[p,h,oe.combinedView]);var ae=b.useCallback(function(Ie,Le,we,ve){ve===void 0&&(ve=0);var De={gridIndex:Le,type:"value",name:oe.showYAxisNames?Ie.Alias||Ie.TagName:"",nameLocation:"middle",nameGap:45+ve,position:we,offset:ve,splitNumber:8,nameTextStyle:{color:Ie.Color,fontSize:11,fontWeight:"bold"},axisLine:{show:!0,lineStyle:{color:Ie.Color}},axisTick:{show:!0},axisLabel:{show:!0,color:Ie.Color,fontSize:10},splitLine:{show:we==="left"&&ve===0?oe.showGridLines:!1,lineStyle:{color:"#e0e0e0",type:"solid"}}};return Ie.IsAutoScale?De.scale=!0:(Ie.MinScale!==null&&Ie.MinScale!==void 0&&(De.min=Ie.MinScale),Ie.MaxScale!==null&&Ie.MaxScale!==void 0&&(De.max=Ie.MaxScale)),Ie.TagType==="D"&&Ie.IsAutoScale&&(De.min=0,De.max=1,De.interval=.5,delete De.scale),De},[oe.showGridLines,!0,oe.showYAxisNames]),ne=!oe.combinedView&&ce.analogTags.length>0&&ce.digitalTags.length>0,le=b.useMemo(function(){return"chart-".concat(ne?"separate":"combined")},[ne]),he=gxi(v,y,n,g),be=b.useRef("");b.useEffect(function(){var Ie=JSON.stringify(he);Ie!==be.current&&(be.current=Ie,A(he))},[he,A]);var me=b.useRef(""),Me=b.useRef(v),Oe=b.useRef(y),de=b.useRef(!1);b.useEffect(function(){if(N){if(G===null||U===null){var Ie=AG(v,N,W),Le=AG(y,N,W);q(Ie),X(Le),me.current=JSON.stringify(W),Me.current=v,Oe.current=y;return}if(!de.current){var we=JSON.stringify(W)!==me.current,ve=v!==Me.current,De=y!==Oe.current;if(we){if(G!==null&&U!==null){var ze=SG(G,N,W),Ve=SG(U,N,W);x(ze),w(Ve),me.current=JSON.stringify(W),Me.current=ze,Oe.current=Ve}}else{if(ve){var Ke=AG(v,N,W);q(Ke),Me.current=v}if(De){var et=AG(y,N,W);X(et),Oe.current=y}}}}},[N,W,v,y,G,U,x,w]);var ie=b.useCallback(function(Ie){if(!(!N||!W)){de.current=!0;var Le=SG(Ie,N,W);x(Le),q(Ie),Me.current=Le}},[N,W,x]),ue=b.useCallback(function(Ie){if(!(!N||!W)){de.current=!0;var Le=SG(Ie,N,W);w(Le),X(Ie),Oe.current=Le}},[N,W,w]),Ae=b.useCallback(function(Ie){ie(Ie),de.current=!1},[ie]),Ce=b.useCallback(function(Ie){ue(Ie),de.current=!1},[ue]),Ee=b.useMemo(function(){var Ie=function(De){if(De===0)return 60;var ze=Math.ceil(De/2);return(ze-1)*60+60},Le=Ie(ce.analogTags.length),we=Ie(ce.digitalTags.length),ve=Ie(ce.analogTags.length+ce.digitalTags.length);return{animation:!1,backgroundColor:"#fff",color:vxi,grid:ne?[{id:"analog",left:"".concat(Le,"px"),right:"".concat(Le,"px"),top:oe.showLegend?"70px":"50px",bottom:"55%",containLabel:!1},{id:"digital",left:"".concat(we,"px"),right:"".concat(we,"px"),top:"55%",bottom:"60px",containLabel:!1}]:[{id:"combined",left:"".concat(ve,"px"),right:"".concat(ve,"px"),top:oe.showLegend?"70px":"50px",bottom:"60px",containLabel:!1}],xAxis:ne?[{gridIndex:0,type:"time",show:!0,position:"top",min:p.getTime(),max:h.getTime(),axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!0,alignWithLabel:!0},axisLabel:{show:!0,color:"#333",fontSize:11,formatter:function(De,ze){var Ve=new Date(De),Ke=Ve.getHours(),et=Ve.getMinutes(),it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ft=it[Ve.getMonth()],Pt=Ve.getDate();return ze===0?"".concat(Ft," ").concat(Pt,", ").concat(Ve.getFullYear(),`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):Ke===0&&et===0?"".concat(Ft," ").concat(Pt,`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):"".concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0"))}},splitLine:{show:oe.showGridLines,lineStyle:{color:"#e0e0e0",type:"solid"}}},{gridIndex:1,type:"time",show:!0,position:"bottom",min:p.getTime(),max:h.getTime(),axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!0,alignWithLabel:!0},axisLabel:{show:!0,color:"#333",fontSize:11,formatter:function(De,ze){var Ve=new Date(De),Ke=Ve.getHours(),et=Ve.getMinutes(),it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ft=it[Ve.getMonth()],Pt=Ve.getDate();return ze===0?"".concat(Ft," ").concat(Pt,", ").concat(Ve.getFullYear(),`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):Ke===0&&et===0?"".concat(Ft," ").concat(Pt,`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):"".concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0"))}},splitLine:{show:oe.showGridLines,lineStyle:{color:"#e0e0e0",type:"solid"}}}]:[{gridIndex:0,type:"time",show:!0,position:"bottom",min:p.getTime(),max:h.getTime(),axisLine:{show:!0,lineStyle:{color:"#999"}},axisTick:{show:!0,alignWithLabel:!0},axisLabel:{show:!0,color:"#333",fontSize:11,formatter:function(De,ze){var Ve=new Date(De),Ke=Ve.getHours(),et=Ve.getMinutes(),it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ft=it[Ve.getMonth()],Pt=Ve.getDate();return ze===0?"".concat(Ft," ").concat(Pt,", ").concat(Ve.getFullYear(),`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):Ke===0&&et===0?"".concat(Ft," ").concat(Pt,`
`).concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0")):"".concat(Ke.toString().padStart(2,"0"),":").concat(et.toString().padStart(2,"0"))}},splitLine:{show:oe.showGridLines,lineStyle:{color:"#e0e0e0",type:"solid"}}}],yAxis:(function(){var De=[];return ne?(ce.analogTags.forEach(function(ze,Ve){var Ke=Ve%2===0?"left":"right",et=Math.floor(Ve/2)*60;De.push(ae(ze,0,Ke,et))}),ce.digitalTags.forEach(function(ze,Ve){var Ke=Ve%2===0?"left":"right",et=Math.floor(Ve/2)*60;De.push(ae(ze,1,Ke,et))})):(ce.analogTags.forEach(function(ze,Ve){var Ke=Ve%2===0?"left":"right",et=Math.floor(Ve/2)*60;De.push(ae(ze,0,Ke,et))}),ce.digitalTags.forEach(function(ze,Ve){var Ke=Ve%2===0?"left":"right",et=Math.ceil(ce.analogTags.length/2)*60,it=et+Math.floor(Ve/2)*60;De.push(ae(ze,0,Ke,it))})),De.length===0&&De.push({gridIndex:0,type:"value",show:!1,position:"left",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}),De})(),series:(function(){var De=ce.analogTags.length;return xi(xi([],ce.analogSeries.map(function(ze,Ve){return{name:ze.name,type:"line",xAxisIndex:0,yAxisIndex:Ve,data:ze.data,smooth:oe.smoothLines,symbol:oe.showSymbols?"circle":"none",sampling:"lttb",show:ze.visible,lineStyle:{width:2,color:ze.color},itemStyle:{color:ze.color},emphasis:{focus:"series"},showSymbol:oe.showSymbols}}),!0),ce.digitalSeries.map(function(ze,Ve){return{name:ze.name,type:"line",step:"end",xAxisIndex:ne?1:0,yAxisIndex:De+Ve,data:ze.data,symbol:oe.showSymbols?"circle":"none",show:ze.visible,lineStyle:{width:2,color:ze.color},itemStyle:{color:ze.color},emphasis:{focus:"series"},showSymbol:oe.showSymbols}}),!0)})(),dataZoom:xi([tt({type:"inside",xAxisIndex:ne?[0,1]:[0],zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!1},re?{start:re.start,end:re.end}:{})],[tt({type:"slider",xAxisIndex:ne?[0,1]:[0],bottom:3,height:19,handleSize:"80%",showDetail:!0,filterMode:"none"},re?{start:re.start,end:re.end}:{})],!0),tooltip:oe.showTooltip?{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}},backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#ccc",borderWidth:1,textStyle:{color:"#333",fontSize:12},formatter:function(De){if(!De||De.length===0)return"";var ze=new Date(De[0].value[0]),Ve='<div style="font-weight: bold; margin-bottom: 5px;">'.concat(ze.toLocaleString(),"</div>");return De.forEach(function(Ke){var et='<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background-color:'.concat(Ke.color,';margin-right:5px;"></span>');Ve+="<div>".concat(et).concat(Ke.seriesName,": ").concat(Ke.value[1],"</div>")}),Ve}}:void 0,legend:{show:oe.showLegend,top:5,left:"center",textStyle:{color:"#333",fontSize:12},selected:(function(){var De={};return ce.analogSeries.forEach(function(ze){De[ze.name]=ze.visible}),ce.digitalSeries.forEach(function(ze){De[ze.name]=ze.visible}),De})()},toolbox:oe.showToolbox&&(ce.analogSeries.length>0||ce.digitalSeries.length>0)?{show:!0,right:10,top:10,feature:{dataZoom:{show:!0,title:{zoom:"Area Zoom",back:"Restore Area Zoom"},yAxisIndex:"none",xAxisIndex:ne?[0,1]:[0],icon:{zoom:"path://",back:"path://"},iconStyle:{opacity:0,borderWidth:0}},restore:{show:!0,title:"Restore",icon:"path://",iconStyle:{opacity:0,borderWidth:0}},saveAsImage:{}}}:void 0}},[oe,ce,p,h,ae,re,ne]),Ge=b.useCallback(function(Ie){var Le;if(!z.current){var we=(Le=c.current)===null||Le===void 0?void 0:Le.getEchartsInstance();if(we){if(Ie.batch&&Ie.batch.length>0){var ve=Ie.batch[0];if(typeof ve.start=="number"&&typeof ve.end=="number"){var De=ve.start<=.1&&ve.end>=99.9;ee(De?null:{start:ve.start,end:ve.end})}}if(Ie.batch&&Ie.batch.length>0){var ve=Ie.batch[0];if(typeof ve.start=="number"&&typeof ve.end=="number"){var ze=p.getTime(),Ve=h.getTime(),Ke=Ve-ze,et=ze+Ke*ve.start/100,it=ze+Ke*ve.end/100;H({start:et,end:it})}}}}},[p,h]),_e=b.useMemo(function(){return{dataZoom:Ge}},[Ge]);return b.useEffect(function(){var Ie,Le=(Ie=c.current)===null||Ie===void 0?void 0:Ie.getEchartsInstance();Le&&(m?Le.dispatchAction({type:"highlight",seriesName:m}):Le.dispatchAction({type:"downplay"}))},[m]),b.useEffect(function(){var Ie,Le=((Ie=c.current)===null||Ie===void 0?void 0:Ie.getEchartsInstance())||null;I(Le),a&&a(Le)},[a,l,Ee]),b.useEffect(function(){var Ie,Le=(Ie=c.current)===null||Ie===void 0?void 0:Ie.getEchartsInstance();if(Le){var we=function(){try{var De=Le.getOption(),ze=De.grid;if(ze&&ze.length>0){var Ve=Le.getWidth(),Ke=Le.getHeight(),et=function(ir,jn){if(typeof ir=="string"){if(ir.includes("%"))return parseFloat(ir)/100*jn;if(ir.includes("px"))return parseFloat(ir)}return typeof ir=="number"?ir:0},it=ze[0],Ft=ze.length>1?ze[ze.length-1]:ze[0],Pt={top:et(it.top||60,Ke),bottom:Ke-et(Ft.bottom||80,Ke),left:et(it.left||60,Ve),right:Ve-et(it.right||60,Ve)},Qn=JSON.stringify(Pt);Qn!==se.current&&(se.current=Qn,F(Pt))}}catch{}};we();var ve=function(){setTimeout(we,100)};return window.addEventListener("resize",ve),function(){return window.removeEventListener("resize",ve)}}},[T,ne]),b.useEffect(function(){if(M){var Ie=function(Le){var we=h.getTime()-p.getTime(),ve=we*.01,De=we*.05,ze=Le.shiftKey?De:ve;switch(Le.key){case"ArrowLeft":Le.preventDefault(),M==="cursor1"?x(v-ze):w(y-ze);break;case"ArrowRight":Le.preventDefault(),M==="cursor1"?x(v+ze):w(y+ze);break;case"Escape":Le.preventDefault(),S(null);break;case"Tab":Le.preventDefault(),S(M==="cursor1"?"cursor2":"cursor1");break}};return window.addEventListener("keydown",Ie),function(){return window.removeEventListener("keydown",Ie)}}},[M,v,y,p,h,x,w,S]),E.createElement(kt,{style:{height:"100%",padding:"8px",position:"relative"}},o&&E.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:10}},E.createElement(Kt,{size:"2rem"})),E.createElement("div",{style:{height:"100%",width:"100%",position:"relative"}},E.createElement(SM,{key:le,ref:c,option:Ee,style:{height:"100%",width:"100%",opacity:o?.3:1},notMerge:!1,onEvents:_e,opts:{renderer:"canvas"}}),N&&G!==null&&U!==null&&E.createElement(E.Fragment,null,E.createElement(l2e,{color:"red",chartArea:N,initialLeft:G,onChange:ie,onDragEnd:Ae,otherLineCoord:U,minSpacing:20,timestamp:v}),E.createElement(l2e,{color:"blue",chartArea:N,initialLeft:U,onChange:ue,onDragEnd:Ce,otherLineCoord:G,minSpacing:20,timestamp:y}))))},yxi=function(e){var t=e.autoRefresh,n=t===void 0?!1:t;return Bl({queryKey:["views-v2"],queryFn:function(){return Ct(void 0,void 0,void 0,function(){var r;return xt(this,function(i){switch(i.label){case 0:return[4,_Ot(null)];case 1:if(r=i.sent(),r.ok)return[2,r.data.tables[0].rows];throw new Error(r.message||"Failed to fetch views")}})})},refetchInterval:n?1e4:!1})},Mxi=function(e){var t=e.viewId;return Bl({queryKey:["viewTags-v2",t],queryFn:function(){return Ct(void 0,void 0,void 0,function(){var n;return xt(this,function(r){switch(r.label){case 0:return t?[4,v3e(t)]:[3,2];case 1:if(n=r.sent(),n.ok)return[2,n.data.tables[0].rows];throw new Error(n.message||"Failed to fetch view tags");case 2:return[2,[]]}})})},enabled:t!==null})},Cxi=function(e){var t=e.start,n=e.end,r=e.tagIds,i=e.autoRefresh,o=i===void 0?!1:i;return Bl({queryKey:["series-v2",t,n,r],queryFn:function(a){return Ct(void 0,[a],void 0,function(s){var l,c,u=s.signal;return xt(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),!r||r.length===0?[2,[]]:[4,Xs.post("/series?nodeName=null",{start:t,end:n||new Date().getTime(),tagIds:r,sampleCount:1e3},{signal:u})];case 1:return l=d.sent(),[2,Ot(l,"data",[])];case 2:if(c=d.sent(),Xs.isCancel(c)||c.name==="AbortError")return[2,[]];throw new Error(s3e(c));case 3:return[2]}})})},refetchInterval:o?1e4:!1,enabled:r.length>0})},xxi=function(){var e=b.useState(!1),t=e[0],n=e[1],r=b.useState(null),i=r[0],o=r[1],a=b.useState(""),s=a[0],l=a[1],c=b.useState(null),u=c[0],d=c[1],p=b.useState(null),h=p[0],g=p[1],m=b.useState(0),v=m[0],y=m[1],M=Rk(),C=M.state,x=C.viewSelected,w=C.viewTags,S=C.timeScopeStart,A=C.timeScopeEnd,z=M.actions,O=z.setViews,T=z.setViewTagsAndRefetch,I=z.setViewSelected,P=z.setSeriesMinMax,N=z.resetCursors,F=yxi({autoRefresh:t}),L=F.data,W=F.isLoading,H=F.isError,j=F.error,G=F.isSuccess,q=Mxi({viewId:u}),$=q.data,U=q.isLoading,X=q.isError,Q=q.error,re=q.isSuccess,ee=b.useMemo(function(){return Object.values(w).filter(function(ue){return ue&&ue.viewTag}).sort(function(ue,Ae){return Ae.order-ue.order}).map(function(ue){return ue.viewTag.TagId})},[w]),se=b.useRef([]),pe=b.useRef(""),te=b.useMemo(function(){var ue="".concat(S.getTime(),"-").concat(A.getTime()),Ae=ue!==pe.current,Ce=ee.some(function(Ee){return!se.current.includes(Ee)});return(se.current.length===0||Ce||Ae)&&(se.current=ee,pe.current=ue),se.current},[ee,S,A]),ce=Cxi({start:S.getTime(),end:A.getTime(),tagIds:te,autoRefresh:t}),oe=ce.data,ae=ce.isLoading,ne=ce.isError,le=ce.error,he=b.useMemo(function(){if(!oe)return[];if(oe.length!==te.length)return[];var ue=new Map;return te.forEach(function(Ae,Ce){oe[Ce]&&ue.set(Ae,oe[Ce])}),ee.map(function(Ae){return ue.get(Ae)}).filter(Boolean)},[oe,ee,te]),be=YCi(he,ee);b.useEffect(function(){if(!(!G||!L||!Array.isArray(L))&&(O(L),!x)){var ue=L.reduce(function(Ae,Ce){return Ae&&Ae.ViewId>Ce.ViewId?Ae:Ce},null);ue&&(d(ue.ViewId),I(ue))}},[G,L,x,O,I]),b.useEffect(function(){x&&d(x.ViewId)},[x]);var me=b.useRef(null);b.useEffect(function(){if(!(!re||!$||!Array.isArray($))&&u!==me.current){me.current=u;var ue=$.reduce(function(Ae,Ce,Ee){return gi(Ce.Color)&&(Ce.Color=gj()),Ae[Ce.TagId]={viewTag:Ce,order:Ee},Ae},{});se.current=[],T(ue)}},[re,$,T,u]);var Me=b.useRef("");b.useEffect(function(){var ue=JSON.stringify(be);ue!==Me.current&&(Me.current=ue,P(be))},[be,P]);var Oe=b.useRef(null);b.useEffect(function(){x&&x.ViewId!==Oe.current&&(Oe.current=x.ViewId,N())},[x,N]),b.useEffect(function(){N()},[S,A,N]);var de=b.useRef(!1);b.useEffect(function(){de.current&&!ae&&y(function(ue){return ue+1}),de.current=ae},[ae]),b.useEffect(function(){Q&&X&&l(Q instanceof Error?Q.message:String(Q)),j&&H&&l(j instanceof Error?j.message:String(j)),le&&ne&&l(le instanceof Error?le.message:String(le))},[j,H,Q,X,le,ne]);var ie=W||U;return E.createElement(E.Fragment,null,E.createElement(Mn,{title:"Trendings V2 (ECharts)"}),E.createElement(D,{container:!0,direction:"column",wrap:"nowrap",style:{width:"98vw",height:"92vh",margin:"0 auto",padding:"8px",position:"relative"}},ie&&E.createElement("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(255, 255, 255, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3}},E.createElement(Kt,{size:"3rem"})),E.createElement(D,{item:!0,style:{flexShrink:0}},E.createElement(BOt,{autoRefresh:t,setAutoRefresh:n,setChartOptions:o,chartInstance:h})),E.createElement(D,{item:!0,style:{flexShrink:0}},E.createElement(ua,{style:{margin:"3px 0"}})),E.createElement(D,{item:!0,style:{flexGrow:1,minHeight:0,overflow:"hidden"}},E.createElement(bxi,{customOptions:i,series:he,isLoading:ae,onChartReady:g,dataLoadedTrigger:v})),E.createElement(D,{item:!0,style:{flexShrink:0,height:"160px",marginTop:"3px"}},E.createElement(fxi,null))),E.createElement(Mt,{error:s,onHide:function(){return l("")},size:"xl",title:"ERROR"}))},wxi=function(){var e=b.useState(!1),t=e[0],n=e[1];return b.useEffect(function(){var r=function(){return Ct(void 0,void 0,void 0,function(){var i;return xt(this,function(o){switch(o.label){case 0:return[4,u3.get("/backend/ih-path")];case 1:return i=o.sent(),localStorage.setItem("ihPath",i.data),n(!0),[2]}})})};r()},[]),t?E.createElement(XCi,null,E.createElement(xxi,null)):E.createElement("div",{className:"d-flex justify-content-center align-items-center"},"Loading...")};/*!
  * chartjs-adapter-moment v1.0.1
  * https://www.chartjs.org
  * (c) 2022 chartjs-adapter-moment Contributors
  * Released under the MIT license
  */const Sxi={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};fCt._date.override(typeof mt=="function"?{_id:"moment",formats:function(){return Sxi},parse:function(e,t){return typeof e=="string"&&typeof t=="string"?e=mt(e,t):e instanceof mt||(e=mt(e)),e.isValid()?e.valueOf():null},format:function(e,t){return mt(e).format(t)},add:function(e,t,n){return mt(e).add(t,n).valueOf()},diff:function(e,t,n){return mt(e).diff(mt(t),n)},startOf:function(e,t,n){return e=mt(e),t==="isoWeek"?(n=Math.trunc(Math.min(Math.max(0,n),6)),e.isoWeekday(n).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return mt(e).endOf(t).valueOf()}}:{});var Axi=`/* ContextMenu.css */ .context-menu {
	position: absolute;
	z-index: 1000;
	background-color: #fff;
	border: 1px solid #ddd;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

.context-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.context-menu li {
	padding: 8px 15px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
	background-color: #fff;
	color: #333;
	font-size: 14px;
}

.context-menu li:hover {
	background-color: #f5f5f5;
}
`;aOt(Axi,{});var $Ot=Rt({swatch:{width:"25px",height:"25px",display:"inline-block",margin:"2px",borderRadius:"4px",cursor:"pointer"},popover:{display:"flex",flexWrap:"wrap",padding:"10px",maxWidth:"165px"}}),Oxi=function(e){var t=e.color,n=e.onSelect,r=$Ot();return E.createElement("div",{className:r.swatch,style:{backgroundColor:t},onClick:function(){return n(t)}})},zxi=function(e){var t=e.onChange,n=e.color,r=e.elementId,i=$Ot(),o=b.useState(null),a=o[0],s=o[1],l=function(p){s(p.currentTarget)},c=function(){s(null)},u=!!a,d=u?"simple-popover":void 0;return E.createElement("div",null,E.createElement(Fe,{"aria-describedby":d,variant:"outlined",onClick:l,style:{backgroundColor:n,width:"20px",height:"20px",minWidth:"20px",padding:0,margin:"4px"}}),E.createElement(S3,{id:d,open:u,anchorEl:a,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"left"}},E.createElement("div",{className:i.popover},m3e.map(function(p){return E.createElement(Oxi,{key:p,color:p,onSelect:function(h){t(r,h),c()}})}))))},Txi={timeScopeStart:mt(new Date).subtract(1,"days").toDate(),timeScopeEnd:new Date,scope:"1 day",graphPan:!1,graphShouldUpdate:0,views:[{ViewId:0,ViewName:"",UserName:null,IsPublic:!1,LastModified:null,LastModifiedBy:null}],viewSelected:null,viewTags:{},shouldRefetchSeries:1},$X=Ni({name:"__",initialState:Txi,reducers:{setTotalScope:function(e,t){var n=t.payload;if(t.type,e.shouldRefetchSeries+=1,e.graphShouldUpdate+=1,!gi(n.start)&&!gi(n.end)&&!gi(n.scope)){e.timeScopeStart=n.start,e.timeScopeEnd=n.end,e.scope=n.scope;return}if(!gi(n.scope)){if(n.scope!=="custom")switch(n.scope){case"10 min":e.timeScopeStart=mt(e.timeScopeEnd).subtract(10,"minutes").toDate();break;case"1 hour":e.timeScopeStart=mt(e.timeScopeEnd).subtract(1,"hours").toDate();break;case"4 hours":e.timeScopeStart=mt(e.timeScopeEnd).subtract(4,"hours").toDate();break;case"12 hours":e.timeScopeStart=mt(e.timeScopeEnd).subtract(12,"hours").toDate();break;case"1 day":e.timeScopeStart=mt(e.timeScopeEnd).subtract(1,"days").toDate();break;case"10 days":e.timeScopeStart=mt(e.timeScopeEnd).subtract(10,"days").toDate();break}e.scope=n.scope;return}if(!gi(n.start)&&!gi(n.end)&&gi(n.graphPan)){e.timeScopeStart=n.start,e.timeScopeEnd=n.end,e.scope="custom";return}if(!gi(n.start)&&!gi(n.end)&&!gi(n.graphPan)){e.timeScopeStart=n.start,e.timeScopeEnd=n.end;return}if(!gi(n.start)){if(e.timeScopeStart=n.start,e.scope!=="custom")switch(e.scope){case"10 min":e.timeScopeEnd=mt(n.start).add(10,"minutes").toDate();break;case"1 hour":e.timeScopeEnd=mt(n.start).add(1,"hours").toDate();break;case"4 hours":e.timeScopeEnd=mt(n.start).add(4,"hours").toDate();break;case"12 hours":e.timeScopeEnd=mt(n.start).add(12,"hours").toDate();break;case"1 day":e.timeScopeEnd=mt(n.start).add(1,"days").toDate();break;case"10 days":e.timeScopeEnd=mt(n.start).add(10,"days").toDate();break}return}if(!gi(n.end)){if(e.timeScopeEnd=n.end,e.scope!=="custom")switch(e.scope){case"10 min":e.timeScopeStart=mt(n.end).subtract(10,"minutes").toDate();break;case"1 hour":e.timeScopeStart=mt(n.end).subtract(1,"hours").toDate();break;case"4 hours":e.timeScopeStart=mt(n.end).subtract(4,"hours").toDate();break;case"12 hours":e.timeScopeStart=mt(n.end).subtract(12,"hours").toDate();break;case"1 day":e.timeScopeStart=mt(n.end).subtract(1,"days").toDate();break;case"10 days":e.timeScopeStart=mt(n.end).subtract(10,"days").toDate();break}return}},setViews:function(e,t){var n=t.payload;e.views=n},setViewSelected:function(e,t){var n=t.payload;e.viewSelected=n},setViewTags:function(e,t){var n=t.payload;e.viewTags=n,e.graphShouldUpdate+=1},setViewTagsAndRefetch:function(e,t){var n=t.payload,r=structuredClone(n);xi([],Object.values(n),!0).sort(function(i,o){return o.order-i.order}).forEach(function(i,o){r[i.viewTag.TagId].order=o}),e.viewTags=r,e.shouldRefetchSeries+=1},setGraphShouldUpdate:function(e){e.graphShouldUpdate=1}}}),UOt=b.createContext({state:$X.getInitialState(),actions:$X.actions}),OM=function(){return b.useContext(UOt)},Exi=function(e){var t=e.children,n=Ui.useComplexState({initialState:$X.getInitialState(),reducers:$X.caseReducers}),r=n[0],i=n[1],o=b.useMemo(function(){return{state:r,actions:i}},[r,i]);return E.createElement(UOt.Provider,{value:o},t)},Rxi=function(e){var t=e.open,n=e.handleClose,r=e.view,i=b.useState(!1),o=i[0],a=i[1],s=b.useState(""),l=s[0],c=s[1],u=function(){return Ct(void 0,void 0,void 0,function(){var d;return xt(this,function(p){switch(p.label){case 0:return a(!0),gi(r)?[3,2]:[4,NOt(r.ViewId)];case 1:d=p.sent(),d.ok?n(!0):c(d.message),p.label=2;case 2:return a(!1),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"xl","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Delete View"},E.createElement(ua,null),E.createElement(We.Content,null,gi(r)?E.createElement(bt,null,"ERROR: No view detected, please select one"):E.createElement(D,{container:!0,spacing:5,style:{padding:"2rem"}},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"10px",width:"100%"}},E.createElement(bt,null,"Are yu sure you want to delete"," ",E.createElement("strong",null,r?.ViewName)," ?")))),E.createElement(ua,null),E.createElement(We.Actions,null,E.createElement(D,{container:!0,spacing:1,style:{display:"flex",alignItems:"flex-end",justifyContent:"flex-end"}},E.createElement(D,{item:!0},E.createElement(Fe,{variant:"outlined",color:"secondary",onClick:function(){return n(!1)}},"Cancel")),E.createElement(D,{item:!0},gi(r)?E.createElement(Fe,{variant:"contained",style:{marginRight:"1rem"},color:"primary",onClick:function(){return n(!1)}},"Ok"):E.createElement(Da,{variant:"contained",color:"secondary",onClick:u,isLoading:o},"Delete"))))),E.createElement(Mt,{error:l,onHide:function(){return c("")}}))},Ixi=function(e){var t=e.open,n=e.handleClose,r=e.view,i=sT(),o=b.useState(""),a=o[0],s=o[1],l=b.useState(!0),c=l[0],u=l[1],d=b.useState(!1),p=d[0],h=d[1],g=b.useState(""),m=g[0],v=g[1],y=function(){return Ct(void 0,void 0,void 0,function(){var x;return xt(this,function(w){switch(w.label){case 0:return h(!0),gi(r)?[3,2]:[4,mj(r.ViewId,a,c)];case 1:x=w.sent(),x.ok?n(!0):v(x.message),w.label=2;case 2:return h(!1),[2]}})})},M=function(x){x.preventDefault();var w=x.target.value;s(w)},C=function(){return u(!c)};return b.useEffect(function(){r&&(u(r.IsPublic),s(r.ViewName))},[r]),E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"xl","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Update View"},E.createElement(ua,null),E.createElement(We.Content,null,gi(r)?E.createElement(bt,null,"ERROR: No view detected, please select one"):E.createElement(D,{container:!0,spacing:5,style:{padding:"2rem"}},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"10px",width:"100%"}},E.createElement(je,{required:!0,className:i.inputCustom,id:"viewName",label:"Name",variant:"outlined",onChange:M,value:a})),E.createElement(D,{item:!0,md:12,xs:12,style:{paddingTop:"2rem"},className:i.isPublicCheckbox},E.createElement("label",null,E.createElement("input",{type:"checkbox",checked:c,onChange:C}),E.createElement(bt,null,"Public"))))),E.createElement(ua,null),E.createElement(We.Actions,null,E.createElement(D,{container:!0,spacing:1,style:{display:"flex",alignItems:"flex-end",justifyContent:"flex-end"}},E.createElement(D,{item:!0},E.createElement(Fe,{variant:"outlined",color:"secondary",onClick:function(){return n(!1)}},"Cancel")),E.createElement(D,{item:!0},gi(r)?E.createElement(Fe,{variant:"contained",style:{marginRight:"1rem"},color:"primary",onClick:function(){return n(!1)}},"Ok"):E.createElement(Da,{variant:"contained",color:"primary",onClick:y,isLoading:p},"Update"))))),E.createElement(Mt,{error:m,onHide:function(){return v("")}}))},Pxi=function(e){var t=e.open,n=e.handleClose,r=e.getTagsFromAPI,i=OM(),o=i.state,a=o.views,s=o.viewSelected,l=i.actions;l.setViews;var c=l.setViewTagsAndRefetch,u=l.setViewSelected,d=sT(),p=b.useState(null),h=p[0],g=p[1],m=b.useState(null),v=m[0],y=m[1],M=b.useState(!1),C=M[0],x=M[1],w=b.useState(!1),S=w[0],A=w[1],z=b.useState(!1),O=z[0],T=z[1],I=b.useState(!1),P=I[0],N=I[1],F=b.useState(""),L=F[0],W=F[1],H=function(){return Ct(void 0,void 0,void 0,function(){var U;return xt(this,function(X){switch(X.label){case 0:return s?(N(!0),[4,v3e(s.ViewId)]):[3,2];case 1:U=X.sent(),U.ok?c(U.data.tables[0].rows.reduce(function(Q,re,ee){return gi(re.Color)&&(re.Color=gj()),Q[re.TagId]={viewTag:re,order:ee},Q},{})):W(U.message),N(!1),n(!1),X.label=2;case 2:return[2]}})})},j=function(U,X){return Ct(void 0,void 0,void 0,function(){return xt(this,function(Q){return X.stopPropagation(),U.ViewId===s?.ViewId?W("Can not delete current view"):(g(U),x(!0)),[2]})})},G=function(U,X){return Ct(void 0,void 0,void 0,function(){return xt(this,function(Q){return y(U),A(!0),[2]})})},q=function(){T(function(U){return!U})},$=b.useMemo(function(){return a.filter(function(U){return U.IsPublic===!0})},[a,O]);return E.createElement("div",null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"xl","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Views"},E.createElement(We.Content,null,E.createElement(D,{container:!0},a.length?E.createElement(E.Fragment,null,E.createElement(D,{item:!0,md:12},E.createElement("div",{className:d.isPublicCheckbox,style:{paddingBottom:"1rem"}},E.createElement("label",{htmlFor:""},E.createElement("input",{type:"checkbox",checked:O,onChange:q}),E.createElement(bt,null,"All Views")))),E.createElement(D,{item:!0,md:12},E.createElement(Ji,{size:"small",id:"list-of-views",noOptionsText:O?"No views detected, please create a new view":"No private views detected, please create a new view .",options:O?a:$,getOptionLabel:function(U){return U.ViewName},onChange:function(U,X){return u(X)},defaultValue:s,style:{width:"100%"},renderOption:function(U){return E.createElement("div",{className:d.optionContainer},E.createElement("div",{className:d.optionLabel},U.ViewName),E.createElement("div",{className:d.iconContainer},U.IsPublic?"":E.createElement(E.Fragment,null,E.createElement(tl,{title:"Private",arrow:!0},E.createElement(vB,{fontSize:"small",style:{color:"black",height:"18px",width:"18px",cursor:"auto"}}))),E.createElement(yn,{onClick:function(X){return G(U)}},E.createElement(Bxe,{fontSize:"small",color:"primary",style:{height:"18px",width:"18px",cursor:"pointer"}})),E.createElement(yn,{onClick:function(X){return j(U,X)}},E.createElement(Mo,{fontSize:"small",color:"secondary",style:{height:"18px",width:"18px",cursor:"pointer"}}))))},renderInput:function(U){return E.createElement(je,tt({},U,{label:"Views",variant:"outlined"}))}}))):E.createElement(bt,null,"No views detected, please add one"))),E.createElement(We.Actions,null,E.createElement("div",{style:{paddingTop:"1rem"}},E.createElement(Fe,{variant:"outlined",style:{marginRight:"1rem"},color:"secondary",onClick:function(){return n(!1)}},"Cancel"),a.length?E.createElement(Da,{onClick:H,variant:"contained",color:"primary",isLoading:P,style:{marginRight:"1rem"}},"Apply"):E.createElement(Fe,{variant:"contained",style:{marginRight:"1rem"},color:"primary",onClick:function(){return n(!1)}},"Ok")))),E.createElement(Rxi,{open:C,view:h,handleClose:function(U){x(!1),U&&r().then(function(){})}}),E.createElement(Ixi,{open:S,view:v,handleClose:function(U){A(!1),U&&r().then(function(){})}}),E.createElement(Mt,{error:L,onHide:function(){return W("")}}))},Dxi=function(e){var t=e.open,n=e.handleClose,r=sT(),i=b.useState(!1),o=i[0],a=i[1],s=b.useState(""),l=s[0],c=s[1],u=OM(),d=u.state,p=d.viewTags,h=d.views,g=d.viewSelected,m=u.actions,v=m.setViewSelected;m.setViewTags;var y=b.useState(!0),M=y[0],C=y[1],x=b.useState(""),w=x[0],S=x[1],A=function(){return C(!M)},z=function(){return Ct(void 0,void 0,void 0,function(){var O,T,I;return xt(this,function(P){switch(P.label){case 0:return a(!0),[4,mj(null,w,M)];case 1:return O=P.sent(),O.ok?(T=O.data.returnValue,I=!0,[4,Promise.allSettled(Object.values(p).map(function(N){var F=N.viewTag,L=F.TagId,W=F.Color,H=F.MinScale,j=F.MaxScale,G=F.IsAutoScale,q=F.IsVisible,$=F.Unit;nD(T,L,W,H,j,q,G,$).then(function(U){U.ok||(c(function(X){return"".concat(X,". ").concat(U.message)}),I&&(I=!1))})}))]):[3,3];case 2:return P.sent(),n(I),[3,4];case 3:c(O.message),P.label=4;case 4:return a(!1),[2]}})})};return E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:function(){return n(!1)},maxWidth:"xl","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Save View As"},E.createElement(ua,null),E.createElement(We.Content,null,E.createElement(D,{container:!0,spacing:5,style:{padding:"1rem"}},E.createElement(D,{item:!0,md:12,xs:12,style:{padding:"10px",width:"100%"}},h.length&&g?E.createElement(Ji,{size:"small",id:"list-of-views",options:h,defaultValue:g,getOptionLabel:function(O){return O.ViewName},freeSolo:!0,onChange:function(O,T){v(T),T&&S("")},onInputChange:function(O,T){var I=h.some(function(P){return P.ViewName===T});I||S(T)},style:{width:"100%"},renderInput:function(O){return E.createElement(je,tt({},O,{label:"Views",variant:"outlined"}))}}):E.createElement(Tn,null,E.createElement(je,{style:{minWidth:"600px"},size:"small",id:"outlined-basic",label:"View name",variant:"outlined",value:w,onChange:function(O){return S(O.target.value)}})))),E.createElement(D,{item:!0,md:12,xs:12,style:{paddingTop:"2rem"},className:r.isPublicCheckbox},E.createElement("label",null,"Public",E.createElement("input",{type:"checkbox",checked:M,onChange:A})))),E.createElement(ua,null),E.createElement(We.Actions,null,E.createElement(D,{container:!0,spacing:1,style:{display:"flex",alignItems:"flex-end",justifyContent:"flex-end"}},E.createElement(D,{item:!0},E.createElement(Fe,{variant:"outlined",color:"secondary",onClick:function(){return n(!1)}},"Cancel")),E.createElement(D,{item:!0},E.createElement(Da,{variant:"contained",color:"primary",onClick:z,isLoading:o},"Save"))))),E.createElement(Mt,{error:l,onHide:function(){return c("")}}))},kxi=`
  ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
`,Lxi=function(e){var t,n,r,i,o,a,s,l,c=e.node,u=e.options,d=u.depth,p=u.isOpen,h=u.onToggle,g=u.containerRef,m=e.options,v=e.setOpenTagFolders,y=e.openTagFolders,M=e.handleSelect,C=e.setContextMenuOver,x=e.isSelected,w=lte(),S="".concat(w.customNodeRoot," ").concat(w.root," ").concat(x?w.selected:""),A=function(){var O,T;if(m.hasChild||((T=c.data)===null||T===void 0?void 0:T.TagTypeCode)==="F"){if(y[c.id]){var I=tt({},y);delete I[c.id],v(I)}else v(tt(tt({},y),(O={},O[c.id]=c.id,O)));h();return}m.hasChild||M(c)},z=b.useCallback(function(O){O.stopPropagation(),O.preventDefault(),C(c,O)},[c.id,C]);return b.useEffect(function(){var O;return(O=g.current)===null||O===void 0||O.addEventListener("contextmenu",z),function(){var T;(T=g.current)===null||T===void 0||T.removeEventListener("contextmenu",z)}},[]),E.createElement("div",{className:S,onClick:A,style:{paddingLeft:d*20,cursor:"pointer"}},E.createElement("style",null,kxi),E.createElement(E.Fragment,null,m.hasChild?E.createElement("div",null,p?E.createElement(Zft,null):E.createElement(oQ,null)):null,E.createElement("div",null,m.hasChild||((t=c.data)===null||t===void 0?void 0:t.TagTypeCode)==="F"?E.createElement(q3,null):E.createElement(XZ,{fontSize:"small"}))),((n=c.data)===null||n===void 0?void 0:n.TagName)&&E.createElement(E.Fragment,null,((r=c.data)===null||r===void 0?void 0:r.TagTypeCode)&&((i=c.data)===null||i===void 0?void 0:i.TagTypeCode)!=="F"&&E.createElement("div",{className:w.dataTypeOfTree,style:{backgroundColor:((o=c.data)===null||o===void 0?void 0:o.TagTypeCode)==="A"?"#AD48C4":"#C46F48",margin:"0 5px"}},(a=c.data)===null||a===void 0?void 0:a.TagTypeCode),E.createElement(tl,{title:c.data.TagName,placement:"top",arrow:!0},E.createElement(bt,{variant:"body2"},((s=c.data)===null||s===void 0?void 0:s.Alias)||((l=c.data)===null||l===void 0?void 0:l.TagName)))))},_xi=function(e){var t=e.isOpen;e.onClose;var n=e.onTagSelect,r=lte(),i=b.useState(!0),o=i[0],a=i[1],s=b.useState(""),l=s[0],c=s[1],u=b.useState([]),d=u[0],p=u[1],h=b.useState(null),g=h[0],m=h[1],v=b.useState(null),y=v[0],M=v[1],C=b.useState(!1),x=C[0],w=C[1],S=1e6,A=b.useState({}),z=A[0],O=A[1],T=b.useState([]),I=T[0],P=T[1];OM().state.viewTags;var N=function(G,q){q.preventDefault();var $=q.clientY,U=q.clientX;M({x:U,y:$}),P([G]),w(!0);var X=d.find(function(Q){var re;return((re=Q.data)===null||re===void 0?void 0:re.TagId)===G.id});X&&m(X)},F=function(){return Ct(void 0,void 0,void 0,function(){var G,q,$;return xt(this,function(U){switch(U.label){case 0:return t?(a(!0),[4,DOt()]):[3,2];case 1:G=U.sent(),G.ok&&(q=G.data.tables[0].rows,$=GOt(q),p($)),a(!1),U.label=2;case 2:return[2]}})})},L=b.useMemo(function(){return Object.keys(z).map(function(G){return Number.parseInt(G)})},[z]);b.useEffect(function(){F()},[t]);var W=function(G,q){return Ct(void 0,void 0,void 0,function(){var $,U,X,X,Q,re;return xt(this,function(ee){switch(ee.label){case 0:return a(!0),q.dragSource?($=Number(q.dragSource.id),U=Number((Q=q.dropTarget)===null||Q===void 0?void 0:Q.id)||null,$===U?(a(!1),[2]):((re=q.dragSource.data)===null||re===void 0?void 0:re.TagTypeCode)!=="F"?[3,2]:[4,ste($,U,q.dragSource.text,!0)]):[3,5];case 1:return X=ee.sent(),X.ok||c(X.message),[3,4];case 2:return[4,kOt($,U)];case 3:X=ee.sent(),X.ok||c(X.message),ee.label=4;case 4:p(G),ee.label=5;case 5:return a(!1),[2]}})})},H=function(G){G.data&&n(G.data)},j=function(G){x&&w(!1)};return E.createElement(E.Fragment,null,E.createElement("div",{style:{display:t?"block":"none",minHeight:"700px",minWidth:"800px"},onClick:j},E.createElement("div",{style:{overflowY:"auto",maxHeight:"700px"}},o?E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"100px"}},E.createElement(Kt,{size:"2rem"})):E.createElement(pZ,{backend:hZ},E.createElement(UZ,{classes:{root:r.assetRoot,dropTarget:r.dropTarget},initialOpen:L,tree:d,rootId:S,onDrop:W,canDrop:function(G,q){return!I.some(function($){return Number($.id)===Number(q.dropTargetId)})},render:function(G,q){var $=I.some(function(U){return Number(U.id)===Number(G.id)});return E.createElement(Lxi,{setContextMenuOver:N,node:G,options:q,isSelected:$,openTagFolders:z,setOpenTagFolders:O,handleSelect:H})},dragPreviewRender:function(G){return E.createElement(VOt,{monitorProps:G})}})))),E.createElement(HOt,{anchorPoint:y,isOpen:x,setShowContextMenu:w,tagNodeSelectedInTree:g,getTagsTreeData:F}),E.createElement(Mt,{error:l,onHide:function(){return c("")}}))},Nxi=function(e){var t=e.open,n=e.handleClose,r=e.onTagSelect;return E.createElement(E.Fragment,null,E.createElement(We,{open:t,handleClose:n,maxWidth:"lg","aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",title:"Tags"},E.createElement(We.Content,null,E.createElement(Tn,null,E.createElement(bt,{id:"modal-modal-description"},E.createElement(_xi,{isOpen:t,onClose:function(){return n},onTagSelect:r}))))))},Fxi=function(e){var t=e.cursorData,n=e.viewTagsMap,r=e.chartData;return b.useMemo(function(){var i,o={};if(t){var a=function(l){for(var c=n[l].viewTag,u=((i=r.datasets.find(function(C){return C.tagId===c?.TagId}))===null||i===void 0?void 0:i.data)||[],d={x:new Date("1900-01-01"),y:0},p={y:0},h=!1,g={x:0,y:Number.POSITIVE_INFINITY},m={x:0,y:Number.NEGATIVE_INFINITY},v=0;v<u.length;v++){var y=u[v],M=y.x;if(h)if(M<t.x2)p=y,g.y>y.y&&(g=JSON.parse(JSON.stringify(y))),m.y<y.y&&(m=JSON.parse(JSON.stringify(y)));else break;else if(M<t.x1){d=y,p=JSON.parse(JSON.stringify(d)),g=JSON.parse(JSON.stringify(d)),m=JSON.parse(JSON.stringify(d));continue}else h=!0}o[c?.TagName]={y1:d.y,y2:p.y,y2y1:Number(p.y)-Number(d.y),pmin:g,pmax:m}};for(var s in n)a(s)}return o},[n,r,t])},Wxi=Rt(function(e){return{topTitles:{border:"0.0625rem solid black",borderBottom:"none",backgroundColor:"#f5f7f7",color:"#333",fontWeight:"normal",textAlign:"center",padding:"6px 0"},bottomTitlesRow:{"& th":{border:"0.0625rem solid black",backgroundColor:"#f5f7f7",color:"#333",fontWeight:"normal",textAlign:"center",padding:"6px 0"}},checkbox:{'& input[type="checkbox"]':{zoom:1.5},textAlign:"center"},rowHover:{"&:hover":{backgroundColor:"#f2f2f2"}},doubleInput:{padding:"0",'& input[type="text"] ':{width:"100%",height:"17px",display:"block",margin:"0",padding:"0"}},inputCol:{width:"11.25rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},aliasCol:{width:"18rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},viewSelected:{width:"26.125rem",padding:"0"},autoScale:{width:"7.5rem"},scale:{width:"37.5rem",padding:"0"},visible:{width:"3.75rem",fontSize:"12px"},color:{width:"4.375rem"},unit:{width:"7.5rem"},numberInput:{"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:0},"&":{"-moz-appearance":"textfield"}},xStats:{},dataType:{width:"30px",height:"30px",color:"white",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",border:"1px black solid"}}}),qxi=function(e,t){var n=t-e,r=n/1e3,i=r/60,o=i/60,a=o/24,s=a/30,l=r%60;if(s>12){var c=s/12;return"".concat(Math.floor(c)," years, ").concat(Math.floor(s%12)," months")}else return s>6?"".concat(Math.floor(s)," months, ").concat(Math.floor(a%30)," days"):a>10||a>1?"".concat(Math.floor(a)," days, ").concat(Math.floor(o%24)," hours"):o>12?"".concat(Math.floor(o)," hours, ").concat(Math.floor(i%60)," minutes, ").concat(l.toFixed(2)," seconds"):o<1?"".concat(Math.floor(i)," minutes, ").concat(l.toFixed(2)," seconds"):"".concat(Math.floor(o)," hours, ").concat(Math.floor(i%60)," minutes, ").concat(l.toFixed(2)," seconds")},Bxi=function(e){var t=e.chartData,n=e.cursorData,r=e.getTagsFromAPI,i=e.viewTagForDelete,o=e.setViewTagForDelete,a=e.selectedRowTagId,s=e.setSelectedRowTagId,l=e.handleRightClick;e.setContextMenuPosition;var c=e.contextMenuPosition,u=e.openContextMenu,d=e.setOpenContextMenu,p=Wxi(),h=OM(),g=h.state,m=g.viewTags,v=g.viewSelected,y=h.actions,M=y.setViewTags,C=y.setViewTagsAndRefetch,x=b.useState({});x[0],x[1];var w=b.useState(""),S=w[0],A=w[1],z=b.useState(!1);z[0];var O=z[1],T=b.useState(!1),I=T[0],P=T[1],N=b.useState(!1),F=N[0],L=N[1],W=b.useState(!1),H=W[0],j=W[1],G=b.useState(""),q=G[0],$=G[1],U=Fxi({viewTagsMap:m,chartData:t,cursorData:n}),X=function(ie,ue,Ae){var Ce,Ee;M(tt(tt({},m),(Ce={},Ce[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),(Ee={},Ee[Ae]=ue,Ee.IsAutoScale=!1,Ee))}),Ce)))},Q=function(ie,ue,Ae){X(Ae,ie,ue)},re=function(ie,ue){var Ae;M(tt(tt({},m),(Ae={},Ae[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),{Alias:ue})}),Ae)))},ee=function(ie,ue){var Ae;M(tt(tt({},m),(Ae={},Ae[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),{IsVisible:ue})}),Ae)))},se=function(ie,ue){var Ae;M(tt(tt({},m),(Ae={},Ae[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),{Unit:ue})}),Ae)))},pe=function(ie,ue){var Ae;M(tt(tt({},m),(Ae={},Ae[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),{IsAutoScale:!ue})}),Ae)))},te=function(ie,ue){var Ae;M(tt(tt({},m),(Ae={},Ae[ie]=tt(tt({},m[ie]),{viewTag:tt(tt({},m[ie].viewTag),{Color:ue})}),Ae)))},ce=function(ie){var ue=m,Ae=ie;ue[Ae];var Ce=a2(ue,[typeof Ae=="symbol"?Ae:Ae+""]);C(Ce)},oe=function(ie){var ue;C(tt(tt({},m),(ue={},ue[ie.TagId]={viewTag:tt(tt({},ie),{IsVisible:!0,TagType:ie.TagTypeCode,Color:ie.Color||gj(),IsAutoScale:!(ie.MinScale||ie.MaxScale)}),order:Object.keys(m).length},ue)))},ae=function(ie,ue){ue&&pe(ie,ue)},ne=function(){return P(!1)},le=function(ie){var ue=ie.x,Ae=ie.y,Ce=ie.options,Ee=function(Ge){Ge.stopPropagation()};return E.createElement("div",{className:"context-menu",style:{top:Ae,left:ue},onClick:Ee},E.createElement("ul",null,Ce.map(function(Ge){return E.createElement("li",{key:Ge.id,onClick:Ge.onClick},Ge.label)})))},he=[];i&&he.push({id:"delete",label:"Remove Tag",onClick:function(){me(),d(!1)}}),he.push.apply(he,[{id:"add",label:"Tags Tree",onClick:function(){P(!0),d(!1)}},{id:"saveDefault",label:"Save Default To Tag",onClick:function(){de(),d(!1)}},{id:"saveView",label:"Save View",onClick:function(){Me(),d(!1)}},{id:"saveViewAs",label:"Save View as",onClick:function(){L(!0),d(!1)}},{id:"loadView",label:"Load View",onClick:function(){j(!0),d(!1)}}]);var be=function(ie){var ue=m[ie.TagId];ue?A("".concat(ie.TagName," is already selected")):oe(ie)},me=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ie){return gi(i)||(v?.ViewId&&ce(i.TagId),s(null),o(null)),[2]})})},Me=function(){return Ct(void 0,void 0,void 0,function(){var ie,ue,Ae;return xt(this,function(Ce){switch(Ce.label){case 0:return v?[3,1]:(L(!0),[2]);case 1:return O(!0),v?.ViewId?[4,mj(v?.ViewId,v.ViewName,v.IsPublic)]:[3,6];case 2:return ie=Ce.sent(),ie.ok?[4,FOt(v.ViewId)]:[3,5];case 3:return ue=Ce.sent(),ue.ok||A(ue.message),[4,Promise.allSettled(Object.values(m).sort(function(Ee,Ge){return Ge.order-Ee.order}).map(function(Ee){var Ge=Ee.viewTag,_e=Ge.TagId,Ie=Ge.Color,Le=Ge.MinScale,we=Ge.MaxScale,ve=Ge.IsAutoScale,De=Ge.IsVisible,ze=Ge.Unit;nD(v?.ViewId,_e,Ie,Le,we,De,ve,ze).then(function(Ve){Ve.ok||A(Ve.message)})}))];case 4:return Ae=Ce.sent(),Ae.forEach(function(Ee,Ge){Ee.status==="rejected"?A("Tag ".concat(Ge," failed with reason: ").concat(Ee.reason)):(s(null),$("View saved successfully"))}),[3,6];case 5:A(ie.message),Ce.label=6;case 6:O(!1),Ce.label=7;case 7:return[2]}})})},Oe=function(ie,ue){ue!=="clickaway"&&$("")};b.useEffect(function(){var ie=function(Ae){a!==null&&s(null)},ue=function(Ae){Ae.key==="Escape"&&a!==null&&s(null)};return document.addEventListener("click",ie),document.addEventListener("keydown",ue),function(){document.removeEventListener("click",ie),document.removeEventListener("keydown",ue)}},[a]);var de=function(){return Ct(void 0,void 0,void 0,function(){var ie,ue,Ae,Ce,Ee,Ge,_e,Ie,Le,we,ve;return xt(this,function(De){switch(De.label){case 0:return v&&a!==null?(ie=m[a].viewTag,ue=ie.TagId,Ae=ie.Alias,Ce=ie.Color,Ee=ie.MinScale,Ge=ie.MaxScale,_e=ie.Unit,Ie=ie.IsVisible,Le=ie.IsAutoScale,[4,LOt(ue,Ae,Ce,Ee,Ge,_e)]):[3,3];case 1:return we=De.sent(),[4,nD(v?.ViewId,ue,Ce,Ee,Ge,Ie,Le,_e)];case 2:ve=De.sent(),we.ok||A(we.message),ve.ok||A(ve.message),s(null),De.label=3;case 3:return[2]}})})};return E.createElement(E.Fragment,null,E.createElement(D,{container:!0,spacing:1,alignContent:"flex-start",style:{height:"100%",maxHeight:"100%",overflowY:"auto"}},E.createElement(D,{item:!0,xs:12,style:{position:"sticky",background:"white",top:0,left:0,zIndex:1e3}},E.createElement("div",{style:{overflowX:"auto",width:"100%"}},E.createElement("table",{style:{width:"100%",tableLayout:"fixed",textAlign:"center"}},E.createElement("thead",null,E.createElement("tr",null,E.createElement("th",{className:"".concat(p.topTitles," ").concat(p.viewSelected)},v?E.createElement(Fe,{variant:"text",style:{color:"#0075ff"},className:p.viewSelected,onClick:function(){return j(!0)},startIcon:v.IsPublic?E.createElement(E.Fragment,null):E.createElement(vB,{fontSize:"small"})},v?.ViewName||""):E.createElement(Fe,{variant:"text",style:{color:"#0075ff"},className:p.viewSelected,onClick:function(){return L(!0)}},E.createElement("i",null,E.createElement(p1t,null),"(Save view as)"))),E.createElement("th",{colSpan:4,className:"".concat(p.topTitles," ").concat(p.scale)},"Scale"),E.createElement("th",{className:"".concat(p.topTitles," ").concat(p.xStats)},n?(function(){var ie=new Date(n.x1),ue=new Date(n.x2),Ae=ie.toLocaleString("en-US",tt({hour12:!1,month:"short",day:"numeric"},ie.getFullYear()!==ue.getFullYear()&&{year:"numeric"})),Ce="".concat(Ae);return E.createElement(E.Fragment,null,E.createElement("span",{style:{height:"10px",width:"10px",backgroundColor:"red",borderRadius:"50%",display:"inline-block",marginRight:"5px"}}),Ce)})():null),E.createElement("th",{className:"".concat(p.topTitles," ").concat(p.xStats)},n?(function(){var ie=new Date(n.x1),ue=new Date(n.x2),Ae=ue.toLocaleString("en-US",tt({hour12:!1,month:"short",day:"numeric"},ie.getFullYear()!==ue.getFullYear()&&{year:"numeric"})),Ce="".concat(Ae);return E.createElement(E.Fragment,null,E.createElement("span",{style:{height:"10px",width:"10px",backgroundColor:"blue",borderRadius:"50%",display:"inline-block",marginRight:"5px"}}),Ce)})():null),E.createElement("th",{colSpan:3,className:"".concat(p.topTitles," ").concat(p.xStats)},n?qxi(n.x1,n.x2):null)))),E.createElement("table",{style:{width:"100%",tableLayout:"fixed",textAlign:"center"}},E.createElement("thead",null,E.createElement("tr",{className:p.bottomTitlesRow},E.createElement("th",{className:p.visible},"Visible"),E.createElement("th",{className:p.aliasCol},"Alias / Tagname"),E.createElement("th",{className:p.color},"Color"),E.createElement("th",{className:p.inputCol},"Min Scale"),E.createElement("th",{className:p.inputCol},"Max Scale"),E.createElement("th",{className:p.autoScale},"AutoScale"),E.createElement("th",{className:p.unit},"Unit"),E.createElement("th",null," ",n?(function(){var ie=new Date(n.x1),ue=ie.toLocaleString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),Ae=(ie.getMilliseconds()/1e3).toFixed(2).substring(2),Ce="".concat(ue,".").concat(Ae," hs");return E.createElement(E.Fragment,null,Ce)})():null," "),E.createElement("th",null," ",n?(function(){var ie=new Date(n.x2),ue=ie.toLocaleString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),Ae=(ie.getMilliseconds()/1e3).toFixed(2).substring(2),Ce="".concat(ue,".").concat(Ae," hs");return E.createElement(E.Fragment,null,Ce)})():null," "),E.createElement("th",null,"Y2-Y1"),E.createElement("th",null,"Min"),E.createElement("th",null,"Max")))))),E.createElement(D,{item:!0,xs:12},E.createElement("div",{style:{width:"100%",height:"100%",maxHeight:"100%"}},E.createElement("table",{cellPadding:"4px",style:{width:"100%",tableLayout:"fixed",textAlign:"center"}},E.createElement("tbody",null,Object.values(m).length?Object.values(m).map(function(ie){var ue,Ae,Ce,Ee,Ge,_e,Ie,Le=ie.viewTag;return E.createElement("tr",{key:Le.TagName,onContextMenu:function(we){return l(we,Le.TagId)},className:p.rowHover},E.createElement("td",{className:"".concat(p.visible," ").concat(p.checkbox)},E.createElement("input",{type:"checkbox",checked:Le.IsVisible,onChange:function(we){return ee(Le.TagId,we.target.checked)}})),E.createElement("td",{className:p.aliasCol},E.createElement(tl,{title:Le.TagName,placement:"top",arrow:!0,interactive:!0,enterDelay:500},E.createElement("div",{style:{display:"flex",alignItems:"center"}},Le.TagType&&E.createElement("div",{className:p.dataType,style:{backgroundColor:Le.TagType==="A"?"#AD48C4":"#C46F48"}},Le.TagType),E.createElement("input",{type:"text",style:{width:"100%"},value:Le.Alias||Le.TagName,onFocus:function(we){return we.target.select()},onChange:function(we){var ve=we.target.value;re(Le.TagId,ve)}})))),E.createElement("td",{className:p.color},E.createElement(zxi,{onChange:te,color:Le.Color,elementId:Le.TagId})),E.createElement("td",{className:p.inputCol},E.createElement("input",{type:"number",className:p.numberInput,style:tt({width:"100%"},Le.IsAutoScale?{backgroundColor:"rgba(239, 239, 239, 0.3)",color:"rgba(84, 84, 84, 1)",border:"1px solid rgba(118, 118, 118, 0.3)"}:{}),value:Le.MinScale,onClick:function(){return ae(Le.TagId,Le.IsAutoScale)},onFocus:function(we){return we.target.select()},onChange:function(we){return Q(we.target.value,"MinScale",Le.TagId)}})),E.createElement("td",{className:p.inputCol},E.createElement("input",{type:"number",className:p.numberInput,style:tt({width:"100%",WebkitAppearance:"none"},Le.IsAutoScale?{backgroundColor:"rgba(239, 239, 239, 0.3)",color:"rgba(84, 84, 84, 1)",border:"1px solid rgba(118, 118, 118, 0.3)"}:{}),value:Le.MaxScale,onClick:function(){return ae(Le.TagId,Le.IsAutoScale)},onFocus:function(we){return we.target.select()},onChange:function(we){Q(we.target.value,"MaxScale",Le.TagId)}})),E.createElement("td",{className:"".concat(p.autoScale," ").concat(p.checkbox)},E.createElement("input",{type:"checkbox",checked:!!Le.IsAutoScale,onChange:function(we){return pe(Le.TagId,Le.IsAutoScale)}})),E.createElement("td",{className:"".concat(p.autoScale," ").concat(p.checkbox)},E.createElement("input",{type:"text",style:{width:"100%"},onClick:function(){return ae(Le.TagId,Le.IsAutoScale)},onChange:function(we){var ve=we.target.value;se(Le.TagId,ve)},value:Le.Unit==="-"?"":Le.Unit,onFocus:function(we){return we.target.select()}})),E.createElement("td",null,M4((ue=U[Le.TagName])===null||ue===void 0?void 0:ue.y1,3)||0),E.createElement("td",{className:p.doubleInput},M4((Ae=U[Le.TagName])===null||Ae===void 0?void 0:Ae.y2,3)||0),E.createElement("td",null,M4((Ce=U[Le.TagName])===null||Ce===void 0?void 0:Ce.y2y1,3)||0),E.createElement("td",null,Vfe(((Ee=U[Le.TagName])===null||Ee===void 0?void 0:Ee.pmin.y)*0)?0:M4((Ge=U[Le.TagName])===null||Ge===void 0?void 0:Ge.pmin.y,3)," "),E.createElement("td",null,Vfe(((_e=U[Le.TagName])===null||_e===void 0?void 0:_e.pmax.y)*0)?0:M4((Ie=U[Le.TagName])===null||Ie===void 0?void 0:Ie.pmax.y)," "))}):E.createElement("div",{style:{padding:"1rem"}},E.createElement("div",{style:{padding:"1rem"}},"No tag view detected."," "),E.createElement("div",{style:{padding:"1rem"}},E.createElement(Fe,{onClick:function(){return P(!0)},variant:"contained",color:"primary"}," ","Add tag")),E.createElement("div",null,E.createElement(Fe,{onClick:function(){return j(!0)},variant:"outlined",color:"primary"}," ","Load view"))))))),u&&E.createElement(le,{x:c.x,y:c.y,options:he}),E.createElement(Nxi,{open:I,handleClose:ne,onTagSelect:be}),E.createElement(Dxi,{open:F,handleClose:function(ie){L(!1),ie&&r(!0).then(function(){})}}),E.createElement(Pxi,{open:H,getTagsFromAPI:r,handleClose:function(ie){j(!1)}})),E.createElement(Mt,{error:S,onHide:function(){return A("")}}),E.createElement(pr,{open:!!q,autoHideDuration:800,onClose:Oe},E.createElement(Pr,{onClose:Oe,severity:"success"},q)))},UX=function(e){var t=e.getHours().toString().padStart(2,"0"),n=e.getMinutes().toString().padStart(2,"0"),r=e.getSeconds().toString().padStart(2,"0");t==="24"&&(t="00");var i=e.toLocaleDateString("en-US",{month:"short",day:"numeric"}),o="".concat(t,":").concat(n,":").concat(r);return{formattedDate:i,formattedTime:o}},jxi=function(){var e=OM();e.state;var t=e.actions,n=b.useRef(null),r=b.useCallback(function(a){var s=a.chart;n.current&&clearTimeout(n.current),n.current=setTimeout(function(){var l=new Date(s.scales.x.min),c=new Date(s.scales.x.max);t.setTotalScope({start:l,end:c})},1e3)},[t]),i=b.useCallback(function(a){var s=a.chart;n.current&&clearTimeout(n.current),n.current=setTimeout(function(){var l=new Date(s.scales.x.min),c=new Date(s.scales.x.max);t.setTotalScope({start:l,end:c,graphPan:!0})},1e3)},[t]),o=b.useMemo(function(){return{animation:{duration:0},responsive:!0,maintainAspectRatio:!1,scales:{x:{type:"time",ticks:{autoSkip:!0,maxTicksLimit:20,callback:function(a,s,l){var c=new Date(a),u=UX(c).formattedTime,d=UX(c).formattedDate;return s===0?[u,d]:u}},grid:{display:!0}},y:{grid:{display:!0},afterUpdate:function(a){var s=a.chart,l=Object.keys(s.scales).filter(function(d){return d!=="x"});if(l.length>1)for(var c in s.scales){var u=s.scales[c];u.max===1&&u.min===0?(s.scales[c].display=!1,s.scales[c].options.display=!1):(s.scales[c].display=!0,s.scales[c].options.display=!0)}}}},plugins:{tooltip:{enabled:!1},legend:{display:!1},zoom:{zoom:{wheel:{enabled:!0,mode:"x"},pinch:{enabled:!0,mode:"x"},onZoom:r,mode:"x"},pan:{enabled:!0,mode:"x",onPan:i}}}}},[r,i]);return b.useState(o)},Hxi=function(e){var t=e.customOptions,n=e.setCustomOptions,r=sT(),i=function(a){n(function(s){return tt(tt({},s),{showGrid:a})})},o=function(a){n(function(s){return tt(tt({},s),{stepped:a})})};return E.createElement(E.Fragment,null,E.createElement(D,{item:!0,className:r.labelOptions},E.createElement("label",null,E.createElement("input",{type:"checkbox",checked:t.showGrid,onChange:function(a){return i(a.target.checked)}}),"Show Grid")),E.createElement(D,{item:!0,className:r.labelOptions},E.createElement("label",null,E.createElement("input",{type:"checkbox",checked:t.stepped,onChange:function(a){return o(a.target.checked)}}),"Stepped")))},Vxi=function(e){var t=e.setChartOptions,n=sT(),r=OM(),i=r.state,o=r.actions,a=b.useState({showGrid:!0,stepped:!1}),s=a[0],l=a[1],c=function(p,h){h===void 0&&(h=!1);var g=WOt(i.timeScopeStart,i.timeScopeEnd,i.scope,p,h);g&&o.setTotalScope({start:g.newStartDate,end:g.newEndDate,scope:i.scope})},u=function(p,h){var g;o.setTotalScope((g={},g[h]=mt(p).toDate(),g))},d=function(p){var h=p.target.value;o.setTotalScope({scope:h})};return b.useEffect(function(){var p=function(){t(function(h){var g=tt({},h.scales);return Object.keys(g).forEach(function(m){m&&(g[m]=tt(tt({},g[m]),{grid:tt(tt({},g[m].grid),{display:s.showGrid})}))}),tt(tt({},h),{elements:{line:{stepped:s.stepped,lineTension:.1}},scales:g})})};p()},[s]),b.useEffect(function(){t(function(p){return tt(tt({},p),{scales:tt(tt({},p.scales),{x:tt(tt({},p.scales.x),{min:i.timeScopeStart.getTime(),max:i.timeScopeEnd.getTime()})})})})},[i.timeScopeStart,i.timeScopeEnd]),E.createElement(D,{item:!0,xs:12,container:!0,justifyContent:"space-between",alignItems:"center",style:{height:"15%"}},E.createElement(D,{md:6,item:!0,container:!0,justifyContent:"flex-start",alignItems:"center",wrap:"wrap"},E.createElement(D,{item:!0},E.createElement(yn,{color:"primary",onClick:function(){return c("subtract")},className:n.navigatorButton},E.createElement(L6,{fontSize:"large"}))),E.createElement(D,{item:!0},E.createElement(je,{type:"datetime-local",className:n.datetimePicker,label:"Start",variant:"outlined",value:mt(i.timeScopeStart).format("YYYY-MM-DDTHH:mm:ss"),onChange:function(p){return u(p.target.value,"start")},InputLabelProps:{shrink:!0,style:{marginLeft:"10px"}},InputProps:{max:i.timeScopeEnd}})),E.createElement(D,{item:!0,className:n.select},E.createElement(ja,{variant:"outlined"},E.createElement(ls,{value:i.scope,onChange:d,displayEmpty:!0},E.createElement(sr,{value:"10 min"},"10 min"),E.createElement(sr,{value:"1 hour"},"1 hour"),E.createElement(sr,{value:"4 hours"},"4 hours"),E.createElement(sr,{value:"12 hours"},"12 hours"),E.createElement(sr,{value:"1 day"},"1 day"),E.createElement(sr,{value:"10 days"},"10 days"),E.createElement(sr,{value:"custom"},"Custom")))),E.createElement(D,{item:!0},E.createElement(je,{label:"End",variant:"outlined",className:n.datetimePicker,type:"datetime-local",value:mt(i.timeScopeEnd).format("YYYY-MM-DDTHH:mm:ss"),onChange:function(p){return u(p.target.value,"end")},InputLabelProps:{shrink:!0,style:{marginLeft:"10px"}}})),E.createElement(D,{item:!0},E.createElement(yn,{onClick:function(){return c("add")},className:"".concat(n.navigatorButton)},E.createElement(aQ,{fontSize:"large"}))),E.createElement(D,{item:!0},E.createElement(yn,{onClick:function(){return c("subtract",!0)},className:"".concat(n.navigatorButton)},E.createElement(Hxe,{fontSize:"large"})))),E.createElement(D,{md:6,item:!0,container:!0,justifyContent:"space-between"},E.createElement(D,{item:!0,container:!0,wrap:"nowrap",spacing:1},E.createElement(D,{item:!0,container:!0},E.createElement(Hxi,{customOptions:s,setCustomOptions:l})))))},c2e=E.memo(function(e){var t=e.initialLeft,n=e.otherLineCoord,r=e.onUpdate,i=e.color,o=e.chartArea,a=b.useState(!1),s=a[0],l=a[1],c=b.useState(t),u=c[0],d=c[1],p=b.useRef(null),h=function(v){l(!0),v.stopPropagation(),v.preventDefault()},g=function(v){if(!(!s||!p.current)){o.width-o.right,o.left;var y=Math.min(Math.max(v.clientX-p.current.offsetParent.getBoundingClientRect().left,o.left),o.right);i==="red"&&y>n-20?y=n-20:i==="blue"&&y<n+20&&(y=n+20),d(y),r(y)}},m=function(){l(!1)};return b.useEffect(function(){var v=function(M){return g(M)},y=function(){return m()};return s&&(window.addEventListener("mousemove",v),window.addEventListener("mouseup",y)),function(){window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",y)}},[s]),E.createElement("div",{ref:p,style:{height:20,width:20,background:i,position:"absolute",top:-10,left:u-10},onMouseDown:h},E.createElement("div",{style:{height:o.height,width:2,background:i,position:"relative",top:20,left:0,right:0,margin:"auto"}}))});c2e.displayName="DraggableLineControl";var Gxi=function(e,t){var n=b.useMemo(function(){return{id:"verticalLinePlugin",afterUpdate:function(r){r.chartArea&&(r.mouseX===null&&(r.mouseX=r.chartArea.left+r.chartArea.width/10),r.secondLineX===null&&(r.secondLineX=r.chartArea.left+r.chartArea.width*.9))},beforeInit:function(r){r.mouseX=null,r.secondLineX=null},afterDatasetsDraw:function(r){var i=r.mouseX,o=r.secondLineX;e(r.chartArea),t({x1:i,x2:o})}}},[e,t]);return n},xKe=function(e,t){var n=[];return e.data.datasets.forEach(function(r){for(var i=null,o=0;o<r.data.length&&r.data[o].x.getTime()<=t;o++)i=r.data[o];i&&n.push(i.y)}),n},wKe=function(e,t){var n=e.scales.x,r=n.getValueForPixel(e.mouseX),i=n.getValueForPixel(e.secondLineX),o=xKe(e,r),a=xKe(e,i);t({x1:r,x2:i,values:xi(xi([],o,!0),a,!0)})},$xi=function(){var e=b.useMemo(function(){return{id:"xAxisDatePlugin",afterBuildTicks:function(t){var n=t.scales.x.ticks,r=[];r.push(n[0]);for(var i=1;i<n.length;i++){var o=new Date(n[i].value),a=new Date(n[i-1].value),s=UX(o).formattedTime,l=UX(o).formattedDate,c=void 0;o.getDate()!==a.getDate()?c=[s,l]:c=s,r.push({value:n[i].value,major:n[i].major,label:c})}t.scales.x.ticks=r}}},[]);return e},Uxi=function(){var e=b.useMemo(function(){return{id:"yAxisPlugin"}},[]);return e},SKe=function(e,t){if(!(gi(e.MaxScale)||gi(e.MinScale)||gi(t.MaxScale)||gi(t.MinScale))){var n=e.MaxScale-e.MinScale,r=t.MaxScale-t.MinScale,i=Math.max(e.MinScale,t.MinScale),o=Math.min(e.MaxScale,t.MaxScale),a=Math.max(0,o-i),s=a/n>.5&&a/r>.5;return s}},XOt=E.memo(function(e){var t=e.series,n=e.chartOptions,r=e.setChartOptions,i=e.chartData,o=e.setCursorData,a=e.setChartData,s=OM(),l=s.state,c=s.state.viewTags;s.actions;var u=b.useState(null),d=u[0],p=u[1],h=b.useState(null),g=h[0],m=h[1],v=b.useRef(null),y=b.useRef({viewTags:c,series:t,setChartOptions:r,setChartData:a}),M=b.useRef($y(function(){v.current&&(wKe(v.current,o),v.current.update())},250));y.current={viewTags:c,series:t,setChartOptions:r,setChartData:a};var C=b.useRef($y(function(){var F=y.current,L=F.viewTags,W=F.series,H=F.setChartOptions,j=F.setChartData,G=[];if(W.length){Object.values(L).forEach(function(U,X){var Q=U.viewTag,re=G.findIndex(function(ee){return SKe(ee,Q)});re===-1?(G.push(Q),N.current[Q.TagId]=Q.TagId):N.current[Q.TagId]=G[re].TagId});var q=G.map(function(U){var X=Number(U.MinScale),Q=Number(U.MaxScale);return!X&&!Q&&(Q=1),{id:"y-axis-".concat(U.TagId),type:"linear",display:U.IsVisible,title:{display:!0,text:U.TagName},min:U.IsAutoScale?void 0:X,max:U.IsAutoScale?void 0:Q,suggestedMin:U.IsAutoScale?void 0:X,suggestedMax:U.IsAutoScale?void 0:Q,stepSize:10,grid:{display:!0},afterUpdate:function(re){var ee=re.chart,se=Object.keys(ee.scales).filter(function(oe){return oe!=="x"}),pe=0;if(se.length>1)for(var te in ee.scales){var ce=ee.scales[te];ce.max===1&&ce.min===0?(ee.scales[te].display=!1,ee.scales[te].options.display=!1,pe++):(ee.scales[te].display=!0,ee.scales[te].options.display=!0),pe===se.length&&(ee.scales[se[0]].display=!0,ee.scales[se[0]].options.display=!0)}}}});H(function(U){var X=tt(tt({},U),{scales:tt({x:tt({},U.scales.x)},q.reduce(function(Q,re){var ee;return tt(tt({},Q),(ee={},ee[re.id]=re,ee))},{}))});return X});var $=W.map(function(U,X){var Q,re=Object.values(L).sort(function(pe,te){return te.order-pe.order}),ee=(Q=re[X])===null||Q===void 0?void 0:Q.viewTag,se=N.current[ee?.TagId];return{yAxisID:"y-axis-".concat(se),data:U.map(function(pe){return{x:new Date(pe.timestamp),y:pe.value}}),tagId:ee?.TagId,borderColor:ee?.Color,hidden:!ee?.IsVisible,pointRadius:U.length<=50?3:0}});S(!0),j({labels:[],datasets:$})}},1e3)),x=b.useState(!1),w=x[0],S=x[1],A=b.useCallback(function(F){return m(F)},[]),z=b.useCallback(function(F){return p(F)},[]),O=Gxi(A,z),T=$xi(),I=Uxi(),P=b.useMemo(function(){return[O,T,I]},[O,T,I]),N=b.useRef({});return b.useEffect(function(){C.current()},[t]),b.useEffect(function(){w&&v.current&&(wKe(v.current,o),v.current.update())},[w,l.graphShouldUpdate]),b.useEffect(function(){a(function(F){if(!F.datasets||!F.datasets.length)return F;var L=F.datasets.map(function(W){var H=c[W.tagId];return H?tt(tt({},W),{borderColor:H.viewTag.Color,hidden:!H.viewTag.IsVisible}):W});return tt(tt({},F),{datasets:L})})},[c,a]),b.useEffect(function(){var F=[];Object.values(c).forEach(function(W){var H=W.viewTag,j=F.findIndex(function(G){return SKe(G,H)});j===-1&&F.push(H)});var L=F.map(function(W){var H=Number(W.MinScale),j=Number(W.MaxScale);return!H&&!j&&(j=1),{id:"y-axis-".concat(W.TagId),type:"linear",display:W.IsVisible,title:{display:!0,text:W.TagName},min:W.IsAutoScale?void 0:H,max:W.IsAutoScale?void 0:j,suggestedMin:W.IsAutoScale?void 0:H,suggestedMax:W.IsAutoScale?void 0:j,stepSize:10,grid:{display:!0},afterUpdate:function(G){var q=G.chart,$=Object.keys(q.scales).filter(function(re){return re!=="x"}),U=0;if($.length>1)for(var X in q.scales){var Q=q.scales[X];Q.max===1&&Q.min===0?(q.scales[X].display=!1,q.scales[X].options.display=!1,U++):(q.scales[X].display=!0,q.scales[X].options.display=!0),U===$.length&&(q.scales[$[0]].display=!0,q.scales[$[0]].options.display=!0)}}}});r(function(W){return tt(tt({},W),{scales:tt({x:tt({},W.scales.x)},L.reduce(function(H,j){var G;return tt(tt({},H),(G={},G[j.id]=j,G))},{}))})})},[c,r]),E.createElement(kt,{style:{height:"100%",position:"relative"}},d&&g?E.createElement(c2e,{color:"red",chartArea:g,initialLeft:d?.x1,otherLineCoord:d?.x2,onUpdate:function(F){p(function(L){return L.x1=F,L}),v.current.mouseX=F,M.current()}}):null,d&&g?E.createElement(c2e,{color:"blue",initialLeft:d?.x2,otherLineCoord:d?.x1,chartArea:g,onUpdate:function(F){p(function(L){return L.x2=F,L}),v.current.secondLineX=F,M.current()}}):null,E.createElement(TOr,{ref:v,data:i,options:n,plugins:P}))});XOt.displayName="TrendingChart";BJ.register(AAr,TAr,oAr,iAr,hAr,CAr,dAr,rbe,xOr);var Xxi=function(e){e.title;var t=e.getTagsFromAPI,n=OM(),r=n.state,i=n.state,o=i.viewTags,a=i.shouldRefetchSeries,s=b.useState(""),l=s[0],c=s[1],u=b.useState(!0),d=u[0],p=u[1],h=b.useState([]),g=h[0],m=h[1],v=b.useState(null),y=v[0],M=v[1],C=b.useState(null),x=C[0],w=C[1],S=jxi(),A=S[0],z=S[1],O=b.useState({labels:[],datasets:[]}),T=O[0],I=O[1],P=b.useState(null),N=P[0],F=P[1],L=b.useRef(null),W=b.useState({x:0,y:0}),H=W[0],j=W[1],G=b.useState(!1),q=G[0],$=G[1],U=function(X,Q){X.preventDefault(),X.stopPropagation(),Jx(Q)?w(o[Q].viewTag):w(null),M(Q),$(!0),j({x:X.clientX,y:X.clientY})};return b.useEffect(function(){return L.current&&clearTimeout(L.current),L.current=setTimeout(function(){var X=function(){return Ct(void 0,void 0,void 0,function(){var Q,re,ee,se;return xt(this,function(pe){switch(pe.label){case 0:return pe.trys.push([0,3,,4]),p(!0),Q=Object.values(o).sort(function(te,ce){return ce.order-te.order}),re=Q.map(function(te){return te.viewTag.TagId}),re.length?[4,Xs.post("/series?nodeName=null",{start:r.timeScopeStart.getTime(),end:r.timeScopeEnd.getTime(),tagIds:re,sampleCount:1e3})]:[3,2];case 1:ee=pe.sent(),m(ee.data||[]),pe.label=2;case 2:return p(!1),[3,4];case 3:return se=pe.sent(),c(se.message),p(!1),[3,4];case 4:return[2]}})})};X()},800),function(){L.current&&clearTimeout(L.current)}},[a]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0,style:{width:"95svw",height:"88svh",margin:0},onClick:function(){return $(!1)}},E.createElement(Vxi,{setChartOptions:z}),E.createElement(D,{item:!0,xs:12,style:{height:"45%"}},E.createElement(XOt,{series:g,chartData:T,setChartData:I,chartOptions:A,setChartOptions:z,setCursorData:F})),E.createElement(D,{item:!0,container:!0,xs:12,onContextMenu:function(X){return U(X,null)},style:{height:"40%",minWidth:"100%",paddingTop:"3rem",border:"4px solid #ccc",borderRadius:10,padding:10,margin:"20px 0 10px",position:d?"relative":"inherit"}},d&&E.createElement("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(255, 255, 255, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:2}},E.createElement(Kt,{size:"2rem"})),E.createElement(Bxi,{chartData:T,cursorData:N,getTagsFromAPI:t,openContextMenu:q,setOpenContextMenu:$,viewTagForDelete:x,setViewTagForDelete:w,selectedRowTagId:y,setSelectedRowTagId:M,handleRightClick:U,contextMenuPosition:H,setContextMenuPosition:j}))),E.createElement(Mt,{error:l,onHide:function(){return c("")},title:"ERROR"}))},Yxi=function(e){var t=b.useState(""),n=t[0],r=t[1],i=OM(),o=i.state.viewSelected,a=i.actions,s=a.setViews,l=a.setViewTagsAndRefetch,c=a.setViewSelected,u=function(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];return Ct(void 0,xi([],d,!0),void 0,function(h){var g,m,v,y;return h===void 0&&(h=!1),xt(this,function(M){switch(M.label){case 0:return[4,_Ot(null)];case 1:return g=M.sent(),g.ok?(s(g.data.tables[0].rows),m=void 0,!o||h?(m=g.data.tables[0].rows.reduce(function(C,x){return C&&C.ViewId>x.ViewId?C:x},null),c(m)):m=o,m?[4,v3e(m.ViewId)]:[3,3]):[3,4];case 2:v=M.sent(),v.ok?(y=v.data.tables[0].rows.reduce(function(C,x,w){return gi(x.Color)&&(x.Color=gj()),C[x.TagId]={viewTag:x,order:w},C},{}),l(y)):r(v.message),M.label=3;case 3:return[3,5];case 4:r(g.message),M.label=5;case 5:return[2]}})})};return b.useEffect(function(){u()},[]),E.createElement(E.Fragment,null,E.createElement(Mn,{title:"Trending Chart"}),E.createElement(Tn,{p:3,style:{maxWidth:"100%"}},E.createElement(kt,null,E.createElement(D,{container:!0,spacing:3,style:{padding:"20px"}},E.createElement(D,{item:!0,xs:12},E.createElement(Xxi,{title:"Trending Chart",getTagsFromAPI:u}))))),E.createElement(Mt,{error:n,onHide:function(){return r("")},size:"xl",title:"ERROR"}))},Kxi=function(){var e=b.useState(!1),t=e[0],n=e[1];return b.useEffect(function(){var r=function(){return Ct(void 0,void 0,void 0,function(){var i;return xt(this,function(o){switch(o.label){case 0:return[4,u3.get("/backend/ih-path")];case 1:return i=o.sent(),localStorage.setItem("ihPath",i.data),n(!0),[2]}})})};r().then(function(){console.log("ih path loaded")})},[]),t?E.createElement(Exi,null,E.createElement(Yxi,null)):E.createElement("div",{className:"d-flex justify-content-center align-items-center"},"Loading...")},Qxi=function(){var e=b.useContext(EOt),t=wOt(),n=t("ui.navbar.settings");return E.createElement(E.Fragment,null,E.createElement(ZQ,null,E.createElement(cr,{path:"/",element:E.createElement(HO,{replace:!0,to:"/home"})}),n&&E.createElement(cr,{path:"/configuration/*",element:E.createElement($Ci,null)}),E.createElement(cr,{path:"/account",element:E.createElement(rCi,null)}),E.createElement(cr,{path:"/trendings",element:E.createElement(Kxi,null)}),E.createElement(cr,{path:"/trendings-v2",element:E.createElement(wxi,null)}),E.createElement(cr,{path:"/home",element:E.createElement(FCi,null)})),E.createElement(e,null))},Zxi=function(){return E.createElement("div",{id:"mainSection",className:"container-fluid container-fluid-main"},E.createElement(Qxi,null))},Jxi=function(e){var t=e.showAreaSelector,n=t===void 0?!1:t,r=e.showTrendingsIcon,i=r===void 0?!0:r,o=e.showTrendingsV2Icon,a=o===void 0?!0:o,s=e.navbarTitle,l=s===void 0?"MESF":s,c=e.byPassHeaderRoutes,u=c===void 0?[]:c,d=Rd(),p=d[0],h=b.useRef(!0),g=Pw();b.useEffect(function(){return p.has("redirectTo")&&setTimeout(function(){h.current&&(window.location.href=decodeURI(p.get("redirectTo")))},100),function(){h.current=!1}},[p.toString()]);var m=u.some(function(v){return g.pathname.startsWith(v)});return E.createElement("div",{className:"wrapper"},!m&&E.createElement(NCi,{showAreaSelector:n,navbarTitle:l,showTrendingsIcon:i,showTrendingsV2Icon:a}),E.createElement(Zxi,null))},ewi=function(e){var t=e.children,n=Bw().isLoading,r=ka().isLoading;return n||r?E.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"}},E.createElement(Kt,null)):E.createElement(E.Fragment,null,t)},twi=Rc.getInstance().getServerTimeZone();ra.tz.setDefault(twi);var nwi=document.getElementsByTagName("base")[0].getAttribute("href")||"/",rwi=new E0n({defaultOptions:{queries:{refetchOnWindowFocus:!1,cacheTime:1e3*60}}});function iwi(e){var t=e.authentication,n=e.routes,r=e.navbar,i=e.navbarTitle,o=i===void 0?"MESF":i,a=e.configurations,s=e.showAreaSelector,l=s===void 0?!1:s,c=e.showTrendingsIcon,u=c===void 0?!0:c,d=e.byPassHeaderRoutes,p=d===void 0?[]:d,h=e.plantAssetId,g=h===void 0?1:h,m=e.theme,v=m===void 0?C2i:m,y=e.logbookSettings,M=y===void 0?{}:y;return E.createElement(E.Fragment,null,E.createElement(Hot,null),E.createElement(xut,null,E.createElement(c2i,{navbarTitle:o},E.createElement(L0n,{client:rwi},E.createElement(C3,{theme:v},E.createElement(iCi,{authConfig:t},E.createElement(Nst,{dateAdapter:K5n,dateLibInstance:ra},E.createElement(UMi,null,E.createElement(kCi,null,E.createElement(ewi,null,E.createElement(wCi,{logbookSettings:M},E.createElement(PMi,{plantAssetId:g},E.createElement(EOt.Provider,{value:n},E.createElement(IOt.Provider,{value:r},E.createElement(ROt.Provider,{value:a},E.createElement(yMi,null,E.createElement(rte,null,E.createElement(Dzn,{basename:nwi},E.createElement(ZQ,null,E.createElement(cr,{path:"/logout",element:E.createElement(MCi,null)})),E.createElement(Jxi,{showAreaSelector:l,showTrendingsIcon:u,navbarTitle:o,byPassHeaderRoutes:p})))))))))))))))))))}var YOt=function(e){var t=e.handleExportToExcel,n=e.disabled;return E.createElement(Fe,{fullWidth:!0,variant:"outlined",disabled:n,onClick:t,startIcon:E.createElement("i",{className:"far fa-file-excel"}),style:{width:"auto",height:35,display:"flex",justifyContent:"space-between",padding:"0 14px",fontSize:14,color:"".concat(n?"grey":"#217346"),border:"1px solid ".concat(n?"grey":"#217346"),backgroundColor:"#fff"}},"EXPORT TO EXCEL")},owi=function(e){var t=e.handleNew;return E.createElement(yn,{onClick:t,color:"primary",style:{marginLeft:-15}},E.createElement(Zo,{style:{width:30,height:30}}))},KOt=function(e){e.OnEdit,e.OnSend;var t={flex:1,filter:!1,floatingFilter:!1,sortable:!1,editable:!1,resizable:!1,wrapText:!1,autoHeight:!1,wrapHeaderText:!0,suppressHeaderMenuButton:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}};return{defaultColDef:t}},awi=function(e){var t=e.setSelectedRowData,n=e.setShow,r=e.setShowRemoveDialog,i=e.handleNewEntry,o=function(a){var s=[];return s=s.concat([{name:"New Entry",key:"new_logbook_entry",onClick:function(){return i()},icon:E.createElement(Zo,null)}]),a&&(s=s.concat([{name:"Edit Entry",key:"edit_logbook_entry",onClick:function(){t(a),n("edit")},icon:E.createElement(No,null)},{name:"Delete Entry",key:"delete_logbook_entry",onClick:function(){r(!0)},icon:E.createElement(Mo,null)}])),s};return{getMenuOptions:o}},swi=function(e){var t=e.showContextMenu,n=e.allowAttachments,r=e.withAssetFilter,i=e.showShiftCrew,o=xi(xi(xi(xi(xi([{field:"CreateTimestamp",headerName:"Created",flex:2,valueGetter:function(a){return Wn(a.data.CreateTimestamp,"MM/dd/yy HH:mm")}}],r?[{field:"AssetName",headerName:"Asset",sortable:!0,flex:2,minWidth:70,wrapText:!0,autoHeight:!0}]:[],!0),[{field:"Title",headerName:"Title",flex:4},{field:"Author",headerName:"Created By",flex:2}],!1),i?[{field:"Shift",headerName:"Shift",sortable:!1,flex:1,minWidth:60,maxWidth:60},{field:"Crew",headerName:"Crew",sortable:!1,flex:1,minWidth:60,maxWidth:60}]:[],!0),n?[{field:"AttachmentCount",headerName:"",flex:1,headerComponent:function(){return E.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",textAlign:"center"}},E.createElement(lP,{style:{fontSize:18,color:"#666"}}))},cellRenderer:function(a){var s=a.data.AttachmentCount||0;return s===0?null:E.createElement("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"center"}},E.createElement(fM,{icon:E.createElement(lP,{style:{fontSize:16}}),label:s,size:"small",variant:"outlined",color:"primary"}))}}]:[],!0),[{field:"Content",headerName:"Content",hide:!0},{headerName:"",flex:1,wrapText:!1,autoHeight:!1,cellRenderer:function(a){return E.createElement(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(Fe,{fullWidth:!0,onClick:function(s){return t(s,a.data,"logbookEntryContext")},size:"small"},E.createElement(Kf,{style:{height:"auto"},color:"action"}))))}}],!1);return{columnDefs:o}},XX={EntryId:0,ShiftId:0,AssetId:null,Title:"",Content:"",CreateTimestamp:new Date,UpdateTimestamp:new Date,LogEntryTypeCode:"M",Shift:null,Crew:null,Author:null,UpdatedBy:null,AttachmentCount:0},YX=Rn(),lwi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a=t.shiftId,s=t.assetId,l=t.signal;return xt(this,function(c){switch(c.label){case 0:return n=new Ye,r=[{name:"ShiftId",value:a}],s&&r.push({name:"AssetId",value:s}),[4,n.callV2("[LB].[GetEntries]",r,l)];case 1:if(i=c.sent(),i.ok)return o=Ot(i,"data.tables[0].rows",[]),o=o.map(function(u){return tt(tt({},u),{CreateTimestamp:u.CreateTimestamp?YX.utc(u.CreateTimestamp).toDate():null,UpdateTimestamp:u.UpdateTimestamp?YX.utc(u.UpdateTimestamp).toDate():null})}),[2,o];throw new Error(i.message||"Error fetching entries")}})})},cwi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o=t.assetId,a=t.entryId,s=t.shiftId,l=t.title,c=t.content,u=t.createTimestamp,d=t.author;return xt(this,function(p){switch(p.label){case 0:return n=new Ye,r=[{name:"EntryId",value:a},{name:"ShiftId",value:s},{name:"Title",value:l},{name:"Content",value:c},{name:"CreateTimestamp",value:u.toISOString()},{name:"UpdateTimestamp",value:new Date().toISOString()},{name:"Author",value:d}],(o||o===0)&&r.push({name:"AssetId",value:o}),[4,n.callV2("[LB].[UpsertEntry]",r)];case 1:if(i=p.sent(),i.ok)return[2,Ot(i,"data.tables[0].rows[0]",null)];throw new Error(i.message||"Error upserting entry")}})})},uwi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i,o;return xt(this,function(a){switch(a.label){case 0:t=new Ye,n=[],a.label=1;case 1:return a.trys.push([1,4,,5]),e?[4,y3e(e)]:[3,3];case 2:n=a.sent(),a.label=3;case 3:return[3,5];case 4:return r=a.sent(),console.warn("Failed to get attachments for entry deletion:",r),[3,5];case 5:return i=[{name:"EntryId",value:e}],[4,t.callV2("[LB].[DeleteEntry]",i)];case 6:if(o=a.sent(),!o.ok)throw new Error(o.message||"Error deleting entry");return n.length>0&&dwi(n),[2]}})})},dwi=function(e){return Ct(void 0,void 0,void 0,function(){return xt(this,function(t){return Promise.all(e.map(function(n){return Ct(void 0,void 0,void 0,function(){var r;return xt(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,QOt(n.UploadFileId)];case 1:return i.sent(),[3,3];case 2:return r=i.sent(),console.error("Failed to delete file ".concat(n.UploadFileId,":"),r),[3,3];case 3:return[2]}})})})).catch(function(n){console.error("Background file deletion failed:",n)}),[2]})})},QOt=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r;return xt(this,function(i){switch(i.label){case 0:return t=new Ye,n=[{name:"UploadFileId",value:e}],[4,t.callV2("[SYSTEM].[DeleteUploadFile]",n)];case 1:if(r=i.sent(),!r.ok)throw new Error(r.message||"Error deleting upload file");return[2]}})})},y3e=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i;return xt(this,function(o){switch(o.label){case 0:return t=new Ye,n=[{name:"EntryId",value:e}],[4,t.callV2("[LB].[GetEntryAttachments]",n)];case 1:if(r=o.sent(),r.ok)return i=Ot(r,"data.tables[0].rows",[]),i=i.map(function(a){return tt(tt({},a),{CreationTime:a.CreationTime?YX.utc(a.CreationTime).toDate():new Date})}),[2,i];throw new Error(r.message||"Error fetching entry attachments")}})})},pwi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a=t.entryId,s=t.uploadFileId,l=t.attachmentName,c=t.attachmentURL;return xt(this,function(u){switch(u.label){case 0:return n=new Ye,r=[{name:"EntryId",value:a},{name:"UploadFileId",value:s},{name:"AttachmentName",value:l},{name:"AttachmentURL",value:c}],[4,n.callV2("[LB].[UpsertEntryAttachment]",r)];case 1:if(i=u.sent(),i.ok)return o=Ot(i,"data.tables[0].rows[0]",null),o?[2,tt(tt({},o),{CreationTime:o.CreationTime?YX.utc(o.CreationTime).toDate():new Date})]:[2,null];throw new Error(i.message||"Error creating entry attachment")}})})},hwi=function(e,t){return Ct(void 0,void 0,void 0,function(){var n,r,i;return xt(this,function(o){switch(o.label){case 0:return n=new Ye,r=[{name:"EntryAttachmentId",value:e}],[4,n.callV2("[LB].[DeleteEntryAttachment]",r)];case 1:if(i=o.sent(),!i.ok)throw new Error(i.message||"Error deleting entry attachment");return t&&fwi(t),[2]}})})},fwi=function(e){return Ct(void 0,void 0,void 0,function(){var t;return xt(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,QOt(e)];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),console.error("Failed to delete file ".concat(e,":"),t),[3,3];case 3:return[2]}})})},gwi=Rt(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiDialogContent-dividers":{padding:0}},modalTitle:{backgroundColor:"#ced2cc",color:"#495057",textAlign:"center"}}}),mwi=function(e){var t=e.entry,n=e.show,r=e.onHide,i=gwi(),o=fa(),a=b.useState(!1),s=a[0],l=a[1],c=b.useState("");c[0];var u=c[1],d=b.useState(""),p=d[0],h=d[1],g=function(){l(!1),r(!1)},m=Gf(),v=aa(uwi,{onSuccess:function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(y){switch(y.label){case 0:return[4,m.invalidateQueries({queryKey:["entries"]})];case 1:return y.sent(),o("".concat(HA),{replace:!0}),u("The entry was deleted succesfully"),r(!0),[2]}})})},onError:function(y){h(y.message)},onSettled:function(){return l(!1)}});return E.createElement(E.Fragment,null,E.createElement(Qu,{fullWidth:!0,maxWidth:"md",open:n,onClose:function(){return g()},disableEnforceFocus:!0,className:i.root},E.createElement(T0,{id:"responsive-dialog-title",style:{paddingBottom:0}},"WARNING"),E.createElement(ru,null,E.createElement(gM,{style:{padding:0,margin:0}},"Be careful, you are about to delete: ",E.createElement("b",null,t?.Title),". Once deleted you will not be able to recover this Entry. Are you sure you want to delete it?")),E.createElement(Td,{style:{padding:"0 24px 16px"}},E.createElement(Fe,{onClick:function(){return r(!1)},autoFocus:!0,color:"default"},"CANCEL"),E.createElement(Fe,{autoFocus:!0,color:"secondary",startIcon:s&&E.createElement(Kt,{size:"1rem"}),onClick:function(){var y;return v.mutate((y=t?.EntryId)!==null&&y!==void 0?y:0)}},"Delete"))),E.createElement(Mt,{error:p,onHide:function(){return h("")}}))},vwi=function(){return Ct(void 0,void 0,void 0,function(){var e,t;return xt(this,function(n){switch(n.label){case 0:return e=new Ye,[4,e.callV2("[MES].[GetAssets]",[])];case 1:if(t=n.sent(),t.ok)return[2,Ot(t,"data.tables[0].rows",[])];throw new Error(t.message||"Error fetching assets")}})})},ZOt=function(e){return Bl({queryKey:["assets"],queryFn:function(){return vwi()},onError:e})},cte=function(e){var t=e.label,n=t===void 0?"Asset":t,r=e.value,i=e.onChange,o=e.filterAreaAssets,a=o===void 0?!1:o,s=e.disabled,l=s===void 0?!1:s,c=e.isFilter,u=c===void 0?!1:c,d=b.useState(""),p=d[0],h=d[1],g=ZOt(function(C){return h(C.message)}),m=g.data,v=g.isLoading,y=xi(xi([],u?[{label:"All",value:null,isAreaAsset:!0}]:[],!0),Array.isArray(m)?m.map(function(C){return{label:C.AssetName,value:C.AssetId,isAreaAsset:C.CanBeDefaultAsset}}):[],!0),M=y.find(function(C){return C.value===(r||null)})||y[0];return E.createElement(E.Fragment,null,E.createElement(f1t,{options:a?y.filter(function(C){return C.isAreaAsset}):y,value:M,onChange:function(C,x){var w;x&&i((w=x.value)!==null&&w!==void 0?w:null)},getOptionLabel:function(C){return C.label},isOptionEqualToValue:function(C,x){return C.value===x.value},renderOption:function(C,x){return E.createElement("li",tt({},C,{key:x.value}),x.label)},disabled:v||l,disablePortal:!0,disableClearable:!0,renderInput:function(C){return E.createElement(P3,tt({},C,{label:n,variant:"outlined",size:"small",fullWidth:!0}))}}),E.createElement(Mt,{error:p,onHide:function(){return h("")}}))},B1=Rn(),bwi=function(e){return Ct(void 0,void 0,void 0,function(){var t,n,r,i;return xt(this,function(o){switch(o.label){case 0:return t=new Ye,n=[{name:"ShiftId",value:e??null}],[4,t.callV2("[MES].[GetShiftByParameters]",n)];case 1:if(r=o.sent(),r.ok)return i=Ot(r,"data.tables[0].rows",[]),i=i.map(function(a){return a.CurrentProductionDate=B1.utc(a.CurrentProductionDate).toDate(),a.CurrentStart=B1.utc(a.CurrentStart).toDate(),a.CurrentEnd=B1.utc(a.CurrentEnd).toDate(),a.PreviousProductionDate=B1.utc(a.PreviousProductionDate).toDate(),a.PreviousStart=B1.utc(a.PreviousStart).toDate(),a.PreviousEnd=B1.utc(a.PreviousEnd).toDate(),a.NextProductionDate=B1.utc(a.NextProductionDate).toDate(),a.NextStart=B1.utc(a.NextStart).toDate(),a.NextEnd=B1.utc(a.NextEnd).toDate(),a.LastProductionDate=B1.utc(a.LastProductionDate).toDate(),a.LastStart=B1.utc(a.LastStart).toDate(),a.LastEnd=B1.utc(a.LastEnd).toDate(),a}),[2,i];throw new Error(r.message||"Error fetching shifts")}})})},ywi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a=t.currentShiftId,s=t.shiftsRange;return xt(this,function(l){switch(l.label){case 0:return n=new Ye,r=[{name:"CurrentShiftId",value:a||null}],s&&r.push({name:"ShiftsRange",value:s}),[4,n.callV2("[MES].[GetShiftsAroundCurrent]",r)];case 1:if(i=l.sent(),i.ok)return o=Ot(i,"data.tables[0].rows",[]),o=o.map(function(c){return tt(tt({},c),{Start:B1.utc(c.Start).toDate(),End:B1.utc(c.End).toDate()})}),[2,o];throw new Error(i.message||"Error fetching shifts")}})})},Mwi=Rn(),Cwi=function(e){var t=e.currentShiftId,n=e.shiftsRange;return Bl({queryKey:["shiftsAroundCurrent",t,n],queryFn:function(r){return r.signal,ywi({currentShiftId:t,shiftsRange:n})}})},xwi=function(e){var t=e.currentShiftId,n=e.value,r=e.onShiftSelected,i=e.disabled,o=e.shiftsRange,a=b.useState(""),s=a[0],l=a[1],c=Cwi({currentShiftId:t,shiftsRange:o}),u=c.data,d=c.isLoading,p=c.error,h=c.isError,g=u?.find(function(m){return m.ShiftId===n})||null;return b.useEffect(function(){p&&h&&l(p.message)},[p,h]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0},E.createElement(D,{item:!0,xs:12},E.createElement(Ji,{loading:d,options:u||[],getOptionLabel:function(m){return"".concat(Mwi.utc(m.ProductionDate).format("MM/DD/YYYY")," - ").concat(m.Shift," - ").concat(m.Crew)},value:g,onChange:function(m,v){v&&r(v)},disabled:i,renderInput:function(m){return E.createElement(je,tt({},m,{label:"Shift",variant:"outlined",size:"small",fullWidth:!0,InputProps:tt(tt({},m.InputProps),{endAdornment:E.createElement(E.Fragment,null,d?E.createElement(Kt,{color:"inherit",size:20}):null)})}))}}))),E.createElement(Mt,{error:s,onHide:function(){return l("")}}))},wwi=function(e){return Bl({queryKey:["shifts",e],queryFn:function(){return bwi(e)}})},JOt=function(e){var t=e.label,n=t===void 0?"Shift - Crew":t,r=e.value,i=e.onChange,o=i===void 0?function(){}:i,a=e.fieldError,s=e.disabled,l=s===void 0?!1:s,c=b.useState(""),u=c[0],d=c[1],p=wwi(r),h=p.data,g=p.isLoading,m=p.isError,v=p.error,y=h?.find(function(M){return M.CurrentShiftId===r})||null;return b.useEffect(function(){m&&d(v.message)},[m,v]),E.createElement(E.Fragment,null,E.createElement(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:h||[],getOptionLabel:function(M){return"".concat(M.CurrentShift," - ").concat(M.CurrentCrew)},disabled:l,renderInput:function(M){return E.createElement(je,tt({},M,{label:n,variant:"outlined",fullWidth:!0,size:"small",error:!!a,helperText:a?.message,InputProps:tt(tt({},M.InputProps),{endAdornment:E.createElement(E.Fragment,null,g?E.createElement(Kt,{color:"inherit",size:20}):E.createElement(E.Fragment,null,M.InputProps.endAdornment))})}))},value:y,onChange:function(M,C){var x;o((x=C?.CurrentShiftId)!==null&&x!==void 0?x:null)}}),E.createElement(Mt,{error:u,onHide:function(){return d("")},title:"Error loading shifts"}))},Swi=function(e){var t=e.message,n=e.onHide,r=n===void 0?function(){}:n,i=e.severity,o=i===void 0?"success":i,a=function(u,d){d!=="clickaway"&&r()},s=b.useState(!0),l=s[0],c=s[1];return b.useEffect(function(){c(!!t)},[t]),E.createElement(pr,{open:l,autoHideDuration:2500,onClose:a},E.createElement(Pr,{elevation:6,variant:"filled",severity:o,onClose:a},t))},ezt=function(e){var t=e===void 0?{}:e,n=t.onSuccess,r=t.onError,i=t.isNewEntry,o=i===void 0?!1:i,a=t.onHide,s=a===void 0?function(){}:a,l=b.useState(!1),c=l[0],u=l[1],d=b.useState(!1),p=d[0],h=d[1],g=b.useState(null),m=g[0],v=g[1],y=aa(cwi,{onSuccess:function(x){return Ct(void 0,void 0,void 0,function(){return xt(this,function(w){return x&&x.EntryId?n?.(x):(console.error("No EntryId received from API response",x),r?.(new Error("Failed to get entry ID from server response"))),[2]})})},onError:function(x){r?.(x)},onSettled:function(){return u(!1)}}),M=function(x){return Ct(void 0,void 0,void 0,function(){var w,S;return xt(this,function(A){switch(A.label){case 0:return u(!0),w=tt({},x),o&&!w.createTimestamp&&(w.createTimestamp=new Date),!w.shiftId||w.isForOtherShift?(v(w),h(!0),u(!1),[3,3]):[3,1];case 1:return[4,y.mutate({assetId:w.assetId,shiftId:w.shiftId,entryId:w.entryId,title:w.title,content:w.content,author:(S=w.author)!==null&&S!==void 0?S:"",createTimestamp:w.createTimestamp})];case 2:A.sent(),A.label=3;case 3:return[2]}})})},C=function(x){var w;h(!1),x==="OK"&&m&&(s(),y.mutate({assetId:m.assetId,shiftId:m.shiftId,entryId:m.entryId,title:m.title,content:m.content,author:(w=m.author)!==null&&w!==void 0?w:"",createTimestamp:m.createTimestamp})),v(null)};return{submitEntry:M,isSubmitLoading:c,showConfirmationDialog:p,pendingSubmitData:m,handleConfirmationClose:C,mutation:y}},Awi=function(e){var t=e.open,n=e.attachmentName,r=e.onClose,i=e.isDeleting,o=i===void 0?!1:i,a=function(){o||r(!1)},s=function(){o||r(!0)};return E.createElement(Qu,{open:t,onClose:a,"aria-labelledby":"delete-attachment-dialog-title","aria-describedby":"delete-attachment-dialog-description"},E.createElement(T0,{id:"delete-attachment-dialog-title"},"Delete Attachment"),E.createElement(ru,null,E.createElement(gM,{id:"delete-attachment-dialog-description"},"Are you sure you want to delete ",E.createElement("b",null,n),"? This action cannot be undone.")),E.createElement(Td,null,E.createElement(Fe,{onClick:a,color:"default",disabled:o},"Cancel"),E.createElement(Fe,{onClick:s,color:"secondary",variant:"contained",disabled:o,startIcon:o&&E.createElement(Kt,{size:"1rem"})},"Delete")))},Owi=Rt(function(e){return Mp({dropzone:{border:"2px dashed ".concat(e.palette.primary.main),borderRadius:e.shape.borderRadius,padding:e.spacing(3),textAlign:"center",cursor:"pointer",marginBottom:e.spacing(2),backgroundColor:e.palette.background.default,"&:hover":{backgroundColor:e.palette.action.hover}},dropzoneActive:{borderColor:e.palette.secondary.main,backgroundColor:e.palette.action.selected},uploadIcon:{fontSize:48,color:e.palette.primary.main,marginBottom:e.spacing(1)},attachmentList:{maxHeight:300,overflow:"auto"},attachmentItem:{border:"1px solid ".concat(e.palette.divider),borderRadius:e.shape.borderRadius,marginBottom:e.spacing(1)},loadingContainer:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:100}})}),zwi=["jpg","jpeg","png","pdf"],Twi=function(e){var t=e.open,n=e.onClose,r=e.entryId,i=e.isEditing,o=e.entryData,a=e.onEntrySubmitted,s=Owi(),l=Gf(),c=new Ye,u=b.useState(null),d=u[0],p=u[1],h=b.useState([]),g=h[0],m=h[1],v=b.useState(r),y=v[0],M=v[1],C=b.useState(!1),x=C[0],w=C[1],S=b.useState(!1),A=S[0],z=S[1],O=b.useState(null),T=O[0],I=O[1],P=b.useRef([]),N=ezt({onSuccess:function(he){if(w(!1),he?.EntryId&&(M(he.EntryId),a?.(he.EntryId,he),P.current.length>0)){var be=xi([],P.current,!0);P.current=[],X(be,he.EntryId)}},onError:function(he){w(!1),p(he.message),P.current=[]},isNewEntry:!r||r<=0}),F=N.submitEntry,L=N.isSubmitLoading;b.useEffect(function(){M(r)},[r]);var W=Bl({queryKey:["entryAttachments",y],queryFn:function(){return y3e(y)},enabled:!!y&&y>0}),H=W.data,j=H===void 0?[]:H,G=W.isLoading,q=W.error,$=aa(pwi,{onSuccess:function(){l.invalidateQueries({queryKey:["entryAttachments",y]}),l.invalidateQueries({queryKey:["entries"]}),l.invalidateQueries({queryKey:["entriesReport"]})},onError:function(he){p(he.message)}}),U=aa(function(he){var be=he.entryAttachmentId,me=he.uploadFileId;return hwi(be,me)},{onSuccess:function(){l.invalidateQueries({queryKey:["entryAttachments",y]}),l.invalidateQueries({queryKey:["entries"]}),l.invalidateQueries({queryKey:["entriesReport"]})},onError:function(he){p(he.message)}}),X=b.useCallback(function(he,be){return Ct(void 0,void 0,void 0,function(){var me,Me,Oe,de,ie,ue,Ae,Ce;return xt(this,function(Ee){switch(Ee.label){case 0:m(he),p(null),Ee.label=1;case 1:Ee.trys.push([1,7,8,9]),me=0,Me=he,Ee.label=2;case 2:return me<Me.length?(Oe=Me[me],[4,c.uploadFiles([Oe],"logbook")]):[3,6];case 3:return de=Ee.sent(),!((Ce=de?.result)===null||Ce===void 0)&&Ce[0]?(ie=de.result[0].UploadFileId,ue=de.result[0].URL,[4,$.mutateAsync({entryId:be,uploadFileId:ie,attachmentName:Oe.name,attachmentURL:ue})]):[3,5];case 4:Ee.sent(),l.invalidateQueries({queryKey:["entryAttachments",be]}),l.invalidateQueries({queryKey:["entries"]}),l.invalidateQueries({queryKey:["entriesReport"]}),Ee.label=5;case 5:return me++,[3,2];case 6:return[3,9];case 7:return Ae=Ee.sent(),p("Failed to upload files: ".concat(Ae)),[3,9];case 8:return m([]),[7];case 9:return[2]}})})},[c,$,l]),Q=b.useCallback(function(he){return Ct(void 0,void 0,void 0,function(){var be,me,Me,Oe,de,ie,ue,Ae,Ce,Ee;return xt(this,function(Ge){switch(Ge.label){case 0:if(be=y,!((!be||be<=0)&&o&&!x))return[3,4];Ge.label=1;case 1:return Ge.trys.push([1,3,,4]),p(null),w(!0),P.current=he,[4,F(o)];case 2:return Ge.sent(),[2];case 3:return me=Ge.sent(),w(!1),p("Failed to save entry before uploading files: ".concat(me)),P.current=[],[2];case 4:if(!be||be<=0)return p("Entry must be saved before adding attachments"),[2];m(he),p(null),Ge.label=5;case 5:Ge.trys.push([5,11,12,13]),Me=0,Oe=he,Ge.label=6;case 6:return Me<Oe.length?(de=Oe[Me],[4,c.uploadFiles([de],"logbook")]):[3,10];case 7:return ie=Ge.sent(),!((Ee=ie?.result)===null||Ee===void 0)&&Ee[0]?(ue=ie.result[0].UploadFileId,Ae=ie.result[0].URL,[4,$.mutateAsync({entryId:be,uploadFileId:ue,attachmentName:de.name,attachmentURL:Ae})]):[3,9];case 8:Ge.sent(),Ge.label=9;case 9:return Me++,[3,6];case 10:return[3,13];case 11:return Ce=Ge.sent(),p("Failed to upload files: ".concat(Ce)),[3,13];case 12:return m([]),[7];case 13:return[2]}})})},[y,o,c,$,F,x]),re=function(he,be,me){I({id:he,uploadFileId:be,name:me}),z(!0)},ee=function(he){z(!1),he&&T&&U.mutate({entryAttachmentId:T.id,uploadFileId:T.uploadFileId}),I(null)},se=function(he){var be=he.toLowerCase().split(".").pop()||"";return zwi.includes(be)},pe=function(he){var be=document.createElement("a");be.href=he.URL,console.log("attachment",he),console.log("attachment.URL",he.URL),console.log("link.href",be.href),be.setAttribute("target","_blank"),be.setAttribute("download",he.AttachmentName),document.body.appendChild(be),be.click()},te=b.useCallback(function(he){i&&Q(he)},[Q,i]),ce=Lxt({onDrop:te,disabled:!i,multiple:!0}),oe=ce.getRootProps,ae=ce.getInputProps,ne=ce.isDragActive,le=g.length>0||$.isLoading||L||x;return E.createElement(E.Fragment,null,E.createElement(Qu,{open:t,onClose:n,maxWidth:"md",fullWidth:!0,"aria-labelledby":"attachment-dialog-title"},E.createElement(T0,{id:"attachment-dialog-title"},"Attachments (",j.length,")"),E.createElement(ru,{dividers:!0},i?E.createElement(Tn,{mb:2},E.createElement("div",tt({},oe(),{className:"".concat(s.dropzone," ").concat(ne?s.dropzoneActive:"")}),E.createElement("input",tt({},ae())),E.createElement(u1n,{className:s.uploadIcon}),E.createElement(bt,{variant:"h6",gutterBottom:!0},ne?"Drop files here...":"Drag & drop files here, or click to select"),E.createElement(bt,{variant:"body2",color:"textSecondary"},"All file types are supported"))):null,!y||y<=0?i&&o?E.createElement(bt,{variant:"body1",color:"textSecondary",align:"center"},L||x?"Saving entry...":"Upload files to automatically save and attach to this entry"):E.createElement(bt,{variant:"body1",color:"textSecondary",align:"center"},"Save the entry first to add attachments"):G?E.createElement("div",{className:s.loadingContainer},E.createElement(Kt,null)):j.length===0?E.createElement(bt,{variant:"body1",color:"textSecondary",align:"center"},"No attachments yet"):E.createElement(tp,{className:s.attachmentList},j.map(function(he){return E.createElement(ya,{key:he.EntryAttachmentId,className:s.attachmentItem},E.createElement($0,null,E.createElement(lP,null)),E.createElement(na,{primary:he.AttachmentName,secondary:"Added by ".concat(he.CreatedBy," on ").concat(he.CreationTime.toLocaleDateString())}),E.createElement(yun,null,se(he.AttachmentName)&&E.createElement(yn,{component:"a",href:he.URL,target:"_blank",rel:"noopener noreferrer",title:"Preview",size:"small",style:{marginRight:8}},E.createElement(C1n,null)),E.createElement(yn,{onClick:function(){return pe(he)},title:"Download",size:"small",style:{marginRight:i?8:0}},E.createElement(p1n,null)),i&&E.createElement(yn,{edge:"end",onClick:function(){return re(he.EntryAttachmentId,he.UploadFileId,he.AttachmentName)},title:"Delete",disabled:U.isLoading},E.createElement(d1n,null))))})),le&&E.createElement(Tn,{display:"flex",alignItems:"center",justifyContent:"center",mt:2},E.createElement(Kt,{size:20}),E.createElement(bt,{variant:"body2",style:{marginLeft:8}},"Uploading ",g.length," file(s)..."))),E.createElement(Td,null,E.createElement(Fe,{onClick:n,color:"primary"},"Close"))),E.createElement(Awi,{open:A,attachmentName:T?.name||"",onClose:ee,isDeleting:U.isLoading}),E.createElement(Mt,{error:d||q?.message,onHide:function(){return p(null)}}))},Ewi=(function(e){tte(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props.config,r=n.attachmentCount,i=n.onAttachmentClick;return E.createElement("span",{className:"button button-type-attachment",title:"Attachments (".concat(r,")"),onClick:i,style:{display:"inline-flex",alignItems:"center",padding:"4px 8px",cursor:"pointer",borderRadius:"4px",backgroundColor:r>0?"#e3f2fd":"transparent",border:r>0?"1px solid #2196f3":"1px solid transparent",color:r>0?"#1976d2":"#666",fontSize:"12px",fontWeight:r>0?600:400,transition:"all 0.2s ease-in-out"},onMouseEnter:function(o){o.currentTarget.style.backgroundColor="#e3f2fd",o.currentTarget.style.borderColor="#2196f3"},onMouseLeave:function(o){r===0&&(o.currentTarget.style.backgroundColor="transparent",o.currentTarget.style.borderColor="transparent")}},E.createElement(lP,{style:{fontSize:16,marginRight:4,color:r>0?"#1976d2":"#666"}}),"Attachments (",r,")")},t.pluginName="attachment",t.align="left",t.defaultConfig={start:0,end:0},t})(Hl),Rwi=Rt(function(e){return Mp({root:{height:"100%",width:"100%",overflow:"hidden",display:"flex",flexDirection:"column","& .MuiInput-underline:before":{borderBottom:"none"},"& .MuiInput-underline:after":{borderBottom:"none"},"& .MuiInput-underline:hover:not(.Mui-disabled):before":{borderBottom:"none"}},content:{flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"},fixedTextField:{backgroundColor:e.palette.background.paper,borderTop:"0px solid ".concat(e.palette.divider),paddingLeft:10},editorWrapper:{height:"100%","& .rc-md-editor":{height:"100%"},"& .rc-md-navigation":{backgroundColor:e.palette.background.paper},"& .rc-md-editor, & .section-container":{height:"100%"}}})}),tzt=function(e){var t=e.value,n=e.onChange,r=e.isEditing,i=e.UpdateTimestamp,o=e.UpdatedBy,a=e.isNewEntry,s=e.entryId,l=e.entryData,c=e.onEntrySubmitted,u=e.allowAttachments,d=u===void 0?!1:u,p=Rwi(),h=new aai,g=new Ye,m=Ms().entryId,v=b.useState(0),y=v[0],M=v[1],C=b.useState(null),x=C[0],w=C[1],S=b.useState(!1),A=S[0],z=S[1],O=s||(m&&m!=="new"?parseInt(m):null),T=Bl({queryKey:["entryAttachments",O],queryFn:function(){return y3e(O)},enabled:!!O&&O>0,retry:1,onError:function(H){console.error("Failed to fetch attachments:",H)}}),I=T.data,P=I===void 0?[]:I,N=T.error,F=P.length,L=function(H){var j=H.text;n(j)},W=function(H){return Ct(void 0,void 0,void 0,function(){var j,G;return xt(this,function(q){switch(q.label){case 0:return q.trys.push([0,2,,3]),w(null),[4,g.uploadFiles(H,"logbook")];case 1:return j=q.sent(),j?[2,(G=j.result[0])===null||G===void 0?void 0:G.URL]:[3,3];case 2:return q.sent(),w("Failed to upload files"),[2,""];case 3:return[2]}})})};return b.useEffect(function(){M(function(H){return H+1})},[r,F]),b.useEffect(function(){Sl.use(Ewi,{attachmentCount:F,onAttachmentClick:function(){l.title&&l.author?z(!0):w("Title and Author are required")}})},[F,l.title,l.author]),E.createElement(E.Fragment,null,E.createElement("div",{className:p.root},E.createElement(D,{item:!0,xs:!0,className:p.content},E.createElement("div",{className:p.editorWrapper},E.createElement(Sl,{key:y,style:{height:"100%",width:"100%"},value:t||"",renderHTML:function(H){return h.render(H||"")},onChange:L,view:{menu:d?!0:r,md:!!r,html:!r},plugins:r?["header","font-bold","font-italic","font-underline","font-strikethrough","list-unordered","list-ordered","block-quote","block-wrap","block-code-inline","block-code-block","table","image","link","clear","logger","mode-toggle","full-screen","tab-insert",d?"attachment":""]:d?["attachment"]:[],config:{attachment:d?{attachmentCount:F,onAttachmentClick:function(){l.title&&l.author?z(!0):w("Title and Author are required")}}:null},autoFocus:!a,onImageUpload:function(H){return Ct(void 0,void 0,void 0,function(){var j;return xt(this,function(G){switch(G.label){case 0:return[4,W([H])];case 1:return j=G.sent(),[2,j]}})})}}))),o?.length>0&&E.createElement("div",{className:p.fixedTextField},E.createElement(je,{variant:"standard",disabled:!0,value:"This entry was updated on ".concat(Wn(i,"MM/dd/yy hh:mm a")," by ").concat(o),fullWidth:!0,margin:"none",autoComplete:"off",InputProps:{style:{fontSize:"0.7rem"},disableUnderline:!0},InputLabelProps:{style:{fontSize:"0.7rem"}}}))),E.createElement(Twi,{open:A,onClose:function(){return z(!1)},entryId:O,isEditing:r,entryData:l,onEntrySubmitted:c}),E.createElement(Mt,{error:x||N?.message,onHide:function(){return w("")}}))},Iwi=Rt(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiDialogContent-dividers":{padding:0},"& .MuiOutlinedInput-root.Mui-disabled":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"}},"& .MuiSelect-iconOutlined":{display:"none"}},paper:{width:"100%",height:"101.3%",display:"flex",flexDirection:"column",padding:"20px 20px 10px",overflowX:"hidden",marginTop:-8},inputEditable:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},minHeight:"100px"}}}),AKe=Rn(),Pwi=function(e){var t=e.entry,n=e.show,r=e.onChangeShow,i=e.onHide,o=e.preselectedAssetId,a=e.withAssetFilter,s=e.canEditAsset,l=e.canEditShift,c=e.filterAssets,u=e.allowAttachments,d=e.shiftsRange,p=Iwi(),h=ka().state.settings,g=Number(Ot(h,"DefaultAssetId",15)),m=Ms().shiftId,v=Rd()[0],y=v.get("entryId"),M=v.get("action"),C=la().shiftInfo,x=M==="new",w=b.useState(""),S=w[0],A=w[1],z=b.useState(null),O=z[0],T=z[1],I=b.useState(""),P=I[0],N=I[1],F=Gn(),L=F.control,W=F.handleSubmit,H=F.reset,j=F.formState;j.isValid;var G=j.dirtyFields,q=F.watch,$=F.setValue,U=Object.keys(G).length!==0,X=q("UpdatedBy"),Q=q("UpdateTimestamp"),re=q("CreateTimestamp");q("Content");var ee=q("EntryId"),se=q("Title"),pe=q("Author"),te=q("ShiftId"),ce=q("AssetId"),oe=q("Shift"),ae=q("Crew"),ne=function(de,ie){A("Entry created successfully"),ie&&H(ie),setTimeout(function(){i(de,!0)},1e3)},le=ezt({onSuccess:function(de){A(y==="new"?"Entry created successfully":"Entry updated successfully"),de&&de.EntryId?setTimeout(function(){i(de.EntryId)},1e3):(console.error("No EntryId received from API response",de),N("Failed to get entry ID from server response"))},onError:function(de){N(de.message)},isNewEntry:x,onHide:function(){return i()}}),he=le.submitEntry,be=le.isSubmitLoading,me=le.showConfirmationDialog,Me=le.handleConfirmationClose,Oe=function(de){return Ct(void 0,void 0,void 0,function(){var ie,ue;return xt(this,function(Ae){switch(Ae.label){case 0:return N(""),ie={assetId:de.AssetId,entryId:de.EntryId,shiftId:de.ShiftId,isForOtherShift:t?.ShiftId?t.ShiftId!==de.ShiftId:C?.CurrentShiftId!==de.ShiftId,title:de.Title,content:de.Content,author:(ue=de.Author)!==null&&ue!==void 0?ue:"",createTimestamp:x?new Date:de.CreateTimestamp},[4,he(ie)];case 1:return Ae.sent(),[2]}})})};return b.useEffect(function(){var de,ie,ue;if(C||!x){var Ae=tt(tt({},XX),{ShiftId:C?.CurrentShiftId,Shift:(de=C?.CurrentShift)!==null&&de!==void 0?de:"",Crew:(ie=C?.CurrentCrew)!==null&&ie!==void 0?ie:"",CreateTimestamp:new Date,AssetId:(ue=o??g)!==null&&ue!==void 0?ue:null});H((x?Ae:t)||XX)}},[t,C,y,H,g]),b.useEffect(function(){var de;x&&$("AssetId",(de=o??g)!==null&&de!==void 0?de:null)},[o,g]),E.createElement(E.Fragment,null,x||t?.EntryId?E.createElement(Mn,{title:"".concat(x?"New Entry":"'".concat(t?.Title,"' by ").concat(t?.Author)," - Logbook Entry")}):null,x||t?.EntryId?E.createElement(kt,{elevation:1,className:p.paper},E.createElement("form",{onSubmit:W(Oe),style:{height:"100%",display:"flex",flexDirection:"column"}},E.createElement(T0,{style:{padding:"0px",marginLeft:0,width:"100%",flexBasis:"10%",minHeight:"10%"}},E.createElement(D,{item:!0,xs:12},E.createElement(Ue,{name:"Title",control:L,rules:{required:"Title is required",validate:function(de){return!!de?.trim()||"Title cannot be empty"}},render:function(de){var ie=de.field,ue=ie.value,Ae=ie.onChange,Ce=de.fieldState.error;return E.createElement(je,{label:"Title",variant:"outlined",value:ue??"",onChange:Ae,fullWidth:!0,error:!!Ce,helperText:Ce?.message,autoFocus:x,size:"medium"})}}))),E.createElement(ru,{dividers:!0,style:{padding:"10px 0 0",flexGrow:1,flexBasis:"90%",overflowY:"auto",display:"flex",flexDirection:"column",borderTop:0},className:p.root},E.createElement(D,{container:!0,spacing:2,style:{width:"100%",marginBottom:"0px",paddingLeft:0,display:"flex",justifyContent:"space-between",margin:0}},E.createElement(D,{item:!0,xs:12,md:3,style:{paddingLeft:0}},E.createElement(Ue,{name:"CreateTimestamp",control:L,render:function(de){var ie=de.field.value;return E.createElement(Cd,{label:"Creation Time",timezone:Rc.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",value:ie?AKe(ie):null,disabled:!0,slotProps:{textField:{variant:"outlined",size:"small",fullWidth:!0,InputLabelProps:{shrink:!0,style:{fontSize:".875rem",marginTop:-2}}}}})}})),l?E.createElement(D,{item:!0,xs:12,md:3},E.createElement(Ue,{name:"ShiftId",control:L,render:function(de){var ie,ue=de.field;return E.createElement(xwi,{currentShiftId:(ie=Number(m))!==null&&ie!==void 0?ie:C?.CurrentShiftId,onShiftSelected:function(Ae){Ae?($("Shift",Ae.Shift,{shouldDirty:!0}),$("Crew",Ae.Crew,{shouldDirty:!0}),T(new Date(Ae.Start)),ue.onChange(Ae.ShiftId)):($("Shift",null,{shouldDirty:!0}),$("Crew",null,{shouldDirty:!0}),T(null),ue.onChange(null))},value:ue.value,disabled:!x&&n!=="edit",shiftsRange:d})}})):E.createElement(D,{item:!0,xs:12,md:3},E.createElement(Ue,{name:"ShiftId",control:L,render:function(de){var ie=de.field;return E.createElement(JOt,{onChange:ie.onChange,value:ie.value,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:s?2:4,style:{paddingRight:0,marginRight:"0px"}},E.createElement(Ue,{name:"Author",control:L,rules:{required:"Author is required"},render:function(de){var ie=de.field,ue=ie.value,Ae=ie.onChange,Ce=de.fieldState.error;return E.createElement(je,{label:"Author",variant:"outlined",value:ue??"",onChange:Ae,fullWidth:!0,error:!!Ce,helperText:Ce?.message,disabled:!x,size:"small"})}})),s?a==="tree"?E.createElement(D,{item:!0,md:4,xs:12,style:{marginTop:-8}},E.createElement(Ue,{name:"AssetId",control:L,render:function(de){var ie=de.field;return E.createElement(nte,{label:"Asset",value:ie.value||0,onChange:ie.onChange})}})):a==="selector"?E.createElement(D,{item:!0,md:4,xs:12},E.createElement(Ue,{name:"AssetId",control:L,render:function(de){var ie=de.field;return E.createElement(cte,{value:ie.value,onChange:ie.onChange,filterAreaAssets:c==="area"})}})):null:null),E.createElement(D,{container:!0,item:!0,xs:12,className:x?"":p.inputEditable,style:{flexGrow:1,height:"calc(100% - 200px)",marginTop:"16px"}},E.createElement(D,{item:!0,xs:12,style:{padding:0,height:"100%"}},E.createElement(Ue,{name:"Content",control:L,render:function(de){var ie=de.field,ue=ie.value,Ae=ie.onChange;return E.createElement(tzt,{UpdatedBy:X,UpdateTimestamp:Q,onChange:function(Ce){return Ae(Ce)},value:ue,isEditing:n==="edit",isNewEntry:x,entryId:ee,entryData:{assetId:ce,entryId:ee,shiftId:te,title:se,content:ue,author:pe,createTimestamp:x?new Date:re},onEntrySubmitted:ne,allowAttachments:u})}})))),E.createElement(D,{container:!0,style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:0,marginTop:"10px"}},E.createElement(D,{item:!0,container:!0,md:6,xs:12,spacing:2},E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return i()}},"Close")),E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"primary",onClick:function(){return r()}},n==="edit"?"Preview":"Edit"))),E.createElement(D,{item:!0,container:!0,md:6,xs:12,style:{display:"flex",justifyContent:"flex-end"}},E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Fe,{fullWidth:!0,startIcon:be&&E.createElement(Kt,{size:"1rem"}),disabled:be||!U,variant:"contained",color:"primary",type:"submit"},x?"Create":"Save")))))):null,E.createElement(Swi,{message:S,onHide:function(){return A("")}}),E.createElement(qOt,{open:me,onClose:Me,title:"Shift Submission Confirmation",message:"You are about to ".concat(x?"create":"save"," an entry for ").concat(AKe(O).format("MM/DD/YYYY")," ").concat(oe," - ").concat(ae,". Are you sure you want to proceed?"),suffixTitle:"Logbook Entry"}),E.createElement(Mt,{error:P,onHide:function(){return N("")}}))},Dwi=function(e){var t=e.withAssetFilter,n=e.filterAssets,r=e.assetId,i=e.setAssetId,o=i===void 0?function(){}:i,a=e.quickFilter,s=e.onQuickFilterChange;return ote({onReceiveMessage:function(l,c){c.replaceAll("[","").replaceAll("]","")=="LB.GetEntries"}}),E.createElement(D,{container:!0,justifyContent:"center",alignItems:"center",component:kt,spacing:2,style:{display:"flex",width:"100%",boxSizing:"border-box",marginLeft:1}},E.createElement(D,{item:!0,style:{display:"flex",justifyContent:"center",alignItems:"center"}},E.createElement(s2,{preventInit:!0,withPaper:!1,margin:"0.5rem 1rem 0rem"})),t==="tree"&&E.createElement(D,{item:!0,xs:12,md:4,style:{alignItems:"center",justifyContent:"center",marginTop:6}},E.createElement(nte,{label:"Asset",value:r||0,onChange:function(l){return o(l??null)},filterAssets:n==="area"})),t==="selector"&&E.createElement(D,{item:!0,xs:12,md:4,style:{alignItems:"center",justifyContent:"center",marginTop:6}},E.createElement(cte,{value:r??null,onChange:function(l){o(l??null)},filterAreaAssets:n==="area",isFilter:!0})),E.createElement(D,{item:!0,xs:12,style:{marginTop:"-0.5rem"}},E.createElement(je,{fullWidth:!0,label:"Search",variant:"outlined",size:"small",margin:"dense",value:a,onChange:function(l){s(l?.target.value)},InputProps:{startAdornment:E.createElement(nc,{position:"start"},E.createElement(yn,{edge:"start",type:"submit"},E.createElement(_3,null)))}})))},kwi=Rn(),Lwi=function(){var e=AOt().entry,t=e.withAssetFilter,n=e.filterAssets,r=e.canEditAsset,i=e.presetAssetId,o=e.allowAttachments,a=e.canEditShift,s=e.showShiftCrew,l=e.exportToExcel,c=e.shiftsRange,u=fa(),d=Rd()[0],p=d.get("entryId"),h=d.get("action"),g=Ms().shiftId,m=la(),v=m.shiftInfo,y=m.getShiftDataFromAPI,M=h==="edit",C=b.useRef(null),x=b.useRef(null),w=b.useState(""),S=w[0],A=w[1],z=b.useState(""),O=z[0],T=z[1],I=b.useState(""),P=I[0],N=I[1],F=b.useState(i??null),L=F[0],W=F[1],H=b.useState(null),j=H[0],G=H[1],q=b.useState(!1),$=q[0],U=q[1],X=ks(),Q=X.registerConfig,re=X.showContextMenu,ee=_wi({shiftId:v?.CurrentShiftId,assetId:t?L:void 0}),se=ee.data,pe=ee.isLoading,te=ee.error,ce=ee.isError,oe=ee.refetch,ae=swi({showContextMenu:re,allowAttachments:o,withAssetFilter:t,showShiftCrew:s}).columnDefs,ne=KOt({}).defaultColDef,le=function(ie){var ue;N(ie),(ue=x.current)===null||ue===void 0||ue.setGridOption("quickFilterText",ie)},he=function(){var ie;(ie=x.current)===null||ie===void 0||ie.deselectAll(),G(tt({},XX)),u("".concat(HA,"/").concat(C.current,"?action=new"),{replace:!0}),T("edit")},be=function(ie){var ue,Ae=g||v?.CurrentShiftId;G(ie?.data),u("".concat(HA,"/").concat(Ae,"?entryId=").concat((ue=ie?.data)===null||ue===void 0?void 0:ue.EntryId,"&action=view")),T("view")},me=b.useCallback(function(ie){var ue=ie.api,Ae=ie.node,Ce=ie.event;if(Ce){var Ee=Ce.key;if(Ee==="ArrowUp"||Ee==="ArrowDown"){Ce.preventDefault();var Ge=Ae.rowIndex!==null?Ae.rowIndex:-1,_e=Ee==="ArrowUp"?Ge-1:Ge+1,Ie=ue.getDisplayedRowAtIndex(_e);if(Ie){var Le=g||v?.CurrentShiftId;Ie.setSelected(!0),ue.ensureIndexVisible(_e),G(Ie.data),u("".concat(HA,"/").concat(Le,"/?entryId=").concat(Ie.data.EntryId,"&action=view"))}}}},[G,g,v?.CurrentShiftId]),Me=b.useCallback(function(ie){var ue,Ae,Ce=(ue=ie.node)===null||ue===void 0?void 0:ue.data;return re(event,Ce,"logbookEntryContext"),Ce&&(ie.api.deselectAll(),(Ae=ie.node)===null||Ae===void 0||Ae.setSelected(!0)),[]},[se]),Oe=awi({setSelectedRowData:G,setShow:T,setShowRemoveDialog:U,handleNewEntry:he}).getMenuOptions,de=function(){if(x.current){var ie={fileName:"Logbook_Entries_Export.xlsx",columnKeys:["AssetName","CreateTimestamp","Shift","Crew","Title","CreatedBy","Author","Content"],processCellCallback:function(ue){return ue.column.colId==="CreateTimestamp"?kwi(ue.value).format("MM/DD/yy - HH:mm"):ue.value}};x.current.exportDataAsExcel(ie)}};return b.useEffect(function(){var ie,ue;if(!pe&&p&&p!=="new"&&x.current){var Ae=(ie=x.current)===null||ie===void 0?void 0:ie.getRowNode(p);Ae?((ue=x.current)===null||ue===void 0||ue.ensureNodeVisible(Ae),Ae.setSelected(!0),G(Ae.data),T(M?"edit":"view")):setTimeout(function(){return Ct(void 0,void 0,void 0,function(){var Ce,Ee,Ge;return xt(this,function(_e){switch(_e.label){case 0:return[4,oe()];case 1:return _e.sent(),Ce=(Ee=x.current)===null||Ee===void 0?void 0:Ee.getRowNode(p),Ce&&((Ge=x.current)===null||Ge===void 0||Ge.ensureNodeVisible(Ce),Ce.setSelected(!0),G(Ce.data),T(M?"edit":"view")),[2]}})})},500)}},[x.current,pe,p,M,oe]),b.useEffect(function(){Q({id:"logbookEntryContext",getOptions:Oe})},[]),b.useEffect(function(){ce&&A(te.message)},[ce,te]),b.useEffect(function(){v&&(T(""),G(null),p&&(C.current==null||C.current===v?.CurrentShiftId)?u("".concat(HA,"/").concat(v.CurrentShiftId,"?entryId=").concat(p,"&action=").concat(h)):u("".concat(HA,"/").concat(v.CurrentShiftId)),C.current=v?.CurrentShiftId,(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ie){switch(ie.label){case 0:return[4,oe()];case 1:return ie.sent(),[2]}})})})())},[v]),b.useEffect(function(){g?(function(){return Ct(void 0,void 0,void 0,function(){var ie;return xt(this,function(ue){switch(ue.label){case 0:return ie=Number(g),[4,y(null,ie)];case 1:return ue.sent(),[2]}})})})():(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(ie){switch(ie.label){case 0:return[4,y(null,0)];case 1:return ie.sent(),[2]}})})})()},[]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0,spacing:2,justifyContent:"flex-start"},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(bt,{variant:"h5",style:{fontWeight:600,userSelect:"none"}},"LOGBOOK")),E.createElement(D,{item:!0,container:!0,xs:12,md:5,spacing:2},E.createElement(D,{item:!0,xs:12},E.createElement(Dwi,{withAssetFilter:t,filterAssets:n,quickFilter:P,onQuickFilterChange:le,assetId:L,setAssetId:W})),E.createElement(D,{item:!0,xs:12},E.createElement(kt,{elevation:1,style:{height:"62vh",width:"100%"}},E.createElement(Kn,{loading:pe,rowData:se,columnDefs:ae,defaultColDef:ne,rowHeight:38,headerHeight:42,loadingOverlayComponent:Wm,animateRows:!0,getContextMenuItems:Me,onRowClicked:be,onCellKeyDown:me,onGridReady:function(ie){return x.current=ie.api},getRowId:function(ie){return"".concat(ie.data.EntryId)},gridOptions:{rowSelection:{mode:"singleRow",checkboxes:!1,enableClickSelection:!0},statusBar:{statusPanels:[l?{statusPanel:function(ie){return E.createElement("div",{style:{marginTop:8,display:"flex"}},E.createElement(YOt,{handleExportToExcel:de}))},align:"right"}:{},{statusPanel:function(ie){return E.createElement(owi,{handleNew:he})},align:"left"}]}}})))),E.createElement(D,{item:!0,xs:12,md:7},E.createElement(Pwi,{entry:j,show:O,onChangeShow:function(){var ie=O==="view"?"edit":"view";if(T(ie),p&&p!=="new"){var ue=ie==="edit"?"/logbook/entry/".concat(g||v?.CurrentShiftId,"?entryId=").concat(p,"&action=edit"):"/logbook/entry/".concat(g||v?.CurrentShiftId,"?entryId=").concat(p,"&action=view");u(ue)}},preselectedAssetId:L,withAssetFilter:t,canEditAsset:r,canEditShift:a,filterAssets:n,allowAttachments:o,shiftsRange:c,onHide:function(ie,ue){return Ct(void 0,void 0,void 0,function(){var Ae,Ce;return xt(this,function(Ee){switch(Ee.label){case 0:return ie?[4,oe()]:[3,2];case 1:return Ee.sent(),Ae=ue?"/logbook/entry/".concat(g||v?.CurrentShiftId,"?entryId=").concat(ie,"&action=edit"):"/logbook/entry/".concat(g||v?.CurrentShiftId,"?entryId=").concat(ie,"&action=view"),u(Ae),T(ue?"edit":"view"),setTimeout(function(){var Ge,_e,Ie=(Ge=x.current)===null||Ge===void 0?void 0:Ge.getRowNode(ie.toString());Ie?((_e=x.current)===null||_e===void 0||_e.ensureNodeVisible(Ie),Ie.setSelected(!0),G(Ie.data)):setTimeout(function(){return Ct(void 0,void 0,void 0,function(){var Le,we,ve,De;return xt(this,function(ze){switch(ze.label){case 0:return[4,oe()];case 1:return ze.sent(),Le=(we=x.current)===null||we===void 0?void 0:we.getRowNode(ie.toString()),Le?((ve=x.current)===null||ve===void 0||ve.ensureNodeVisible(Le),Le.setSelected(!0),G(Le.data)):(T(""),G(null),(De=x.current)===null||De===void 0||De.deselectAll()),[2]}})})},500)},200),[3,3];case 2:T(""),G(null),(Ce=x.current)===null||Ce===void 0||Ce.deselectAll(),u("".concat(HA,"/").concat(g||v?.CurrentShiftId)),Ee.label=3;case 3:return[2]}})})}}))),E.createElement(mwi,{entry:j,show:$,onHide:function(ie){ie&&oe(),U(!1),G(null),T("")}}),E.createElement(Mt,{error:S,onHide:function(){return A("")}}))},_wi=function(e){var t=e.shiftId,n=e.assetId;return Bl({queryKey:["entries",t,n],queryFn:function(r){var i=r.signal;return lwi({shiftId:t,assetId:n,signal:i})}})},HA="/logbook/entry",Nwi=function(){return E.createElement(E.Fragment,null,E.createElement(Mn,{title:"Logbook Entry"}),E.createElement(D,{container:!0,style:{padding:20},onContextMenu:function(e){return e.preventDefault()}},E.createElement(Lwi,null)))},OKe=function(){return E.createElement(Nwi,null)},Fwi=function(e){var t=e.showAttachments,n=e.showAsset,r=e.showShiftCrew,i=xi(xi(xi(xi(xi([{field:"CreateTimestamp",headerName:"Created",flex:2,valueGetter:function(o){return Wn(o.data.CreateTimestamp,"MM/dd/yy HH:mm")}}],n?[{field:"AssetName",headerName:"Asset",sortable:!0,flex:2,minWidth:70,wrapText:!0,autoHeight:!0}]:[],!0),[{field:"Title",headerName:"Title",flex:4},{field:"Author",headerName:"Created By",flex:2}],!1),r?[{field:"Shift",headerName:"Shift",sortable:!1,flex:1,minWidth:60,maxWidth:60},{field:"Crew",headerName:"Crew",sortable:!1,flex:1,minWidth:60,maxWidth:60}]:[],!0),t?[{field:"AttachmentCount",headerName:"",flex:1,headerComponent:function(){return E.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",textAlign:"center"}},E.createElement(lP,{style:{fontSize:18,color:"#666"}}))},cellRenderer:function(o){var a=o.data.AttachmentCount||0;return a===0?null:E.createElement("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"center"}},E.createElement(fM,{icon:E.createElement(lP,{style:{fontSize:16}}),label:a,size:"small",variant:"outlined",color:"primary"}))}}]:[],!0),[{field:"Content",headerName:"Content",hide:!0}],!1);return{columnDefs:i}},Wwi=Rt(function(e){return{root:{"& .input-group-text":{display:"none"},"& .MuiDialogContent-dividers":{padding:0},"& .MuiOutlinedInput-root.Mui-disabled":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"}},"& .MuiSelect-iconOutlined":{display:"none"}},paper:{width:"100%",height:"100%",display:"flex",flexDirection:"column",padding:"20px 20px 10px",overflowX:"hidden"},inputEditable:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},minHeight:"100px"}}}),qwi=Rn(),Bwi=function(e){var t=e.entry,n=e.show,r=e.onHide,i=e.filterAssets,o=e.showAsset,a=e.showAttachments,s=a===void 0?!1:a,l=Wwi(),c=b.useState(""),u=c[0],d=c[1],p=Gn(),h=p.control,g=p.setValue,m=p.reset,v=p.watch;p.getValues;var y=v("Content"),M=v("UpdatedBy"),C=v("UpdateTimestamp"),x=v("EntryId"),w=v("Title"),S=v("Author"),A=v("ShiftId"),z=v("AssetId"),O=v("CreateTimestamp");return b.useEffect(function(){m(t||XX)},[t,n]),E.createElement(E.Fragment,null,t?.EntryId&&E.createElement(Mn,{title:"'".concat(t?.Title,"' by ").concat(t.Author," - Logbook Report")}),t?.EntryId?E.createElement(kt,{elevation:1,className:l.paper},E.createElement("form",{style:{height:"100%",display:"flex",flexDirection:"column"}},E.createElement(T0,{style:{padding:"0px",marginLeft:0,width:"100%",flexBasis:"10%",minHeight:"10%"}},E.createElement(D,{item:!0,xs:12},E.createElement(Ue,{name:"Title",control:h,render:function(T){var I=T.field.value;return E.createElement(je,{label:"Title",variant:"outlined",value:I??"",fullWidth:!0,size:"medium",disabled:!0})}}))),E.createElement(ru,{dividers:!0,style:{padding:"10px 0 0",flexGrow:1,flexBasis:"90%",overflowY:"auto",display:"flex",flexDirection:"column",borderTop:0},className:l.root},E.createElement(D,{container:!0,spacing:2,style:{width:"100%",marginBottom:"0px",paddingLeft:0,display:"flex",justifyContent:"space-between",margin:0}},E.createElement(D,{item:!0,xs:12,md:4,style:{paddingLeft:0}},E.createElement(Ue,{name:"CreateTimestamp",control:h,render:function(T){var I=T.field.value;return E.createElement(Cd,{label:"Creation Time",timezone:Rc.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",value:I?qwi(I):null,disabled:!0,slotProps:{textField:{variant:"outlined",size:"small",fullWidth:!0}}})}})),E.createElement(D,{item:!0,xs:12,md:3},E.createElement(Ue,{name:"ShiftId",control:h,render:function(T){var I=T.field;return E.createElement(JOt,{onChange:I.onChange,value:I.value,disabled:!0})}})),E.createElement(D,{item:!0,xs:12,md:o?3:5,style:{paddingRight:0,marginRight:"0px"}},E.createElement(Ue,{name:"Author",control:h,render:function(T){var I=T.field.value;return E.createElement(je,{label:"Author",variant:"outlined",value:I??"",fullWidth:!0,disabled:!0,size:"small"})}})),o&&E.createElement(D,{item:!0,md:2,xs:12},E.createElement(Ue,{name:"AssetId",control:h,rules:{required:"Asset is required"},render:function(T){var I=T.field;return E.createElement(cte,{value:I.value,onChange:I.onChange,filterAreaAssets:i==="area",disabled:!0})}}))),E.createElement(D,{container:!0,item:!0,xs:12,style:{flexGrow:1,height:"calc(100% - 200px)",marginTop:"16px"}},E.createElement(D,{item:!0,xs:12,style:{padding:0,height:"100%"}},E.createElement(tzt,{UpdatedBy:M,UpdateTimestamp:C,onChange:function(T){return g("Content",T)},value:y,isEditing:!1,isNewEntry:!1,entryId:x,entryData:{assetId:z,entryId:x,shiftId:A,title:w,content:y,author:S,createTimestamp:O},onEntrySubmitted:void 0,allowAttachments:s})))),E.createElement(D,{container:!0,style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:0,marginTop:"10px"}},E.createElement(D,{item:!0,container:!0,md:6,xs:12,spacing:2},E.createElement(D,{item:!0,md:6,xs:12},E.createElement(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:function(){return r()}},"Close")))))):null,E.createElement(Mt,{error:u,onHide:function(){return d("")}}))},jwi=[{value:"Day",label:"Day"},{value:"4Days",label:"4 Days"},{value:"Week",label:"Week"},{value:"Month",label:"Month"},{value:"Custom",label:"Custom"}],Hwi=function(e){if(e!==void 0){var t=e.reduce(function(r,i,o){return r[i?.id]=o,r},{}),n;return e.forEach(function(r){if(r?.parentId===null){n=r;return}var i=e[t[r.parentId]];i&&(i.children=xi(xi([],i?.children||[],!0),[r],!1))}),n}},Vwi=function(e){var t=e.withAssetFilter,n=e.filterAssets,r=e.quickFilter,i=e.onQuickFilterChange,o=e.assetId,a=e.setAssetId,s=e.shiftPeriod,l=e.onChangeShiftPeriod,c=e.actualPeriod,u=function(m,v){l(m,v)};ote({onReceiveMessage:function(m,v){v.replaceAll("[","").replaceAll("]","")=="LB.GetEntries"}});var d=ZOt(),p=d.data;d.isLoading;var h=(Array.isArray(p)?p:[]).filter(function(m){return n!=="area"||m.CanBeDefaultAsset}).map(function(m){return{id:m.AssetId,name:m.AssetName,parentId:m.ParentAssetId,isLeaf:m.IsLeaf,isActive:!0}}),g=Hwi(h||[]);return E.createElement(kt,{elevation:1,style:{padding:8}},E.createElement(D,{container:!0,spacing:1},E.createElement(D,{item:!0,xs:12,alignItems:"center",justifyContent:"center"},E.createElement(wMi,{onChange:u,value:s,actualPeriod:c,showShiftAndCrews:!1,dateFormat:"MM/DD/YYYY",periodOptions:jwi})),E.createElement(D,{item:!0,xs:12,md:t?6:12},E.createElement(je,{fullWidth:!0,label:"Search",variant:"outlined",size:"small",margin:"dense",value:r,onChange:function(m){i(m?.target.value)},InputProps:{startAdornment:E.createElement(nc,{position:"start"},E.createElement(yn,{edge:"start",type:"submit"},E.createElement(_3,null)))}})),t==="tree"&&g&&E.createElement(D,{item:!0,xs:12,md:6,style:{alignItems:"center",justifyContent:"center"}},E.createElement(a3e,{inputTitle:"Asset",title:"Choose Asset",dataSource:g,value:o||0,description:"",onSelect:function(m){return a(m??null)},selectBranch:!0,selectActive:!1,selectInternal:!1,showPath:!0,allowSearch:!0})),t==="selector"&&E.createElement(D,{item:!0,xs:12,md:6,style:{alignItems:"center",justifyContent:"center",marginTop:6}},E.createElement(cte,{value:o??null,onChange:function(m){a(m??null)},filterAreaAssets:n==="area",isFilter:!0}))))},Gwi=Rn(),$wi=function(){var e=AOt().report,t=e.withAssetFilter,n=e.filterAssets,r=e.showAttachments,i=e.showAsset,o=e.showShiftCrew,a=e.exportToExcel,s=Rd(),l=s[0],c=s[1],u=l.get("entryId"),d=b.useRef(null),p=b.useState(""),h=p[0],g=p[1],m=b.useState(""),v=m[0],y=m[1],M=b.useState(null),C=M[0],x=M[1],w=b.useState(function(){var se=l.get("startShiftId"),pe=l.get("endShiftId");return{StartShiftId:se?Number(se):null,EndShiftId:pe?Number(pe):null}}),S=w[0],A=w[1],z=b.useState(""),O=z[0],T=z[1],I=b.useState(null),P=I[0],N=I[1],F=function(se){var pe=se.startShiftId,te=se.endShiftId,ce=se.period,oe=se.entryId,ae=new URLSearchParams(l);pe?ae.set("startShiftId",pe.toString()):pe===null&&ae.delete("startShiftId"),te?ae.set("endShiftId",te.toString()):te===null&&ae.delete("endShiftId"),ce?ae.set("period",ce):ce===null&&ae.delete("period"),oe?ae.set("entryId",oe):oe===null&&ae.delete("entryId"),c(ae)},L=Xwi({startShiftId:S.StartShiftId,endShiftId:S.EndShiftId,assetId:C}),W=L.data,H=L.isLoading,j=L.error,G=L.isError,q=L.refetch,$=Fwi({showAttachments:r,showAsset:i,showShiftCrew:o}).columnDefs,U=KOt({}).defaultColDef,X=function(se){var pe;T(se),(pe=d.current)===null||pe===void 0||pe.setGridOption("quickFilterText",se)},Q=function(se){var pe,te;N(se?.data),F({entryId:(te=(pe=se.data)===null||pe===void 0?void 0:pe.EntryId)===null||te===void 0?void 0:te.toString()}),y("view")},re=b.useCallback(function(se){var pe,te,ce=se.api,oe=se.node,ae=se.event;if(ae){var ne=ae.key;if(ne==="ArrowUp"||ne==="ArrowDown"){ae.preventDefault();var le=oe.rowIndex!==null?oe.rowIndex:-1,he=ne==="ArrowUp"?le-1:le+1,be=ce.getDisplayedRowAtIndex(he);be&&(be.setSelected(!0),ce.ensureIndexVisible(he),N(be.data),F({entryId:(te=(pe=be.data)===null||pe===void 0?void 0:pe.EntryId)===null||te===void 0?void 0:te.toString()}))}}},[N]),ee=function(){if(d.current){var se={fileName:"Logbook_Report_Export.xlsx",columnKeys:["AssetName","CreateTimestamp","Shift","Crew","Title","CreatedBy","Author","Content"],processCellCallback:function(pe){return pe.column.colId==="CreateTimestamp"?Gwi(pe.value).format("MM/DD/yy - HH:mm"):pe.value}};d.current.exportDataAsExcel(se)}};return b.useEffect(function(){var se,pe,te;if(!H&&u&&d.current){var ce=(se=d.current)===null||se===void 0?void 0:se.getRowNode(u);ce&&((pe=d.current)===null||pe===void 0||pe.ensureNodeVisible(ce),ce.setSelected(!0),N(ce.data),y("view"))}else u||(y(""),N(null),(te=d.current)===null||te===void 0||te.deselectAll())},[d.current,H,u]),b.useEffect(function(){G&&g(j.message)},[G,j]),b.useEffect(function(){var se,pe=l.get("startShiftId"),te=l.get("endShiftId"),ce=l.get("entryId");if((pe||te)&&A({StartShiftId:pe?Number(pe):null,EndShiftId:te?Number(te):null}),ce&&d.current){var oe=(se=d.current)===null||se===void 0?void 0:se.getRowNode(ce);oe&&(oe.setSelected(!0),N(oe.data),y("view"))}},[]),b.useEffect(function(){(S.StartShiftId!==null||S.EndShiftId!==null)&&(y(""),N(null),(function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(se){switch(se.label){case 0:return[4,q()];case 1:return se.sent(),[2]}})})})())},[S.StartShiftId,S.EndShiftId]),E.createElement(E.Fragment,null,E.createElement(D,{container:!0,spacing:1},E.createElement(D,{item:!0,md:12,xs:12},E.createElement(bt,{variant:"h5",style:{fontWeight:600,userSelect:"none"}},"LOGBOOK REPORT")),E.createElement(D,{item:!0,container:!0,xs:12,md:5,spacing:2},E.createElement(D,{item:!0,container:!0,xs:12},E.createElement(Vwi,{withAssetFilter:t,filterAssets:n,quickFilter:O,onQuickFilterChange:X,assetId:C,setAssetId:function(se){return x(se)},shiftPeriod:S,onChangeShiftPeriod:function(se,pe){A(se),F({startShiftId:se.StartShiftId,endShiftId:se.EndShiftId,period:pe,entryId:l.get("entryId")})},actualPeriod:l.get("period")})),E.createElement(D,{item:!0,xs:12},E.createElement(kt,{elevation:1,style:{height:"70vh",width:"100%"}},E.createElement(Kn,{loading:H,rowData:W,columnDefs:$,defaultColDef:U,rowHeight:38,headerHeight:42,loadingOverlayComponent:Wm,animateRows:!0,onRowClicked:Q,onCellKeyDown:re,onGridReady:function(se){return d.current=se.api},getRowId:function(se){return"".concat(se.data.EntryId)},gridOptions:{rowSelection:{mode:"singleRow",checkboxes:!1,enableClickSelection:!0},statusBar:{statusPanels:[a?{statusPanel:function(se){return E.createElement("div",{style:{padding:10}},E.createElement(YOt,{handleExportToExcel:ee}))},align:"right"}:{}]}}})))),E.createElement(D,{item:!0,xs:12,md:7},E.createElement(Bwi,{entry:P,show:v,onChangeShow:function(){return y(v==="view"?"edit":"view")},onHide:function(){var se;y(""),N(null),(se=d.current)===null||se===void 0||se.deselectAll(),F({entryId:null})},filterAssets:n,showAsset:i,showAttachments:r}))),E.createElement(Mt,{error:h,onHide:function(){return g("")}}))},zKe=Rn(),Uwi=function(e){return Ct(void 0,[e],void 0,function(t){var n,r,i,o,a=t.startShiftId,s=t.endShiftId,l=t.assetId;return xt(this,function(c){switch(c.label){case 0:return n=new Ye,r=[{name:"StartShiftId",value:a},{name:"EndShiftId",value:s}],l&&r.push({name:"AssetId",value:l}),[4,n.callV2("[LB].[GetEntries]",r)];case 1:if(i=c.sent(),i.ok)return o=Ot(i,"data.tables[0].rows",[]),o=o.map(function(u){return tt(tt({},u),{CreateTimestamp:u.CreateTimestamp?zKe.utc(u.CreateTimestamp).toDate():null,UpdateTimestamp:u.UpdateTimestamp?zKe.utc(u.UpdateTimestamp).toDate():null})}),[2,o];throw new Error(i.message||"Error fetching entries")}})})},Xwi=function(e){var t=e.startShiftId,n=e.endShiftId,r=e.assetId;return Bl({queryKey:["entriesReport",t,n,r],queryFn:function(){return Uwi({startShiftId:t,endShiftId:n,assetId:r})}})},Ywi=function(){return E.createElement(E.Fragment,null,E.createElement(Mn,{title:"Logbook Report"}),E.createElement(D,{container:!0,style:{padding:20},onContextMenu:function(e){return e.preventDefault()}},E.createElement($wi,null)))},Kwi=function(){return E.createElement(Ywi,null)},Qwi=[{path:"/logbook/entry",element:E.createElement(OKe)},{path:"/logbook/entry/:shiftId",element:E.createElement(OKe)},{path:"/logbook/report",element:E.createElement(Kwi)}],TKe=[{id:"logbook",label:"Logbook",items:[{label:"Logbook Entry",to:"/logbook/entry"},{label:"Logbook Report",to:"/logbook/report"}]}],Zwi=function(e){var t=Bw(),n=t.state.userId,r=t.actions.setDefaultAreaId,i=ate({userId:n}),o=i.data,a=i.isError,s=i.error;return b.useEffect(function(){s&&a&&e(s.message)},[s,a]),function(){if(n&&o){var l=Ot(o,"[0]",null);l&&r(l)}}},Jwi=Rt(function(e){return Mp({root:{"& .MuiInputBase-input":{color:"#000 !important"},"& .MuiPaper-root":{height:"80vh"}},title:{fontSize:15},areaLink:{paddingLeft:0,color:"#FFF",cursor:"pointer",maxWidth:"100px",fontSize:".8rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center"},areaIcon:{marginLeft:"-5px"},listContainer:{height:"45vh",border:"1px solid rgba(0, 0, 0, 0.26)",borderRadius:"2px",overflowY:"scroll"}})}),eSi=function(){var e=b.useState(!1),t=e[0],n=e[1],r=b.useState(""),i=r[0],o=r[1],a=Ek().getUserId,s=Bw(),l=s.state,c=l.userId,u=l.defaultAreaId,d=l.defaultAreaName,p=s.actions,h=p.setDefaultAreaId,g=p.setDefaultAreaName,m=p.setUserId,v=Tk(),y=v.data;v.isLoading;var M=v.isError,C=v.error,x=y?.filter(function(U){return U.CanBeDefaultAsset}),w=E.useState(!0)[0],S=E.useState("sm"),A=S[0];S[1];var z=Jwi(),O=b.useState(u),T=O[0],I=O[1],P=b.useState(d),N=P[0],F=P[1],L=Zwi(o),W=function(U){return n(U)},H=function(){n(!0)},j=function(){I(u),F(d),W(!1)},G=function(){I(u),F(d),n(!1)},q=function(U,X){I(U),F(X)},$=function(){return Ct(void 0,void 0,void 0,function(){return xt(this,function(U){return qyi(c,T).then(function(X){X.ok?(h(T),g(N),n(!1)):o(X.message)}),[2]})})};return b.useEffect(function(){m(a())},[]),b.useEffect(function(){L()},[c]),b.useEffect(function(){C&&M&&o(C.message)},[C,M]),b.useEffect(function(){if(u&&x){var U=x.find(function(X){return X?.AssetId===u});g(U?.AssetName),F(U?.AssetName)}else h(0),g("Plant"),F("Plant")},[u,x]),E.createElement(E.Fragment,null,E.createElement(Tn,{mx:2},E.createElement(yn,{color:"inherit",onClick:H,size:"small"},E.createElement("div",{className:z.areaLink},E.createElement(Dsi,{className:z.areaIcon}),d))),t&&E.createElement(Mn,{title:"Change Default Area"}),E.createElement(Qu,{fullWidth:w,maxWidth:A,onClose:G,"aria-labelledby":"confirmation-dialog-title",open:t,className:z.root},E.createElement(T0,{id:"confirmation-dialog-title"},"AREA"),E.createElement(ru,{dividers:!0},E.createElement(bt,{className:z.title,variant:"subtitle1",style:{marginBottom:0}},"Current Area"),E.createElement(D,{container:!0},E.createElement(D,{item:!0,xs:12,style:{marginTop:5}},E.createElement(je,{variant:"outlined",disabled:!0,value:N,fullWidth:!0,margin:"dense",autoComplete:"off",style:{color:"#000 !important"}}),E.createElement(bt,{className:z.title,variant:"subtitle1",style:{marginBottom:0,marginTop:5}},"Change Default Area"),E.createElement(D,{item:!0,xs:12,style:{marginTop:10}},E.createElement(D,{item:!0,xs:12,className:z.listContainer},E.createElement(tp,{dense:!0,style:{padding:0}},x?.map(function(U){return E.createElement(ya,{button:!0,key:"Area-".concat(U?.AssetId),onClick:function(){return q(U?.AssetId,U?.AssetName)},style:{cursor:"pointer",width:"100%"}},E.createElement(na,{primary:U?.AssetName}))}))))))),E.createElement(Td,null,E.createElement(Fe,{autoFocus:!0,onClick:j,color:"primary"},"Cancel"),E.createElement(Fe,{variant:"contained",onClick:$,color:"primary"},"Change Area"))),E.createElement(Mt,{error:i,onHide:function(){return o("")}}))},tSi=Object.freeze({__proto__:null,AreaSelector:eSi});const nSi=Wl({css:`
	  .max-limit {
		color: var(--ag-warning-cell-foreground-color);
		font-weight: var(--ag-warning-cell-font-weight);
		background-color: var(--ag-warning-cell-background-color);
	  }
	`,params:{warningCellForegroundColor:" #CC0000",warningCellFontWeight:600,warningCellBackgroundColor:"transparent"}}),rSi=Wl({css:`
	  .info-limit {
		color: var(--ag-info-cell-foreground-color);
		background-color: var(--ag-info-cell-background-color);
		font-weight: var(--ag-info-cell-font-weight);
	  }
	`,params:{infoCellForegroundColor:" #000",infoCellBackgroundColor:" #b2e5ed",infoCellFontWeight:600}}),iSi=Wl({css:`
	  .month-report {
		background-color: var(--ag-info-cell-background-color);
	  }
	  
	  .month-report:hover {
		background-color: #DAE5EA;
	  }
	`,params:{infoCellBackgroundColor:" #E9F2F7"}}),oSi=Wl({css:`
    .custom-chip {
      display: inline-flex;
      align-items: center;
      padding: 4px 12px;
      border-radius: 16px;
      font-size: 0.8125rem;
      font-family: "Roboto", "Helvetica", "Arial", sans-serif;
      line-height: 1.5;
      cursor: default;
    }

    .ag-cell.eaf-11 .custom-chip {
      font-weight: 500;
      color: #192a4d;
      background-color: #dae8fc;
      border: 1px solid #a6c8f7;
    }

    .ag-cell.eaf-12 .custom-chip {
      font-weight: 500;
      color: #273d25;
      background-color: #d5e8d4;
      border: 1px solid #a3d3a1;
    }
  `,params:{}}),aSi=Wl({css:`
	  .cell-below-min {
		background-color: #ffa500;
		font-weight: bold;
	  }

	  .cell-above-max {
		background-color: #f26b6b;
		font-weight: bold;
	  }

	  .ag-header-cell-label {
		display: flex;
		justify-content: center;
		align-items: center;
	  }
	`,params:{}}),sSi=Wl({css:`
    .custom-chip {
      display: inline-flex;
      align-items: center;
      padding: 2px 12px;
      border-radius: 16px;
      font-size: 0.8125rem;
      font-family: "Roboto", "Helvetica", "Arial", sans-serif;
      line-height: 1.5;
      cursor: default;
    }

    .ag-cell.shift-chip-D .custom-chip {
      font-weight: 800;
      color:rgb(255, 255, 255);
      background-color: #DDD116;
      border: 1px solid rgb(224, 208, 101);
    }

    .ag-cell.shift-chip-N .custom-chip {
      font-weight: 800;
      color:rgb(255, 255, 255);
	  background-color:rgb(161, 66, 221);
      border: 1px solid rgb(183, 102, 233);
    }
  `,params:{}}),lSi=Wl({css:`
    .custom-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 0.8125rem;
      font-family: "Roboto", "Helvetica", "Arial", sans-serif;
      line-height: 1.5;
      cursor: default;
      min-width: 24px;
      height: 24px;
    }

    .ag-cell.crew-chip-A .custom-chip {
      font-weight: 800;
      color:rgb(255, 255, 255);
      background-color: #B2E08A;
      border: 1px solid #B2E08A;
    }

    .ag-cell.crew-chip-B .custom-chip {
      font-weight: 800;
      color:rgb(236, 236, 236);
	  background-color: #E83011;
      border: 1px solid #E83011;
    }

    .ag-cell.crew-chip-C .custom-chip {
      font-weight: 800;
      color:rgb(255, 255, 255);
      background-color: #3878B4;
      border: 1px solid #3878B4;
    }

    .ag-cell.crew-chip-D .custom-chip {
      font-weight: 800;
      color:rgb(255, 255, 255);
      background-color: #F3A506;
      border: 1px solid #F3A506;
    }
  `,params:{}}),cSi="CompanyName=Dexteel,LicensedApplication=MESF,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=1,LicensedProductionInstancesCount=0,AssetReference=AG-032923,SupportServicesEnd=14_September_2023_[v2]_MTY5NDY0NjAwMDAwMA==25593f20edf9c6754b7254f6a450e88c";lrt.setLicenseKey(cSi);const uSi=Dye.withPart(nSi).withPart(rSi).withPart(iSi).withPart(oSi).withPart(aSi).withPart(sSi).withPart(lSi).withParams({spacing:4});WLt.registerModules([yrn]);znt({theme:uSi,defaultColDef:{suppressHeaderMenuButton:!0,filter:!1,floatingFilter:!1,editable:!1,cellStyle:{textAlign:"center"}}});const dSi={guestIsEnabled:!1,useEmailAndPassword:!0,useAzureAD:!1,AzureConfig:{clientId:"7c77d607-51e0-4e03-bd50-d7aa18a7163f",authority:"https://login.microsoftonline.com/common",redirectUri:"http://localhost:5000/"},useWindowsAuth:!0},gu=Rn(),pSi=async({ProcessId:e=null})=>{const n=await new Ye().callV2("[EAF].[DEGetProcess]",[{name:"ProcessId",value:e}]);if(n.ok){const r=n.data,i=r.tables[0].rows[0];return r.tables[0].rows[0]={...r.tables[0].rows[0],Start:gu.utc(i.Start).toDate(),End:i.End?gu.utc(i.End).toDate():null,StartTap:i.StartTap?gu.utc(i.StartTap).toDate():null,ProductionDate:i.ProductionDate?gu.utc(i.ProductionDate).toDate():null,TrimProbeTime:i.TrimProbeTime?gu.utc(i.TrimProbeTime).toDate():null},r.tables[1].rows=r.tables[1].rows.map(o=>(o.Timestamp=gu.utc(o.Timestamp).toDate(),o)),r.tables[2].rows=r.tables[2].rows.map(o=>(o.Start=gu.utc(o.Start).toDate(),o.End=gu.utc(o.End).toDate(),o)),r.tables[3].rows=r.tables[3].rows.map(o=>(o.Timestamp=gu.utc(o.Timestamp).toDate(),o)),r.tables[4].rows=r.tables[4].rows.map(o=>(o.Timestamp=gu.utc(o.Timestamp).toDate(),o)),r.tables[5].rows=r.tables[5].rows.map(o=>(o.Start=gu.utc(o.Start).toDate(),o.End=gu.utc(o.End).toDate(),o)),r.tables[6].rows=r.tables[6].rows.map(o=>(o.Timestamp=gu.utc(o.Timestamp).toDate(),o)),r.tables[7].rows=r.tables[7].rows.map(o=>(o.Start=gu.utc(o.Start).toDate(),o.End=o.End?gu.utc(o.End).toDate():null,o)),{ok:!0,data:r}}else return{ok:!1,message:n.message}},hSi=async()=>{const t=await new Ye().callV2("[MS].[GetLadles]",[]);return t.ok?{ok:!0,data:t.data.tables[0].rows}:{ok:!1,message:t.message}},fSi=async()=>await new Ye().callV2("[EAF].[GetPhaseEventTypes]",[]),gSi=async()=>await new Ye().callV2("[EAF].[GetCatalogPhasesEventTypes]",[]),mSi=async e=>{const t=new Ye,n=[{name:"PhaseEventTypeId",value:e.PhaseEventTypeId},{name:"EventDescription",value:e.EventDescription},{name:"IsActive",value:e.IsActive}];return await t.callV2("[EAF].[UpsertPhaseEventType]",n)},vSi=async()=>{const t=await new Ye().callV2("[STEEL].[GetGrades]",[]);return t.ok?{ok:!0,data:t.data.tables[0].rows}:{ok:!1,message:t.message}},bSi=async({ProcessId:e,Start:t,End:n,AssetId:r})=>{const i=new Ye,o=[{name:"ProcessId",value:e},{name:"Start",value:t},{name:"End",value:n},{name:"IsProcessManual",value:!0},{name:"AssetId",value:r}];return await i.callV2("[EAF].[UpsertProcess]",o)},ySi=async({processId:e,field:t,value:n})=>{n instanceof Date&&(n=n.toISOString());const r=new Ye,i=[{name:"ProcessId",value:e},{name:t,value:n},{name:"IsManual",value:!0}];return await r.callV2("[EAF].[UpdateProcessData]",i)},MSi=async({processId:e,TrimProbeTime:t,TrimProbeTemperature:n})=>{const r=new Ye,i=[{name:"ProcessId",value:e},{name:"TrimProbeTime",value:t.toISOString()},{name:"TrimProbeTemperature",value:n},{name:"IsManual",value:!0}];return await r.callV2("[EAF].[UpdateProcessData]",i)},CSi=async({ChargeId:e,ProcessId:t,Timestamp:n,Charge:r,ChargeCode:i,Weight:o,BucketId:a})=>{const s=new Ye,l=[{name:"ChargeId",value:e},{name:"ProcessId",value:t},{name:"Timestamp",value:n},{name:"Weight",value:o},{name:"BucketId",value:a},{name:"IsChargeManual",value:!0}];return await s.callV2("[EAF].[UpsertCharge]",l)},xSi=async({ProbeId:e,ProcessId:t,Timestamp:n,Temperature:r,Oxygen:i,IsProbeManual:o})=>{const a=new Ye,s=[{name:"ProbeId",value:e},{name:"ProcessId",value:t},{name:"Timestamp",value:n},{name:"Temperature",value:r},{name:"Oxygen",value:i},{name:"IsProbeManual",value:o}];return await a.callV2("[EAF].[UpsertProbe]",s)},wSi=async({ElectrodeEventId:e,ProcessId:t,Phase:n,PhaseEventTypeId:r,Timestamp:i,IsManual:o})=>{const a=new Ye,s=[{name:"ElectrodeEventId",value:e},{name:"ProcessId",value:t},{name:"Phase",value:n},{name:"PhaseEventTypeId",value:r},{name:"Timestamp",value:i},{name:"IsManual",value:!0}];return await a.callV2("[EAF].[UpsertElectrodeEvent]",s)},SSi=async({HeatId:e,field:t,value:n})=>{const r=new Ye,i=[{name:"HeatId",value:e},{name:t,value:n}];return await r.callV2("[MS].[UpsertHeat]",i)},ASi=async({AdditionId:e,ProcessId:t,Timestamp:n,Weight:r,MaterialId:i})=>{const o=new Ye,a=[{name:"AdditionId",value:e},{name:"ProcessId",value:t},{name:"Timestamp",value:n},{name:"Weight",value:r},{name:"MaterialId",value:i},{name:"IsAdditionManual",value:!0}];return await o.callV2("[EAF].[UpsertAddition]",a)},OSi=async({WireAdditionId:e,ProcessId:t,Start:n,End:r,Line:i,RequestedValue:o,InjectedValue:a,MaterialId:s})=>{const l=new Ye,c=[{name:"WireAdditionId",value:e},{name:"ProcessId",value:t},{name:"Start",value:n},{name:"End",value:r},{name:"Line",value:i},{name:"RequestedValue",value:o},{name:"InjectedValue",value:a},{name:"MaterialId",value:s},{name:"IsManual",value:!0}];return await l.callV2("[EAF].[UpsertWireAddition]",c)},zSi=async({HeatingId:e,ProcessId:t,Start:n,End:r,MWH:i})=>{const o=new Ye,a=[{name:"HeatingId",value:e},{name:"ProcessId",value:t},{name:"Start",value:n},{name:"End",value:r},{name:"MWH",value:i},{name:"IsHeatingManual",value:!0}];return await o.callV2("[EAF].[UpsertHeating]",a)},EKe=async({PourbackId:e,HeatId:t,RemainingWeight:n,DestinationProcessId:r,ChargedTime:i,ChargedWeight:o,Comments:a})=>{const s=new Ye,l=[{name:"PourbackId",value:e},{name:"HeatId",value:t},{name:"RemainingWeight",value:n},{name:"DestinationProcessId",value:r},{name:"ChargedTime",value:i},{name:"ChargedWeight",value:o},{name:"Comments",value:a}];return await s.callV2("[MS].[UpsertPourback]",l)},TSi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadEAFProbesFromPLC]",n)},ESi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadEAFChargesFromPLC]",n)},RSi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadAdditionsFromHMI]",n)},ISi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadEAFWireAdditionsFromPLC]",n)},PSi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadEAFHeatingsFromPLC]",n)},DSi=async({ProcessId:e})=>{const t=new Ye,n=[{name:"ProcessId",value:e}];return await t.callV2("[SWV].[ReadEAFProcessPhasesFromPLC]",n)},kSi=async({ProbeId:e})=>{const t=new Ye,n=[{name:"ProbeId",value:e}];return await t.callV2("[EAF].[DeleteProbe]",n)},LSi=async({ChargeId:e})=>{const t=new Ye,n=[{name:"ChargeId",value:e}];return await t.callV2("[EAF].[DeleteCharge]",n)},_Si=async({AdditionId:e})=>{const t=new Ye,n=[{name:"AdditionId",value:e}];return await t.callV2("[EAF].[DeleteAddition]",n)},NSi=async({WireAdditionId:e})=>{const t=new Ye,n=[{name:"WireAdditionId",value:e}];return await t.callV2("[EAF].[DeleteWireAddition]",n)},FSi=async({HeatingId:e})=>{const t=new Ye,n=[{name:"HeatingId",value:e}];return await t.callV2("[EAF].[DeleteHeating]",n)},WSi=async({ElectrodeEventId:e})=>{const t=new Ye,n=[{name:"ElectrodeEventId",value:e}];return await t.callV2("[EAF].[DeleteElectrodeEvent]",n)},qSi=async({PourbackId:e})=>{const t=new Ye,n=[{name:"PourbackId",value:e}];return await t.callV2("[MS].[DeletePourbackCharge]",n)},BSi=async({ProcessId:e=null})=>{const n=await new Ye().callV2("[MS].[GetPourbackCharges]",[{name:"ProcessId",value:e}]);if(n.ok){const r=n.data;return r.tables[0].rows.map(i=>{i.SourceTime=gu.utc(i.SourceTime).toDate(),i.ChargedTime=i.ChargedTime?gu.utc(i.ChargedTime).toDate():null}),{ok:!0,data:r}}else return{ok:!1,message:n.message}},jSi=async()=>{const e=new Ye,t=[];return await e.callV2("[SWV].[GetLastestNProcesses]",t)},HSi=async e=>{const t=new Ye,n=[{name:"SearchTerm",value:e},{name:"MaxResults",value:100}];return await t.callV2("[SWV].[SearchProcesses]",n)},VSi=async({AssetId:e,ShiftId:t})=>{const n=new Ye,r=[{name:"AssetId",value:e},{name:"ShiftId",value:t}],i=await n.callV2("[DEL].[GetUnjustifiedDelaysByAsset]",r);return i.ok&&i.data.tables[0].rows.map(o=>{o.Start=gu.utc(o.Start).toDate(),o.End=o.End?gu.utc(o.End).toDate():null}),i},GSi={phaseEvents:null},KX=Ni({name:"__",initialState:GSi,reducers:{setPhaseEvents(e,{payload:t}){e.phaseEvents=t}}}),nzt=b.createContext({state:KX.getInitialState(),actions:KX.actions}),rzt=()=>b.useContext(nzt),$Si=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:KX.getInitialState(),reducers:KX.caseReducers});return f.jsx(nzt.Provider,{value:{state:t,actions:n},children:e})};var f5={},RKe;function USi(){if(RKe)return f5;RKe=1;var e=ri(),t=ii();Object.defineProperty(f5,"__esModule",{value:!0}),f5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");return f5.default=i,f5}var XSi=USi();const YSi=qn(XSi);var g5={},IKe;function KSi(){if(IKe)return g5;IKe=1;var e=ri(),t=ii();Object.defineProperty(g5,"__esModule",{value:!0}),g5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank");return g5.default=i,g5}var QSi=KSi();const ZSi=qn(QSi);var m5={},PKe;function JSi(){if(PKe)return m5;PKe=1;var e=ri(),t=ii();Object.defineProperty(m5,"__esModule",{value:!0}),m5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"}),"Comment");return m5.default=i,m5}var eAi=JSi();const tAi=qn(eAi);var v5={},DKe;function nAi(){if(DKe)return v5;DKe=1;var e=ri(),t=ii();Object.defineProperty(v5,"__esModule",{value:!0}),v5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");return v5.default=i,v5}var rAi=nAi();const lT=qn(rAi);var b5={},kKe;function iAi(){if(kKe)return b5;kKe=1;var e=ri(),t=ii();Object.defineProperty(b5,"__esModule",{value:!0}),b5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"}),"LinkOff");return b5.default=i,b5}var oAi=iAi();const cT=qn(oAi);var y5={},LKe;function aAi(){if(LKe)return y5;LKe=1;var e=ri(),t=ii();Object.defineProperty(y5,"__esModule",{value:!0}),y5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"List");return y5.default=i,y5}var sAi=aAi();const ute=qn(sAi);var i$={exports:{}};/*! @preserve
 * numeral.js
 * version : 2.0.6
 * author : Adam Draper
 * license : MIT
 * http://adamwdraper.github.com/Numeral-js/
 */var lAi=i$.exports,_Ke;function cAi(){return _Ke||(_Ke=1,(function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(lAi,function(){var t,n,r="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function l(c,u){this._input=c,this._value=u}return t=function(c){var u,d,p,h;if(t.isNumeral(c))u=c.value();else if(c===0||typeof c>"u")u=0;else if(c===null||n.isNaN(c))u=null;else if(typeof c=="string")if(s.zeroFormat&&c===s.zeroFormat)u=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)u=null;else{for(d in i)if(h=typeof i[d].regexps.unformat=="function"?i[d].regexps.unformat():i[d].regexps.unformat,h&&c.match(h)){p=i[d].unformat;break}p=p||t._.stringToNumber,u=p(c)}else u=Number(c)||null;return new l(c,u)},t.version=r,t.isNumeral=function(c){return c instanceof l},t._=n={numberToFormat:function(c,u,d){var p=o[t.options.currentLocale],h=!1,g=!1,m=0,v="",y=1e12,M=1e9,C=1e6,x=1e3,w="",S=!1,A,z,O,T,I,P,N;if(c=c||0,z=Math.abs(c),t._.includes(u,"(")?(h=!0,u=u.replace(/[\(|\)]/g,"")):(t._.includes(u,"+")||t._.includes(u,"-"))&&(I=t._.includes(u,"+")?u.indexOf("+"):c<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),t._.includes(u,"a")&&(A=u.match(/a(k|m|b|t)?/),A=A?A[1]:!1,t._.includes(u," a")&&(v=" "),u=u.replace(new RegExp(v+"a[kmbt]?"),""),z>=y&&!A||A==="t"?(v+=p.abbreviations.trillion,c=c/y):z<y&&z>=M&&!A||A==="b"?(v+=p.abbreviations.billion,c=c/M):z<M&&z>=C&&!A||A==="m"?(v+=p.abbreviations.million,c=c/C):(z<C&&z>=x&&!A||A==="k")&&(v+=p.abbreviations.thousand,c=c/x)),t._.includes(u,"[.]")&&(g=!0,u=u.replace("[.]",".")),O=c.toString().split(".")[0],T=u.split(".")[1],P=u.indexOf(","),m=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,T?(t._.includes(T,"[")?(T=T.replace("]",""),T=T.split("["),w=t._.toFixed(c,T[0].length+T[1].length,d,T[1].length)):w=t._.toFixed(c,T.length,d),O=w.split(".")[0],t._.includes(w,".")?w=p.delimiters.decimal+w.split(".")[1]:w="",g&&Number(w.slice(1))===0&&(w="")):O=t._.toFixed(c,0,d),v&&!A&&Number(O)>=1e3&&v!==p.abbreviations.trillion)switch(O=String(Number(O)/1e3),v){case p.abbreviations.thousand:v=p.abbreviations.million;break;case p.abbreviations.million:v=p.abbreviations.billion;break;case p.abbreviations.billion:v=p.abbreviations.trillion;break}if(t._.includes(O,"-")&&(O=O.slice(1),S=!0),O.length<m)for(var F=m-O.length;F>0;F--)O="0"+O;return P>-1&&(O=O.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),u.indexOf(".")===0&&(O=""),N=O+w+(v||""),h?N=(h&&S?"(":"")+N+(h&&S?")":""):I>=0?N=I===0?(S?"-":"+")+N:N+(S?"-":"+"):S&&(N="-"+N),N},stringToNumber:function(c){var u=o[s.currentLocale],d=c,p={thousand:3,million:6,billion:9,trillion:12},h,g,m;if(s.zeroFormat&&c===s.zeroFormat)g=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)g=null;else{g=1,u.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(h in p)if(m=new RegExp("[^a-zA-Z]"+u.abbreviations[h]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),d.match(m)){g*=Math.pow(10,p[h]);break}g*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),g*=Number(c)}return g},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,u){return c.indexOf(u)!==-1},insert:function(c,u,d){return c.slice(0,d)+u+c.slice(d)},reduce:function(c,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var d=Object(c),p=d.length>>>0,h=0,g;if(arguments.length===3)g=arguments[2];else{for(;h<p&&!(h in d);)h++;if(h>=p)throw new TypeError("Reduce of empty array with no initial value");g=d[h++]}for(;h<p;h++)h in d&&(g=u(g,d[h],h,d));return g},multiplier:function(c){var u=c.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(u,d){var p=n.multiplier(d);return u>p?u:p},1)},toFixed:function(c,u,d,p){var h=c.toString().split("."),g=u-(p||0),m,v,y,M;return h.length===2?m=Math.min(Math.max(h[1].length,g),u):m=g,y=Math.pow(10,m),M=(d(c+"e+"+m)/y).toFixed(m),p>u-m&&(v=new RegExp("\\.?0{1,"+(p-(u-m))+"}$"),M=M.replace(v,"")),M}},t.options=s,t.formats=i,t.locales=o,t.locale=function(c){return c&&(s.currentLocale=c.toLowerCase()),s.currentLocale},t.localeData=function(c){if(!c)return o[s.currentLocale];if(c=c.toLowerCase(),!o[c])throw new Error("Unknown locale : "+c);return o[c]},t.reset=function(){for(var c in a)s[c]=a[c]},t.zeroFormat=function(c){s.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){s.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){s.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,u,d){if(u=u.toLowerCase(),this[c+"s"][u])throw new TypeError(u+" "+c+" already registered.");return this[c+"s"][u]=d,d},t.validate=function(c,u){var d,p,h,g,m,v,y,M;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{y=t.localeData(u)}catch{y=t.localeData(t.locale())}return h=y.currency.symbol,m=y.abbreviations,d=y.delimiters.decimal,y.delimiters.thousands==="."?p="\\.":p=y.delimiters.thousands,M=c.match(/^[^\d]+/),M!==null&&(c=c.substr(1),M[0]!==h)||(M=c.match(/[^\d]+$/),M!==null&&(c=c.slice(0,-1),M[0]!==m.thousand&&M[0]!==m.million&&M[0]!==m.billion&&M[0]!==m.trillion))?!1:(v=new RegExp(p+"{2}"),c.match(/[^\d.,]/g)?!1:(g=c.split(d),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(v):g[0].length===1?!!g[0].match(/^\d+$/)&&!g[0].match(v)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(v)&&!!g[1].match(/^\d+$/)))},t.fn=l.prototype={clone:function(){return t(this)},format:function(c,u){var d=this._value,p=c||s.defaultFormat,h,g,m;if(u=u||Math.round,d===0&&s.zeroFormat!==null)g=s.zeroFormat;else if(d===null&&s.nullFormat!==null)g=s.nullFormat;else{for(h in i)if(p.match(i[h].regexps.format)){m=i[h].format;break}m=m||t._.numberToFormat,g=m(d,p,u)}return g},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var u=n.correctionFactor.call(null,this._value,c);function d(p,h,g,m){return p+Math.round(u*h)}return this._value=n.reduce([this._value,c],d,0)/u,this},subtract:function(c){var u=n.correctionFactor.call(null,this._value,c);function d(p,h,g,m){return p-Math.round(u*h)}return this._value=n.reduce([c],d,Math.round(this._value*u))/u,this},multiply:function(c){function u(d,p,h,g){var m=n.correctionFactor(d,p);return Math.round(d*m)*Math.round(p*m)/Math.round(m*m)}return this._value=n.reduce([this._value,c],u,1),this},divide:function(c){function u(d,p,h,g){var m=n.correctionFactor(d,p);return Math.round(d*m)/Math.round(p*m)}return this._value=n.reduce([this._value,c],u),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var u=c%10;return~~(c%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),(function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,u,d){var p=t._.includes(u," BPS")?" ":"",h;return c=c*1e4,u=u.replace(/\s?BPS/,""),h=t._.numberToFormat(c,u,d),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"BPS"),h=h.join("")):h=h+p+"BPS",h},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})})(),(function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},d=c.suffixes.concat(u.suffixes.filter(function(h){return c.suffixes.indexOf(h)<0})),p=d.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(h,g,m){var v,y=t._.includes(g,"ib")?u:c,M=t._.includes(g," b")||t._.includes(g," ib")?" ":"",C,x,w;for(g=g.replace(/\s?i?b/,""),C=0;C<=y.suffixes.length;C++)if(x=Math.pow(y.base,C),w=Math.pow(y.base,C+1),h===null||h===0||h>=x&&h<w){M+=y.suffixes[C],x>0&&(h=h/x);break}return v=t._.numberToFormat(h,g,m),v+M},unformat:function(h){var g=t._.stringToNumber(h),m,v;if(g){for(m=c.suffixes.length-1;m>=0;m--){if(t._.includes(h,c.suffixes[m])){v=Math.pow(c.base,m);break}if(t._.includes(h,u.suffixes[m])){v=Math.pow(u.base,m);break}}g*=v||1}return g}})})(),(function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,u,d){var p=t.locales[t.options.currentLocale],h={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},g,m,v;for(u=u.replace(/\s?\$\s?/,""),g=t._.numberToFormat(c,u,d),c>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),v=0;v<h.before.length;v++)switch(m=h.before[v],m){case"$":g=t._.insert(g,p.currency.symbol,v);break;case" ":g=t._.insert(g," ",v+p.currency.symbol.length-1);break}for(v=h.after.length-1;v>=0;v--)switch(m=h.after[v],m){case"$":g=v===h.after.length-1?g+p.currency.symbol:t._.insert(g,p.currency.symbol,-(h.after.length-(1+v)));break;case" ":g=v===h.after.length-1?g+" ":t._.insert(g," ",-(h.after.length-(1+v)+p.currency.symbol.length-1));break}return g}})})(),(function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,u,d){var p,h=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",g=h.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(g[0]),u,d),p+"e"+g[1]},unformat:function(c){var u=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),d=Number(u[0]),p=Number(u[1]);p=t._.includes(c,"e-")?p*=-1:p;function h(g,m,v,y){var M=t._.correctionFactor(g,m),C=g*M*(m*M)/(M*M);return C}return t._.reduce([d,Math.pow(10,p)],h,1)}})})(),(function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,u,d){var p=t.locales[t.options.currentLocale],h,g=t._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),g+=p.ordinal(c),h=t._.numberToFormat(c,u,d),h+g}})})(),(function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,u,d){var p=t._.includes(u," %")?" ":"",h;return t.options.scalePercentBy100&&(c=c*100),u=u.replace(/\s?\%/,""),h=t._.numberToFormat(c,u,d),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"%"),h=h.join("")):h=h+p+"%",h},unformat:function(c){var u=t._.stringToNumber(c);return t.options.scalePercentBy100?u*.01:u}})})(),(function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,u,d){var p=Math.floor(c/60/60),h=Math.floor((c-p*60*60)/60),g=Math.round(c-p*60*60-h*60);return p+":"+(h<10?"0"+h:h)+":"+(g<10?"0"+g:g)},unformat:function(c){var u=c.split(":"),d=0;return u.length===3?(d=d+Number(u[0])*60*60,d=d+Number(u[1])*60,d=d+Number(u[2])):u.length===2&&(d=d+Number(u[0])*60,d=d+Number(u[1])),Number(d)}})})(),t})})(i$)),i$.exports}var uAi=cAi();const izt=qn(uAi),dte=Rt(e=>({contextMenu:{fontSize:"14px",backgroundColor:"#fff",borderRadius:"2px",padding:"5px 0 5px 0",width:"170px",height:"auto",margin:"0",position:"absolute",listStyle:"none",boxShadow:"0 0 20px 0 #ccc"},fixedBottom:{position:"fixed",bottom:0,right:0,padding:"0px 1.5rem",textAlign:"right"},labelNormalClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",border:"none",backgroundColor:"#ced2cc",borderTopLeftRadius:"0.25rem !important",borderBottomLeftRadius:"0.25rem !important"},labelNormalButtonClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",border:"none",backgroundColor:"#ced2cc",cursor:"pointer"},labelCheckboxClass:{fontSize:"0.75rem",padding:"0.275rem 0.50rem",border:"none",backgroundColor:"#ced2cc",borderTopLeftRadius:"0.25rem !important",borderBottomLeftRadius:"0.25rem !important"},labelScheduledClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#B1C381 !important",border:"none",borderTopLeftRadius:"0!important",borderBottomLeftRadius:"0!important"},labelMeltingClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#AFC8AD !important",border:"none"},labelTappedClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#F2D3A2 !important",border:"none"},labelOpenedClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#BEADFA !important",border:"none"},labelClosedClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#FF8080 !important",border:"none"},labelReturnedClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#82A0D8 !important",border:"none"},labelFinishedClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",backgroundColor:"#7C9D96 !important",border:"none"},inputHeatNavigator:{textAlign:"center",fontSize:"22px",maxWidth:"130px"},inputShiftNavigator:{cursor:"pointer",textDecoration:"underline",textDecorationColor:"blue",color:"blue"},inputNormalClass:{fontSize:"0.60rem",borderTopLeftRadius:"0!important",borderBottomLeftRadius:"0!important"},inputForTundishClass:{fontSize:"0.60rem",borderTopLeftRadius:"0!important",borderBottomLeftRadius:"0!important",backgroundColor:"green"},styleLabel:{width:"150px",maxWidth:"150px"},normalItem:{padding:"4px 0px"},groupCheckBoxItem:{backgroundColor:"transparent !important",position:"relative",flex:"1 1 auto",width:"1%",minWidth:"0",marginBottom:"0"},checkBoxItem:{display:"flex",justifyContent:"center",alignItems:"center",borderTopRightRadius:"0.25rem !important",borderBottomRightRadius:"0.25rem !important",borderTopLeftRadius:"0!important",borderBottomLeftRadius:"0!important",backgroundColor:"#fff !important",margin:"auto",padding:" 0",border:"1px solid #ced4da"},simpleCellHeader:{padding:"0.275rem 0.45rem",fontSize:"0.75rem",backgroundColor:"#ced2cc   !important",border:"1px solid #ced4da",color:"#495057",textAlign:"center"},simpleCellText:{padding:"0.275rem 0.45rem",fontSize:"0.75rem",borderRadius:"0px",height:"35px"},simpleCellCheckBox:{border:"1px solid #ced4da",textAlign:"center",margin:"auto",height:"2.7rem"},simpleCellNumeric:{fontSize:"0.75rem",borderRadius:"0px",padding:"0px 0.6rem",height:"35px",minWidth:"30px",textAlign:"right"},simpleButton:{borderRadius:"0.25rem",backgroundColor:"white",width:" 25px",fontSize:"14px",minWidth:" 25px",height:"25px",cursor:"pointer !important",border:"1px solid black","&:hover":{backgroundColor:"white"},margin:"0px 2px",color:"black"},manualButton:{backgroundColor:"#3f51b5","&:hover":{backgroundColor:"#3f51b5"},color:"white"},automaticButton:{backgroundColor:"#008A00","&:hover":{backgroundColor:"#008A00"},color:"white"},historicButton:{backgroundColor:"blue",width:" 30px",height:"30px",color:"white"},lockButton:{borderRadius:"0px",backgroundColor:"#efefef",width:" 20px",height:"20px",cursor:"pointer !important",border:"1px solid #000","&:hover":{backgroundColor:"#efefef"},margin:"0px 2px"},deleteButton:{borderRadius:"0px",width:" 20px",height:"20px",cursor:"pointer !important","&:hover":{backgroundColor:"#efefef"},color:"red",margin:"0px 2px"},dateTimePicker:{"& *":{font:"none",fontSize:"0.65rem !important"},"& .MuiInputBase-input":{padding:"0 !important",paddingLeft:"10px !important",width:"187px!important ",border:0}},dateTimePickerX:{"& .MuiInputBase-root":{height:"35px",width:"100%","& .MuiInputBase-input":{padding:"6px 10px",font:"none",fontSize:"0.65rem !important",borderRadius:"4px"}}},dateToTableTimePicker:{"& *":{font:"none",fontSize:"0.65rem !important"},"& .MuiInputBase-input":{padding:"0 !important",paddingLeft:"10px !important",width:"110px!important ",border:0},"& .MuiOutlinedInput-root":{borderRadius:0,height:35}},iconButton:{color:"white",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"14px",borderRadius:"0.25rem"},customInput:{width:"100%","& .MuiInputBase-input":{fontSize:"1.2rem"}},labelNormalForDatesClass:{fontSize:"0.75rem",padding:"0.275rem 0.45rem",border:"none",backgroundColor:"#ced2cc",borderTopLeftRadius:"0.25rem !important",borderBottomLeftRadius:"0.25rem !important",width:"100px",maxWidth:"120px"},listbox:{width:115,margin:0,padding:0,position:"absolute",listStyle:"none",backgroundColor:e.palette.background.paper,overflow:"auto",maxHeight:200,border:"1px solid rgba(0,0,0,.25)",'& li[data-focus="true"]':{backgroundColor:"#4a8df6",color:"white",cursor:"pointer"},"& li:active":{backgroundColor:"#2977f5",color:"white"}}})),dAi=e=>e.data[e.isEnabled]===!0?f.jsx(f.Fragment,{children:f.jsx(azt,{...e})}):f.jsx(f.Fragment,{children:f.jsx(szt,{...e})}),ozt=e=>e.value===!0?f.jsx(f.Fragment,{children:f.jsx(azt,{...e})}):f.jsx(f.Fragment,{children:f.jsx(szt,{...e})}),pAi=e=>{function t(){(async()=>await e.clicked(e.data))()}return f.jsx(f.Fragment,{children:f.jsx(yn,{"aria-label":"edit",size:"small",title:"Edit",color:"primary",style:{cursor:"pointer"},onClick:t,children:f.jsx(No,{fontSize:"inherit",style:{cursor:"pointer"}})})})},azt=e=>{function t(){(async()=>e.clicked!==void 0&&await e.clicked(e.data))()}return f.jsx(f.Fragment,{children:f.jsx(yn,{"aria-label":"delete",size:"small",title:"Delete",style:{cursor:"pointer"},onClick:t,children:f.jsx(Mo,{fontSize:"inherit",color:"secondary",style:{cursor:"pointer"}})})})},szt=e=>{function t(){e.clicked!==void 0&&e.clicked(e.data)}return f.jsx(f.Fragment,{children:f.jsx(yn,{"aria-label":"active",title:"Active",size:"small",style:{cursor:"pointer"},onClick:t,children:f.jsx(jxe,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})})})},hAi=e=>{function t(){(async()=>await e.clicked(e.data))()}return f.jsx(f.Fragment,{children:f.jsx(yn,{"aria-label":"link",size:"small",title:"Link",color:"primary",style:{cursor:"pointer"},onClick:t,children:f.jsx(lT,{fontSize:"inherit",style:{cursor:"pointer"}})})})},QX=e=>e.value===!0?f.jsx(f.Fragment,{children:f.jsx(YSi,{fontSize:"small",color:"primary"})}):f.jsx(f.Fragment,{children:f.jsx(ZSi,{fontSize:"small",color:"primary"})}),pte=e=>{const t=e.data.IsManual||e.data.IsProcessManual,n=dte();return f.jsx(f.Fragment,{children:t?f.jsx("div",{children:f.jsx(Fe,{"aria-label":"Manual",title:"Manual",variant:"text",size:"small",className:`${n.simpleButton} ${n.manualButton}`,style:{cursor:"auto"},children:"M"})}):f.jsx(f.Fragment,{})})},fAi=({comments:e,onClick:t})=>{dte();const n=e;return f.jsx(f.Fragment,{children:f.jsx(yn,{"aria-label":"comments",size:"small",title:"See comments",color:"primary",style:{cursor:"pointer"},disabled:!n,onClick:()=>t(),children:f.jsx(tAi,{fontSize:"inherit",style:{cursor:"pointer"}})})})},gAi=e=>{function t(){(async()=>await e.clicked(e.data))()}return f.jsx(f.Fragment,{children:f.jsx(yn,{"aria-label":"unlink",size:"small",title:"Unlink",color:"primary",style:{cursor:"pointer"},onClick:t,children:f.jsx(cT,{fontSize:"inherit",style:{cursor:"pointer"}})})})},TO=e=>{if(e.value===null||e.value===void 0)return f.jsx(f.Fragment,{});const t=izt(e.value),n=e.numericFormat===""?"0.00":e.numericFormat,r=Number.isNaN(t.value)?"NaN":t.format(n);return f.jsx("span",{children:r})},zd=e=>{if(e.value===null||e.value===void 0)return f.jsx(f.Fragment,{});if(e.link)return f.jsx(f.Fragment,{children:f.jsx("a",{href:e.link,target:"_self",rel:"noopener noreferrer",children:e.value})});const t=e.data[e.linkProperty??""]??"";return f.jsx(f.Fragment,{children:f.jsx("a",{href:t,target:"_self",rel:"noopener noreferrer",children:e.value})})},ku=({OnEdit:e,OnSend:t})=>({columnDefaults:{minWidth:20,flex:1,filter:!0,floatingFilter:!0,sortable:!0,resizable:!0,editable:!1,suppressHeaderMenuButton:!0},columnSimpleDefaults:{minWidth:20,flex:1,filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0},columnTypes:{nonEditableColumn:{editable:!1},nonSorteable:{sortable:!1},nonFilterable:{filter:!1},numericWidth:{width:80},centerAligned:{headerClass:"ag-center-aligned-header",cellClass:"ag-center-aligned-cell"},editButton:{field:"Edit",cellRenderer:pAi,cellRendererParams:{clicked:a=>{e&&e(a)}},cellClass:"ag-button-cell"},statusButton:{field:"Enabled",cellRenderer:dAi,cellRendererParams:{isEnabled:"Enabled",clicked:a=>{alert(`${a.Decimals} was clicked`)}},cellClass:"ag-button-cell"},IsActive:{field:"IsActive",cellRenderer:QX,cellRendererParams:{isEnabled:"IsActive"},cellClass:"ag-button-cell"},booleanCheckbox:{field:"Boolean",cellRenderer:QX,cellRendererParams:{checked:!0},cellClass:"ag-button-cell"}},columnGenericDefaults:{minWidth:20,filter:!0,floatingFilter:!1,sortable:!0,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),M1=({value:e,onChange:t,label:n})=>f.jsx(je,{fullWidth:!0,variant:"outlined",placeholder:n,value:e,onChange:r=>t(r.target.value),size:"small",InputProps:{startAdornment:f.jsx(nc,{position:"start",children:f.jsx(m1n,{})})}}),Pd=Rt(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-cell":{color:"black"},"& .ag-header-group-cell-label ":{textAlign:"center !important",justifyContent:"center",fontSize:".8rem !important",color:"black"},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center",fontSize:".8rem !important",padding:2},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-header-cell, .ag-header-cell-group-cell, .ag-header-group-text":{padding:2,color:"black"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600},"& .first-column-cell":{fontSize:".8rem !important",fontWeight:"bold",color:"black"},"& .ag-status-bar":{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,padding:e.spacing(.5,1),fontSize:13,fontWeight:"bold",border:"none"}},btnModal:{display:"flex",justifyContent:"flex-end"},gridContainer:{height:"61vh",border:"4px solid #ccc",borderRadius:10,padding:10,margin:"20px 10px"},borderAgGridTable:{border:"1px solid #ccc",borderRadius:"4px",padding:"px "}})),mAi=Rt(e=>({root:{"& .ag-icon-menu":{display:"none"},"& .ag-header-group-cell":{padding:"0px !important",color:"#fff !important"},"& .ag-header-group-cell-label":{margin:"auto !important"},"& .ag-header":{backgroundColor:"#479dc4 !important"},"& .ag-header-cell":{padding:"0px !important",color:"#fff !important"},"& .ag-cell-label-container":{padding:"0px !important"},"& .ag-header-cell-text":{margin:"auto !important"},"& .ag-cell":{fontSize:"12px !important",padding:"8px !important"},"& .error-limit":{color:"#fff",backgroundColor:"#f07171",fontWeight:600},"& .stripe-header ":{color:"#fff",background:"repeating-linear-gradient(45deg,#65c2ec,#65c2ec 5px,#479dc4 5px,#479dc4 10px)"},"& .ag-drag-handle":{},"& .ag-right-aligned-cell":{},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .custom-tooltip":{width:"150px",minHeight:"70px",border:"1px solid cornflowerblue",overflow:"hidden"},"& .custom-tooltip p":{margin:"5px",whiteSpace:"pre-line",wordWrap:"break-word"},"& .custom-tooltip span:first-of-type":{fontWeight:"bold"}},btnModal:{display:"flex",justifyContent:"flex-end"},footerTitle:{width:220,padding:"8px 0",textAlign:"center",backgroundColor:"#eee",borderBottom:"solid 1px #babfc7",borderLeft:"solid 1px #babfc7"},footerContainer:{backgroundColor:"#fff",height:"45px"},footerItem:{width:70,padding:"8px 0",textAlign:"center",backgroundColor:"#eee",borderBottom:"solid 1px #babfc7"},footerTextItem:{fontSize:12,verticalAlign:"middle"},footerTextTitle:{fontSize:12,verticalAlign:"middle",fontWeight:700}})),Ea=({checkboxValue:e,label:t,className:n,disabled:r=!1,onCheckboxChange:i,onFocus:o,onBlur:a})=>f.jsx("div",{onClick:()=>i(!e),style:{cursor:"pointer"},children:f.jsx(je,{fullWidth:!0,variant:"outlined",label:t,value:"",disabled:!0,onFocus:o,onBlur:a,className:n,InputLabelProps:{style:{color:r?"#a4a4a4":"black",fontWeight:r?500:400}},InputProps:{endAdornment:f.jsx(nc,{position:"end",children:f.jsx(Qr,{checked:e,onChange:s=>i(s.target.checked),color:"primary",disabled:r,size:"small",style:{cursor:"pointer"}})})}})}),iu=Rt(e=>Mp({checkbox:{userSelect:"none","& .MuiOutlinedInput-root":{height:"51px"},margin:"8px 0px"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},colorPicker:{border:"1px solid #c4c4c4",borderRadius:"4px",padding:"3.5px"}})),vAi=({show:e,onHide:t,refreshData:n,phaseEvent:r})=>{const i=iu(),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState(""),{register:d,control:p,handleSubmit:h,reset:g,formState:{errors:m}}=Gn({defaultValues:{PhaseEventTypeId:0,EventDescription:"",IsActive:!0}}),v=(M,C)=>{C!=="clickaway"&&l(!1)},y=async M=>{a(!0);const C=await mSi(M);C.ok?(a(!1),l(!0),t(),n()):u(C.message),a(!1)};return b.useEffect(()=>{e&&g(r||{PhaseEventTypeId:0,EventDescription:"",IsActive:!0})},[e,r,g]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:`${r?"EDIT":"NEW"} PHASE EVENT`,children:f.jsxs("form",{onSubmit:h(y),children:[f.jsx(We.Content,{dividers:!0,className:i.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...d("EventDescription",{required:!0}),label:"Event Description",variant:"outlined",error:!!m.EventDescription,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:p,render:({field:M})=>f.jsx(Ea,{checkboxValue:!!M.value,onCheckboxChange:M.onChange,label:"Enabled",className:i.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:o&&f.jsx(Kt,{size:"1rem"}),disabled:o,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:s,autoHideDuration:2500,onClose:v,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:v,children:r?"The element was updated successfully":"The element was created successfully"})}),f.jsx(Mt,{error:c,onHide:()=>u("")})]})},bAi=({})=>{const{state:e}=rzt();return{rows:e.phaseEvents?.map(r=>({...r}))||[],columns:[{field:"EventDescription",headerName:"Event Description",minWidth:63,flex:4,wrapText:!0,autoHeight:!0},{field:"IsActive",headerName:"Enabled",cellRenderer:r=>f.jsx(Qr,{checked:r.value,disabled:!0}),flex:4,minWidth:86},{field:"Actions",headerName:"",type:["editButton"],flex:1,minWidth:50}]}},yAi=({getPhaseEventsFromAPI:e,isLoading:t})=>{const n=Pd(),[r,i]=b.useState(!1),[o,a]=b.useState(!1),[s,l]=b.useState(null),[c,u]=b.useState(""),{rows:d,columns:p}=bAi({}),{columnTypes:h}=ku({OnEdit:g=>{a(!o),l(g)}});return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Phase Events"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:c,onChange:g=>u(g),label:"Search phase events"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:n.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:d||[],columnDefs:p,getRowId:g=>g.data.PhaseEventTypeId,columnTypes:h,suppressContextMenu:!0,onRowDoubleClicked:g=>{l(g.data),a(!0)},rowSelection:"single",quickFilterText:c})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>i(!r),children:"NEW PHASE EVENT"})})]})]}),f.jsx(vAi,{show:r||o,onHide:()=>{a(!1),i(!1),l(null),e()},refreshData:e,phaseEvent:s})]})},MAi=e=>{const{state:t,actions:n}=rzt(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await gSi();l.ok?(n.setPhaseEvents(l.data.tables[0].rows),i(!1)):a(l.message)};return b.useEffect(()=>{s()},[]),t.phaseEvents?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(yAi,{isLoading:r,getPhaseEventsFromAPI:s})})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},CAi=()=>f.jsx($Si,{children:f.jsx(MAi,{})}),xAi={showLoading:!1,alertConfigurations:[],selectedAlertConfiguration:null,error:void 0,success:void 0},ZX=Ni({name:"__",initialState:xAi,reducers:{setShowLoading(e,{payload:t}){e.showLoading=t},setAlertConfigurations(e,{payload:t}){e.alertConfigurations=t},setSelectedAlertConfiguration(e,{payload:t}){e.selectedAlertConfiguration=t},setError(e,{payload:t}){e.error=t},setSuccess(e,{payload:t}){e.success=t}}}),wAi=b.createContext({state:ZX.getInitialState(),actions:ZX.actions}),SAi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:ZX.getInitialState(),reducers:ZX.caseReducers});return f.jsx(wAi.Provider,{value:{state:t,actions:n},children:e})},AAi=e=>f.jsx(SAi,{children:f.jsx("div",{})}),vl=Rn(),OAi=async e=>{try{const t=[];t.push({name:"@StartDate",value:JSON.parse(JSON.stringify(e.startDate))}),t.push({name:"@EndDate",value:JSON.parse(JSON.stringify(e.endDate))}),t.push({name:"@BilletSizeId",value:e.billetSizeId===0?null:e.billetSizeId}),t.push({name:"@GradeId",value:e.gradeId===0?null:e.gradeId}),t.push({name:"@ShiftId",value:e.shiftId===0?null:e.shiftId}),t.push({name:"@ToJSON",value:!1});const n=new Ye,r={showAllSheets:!0,sheets:[{order:1,resultSetIndex:0,sheetName:"Caster Production",showAllColumns:!1,columns:[{columnName:"HeatName.Value",caption:"Heat",order:1},{columnName:"Grade.Value",caption:"Grade",order:2},{columnName:"BilletSizeName",caption:"Billet Size",order:3},{columnName:"Open.Free.Value",caption:"Open Free",order:4},{columnName:"Open.Burn.Value",caption:"Open Burn",order:5},{columnName:"NozzleSize",caption:"Nozzle",order:6},{columnName:"Trim.Temperature",caption:"Ladle Trim Temp",order:7},{columnName:"Trim.SuperHeat.Value",caption:"Ladle Trim SHeat",order:8},{columnName:"Tundish.Number",caption:"Tundish Num",order:9},{columnName:"Tundish.Sequence",caption:"Tundish Seq",order:10},{columnName:"Temperatures.Liquidus",caption:"Temperatures Liquidus",order:11},{columnName:"Temperatures.Minimum",caption:"Temperatures Minimum",order:12},{columnName:"Temperatures.Maximum",caption:"Temperatures Maximum",order:13},{columnName:"Temperatures.MinSH.Value",caption:"Temperatures MinSH",order:14},{columnName:"LadleOpen",caption:"Times Open",order:15},{columnName:"LadleClose",caption:"Times Close",order:16},{columnName:"Duration.Value",caption:"Times Duration",order:17},{columnName:"AvgSpeed.S1.Value",caption:"Avg Speed S1",order:18},{columnName:"AvgSpeed.S2.Value",caption:"Avg Speed S2",order:19},{columnName:"AvgSpeed.S3.Value",caption:"Avg Speed S3",order:20},{columnName:"Products.Pieces",caption:"Products Pieces",order:21},{columnName:"Products.Tons",caption:"Products Tons",order:22},{columnName:"Scrap.Pieces",caption:"Scrap Pieces",order:23},{columnName:"Scrap.Length",caption:"Scrap Length",order:24},{columnName:"Comments",caption:"Comments",order:25}]}]};return{ok:!0,data:await n.exportExcel("[CAS].[GetProductionGridJSON]",t,"Caster Production.xlsx",r)}}catch(t){return{ok:!1,message:t.toString()}}},u2e=async e=>{const t=[];t.push({name:"@StartDate",value:JSON.parse(JSON.stringify(e.startDate))}),t.push({name:"@EndDate",value:JSON.parse(JSON.stringify(e.endDate))}),t.push({name:"@BilletSizeId",value:e.billetSizeId===0?null:e.billetSizeId}),t.push({name:"@GradeId",value:e.gradeId===0?null:e.gradeId}),t.push({name:"@ShiftId",value:e.shiftId===0?null:e.shiftId});const r=await new Ye().callV2("[CAS].[GetProductionGrid]",t);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,LadleOpen:i.LadleOpen?vl.utc(i.LadleOpen).toDate():null,LadleClose:i.LadleClose?vl.utc(i.LadleClose).toDate():null}))),r},lzt=async e=>{const t=[];t.push({name:"@StartDate",value:JSON.parse(JSON.stringify(e.startDate))}),t.push({name:"@EndDate",value:JSON.parse(JSON.stringify(e.endDate))}),t.push({name:"@BilletSizeId",value:e.billetSizeId===0?null:e.billetSizeId}),t.push({name:"@GradeId",value:e.gradeId===0?null:e.gradeId}),t.push({name:"@ShiftId",value:e.shiftId===0?null:e.shiftId}),t.push({name:"@IncludeExternalHeats",value:dEn(e.includeExternalHeats)?e.includeExternalHeats:null});const r=await new Ye().callV2("[LAB].[GetMissedChemistriesGrid]",t);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,ResultsTime:i.ResultsTime?vl.utc(i.ResultsTime).toDate():null}))),r},zAi=async e=>{const t=new Ye,n=[];n.push({name:"HeatId",value:e});const r=await t.callV2("[LAB].[GetHeatReport]",n);if(r.ok){if(r.data.tables[0]&&r.data.tables[0].rows[0]){const i=r.data.tables[0].rows[0];i.ProductionDate=i.ProductionDate?vl.utc(i.ProductionDate).toDate():null}r.data.tables[1]&&(r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,Reception:i.Reception?vl.utc(i.Reception).toDate():null})))}return r},TAi=async e=>await new Ye().callV2("[CAS].[GetSectionsPerMoldSize]",[{name:"@MoldSizeId",value:e}]),EAi=async(e,t)=>{const n=[];n.push({name:"@ShiftId",value:e}),n.push({name:"@GetDeleted",value:t});const i=await new Ye().callV2("[CAS].[GetProcessesByShift]",n);return i.ok&&(i.data.tables[0].rows=i.data.tables[0].rows.map(o=>({...o,LadleOpen:o.LadleOpen?vl.utc(o.LadleOpen).toDate():null,LadleClose:o.LadleClose?vl.utc(o.LadleClose).toDate():null}))),i},M3e=async(e,t,n)=>{try{const r=new Ye,i=[];return i.push({name:"ProcessId",value:e}),i.push({name:"Start",value:t===null?null:t.toISOString()}),i.push({name:"End",value:n===null?null:n.toISOString()}),i.push({name:"IsProcessManual",value:!0}),await r.callV2("[CAS].[UpsertProcess]",i)}catch(r){return{ok:!1,message:r.toString()}}},czt=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[CAS].[DeleteProcess]",n)}catch(r){return{ok:!1,message:r.toString()}}},RAi=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[CAS].[UnDeleteProcess]",n)}catch(r){return{ok:!1,message:r.toString()}}},C3e=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[CAS].[UnlinkProcessToHeat]",n)}catch(r){return{ok:!1,message:r.toString()}}},x3e=async(e,t)=>{const n=new Ye,r=[];r.push({name:"ProcessId",value:e}),r.push({name:"HeatId",value:t}),r.push({name:"IsHeatIdManual",value:!0});try{return await n.callV2("[CAS].[ManualLinkProcessToHeat]",r)}catch(i){return{ok:!1,message:i.toString()}}},JX=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"SearchText",value:e}),r.push({name:"LadleOpen",value:t}),await n.callV2("[CAS].[SearchUnlinkedHeats]",r)},uzt=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});const r=await t.callV2("[CAS].[DEGetProcess]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,LadleOpen:i.LadleOpen?vl.utc(i.LadleOpen).toDate():null,LadleClose:i.LadleClose?vl.utc(i.LadleClose).toDate():null,TapTime:i.TapTime?vl.utc(i.TapTime).toDate():null,TrimProbeTime:i.TrimProbeTime?vl.utc(i.TrimProbeTime).toDate():null})),r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,StartTime:i.StartTime?vl.utc(i.StartTime).toDate():null,EndTime:i.EndTime?vl.utc(i.EndTime).toDate():null})),r.data.tables[2].rows=r.data.tables[2].rows.map(i=>({...i,Timestamp:i.Timestamp?vl.utc(i.Timestamp).toDate():null}))),r},IAi=async()=>{const e=new Ye,t=[];return await e.callV2("[CAS].[GetLastestNProcesses]",t)},PAi=async e=>{const t=new Ye,n=[{name:"SearchTerm",value:e},{name:"MaxResults",value:100}];return await t.callV2("[CAS].[SearchProcesses]",n)},DAi=async e=>{const t=new Ye,n=[];n.push({name:"HeatId",value:e});const r=await t.callV2("[LAB].[GetChemistrySampleByHeatId]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,Reception:i.Reception?vl.utc(i.Reception).toDate():null}))),r},dzt=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});const r=await t.callV2("[SWV].[GetStrandSpeedsByProcessId]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,Datetime:i.Datetime?vl.utc(i.Datetime).toDate():null}))),r},pzt=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});const r=await t.callV2("[SWV].[GetMoldLevelByProcessId]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,Datetime:i.Datetime?vl.utc(i.Datetime).toDate():null}))),r},hzt=async(e,t=0)=>{const n=new Ye,r=[];r.push({name:"ProcessId",value:e}),r.push({name:"OffsetMinutes",value:t});const i=await n.callV2("[SWV].[GetBilletTempByProcessId]",r);return i.ok&&(i.data.tables[0].rows=i.data.tables[0].rows.map(o=>({...o,Datetime:o.Datetime?vl.utc(o.Datetime).toDate():null}))),i},d2e=async(e,t)=>{const n=new Ye,r=[];return(!vl.isDate(e)||isNaN(e.getTime()))&&(e=null),(!vl.isDate(t)||isNaN(t.getTime()))&&(t=null),r.push({name:"Start",value:e?e.toISOString():null}),r.push({name:"End",value:t?t.toISOString():null}),await n.callV2("[SWV].[GetGanttData]",r)},fzt=async e=>{const t=new Ye,n=[];return n.push({name:"DelayId",value:e}),await t.callV2("[DEL].[GetDelay]",n)},kAi=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});const r=await t.callV2("[SWV].[GetDeliveryTicket]",n);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,CastDate:i.CastDate?vl.utc(i.CastDate).toDate():null,TapTime:i.TapTime?vl.utc(i.TapTime).toDate():null})),r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,Timestamp:i.Timestamp?vl.utc(i.Timestamp).toDate():null}))),r},LAi=async e=>{const t=new Ye,n=[];return n.push({name:"ProcessId",value:e}),await t.callV2("[CAS].[ReadProductBatches]",n)},gzt=async()=>{const e=new Ye,t=[];return await e.callV2("[CAS].[GetMoldSizes]",t)},_Ai=async e=>{const t=new Ye,n=[];return n.push({name:"@ShiftId",value:e}),await t.callV2("[SWV].[GetFacts]",n)},mzt=async({productBatchId:e,processId:t,length:n,sectionId:r,pieces:i,weight:o,isManualSaved:a,lowWeightConfirmed:s=!1})=>{const l=new Ye,c=[];return e!==null&&e<0&&(e=null),t?(c.push({name:"ProductBatchId",value:e},{name:"ProcessId",value:t},{name:"Length",value:n},{name:"SectionId",value:r},{name:"Pieces",value:i},{name:"Weight",value:o},{name:"isManualSaved",value:a},{name:"LowWeightConfirmed",value:s}),await l.callV2("[CAS].[UpsertProductBatch]",c)):{ok:!1,message:"Process is required to product batch changes."}},vzt=async()=>await new Ye().callV2("[CAS].[DEGetCatalogs]",[]),o$=async(e,t,n)=>{const r=new Ye,i=[];i.push({name:"ProcessId",value:e}),i.push({name:t,value:n}),i.push({name:"IsProcessDataManual",value:!0});try{return await r.callV2("[CAS].[UpdateProcessData]",i)}catch(o){return{ok:!1,message:o.toString()}}},NAi=async(e,t,n,r,i,o)=>{const a=new Ye,s=[];return s.push({name:"PourbackId",value:e}),s.push({name:"HeatId",value:t}),s.push({name:"SourceProcessId",value:n}),s.push({name:"PourbackWeight",value:r}),s.push({name:"PourbackReasonId",value:i}),s.push({name:"SourceTime",value:o}),await a.callV2("[MS].[UpsertPourback]",s)},FAi=async(e,t,n)=>{const r=new Ye,i=[];i.push({name:"ProcessId",value:e}),i.push({name:t,value:n}),i.push({name:"IsTrimDataManual",value:!0});try{return await r.callV2("[CAS].[UpdateTrimData]",i)}catch(o){return{ok:!1,message:o.toString()}}},WAi=async(e,t,n,r)=>{const i=new Ye,o=[];return o.push({name:"ProcessId",value:e}),o.push({name:"Strand",value:t}),o.push({name:n,value:r}),o.push({name:"IsStrandDataManual",value:!0}),await i.callV2("[CAS].[UpdateStrandData]",o)},qAi=async(e,t,n)=>{const r=new Ye,i=[];return i.push({name:"ProcessId",value:e}),i.push({name:t,value:n}),i.push({name:"IsStrandDataManual",value:!0}),await r.callV2("[CAS].[UpdateStrandsData]",i)},BAi=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"HeatId",value:e}),r.push({name:"Technician",value:t}),await n.callV2("[LAB].[UpdateLabTechnician]",r)},jAi=async e=>{const t=new Ye,n=[];return n.push({name:"ScrapId",value:e.ScrapId}),n.push({name:"ProcessId",value:e.ProcessId}),n.push({name:"Pieces",value:e.Pieces}),n.push({name:"Length",value:e.Length}),n.push({name:"ScrapReasonId",value:e.ScrapReasonId}),n.push({name:"Weight",value:e.Weight}),n.push({name:"Strand",value:e.Strand}),await t.callV2("[CAS].[UpsertScrapData]",n)},HAi=async e=>{const t=new Ye,n=[];return n.push({name:"ScrapId",value:e}),await t.callV2("[CAS].[DeleteScrapData]",n)},VAi=async({ProbeId:e,ProcessId:t,Temperature:n,Timestamp:r,Oxygen:i,IsProbeManual:o})=>{const a=new Ye,s=[];return s.push({name:"ProbeId",value:e}),s.push({name:"ProcessId",value:t}),s.push({name:"Temperature",value:n}),s.push({name:"Timestamp",value:r.toISOString()}),i&&s.push({name:"Oxygen",value:i}),o&&s.push({name:"IsProbeManual",value:o}),await a.callV2("[CAS].[UpsertProbe]",s)},GAi=async e=>{const t=new Ye,n=[];n.push({name:"ProbeId",value:e});try{return await t.callV2("[CAS].[DeleteProbe]",n)}catch(r){return{ok:!1,message:r.toString()}}},$Ai=async(e,t,n)=>{const r=new Ye,i=[];i.push({name:"ProcessId",value:e}),i.push({name:"Strand",value:t}),i.push({name:"Force",value:n});try{return await r.callV2("[SWV].[ReadCASStrandDataFromPLC]",i)}catch(o){return{ok:!1,message:o.toString()}}},UAi=async e=>{const t=new Ye,n=[];return n.push({name:"ProcessId",value:e}),await t.callV2("[SWV].[ReadCASProbesFromPLC]",n)},XAi=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[CAS].[CalculateProcessData]",n)}catch(r){return{ok:!1,message:r.toString()}}},YAi=async(e,t)=>{const n=[];n.push({name:"@ShiftId",value:e}),n.push({name:"@GetDeleted",value:t});const i=await new Ye().callV2("[CAS].[GetCountersByShift]",n);return i.ok&&(i.data.tables[0].rows=i.data.tables[0].rows.map(o=>({...o,LadleOpen:o.LadleOpen?vl.utc(o.LadleOpen).toDate():null}))),i},KAi=async({processId:e})=>await new Ye().callV2("[SWV].[ReadCASTrimDataFromPLC]",[{name:"ProcessId",value:e}]),QAi=async({fromDate:e,toDate:t,shift:n,crew:r})=>{const i=Rn(),o=new Ye,a=[];a.push({name:"@FromDate",value:e.toISOString()}),a.push({name:"@ToDate",value:t.toISOString()}),a.push({name:"@Shift",value:n||null}),a.push({name:"@Crew",value:r||null});const s=await o.callV2("[CAS].[GetFailedStartup]",a);return s.ok&&(s.data.tables[0].rows=s.data.tables[0].rows.map(l=>({...l,LastEnd:i.utc(l.LastEnd).toDate(),Start:i.utc(l.Start).toDate(),End:i.utc(l.End).toDate(),NextStart:i.utc(l.NextStart).toDate()}))),s},ZAi=async()=>await new Ye().callV2("[CAS].[GetCatalogLostStrandTypes]",[]),JAi=async e=>await new Ye().callV2("[CAS].[UpsertLostStrandType]",[{name:"LostStrandTypeId",value:e.LostStrandTypeId},{name:"Description",value:e.Description},{name:"IsActive",value:e.IsActive}]),eOi=async()=>await new Ye().callV2("[CAS].[GetLostStrandTypes]",[]),tOi=async({LostStrandId:e,ProcessId:t,StrandId:n,LostStrandTypeId:r,Comment:i,Timestamp:o,Author:a})=>{const s=new Ye,l=[];return l.push({name:"LostStrandId",value:e}),l.push({name:"ProcessId",value:t}),l.push({name:"StrandId",value:n}),l.push({name:"LostStrandTypeId",value:r}),l.push({name:"Comment",value:i}),l.push({name:"Timestamp",value:o?o.toISOString():null}),await s.callV2("[CAS].[UpsertLostStrand]",l)},nOi=async e=>await new Ye().callV2("[CAS].[DeleteLostStrand]",[{name:"LostStrandId",value:e}]),rOi=async e=>await new Ye().callV2("[CAS].[DeleteLostStrandType]",[{name:"LostStrandTypeId",value:e}]),iOi=async e=>await new Ye().callV2("[SWV].[TrackCASStrandEventsJob]",[{name:"ProcessId",value:e}]),oOi={lostStrandTypes:null},eY=Ni({name:"__",initialState:oOi,reducers:{setLostStrandTypes(e,{payload:t}){e.lostStrandTypes=t}}}),bzt=b.createContext({state:eY.getInitialState(),actions:eY.actions}),w3e=()=>b.useContext(bzt),aOi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:eY.getInitialState(),reducers:eY.caseReducers});return f.jsx(bzt.Provider,{value:{state:t,actions:n},children:e})},rl=({title:e,message:t,open:n,onClose:r,...i})=>{const o=()=>{r("Cancel")},a=()=>{r("OK")};return f.jsxs(Qu,{maxWidth:"xs",open:n,...i,children:[f.jsx(T0,{children:e}),f.jsx(ru,{dividers:!0,children:f.jsx(gM,{children:t})}),f.jsxs(Td,{children:[f.jsx(Fe,{variant:"contained",size:"small",autoFocus:!0,onClick:o,children:"Cancel"}),f.jsx(Fe,{variant:"contained",size:"small",color:"primary",onClick:a,children:"Ok"})]})]})},sOi=({show:e,onHide:t,lostStrandType:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState(!1),[p,h]=b.useState(""),{register:g,control:m,handleSubmit:v,reset:y,formState:{errors:M}}=Gn({defaultValues:{LostStrandTypeId:0,Description:"",IsActive:!0}}),C=b.useMemo(()=>{if(e==="edit")return"EDIT LOST STRAND TYPE";if(e==="delete")return"DELETE LOST STRAND TYPE";if(e==="create")return"NEW LOST STRAND TYPE"},[e]),x=(A,z)=>{z!=="clickaway"&&s(!1)},w=async A=>{if(A!=="OK"){d(!1);return}d(!1),o(!0);const z=await rOi(n?.LostStrandTypeId||0);z.ok?(h("The element was deleted successfully"),s(!0),t()):c(z.message),o(!1)},S=async A=>{if(o(!0),e==="delete")d(!0);else{const z=await JAi(A);z.ok?(o(!1),h(e==="edit"?"The element was updated successfully":"The element was created successfully"),s(!0),t()):c(z.message)}o(!1)};return b.useEffect(()=>{(e==="edit"||e==="create")&&(n?y(n):e==="create"&&y({LostStrandTypeId:0,Description:"",IsActive:!0}))},[e,n,y]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:!!e,handleClose:t,maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:C,children:f.jsxs("form",{onSubmit:v(S),children:[f.jsx(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...g("Description",{required:!0}),label:"Description",variant:"outlined",error:!!M.Description,fullWidth:!0,margin:"dense",autoComplete:"off",disabled:e==="delete"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:m,render:({field:A})=>f.jsx(Ea,{checkboxValue:!!A.value,onCheckboxChange:A.onChange,label:"Enabled",className:r.checkbox,disabled:e==="delete"})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:e==="delete"?"secondary":"primary",type:"submit",children:e==="delete"?"Delete":"Save"})})]})})]})}),f.jsx(rl,{title:"Confirmation",message:`Are you sure you want to delete permanently the lost strand type: ${n?.Description}?`,open:u,onClose:w}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:x,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:x,children:p})}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},zM=({deleteItem:e,edit:t,id:n})=>f.jsx(f.Fragment,{children:f.jsxs(T6,{children:[f.jsx(yn,{color:"primary",onClick:()=>{t(n)},title:"Edit",children:f.jsx(No,{style:{cursor:"pointer"},fontSize:"small"})}),e&&f.jsx(yn,{color:"secondary",onClick:()=>{e(n)},title:"Delete",children:f.jsx(Mo,{style:{cursor:"pointer"},fontSize:"small"})})]})}),lOi=({onDeleteButtonClick:e,onEditButtonClick:t})=>{const{state:n}=w3e();return{rows:n.lostStrandTypes?.map(o=>({...o}))||[],columns:[{field:"Description",headerName:"Description",minWidth:63,flex:4,wrapText:!0,autoHeight:!0},{field:"IsActive",headerName:"Enabled",cellRenderer:o=>f.jsx(Qr,{checked:o.value,disabled:!0}),flex:4,minWidth:86,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},cellRenderer:zM,cellRendererParams:o=>({deleteItem:e,edit:t,id:o.data.LostStrandTypeId}),flex:1,minWidth:50}]}},cOi=({getLostStrandTypesFromAPI:e,isLoading:t})=>{const{state:{lostStrandTypes:n}}=w3e(),r=Pd(),[i,o]=b.useState(null),[a,s]=b.useState(null),[l,c]=b.useState(""),{rows:u,columns:d}=lOi({onDeleteButtonClick:p=>{o("delete");const h=n?.find(g=>g.LostStrandTypeId===p);h&&s(h)},onEditButtonClick:p=>{o("edit");const h=n?.find(g=>g.LostStrandTypeId===p);h&&s(h)}});return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Lost Strand Types"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:p=>c(p),label:"Search lost strand types"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:r.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:u||[],columnDefs:d,getRowId:p=>p.data.LostStrandTypeId,suppressContextMenu:!0,onRowDoubleClicked:p=>{s(p.data),o("edit")},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>{s(null),o("create")},children:"NEW LOST STRAND TYPE"})})]})]}),f.jsx(sOi,{show:i,onHide:()=>{o(null),s(null),e()},lostStrandType:a})]})},uOi=e=>{const{state:t,actions:n}=w3e(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await ZAi();l.ok?(n.setLostStrandTypes(l.data.tables[0].rows),i(!1)):a(l.message)};return b.useEffect(()=>{s()},[]),t.lostStrandTypes?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(cOi,{isLoading:r,getLostStrandTypesFromAPI:s})})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},dOi=()=>f.jsx(aOi,{children:f.jsx(uOi,{})}),pOi=async()=>await new Ye().callV2("[CAS].[GetCatalogLowTonnageReasons]",[]),hOi=async e=>await new Ye().callV2("[CAS].[UpsertLowTonnageReason]",[{name:"LowTonnageReasonId",value:e.LowTonnageReasonId||null},{name:"LowTonnageReasonName",value:e.LowTonnageReasonName},{name:"IsActive",value:e.IsActive}]),fOi=async e=>await new Ye().callV2("[CAS].[DeleteLowTonnageReason]",[{name:"LowTonnageReasonId",value:e}]),gOi=({open:e,mode:t,lowTonnageReason:n,onClose:r,onSuccess:i})=>{const o=iu(),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(!1),[g,m]=b.useState(""),{register:v,control:y,handleSubmit:M,reset:C,formState:{errors:x}}=Gn({defaultValues:{LowTonnageReasonId:0,LowTonnageReasonName:"",IsActive:!0}}),w=b.useMemo(()=>{if(t==="edit")return"EDIT LOW TONNAGE REASON";if(t==="delete")return"DELETE LOW TONNAGE REASON";if(t==="create")return"NEW LOW TONNAGE REASON"},[t]),S=(O,T)=>{T!=="clickaway"&&c(!1)},A=async O=>{if(O!=="OK"){h(!1);return}h(!1),s(!0);const T=await fOi(n?.LowTonnageReasonId||0);T.ok?(m("The low tonnage reason was deleted successfully"),c(!0),i(),r()):d(T.message),s(!1)},z=async O=>{if(s(!0),t==="delete")h(!0);else{const T=await hOi(O);T.ok?(m(t==="edit"?"The low tonnage reason was updated successfully":"The low tonnage reason was created successfully"),c(!0),i(),r()):d(T.message)}s(!1)};return b.useEffect(()=>{(t==="edit"||t==="create"||t==="delete")&&(n?C(n):t==="create"&&C({LowTonnageReasonId:0,LowTonnageReasonName:"",IsActive:!0}))},[t,n,C]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:r,maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:w,children:f.jsxs("form",{onSubmit:M(z),children:[f.jsx(We.Content,{dividers:!0,className:o.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...v("LowTonnageReasonName",{required:!0,maxLength:100}),label:"Low Tonnage Reason Name",variant:"outlined",error:!!x.LowTonnageReasonName,helperText:x.LowTonnageReasonName?.type==="maxLength"?"Maximum length is 100 characters":"",fullWidth:!0,margin:"dense",autoComplete:"off",disabled:t==="delete"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:y,render:({field:O})=>f.jsx(Ea,{checkboxValue:!!O.value,onCheckboxChange:O.onChange,label:"Enabled",className:o.checkbox,disabled:t==="delete"})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:r,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:t==="delete"?"secondary":"primary",type:"submit",children:t==="delete"?"Delete":"Save"})})]})})]})}),f.jsx(rl,{title:"Confirmation",message:`Are you sure you want to delete permanently the low tonnage reason: ${n?.LowTonnageReasonName}?`,open:p,onClose:A}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:S,children:g})}),f.jsx(Mt,{error:u,onHide:()=>d("")})]})},mOi=({onDeleteButtonClick:e,onEditButtonClick:t})=>({columns:[{field:"LowTonnageReasonName",headerName:"Low Tonnage Reason Name",minWidth:63,flex:4,wrapText:!0,autoHeight:!0},{field:"IsActive",headerName:"Enabled",cellRenderer:r=>f.jsx(Qr,{checked:r.value,disabled:!0}),flex:4,minWidth:86,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},cellRenderer:zM,cellRendererParams:r=>({deleteItem:e,edit:t,id:r.data.LowTonnageReasonId}),flex:1,minWidth:50}]}),vOi=({lowTonnageReasons:e,isLoading:t,onRefresh:n})=>{const r=Pd(),[i,o]=b.useState(""),a=b.useRef(null),[s,l]=b.useState(null),[c,u]=b.useState(null),d=()=>{u(null),l("create")},p=y=>{const M=e.find(C=>C.LowTonnageReasonId===y);M&&(u(M),l("edit"))},h=y=>{const M=e.find(C=>C.LowTonnageReasonId===y);M&&(u(M),l("delete"))},g=()=>{l(null),u(null)},m=()=>{n(),g()},{columns:v}=mOi({onDeleteButtonClick:h,onEditButtonClick:p});return E.useEffect(()=>{a.current&&(t?a.current.api?.showLoadingOverlay():a.current.api?.hideOverlay())},[t]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Low Tonnage Reasons"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:i,onChange:y=>o(y),label:"Search low tonnage reasons"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:r.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{ref:a,rowData:e,columnDefs:v,getRowId:y=>y.data.LowTonnageReasonId,suppressContextMenu:!0,onRowDoubleClicked:y=>{p(y.data.LowTonnageReasonId)},rowSelection:"single",quickFilterText:i})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:d,children:"NEW LOW TONNAGE REASON"})})]})]}),s&&f.jsx(gOi,{open:s!==null,mode:s,lowTonnageReason:c,onClose:g,onSuccess:m})]})},bOi=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(!0),[i,o]=b.useState(""),a=async()=>{r(!0);const l=await pOi();l.ok?t(l.data.tables[0].rows):o(l.message),r(!1)};b.useEffect(()=>{a()},[]);const s=()=>{a()};return e?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(vOi,{lowTonnageReasons:e,isLoading:n,onRefresh:s})})})}),f.jsx(Mt,{error:i,onHide:()=>o("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},yOi={moldSizes:null},tY=Ni({name:"__",initialState:yOi,reducers:{setMoldSizes(e,{payload:t}){e.moldSizes=t}}}),yzt=b.createContext({state:tY.getInitialState(),actions:tY.actions}),TM=()=>b.useContext(yzt),Mzt=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:tY.getInitialState(),reducers:tY.caseReducers});return f.jsx(yzt.Provider,{value:{state:t,actions:n},children:e})},S3e=async()=>await new Ye().callV2("[CAS].[GetMoldSizes]",[]),Czt=async e=>{const t=new Ye,n=[{name:"MoldSizeId",value:e.MoldSizeId},{name:"MoldSizeName",value:e.MoldSizeName},{name:"MinSpeedLimit",value:e.MinSpeedLimit},{name:"LbsPerFoot",value:e.LbsPerFoot},{name:"Section",value:e.Section}];return await t.callV2("[CAS].[UpsertMoldSize]",n)},MOi=async e=>{const t=new Ye,n=[{name:"MoldSizeId",value:e}];return await t.callV2("[CAS].[DeleteMoldSize]",n)},xzt=async e=>{const t=new Ye,n=[{name:"MoldSizeId",value:e}];return await t.callV2("[CAS].[GetMoldSize]",n)},COi=({rows:e,selectedRowId:t,setSelectedRowId:n,showContextMenu:r})=>({getContextMenuItems:E.useCallback(o=>{const a=o.node?.data;if(r(event,a,"moldSizeContext"),t){const s=document.querySelector(`.ag-row[row-id="${t}"]`);s&&s.classList.remove("custom-selected")}if(o&&o.node&&o.node.id){n(o.node.id);const s=document.querySelector(`.ag-row[row-id="${o.node.id}"]`);s&&s.classList.add("custom-selected")}return[]},[e])}),xOi=({setMoldSizeId:e,setShowEditModal:t,setShowDeleteModal:n,setShowCreateModal:r})=>({getMenuOptions:o=>{let a=[];return a=a.concat([{name:"New Mold Size",key:"new_mold_size",onClick:()=>{r(!0)},icon:f.jsx(Zo,{})}]),o&&(a=a.concat([{name:"Edit Mold Size",key:"edit_mold_size",onClick:()=>{e(o.MoldSizeId),t(!0)},icon:f.jsx(No,{})},{name:"Delete Mold Size",key:"delete_mold_size",onClick:()=>{e(o.MoldSizeId),n(!0)},icon:f.jsx(Mo,{})}])),a}}),wOi=Rt(e=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),wzt=({setId:e,id:t,setShowEditModal:n,setShowDeleteModal:r,showContextMenu:i})=>{const o=wOi();return f.jsx(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:o.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(Fe,{onClick:()=>{(async()=>(e(t),n(!0)))()},title:"Edit",children:f.jsx(No,{style:{height:"auto"},color:"primary"})}),f.jsx(Fe,{onClick:()=>{(async()=>(e(t),r(!0)))()},title:"Delete",children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Fe,{style:{},onClick:i,title:"Options",children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})})},SOi=({setMoldSizeId:e,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:r})=>{const{state:i}=TM();return{rows:i.moldSizes?.map(l=>({...l}))||[],columnDefs:[{field:"MoldSizeName",headerName:"Name",minWidth:20,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"MinSpeedLimit",headerName:"Min Speed",minWidth:20,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"LbsPerFoot",headerName:"Lbs Per Foot",minWidth:20,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"Section",headerName:"Section",minWidth:20,flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{cellStyle:{display:"flex",justifyContent:"flex-end"},cellRenderer:wzt,cellRendererParams:l=>({setId:e,id:l.data.MoldSizeId,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:()=>r(event,l.data,"moldSizeContext")}),flex:1,minWidth:330}],defaultColDef:{flex:1,autoHeight:!0,wrapText:!0,sortable:!0}}},l2=({isSubmitLoading:e,onHide:t,buttonColor:n="primary",buttonLabel:r="Save",className:i})=>f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),className:i,size:"small",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:e&&f.jsx(Kt,{size:"1rem"}),disabled:e,variant:"contained",color:n,type:"submit",className:i,size:"small",children:r})})]}),hte=({label:e,show:t,onHide:n,existingName:r})=>f.jsx(f.Fragment,{children:f.jsxs(We,{title:"CONFIRM",open:t,id:"confirm-modal",handleClose:()=>n(!1),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx("p",{children:`A ${e} with the name '${r}' already exists. Do you want to proceed?`})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"No"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,onClick:()=>n(!0),variant:"contained",color:"primary",type:"submit",children:"Yes"})})]})})]})}),A3e={MoldSizeId:null,MoldSizeName:"",MinSpeedLimit:0,LbsPerFoot:0,Section:0,Enabled:!0},c2=Rt(e=>Mp({checkbox:{userSelect:"none"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},noPrint:{"@media print":{display:"none !important"}},modalContent:{"@media print":{width:"100%"},overflowY:"auto"},pageBreakAvoid:{"@media print":{pageBreakInside:"avoid",pageBreakAfter:"auto"}},addButton:{minWidth:"35px",maxWidth:"35px",maxHeight:"35px",minHeight:"35px",fontSize:"1.5rem",margin:"8px"},textFieldMUI:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:"1px solid #ced4da",fontSize:"20px",width:"100%",padding:"25px 5px",transition:e.transitions.create(["border-color","box-shadow"]),fontFamily:e.typography.fontFamily}})),Szt=e=>/^[a-zA-Z0-9 _-]*$/.test(e)||"No special characters",AOi=({show:e,onHide:t})=>{const{state:n}=TM(),r=c2(),[i,o]=b.useState(!1),[a,s]=b.useState(""),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[p,h]=b.useState(""),{register:g,getValues:m,handleSubmit:v,reset:y,formState:{errors:M}}=Gn({defaultValues:A3e}),C=(A,z)=>{z!=="clickaway"&&c(!1)},x=async A=>{o(!0),(n.moldSizes||[]).some(O=>O.MoldSizeName===A.MoldSizeName)?(h(A.MoldSizeName),d(!0)):await w(A)},w=async A=>{const z=await Czt(A);z.ok?(t(!0),c(!0)):(s(z.message),t(!1)),o(!1)},S=async A=>{d(!1),A&&await w(m())};return b.useEffect(()=>{e&&(y(),d(!1))},[e]),f.jsxs(f.Fragment,{children:[f.jsx(hte,{show:u,onHide:S,existingName:p,label:"Mold Size"}),f.jsx(We,{title:"NEW MOLD SIZE",open:e,handleClose:()=>t(!1),id:"create-mold-size-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:v(x),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,md:12,children:[f.jsx(je,{...g("MoldSizeName",{required:"Name is required",validate:Szt}),label:"Name",variant:"outlined",error:!!M.MoldSizeName,fullWidth:!0,margin:"dense",autoComplete:"off"}),M.MoldSizeName&&f.jsx("span",{className:r.errorLabel,children:M.MoldSizeName.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...g("MinSpeedLimit"),label:"Min Speed",variant:"outlined",error:!!M.MinSpeedLimit,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",onFocus:A=>A.target.select(),inputProps:{min:0}}),M.MinSpeedLimit&&f.jsx("span",{className:r.errorLabel,children:M.MinSpeedLimit.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...g("LbsPerFoot"),label:"Lbs Per Foot",variant:"outlined",error:!!M.LbsPerFoot,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",onFocus:A=>A.target.select(),inputProps:{min:0}}),M.LbsPerFoot&&f.jsx("span",{className:r.errorLabel,children:M.LbsPerFoot.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...g("Section"),label:"Section",variant:"outlined",error:!!M.Section,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",onFocus:A=>A.target.select(),inputProps:{min:0}}),M.Section&&f.jsx("span",{className:r.errorLabel,children:M.Section.message})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:i,onHide:t})})]})}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:C,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:C,children:"The mold size was created successfully"})}),f.jsx(Mt,{error:a,onHide:()=>s(""),title:"Error Creating Mold Size"})]})},OOi=({moldSizeId:e,show:t,onHide:n})=>{const{state:r}=TM(),i=c2(),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState(""),[h,g]=b.useState(!1),[m,v]=b.useState(""),{register:y,getValues:M,setValue:C,handleSubmit:x,formState:{errors:w}}=Gn({defaultValues:A3e}),S=(T,I)=>{I!=="clickaway"&&a(!1)},A=async T=>{u(!0),(r.moldSizes||[]).some(P=>P.MoldSizeName===T.MoldSizeName&&P.MoldSizeId!==e)?(v(T.MoldSizeName),g(!0)):await z(T)},z=async T=>{const I=await Czt(T);I.ok?(a(!0),n(!0)):(p(I.message),n(!1)),u(!1)},O=async T=>{g(!1),T&&await z(M())};return b.useEffect(()=>{t&&(u(!1),(async()=>{l(!0);const T=await xzt(e);if(T.ok){const I=T.data.tables[0].rows[0];I&&(C("MoldSizeId",I.MoldSizeId),C("MoldSizeName",I.MoldSizeName),C("MinSpeedLimit",I.MinSpeedLimit),C("LbsPerFoot",I.LbsPerFoot),C("Section",I.Section),C("Enabled",I.IsActive),l(!1))}else p(T.message)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(hte,{show:h,onHide:O,existingName:m,label:"Mold Size"}),f.jsx(We,{title:"EDIT MOLD SIZE",open:t,handleClose:()=>n(!1),maxWidth:"sm",id:"edit-mold-size-modal",children:f.jsxs("form",{onSubmit:x(A),children:[f.jsxs(We.Content,{className:i.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[s&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"200px"},children:f.jsx(Kt,{})}),!s&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,children:[f.jsx(je,{...y("MoldSizeName",{required:"Name is required",validate:Szt}),label:"Name",variant:"outlined",error:!!w.MoldSizeName,fullWidth:!0,margin:"dense",autoComplete:"off"}),w.MoldSizeName&&f.jsx("span",{className:i.errorLabel,children:w.MoldSizeName.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...y("MinSpeedLimit"),label:"Min Speed",variant:"outlined",error:!!w.MinSpeedLimit,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",onFocus:T=>T.target.select(),inputProps:{min:0}}),w.MinSpeedLimit&&f.jsx("span",{className:i.errorLabel,children:w.MinSpeedLimit.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...y("LbsPerFoot"),label:"Lbs Per Foot",variant:"outlined",error:!!w.LbsPerFoot,type:"number",fullWidth:!0,margin:"dense",onFocus:T=>T.target.select(),autoComplete:"off",inputProps:{min:0}}),w.LbsPerFoot&&f.jsx("span",{className:i.errorLabel,children:w.LbsPerFoot.message})]}),f.jsxs(D,{item:!0,xs:12,md:4,children:[f.jsx(je,{...y("Section"),label:"Section",variant:"outlined",error:!!w.Section,type:"number",fullWidth:!0,margin:"dense",onFocus:T=>T.target.select(),autoComplete:"off",inputProps:{min:0}}),w.Section&&f.jsx("span",{className:i.errorLabel,children:w.Section.message})]})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:c,onHide:n})})]})}),f.jsx(pr,{open:o,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:S,children:"The mold size was edited successfully"})}),f.jsx(Mt,{error:d,onHide:()=>p(""),title:"Error Editing Mold Size"})]})},zOi=({moldSizeId:e,show:t,onHide:n})=>{const r=c2(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(),{register:g,setValue:m,handleSubmit:v,formState:{errors:y}}=Gn({defaultValues:A3e}),M=(x,w)=>{w!=="clickaway"&&o(!1)},C=async()=>{c(!0);const x=await MOi(e);x.ok?(n(!0),o(!0),c(!1)):(d(x.message),c(!1))};return b.useEffect(()=>{t&&(c(!1),(async()=>{s(!0);const x=await xzt(e);if(x.ok){const w=x.data.tables[0].rows[0];w&&(m("MoldSizeId",w.MoldSizeId),m("MoldSizeName",w.MoldSizeName),m("MinSpeedLimit",w.MinSpeedLimit),m("LbsPerFoot",w.LbsPerFoot),m("Section",w.Section),m("Enabled",w.IsActive),s(!1))}else{d(x.message);return}})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"DELETE MOLD SIZE",open:t,handleClose:()=>n(!1),id:"delete-mold-size-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:v(C),children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"200px"},children:f.jsx(Kt,{})}),!a&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...g("MoldSizeName"),label:"Name",variant:"outlined",error:!!y.MoldSizeName,fullWidth:!0,value:p?.MoldSizeName,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(je,{...g("MinSpeedLimit"),label:"Min Speed",variant:"outlined",error:!!y.MinSpeedLimit,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(je,{...g("LbsPerFoot"),label:"Lbs Per Foot",variant:"outlined",error:!!y.LbsPerFoot,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(je,{...g("Section"),label:"Section",variant:"outlined",error:!!y.Section,type:"number",fullWidth:!0,margin:"dense",autoComplete:"off",disabled:!0})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:l,onHide:n,buttonColor:"secondary",buttonLabel:"Delete"})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:M,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:M,children:"The mold size was deleted successfully"})}),f.jsx(Mt,{error:u,onHide:()=>d(""),title:"Error Deleting Mold Size"})]})},TOi=({getCatalogMoldSizesFromAPI:e,isLoading:t})=>{const n=Pd(),[r,i]=b.useState(""),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState(null),[h,g]=b.useState(null),[m,v]=b.useState(""),{getMenuOptions:y}=xOi({setMoldSizeId:p,setShowEditModal:l,setShowDeleteModal:u,setShowCreateModal:a}),{showContextMenu:M,registerConfig:C}=ks(),{rows:x,columnDefs:w}=SOi({setMoldSizeId:p,setShowEditModal:l,setShowDeleteModal:u,showContextMenu:M}),{columnDefaults:S}=ku({OnEdit:O=>{l(!s),p(O.MoldSizeId)}}),{getContextMenuItems:A}=COi({rows:x,selectedRowId:r,setSelectedRowId:i,showContextMenu:M});S.floatingFilter=!1;const z=O=>{p(O.data.MoldSizeId),l(!0)};return b.useEffect(()=>{t?h?.showLoadingOverlay():h?.hideOverlay()},[t,x,h]),b.useEffect(()=>{C({id:"moldSizeContext",getOptions:y})},[]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Mold Sizes"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:m,onChange:O=>v(O),label:"Search mold sizes"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:n.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:x||[],columnDefs:w,getContextMenuItems:A,onRowDoubleClicked:z,getRowId:O=>String(O.data.MoldSizeId),onGridReady:O=>g(O.api),enableCellTextSelection:!0,suppressContextMenu:!1,allowContextMenuWithControlKey:!1,rowSelection:"single",quickFilterText:m})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>a(!o),children:"NEW MOLD SIZE"})})]})]}),f.jsx(AOi,{show:o,onHide:O=>{a(!1),setTimeout(()=>{h&&O&&(h.paginationGoToLastPage(),e())},100)}}),f.jsx(OOi,{show:s,onHide:O=>{l(!1),p(null),O&&e()},moldSizeId:d}),f.jsx(zOi,{show:c,onHide:O=>{u(!1),p(null),O&&e()},moldSizeId:d})]})},EOi=e=>{const{state:t,actions:n}=TM(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await S3e();l.ok?n.setMoldSizes(l.data.tables[0].rows):a(l.message),i(!1)};return b.useEffect(()=>{s()},[]),t.moldSizes?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(TOi,{isLoading:r,getCatalogMoldSizesFromAPI:s})})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},ROi=e=>f.jsx(Mzt,{children:f.jsx(EOi,{})}),IOi={molds:null},nY=Ni({name:"__",initialState:IOi,reducers:{setMolds(e,{payload:t}){e.molds=t}}}),Azt=b.createContext({state:nY.getInitialState(),actions:nY.actions}),fte=()=>b.useContext(Azt),POi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:nY.getInitialState(),reducers:nY.caseReducers});return f.jsx(Azt.Provider,{value:{state:t,actions:n},children:e})},DOi=async()=>await new Ye().callV2("[CAS].[GetMolds]",[]),Ozt=async e=>{const t=new Ye,n=[{name:"MoldId",value:e.MoldId},{name:"MoldName",value:e.MoldName},{name:"MoldSizeId",value:e.MoldSizeId}];return await t.callV2("[CAS].[UpsertMold]",n)},kOi=async e=>{const t=new Ye,n=[{name:"MoldId",value:e}];return await t.callV2("[CAS].[DeleteMold]",n)},zzt=async e=>{const t=new Ye,n=[{name:"MoldId",value:e}];return await t.callV2("[CAS].[GetMold]",n)},LOi=({rows:e,selectedRowId:t,setSelectedRowId:n,showContextMenu:r})=>E.useCallback(o=>{const a=o.node?.data;if(r(event,a,"moldContext"),t){const s=document.querySelector(`.ag-row[row-id="${t}"]`);s&&s.classList.remove("custom-selected")}if(o&&o.node&&o.node.id){n(o.node.id);const s=document.querySelector(`.ag-row[row-id="${o.node.id}"]`);s&&s.classList.add("custom-selected")}return[]},[e]),_Oi=({setMoldId:e,setShowEditModal:t,setShowDeleteModal:n,setShowCreateModal:r})=>({getMenuOptions:o=>{let a=[];return a=a.concat([{name:"New Mold",key:"new_mold",onClick:()=>{r(!0)},icon:f.jsx(Zo,{})}]),o&&(a=a.concat([{name:"Edit Mold",key:"edit_mold",onClick:()=>{e(o.MoldId),t(!0)},icon:f.jsx(No,{})},{name:"Delete Mold",key:"delete_mold",onClick:()=>{e(o.MoldId),n(!0)},icon:f.jsx(Mo,{})}])),a}}),NOi=({setMoldId:e,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:r})=>{const{state:i}=fte(),{state:{moldSizes:o}}=TM();return{rows:i.molds?.map(l=>({...l,MoldSize:o?.find(c=>c.MoldSizeId===l.MoldSizeId)?.MoldSizeName}))||[],columnDefs:[{field:"MoldName",headerName:"Name",minWidth:20,flex:2,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{field:"MoldSize",headerName:"Mold Size",minWidth:20,flex:2,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}},{cellRenderer:wzt,cellRendererParams:l=>({setId:e,id:l.data.MoldId,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:()=>r(event,l.data,"moldContext")}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,minWidth:330,maxWidth:200,filter:!1,autoHeaderHeight:!0,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}}]}},O3e={MoldId:null,MoldName:"",MoldSizeId:null,Enabled:!0},FOi=({show:e,onHide:t})=>{const{state:n}=fte();c2();const[r,i]=b.useState(!1),[o,a]=b.useState(""),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState(""),{state:{moldSizes:h}}=TM(),{control:g,getValues:m,handleSubmit:v,reset:y}=Gn({defaultValues:O3e}),M=(S,A)=>{A!=="clickaway"&&l(!1)},C=async S=>{i(!0),(n.molds||[]).some(z=>z.MoldName===S.MoldName)?(p(S.MoldName),u(!0)):await x(S)},x=async S=>{const A=await Ozt(S);A.ok?(t(!0),l(!0)):(a(A.message),t(!1)),i(!1)},w=async S=>{u(!1),S&&await x(m())};return b.useEffect(()=>{e&&(y(),u(!1))},[e]),f.jsxs(f.Fragment,{children:[f.jsx(hte,{show:c,onHide:w,existingName:d,label:"Mold"}),f.jsx(We,{title:"NEW MOLD",open:e,handleClose:()=>t(!1),id:"create-mold-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:v(C),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"MoldName",control:g,rules:{required:"Name is required"},render:({field:S,fieldState:{error:A}})=>f.jsx(je,{...S,label:"Name",variant:"outlined",error:!!A,helperText:A?A.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"MoldSizeId",control:g,rules:{required:"Mold Size is required"},render:({field:{onChange:S,value:A,...z},fieldState:{error:O}})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:h??[],getOptionLabel:T=>T.MoldSizeName,onChange:(T,I)=>{S(I?I.MoldSizeId:null)},renderInput:T=>f.jsx(f.Fragment,{children:f.jsx(je,{...T,label:"Mold Size",variant:"outlined",error:!!O,helperText:O?O.message:null,size:"small",fullWidth:!0})}),value:h?.find(T=>T.MoldSizeId===A)||null})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:r,onHide:t})})]})}),f.jsx(pr,{open:s,autoHideDuration:2500,onClose:M,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:M,children:"The mold was created successfully"})}),f.jsx(Mt,{error:o,onHide:()=>a(""),title:"Error Creating Mold"})]})},Cn=()=>f.jsx("div",{children:"Loading Please Wait.."}),Op=e=>f.jsx(z6,{open:e.open,style:{color:"#fff",zIndex:1e5},children:f.jsx(Kt,{color:"inherit"})}),WOi=({moldId:e,show:t,onHide:n})=>{const{state:r}=fte(),i=c2(),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState(""),[h,g]=b.useState(!1),[m,v]=b.useState(""),{state:{moldSizes:y}}=TM(),{control:M,getValues:C,setValue:x,handleSubmit:w}=Gn({defaultValues:O3e}),S=(T,I)=>{I!=="clickaway"&&a(!1)},A=async T=>{u(!0),(r.molds||[]).some(P=>P.MoldName===T.MoldName&&P.MoldId!==e)?(v(T.MoldName),g(!0)):await z(T)},z=async T=>{const I=await Ozt(T);I.ok?(a(!0),n(!0)):(p(I.message),n(!1)),u(!1)},O=async T=>{g(!1),T&&await z(C())};return b.useEffect(()=>{t&&(u(!1),(async()=>{l(!0);const T=await zzt(e);if(T.ok){const I=T.data.tables[0].rows[0];I&&(x("MoldId",I.MoldId),x("MoldName",I.MoldName),x("MoldSizeId",I.MoldSizeId),x("Enabled",I.IsActive))}else{p(T.message);return}l(!1)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(hte,{show:h,onHide:O,existingName:m,label:"Mold"}),f.jsx(We,{title:"EDIT MOLD",open:t,handleClose:()=>n(!1),maxWidth:"sm",id:"edit-mold-modal",children:f.jsxs("form",{onSubmit:w(A),children:[f.jsxs(We.Content,{className:i.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[s&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!s&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"MoldName",control:M,rules:{required:"Name is required"},render:({field:T,fieldState:{error:I}})=>f.jsx(je,{...T,label:"Name",variant:"outlined",error:!!I,helperText:I?I.message:null,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"MoldSizeId",control:M,rules:{required:"Mold Size is required"},render:({field:{onChange:T,value:I,...P},fieldState:{error:N}})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:y??[],getOptionLabel:F=>F.MoldSizeName,onChange:(F,L)=>{T(L?L.MoldSizeId:null)},renderInput:F=>f.jsx(f.Fragment,{children:f.jsx(je,{...F,label:"Mold Size",variant:"outlined",error:!!N,helperText:N?N.message:null,size:"small",fullWidth:!0})}),value:y?.find(F=>F.MoldSizeId===I)||null})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:c,onHide:n})})]})}),f.jsx(pr,{open:o,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:S,children:"The mold was edited successfully"})}),f.jsx(Mt,{error:d,onHide:()=>p(""),title:"Error Editing Mold"})]})},qOi=({moldId:e,show:t,onHide:n})=>{const r=c2(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),{state:{moldSizes:p}}=TM(),{control:h,setValue:g,handleSubmit:m}=Gn({defaultValues:O3e}),v=(M,C)=>{C!=="clickaway"&&o(!1)},y=async()=>{c(!0);const M=await kOi(e);M.ok?(n(!0),o(!0),c(!1)):(d(M.message),c(!1))};return b.useEffect(()=>{t&&(c(!1),(async()=>{s(!0);const M=await zzt(e);if(M.ok){const C=M.data.tables[0].rows[0];C&&(g("MoldId",C.MoldId),g("MoldName",C.MoldName),g("MoldSizeId",C.MoldSizeId))}else{d(M.message);return}s(!1)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"DELETE MOLD",open:t,handleClose:()=>n(!1),id:"delete-mold-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:m(y),children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!a&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"MoldName",control:h,rules:{required:"Name is required"},render:({field:M})=>f.jsx(je,{...M,label:"Name",variant:"outlined",error:!!u,value:M.value,fullWidth:!0,margin:"dense",autoComplete:"off",disabled:!0})})}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"MoldSizeId",control:h,rules:{required:"Mold Size is required"},render:({field:{onChange:M,value:C,...x}})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,disabled:!0,options:p??[],getOptionLabel:w=>w.MoldSizeName,onChange:(w,S)=>{M(S?S.MoldSizeId:null)},renderInput:w=>f.jsx(f.Fragment,{children:f.jsx(je,{...w,label:"Mold Size",variant:"outlined",error:!!u,value:C,size:"small",fullWidth:!0})}),value:p?.find(w=>w.MoldSizeId===C)||null})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:l,onHide:n,buttonColor:"secondary",buttonLabel:"Delete"})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:v,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:v,children:"The mold was deleted successfully"})}),f.jsx(Mt,{error:u,onHide:()=>d(""),title:"Error Deleting Mold"})]})},BOi=({getCatalogMoldsFromAPI:e,isLoading:t})=>{const n=Pd(),[r,i]=b.useState(""),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState(null),[h,g]=b.useState(null),[m,v]=b.useState(""),{getMenuOptions:y}=_Oi({setMoldId:p,setShowEditModal:l,setShowDeleteModal:u,setShowCreateModal:a}),{showContextMenu:M,registerConfig:C}=ks(),{rows:x,columnDefs:w}=NOi({setMoldId:p,setShowEditModal:l,setShowDeleteModal:u,showContextMenu:M}),{columnDefaults:S}=ku({OnEdit:O=>{l(!s),p(O.MoldId)}}),A=LOi({rows:x,selectedRowId:r,setSelectedRowId:i,showContextMenu:M});S.floatingFilter=!1;const z=O=>{p(O.data.MoldId),l(!0)};return b.useEffect(()=>{t?h?.showLoadingOverlay():h?.hideOverlay()},[t,x,h]),b.useEffect(()=>{C({id:"moldContext",getOptions:y})},[]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Molds"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:m,onChange:O=>v(O),label:"Search molds"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:n.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:x||[],columnDefs:w,getContextMenuItems:A,onRowDoubleClicked:z,getRowId:O=>O.data.MoldId,onGridReady:O=>g(O.api),enableCellTextSelection:!0,suppressContextMenu:!1,allowContextMenuWithControlKey:!1,rowSelection:"single",quickFilterText:m})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>a(!o),children:"New Mold"})})]})]}),f.jsx(FOi,{show:o,onHide:O=>{a(!1),setTimeout(()=>{h&&O&&(h.paginationGoToLastPage(),e())},100)}}),f.jsx(WOi,{show:s,onHide:O=>{l(!1),p(null),O&&e()},moldId:d}),f.jsx(qOi,{show:c,onHide:O=>{u(!1),p(null),O&&e()},moldId:d})]})},jOi=e=>{const{state:t,actions:n}=fte(),{actions:{setMoldSizes:r}}=TM(),[i,o]=b.useState(!0),[a,s]=b.useState(""),l=async()=>{o(!0);const u=await S3e();u.ok?r(u.data.tables[0].rows):s(u.message),o(!1)},c=async()=>{o(!0);const u=await DOi();u.ok?n.setMolds(u.data.tables[0].rows):s(u.message),o(!1)};return b.useEffect(()=>{c(),l()},[]),t.molds?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(BOi,{isLoading:i,getCatalogMoldsFromAPI:c})})})}),f.jsx(Mt,{error:a,onHide:()=>s("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},HOi=e=>f.jsx(Mzt,{children:f.jsx(POi,{children:f.jsx(jOi,{})})}),VOi=async()=>await new Ye().callV2("[STEEL].[GetCatalogPourbackReasons]",[]),GOi=async e=>await new Ye().callV2("[STEEL].[UpsertPourbackReason]",[{name:"PourbackReasonId",value:e.PourbackReasonId||null},{name:"PourbackReasonName",value:e.PourbackReasonName},{name:"IsActive",value:e.IsActive}]),$Oi=async e=>await new Ye().callV2("[STEEL].[DeletePourbackReason]",[{name:"PourbackReasonId",value:e}]),UOi=({open:e,mode:t,pourbackReason:n,onClose:r,onSuccess:i})=>{const o=iu(),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(!1),[g,m]=b.useState(""),{register:v,control:y,handleSubmit:M,reset:C,formState:{errors:x}}=Gn({defaultValues:{PourbackReasonId:0,PourbackReasonName:"",IsActive:!0}}),w=b.useMemo(()=>{if(t==="edit")return"EDIT POURBACK REASON";if(t==="delete")return"DELETE POURBACK REASON";if(t==="create")return"NEW POURBACK REASON"},[t]),S=(O,T)=>{T!=="clickaway"&&c(!1)},A=async O=>{if(O!=="OK"){h(!1);return}h(!1),s(!0);const T=await $Oi(n?.PourbackReasonId||0);T.ok?(m("The pourback reason was deleted successfully"),c(!0),i(),r()):d(T.message),s(!1)},z=async O=>{if(s(!0),t==="delete")h(!0);else{const T=await GOi(O);T.ok?(m(t==="edit"?"The pourback reason was updated successfully":"The pourback reason was created successfully"),c(!0),i(),r()):d(T.message)}s(!1)};return b.useEffect(()=>{(t==="edit"||t==="create"||t==="delete")&&(n?C(n):t==="create"&&C({PourbackReasonId:0,PourbackReasonName:"",IsActive:!0}))},[t,n,C]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:r,maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:w,children:f.jsxs("form",{onSubmit:M(z),children:[f.jsx(We.Content,{dividers:!0,className:o.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...v("PourbackReasonName",{required:!0}),label:"Pourback Reason Name",variant:"outlined",error:!!x.PourbackReasonName,fullWidth:!0,margin:"dense",autoComplete:"off",disabled:t==="delete"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:y,render:({field:O})=>f.jsx(Ea,{checkboxValue:!!O.value,onCheckboxChange:O.onChange,label:"Enabled",className:o.checkbox,disabled:t==="delete"})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:r,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:t==="delete"?"secondary":"primary",type:"submit",children:t==="delete"?"Delete":"Save"})})]})})]})}),f.jsx(rl,{title:"Confirmation",message:`Are you sure you want to delete permanently the pourback reason: ${n?.PourbackReasonName}?`,open:p,onClose:A}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:S,children:g})}),f.jsx(Mt,{error:u,onHide:()=>d("")})]})},XOi=({onDeleteButtonClick:e,onEditButtonClick:t})=>({columns:[{field:"PourbackReasonName",headerName:"Pourback Reason Name",minWidth:63,flex:4,wrapText:!0,autoHeight:!0},{field:"IsActive",headerName:"Enabled",cellRenderer:r=>f.jsx(Qr,{checked:r.value,disabled:!0}),flex:4,minWidth:86,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},cellRenderer:zM,cellRendererParams:r=>({deleteItem:e,edit:t,id:r.data.PourbackReasonId}),flex:1,minWidth:50}]}),YOi=({pourbackReasons:e,isLoading:t,onRefresh:n})=>{const r=Pd(),[i,o]=b.useState(""),a=b.useRef(null),[s,l]=b.useState(null),[c,u]=b.useState(null),d=()=>{u(null),l("create")},p=y=>{const M=e.find(C=>C.PourbackReasonId===y);M&&(u(M),l("edit"))},h=y=>{const M=e.find(C=>C.PourbackReasonId===y);M&&(u(M),l("delete"))},g=()=>{l(null),u(null)},m=()=>{n(),g()},{columns:v}=XOi({onDeleteButtonClick:h,onEditButtonClick:p});return E.useEffect(()=>{a.current&&(t?a.current.api?.showLoadingOverlay():a.current.api?.hideOverlay())},[t]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Pourback Reasons"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:i,onChange:y=>o(y),label:"Search pourback reasons"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:r.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{ref:a,rowData:e,columnDefs:v,getRowId:y=>y.data.PourbackReasonId,suppressContextMenu:!0,onRowDoubleClicked:y=>{p(y.data.PourbackReasonId)},rowSelection:"single",quickFilterText:i})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:d,children:"NEW POURBACK REASON"})})]})]}),s&&f.jsx(UOi,{open:s!==null,mode:s,pourbackReason:c,onClose:g,onSuccess:m})]})},KOi=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(!0),[i,o]=b.useState(""),a=async()=>{r(!0);const l=await VOi();l.ok?t(l.data.tables[0].rows):o(l.message),r(!1)};b.useEffect(()=>{a()},[]);const s=()=>{a()};return e?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(YOi,{pourbackReasons:e,isLoading:n,onRefresh:s})})})}),f.jsx(Mt,{error:i,onHide:()=>o("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},QOi={categories:null,assetCodes:null,assetIdToFilter:0,firstTime:!1},rY=Ni({name:"__",initialState:QOi,reducers:{setCategories(e,{payload:t}){e.categories=t},setAssetCodes(e,{payload:t}){e.assetCodes=t},setAssetIdToFilter(e,{payload:t}){e.assetIdToFilter=t},setFirstTime(e,{payload:t}){e.firstTime=t}}}),Tzt=b.createContext({state:rY.getInitialState(),actions:rY.actions}),EM=()=>b.useContext(Tzt),vj=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:rY.getInitialState(),reducers:rY.caseReducers});return f.jsx(Tzt.Provider,{value:{state:t,actions:n},children:e})},ZOi=({setCategoryId:e,setShowEditModal:t,setShowDeleteModal:n,setShowCreateModal:r})=>({getMenuOptions:o=>{let a=[];return o?a=a.concat([{name:"New Category",key:"new_category",onClick:()=>{r(!0)},icon:f.jsx(Zo,{})},{name:"Edit Category",key:"edit_category",onClick:()=>{e(o.DelayCategoryId),t(!0)},icon:f.jsx(No,{})},{name:"Delete Category",key:"delete_category",onClick:()=>{e(o.DelayCategoryId),n(!0)},icon:f.jsx(Mo,{})}]):a=a.concat([{name:"New Category",key:"new_category",onClick:()=>{r(!0)},icon:f.jsx(Zo,{})}]),a}}),JOi=Rt({colorCircle:{width:"20px",height:"20px",borderRadius:"50%",display:"inline-block"}}),ezi=({value:e})=>{const t=JOi();return f.jsx("div",{className:t.colorCircle,style:{backgroundColor:e.toLowerCase()}})},tzi=Rt(e=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),nzi=({setCategoryId:e,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:r})=>{const{state:i}=EM(),o=tzi();return{rows:i.categories?.map(c=>({...c}))||[],columnDefs:[{field:"DelayCategoryName",headerName:"Name",flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"},minWidth:130},{field:"AssetName",headerName:"Asset",flex:1,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"},minWidth:130},{field:"DelayCategoryColor",headerName:"Color",sortable:!1,flex:1,cellRenderer:ezi,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"},minWidth:130},{cellRenderer:c=>f.jsx(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},className:o.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},children:[f.jsx(Fe,{onClick:()=>{(async()=>(e(c.data.DelayCategoryId),t(!0)))()},children:f.jsx(No,{style:{height:"auto"},color:"primary"})}),f.jsx(Fe,{onClick:()=>{(async()=>(e(c.data.DelayCategoryId),n(!0)))()},children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Fe,{style:{},onClick:u=>r(u,c.data,"categoriesContext"),children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,minWidth:330,filter:!1,autoHeaderHeight:!0}],defaultColDef:{flex:1,minWidth:130,sortable:!0,suppressMovable:!0}}},z3e={DelayCategoryId:null,AssetId:null,DelayCategoryName:"",Color:"",IsActive:!0,DelayCategoryColor:""},bj=async(e,t)=>{const n=new Ye,r=[];return e&&r.push({name:"DelayAreaAssetId",value:e}),t&&r.push({name:"IncludeAncestor",value:t}),await n.callV2("[DEL].[GetDelayCategories]",r)},Ezt=async e=>{const t=new Ye,n=[];return n.push({name:"DelayCategoryId",value:e}),await t.callV2("[DEL].[GetDelayCategory]",n)},rzi=async()=>{const e=new Ye,t=[];return t.push({name:"DelayAreaAssetId",value:null}),await e.callV2("[DEL].[GetAssetsFordelayArea]",t)},izi=async e=>{const t=new Ye,n=[];return n.push({name:"DelayCategoryId",value:e}),await t.callV2("[DEL].[DeleteDelayCategory]",n)},iY=async e=>{const t=new Ye,n=[];return n.push({name:"DelayCategoryId",value:e.DelayCategoryId}),n.push({name:"DelayAreaAssetId",value:e.AssetId}),n.push({name:"DelayCategoryName",value:e.DelayCategoryName}),n.push({name:"DelayCategoryColor",value:e.Color}),n.push({name:"IsActive",value:e.IsActive}),await t.callV2("[DEL].[UpsertDelayCategory]",n)},Rzt=Rt({swatch:{width:"25px",height:"25px",display:"inline-block",margin:"2px",borderRadius:"4px",cursor:"pointer"},popover:{display:"flex",flexWrap:"wrap",padding:"10px",maxWidth:"165px"}}),ozi=["#5eaf60","green","#62bd9c","#53a285","#add8e6","#5293c5","#3280ba","blue","#3d556f","#dab0d8","#a362bf","#e74b3c","red","#bf3b2c","#000000"],azi=({color:e,onSelect:t})=>{const n=Rzt();return f.jsx("div",{className:n.swatch,style:{backgroundColor:e},onClick:()=>t(e)})},T3e=({onChange:e,color:t,elementId:n,disabled:r=!1,label:i})=>{const o=Rzt(),[a,s]=b.useState(null),l=p=>{s(p.currentTarget)},c=()=>{s(null)},u=!!a,d=u?"simple-popover":void 0;return f.jsxs("div",{children:[f.jsx(Fe,{"aria-describedby":d,variant:"outlined",onClick:l,style:{backgroundColor:t,width:"24px",height:"24px",minWidth:"24px",padding:0,marginBottom:"6px"},disabled:r}),i&&f.jsx("span",{style:{marginLeft:"8px"},children:i}),f.jsx(S3,{id:d,open:u,anchorEl:a,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:f.jsx("div",{className:o.popover,children:ozi.map(p=>f.jsx(azi,{color:p,onSelect:h=>{e(n,h),c()}},p))})})]})},E3e=({show:e,onHide:t,title:n,message:r,isLoading:i,color:o="primary"})=>f.jsx(f.Fragment,{children:f.jsxs(We,{title:n,open:e,id:"confirm-modal",handleClose:()=>t(!1),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx("p",{children:r})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"NO"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,onClick:()=>t(!0),variant:"contained",color:o,type:"submit",disabled:i,children:"YES"})})]})})]})}),szi=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState(!1),[p,h]=b.useState(!1),[g,m]=b.useState(""),{state:{assetCodes:v,assetIdToFilter:y}}=EM(),{register:M,control:C,handleSubmit:x,reset:w,getValues:S,setValue:A,formState:{errors:z}}=Gn({defaultValues:{...z3e,AssetId:y}}),O=(F,L)=>{L!=="clickaway"&&d(!1)},T=F=>/^[a-zA-Z0-9 _-]*$/.test(F)||"No special characters",I=async F=>{o(!0);try{s(!0);const L=await bj();if(!L.ok){c(L.message);return}if(L.data.tables[0].rows.some(G=>G.DelayCategoryName===F.DelayCategoryName&&G.AssetId===F.AssetId)){m(F.DelayCategoryName),h(!0),o(!1),s(!1);return}const j=await iY(F);j.ok?(d(!0),t(!0)):c(j.message)}catch(L){console.error("Error submitting category:",L),c(L.message||"An unexpected error occurred")}finally{o(!1),s(!1)}},P=F=>{h(!1),F&&N()},N=async()=>{const F=S();o(!0);try{const L=await iY(F);L.ok?(d(!0),t(!0)):c(L.message)}catch(L){console.error("Error confirming submission:",L),c(L.message||"An unexpected error occurred")}finally{o(!1)}};return b.useEffect(()=>{e&&y&&A("AssetId",y)},[e,y,A]),b.useEffect(()=>{e&&w()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{id:"create-category",title:"NEW CATEGORY",open:e,handleClose:()=>t(!1),maxWidth:"sm",children:f.jsxs("form",{onSubmit:x(I),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:a?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}):f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,md:12,children:[f.jsx(je,{...M("DelayCategoryName",{required:"Name is required",validate:T}),label:"Name",variant:"outlined",error:!!z.DelayCategoryName,fullWidth:!0,margin:"dense",autoComplete:"off"}),z.DelayCategoryName&&f.jsx("span",{className:r.errorLabel,children:z.DelayCategoryName.message})]})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:3,md:3,children:f.jsx(Ue,{name:"IsActive",control:C,render:({field:F})=>f.jsx(Ea,{checkboxValue:F.value,onCheckboxChange:F.onChange,label:"Is Active",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"AssetId",control:C,rules:{required:"Asset is required"},render:({field:F})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:v??[],getOptionLabel:L=>L.AssetName,onChange:(L,W)=>{F.onChange(W?W.AssetId:null)},renderInput:L=>f.jsxs(f.Fragment,{children:[f.jsx(je,{...L,label:"Asset",variant:"outlined",error:!!z.AssetId,size:"small",fullWidth:!0}),z.AssetId&&f.jsx("span",{className:r.errorLabel,children:z.AssetId.message})]}),value:v?.find(L=>L.AssetId===F.value)})})}),f.jsx(D,{item:!0,xs:3,md:3,className:r.colorPicker,children:f.jsx(Ue,{name:"Color",control:C,rules:{required:"Color is required"},render:({field:F})=>f.jsxs(ja,{fullWidth:!0,margin:"dense",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(T3e,{onChange:(L,W)=>F.onChange(W),color:F.value,disabled:!1,label:"Color"}),z.Color&&f.jsx("span",{className:r.errorLabel,children:z.Color.message})]})})})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"CANCEL"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"SAVE"})})]})})]})}),f.jsx(pr,{open:u,autoHideDuration:2500,onClose:O,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:O,children:"The category was created successfully"})})]})}),f.jsx(E3e,{show:p,onHide:P,title:"WARNING",message:`The category "${g}" already exists. Do you want to proceed?`,isLoading:i}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},lzi=({DelayCategoryId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(),[g,m]=b.useState(!1),[v,y]=b.useState(""),{state:{allAssets:M}}=ite(),{control:C,setValue:x,handleSubmit:w}=Gn({defaultValues:z3e}),S=(O,T)=>{T!=="clickaway"&&o(!1)},A=async()=>{m(!0)},z=async O=>{if(O){c(!0);try{const T=await izi(e);T.ok?(n(!0),o(!0)):d(T.message)}catch(T){d(T.message)}finally{c(!1)}}m(!1)};return b.useEffect(()=>{if(t&&e){s(!0),c(!1);const O=M.find(T=>T.AssetId===p?.AssetId);O&&y(O.AssetName),(async()=>{try{const T=await Ezt(e);if(T.ok){const I=T.data.tables[0].rows[0];I?(x("DelayCategoryId",I.DelayCategoryId),x("AssetId",I.AssetId),x("DelayCategoryName",I.DelayCategoryName),x("Color",I.DelayCategoryColor),h(I)):d("Category not found")}else d(T.message)}catch(T){d(T.message)}finally{s(!1)}})()}},[t,p?.AssetId]),f.jsxs(f.Fragment,{children:[f.jsx(We,{id:"delete-category",title:"DELETE CATEGORY",open:t,handleClose:()=>n(!1),maxWidth:"sm",children:f.jsxs("form",{onSubmit:w(A),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:a?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}):f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{label:"Name",disabled:!0,variant:"outlined",fullWidth:!0,value:p?.DelayCategoryName||"",margin:"dense",autoComplete:"off"})})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:3,md:3,children:f.jsx(Ue,{name:"IsActive",control:C,render:({field:O})=>f.jsx(Ea,{checkboxValue:O.value,onCheckboxChange:O.onChange,label:"Is Active",className:r.checkbox,disabled:!0})})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(je,{label:"Asset",disabled:!0,variant:"outlined",fullWidth:!0,value:v,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:3,md:3,className:r.colorPicker,children:f.jsx(Ue,{name:"Color",control:C,rules:{required:"Color is required"},render:({field:O})=>f.jsx(ja,{fullWidth:!0,margin:"dense",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(T3e,{onChange:(T,I)=>O.onChange(I),color:O.value,disabled:!0,label:"Color"})})})})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"CANCEL"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:l&&f.jsx(Kt,{size:"1rem"}),variant:"contained",color:"secondary",onClick:w(A),disabled:l,children:"DELETE"})})]})})]})}),f.jsx(E3e,{show:g,onHide:z,title:"WARNING",message:`Be careful, once deleted you will not be able to recover the category "${p?.DelayCategoryName}". Are you sure you want to delete it?`,isLoading:l,color:"secondary"}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:S,children:"The category was deleted successfully"})}),f.jsx(Mt,{error:u,onHide:()=>d("")})]})},czi=({DelayCategoryId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(),[g,m]=b.useState(!1),[v,y]=b.useState(""),{state:{assetCodes:M}}=EM(),{register:C,control:x,setValue:w,handleSubmit:S,getValues:A,formState:{errors:z}}=Gn({defaultValues:z3e}),O=(F,L)=>{L!=="clickaway"&&o(!1)},T=F=>/^[a-zA-Z0-9 _-]*$/.test(F)||"No special characters",I=async F=>{c(!0);try{s(!0);const L=await bj();if(!L.ok){d(L.message);return}if(L.data.tables[0].rows.some(G=>G.DelayCategoryName===F.DelayCategoryName&&G.AssetId===F.AssetId&&G.DelayCategoryId!==F.DelayCategoryId)){y(F.DelayCategoryName),m(!0),c(!1),s(!1);return}const j=await iY(F);j.ok?(o(!0),n(!0)):d(j.message)}catch(L){console.error("Error submitting category:",L),d(L.message||"An unexpected error occurred")}finally{c(!1),s(!1)}},P=F=>{m(!1),F&&N()},N=async()=>{const F=A();try{const L=await iY(F);L.ok?(o(!0),n(!0)):d(L.message)}catch(L){console.error("Error confirming submission:",L),d(L.message||"An unexpected error occurred")}finally{c(!1)}};return b.useEffect(()=>{t&&e&&(c(!1),(async()=>{try{s(!0);const F=await Ezt(e);if(F.ok){const L=F.data.tables[0].rows[0];L?(w("DelayCategoryId",L.DelayCategoryId),w("AssetId",L.DelayAreaAssetId),w("DelayCategoryName",L.DelayCategoryName),w("Color",L.DelayCategoryColor),h(L)):d("Category not found")}else d(F.message)}catch(F){d(F.message)}finally{s(!1)}})())},[t,e]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{id:"edit-category",title:"EDIT CATEGORY",open:t,handleClose:()=>n(!1),maxWidth:"sm",children:f.jsxs("form",{onSubmit:S(I),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:a?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}):f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[f.jsx("input",{type:"hidden",...C("DelayCategoryId"),value:p?.DelayCategoryId}),f.jsxs(D,{item:!0,xs:12,md:12,children:[f.jsx(je,{...C("DelayCategoryName",{required:"Name is required",validate:T}),label:"Name",variant:"outlined",error:!!z.DelayCategoryName,fullWidth:!0,margin:"dense",autoComplete:"off"}),z.DelayCategoryName&&f.jsx("span",{className:r.errorLabel,children:z.DelayCategoryName.message})]})]}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:3,md:3,children:f.jsx(Ue,{name:"IsActive",control:x,render:({field:F})=>f.jsx(Ea,{checkboxValue:F.value,onCheckboxChange:F.onChange,label:"Is Active",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"AssetId",control:x,rules:{required:"Asset is required"},render:({field:F})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:M??[],getOptionLabel:L=>L.AssetName,onChange:(L,W)=>{F.onChange(W?W.AssetId:null)},renderInput:L=>f.jsxs(f.Fragment,{children:[f.jsx(je,{...L,label:"Asset",variant:"outlined",error:!!z.AssetId,size:"small",fullWidth:!0}),z.AssetId&&f.jsx("span",{className:r.errorLabel,children:z.AssetId.message})]}),value:M?.find(L=>L.AssetId===F.value)})})}),f.jsx(D,{item:!0,xs:3,md:3,className:r.colorPicker,children:f.jsx(Ue,{name:"Color",control:x,rules:{required:"Color is required"},render:({field:F})=>f.jsxs(ja,{fullWidth:!0,margin:"dense",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(T3e,{onChange:(L,W)=>F.onChange(W),color:F.value,disabled:!1,label:"Color"}),z.Color&&f.jsx("span",{className:r.errorLabel,children:z.Color.message})]})})})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"CANCEL"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Fe,{fullWidth:!0,startIcon:l&&f.jsx(Kt,{size:"1rem"}),disabled:l,variant:"contained",color:"primary",type:"submit",children:"SAVE"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:O,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:O,children:"The category was edited successfully"})})]})}),f.jsx(E3e,{show:g,onHide:P,title:"WARNING",message:`The category "${v}" already exists. Do you want to proceed?`,isLoading:l}),f.jsx(Mt,{error:u,onHide:()=>d("")})]})},uzi=Rt(e=>({root:{"& .MuiSelect-root":{backgroundColor:"#FFF"}},inputLabel:{position:"absolute",top:-6,left:8,fontSize:11.3,backgroundColor:"#FFF",color:"#0000008A",width:"auto",height:"auto",zIndex:100,padding:"0 3px",borderRadius:3,fontWeight:400,lineHeight:"1.1876em",letterSpacing:"0.04208em",fontFamily:"'Roboto', 'Helvetica', 'Arial', sans-serif",textAlign:"center",margin:"0 auto"}})),dzi=()=>{const e=uzi(),{state:{assetCodes:t,assetIdToFilter:n},actions:{setAssetIdToFilter:r}}=EM(),i=o=>{const a=o.target.value;r(a)};return f.jsxs("div",{className:e.root,style:{position:"relative"},children:[f.jsx("p",{className:e.inputLabel,children:"Assets"}),f.jsxs(ls,{variant:"outlined",margin:"dense",labelId:"demo-simple-select-label",id:"demo-simple-select",value:n,onChange:i,style:{minWidth:"100%"},children:[f.jsx(sr,{style:{fontWeight:"bold"},value:0,children:f.jsx("em",{children:"All"})}),t?.map(o=>f.jsx(sr,{value:o.AssetId,children:f.jsx(D,{container:!0,alignItems:"center",children:o.AssetName})},`logId-${o.AssetId}`))]})]})},pzi=()=>f.jsx(D,{container:!0,item:!0,md:10,xs:12,spacing:2,justifyContent:"flex-start",alignItems:"center",style:{padding:"8px 8px 8px 0"},children:f.jsx(D,{item:!0,md:2,xs:6,children:f.jsx(dzi,{})})}),hzi=({getCatalogCategoriesFromAPI:e,isLoading:t})=>{const[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(null),[u,d]=b.useState(null),{getMenuOptions:p}=ZOi({setCategoryId:c,setShowEditModal:o,setShowDeleteModal:s,setShowCreateModal:r}),{showContextMenu:h,registerConfig:g}=ks(),{rows:m,columnDefs:v}=nzi({setCategoryId:c,setShowEditModal:o,setShowDeleteModal:s,showContextMenu:h}),{state:{assetIdToFilter:y}}=EM(),M=w=>{c(w.data.DelayCategoryId),o(!0)},C=b.useCallback(w=>{const S=w.node?.data;return h(event,S,"categoriesContext"),[]},[m]);b.useEffect(()=>{t?u?.showLoadingOverlay():u?.hideOverlay()},[t,m,u]),b.useEffect(()=>{g({id:"categoriesContext",getOptions:p})},[]);const x=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsxs(D,{item:!0,md:12,xs:12,children:[f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Delays Categories"}),f.jsx(pzi,{})]}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:x.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:m||[],columnDefs:v,getRowId:w=>w.data.DelayCategoryId,animateRows:!0,rowSelection:"single",getContextMenuItems:C,onRowDoubleClicked:M,onGridReady:w=>d(w.api)})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW CATEGORY"})})]})]}),f.jsx(szi,{show:n,onHide:w=>{r(!1),w&&e(y)},refreshData:e}),f.jsx(czi,{show:i,onHide:w=>{o(!1),w&&e(y)},DelayCategoryId:l}),f.jsx(lzi,{show:a,onHide:w=>{s(!1),w&&e(y)},DelayCategoryId:l})]})},fzi=e=>{const{state:t,state:{assetIdToFilter:n},actions:{setAssetCodes:r,setCategories:i}}=EM(),[o,a]=b.useState(!0),[s,l]=b.useState(!1),[c,u]=b.useState(""),d=async(h=null)=>{l(!0);const m=await bj(h,h!==0);m.ok?i(m.data.tables[0].rows):u(m.message),l(!1)},p=async()=>{a(!0);const h=await rzi();h.ok?r(h.data.tables[0].rows):u(h.message),a(!1)};return b.useEffect(()=>{p()},[]),b.useEffect(()=>{!o&&n!==null&&d(n)},[o,n]),o||s?f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})}):t.categories?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(hzi,{isLoading:s,setIsLoading:l,getCatalogCategoriesFromAPI:d})})})}):f.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[f.jsx(Mt,{error:c,onHide:()=>u("")}),f.jsx(Cn,{})]})},gzi={AssetId:null,ParentAssetId:1,AssetName:"",IsAsset:!1,CanBeDefaultAsset:!1,ParentAssetName:"",IsBranch:null},mzi={openAssets:{},allAssetNodes:[],allNodesLoading:!1,anchorPoint:{x:0,y:0},assetCodes:{},assetTreeId:1,assetTreeName:null,assetNodeSelectedInTree:gzi},oY=Ni({name:"__",initialState:mzi,reducers:{setOpenAssets(e,{payload:t}){e.openAssets=t},setAllAssetNodes(e,{payload:t}){e.allAssetNodes=t},seAllNodesLoading(e,{payload:t}){e.allNodesLoading=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t},setAssetTreeId(e,{payload:t}){e.assetTreeId=t},setAssetTreeName(e,{payload:t}){e.assetTreeName=t},setAssetCodes(e,{payload:t}){e.assetCodes=t},setAssetNodeSelectedInTree(e,{payload:t}){e.assetNodeSelectedInTree=t},setParentAssetNameInNodeSelectedInTree(e,{payload:t}){e.assetNodeSelectedInTree.ParentAssetName=t}}}),vzi=b.createContext({state:oY.getInitialState(),actions:oY.actions}),bzi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:oY.getInitialState(),reducers:oY.caseReducers});return f.jsx(vzi.Provider,{value:{state:t,actions:n},children:e})},yzi=e=>f.jsx(bzi,{children:f.jsx(vj,{children:f.jsx(fzi,{})})}),o6={DelayAreaAssetId:0,DelayCodeId:null,DelayCodeName:"",DelayCategoryId:0,DelayCategoryName:"",ParentDelayCodeId:0,ParentDelayCodeName:"",DelayCategoryColor:"",IsDelayManual:!1,IsBranch:!1,IsActive:!0},Mzi={openDelays:{},allDelayNodes:[],allNodesLoading:!1,anchorPoint:{x:0,y:0},dataToCreateDelay:o6,menuContextDelayId:void 0,showContextMenu:!1,showCreateNewContextMenu:!1,allDelayCodes:{},delayCodes:{},delayTreeId:1,delayTreeName:null,delayNodeSelectedInTree:o6},aY=Ni({name:"__",initialState:Mzi,reducers:{setOpenDelays(e,{payload:t}){e.openDelays=t},setDelayAreaAsset(e,{payload:t}){e.delayAreaAsset=t},setAllDelayNodes(e,{payload:t}){e.allDelayNodes=t},seAllNodesLoading(e,{payload:t}){e.allNodesLoading=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t},setMenuContextDelayId(e,{payload:t}){e.menuContextDelayId=t},setShowContextMenu(e,{payload:t}){e.showContextMenu=t},setShowCreateNewContextMenu(e,{payload:t}){e.showCreateNewContextMenu=t},setDataToCreateDelay(e,{payload:t}){e.dataToCreateDelay=t},setDelayNameToCreateDelay(e,{payload:t}){e.dataToCreateDelay.DelayCodeName=t},setDelayParentDelayIdToCreateDelay(e,{payload:t}){e.dataToCreateDelay.ParentDelayCodeId=t},setDelayTreeId(e,{payload:t}){e.delayTreeId=t},setDelayTreeName(e,{payload:t}){e.delayTreeName=t},setDelayCodes(e,{payload:t}){e.delayCodes=t},setAllDelayCodes(e,{payload:t}){e.allDelayCodes=t},setDelayNodeSelectedInTree(e,{payload:t}){e.delayNodeSelectedInTree=t},setDelayParentNameToCreateDelay(e,{payload:t}){e.dataToCreateDelay.ParentDelayCodeName=t},setDelayCategoryToCreateDelay(e,{payload:t}){e.dataToCreateDelay.DelayCategoryId=t}}}),Izt=b.createContext({state:aY.getInitialState(),actions:aY.actions}),jb=()=>b.useContext(Izt),gte=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:aY.getInitialState(),reducers:aY.caseReducers});return f.jsx(Izt.Provider,{value:{state:t,actions:n},children:e})},Pzt=async e=>{const t=new Ye,n=[];return n.push({name:"DelayAreaAssetId",value:e.DelayAreaAssetId}),n.push({name:"DelayCodeId",value:e.DelayCodeId}),n.push({name:"DelayCodeName",value:e.DelayCodeName}),n.push({name:"ParentDelayCodeId",value:e.ParentDelayCodeId===0?null:e.ParentDelayCodeId}),n.push({name:"DefaultDelayCategoryId",value:e.DelayCategoryId}),n.push({name:"IsActive",value:e.IsActive}),await t.callV2("[DEL].[UpsertDelayCode]",n)},Czi=async e=>{const t=new Ye,n=[];return n.push({name:"DelayCodeId",value:e}),await t.callV2("[DEL].[DeleteDelayCode]",n)},Dzt=async e=>{const t=new Ye,n=[];return e&&n.push({name:"DelayAreaAssetId",value:e}),await t.callV2("[DEL].[GetDelayCodes]",n)},kzt=async e=>{const t=new Ye,n=[];return n.push({name:"DelayCodeId",value:e}),await t.callV2("[DEL].[GetDelayCode]",n)},xzi=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"DelayCodeId",value:e.join(",")}),r.push({name:"AboveDelayCodeId",value:t}),await n.callV2("[Del].[ReorderDelayCode]",r)},Lzt=e=>({id:e.DelayCodeId,parent:e.ParentDelayCodeId?e.ParentDelayCodeId:0,text:e.DelayCodeName,data:{fileType:"csv",fileSize:""},droppable:e.IsBranch}),R3e=({setSearchError:e,setAllDelayLoading:t})=>{const{actions:{setAllDelayNodes:n,setAllDelayCodes:r}}=jb();return{searchDelays:o=>{Dzt(o).then(a=>{if(a.ok){let s=[];const l=Ot(a,"data.tables[0].rows",[]);l.forEach(c=>{const u=Lzt(c);s=[...s,u]}),r(l),n(s),t(!1)}else e(a.message)})}}},I3e=e=>{if(e.droppable)return f.jsx(q3,{});switch(e.fileType){case"image":return f.jsx(nOt,{});case"csv":return f.jsx(rOt,{});case"text":return f.jsx(tOt,{});default:return null}},wzi=Rt(e=>({root:{alignItems:"center",display:"flex",height:"32px"},customNodeRoot:{listStyleType:"none",margin:0,padding:0},arrow:{alignItems:"center",cursor:"pointer",display:"flex",height:"24px",justifyContent:"center",width:"24px",transition:"transform linear 0.1s",transform:"rotate(0deg)"},"arrow > div":{alignItems:"center",display:"flex"},"arrow.is-open":{transform:"rotate(90deg)"},filetype:{display:"flex"},label:{paddingInlineStart:"8px"},selected:{backgroundColor:"#e8f0fe"},dragging:{opacity:.5}})),Szi=`
  ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
`,Azi=({setContextMenuOver:e,onDoubleClick:t,testIdPrefix:n="",isSelected:r,...i})=>{const{state:{openDelays:o},actions:{setOpenDelays:a}}=jb(),{id:s,droppable:l,data:c}=i.node,u=i.depth*24,d=wzi(),p=`${d.customNodeRoot} ${d.root} ${r?d.selected:""}`,h=y=>{i.onClick(y,i.node)},g=y=>{if(y.stopPropagation(),o[s]){const M={...o};delete M[s],a(M)}else a({...o,[s]:s});i.onToggle()},m=b.useCallback(y=>{y.stopPropagation(),y.preventDefault(),e(i.node,y)},[s,e]),v=b.useCallback(y=>{y.stopPropagation(),y.preventDefault(),t(i.node,y),e({id:"",parent:"",text:"",droppable:!1},y)},[s,t]);return b.useEffect(()=>(a({...o,[s]:s}),i.containerRef.current?.addEventListener("contextmenu",m),i.containerRef.current?.addEventListener("dblclick",v),()=>{i.containerRef.current?.removeEventListener("contextmenu",m),i.containerRef.current?.removeEventListener("dblclick",v)}),[]),f.jsxs("div",{className:p,style:{paddingInlineStart:u},"data-node-id":s,onClick:h,title:`${i.node.id} - ${i.node.text}`,children:[f.jsx("style",{children:Szi}),i.node.droppable?f.jsx("div",{className:`${d.arrow} ${i.isOpen?d["arrow.is-open"]:""}`,children:f.jsx("div",{onClick:g,children:f.jsx(oQ,{"data-testid":`arrow-right-icon-${s}`})})}):null,f.jsx("div",{className:d.filetype,children:f.jsx(I3e,{droppable:l,fileType:c?.fileType})}),f.jsx("div",{className:d.label,children:f.jsx(bt,{variant:"body2",children:i.node.text})})]})},Ozi=Rt(e=>({root:{alignItems:"center",backgroundColor:"#1967d2",borderRadius:"4px",boxShadow:" 0 12px 24px -6px rgba(0, 0, 0, .25); 0 0 0 1px rgba(0, 0, 0, .08)",color:"#fff",display:"inline-grid",fontSize:"14px",gap:"8px",gridTemplateColumns:"auto auto",padding:"4px 8px",pointerEvents:"none"},icon:{alignItems:"center",display:"flex"},label:{alignItems:"center",display:"flex"}})),zzi=e=>{const t=Ozi(),n=e.monitorProps.item;return f.jsxs("div",{className:t.root,children:[f.jsx("div",{className:t.icon,children:f.jsx(I3e,{droppable:n.droppable,fileType:n?.data?.fileType})}),f.jsx("div",{className:t.label,children:n.text})]})},Tzi=Rt(e=>({root:{alignItems:"flex-start",backgroundColor:"#1967d2",borderRadius:"4px",boxShadow:"0 12px 24px -6px rgba(0, 0, 0, 0.25); 0 0 0 1px rgba(0, 0, 0, 0.08)",display:"flex",flexDirection:"column",gap:"4px",padding:"8px"},item:{alignItems:"center",color:"#fff",display:"inline-grid",fontSize:"14px",gap:"8px",gridTemplateColumns:"auto auto"},icon:{alignItems:"center",display:"flex"},label:{alignItems:"center",display:"flex"},badge:{border:"solid 2px #fff"}})),Ezi=e=>{const t=Tzi();return f.jsx(qot,{classes:{badge:t.badge},color:"error",badgeContent:e.dragSources.length,anchorOrigin:{vertical:"top",horizontal:"right"},children:f.jsx("div",{className:t.root,"data-testid":"custom-drag-preview",children:e.dragSources.map(n=>f.jsxs("div",{className:t.item,children:[f.jsx("div",{className:t.icon,children:f.jsx(I3e,{droppable:n.droppable||!1,fileType:n?.data?.fileType})}),f.jsx("div",{className:t.label,children:n.text})]}))})})},Rzi=({delay:e,selectedNodes:t,setSelectedNodes:n,isCtrlPressing:r,setIsDragging:i,setIsCtrlPressing:o,onDelayUpdateEnd:a,onDelayUpdateStart:s=()=>{}})=>{b.useEffect(()=>{const g=v=>{v.key.toLowerCase()==="escape"?n([]):(v.ctrlKey||v.metaKey)&&o(!0)},m=v=>{(v.key.toLowerCase()==="control"||v.key.toLowerCase()==="meta")&&o(!1)};return window.addEventListener("keydown",g),window.addEventListener("keyup",m),()=>{window.removeEventListener("keydown",g),window.removeEventListener("keyup",m)}},[]);const l=async(g,m)=>{let{dropTargetId:v}=m;v==0&&(v=1),s();const y=await xzi(t.map(M=>M.id),v);y.ok&&n([]),a(y)},c=g=>{n([g])},u=g=>{const m=t.map(y=>y.id);if(m.includes(g.id)||m.some(y=>zP(e,y,g.id)))return;let v=[...t];v=v.filter(y=>!zP(e,g.id,y.id)),v=[...v,g],n(v)};return{handleDrop:l,handleCtrlClick:(g,m)=>{g.ctrlKey||g.metaKey?u(m):c(m)},handleDragEnd:()=>{i(!1),o(!1)},handleDragStart:g=>{const m=t.some(v=>v.id===g.id);if(i(!0),!(!r&&m)){if(!r){n([g]);return}t.some(v=>v.id===g.id)||n([...t,g])}}}},P3e=Rt(()=>({inputBase:{"& .MuiOutlinedInput-root":{height:"54px","& .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"}}}})),Izi=Rt(()=>({colorBadge:{width:"26px",height:"26px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:"bold",marginRight:"8px",marginLeft:"8px"},optionContainer:{display:"flex",alignItems:"center"}})),uM=({value:e,onChange:t,disabled:n=!1,assetId:r,error:i=""})=>{const[o,a]=b.useState([]),[s,l]=b.useState(""),[c,u]=b.useState(!1),d=Izi(),p=P3e();return b.useEffect(()=>{u(!0),bj(r,!0).then(h=>{h.ok?a(Ot(h.data,"tables[0].rows",[])):l(h.message),u(!1)}).catch(h=>{l(h.message),u(!1)})},[r]),f.jsxs(f.Fragment,{children:[f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:o??[],getOptionSelected:(h,g)=>h.DelayCategoryId===g.DelayCategoryId,getOptionLabel:h=>h.DelayCategoryName,onChange:(h,g)=>{t(g?g.DelayCategoryId:null)},renderOption:h=>f.jsxs("div",{className:d.optionContainer,children:[f.jsx("span",{className:d.colorBadge,style:{backgroundColor:h.DelayCategoryColor},children:h.DelayCategoryName.charAt(0).toUpperCase()}),h.DelayCategoryName]}),disabled:n,renderInput:h=>f.jsx(je,{...h,label:"Category",variant:"outlined",error:!!i,size:"small",fullWidth:!0,helperText:i,className:p.inputBase,InputProps:{...h.InputProps,startAdornment:e?f.jsx("span",{className:d.colorBadge,style:{backgroundColor:o.find(g=>g.DelayCategoryId===e)?.DelayCategoryColor||"#ccc"},children:o.find(g=>g.DelayCategoryId===e)?.DelayCategoryName.charAt(0).toUpperCase()}):null,endAdornment:f.jsx(f.Fragment,{children:c?f.jsx(Kt,{color:"inherit",size:20}):h.InputProps.endAdornment})}}),value:o.find(h=>h.DelayCategoryId===e)??null}),f.jsx(Mt,{error:s,onHide:()=>l("")})]})},mte=()=>{const{state:{allDelayCodes:e}}=jb(),{actions:{setDelayCodes:t}}=jb(),n=i=>{if(i===void 0)return;const o=i.reduce((s,l,c)=>(s[l.id]=c,s),{});let a;i.forEach(s=>{if(s.parentId===null){a=s;return}const l=i[o[s.parentId]];if(!l){console.log(s);return}l.children||(l.children=[]),l.children=[...l.children||[],s]}),t(a)};return{loadFilterDelays:()=>{const i=e.map(o=>({id:o.DelayCodeId,parentId:o.ParentDelayCodeId,name:o.DelayCodeName,isLeaf:!!o.IsLeaf,isActive:!0,children:[]}));n(i)}}},Pzi=Rt(e=>({root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"}},checkbox:{userSelect:"none"},modalTitle:{backgroundColor:"#ced2cc",color:"#495057",textAlign:"center"},modalTitleCloseWO:{backgroundColor:"#28a745",color:"white",textAlign:"center"},modalWarning:{color:"white",backgroundColor:"#dc3545",textAlign:"center"},messageTitle:{fontSize:15,fontWeight:"bold",color:"#0000008A"},formControl:{margin:e.spacing(2),minWidth:120},errorLabel:{fontSize:12,color:"#F44336"}})),Dzi=({show:e,onHide:t})=>{const n=Pzi(),[r,i]=b.useState("sm"),[o,a]=b.useState(""),[s,l]=b.useState(!1),{state:{categories:c}}=EM(),{state:{dataToCreateDelay:u,delayNodeSelectedInTree:d,delayCodes:p,allDelayCodes:h,delayAreaAsset:g},actions:{setDelayParentDelayIdToCreateDelay:m,setDelayParentNameToCreateDelay:v,setDelayNameToCreateDelay:y}}=jb(),{loadFilterDelays:M}=mte(),{control:C,handleSubmit:x,reset:w,setValue:S,formState:{errors:A}}=Gn({defaultValues:o6}),z=()=>{t(!1)},O=async I=>{l(!0);const P=await Pzt(I);P.ok?t(!0):(a(P.message),t(!1)),l(!1)},T=(I,P)=>{S("ParentDelayCodeId",parseInt(I)),m(parseInt(I)),v(P)};return b.useEffect(()=>{if(e)if(w(),M(),d?.DelayCategoryId){const I=h.find(P=>P.DelayCodeId===d?.DelayCodeId);v(I.DelayCodeName),S("ParentDelayCodeId",I.DelayCodeId),S("DelayCategoryId",d.DelayCategoryId),S("DelayAreaAssetId",g?g.AssetId:0)}else{const I=h.find(P=>P.ParentDelayCodeId===null);I&&(m(I.DelayCodeId),v(I.DelayCodeName),S("ParentDelayCodeId",I.DelayCodeId)),y(""),S("DelayCategoryId",c?c[0].DelayCategoryId:0),S("DelayAreaAssetId",g?g.AssetId:0)}},[e]),f.jsxs("div",{className:n.root,children:[f.jsx(We,{title:"NEW DELAY CODE",maxWidth:r,open:e,handleClose:()=>z(),children:f.jsx("form",{onSubmit:x(O),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"10px 30px"},children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:3,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayAreaAssetId",control:C,render:()=>f.jsx(f.Fragment,{children:f.jsx(je,{label:"Asset",variant:"outlined",value:g?.AssetName,disabled:!0,margin:"dense",size:"small",fullWidth:!0})})})}),f.jsx(D,{item:!0,md:9,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayCodeName",control:C,rules:{required:"Name is required"},render:({field:{onChange:I,value:P}})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Delay Code Name",variant:"outlined",error:!!A.DelayCodeName,fullWidth:!0,margin:"dense",size:"small",autoComplete:"off",onChange:I,value:P}),A.DelayCodeName&&f.jsx("span",{className:n.errorLabel,children:A.DelayCodeName.message})]})})})]}),f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:12,sm:12,xs:10,children:f.jsx(Ue,{name:"ParentDelayCodeId",control:C,rules:{required:"Parent is required"},render:({field:I})=>f.jsxs(f.Fragment,{children:[f.jsx(tD,{inputTitle:"Parent",title:"Delay Code Parent",dataSource:p,value:I.value,description:u?.ParentDelayCodeName,onSelect:(P,N)=>{I.onChange(P),T(P,N)},selectBranch:!0,selectActive:!1,selectInternal:!1}),A.ParentDelayCodeId&&f.jsx("span",{className:n.errorLabel,children:A.ParentDelayCodeId.message})]})})}),f.jsx(D,{item:!0,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayCategoryId",control:C,rules:{required:"Category is required"},render:({field:I})=>f.jsx(uM,{value:I.value,onChange:I.onChange,assetId:g?g.AssetId:null,error:A.DelayCategoryId?.message||""})})})]})]}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(D,{container:!0,justifyContent:"flex-end",style:{margin:0},children:f.jsxs(D,{container:!0,item:!0,style:{marginLeft:"auto",marginTop:5,marginBottom:0},children:[f.jsx(D,{item:!0,md:6,xs:12,style:{paddingLeft:"0",paddingRight:"16px"},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>z(),children:"Cancel"})}),f.jsx(D,{item:!0,md:6,xs:12,children:f.jsx(Fe,{fullWidth:!0,startIcon:s&&f.jsx(Kt,{size:"1rem"}),disabled:s,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})})})]})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]})},kzi=Rt(e=>({root:{"& .input-group-text":{display:"none"},"& .MuiDialogContent-dividers":{padding:0}},modalTitle:{backgroundColor:"#ced2cc",color:"#495057",textAlign:"center"},modalTitleCloseWO:{backgroundColor:"#28a745",color:"white",textAlign:"center"},modalWarning:{color:"white",backgroundColor:"#dc3545",textAlign:"center"},messageTitle:{fontSize:15,fontWeight:"bold",color:"#0000008A"},formControl:{margin:e.spacing(2),minWidth:120},errorLabel:{fontSize:12,color:"#F44336"},infoLabel:{fontSize:12,color:"#757575"}})),Lzi=({show:e,onHide:t})=>{const n=kzi(),[r,i]=b.useState(!0),[o,a]=b.useState("sm"),[s,l]=b.useState(!1),[c,u]=b.useState(""),[d,p]=b.useState(!1),{state:{delayNodeSelectedInTree:h}}=jb(),g=()=>{p(!1),t(!1)},m=(y,M)=>{M!=="clickaway"&&l(!1)},v=async()=>{p(!0);const y=await Czi(h.DelayCodeId);y.ok?(l(!0),p(!1),t(!0)):(p(!1),u(y.message))};return f.jsxs(f.Fragment,{children:[f.jsxs(Qu,{fullWidth:r,maxWidth:o,open:e,onClose:()=>g(),disableEnforceFocus:!0,className:n.root,children:[f.jsx(T0,{id:"responsive-dialog-title",children:"WARNING"}),f.jsx(ru,{children:f.jsxs(gM,{style:{padding:0,margin:0},children:["Be careful, once deleted you will not be able to recover this delay code ",f.jsx("b",{children:h?.DelayCodeName}),", are you sure you want to delete?"]})}),f.jsxs(Td,{style:{padding:"16px 24px"},children:[f.jsx(Fe,{onClick:()=>t(!1),autoFocus:!0,color:"default",children:"CANCEL"}),f.jsx(Fe,{autoFocus:!0,color:"secondary",startIcon:d&&f.jsx(Kt,{size:"1rem"}),onClick:v,children:"Delete"})]})]}),f.jsx(Mt,{error:c,onHide:()=>u("")}),f.jsx(pr,{open:s,autoHideDuration:2500,onClose:m,children:f.jsx(Pr,{severity:"info",onClose:m,children:"Asset removed succesfully"})})]})},_zi=Rt(e=>({root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"}},customDialog:{"& .MuiDivider-root:last-child":{display:"none"}},checkbox:{userSelect:"none","& .MuiOutlinedInput-root":{height:"51px"},margin:"8px 0px"},modalTitle:{backgroundColor:"#ced2cc",color:"#495057",textAlign:"center"},modalTitleCloseWO:{backgroundColor:"#28a745",color:"white",textAlign:"center"},modalWarning:{color:"white",backgroundColor:"#dc3545",textAlign:"center"},messageTitle:{fontSize:15,fontWeight:"bold",color:"#0000008A"},formControl:{margin:e.spacing(2),minWidth:120},errorLabel:{fontSize:12,color:"#F44336"}})),Nzi=({show:e,onHide:t})=>{const n=_zi(),[r,i]=b.useState("sm"),[o,a]=b.useState(""),[s,l]=b.useState(!1),[c,u]=b.useState(!1),{state:{delayAreaAsset:d,delayNodeSelectedInTree:p,delayCodes:h,allDelayCodes:g,dataToCreateDelay:m},actions:{setDelayParentDelayIdToCreateDelay:v,setDelayParentNameToCreateDelay:y,setDelayNameToCreateDelay:M}}=jb(),{loadFilterDelays:C}=mte(),{control:x,reset:w,setValue:S,handleSubmit:A,getValues:z,formState:{errors:O}}=Gn({defaultValues:p||o6}),T=()=>{t(!1)},I=(F,L)=>{S("ParentDelayCodeId",parseInt(F)),v(parseInt(F)),y(L)},N=A(async F=>{u(!0);const L=await Pzt(F);L.ok?(u(!1),t(!0)):(u(!1),a(L.message))});return b.useEffect(()=>{e&&(l(!0),w(),C(),p.DelayCodeId&&(async()=>{const F=await kzt(p.DelayCodeId??0);if(F.ok){if(F===void 0||F.data===void 0||F.data.tables===void 0||F.data.tables[0].rows===void 0||F.data.tables[0].rows[0]===void 0)return;const L=F.data.tables[0].rows[0];if(L){S("ParentDelayCodeId",L.ParentDelayCodeId);const W=g.find(H=>H.DelayCodeId===p?.ParentDelayCodeId);S("DelayAreaAssetId",L.DelayAreaAssetId),S("ParentDelayCodeName",W?.DelayCodeName),S("DelayCodeId",L.DelayCodeId),S("DelayCodeName",L.DelayCodeName),S("DelayCategoryId",L.DelayCategoryId),S("IsBranch",L?.IsBranch),l(!1)}}})())},[e]),s?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:f.jsx(Cn,{})}):f.jsx("div",{className:n.root,children:f.jsx(We,{maxWidth:r,title:"EDIT DELAY CODE",open:e,handleClose:()=>T(),children:f.jsx("form",{onSubmit:N,children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"10px 30px"},children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:3,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayAreaAssetId",control:x,render:()=>f.jsx(f.Fragment,{children:f.jsx(je,{label:"Asset",variant:"outlined",value:d?.AssetName,disabled:!0,margin:"dense",size:"small",fullWidth:!0})})})}),f.jsx(D,{item:!0,md:9,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayCodeName",control:x,rules:{required:"Name is required"},render:({field:{onChange:F,value:L}})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Delay Code Name",variant:"outlined",error:!!O.DelayCodeName,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:F,value:L}),O.DelayCodeName&&f.jsx("span",{className:n.errorLabel,children:O.DelayCodeName.message})]})})})]}),f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(Ue,{name:"ParentDelayCodeName",control:x,render:({field:F})=>f.jsx(f.Fragment,{children:p?.ParentDelayCodeId&&f.jsx(tD,{inputTitle:"Parent",title:"Delay Code Parent",dataSource:h,value:p?.ParentDelayCodeId||1,description:m?.ParentDelayCodeName,onSelect:(L,W)=>{F.onChange(L),I(L,W)},selectBranch:!0,selectActive:!1,selectInternal:!1})})})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(Ue,{name:"DelayCategoryId",control:x,rules:{required:"Category is required"},render:({field:F})=>f.jsx(uM,{value:F.value,onChange:F.onChange,assetId:z("DelayAreaAssetId")||null,error:O.DelayCategoryId?.message||""})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"IsBranch",control:x,defaultValue:!1,render:({field:F})=>f.jsx(Ue,{name:"IsBranch",control:x,defaultValue:!1,render:({field:L})=>f.jsx(Ea,{label:"Has Children",checkboxValue:L.value||!1,onCheckboxChange:L.onChange,className:n.checkbox})})})})]})]}),f.jsxs(D,{item:!0,md:12,xs:12,children:[f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(D,{container:!0,justifyContent:"flex-end",style:{margin:0},children:f.jsxs(D,{container:!0,item:!0,style:{marginLeft:"auto",marginTop:5,marginBottom:0},children:[f.jsx(D,{item:!0,md:6,xs:12,style:{paddingLeft:"0",paddingRight:"16px"},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>T(),children:"Cancel"})}),f.jsx(D,{item:!0,md:6,xs:12,children:f.jsx(Fe,{fullWidth:!0,startIcon:c&&f.jsx(Kt,{size:"1rem"}),disabled:c,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]})]})})})})},Fzi=Rt(e=>({root:{"& .input-group-text":{display:"none"},"& .MuiPaper-root":{height:"auto"},"& .MuiDialogContent-dividers":{borderBottom:"unset"}},customDialog:{"& .MuiDivider-root:last-child":{display:"none"}},checkbox:{userSelect:"none","& .MuiOutlinedInput-root":{height:"51px"},margin:"8px 0px"},modalTitle:{backgroundColor:"#ced2cc",color:"#495057",textAlign:"center"},modalTitleCloseWO:{backgroundColor:"#28a745",color:"white",textAlign:"center"},modalWarning:{color:"white",backgroundColor:"#dc3545",textAlign:"center"},messageTitle:{fontSize:15,fontWeight:"bold",color:"#0000008A"},formControl:{margin:e.spacing(2),minWidth:120},errorLabel:{fontSize:12,color:"#F44336"}})),Wzi=({show:e,onHide:t})=>{const n=Fzi(),[r,i]=b.useState("sm"),{state:{dataToCreateDelay:o,delayNodeSelectedInTree:a,delayAreaAsset:s,allDelayCodes:l}}=jb(),{control:c,reset:u,setValue:d,formState:{errors:p}}=Gn({defaultValues:o||o6}),h=()=>{t(!1)};return b.useEffect(()=>{e&&(u(),a.DelayCodeId&&(async()=>{const g=await kzt(a.DelayCodeId??0);if(g.ok){if(g===void 0||g.data===void 0||g.data.tables===void 0||g.data.tables[0].rows===void 0||g.data.tables[0].rows[0]===void 0)return;const m=g.data.tables[0].rows[0];if(m){d("ParentDelayCodeId",m.ParentDelayCodeId);const v=l.find(y=>y.DelayCodeId===a?.ParentDelayCodeId);d("ParentDelayCodeName",v?.DelayCodeName),d("DelayCodeId",m.DelayCodeId),d("DelayCodeName",m.DelayCodeName),d("DelayCategoryName",m.DelayCategoryName),d("IsBranch",m?.IsBranch)}}})())},[e]),f.jsx("div",{className:n.root,children:f.jsx(We,{maxWidth:r,title:"VIEW DELAY CODE",open:e,handleClose:()=>h(),children:f.jsx("form",{onSubmit:()=>{},children:f.jsx(D,{container:!0,style:{alignItems:"center"},children:f.jsxs(We.Content,{dividers:!0,style:{padding:"10px 30px"},children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:3,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayAreaAssetId",control:c,render:()=>f.jsx(f.Fragment,{children:f.jsx(je,{label:"Asset",variant:"outlined",value:s?.AssetName,disabled:!0,margin:"dense",size:"small",fullWidth:!0})})})}),f.jsx(D,{item:!0,md:9,sm:12,xs:10,children:f.jsx(Ue,{name:"DelayCodeName",control:c,rules:{required:"Name is required"},render:({field:{onChange:g,value:m}})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Delay Code Name",variant:"outlined",error:!!p.DelayCodeName,fullWidth:!0,disabled:!0,margin:"dense",autoComplete:"off",onChange:g,value:m}),p.DelayCodeName&&f.jsx("span",{className:n.errorLabel,children:p.DelayCodeName.message})]})})})]}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(Ue,{name:"ParentDelayCodeName",control:c,render:({field:{onChange:g,value:m}})=>f.jsx(f.Fragment,{children:a.ParentDelayCodeId&&f.jsx(je,{label:"Parent",variant:"outlined",error:!!p.ParentDelayCodeName,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:g,value:m||"Delay Charge",disabled:!0})})})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(Ue,{name:"DelayCategoryName",control:c,render:({field:{onChange:g,value:m}})=>f.jsx(f.Fragment,{children:f.jsx(je,{label:"Default Category",variant:"outlined",error:!!p.DelayCategoryName,fullWidth:!0,margin:"dense",autoComplete:"off",onChange:g,value:m,disabled:!0})})})}),f.jsx(D,{item:!0,xs:6,md:12,children:f.jsx(Ue,{name:"IsBranch",control:c,defaultValue:!1,render:({field:g})=>f.jsx(Ea,{label:"Has Children",checkboxValue:g.value||!1,onCheckboxChange:g.onChange,className:n.checkbox,disabled:!0})})})]})})})})})},qzi=Rt(e=>({root:{},contextMenu:{backgroundColor:"#F8F8F8",borderRadius:"4px",padding:"0",height:"auto",width:"170px",margin:"0",position:"fixed",listStyle:"none",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.15)",zIndex:1e3},menuItem:{padding:"6px 12px 6px 10px",cursor:"pointer",display:"flex",alignItems:"center",backgroundColor:"#F8F8F8",fontSize:"12px",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',"&:last-child":{borderBottom:"none"},"&:hover":{backgroundColor:"#d4edff"}},storyRoot:{display:"grid",height:"100%",gridTemplateRows:"auto 1fr",listStyleType:"none !important"},assetRoot:{boxSizing:"border-box",height:"100%",padding:"32px"},btnModal:{display:"flex",justifyContent:"flex-end",marginTop:20},dropTarget:{boxShadow:"0 0 0 1px #1967d2 inset"}})),Bzi=({delayAreaAssetId:e,delayAreaAssetName:t})=>{const[n,r]=b.useState([]),i=qzi(),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState(!1),[h,g]=b.useState(!1),[m,v]=b.useState(!1),[y,M]=b.useState(!1),[C,x]=b.useState(""),[w,S]=b.useState(""),[A,z]=b.useState(!1),[O,T]=b.useState(""),[I,P]=b.useState(!1),{state:{allDelayCodes:N,allDelayNodes:F,openDelays:L,showContextMenu:W,showCreateNewContextMenu:H,delayNodeSelectedInTree:j,anchorPoint:{x:G,y:q}},actions:{setShowContextMenu:$,setShowCreateNewContextMenu:U,setMenuContextDelayId:X,setAnchorPointX:Q,setAnchorPointY:re,setDelayNodeSelectedInTree:ee,setDelayAreaAsset:se}}=jb(),{searchDelays:pe}=R3e({setSearchError:S,setAllDelayLoading:z}),{handleDrop:te,handleCtrlClick:ce,handleDragStart:oe,handleDragEnd:ae}=Rzi({delay:F,selectedNodes:n,setSelectedNodes:r,setIsDragging:a,isCtrlPressing:s,setIsCtrlPressing:l,onDelayUpdateStart:()=>{z(!0)},onDelayUpdateEnd:de=>{de.ok?(P(!0),pe(e)):x(de.message)}}),ne=(de,ie)=>{ie!=="clickaway"&&P(!1)},le=de=>{W&&($(!1),X(void 0)),H&&(U(!1),X(void 0))},he=de=>{de.preventDefault(),$(!1);const ie=de.clientY,ue=de.clientX;Q(ue),re(ie),U(!0),ee(void 0)},be=(de,ie)=>{ie.preventDefault(),U(!1);const ue=ie.clientY,Ae=ie.clientX;Q(Ae),re(ue),r([de]),$(!0);const Ce=N.find(Ee=>Ee.DelayCodeId===de.id);Ce&&ee(Ce)},me=(de,ie)=>{ie.preventDefault(),u(!0);const ue=N.find(Ae=>Ae.DelayCodeId===de.id);ue&&(ee(ue),g(!0))},Me=()=>{g(!1),u(!1),U(!1),$(!1)};b.useEffect(()=>{se({AssetId:e,AssetName:t}),pe(e)},[]);const Oe=b.useMemo(()=>Object.keys(L).map(de=>parseInt(de)),[L]);return A?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:f.jsx(Cn,{})}):f.jsxs("div",{style:{width:"100%",height:"100%"},children:[f.jsx("div",{onClick:le,children:f.jsxs("div",{onContextMenu:he,children:[f.jsxs("div",{children:[f.jsxs(D,{container:!0,justifyContent:"flex-start",alignItems:"flex-start",className:i.root,children:[f.jsxs(bt,{variant:"h5",style:{margin:"20px 0 20px",fontWeight:600},children:["Delay Codes Tree"," ",t?`- ${t}`:""]}),A?f.jsx(D,{container:!0,style:{width:"100%",height:"100%"},children:f.jsx("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(Cn,{})})}):f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem",border:"1px solid #ccc"},children:f.jsx(D,{container:!0,alignItems:"center",children:f.jsx(D,{container:!0,style:{height:"60vh",overflowY:"auto",paddingBottom:10},children:f.jsx(D,{children:f.jsx(UZ,{rootId:0,initialOpen:Oe,tree:F,enableAnimateExpand:!0,sort:!1,classes:{root:i.assetRoot,dropTarget:i.dropTarget},onDrop:te,onDragStart:oe,onDragEnd:ae,canDrop:(de,ie)=>!n.some(ue=>ue.id===ie.dropTargetId),render:(de,ie)=>{const ue=n.some(Ae=>Ae.id===de.id);return f.jsx(Azi,{setContextMenuOver:be,node:de,...ie,isSelected:ue,isDragging:ue&&o,onClick:ce,onDoubleClick:me})},dragPreviewRender:de=>n.length>1?f.jsx(Ezi,{dragSources:n}):f.jsx(zzi,{monitorProps:de})})})})})}),f.jsx(Dzi,{show:d,onHide:de=>{p(!1),de&&pe(e)}}),f.jsx(Nzi,{show:y,onHide:de=>{M(!1),de&&pe(e)}}),f.jsx(Wzi,{show:h,onHide:()=>Me()}),f.jsx(Lzi,{show:m,onHide:de=>{v(!1),de&&pe(e)}}),f.jsx(D,{container:!0,justifyContent:"flex-end",children:f.jsx(D,{item:!0,md:3,sm:4,xs:12,className:i.btnModal,children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{margin:"0px 15px"},onClick:()=>p(!d),children:"NEW DELAY CODE"})})})]}),f.jsx(pr,{open:I,autoHideDuration:2500,onClose:ne,children:f.jsx(Pr,{severity:"success",onClose:ne,children:"Delay updated successfully"})})]}),W&&!c?f.jsxs("ul",{className:i.contextMenu,style:{top:q,left:G,padding:"6px 0"},children:[f.jsx(sr,{className:i.menuItem,onClick:()=>g(!0),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsx(D,{item:!0,md:2,xs:3,children:f.jsx(iOt,{style:{width:18}})}),f.jsx(D,{item:!0,md:9,xs:9,children:f.jsx("div",{style:{marginLeft:5},children:"View Delay Code"})})]})}),f.jsx(sr,{className:i.menuItem,onClick:()=>M(!0),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsx(D,{item:!0,md:2,xs:3,children:f.jsx(No,{style:{width:18}})}),f.jsx(D,{item:!0,md:9,xs:9,children:f.jsx("div",{style:{marginLeft:5},children:"Edit Delay Code"})})]})}),f.jsx(sr,{className:i.menuItem,onClick:()=>p(!0),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsx(D,{item:!0,md:2,xs:3,children:f.jsx(Zo,{style:{width:18}})}),f.jsx(D,{item:!0,md:9,xs:9,children:f.jsx("div",{style:{marginLeft:5},children:"New Delay Code"})})]})}),j?.IsBranch==!1&&f.jsx(sr,{className:i.menuItem,onClick:()=>v(!0),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsx(D,{item:!0,md:2,xs:3,children:f.jsx(Mo,{})}),f.jsx(D,{item:!0,md:9,xs:9,children:f.jsx("div",{style:{marginLeft:5},children:"Delete Delay Code"})})]})})]}):"",H?f.jsx("ul",{className:i.contextMenu,style:{top:q,left:G},children:f.jsx(sr,{className:i.menuItem,onClick:()=>p(!0),children:f.jsxs(D,{container:!0,style:{alignItems:"center"},children:[f.jsx(D,{item:!0,md:2,xs:3,children:f.jsx(Zo,{style:{width:18}})}),f.jsx(D,{item:!0,md:9,xs:9,children:f.jsx("div",{style:{marginLeft:5},children:"New Delay Code"})})]})})}):""]})}),f.jsx(Mt,{error:C,onHide:()=>x("")}),f.jsx(Mt,{error:O,onHide:()=>T("")}),f.jsx(Mt,{error:w,onHide:()=>S("")})]})},jzi=({delayAreaAssetId:e,delayAreaAssetName:t})=>f.jsx(f.Fragment,{children:f.jsx(pZ,{backend:hZ,children:f.jsx(Bzi,{delayAreaAssetId:e,delayAreaAssetName:t})})}),Hzi=({delayAreaAssetId:e,delayAreaAssetName:t})=>f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(jzi,{delayAreaAssetId:e,delayAreaAssetName:t})})}),Vzi=async()=>await new Ye().callV2("[MES].[GetAssets]",[]),NKe=e=>{const[t,n]=b.useState([]),[r,i]=b.useState(null),[o,a]=b.useState(!0),[s,l]=b.useState(null),c=async()=>{try{a(!0);const u=await Vzi();if(u.ok){const d=Ot(u,"data.tables[0].rows",[]);n(d)}else l("Error fetching assets")}catch{l("Error fetching assets")}finally{a(!1)}};return b.useEffect(()=>{if(t.length>0){const u=t.find(d=>d.AssetName===e.delayAreaAssetName)?.AssetId??null;i(u)}},[t,e.delayAreaAssetName]),b.useEffect(()=>{c()},[]),!r||o?null:s?f.jsx("div",{children:s}):f.jsx(gte,{children:f.jsx(vj,{children:f.jsx(Hzi,{delayAreaAssetId:r,delayAreaAssetName:e.delayAreaAssetName})})})},_zt=async()=>await new Ye().callV2("[LAB].[GetCatElements]",[]),Nzt=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.ElementId}),n.push({name:"Name",value:e.ElementName}),n.push({name:"Decimals",value:e.Decimals}),n.push({name:"Order",value:e.Order}),n.push({name:"Enabled",value:e.IsActive}),await t.callV2("[LAB].[UpsertCatElement]",n)},Gzi=async e=>{const t=new Ye,n=[];return n.push({name:"ElementId",value:e}),await t.callV2("[LAB].[GetCatElement]",n)},$zi={elements:null},sY=Ni({name:"__",initialState:$zi,reducers:{setElements(e,{payload:t}){e.elements=t}}}),Fzt=b.createContext({state:sY.getInitialState(),actions:sY.actions}),Wzt=()=>b.useContext(Fzt),Uzi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:sY.getInitialState(),reducers:sY.caseReducers});return f.jsx(Fzt.Provider,{value:{state:t,actions:n},children:e})},qzt={ElementId:null,ElementName:"",Decimals:4,Order:0,IsActive:!0},Xzi=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(""),{register:u,control:d,handleSubmit:p,reset:h,formState:{errors:g}}=Gn({defaultValues:qzt}),m=(y,M)=>{M!=="clickaway"&&s(!1)},v=async y=>{o(!0);const M=await Nzt(y);M.ok?(M.data.tables[0].rows[0].Id,o(!1),s(!0),t(),n()):c(M.message),o(!1)};return b.useEffect(()=>{e&&h()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"md","aria-labelledby":"contained-modal-title-vcenter",title:"	NEW ELEMENT",children:f.jsxs("form",{onSubmit:p(v),children:[f.jsx(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...u("ElementName",{required:!0}),label:"Name",variant:"outlined",error:!!g.ElementName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...u("Decimals",{required:!0}),label:"# Decimals",variant:"outlined",error:!!g.Decimals,fullWidth:!0,margin:"dense",type:"number",autoComplete:"off",onFocus:y=>y.target.select()})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...u("Order",{required:!0}),label:"Order",variant:"outlined",error:!!g.Order,fullWidth:!0,margin:"dense",type:"number",autoComplete:"off",onFocus:y=>y.target.select()})}),f.jsx(D,{item:!0,xs:12,md:6,alignContent:"center",children:f.jsx(Ue,{name:"IsActive",control:d,render:({field:y})=>f.jsx(Ea,{checkboxValue:y.value,onCheckboxChange:y.onChange,label:"Enabled",className:r.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:m,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:m,children:"The element was created successfully"})}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},Yzi=({elementId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(""),[l,c]=b.useState(!1),[u,d]=b.useState(!1),{register:p,control:h,setValue:g,handleSubmit:m,formState:{errors:v}}=Gn({defaultValues:qzt}),y=(C,x)=>{x!=="clickaway"&&o(!1)},M=async C=>{d(!0);const x=await Nzt(C);x.ok?(x.data.tables[0].rows[0].UserId,n(!0),o(!0)):s(x.message),d(!1)};return b.useEffect(()=>{t&&(d(!1),(async()=>{c(!0);const C=await Gzi(e);if(C.ok){const x=C.data.tables[0].rows[0];x&&(g("ElementId",x.ElementId),g("ElementName",x.ElementName),g("Decimals",x.Decimals),g("Order",x.Order),g("IsActive",x.IsActive),c(!1))}else s(C.message)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:t,handleClose:()=>n(!1),maxWidth:"md","aria-labelledby":"contained-modal-title-center",title:"	EDIT ELEMENT",children:f.jsxs("form",{onSubmit:m(M),children:[f.jsxs(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Kt,{})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...p("ElementName",{required:!0}),label:"Name",variant:"outlined",error:!!v.ElementName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...p("Decimals",{required:!0}),label:"# Decimals",variant:"outlined",error:!!v.Decimals,fullWidth:!0,margin:"dense",type:"number",autoComplete:"off",onFocus:C=>C.target.select()})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...p("Order",{required:!0}),label:"Order",variant:"outlined",error:!!v.Order,fullWidth:!0,margin:"dense",type:"number",autoComplete:"off",onFocus:C=>C.target.select()})}),f.jsx(D,{item:!0,xs:12,md:6,alignContent:"center",children:f.jsx(Ue,{name:"IsActive",control:h,render:({field:C})=>f.jsx(Ea,{checkboxValue:C.value,onCheckboxChange:C.onChange,label:"Enabled",className:r.checkbox})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:u?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:y,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:y,children:"The element was edited successfully"})}),f.jsx(Mt,{error:a,onHide:()=>s("")})]})},Kzi=({})=>{const{state:e}=Wzt();return{rows:e.elements?.map(i=>({...i}))||[],columns:[{field:"ElementName",headerName:"Name",minWidth:63,flex:1},{field:"Decimals",headerName:"Decimals",flex:1,minWidth:86},{field:"Order",headerName:"Order",flex:1,minWidth:63},{field:"IsActive",headerName:"Enabled",cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),flex:1,minWidth:86,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",type:["editButton"],flex:1,minWidth:80,maxWidth:80}],defaultColDef:{flex:1,autoHeight:!0,wrapText:!0,sortable:!0}}},Qzi=({getCatalogElementsFromAPI:e,isLoading:t})=>{const[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(null),[l,c]=b.useState(""),{rows:u,columns:d}=Kzi({}),{columnTypes:p}=ku({OnEdit:g=>{o(!i),s(g.ElementId)}}),h=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Elements"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:g=>c(g),label:"Search elements"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:h.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:u||[],columnDefs:d,getRowId:g=>g.data.ElementId,columnTypes:p,suppressContextMenu:!0,onRowDoubleClicked:g=>{s(g.data.ElementId),o(!0)},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW ELEMENT"})})]})]}),f.jsx(Xzi,{show:n,onHide:()=>r(!1),refreshData:e}),f.jsx(Yzi,{show:i,onHide:g=>{o(!1),s(null),g&&e()},elementId:a})]})},Zzi=e=>{const{state:t,actions:n}=Wzt(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await _zt();l.ok?(n.setElements(l.data.tables[0].rows),i(!1)):a(l.message)};return b.useEffect(()=>{s()},[]),t.elements?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(Qzi,{isLoading:r,getCatalogElementsFromAPI:s})})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},Jzi=e=>f.jsx(Uzi,{children:f.jsx(Zzi,{})}),e3i={mechanicalTests:null},lY=Ni({name:"__",initialState:e3i,reducers:{setMechanicalTests(e,{payload:t}){e.mechanicalTests=t}}}),Bzt=b.createContext({state:lY.getInitialState(),actions:lY.actions}),jzt=()=>b.useContext(Bzt),t3i=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:lY.getInitialState(),reducers:lY.caseReducers});return f.jsx(Bzt.Provider,{value:{state:t,actions:n},children:e})},D3e=async()=>await new Ye().callV2("[LAB].[GetCatMechanicalTests]",[]),Hzt=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.MechanicatTestId}),n.push({name:"Name",value:e.MechanicalTestName}),n.push({name:"Decimals",value:e.Decimals}),n.push({name:"Order",value:e.Order}),n.push({name:"UseInCircular",value:e.UseInCircular}),n.push({name:"Enabled",value:e.IsActive}),await t.callV2("[LAB].[UpsertCatMechanicalTest]",n)},n3i=async e=>{const t=new Ye,n=[];return n.push({name:"MechanicalTestId",value:e}),await t.callV2("[LAB].[GetCatMechanicalTest]",n)},Vzt={MechanicatTestId:null,MechanicalTestName:"",Decimals:4,Order:0,UseInCircular:!1,IsActive:!0},r3i=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(""),{register:u,control:d,handleSubmit:p,reset:h,formState:{errors:g}}=Gn({defaultValues:Vzt}),m=(y,M)=>{M!=="clickaway"&&s(!1)},v=async y=>{o(!0);const M=await Hzt(y);M.ok?(M.data.tables[0].rows[0].Id,o(!1),s(!0),t(),n()):c(M.message),o(!1)};return b.useEffect(()=>{e&&h()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"NEW MECHANICAL TEST",children:f.jsxs("form",{onSubmit:p(v),children:[f.jsx(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...u("MechanicalTestName",{required:!0}),label:"Name",variant:"outlined",error:!!g.MechanicalTestName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...u("Decimals",{required:!0}),label:"# Decimals",variant:"outlined",error:!!g.Decimals,fullWidth:!0,margin:"dense",type:"number",onFocus:y=>y.target.select(),autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...u("Order",{required:!0}),label:"Order",variant:"outlined",error:!!g.Order,fullWidth:!0,margin:"dense",type:"number",onFocus:y=>y.target.select(),autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"UseInCircular",control:d,render:({field:y})=>f.jsx(Ea,{checkboxValue:y.value,onCheckboxChange:y.onChange,label:"Use In Circular",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:d,render:({field:y})=>f.jsx(Ea,{checkboxValue:y.value,onCheckboxChange:y.onChange,label:"Enabled",className:r.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:m,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:m,children:"The mechanical test was created successfully"})}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},i3i=({mechanicalTestId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(""),[l,c]=b.useState(!1),[u,d]=b.useState(!1),{register:p,control:h,setValue:g,handleSubmit:m,formState:{errors:v}}=Gn({defaultValues:Vzt}),y=(C,x)=>{x!=="clickaway"&&o(!1)},M=async C=>{d(!0);try{const x=await Hzt(C);n(!0),o(!0)}catch(x){console.log(x)}};return b.useEffect(()=>{t&&(d(!1),(async()=>{c(!0);const C=await n3i(e);if(C.ok){const x=C.data.tables[0].rows[0];x&&(g("MechanicatTestId",x.MechanicatTestId),g("MechanicalTestName",x.MechanicalTestName),g("Decimals",x.Decimals),g("Order",x.Order),g("UseInCircular",x.UseInCircular),g("IsActive",x.IsActive),c(!1))}else s(C.message)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:t,handleClose:()=>n(!1),maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"EDIT MECHANICAL TEST",children:f.jsxs("form",{onSubmit:m(M),children:[f.jsxs(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...p("MechanicalTestName",{required:!0}),label:"Name",variant:"outlined",error:!!v.MechanicalTestName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...p("Decimals",{required:!0}),label:"# Decimals",variant:"outlined",error:!!v.Decimals,fullWidth:!0,margin:"dense",type:"number",onFocus:C=>C.target.select(),autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{...p("Order",{required:!0}),label:"Order",variant:"outlined",error:!!v.Order,fullWidth:!0,margin:"dense",type:"number",onFocus:C=>C.target.select(),autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"UseInCircular",control:h,render:({field:C})=>f.jsx(Ea,{checkboxValue:C.value,onCheckboxChange:C.onChange,label:"Use In Circular",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:h,render:({field:C})=>f.jsx(Ea,{checkboxValue:C.value,onCheckboxChange:C.onChange,label:"Enabled",className:r.checkbox})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:u?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:y,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:y,children:"The mechanical test was edited successfully"})}),f.jsx(Mt,{error:a,onHide:()=>s("")})]})},o3i=({})=>{const{state:e}=jzt();return{rows:e.mechanicalTests?.map(i=>({...i}))||[],columns:[{field:"MechanicalTestName",headerName:"Name",minWidth:20,flex:1},{field:"Decimals",headerName:"Decimals",flex:2,minWidth:86},{field:"Order",headerName:"Order",flex:1,minWidth:63},{field:"UseInCircular",headerName:"Use In Circular",cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),flex:1,maxWidth:120,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"IsActive",headerName:"Enabled",cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),flex:1,minWidth:86,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",type:["editButton"],flex:1,minWidth:80,maxWidth:80}],defaultColDef:{flex:1,autoHeight:!0,wrapText:!0,sortable:!0}}},a3i=({getCatalogMechanicalTestsFromAPI:e,isLoading:t})=>{const[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(null),[l,c]=b.useState(""),{rows:u,columns:d}=o3i({}),{columnTypes:p}=ku({OnEdit:g=>{o(!i),s(g.MechanicatTestId)}}),h=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Mechanical Tests"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:g=>c(g),label:"Search mechanical test"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:h.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:u||[],columnDefs:d,getRowId:g=>g.data.MechanicatTestId,columnTypes:p,suppressContextMenu:!0,onRowDoubleClicked:g=>{s(g.data.MechanicatTestId),o(!0)},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW MECHANICAL TEST"})})]})]}),f.jsx(r3i,{show:n,onHide:()=>r(!1),refreshData:e}),f.jsx(i3i,{show:i,onHide:g=>{o(!1),s(null),g&&e()},mechanicalTestId:a})]})},s3i=e=>{const{state:t,actions:n}=jzt(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await D3e();l.ok?(n.setMechanicalTests(l.data.tables[0].rows),i(!1)):a(l.message)};return b.useEffect(()=>{s()},[]),t.mechanicalTests?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(a3i,{isLoading:r,getCatalogMechanicalTestsFromAPI:s})})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},l3i=e=>f.jsx(t3i,{children:f.jsx(s3i,{})}),k3e=async()=>await new Ye().callV2("[LAB].[GetCatResultSources]",[]),Gzt=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.ResultSourceId}),n.push({name:"Name",value:e.ResultSourceName}),n.push({name:"Enabled",value:e.IsActive}),await t.callV2("[LAB].[UpsertCatResultSource]",n)},c3i=async e=>{const t=new Ye,n=[];return n.push({name:"ResultSourceId",value:e}),await t.callV2("[LAB].[GetCatResultSource]",n)},u3i={resultSources:null},cY=Ni({name:"__",initialState:u3i,reducers:{setResultSources(e,{payload:t}){e.resultSources=t}}}),$zt=b.createContext({state:cY.getInitialState(),actions:cY.actions}),Uzt=()=>b.useContext($zt),d3i=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:cY.getInitialState(),reducers:cY.caseReducers});return f.jsx($zt.Provider,{value:{state:t,actions:n},children:e})},Xzt={ResultSourceId:null,ResultSourceName:"",IsActive:!0},p3i=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(""),{register:u,control:d,handleSubmit:p,reset:h,formState:{errors:g}}=Gn({defaultValues:Xzt}),m=(y,M)=>{M!=="clickaway"&&s(!1)},v=async y=>{o(!0);const M=await Gzt(y);M.ok?(M.data.tables[0].rows[0].Id,o(!1),s(!0),t(),n()):c(M.message),o(!1)};return b.useEffect(()=>{e&&h()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"NEW RESULT SOURCE",children:f.jsxs("form",{onSubmit:p(v),children:[f.jsx(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...u("ResultSourceName",{required:!0}),label:"Name",variant:"outlined",error:!!g.ResultSourceName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsActive",control:d,render:({field:y})=>f.jsx(Ea,{checkboxValue:y.value,onCheckboxChange:y.onChange,label:"Enabled",className:r.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:m,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:m,children:"The result source was created successfully"})}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},h3i=({resultSourceId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(""),[l,c]=b.useState(!1),[u,d]=b.useState(!1),{register:p,control:h,setValue:g,handleSubmit:m,formState:{errors:v}}=Gn({defaultValues:Xzt}),y=(C,x)=>{x!=="clickaway"&&o(!1)},M=async C=>{d(!0);const x=await Gzt(C);x.ok?(x.data.tables[0].rows[0].Id,n(!0),o(!0)):s(x.message),d(!1)};return b.useEffect(()=>{t&&(d(!1),(async()=>{c(!0);const C=await c3i(e);if(C.ok){const x=C.data.tables[0].rows[0];x&&(g("ResultSourceId",x.ResultSourceId),g("ResultSourceName",x.ResultSourceName),g("IsActive",x.IsActive),c(!1))}else s(C.message)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:t,handleClose:()=>n(!1),maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"EDIT RESULT SOURCE",children:f.jsxs("form",{onSubmit:m(M),children:[f.jsxs(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...p("ResultSourceName",{required:!0}),label:"Name",variant:"outlined",error:!!v.ResultSourceName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsActive",control:h,render:({field:C})=>f.jsx(Ea,{checkboxValue:C.value,onCheckboxChange:C.onChange,label:"Enabled",className:r.checkbox})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:u?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:y,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:y,children:"The result source was edited successfully"})}),f.jsx(Mt,{error:a,onHide:()=>s("")})]})},f3i=({})=>{const{state:e}=Uzt();return{rows:e.resultSources?.map(i=>({...i}))||[],columns:[{field:"ResultSourceName",headerName:"Name",minWidth:20,flex:1},{field:"IsActive",headerName:"Enabled",cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),flex:1,minWidth:100,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",type:["editButton"],flex:1,minWidth:80,maxWidth:80}],defaultColDef:{flex:1,autoHeight:!0,wrapText:!0,sortable:!0}}},g3i=({getCatalogResultSourcesFromAPI:e,isLoading:t})=>{const[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(null),[l,c]=b.useState(""),{rows:u,columns:d}=f3i({}),{columnTypes:p}=ku({OnEdit:g=>{o(!i),s(g.ResultSourceId)}}),h=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Result Sources"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:g=>c(g),label:"Search result sources"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:h.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:u||[],columnDefs:d,getRowId:g=>g.data.ResultSourceId,columnTypes:p,suppressContextMenu:!0,onRowDoubleClicked:g=>{s(g.data.ResultSourceId),o(!0)},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW RESULT SOURCE"})})]})]}),f.jsx(p3i,{show:n,onHide:()=>r(!1),refreshData:e}),f.jsx(h3i,{show:i,onHide:g=>{o(!1),s(null),g&&e()},resultSourceId:a})]})},m3i=e=>{const{state:t,actions:n}=Uzt(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await k3e();l.ok?(n.setResultSources(l.data.tables[0].rows),i(!1)):a(l.message)};return b.useEffect(()=>{s()},[]),t.resultSources?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(g3i,{isLoading:r,getCatalogResultSourcesFromAPI:s})})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},v3i=e=>f.jsx(d3i,{children:f.jsx(m3i,{})}),b3i={sampleTypes:null},uY=Ni({name:"__",initialState:b3i,reducers:{setSampleTypes(e,{payload:t}){e.sampleTypes=t}}}),Yzt=b.createContext({state:uY.getInitialState(),actions:uY.actions}),Kzt=()=>b.useContext(Yzt),y3i=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:uY.getInitialState(),reducers:uY.caseReducers});return f.jsx(Yzt.Provider,{value:{state:t,actions:n},children:e})},Qzt=async()=>await new Ye().callV2("[LAB].[GetCatSampleTypes]",[]),Zzt=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.SampleTypeId}),n.push({name:"Name",value:e.SampleTypeName}),n.push({name:"Enabled",value:e.IsActive}),await t.callV2("[LAB].[UpsertCatSampleType]",n)},M3i=async e=>{const t=new Ye,n=[];return n.push({name:"SampleTypeId",value:e}),await t.callV2("[LAB].[GetCatSampleType]",n)},Jzt={SampleTypeId:null,SampleTypeName:"",IsActive:!0},C3i=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(""),{register:u,control:d,handleSubmit:p,reset:h,formState:{errors:g}}=Gn({defaultValues:Jzt}),m=(y,M)=>{M!=="clickaway"&&s(!1)},v=async y=>{o(!0);const M=await Zzt(y);M.ok?(M.data.tables[0].rows[0].Id,s(!0),t(),n()):c(M.message),o(!1)};return b.useEffect(()=>{e&&h()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"NEW SAMPLE TYPE",children:f.jsxs("form",{onSubmit:p(v),children:[f.jsx(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...u("SampleTypeName",{required:!0}),label:"Name",variant:"outlined",error:!!g.SampleTypeName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsActive",control:d,render:({field:y})=>f.jsx(Ea,{checkboxValue:y.value,onCheckboxChange:y.onChange,label:"Enabled",className:r.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:m,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:m,children:"The sample type was created successfully"})}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},x3i=({sampleTypeId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(""),[l,c]=b.useState(!1),[u,d]=b.useState(!1),{register:p,control:h,setValue:g,handleSubmit:m,formState:{errors:v}}=Gn({defaultValues:Jzt}),y=(C,x)=>{x!=="clickaway"&&o(!1)},M=async C=>{d(!0);const x=await Zzt(C);x.ok?(x.data.tables[0].rows[0].UserId,n(!0),o(!0)):s(x.message),d(!1)};return b.useEffect(()=>{t&&(d(!1),(async()=>{c(!0);const C=await M3i(e);if(C.ok){const x=C.data.tables[0].rows[0];x&&(g("SampleTypeId",x.SampleTypeId),g("SampleTypeName",x.SampleTypeName),g("IsActive",x.IsActive))}else s(C.message);c(!1)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:t,handleClose:()=>n(!1),maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"EDIT SAMPLE TYPE",children:f.jsxs("form",{onSubmit:m(M),children:[f.jsxs(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...p("SampleTypeName",{required:!0}),label:"Name",variant:"outlined",error:!!v.SampleTypeName,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsActive",control:h,render:({field:C})=>f.jsx(Ea,{checkboxValue:C.value,onCheckboxChange:C.onChange,label:"Enabled",className:r.checkbox})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:u?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:y,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:y,children:"The sample type was edited successfully"})}),f.jsx(Mt,{error:a,onHide:()=>s("")})]})},w3i=({})=>{const{state:e}=Kzt();return{rows:e.sampleTypes?.map(i=>({...i}))||[],columns:[{field:"SampleTypeName",headerName:"Name",flex:1,minWidth:60},{field:"IsActive",headerName:"Enabled",cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),flex:1,minWidth:60,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"actions",headerName:"",type:["nonSorteable","nonFilterable","editButton"],maxWidth:100}],defaultColDef:{flex:1,autoHeight:!0,wrapText:!0,sortable:!0}}},S3i=({getCatalogSampleTypesFromAPI:e,isLoading:t})=>{const[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(null),[l,c]=b.useState(""),{rows:u,columns:d}=w3i({}),{columnTypes:p}=ku({OnEdit:g=>{o(!i),s(g.SampleTypeId)}}),h=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Sample Types"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:g=>c(g),label:"Search sample types"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:h.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:u||[],columnDefs:d,getRowId:g=>g.data.SampleTypeId,columnTypes:p,suppressContextMenu:!0,onRowDoubleClicked:g=>{s(g.data.SampleTypeId),o(!0)},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW SAMPLE TYPE"})})]})]}),f.jsx(C3i,{show:n,onHide:()=>r(!1),refreshData:e}),f.jsx(x3i,{show:i,onHide:g=>{o(!1),s(null),g&&e()},sampleTypeId:a})]})},A3i=e=>{const{state:t,actions:n}=Kzt(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await Qzt();l.ok?(n.setSampleTypes(l.data.tables[0].rows),i(!1)):a(l.message)};return b.useEffect(()=>{s()},[]),t.sampleTypes?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(S3i,{isLoading:r,getCatalogSampleTypesFromAPI:s})})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},O3i=e=>f.jsx(y3i,{children:f.jsx(A3i,{})}),z3i={buckets:null},dY=Ni({name:"__",initialState:z3i,reducers:{setBuckets(e,{payload:t}){e.buckets=t}}}),e3t=b.createContext({state:dY.getInitialState(),actions:dY.actions}),t3t=()=>b.useContext(e3t),T3i=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:dY.getInitialState(),reducers:dY.caseReducers});return f.jsx(e3t.Provider,{value:{state:t,actions:n},children:e})},vte=async()=>await new Ye().callV2("[MS].[GetBuckets]",[]),n3t=async e=>{const t=new Ye,n=[];return n.push({name:"BucketId",value:e}),await t.callV2("[MS].[GetBucket]",n)},r3t=async e=>{const t=new Ye,n=[];return n.push({name:"BucketId",value:e.BucketId}),n.push({name:"BucketName",value:e.BucketName}),n.push({name:"Capacity",value:e.Capacity}),n.push({name:"IsActive",value:e.IsActive}),await t.callV2("[MS].[UpsertBucket]",n)},E3i=async e=>{const t=new Ye,n=[];return n.push({name:"BucketId",value:e}),await t.callV2("[MS].[DeleteBucket]",n)},R3i=({setBucketId:e,setShowEditModal:t,setShowDeleteModal:n,setShowCreateModal:r})=>({getMenuOptions:o=>{let a=[];return o?a=a.concat([{name:"New Bucket",key:"new_bucket",onClick:()=>{r(!0)},icon:f.jsx(Zo,{})},{name:"Edit Bucket",key:"edit_bucket",onClick:()=>{o.BucketId&&(e(o.BucketId),t(!0))},icon:f.jsx(No,{})},{name:"Delete Bucket",key:"delete_bucket",onClick:()=>{o.BucketId&&(e(o.BucketId),n(!0))},icon:f.jsx(Mo,{})}]):a=a.concat([{name:"New Bucket",key:"new_bucket",onClick:()=>{r(!0)},icon:f.jsx(Zo,{})}]),a}}),I3i=Rt(e=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),FKe={display:"flex",alignItems:"center",justifyContent:"center"},P3i=({setBucketId:e,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:r})=>{const{state:i}=t3t(),o=I3i(),a=i.buckets?.map(c=>({...c}))||[],[s]=b.useState([{field:"BucketName",headerName:"Name",minWidth:20,flex:3,cellStyle:FKe},{field:"Capacity",headerName:"Capacity",minWidth:20,flex:2,cellStyle:FKe},{cellRenderer:c=>f.jsx(D,{container:!0,justifyContent:"flex-end",alignItems:"flex-end",className:o.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},children:[f.jsx(Fe,{onClick:()=>{(async()=>(e(c.data.BucketId),t(!0)))()},children:f.jsx(No,{style:{height:"auto"},color:"primary"})}),f.jsx(Fe,{onClick:()=>{(async()=>(e(c.data.BucketId),n(!0)))()},children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Fe,{style:{},onClick:u=>r(u,c.data,"bucketsContext"),title:"Options",children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,minWidth:330,maxWidth:380,filter:!1,autoHeaderHeight:!0,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}}]);return{rows:a,columnDefs:s,defaultColDef:{sortable:!0}}},L3e={BucketId:null,BucketName:"",Capacity:null,IsActive:!0},_3e=Rt(e=>Mp({checkbox:{userSelect:"none"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"}})),D3i=({show:e,onHide:t,refreshData:n})=>{const r=_3e(),[i,o]=b.useState(!1),[a,s]=b.useState(""),[l,c]=b.useState(!1),{register:u,handleSubmit:d,reset:p,formState:{errors:h}}=Gn({defaultValues:L3e}),g=(M,C)=>{C!=="clickaway"&&c(!1)},m=M=>/^[a-zA-Z0-9 _-]*$/.test(M)||"No special characters",v=async M=>{o(!0);const C=await vte();C.ok?C.data.tables[0].rows.some(w=>w.BucketName===M.BucketName)?s("A bucket with this name already exists"):await y(M):s(C.message),o(!1)},y=async M=>{const C=await r3t(M);C.ok?(t(!0),c(!0),n()):(s(C.message),t(!1))};return b.useEffect(()=>{e&&p()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"NEW BUCKET",open:e,handleClose:()=>t(!1),id:"create-bucket-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:d(v),children:[f.jsx(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,children:[f.jsx(je,{...u("BucketName",{required:"Name is required",validate:m}),label:"Name",variant:"outlined",error:!!h.BucketName,fullWidth:!0,margin:"dense",autoComplete:"off"}),h.BucketName&&f.jsx("span",{className:r.errorLabel,children:h.BucketName.message})]}),f.jsxs(D,{item:!0,xs:12,children:[f.jsx(je,{...u("Capacity",{required:"Capacity is required",min:{value:0,message:"Capacity must be positive"}}),label:"Capacity",type:"number",variant:"outlined",error:!!h.Capacity,fullWidth:!0,margin:"dense",autoComplete:"off"}),h.Capacity&&f.jsx("span",{className:r.errorLabel,children:h.Capacity.message})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:i?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:g,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:g,children:"The bucket was created successfully"})})]})}),f.jsx(Mt,{error:a,onHide:()=>s(""),title:"Error Creating Bucket"})]})},k3i=({BucketId:e,show:t,onHide:n})=>{const r=_3e(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(),{register:g,setValue:m,handleSubmit:v,formState:{errors:y}}=Gn({defaultValues:L3e}),M=(x,w)=>{w!=="clickaway"&&o(!1)},C=async()=>{c(!0);const x=await E3i(e);x.ok?(n(!0),o(!0)):d(x.message),c(!1)};return b.useEffect(()=>{t&&(c(!1),(async()=>{s(!0);const x=await n3t(e);if(x.ok&&x.data&&x.data.tables&&x.data.tables[0].rows&&x.data.tables[0].rows[0]){const w=x.data.tables[0].rows[0];m("BucketId",w.BucketId),m("BucketName",w.BucketName),m("Capacity",w.Capacity),m("IsActive",w.IsActive),s(!1),h(w)}})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"DELETE BUCKET",open:t,handleClose:()=>n(!1),id:"delete-bucket-modal",maxWidth:"lg",children:f.jsxs("form",{onSubmit:v(C),children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!a&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...g("BucketName"),label:"Name",variant:"outlined",fullWidth:!0,value:p?.BucketName,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{...g("Capacity"),label:"Capacity",type:"number",variant:"outlined",fullWidth:!0,value:p?.Capacity,margin:"dense",autoComplete:"off",disabled:!0})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:l?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:l,variant:"contained",color:"secondary",type:"submit",children:"Delete"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:M,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:M,children:"The bucket was deleted successfully"})}),f.jsx(Mt,{error:u,onHide:()=>d(""),title:"Error Deleting Bucket"})]})},L3i=({BucketId:e,show:t,onHide:n})=>{const r=_3e(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),{control:p,handleSubmit:h,reset:g,formState:{errors:m}}=Gn({defaultValues:L3e}),v=(M,C)=>{C!=="clickaway"&&o(!1)},y=async M=>{c(!0);const C=await r3t({...M,BucketId:e});C.ok?(o(!0),n(!0)):d(C.message),c(!1)};return b.useEffect(()=>{t&&(c(!1),s(!0),n3t(e).then(M=>{if(M.ok){const C=M.data.tables[0].rows[0];C&&g(C)}s(!1)}))},[t,e,g]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"EDIT BUCKET",open:t,handleClose:()=>n(!1),id:"edit-bucket-modal",maxWidth:"lg",children:f.jsxs("form",{onSubmit:h(y),children:[f.jsx(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:a?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}):f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"BucketName",control:p,rules:{required:"Name is required"},render:({field:M})=>f.jsx(je,{...M,label:"Name",variant:"outlined",error:!!m.BucketName,helperText:m.BucketName?.message,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"Capacity",control:p,rules:{required:"Capacity is required",min:{value:0,message:"Capacity must be positive"}},render:({field:M})=>f.jsx(je,{...M,label:"Capacity",type:"number",variant:"outlined",error:!!m.Capacity,helperText:m.Capacity?.message,fullWidth:!0,margin:"dense",autoComplete:"off"})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:l?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:l,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:v,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:v,children:"The bucket was edited successfully"})}),f.jsx(Mt,{error:u,onHide:()=>d(""),title:"Error Editing Bucket"})]})},_3i=({getBucketsFromAPI:e,isLoading:t})=>{const[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(null),[u,d]=b.useState(null),[p,h]=b.useState(""),{getMenuOptions:g}=R3i({setBucketId:c,setShowEditModal:o,setShowDeleteModal:s,setShowCreateModal:r}),{showContextMenu:m,registerConfig:v,show:y}=ks(),{rows:M,columnDefs:C}=P3i({setBucketId:c,setShowEditModal:o,setShowDeleteModal:s,showContextMenu:m}),x=A=>{c(A.data.BucketId),o(!0)},w=E.useCallback(A=>{const z=A.node?.data;return m(event,z,"bucketsContext"),[]},[M]);b.useEffect(()=>{v({id:"bucketsContext",getOptions:g})},[]);const S=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Buckets"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:p,onChange:A=>h(A),label:"Search buckets"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:S.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:M||[],columnDefs:C,onGridReady:A=>d(A.api),loading:t,getContextMenuItems:w,onRowDoubleClicked:x,quickFilterText:p,getRowId:A=>A.data.BucketId,rowSelection:"single"})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW BUCKET"})})]})]}),f.jsx(D3i,{show:n,onHide:A=>{r(!1),A&&e()},refreshData:e}),f.jsx(L3i,{show:i,onHide:A=>{o(!1),c(null),A&&e()},BucketId:l}),f.jsx(k3i,{show:a,onHide:A=>{s(!1),c(null),A&&e()},BucketId:l})]})},N3i=e=>{const{state:t,actions:n}=t3t(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await vte();l.ok?n.setBuckets(l.data.tables[0].rows):a(l.message),i(!1)};return b.useEffect(()=>{s()},[]),t.buckets?f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(_3i,{isLoading:r,getBucketsFromAPI:s})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},F3i=e=>f.jsx(T3i,{children:f.jsx(N3i,{})}),W3i={grades:null},pY=Ni({name:"__",initialState:W3i,reducers:{setGrades(e,{payload:t}){e.grades=t}}}),i3t=b.createContext({state:pY.getInitialState(),actions:pY.actions}),o3t=()=>b.useContext(i3t),q3i=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:pY.getInitialState(),reducers:pY.caseReducers});return f.jsx(i3t.Provider,{value:{state:t,actions:n},children:e})},a3t=()=>f.jsx("div",{style:{display:"flex",minHeight:"300px",justifyContent:"center",alignItems:"center"},children:f.jsx(Kt,{})}),s3t=async()=>await new Ye().callV2("[STEEL].[GetGrades]",[]),B3i=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.GradeId}),n.push({name:"Name",value:e.GradeName}),n.push({name:"Enabled",value:e.IsActive}),n.push({name:"Comments",value:e.Comments}),await t.callV2("[STEEL].[UpsertCatGrade]",n)},j3i=async e=>{const t=new Ye,n=[{name:"GradeId",value:e}];return await t.callV2("[STEEL].[DeleteGrade]",n)},l3t=async({gradeId:e,elementId:t,minValue:n,maxValue:r,aimValue:i})=>{const o=new Ye,a=[{name:"GradeId",value:e},{name:"ElementId",value:t},{name:"MinValue",value:n??null},{name:"MaxValue",value:r??null},{name:"AimValue",value:i??null}];return await o.callV2("[LAB].[UpsertGradeChemistryLimit]",a)},c3t=async({source:e,target:t})=>{const n=new Ye,r=[{name:"SourceGradeId",value:e},{name:"TargetGradeId",value:t}];return await n.callV2("[LAB].[CopyGradeChemistryLimits]",r)},H3i=async e=>{const t=new Ye,n=[{name:"GradeId",value:e}];return await t.callV2("[LAB].[GetCatGradeChemistryLimitsDE]",n)},V3i=async(e,t)=>{const n=new Ye,r=[{name:"GradeId",value:e},{name:"ElementId",value:t}];return await n.callV2("[LAB].[DeleteGradeChemistryLimit]",r)};var M5={},WKe;function G3i(){if(WKe)return M5;WKe=1;var e=ri(),t=ii();Object.defineProperty(M5,"__esModule",{value:!0}),M5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");return M5.default=i,M5}var $3i=G3i();const U3i=qn($3i),X3i=({setSelectedRowData:e,setShowModal:t,handleNewGrade:n})=>({getMenuOptions:i=>{let o=[];return o=o.concat([{name:"New Grade",key:"new_grade",onClick:()=>{n()},icon:f.jsx(Zo,{})}]),i&&(o=o.concat([{name:"Edit Grade",key:"edit_grade",onClick:()=>{e(i),t("update")},icon:f.jsx(No,{})},{name:"Delete Grade",key:"delete_grade",onClick:()=>{e(i),t("delete")},icon:f.jsx(Mo,{})},{name:"Duplicate Grade",key:"duplicate_grade",onClick:()=>{e({...i,GradeName:`${i.GradeName} (Copy)`,IsDuplicate:!0}),t("create")},icon:f.jsx(U3i,{})}])),o}}),Y3i=Rt(()=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),K3i=({setSelectedRowData:e,setShowModal:t,showContextMenu:n})=>{const{state:r}=o3t(),i=Y3i(),o={display:"flex",alignItems:"center",justifyContent:"center"};return{rows:r.grades?.map(l=>({...l}))||[],columnDefs:[{field:"GradeName",headerName:"Name",minWidth:20,flex:1,cellStyle:o,sortable:!0},{field:"-",cellRenderer:l=>f.jsx(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:i.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(Fe,{onClick:()=>{(async()=>(e(l.data),t("update")))()},title:"Edit",children:f.jsx(No,{style:{height:"auto"},color:"primary"})}),f.jsx(Fe,{onClick:()=>{e(l.data),t("delete")},title:"Delete",children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Fe,{onClick:()=>n(event,l.data,"gradeContext"),title:"Options",children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,maxWidth:180,filter:!1,autoHeaderHeight:!0}]}},Q3i=({show:e,onHide:t,selectedRowData:n})=>{const[r,i]=b.useState(!1),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await j3i(n?.GradeId);l.ok||a(l.message),t(!0),i(!1)};return f.jsxs(f.Fragment,{children:[f.jsxs(We,{title:"DELETE GRADE",open:e==="delete",handleClose:()=>t(!1),maxWidth:"md",children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:[r&&f.jsx(a3t,{}),!r&&f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(bt,{children:["Are you sure you want to delete"," ",f.jsx("strong",{children:n?.GradeName})," grade?"]})})})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"secondary",onClick:s,children:"DELETE"})})]})})]}),f.jsx(Mt,{error:o,onHide:()=>a("")})]})};var C5={},qKe;function Z3i(){if(qKe)return C5;qKe=1;var e=ri(),t=ii();Object.defineProperty(C5,"__esModule",{value:!0}),C5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutlineOutlined");return C5.default=i,C5}var J3i=Z3i();const N3e=qn(J3i),Bm=({message:e,onHide:t=()=>{}})=>{const n=(o,a)=>{a!=="clickaway"&&t()},[r,i]=b.useState(!0);return b.useEffect(()=>{i(e!==""&&e!==null)},[e]),f.jsx(pr,{open:r,autoHideDuration:2500,onClose:n,children:f.jsx(Pr,{elevation:6,severity:"success",onClose:n,children:e})})},p2e={GradeId:null,GradeName:"",IsDuplicate:!0,IsActive:!0,Comments:""},eTi=Rt(e=>({root:{"& .ag-icon-menu":{display:"none"},"& .ag-header-cell-label":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2vh"},"& .ag-header-cell-text":{textAlign:"center !important"},"& .ag-checkbox-input-wrapper":{margin:"0 10px"},"& .ag-cell":{alignItems:"center",padding:"0 !important",border:"unset !important",textAlign:"center"},"& .ag-header-cell":{padding:"0px !important",textAlign:"center !important",fontSize:10,display:"flex",alignItems:"center",justifyContent:"center"},"& .ag-cell-wrapper":{textAlign:"center"},"& .ag-menu-option":{cursor:"pointer"},"& .MuiDataGrid-row":{cursor:"pointer"},"& .MuiDataGrid-columnHeaderTitle, & .MuiTablePagination-caption":{fontWeight:"bold",fontSize:"12px"},"& .MuiDataGrid-columnHeaderTitleContainer":{padding:"0"},"& .MuiDataGrid-cell--textLeft":{fontSize:"12px"}},table:{height:"61vh",border:"4px solid #ccc",borderRadius:10,padding:10,margin:"20px 0 10px"}})),tTi=({gradeId:e,onSelectionChanged:t,elementsSelected:n,elementsOfGrade:r,show:i,onHide:o,setError:a,setNotificationMessage:s})=>{eTi();const[l,c]=b.useState(""),[u,d]=b.useState([]),[p,h]=b.useState(!1),[g,m]=b.useState(null),{handleSubmit:v}=Gn({mode:"onChange"}),y=async T=>{if(h(!0),g){const I=n.filter(N=>!r.some(L=>L.ElementId===N.ElementId)),P=r.filter(N=>!n.some(L=>L.ElementId===N.ElementId));I.map(async N=>{const F=await l3t({gradeId:e,elementId:N.ElementId});F.ok||(o(!1),a(F.message))}),P.map(async N=>{const F=await V3i(e,N.ElementId);F.ok||(o(!1),a(F.message))})}s("The elements were modified succesfully."),o(!0),h(!1)},M=async()=>{h(!0),a("");const T=await _zt();if(T.ok){const I=Ot(T,"data.tables[0].rows",[]);d(I)}else a(T.message);h(!1)},C=T=>{c(T.target.value)},x=T=>{T.api.applyColumnState({state:[{colId:"ElementName",sort:"asc",sortIndex:0}]})},w=b.useMemo(()=>u.map(({ElementId:T,ElementName:I})=>({ElementId:T,ElementName:I})),[u]),S=[{field:"",flex:1,maxWidth:100,checkboxSelection:!0,showDisabledCheckboxes:!0,sortIndex:1,sortable:!1},{field:"ElementName",headerName:"Element",flex:2,sortIndex:0,comparator:(T,I,P,N)=>{const F=P.isSelected(),L=N.isSelected();return F&&!L?-1:!F&&L?1:P.data.ElementName?.localeCompare(N.data.ElementName)}}];b.useMemo(()=>({resizable:!1,filter:!1,sortable:!0}),[]);const A=T=>{x(T);const I=T.api.getSelectedRows();t(I),T.api.onSortChanged()},z=b.useCallback(T=>{T.api.forEachNode(I=>{I.setSelected(!!I.data&&!gi(r.find(P=>P.ElementId===I.data.ElementId)))}),x(T)},[x]),O=b.useCallback(T=>{m(T.api)},[m]);return b.useEffect(()=>{g?.setGridOption("quickFilterText",l.trim())},[l,g]),b.useEffect(()=>{M().then(()=>{})},[]),f.jsx(f.Fragment,{children:f.jsx(We,{title:"COPY CHEMISTRIES LIMITS",open:i,handleClose:()=>o(!1),maxWidth:"sm",id:"ladle-modal",children:f.jsxs("form",{onSubmit:v(y),children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"20px 30px"},children:[f.jsx(D,{container:!0,md:12,xs:12,style:{padding:"0 0 10px",justifyContent:"space-between"},children:f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(je,{id:"outlined-basic",label:"Search",variant:"outlined",value:l,onChange:C,margin:"dense",style:{width:"100%"}})})}),f.jsx("div",{children:f.jsx("div",{style:{width:"100%",height:"40vh",border:"1px solid #e0e0e0",borderRadius:"5px"},children:f.jsx(Kn,{getRowId:T=>T.data.ElementId,onGridReady:O,rowData:w,columnDefs:S,onFirstDataRendered:z,rowSelection:"multiple",animateRows:!0,rowMultiSelectWithClick:!0,onSelectionChanged:A})})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 20px"},children:f.jsx(l2,{isSubmitLoading:!1,onHide:()=>o(!1)})})]})})})},u3t=({label:e,value:t,onChange:n=()=>{},fieldError:r,disabled:i=!1})=>{const[o,a]=b.useState([]),[s,l]=b.useState(!1),[c,u]=b.useState(""),d=async()=>{l(!0),u("");const p=await s3t();if(p.ok){const h=Ot(p,"data.tables[0].rows",[]);a(h)}else u(p.message);l(!1)};return b.useEffect(()=>{d().then(()=>{})},[]),f.jsxs(f.Fragment,{children:[f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:o||[],getOptionLabel:p=>p.GradeName,getOptionSelected:(p,h)=>p.GradeId===h.GradeId,disabled:i,renderInput:p=>f.jsx(je,{...p,label:e,variant:"outlined",fullWidth:!0,size:"small",error:!!r,helperText:r?.message,InputProps:{...p.InputProps,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(Kt,{color:"inherit",size:20}):p.InputProps.endAdornment})}}),value:o.find(p=>p.GradeId==t)||null,onChange:(p,h)=>{n(h?.GradeId)}}),f.jsx(Mt,{error:c,onHide:()=>u(""),title:"Error loading grades"})]})},nTi=({gradeId:e,show:t,onHide:n,setError:r,setNotificationMessage:i})=>{const[o,a]=b.useState(!1),s=fa(),{control:l,handleSubmit:c}=Gn({mode:"onChange",defaultValues:p2e}),u=async d=>{a(!0);const p=await c3t({source:d.GradeId,target:e});p.ok?(i("The chemistry limits were succesfully copied."),n(d.GradeId),s(`/configuration/steel-grade/${e}`)):r(p.message),a(!1)};return f.jsx(f.Fragment,{children:f.jsx(We,{title:"COPY CHEMISTRIES LIMITS",open:t,handleClose:()=>n(),maxWidth:"sm",id:"ladle-modal",children:f.jsxs("form",{onSubmit:c(u),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"20px 30px"},children:f.jsxs(D,{container:!0,style:{display:"flex",alignItems:"center"},children:[f.jsx(D,{item:!0,xs:5,children:f.jsx(bt,{variant:"h6",children:"Copy from Grade: "})}),f.jsx(D,{item:!0,xs:7,children:f.jsx(Ue,{name:"GradeId",control:l,rules:{required:"You have to select a grade"},render:({field:{onChange:d,value:p},fieldState:h})=>f.jsx(u3t,{label:"Grade",value:p,fieldError:h.error,onChange:d})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 20px"},children:f.jsx(l2,{isSubmitLoading:!1,onHide:()=>n()})})]})})})};var x5={},BKe;function rTi(){if(BKe)return x5;BKe=1;var e=ri(),t=ii();Object.defineProperty(x5,"__esModule",{value:!0}),x5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");return x5.default=i,x5}var iTi=rTi();const oTi=qn(iTi),d3t=Rt({input:{"& .MuiInputBase-root":{padding:"1px 0px 1px 2px !important"},"& .MuiOutlinedInput-input":{padding:"1px 0px 1px 4px !important",fontSize:"clamp(.7rem, 0.8rem, 1rem) !important"},"& label":{fontSize:"0.75rem !important"}}}),aTi=({label:e="C",element:t,disabled:n,refreshData:r,setError:i,setNotificationMessage:o})=>{const[a,s]=b.useState(!1),[l,c]=b.useState(!1),{control:u,handleSubmit:d,reset:p,watch:h}=Gn({mode:"onChange"}),g=d3t(),m=async v=>{if(c(!0),i(""),v.MinValue<0||v.MinValue>100){i("MinValue must be between 0 and 100."),c(!1);return}if(v.MaxValue<0||v.MaxValue>100){i("MaxValue must be between 0 and 100."),c(!1);return}if(v.MinValue>v.MaxValue){i("MinValue must be less than or equal to MaxValue."),c(!1);return}if(v.AimValue!==null&&(v.AimValue<v.MinValue||v.AimValue>v.MaxValue)){i("AimValue must be between MinValue and MaxValue."),c(!1);return}const y=await l3t({gradeId:v?.GradeId,elementId:v.ElementId,minValue:v.MinValue,maxValue:v.MaxValue,aimValue:v.AimValue});c(!1),y.ok?(o("Chemistry limit saved successfully"),await r()):i(y.message),s(!1)};return b.useEffect(()=>{p(t)},[t]),f.jsxs(D,{container:!0,md:12,spacing:1,children:[f.jsx(D,{item:!0,md:4,children:f.jsx(Ue,{name:"ElementName",control:u,render:()=>f.jsx(je,{variant:"outlined",value:t.ElementName,size:"small",fullWidth:!0,disabled:!0,className:g.input})})}),f.jsx(D,{item:!0,md:2,children:f.jsx(Ue,{name:"MinValue",control:u,render:({field:v,fieldState:{error:y}})=>f.jsx(je,{variant:"outlined",value:v.value,onChange:v.onChange,size:"small",fullWidth:!0,disabled:!a,error:!!y,helperText:y?.message,className:g.input})})}),f.jsx(D,{item:!0,md:2,children:f.jsx(Ue,{name:"MaxValue",control:u,render:({field:v,fieldState:{error:y}})=>f.jsx(je,{variant:"outlined",value:v.value,onChange:v.onChange,size:"small",fullWidth:!0,disabled:!a,error:!!y,helperText:y?.message,className:g.input})})}),f.jsx(D,{item:!0,md:2,children:f.jsx(Ue,{name:"AimValue",control:u,render:({field:v,fieldState:{error:y}})=>f.jsx(je,{variant:"outlined",value:v.value,onChange:v.onChange,size:"small",fullWidth:!0,disabled:!a,error:!!y,helperText:y?.message,className:g.input})})}),f.jsx(D,{item:!0,md:2,children:a?f.jsxs(f.Fragment,{children:[f.jsx(yn,{onClick:()=>s(!1),color:"secondary",size:"small",children:f.jsx(nQ,{style:{width:20,height:20}})}),f.jsx(yn,{onClick:d(m),type:"submit",size:"small",children:f.jsx(oTi,{style:{width:20,height:20,color:"green"}})})]}):f.jsx(yn,{onClick:()=>s(!0),title:`Edit '${e}'`,color:"primary",disabled:n,size:"small",children:f.jsx(No,{style:{width:20,height:20}})})})]})},sTi=({grade:e,modal:t,refreshData:n,onHide:r})=>{const[i,o]=b.useState(""),[a,s]=b.useState(""),[l,c]=b.useState(!1),[u,d]=b.useState(!1),p=d3t(),[h,g]=b.useState(!1),[m,v]=b.useState([]),[y,M]=b.useState([]),C=async()=>{c(!0),s("");const T=await H3i(e?.GradeId);if(T.ok){const I=ar(T,"data.tables[0].rows",[]);v(I),M(I)}else s(T.message);c(!1)},{reset:x,handleSubmit:w,control:S,formState:{dirtyFields:A},watch:z}=Gn({mode:"onChange"});Object.keys(A).length!==0||t=="create";const O=async T=>{if(c(!0),t!=="delete"){const I=await B3i({...T,GradeId:T.IsDuplicate?null:T.GradeId});if(I.ok){const P=ar(I,"data.tables[0].rows[0].Id",0);P&&await c3t({source:T.GradeId,target:P}),o("The grade was saved succesfully."),await n(),r({shouldUpdate:!0,close:!1,entityId:P})}else s(I.message)}c(!1)};return b.useEffect(()=>{t!==""&&(x(e||p2e),C().then(()=>{}),c(!1))},[t,e]),f.jsxs(f.Fragment,{children:[e===null&&t!=="create"?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"},children:f.jsx(bt,{children:"Select a grade or create a new one"})}):f.jsx("form",{onSubmit:w(O),children:f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,children:f.jsxs(D,{item:!0,container:!0,spacing:2,style:{margin:0},children:[f.jsxs(D,{item:!0,container:!0,spacing:2,alignItems:"center",children:[f.jsx(D,{item:!0,md:4,children:f.jsx(Ue,{name:"GradeName",control:S,render:({field:T})=>f.jsx(je,{variant:"outlined",value:T.value||"",onChange:T.onChange,size:"small",fullWidth:!0,className:p.input,label:"Grade Name"})})}),f.jsx(D,{item:!0,md:8,children:f.jsx(Ue,{name:"Comments",control:S,render:({field:T})=>f.jsx(je,{variant:"outlined",value:T.value||"",onChange:T.onChange,size:"small",fullWidth:!0,multiline:!0,rows:1,className:p.input,label:"Comments"})})})]}),f.jsxs(D,{item:!0,container:!0,spacing:2,alignItems:"center",justifyContent:"center",children:[f.jsx(D,{item:!0,md:4}),f.jsx(D,{item:!0,md:2,children:f.jsx(bt,{align:"center",style:{fontWeight:600},children:"MIN"})}),f.jsx(D,{item:!0,md:2,children:f.jsx(bt,{align:"center",style:{fontWeight:600},children:"MAX"})}),f.jsx(D,{item:!0,md:2,children:f.jsx(bt,{align:"center",style:{fontWeight:600},children:"AIM"})}),f.jsx(D,{item:!0,md:2})]}),f.jsx(D,{item:!0,container:!0,spacing:1,alignItems:"center",justifyContent:"center",style:{overflowY:"auto",height:"55vh",borderTop:"1px solid #dae3e8"},children:m.map((T,I)=>f.jsx(D,{item:!0,container:!0,children:f.jsx(aTi,{element:T,disabled:t!=="update",refreshData:()=>{n(),C()},setError:s,setNotificationMessage:o})},I))}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,md:1,xs:12,children:f.jsx(yn,{color:"primary",onClick:()=>g(!0),title:"Add new element",size:"small",children:f.jsx(N3e,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,md:5,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"outlined",color:"primary",size:"small",onClick:()=>{const T=z("GradeName");O({...p2e,GradeName:T}),d(!0)},children:"Copy Chemistries Limits"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",size:"small",onClick:()=>r({shouldUpdate:!1,close:!0}),children:"Close"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Fe,{fullWidth:!0,startIcon:l&&f.jsx(Kt,{size:"1rem"}),disabled:l,variant:"contained",color:"primary",type:"submit",size:"small",children:"Save"})})]})]})})}),f.jsx(Bm,{message:i,onHide:()=>o("")}),f.jsx(Mt,{error:a,onHide:()=>s("")}),f.jsx(nTi,{gradeId:e?.GradeId,show:u,onHide:T=>{T&&n(),d(!1)},setNotificationMessage:o,setError:s}),f.jsx(tTi,{gradeId:e?.GradeId,show:h,onHide:T=>{T&&n(),g(!1)},onSelectionChanged:M,elementsOfGrade:m,elementsSelected:y,setNotificationMessage:o,setError:s})]})},lTi=({isLoading:e,getCatalogGradesFromAPI:t,gradeId:n})=>{const r=Pd(),i=fa(),[o,a]=b.useState(""),[s,l]=b.useState(""),[c,u]=b.useState(null),[d,p]=b.useState(null),[h,g]=b.useState(""),{showContextMenu:m,registerConfig:v}=ks(),y=()=>{d&&d.deselectAll(),g("create"),u(null),i("/configuration/steel-grade/new")},{getMenuOptions:M}=X3i({setSelectedRowData:u,setShowModal:g,handleNewGrade:y}),{rows:C,columnDefs:x}=K3i({setSelectedRowData:u,setShowModal:g,showContextMenu:m}),{columnSimpleDefaults:w}=ku({OnEdit:O=>{g("update"),u(O)}}),S=O=>{d?.getFocusedCell()?.column.getColId()!=="-"&&O.node.isSelected()&&(u(O.data),g("update"),i(`/configuration/steel-grade/${O.data.GradeId}`))},A=E.useCallback(O=>{const T=O.node?.data;return m(event,T,"gradeContext"),T&&(O.api.deselectAll(),O.node?.setSelected(!0)),[]},[C]),z=({shouldUpdate:O,close:T,entityId:I})=>{if(T){g(""),u(null),d&&d?.deselectAll();return}I&&O&&setTimeout(()=>{const P=d?.getRowNode(String(I)),N=d?.paginationGetPageSize(),F=Math.floor((P?.rowIndex??0)/N);d?.paginationGoToPage(F),P?.setSelected(!0),u(P?.data)},0)};return b.useEffect(()=>{if(e)d?.showLoadingOverlay();else if(d?.hideOverlay(),n)if(n==="new")y();else{let O;if(d?.forEachNode(T=>{if(T.data.GradeId===Number(n))return O=T,!0}),O){const T=d?.paginationGetPageSize(),I=Math.floor((O.rowIndex??0)/T);d?.paginationGoToPage(I),O.setSelected(!0),u(O.data),g("update")}}},[e,d]),b.useEffect(()=>{v({id:"gradeContext",getOptions:M})},[]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,container:!0,justifyContent:"flex-start",children:[f.jsx(D,{item:!0,md:12,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:o,onChange:O=>a(O),label:"Search grades"})}),f.jsxs(D,{item:!0,md:4,xs:12,justifyContent:"flex-end",className:r.root,container:!0,style:{height:"68vh"},children:[f.jsx(D,{item:!0,xs:12,style:{height:"92%"},className:r.borderAgGridTable,children:f.jsx(Kn,{rowData:C||[],columnDefs:x,defaultColDef:w,rowHeight:35,headerHeight:35,animateRows:!0,rowSelection:"single",paginationAutoPageSize:!0,getContextMenuItems:A,onGridReady:O=>p(O.api),getRowId:O=>String(O.data.GradeId),loading:e,onRowSelected:S,quickFilterText:o})}),f.jsx(D,{item:!0,md:12,xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:y,endIcon:f.jsx(Zo,{}),children:"NEW GRADE"})})]}),f.jsx(D,{item:!0,container:!0,md:7,xs:12,className:r.borderAgGridTable,style:{marginLeft:"20px"},children:f.jsx(sTi,{grade:c,modal:h,refreshData:t,onHide:z})})]}),f.jsx(Mt,{error:s,onHide:()=>l("")}),f.jsx(Q3i,{show:h,onHide:O=>{O&&t(),u(null),g("")},selectedRowData:c})]})},cTi=e=>{const{state:t,actions:n}=o3t(),{gradeId:r}=Ms(),[i,o]=b.useState(!0),[a,s]=b.useState(""),l=async()=>{o(!0);const c=await s3t();c.ok?(n.setGrades(c.data.tables[0].rows),o(!1)):s(c.message)};return b.useEffect(()=>{l()},[]),t.grades?f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:12,xs:12,style:{padding:"0 15px"},children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Grades"})}),f.jsx(D,{item:!0,container:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(lTi,{gradeId:r,isLoading:i,getCatalogGradesFromAPI:l})})})]}),f.jsx(Mt,{error:a,onHide:()=>s("")})]}):f.jsx(a3t,{})},jKe=e=>f.jsx(q3i,{children:f.jsx(cTi,{})}),uTi={ladles:null},hY=Ni({name:"__",initialState:uTi,reducers:{setLadles(e,{payload:t}){e.ladles=t}}}),p3t=b.createContext({state:hY.getInitialState(),actions:hY.actions}),h3t=()=>b.useContext(p3t),dTi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:hY.getInitialState(),reducers:hY.caseReducers});return f.jsx(p3t.Provider,{value:{state:t,actions:n},children:e})},pTi=async()=>await new Ye().callV2("[MS].[GetLadles]",[]),hTi=async e=>{const t=new Ye,n=[];return n.push({name:"LadleId",value:e.LadleId}),n.push({name:"LadleName",value:e.LadleName}),n.push({name:"IsActive",value:e.Active}),await t.callV2("[MS].[UpsertLadle]",n)},fTi=async e=>{const t=new Ye,n=[];return n.push({name:"LadleId",value:e}),await t.callV2("[MS].[DeleteLadle]",n)},gTi=async e=>{const t=new Ye,n=[];return n.push({name:"LadleId",value:e}),await t.callV2("[MS].[GetLadle]",n)},mTi=({setLadleId:e,setShowModal:t})=>({getMenuOptions:r=>{let i=[];return r?i=i.concat([{name:"New Ladle",key:"new_ladle",onClick:()=>{t("create")},icon:f.jsx(Zo,{})},{name:"Edit Ladle",key:"edit_ladle",onClick:()=>{e(r.LadleId),t("update")},icon:f.jsx(No,{})},{name:"Delete Ladle",key:"delete_ladle",onClick:()=>{e(r.LadleId),t("delete")},icon:f.jsx(Mo,{})}]):i=i.concat([{name:"New Ladle",key:"new_ladle",onClick:()=>{t("create")},icon:f.jsx(Zo,{})}]),i}}),vTi=Rt(e=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),bTi=({setLadleId:e,setShowModal:t,showContextMenu:n})=>{const{state:r}=h3t(),i=vTi();return{rows:r.ladles?.map(s=>({...s}))||[],columnDefs:[{field:"LadleName",headerName:"Name",flex:1,minWidth:63,filter:!1,autoHeaderHeight:!0},{cellRenderer:s=>f.jsx(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:i.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[f.jsx(Fe,{onClick:()=>{(async()=>(e(s.data.LadleId),t("update")))()},title:"Edit",children:f.jsx(No,{style:{height:"auto"},color:"primary"})}),f.jsx(Fe,{onClick:()=>{(async()=>(e(s.data.LadleId),t("delete")))()},title:"Delete",children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Fe,{style:{},onClick:l=>n(l,s.data,"ladleContext"),title:"Options",children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,maxWidth:200,filter:!1,autoHeaderHeight:!0,cellStyle:{display:"flex",alignItems:"center",justifyContent:"center"}}]}},yTi={LadleId:null,LadleName:"",Active:!0},MTi=({LadleId:e,modal:t,onHide:n})=>{const[r,i]=b.useState("CREATE"),[o,a]=b.useState(""),[s,l]=b.useState(""),[c,u]=b.useState(!1),[d,p]=b.useState(!1),h=`The ladle was ${t}d successfully`,{control:g,setValue:m,reset:v,handleSubmit:y}=Gn({defaultValues:yTi,mode:"onChange"}),M=async C=>{if(p(!0),t==="delete"){const x=await fTi(C.LadleId);x.ok?(a(h),n(!0)):l(x.message)}else{const x=await hTi(C);x.ok?(a(h),n(!0)):l(x.message)}p(!1)};return b.useEffect(()=>{t!==""&&(p(!1),v(),i(t==="create"?"CREATE":t==="update"?"EDIT":"DELETE"),t!=="create"&&(async()=>{u(!0);const C=await gTi(e);if(C.ok){const x=Ot(C,"data.tables[0].rows[0]",null);x&&(m("LadleId",x.LadleId),m("LadleName",x.LadleName))}else{l(C.message);return}u(!1)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:`${r} LADLE`,open:t!=="",handleClose:()=>n(!1),maxWidth:"sm",id:"ladle-modal",children:f.jsxs("form",{onSubmit:y(M),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"10px 30px"},children:!c&&f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"LadleName",control:g,rules:{required:"Name is required"},render:({field:C,fieldState:{error:x}})=>f.jsx(je,{...C,label:"Name",variant:"outlined",fullWidth:!0,size:"small",error:!!x,helperText:x?.message,disabled:t==="delete"})})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:d,onHide:n,buttonLabel:t==="delete"?"Delete":"Save",buttonColor:t==="delete"?"secondary":"primary"})})]})}),f.jsx(Bm,{message:o,onHide:()=>a("")}),f.jsx(Mt,{error:s,onHide:()=>l(""),title:"Error In Ladle"})]})},CTi=({getCatalogLadlesFromAPI:e,isLoading:t})=>{const[n,r]=b.useState(""),[i,o]=b.useState(null),[a,s]=b.useState(null),[l,c]=b.useState(""),{getMenuOptions:u}=mTi({setLadleId:o,setShowModal:r}),{showContextMenu:d,registerConfig:p}=ks(),{rows:h,columnDefs:g}=bTi({setLadleId:o,setShowModal:r,showContextMenu:d}),{columnDefaults:m}=ku({OnEdit:x=>{r("update"),o(x.Id)}});m.floatingFilter=!1;const v=x=>{o(x.data.LadleId),r("update")},y=E.useCallback(x=>{const w=x.node?.data;return d(event,w,"ladleContext"),[]},[h]),M=x=>{x&&e().then(()=>{a?.paginationGoToLastPage()}),r("")};b.useEffect(()=>{t?a?.showLoadingOverlay():a?.hideOverlay()},[t,h,a]),b.useEffect(()=>{p({id:"ladleContext",getOptions:u})},[]);const C=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Ladles"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:x=>c(x),label:"Search ladles"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:C.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:h||[],columnDefs:g,getContextMenuItems:y,onRowDoubleClicked:v,getRowId:x=>String(x.data.LadleId),onGridReady:x=>s(x.api),enableCellTextSelection:!0,suppressContextMenu:!1,allowContextMenuWithControlKey:!1,rowSelection:"single",quickFilterText:l,loading:t})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r("create"),children:"NEW LADLE"})})]})]}),f.jsx(MTi,{LadleId:i,onHide:M,modal:n})]})},xTi=e=>{const{state:t,actions:n}=h3t(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await pTi();l.ok?n.setLadles(l.data.tables[0].rows):a(l.message),i(!1)};return b.useEffect(()=>{s()},[]),t.ladles?f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(CTi,{isLoading:r,getCatalogLadlesFromAPI:s})})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},wTi=e=>f.jsx(dTi,{children:f.jsx(xTi,{})}),STi={materials:null},fY=Ni({name:"__",initialState:STi,reducers:{setMaterials(e,{payload:t}){e.materials=t}}}),f3t=b.createContext({state:fY.getInitialState(),actions:fY.actions}),F3e=()=>b.useContext(f3t),ATi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:fY.getInitialState(),reducers:fY.caseReducers});return f.jsx(f3t.Provider,{value:{state:t,actions:n},children:e})},W3e=async()=>await new Ye().callV2("[STEEL].[GetMaterials]",[]),g3t=async e=>{const t=new Ye,n=[];return n.push({name:"MaterialId",value:e}),await t.callV2("[STEEL].[GetMaterial]",n)},m3t=async e=>{const t=new Ye,n=[];return n.push({name:"MaterialId",value:e.MaterialId}),n.push({name:"L1MaterialId",value:e.L1MaterialId}),n.push({name:"MaterialName",value:e.MaterialName}),n.push({name:"IsAlloy",value:e.IsAlloy}),n.push({name:"UseInEAF",value:e.UseInEAF}),n.push({name:"UseInTrim",value:e.UseInTrim}),n.push({name:"Enabled",value:e.Enabled}),await t.callV2("[STEEL].[UpsertMaterial]",n)},OTi=async e=>{const t=new Ye,n=[];return n.push({name:"MaterialId",value:e}),await t.callV2("[STEEL].[DeleteMaterial]",n)},zTi=({setMaterialId:e,setShowEditModal:t,setShowDeleteModal:n,setShowCreateModal:r})=>({getMenuOptions:o=>{let a=[];return o?a=a.concat([{name:"New Material",key:"new_material",onClick:()=>{r(!0)},icon:f.jsx(Zo,{})},{name:"Edit Material",key:"edit_material",onClick:()=>{e(o.MaterialId),t(!0)},icon:f.jsx(No,{})},{name:"Delete Material",key:"delete_material",onClick:()=>{e(o.MaterialId),n(!0)},icon:f.jsx(Mo,{})}]):a=a.concat([{name:"New Material",key:"new_material",onClick:()=>{r(!0)},icon:f.jsx(Zo,{})}]),a}}),TTi=Rt(e=>({buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",".ag-row-hover &":{opacity:1},".ag-row-focus &":{opacity:1},".ag-row-selected &":{opacity:1}}})),spe=e=>f.jsx(Qr,{checked:e.value,disabled:!0}),w5={display:"flex",alignItems:"center",justifyContent:"center"},ETi=({setMaterialId:e,setShowEditModal:t,setShowDeleteModal:n,showContextMenu:r})=>{const{state:i}=F3e(),o=TTi(),a=i.materials?.map(l=>({...l}))||[],[s]=b.useState([{field:"MaterialName",headerName:"Name",minWidth:20,flex:3,cellStyle:w5},{field:"L1MaterialId",headerName:"L1 Material ID",minWidth:20,flex:1,cellStyle:w5},{field:"IsAlloy",headerName:"Is Alloy",minWidth:20,flex:1,cellRenderer:spe,cellStyle:w5},{field:"UseInEAF",headerName:"Use in EAF",minWidth:20,flex:1,cellRenderer:spe,cellStyle:w5},{field:"UseInTrim",headerName:"Use in Trim",minWidth:20,flex:1,cellRenderer:spe,cellStyle:w5},{cellRenderer:l=>f.jsx(D,{container:!0,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},className:o.buttons,children:f.jsxs(D,{item:!0,xs:12,md:12,style:{display:"flex",justifyContent:"flex-end",alignItems:"center"},children:[f.jsx(Fe,{onClick:()=>{(async()=>(e(l.data.MaterialId),t(!0)))()},children:f.jsx(No,{style:{height:"auto"},color:"primary"})}),f.jsx(Fe,{onClick:()=>{(async()=>(e(l.data.MaterialId),n(!0)))()},children:f.jsx(Mo,{style:{height:"auto"},color:"secondary"})}),f.jsx(Fe,{style:{},onClick:c=>r(c,l.data,"catMaterialsTable"),children:f.jsx(Kf,{style:{height:"auto"},color:"action"})})]})}),wrapText:!1,autoHeight:!1,wrapHeaderText:!1,headerName:"",sortable:!1,flex:1,minWidth:330,maxWidth:380,filter:!1,autoHeaderHeight:!0}]);return{rows:a,columnDefs:s}},bte={MaterialId:null,L1MaterialId:null,MaterialName:"",IsAlloy:!1,UseInEAF:!1,UseInTrim:!1,Enabled:!0},RTi=({show:e,onHide:t,materialName:n})=>{const{reset:r}=Gn({defaultValues:bte});return b.useEffect(()=>{e&&r()},[e]),f.jsx(f.Fragment,{children:f.jsxs(We,{title:"CONFIRM",open:e,id:"confirm-material-modal",handleClose:()=>t(!1),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx("p",{children:`A material with the name '${n}' already exists . Do you want to proceed?`})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"No"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,onClick:()=>t(!0),variant:"contained",color:"primary",type:"submit",children:"Yes"})})]})})]})})},ITi=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(""),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[p,h]=b.useState(!1),{state:g}=F3e(),[m,v]=b.useState(""),{register:y,control:M,getValues:C,handleSubmit:x,reset:w,formState:{errors:S}}=Gn({defaultValues:bte}),A=(P,N)=>{N!=="clickaway"&&c(!1)},z=P=>/^[a-zA-Z0-9 _-]*$/.test(P)||"No special characters",O=P=>{const N=Number(P);return P===null?"Value cannot be null":g.materials?.some(F=>F.L1MaterialId===N)?"ID already exists in materials":!isNaN(P)||"Only numbers are allowed"},T=async P=>{o(!0);const N=await W3e();N.ok?N.data.tables[0].rows.some(L=>L.MaterialName===P.Name)?(v(P.Name),d(!0)):await I(P):s(N.message)},I=async P=>{const N=await m3t(P);N.ok?(t(!0),c(!0),n()):(s(N.message),t(!1)),o(!1)};return b.useEffect(()=>{u&&p?(d(!1),I(C()),t(!0)):t(!1),o(!1)},[u,p]),b.useEffect(()=>{e&&w()},[e]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(RTi,{show:u,onHide:P=>{d(P),h(P)},materialName:m}),f.jsx(We,{title:"NEW MATERIAL",open:e,handleClose:()=>t(!1),id:"create-material-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:x(T),children:[f.jsx(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,xs:12,spacing:1,children:[f.jsxs(D,{item:!0,xs:8,children:[f.jsx(je,{...y("MaterialName",{required:"Name is required",validate:z}),label:"Name",variant:"outlined",error:!!S.MaterialName,fullWidth:!0,margin:"dense",autoComplete:"off"}),S.MaterialName&&f.jsx("span",{className:r.errorLabel,children:S.MaterialName.message})]}),f.jsxs(D,{item:!0,xs:4,children:[f.jsx(je,{...y("L1MaterialId",{required:"Material Id is required",validate:O}),label:"L1 MaterialId",variant:"outlined",error:!!S.L1MaterialId,fullWidth:!0,margin:"dense",autoComplete:"off"}),S.L1MaterialId&&f.jsx("span",{className:r.errorLabel,children:S.L1MaterialId.message})]})]}),f.jsxs(D,{item:!0,container:!0,xs:12,spacing:1,children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"IsAlloy",control:M,render:({field:P})=>f.jsx(Ea,{checkboxValue:P.value,onCheckboxChange:P.onChange,label:"Is Alloy",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"UseInEAF",control:M,render:({field:P})=>f.jsx(Ea,{checkboxValue:P.value,onCheckboxChange:P.onChange,label:"Use in EAF",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"UseInTrim",control:M,render:({field:P})=>f.jsx(Ea,{checkboxValue:P.value,onCheckboxChange:P.onChange,label:"Use in Trim",className:r.checkbox})})})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:i?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:A,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:A,children:"The material was created successfully"})})]})}),f.jsx(Mt,{error:a,onHide:()=>s(""),title:"Error Creating Material"})]})},PTi=({MaterialId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(),{register:g,control:m,setValue:v,handleSubmit:y,formState:{errors:M}}=Gn({defaultValues:bte}),C=(w,S)=>{S!=="clickaway"&&o(!1)},x=async()=>{c(!0);const w=await OTi(e);w.ok?(n(!0),o(!0)):d(w.message),c(!1)};return b.useEffect(()=>{t&&(c(!1),(async()=>{s(!0);const w=await g3t(e);if(w.ok){if(w===void 0||w.data===void 0||w.data.tables===void 0||w.data.tables[0].rows===void 0||w.data.tables[0].rows[0]===void 0)return;const S=w.data.tables[0].rows[0];S&&(v("MaterialId",S.MaterialId),v("L1MaterialId",S.L1MaterialId),v("MaterialName",S.MaterialName),v("IsAlloy",S.IsAlloy),v("UseInEAF",S.UseInEAF),v("UseInTrim",S.UseInTrim),v("Enabled",S.isActive),s(!1),h(S))}})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"DELETE MATERIAL",open:t,handleClose:()=>n(!1),id:"delete-material-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:y(x),children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!a&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,xs:12,spacing:1,children:[f.jsx(D,{item:!0,xs:9,children:f.jsx(je,{...g("MaterialName"),label:"Name",variant:"outlined",error:!!M.MaterialName,fullWidth:!0,value:p?.MaterialName,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(je,{...g("L1MaterialId"),label:"L1MaterialId",variant:"outlined",error:!!M.L1MaterialId,fullWidth:!0,value:p?.L1MaterialId,margin:"dense",autoComplete:"off",disabled:!0})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(Ue,{name:"IsAlloy",control:m,render:({field:w})=>f.jsx(Ea,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Is Alloy",className:r.checkbox,disabled:!0})})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(Ue,{name:"UseInEAF",control:m,render:({field:w})=>f.jsx(Ea,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Use in EAF",className:r.checkbox,disabled:!0})})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(Ue,{name:"UseInTrim",control:m,render:({field:w})=>f.jsx(Ea,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Use in Trim",className:r.checkbox,disabled:!0})})})]})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:l?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:l,variant:"contained",color:"secondary",type:"submit",children:"Delete"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:C,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:C,children:"The material was deleted successfully"})}),f.jsx(Mt,{error:u,onHide:()=>d(""),title:"Error Deleting Material"})]})},DTi=({MaterialId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(),{register:g,control:m,setValue:v,handleSubmit:y,formState:{errors:M}}=Gn({defaultValues:bte}),C=(w,S)=>{S!=="clickaway"&&o(!1)},x=async w=>{c(!0);const S=await m3t(w);S.ok?(o(!0),n(!0)):d(S.message),c(!1)};return b.useEffect(()=>{t&&(c(!1),(async()=>{s(!0);const w=await g3t(e);if(w.ok){if(w===void 0||w.data===void 0||w.data.tables===void 0||w.data.tables[0].rows===void 0||w.data.tables[0].rows[0]===void 0)return;const S=w.data.tables[0].rows[0];S&&(v("MaterialId",S.MaterialId),v("L1MaterialId",S.L1MaterialId),v("MaterialName",S.MaterialName),v("IsAlloy",S.IsAlloy),v("UseInEAF",S.UseInEAF),v("UseInTrim",S.UseInTrim),v("Enabled",S.isActive),s(!1),h(S))}})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"EDIT MATERIAL",open:t,handleClose:()=>n(!1),id:"edit-material-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:y(x),children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!a&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:8,children:f.jsx(je,{...g("MaterialName"),label:"Name",variant:"outlined",error:!!M.MaterialName,fullWidth:!0,value:p?.MaterialName,margin:"dense",autoComplete:"off",disabled:!0})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(je,{...g("L1MaterialId"),label:"L1MaterialId",variant:"outlined",error:!!M.L1MaterialId,fullWidth:!0,value:p?.L1MaterialId,margin:"dense",autoComplete:"off",disabled:!0})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,spacing:1,children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"IsAlloy",control:m,render:({field:w})=>f.jsx(Ea,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Is Alloy",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"UseInEAF",control:m,render:({field:w})=>f.jsx(Ea,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Use in EAF",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"UseInTrim",control:m,render:({field:w})=>f.jsx(Ea,{checkboxValue:w.value,onCheckboxChange:w.onChange,label:"Use in Trim",className:r.checkbox})})})]})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:l?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:l,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i,autoHideDuration:2500,onClose:C,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:C,children:"The material was edited successfully"})}),f.jsx(Mt,{error:u,onHide:()=>d(""),title:"Error Editing Material"})]})},kTi=({getCatalogMaterialFromAPI:e,isLoading:t})=>{const[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(null),[u,d]=b.useState(null),[p,h]=b.useState(""),{getMenuOptions:g}=zTi({setMaterialId:c,setShowEditModal:o,setShowDeleteModal:s,setShowCreateModal:r}),{showContextMenu:m,registerConfig:v}=ks(),{rows:y,columnDefs:M}=ETi({setMaterialId:c,setShowEditModal:o,setShowDeleteModal:s,showContextMenu:m}),{columnDefaults:C}=ku({OnEdit:A=>{o(!i),c(A.Id)}});C.floatingFilter=!1;const x=A=>{c(A.data.MaterialId),o(!0)},w=E.useCallback(A=>{const z=A.node?.data;return m(event,z,"catMaterialsTable"),[]},[y]);b.useEffect(()=>{v({id:"catMaterialsTable",getOptions:g})},[]);const S=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Materials"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:p,onChange:A=>h(A),label:"Search materials"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:S.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:y||[],columnDefs:M,onGridReady:A=>d(A.api),loading:t,getContextMenuItems:w,onRowDoubleClicked:x,quickFilterText:p,getRowId:A=>A.data.MaterialId,suppressContextMenu:!0,rowSelection:"single"})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW MATERIAL"})})]})]}),f.jsx(ITi,{show:n,onHide:A=>{r(!1),setTimeout(()=>{u&&A&&u.paginationGoToLastPage()},100)},refreshData:e}),f.jsx(DTi,{show:i,onHide:A=>{o(!1),c(null),A&&e()},MaterialId:l}),f.jsx(PTi,{show:a,onHide:A=>{s(!1),c(null),A&&e()},MaterialId:l})]})},LTi=e=>{const{state:t,actions:n}=F3e(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await W3e();l.ok?n.setMaterials(l.data.tables[0].rows):a(l.message),i(!1)};return b.useEffect(()=>{s()},[]),t.materials?f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(kTi,{isLoading:r,getCatalogMaterialFromAPI:s})})}),f.jsx(Mt,{error:o,onHide:()=>a("")})]}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},_Ti=e=>f.jsx(ATi,{children:f.jsx(LTi,{})}),NTi={sections:null},gY=Ni({name:"__",initialState:NTi,reducers:{setSections(e,{payload:t}){e.sections=t}}}),v3t=b.createContext({state:gY.getInitialState(),actions:gY.actions}),b3t=()=>b.useContext(v3t),FTi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:gY.getInitialState(),reducers:gY.caseReducers});return f.jsx(v3t.Provider,{value:{state:t,actions:n},children:e})},WTi=async()=>await new Ye().callV2("[STEEL].[GetCatSections]",[]),y3t=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.SectionId}),n.push({name:"Name",value:e.SectionName}),n.push({name:"IsCircular",value:e.IsCircular}),n.push({name:"Enabled",value:e.IsActive}),await t.callV2("[STEEL].[UpsertCatSection]",n)},qTi=async e=>{const t=new Ye,n=[];return n.push({name:"SectionId",value:e}),await t.callV2("[STEEL].[GetCatSection]",n)},M3t={SectionId:null,SectionName:"",IsCircular:!1,IsActive:!0},BTi=({show:e,onHide:t,refreshData:n})=>{const r=iu(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(""),{register:u,control:d,handleSubmit:p,reset:h,clearErrors:g,formState:{errors:m}}=Gn({defaultValues:M3t}),v=(M,C)=>{C!=="clickaway"&&s(!1)},y=async M=>{o(!0);const C=await y3t(M);C.ok?(C.data.tables[0].rows[0].Id,s(!0),t(),n()):c(C.message),o(!1)};return b.useEffect(()=>{e&&(h(),g())},[e]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:t,maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"NEW SECTION",children:f.jsxs("form",{onSubmit:p(y),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...u("SectionName",{required:!0}),label:"Name",variant:"outlined",error:!!m.SectionName,helperText:m.SectionName?.message,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsCircular",control:d,render:({field:M})=>f.jsx(Ea,{checkboxValue:M.value,onCheckboxChange:M.onChange,label:"Is Circular",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:d,render:({field:M})=>f.jsx(Ea,{checkboxValue:M.value,onCheckboxChange:M.onChange,label:"Enabled",className:r.checkbox})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:t,children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:i,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:a,autoHideDuration:2500,onClose:v,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:v,children:"The section was created successfully"})}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},jTi=({SectionId:e,show:t,onHide:n})=>{const r=iu(),[i,o]=b.useState(""),[a,s]=b.useState(""),[l,c]=b.useState(!1),[u,d]=b.useState(!1),{register:p,control:h,setValue:g,handleSubmit:m,clearErrors:v,formState:{errors:y}}=Gn({defaultValues:M3t}),M=(x,w)=>{w!=="clickaway"&&o("")},C=async x=>{d(!0);const w=await y3t(x);w.ok?(w.data.tables[0].rows[0].Id,n(!0),o("success")):s(w.message),d(!1)};return b.useEffect(()=>{t&&(v(),d(!1),(async()=>{c(!0);const x=await qTi(e);if(x.ok){const w=x.data.tables[0].rows[0];w&&(g("SectionId",w.SectionId),g("SectionName",w.SectionName),g("IsCircular",w.IsCircular),g("IsActive",w.IsActive),c(!1))}else s(x.message)})())},[t]),f.jsxs(f.Fragment,{children:[f.jsx(We,{open:t,handleClose:()=>n(!1),maxWidth:"sm","aria-labelledby":"contained-modal-title-vcenter",title:"EDIT SECTION",children:f.jsxs("form",{onSubmit:m(C),children:[f.jsxs(We.Content,{dividers:!0,className:r.modalBody,style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Kt,{})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(je,{...p("SectionName",{required:!0}),label:"Name",variant:"outlined",error:!!y.SectionName,helperText:y.SectionName?.message,fullWidth:!0,margin:"dense",autoComplete:"off"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsCircular",control:h,render:({field:x})=>f.jsx(Ea,{checkboxValue:x.value,onCheckboxChange:x.onChange,label:"Is Circular",className:r.checkbox})})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"IsActive",control:h,render:({field:x})=>f.jsx(Ea,{checkboxValue:x.value,onCheckboxChange:x.onChange,label:"Enabled",className:r.checkbox})})})]})})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>n(!1),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:u&&f.jsx(Kt,{size:"1rem"}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:i==="success",autoHideDuration:2500,onClose:M,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:M,children:"The section was updated successfully"})}),f.jsx(Mt,{error:a,onHide:()=>s("")})]})},HTi=({})=>{const{state:e}=b3t();return{rows:e.sections?.map(i=>({...i}))||[],columns:[{field:"SectionName",headerName:"Name",minWidth:20,flex:1},{field:"IsCircular",headerName:"Is Circular",flex:1,cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),minWidth:80,maxWidth:150,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"IsActive",headerName:"Enabled",flex:1,cellRenderer:i=>f.jsx(Qr,{checked:i.value,disabled:!0}),minWidth:80,maxWidth:150,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"actions",headerName:"",flex:1,minWidth:80,maxWidth:80,type:["editButton"]}],defaultColDef:{flex:1,minWidth:100,sortable:!0,filter:!1}}},VTi=({getCatalogSectionsFromAPI:e,isLoading:t})=>{const[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(null),[l,c]=b.useState(""),{rows:u,columns:d}=HTi({}),{columnTypes:p}=ku({OnEdit:g=>{o(!i),s(g.SectionId)}}),h=Pd();return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Sections"})}),f.jsxs(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:10},children:f.jsx(M1,{value:l,onChange:g=>c(g),label:"Search sections"})}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"68vh"},className:h.borderAgGridTable,children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{rowData:u||[],columnDefs:d,getRowId:g=>g.data.SectionId,columnTypes:p,suppressContextMenu:!0,onRowDoubleClicked:g=>{s(g.data.SectionId),o(!0)},rowSelection:"single",quickFilterText:l})})}),f.jsx(D,{item:!0,md:"auto",xs:12,style:{marginTop:10},children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{minWidth:250},onClick:()=>r(!n),children:"NEW SECTION"})})]})]}),f.jsx(BTi,{show:n,onHide:()=>r(!1),refreshData:e}),f.jsx(jTi,{show:i,onHide:g=>{o(!1),s(null),g&&e()},SectionId:a})]})},GTi=e=>{const{state:t,actions:n}=b3t(),[r,i]=b.useState(!0),[o,a]=b.useState(""),s=async()=>{i(!0);const l=await WTi();l.ok?(n.setSections(l.data.tables[0].rows),i(!1)):a(l.message)};return b.useEffect(()=>{s()},[]),t.sections?f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,md:12,xs:12,style:{margin:0},children:f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem"},children:f.jsx(VTi,{isLoading:r,getCatalogSectionsFromAPI:s})})})})}):f.jsx(D,{item:!0,xs:12,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"70vh"},children:f.jsx(Kt,{})})},$Ti=e=>f.jsx(FTi,{children:f.jsx(GTi,{})}),UTi=[{path:"alerts",sidebar:()=>f.jsx("div",{children:"alerts"}),main:()=>f.jsx(AAi,{})},{path:"lab-element",sidebar:()=>f.jsx("div",{children:"elements"}),main:()=>f.jsx(Jzi,{})},{path:"lab-mechanical-test",sidebar:()=>f.jsx("div",{children:"mechanical tests"}),main:()=>f.jsx(l3i,{})},{path:"lab-result-source",sidebar:()=>f.jsx("div",{children:"result sources"}),main:()=>f.jsx(v3i,{})},{path:"lab-sample-type",sidebar:()=>f.jsx("div",{children:"sample types"}),main:()=>f.jsx(O3i,{})},{path:"caster-molds",sidebar:()=>f.jsx("div",{children:"Molds"}),main:()=>f.jsx(HOi,{})},{path:"caster-mold-sizes",sidebar:()=>f.jsx("div",{children:"Mold Sizes"}),main:()=>f.jsx(ROi,{})},{path:"caster-lost-strand-types",sidebar:()=>f.jsx("div",{children:"Lost Strand Types"}),main:()=>f.jsx(dOi,{})},{path:"caster-pourback-reasons",sidebar:()=>f.jsx("div",{children:"Pourback Reasons"}),main:()=>f.jsx(KOi,{})},{path:"caster-low-tonnage-reasons",sidebar:()=>f.jsx("div",{children:"Low Tonnage Reasons"}),main:()=>f.jsx(bOi,{})},{path:"eaf-phase-events",sidebar:()=>f.jsx("div",{children:"Phase Events"}),main:()=>f.jsx(CAi,{})},{path:"steel-grade",sidebar:()=>f.jsx("div",{children:"grades"}),main:()=>f.jsx(jKe,{})},{path:"steel-grade/:gradeId",sidebar:()=>f.jsx("div",{children:"grades"}),main:()=>f.jsx(jKe,{})},{path:"steel-ladle",sidebar:()=>f.jsx("div",{children:"ladles"}),main:()=>f.jsx(wTi,{})},{path:"steel-section",sidebar:()=>f.jsx("div",{children:"sections"}),main:()=>f.jsx($Ti,{})},{path:"steel-material",sidebar:()=>f.jsx("div",{children:"materials"}),main:()=>f.jsx(_Ti,{})},{path:"steel-buckets",sidebar:()=>f.jsx("div",{children:"buckets"}),main:()=>f.jsx(F3i,{})},{path:"delay-categories",sidebar:()=>f.jsx("div",{children:"Delay Categories"}),main:()=>f.jsx(yzi,{})},{path:"delay-codes-eaf",sidebar:()=>f.jsx("div",{children:"EAF Delay Codes"}),main:()=>f.jsx(NKe,{delayAreaAssetName:"EAF"})},{path:"delay-codes-caster",sidebar:()=>f.jsx("div",{children:"CASTER Delay Codes"}),main:()=>f.jsx(NKe,{delayAreaAssetName:"Caster"})}],XTi=({option:e})=>{const t=oc(),n={backgroundColor:t.palette.background.paper,color:t.palette.primary.main,fontWeight:600};return f.jsxs(f.Fragment,{children:[f.jsxs(tp,{subheader:f.jsx(qv,{style:n,children:"Laboratory"}),children:[f.jsx(ya,{button:!0,selected:e==="lab-element",component:Xo,to:"/configuration/lab-element",children:f.jsx(na,{primary:"Elements"})}),f.jsx(ya,{button:!0,selected:e==="lab-mechanical-test",component:Xo,to:"/configuration/lab-mechanical-test",children:f.jsx(na,{primary:"Mechanical Tests"})}),f.jsx(ya,{button:!0,selected:e==="lab-result-source",component:Xo,to:"/configuration/lab-result-source",children:f.jsx(na,{primary:"Result Sources"})}),f.jsx(ya,{button:!0,selected:e==="lab-sample-type",component:Xo,to:"/configuration/lab-sample-type",children:f.jsx(na,{primary:"Sample Types"})})]}),f.jsx(ua,{}),f.jsxs(tp,{subheader:f.jsx(qv,{style:n,children:"Caster"}),children:[f.jsx(ya,{button:!0,selected:e==="caster-molds",component:Xo,to:"/configuration/caster-molds",children:f.jsx(na,{primary:"Molds"})}),f.jsx(ya,{button:!0,selected:e==="caster-mold-sizes",component:Xo,to:"/configuration/caster-mold-sizes",children:f.jsx(na,{primary:"Mold Sizes"})}),f.jsx(ya,{button:!0,selected:e==="caster-lost-strand-types",component:Xo,to:"/configuration/caster-lost-strand-types",children:f.jsx(na,{primary:"Lost Strand Types"})}),f.jsx(ya,{button:!0,selected:e==="caster-pourback-reasons",component:Xo,to:"/configuration/caster-pourback-reasons",children:f.jsx(na,{primary:"Pourback Reasons"})}),f.jsx(ya,{button:!0,selected:e==="caster-low-tonnage-reasons",component:Xo,to:"/configuration/caster-low-tonnage-reasons",children:f.jsx(na,{primary:"Low Tonnage Reasons"})})]}),f.jsx(ua,{}),f.jsxs(tp,{subheader:f.jsx(qv,{style:n,children:"Steel"}),children:[f.jsx(ya,{button:!0,selected:e==="steel-grade",component:Xo,to:"/configuration/steel-grade",children:f.jsx(na,{primary:"Grades"})}),f.jsx(ya,{button:!0,selected:e==="steel-ladle",component:Xo,to:"/configuration/steel-ladle",children:f.jsx(na,{primary:"Ladles"})}),f.jsx(ya,{button:!0,selected:e==="steel-section",component:Xo,to:"/configuration/steel-section",children:f.jsx(na,{primary:"Sections"})}),f.jsx(ya,{button:!0,selected:e==="steel-material",component:Xo,to:"/configuration/steel-material",children:f.jsx(na,{primary:"Materials"})}),f.jsx(ya,{button:!0,component:Xo,to:"/configuration/eaf-phase-events",selected:e==="eaf-phase-events",children:f.jsx(na,{primary:"Phase Events"})}),f.jsx(ya,{button:!0,selected:e==="steel-buckets",component:Xo,to:"/configuration/steel-buckets",children:f.jsx(na,{primary:"Buckets"})})]}),f.jsx(ua,{}),f.jsx(tp,{subheader:f.jsx(qv,{style:n,children:"Settings"}),children:f.jsx(ya,{button:!0,selected:e==="alerts",component:Xo,to:"/configuration/alerts",children:f.jsx(na,{primary:"Alerts"})})}),f.jsx(ua,{}),f.jsxs(tp,{subheader:f.jsx(qv,{style:n,children:"Delays"}),children:[f.jsx(ya,{button:!0,selected:e==="delay-categories",component:Xo,to:"/configuration/delay-categories",children:f.jsx(na,{primary:"Categories"})}),f.jsx(ya,{button:!0,selected:e==="delay-codes-eaf",component:Xo,to:"/configuration/delay-codes-eaf",children:f.jsx(na,{primary:"EAF Codes"})}),f.jsx(ya,{button:!0,selected:e==="delay-codes-caster",component:Xo,to:"/configuration/delay-codes-caster",children:f.jsx(na,{primary:"Caster Codes"})})]})]})},YTi=[UTi,XTi];function KTi(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true"||e==="1"||e==="True"||e==="TRUE"||e==="yes")return!0;if(e==="false"||e==="0")return!1}else if(typeof e=="number")return!!e;return!1}const QTi=Rt(e=>({menuButton:{marginRight:e.spacing(2),color:"inherit",display:"flex",alignItems:"center",textTransform:"none"},link:{textDecoration:"none",color:"inherit",display:"block",width:"100%"},menuItemText:{},iconMargin:{marginLeft:e.spacing(.5)}})),ZTi=[{id:"meltshop",label:"MELTSHOP",items:[{label:"Heats",to:"/meltshop-heats"},{label:"Heat Report",to:"/heat-report/latest/eaf"},{label:"Month Report",to:"/month-report"},{label:"Ladle Status",to:"/ladle-status"}]},{id:"eaf",label:"EAF",items:[{label:"Data Entry",to:"/eaf-data-entry"},{label:"Processes",to:"/eaf-processes"},{label:"Processes Data Report",to:"/eaf-processes-data-report"}]},{id:"caster",label:"CASTER",items:[{label:"Data Entry",to:"/caster-data-entry"},{label:"Processes",to:"/caster-processes"},{label:"Caster Counters",to:"/caster-counters"},{label:"Failed Startups",to:"/failed-startups"}]},{id:"lab",label:"LAB",items:[{label:"Heat Report",to:"/heat-report/chemistry"},{label:"L3 Chemistries",to:"/lab-l3/chemistry"},{label:"L3 Mechanical",to:"/lab-l3/mechanical"}]},{id:"lab-reports",label:"LAB REPORTS",items:[{label:"Chemistry Lab Activity",to:"/report/mes-lab-activity"},{label:"Chemistries By Date",to:"/report/mes-report-chemistry"},{label:"Mechanical Lab Activity",to:"/report/mes-lab-mechanical-activity"},{label:"Mechanical By Date",to:"/report/mes-report-mechanical"},{label:"Mechanical by Heat",to:"/lab-mechanical-by-heat"},{label:"Melter Report",to:"/report/mes-report-melter"},{label:"Report Nuno Chemistries",to:"/report/mes-lab-nuno-chemistries"},{label:"Predictor Report",to:"/report/mes-report-predictor"},{label:"HRR Report",to:"/report/mes-lab-hrr"},{label:"Missed Heats Report",to:"/report/mes-lab-missed-heats"},{label:"Last 20 Chemistries",to:"/report/mes-report-last-chemistries"},{label:"Last EAF Samples",to:"/report/mes-lab-last-eaf-samples"},{label:"Slag Samples",to:"/report/mes-lab-slag-samples"},{label:"Kentucky Mechanical Activity",to:"/report/kentucky-mechanical-activity"},{label:"Kentucky Mechanical Samples By Date",to:"/report/kentucky-mechanical-sample-by-date"},{label:"Kentucky Mechanical Samples By Heat",to:"/report/kentucky-mechanical-sample-by-heat"}]},{id:"delays",label:"DELAYS",items:[{label:"Caster Manager",to:{pathname:"/caster-delays-manager"}},{label:"Caster Report",to:{pathname:"/caster-delays-report"}},{label:"Caster Pareto",to:{pathname:"/caster-delays-pareto"}},{label:"EAF Manager",to:{pathname:"/eaf-delays-manager"}},{label:"EAF Report",to:{pathname:"/eaf-delays-report"}},{label:"EAF Pareto",to:{pathname:"/eaf-delays-pareto"}}]}],JTi={id:TKe[0].id,label:"LOGBOOK",items:TKe[0].items.map(e=>({label:e.label,to:e.to}))},eEi=()=>{const e=QTi(),{state:{settings:t}}=ka(),[n,r]=b.useState({}),i=KTi(Ot(t,"FF_LOGBOOK_ENABLED",!1)),o=(s,l)=>{r(c=>({...c,[l]:s.currentTarget}))},a=s=>{r(l=>({...l,[s]:null}))};return f.jsxs(f.Fragment,{children:[f.jsx(Fe,{component:Xo,to:"/meltshop-dashboard",className:e.menuButton,children:"HOME"}),ZTi.map(s=>{const l=n[s.id]||null,c=!!l;return f.jsxs(E.Fragment,{children:[f.jsxs(Fe,{"aria-controls":`${s.id}-menu`,"aria-haspopup":"true",onClick:u=>o(u,s.id),className:e.menuButton,children:[s.label,c?f.jsx(_Pe,{className:e.iconMargin}):f.jsx(NPe,{className:e.iconMargin})]}),f.jsx($$,{id:`${s.id}-menu`,anchorEl:l,keepMounted:!0,open:c,onClose:()=>a(s.id),getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:s.items.map((u,d)=>f.jsx(sr,{component:Xo,to:u.to,onClick:()=>a(s.id),className:e.link,children:f.jsx(bt,{className:e.menuItemText,children:u.label})},`${s.id}-item-${u.label}-${d}`))})]},s.id)}),f.jsx(Fe,{component:Xo,to:"/shift-report",className:e.menuButton,children:"SHIFT REPORT"}),i&&(()=>{const s=JTi,l=n[s.id]||null,c=!!l;return f.jsxs(E.Fragment,{children:[f.jsxs(Fe,{"aria-controls":`${s.id}-menu`,"aria-haspopup":"true",onClick:u=>o(u,s.id),className:e.menuButton,children:[s.label,c?f.jsx(_Pe,{className:e.iconMargin}):f.jsx(NPe,{className:e.iconMargin})]}),f.jsx($$,{id:`${s.id}-menu`,anchorEl:l,keepMounted:!0,open:c,onClose:()=>a(s.id),getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:s.items.map((u,d)=>f.jsx(sr,{component:Xo,to:u.to,onClick:()=>a(s.id),className:e.link,children:f.jsx(bt,{className:e.menuItemText,children:u.label})},`${s.id}-item-${u.label}-${d}`))})]},s.id)})()]})},tEi={acquisitionStats:{columns:[],rows:[]}},mY=Ni({name:"__",initialState:tEi,reducers:{setAcquisitionStats(e,{payload:t}){e.acquisitionStats=t}}}),C3t=b.createContext({state:mY.getInitialState(),actions:mY.actions}),x3t=()=>b.useContext(C3t),nEi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:mY.getInitialState(),reducers:mY.caseReducers});return f.jsx(C3t.Provider,{value:{state:t,actions:n},children:e})},rEi=e=>Wn(e,"MM/dd/yy HH:mm"),iEi=Rn(),oEi=e=>{const t=b.useMemo(()=>e.columns.map(i=>({headerName:i,field:i,valueGetter:o=>{const a=o.data[i];if(gi(a)||!Vfe(Number(a)))return a;const s=new Date(a);return s.toString()!=="Invalid Date"&&iEi.isDate(s)?rEi(`${a}z`):a}})),[e]),n={flex:1,autoHeight:!0,wrapText:!0,sortable:!0};return{rowData:b.useMemo(()=>e.rows,[e]),columnData:t,defaultColDef:n}},aEi=Rt(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell":{textAlign:"center !important",fontSize:10},"& .ag-font-size":{fontSize:0},"& .ag-header-cell-label":{justifyContent:"center"}}})),sEi=({isLoading:e})=>{const t=aEi(),{state:n}=x3t(),[r,i]=b.useState(""),[o,a]=b.useState(null),{rowData:s,columnData:l,defaultColDef:c}=oEi(n.acquisitionStats),u=d=>{a(d.api)};return b.useEffect(()=>{o&&o.setGridOption("quickFilterText",r)},[r,o]),b.useEffect(()=>{o&&(e?o.showLoadingOverlay():o.hideOverlay())},[o,e]),f.jsxs(D,{container:!0,className:t.root,children:[f.jsx(je,{variant:"outlined",fullWidth:!0,placeholder:"Filter...",value:r,onChange:d=>i(d.target.value),size:"small"}),f.jsx(D,{item:!0,md:12,xs:12,style:{height:"80vh",minHeight:"30vh",border:"4px solid #ccc",borderRadius:10,padding:10,margin:"20px 0 10px"},className:"ag-theme-balham",children:f.jsx(Kn,{defaultColDef:c,onGridReady:u,rowData:s,columnDefs:l,overlayLoadingTemplate:"Loading..."})})]})},lEi=async()=>await new Ye().callV2("[SWV].[GetHeatAcquisitionStats]",[]),cEi=()=>{const[e,t]=b.useState(!0),[n,r]=b.useState(""),{state:i,actions:o}=x3t(),a=async()=>{t(!0);const s=await lEi();s.ok?o.setAcquisitionStats(s.data.tables[0]):r(s.message),t(!1)};return b.useEffect(()=>{a()},[]),f.jsxs(f.Fragment,{children:[f.jsx(kt,{elevation:1,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem",minHeight:"93vh"},children:f.jsx(sEi,{isLoading:e})}),f.jsx(Mt,{error:n,onHide:()=>{r("")}})]})},uEi=()=>f.jsx(nEi,{children:f.jsx(cEi,{})}),Ik=({onClick:e,disabled:t})=>f.jsx(Fe,{fullWidth:!0,variant:"outlined",disabled:t,onClick:e,startIcon:f.jsx("i",{className:"far fa-file-excel"}),style:{width:"auto",height:35,display:"flex",justifyContent:"space-between",padding:"0 14px",fontSize:14,color:`${t?"grey":"#217346"}`,border:`1px solid ${t?"grey":"#217346"}`,backgroundColor:"#fff"},children:"EXPORT TO EXCEL"}),dEi=()=>({columnData:[{headerName:"Heat",field:"HeatName",flex:1,minWidth:70,maxWidth:70,sortable:!0,cellRenderer:n=>zd({...n,link:`/caster-data-entry/${n.data.ProcessId}`})},{headerName:"Last End",field:"LastEnd",minWidth:100,valueGetter:n=>n.data.LastEnd?Wn(n.data.LastEnd,"MMM dd - HH:mm:ss"):"",flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Prev Interval [min]",field:"PrevInterval",minWidth:120,valueGetter:n=>{if(n.data.LastEnd&&n.data.Start){const r=new Date(n.data.LastEnd),o=new Date(n.data.Start).getTime()-r.getTime();return Math.round(o/(1e3*60))}return""},flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Start",field:"Start",minWidth:100,valueGetter:n=>n.data.Start?Wn(n.data.Start,"MMM dd - HH:mm:ss"):"",flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Duration [min]",field:"Duration",minWidth:120,valueGetter:n=>{if(n.data.Start&&n.data.End){const r=new Date(n.data.Start),o=new Date(n.data.End).getTime()-r.getTime();return Math.round(o/(1e3*60))}return""},flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"End",field:"End",minWidth:100,valueGetter:n=>n.data.End?Wn(n.data.End,"MMM dd - HH:mm:ss"):"",flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Next Interval [min]",field:"NextInterval",minWidth:120,valueGetter:n=>{if(n.data.End&&n.data.NextStart){const r=new Date(n.data.End),o=new Date(n.data.NextStart).getTime()-r.getTime();return Math.round(o/(1e3*60))}return""},flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Next Start",field:"NextStart",minWidth:100,valueGetter:n=>n.data.NextStart?Wn(n.data.NextStart,"MMM dd - HH:mm:ss"):"",flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Shift",field:"Shift",minWidth:80,maxWidth:80,cellStyle:{textAlign:"center"},cellRenderer:n=>f.jsx("div",{className:`custom-chip shift-chip-${n.value}`,children:n.value}),cellClass:n=>`shift-chip-${n.value}`,flex:1,sortable:!0},{headerName:"Crew",field:"Crew",minWidth:80,maxWidth:80,cellStyle:{textAlign:"center"},cellRenderer:n=>f.jsx("div",{className:`custom-chip crew-chip-${n.value}`,children:n.value}),cellClass:n=>`crew-chip-${n.value}`,flex:1,sortable:!0}],defaultColDef:{flex:1,resizable:!0}}),pEi=()=>({columnData:[{headerName:"Year",field:"Year",minWidth:80,flex:1,cellStyle:{textAlign:"center",fontWeight:"bold"},sortable:!0},{headerName:"Month",field:"MonthName",minWidth:100,flex:1,cellStyle:{textAlign:"center",fontWeight:"bold"},sortable:!0},{headerName:"Shift D",field:"ShiftD",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Shift N",field:"ShiftN",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Crew A",field:"CrewA",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Crew B",field:"CrewB",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Crew C",field:"CrewC",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Crew D",field:"CrewD",minWidth:80,flex:1,cellStyle:{textAlign:"center"},sortable:!0},{headerName:"Total",field:"TotalFailedStartups",minWidth:80,flex:1,cellStyle:{textAlign:"center",fontWeight:"bold",backgroundColor:"#f0f8ff"},sortable:!0}],defaultColDef:{flex:1,resizable:!0}}),hEi=({isLoading:e,gridRef:t,rows:n})=>{const[r,i]=b.useState(null),{columnData:o}=pEi(),a=s=>{i(s.api)};return b.useEffect(()=>{r&&(e?r.showLoadingOverlay():(r.hideOverlay(),r.setGridOption("rowData",n)))},[r,e,n]),f.jsx("div",{style:{height:"70vh",width:"100%"},children:f.jsx(D,{item:!0,xs:12,style:{borderRadius:"0 0 10px 10px",height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0",borderTop:"none"},children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{onGridReady:a,rowData:n,columnDefs:o,rowSelection:"single",overlayLoadingTemplate:"Loading...",suppressContextMenu:!0,getRowId:s=>`${s.data.Year}-${s.data.Month}`,ref:t})})})})},yj=Rt(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-header-group-cell-label ":{textAlign:"center !important",justifyContent:"center"},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center"},"& .ag-header-cell-comp-wrapper":{justifyContent:"center",alignItems:"center"},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600}},relative:{position:"relative"},buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",display:"flex",width:"100%",justifyContent:"space-around",".ag-row-hover &":{opacity:1}},btnModal:{display:"flex",justifyContent:"flex-end"}})),fEi=({isLoading:e,gridRef:t,rows:n})=>{const[r,i]=b.useState(null);yj();const{columnData:o}=dEi(),a=s=>{i(s.api)};return b.useEffect(()=>{r&&(e?r.showLoadingOverlay():(r.hideOverlay(),r.setGridOption("rowData",n)))},[r,e,n]),f.jsx("div",{style:{height:"70vh",width:"100%"},children:f.jsx(D,{item:!0,xs:12,style:{height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},children:f.jsx("div",{style:{height:"100%",width:"100%"},children:f.jsx(Kn,{onGridReady:a,rowData:n,columnDefs:o,rowSelection:"single",overlayLoadingTemplate:"Loading...",suppressContextMenu:!0,getRowId:s=>s.data.HeatName,ref:t})})})})},q3e=({shift:e,size:t="medium"})=>{const r={display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',lineHeight:"1.5",cursor:"default",fontWeight:800,color:"rgb(255, 255, 255)",...(()=>{switch(t){case"small":return{padding:"2px 6px",fontSize:"0.75rem",minWidth:"20px",height:"20px"};case"large":return{padding:"4px 12px",fontSize:"0.875rem",minWidth:"32px",height:"32px"};default:return{padding:"4px 8px",fontSize:"0.8125rem",minWidth:"24px",height:"24px"}}})()},i=o=>{switch(o){case"D":return{backgroundColor:"#DDD116",border:"1px solid rgb(224, 208, 101)"};case"N":return{backgroundColor:"rgb(161, 66, 221)",border:"1px solid rgb(183, 102, 233)"};default:return{backgroundColor:"#6c757d",border:"1px solid #6c757d"}}};return f.jsx("div",{style:{...r,...i(e)},children:e})},B3e=({crew:e,size:t="medium"})=>{const r={display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',lineHeight:"1.5",cursor:"default",fontWeight:800,...(()=>{switch(t){case"small":return{padding:"2px 6px",fontSize:"0.75rem",minWidth:"20px",height:"20px"};case"large":return{padding:"4px 12px",fontSize:"0.875rem",minWidth:"32px",height:"32px"};default:return{padding:"4px 8px",fontSize:"0.8125rem",minWidth:"24px",height:"24px"}}})()},i=o=>{switch(o){case"A":return{color:"rgb(255, 255, 255)",backgroundColor:"#B2E08A",border:"1px solid #B2E08A"};case"B":return{color:"rgb(236, 236, 236)",backgroundColor:"#E83011",border:"1px solid #E83011"};case"C":return{color:"rgb(255, 255, 255)",backgroundColor:"#3878B4",border:"1px solid #3878B4"};case"D":return{color:"rgb(255, 255, 255)",backgroundColor:"#F3A506",border:"1px solid #F3A506"};default:return{color:"rgb(255, 255, 255)",backgroundColor:"#6c757d",border:"1px solid #6c757d"}}};return f.jsx("div",{style:{...r,...i(e)},children:e})},HKe=({size:e="medium"})=>{const n={display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',lineHeight:"1.5",cursor:"default",fontWeight:800,color:"rgb(255, 255, 255)",backgroundColor:"#6c757d",border:"1px solid #6c757d",...(()=>{switch(e){case"small":return{padding:"2px 6px",fontSize:"0.75rem",minWidth:"20px",height:"20px"};case"large":return{padding:"4px 12px",fontSize:"0.875rem",minWidth:"32px",height:"32px"};default:return{padding:"4px 8px",fontSize:"0.8125rem",minWidth:"24px",height:"24px"}}})()};return f.jsx("div",{style:n,children:"All"})},gEi=async(e,t,n,r,i,o=!1)=>{const a=new Ye,s=[];return s.push({name:"StartDate",value:e.toISOString()}),s.push({name:"EndDate",value:t.toISOString()}),s.push({name:"DelayAreaAssetId",value:n||null}),s.push({name:"Shift",value:null}),s.push({name:"Crew",value:null}),s.push({name:"IncludeMicrodelays",value:o}),await a.callV2("[DEL].[GetDelays]",s)},yte=async()=>{const e=new Ye,t=[];return await e.callV2("[DEL].[GetDelayAssets]",t)},w3t=async()=>{const e=new Ye,t=[];return await e.callV2("[MES].[GetShiftsAndCrews]",t)},S3t=async()=>{const e=new Ye,t=[];return await e.callV2("[DEL].[GetUpsetConditionLists]",t)},VKe=Rn(),mEi=({onFilterChange:e,initialFromDate:t,initialToDate:n,filterShift:r,onFilterShiftChange:i,filterCrew:o,onFilterCrewChange:a})=>{const[s,l]=b.useState(t),[c,u]=b.useState(n),[d,p]=b.useState([]),[h,g]=b.useState([]);b.useEffect(()=>{(async()=>{const x=await w3t();if(x.ok){const w=Ot(x,"data",[]),S=w?.tables[0].rows,A=w?.tables[1].rows;p(S),g(A)}})()},[]);const m=C=>{if(C){const x=C.toDate();l(x),e(x,c,r,o)}},v=C=>{if(C){const x=C.toDate();u(x),e(s,x,r,o)}},y=C=>{const x=C.target.value,w=x===""?null:x;i(w),e(s,c,w,o)},M=C=>{const x=C.target.value,w=x===""?null:x;a(w),e(s,c,r,w)};return f.jsx(kt,{style:{minWidth:"650px",margin:"20px 0px",padding:"20px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsxs(D,{container:!0,alignItems:"center",spacing:2,children:[f.jsx(D,{item:!0,children:f.jsx(_f,{label:"From",format:"MM/DD/YYYY",value:VKe(s),onChange:m,slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px",padding:10}}}}})}),f.jsx(D,{item:!0,children:f.jsx(_f,{label:"To",format:"MM/DD/YYYY",value:VKe(c),onChange:v,disableFuture:!0,slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px",padding:10}}}}})}),f.jsx(D,{item:!0,children:f.jsxs(ja,{variant:"outlined",size:"small",style:{width:110},children:[f.jsx(il,{id:"shift-select-label",children:"Shift"}),f.jsxs(ls,{labelId:"shift-select-label",id:"shift-select",value:r??"",onChange:y,label:"Shift",children:[f.jsx(sr,{value:"All",children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(HKe,{size:"small"}),f.jsx("span",{children:"All"})]})},"shift-all"),d.map(C=>f.jsx(sr,{value:C.Shift,children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(q3e,{shift:C.Shift,size:"small"}),f.jsx("span",{children:C.Shift})]})},`shift-${C.Shift}`))]})]})}),f.jsx(D,{item:!0,children:f.jsxs(ja,{variant:"outlined",size:"small",style:{width:110},children:[f.jsx(il,{id:"crew-select-label",children:"Crew"}),f.jsxs(ls,{labelId:"crew-select-label",id:"crew-select",value:o??"",onChange:M,label:"Crew",children:[f.jsx(sr,{value:"All",children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(HKe,{size:"small"}),f.jsx("span",{children:"All"})]})},"crew-all"),h.map(C=>f.jsx(sr,{value:C.Crew,children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(B3e,{crew:C.Crew,size:"small"}),f.jsx("span",{children:C.Crew})]})},`crew-${C.Crew}`))]})]})})]})})},vEi=Rt(e=>({tabsContainer:{display:"flex",justifyContent:"center",marginBottom:0,position:"relative"},tabs:{minHeight:42,"& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-flexContainer":{gap:2}},tab:{minHeight:42,textTransform:"none",fontWeight:500,fontSize:14,marginRight:2,backgroundColor:"#f8f9fa",color:"#6c757d",border:"1px solid #E0E0E0",borderBottom:"1px solid #E0E0E0",borderRadius:"8px 8px 0 0",padding:"10px 20px",transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:"#e9ecef",opacity:1},"&.Mui-selected":{backgroundColor:"#ffffff",color:"#1976d2",borderColor:"#E0E0E0",borderBottom:"1px solid #ffffff",transform:"translateY(1px)"},"&:last-child":{marginRight:0}}})),bEi=({viewMode:e,onViewModeChange:t})=>{const n=vEi(),r=(i,o)=>{t(o)};return f.jsx(Tn,{className:n.tabsContainer,children:f.jsxs(Aat,{value:e,onChange:r,className:n.tabs,variant:"standard",children:[f.jsx($N,{value:"detailed",label:"Detailed View",icon:f.jsx($at,{}),className:n.tab}),f.jsx($N,{value:"grouped",label:"Grouped View",icon:f.jsx(s1n,{}),className:n.tab})]})})},lpe=Rn(),yEi=()=>{const e=b.useRef(null),{shiftInfo:t}=la(),n=lpe(t?.CurrentStart).format("MM-DD-YYYY"),[r,i]=b.useState([]),[o,a]=b.useState([]),[s,l]=b.useState("detailed"),[c,u]=b.useState({fromDate:lpe.utc().subtract(1,"month").toDate(),toDate:lpe.utc().toDate(),shift:"All",crew:"All"}),[d,p]=b.useState(""),h=async()=>{const m=await QAi({...c,shift:c.shift==="All"?null:c.shift,crew:c.crew==="All"?null:c.crew});m.ok?(i(m.data.tables[0].rows),m.data.tables.length>1&&a(m.data.tables[1].rows)):p(m.message)};b.useEffect(()=>{h()},[c]);const g=()=>{if(e.current&&e.current.api){const m={skipHeader:!1,skipFooters:!0,skipGroups:!0,fileName:`Failed-Startup-${s==="grouped"?"Grouped":"Detailed"}-${n}.xlsx`,sheetName:s==="grouped"?"Failed Startup Grouped":"Failed Startup",processCellCallback:v=>v.value??""};e.current.api.exportDataAsExcel(m)}else p("Unable to export data. Please try again.")};return f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:`Failed Startup ${"- "+s[0].toUpperCase()+s.slice(1)}`}),f.jsx(kt,{elevation:0,style:{width:"100%",padding:"20px 20px",height:"93vh",backgroundColor:"#f2f4f7"},children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:12,xs:12,container:!0,spacing:2,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Failed Startups"})})}),f.jsx(D,{item:!0,md:"auto",xs:"auto",children:f.jsx(D,{item:!0,container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2,children:f.jsx(D,{item:!0,children:f.jsx(mEi,{onFilterChange:(m,v,y,M)=>u({fromDate:m,toDate:v,shift:y,crew:M}),initialFromDate:c.fromDate,initialToDate:c.toDate,filterShift:c.shift,onFilterShiftChange:m=>u(v=>({...v,shift:m})),filterCrew:c.crew,onFilterCrewChange:m=>u(v=>({...v,crew:m}))})})})}),f.jsx(D,{item:!0,xs:"auto",style:{marginLeft:"auto"},children:f.jsx(Ik,{onClick:g})}),f.jsx(D,{item:!0,xs:12,container:!0,justifyContent:"center",children:f.jsx(bEi,{viewMode:s,onViewModeChange:l})}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,children:s==="detailed"?f.jsx(fEi,{rows:r,isLoading:!1,gridRef:e}):f.jsx(hEi,{rows:o,isLoading:!1,gridRef:e})})]})}),f.jsx(Mt,{error:d,onHide:()=>p("")})]})},MEi=()=>f.jsx(yEi,{}),j3e=()=>f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"150px"},children:f.jsx(Kt,{size:"3rem"})}),CEi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,errorMessage:"",notificationMessage:"",selectedHeat:null,selectedOption:null,searchHeatName:null,heatResults:[],heatOptions:[],heatReport:null,chemistryHeatReport:null,showExternalsHeats:!1},vY=Ni({name:"__",initialState:CEi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setHeatResults(e,{payload:t}){e.heatResults=t},setHeatReport(e,{payload:t}){e.heatReport=t},setChemistryHeatReport(e,{payload:t}){e.chemistryHeatReport=t},setSelectedHeat(e,{payload:t}){e.selectedHeat=t},setSearchHeatName(e,{payload:t}){e.searchHeatName=t},setHeatItems(e,{payload:t}){e.heatOptions=t},setSelectedOption(e,{payload:t}){e.selectedOption=t},setShowExternalsHeats(e,{payload:t}){e.showExternalsHeats=t},nextHeat(e){e.selectedHeat!==null&&e.selectedHeat.NextHeatName!==null&&(e.searchHeatName=e.selectedHeat.NextHeatName)},previousHeat(e){e.selectedHeat!==null&&e.selectedHeat.PreviousHeatName!==null&&(e.searchHeatName=e.selectedHeat.PreviousHeatName)}}}),A3t=b.createContext({state:vY.getInitialState(),actions:vY.actions}),O3t=()=>b.useContext(A3t),xEi=()=>{const[e,t]=Ui.useComplexState({initialState:vY.getInitialState(),reducers:vY.caseReducers});return f.jsx(A3t.Provider,{value:{state:e,actions:t},children:f.jsx(Szn,{})})},wEi=Rn(),SEi=async(e,t,n)=>{const r=new Ye,i=[];return i.push({name:"ShiftId",value:e}),i.push({name:"HeatId",value:parseInt(t)}),i.push({name:"IncludeIsExternal",value:n||null}),await r.callV2("[SWV].[GetHeatsByShift]",i)},AEi=async e=>{const t=new Ye,n=[];return n.push({name:"IsExternal",value:e}),await t.callV2("[MS].[GetLastestHeats]",n)},OEi=async(e,t)=>{const n=new Ye,r=[{name:"SearchTerm",value:e},{name:"MaxResults",value:100},{name:"IsExternal",value:t}];return await n.callV2("[MS].[SearchHeats]",r)},h2e=async(e,t)=>{const n=new Ye,r=[{name:"SearchTerm",value:e},{name:"MaxResults",value:100},{name:"IsExternal",value:t}];return await n.callV2("[MS].[SearchHeatsWithProcessId]",r)},z3t=async()=>{const e=new Ye,t=[],n=await e.callV2("[STEEL].[GetGrades]",t);return n.ok&&(n.data.tables[0].rows=n.data.tables[0].rows.map(r=>({...r,DateTimeModified:r.DateTimeModified?wEi.utc(r.DateTimeModified).toDate():null}))),n},zEi=async()=>{const e=new Ye,t=[];return await e.callV2("[MS].[GetLadles]",t)},uz=async e=>{const t=new Ye,n=[];return Object.keys(e).forEach(i=>n.push({name:i,value:e[i]})),await t.callV2("[MS].[UpsertHeat]",n)},TEi=async e=>{const t=new Ye,n=[];return n.push({name:"HeatId",value:e}),await t.callV2("[MS].[DeleteHeat]",n)},EEi=({show:e,onClose:t,gradeId:n,heatId:r})=>{const[i,o]=b.useState(n),[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState(""),[p,h]=b.useState(!1),g=async()=>{n!==null?s(!0):await m()},m=async()=>{h(!0);const v=await uz({HeatId:r,GradeId:i});v.ok?(d("Grade updated successfully"),t(!0)):c(v.message),h(!1)};return b.useEffect(()=>{e&&o(n)},[e]),f.jsxs(f.Fragment,{children:[f.jsxs(We,{title:"Modify Cast Grade",open:e,id:"confirm-modal",handleClose:()=>t(!1),children:[f.jsx(We.Content,{style:{padding:"15px 30px"},children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(u3t,{value:i,onChange:o,disabled:!1,label:"Select a Grade"})})})}),f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:3,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>{t()},children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:3,children:f.jsx(Da,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",onClick:g,isLoading:p,children:"Save"})})]})})]}),f.jsx(rl,{title:"Confirm change",message:"Are you sure you want to change the Cast Grade?",open:a,onClose:v=>{v==="OK"&&m(),s(!1)}}),f.jsx(Bm,{message:u,onHide:()=>d("")}),f.jsx(Mt,{error:l,onHide:()=>c(""),title:"Error"})]})};Rt(e=>({defaultButton:{padding:"6px 16px",fontSize:"0.875rem",lineHeight:1.75,borderRadius:"4px"}}));const T3t=y3({overrides:{MuiButton:{root:{padding:"6px 12px !important",fontSize:"0.7rem !important",borderRadius:4,lineHeight:1.5}},MuiButtonGroup:{grouped:{minWidth:30,padding:"4px 4px !important"}},MuiTextField:{root:{fontSize:"clamp(.7rem, 0.8rem, 1rem)","& .MuiInputBase-root":{minHeight:"35px !important",padding:"4px 0px 4px 2px !important"},"& .MuiOutlinedInput-input":{padding:"4px 0px 4px 4px !important",fontSize:"clamp(.7rem, 0.8rem, 1rem) !important"},"& label":{fontSize:"0.75rem !important"},"& .MuiOutlinedInput-multiline":{padding:"8px 14px !important"},"& .MuiOutlinedInput-root:not(.Mui-disabled)":{"&:hover":{cursor:"default","&:not(.Mui-focused) .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0.23)"}},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0.23)",borderWidth:"1px"},"& .MuiOutlinedInput-input":{cursor:"default !important",caretColor:"transparent !important",userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",msUserSelect:"none"}}}},MuiTable:{root:{minWidth:300}},MuiTableCell:{root:{padding:4,"&.narrow":{whiteSpace:"nowrap",maxWidth:"80px"}},head:{fontWeight:"bold"}},MuiTableRow:{root:{"&:nth-of-type(odd)":{backgroundColor:"#f5f5f5 !important"}}},MuiFormControl:{root:{margin:"2px 0",width:"100%"}},MuiInputLabel:{outlined:{transform:"translate(14px, 12px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}},MuiOutlinedInput:{root:{height:"35px"},input:{padding:"8px 14px !important",height:"19px !important",fontSize:"clamp(.7rem, 0.8rem, 1rem) !important"}},MuiSelect:{select:{height:"35px !important",lineHeight:"35px !important",paddingTop:0,paddingBottom:0},outlined:{paddingRight:"32px !important"}},MuiMenuItem:{root:{fontSize:"0.7rem",minHeight:"35px",lineHeight:"35px !important"}}}}),REi=y3({overrides:{MuiTextField:{root:{"& .MuiOutlinedInput-root":{height:"60px !important"},"& .MuiInputLabel-outlined":{fontSize:"24px !important",transform:"translate(14px, 18px) scale(1) !important"},"& .MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:"translate(14px, -9px) scale(0.5) !important",backgroundColor:"white",padding:"10 4px !important"},"& .MuiOutlinedInput-input":{fontSize:"24px !important",padding:"18px 14px !important"}}}}}),E3t=({iconButton:e,showNext:t,showPrevious:n,value:r,isProcessLoading:i=!1,secondValue:o,onButtonClick:a,onNext:s,onPrevious:l,onLast:c,onChange:u,onBlur:d,onFocus:p})=>{fa();const[h,g]=b.useState(""),[m,v]=b.useState(!1),[y,M]=b.useState([]),[C,x]=b.useState({Name:r.HeatName,Id:r.HeatId}),[w,S]=b.useState(!1),[A,z]=b.useState(""),O=b.useRef(A);O.current=A;const T=b.useCallback(nB(async N=>{v(!0);try{if(N.length>=2){const F=await h2e(N,!1);if(F.ok){const L=F.data.tables[0].rows;O.current===N&&M(L)}else g(F.message)}if(N.length===0){const F=await h2e(N,!1);F.ok?O.current===N&&M(F.data.tables[0].rows):g(F.message)}}catch{g("An error occurred while searching"),M([])}finally{v(!1)}},1500),[]),I=(N,F)=>{F?F.Id!==r.HeatId&&(x(F),u&&u(F.Id),setTimeout(()=>{document.getElementById("dummyDiv")?.focus()},500)):x(null)};b.useEffect(()=>(T(A),()=>{T.cancel()}),[A,T]);const P=b.useMemo(()=>C&&!y.some(N=>N.Id===C.Id)?[C,...y]:y,[y,C]);return b.useEffect(()=>{!w&&!m&&!i&&A!==r.HeatName&&x({Name:r.HeatName,Id:r.HeatId})},[w,A,r,m,i]),f.jsx(C3,{theme:REi,children:f.jsxs(f.Fragment,{children:[f.jsx(kt,{elevation:0,children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{container:!0,direction:"row",alignItems:"center",justifyContent:"center",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsx(yn,{"aria-label":"previous",color:"primary",disabled:!n,onClick:()=>{l?.(r.PreviousHeatId)},children:f.jsx(rQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,style:{minWidth:"129px"},children:f.jsx(Ji,{autoHighlight:!0,blurOnSelect:!0,clearOnEscape:!0,selectOnFocus:!0,popupIcon:null,options:P,getOptionLabel:N=>N?.Name||"Unlinked",getOptionSelected:(N,F)=>N.Id===F.Id,value:C,onChange:I,inputValue:A,onInputChange:(N,F)=>{z(F)},onFocus:N=>{S(!0),p&&p()},onBlur:N=>{S(!1),d&&d()},loading:m,renderInput:N=>f.jsx(je,{...N,label:"Heat name",variant:"outlined",size:"medium",InputProps:{...N.InputProps,style:{padding:"0 3px 0px 8px"},endAdornment:f.jsx(nc,{position:"end",children:f.jsx(yn,{size:"small",title:r.HeatId?"Unlink":"Link",onClick:a,style:{color:r.HeatId?"red":"#3f51b5"},children:m?f.jsx(Kt,{size:"1rem"}):e})})}})})}),f.jsx(D,{item:!0,children:f.jsx(yn,{"aria-label":"next",color:"primary",disabled:!t,onClick:()=>{s?.(r.NextHeatId)},children:f.jsx(iQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,children:f.jsx(yn,{color:"primary",onClick:c,disabled:!t,title:"Last process",children:f.jsx(sQ,{style:{cursor:"pointer"}})})})]})})}),f.jsx(Mt,{error:h,onHide:()=>g("")})]})})},ac=Rt(e=>({materialTable:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-cell":{color:"black"},"& .ag-header-group-cell-label ":{textAlign:"center !important",justifyContent:"center",fontSize:".8rem !important",color:"black"},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center",fontSize:".8rem !important",padding:2},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-header-cell, .ag-header-cell-group-cell, .ag-header-group-text":{padding:2,color:"black"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600},"& .first-column-cell":{fontSize:".8rem !important",fontWeight:"bold",color:"black"},"& .ag-status-bar":{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,padding:e.spacing(.5,1),fontSize:13,fontWeight:"bold",border:"none"},height:"20.5rem"},strandTable:{"& .ag-header-cell-label":{display:"flex",justifyContent:"center",alignItems:"center"}},dynamicHeight:{height:t=>{const n=t?.rowCount??4;return`${Math.min(350+(n-4)*50,550)}px`}},borderAgGridTable:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px "},manualAutoButton:{minWidth:"5px",padding:"6px 8px",cursor:"auto"},fileTabsRoot:{background:"transparent",minHeight:0,borderBottom:"none"},fileTabsIndicator:{display:"none"},fileTabRoot:{backgroundColor:e.palette.background.default,border:`1px solid ${e.palette.divider}`,borderBottom:"none",borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,textTransform:"none",minHeight:60,fontSize:20,padding:e.spacing(1,2),marginRight:e.spacing(1),"&:hover":{backgroundColor:e.palette.action.hover},"&$fileTabSelected":{backgroundColor:e.palette.background.paper,fontWeight:e.typography.fontWeightMedium}},fileTabSelected:{},container:{display:"flex",flexWrap:"nowrap",width:"100%"},field:{flex:1,minWidth:0},field2:{flex:2,minWidth:0},leftField:{"& .MuiOutlinedInput-root":{borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:"none"}},rightField:{"& .MuiOutlinedInput-root":{borderTopLeftRadius:0,borderBottomLeftRadius:0}},checkbox:{padding:0,margin:0},inputAdornment:{margin:0},input:{paddingRight:e.spacing(1)},outlinedTextarea:{width:"100%",padding:"10px 12px",border:`1px solid ${e.palette.grey[400]}`,borderRadius:e.shape.borderRadius,fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize,transition:e.transitions.create(["border-color","box-shadow"]),"&:hover":{borderColor:e.palette.text.primary},"&:focus":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 2px ${e.palette.primary.light}`,outline:"none"},"&::placeholder":{color:e.palette.text.secondary,opacity:1}},assetTitle:{display:"flex",justifyContent:"center",alignItems:"center",userSelect:"none",height:"100%"}}));Rt(e=>({manualAutoButton:{minWidth:"5px",width:"25px",height:"25px",padding:"6px 8px",cursor:"auto"}}));const bY=e=>{switch(e){case"S":return{name:"Scheduled",color:"#0288D1",letter:"S"};case"M":return{name:"Melting",color:"#FF7043",letter:"M"};case"T":return{name:"Tapped",color:"#FFD600",letter:"T"};case"O":return{name:"Opened",color:"#43A047",letter:"O"};case"C":return{name:"Closed",color:"#607D8B",letter:"C"};case"R":return{name:"Returned",color:"#8D6E63",letter:"R"};case"F":return{name:"Finished",color:"#3F51B5",letter:"F"};default:return{name:"Unknown",color:"#484848",letter:"X"}}},IEi=Rn(),PEi=Rt(e=>({infoCardContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",[e.breakpoints.down("sm")]:{justifyContent:"flex-start"}},infoCard:{maxWidth:"200px",minWidth:"170px",width:"100%"}})),DEi=({getStringValue:e,setShowGradeModal:t,getDataFromAPI:n,onNext:r,onPrevious:i})=>{PEi(),ac();const{state:o,actions:a}=O3t(),s=o.chemistryHeatReport,l=s?{HeatId:s.HiddenHeatId||0,HeatName:s.HeatName||"",NextHeatId:s.NextHeatId||null,PreviousHeatId:s.PreviousHeatId||null,NextHeatName:s.NextHeatName||null,PreviousHeatName:s.PreviousHeatName||null,LadleName:s.Ladle||null,HeatsOnLadle:s.HeatCountLadle||null,TapDate:s.ProductionDate||null,TapShift:s.Shift||null,TapCrew:s.Crew||null,OpenDate:null,OpenShift:null,OpenCrew:null,FinalStatus:s.HeatStatusCode||null,SteelWeight:null,EAFProcessId:null,CASProcessId:null,Grade:s.Grade||""}:null;return f.jsx(kt,{elevation:0,style:{border:"1px solid #ccc"},children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,md:3,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,alignContent:"center",children:l&&f.jsx(E3t,{value:l,onChange:c=>{n(c)},onBlur:()=>{},showNext:!!s?.NextHeatId,showPrevious:!!s?.PreviousHeatId,onNext:r,onPrevious:i,onLast:()=>{n(null)}})},"heat-navigator")},"col-heat-navigator"),f.jsx(D,{item:!0,xs:12,sm:6,md:3,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Heat Status",value:bY(s?.HeatStatusCode??"").name,variant:"outlined",fullWidth:!0,disabled:!0,InputProps:{endAdornment:f.jsx(nc,{position:"start",children:f.jsx("div",{style:{width:"26px",height:"26px",borderRadius:4,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:"bold",backgroundColor:s?.HeatStatusCode?bY(s.HeatStatusCode).color:"#ccc"},children:s?.HeatStatusCode})})}})},"heat-status"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Production Date",value:s?.ProductionDate?`${IEi(s?.ProductionDate).format("MM/DD/YYYY")} - Shift ${s?.Shift} - Crew ${s?.Crew}`:"",variant:"outlined",fullWidth:!0,disabled:!0})},"date-shift-crew")]})},"col-main-data-1"),f.jsx(D,{item:!0,xs:12,sm:6,md:3,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Programmed Grade",value:e(s?.ProgrammedGrade),variant:"outlined",fullWidth:!0,disabled:!0})},"programmed-grade"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Cast Grade",value:e(s?.Grade),variant:"outlined",fullWidth:!0,disabled:s?.HeatStatusCode!=="F"&&s?.HeatStatusCode!=="O",onClick:()=>{t(!0)},InputProps:{style:{cursor:"pointer"}}})},"cast-grade")]})},"col-main-data-2"),f.jsx(D,{item:!0,xs:12,sm:6,md:3,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Sections",value:e(s?.Sections),variant:"outlined",fullWidth:!0,disabled:!0})},"sections")})},"col-main-data-3")]})})})},kEi=Rn(),LEi=({elementList:e})=>{const{rowData:t,chemistryGroupCol:n}=b.useMemo(()=>{const a={},s={},l={},c={},u={};e&&e.length>0&&e.forEach(v=>{const y=`${v.SampleTypeName||"?"}${v.SampleSequence??""}`,M=v.ElementName;M&&(a[M]||(a[M]={order:v.Order??1/0,decimals:v.Decimals??4},l[M]=null,c[M]=null,u[M]=!1),v.Value!==null&&v.Value<0&&(u[M]=!0),v.MinValue!==null&&(l[M]===null||v.MinValue<l[M])&&(l[M]=v.MinValue),v.MaxValue!==null&&(c[M]===null||v.MaxValue>c[M])&&(c[M]=v.MaxValue),s[y]||(s[y]={id:y,SampleTypeName:v.SampleTypeName||"",SampleSequence:v.SampleSequence??null,Reception:v.Reception||null}),s[y][M]={value:v.Value,status:v.Status,minValue:v.MinValue,maxValue:v.MaxValue,decimals:a[M].decimals})});const d=Object.keys(a).sort((v,y)=>{const M=a[v].order,C=a[y].order;return M!==C?M-C:v.localeCompare(y)}),p=[{headerName:"Sample",valueGetter:v=>v.data?v.data.id:"",minWidth:69,maxWidth:69,flex:1},{headerName:"Time",minWidth:62,maxWidth:62,resizable:!0,valueGetter:v=>!v.data||v.data.id==="MIN"||v.data.id==="MAX"?"":v.data.Reception?kEi(v.data.Reception).format("HH:mm"):"",flex:1}],h=d.map(v=>{const y=a[v].decimals,C=u[v]||l[v]!==null&&l[v]<0||c[v]!==null&&c[v]<0?7:0,x=43+y*7+C;return{headerName:v,minWidth:x,flex:1,valueGetter:w=>{if(!w.data)return null;const S=w.data[v];return S&&typeof S=="object"?S.value:null},valueFormatter:w=>{if(w.value===null||w.value===void 0)return"-";let S=y;if(w.data){const A=w.data[v];A&&typeof A=="object"&&(S=A.decimals??y)}return typeof w.value=="number"?w.value.toFixed(S):"-"},cellClassRules:{"cell-below-min":w=>{if(w.rowIndex!==0||!w.data||w.data.id==="MIN"||w.data.id==="MAX")return!1;const S=w.data[v];return!!(S&&typeof S=="object"&&S.status==="Below")},"cell-above-max":w=>{if(w.rowIndex!==0||!w.data||w.data.id==="MIN"||w.data.id==="MAX")return!1;const S=w.data[v];return!!(S&&typeof S=="object"&&S.status==="Above")}},type:"numericColumn"}}),g={headerName:"Chemistry",children:[...p,...h]},m=Object.values(s);if(d.length>0){const v={id:"MIN",SampleTypeName:"MIN",SampleSequence:null,Reception:null},y={id:"MAX",SampleTypeName:"MAX",SampleSequence:null,Reception:null};d.forEach(M=>{const C=a[M].decimals;v[M]={value:l[M],decimals:C},y[M]={value:c[M],decimals:C}}),m.push(v,y)}return{rowData:m,chemistryGroupCol:g}},[e]),r=a=>a.data&&(a.data.id==="MIN"||a.data.id==="MAX")?{backgroundColor:"#f0f0f0"}:{},i=b.useMemo(()=>n?n.children||[]:[],[n]),o=b.useMemo(()=>({sortable:!1,editable:!1,suppressMenu:!0,flex:1}),[]);return{columns:i,defaultColDef:o,rowData:t,getRowStyle:r}},_Ei=Rt(e=>({gridWrapper:{"& .ag-cell.cell-below-min":{backgroundColor:" #ffa500",fontWeight:"bold"},"& .ag-cell.cell-above-max":{backgroundColor:" #f26b6b",fontWeight:"bold"},"& .ag-header-cell-label":{display:"flex",justifyContent:"center",alignItems:"center"}}})),NEi=({elementList:e})=>{const t=ac();_Ei();const{columns:n,rowData:r,getRowStyle:i}=LEi({elementList:e}),o=20+r.length*35+2;return f.jsx(f.Fragment,{children:f.jsx(kt,{className:t.borderAgGridTable,elevation:0,style:{margin:"10px 0px"},children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:`${Math.max(o,100)}px`,minWidth:"100%"},children:f.jsx(Kn,{rowData:r,columnDefs:n,suppressRowClickSelection:!0,suppressPaginationPanel:!0,suppressContextMenu:!0,getRowId:s=>s.data.id,getRowStyle:i,noRowsOverlayComponent:()=>"No chemistry data available"})})})})})},FEi=Rt(e=>({infoCardContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",[e.breakpoints.down("sm")]:{justifyContent:"flex-start"}},infoCard:{maxWidth:"200px",minWidth:"170px",width:"100%"}})),GKe=e=>{FEi();const t=fa(),{state:n,actions:r}=O3t(),{heatName:i}=Ms(),[o,a]=b.useState(i||null),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState([]);b.useEffect(()=>{a(i??null)},[i]);const h=M=>M==null?"":String(M),g=async M=>{const C=await h2e(M,!1);if(C.ok&&C.data&&C.data.tables[0]?.rows.length>0){const x=C.data.tables[0].rows,S=x.find(A=>A.Name===M)||x[0];if(S){const A={HeatId:S.Id,HeatName:S.Name,IsExternal:!1,NextHeatId:null,PreviousHeatId:null,NextHeatName:null,PreviousHeatName:null,ProcessId:null};r.setSelectedHeat(A)}}},m=async M=>{l(!0);const C=await zAi(M);if(C.ok&&C.data&&C.data.tables.length>1){const x=C.data.tables[0].rows[0],w=C.data.tables[1].rows;r.setChemistryHeatReport(x),p(w||[])}else r.setChemistryHeatReport(null),p([]),C.ok||console.error(C.message);l(!1)},v=()=>{const M=n.chemistryHeatReport;if(M?.NextHeatId&&M?.NextHeatName){const C={HeatId:M.NextHeatId,HeatName:M.NextHeatName,IsExternal:M.IsExternal||!1,NextHeatId:null,PreviousHeatId:null,NextHeatName:null,PreviousHeatName:null,ProcessId:null};r.setSelectedHeat(C),t(`/heat-report/chemistry/${M.NextHeatName}`)}},y=()=>{const M=n.chemistryHeatReport;if(M?.PreviousHeatId&&M?.PreviousHeatName){const C={HeatId:M.PreviousHeatId,HeatName:M.PreviousHeatName,IsExternal:M.IsExternal||!1,NextHeatId:null,PreviousHeatId:null,NextHeatName:null,PreviousHeatName:null,ProcessId:null};r.setSelectedHeat(C),t(`/heat-report/chemistry/${M.PreviousHeatName}`)}};return b.useEffect(()=>{const M=n.selectedHeat?.HeatId??null;m(M)},[n.selectedHeat?.HeatId]),b.useEffect(()=>{i&&i!==n.selectedHeat?.HeatName?g(i):!i&&!n.selectedHeat?.HeatId&&m(null)},[i,n.selectedHeat?.HeatName]),f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:`${n.chemistryHeatReport?.HeatName?n.chemistryHeatReport?.HeatName+" - ":""} Chemistry Heat Report`}),f.jsx(z6,{open:n.isLoadingBackground,style:{zIndex:1e3},children:f.jsx(Kt,{color:"inherit"})}),f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:" #F2F4F7"},children:f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Chemistry Heat Report"})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center"})}),n.chemistryHeatReport!==void 0&&n.chemistryHeatReport!==null&&f.jsx(C3,{theme:T3t,children:f.jsx(DEi,{getStringValue:h,setShowGradeModal:u,getDataFromAPI:m,onNext:v,onPrevious:y})}),n.chemistryHeatReport!==void 0&&n.chemistryHeatReport!==null&&f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,xs:12,children:s?f.jsx("div",{style:{padding:"20px"},children:f.jsx(j3e,{})}):f.jsx(NEi,{elementList:d})})})})]})})}),f.jsx(EEi,{show:c,onClose:M=>{u(!1),M&&m(n.selectedHeat?.HeatId??null)},gradeId:n.chemistryHeatReport?.CastedGradeId||null,heatId:n.selectedHeat?.HeatId||null})]})},WEi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:0,NextProductionDate:new Date,NextProductionShift:0,NextShift:"",NextCrew:"",NextStart:new Date,NextEnd:new Date,LastShiftId:0,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastCrew:"",LastStart:new Date,LastEnd:new Date},counters:[],errorMessage:"",notificationMessage:"",shiftId:!1},yY=Ni({name:"__",initialState:WEi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setShiftInfo(e,{payload:t}){e.shiftInfo=t},setCounters(e,{payload:t}){e.counters=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setShiftId(e,{payload:t}){e.shiftId=t}}}),R3t=b.createContext({state:yY.getInitialState(),actions:yY.actions}),qEi=()=>b.useContext(R3t),BEi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:yY.getInitialState(),reducers:yY.caseReducers});return f.jsx(R3t.Provider,{value:{state:t,actions:n},children:e})};var S5={},$Ke;function jEi(){if($Ke)return S5;$Ke=1;var e=ri(),t=ii();Object.defineProperty(S5,"__esModule",{value:!0}),S5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2zm-4 6H7V7h10v10z"}),"Memory");return S5.default=i,S5}var HEi=jEi();const vw=qn(HEi),VEi=()=>{const e=fa(),{shiftInfo:t}=la(),n=o=>{let a=[];return o.HeatNameLink&&a.push({name:"See in Data Entry",key:"go_to_caster_data_entry",style:{fontWeight:"bold"},onClick:()=>r(o.HeatNameLink),icon:f.jsx(vw,{})}),o.HeatId&&(a=a.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>i(o.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}])),a},r=o=>{o!==null&&e(o)},i=o=>{o&&e(`/meltshop-heats/${t?.CurrentShiftId}?heatId=${o}`)};return{getMenuOptions:n,goToHeats:i,goToDataEntry:r}},GEi=Rn(),$Ei=({})=>{const e=n=>n?"info-limit":"info-limit2";return{columns:[{field:"HeatName",headerName:"Heat",flex:1,minWidth:55},{field:"LadleOpen",headerName:"Open",flex:1,minWidth:57,cellRenderer:zd,cellRendererParams:{linkProperty:"HeatNameLink"},valueGetter:n=>n.data.LadleOpen?GEi(n.data?.LadleOpen).format("HH:mm"):""},{headerName:"Nozzle",children:[{field:"NozzleSize",headerName:"Size",minWidth:50,flex:1},{field:"NozzleHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.NozzleFirst)}]},{headerName:"Ladle",children:[{field:"LadleName",headerName:"#",minWidth:50,flex:1},{field:"HeatsOnLadle",headerName:"Heats",minWidth:60,flex:1},{field:"ContactTimeOnLadle",headerName:"Contact Time",minWidth:72,wrapHeaderText:!0,flex:1}]},{headerName:"Tundish",children:[{field:"TundishName",headerName:"#",minWidth:50,flex:1},{field:"TundishHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.TundishFirst)}]},{headerName:"Shroud",children:[{field:"TundishShroudName",headerName:"#",minWidth:50,flex:1},{field:"TundishShroudHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.TundishShroudFirst)}]},{headerName:"S1",children:[{headerName:"Housing",children:[{field:"S1HousingName",headerName:"Name",minWidth:60,flex:1},{field:"S1HousingHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.S1HousingFirst)}]},{headerName:"Mold",children:[{field:"S1MoldName",headerName:"Name",minWidth:60,flex:1},{field:"S1MoldHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.S1MoldFirst)}]}]},{headerName:"S2",children:[{headerName:"Housing",children:[{field:"S2HousingName",headerName:"Name",minWidth:60,flex:1},{field:"S2HousingHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.S2HousingFirst)}]},{headerName:"Mold",children:[{field:"S2MoldName",headerName:"Name",minWidth:60,flex:1},{field:"S2MoldHeats",headerName:"Heats",minWidth:60,flex:1,cellClass:n=>e(n.data.S2MoldFirst)}]}]},{headerName:"S3",type:["centerAligned"],children:[{headerName:"Housing",type:["centerAligned"],children:[{field:"S3HousingName",headerName:"Name",type:["numericColumn","numericWidth"],minWidth:58,maxWidth:90},{field:"S3HousingHeats",headerName:"Heats",type:["numericColumn","numericWidth"],minWidth:58,maxWidth:80,cellClass:n=>e(n.data.S3HousingFirst)}]},{headerName:"Mold",type:["centerAligned"],children:[{field:"S3MoldName",headerName:"Name",type:["numericColumn","numericWidth"],minWidth:58,maxWidth:90},{field:"S3MoldHeats",headerName:"Heats",type:["numericColumn","numericWidth"],minWidth:58,maxWidth:60,cellClass:n=>e(n.data.S3MoldFirst)}]}]}]}},UEi=({showDeletedProcesses:e,loadingGrid:t,rows:n})=>{const r=yj(),i=b.useRef(null),{columns:o}=$Ei({}),{shiftInfo:a}=la(),{goToDataEntry:s,getMenuOptions:l}=VEi(),{showContextMenu:c,registerConfig:u}=ks(),{columnTypes:d}=ku({OnEdit:()=>{}}),p=h=>{h.preventDefault()};return b.useMemo(()=>{t&&i.current!==null&&i.current.api!==void 0?i.current.api.showLoadingOverlay():i.current!==null&&i.current.api!==void 0&&i.current.api.hideOverlay()},[t]),b.useEffect(()=>{u({id:"casterCounters",getOptions:l})},[a?.CurrentShiftId]),f.jsx("div",{onContextMenu:p,children:f.jsx(D,{container:!0,className:r.root,children:f.jsx(D,{item:!0,md:12,xs:12,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},children:f.jsx(Kn,{ref:i,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:n,columnDefs:o,columnTypes:d,suppressContextMenu:!0,onRowDoubleClicked:h=>{h.data.HeatNameLink&&s(h.data.HeatNameLink)},onCellContextMenu:h=>{h.api.deselectAll(),h.node.setSelected(!0),h.event&&!e&&c(h.event,h.data,"casterCounters")}})})})})},XEi=e=>{const{state:t,actions:n}=qEi(),[r,i]=b.useState(!1),{shiftInfo:o}=la(),a=async()=>{n.setIsLoadingGrid(!0);const s=await YAi(o?.CurrentShiftId||0,r);s.ok&&s.data.tables.length>0?n.setCounters(s.data.tables[0].rows):console.log("something happened 2"),n.setIsLoadingGrid(!1)};return b.useEffect(()=>{(async()=>await a())()},[o,r]),t.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:"Caster Counters"}),f.jsxs(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:t.isLoadingBackground}),f.jsxs(D,{container:!0,children:[f.jsx(D,{item:!0,xs:12,style:{marginBottom:"10px"},children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Caster Counters"})}),f.jsx(s2,{}),f.jsx(D,{item:!0,xs:12,style:{marginTop:"10px"},children:f.jsx(UEi,{loadingGrid:t.isLoadingGrid,rows:t.counters||[],showDeletedProcesses:r})})]}),f.jsx(Mt,{error:t.errorMessage,onHide:()=>n.setErrorMessage("")}),f.jsx(Bm,{message:t.notificationMessage,onHide:()=>n.setNotificationMessage("")})]})]})},UKe=e=>f.jsx(BEi,{children:f.jsx(XEi,{})}),YEi={isLoadingPage:!1,isLoadingBackground:!1,errorMessage:"",notificationMessage:"",refreshStatus:"",lazyStart:null,processId:!1,processData:null,canRefresh:!0,refreshInPause:!1,tundishes:[],strands:null,scraps:null,elements:[],strandSpeeds:[],moldLevels:[],billetTemp:[],probes:null,lostStrands:null,pourBacks:null,moldSizes:null,tundishShrouds:null,tonnageReasons:null,scrapReasons:null,housings:null,ladles:null,grades:null,entityEditting:null},MY=Ni({name:"__",initialState:YEi,reducers:{setRefreshInPause(e,{payload:t}){typeof t=="function"?e.refreshInPause=t(e.refreshInPause):e.refreshInPause=t},setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setProcessId(e,{payload:t}){e.processId=t},setProcess(e,{payload:t}){const{processData:n,strands:r,probes:i,elements:o,lostStrands:a,strandSpeeds:s,moldLevels:l,billetTemp:c,scraps:u}=t;e.processData=n,e.strands=r,e.probes=i,e.elements=o,e.lostStrands=a,e.strandSpeeds=s,e.moldLevels=l,e.billetTemp=c,e.scraps=u},setProbes(e,{payload:t}){e.probes=t},setCatalogs(e,{payload:t}){const{tundishes:n,pourBacks:r,moldSizes:i,tundishShrouds:o,tonnageReasons:a,scrapReasons:s,housings:l,ladles:c,grades:u}=t;e.tundishes=n,e.pourBacks=r,e.moldSizes=i,e.tundishShrouds=o,e.tonnageReasons=a,e.scrapReasons=s,e.housings=l,e.ladles=c,e.grades=u},addRefreshStatus(e,{payload:t}){e.refreshStatus=t},mergeProcess(e,t){const{processData:n,strands:r,probes:i,elements:o,lostStrands:a,strandSpeeds:s,moldLevels:l,billetTemp:c,scraps:u}=t.payload;if(e.entityEditting===null)e.processData=n,e.strands=r,e.probes=i,e.elements=o,e.lostStrands=a,e.strandSpeeds=s,e.moldLevels=l,e.billetTemp=c,e.scraps=u;else{const{entity:d,index:p,field:h}=e.entityEditting;if(e.processData!=null&&d==="PROCESS"&&h!==""?e.processData={...n,[h]:e.processData[h]}:e.processData=n,e.strands!==null&&d==="STRAND"&&p>-1){const g=e.strands[p][h],m=[...r];m[p]={...e.strands[p],[h]:g},e.strands=m}else e.strands=r;if(e.probes!==null&&d==="PROBE"&&p>-1){const g=[...i];if(e.probes[p]?.ProbeId!==0){const m=e.probes[p][h];g[p]={...e.probes[p],[h]:m}}e.probes=g}else e.probes=i;e.elements=o,e.lostStrands=a,e.strandSpeeds=s,e.moldLevels=l,e.billetTemp=c,e.scraps=u}},setFocusField(e,t){const{entity:n,index:r,field:i}=t.payload;n==="PROCESS"&&e.processData===null||n==="STRAND"&&(e.strands===null||e.strands[r]===void 0||!e.strands[r].IsStrandDataManual)||n==="PROBE"&&(e.probes===null||e.probes[r]===void 0||!e.probes[r].IsProbeManual)||(e.canRefresh=!1,e.entityEditting={entity:n,index:r,field:i},e.lazyStart=new Date)},clearFocusField(e){e.entityEditting=null,e.canRefresh=!0,e.lazyStart=null},updateProcessData(e,t){const{field:n,value:r,clear:i=!1}=t.payload;if(e.processData===null)return;let o=e.processData.LadleSuperHeat||0;n==="TrimProbeTemperature"&&(o=(e.processData.F1LiquidusTemperature||0)-Number(r).valueOf()),e.processData={...e.processData,[n]:r,LadleSuperHeat:o},i&&(e.entityEditting=null,e.canRefresh=!0,e.lazyStart=null)}}}),I3t=b.createContext({state:MY.getInitialState(),actions:MY.actions}),Fo=()=>b.useContext(I3t),KEi=({children:e})=>{const t=Ms(),[n]=b.useState(t.processId===void 0?null:t.processId),[r,i]=Ui.useComplexState({initialState:MY.getInitialState(),reducers:MY.caseReducers});return b.useEffect(()=>{const o=Number(n);n==null||isNaN(o)?i.setProcessId(null):i.setProcessId(o)},[n]),f.jsx(I3t.Provider,{value:{state:r,actions:i},children:e})},QEi=({title:e,message:t,open:n,onClose:r,...i})=>{const o=()=>{r("OK")};return f.jsxs(Qu,{maxWidth:"xs",open:n,...i,children:[f.jsx(T0,{children:e}),f.jsx(ru,{dividers:!0,children:f.jsx(gM,{children:t})}),f.jsx(Td,{children:f.jsx(Fe,{onClick:o,children:"Ok"})})]})},P3t=({show:e,onHide:t,process:n})=>{const[r,i]=b.useState(!1),[o,a]=b.useState(""),[s,l]=b.useState([]),[c,u]=b.useState(null),[d,p]=b.useState(""),[h,g]=b.useState(""),[m,v]=b.useState(!1),y=async()=>{try{if(c===null){g("Please select a heat");return}if(gi(n))return;c.IsLinked===1?v(!0):await M()}catch(A){g(A.message)}},M=async()=>{try{i(!0);const A=await x3e(n?.ProcessId,c.HeatId);A.ok?t(!0):g(A.message)}catch(A){g(A.message)}finally{i(!1),v(!1)}},C=async()=>{if(!n)return;const A=await JX(d,n.LadleOpen);A.ok&&A.data?.tables?.[0]?.rows&&l(A.data.tables[0].rows)},x=(A,z)=>{p(z)},w=async A=>{A.key==="Enter"&&(A.preventDefault(),await C())},S=(A,z)=>{u(z)};return b.useEffect(()=>{e&&(i(!1),(async()=>{if(u(null),n==null)return;a(`Link Caster Process / Ladle Open: ${Wn(`${n.LadleOpen}`,"HH:mm")}
					 Heat: ${n.HeatName?n.HeatName:""}`);const A=await JX("",n.LadleOpen);A.ok&&A.data&&A.data.tables&&A.data.tables[0].rows&&l(A.data.tables[0].rows)})())},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Link Heat"}),f.jsxs(We,{maxWidth:"xl",open:e,handleClose:()=>{t(!0)},id:"linkCasterProcess",title:o,children:[f.jsx(We.Content,{style:{padding:"15px 30px",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:f.jsx(D,{container:!0,spacing:1,alignItems:"center",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ji,{options:s,getOptionLabel:A=>A.HeatName,value:c,onChange:S,inputValue:d,onInputChange:x,renderOption:A=>f.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[f.jsx("span",{children:A.HeatName}),A.IsLinked===1&&f.jsx("span",{style:{color:"red",marginLeft:"10px"},children:"(linked)"})]}),renderInput:A=>f.jsx(je,{...A,label:d?"Heat":"Search Heat",placeholder:"Search Heat",variant:"outlined",fullWidth:!0,onKeyDown:w,InputLabelProps:{style:{height:"auto",marginTop:5,display:"flex",alignItems:"center"}}})})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Da,{fullWidth:!0,isLoading:r,disabled:r,variant:"contained",color:"primary",onClick:y,children:"Save"})})]})})]}),f.jsxs(We,{open:m,handleClose:()=>v(!1),title:"Warning",id:"warningModal",children:[f.jsx(We.Content,{children:f.jsx("p",{style:{textAlign:"center"},children:"This heat is already linked in another process. Do you want to proceed?"})}),f.jsxs(We.Actions,{children:[f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>v(!1),children:"Cancel"}),f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"primary",onClick:M,children:"Proceed"})]})]}),f.jsx(Mt,{error:h,onHide:()=>g("")})]})},og=Rt(e=>({materialTable:{"& .ag-status-bar":{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,padding:e.spacing(.5,1),fontSize:13,fontWeight:"bold",border:"none"},height:"20.5rem"},strandTable:{"& .ag-header-cell-label":{display:"flex",justifyContent:"center",alignItems:"center"}},dynamicHeight:{height:t=>{const n=t?.rowCount??4;return`${Math.min(350+(n-4)*50,550)}px`}},borderAgGridTable:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px "},manualAutoButton:{minWidth:"5px",padding:"6px 8px",cursor:"auto"},outlinedTextarea:{width:"100%",padding:"10px 12px",border:`1px solid ${e.palette.grey[400]}`,borderRadius:e.shape.borderRadius,fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize,transition:e.transitions.create(["border-color","box-shadow"]),"&:hover":{borderColor:e.palette.text.primary},"&:focus":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 2px ${e.palette.primary.light}`,outline:"none"},"&::placeholder":{color:e.palette.text.secondary,opacity:1}}})),ZEi=Rt(e=>({manualAutoButton:{minWidth:"5px",width:"25px",height:"25px",padding:"6px 8px",cursor:"auto"}})),uT=Rt(e=>({chartHeader:{backgroundColor:e.palette.common.white,borderBottom:`1px solid ${e.palette.divider}`,padding:e.spacing(1),paddingLeft:e.spacing(3),textAlign:"left",fontSize:14,fontWeight:"bold",color:"black",fontFamily:'"Open Sans", "Lucida Grande", Arial, Verdana, Helvetica, sans-serif'}})),JF=[" #E41A1C"," #377EB8"," #4DAF4A","rgb(196, 174, 209)"],XKe=Rn(),YKe={S1:JF[0],S2:JF[1],S3:JF[2]},JEi=({billetTemp:e,processData:t})=>b.useMemo(()=>{const r=(e||[]).map(g=>({Datetime:g.Datetime,Value:g.Value??0,TagId:g.TagId?.toString()||"",TagName:g.TagName||""})).filter(g=>g.Datetime&&g.TagId&&g.TagName);if(r.length===0)return{title:{text:"No data available",left:"center",top:"center"},series:[]};const i=r.map(g=>g.Value),o=Math.min(...i).toFixed(0),a=Math.max(...i).toFixed(0),s=Math.ceil((Number(a)-Number(o))*.05),l=Math.max(0,Math.floor(Number(o))-s),c=Math.ceil(Number(a)+s),u=Math.ceil((c-l)/5),d=r.reduce((g,m)=>(g[m.TagId]||(g[m.TagId]=[]),g[m.TagId].push(m),g),{}),p={};let h=0;return Object.entries(d).forEach(([g,m])=>{const y=(m[0]?.TagName||"").substring(0,2);YKe[y]?p[g]=YKe[y]:(p[g]=JF[h%JF.length],h++)}),{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t?.HeatName} - Strand Speeds`,pixelRatio:2}}},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:g=>{const m=XKe(g[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),v=g.map(y=>`${y.seriesName}: ${y.value[1].toFixed(1)}`).join("<br>");return`Time: ${m}<br>${v}`}},legend:{data:Object.keys(d).map(g=>d[g][0].TagName).sort(),top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:g=>XKe(g).format("HH:mm")}},yAxis:{type:"value",name:"°F",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",min:l,max:c,interval:u},series:Object.entries(d).map(([g,m])=>({name:m[0].TagName,type:"line",smooth:!0,symbol:"none",sampling:"lttb",itemStyle:{color:p[g]},data:m.map(v=>[v.Datetime.getTime(),v.Value])}))}},[e,t]),eRi=()=>{const{state:{billetTemp:e,processData:t}}=Fo(),n=og(),r=uT(),i=b.useRef(null),o=JEi({billetTemp:e,processData:t});return b.useEffect(()=>{i.current&&i.current.getEchartsInstance().setOption(o,{replaceMerge:["series"],lazyUpdate:!0})},[o]),f.jsx(kt,{className:n.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsxs("div",{className:n.materialTable,children:[f.jsx("div",{className:r.chartHeader,children:"Billet Temperature"}),f.jsx(SM,{ref:i,option:o,notMerge:!1})]})})})},OG=[" #E41A1C"," #377EB8"," #4DAF4A","rgb(196, 174, 209)"],KKe=Rn(),cpe={S1:OG[0],S2:OG[1],S3:OG[2],"Tundish Level":OG[3]},tRi=({moldLevels:e,processData:t})=>b.useMemo(()=>{const r=(e||[]).map(l=>({Datetime:l.Datetime,Value:l.Value??0,TagId:l.TagId?.toString()||"",TagName:l.TagName||""})).filter(l=>l.Datetime&&l.TagId&&l.TagName);if(r.length===0)return{title:{text:"No data available",left:"center",top:"center"},series:[]};const i=r.filter(l=>l.TagName!=="Tundish Level"),o=r.filter(l=>l.TagName==="Tundish Level"),a=[],s=[];if(i.length>0){const l=i.map(v=>v.Value),c=Math.min(...l).toFixed(0),u=Math.max(...l).toFixed(0),d=Math.ceil((Number(u)-Number(c))*.05),p=Math.max(0,Math.floor(Number(c))-d),h=Math.ceil(Number(u)+d),g=Math.ceil((h-p)/5);a.push({type:"value",name:"Mold Level (%)",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",min:p,max:h,interval:g});const m=i.reduce((v,y)=>(v[y.TagId]||(v[y.TagId]=[]),v[y.TagId].push(y),v),{});Object.entries(m).forEach(([v,y])=>{const M=y[0].TagName;s.push({name:M,type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:0,itemStyle:{color:cpe[M.substring(0,2)]||cpe.S1},data:y.map(C=>[C.Datetime.getTime(),C.Value])})})}if(o.length>0){const l=o.map(m=>m.Value),c=Math.min(...l).toFixed(0),u=Math.max(...l).toFixed(0),d=Math.ceil((Number(u)-Number(c))*.05),p=Math.max(0,Math.floor(Number(c))-d),h=Math.ceil(Number(u)+d),g=Math.ceil((h-p)/5);a.push({type:"value",name:"Tundish Level (FT)",position:"right",nameTextStyle:{fontSize:14,align:"right"},nameLocation:"end",min:p,max:h,interval:g}),s.push({name:"Tundish Level",type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:a.length-1,areaStyle:{},itemStyle:{color:cpe["Tundish Level"]},data:o.map(m=>[m.Datetime.getTime(),m.Value])})}return{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t?.HeatName} - Mold Level`,pixelRatio:2}}},grid:{right:o.length>0?"8%":"5%"},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:l=>{const c=KKe(l[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),u=l.map(d=>`${d.seriesName}: ${d.value[1].toFixed(1)}`).join("<br>");return`Time: ${c}<br>${u}`}},legend:{data:s.map(l=>l.name).sort(),top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:l=>KKe(l).format("HH:mm")}},yAxis:a,series:s}},[e,t]),nRi=()=>{const{state:{moldLevels:e,processData:t}}=Fo(),n=og(),r=uT(),i=b.useRef(null),o=tRi({moldLevels:e,processData:t});return b.useEffect(()=>{i.current&&i.current.getEchartsInstance().setOption(o,{replaceMerge:["series"],lazyUpdate:!0})},[o]),f.jsx(kt,{className:n.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsxs("div",{className:n.materialTable,children:[f.jsx("div",{className:r.chartHeader,children:"Mold Level"}),f.jsx(SM,{ref:i,option:o,notMerge:!1})]})})})},eW=[" #E41A1C"," #377EB8"," #4DAF4A","rgb(196, 174, 209)"],QKe=Rn(),ZKe={S1:eW[0],S2:eW[1],S3:eW[2]},rRi=({strandSpeeds:e,processData:t})=>b.useMemo(()=>{const r=(e||[]).map(g=>({Datetime:g.Datetime,Value:g.Value??0,TagId:g.TagId?.toString()||"",TagName:g.TagName||""})).filter(g=>g.Datetime&&g.TagId&&g.TagName);if(r.length===0)return{title:{text:"No data available",left:"center",top:"center"},series:[]};const i=r.map(g=>g.Value),o=Math.min(...i).toFixed(0),a=Math.max(...i).toFixed(0),s=Math.ceil((Number(a)-Number(o))*.05),l=Math.max(0,Math.floor(Number(o))-s),c=Math.ceil(Number(a)+s),u=Math.ceil((c-l)/5),d=r.reduce((g,m)=>(g[m.TagId]||(g[m.TagId]=[]),g[m.TagId].push(m),g),{}),p={};let h=0;return Object.entries(d).forEach(([g,m])=>{const y=(m[0]?.TagName||"").substring(0,2);ZKe[y]?p[g]=ZKe[y]:(p[g]=eW[h%eW.length],h++)}),{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t?.HeatName} - Strand Speeds`,pixelRatio:2}}},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:g=>{const m=QKe(g[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),v=g.map(y=>`${y.seriesName}: ${y.value[1].toFixed(1)}`).join("<br>");return`Time: ${m}<br>${v}`}},legend:{data:Object.keys(d).map(g=>d[g][0].TagName).sort(),top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:g=>QKe(g).format("HH:mm")}},yAxis:{type:"value",name:"IPM",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",min:l,max:c,interval:u},series:Object.entries(d).map(([g,m])=>({name:m[0].TagName,type:"line",smooth:!0,symbol:"none",sampling:"lttb",itemStyle:{color:p[g]},data:m.map(v=>[v.Datetime.getTime(),v.Value])}))}},[e,t]),iRi=()=>{const{state:{strandSpeeds:e,processData:t}}=Fo(),n=og(),r=uT(),i=b.useRef(null),o=rRi({strandSpeeds:e,processData:t});return b.useEffect(()=>{i.current&&i.current.getEchartsInstance().setOption(o,{replaceMerge:["series"],lazyUpdate:!0})},[o]),f.jsx(kt,{className:n.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsxs("div",{className:n.materialTable,children:[f.jsx("div",{className:r.chartHeader,children:"Strand Casting Speed"}),f.jsx(SM,{ref:i,option:o,notMerge:!1})]})})})};var A5={},JKe;function oRi(){if(JKe)return A5;JKe=1;var e=ri(),t=ii();Object.defineProperty(A5,"__esModule",{value:!0}),A5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"}),"Receipt");return A5.default=i,A5}var aRi=oRi();const sRi=qn(aRi),lRi=({children:e,isLoading:t,...n})=>f.jsxs(Fe,{...n,disabled:t,children:[t&&f.jsx(Kt,{size:"1rem"}),e]}),cRi=async()=>await new Ye().callV2("[CAS].[GetTappedHeats]",[]),zR=async({heatId:e,status:t})=>await new Ye().callV2("[CAS].[ChangeHeatStatusCommand]",[{name:"HeatId",value:e},{name:"HeatStatusCode",value:t.charAt(0)},{name:"IsManual",value:!0}]),uRi=({show:e,onHide:t,refreshData:n,heats:r})=>{const[i,o]=b.useState(!1),[a,s]=b.useState(""),{actions:l}=Fo(),[c,u]=b.useState(null),{handleSubmit:d,control:p,reset:h}=Gn({}),g=async(v,y)=>{o(!0);const M=await zR({heatId:v,status:y});if(M.ok){const C=M.data;return await n(),u(M.data.returnValue),C}else s(M.message);o(!1)},m=async v=>{o(!0);const y=await g(v?.HeatId,"O");l.setRefreshInPause(!1),y.ok?u(y.data.returnValue):s(y.message),o(!1),t(!0)};return b.useEffect(()=>{o(!1),e&&l.setRefreshInPause(!0),h()},[e]),b.useEffect(()=>{c&&n().then(window.location.href=`/caster-data-entry/${c}`)},[c]),f.jsxs(f.Fragment,{children:[f.jsx(We,{title:"SELECT HEAT",open:e,handleClose:()=>t(!1),id:"select-heat-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:d(m),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"HeatId",control:p,rules:{required:"Heat is required"},render:({field:v,fieldState:{error:y}})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:r??[],getOptionLabel:M=>M.HeatName,renderInput:M=>f.jsx(je,{...M,label:"Heat",variant:"outlined",fullWidth:!0,error:!!y,size:"small",helperText:y?y.message:null}),value:r.find(M=>M.HeatId===v.value)||null,onChange:(M,C)=>{v.onChange(C?C.HeatId:null)}})})})})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsx(l2,{isSubmitLoading:i,onHide:t})})]})}),f.jsx(Mt,{error:a,onHide:()=>s("")})]})},dRi=({refreshData:e,process:t})=>{const{state:n,actions:r}=Fo(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[p,h]=b.useState([]),[g,m]=b.useState(null),v=t.HeatStatusCode,y=t.NextProcessId===null;t.NextProcessId;const[M,C]=b.useState(!1),[x,w]=b.useState(!1),[S,A]=b.useState(!1),[z,O]=b.useState(!1),[T,I]=b.useState(!1),[P,N]=b.useState(""),F=async()=>{const G=await cRi();if(o(!0),G.ok){const q=G.data.tables[0].rows??[];if(h(q),q.length===0&&w(!0),q.length>1)I(!0);else if(q.length===1){const $=await zR({heatId:q[0].HeatId,status:"O"});$.ok?(r.setNotificationMessage("Heat was opened successfully"),m($.data.returnValue)):N($.message)}}o(!1)},L=async G=>{if(w(!1),G!=="OK")return;const q=await zR({heatId:null,status:"O"});q.ok?(r.setNotificationMessage("Heat was opened successfully"),m(q.data.returnValue)):N(q.message),e()},W=async()=>{if(c(!0),t.HeatId){const G=await zR({heatId:t.HeatId,status:"F"});G.ok?e():N(G.message)}else N("Heat not provided");c(!1)},H=async G=>{if(O(!1),G==="OK"){if(s(!0),t.HeatId){const q=await zR({heatId:t.HeatId,status:"T"});q.ok?(window.location.href="/caster-data-entry/",e()):N(q.message)}else N("Heat not provided");s(!1)}},j=async G=>{if(A(!1),G==="OK"){if(d(!0),t.HeatId){const q=await zR({heatId:t.HeatId,status:"O"});q.ok?e():N(q.message)}else N("Heat not provided");d(!1)}};return b.useEffect(()=>{g&&e().then(window.location.href=`/caster-data-entry/${g}`)},[g]),f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,container:!0,spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:v==="O"?f.jsx(Fe,{fullWidth:!0,color:"primary",variant:"contained",style:{backgroundColor:!y||a?"#dcdcdd":"#ff7f00"},startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:!y||a,onClick:()=>O(!0),children:"Undo Open"}):f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"primary",startIcon:i&&f.jsx(Kt,{size:"1rem"}),disabled:!y||v!=="F"||i,onClick:F,children:"Open"})}),f.jsx(D,{item:!0,md:12,xs:12,children:v==="F"?f.jsx(Fe,{fullWidth:!0,color:"primary",variant:"contained",style:{backgroundColor:!y||u?"#dcdcdd":"#ff7f00"},startIcon:u&&f.jsx(Kt,{size:"1rem"}),disabled:!y||u,onClick:()=>A(!0),children:"Undo Close"}):f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"primary",startIcon:l&&f.jsx(Kt,{size:"1rem"}),disabled:!y||v!=="O"||l,onClick:W,children:"Close"})})]}),f.jsx(rl,{open:x,onClose:L,title:"Warning",message:"No tapped heat is available. Do you want to create an Unlinked process?"},"open-confirmation"),f.jsx(rl,{open:z,onClose:H,title:"Warning",message:"Are you sure you want to undo the open?"},"undo-open-confirmation"),f.jsx(rl,{open:S,onClose:j,title:"Warning",message:"Are you sure you want to undo the close?"},"undo-close-confirmation"),f.jsx(uRi,{refreshData:e,show:T,heats:p,onHide:()=>{C(!1),I(!1)}}),f.jsx(Mt,{error:P,onHide:()=>N("")})]})},pRi=Rt(e=>({heatStatus:{display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"4px",minWidth:"24px",height:"24px"},heatStatusContainer:{display:"flex",justifyContent:"center",alignItems:"center",gap:"8px"}})),hRi={S:{name:"Scheduled",color:" #0288D1",letter:"S"},M:{name:"Melting",color:" #FF7043",letter:"M"},T:{name:"Tapped",color:" #D2AF00",letter:"T"},O:{name:"Opened",color:" #43A047",letter:"O"},C:{name:"Closed",color:" #607D8B",letter:"C"},R:{name:"Returned",color:" #8D6E63",letter:"R"},F:{name:"Finished",color:" #3F90B5",letter:"F"}},fRi=({heatStatus:e})=>{const t=pRi(),n=" #D6D6D6",r=e?hRi[e]:null;return f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,children:f.jsx("div",{className:t.heatStatusContainer,children:r?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:t.heatStatus,style:{backgroundColor:r.color||n,color:"white"},children:f.jsx(bt,{variant:"body2",children:r.letter})}),f.jsx(bt,{children:r.name})]}):f.jsx(bt,{style:{color:"red"},children:"Unlinked"})})})})})},gRi=({process:e,onButtonClick:t,loading:n})=>f.jsx(f.Fragment,{children:f.jsx(yn,{size:"small",title:e.HeatId?"Unlink":"Link",onClick:t,style:{color:e.HeatId?"red":"#3f51b5"},children:n?f.jsx(Kt,{size:"1.5rem"}):e?.HeatId===null?f.jsx(jat,{style:{cursor:"pointer"}}):f.jsx(Hat,{style:{cursor:"pointer"}})})}),mRi=Rt(e=>({container:{display:"flex",flexWrap:"nowrap",width:"100%"},field:{flex:1,minWidth:0},field2:{flex:2,minWidth:0},leftField:{"& .MuiOutlinedInput-root":{borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:"none"}},rightField:{"& .MuiOutlinedInput-root":{borderTopLeftRadius:0,borderBottomLeftRadius:0}},checkbox:{padding:0,margin:0},inputAdornment:{margin:0},input:{paddingRight:e.spacing(1)}})),vRi=({ladleLife:e,disabled:t,isSubmitLoading:n})=>{const r=mRi();return f.jsxs("div",{className:r.container,children:[f.jsx(je,{className:`${r.field} ${r.leftField}`,label:"Ladle Life",variant:"outlined",disabled:t||n,size:"small",value:e.HeatsOnLadle||"",InputProps:{style:{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none"}}}),f.jsx(je,{className:`${r.field} ${r.rightField}`,variant:"outlined",disabled:t||n,size:"small",value:e.ContactTimeOnLadle,InputProps:{style:{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"}}})]})},VI=({checkboxValue:e,label:t,disabled:n=!1,onCheckboxChange:r,onFocus:i,onBlur:o})=>f.jsx(je,{fullWidth:!0,size:"small",variant:"outlined",label:t,value:"",disabled:!0,onFocus:i,onBlur:o,InputLabelProps:{style:{color:"black"}},InputProps:{endAdornment:f.jsx(nc,{position:"end",children:f.jsx(Qr,{checked:e,onChange:a=>r(a.target.checked),color:"primary",disabled:n,size:"small"})})}}),bRi=Rn(),a$=({value:e,format:t,label:n,onChange:r,onBlur:i,disabled:o=!1,disableOpenPicker:a=!1,error:s="",pause:l,resume:c})=>{const u={};t&&(u.format=t);const d=()=>{l()};return f.jsx(Cd,{ampm:!1,disableFuture:!0,disableOpenPicker:a,disabled:o,timezone:Rc.getInstance().getServerTimeZone(),label:n,value:bRi(e),onChange:p=>{r(p?.toDate()||null)},onAccept:p=>{r(p?.toDate()||null),i(p?.toDate()||null)},openTo:t?.includes("HH:mm")&&!t?.includes("DD/MM/YYYY")?"hours":"day",views:t?.includes("HH:mm")&&!t?.includes("DD/MM/YYYY")?["hours","minutes"]:["year","month","day","hours","minutes"],timeSteps:{minutes:1},slotProps:{textField:{variant:"outlined",fullWidth:!0,onFocus:d,onBlur:()=>{c(),i(e||null)},error:!!s,helperText:s,size:"small",sx:{fontSize:"10px !important"},InputLabelProps:{sx:{fontSize:"14px"}},InputProps:{sx:{height:"35px",maxWidth:"100%",fontSize:"10px !important"}},inputProps:{sx:{fontSize:"14px !important"}}}},...u})},yRi=(e,t)=>{if(e===null)return"";let n;switch(t){case"hours":n=e*3600;break;case"minutes":n=e*60;break;case"seconds":n=e;break;default:return""}const r=Math.floor(n/3600),i=Math.floor(n%3600/60),o=Math.round(n%60);return`${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(o).padStart(2,"0")}`},MRi=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1,unit:o})=>{const a=yRi(e,o);return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:a,type:"text",InputProps:{readOnly:!0},style:{minWidth:"50px"},inputProps:{style:{padding:"10px 10px"}}})},El=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1,pause:o,resume:a,maxDecimals:s,error:l})=>{const c=()=>{o()},u=d=>{const p=d.target.value;if(p===""){n(null);return}let h;s==null||s<0?h=/^(0|[1-9]\d*)(\.\d*)?$/:s===0?h=/^(0|[1-9]\d*)$/:h=new RegExp(`^(0|[1-9]\\d*)(\\.\\d{0,${s}})?$`),h.test(p)&&(p.endsWith(".")&&s!==void 0&&s>0?n(Number(p.slice(0,-1))):n(Number(p)))};return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:e===null?"":e,type:"number",error:!!l,helperText:l,onFocus:c,onChange:u,onKeyDown:d=>{(d.key.toLowerCase()==="e"||d.key==="-"||d.key==="+")&&d.preventDefault(),d.key==="."&&(s===0||e!==null&&String(e).includes("."))&&d.preventDefault(),d.key==="Enter"&&(a(),r())},onBlur:()=>{a(),r()},style:{minWidth:"50px"},inputProps:{style:{padding:"10px"},step:s&&s>0?`0.${"0".repeat(s-1)}1`:"1"}})},dT=Rt(e=>({processNavigator:{"& .MuiInputAdornment-root":{padding:"8px 0px",margin:"0px",width:"20px"}},linkedHeat:{"& .MuiOutlinedInput-input":{paddingLeft:"11px",width:"10px",fontSize:"1.5rem !important"},"& .MuiOutlinedInput-notchedOutline":{minHeight:"40px",height:"45px"}},unlinkedHeat:{"& .MuiOutlinedInput-input":{paddingLeft:"11px",width:"10px",fontSize:"1rem !important"}},inputLabel:{fontSize:"0.8rem","&.MuiInputLabel-shrink":{fontSize:"0.8rem"}},checkbox:{padding:0,margin:0},inputAdornment:{margin:"4px"},input:{paddingRight:e.spacing(1)}})),eQe=({textFieldValue:e,checkboxValue:t,label:n,onNumberFieldChange:r,onCheckboxChange:i,onBlur:o,textFieldDisabled:a=!0,checkboxDisabled:s=!1,isSubmitLoading:l=!1,pause:c,resume:u})=>{const d=dT(),p=()=>{c()};return f.jsx(f.Fragment,{children:f.jsx(je,{fullWidth:!0,disabled:a,label:n,size:"small",variant:"outlined",value:e||"",type:"number",onFocus:p,onChange:h=>{(h.target.value===""||/^(0|[1-9]\d*)(\.\d*)?$/.test(h.target.value))&&r(Number(h.target.value))},onKeyDown:h=>{h.key==="Enter"&&(u(),o())},onBlur:()=>{u(),o()},style:{minWidth:"50px"},InputProps:{classes:{input:d.input},endAdornment:f.jsx(nc,{position:"end",className:d.inputAdornment,children:f.jsx(Qr,{color:"primary",size:"small",disabled:s||l,className:d.checkbox,checked:!!t,onChange:h=>{i(h.target.checked)}})})}})})},CRi=Rt(e=>({select:{"& .MuiSelect-select":{padding:"10px",display:"flex",alignItems:"center"}}})),ON=({label:e,options:t,value:n,onChange:r,onBlur:i,onFocus:o,nullable:a=!1,disabled:s=!1})=>{const l=CRi(),c=u=>{const d=u.target.value;r(d)};return f.jsxs(f.Fragment,{children:[f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(il,{id:`${e}-selector`,children:e}),f.jsxs(ls,{fullWidth:!0,disabled:s,labelId:`${e}-selector`,id:`${e}-selector`,value:n||"",onChange:c,label:e,inputProps:{style:{padding:"10px"}},className:l.select,onBlur:i,onFocus:o,children:[a&&f.jsx(sr,{value:"",children:"None"},`${e}-null`),t.map(u=>f.jsx(sr,{value:u.value,children:u.label},`${e}-${u.label}`))]})]}),f.jsx(Mt,{error:"",onHide:()=>{}})]})},tQe=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1,pause:o,resume:a})=>{const s=()=>{o()};return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:e||"",onFocus:s,onChange:l=>{n(l.target.value)},onKeyDown:l=>{l.key==="Enter"&&(a(),r(e))},onBlur:()=>{a(),r(e)},style:{minWidth:"50px"}})},xRi=({reloadProcess:e})=>{const{state:t,actions:n}=Fo(),r=t.processData||{},i=fa();return{handleOnNextProcess:()=>{r===null||r.NextProcessId===null||(n.clearFocusField(),(async()=>await e(r.NextProcessId))())},handleOnPreviousProcess:()=>{r===null||r.PrevProcessId===null||(n.clearFocusField(),(async()=>await e(r.PrevProcessId))())},handleOnLastProcess:()=>{n.clearFocusField(),(async()=>await e(null))()},handleGoToProcessesByShiftId:p=>{p!==null&&(window.location.href="/caster-processes/"+p+"?processId="+r.ProcessId)},handleGoToProcess:p=>{(async()=>await e(p))()},handleGotToHeatReport:p=>{p!==null&&(window.location.href="/heat-report/chemistry/"+p)},handleGoToHeatsPage:(p,h)=>{p!==null&&i(`/meltshop-heats/${p}?heatId=${h}`)}}};function upe(e){return e.endsWith(".")&&(e=e.replace(".","")),!isNaN(Number(e))}const H3e=()=>{const{state:e,actions:t}=Fo();return{saveProcessData:async(l,c)=>{if(e.processData===null||e.processData.ProcessId===null||e.processData.HeatId===null&&l!=="TundishShroudId"||c===null&&l!=="ForceHeatsOnNozzle"&&l!=="ForceHeatsOnTundish"&&l!=="ForceHeatsOnTundishShroud"&&l!=="Scrap1Pieces"&&l!=="Scrap2Pieces"&&l!=="Scrap1Length"&&l!=="Scrap2Length"&&l!=="Scrap1CodeId"&&l!=="Scrap2CodeId")return;t.setIsLoadingBackground(!0);const u=await o$(e.processData.ProcessId,l,c);t.setIsLoadingBackground(!1),u.ok?t.setNotificationMessage(l+" was saved successfully"):t.setErrorMessage(u.message)},saveProcess:async(l,c,u)=>{if(t.setIsLoadingBackground(!0),!Jx(l))return!1;const d=await M3e(l,c,u);return t.setIsLoadingBackground(!1),d.ok?t.setNotificationMessage("Ladle Open and Close were saved successfully"):t.setErrorMessage(d.message),d.ok},saveHeat:async(l,c)=>{if(e.processData===null||e.processData.ProcessId===null||c===null)return;t.setIsLoadingBackground(!0);const u=await uz({HeatName:e.processData.HeatName,ShiftId:e.processData.ShiftId,GradeId:null,SteelWeight:e.processData.SteelWeight,LadleId:e.processData.LadleId,IsExternal:null,[l]:c,HeatId:e.processData.HeatId});t.setIsLoadingBackground(!1),u.ok?t.setNotificationMessage(l+" was saved successfully"):t.setErrorMessage(u.message)},saveLadleHeat:async(l,c)=>{if(e.processData===null||e.processData.ProcessId===null||c===null)return;t.setIsLoadingBackground(!0);const u=await uz({HeatName:e.processData.HeatName,ShiftId:e.processData.ShiftId,GradeId:null,SteelWeight:e.processData.SteelWeight,LadleId:c,IsExternal:null,HeatId:e.processData.HeatId});t.setIsLoadingBackground(!1),u.ok?t.setNotificationMessage(l+" was saved successfully"):t.setErrorMessage(u.message)},saveGradeHeat:async(l,c)=>{if(e.processData===null||e.processData.ProcessId===null||c===null)return;t.setIsLoadingBackground(!0);const u=await uz({HeatName:e.processData.HeatName,ShiftId:e.processData.ShiftId,GradeId:c,SteelWeight:e.processData.SteelWeight,LadleId:e.processData.LadleId,IsExternal:null,HeatId:e.processData.HeatId});t.setIsLoadingBackground(!1),u.ok?t.setNotificationMessage(l+" was saved successfully"):t.setErrorMessage(u.message)},saveTrimData:async(l,c)=>{if(e.processData===null||e.processData.ProcessId===null||c===null)return;t.setIsLoadingBackground(!0);const u=await FAi(e.processData.ProcessId,l,c);t.setIsLoadingBackground(!1),u.ok?t.setNotificationMessage(l+" was saved successfully"):t.setErrorMessage(u.message)}}},nQe=Rn(),V3e=({reloadProcess:e,refreshData:t})=>{const{state:n,actions:r}=Fo(),i=n.processData||{},{saveProcessData:o,saveHeat:a,saveLadleHeat:s,saveProcess:l,saveGradeHeat:c}=H3e();return{handleBooleanValueChanged:(A,z)=>{r.updateProcessData({field:A,value:z,clear:!0}),o(A,z)},handleBooleanCountersChanged:(A,z)=>{r.updateProcessData({field:A,value:z,clear:!0}),o(A,z?1:null).then(async()=>{await t()})},handleOptionValueChanged:(A,z)=>{r.updateProcessData({field:A,value:z,clear:!0}),o(A,z)},handleLadleValueChanged:(A,z)=>{r.updateProcessData({field:A,value:Number(z).valueOf(),clear:!0}),s(A,z)},handleGradeValueChanged:(A,z)=>{r.updateProcessData({field:A,value:Number(z).valueOf(),clear:!0}),c(A,z)},handleNumericValueChanged:(A,z)=>{upe(z)&&r.updateProcessData({field:A,value:Number(z).valueOf()})},handleOnBlurTextValue:(A,z)=>{z.trim()!==""&&(r.clearFocusField(),o(A,z))},handleOnBlurNumericValueForProcess:(A,z)=>{upe(z)&&(r.clearFocusField(),o(A,z))},handleOnBlurNumericValueForHeat:(A,z)=>{upe(z)&&(r.clearFocusField(),a(A,z))},handleOnBlurBooleanValueForHeat:(A,z)=>{r.clearFocusField(),a(A,!!z).then(async()=>{await t()})},handleProcessUpdate:async()=>{r.clearFocusField();const A=nQe.utc(i.LadleOpen);let z=i.LadleClose?nQe.utc(i.LadleClose):null;z&&(z.set("year",A.get("year")),z.set("month",A.get("month")),z.set("date",A.get("date")),z<A&&z.add(1,"days"));const O=z?.toDate()||null;await l(i.ProcessId,A.toDate(),O),await e(i.ProcessId)},handleOnFocus:A=>r.setFocusField({entity:"PROCESS",index:-1,field:A}),handleValueChanged:(A,z)=>r.updateProcessData({field:A,value:z})}},wRi=Rt(e=>({inputRoot:{"& .MuiInputLabel-outlined":{fontSize:14,transform:"translate(14px, 14px) scale(1)"},"& .MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:"translate(12px, -6px) scale(0.75)"},"& .MuiOutlinedInput-input":{padding:"27px 14px 10px",fontSize:"1rem !important"}}})),SRi=({iconButton:e,showNext:t,showPrevious:n,value:r,isProcessLoading:i=!1,secondValue:o,onButtonClick:a,onNext:s,onPrevious:l,onLast:c,onChange:u,onBlur:d,onFocus:p})=>{const h=fa(),[g,m]=b.useState(""),[v,y]=b.useState(!1),[M,C]=b.useState([]),[x,w]=b.useState({HeatName:r.HeatName,ProcessId:r.ProcessId}),[S,A]=b.useState(!1),[z,O]=b.useState(""),T=wRi(),I=b.useRef(z);I.current=z;const P=b.useCallback(nB(async L=>{y(!0);try{if(L.length>=2){const W=await PAi(L);if(W.ok){const H=W.data.tables[0].rows;I.current===L&&C(H)}else m(W.message)}if(L.length===0){const W=await IAi();W.ok?I.current===L&&C(W.data.tables[0].rows):m(W.message)}}catch{m("An error occurred while searching"),C([])}finally{y(!1)}},1500),[]),N=(L,W)=>{W?W.ProcessId!==r.ProcessId&&(w(W),h(`/caster-data-entry/${W.ProcessId}`),u&&u(W.ProcessId),setTimeout(()=>{document.getElementById("dummyDiv")?.focus()},500)):w(null)};b.useEffect(()=>(P(z),()=>{P.cancel()}),[z,P]);const F=b.useMemo(()=>x&&!M.some(L=>L.ProcessId===x.ProcessId)?[x,...M]:M,[M,x]);return b.useEffect(()=>{!S&&!v&&!i&&z!==r.HeatName&&w({HeatName:r.HeatName,ProcessId:r.ProcessId})},[S,z,r,v,i]),f.jsxs(f.Fragment,{children:[f.jsx(kt,{children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"center",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsx(yn,{size:"small","aria-label":"previous",color:"primary",disabled:!n,onClick:l,children:f.jsx(rQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,style:{minWidth:"110px"},children:f.jsx(Ji,{autoHighlight:!0,blurOnSelect:!0,clearOnEscape:!0,selectOnFocus:!0,popupIcon:null,options:F,getOptionLabel:L=>L?.HeatName||"Unlinked",value:x,onChange:N,getOptionSelected:(L,W)=>L.ProcessId===W.ProcessId,inputValue:z,onInputChange:(L,W)=>{O(W)},onFocus:L=>{A(!0),p&&p()},onBlur:L=>{A(!1),d&&d()},loading:v,renderInput:({InputProps:L,inputProps:W,...H})=>f.jsx(je,{...H,InputProps:{...L,style:{padding:"0 3px 0px 8px",height:"35px",maxWidth:"100%"}},inputProps:{...W,style:{fontSize:"18px !important"}},label:"Heat name",variant:"outlined",size:"small",className:T.inputRoot,InputLabelProps:{style:{fontSize:"14px"}}})})}),f.jsx(D,{item:!0,children:f.jsx(yn,{"aria-label":"next",color:"primary",disabled:!t,onClick:s,size:"small",children:f.jsx(iQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,children:f.jsx(yn,{color:"primary",onClick:c,disabled:!t,size:"small",title:"Last process",children:f.jsx(sQ,{style:{cursor:"pointer"}})})})]})})}),f.jsx(Mt,{error:g,onHide:()=>m("")})]})},ARi=Rn(),ORi=({process:e,ladles:t,grades:n,tundishes:r,tundishShrouds:i,reloadProcess:o,calculateProcess:a,refreshData:s,onProcessClicked:l,setDeliveryTicketModalOpen:c})=>{dte();const u=oc(),{state:d,actions:p}=Fo(),{handleOnNextProcess:h,handleOnPreviousProcess:g,handleOnLastProcess:m,handleGoToProcessesByShiftId:v,handleGoToProcess:y,handleGoToHeatsPage:M}=xRi({reloadProcess:o}),{handleBooleanValueChanged:C,handleOptionValueChanged:x,handleLadleValueChanged:w,handleGradeValueChanged:S,handleNumericValueChanged:A,handleOnBlurTextValue:z,handleOnBlurNumericValueForProcess:O,handleOnBlurNumericValueForHeat:T,handleBooleanCountersChanged:I,handleProcessUpdate:P,handleOnFocus:N,handleValueChanged:F}=V3e({reloadProcess:o,refreshData:s}),L=(W,H,j)=>H===null?`${W} ${j}`:`${ARi(H).format("MM/DD/yyyy")} ${W} ${j}`;return f.jsx(kt,{elevation:0,children:f.jsx(Tn,{padding:2,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(SRi,{isProcessLoading:d.isLoadingPage||d.isLoadingBackground,value:e,secondValue:e.ProductionYear?.toString(),iconButton:e.HeatId?f.jsx(cT,{style:{cursor:"pointer"}}):f.jsx(lT,{style:{cursor:"pointer"},color:"primary"}),showNext:e.NextProcessId!==null,showPrevious:e.PrevProcessId!==null,onChange:W=>y(W),onNext:h,onPrevious:g,onLast:m,onFocus:()=>{p.setRefreshInPause(!0)},onBlur:()=>{p.clearFocusField(),p.setRefreshInPause(!1)},onButtonClick:l})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,xs:8,children:f.jsx(fRi,{heatStatus:e.HeatStatusCode})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(gRi,{process:e,onButtonClick:l,loading:d.isLoadingBackground})})]}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(dRi,{refreshData:s,process:e})})]}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(tQe,{label:"Shift",value:L(e.Shift,e.ProductionDate,e.Crew||""),disabled:!0,onChange:W=>{},onBlur:W=>{},pause:()=>p.setRefreshInPause(!0),resume:()=>p.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(a$,{label:"Ladle Open",value:e.LadleOpen,format:"HH:mm - DD/MM/YYYY",disabled:!1,onChange:W=>{F("LadleOpen",W)},onBlur:W=>{p.setRefreshInPause(!1),P()},pause:()=>p.setRefreshInPause(!0),resume:()=>p.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(a$,{label:"Ladle Close",value:e.LadleClose,format:"HH:mm - DD/MM/YYYY",disabled:!1,onChange:W=>{F("LadleClose",W)},onBlur:W=>{p.setRefreshInPause(!1),P()},pause:()=>p.setRefreshInPause(!0),resume:()=>p.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(MRi,{label:"Duration [hh:mm:ss]",unit:"seconds",value:e.Duration?e.Duration:null,disabled:!0,onChange:()=>{}})})]})},`first-${e?.ProcessId}`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(a$,{label:"Tap Time",value:e.TapTime,format:"HH:mm - DD/MM/YYYY",disabled:!0,disableOpenPicker:!0,onChange:W=>{},onBlur:W=>{},pause:()=>p.setRefreshInPause(!0),resume:()=>p.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(El,{label:"Steel Weight [tons]",value:e.SteelWeight?parseFloat(e.SteelWeight.toFixed(1)):null,disabled:!e.HeatId,onChange:W=>{F("SteelWeight",W)},onBlur:()=>{T("SteelWeight",e.SteelWeight?.toString()||"")},pause:()=>p.setRefreshInPause(!0),resume:()=>p.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(ON,{label:"Grade",value:e.GradeId||"",options:n.map(({GradeId:W,GradeName:H})=>({value:W,label:H})),onChange:W=>S("GradeId",Number(W)),disabled:!e.HeatId,nullable:!1})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(tQe,{label:"Foreman",value:e.Foreman||"",disabled:!1,onChange:W=>F("Foreman",W),onBlur:W=>z("Foreman",W),pause:()=>p.setRefreshInPause(!0),resume:()=>p.setRefreshInPause(!1)})})]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(ON,{label:"Ladle",value:e.LadleId||"",options:t.map(({LadleId:W,LadleName:H})=>({value:W,label:H})),onChange:W=>w("LadleId",Number(W)),disabled:!e.HeatId,nullable:!1})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(vRi,{ladleLife:{HeatsOnLadle:e.HeatsOnLadle||null,ContactTimeOnLadle:e.ContactTimeOnLadle||null},isSubmitLoading:d.isLoadingBackground,disabled:!0})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(VI,{label:"Did Ladle Open",checkboxValue:!!e.IsFreeOpen,disabled:!1,onCheckboxChange:W=>C("IsFreeOpen",W),onFocus:()=>N("IsFreeOpen"),onBlur:()=>z("IsFreeOpen",e.IsFreeOpen?"true":"false")})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(VI,{label:"First Heat",checkboxValue:!!e.IsFirstHeat,disabled:!1,onCheckboxChange:W=>C("IsFirstHeat",W),onFocus:()=>N("IsFirstHeat"),onBlur:()=>z("IsFirstHeat",e.IsFirstHeat?"true":"false")})})]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(ON,{label:"Tundish",value:e.TundishId||"",options:r.map(({TundishId:W,TundishName:H})=>({value:W,label:H})),onChange:W=>x("TundishId",Number(W)),disabled:!1,nullable:!1})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(eQe,{label:"Heats on Tundish",textFieldValue:e.HeatsOnTundish??0,checkboxValue:!!e.ForceHeatsOnTundish,textFieldDisabled:!0,checkboxDisabled:!1,onNumberFieldChange:W=>A("HeatsOnTundish",W!==null?W.toString():"0"),onCheckboxChange:W=>I("ForceHeatsOnTundish",W),onBlur:()=>O("HeatsOnTundish",e.HeatsOnTundish?.toString()||"0"),pause:()=>p.setRefreshInPause(!0),resume:()=>p.setRefreshInPause(!1),isSubmitLoading:d.isLoadingBackground})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(El,{label:"Nozzle",value:e.NozzleSize!==null&&e.NozzleSize!==void 0?Number(e.NozzleSize):null,onChange:W=>{A("NozzleSize",W!==null?W.toString():"0")},onBlur:()=>{p.setRefreshInPause(!1),O("NozzleSize",e.NozzleSize?.toString()||"0")},disabled:!1,pause:()=>p.setRefreshInPause(!0),resume:()=>p.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(eQe,{label:"Heats on Nozzle",textFieldValue:e.HeatsOnNozzle??0,checkboxValue:!!e.ForceHeatsOnNozzle,textFieldDisabled:!0,checkboxDisabled:!1,onNumberFieldChange:W=>A("HeatsOnNozzle",W!==null?W.toString():"0"),onCheckboxChange:W=>I("ForceHeatsOnNozzle",W),onBlur:()=>O("HeatsOnNozzle",e.HeatsOnNozzle?.toString()||"0"),pause:()=>p.setRefreshInPause(!0),resume:()=>p.setRefreshInPause(!1),isSubmitLoading:d.isLoadingBackground})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(ON,{label:"Tundish Shroud",value:e.TundishShroudId||"",options:i.map(({TundishShroudId:W,TundishShroudName:H})=>({value:W,label:H})),onChange:W=>x("TundishShroudId",Number(W)),disabled:!1,nullable:!1})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(VI,{label:"Burn",checkboxValue:!!e.IsBurnOpen,disabled:!1,onCheckboxChange:W=>C("IsBurnOpen",W),onFocus:()=>N("IsBurnOpen"),onBlur:()=>z("IsBurnOpen",e.IsBurnOpen?"true":"false")})})]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(Fe,{style:{backgroundColor:u.palette.info.main,color:u.palette.info.contrastText},variant:"contained",onClick:()=>v(e.ShiftId),fullWidth:!0,children:"PROCESSES"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Fe,{style:{backgroundColor:u.palette.info.main,color:u.palette.info.contrastText},variant:"contained",onClick:()=>{e.HeatShiftId&&e.HeatId&&M(e.HeatShiftId,e.HeatId)},fullWidth:!0,disabled:!e.HeatShiftId||!e.HeatId,children:"HEATS PAGE"})}),f.jsx(D,{item:!0,xs:12,children:f.jsxs(T6,{fullWidth:!0,children:[f.jsxs(lRi,{variant:"contained",color:"primary",size:"small",onClick:()=>a(),isLoading:d.isLoadingBackground,style:{textTransform:"none",minWidth:"220px",maxWidth:"220px"},children:[d.entityEditting!==null?f.jsx("span",{children:"REFRESH"}):f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"REFRESHING"}),f.jsx("span",{style:{margin:"0 8px"},children:"- "+d.refreshStatus+"s "})]}),f.jsx("span",{children:f.jsx(jxe,{fontSize:"small"})})]}),f.jsx(Fe,{onClick:()=>p.setRefreshInPause(W=>!W),variant:"outlined",size:"small",children:d.refreshInPause?f.jsx(Gat,{}):f.jsx(Vat,{})})]})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Fe,{variant:"contained",style:{backgroundColor:u.palette.success.main,color:"white"},fullWidth:!0,onClick:()=>{c(!0),p.setRefreshInPause(!0)},startIcon:f.jsx(sRi,{}),children:"Delivery Ticket"})})]})})]})})})},zRi=Rn(),TRi=({refreshData:e,setHelmetTitle:t})=>{const{state:n,actions:r}=Fo(),i=n.processData||{},[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState({show:!1,message:""}),d=()=>{if(!(i===null||i.ProcessId===null))if(i.HeatId===null)l(!0);else{t("Unlink Heat");const m=zRi.utc(i.LadleOpen).local().format("YYYY/MM/DD HH:mm");u({show:!0,message:"The heat "+i.HeatName+" from "+m+" will be unlinked.  Do you want to continue?"})}},p=async m=>{if(u({show:!1,message:""}),m!=="OK"){t("");return}t(""),await h()},h=async()=>{try{if(n.processData===null||n.processData.ProcessId===null||n.processData.HeatId===null)return;r.setIsLoadingBackground(!0);const m=await C3e(n.processData.ProcessId);r.setIsLoadingBackground(!1),m.ok?(r.setNotificationMessage("Process unlinked successfully"),await e()):r.setErrorMessage(m.message)}catch(m){r.setIsLoadingBackground(!1),r.setErrorMessage(m.message)}};return{onProcessClicked:d,unlinkCasterProcess:p,unLinkProcessData:h,linkProcessData:async m=>{try{if(n.processData===null||n.processData.ProcessId===null||n.processData.HeatId!==null)return;r.setIsLoadingBackground(!0);const v=await x3e(n.processData.ProcessId,m);r.setIsLoadingBackground(!1),v.ok?(r.setNotificationMessage("Process linked successfully"),await e()):r.setErrorMessage(v.message)}catch(v){r.setIsLoadingBackground(!1),r.setErrorMessage(v.message)}},showChangeModal:o,showLinkModal:s,showUnlinkModal:c,setShowChangeModal:a,setShowLinkModal:l}},ERi=Rt({autocompleteInput:{padding:"0px 10px !important"}}),D3t=({onChange:e,value:t,label:n,initialValue:r,className:i,inputError:o})=>{const a=ERi(),[s,l]=b.useState([]),[c,u]=b.useState(""),[d,p]=b.useState(!0),h=[r||{GradeId:0,GradeName:"ALL"},...s],g=h.find(y=>y.GradeId===t),m=(y,M,C,x)=>{e(M?.GradeId||null)},v=async()=>{p(!0);try{const y=await z3t();y.ok?l(y.data.tables[0].rows):u(y.message),p(!1)}catch(y){u(y)}};return b.useEffect(()=>{v()},[]),d?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Ji,{id:"",value:g,onChange:m,options:h,getOptionLabel:y=>y.GradeName,renderInput:y=>f.jsx(je,{...y,label:n?"Grade":"",variant:"outlined",className:i,error:!!o,helperText:o,size:"small",InputProps:{...y.InputProps,classes:{input:a.autocompleteInput}}}),style:{minWidth:200},size:"small"}),f.jsx(Mt,{error:c,onHide:()=>u("")})]})},RRi=Rt({autocompleteInput:{padding:"0px 10px !important"}}),IRi=({onChange:e,value:t,label:n,className:r})=>{const i=RRi(),[o,a]=b.useState([]),[s,l]=b.useState(""),[c,u]=b.useState(!0),[d,p]=b.useState(),h=(v,y,M,C)=>{y&&y.MoldSizeId&&e(y.MoldSizeId)},g=async()=>{u(!0);const v=await gzt();v.ok?(a(v.data.tables[0].rows),p(m.find(y=>y.MoldSizeId===t))):l(v.message),u(!1)},m=[{MoldSizeId:null,MoldSizeName:""},...o];return b.useEffect(()=>{if(t){const v=m.find(y=>y.MoldSizeId===t);p(v)}},[t,o]),b.useEffect(()=>{g()},[]),c?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Ji,{id:"mold-size-selector",value:d,onChange:h,options:m,getOptionLabel:v=>v.MoldSizeName,renderInput:v=>f.jsx(je,{...v,label:n?"MoldSize":"",variant:"outlined",className:r,InputProps:{...v.InputProps,classes:{input:i.autocompleteInput}}}),style:{minWidth:200},size:"small"}),f.jsx(Mt,{error:s,onHide:()=>l("")})]})},k3t=Rt(e=>({input:{"& .MuiInputBase-input":{fontSize:"17px !important",color:e.palette.text.primary},"& .MuiOutlinedInput-root":{"& fieldset":{},"&:hover fieldset":{borderColor:e.palette.primary.dark}}},disabledInput:{"& .MuiInputBase-input":{backgroundColor:" #e9ecef"},"& .MuiOutlinedInput-root":{"& fieldset":{},"&:hover fieldset":{borderColor:"#ced4da"}}},textFieldMUI:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:"1px solid #ced4da",width:"100%",padding:"19px",transition:e.transitions.create(["border-color","box-shadow"]),fontFamily:e.typography.fontFamily,fontSize:"18px !important",color:e.palette.text.primary,height:"20px!important"},addButton:{minWidth:"35px",width:"35px",height:"35px",padding:"25px",fontSize:"1.5rem"}})),PRi=({deliveryTicket:e,handleHeatInputChange:t,dateTimeFormatted:n,errors:r,setErrors:i,setPendingChanges:o})=>{const{state:a,actions:s}=Fo();H3e();const l=k3t(),[c,u]=b.useState(""),[d,p]=b.useState(e?.heatData.CasterForeman??null),[h,g]=b.useState(e?.heatData.Melter??null),[m,v]=b.useState(e?.heatData.LabTech??null),[y,M]=b.useState(e?.heatData.Sequence??null),C=O=>{t("GradeId",O),o(T=>({...T,gradeId:O})),i(O===null?T=>{const I=new Map(T);return I.set("GradeId","Please select a grade"),I}:T=>{const I=new Map(T);return I.delete("GradeId"),I})},x=O=>{t("MoldSizeId",O),o(T=>({...T,moldSizeId:O}))},w=()=>{t("CasterForeman",d),o(O=>({...O,casterForeman:d}))},S=()=>{t("Melter",h),o(O=>({...O,melter:h}))},A=()=>{t("LabTech",m),o(O=>({...O,labTech:m}))},z=()=>{t("Sequence",y),o(O=>({...O,sequence:y}))};return f.jsxs(f.Fragment,{children:[f.jsxs(D,{item:!0,container:!0,xs:8,spacing:1,style:{marginBottom:"30px"},children:[f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(bt,{style:{fontWeight:"bold"},children:"HEAT No:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{value:e?.heatData.HeatName??"",onChange:O=>t("HeatName",O.target.value),fullWidth:!0,variant:"outlined",size:"small",InputProps:{readOnly:!0},className:l.disabledInput+" "+l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(bt,{style:{fontWeight:"bold"},children:"GRADE:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(D3t,{value:e?.heatData.GradeId??null,initialValue:{GradeId:null,GradeName:""},onChange:O=>{C(O)},className:l.input,inputError:r.get("GradeId")})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(bt,{style:{fontWeight:"bold"},children:"MOLD SIZE:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(IRi,{value:e?.heatData.MoldSizeId??null,onChange:O=>{x(O)},className:l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(bt,{style:{fontWeight:"bold"},children:"CASTER FOREMAN:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{value:d,onBlur:O=>w(),onChange:O=>p(O.target.value),fullWidth:!0,variant:"outlined",size:"small",className:l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(bt,{style:{fontWeight:"bold"},children:"CAST DATE:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{type:"date",value:n?.castDateFormatted??"",onChange:O=>t("CastDate",O.target.value),InputLabelProps:{shrink:!0},InputProps:{readOnly:!0},fullWidth:!0,variant:"outlined",size:"small",className:l.disabledInput+" "+l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(bt,{style:{fontWeight:"bold"},children:"TAP TIME:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{type:"time",value:n?.tapTime??"",onChange:O=>t("TapTime",O.target.value),InputLabelProps:{shrink:!0},InputProps:{readOnly:!0},fullWidth:!0,variant:"outlined",size:"small",className:l.disabledInput+" "+l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(bt,{style:{fontWeight:"bold"},children:"MELTER:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{value:h,onChange:O=>g(O.target.value),onBlur:O=>{S()},fullWidth:!0,variant:"outlined",size:"small",className:l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(bt,{style:{fontWeight:"bold"},children:"LAB TECH:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{value:m,onChange:O=>v(O.target.value),onBlur:O=>{A()},fullWidth:!0,variant:"outlined",size:"small",className:l.input})})]}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(bt,{style:{fontWeight:"bold"},children:"SEQUENCE:"})}),f.jsx(D,{item:!0,xs:6,alignContent:"center",children:f.jsx(je,{value:y,onChange:O=>M(O.target.value),onBlur:O=>{z()},fullWidth:!0,variant:"outlined",size:"small",className:l.input})})]})]}),f.jsx(Mt,{error:c||a.errorMessage,onHide:()=>{c&&u(""),a.errorMessage&&s.setErrorMessage("")}})]})},DRi=(e,t)=>(typeof e=="string"&&(e=parseFloat(e)),typeof t=="string"&&(t=parseFloat(t)),!isNaN(e)&&!isNaN(t)&&t!==0?(e/t).toFixed(2):""),G3e=({feet:e,inches:t,onChange:n,error:r,helperText:i,className:o,disabled:a})=>{const s=c=>{if(c.target.value===""){n(0,t),setTimeout(()=>c.target.select(),0);return}const u=parseInt(c.target.value,10);!isNaN(u)&&u>=0&&n(u,t)},l=c=>{if(c.target.value===""){n(e,0),setTimeout(()=>c.target.select(),0);return}const u=parseInt(c.target.value,10);!isNaN(u)&&u>=0&&u<12&&n(e,u)};return f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(je,{onFocus:c=>c.target.select(),className:o,label:"Ft",type:"tel",value:e,onChange:s,error:r,helperText:r?i:"",fullWidth:!0,variant:"outlined",size:"small",disabled:a,inputProps:{min:0}})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(je,{onFocus:c=>c.target.select(),className:o,label:"In",type:"tel",value:t,onChange:l,error:r,helperText:r?i:"",fullWidth:!0,variant:"outlined",size:"small",disabled:a,inputProps:{min:0,max:11}})})]})},L3t=e=>/^\d*\.?\d*$/.test(e),kRi=({value:e,onChange:t,error:n,helperText:r,className:i})=>f.jsx(je,{className:i,error:n,helperText:r,value:e,onChange:o=>{L3t(o.target.value)&&t(o.target.value)},variant:"outlined",size:"small",onFocus:o=>o.target.select()}),LRi=Rt({autocompleteInput:{padding:"0px 10px !important"}}),_3t=({value:e,onChange:t,onFocus:n,moldSizeId:r,readonly:i,required:o,className:a,label:s,inputError:l,inputStyles:c})=>{const u=LRi(),[d,p]=b.useState(!1),[h,g]=b.useState([]),[m,v]=b.useState(""),y=async()=>{p(!0);const M=await TAi(r);if(M.ok){const C=M.data.tables[0].rows;g(C)}else v(M.message);p(!1)};return b.useEffect(()=>{y().then(()=>{})},[r]),f.jsxs(f.Fragment,{children:[f.jsx(Ji,{options:h,getOptionLabel:M=>M.SectionName,value:h.find(M=>M.SectionId.toString()===(e!==null?e.toString():""))||null,onChange:(M,C)=>{t(C?C.SectionId.toString():null)},disabled:i||d,loading:d,className:a,renderInput:M=>f.jsx(je,{...M,label:s,variant:"outlined",size:"small",fullWidth:!0,onFocus:n,error:!!l,helperText:l,InputLabelProps:{...M.InputLabelProps,shrink:!0},InputProps:{...M.InputProps,style:{...c},classes:{input:u.autocompleteInput},endAdornment:f.jsx(f.Fragment,{children:d?f.jsx(Kt,{color:"inherit",size:20}):M.InputProps.endAdornment})}})}),f.jsx(Mt,{error:m,onHide:()=>v("")})]})},_Ri=({value:e,onChange:t,className:n,helperText:r})=>f.jsx(_3t,{moldSizeId:null,value:e,onChange:i=>{i&&t(i)},className:n,onFocus:()=>{},required:!0,inputError:r}),NRi=({value:e,onChange:t,error:n,helperText:r,className:i})=>{const o=s=>{const l=s.target.value;L3t(l)&&t(l)},a=s=>{const l=s.target.value;(!l||l.trim()===""||parseFloat(l)<=0)&&t("")};return f.jsx(je,{error:n,helperText:r,value:e,onChange:o,onBlur:a,label:"lbs",fullWidth:!0,variant:"outlined",size:"small",onFocus:s=>s.target.select(),className:i,required:!0})},FRi=({value:e,error:t,helperText:n,className:r})=>f.jsx(je,{error:t,helperText:n,value:e,InputProps:{readOnly:!0},fullWidth:!0,variant:"outlined",size:"small",className:r}),WRi=Rn(),qRi=({errors:e,setErrors:t,deliveryTicket:n,moldSizes:r,handleProductBatchChange:i,refreshProductBatches:o,isLoading:a})=>{const s=k3t(),l=["Length","Pieces","Section","Weight","Weight/Pc"],[c,u]=b.useState(""),{state:d,actions:p}=Fo(),h=()=>d.processData?.LadleClose!=null,g=()=>{if(!n?.productBatches||n.productBatches.length===0)return null;const x=n.productBatches.reduce((S,A)=>{const z=S.Timestamp;return A.Timestamp>z?A:S});return{dateTime:WRi(x.Timestamp).format("MM/DD/YYYY - HH:mm:ss"),user:x.ReportedBy||"System"}},m=(x,w=null)=>{if(x&&x.preventDefault(),n&&n.productBatches.length<8){const A={ProductBatchId:-Math.floor(Math.random()*1e6)-1,Length:"0",Pieces:1,SectionName:"",SectionId:0,Weight:w||0,WeightPerPiece:""},z=[...n.productBatches,A];i(-1,"updateAllBatches",JSON.stringify(z))}},v=async x=>{if(n&&d.processId){const w=n.productBatches.find(A=>A.ProductBatchId===x.ProductBatchId);if(w?.ProductBatchId&&w?.ProductBatchId>0){const A=await mzt({productBatchId:w?.ProductBatchId,sectionId:w?.SectionId,processId:d.processId,weight:0,pieces:0,length:w?.Length,isManualSaved:!0});if(!A.ok){u(A.message);return}}const S=n.productBatches.filter(A=>A.ProductBatchId!==x.ProductBatchId);i(-1,"updateAllBatches",JSON.stringify(S)),t(A=>{const z=new Map(A);for(const O of z.keys())O.endsWith(`-${x.ProductBatchId}`)&&z.delete(O);return z})}},y=(x,w,S,A)=>{const z=w*12+S;i(x,"Length",z.toString()),t(O=>{const T=new Map(O);return T.delete(`Length-${A}`),T})},M=(x,w,S)=>{i(w,"SectionId",x),t(A=>{const z=new Map(A);return z.delete(`Section-${S}`),z})},C=(x,w,S)=>{i(w,"Weight",x),t(A=>{const z=new Map(A);return z.delete(`Weight-${S}`),z})};return f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{container:!0,item:!0,xs:12,spacing:2,alignItems:"center",children:[f.jsx(D,{item:!0,xs:1}),l.map((x,w)=>{const S=x==="Pieces"?1:x==="Section"?3:2;return f.jsx(D,{item:!0,xs:S,children:f.jsx(bt,{align:"center",style:{fontWeight:"bold",marginRight:w===l.length-1?"24px":"0"},children:x})},x)}),f.jsx(D,{item:!0,xs:1,children:f.jsx(tl,{title:h()?"Get from strands":"Get from strands will be enabled when the ladle is closed",arrow:!0,placement:"top",children:f.jsx("span",{children:f.jsx(Fe,{startIcon:a&&f.jsx(Kt,{size:"1rem"}),fullWidth:!0,variant:"outlined",color:"primary",disabled:!h()||a,onClick:()=>{h()&&o()},children:f.jsx(Qee,{})})})})})]}),n?.productBatches.map((x,w)=>f.jsxs(D,{container:!0,item:!0,xs:12,spacing:2,alignItems:"center",children:[f.jsx(D,{item:!0,xs:1}),f.jsx(D,{item:!0,xs:2,children:f.jsx(G3e,{feet:Math.floor(Number(x.Length)/12)||0,inches:Number(x.Length)%12||0,onChange:(S,A)=>y(w,S,A,x.ProductBatchId),error:e.has(`Length-${x.ProductBatchId}`),helperText:e.get(`Length-${x.ProductBatchId}`),className:s.input})}),f.jsx(D,{item:!0,xs:1,children:f.jsx(kRi,{value:x.Pieces,onChange:S=>i(w,"Pieces",S),error:e.has(`Pieces-${x.ProductBatchId}`),helperText:e.get(`Pieces-${x.ProductBatchId}`),className:s.input})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(_Ri,{value:x.SectionId,onChange:S=>M(S,w,x.ProductBatchId),className:`${s.input}`,error:e.has(`Section-${x.ProductBatchId}`),helperText:e.get(`Section-${x.ProductBatchId}`)})}),f.jsx(D,{item:!0,xs:2,children:f.jsx(NRi,{value:x.Weight,onChange:S=>C(S,w,x.ProductBatchId),error:e.has(`Weight-${x.ProductBatchId}`),helperText:e.get(`Weight-${x.ProductBatchId}`),className:s.input})}),f.jsx(D,{item:!0,xs:2,children:f.jsx(FRi,{value:x.WeightPerPiece||(x.Weight&&x.Pieces?DRi(x.Weight,x.Pieces):""),error:e.has(`WeightPerPiece-${x.ProductBatchId}`),helperText:e.get(`WeightPerPiece-${x.ProductBatchId}`),className:s.disabledInput+" "+s.input})}),f.jsx(D,{item:!0,xs:1,container:!0,justifyContent:"center",children:w>0&&f.jsx(yn,{onClick:()=>v(x),size:"small",color:"secondary",title:"Delete",children:f.jsx(Mo,{style:{cursor:"pointer"}})})})]},w)),f.jsx(D,{item:!0,xs:1}),n&&n.productBatches.length<8&&f.jsx(D,{item:!0,xs:2,children:f.jsx(yn,{color:"primary",className:`${s.addButton}`,size:"medium",onClick:x=>m(x),title:"Add new line",children:f.jsx(N3e,{fontSize:"medium",style:{cursor:"pointer"}})})}),(()=>{const x=g();return x?f.jsx(D,{item:!0,xs:12,container:!0,justifyContent:"flex-end",children:f.jsxs(bt,{variant:"caption",style:{color:"#6c757d",fontSize:"0.75rem",fontStyle:"italic",marginRight:"20px"},children:["Last updated: ",x.dateTime," by"," ",x.user]})}):null})(),f.jsx("div",{style:{height:"180px"}})]}),f.jsx(Mt,{error:c,onHide:()=>u("")})]})},rQe=Rn(),f2e=async(e,t)=>{const n=[];n.push({name:"ShiftId",value:e}),n.push({name:"GetDeleted",value:t});const i=await new Ye().callV2("[EAF].[GetProcessesByShift]",n);return i.ok&&(i.data.tables[0].rows=i.data.tables[0].rows.map(o=>({...o,Start:o.Start?rQe.utc(o.Start).toDate():null,End:o.End?rQe.utc(o.End).toDate():null}))),i},N3t=async(e,t,n,r,i)=>{try{const o=new Ye,a=[];return a.push({name:"ProcessId",value:e}),a.push({name:"AssetId",value:i||null}),a.push({name:"Start",value:t===null?null:new Date(t).toISOString()}),a.push({name:"End",value:n===null?null:new Date(n).toISOString()}),a.push({name:"IsProcessManual",value:r}),await o.callV2("[EAF].[UpsertProcess]",a)}catch(o){return{ok:!1,message:o.toString()}}},BRi=async e=>{const t=new Ye,n=[];return n.push({name:"ProcessId",value:e}),await t.callV2("[EAF].[DeleteProcess]",n)},jRi=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[MS].[UnDeleteProcess]",n)}catch(r){return{ok:!1,message:r.toString()}}},HRi=async(e,t,n)=>{const r=new Ye,i=[];i.push({name:"ProcessId",value:e}),i.push({name:t,value:n}),i.push({name:"IsProcessDataManual",value:!0});try{return await r.callV2("[EAF].[UpdateProcessData]",i)}catch(o){return{ok:!1,message:o.toString()}}},$3e=async(e,t)=>{const n=new Ye,r=[];r.push({name:"ProcessId",value:e}),r.push({name:"HeatId",value:t}),r.push({name:"IsHeatIdManual",value:!0});try{return await n.callV2("[EAF].[ManualLinkProcessToHeat]",r)}catch(i){return{ok:!1,message:i.toString()}}},U3e=async e=>{const t=new Ye,n=[];n.push({name:"ProcessId",value:e});try{return await t.callV2("[EAF].[UnlinkProcessToHeat]",n)}catch(r){return{ok:!1,message:r.toString()}}},rD=async(e,t,n)=>{const r=new Ye,i=[];return i.push({name:"SearchText",value:e}),i.push({name:"Start",value:t}),i.push({name:"AssetId",value:n??null}),await r.callV2("[EAF].[SearchUnlinkedHeats]",i)},F3t=(e,t,n)=>{const r=n?.find(s=>s.MoldSizeId===t)?.LbsPerFoot||0,o=(Number(e.Length)||0)/12*r,a=o*(Number(e.Pieces)||0);return{...e,Weight:Number(a.toFixed(2)),WeightPerPiece:Number(o.toFixed(2))}},VRi=(e,t,n)=>e.map(r=>F3t(r,t,n)),dpe=Rn(),GRi=(e,t)=>{const[n,r]=b.useState(!1),[i,o]=b.useState(""),[a,s]=b.useState(null),[l,c]=b.useState(null),[u,d]=b.useState({}),[p,h]=b.useState(new Map),[g,m]=b.useState(!1),[v,y]=b.useState(""),{state:{settings:M}}=ka(),C=Number(Ot(M,"MIN_DELIVERY_TICKET_WEIGHT_IN_LBS",1e5)),x=async()=>{if(r(!0),!e)o("No process id provided.");else{const N=await kAi(e);if(N.ok){const[L,W]=N.data.tables;s({heatData:L.rows[0],productBatches:W.rows})}else o(N.message);const F=await gzt();F.ok?c(F.data.tables[0].rows):o(F.message)}r(!1)},w=async()=>{if(r(!0),!e)o("No process id provided.");else{u&&Object.keys(u).length>0&&await O();const N=await LAi(e);N.ok||o(N.message)}await x(),r(!1)},S=(N,F)=>{s(L=>{if(!L)return null;const W={...L.heatData,[N]:F};if(N==="MoldSizeId"){const H=L.productBatches.some(j=>j.isManualSaved===!0);return{...L,heatData:W,productBatches:H?L.productBatches:VRi(L.productBatches,F,l)}}return{...L,heatData:W}})},A=(N,F,L)=>{s(W=>{if(!W)return null;if(F==="updateAllBatches")return{...W,productBatches:JSON.parse(L)};const H=[...W.productBatches];if(N>=0){let j={...H[N],[F]:F==="Length"?Number(L):L};(F==="Length"||F==="Pieces")&&(j=F3t(j,W.heatData.MoldSizeId,l)),H[N]=j}return{...W,productBatches:H}})},z=b.useMemo(()=>{let N,F;return a?.heatData.CastDate&&(N=dpe(a.heatData.CastDate).format("YYYY-MM-DD")),dpe(a?.heatData.TapTime).isValid()?F=Wn(dpe(a?.heatData.TapTime).toDate(),"HH:mm"):F=a?.heatData.TapTime,{castDateFormatted:N,tapTime:F}},[a?.heatData.TapTime,a?.heatData.CastDate]),O=async()=>{if(!(!a||!e))try{const N=[];u.gradeId!==void 0&&N.push(uz({GradeId:u.gradeId,HeatId:a.heatData.HeatId})),u.moldSizeId!==void 0&&e&&N.push(o$(e,"MoldSizeId",u.moldSizeId)),u.casterForeman!==void 0&&e&&N.push(o$(e,"Foreman",u.casterForeman)),u.melter!==void 0&&a.heatData.EAFProcessId&&N.push(HRi(a.heatData.EAFProcessId,"Foreman",u.melter)),u.labTech!==void 0&&N.push(BAi(a.heatData.HeatId,u.labTech)),u.sequence!==void 0&&e&&N.push(o$(e,"Sequence",u.sequence));const L=(await Promise.all(N)).filter(W=>!W.ok).map(W=>W.ok?"":W.message);L.length>0?o(L.join(", ")):d({})}catch{o("An unexpected error occurred while saving changes")}},T=async(N=!1)=>{if(p.size>0){o("Please check all the fields");return}if(a&&a.productBatches.length&&!a.productBatches.reduce((L,W)=>L+W.Pieces,0)){o("Please add at least one piece of each");return}if(r(!0),await O(),a&&a.productBatches&&e)try{const F=a.productBatches.map((H,j)=>{if(!e){o("No process provided to print delivery ticket.");return}return mzt({productBatchId:H.ProductBatchId,sectionId:H.SectionId,processId:e,weight:H.Weight,pieces:H.Pieces,length:H.Length,isManualSaved:!0,lowWeightConfirmed:N&&j===0})}),W=(await Promise.all(F)).filter(H=>!H?.ok).map(H=>H&&!H.ok?H.message:"");await x(),W.length>0?o(W.join(", ")):window.open(`/delivery-ticket/${e}`,"_blank","noopener,noreferrer")}catch{o("An unexpected error occurred")}r(!1)};return{isLoading:n,error:i,deliveryTicket:a,moldSizes:l,pendingChanges:u,errors:p,dateTimeFormatted:z,handleHeatInputChange:S,handleProductBatchChange:A,handleClickPrint:async()=>{let N=!1,F=!1;if(a?.productBatches.forEach(W=>{W.SectionId===0&&(h(H=>{const j=new Map(H);return j.set(`Section-${W.ProductBatchId}`,"Please select one"),j}),N=!0),(!W.Weight||W.Weight<=0)&&(h(H=>{const j=new Map(H);return j.set(`Weight-${W.ProductBatchId}`,"Weight is required and must be greater than 0"),j}),F=!0)}),N||F)return;if(a?.productBatches.some(W=>W.Weight>0&&W.Weight<C)){const W=(C/2e3).toFixed(2);y(`The weight you are sending is less than ${C} lbs (${W} tons). Are you sure you want to send this?`),m(!0)}else await T()},refreshProductBatches:w,loadData:x,setError:o,setErrors:h,setPendingChanges:d,confirmationDialogOpen:g,confirmationDialogMessage:v,handleConfirmationDialogClose:async N=>{m(!1),N==="OK"&&await T(!0)}}},$Ri=({show:e,onHide:t,processId:n})=>{const r=c2(),{actions:i}=Fo(),{isLoading:o,error:a,setError:s,deliveryTicket:l,moldSizes:c,errors:u,dateTimeFormatted:d,handleHeatInputChange:p,handleProductBatchChange:h,handleClickPrint:g,refreshProductBatches:m,setErrors:v,setPendingChanges:y,loadData:M,confirmationDialogOpen:C,confirmationDialogMessage:x,handleConfirmationDialogClose:w}=GRi(n);return b.useEffect(()=>{e&&M()},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Delivery Ticket"}),f.jsx(We,{open:e,handleClose:()=>{t(!0)},id:"delivery-ticket-modal",maxWidth:"md",children:o?f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{padding:"560px 450px"},children:f.jsx(Kt,{size:"5rem"})}):f.jsxs(f.Fragment,{children:[f.jsxs(We.Content,{className:`${r.modalContent} ${r.pageBreakAvoid}`,style:{border:"4px solid #ccc",borderRadius:10,margin:"10px 20px"},children:[f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",direction:"column",spacing:1,style:{marginBottom:"30px"},children:[f.jsx(D,{item:!0,children:f.jsx(bt,{variant:"h6",align:"center",style:{fontWeight:"bold"},children:"STEEL OF WEST VIRGINIA"})}),f.jsx(D,{item:!0,children:f.jsx(bt,{variant:"h6",align:"center",style:{fontWeight:"bold"},children:"MELTSHOP DELIVERY TICKET"})})]}),f.jsx("form",{noValidate:!0,autoComplete:"off",children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"center",children:[f.jsx(PRi,{dateTimeFormatted:d,setPendingChanges:y,deliveryTicket:l,handleHeatInputChange:p,errors:u,setErrors:v}),f.jsx(qRi,{errors:u,setErrors:v,deliveryTicket:l,moldSizes:c,handleProductBatchChange:h,refreshProductBatches:m,isLoading:o})]})})]}),f.jsx(We.Actions,{className:r.noPrint,style:{padding:"1rem 3rem"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:3,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>{i.setRefreshInPause(!1),u.clear(),t(!0)},children:"Close"})}),f.jsx(D,{item:!0,md:3,xs:3,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"primary",onClick:g,disabled:!n,children:"Save & print"})})]})})]})}),f.jsx(Mt,{error:a,onHide:()=>{s("")}}),f.jsx(rl,{open:C,onClose:w,title:"Confirm Weight",message:x})]})},URi=Rn(),XRi=Rt(()=>({autocomplete:{'& input[type="text"]':{padding:"0px 14px !important"}}})),YRi=({show:e,onHide:t,process:n})=>{const r=XRi(),{state:i,actions:o}=Fo(),{state:{settings:a}}=ka(),s=Ot(a,"MinPourbackWeight",0),l=Ot(a,"MaxPourbackWeight",200),c=i.pourBacks||[],[u,d]=b.useState(""),[p,h]=b.useState(!1),{control:g,handleSubmit:m,setValue:v,formState:{errors:y},reset:M}=Gn({mode:"onChange",defaultValues:{pourbackWeight:null,selectedReason:null}}),C=async x=>{if(h(!0),x.pourbackWeight!==null&&x.selectedReason){const w=await NAi(n.PourbackId,n.HeatId,n.ProcessId,x.pourbackWeight,x.selectedReason.PourbackReasonId,n.LadleOpen||URi.utc().toDate());w.ok?(o.setRefreshInPause(!1),t(!0)):d(w.message)}else d("Please fill all the fields");h(!1)};return b.useEffect(()=>{if(e){const x=c.find(w=>w.PourbackReasonId===n.PourbackReasonId);M({pourbackWeight:n.PourbackWeight,selectedReason:x||null})}},[e,n,c,M]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Pourback Declaration"}),f.jsx(We,{open:e,handleClose:t,title:"Pourback Declaration",maxWidth:"md",children:f.jsxs("form",{onSubmit:m(C),children:[f.jsx(We.Content,{dividers:!0,children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(Ue,{name:"pourbackWeight",control:g,rules:{required:"Pourback Weight is required",min:{value:s,message:`Minimum Weight is ${s}`},max:{value:l,message:`Maximum Weight is ${l}`}},render:({field:x})=>f.jsx(je,{...x,type:"number",label:"Pourback Weight [tons]",variant:"outlined",size:"small",error:!!y.pourbackWeight,helperText:y.pourbackWeight?.message,onFocus:w=>w.target.select(),fullWidth:!0})})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(Ue,{name:"selectedReason",control:g,rules:{required:"Pourback Reason is required"},render:({field:x})=>f.jsx(Ji,{...x,id:"pourback-reason-selector",options:c,getOptionLabel:w=>w.PourbackReasonName,renderInput:w=>f.jsx(je,{...w,label:"Pourback Reason",variant:"outlined",error:!!y.selectedReason,helperText:y.selectedReason?.message,className:r.autocomplete}),onChange:(w,S)=>x.onChange(S),style:{minWidth:200},size:"small"})})})]})}),f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:3,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>{o.setRefreshInPause(!1),t()},children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:3,children:f.jsx(Da,{isLoading:p,fullWidth:!0,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(Mt,{error:u,onHide:()=>d("")})]})},KRi=Rn(),QRi=({elementList:e})=>{const{rowData:t,chemistryGroupCol:n}=b.useMemo(()=>{const a={},s={},l={},c={};e&&e.length>0&&e.forEach(m=>{const v=`${m.SampleTypeName||"?"}${m.SampleSequence??""}`,y=m.ElementName;y&&(a[y]||(a[y]={order:m.Order??1/0,decimals:m.Decimals??4},l[y]=null,c[y]=null),m.MinValue!==null&&(l[y]===null||m.MinValue<l[y])&&(l[y]=m.MinValue),m.MaxValue!==null&&(c[y]===null||m.MaxValue>c[y])&&(c[y]=m.MaxValue),s[v]||(s[v]={id:v,SampleTypeName:m.SampleTypeName||"",SampleSequence:m.SampleSequence??null,Reception:m.Reception||null}),s[v][y]={value:m.Value,status:m.Status,minValue:m.MinValue,maxValue:m.MaxValue,decimals:a[y].decimals})});const u=Object.keys(a).sort((m,v)=>{const y=a[m].order,M=a[v].order;return y!==M?y-M:m.localeCompare(v)}),d=[{headerName:"Sample",valueGetter:m=>m.data?m.data.id:"",minWidth:100,flex:1},{headerName:"Time",minWidth:81,resizable:!0,valueGetter:m=>!m.data||m.data.id==="MIN"||m.data.id==="MAX"?"":m.data.Reception?KRi(m.data.Reception).format("HH:mm"):"",flex:1}],p=u.map(m=>{const v=a[m].decimals;return{headerName:m,minWidth:60,valueGetter:y=>{if(!y.data)return null;const M=y.data[m];return M&&typeof M=="object"?M.value:null},valueFormatter:y=>{if(y.value===null||y.value===void 0)return"-";let M=v;if(y.data){const C=y.data[m];C&&typeof C=="object"&&(M=C.decimals??v)}return typeof y.value=="number"?y.value.toFixed(M):"-"},cellClassRules:{"cell-below-min":y=>{if(y.rowIndex!==0||!y.data||y.data.id==="MIN"||y.data.id==="MAX")return!1;const M=y.data[m];return!!(M&&typeof M=="object"&&M.status==="Below")},"cell-above-max":y=>{if(y.rowIndex!==0||!y.data||y.data.id==="MIN"||y.data.id==="MAX")return!1;const M=y.data[m];return!!(M&&typeof M=="object"&&M.status==="Above")}},type:"numericColumn",flex:1}}),h={headerName:"Chemistry",children:[...d,...p]},g=Object.values(s);if(u.length>0){const m={id:"MIN",SampleTypeName:"MIN",SampleSequence:null,Reception:null},v={id:"MAX",SampleTypeName:"MAX",SampleSequence:null,Reception:null};u.forEach(y=>{const M=a[y].decimals;m[y]={value:l[y],decimals:M},v[y]={value:c[y],decimals:M}}),g.push(m,v)}return{rowData:g,chemistryGroupCol:h}},[e]),r=a=>a.data&&(a.data.id==="MIN"||a.data.id==="MAX")?{backgroundColor:"#f0f0f0"}:{},i=b.useMemo(()=>n?n.children||[]:[],[n]),o=b.useMemo(()=>({sortable:!1,editable:!1,suppressMenu:!0,flex:1}),[]);return{columns:i,defaultColDef:o,rowData:t,getRowStyle:r}},ZRi=Rt(e=>({gridWrapper:{"& .ag-cell.cell-below-min":{backgroundColor:" #ffa500",fontWeight:"bold"},"& .ag-cell.cell-above-max":{backgroundColor:" #f26b6b",fontWeight:"bold"},"& .ag-header-cell-label":{display:"flex",justifyContent:"center",alignItems:"center"}}})),JRi=()=>{const e=og();ZRi();const{state:t}=Fo(),n=t.elements||[],{columns:r,rowData:i,getRowStyle:o}=QRi({elementList:n}),a=20+i.length*41+2;return f.jsx(f.Fragment,{children:f.jsx(kt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{className:`${e.materialTable}`,style:{height:`${Math.max(a,227)}px`,minWidth:"100%"},children:f.jsx(Kn,{rowData:i,columnDefs:r,suppressPaginationPanel:!0,suppressContextMenu:!0,cellSelection:!0,copyHeadersToClipboard:!0,enableCellTextSelection:!0,getRowId:l=>l.data.id,getRowStyle:o,noRowsOverlayComponent:()=>"No chemistry data available"})})})})})},ppe=e=>{const{displayName:t,editCallback:n,column:r}=e;return f.jsxs(D,{container:!0,alignItems:"center",spacing:0,children:[f.jsx(D,{item:!0,children:f.jsx("span",{children:t})}),f.jsx(D,{item:!0,children:f.jsx(yn,{color:"primary",onClick:()=>n(r.getColId()),title:`Edit ${t}`,size:"medium",children:f.jsx(No,{style:{cursor:"pointer"},fontSize:"small"})})})]})},eIi=(e,t)=>{const n=[{property:"Housing",field:"HousingName",type:"listbox"},{property:"Housing First",field:"ForceHeatsOnHousing",type:"checkbox"},{property:"Housing Heats",field:"HeatsOnHousing",type:"input",readOnly:!0},{property:"Mold",field:"MoldName",type:"autocomplete"},{property:"Size",field:"MoldSizeName",type:"input",readOnly:!0},{property:"Mold First",field:"ForceHeatsOnMold",type:"checkbox"},{property:"Mold Heats",field:"HeatsOnMold",type:"input",readOnly:!0}],r=e.reduce((l,c)=>(l[c.Strand?.toString()]=c,l),{}),i=n.map(l=>({id:l.property,Property:l.property,s1:r[1]?r[1][l.field]:null,s2:r[2]?r[2][l.field]:null,s3:r[3]?r[3][l.field]:null,type:l.type,field:l.field,readOnly:l.readOnly||!1})),o=l=>l.data.type==="checkbox"?f.jsx(Qr,{color:"primary",checked:!!l.value,disabled:!0}):f.jsx("span",{children:l.value!=null?l.value:""});return{columns:[{field:"Property",headerName:"",flex:1,minWidth:115},{field:"s1",headerName:"S1",flex:1,minWidth:84,headerComponent:ppe,headerComponentParams:{editCallback:l=>{t(l)}},cellRenderer:o,cellStyle:{display:"flex",justifyContent:"center"}},{field:"s2",headerName:"S2",flex:1,minWidth:84,headerComponent:ppe,headerComponentParams:{editCallback:l=>{t(l)}},cellRenderer:o,cellStyle:{display:"flex",justifyContent:"center"}},{field:"s3",headerName:"S3",flex:1,minWidth:85,headerComponent:ppe,headerComponentParams:{editCallback:l=>{t(l)}},cellRenderer:o,cellStyle:{display:"flex",justifyContent:"center"}}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:i}},X3e=()=>{const[e,t]=b.useState(),[n,r]=b.useState(null),{state:i,actions:o}=Fo(),a=async(l,c,u)=>{if(i.processData===null||i.processData.ProcessId===null||u===null&&c!=="ForceHeatsOnHousing"&&c!=="ForceHeatsOnMold"&&c!=="Pieces")return;o.setIsLoadingBackground(!0);let d;d=await WAi(i.processData.ProcessId,l,c,u),o.setIsLoadingBackground(!1),d?.ok?r(c+" was saved successfully"):t(d?.message)},s=async(l,c)=>{if(i.processData===null||i.processData.ProcessId===null||c===null&&l!=="ForceHeatsOnHousing"&&l!=="ForceHeatsOnMold"&&l!=="Pieces")return;o.setIsLoadingBackground(!0);let u;u=await qAi(i.processData.ProcessId,l,c),o.setIsLoadingBackground(!1),u?.ok?r(l+" was saved successfully for all strands"):t(u?.message)};return b.useEffect(()=>{n&&(o.setNotificationMessage(n),r("")),e&&(o.setErrorMessage(e),t(null))},[n,e]),{save:a,saveAllStrands:s,error:e,sucess:n}},tIi=({show:e,onHide:t,strandId:n})=>{const{state:r}=Fo(),i=c2(),{save:o}=X3e(),[a,s]=b.useState(!1),[l,c]=b.useState(""),u=r.housings||[],d=r.moldSizes||[],p=r.strands||[],h=n.startsWith("s")?n.substring(1):n,g=p.find(x=>x.Strand?.toString()===h),{control:m,handleSubmit:v,reset:y,formState:{errors:M}}=Gn({defaultValues:{HousingId:g&&g.HousingId||"",ForceHeatsOnHousing:g?!!g.ForceHeatsOnHousing:!1,MoldId:g&&g.MoldId||"",ForceHeatsOnMold:g?!!g.ForceHeatsOnMold:!1}});b.useEffect(()=>{e&&g&&y({HousingId:g.HousingId||"",ForceHeatsOnHousing:!!g.ForceHeatsOnHousing,MoldId:g.MoldId||"",ForceHeatsOnMold:!!g.ForceHeatsOnMold})},[e,y,g]);const C=async x=>{if(p.length){s(!0);try{await o(g?.Strand||0,"HousingId",x.HousingId),await o(g?.Strand||0,"ForceHeatsOnHousing",x.ForceHeatsOnHousing?1:null),await o(g?.Strand||0,"MoldId",x.MoldId),await o(g?.Strand||0,"ForceHeatsOnMold",x.ForceHeatsOnMold?1:null),s(!1),t(!0)}catch(w){c(w.message||"Error saving strand"),s(!1)}}};return f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:`Edit Strand ${g?.Strand?g?.Strand:""}`}),f.jsx(We,{title:`Edit Strand ${g?.Strand?g?.Strand:""}`,open:e,handleClose:()=>t(!1),id:"edit-strand-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:v(C),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",children:[f.jsx(il,{id:"housing-label",children:"Housing"}),f.jsx(Ue,{name:"HousingId",control:m,rules:{required:"Housing is required"},render:({field:x})=>f.jsx(ls,{...x,labelId:"housing-label",label:"Housing",children:u.map(w=>f.jsx(sr,{value:w.HousingId,children:w.HousingName},w.HousingId))})}),M.HousingId&&f.jsx("span",{className:i.errorLabel,children:M.HousingId.message})]})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"ForceHeatsOnHousing",control:m,render:({field:x})=>f.jsx(VI,{label:"Housing First",checkboxValue:!!x.value,disabled:!1,onCheckboxChange:w=>x.onChange(w)})})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",children:[f.jsx(il,{id:"mold-label",children:"Mold"}),f.jsx(Ue,{name:"MoldId",control:m,rules:{required:"Mold is required"},render:({field:x})=>f.jsx(ls,{...x,labelId:"mold-label",label:"Mold",children:d.map(w=>f.jsx(sr,{value:w.MoldId,children:`${w.MoldName} - ${w.MoldSizeName}`},w.MoldId))})}),M.MoldId&&f.jsx("span",{className:i.errorLabel,children:M.MoldId.message})]})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"ForceHeatsOnMold",control:m,render:({field:x})=>f.jsx(VI,{label:"Mold First",checkboxValue:!!x.value,disabled:!1,onCheckboxChange:w=>x.onChange(w)})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Da,{fullWidth:!0,isLoading:a,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(Mt,{error:l,onHide:()=>c(""),title:"Error Editing Strand"})]})},nIi=({refreshData:e})=>{const{state:t,actions:n}=Fo(),r=og(),i=t.strands||[],[o,a]=b.useState(""),s=d=>{n.setRefreshInPause(!0),a(d)},{columns:l,rowData:c}=eIi(i,s),u=l.map((d,p)=>p!==0&&p%2===0?{...d,cellStyle:{...d.cellStyle,backgroundColor:"rgba(245, 245, 245, 0.67)"}}:d);return f.jsxs(f.Fragment,{children:[f.jsx(kt,{className:r.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{className:`${r.materialTable}`,children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:c,columnDefs:u,domLayout:"normal",getRowId:d=>d.data.id})})})}),f.jsx(tIi,{show:!!o,onHide:d=>{a(""),d&&e(),n.setRefreshInPause(!1)},strandId:o})]})},rIi={errorMessage:"",notificationMessage:"",isDataLoading:!1,isSubmitLoading:!1,deProcess:null,pourbacks:[],unjustifiedDelays:[]},CY=Ni({name:"__",initialState:rIi,reducers:{setIsDataLoading(e,{payload:t}){e.isDataLoading=t},setIsSubmitLoading(e,{payload:t}){e.isSubmitLoading=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setDEProcess(e,{payload:t}){e.deProcess=t},setPourbacks(e,{payload:t}){e.pourbacks=t},setProcess(e,{payload:t}){e.deProcess&&(e.deProcess.process=t)},setUnjustifiedDelays(e,{payload:t}){e.unjustifiedDelays=t}}}),W3t=b.createContext({state:CY.getInitialState(),actions:CY.actions}),Ls=()=>b.useContext(W3t),iIi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:CY.getInitialState(),reducers:CY.caseReducers});return f.jsx(W3t.Provider,{value:{state:t,actions:n},children:e})},Y3e=()=>{const{state:{settings:e}}=ka(),{getFirstName:t}=Ek(),n=t(),r=Ot(e,"FF_EAF_DELAY_NOTIFICATION_ENABLED",0),i=Ot(e,"EAF_DELAY_NOTIFICATION_TIME_IN_MINUTES",60),o=n.trim(),a=!!Number(r)&&(o==="EAF1"||o==="EAF2"||o==="Admin"),s=b.useCallback(()=>{const c=localStorage.getItem("dismiss_timestamp");if(!c)return!1;const u=Date.now(),d=new Date(c);return u-d.getTime()<i*60*1e3},[i]),l=b.useCallback(()=>{localStorage.setItem("dismiss_timestamp",new Date().toISOString())},[]);return{hasAccess:a,dismissDelayJustification:l,EAF_DELAY_NOTIFICATION_TIME_IN_MINUTES:i,delayJustificationDismissed:s}},xs=()=>{const{state:e,actions:{setDEProcess:t,setErrorMessage:n,setIsDataLoading:r,setIsSubmitLoading:i,setNotificationMessage:o,setPourbacks:a,setUnjustifiedDelays:s}}=Ls(),{restart:l}=I0(),{hasAccess:c}=Y3e(),u=async j=>{r(!0);const G=await pSi({ProcessId:j});if(G.ok){const q=G.data;if(t({process:q.tables[0].rows[0],probes:q.tables[1].rows,heatings:q.tables[2].rows,charges:q.tables[3].rows,additions:q.tables[4].rows,wireAdditions:q.tables[5].rows,electrodeEvents:q.tables[6].rows,phases:q.tables[7].rows}),await p(j),c){const $=q.tables[0].rows[0].AssetId,U=q.tables[0].rows[0].ShiftId;await d($,U)}}else n(G.message);return r(!1),G.data?.tables[0].rows[0]},d=async(j,G)=>{const q=j||e.deProcess?.process?.AssetId,$=G||e.deProcess?.process?.ShiftId;if(c&&q&&$){const U=await VSi({AssetId:q,ShiftId:$});U.ok?s(U.data.tables[0].rows):n(U.message)}},p=async j=>{r(!0);const G=await BSi({ProcessId:j});if(G.ok){const q=G.data;a(q.tables[0].rows)}else n(G.message);r(!1)},h=b.useCallback(async()=>{e.deProcess?.process?.ProcessId?u(e.deProcess.process.ProcessId).then(()=>{l()}):u(null).then(()=>{l()})},[e.deProcess?.process?.ProcessId]);return{saveProcess:async j=>{i(!0),n("");const G=await bSi({ProcessId:j.ProcessId,Start:j.Start.toISOString(),End:j.End?.toISOString()||null,AssetId:j.AssetId});i(!1),G.ok?(o("Process saved successfully"),await h()):n(G.message)},loadData:u,loadUnjustifiedDelays:d,refreshData:h,loadPourbacks:p,UpsertPourbackCharge:EKe,saveProcessData:async({processId:j,field:G,value:q})=>{i(!0),n("");const $=await ySi({processId:j,field:G,value:q});i(!1),$.ok?(o("Process saved successfully"),await h()):n($.message)},saveProbe:async j=>{i(!0),n("");const G=await xSi({ProcessId:e.deProcess?.process.ProcessId,ProbeId:j.ProbeId,IsProbeManual:!0,Timestamp:j.Timestamp.toISOString(),Temperature:j.Temperature,Carbon:j.Carbon,Oxygen:j.Oxygen});i(!1),G.ok?(o("Process saved successfully"),await h()):n(G.message)},saveElectrodeEvent:async j=>{i(!0),n("");const G=await wSi({ProcessId:e.deProcess?.process.ProcessId,ElectrodeEventId:j.ElectrodeEventId,Phase:j.Phase,PhaseEventTypeId:j.PhaseEventTypeId,Timestamp:j.Timestamp.toISOString(),IsManual:j.IsManual});i(!1),G.ok?(o("Process saved successfully"),await h()):n(G.message)},saveHeat:async(j,G)=>{i(!0),n("");const q=await SSi({HeatId:e.deProcess?.process.HeatId,field:j,value:G});i(!1),q.ok?(o("Process saved successfully"),await h()):n(q.message)},saveCharge:async j=>{i(!0),n("");const G=await CSi({ProcessId:e.deProcess?.process.ProcessId,ChargeId:j.ChargeId,Charge:j.Charge,Timestamp:j.Timestamp.toISOString(),ChargeCode:j.ChargeCode,Weight:j.Weight,BucketId:j.BucketId});i(!1),G.ok?(o("Charge saved successfully"),await h()):n(G.message)},saveTrim:async j=>{i(!0),n("");const G=await MSi({processId:e.deProcess?.process.ProcessId,TrimProbeTemperature:j.TrimProbeTemperature,TrimProbeTime:j.TrimProbeTimestamp});i(!1),G.ok?(o("Process saved successfully"),await h()):n(G.message)},saveAddition:async j=>{i(!0),n("");const G=await ASi({ProcessId:e.deProcess?.process.ProcessId,AdditionId:j?.AdditionId,Timestamp:j?.Timestamp.toISOString(),Weight:j?.Weight,MaterialId:j?.MaterialId});i(!1),G.ok?(o("Addition saved successfully"),await h()):n(G.message)},saveWireAddition:async j=>{i(!0),n("");const G=await OSi({ProcessId:e.deProcess?.process.ProcessId,WireAdditionId:j.WireAdditionId,Line:j.Line,MaterialId:j.MaterialId,RequestedValue:j.RequestedValue,InjectedValue:j.InjectedValue,Start:j.Start?.toISOString()||null,End:j.End?.toISOString()||null});i(!1),G.ok?(o("Wire addition saved successfully"),await h()):n(G.message)},saveHeating:async j=>{i(!0),n("");const G=await zSi({ProcessId:e.deProcess?.process.ProcessId,HeatingId:j.HeatingId,Start:j.Start.toISOString(),End:j.End.toISOString(),MWH:j.MWH});i(!1),G.ok?(o("Heating saved successfully"),await h()):n(G.message)},savePourbackCharge:async j=>{i(!0),n("");const G=await EKe({PourbackId:j?.PourbackId,HeatId:j?.HeatId,DestinationProcessId:e.deProcess?.process.ProcessId,ChargedWeight:j?.PourbackWeight,ChargedTime:j?.ChargedTime?.toISOString(),RemainingWeight:j?.ChargedWeight===0?null:j?.ChargedWeight,Comments:j?.Comments});i(!1),G.ok?(o("Pourback saved successfully"),await h()):n(G.message)},deleteProbe:async j=>{i(!0),n("");const G=await kSi({ProbeId:j});i(!1),G.ok?(o("Probe deleted successfully"),await h()):n(G.message)},deleteCharge:async j=>{i(!0),n("");const G=await LSi({ChargeId:j});i(!1),G.ok?(o("Charge deleted successfully"),await h()):n(G.message)},deleteAddition:async j=>{i(!0),n("");const G=await _Si({AdditionId:j});i(!1),G.ok?(o("Addition deleted successfully"),await h()):n(G.message)},deleteWireAddition:async j=>{i(!0),n("");const G=await NSi({WireAdditionId:j});i(!1),G.ok?(o("Wire addition deleted successfully"),await h()):n(G.message)},deleteHeating:async j=>{i(!0),n("");const G=await FSi({HeatingId:j});i(!1),G.ok?(o("Heating deleted successfully"),await h()):n(G.message)},deleteElectrodeEvent:async j=>{i(!0),n("");const G=await WSi({ElectrodeEventId:j});i(!1),G.ok?(o("Electrode event deleted successfully"),await h()):n(G.message)},deletePourbackCharge:async j=>{i(!0),n("");const G=await qSi({PourbackId:j});i(!1),G.ok?(o("Pourback deleted successfully"),await h()):n(G.message)},getMaterials:async()=>{r(!0),n("");const j=await W3e();if(j.ok)return j.data.tables[0].rows;n(j.message),r(!1)},getBuckets:async()=>{r(!0),n("");const j=await vte();if(j.ok)return j.data.tables[0].rows;n(j.message),r(!1)}}},oIi=({initialSeconds:e,onTimeUp:t})=>{const[n,r]=b.useState(e),[i,o]=b.useState(!0),a=b.useRef(null),s=b.useRef(!1),l=b.useCallback(()=>{r(p=>p<=1?(!s.current&&t&&(t(),s.current=!0),e):p-1)},[e,t]),c=b.useCallback(()=>{o(!1),a.current&&clearInterval(a.current)},[]),u=b.useCallback(()=>{o(!0),s.current=!1},[]),d=b.useCallback(()=>{r(e),s.current=!1,i||o(!0)},[e,i]);return b.useEffect(()=>(i?a.current=setInterval(l,1e3):a.current&&clearInterval(a.current),()=>{a.current&&clearInterval(a.current)}),[i,l]),b.useEffect(()=>{s.current=!1},[n]),{seconds:n,isRunning:i,pause:c,resume:u,restart:d}},q3t=b.createContext({isRunning:!1,restart:()=>{},pause:()=>{},resume:()=>{},seconds:10}),I0=()=>b.useContext(q3t),aIi=({children:e})=>{const{refreshData:t}=xs(),{seconds:n,isRunning:r,pause:i,resume:o,restart:a}=oIi({initialSeconds:10,onTimeUp:t});return f.jsx(q3t.Provider,{value:{seconds:n,isRunning:r,pause:i,resume:o,restart:a},children:e})},u2=({showCreateModal:e,setShowCreateModal:t,hasMaxItems:n,readFromPLC:r,table:i})=>{const[o,a]=b.useState(!1),[s,l]=b.useState(""),{pause:c}=I0(),u=async()=>{if(a(!0),r){const d=await r();d.ok||l(d.message)}a(!1)};return f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,justifyContent:"space-between",alignItems:"center",style:{minHeight:"50px"},children:[f.jsx(D,{item:!0,md:6,children:t&&f.jsx(yn,{color:"primary",onClick:()=>{c(),t(!e)},disabled:n,title:`Add ${i}`,children:f.jsx(N3e,{style:{cursor:"pointer"}})})}),r&&f.jsx(D,{item:!0,md:6,style:{display:"flex",justifyContent:"flex-end"},children:f.jsx(Da,{isLoading:o,fullWidth:!0,variant:"outlined",color:"primary",onClick:()=>{u()},title:`Get from ${i==="additions"?"HMI":"PLC"}`,size:"small",style:{width:"20%"},children:f.jsx(Qee,{})})})]}),f.jsx(Mt,{error:s,onHide:()=>l("")})]})},sIi=({setLostStrandSelected:e,setModalMode:t,refreshData:n,setError:r})=>{const{state:i,actions:o}=Fo();return{onEditButtonClick:u=>{const d=i.lostStrands?.find(p=>p.LostStrandId===u);e(d),t("edit"),o.setRefreshInPause(!0)},onDeleteButtonClick:u=>{const d=i.lostStrands?.find(p=>p.LostStrandId===u);e(d),t("delete"),o.setRefreshInPause(!0)},onCreateButtonClick:()=>{e(null),t("create"),o.setRefreshInPause(!0)},readFromPLC:async()=>{const u=i?.processData?.ProcessId;if(u){const d=await iOi(u);return d.ok?(n(),{ok:!0}):(r(d.message),{ok:!1,message:d.message})}else return r("Process not found"),{ok:!1,message:"Process not found"}}}},K3e=({isManual:e})=>{const t=ZEi();return f.jsx(D,{container:!0,justifyContent:"center",children:f.jsx(D,{item:!0,md:12,children:f.jsx(Fe,{title:e?"Manual":"Automatic",variant:"contained",color:"primary",className:t.manualAutoButton,style:{cursor:"auto",backgroundColor:e?"primary":"green"},children:e?"M":"A"})})})},lIi=({onDeleteButtonClick:e,onEditButtonClick:t})=>({columns:[{headerName:"Lost Strands",children:[{field:"isManual",headerName:" ",flex:1,minWidth:50,maxWidth:50,cellRenderer:r=>f.jsx(K3e,{isManual:r.data.IsManual})},{field:"StrandId",headerName:"Strand",flex:1,minWidth:70},{field:"Timestamp",headerName:"Time",flex:1,minWidth:59,valueGetter:r=>{if(r.data.Timestamp)return Wn(r.data.Timestamp,"HH:mm")}},{field:"LostStrandTypeName",headerName:"Comment",flex:3,minWidth:50,wrapText:!0,autoHeight:!0},{field:"actions",headerName:" ",flex:1,minWidth:50,maxWidth:50,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},cellRenderer:zM,cellRendererParams:r=>({deleteItem:e,edit:t,id:r.data.LostStrandId})}]}]}),cIi=Rn(),jm=({value:e,format:t,label:n,onChange:r,onBlur:i,disabled:o=!1,disableOpenPicker:a=!1,error:s=""})=>{const l={};t&&(l.format=t);const{pause:c,resume:u}=I0(),d=()=>{c()};return f.jsx(Cd,{ampm:!1,disableFuture:!0,disableOpenPicker:a,disabled:o,timezone:Rc.getInstance().getServerTimeZone(),label:n,value:cIi(e),onChange:p=>{r(p?.toDate()||null)},onAccept:p=>{r(p?.toDate()||null),i(p?.toDate()||null)},openTo:t?.includes("HH:mm")&&!t?.includes("DD/MM/YYYY")?"hours":"day",views:t?.includes("HH:mm")&&!t?.includes("DD/MM/YYYY")?["hours","minutes"]:["year","month","day","hours","minutes"],timeSteps:{minutes:1},slotProps:{textField:{variant:"outlined",fullWidth:!0,onFocus:d,onBlur:()=>{u(),i(e||null)},error:!!s,helperText:s,InputLabelProps:{style:{fontSize:"14px"}},InputProps:{style:{height:"35px",maxWidth:"100%"}},inputProps:{sx:{fontSize:"16px !important"}}}},...l})},uIi=({value:e,onChange:t,disabled:n,error:r,helperText:i})=>{const o=b.useRef(!0),[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState([]),[p,h]=b.useState(),g=dT(),m=async()=>{s(!0);const v=await eOi();if(v.ok){const y=Ot(v,"data.tables[0].rows",[]);d(y)}else c(v.message);s(!1)};return b.useEffect(()=>{if(o.current){o.current=!1,m().then(()=>{});return}},[]),f.jsxs(f.Fragment,{children:[f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(il,{id:"lostStrandTypeSelector",className:g.inputLabel,children:"Lost Strand Type"}),f.jsx(ls,{fullWidth:!0,disabled:a||n,labelId:"lostStrandTypeSelector",id:"lostStrandTypeSelector",value:e||"",error:!!r,onChange:v=>{const y=v.target.value;t(y),h(y)},label:"Lost Strand Type",children:u.map(v=>f.jsx(sr,{value:v.LostStrandTypeId,children:v.Description},`lost-strand-type-${v.LostStrandTypeId}`))}),r&&f.jsx(KK,{error:!0,children:r})]}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},dIi=Rn(),pIi=({show:e,onHide:t,date:n,limitDates:r,lostStrand:i,processId:o})=>{const[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState(!1),p=c2(),h=b.useMemo(()=>{if(e==="edit")return"Edit Lost Strand";if(e==="delete")return"Delete Lost Strand";if(e==="create")return"New Lost Strand"},[e]),g=b.useMemo(()=>{if(e==="edit")return"EDIT LOST STRAND";if(e==="delete")return"DELETE LOST STRAND";if(e==="create")return"NEW LOST STRAND"},[e]),{getValues:m,handleSubmit:v,setValue:y,control:M,reset:C,formState:{errors:x}}=Gn({}),w=async S=>{if(s(!0),e==="delete"){const A=await nOi(S.LostStrandId);A.ok?(d(!0),t()):c(A.message)}else{const A=await tOi(S);A.ok?(d(!0),t()):c(A.message)}s(!1)};return b.useEffect(()=>{e&&((e==="edit"||e==="delete")&&i?C({...i,Timestamp:i.Timestamp?dIi.utc(i.Timestamp).toDate():n}):e==="create"&&C({ProcessId:o,Timestamp:n,LostStrandId:0,StrandId:void 0,LostStrandTypeId:void 0,Comment:"",Author:""}))},[e,i,o,n,C]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:`${h}`}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{title:g,open:!!e,handleClose:()=>t(),id:"upsert-electrode-event-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:v(w),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"StrandId",control:M,rules:{required:"Strand is required"},render:({field:S})=>f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(il,{id:"strandSelector",children:"Strand"}),f.jsxs(ls,{fullWidth:!0,labelId:"strandSelector",id:"strandSelector",value:S.value,onChange:S.onChange,label:"Strand",disabled:e==="delete",children:[f.jsx(sr,{value:1,children:"Strand 1"}),f.jsx(sr,{value:2,children:"Strand 2"}),f.jsx(sr,{value:3,children:"Strand 3"})]})]})}),x.StrandId&&f.jsx("span",{className:p.errorLabel,children:x.StrandId.message})]}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:"2px"},children:f.jsx(Ue,{name:"Timestamp",control:M,defaultValue:n,rules:{required:"Timestamp is required",validate:S=>r?.start&&S<r.start?"Timestamp must be between the start and end of the process":r?.end&&S>r.end?"Timestamp must be less than the end of the process":!0},render:({field:S})=>f.jsx(jm,{...S,format:"HH:mm - MM/DD/YYYY",value:S.value,label:"Time",error:x.Timestamp?.message,onChange:A=>{A&&y("Timestamp",A,{shouldValidate:!0})},onBlur:()=>{},disabled:e==="delete"})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"LostStrandTypeId",control:M,rules:{required:"Lost Strand Type is required",validate:S=>!S||S===0?"Lost Strand Type is required":!0},render:({field:S})=>f.jsx(uIi,{value:S.value,onChange:S.onChange,error:x.LostStrandTypeId?.message,disabled:e==="delete",helperText:x.LostStrandTypeId?.message})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Da,{fullWidth:!0,isLoading:a,variant:"contained",color:e==="delete"?"secondary":"primary",type:"submit",size:"large",children:e==="delete"?"Delete":"Save"})})]})})]})})})}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},hIi=({refreshData:e})=>{const{state:{processData:t,lostStrands:n},actions:r}=Fo(),[i,o]=b.useState(null),[a,s]=b.useState(null),[l,c]=b.useState(),u=og(),{onEditButtonClick:d,onDeleteButtonClick:p,readFromPLC:h}=sIi({setLostStrandSelected:c,setModalMode:s,refreshData:e,setError:o}),{columns:g}=lIi({onEditButtonClick:d,onDeleteButtonClick:p});return f.jsxs(f.Fragment,{children:[f.jsx(kt,{elevation:0,children:f.jsxs(Tn,{className:` ${u.borderAgGridTable} `,children:[f.jsx("div",{className:`${u.materialTable}`,style:{height:"11rem"},children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:n,columnDefs:g,domLayout:"normal"})}),f.jsx(ua,{}),f.jsx(u2,{hasMaxItems:!1,showCreateModal:a==="create",setShowCreateModal:()=>{s("create"),r.setRefreshInPause(!0)},table:"lost-strands",readFromPLC:h})]})}),f.jsx(pIi,{show:a,onHide:()=>{r.setRefreshInPause(!1),s(null),c(null),e()},date:t?.LadleOpen??new Date,lostStrand:l,limitDates:t?.LadleOpen?{start:t.LadleOpen,end:t.LadleClose??new Date}:void 0,processId:t?.ProcessId??void 0}),f.jsx(Mt,{error:i,onHide:()=>o("")})]})},B3t=()=>{const[e,t]=b.useState(),[n,r]=b.useState(null),{actions:i}=Fo();return{readStrand:async(s,l)=>{if(s===null||l<=0)return;r(null),t(null),i.setIsLoadingBackground(!0);const c=await $Ai(s,l,!0);i.setIsLoadingBackground(!1),c.ok?i.setNotificationMessage(`PLC was read successfully for strand ${l}`):i.setErrorMessage(c.message)},readProbe:async s=>{if(s===null)return;r(null),t(null),i.setIsLoadingBackground(!0);const l=await UAi(s);i.setIsLoadingBackground(!1),l.ok?i.setNotificationMessage("PLC was read successfully"):i.setErrorMessage(l.message)},error:e,sucess:n}},fIi=({refreshData:e,setProbeSelected:t,setModalMode:n})=>{const{state:r,actions:i}=Fo(),{readProbe:o}=B3t(),a=p=>{t(p),n("edit"),i.setRefreshInPause(!0)},s=p=>{t(p),n("delete"),i.setRefreshInPause(!0)},l=()=>{t(null),n("create"),i.setRefreshInPause(!0)},c=p=>{i.setRefreshInPause(!0),p.id==="ladle"&&u(),i.setRefreshInPause(!1)},u=async()=>{const p=r?.processData?.ProcessId;if(p){const h=await KAi({processId:p});return h.ok?await e():i.setErrorMessage(h.message),h}else return i.setErrorMessage("Process not found"),{ok:!1,message:"Process not found"}};return{onEditButtonClick:a,onDeleteButtonClick:s,onCreateButtonClick:l,onDownloadButtonClick:c,readProbesFromPLC:async()=>{const p=r?.processData?.ProcessId;return p?(await o(p),e(),{ok:!0}):(i.setErrorMessage("Process not found"),{ok:!1,message:"Process not found"})}}},iD=({deleteItem:e,editItem:t,downloadItem:n,downloadLabel:r,deleteLabel:i,editLabel:o,loading:a})=>f.jsx(f.Fragment,{children:f.jsxs(T6,{children:[t&&f.jsx(yn,{color:"primary",onClick:()=>{t()},title:o||"Edit",children:f.jsx(No,{style:{cursor:"pointer"},fontSize:"small"})}),e&&f.jsx(yn,{color:"secondary",onClick:()=>{e()},title:i||"Delete",children:f.jsx(Mo,{style:{cursor:"pointer"},fontSize:"small"})}),n&&f.jsxs(yn,{color:"primary",onClick:()=>{n()},title:r||"Get data",disabled:a,children:[f.jsx(Qee,{style:{cursor:"pointer"},fontSize:"small"}),a&&f.jsx(Kt,{size:16,color:"inherit"})]})]})}),gIi=Rn(),mIi=({processData:e,onEditButtonClick:t,onDeleteButtonClick:n,onDownloadButtonClick:r})=>{const{state:i}=Fo(),o=i.probes||[],a=[];return a.push({id:"liquidus",type:"liquidus",label:"Liquidus",timestamp:null,temperature:e?e.F1LiquidusTemperature:null,superHeat:"--",isManual:!1}),a.push({id:"ladle",type:"ladle",label:"Ladle",timestamp:e?e.TrimProbeTime:null,temperature:e?e.TrimProbeTemperature:null,trimProbeOxygen:e?e.TrimProbeOxygen:null,superHeat:e&&e.LadleSuperHeat!==null?String(e.LadleSuperHeat):"--",isManual:e?!!e.IsTrimDataManual:!1}),o.forEach(c=>{a.push({id:c.ProbeId?.toString(),type:"probe",label:"",timestamp:c.Timestamp,temperature:c.Temperature,superHeat:c.SuperHeat!==null?String(c.SuperHeat):"--",isManual:!!c.IsProbeManual})}),{columns:[{headerName:"Probes",children:[{field:"manual-auto",headerName:" ",flex:1,minWidth:50,maxWidth:50,cellRenderer:c=>f.jsx(K3e,{isManual:c.data.isManual})},{field:"label",headerName:"",flex:1,minWidth:77,cellStyle:{textAlign:"left"}},{field:"timestamp",headerName:"Time",flex:1,minWidth:62,valueGetter:c=>c.data.timestamp?gIi(c.data.timestamp).format("HH:mm"):"--"},{field:"temperature",headerName:"Temp",flex:1,minWidth:58},{field:"superHeat",headerName:"SH",flex:1,minWidth:55,cellStyle:{textAlign:"right"}},{field:"trimProbeOxygen",headerName:"O2",flex:1,minWidth:55,cellStyle:{textAlign:"right"}},{field:"actions",headerName:" ",flex:1,minWidth:65,maxWidth:65,cellRenderer:c=>c.data.type==="liquidus"?null:c.data.type==="ladle"?f.jsx(iD,{editItem:()=>t(c.data),downloadItem:()=>r(c.data),downloadLabel:"Get From PLC"}):f.jsx(iD,{editItem:()=>t(c.data),deleteItem:()=>n(c.data),downloadLabel:"Get From PLC"})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:a}},vIi=()=>{const[e,t]=b.useState(),[n,r]=b.useState(null),{state:i,actions:o}=Fo(),a=async l=>{if(!i.processData||!i.processData.ProcessId)return;o.setIsLoadingBackground(!0);const c=await VAi({ProbeId:l.ProbeId,Timestamp:l.Timestamp,Temperature:l.Temperature,Oxygen:l.Oxygen,ProcessId:i.processData.ProcessId,IsProbeManual:l.IsProbeManual});o.setIsLoadingBackground(!1),c.ok?r("Probe was saved successfully"):t(c.message)},s=async l=>{o.setIsLoadingBackground(!0);const c=await GAi(l);c.ok?r("Probe was deleted"):t(c.message),o.setIsLoadingBackground(!1)};return b.useEffect(()=>{n&&(o.setNotificationMessage(n),r("")),e&&(o.setErrorMessage(e),t(null))},[n,e]),{saveProbe:a,removeProbe:s,error:e,sucess:n}},Tm=(e,t,n,r)=>e<t||e>n?`${r} must be between ${t} and ${n}.`:!0,bIi=Rn(),yIi=({show:e,onHide:t,mode:n,row:r,limitDates:i})=>{const{state:o}=Fo(),{state:{settings:a}}=ka(),s=Ot(a,"MAX_TEMP_PROBE",2500),l=Ot(a,"MIN_TEMP_PROBE",3500),c=c2(),{saveProbe:u,removeProbe:d}=vIi(),{saveTrimData:p}=H3e(),[h,g]=b.useState(!1),[m,v]=b.useState(""),y=b.useMemo(()=>n==="create"?o.processData?.LadleOpen?new Date(o.processData.LadleOpen):new Date:r&&r.timestamp?new Date(r.timestamp):new Date,[n,o.processData?.LadleOpen,r?.timestamp]),M=b.useMemo(()=>n==="create"?0:r&&r.temperature||0,[n,r?.temperature]),C=b.useMemo(()=>n==="create"?0:r&&r.trimProbeOxygen||0,[n,r?.trimProbeOxygen]),{control:x,handleSubmit:w,reset:S,formState:{errors:A}}=Gn({defaultValues:{Timestamp:y,Temperature:M,TrimProbeOxygen:C}});b.useEffect(()=>{e&&S({Timestamp:y,Temperature:M,TrimProbeOxygen:C})},[e,S,y,M,C]);const z=async F=>{g(!0);try{if(n==="delete")await d(Number(r.id));else if(r&&r.id==="ladle")await p("TrimProbeTime",bIi.utc(F.Timestamp)),await p("TrimProbeTemperature",F.Temperature),await p("TrimProbeOxygen",Number(F.TrimProbeOxygen));else{const L=n==="create"?0:Number(r.id);await u({ProbeId:L,Timestamp:F.Timestamp,Temperature:Number(F.Temperature),Oxygen:null,ProcessId:o.processData?.ProcessId||0,IsProbeManual:!0})}g(!1),t(!0)}catch(L){v(L.message||`Error ${n==="delete"?"deleting":"saving"} probe`),g(!1)}},O=n==="delete",T=`${n.toUpperCase()} PROBE`,I=n==="delete",P=n==="delete"?"Delete":"Save",N=n==="delete"?"secondary":"primary";return f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:`${n[0].toUpperCase()+n.slice(1)} Probe`}),f.jsx(We,{title:T,open:e,handleClose:()=>t(!1),id:"upsert-delete-probe-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:w(z),children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:[f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:r&&r.id==="ladle"?4:6,children:f.jsx(Ue,{name:"Timestamp",control:x,rules:{required:"Timestamp is required",validate:F=>r&&r.id==="ladle"?i?.start&&F>=i.start?"Ladle probe timestamp must be before the process start":!0:i?.start&&F<i.start?"Timestamp must be between the start and end of the process":i?.end&&F>i.end?"Timestamp must be less than the end of the process":!0},render:({field:F})=>f.jsx(a$,{value:F.value,format:"HH:mm - MM/DD/YYYY",label:"Time",onChange:L=>F.onChange(L),onBlur:()=>{},error:A.Timestamp?A.Timestamp.message:"",pause:()=>{},resume:()=>{},disabled:I,disableOpenPicker:!0})})}),f.jsx(D,{item:!0,xs:r&&r.id==="ladle"?4:6,children:f.jsx(Ue,{name:"Temperature",control:x,rules:{required:"Temperature is required",validate:F=>Tm(F,s,l,"Temperature")},render:({field:F})=>f.jsx(El,{...F,value:parseInt(F.value?.toFixed(0)),onChange:F.onChange,onBlur:()=>{},label:"Temperature (F)",disabled:O,pause:()=>{},resume:()=>{},error:A.Temperature?A.Temperature.message:""})})}),r&&r.id==="ladle"&&f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"TrimProbeOxygen",control:x,render:({field:F})=>f.jsx(El,{...F,value:parseInt(F.value?.toFixed(0)),onChange:F.onChange,onBlur:()=>{},label:"Trim O2",pause:()=>{},resume:()=>{},error:A.TrimProbeOxygen?A.TrimProbeOxygen.message:""})})})]}),m&&f.jsx("div",{className:c.errorLabel,style:{marginTop:"10px"},children:m})]}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Da,{fullWidth:!0,isLoading:h,variant:"contained",color:N,type:"submit",children:P})})]})})]})}),f.jsx(Mt,{error:m,onHide:()=>v(""),title:`Error ${n==="delete"?"Deleting":"Saving"} Probe`})]})},MIi=({refreshData:e})=>{const t=og(),{state:n,actions:r}=Fo(),i=n.processData,[o,a]=b.useState(""),[s,l]=b.useState(null),{onCreateButtonClick:c,onDeleteButtonClick:u,onDownloadButtonClick:d,onEditButtonClick:p,readProbesFromPLC:h}=fIi({refreshData:e,setProbeSelected:l,setModalMode:a}),{columns:g,rowData:m}=mIi({processData:i,onEditButtonClick:p,onDeleteButtonClick:u,onDownloadButtonClick:d});return f.jsxs(f.Fragment,{children:[f.jsx(kt,{className:t.borderAgGridTable,elevation:0,children:f.jsxs(Tn,{p:0,children:[f.jsx("div",{className:`${t.materialTable}`,style:{height:"19.25rem"},children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:m,columnDefs:g,domLayout:"normal",getRowId:v=>v.data.id})}),f.jsx(ua,{}),f.jsx(u2,{hasMaxItems:!1,showCreateModal:o==="create",readFromPLC:h,setShowCreateModal:c,table:"probes"})]})}),o!==""&&n.processData?.LadleOpen&&f.jsx(yIi,{show:!0,onHide:v=>{v&&e(),r.setRefreshInPause(!1),a(""),l(null)},row:s,mode:o,limitDates:{start:n.processData?.LadleOpen,end:n.processData?.LadleClose||null}})]})};var O5={},iQe;function CIi(){if(iQe)return O5;iQe=1;var e=ri(),t=ii();Object.defineProperty(O5,"__esModule",{value:!0}),O5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"}),"ClearAll");return O5.default=i,O5}var xIi=CIi();const wIi=qn(xIi),SIi=({deleteItem:e,editItem:t,editAllItems:n,downloadItem:r,downloadLabel:i,deleteLabel:o,editLabel:a,editAllLabel:s})=>f.jsx(f.Fragment,{children:f.jsxs(T6,{children:[t&&f.jsx(Fe,{color:"primary",onClick:()=>{t()},title:a||"Edit",style:{padding:"2px"},children:f.jsx(No,{style:{cursor:"pointer"},fontSize:"small"})}),n&&f.jsxs(Fe,{color:"primary",variant:"outlined",onClick:()=>{n()},title:s||"Edit All",style:{padding:"2px"},children:[f.jsx(wIi,{style:{cursor:"pointer"},fontSize:"small"}),f.jsx(No,{style:{cursor:"pointer"},fontSize:"small"})]}),e&&f.jsx(Fe,{color:"secondary",onClick:()=>{e()},title:o||"Delete",style:{padding:"2px"},children:f.jsx(Mo,{style:{cursor:"pointer"},fontSize:"small"})}),r&&f.jsx(Fe,{color:"primary",onClick:()=>{r()},title:i||"Get data",style:{padding:"2px"},children:f.jsx(Qee,{style:{cursor:"pointer"},fontSize:"small"})})]})}),AIi=Rt(e=>({"@global":{".ag-row .actions-container":{opacity:0,transition:"opacity 0.2s ease-in-out",minWidth:"24px",display:"flex",alignItems:"center",justifyContent:"center"},".ag-row:hover .actions-container":{opacity:1}},actionsCell:{display:"flex",alignItems:"center",height:"100%"}})),OIi=({strands:e,processData:t,editCallback:n,readonly:r})=>{AIi();const i=c=>{if(c==null)return"";const u=Math.floor(c/12),d=c%12;return`${u} ft ${d} in`};return{columns:[{headerName:"Production",children:[{field:"Strand",headerName:"",flex:1,minWidth:78,valueGetter:c=>`Strand ${c.data.Strand}`,cellClass:"first-column-cell"},{field:"PieceLength",headerName:"Length",flex:1,minWidth:83,valueFormatter:c=>i(c.value)},{field:"Pieces",headerName:"Pieces",flex:1,minWidth:64},{field:"SectionName",headerName:"Section",flex:1,minWidth:70},{field:"actions",headerComponent:r?void 0:c=>f.jsx(SIi,{editAllLabel:"Edit all strands",editAllItems:()=>n(null)}),hide:r,flex:1,minWidth:65,maxWidth:65,cellRenderer:r?void 0:c=>f.jsx(iD,{editItem:()=>n(c.data.Strand)})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0},rowData:e,statusBar:{statusPanels:[{statusPanel:"agAggregationComponent",statusPanelParams:{aggFuncs:["sum"]}},{statusPanel:()=>f.jsxs("div",{style:{textAlign:"center",width:"100%"},children:["Tons Cast:"," ",t?.CastTons!==null&&t?.CastTons!==void 0?t.CastTons.toFixed(1):""]}),align:"center"}]}}},zIi=({show:e,onHide:t,strandId:n})=>{const[r,i]=b.useState(!1),[o,a]=b.useState(!1),[s,l]=b.useState(null),{state:c}=Fo(),{save:u,saveAllStrands:d}=X3e(),{control:p,handleSubmit:h,reset:g,formState:{errors:m}}=Gn({defaultValues:{PieceLength:0,Pieces:0,SectionId:0}}),v=c.strands,y=c.strands?.find(S=>S.Strand===n),M=n?`Strand ${n}`:"All Strands",C=S=>{a(!1),S==="OK"&&s&&x(s)},x=async S=>{i(!0),await d("PieceLength",S.PieceLength),await d("Pieces",S.Pieces),await d("SectionId",S.SectionId),i(!1),t(!0)},w=async S=>{n?(i(!0),await u(n,"PieceLength",S.PieceLength),await u(n,"Pieces",S.Pieces||null),await u(n,"SectionId",S.SectionId),i(!1),t(!0)):(l(S),a(!0))};return b.useEffect(()=>{if(e&&(n&&y&&g({PieceLength:y.PieceLength,Pieces:y.Pieces,SectionId:y.SectionId}),n===null&&v)){const S=v[0];g({PieceLength:S.PieceLength,Pieces:S.Pieces,SectionId:S.SectionId})}},[e,g,n]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:`Edit ${M}`}),f.jsx(We,{open:e,handleClose:()=>t(!1),"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",maxWidth:"sm",title:`Edit ${M}`,children:f.jsxs("form",{onSubmit:h(w),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"space-between",children:[f.jsx(D,{item:!0,xs:6,md:4,children:f.jsx(Ue,{name:"PieceLength",control:p,render:({field:S})=>f.jsx(G3e,{feet:Math.floor((S.value||0)/12),inches:(S.value||0)%12,onChange:(A,z)=>S.onChange(A*12+z),error:!!m.PieceLength,helperText:m.PieceLength?.message})})}),f.jsx(D,{item:!0,xs:6,md:4,children:f.jsx(Ue,{name:"Pieces",control:p,render:({field:S})=>f.jsx(je,{...S,type:"number",label:"Pieces",size:"small",variant:"outlined",InputProps:{inputProps:{min:0}},error:!!m.Pieces,helperText:m.Pieces?.message})})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(ja,{variant:"outlined",fullWidth:!0,size:"small",children:f.jsx(Ue,{name:"SectionId",control:p,render:({field:S})=>f.jsx(_3t,{value:S.value,onChange:S.onChange,onFocus:()=>{},moldSizeId:S.value,label:"Section"})})})})]})}),f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Da,{fullWidth:!0,isLoading:r,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(rl,{title:"Confirm Changes",message:"You are about to apply these changes to all 3 strands. Do you want to proceed?",open:o,onClose:C})]})},TIi=({refresh:e,readonly:t})=>{const{state:n,actions:r}=Fo(),[i,o]=b.useState(null),[a,s]=b.useState(!1),l=og(),c=n.strands||[],u=n.processData||null,d=m=>{r.setRefreshInPause(!0),o(m),s(!0)},{columns:p,rowData:h,statusBar:g}=OIi({strands:c,processData:u,editCallback:d,readonly:t||!u?.HeatId});return f.jsxs(f.Fragment,{children:[f.jsx(kt,{className:l.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{className:`${l.materialTable}`,style:{height:"14rem"},children:f.jsx(Kn,{rowData:h,columnDefs:p,domLayout:"normal",suppressRowClickSelection:!0,suppressPaginationPanel:!0,getRowId:m=>m.data.Strand,statusBar:g})})})}),f.jsx(zIi,{show:a,onHide:m=>{m&&e(),o(null),s(!1),r.setRefreshInPause(!1)},strandId:i})]})},EIi=e=>{e==null&&(e=0);const t=Math.floor(e/12),n=e%12;return`${t} ft ${n} in`},RIi=({scrapReasons:e,editCallback:t,deleteCallback:n})=>{const r=new Map(e.map(a=>[a.ScrapReasonId,a.ScrapReasonName]));return{columns:[{headerName:"Scrapped Pieces",children:[{field:"Length",headerName:"Length",flex:1,minWidth:78,valueFormatter:a=>EIi(a.value)},{field:"Pieces",headerName:"Pieces",flex:1,minWidth:64},{field:"Strand",headerName:"Strand",flex:1,minWidth:60,valueFormatter:a=>a.value?`S${a.value}`:""},{headerName:"Code",flex:1,minWidth:110,valueGetter:a=>{const s=a.data.ScrapReasonId;return s&&r.get(s)||""}},{field:"Weight",headerName:"Weight [lbs]",flex:1,minWidth:98},{field:"actions",headerName:"",sortable:!1,filter:!1,flex:1,minWidth:70,maxWidth:70,cellRenderer:a=>{const s=a.data;return s?f.jsx(iD,{editItem:()=>t(s),deleteItem:()=>n(s)}):null}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}},IIi=({value:e,onChange:t,disabled:n})=>{const{state:r}=Fo(),i=r.scrapReasons||[];return f.jsxs(ls,{labelId:"scrap-code-label",label:"Code",value:e===null?"":e,onChange:o=>t(o.target.value===""?null:Number(o.target.value)),disabled:n,children:[f.jsx(sr,{value:"",children:f.jsx("em",{children:"None"})}),i.map(o=>f.jsx(sr,{value:o.ScrapReasonId,children:o.ScrapReasonName},o.ScrapReasonId))]})},PIi=({show:e,onHide:t,scrap:n,mode:r})=>{const[i,o]=b.useState(!1),[a,s]=b.useState(""),[l,c]=b.useState(null),[u,d]=b.useState(!1),{state:{processData:p},actions:h}=Fo(),{control:g,handleSubmit:m,reset:v,watch:y,setValue:M,formState:{errors:C}}=Gn({defaultValues:{ScrapId:0,ProcessId:0,Pieces:null,Length:null,Weight:null,ScrapReasonId:null,Strand:null}}),x=y("Length"),w=y("Pieces");b.useEffect(()=>{e&&r==="create"&&(async()=>{const P=await S3e();if(P.ok){const N=Ot(P,"data.tables[0].rows",[]);c(N)}else s("Could not load mold sizes.")})()},[e,r]),b.useEffect(()=>{if(r!=="create"||u||!l||!p)return;const I=p.MoldSizeId,P=l.find(W=>W.MoldSizeId===I);if(!P||w===null||w<=0||x===null||x<=0){M("Weight",null);return}const N=P.LbsPerFoot,L=(x||0)/12*N*w;L>0?M("Weight",Number(L.toFixed(2)),{shouldValidate:!0}):M("Weight",null)},[x,w,r,u,l,p,M]),b.useEffect(()=>{e&&(d(!1),r==="create"?v({ScrapId:null,ProcessId:p?.ProcessId||0,Pieces:null,Length:null,Weight:null,ScrapReasonId:null,Strand:null}):n&&v({ScrapId:n.ScrapId,ProcessId:n.ProcessId,Pieces:n.Pieces,Length:n.Length,Weight:n.Weight,ScrapReasonId:n.ScrapReasonId,Strand:n.Strand}))},[e,n,r,v,p]);const S=async I=>{if(o(!0),s(""),r==="delete"){if(n){const P=await HAi(n.ScrapId||0);if(P.ok)h.setNotificationMessage("Scrap data deleted successfully");else{s(P.message||"Error deleting scrap data"),o(!1);return}}}else{const P=await jAi(I);if(P.ok)h.setNotificationMessage("Scrap data saved successfully");else{s(P.message||"Error saving scrap data"),o(!1);return}}t(!0),o(!1)},A=`${r.charAt(0).toUpperCase()+r.slice(1)} Scrap`,z=r==="delete",O=r==="delete"?"Delete":"Save",T=r==="delete"?"secondary":"primary";return f.jsxs(f.Fragment,{children:[f.jsx(We,{open:e,handleClose:()=>t(!1),"aria-labelledby":"upsert-delete-scrap-modal-title",maxWidth:"sm",title:A,children:f.jsxs("form",{onSubmit:m(S),children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:[f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Length",control:g,rules:{min:0},render:({field:I})=>{const P=I.value||0,N=Math.floor(P/12),F=P%12;return f.jsx(G3e,{feet:N,inches:F,onChange:(L,W)=>{const H=L*12+W;I.onChange(H)},disabled:z,error:!!C.Length,helperText:C.Length?.message})}})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Pieces",control:g,rules:{min:0},render:({field:I})=>f.jsx(El,{...I,value:I.value,onChange:P=>I.onChange(P===null?null:Number(P)),label:"Pieces",disabled:z,error:C.Pieces?C.Pieces.message:"",onBlur:()=>{},pause:()=>{},resume:()=>{}})})})]}),f.jsxs(D,{container:!0,spacing:2,style:{marginTop:"1rem"},children:[f.jsx(D,{item:!0,xs:12,md:4,children:f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",error:!!C.Strand,disabled:z,children:[f.jsx(il,{id:"strand-label",children:"Strand"}),f.jsx(Ue,{name:"Strand",control:g,render:({field:I})=>f.jsxs(ls,{...I,labelId:"strand-label",label:"Strand",value:I.value||"",onChange:P=>I.onChange(P.target.value?Number(P.target.value):null),children:[f.jsx(sr,{value:"",children:f.jsx("em",{children:"None"})}),f.jsx(sr,{value:1,children:"1"}),f.jsx(sr,{value:2,children:"2"}),f.jsx(sr,{value:3,children:"3"})]})})]})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",error:!!C.ScrapReasonId,disabled:z,children:[f.jsx(il,{id:"scrap-code-label",children:"Code"}),f.jsx(Ue,{name:"ScrapReasonId",control:g,defaultValue:null,render:({field:I})=>f.jsx(IIi,{value:I.value,onChange:P=>I.onChange(P),disabled:z})})]})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsx(Ue,{name:"Weight",control:g,rules:{required:"Weight is required",validate:I=>I===null||I==0?"Weight is required and must be greater than 0":!0},render:({field:I})=>f.jsx(El,{...I,value:I.value,onChange:P=>{I.onChange(P===null?null:Number(P)),r==="create"&&d(!0)},label:"Weight *",disabled:z,error:C.Weight?C.Weight.message:"",onBlur:()=>{},pause:()=>{},resume:()=>{}})})})]}),a&&f.jsx("div",{style:{color:"red"},children:a})]}),f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!1),children:"Cancel"})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Da,{fullWidth:!0,isLoading:i,variant:"contained",color:T,type:"submit",disabled:!n&&r!=="create",children:O})})]})})]})}),f.jsx(Mt,{error:a,onHide:()=>s(""),title:`Error ${r} Scrap`})]})},DIi=({refreshData:e})=>{const t=og(),{state:n,actions:r}=Fo(),i=n.scrapReasons||[],o=n.scraps||[],a=n.processData?.ScrapTons,[s,l]=b.useState(!1),[c,u]=b.useState("create"),[d,p]=b.useState(null),h=v=>{p(v),u("edit"),l(!0),r.setRefreshInPause(!0)},g=v=>{p(v),u("delete"),l(!0),r.setRefreshInPause(!0)},{columns:m}=RIi({scrapReasons:i,editCallback:h,deleteCallback:g});return f.jsxs(f.Fragment,{children:[s&&f.jsx(Mn,{title:`${c==="create"?"New":"Edit"} Scrap`}),f.jsxs(kt,{className:t.borderAgGridTable,elevation:0,children:[f.jsx(Tn,{p:0,children:f.jsxs("div",{className:`${t.materialTable}`,style:{height:"11.6rem",position:"relative"},children:[f.jsx(Kn,{rowData:o,columnDefs:m,domLayout:"normal",suppressRowClickSelection:!0,suppressPaginationPanel:!0,getRowId:v=>v.data.ScrapId,suppressContextMenu:!0}),f.jsx(Tn,{display:"flex",justifyContent:"center",width:"100%",mt:3,style:{position:"absolute",right:"4%"},children:f.jsxs(bt,{style:{cursor:"default",userSelect:"none",fontSize:"0.8rem"},children:["Scrap Weight:"," ",f.jsx("strong",{children:a!=null?`${a} lbs`:""})]},`scrap-weight-${n.processData?.ProcessId}`)})]})}),f.jsx(ua,{}),f.jsx(u2,{hasMaxItems:!1,showCreateModal:c==="create",setShowCreateModal:()=>{p(null),u("create"),l(!0),r.setRefreshInPause(!0)},table:"scraps"})]}),s&&f.jsx(PIi,{show:s,onHide:v=>{l(!1),v&&e(),r.setRefreshInPause(!1)},scrap:d,mode:c})]})},j3t=(e,t)=>{if(gi(e))return;let n=(t.match(/X/g)||[]).length,r=(t.match(/\./g)||[]).length?t.split(".")[1].length:0,o=Number(e).toFixed(r).split("."),a=o[0],s=o[1]||"";return a.length>n&&(a=a.substr(a.length-n)),r>0?`${a}.${s}`:`${a}`},oQe=e=>{const{value:t,data:n}=e,r=n?.numberFormat;return t==null||typeof t=="string"?null:f.jsx(f.Fragment,{children:j3t(t,r||"")})},kIi=(e,t,n,r)=>{const i=[{name:"Mold Water T in",startField:"MWTempInStart",endField:"MWTempInEnd",numberFormat:"XXX.X"},{name:"Mold Water T out",startField:"MWTempOutStart",endField:"MWTempOutEnd",numberFormat:"XXX.X"},{name:"Mold Water DT",startField:"MWDTStart",endField:"MWDTEnd",numberFormat:"XXX.X"},{name:"Mold Water Flow [GPM]",startField:"MWGPMStart",endField:"MWGPMEnd",numberFormat:"XXX.X"},{name:"Spray Pres N",startField:"NSprayStart",endField:"NSprayEnd",numberFormat:"XX"},{name:"Spray Pres E",startField:"ESprayStart",endField:"ESprayEnd",numberFormat:"XX"},{name:"Spray Pres S",startField:"SSprayStart",endField:"SSprayEnd",numberFormat:"XX"},{name:"Spray Pres W",startField:"WSprayStart",endField:"WSprayEnd",numberFormat:"XX"},{name:"Billet Temp",startField:"BilletTempStart",endField:"BilletTempEnd",numberFormat:"XXXX.X"},{name:"Strand Speed",startField:"SpeedStart",endField:"SpeedEnd",numberFormat:"XXX.X"}],o=e.reduce((c,u)=>(u.Strand!=null&&(c[u.Strand.toString()]=u),c),{}),a=i.map(c=>({id:c.name,Property:c.name,s1_start:c.startField?o[1]?.[c.startField]:null,s1_end:c.endField?o[1]?.[c.endField]:null,s2_start:c.startField?o[2]?.[c.startField]:null,s2_end:c.endField?o[2]?.[c.endField]:null,s3_start:c.startField?o[3]?.[c.startField]:null,s3_end:c.endField?o[3]?.[c.endField]:null,numberFormat:c.numberFormat}));return a.push({id:"actions-row",Property:"",s1_start:"EDIT",s1_end:"DOWNLOAD",s2_start:"EDIT",s2_end:"DOWNLOAD",s3_start:"EDIT",s3_end:"DOWNLOAD",numberFormat:null}),{columns:[{field:"Property",headerName:"",minWidth:100,cellClass:"first-column-cell",suppressMovable:!0},...[1,2,3].map((c,u)=>{const d=e.find(m=>m.Strand===c)?.IsStrandDataManual,p=`s${c}_start`,h=`s${c}_end`,g=u%2!==0?{backgroundColor:"rgba(245, 245, 245, 0.67)"}:{};return{headerName:`Strand ${c}`,headerGroupComponent:()=>f.jsxs(D,{container:!0,alignItems:"center",spacing:1,children:[f.jsx(D,{item:!0,xs:5,children:f.jsxs("span",{children:["Strand ",c]})}),f.jsx(D,{item:!0,xs:7,children:f.jsx(K3e,{isManual:d||!1})})]}),children:[{headerName:"Start",field:p,minWidth:70,flex:1,cellRendererSelector:m=>m.value==="EDIT"?{component:iD,params:{editItem:()=>{t(c)},editLabel:`Edit strand ${c}`}}:{component:oQe},cellStyle:m=>{const v={...g,textAlign:"center"};return m.data?.id==="actions-row"?{...v,textAlign:"center"}:v}},{headerName:"End",field:h,minWidth:70,flex:1,cellRendererSelector:m=>m.value==="DOWNLOAD"?{component:iD,params:{downloadItem:()=>{n(c)},downloadLabel:"Download from PLC",loading:r}}:{component:oQe},cellStyle:m=>{const v={...g,textAlign:"center"};return m.data?.id==="actions-row"?{...v,textAlign:"center"}:v}}]}})],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,flex:1},rowData:a}},Kd=(e,t)=>e==null?null:parseFloat(e.toFixed(t)),Aa={MWTempInStart:1,MWTempInEnd:1,MWDTStart:1,MWDTEnd:1,BilletTempStart:0,BilletTempEnd:0,NSprayStart:0,NSprayEnd:0,ESprayStart:0,ESprayEnd:0,SSprayStart:0,SSprayEnd:0,WSprayStart:0,WSprayEnd:0,SpeedStart:2,SpeedEnd:2},LIi=({show:e,onHide:t,strandNum:n})=>{const{state:r,actions:i}=Fo(),{save:o}=X3e(),[a,s]=b.useState(!1),c=(r.strands||[]).find(g=>g.Strand===n),{control:u,handleSubmit:d,reset:p}=Gn({defaultValues:{MWTempInStart:null,MWTempInEnd:null,MWDTStart:null,MWDTEnd:null,NSprayStart:null,NSprayEnd:null,ESprayStart:null,ESprayEnd:null,SSprayStart:null,SSprayEnd:null,WSprayStart:null,WSprayEnd:null,SpeedStart:null,SpeedEnd:null}});b.useEffect(()=>{e&&c&&p({MWTempInStart:Kd(c.MWTempInStart,Aa.MWTempInStart),MWTempInEnd:Kd(c.MWTempInEnd,Aa.MWTempInEnd),MWDTStart:Kd(c.MWDTStart,Aa.MWDTStart),MWDTEnd:Kd(c.MWDTEnd,Aa.MWDTEnd),BilletTempStart:Kd(c.BilletTempStart,Aa.BilletTempStart),BilletTempEnd:Kd(c.BilletTempEnd,Aa.BilletTempEnd),NSprayStart:Kd(c.NSprayStart,Aa.NSprayStart),NSprayEnd:Kd(c.NSprayEnd,Aa.NSprayEnd),ESprayStart:Kd(c.ESprayStart,Aa.ESprayStart),ESprayEnd:Kd(c.ESprayEnd,Aa.ESprayEnd),SSprayStart:Kd(c.SSprayStart,Aa.SSprayStart),SSprayEnd:Kd(c.SSprayEnd,Aa.SSprayEnd),WSprayStart:Kd(c.WSprayStart,Aa.WSprayStart),WSprayEnd:Kd(c.WSprayEnd,Aa.WSprayEnd),SpeedStart:Kd(c.SpeedStart,Aa.SpeedStart),SpeedEnd:Kd(c.SpeedEnd,Aa.SpeedEnd)})},[e,p,c]);const h=async g=>{if(!c||n===null)return;s(!0);const m=Object.entries(g).map(([v,y])=>c[v]!==y?o(n,v,y):Promise.resolve());await Promise.all(m),s(!1),r.errorMessage||t(!0)};return f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:`Edit Strand ${n}`}),f.jsx(We,{title:`Edit Strand ${n}`,open:e,handleClose:()=>{t(!1)},id:"edit-strand-values-modal",maxWidth:"md",children:f.jsxs("form",{onSubmit:d(h),children:[f.jsxs(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:[f.jsxs(D,{container:!0,spacing:3,children:[f.jsxs(D,{item:!0,xs:12,children:[f.jsx(bt,{variant:"h6",align:"center",gutterBottom:!0,children:"Mold Water"}),f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"MWTempInStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"Temp In Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.MWTempInStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"MWTempInEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"Temp In End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.MWTempInEnd})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"MWDTStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"DT Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.MWDTStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"MWDTEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"DT End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.MWDTEnd})})})]})]}),f.jsx(D,{item:!0,xs:12,style:{margin:"4px 0"},children:f.jsx(ua,{})}),f.jsxs(D,{item:!0,xs:12,children:[f.jsx(bt,{variant:"h6",align:"center",gutterBottom:!0,children:"Spray Pressure"}),f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"NSprayStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"N Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.NSprayStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"NSprayEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"N End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.NSprayEnd})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"SSprayStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"S Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.SSprayStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"SSprayEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"S End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.SSprayEnd})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"ESprayStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"E Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.ESprayStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"ESprayEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"E End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.ESprayEnd})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"WSprayStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"W Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.WSprayStart})})}),f.jsx(D,{item:!0,xs:6,sm:3,children:f.jsx(Ue,{name:"WSprayEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"W End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.WSprayEnd})})})]})]}),f.jsx(D,{item:!0,xs:12,style:{margin:"4px"},children:f.jsx(ua,{})}),f.jsx(D,{item:!0,xs:12,children:f.jsxs(D,{container:!0,spacing:2,alignItems:"flex-start",justifyContent:"center",children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(bt,{variant:"h6",align:"center",gutterBottom:!0,children:"Billet"}),f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,children:f.jsx(Ue,{name:"BilletTempStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"Temp Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.BilletTempStart})})}),f.jsx(D,{item:!0,xs:12,sm:6,children:f.jsx(Ue,{name:"BilletTempEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"Temp End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.BilletTempEnd})})})]})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(bt,{variant:"h6",align:"center",gutterBottom:!0,children:"Speed"}),f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,children:f.jsx(Ue,{name:"SpeedStart",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"Start",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.SpeedStart})})}),f.jsx(D,{item:!0,xs:12,sm:6,children:f.jsx(Ue,{name:"SpeedEnd",control:u,render:({field:g})=>f.jsx(El,{...g,value:g.value,onChange:g.onChange,onBlur:()=>{},label:"End",pause:i.setRefreshInPause.bind(null,!0),resume:i.setRefreshInPause.bind(null,!1),maxDecimals:Aa.SpeedEnd})})})]})]})]})})]}),r.errorMessage&&f.jsx(bt,{color:"error",style:{marginTop:"10px"},children:r.errorMessage})]}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>{t(!1)},children:"Cancel"})}),f.jsx(D,{item:!0,xs:12,md:3,children:f.jsx(Da,{fullWidth:!0,isLoading:a,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})})]})},_Ii=({refreshData:e})=>{const t=og(),{state:n,actions:r}=Fo(),i=n.strands||[],o=b.useRef(null),[a,s]=b.useState(!1),[l,c]=b.useState(null),[u,d]=b.useState(!1),{readStrand:p}=B3t(),h=async C=>{d(!0),n.processData?.ProcessId!=null?(await p(n.processData.ProcessId,C),e()):r.setErrorMessage("Cannot read PLC data: Process ID is missing."),d(!1)},g=C=>{c(C),s(!0),r.setRefreshInPause(!0)},m=()=>{s(!1),c(null),r.setRefreshInPause(!1),r.setErrorMessage(null)},{columns:v,rowData:y}=kIi(i,g,h,u),M=C=>{o.current=C.api};return f.jsxs(f.Fragment,{children:[f.jsx(kt,{elevation:0,className:t.borderAgGridTable,children:f.jsx(Tn,{p:0,children:f.jsx("div",{className:`${t.materialTable}`,style:{height:"30.67rem"},children:f.jsx(Kn,{suppressRowClickSelection:!0,pagination:!1,stopEditingWhenCellsLoseFocus:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,suppressPropertyNamesCheck:!0,rowData:y,columnDefs:v,domLayout:"normal",onGridReady:M,suppressContextMenu:!0,getRowId:C=>C.data.id})})})}),f.jsx(LIi,{show:a,onHide:C=>{C&&e(),m()},strandNum:l})]})},NIi=({reloadProcess:e,refreshData:t})=>{const n=og(),{state:r}=Fo(),i=r.processData,[o,a]=b.useState(i?.Comments||""),{handleOnFocus:s,handleOnBlurTextValue:l}=V3e({reloadProcess:e,refreshData:t});return f.jsx(kt,{elevation:0,children:f.jsx(Tn,{padding:2,children:f.jsx(AMe,{className:n.outlinedTextarea,placeholder:"Comments",minRows:4,style:{width:"100%"},value:o,onFocus:()=>s("Comments"),onChange:c=>a(c.target.value),onBlur:()=>l("Comments",o)})})})},FIi=({reloadProcess:e,refreshData:t,setPourbackModalOpen:n})=>{const{state:r,actions:i}=Fo(),o=r.processData,a=r.tonnageReasons,s=og(),{handleOptionValueChanged:l}=V3e({reloadProcess:e,refreshData:t});return f.jsx(kt,{elevation:0,className:s.borderAgGridTable,children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{container:!0,direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(El,{label:"Pourback Weight [tons]",value:o?.PourbackWeight??0,disabled:!0,onChange:c=>{},onBlur:()=>{},pause:()=>i.setRefreshInPause(!0),resume:()=>i.setRefreshInPause(!1)})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(Fe,{variant:"contained",color:"primary",style:{height:"33px"},disabled:!o?.HeatId,fullWidth:!0,onClick:()=>{n(!0),i.setRefreshInPause(!0)},children:"Declare Pourback"})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(ON,{label:"Low Tonnage Reason",value:o?.LowTonnageReasonId||"",options:a?a.map(({LowTonnageReasonId:c,LowTonnageReasonName:u})=>({value:c,label:u})):[],onChange:c=>{i.setRefreshInPause(!1),l("LowTonnageReasonId",c)},disabled:!1,nullable:!0,onBlur:()=>i.setRefreshInPause(!0),onFocus:()=>i.setRefreshInPause(!1)})})]})})})},WIi=({reloadProcess:e,calculateProcess:t,refreshData:n})=>{const{state:r}=Fo(),[i,o]=b.useState(""),a=r.processData||{},s=r.tundishShrouds||[],l=r.ladles||[],c=r.grades||[],u=r.tundishes||[],d=r.tonnageReasons||[],[p,h]=b.useState(!1),[g,m]=b.useState(!1),{onProcessClicked:v,unlinkCasterProcess:y,showChangeModal:M,showLinkModal:C,showUnlinkModal:x,setShowChangeModal:w,setShowLinkModal:S}=TRi({refreshData:n,setHelmetTitle:o});return f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:`${a.HeatName?`${a.HeatName} - `:""}Caster Data Entry`}),i&&f.jsx(Mn,{title:`${i}`}),f.jsx(Tn,{padding:1,style:{backgroundColor:"#eaebec"},children:f.jsxs(D,{container:!0,spacing:1,direction:"column",children:[f.jsx(D,{item:!0,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Caster Data Entry"})}),f.jsx(D,{item:!0,children:f.jsx(ORi,{process:a,ladles:l,grades:c,tundishes:u,tundishShrouds:s,tonnageReasons:d,reloadProcess:e,calculateProcess:t,refreshData:n,onProcessClicked:v,setDeliveryTicketModalOpen:h})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:0,justifyContent:"space-around",alignItems:"flex-start",children:[f.jsxs(D,{item:!0,xs:12,md:3,container:!0,spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(nIi,{refreshData:n})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(TIi,{refresh:n,readonly:!a.HeatId},a.ProcessId)}),f.jsx(D,{item:!0,xs:12,children:f.jsx(DIi,{refreshData:n})})]}),f.jsxs(D,{item:!0,xs:12,md:3,container:!0,spacing:1,alignContent:"flex-start",justifyContent:"center",children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(iRi,{},a.ProcessId)}),f.jsx(D,{item:!0,xs:12,children:f.jsx(MIi,{refreshData:n})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(FIi,{reloadProcess:e,refreshData:n,setPourbackModalOpen:m})})]}),f.jsxs(D,{item:!0,xs:12,md:6,container:!0,spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(nRi,{},a.ProcessId)}),f.jsx(D,{item:!0,xs:6,children:f.jsx(eRi,{},a.ProcessId)}),f.jsx(D,{item:!0,xs:12,children:f.jsx(_Ii,{refreshData:n})})]})]}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:8,children:f.jsx(JRi,{},a.ProcessId)}),f.jsx(D,{item:!0,xs:4,children:f.jsx(hIi,{refreshData:n},a.ProcessId)}),f.jsx(D,{item:!0,xs:12,children:f.jsx(NIi,{reloadProcess:e,refreshData:n},a.ProcessId)})]})]})}),f.jsx(QEi,{title:"Change Modal",message:"",open:M,onClose:()=>w(!1)}),f.jsx(YRi,{show:g,onHide:A=>{m(!1),A&&n()},process:a}),a.ProcessId&&f.jsx($Ri,{show:p,onHide:A=>{h(!1),A&&n()},processId:a.ProcessId}),f.jsx(rl,{title:"Confirmation",message:x.message,open:x.show,onClose:y}),f.jsx(P3t,{show:C,onHide:A=>{S(!1),A&&e()},process:a})]})},qIi=({onTimeUp:e})=>{const{state:t,actions:n}=Fo(),[r,i]=b.useState(0),[o,a]=b.useState(0),s=10,l=15;return b.useEffect(()=>{(async()=>{if(a(c=>c+1),t.lazyStart!==null){const c=new Date,u=t.lazyStart.getTime();(c.getTime()-u)/1e3>l&&(document.getElementById("dummyDiv")?.focus(),n.clearFocusField())}})()},[r]),b.useEffect(()=>{(async()=>(o>0&&o%s===0&&(await e(),a(0)),n.addRefreshStatus(s-o%s)))()},[o]),b.useEffect(()=>{let c;return t.refreshInPause||(c=setInterval(()=>{i(u=>u+1)},1e3)),()=>{c&&clearInterval(c)}},[t.refreshInPause]),{restartTime:()=>a(0)}},BIi=()=>{const{state:e,actions:t}=Fo(),{state:n}=ka(),r=Number(Ot(n.settings,"CAS_DE_BILLET_TEMP_CHART_OFFSET_MINUTES",20)),i=async(u=!1)=>{if(e.processId===!1)return;t.setIsLoadingBackground(!0);const d=await uzt(e.processId);if(t.setIsLoadingBackground(!1),d.ok){const p=Ot(d,"data.tables[0].rows[0]",{}),h=Ot(d,"data.tables[1].rows",[]),g=Ot(d,"data.tables[2].rows",[]),m=Ot(d,"data.tables[3].rows",[]),v=Ot(d,"data.tables[4].rows",[]),y={processData:p,strands:h,probes:g,lostStrands:m,scraps:v,elements:[],strandSpeeds:[],moldLevels:[],billetTemp:[]};t.setIsLoadingBackground(!0);const M=await DAi(y.processData.HeatId),C=await dzt(y.processData.ProcessId),x=await pzt(y.processData.ProcessId),w=await hzt(y.processData.ProcessId,r);t.setIsLoadingBackground(!1),M.ok?y.elements=M.data.tables[0].rows:t.setErrorMessage(M.message),C.ok?y.strandSpeeds=C.data.tables[0].rows:t.setErrorMessage(C.message),x.ok?y.moldLevels=x.data.tables[0].rows:t.setErrorMessage(x.message),w.ok?y.billetTemp=w.data.tables[0].rows:t.setErrorMessage(w.message),e.processId!==y.processData.ProcessId?(t.setProcess(y),t.setProcessId(y.processData.ProcessId)):t.mergeProcess(y)}else t.setErrorMessage(d.message)},o=async()=>{t.setIsLoadingBackground(!0);const u=await vzt();u.ok?t.setCatalogs({tundishes:u.data.tables[0].rows,pourBacks:u.data.tables[1].rows,moldSizes:u.data.tables[2].rows,tundishShrouds:u.data.tables[3].rows,scrapReasons:u.data.tables[4].rows,tonnageReasons:u.data.tables[5].rows,housings:u.data.tables[6].rows,ladles:u.data.tables[7].rows,grades:u.data.tables[8].rows}):t.setErrorMessage(u.message),t.setIsLoadingBackground(!1)},a=async u=>{u!==e.processId&&t.setProcessId(u)},s=async()=>{if(e.processData===null)return;t.clearFocusField(),t.setIsLoadingBackground(!0);const u=await XAi(e.processData.ProcessId??0);t.setIsLoadingBackground(!1),u.ok?(t.setNotificationMessage("Process data was calculated successfully"),await i()):(t.setIsLoadingBackground(!1),t.setErrorMessage(u.message))},l=u=>{const d=location.pathname.split("/");window.history.replaceState(null,"",`/${d[1]}/${u}`)};b.useEffect(()=>{e.processData?.ProcessId!==null&&e.processData?.ProcessId===e.processId||((async()=>await i())(),l(e.processId?e.processId?.toString():""))},[e.processId]),b.useEffect(()=>{(async()=>await o())()},[]);const{restartTime:c}=qIi({onTimeUp:i});return e.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx("button",{id:"dummyDiv",style:{width:"0px",height:"0px",opacity:"0",position:"absolute"}}),e.processData!==null&&f.jsx(WIi,{reloadProcess:a,calculateProcess:s,refreshData:async()=>{await i(),c()}}),f.jsx(Mt,{error:e.errorMessage,onHide:()=>t.setErrorMessage("")}),f.jsx(Bm,{message:e.notificationMessage,onHide:()=>t.setNotificationMessage("")})]})};Rt(e=>({defaultButton:{padding:"6px 16px",fontSize:"0.875rem",lineHeight:1.75,borderRadius:"4px"}}));const jIi=y3({overrides:{MuiButton:{root:{padding:"6px 12px !important",fontSize:"0.7rem !important",borderRadius:4,lineHeight:1.5}},MuiButtonGroup:{grouped:{minWidth:30,padding:"4px 4px !important"}},MuiTextField:{root:{fontSize:"clamp(.7rem, 0.8rem, 1rem)","& .MuiInputBase-root":{minHeight:"35px !important",padding:"4px 0px 4px 2px !important"},"& .MuiOutlinedInput-input":{padding:"4px 0px 4px 4px !important",fontSize:"clamp(.7rem, 0.8rem, 1rem) !important"},"& label":{fontSize:"0.75rem !important"},"& .MuiOutlinedInput-multiline":{padding:"8px 14px !important"}}},MuiTable:{root:{minWidth:300}},MuiTableCell:{root:{padding:4,"&.narrow":{whiteSpace:"nowrap",maxWidth:"80px"}},head:{fontWeight:"bold"}},MuiTableRow:{root:{"&:nth-of-type(odd)":{backgroundColor:"#f5f5f5 !important"}}},MuiFormControl:{root:{margin:"2px 0",width:"100%"}},MuiInputLabel:{outlined:{transform:"translate(14px, 12px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}},MuiOutlinedInput:{root:{height:"35px"},input:{padding:"8px 14px !important",height:"19px !important",fontSize:"0.9rem !important"}},MuiSelect:{select:{height:"35px !important",lineHeight:"35px !important",paddingTop:0,paddingBottom:0},outlined:{paddingRight:"32px !important"}},MuiMenuItem:{root:{fontSize:"0.8rem",minHeight:"30px",lineHeight:"30px !important"}}}}),aQe=e=>f.jsx(KEi,{children:f.jsx(C3,{theme:jIi,children:f.jsx(BIi,{})})}),HIi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,processes:[],selectedProcess:null,errorMessage:"",notificationMessage:"",anchorPoint:{x:0,y:0}},xY=Ni({name:"__",initialState:HIi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setProcesses(e,{payload:t}){e.processes=t},setSelectedProcess(e,{payload:t}){e.selectedProcess=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t}}}),H3t=b.createContext({state:xY.getInitialState(),actions:xY.actions}),Mte=()=>b.useContext(H3t),VIi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:xY.getInitialState(),reducers:xY.caseReducers});return f.jsx(H3t.Provider,{value:{state:t,actions:n},children:e})};var z5={},sQe;function GIi(){if(sQe)return z5;sQe=1;var e=ri(),t=ii();Object.defineProperty(z5,"__esModule",{value:!0}),z5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddBox");return z5.default=i,z5}var $Ii=GIi();const Cte=qn($Ii),lQe=Rn(),UIi=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(""),[g,m]=b.useState(""),{actions:{setSelectedProcess:v}}=Mte(),{shiftInfo:y}=la(),M=fa(),C=Ot(y,"CurrentStart",null),x=b.useCallback(()=>{v({ProcessId:0,LadleOpen:lQe.utc(C).toDate(),LadleClose:lQe.utc(C).add(180,"minutes").toDate(),LadleOpenString:"",LadleCloseString:"",HeatId:0,HeatName:"",IsActive:!0,Link:"",Unlink:""}),t(!0)},[y?.CurrentProductionDate,v]),w=F=>{v(F),t(!0)},S=F=>{v(F),r(!0)},A=F=>{v(F);const L=Wn(`${F.LadleOpen}Z`,"YYYY/MM/dd HH:mm");m(`The heat ${F.HeatName} from ${L} will be unlinked.  Do you want to continue?`),o(!0)},z=F=>{v(F);const L=Wn(`${F.LadleOpen}Z`,"YYYY/MM/dd HH:mm");h("The heat "+F.HeatName+" from "+L+" will be activated.  Do you want to continue?"),c(!0)},O=F=>{v(F),d(` The Process starting at ${Wn(`${F.Start}`,"HH:mm")} associated with heat ${F.HeatName} will be deleted. Do you want to continue?`),s(!0)},T=F=>{F.IsActive?O(F):z(F)},I=F=>{F&&M(`/meltshop-heats/${y?.CurrentShiftId}?heatId=${F}`)},P=F=>{F!==null&&M(`/caster-data-entry/${F}`)};return{createData:x,editData:w,linkData:S,unlinkData:A,toggleStatusData:T,getMenuOptions:F=>{let L=[];return F.ProcessId&&F.IsActive&&L.push({name:"See in Data Entry",key:"go_to_caster_data_entry",style:{fontWeight:"bold"},onClick:()=>P(F.ProcessId),icon:f.jsx(vw,{})}),F.HeatId&&F.IsActive&&(L=L.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>I(F.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}])),F.HeatId&&F.IsActive&&(L=L.concat([{name:"Unlink Process",key:"unlink",onClick:()=>A(F),icon:f.jsx(cT,{})}])),!F.HeatId&&F.IsActive&&(L=L.concat([{name:"Link Process",key:"link",onClick:()=>S(F),icon:f.jsx(lT,{})}])),L.push({name:"Edit Process",key:"toggle_status",onClick:()=>w(F),icon:f.jsx(No,{})},{name:F.IsActive?"Delete Process":"Undelete Process",key:"toggle_status",onClick:()=>T(F),icon:F.IsActive?f.jsx(Mo,{}):f.jsx(Cte,{})},{name:"New Process",key:"create_new_process",onClick:()=>x(),icon:f.jsx(Zo,{})}),L},goToHeats:I,goToDataEntry:P,showActiveModal:l,showDeleteModal:a,showEditModal:e,showLinkModal:n,showUnlinkModal:i,messageActiveModal:p,messageDeleteModal:u,messageUnlinkModal:g,setShowActiveModal:c,setShowDeleteModal:s,setShowEditModal:t,setShowLinkModal:r,setShowUnlinkModal:o,setMessageActiveModal:h,setMessageDeleteModal:d,setMessageUnlinkModal:m}},kg=Rn(),XIi=({show:e,onHide:t,refreshData:n})=>{const[r,i]=b.useState(!1),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState(""),{state:h,actions:g}=Mte(),[m,v]=b.useState(!1),[y,M]=b.useState(!1),{shiftInfo:C}=la(),{register:x,setValue:w,control:S,handleSubmit:A,reset:z,watch:O,formState:{errors:T}}=Gn({defaultValues:{}}),I=Ot(C,"CurrentStart",null),P=W=>H=>{const j=kg.utc(I),G=kg.utc(H);W(H),G.isSame(j)?v(!1):v(!0)},N=async W=>{i(!0);const H=W.LadleOpen,j=W.LadleClose,G=await M3e(W.ProcessId===0?null:W.ProcessId,H,j);G.ok?(g.setNotificationMessage("Process was "+(s?"created":"edited")+" successfully"),await n()):g.setErrorMessage(G.message),i(!1),t(!0)},F=O("LadleOpen"),L=O("LadleClose");return b.useEffect(()=>{Math.abs(kg(F).diff(kg(L),"hours"))>3?M(!0):M(!1)},[F,L]),b.useEffect(()=>{v(!1),e?(i(!1),(async()=>{a(!0);const W=h.selectedProcess;W!=null&&(W.ProcessId===0?(p("New Caster Process"),l(!0)):(p("Edit Caster Process"),l(!1)),w("ProcessId",W.ProcessId),w("LadleOpen",W.LadleOpen?kg.utc(W.LadleOpen).toDate():kg.utc(I).toDate()),w("LadleClose",W.LadleClose?kg.utc(W.LadleClose).toDate():kg.utc(I).add(180,"minutes").toDate()),W.LadleClose===null&&u(!0),a(!1))})()):(z(),u(!1))},[e]),b.useEffect(()=>{c&&w("LadleClose",null)},[c]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:d}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{maxWidth:"md",open:e,handleClose:()=>{t(!0)},id:"upsertCasterProcess",title:d.toUpperCase(),children:f.jsxs("form",{onSubmit:A(N),children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:[o&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!o&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"LadleOpen",control:S,rules:{required:!0},render:({field:W})=>f.jsx(Cd,{label:"Ladle Open",timezone:Rc.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",timeSteps:{minutes:1},value:kg(W.value),onChange:P(W.onChange),inputRef:W.ref,slotProps:{textField:{variant:"outlined",error:!!T.LadleOpen,size:"small"}}})}),T.LadleOpen&&f.jsx("p",{style:{color:"red"},children:"Invalid Ladle Open Date"}),m&&f.jsx("p",{style:{color:"red",fontSize:12},children:"You are changing the date from the Current Start"})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"LadleClose",control:S,rules:{required:!c},render:({field:W})=>f.jsx(Cd,{label:"Ladle Close",timezone:Rc.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",timeSteps:{minutes:1},value:kg(W.value),onChange:W.onChange,inputRef:W.ref,slotProps:{textField:{variant:"outlined",error:!!T.LadleClose,size:"small"}}})}),T.LadleClose&&f.jsx("p",{style:{color:"red"},children:"Invalid Ladle Closed Date"})]})]}),f.jsx(D,{container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,md:12,style:{marginTop:10},children:f.jsx(Io,{control:f.jsx(Qr,{...x("IsOpen"),color:"primary",checked:c,onChange:W=>{u(W.target.checked),W.target.checked?w("LadleClose",null):w("LadleClose",kg.utc(I).add(180,"minutes").toDate())}}),label:"Ladle is not Closed"})})}),f.jsx(D,{item:!0,xs:6,md:6,children:y&&f.jsx("p",{style:{color:"red",fontSize:12},children:"Open and Close must be within 3 hours of each other"})})]})]}),f.jsx(We.Actions,{style:{padding:"10px 20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",size:"small",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:r&&f.jsx(Kt,{size:"1rem"}),disabled:r,variant:"contained",size:"small",color:"primary",type:"submit",children:"Save"})})]})})]})})})})]})},YIi=({onNewProcess:e})=>f.jsx(Fe,{variant:"contained",color:"primary",onClick:e,children:"NEW PROCESS"}),cQe=Rn(),KIi=({})=>{const{shiftInfo:e}=la(),t=Ot(e,"CurrentShiftId",null);return{columns:[{field:"HeatName",headerName:"Heat",cellRenderer:r=>zd({...r,link:`/meltshop-heats/${t}?heatId=${r.data.HeatId}`}),flex:1,minWidth:66},{field:"GradeName",headerName:"Grade",flex:1,minWidth:80},{field:"LadleName",headerName:"Ladle",flex:1,minWidth:57},{field:"HeatOrder",headerName:"Order",flex:1,minWidth:59},{field:"MoldSizeName",headerName:"Mold Size",flex:1,minWidth:60,wrapHeaderText:!0},{field:"LadleOpen",headerName:"Open",cellRenderer:zd,cellRendererParams:{linkProperty:"HeatNameLink"},flex:1,minWidth:61,valueGetter:r=>r.data.LadleOpen?cQe(r.data?.LadleOpen).format("HH:mm"):""},{field:"LadleClose",headerName:"Close",flex:1,minWidth:61,valueGetter:r=>r.data.LadleClose?cQe(r.data?.LadleClose).format("HH:mm"):""},{field:"Duration",headerName:"Duration",flex:1,minWidth:76,cellRenderer:TO,cellRendererParams:{numericFormat:"0.0"},cellStyle:{textAlign:"right"}},{field:"CastTons",headerName:"Tons",flex:1,minWidth:53,cellRenderer:TO,cellRendererParams:{numericFormat:"0.0"},cellStyle:{textAlign:"right"}},{field:"ScrapTons",headerName:"Scrap [lbs]",flex:1,minWidth:60,cellRenderer:TO,cellRendererParams:{numericFormat:"0"}},{field:"LostStrands",headerName:"Lost Strands",flex:1,minWidth:80,cellRenderer:TO,cellRendererParams:{numericFormat:"0"},wrapHeaderText:!0},{field:"TrimProbeTemperature",headerName:"Trim Temp",wrapHeaderText:!0,flex:1,minWidth:60},{field:"TrimProbeOxygen",headerName:"Trim O2",flex:1,minWidth:80},{field:"FirstProbeTemperature",headerName:"First Temp",flex:1,minWidth:60,wrapHeaderText:!0},{field:"LastProbeTemperature",headerName:"Last Temp",flex:1,minWidth:60,wrapHeaderText:!0},{field:"LastSuperheat",headerName:"Last SH",flex:1,minWidth:73,cellStyle:{textAlign:"right"}},{field:"IsProcessManual",headerName:"",flex:1,minWidth:34,maxWidth:34,cellRenderer:pte,cellClass:"ag-button-cell",cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Actions",headerName:"",type:["nonSorteable","nonFilterable","optionsButton"],flex:1,minWidth:150,editable:!1}]}},QIi=({loadingGrid:e,rows:t,refreshData:n})=>{const r=yj();dte();const i=b.useRef(null),[o,a]=b.useState(null),[s,l]=b.useState(null),[c,u]=Rd(),[d,p]=b.useState([]),{createData:h,editData:g,linkData:m,unlinkData:v,toggleStatusData:y,getMenuOptions:M,goToDataEntry:C,showActiveModal:x,showDeleteModal:w,showEditModal:S,showLinkModal:A,showUnlinkModal:z,messageActiveModal:O,messageDeleteModal:T,messageUnlinkModal:I,setShowActiveModal:P,setShowDeleteModal:N,setShowEditModal:F,setShowLinkModal:L,setShowUnlinkModal:W,setMessageActiveModal:H,setMessageDeleteModal:j,setMessageUnlinkModal:G}=UIi(),{showContextMenu:q,registerConfig:$}=ks(),{shiftInfo:U}=la(),{columns:X}=KIi({}),{state:{selectedProcess:Q,anchorPoint:{x:re,y:ee}},actions:{setSelectedProcess:se,setIsLoadingBackground:pe,setNotificationMessage:te,setErrorMessage:ce}}=Mte(),oe=ie=>{ie.preventDefault()},ae=ie=>{l(ie.api)},ne=()=>{if(!s)return;const ie=s.getSelectedRows();ie.length>0?(a(ie[0]),u({processId:ie[0].ProcessId},{replace:!0})):(a(null),u({},{replace:!0}))},le=ie=>{if(!ie.data.IsActive)return{background:"#E8EBEB"}},he=async ie=>{if(N(!1),j(""),ie!=="OK"||Q===null)return;pe(!0);const ue=await czt(Q.ProcessId);ue.ok?(pe(!1),te("Process deleted successfully"),await n()):(pe(!1),ce(ue.message))},be=async ie=>{if(P(!1),H(""),ie!=="OK"||Q===null)return;pe(!0);const ue=await RAi(Q.ProcessId);ue.ok?(pe(!1),te("Process activated successfully"),await n()):(pe(!1),ce(ue.message))},me=async ie=>{if(W(!1),G(""),ie!=="OK"||Q===null)return;pe(!0);const ue=await C3e(Q.ProcessId);ue.ok?(pe(!1),te("Process unlinked successfully"),await n()):(pe(!1),ce(ue.message))},{columnTypes:Me}=ku({OnEdit:g});Me.linkButton={field:"Link",cellRenderer:hAi,cellRendererParams:{clicked:m},cellClass:"ag-button-cell"},Me.unlinkButton={field:"Unlink",cellRenderer:gAi,cellRendererParams:{clicked:v},cellClass:"ag-button-cell"},Me.activeButton={field:"IsActive",headerName:"",cellRenderer:ozt,cellRendererParams:{clicked:y},cellClass:"ag-button-cell"},Me.optionsButton={field:"Options",headerName:"",cellRenderer:ie=>f.jsxs("div",{className:r.buttons,children:[f.jsx(yn,{"aria-label":"link/unlink",title:ie.data.HeatName?"Unlink":"Link",style:{cursor:"pointer"},onClick:()=>{ie.data.HeatName?v(ie.data):m(ie.data)},children:ie.data.HeatName?f.jsx(cT,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}}):f.jsx(lT,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})}),f.jsx(yn,{"aria-label":"delete-icon",title:ie.data.IsActive?"Delete":"Activate",style:{cursor:"pointer"},onClick:()=>y(ie.data),children:ie.data.IsActive?f.jsx(Mo,{fontSize:"inherit",color:"secondary",style:{cursor:"pointer"}}):f.jsx(Cte,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})}),f.jsx(yn,{"aria-label":"Options",title:"Options",style:{cursor:"pointer"},onClick:ue=>q(ue,ie.data,"casterProcesses"),children:f.jsx(ute,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})})]}),cellClass:r.buttons};const Oe={newProcessStatusBar:YIi},de={statusPanels:[{statusPanel:"newProcessStatusBar",align:"right",statusPanelParams:{onNewProcess:h}}]};return b.useEffect(()=>{e&&i.current!==null&&i.current.api!==void 0?i.current.api.showLoadingOverlay():i.current!==null&&i.current.api!==void 0&&i.current.api.hideOverlay()},[e]),b.useEffect(()=>{if(!e&&s&&t&&t.length>0){const ie=c.get("processId");if(ie){const ue=s.getRowNode(ie);ue&&(s.deselectAll(),ue?.setSelected(!0,!0),a(ue.data))}}},[s,e,t]),b.useEffect(()=>{$({id:"casterProcesses",getOptions:M})},[U?.CurrentShiftId]),f.jsxs(f.Fragment,{children:[o&&!S&&!w&&!A&&!z&&!x&&f.jsx(Mn,{title:`${o.HeatName?`${o.HeatName} - `:""}Caster Processes`}),w&&f.jsx(Mn,{title:"Delete Process"}),z&&f.jsx(Mn,{title:"Unlink Process"}),x&&f.jsx(Mn,{title:"Activate Process"}),f.jsxs("div",{onContextMenu:oe,children:[f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,md:12,xs:12,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},children:f.jsx(Kn,{ref:i,onGridReady:ae,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:X,columnTypes:Me,getRowStyle:le,getRowId:ie=>String(ie.data.ProcessId),suppressContextMenu:!0,onRowDoubleClicked:ie=>{ie.data.ProcessId&&C(ie.data.ProcessId)},onCellContextMenu:ie=>{ie.api.deselectAll(),ie.node.setSelected(!0),se(ie?.data),ie.event&&q(ie.event,ie.data,"casterProcesses")},onSelectionChanged:ne,statusBar:de,components:Oe})})}),f.jsx(rl,{title:"Confirmation",message:T,open:w,onClose:he}),f.jsx(rl,{title:"Confirmation",message:O,open:x,onClose:be}),f.jsx(rl,{title:"Confirmation",message:I,open:z,onClose:me}),f.jsx(XIi,{show:S,onHide:()=>F(!1),refreshData:n}),f.jsx(P3t,{show:A,onHide:async()=>{L(!1),te("Process linked successfully"),await n()},process:Q})]})]})},ZIi=e=>{const t=fa(),{state:n,actions:r}=Mte(),[i,o]=b.useState(!1),[a]=Rd(),[s,l]=b.useState(!0),{shiftInfo:c,getShiftDataFromAPI:u}=la(),{shiftId:d}=Ms(),p=async h=>{r.setIsLoadingGrid(!0);const g=Ot(h||c,"CurrentShiftId",null);if(g){const m=await EAi(Number(g),i);m.ok&&m.data.tables.length>0?r.setProcesses(m.data.tables[0].rows):console.log("something happened 2"),r.setIsLoadingGrid(!1)}};return b.useEffect(()=>{if(c&&!s){const h=Ot(c,"CurrentShiftId",null),g=new URLSearchParams(a.toString());t(`/caster-processes/${h}?${g.toString()}`),(async()=>await p())()}},[c,i]),b.useEffect(()=>{d?(async()=>{const h=Number(d);u(null,h).then(async g=>{g&&(await p(g),l(!1))})})():(async()=>u(null,0).then(async h=>{h&&(await p(h),l(!1))}))()},[]),n.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:"Caster Processes"}),f.jsxs(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:n.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Caster Processes"})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(s2,{preventInit:!0}),f.jsx(kt,{style:{minWidth:"300px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsx(D,{item:!0,container:!0,xs:12,spacing:2,alignItems:"center",style:{marginLeft:"10px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsx(xD,{children:f.jsx(Io,{control:f.jsx(Qr,{checked:i,color:"primary",onChange:h=>o(h.target.checked)}),label:"Show deleted processes"})})})})})]})}),f.jsx(QIi,{loadingGrid:n.isLoadingGrid,rows:n.processes||[],refreshData:p})]})}),f.jsx(Mt,{error:n.errorMessage,onHide:()=>r.setErrorMessage("")}),f.jsx(Bm,{message:n.notificationMessage,onHide:()=>r.setNotificationMessage("")})]})]})},uQe=e=>f.jsx(VIi,{children:f.jsx(ZIi,{})}),wY=new Date;wY.setDate(wY.getDate()-5);wY.setHours(0,0,0,0);const V3t=new Date;V3t.setHours(23,59,59,0);const JIi={casterProductions:null,billetSizes:[],grades:[],casterProductionFilter:{startDate:wY,endDate:V3t,billetSizeId:0,gradeId:0,shiftId:0},showLoading:!1},SY=Ni({name:"__",initialState:JIi,reducers:{setCasterProductions(e,{payload:t}){e.casterProductions=t},setBilletSizes(e,{payload:t}){e.billetSizes=t},setGrades(e,{payload:t}){e.grades=t},setCasterProductionFilters(e,{payload:t}){e.casterProductionFilter=t},setShowLoading(e,{payload:t}){e.showLoading=t}}}),G3t=b.createContext({state:SY.getInitialState(),actions:SY.actions}),ePi=()=>b.useContext(G3t),tPi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:SY.getInitialState(),reducers:SY.caseReducers});return f.jsx(G3t.Provider,{value:{state:t,actions:n},children:e})};function ur(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function xte(e){return ur(1,arguments),e instanceof Date||p1(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Er(e){ur(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||p1(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function a6(e){if(ur(1,arguments),!xte(e)&&typeof e!="number")return!1;var t=Er(e);return!isNaN(Number(t))}function zo(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Q3e(e,t){ur(2,arguments);var n=Er(e).getTime(),r=zo(t);return new Date(n+r)}function $3t(e,t){ur(2,arguments);var n=zo(t);return Q3e(e,-n)}var nPi=864e5;function rPi(e){ur(1,arguments);var t=Er(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/nPi)+1}function oD(e){ur(1,arguments);var t=1,n=Er(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function U3t(e){ur(1,arguments);var t=Er(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=oD(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=oD(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function iPi(e){ur(1,arguments);var t=U3t(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=oD(n);return r}var oPi=6048e5;function X3t(e){ur(1,arguments);var t=Er(e),n=oD(t).getTime()-iPi(t).getTime();return Math.round(n/oPi)+1}var aPi={};function pT(){return aPi}function d3(e,t){var n,r,i,o,a,s,l,c;ur(1,arguments);var u=pT(),d=zo((n=(r=(i=(o=t?.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Er(e),h=p.getUTCDay(),g=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function Z3e(e,t){var n,r,i,o,a,s,l,c;ur(1,arguments);var u=Er(e),d=u.getUTCFullYear(),p=pT(),h=zo((n=(r=(i=(o=t?.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(d+1,0,h),g.setUTCHours(0,0,0,0);var m=d3(g,t),v=new Date(0);v.setUTCFullYear(d,0,h),v.setUTCHours(0,0,0,0);var y=d3(v,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=y.getTime()?d:d-1}function sPi(e,t){var n,r,i,o,a,s,l,c;ur(1,arguments);var u=pT(),d=zo((n=(r=(i=(o=t?.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=Z3e(e,t),h=new Date(0);h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0);var g=d3(h,t);return g}var lPi=6048e5;function Y3t(e,t){ur(1,arguments);var n=Er(e),r=d3(n,t).getTime()-sPi(n,t).getTime();return Math.round(r/lPi)+1}function as(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var bC={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return as(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):as(r+1,2)},d:function(t,n){return as(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return as(t.getUTCHours()%12||12,n.length)},H:function(t,n){return as(t.getUTCHours(),n.length)},m:function(t,n){return as(t.getUTCMinutes(),n.length)},s:function(t,n){return as(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return as(o,n.length)}},lR={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cPi={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return bC.y(t,n)},Y:function(t,n,r,i){var o=Z3e(t,i),a=o>0?o:1-o;if(n==="YY"){var s=a%100;return as(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):as(a,n.length)},R:function(t,n){var r=U3t(t);return as(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return as(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return as(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return as(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return bC.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return as(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=Y3t(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):as(o,n.length)},I:function(t,n,r){var i=X3t(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):as(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):bC.d(t,n)},D:function(t,n,r){var i=rPi(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):as(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return as(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return as(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return as(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=lR.noon:i===0?o=lR.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=lR.evening:i>=12?o=lR.afternoon:i>=4?o=lR.morning:o=lR.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return bC.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):bC.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):as(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):as(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):bC.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):bC.s(t,n)},S:function(t,n){return bC.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return pQe(a);case"XXXX":case"XX":return VA(a);case"XXXXX":case"XXX":default:return VA(a,":")}},x:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"x":return pQe(a);case"xxxx":case"xx":return VA(a);case"xxxxx":case"xxx":default:return VA(a,":")}},O:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+dQe(a,":");case"OOOO":default:return"GMT"+VA(a,":")}},z:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+dQe(a,":");case"zzzz":default:return"GMT"+VA(a,":")}},t:function(t,n,r,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return as(a,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,a=o.getTime();return as(a,n.length)}};function dQe(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t;return n+String(i)+a+as(o,2)}function pQe(e,t){if(e%60===0){var n=e>0?"-":"+";return n+as(Math.abs(e)/60,2)}return VA(e,t)}function VA(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=as(Math.floor(i/60),2),a=as(i%60,2);return r+o+n+a}var hQe=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},K3t=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},uPi=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return hQe(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",hQe(i,n)).replace("{{time}}",K3t(o,n))},g2e={p:K3t,P:uPi};function AY(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var dPi=["D","DD"],pPi=["YY","YYYY"];function Q3t(e){return dPi.indexOf(e)!==-1}function Z3t(e){return pPi.indexOf(e)!==-1}function OY(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var hPi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},fPi=function(t,n,r){var i,o=hPi[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function hpe(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var gPi={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},mPi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vPi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bPi={date:hpe({formats:gPi,defaultWidth:"full"}),time:hpe({formats:mPi,defaultWidth:"full"}),dateTime:hpe({formats:vPi,defaultWidth:"full"})},yPi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},MPi=function(t,n,r,i){return yPi[t]};function T5(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var CPi={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xPi={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wPi={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},SPi={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},APi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},OPi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zPi=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},TPi={ordinalNumber:zPi,era:T5({values:CPi,defaultWidth:"wide"}),quarter:T5({values:xPi,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:T5({values:wPi,defaultWidth:"wide"}),day:T5({values:SPi,defaultWidth:"wide"}),dayPeriod:T5({values:APi,defaultWidth:"wide",formattingValues:OPi,defaultFormattingWidth:"wide"})};function E5(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?RPi(s,function(d){return d.test(a)}):EPi(s,function(d){return d.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function EPi(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function RPi(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function IPi(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var PPi=/^(\d+)(th|st|nd|rd)?/i,DPi=/\d+/i,kPi={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},LPi={any:[/^b/i,/^(a|c)/i]},_Pi={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},NPi={any:[/1/i,/2/i,/3/i,/4/i]},FPi={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},WPi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},qPi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},BPi={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},jPi={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},HPi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},VPi={ordinalNumber:IPi({matchPattern:PPi,parsePattern:DPi,valueCallback:function(t){return parseInt(t,10)}}),era:E5({matchPatterns:kPi,defaultMatchWidth:"wide",parsePatterns:LPi,defaultParseWidth:"any"}),quarter:E5({matchPatterns:_Pi,defaultMatchWidth:"wide",parsePatterns:NPi,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:E5({matchPatterns:FPi,defaultMatchWidth:"wide",parsePatterns:WPi,defaultParseWidth:"any"}),day:E5({matchPatterns:qPi,defaultMatchWidth:"wide",parsePatterns:BPi,defaultParseWidth:"any"}),dayPeriod:E5({matchPatterns:jPi,defaultMatchWidth:"any",parsePatterns:HPi,defaultParseWidth:"any"})},J3t={code:"en-US",formatDistance:fPi,formatLong:bPi,formatRelative:MPi,localize:TPi,match:VPi,options:{weekStartsOn:0,firstWeekContainsDate:1}},GPi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$Pi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,UPi=/^'([^]*?)'?$/,XPi=/''/g,YPi=/[a-zA-Z]/;function fQe(e,t,n){var r,i,o,a,s,l,c,u,d,p,h,g,m,v,y,M,C,x;ur(2,arguments);var w=String(t),S=pT(),A=(r=(i=n?.locale)!==null&&i!==void 0?i:S.locale)!==null&&r!==void 0?r:J3t,z=zo((o=(a=(s=(l=n?.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&s!==void 0?s:S.firstWeekContainsDate)!==null&&a!==void 0?a:(d=S.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=zo((h=(g=(m=(v=n?.weekStartsOn)!==null&&v!==void 0?v:n==null||(y=n.locale)===null||y===void 0||(M=y.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&m!==void 0?m:S.weekStartsOn)!==null&&g!==void 0?g:(C=S.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var T=Er(e);if(!a6(T))throw new RangeError("Invalid time value");var I=AY(T),P=$3t(T,I),N={firstWeekContainsDate:z,weekStartsOn:O,locale:A,_originalDate:T},F=w.match($Pi).map(function(L){var W=L[0];if(W==="p"||W==="P"){var H=g2e[W];return H(L,A.formatLong)}return L}).join("").match(GPi).map(function(L){if(L==="''")return"'";var W=L[0];if(W==="'")return KPi(L);var H=cPi[W];if(H)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Z3t(L)&&OY(L,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Q3t(L)&&OY(L,t,String(e)),H(P,L,A.localize,N);if(W.match(YPi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return L}).join("");return F}function KPi(e){var t=e.match(UPi);return t?t[1].replace(XPi,"'"):e}var QPi=6e4;function m2e(e,t){ur(2,arguments);var n=zo(t);return Q3e(e,n*QPi)}var ZPi=36e5;function JPi(e,t){ur(2,arguments);var n=zo(t);return Q3e(e,n*ZPi)}function Pk(e,t){ur(2,arguments);var n=Er(e),r=zo(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function zY(e,t){ur(2,arguments);var n=zo(t),r=n*7;return Pk(e,r)}function Em(e,t){ur(2,arguments);var n=Er(e),r=zo(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function eTt(e,t){ur(2,arguments);var n=zo(t),r=n*3;return Em(e,r)}function aD(e,t){ur(2,arguments);var n=zo(t);return Em(e,n*12)}function eDi(e,t){ur(2,arguments);var n=zo(t);return Pk(e,-n)}function gQe(e,t){ur(2,arguments);var n=zo(t);return zY(e,-n)}function sD(e,t){ur(2,arguments);var n=zo(t);return Em(e,-n)}function tDi(e,t){ur(2,arguments);var n=zo(t);return eTt(e,-n)}function s6(e,t){ur(2,arguments);var n=zo(t);return aD(e,-n)}function mQe(e){ur(1,arguments);var t=Er(e),n=t.getSeconds();return n}function wb(e){ur(1,arguments);var t=Er(e),n=t.getMinutes();return n}function Sb(e){ur(1,arguments);var t=Er(e),n=t.getHours();return n}function nDi(e){ur(1,arguments);var t=Er(e),n=t.getDay();return n}function vQe(e){ur(1,arguments);var t=Er(e),n=t.getDate();return n}function tTt(e,t){var n,r,i,o,a,s,l,c;ur(1,arguments);var u=pT(),d=zo((n=(r=(i=(o=t?.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Er(e),h=p.getDay(),g=(h<d?7:0)+h-d;return p.setDate(p.getDate()-g),p.setHours(0,0,0,0),p}function TY(e){return ur(1,arguments),tTt(e,{weekStartsOn:1})}function rDi(e){ur(1,arguments);var t=Er(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=TY(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=TY(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function iDi(e){ur(1,arguments);var t=rDi(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=TY(n);return r}var oDi=6048e5;function aDi(e){ur(1,arguments);var t=Er(e),n=TY(t).getTime()-iDi(t).getTime();return Math.round(n/oDi)+1}function d0(e){ur(1,arguments);var t=Er(e),n=t.getMonth();return n}function ZR(e){ur(1,arguments);var t=Er(e),n=Math.floor(t.getMonth()/3)+1;return n}function Po(e){return ur(1,arguments),Er(e).getFullYear()}function v2e(e){ur(1,arguments);var t=Er(e),n=t.getTime();return n}function sDi(e,t){ur(2,arguments);var n=Er(e),r=zo(t);return n.setSeconds(r),n}function s$(e,t){ur(2,arguments);var n=Er(e),r=zo(t);return n.setMinutes(r),n}function l$(e,t){ur(2,arguments);var n=Er(e),r=zo(t);return n.setHours(r),n}function lDi(e){ur(1,arguments);var t=Er(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function U0(e,t){ur(2,arguments);var n=Er(e),r=zo(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=lDi(a);return n.setMonth(r,Math.min(o,s)),n}function cR(e,t){ur(2,arguments);var n=Er(e),r=zo(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return U0(n,n.getMonth()+o*3)}function uy(e,t){ur(2,arguments);var n=Er(e),r=zo(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function bQe(e){ur(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(p1(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Er(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function yQe(e){ur(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(p1(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Er(r);(n===void 0||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}function Ab(e){ur(1,arguments);var t=Er(e);return t.setHours(0,0,0,0),t}var cDi=864e5;function EY(e,t){ur(2,arguments);var n=Ab(e),r=Ab(t),i=n.getTime()-AY(n),o=r.getTime()-AY(r);return Math.round((i-o)/cDi)}function RY(e,t){ur(2,arguments);var n=Er(e),r=Er(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function IY(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getFullYear()-r.getFullYear()}function nTt(e){ur(1,arguments);var t=Er(e);return t.setDate(1),t.setHours(0,0,0,0),t}function b2e(e){ur(1,arguments);var t=Er(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function rTt(e){ur(1,arguments);var t=Er(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function y2e(e){ur(1,arguments);var t=Er(e);return t.setHours(23,59,59,999),t}function uDi(e){ur(1,arguments);var t=Er(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function dDi(e){ur(1,arguments);var t=Er(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function pDi(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getTime()===r.getTime()}function hDi(e,t){ur(2,arguments);var n=Ab(e),r=Ab(t);return n.getTime()===r.getTime()}function fDi(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function gDi(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getFullYear()===r.getFullYear()}function mDi(e,t){ur(2,arguments);var n=b2e(e),r=b2e(t);return n.getTime()===r.getTime()}function bw(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getTime()>r.getTime()}function yx(e,t){ur(2,arguments);var n=Er(e),r=Er(t);return n.getTime()<r.getTime()}function l6(e,t){ur(2,arguments);var n=Er(e).getTime(),r=Er(t.start).getTime(),i=Er(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function MQe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=uMe(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function vDi(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function iTt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iTt=function(){return!!e})()}function Ma(e){var t=iTt();return function(){var n,r=Rz(e);if(t){var i=Rz(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return JK(this,n)}}var bDi=10,oTt=(function(){function e(){Eo(this,e),tn(this,"priority",void 0),tn(this,"subPriority",0)}return so(e,[{key:"validate",value:function(n,r){return!0}}]),e})(),yDi=(function(e){Jo(n,e);var t=Ma(n);function n(r,i,o,a,s){var l;return Eo(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return so(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),n})(oTt),MDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",bDi),tn(xn(r),"subPriority",-1),r}return so(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),n})(oTt),Ha=(function(){function e(){Eo(this,e),tn(this,"incompatibleTokens",void 0),tn(this,"priority",void 0),tn(this,"subPriority",void 0)}return so(e,[{key:"run",value:function(n,r,i,o){var a=this.parse(n,r,i,o);return a?{setter:new yDi(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),e})(),CDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",140),tn(xn(r),"incompatibleTokens",["R","u","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),J3e=6e4,eTe=36e5,xDi=1e3,Ac={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Uv={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Oc(e,t){return e&&{value:t(e.value),rest:e.rest}}function Ll(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Xv(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*eTe+o*J3e+a*xDi),rest:t.slice(n[0].length)}}function aTt(e){return Ll(Ac.anyDigitsSigned,e)}function ic(e,t){switch(e){case 1:return Ll(Ac.singleDigit,t);case 2:return Ll(Ac.twoDigits,t);case 3:return Ll(Ac.threeDigits,t);case 4:return Ll(Ac.fourDigits,t);default:return Ll(new RegExp("^\\d{1,"+e+"}"),t)}}function PY(e,t){switch(e){case 1:return Ll(Ac.singleDigitSigned,t);case 2:return Ll(Ac.twoDigitsSigned,t);case 3:return Ll(Ac.threeDigitsSigned,t);case 4:return Ll(Ac.fourDigitsSigned,t);default:return Ll(new RegExp("^-?\\d{1,"+e+"}"),t)}}function tTe(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function sTt(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function lTt(e){return e%400===0||e%4===0&&e%100!==0}var wDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",130),tn(xn(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){var s=function(c){return{year:c,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Oc(ic(4,i),s);case"yo":return Oc(a.ordinalNumber(i,{unit:"year"}),s);default:return Oc(ic(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var l=sTt(a.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),SDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",130),tn(xn(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){var s=function(c){return{year:c,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Oc(ic(4,i),s);case"Yo":return Oc(a.ordinalNumber(i,{unit:"year"}),s);default:return Oc(ic(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var l=Z3e(i,s);if(a.isTwoDigitYear){var c=sTt(a.year,l);return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),d3(i,s)}var u=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(u,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),d3(i,s)}}]),n})(Ha),ADi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",130),tn(xn(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o){return PY(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),oD(s)}}]),n})(Ha),ODi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",130),tn(xn(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o){return PY(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),zDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",120),tn(xn(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return ic(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),TDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",120),tn(xn(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return ic(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),EDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),tn(xn(r),"priority",110),r}return so(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c-1};switch(o){case"M":return Oc(Ll(Ac.month,i),s);case"MM":return Oc(ic(2,i),s);case"Mo":return Oc(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),RDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",110),tn(xn(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c-1};switch(o){case"L":return Oc(Ll(Ac.month,i),s);case"LL":return Oc(ic(2,i),s);case"Lo":return Oc(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n})(Ha);function IDi(e,t,n){ur(2,arguments);var r=Er(e),i=zo(t),o=Y3t(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}var PDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",100),tn(xn(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"w":return Ll(Ac.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return ic(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return d3(IDi(i,a,s),s)}}]),n})(Ha);function DDi(e,t){ur(2,arguments);var n=Er(e),r=zo(t),i=X3t(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var kDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",100),tn(xn(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"I":return Ll(Ac.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return ic(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return oD(DDi(i,a))}}]),n})(Ha),LDi=[31,28,31,30,31,30,31,31,30,31,30,31],_Di=[31,29,31,30,31,30,31,31,30,31,30,31],NDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"subPriority",1),tn(xn(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"d":return Ll(Ac.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return ic(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=lTt(a),l=i.getUTCMonth();return s?o>=1&&o<=_Di[l]:o>=1&&o<=LDi[l]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),FDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"subpriority",1),tn(xn(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return Ll(Ac.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return ic(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=lTt(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),n})(Ha);function nTe(e,t,n){var r,i,o,a,s,l,c,u;ur(2,arguments);var d=pT(),p=zo((r=(i=(o=(a=n?.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&i!==void 0?i:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Er(e),g=zo(t),m=h.getUTCDay(),v=g%7,y=(v+7)%7,M=(y<p?7:0)+g-m;return h.setUTCDate(h.getUTCDate()+M),h}var WDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=nTe(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),qDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a,s){var l=function(u){var d=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+d};switch(o){case"e":case"ee":return Oc(ic(o.length,i),l);case"eo":return Oc(a.ordinalNumber(i,{unit:"day"}),l);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=nTe(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),BDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a,s){var l=function(u){var d=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+d};switch(o){case"c":case"cc":return Oc(ic(o.length,i),l);case"co":return Oc(a.ordinalNumber(i,{unit:"day"}),l);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=nTe(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n})(Ha);function jDi(e,t){ur(2,arguments);var n=zo(t);n%7===0&&(n=n-7);var r=1,i=Er(e),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}var HDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",90),tn(xn(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c===0?7:c};switch(o){case"i":case"ii":return ic(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return Oc(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return Oc(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Oc(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Oc(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=jDi(i,a),i.setUTCHours(0,0,0,0),i}}]),n})(Ha),VDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",80),tn(xn(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(tTe(a),0,0,0),i}}]),n})(Ha),GDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",80),tn(xn(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(tTe(a),0,0,0),i}}]),n})(Ha),$Di=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",80),tn(xn(r),"incompatibleTokens",["a","b","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(tTe(a),0,0,0),i}}]),n})(Ha),UDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",70),tn(xn(r),"incompatibleTokens",["H","K","k","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"h":return Ll(Ac.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return ic(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n})(Ha),XDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",70),tn(xn(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"H":return Ll(Ac.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return ic(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),n})(Ha),YDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",70),tn(xn(r),"incompatibleTokens",["h","H","k","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"K":return Ll(Ac.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return ic(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n})(Ha),KDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",70),tn(xn(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"k":return Ll(Ac.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return ic(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),n})(Ha),QDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",60),tn(xn(r),"incompatibleTokens",["t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"m":return Ll(Ac.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return ic(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),n})(Ha),ZDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",50),tn(xn(r),"incompatibleTokens",["t","T"]),r}return so(n,[{key:"parse",value:function(i,o,a){switch(o){case"s":return Ll(Ac.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return ic(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),n})(Ha),JDi=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",30),tn(xn(r),"incompatibleTokens",["t","T"]),r}return so(n,[{key:"parse",value:function(i,o){var a=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return Oc(ic(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),n})(Ha),eki=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",10),tn(xn(r),"incompatibleTokens",["t","T","x"]),r}return so(n,[{key:"parse",value:function(i,o){switch(o){case"X":return Xv(Uv.basicOptionalMinutes,i);case"XX":return Xv(Uv.basic,i);case"XXXX":return Xv(Uv.basicOptionalSeconds,i);case"XXXXX":return Xv(Uv.extendedOptionalSeconds,i);case"XXX":default:return Xv(Uv.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n})(Ha),tki=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",10),tn(xn(r),"incompatibleTokens",["t","T","X"]),r}return so(n,[{key:"parse",value:function(i,o){switch(o){case"x":return Xv(Uv.basicOptionalMinutes,i);case"xx":return Xv(Uv.basic,i);case"xxxx":return Xv(Uv.basicOptionalSeconds,i);case"xxxxx":return Xv(Uv.extendedOptionalSeconds,i);case"xxx":default:return Xv(Uv.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n})(Ha),nki=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",40),tn(xn(r),"incompatibleTokens","*"),r}return so(n,[{key:"parse",value:function(i){return aTt(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),n})(Ha),rki=(function(e){Jo(n,e);var t=Ma(n);function n(){var r;Eo(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),tn(xn(r),"priority",20),tn(xn(r),"incompatibleTokens","*"),r}return so(n,[{key:"parse",value:function(i){return aTt(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),n})(Ha),iki={G:new CDi,y:new wDi,Y:new SDi,R:new ADi,u:new ODi,Q:new zDi,q:new TDi,M:new EDi,L:new RDi,w:new PDi,I:new kDi,d:new NDi,D:new FDi,E:new WDi,e:new qDi,c:new BDi,i:new HDi,a:new VDi,b:new GDi,B:new $Di,h:new UDi,H:new XDi,K:new YDi,k:new KDi,m:new QDi,s:new ZDi,S:new JDi,X:new eki,x:new tki,t:new nki,T:new rki},oki=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,aki=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ski=/^'([^]*?)'?$/,lki=/''/g,cki=/\S/,uki=/[a-zA-Z]/;function fpe(e,t,n,r){var i,o,a,s,l,c,u,d,p,h,g,m,v,y,M,C,x,w;ur(3,arguments);var S=String(e),A=String(t),z=pT(),O=(i=(o=r?.locale)!==null&&o!==void 0?o:z.locale)!==null&&i!==void 0?i:J3t;if(!O.match)throw new RangeError("locale must contain match property");var T=zo((a=(s=(l=(c=r?.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(u=r.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:z.firstWeekContainsDate)!==null&&s!==void 0?s:(p=z.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=zo((g=(m=(v=(y=r?.weekStartsOn)!==null&&y!==void 0?y:r==null||(M=r.locale)===null||M===void 0||(C=M.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&v!==void 0?v:z.weekStartsOn)!==null&&m!==void 0?m:(x=z.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&g!==void 0?g:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(A==="")return S===""?Er(n):new Date(NaN);var P={firstWeekContainsDate:T,weekStartsOn:I,locale:O},N=[new MDi],F=A.match(aki).map(function(pe){var te=pe[0];if(te in g2e){var ce=g2e[te];return ce(pe,O.formatLong)}return pe}).join("").match(oki),L=[],W=MQe(F),H;try{var j=function(){var te=H.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Z3t(te)&&OY(te,A,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Q3t(te)&&OY(te,A,e);var ce=te[0],oe=iki[ce];if(oe){var ae=oe.incompatibleTokens;if(Array.isArray(ae)){var ne=L.find(function(he){return ae.includes(he.token)||he.token===ce});if(ne)throw new RangeError("The format string mustn't contain `".concat(ne.fullToken,"` and `").concat(te,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&L.length>0)throw new RangeError("The format string mustn't contain `".concat(te,"` and any other token at the same time"));L.push({token:ce,fullToken:te});var le=oe.run(S,te,O.match,P);if(!le)return{v:new Date(NaN)};N.push(le.setter),S=le.rest}else{if(ce.match(uki))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ce+"`");if(te==="''"?te="'":ce==="'"&&(te=dki(te)),S.indexOf(te)===0)S=S.slice(te.length);else return{v:new Date(NaN)}}};for(W.s();!(H=W.n()).done;){var G=j();if(p1(G)==="object")return G.v}}catch(pe){W.e(pe)}finally{W.f()}if(S.length>0&&cki.test(S))return new Date(NaN);var q=N.map(function(pe){return pe.priority}).sort(function(pe,te){return te-pe}).filter(function(pe,te,ce){return ce.indexOf(pe)===te}).map(function(pe){return N.filter(function(te){return te.priority===pe}).sort(function(te,ce){return ce.subPriority-te.subPriority})}).map(function(pe){return pe[0]}),$=Er(n);if(isNaN($.getTime()))return new Date(NaN);var U=$3t($,AY($)),X={},Q=MQe(q),re;try{for(Q.s();!(re=Q.n()).done;){var ee=re.value;if(!ee.validate(U,P))return new Date(NaN);var se=ee.set(U,X,P);Array.isArray(se)?(U=se[0],vDi(X,se[1])):U=se}}catch(pe){Q.e(pe)}finally{Q.f()}return U}function dki(e){return e.match(ski)[1].replace(lki,"'")}function pki(e,t){var n;ur(1,arguments);var r=zo((n=void 0)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=mki(e),o;if(i.date){var a=vki(i.date,r);o=bki(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,c;if(i.time&&(l=yki(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Mki(i.timezone),isNaN(c))return new Date(NaN)}else{var u=new Date(s+l),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return new Date(s+l+c)}var zG={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},hki=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,fki=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,gki=/^([+-])(\d{2})(?::?(\d{2}))?$/;function mki(e){var t={},n=e.split(zG.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],zG.timeZoneDelimiter.test(t.date)&&(t.date=e.split(zG.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=zG.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function vki(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function bki(e,t){if(t===null)return new Date(NaN);var n=e.match(hki);if(!n)return new Date(NaN);var r=!!n[4],i=R5(n[1]),o=R5(n[2])-1,a=R5(n[3]),s=R5(n[4]),l=R5(n[5])-1;if(r)return Aki(t,s,l)?Cki(t,s,l):new Date(NaN);var c=new Date(0);return!wki(t,o,a)||!Ski(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}function R5(e){return e?parseInt(e):1}function yki(e){var t=e.match(fki);if(!t)return NaN;var n=gpe(t[1]),r=gpe(t[2]),i=gpe(t[3]);return Oki(n,r,i)?n*eTe+r*J3e+i*1e3:NaN}function gpe(e){return e&&parseFloat(e.replace(",","."))||0}function Mki(e){if(e==="Z")return 0;var t=e.match(gki);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return zki(r,i)?n*(r*eTe+i*J3e):NaN}function Cki(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var xki=[31,null,31,30,31,30,31,31,30,31,30,31];function cTt(e){return e%400===0||e%4===0&&e%100!==0}function wki(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(xki[t]||(cTt(e)?29:28))}function Ski(e,t){return t>=1&&t<=(cTt(e)?366:365)}function Aki(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Oki(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function zki(e,t){return t>=0&&t<=59}function Tki(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,M2e(e,t)}function M2e(e,t){return M2e=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},M2e(e,t)}function Eki(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function CQe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rki(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function Iki(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Rki(e,t,n))return!0;e=e.parentNode||e.host}return e}function Pki(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Dki=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function kki(e){return e===void 0&&(e=0),function(){return++e}}var Lki=kki(),C2e,TG={},mpe={},_ki=["touchstart","touchmove"],Nki="ignore-react-onclickoutside";function xQe(e,t){var n={},r=_ki.indexOf(t)!==-1;return r&&C2e&&(n.passive=!e.props.preventDefault),n}function wte(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=(function(o){Tki(a,o);function a(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(u){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(u);return}var d=c.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(u);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(u);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var u=c.getInstance();return typeof u.setClickOutsideRef=="function"?u.setClickOutsideRef():ql.findDOMNode(u)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||mpe[c._uid])){typeof C2e>"u"&&(C2e=Dki()),mpe[c._uid]=!0;var u=c.props.eventTypes;u.forEach||(u=[u]),TG[c._uid]=function(d){if(c.componentNode!==null&&!(c.initTimeStamp>d.timeStamp)&&(c.props.preventDefault&&d.preventDefault(),c.props.stopPropagation&&d.stopPropagation(),!(c.props.excludeScrollbar&&Pki(d)))){var p=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;Iki(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(d)}},u.forEach(function(d){document.addEventListener(d,TG[c._uid],xQe(CQe(c),d))})}},c.disableOnClickOutside=function(){delete mpe[c._uid];var u=TG[c._uid];if(u&&typeof document<"u"){var d=c.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(p){return document.removeEventListener(p,u,xQe(CQe(c),p))}),delete TG[c._uid]}},c.getRef=function(u){return c.instanceRef=u},c._uid=Lki(),c.initTimeStamp=performance.now(),c}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},s.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var c=this.props;c.excludeScrollbar;var u=Eki(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,b.createElement(e,u)},a})(b.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:Nki,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var uTt=b.createContext(),dTt=b.createContext();function Fki(e){var t=e.children,n=b.useState(null),r=n[0],i=n[1],o=b.useRef(!1);b.useEffect(function(){return function(){o.current=!0}},[]);var a=b.useCallback(function(s){o.current||i(s)},[]);return b.createElement(uTt.Provider,{value:r},b.createElement(dTt.Provider,{value:a},t))}var pTt=function(t){return Array.isArray(t)?t[0]:t},hTt=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},x2e=function(t,n){if(typeof t=="function")return hTt(t,n);t!=null&&(t.current=n)},wQe=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},SQe=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,Wki=[],qki=function(t,n,r){r===void 0&&(r={});var i=b.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Wki},a=b.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var g=h.state,m=Object.keys(g.elements);ql.flushSync(function(){l({styles:wQe(m.map(function(v){return[v,g.styles[v]||{}]})),attributes:wQe(m.map(function(v){return[v,g.attributes[v]]}))})})},requires:["computeStyles"]}},[]),u=b.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return gut(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),d=b.useRef();return SQe(function(){d.current&&d.current.setOptions(u)},[u]),SQe(function(){if(!(t==null||n==null)){var p=r.createPopper||ilt,h=p(t,n,u);return d.current=h,function(){h.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Bki=function(){},jki=function(){return Promise.resolve(null)},Hki=[];function Vki(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?Hki:o,s=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,u=e.children,d=b.useContext(uTt),p=b.useState(null),h=p[0],g=p[1],m=b.useState(null),v=m[0],y=m[1];b.useEffect(function(){x2e(c,h)},[c,h]);var M=b.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:v!=null,options:{element:v}}])}},[n,i,l,a,v]),C=qki(s||d,h,M),x=C.state,w=C.styles,S=C.forceUpdate,A=C.update,z=b.useMemo(function(){return{ref:g,style:w.popper,placement:x?x.placement:n,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:w.arrow,ref:y},forceUpdate:S||Bki,update:A||jki}},[g,y,n,x,w,A,S]);return pTt(u)(z)}var vpe,AQe;function Gki(){if(AQe)return vpe;AQe=1;var e=function(){};return vpe=e,vpe}var $ki=Gki();const Uki=qn($ki);function Xki(e){var t=e.children,n=e.innerRef,r=b.useContext(dTt),i=b.useCallback(function(o){x2e(n,o),hTt(r,o)},[n,r]);return b.useEffect(function(){return function(){return x2e(n,null)}},[]),b.useEffect(function(){Uki(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),pTt(t)({ref:i})}function Yki(e,t){if(ur(2,arguments),p1(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Er(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=U0(n,t.month)),t.date!=null&&n.setDate(zo(t.date)),t.hours!=null&&n.setHours(zo(t.hours)),t.minutes!=null&&n.setMinutes(zo(t.minutes)),t.seconds!=null&&n.setSeconds(zo(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(zo(t.milliseconds)),n)}function OQe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,r)}return n}function DY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OQe(Object(n),!0).forEach((function(r){Ze(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OQe(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function w2e(e){return w2e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w2e(e)}function td(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zQe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fTt(r.key),r)}}function nd(e,t,n){return t&&zQe(e.prototype,t),n&&zQe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ze(e,t,n){return(t=fTt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lD(){return lD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lD.apply(this,arguments)}function rd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S2e(e,t)}function kY(e){return kY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kY(e)}function S2e(e,t){return S2e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},S2e(e,t)}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function id(e){var t=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var n,r=kY(e);if(t){var i=kY(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nt(o)})(this,n)}}function c6(e){return(function(t){if(Array.isArray(t))return bpe(t)})(e)||(function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||(function(t,n){if(t){if(typeof t=="string")return bpe(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bpe(t,n)}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function bpe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fTt(e){var t=(function(n,r){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,r);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)})(e,"string");return typeof t=="symbol"?t:String(t)}var TQe=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},EQe=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Kki={p:EQe,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return TQe(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",TQe(i,t)).replace("{{time}}",EQe(o,t))}},tW=12,Qki=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ts(e){var t=e?typeof e=="string"||e instanceof String?pki(e):Er(e):new Date;return HC(t)?t:null}function HC(e,t){return t=t||new Date("1/1/1000"),a6(e)&&!yx(e,t)}function yl(e,t,n){if(n==="en")return fQe(e,t,{awareOfUnicodeTokens:!0});var r=pz(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&dz()&&pz(dz())&&(r=pz(dz())),fQe(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function xv(e,t){var n=t.dateFormat,r=t.locale;return e&&yl(e,Array.isArray(n)?n[0]:n,r)||""}function RQe(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,a=t.second;return l$(s$(sDi(e,a===void 0?0:a),o),r)}function Ob(e,t,n){var r=pz(t||dz());return tTt(e,{locale:r,weekStartsOn:n})}function jx(e){return nTt(e)}function zN(e){return rTt(e)}function IQe(e){return b2e(e)}function PQe(){return Ab(Ts())}function Mx(e,t){return e&&t?gDi(e,t):!e&&!t}function Xg(e,t){return e&&t?fDi(e,t):!e&&!t}function LY(e,t){return e&&t?mDi(e,t):!e&&!t}function Bs(e,t){return e&&t?hDi(e,t):!e&&!t}function EO(e,t){return e&&t?pDi(e,t):!e&&!t}function c$(e,t,n){var r,i=Ab(t),o=y2e(n);try{r=l6(e,{start:i,end:o})}catch{r=!1}return r}function dz(){return(typeof window<"u"?window:globalThis).__localeId__}function pz(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function rTe(e,t){return yl(U0(Ts(),e),"LLLL",t)}function gTt(e,t){return yl(U0(Ts(),e),"LLL",t)}function Ste(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return Ate(e,{minDate:n,maxDate:r})||i&&i.some((function(c){return Bs(e,c)}))||o&&o.some((function(c){var u=c.start,d=c.end;return l6(e,{start:u,end:d})}))||a&&!a.some((function(c){return Bs(e,c)}))||s&&!s.some((function(c){var u=c.start,d=c.end;return l6(e,{start:u,end:d})}))||l&&!l(Ts(e))||!1}function iTe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(i){var o=i.start,a=i.end;return l6(e,{start:o,end:a})})):n&&n.some((function(i){return Bs(e,i)}))||!1}function mTt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return Ate(e,{minDate:nTt(n),maxDate:uDi(r)})||i&&i.some((function(s){return Xg(e,s)}))||o&&!o.some((function(s){return Xg(e,s)}))||a&&!a(Ts(e))||!1}function ype(e,t,n,r){var i=Po(e),o=d0(e),a=Po(t),s=d0(t),l=Po(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function Zki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return Ate(e,{minDate:n,maxDate:r})||i&&i.some((function(s){return LY(e,s)}))||o&&!o.some((function(s){return LY(e,s)}))||a&&!a(Ts(e))||!1}function Mpe(e,t,n){if(!a6(t)||!a6(n))return!1;var r=Po(t),i=Po(n);return r<=e&&i>=e}function vTt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return Ate(s,{minDate:rTt(n),maxDate:dDi(r)})||i&&i.some((function(l){return Mx(s,l)}))||o&&!o.some((function(l){return Mx(s,l)}))||a&&!a(Ts(s))||!1}function Cpe(e,t,n,r){var i=Po(e),o=ZR(e),a=Po(t),s=ZR(t),l=Po(r);return i===a&&i===l?o<=n&&n<=s:i<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i:void 0}function Ate(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&EY(e,n)<0||r&&EY(e,r)>0}function DQe(e,t){return t.some((function(n){return Sb(n)===Sb(e)&&wb(n)===wb(e)}))}function kQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&DQe(e,n)||r&&!DQe(e,r)||i&&!i(e)||!1}function LQe(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Ts(),a=l$(s$(o,wb(e)),Sb(e)),s=l$(s$(o,wb(n)),Sb(n)),l=l$(s$(o,wb(r)),Sb(r));try{i=!l6(a,{start:s,end:l})}catch{i=!1}return i}function _Qe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=sD(e,1);return n&&RY(n,i)>0||r&&r.every((function(o){return RY(o,i)>0}))||!1}function NQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Em(e,1);return n&&RY(i,n)>0||r&&r.every((function(o){return RY(i,o)>0}))||!1}function FQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=s6(e,1);return n&&IY(n,i)>0||r&&r.every((function(o){return IY(o,i)>0}))||!1}function WQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=aD(e,1);return n&&IY(i,n)>0||r&&r.every((function(o){return IY(i,o)>0}))||!1}function bTt(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(i){return EY(i,t)>=0}));return bQe(r)}return n?bQe(n):t}function yTt(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(i){return EY(i,t)<=0}));return yQe(r)}return n?yQe(n):t}function qQe(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(xte(o)){var a=yl(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if(w2e(o)==="object"){var l=Object.keys(o),c=l[0],u=o[l[0]];if(typeof c=="string"&&u.constructor===Array)for(var d=0,p=u.length;d<p;d++){var h=yl(u[d],"MM.dd.yyyy"),g=n.get(h)||[];g.includes(c)||(g.push(c),n.set(h,g))}}}return n}function Jki(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach((function(r){var i=r.date,o=r.holidayName;if(xte(i)){var a=yl(i,"MM.dd.yyyy"),s=n.get(a)||{};if(!("className"in s)||s.className!==t||(l=s.holidayNames,c=[o],l.length!==c.length||!l.every((function(d,p){return d===c[p]})))){var l,c;s.className=t;var u=s.holidayNames;s.holidayNames=u?[].concat(c6(u),[o]):[o],n.set(a,s)}}})),n}function eLi(e,t,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=m2e(JPi(e,Sb(i[s])),wb(i[s])),c=m2e(e,(n+1)*r);bw(l,t)&&yx(l,c)&&a.push(i[s])}return a}function BQe(e){return e<10?"0".concat(e):"".concat(e)}function JR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tW,n=Math.ceil(Po(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function jQe(e){var t=e.getSeconds(),n=e.getMilliseconds();return Er(e.getTime()-1e3*t-n)}function tLi(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=Po(n)<=a),r&&s&&(s=Po(r)>=a),s&&i.push(a)}return i}var nLi=wte((function(e){rd(n,E.Component);var t=id(n);function n(r){var i;td(this,n),Ze(nt(i=t.call(this,r)),"renderOptions",(function(){var l=i.props.year,c=i.state.yearsList.map((function(p){return E.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(nt(i),p),"aria-selected":l===p?"true":void 0},l===p?E.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)})),u=i.props.minDate?Po(i.props.minDate):null,d=i.props.maxDate?Po(i.props.maxDate):null;return d&&i.state.yearsList.find((function(p){return p===d}))||c.unshift(E.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},E.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),u&&i.state.yearsList.find((function(p){return p===u}))||c.push(E.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},E.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c})),Ze(nt(i),"onChange",(function(l){i.props.onChange(l)})),Ze(nt(i),"handleClickOutside",(function(){i.props.onCancel()})),Ze(nt(i),"shiftYears",(function(l){var c=i.state.yearsList.map((function(u){return u+l}));i.setState({yearsList:c})})),Ze(nt(i),"incrementYears",(function(){return i.shiftYears(1)})),Ze(nt(i),"decrementYears",(function(){return i.shiftYears(-1)}));var o=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:tLi(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=b.createRef(),i}return nd(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,o=i?i.find((function(a){return a.ariaSelected})):null;r.scrollTop=o?o.offsetTop+(o.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=xd({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return E.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n})()),rLi=(function(e){rd(n,E.Component);var t=id(n);function n(){var r;td(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),Ze(nt(r),"renderSelectOptions",(function(){for(var s=r.props.minDate?Po(r.props.minDate):1900,l=r.props.maxDate?Po(r.props.maxDate):2100,c=[],u=s;u<=l;u++)c.push(E.createElement("option",{key:u,value:u},u));return c})),Ze(nt(r),"onSelectChange",(function(s){r.onChange(s.target.value)})),Ze(nt(r),"renderSelectMode",(function(){return E.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())})),Ze(nt(r),"renderReadView",(function(s){return E.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return r.toggleDropdown(l)}},E.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),E.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))})),Ze(nt(r),"renderDropdown",(function(){return E.createElement(nLi,{key:"dropdown",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),Ze(nt(r),"renderScrollMode",(function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l})),Ze(nt(r),"onChange",(function(s){r.toggleDropdown(),s!==r.props.year&&r.props.onChange(s)})),Ze(nt(r),"toggleDropdown",(function(s){r.setState({dropdownVisible:!r.state.dropdownVisible},(function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,s)}))})),Ze(nt(r),"handleYearChange",(function(s,l){r.onSelect(s,l),r.setOpen()})),Ze(nt(r),"onSelect",(function(s,l){r.props.onSelect&&r.props.onSelect(s,l)})),Ze(nt(r),"setOpen",(function(){r.props.setOpen&&r.props.setOpen(!0)})),r}return nd(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return E.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n})(),iLi=wte((function(e){rd(n,E.Component);var t=id(n);function n(){var r;td(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"isSelectedMonth",(function(s){return r.props.month===s})),Ze(nt(r),"renderOptions",(function(){return r.props.monthNames.map((function(s,l){return E.createElement("div",{className:r.isSelectedMonth(l)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:s,onClick:r.onChange.bind(nt(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?E.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)}))})),Ze(nt(r),"onChange",(function(s){return r.props.onChange(s)})),Ze(nt(r),"handleClickOutside",(function(){return r.props.onCancel()})),r}return nd(n,[{key:"render",value:function(){return E.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n})()),oLi=(function(e){rd(n,E.Component);var t=id(n);function n(){var r;td(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),Ze(nt(r),"renderSelectOptions",(function(s){return s.map((function(l,c){return E.createElement("option",{key:c,value:c},l)}))})),Ze(nt(r),"renderSelectMode",(function(s){return E.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(l){return r.onChange(l.target.value)}},r.renderSelectOptions(s))})),Ze(nt(r),"renderReadView",(function(s,l){return E.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},E.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),E.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},l[r.props.month]))})),Ze(nt(r),"renderDropdown",(function(s){return E.createElement(iLi,{key:"dropdown",month:r.props.month,monthNames:s,onChange:r.onChange,onCancel:r.toggleDropdown})})),Ze(nt(r),"renderScrollMode",(function(s){var l=r.state.dropdownVisible,c=[r.renderReadView(!l,s)];return l&&c.unshift(r.renderDropdown(s)),c})),Ze(nt(r),"onChange",(function(s){r.toggleDropdown(),s!==r.props.month&&r.props.onChange(s)})),Ze(nt(r),"toggleDropdown",(function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})})),r}return nd(n,[{key:"render",value:function(){var r,i=this,o=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return gTt(a,i.props.locale)}:function(a){return rTe(a,i.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return E.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n})();function aLi(e,t){for(var n=[],r=jx(e),i=jx(t);!bw(r,i);)n.push(Ts(r)),r=Em(r,1);return n}var sLi=wte((function(e){rd(n,E.Component);var t=id(n);function n(r){var i;return td(this,n),Ze(nt(i=t.call(this,r)),"renderOptions",(function(){return i.state.monthYearsList.map((function(o){var a=v2e(o),s=Mx(i.props.date,o)&&Xg(i.props.date,o);return E.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:i.onChange.bind(nt(i),a),"aria-selected":s?"true":void 0},s?E.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",yl(o,i.props.dateFormat,i.props.locale))}))})),Ze(nt(i),"onChange",(function(o){return i.props.onChange(o)})),Ze(nt(i),"handleClickOutside",(function(){i.props.onCancel()})),i.state={monthYearsList:aLi(i.props.minDate,i.props.maxDate)},i}return nd(n,[{key:"render",value:function(){var r=xd({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return E.createElement("div",{className:r},this.renderOptions())}}]),n})()),lLi=(function(e){rd(n,E.Component);var t=id(n);function n(){var r;td(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),Ze(nt(r),"renderSelectOptions",(function(){for(var s=jx(r.props.minDate),l=jx(r.props.maxDate),c=[];!bw(s,l);){var u=v2e(s);c.push(E.createElement("option",{key:u,value:u},yl(s,r.props.dateFormat,r.props.locale))),s=Em(s,1)}return c})),Ze(nt(r),"onSelectChange",(function(s){r.onChange(s.target.value)})),Ze(nt(r),"renderSelectMode",(function(){return E.createElement("select",{value:v2e(jx(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())})),Ze(nt(r),"renderReadView",(function(s){var l=yl(r.props.date,r.props.dateFormat,r.props.locale);return E.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return r.toggleDropdown(c)}},E.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),E.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},l))})),Ze(nt(r),"renderDropdown",(function(){return E.createElement(sLi,{key:"dropdown",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,locale:r.props.locale})})),Ze(nt(r),"renderScrollMode",(function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l})),Ze(nt(r),"onChange",(function(s){r.toggleDropdown();var l=Ts(parseInt(s));Mx(r.props.date,l)&&Xg(r.props.date,l)||r.props.onChange(l)})),Ze(nt(r),"toggleDropdown",(function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})})),r}return nd(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return E.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n})(),cLi=(function(e){rd(n,E.Component);var t=id(n);function n(){var r;td(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"dayEl",E.createRef()),Ze(nt(r),"handleClick",(function(s){!r.isDisabled()&&r.props.onClick&&r.props.onClick(s)})),Ze(nt(r),"handleMouseEnter",(function(s){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(s)})),Ze(nt(r),"handleOnKeyDown",(function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)})),Ze(nt(r),"isSameDay",(function(s){return Bs(r.props.day,s)})),Ze(nt(r),"isKeyboardSelected",(function(){return!r.props.disabledKeyboardNavigation&&!(r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected))&&(r.isSameDay(r.props.preSelection)||r.isSameWeek(r.props.preSelection))})),Ze(nt(r),"isDisabled",(function(){return Ste(r.props.day,r.props)})),Ze(nt(r),"isExcluded",(function(){return iTe(r.props.day,r.props)})),Ze(nt(r),"isStartOfWeek",(function(){return Bs(r.props.day,Ob(r.props.day,r.props.locale,r.props.calendarStartDay))})),Ze(nt(r),"isSameWeek",(function(s){return r.props.showWeekPicker&&Bs(s,Ob(r.props.day,r.props.locale,r.props.calendarStartDay))})),Ze(nt(r),"getHighLightedClass",(function(){var s=r.props,l=s.day,c=s.highlightDates;if(!c)return!1;var u=yl(l,"MM.dd.yyyy");return c.get(u)})),Ze(nt(r),"getHolidaysClass",(function(){var s=r.props,l=s.day,c=s.holidays;if(!c)return!1;var u=yl(l,"MM.dd.yyyy");return c.has(u)?[c.get(u).className]:void 0})),Ze(nt(r),"isInRange",(function(){var s=r.props,l=s.day,c=s.startDate,u=s.endDate;return!(!c||!u)&&c$(l,c,u)})),Ze(nt(r),"isInSelectingRange",(function(){var s,l=r.props,c=l.day,u=l.selectsStart,d=l.selectsEnd,p=l.selectsRange,h=l.selectsDisabledDaysInRange,g=l.startDate,m=l.endDate,v=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return!(!(u||d||p)||!v||!h&&r.isDisabled())&&(u&&m&&(yx(v,m)||EO(v,m))?c$(c,v,m):(d&&g&&(bw(v,g)||EO(v,g))||!(!p||!g||m||!bw(v,g)&&!EO(v,g)))&&c$(c,g,v))})),Ze(nt(r),"isSelectingRangeStart",(function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,u=l.startDate,d=l.selectsStart,p=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return Bs(c,d?p:u)})),Ze(nt(r),"isSelectingRangeEnd",(function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,u=l.endDate,d=l.selectsEnd,p=l.selectsRange,h=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return Bs(c,d||p?h:u)})),Ze(nt(r),"isRangeStart",(function(){var s=r.props,l=s.day,c=s.startDate,u=s.endDate;return!(!c||!u)&&Bs(c,l)})),Ze(nt(r),"isRangeEnd",(function(){var s=r.props,l=s.day,c=s.startDate,u=s.endDate;return!(!c||!u)&&Bs(u,l)})),Ze(nt(r),"isWeekend",(function(){var s=nDi(r.props.day);return s===0||s===6})),Ze(nt(r),"isAfterMonth",(function(){return r.props.month!==void 0&&(r.props.month+1)%12===d0(r.props.day)})),Ze(nt(r),"isBeforeMonth",(function(){return r.props.month!==void 0&&(d0(r.props.day)+1)%12===r.props.month})),Ze(nt(r),"isCurrentDay",(function(){return r.isSameDay(Ts())})),Ze(nt(r),"isSelected",(function(){return r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected)})),Ze(nt(r),"getClassNames",(function(s){var l,c=r.props.dayClassName?r.props.dayClassName(s):void 0;return xd("react-datepicker__day",c,"react-datepicker__day--"+yl(r.props.day,"ddd",l),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"),r.getHolidaysClass())})),Ze(nt(r),"getAriaLabel",(function(){var s=r.props,l=s.day,c=s.ariaLabelPrefixWhenEnabled,u=c===void 0?"Choose":c,d=s.ariaLabelPrefixWhenDisabled,p=d===void 0?"Not available":d,h=r.isDisabled()||r.isExcluded()?p:u;return"".concat(h," ").concat(yl(l,"PPPP",r.props.locale))})),Ze(nt(r),"getTitle",(function(){var s=r.props,l=s.day,c=s.holidays,u=c===void 0?new Map:c,d=yl(l,"MM.dd.yyyy");return u.has(d)&&u.get(d).holidayNames.length>0?u.get(d).holidayNames.join(", "):""})),Ze(nt(r),"getTabIndex",(function(s,l){var c=s||r.props.selected,u=l||r.props.preSelection;return(!r.props.showWeekPicker||!r.props.showWeekNumber&&r.isStartOfWeek())&&(r.isKeyboardSelected()||r.isSameDay(c)&&Bs(u,c))?0:-1})),Ze(nt(r),"handleFocusDay",(function(){var s,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=!1;r.getTabIndex()===0&&!l.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(c=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(c=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(c=!0),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(c=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(c=!1)),c&&((s=r.dayEl.current)===null||s===void 0||s.focus({preventScroll:!0}))})),Ze(nt(r),"renderDayContents",(function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(vQe(r.props.day),r.props.day):vQe(r.props.day)})),Ze(nt(r),"render",(function(){return E.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),r.getTitle()!==""&&E.createElement("span",{className:"holiday-overlay"},r.getTitle()))})),r}return nd(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n})(),uLi=(function(e){rd(n,E.Component);var t=id(n);function n(){var r;td(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"weekNumberEl",E.createRef()),Ze(nt(r),"handleClick",(function(s){r.props.onClick&&r.props.onClick(s)})),Ze(nt(r),"handleOnKeyDown",(function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)})),Ze(nt(r),"isKeyboardSelected",(function(){return!r.props.disabledKeyboardNavigation&&!Bs(r.props.date,r.props.selected)&&Bs(r.props.date,r.props.preSelection)})),Ze(nt(r),"getTabIndex",(function(){return r.props.showWeekPicker&&r.props.showWeekNumber&&(r.isKeyboardSelected()||Bs(r.props.date,r.props.selected)&&Bs(r.props.preSelection,r.props.selected))?0:-1})),Ze(nt(r),"handleFocusWeekNumber",(function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!s.isInputFocused&&Bs(r.props.date,r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(l=!0)),l&&r.weekNumberEl.current&&r.weekNumberEl.current.focus({preventScroll:!0})})),r}return nd(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(r){this.handleFocusWeekNumber(r)}},{key:"render",value:function(){var r=this.props,i=r.weekNumber,o=r.ariaLabelPrefix,a=o===void 0?"week ":o,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick,"react-datepicker__week-number--selected":Bs(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return E.createElement("div",{ref:this.weekNumberEl,className:xd(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},i)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n})(),dLi=(function(e){rd(n,E.Component);var t=id(n);function n(){var r;td(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"handleDayClick",(function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l)})),Ze(nt(r),"handleDayMouseEnter",(function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)})),Ze(nt(r),"handleWeekClick",(function(s,l,c){if(typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(s,l,c),r.props.showWeekPicker){var u=Ob(s,r.props.locale,r.props.calendarStartDay);r.handleDayClick(u,c)}r.props.shouldCloseOnSelect&&r.props.setOpen(!1)})),Ze(nt(r),"formatWeekNumber",(function(s){return r.props.formatWeekNumber?r.props.formatWeekNumber(s):(function(l,c){var u=dz()&&pz(dz());return aDi(l,u?{locale:u}:null)})(s)})),Ze(nt(r),"renderDays",(function(){var s=Ob(r.props.day,r.props.locale,r.props.calendarStartDay),l=[],c=r.formatWeekNumber(s);if(r.props.showWeekNumber){var u=r.props.onWeekSelect||r.props.showWeekPicker?r.handleWeekClick.bind(nt(r),s,c):void 0;l.push(E.createElement(uLi,{key:"W",weekNumber:c,date:s,onClick:u,selected:r.props.selected,preSelection:r.props.preSelection,ariaLabelPrefix:r.props.ariaLabelPrefix,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef}))}return l.concat([0,1,2,3,4,5,6].map((function(d){var p=Pk(s,d);return E.createElement(cLi,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(nt(r),p),onMouseEnter:r.handleDayMouseEnter.bind(nt(r),p),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart,locale:r.props.locale})})))})),Ze(nt(r),"startOfWeek",(function(){return Ob(r.props.day,r.props.locale,r.props.calendarStartDay)})),Ze(nt(r),"isKeyboardSelected",(function(){return!r.props.disabledKeyboardNavigation&&!Bs(r.startOfWeek(),r.props.selected)&&Bs(r.startOfWeek(),r.props.preSelection)})),r}return nd(n,[{key:"render",value:function(){var r={"react-datepicker__week":!0,"react-datepicker__week--selected":Bs(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return E.createElement("div",{className:xd(r)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n})(),MTt="two_columns",CTt="three_columns",xTt="four_columns",xpe=Ze(Ze(Ze({},MTt,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),CTt,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),xTt,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function HQe(e,t){return e?xTt:t?MTt:CTt}var pLi=(function(e){rd(n,E.Component);var t=id(n);function n(){var r;td(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"MONTH_REFS",c6(Array(12)).map((function(){return E.createRef()}))),Ze(nt(r),"QUARTER_REFS",c6(Array(4)).map((function(){return E.createRef()}))),Ze(nt(r),"isDisabled",(function(s){return Ste(s,r.props)})),Ze(nt(r),"isExcluded",(function(s){return iTe(s,r.props)})),Ze(nt(r),"handleDayClick",(function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l,r.props.orderInDisplay)})),Ze(nt(r),"handleDayMouseEnter",(function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)})),Ze(nt(r),"handleMouseLeave",(function(){r.props.onMouseLeave&&r.props.onMouseLeave()})),Ze(nt(r),"isRangeStartMonth",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&Xg(U0(c,s),u)})),Ze(nt(r),"isRangeStartQuarter",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&LY(cR(c,s),u)})),Ze(nt(r),"isRangeEndMonth",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&Xg(U0(c,s),d)})),Ze(nt(r),"isRangeEndQuarter",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate;return!(!u||!d)&&LY(cR(c,s),d)})),Ze(nt(r),"isInSelectingRangeMonth",(function(s){var l,c=r.props,u=c.day,d=c.selectsStart,p=c.selectsEnd,h=c.selectsRange,g=c.startDate,m=c.endDate,v=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(d||p||h)||!v)&&(d&&m?ype(v,m,s,u):(p&&g||!(!h||!g||m))&&ype(g,v,s,u))})),Ze(nt(r),"isSelectingMonthRangeStart",(function(s){var l;if(!r.isInSelectingRangeMonth(s))return!1;var c=r.props,u=c.day,d=c.startDate,p=c.selectsStart,h=U0(u,s),g=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return Xg(h,p?g:d)})),Ze(nt(r),"isSelectingMonthRangeEnd",(function(s){var l;if(!r.isInSelectingRangeMonth(s))return!1;var c=r.props,u=c.day,d=c.endDate,p=c.selectsEnd,h=c.selectsRange,g=U0(u,s),m=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return Xg(g,p||h?m:d)})),Ze(nt(r),"isInSelectingRangeQuarter",(function(s){var l,c=r.props,u=c.day,d=c.selectsStart,p=c.selectsEnd,h=c.selectsRange,g=c.startDate,m=c.endDate,v=(l=r.props.selectingDate)!==null&&l!==void 0?l:r.props.preSelection;return!(!(d||p||h)||!v)&&(d&&m?Cpe(v,m,s,u):(p&&g||!(!h||!g||m))&&Cpe(g,v,s,u))})),Ze(nt(r),"isWeekInMonth",(function(s){var l=r.props.day,c=Pk(s,6);return Xg(s,l)||Xg(c,l)})),Ze(nt(r),"isCurrentMonth",(function(s,l){return Po(s)===Po(Ts())&&l===d0(Ts())})),Ze(nt(r),"isCurrentQuarter",(function(s,l){return Po(s)===Po(Ts())&&l===ZR(Ts())})),Ze(nt(r),"isSelectedMonth",(function(s,l,c){return d0(c)===l&&Po(s)===Po(c)})),Ze(nt(r),"isSelectedQuarter",(function(s,l,c){return ZR(s)===l&&Po(s)===Po(c)})),Ze(nt(r),"renderWeeks",(function(){for(var s=[],l=r.props.fixedHeight,c=0,u=!1,d=Ob(jx(r.props.day),r.props.locale,r.props.calendarStartDay);s.push(E.createElement(dLi,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:c,day:d,month:d0(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumber:r.props.showWeekNumbers,showWeekPicker:r.props.showWeekPicker,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,calendarStartDay:r.props.calendarStartDay,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart})),!u;){c++,d=zY(d,1);var p=l&&c>=6,h=!l&&!r.isWeekInMonth(d);if(p||h){if(!r.props.peekNextMonth)break;u=!0}}return s})),Ze(nt(r),"onMonthClick",(function(s,l){r.handleDayClick(jx(U0(r.props.day,l)),s)})),Ze(nt(r),"onMonthMouseEnter",(function(s){r.handleDayMouseEnter(jx(U0(r.props.day,s)))})),Ze(nt(r),"handleMonthNavigation",(function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())})),Ze(nt(r),"onMonthKeyDown",(function(s,l){var c=r.props,u=c.selected,d=c.preSelection,p=c.disabledKeyboardNavigation,h=c.showTwoColumnMonthYearPicker,g=c.showFourColumnMonthYearPicker,m=c.setPreSelection,v=s.key;if(v!=="Tab"&&s.preventDefault(),!p){var y=HQe(g,h),M=xpe[y].verticalNavigationOffset,C=xpe[y].grid;switch(v){case"Enter":r.onMonthClick(s,l),m(u);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,Em(d,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,sD(d,1));break;case"ArrowUp":r.handleMonthNavigation(C[0].includes(l)?l+12-M:l-M,sD(d,M));break;case"ArrowDown":r.handleMonthNavigation(C[C.length-1].includes(l)?l-12+M:l+M,Em(d,M))}}})),Ze(nt(r),"onQuarterClick",(function(s,l){r.handleDayClick(IQe(cR(r.props.day,l)),s)})),Ze(nt(r),"onQuarterMouseEnter",(function(s){r.handleDayMouseEnter(IQe(cR(r.props.day,s)))})),Ze(nt(r),"handleQuarterNavigation",(function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.QUARTER_REFS[s-1].current&&r.QUARTER_REFS[s-1].current.focus())})),Ze(nt(r),"onQuarterKeyDown",(function(s,l){var c=s.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onQuarterClick(s,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(l===4?1:l+1,eTt(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(l===1?4:l-1,tDi(r.props.preSelection,1))}})),Ze(nt(r),"getMonthClassNames",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate,p=l.selected,h=l.minDate,g=l.maxDate,m=l.preSelection,v=l.monthClassName,y=l.excludeDates,M=l.includeDates,C=v?v(U0(c,s)):void 0,x=U0(c,s);return xd("react-datepicker__month-text","react-datepicker__month-".concat(s),C,{"react-datepicker__month-text--disabled":(h||g||y||M)&&mTt(x,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(c,s,p),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&d0(m)===s,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":ype(u,d,s,c),"react-datepicker__month-text--range-start":r.isRangeStartMonth(s),"react-datepicker__month-text--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":r.isCurrentMonth(c,s)})})),Ze(nt(r),"getTabIndex",(function(s){var l=d0(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"})),Ze(nt(r),"getQuarterTabIndex",(function(s){var l=ZR(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"})),Ze(nt(r),"getAriaLabel",(function(s){var l=r.props,c=l.chooseDayAriaLabelPrefix,u=c===void 0?"Choose":c,d=l.disabledDayAriaLabelPrefix,p=d===void 0?"Not available":d,h=l.day,g=U0(h,s),m=r.isDisabled(g)||r.isExcluded(g)?p:u;return"".concat(m," ").concat(yl(g,"MMMM yyyy"))})),Ze(nt(r),"getQuarterClassNames",(function(s){var l=r.props,c=l.day,u=l.startDate,d=l.endDate,p=l.selected,h=l.minDate,g=l.maxDate,m=l.preSelection,v=l.disabledKeyboardNavigation;return xd("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(h||g)&&Zki(cR(c,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(c,s,p),"react-datepicker__quarter-text--keyboard-selected":!v&&ZR(m)===s,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":Cpe(u,d,s,c),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(s)})})),Ze(nt(r),"getMonthContent",(function(s){var l=r.props,c=l.showFullMonthYearPicker,u=l.renderMonthContent,d=l.locale,p=l.day,h=gTt(s,d),g=rTe(s,d);return u?u(s,h,g,p):c?g:h})),Ze(nt(r),"getQuarterContent",(function(s){var l=r.props,c=l.renderQuarterContent,u=(function(d,p){return yl(cR(Ts(),d),"QQQ",p)})(s,l.locale);return c?c(s,u):u})),Ze(nt(r),"renderMonths",(function(){var s=r.props,l=s.showTwoColumnMonthYearPicker,c=s.showFourColumnMonthYearPicker,u=s.day,d=s.selected;return xpe[HQe(c,l)].grid.map((function(p,h){return E.createElement("div",{className:"react-datepicker__month-wrapper",key:h},p.map((function(g,m){return E.createElement("div",{ref:r.MONTH_REFS[g],key:m,onClick:function(v){r.onMonthClick(v,g)},onKeyDown:function(v){r.onMonthKeyDown(v,g)},onMouseEnter:function(){return r.onMonthMouseEnter(g)},tabIndex:r.getTabIndex(g),className:r.getMonthClassNames(g),role:"option","aria-label":r.getAriaLabel(g),"aria-current":r.isCurrentMonth(u,g)?"date":void 0,"aria-selected":r.isSelectedMonth(u,g,d)},r.getMonthContent(g))})))}))})),Ze(nt(r),"renderQuarters",(function(){var s=r.props,l=s.day,c=s.selected;return E.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(u,d){return E.createElement("div",{key:d,ref:r.QUARTER_REFS[d],role:"option",onClick:function(p){r.onQuarterClick(p,u)},onKeyDown:function(p){r.onQuarterKeyDown(p,u)},onMouseEnter:function(){return r.onQuarterMouseEnter(u)},className:r.getQuarterClassNames(u),"aria-selected":r.isSelectedQuarter(l,u,c),tabIndex:r.getQuarterTabIndex(u),"aria-current":r.isCurrentQuarter(l,u)?"date":void 0},r.getQuarterContent(u))})))})),Ze(nt(r),"getClassNames",(function(){var s=r.props,l=s.selectingDate,c=s.selectsStart,u=s.selectsEnd,d=s.showMonthYearPicker,p=s.showQuarterYearPicker,h=s.showWeekPicker;return xd("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||u)},{"react-datepicker__monthPicker":d},{"react-datepicker__quarterPicker":p},{"react-datepicker__weekPicker":h})})),r}return nd(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,a=r.day,s=r.ariaLabelPrefix,l=s===void 0?"month ":s;return E.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(yl(a,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n})(),wTt=(function(e){rd(n,E.Component);var t=id(n);function n(){var r;td(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Ze(nt(r=t.call.apply(t,[this].concat(o))),"state",{height:null}),Ze(nt(r),"scrollToTheSelectedTime",(function(){requestAnimationFrame((function(){r.list&&(r.list.scrollTop=r.centerLi&&n.calcCenterPosition(r.props.monthRef?r.props.monthRef.clientHeight-r.header.clientHeight:r.list.clientHeight,r.centerLi))}))})),Ze(nt(r),"handleClick",(function(s){(r.props.minTime||r.props.maxTime)&&LQe(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&kQe(s,r.props)||r.props.onChange(s)})),Ze(nt(r),"isSelectedTime",(function(s){return r.props.selected&&(l=r.props.selected,c=s,jQe(l).getTime()===jQe(c).getTime());var l,c})),Ze(nt(r),"isDisabledTime",(function(s){return(r.props.minTime||r.props.maxTime)&&LQe(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&kQe(s,r.props)})),Ze(nt(r),"liClasses",(function(s){var l=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(s):void 0];return r.isSelectedTime(s)&&l.push("react-datepicker__time-list-item--selected"),r.isDisabledTime(s)&&l.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Sb(s)+wb(s))%r.props.intervals!=0&&l.push("react-datepicker__time-list-item--injected"),l.join(" ")})),Ze(nt(r),"handleOnKeyDown",(function(s,l){s.key===" "&&(s.preventDefault(),s.key="Enter"),s.key!=="ArrowUp"&&s.key!=="ArrowLeft"||!s.target.previousSibling||(s.preventDefault(),s.target.previousSibling.focus()),s.key!=="ArrowDown"&&s.key!=="ArrowRight"||!s.target.nextSibling||(s.preventDefault(),s.target.nextSibling.focus()),s.key==="Enter"&&r.handleClick(l),r.props.handleOnKeyDown(s)})),Ze(nt(r),"renderTimes",(function(){for(var s=[],l=r.props.format?r.props.format:"p",c=r.props.intervals,u=r.props.selected||r.props.openToDate||Ts(),d=Ab(u),p=r.props.injectTimes&&r.props.injectTimes.sort((function(C,x){return C-x})),h=60*(function(C){var x=new Date(C.getFullYear(),C.getMonth(),C.getDate()),w=new Date(C.getFullYear(),C.getMonth(),C.getDate(),24);return Math.round((+w-+x)/36e5)})(u),g=h/c,m=0;m<g;m++){var v=m2e(d,m*c);if(s.push(v),p){var y=eLi(d,v,m,c,p);s=s.concat(y)}}var M=s.reduce((function(C,x){return x.getTime()<=u.getTime()?x:C}),s[0]);return s.map((function(C,x){return E.createElement("li",{key:x,onClick:r.handleClick.bind(nt(r),C),className:r.liClasses(C),ref:function(w){C===M&&(r.centerLi=w)},onKeyDown:function(w){r.handleOnKeyDown(w,C)},tabIndex:C===M?0:-1,role:"option","aria-selected":r.isSelectedTime(C)?"true":void 0,"aria-disabled":r.isDisabledTime(C)?"true":void 0},yl(C,l,r.props.locale))}))})),r}return nd(n,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var r=this,i=this.state.height;return E.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},E.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(o){r.header=o}},E.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),E.createElement("div",{className:"react-datepicker__time"},E.createElement("div",{className:"react-datepicker__time-box"},E.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){r.list=o},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n})();Ze(wTt,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var hLi=(function(e){rd(n,E.Component);var t=id(n);function n(r){var i;return td(this,n),Ze(nt(i=t.call(this,r)),"YEAR_REFS",c6(Array(i.props.yearItemNumber)).map((function(){return E.createRef()}))),Ze(nt(i),"isDisabled",(function(o){return Ste(o,i.props)})),Ze(nt(i),"isExcluded",(function(o){return iTe(o,i.props)})),Ze(nt(i),"selectingDate",(function(){var o;return(o=i.props.selectingDate)!==null&&o!==void 0?o:i.props.preSelection})),Ze(nt(i),"updateFocusOnPaginate",(function(o){var a=(function(){this.YEAR_REFS[o].current.focus()}).bind(nt(i));window.requestAnimationFrame(a)})),Ze(nt(i),"handleYearClick",(function(o,a){i.props.onDayClick&&i.props.onDayClick(o,a)})),Ze(nt(i),"handleYearNavigation",(function(o,a){var s=i.props,l=s.date,c=s.yearItemNumber,u=JR(l,c).startPeriod;i.isDisabled(a)||i.isExcluded(a)||(i.props.setPreSelection(a),o-u==-1?i.updateFocusOnPaginate(c-1):o-u===c?i.updateFocusOnPaginate(0):i.YEAR_REFS[o-u].current.focus())})),Ze(nt(i),"isSameDay",(function(o,a){return Bs(o,a)})),Ze(nt(i),"isCurrentYear",(function(o){return o===Po(Ts())})),Ze(nt(i),"isRangeStart",(function(o){return i.props.startDate&&i.props.endDate&&Mx(uy(Ts(),o),i.props.startDate)})),Ze(nt(i),"isRangeEnd",(function(o){return i.props.startDate&&i.props.endDate&&Mx(uy(Ts(),o),i.props.endDate)})),Ze(nt(i),"isInRange",(function(o){return Mpe(o,i.props.startDate,i.props.endDate)})),Ze(nt(i),"isInSelectingRange",(function(o){var a=i.props,s=a.selectsStart,l=a.selectsEnd,c=a.selectsRange,u=a.startDate,d=a.endDate;return!(!(s||l||c)||!i.selectingDate())&&(s&&d?Mpe(o,i.selectingDate(),d):(l&&u||!(!c||!u||d))&&Mpe(o,u,i.selectingDate()))})),Ze(nt(i),"isSelectingRangeStart",(function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.startDate,l=a.selectsStart,c=uy(Ts(),o);return Mx(c,l?i.selectingDate():s)})),Ze(nt(i),"isSelectingRangeEnd",(function(o){if(!i.isInSelectingRange(o))return!1;var a=i.props,s=a.endDate,l=a.selectsEnd,c=a.selectsRange,u=uy(Ts(),o);return Mx(u,l||c?i.selectingDate():s)})),Ze(nt(i),"isKeyboardSelected",(function(o){var a=zN(uy(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!Bs(a,zN(i.props.selected))&&Bs(a,zN(i.props.preSelection))})),Ze(nt(i),"onYearClick",(function(o,a){var s=i.props.date;i.handleYearClick(zN(uy(s,a)),o)})),Ze(nt(i),"onYearKeyDown",(function(o,a){var s=o.key;if(!i.props.disabledKeyboardNavigation)switch(s){case"Enter":i.onYearClick(o,a),i.props.setPreSelection(i.props.selected);break;case"ArrowRight":i.handleYearNavigation(a+1,aD(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(a-1,s6(i.props.preSelection,1))}})),Ze(nt(i),"getYearClassNames",(function(o){var a=i.props,s=a.minDate,l=a.maxDate,c=a.selected,u=a.excludeDates,d=a.includeDates,p=a.filterDate;return xd("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===Po(c),"react-datepicker__year-text--disabled":(s||l||u||d||p)&&vTt(o,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(o),"react-datepicker__year-text--range-start":i.isRangeStart(o),"react-datepicker__year-text--range-end":i.isRangeEnd(o),"react-datepicker__year-text--in-range":i.isInRange(o),"react-datepicker__year-text--in-selecting-range":i.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":i.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":i.isSelectingRangeEnd(o),"react-datepicker__year-text--today":i.isCurrentYear(o)})})),Ze(nt(i),"getYearTabIndex",(function(o){return i.props.disabledKeyboardNavigation?"-1":o===Po(i.props.preSelection)?"0":"-1"})),Ze(nt(i),"getYearContainerClassNames",(function(){var o=i.props,a=o.selectingDate,s=o.selectsStart,l=o.selectsEnd,c=o.selectsRange;return xd("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(s||l||c)})})),Ze(nt(i),"getYearContent",(function(o){return i.props.renderYearContent?i.props.renderYearContent(o):o})),i}return nd(n,[{key:"render",value:function(){for(var r=this,i=[],o=this.props,a=o.date,s=o.yearItemNumber,l=o.onYearMouseEnter,c=o.onYearMouseLeave,u=JR(a,s),d=u.startPeriod,p=u.endPeriod,h=function(m){i.push(E.createElement("div",{ref:r.YEAR_REFS[m-d],onClick:function(v){r.onYearClick(v,m)},onKeyDown:function(v){r.onYearKeyDown(v,m)},tabIndex:r.getYearTabIndex(m),className:r.getYearClassNames(m),onMouseEnter:function(v){return l(v,m)},onMouseLeave:function(v){return c(v,m)},key:m,"aria-current":r.isCurrentYear(m)?"date":void 0},r.getYearContent(m)))},g=d;g<=p;g++)h(g);return E.createElement("div",{className:this.getYearContainerClassNames()},E.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},i))}}]),n})(),fLi=(function(e){rd(n,E.Component);var t=id(n);function n(r){var i;return td(this,n),Ze(nt(i=t.call(this,r)),"onTimeChange",(function(o){i.setState({time:o});var a=i.props.date,s=a instanceof Date&&!isNaN(a)?a:new Date;s.setHours(o.split(":")[0]),s.setMinutes(o.split(":")[1]),i.props.onChange(s)})),Ze(nt(i),"renderTimeInput",(function(){var o=i.state.time,a=i.props,s=a.date,l=a.timeString,c=a.customTimeInput;return c?E.cloneElement(c,{date:s,value:o,onChange:i.onTimeChange}):E.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(u){i.onTimeChange(u.target.value||l)}})})),i.state={time:i.props.timeString},i}return nd(n,[{key:"render",value:function(){return E.createElement("div",{className:"react-datepicker__input-time-container"},E.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),E.createElement("div",{className:"react-datepicker-time__input-container"},E.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.timeString!==i.time?{time:r.timeString}:null}}]),n})();function gLi(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=i===void 0?{}:i;return E.createElement("div",{className:t},r&&E.createElement("div",lD({className:"react-datepicker__triangle"},o)),n)}var mLi=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],vLi=(function(e){rd(n,E.Component);var t=id(n);function n(r){var i;return td(this,n),Ze(nt(i=t.call(this,r)),"handleClickOutside",(function(o){i.props.onClickOutside(o)})),Ze(nt(i),"setClickOutsideRef",(function(){return i.containerRef.current})),Ze(nt(i),"handleDropdownFocus",(function(o){(function(){var a=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return mLi.some((function(s){return a.indexOf(s)>=0}))})(o.target)&&i.props.onDropdownFocus()})),Ze(nt(i),"getDateInView",(function(){var o=i.props,a=o.preSelection,s=o.selected,l=o.openToDate,c=bTt(i.props),u=yTt(i.props),d=Ts(),p=l||s||a;return p||(c&&yx(d,c)?c:u&&bw(d,u)?u:d)})),Ze(nt(i),"increaseMonth",(function(){i.setState((function(o){var a=o.date;return{date:Em(a,1)}}),(function(){return i.handleMonthChange(i.state.date)}))})),Ze(nt(i),"decreaseMonth",(function(){i.setState((function(o){var a=o.date;return{date:sD(a,1)}}),(function(){return i.handleMonthChange(i.state.date)}))})),Ze(nt(i),"handleDayClick",(function(o,a,s){i.props.onSelect(o,a,s),i.props.setPreSelection&&i.props.setPreSelection(o)})),Ze(nt(i),"handleDayMouseEnter",(function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)})),Ze(nt(i),"handleMonthMouseLeave",(function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()})),Ze(nt(i),"handleYearMouseEnter",(function(o,a){i.setState({selectingDate:uy(Ts(),a)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(o,a)})),Ze(nt(i),"handleYearMouseLeave",(function(o,a){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(o,a)})),Ze(nt(i),"handleYearChange",(function(o){i.props.onYearChange&&(i.props.onYearChange(o),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)})),Ze(nt(i),"handleMonthChange",(function(o){i.handleCustomMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)})),Ze(nt(i),"handleCustomMonthChange",(function(o){i.props.onMonthChange&&(i.props.onMonthChange(o),i.setState({isRenderAriaLiveMessage:!0}))})),Ze(nt(i),"handleMonthYearChange",(function(o){i.handleYearChange(o),i.handleMonthChange(o)})),Ze(nt(i),"changeYear",(function(o){i.setState((function(a){var s=a.date;return{date:uy(s,o)}}),(function(){return i.handleYearChange(i.state.date)}))})),Ze(nt(i),"changeMonth",(function(o){i.setState((function(a){var s=a.date;return{date:U0(s,o)}}),(function(){return i.handleMonthChange(i.state.date)}))})),Ze(nt(i),"changeMonthYear",(function(o){i.setState((function(a){var s=a.date;return{date:uy(U0(s,d0(o)),Po(o))}}),(function(){return i.handleMonthYearChange(i.state.date)}))})),Ze(nt(i),"header",(function(){var o=Ob(arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(E.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map((function(s){var l=Pk(o,s),c=i.formatWeekday(l,i.props.locale),u=i.props.weekDayClassName?i.props.weekDayClassName(l):void 0;return E.createElement("div",{key:s,className:xd("react-datepicker__day-name",u)},c)})))})),Ze(nt(i),"formatWeekday",(function(o,a){return i.props.formatWeekDay?(function(s,l,c){return l(yl(s,"EEEE",c))})(o,i.props.formatWeekDay,a):i.props.useWeekdaysShort?(function(s,l){return yl(s,"EEE",l)})(o,a):(function(s,l){return yl(s,"EEEEEE",l)})(o,a)})),Ze(nt(i),"decreaseYear",(function(){i.setState((function(o){var a=o.date;return{date:s6(a,i.props.showYearPicker?i.props.yearItemNumber:1)}}),(function(){return i.handleYearChange(i.state.date)}))})),Ze(nt(i),"clearSelectingDate",(function(){i.setState({selectingDate:null})})),Ze(nt(i),"renderPreviousButton",(function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=FQe(i.state.date,i.props);break;case i.props.showYearPicker:o=(function(y){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=M.minDate,x=M.yearItemNumber,w=x===void 0?tW:x,S=JR(zN(s6(y,w)),w).endPeriod,A=C&&Po(C);return A&&A>S||!1})(i.state.date,i.props);break;default:o=_Qe(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,u=c.previousMonthButtonLabel,d=c.previousYearButtonLabel,p=i.props,h=p.previousMonthAriaLabel,g=h===void 0?typeof u=="string"?u:"Previous Month":h,m=p.previousYearAriaLabel,v=m===void 0?typeof d=="string"?d:"Previous Year":m;return E.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?v:g},E.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}})),Ze(nt(i),"increaseYear",(function(){i.setState((function(o){var a=o.date;return{date:aD(a,i.props.showYearPicker?i.props.yearItemNumber:1)}}),(function(){return i.handleYearChange(i.state.date)}))})),Ze(nt(i),"renderNextButton",(function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=WQe(i.state.date,i.props);break;case i.props.showYearPicker:o=(function(y){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=M.maxDate,x=M.yearItemNumber,w=x===void 0?tW:x,S=JR(aD(y,w),w).startPeriod,A=C&&Po(C);return A&&A<S||!1})(i.state.date,i.props);break;default:o=NQe(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var s=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.increaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,u=c.nextMonthButtonLabel,d=c.nextYearButtonLabel,p=i.props,h=p.nextMonthAriaLabel,g=h===void 0?typeof u=="string"?u:"Next Month":h,m=p.nextYearAriaLabel,v=m===void 0?typeof d=="string"?d:"Next Year":m;return E.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?v:g},E.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}})),Ze(nt(i),"renderCurrentMonth",(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=["react-datepicker__current-month"];return i.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),E.createElement("div",{className:a.join(" ")},yl(o,i.props.dateFormat,i.props.locale))})),Ze(nt(i),"renderYearDropdown",(function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return E.createElement(rLi,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:Po(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})})),Ze(nt(i),"renderMonthDropdown",(function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return E.createElement(oLi,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:d0(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})})),Ze(nt(i),"renderMonthYearDropdown",(function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return E.createElement(lLi,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})})),Ze(nt(i),"handleTodayButtonClick",(function(o){i.props.onSelect(PQe(),o),i.props.setPreSelection&&i.props.setPreSelection(PQe())})),Ze(nt(i),"renderTodayButton",(function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return E.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.handleTodayButtonClick(o)}},i.props.todayButton)})),Ze(nt(i),"renderDefaultHeader",(function(o){var a=o.monthDate,s=o.i;return E.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(a),E.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(s!==0),i.renderMonthYearDropdown(s!==0),i.renderYearDropdown(s!==0)),E.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))})),Ze(nt(i),"renderCustomHeader",(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.monthDate,s=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=_Qe(i.state.date,i.props),c=NQe(i.state.date,i.props),u=FQe(i.state.date,i.props),d=WQe(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return E.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(DY(DY({},i.state),{},{customHeaderCount:s,monthDate:a,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:u,nextYearButtonDisabled:d})),p&&E.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))})),Ze(nt(i),"renderYearHeader",(function(){var o=i.state.date,a=i.props,s=a.showYearPicker,l=JR(o,a.yearItemNumber),c=l.startPeriod,u=l.endPeriod;return E.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(c," - ").concat(u):Po(o))})),Ze(nt(i),"renderHeader",(function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}})),Ze(nt(i),"renderMonths",(function(){var o;if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var a=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,l=sD(i.state.date,s),c=(o=i.props.monthSelectedIn)!==null&&o!==void 0?o:s,u=0;u<i.props.monthsShown;++u){var d=Em(l,u-c+s),p="month-".concat(u),h=u<i.props.monthsShown-1,g=u>0;a.push(E.createElement("div",{key:p,ref:function(m){i.monthContainer=m},className:"react-datepicker__month-container"},i.renderHeader({monthDate:d,i:u}),E.createElement(pLi,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:d,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:u,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,holidays:i.props.holidays,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showWeekPicker:i.props.showWeekPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:h,monthShowsDuplicateDaysStart:g})))}return a}})),Ze(nt(i),"renderYears",(function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?E.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),E.createElement(hLi,lD({onDayClick:i.handleDayClick,selectingDate:i.state.selectingDate,clearSelectingDate:i.clearSelectingDate,date:i.state.date},i.props,{onYearMouseEnter:i.handleYearMouseEnter,onYearMouseLeave:i.handleYearMouseLeave}))):void 0})),Ze(nt(i),"renderTimeSection",(function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return E.createElement(wTt,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})})),Ze(nt(i),"renderInputTimeSection",(function(){var o=new Date(i.props.selected),a=HC(o)&&i.props.selected?"".concat(BQe(o.getHours()),":").concat(BQe(o.getMinutes())):"";if(i.props.showTimeInput)return E.createElement(fLi,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})})),Ze(nt(i),"renderAriaLiveRegion",(function(){var o,a=JR(i.state.date,i.props.yearItemNumber),s=a.startPeriod,l=a.endPeriod;return o=i.props.showYearPicker?"".concat(s," - ").concat(l):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?Po(i.state.date):"".concat(rTe(d0(i.state.date),i.props.locale)," ").concat(Po(i.state.date)),E.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&o)})),Ze(nt(i),"renderChildren",(function(){if(i.props.children)return E.createElement("div",{className:"react-datepicker__children-container"},i.props.children)})),i.containerRef=E.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return nd(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var i=this;if(!this.props.preSelection||Bs(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!Bs(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var o=!Xg(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return o&&i.handleCustomMonthChange(i.state.date)}))}}},{key:"render",value:function(){var r=this.props.container||gLi;return E.createElement("div",{style:{display:"contents"},ref:this.containerRef},E.createElement(r,{className:xd("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:tW}}}]),n})(),bLi=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,i=e.onClick,o="react-datepicker__calendar-icon";return E.isValidElement(t)?E.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(o," ").concat(r),onClick:function(a){typeof t.props.onClick=="function"&&t.props.onClick(a),typeof i=="function"&&i(a)}}):typeof t=="string"?E.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i}):E.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},E.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},STt=(function(e){rd(n,E.Component);var t=id(n);function n(r){var i;return td(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return nd(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return IR.createPortal(this.props.children,this.el)}}]),n})(),yLi=function(e){return!e.disabled&&e.tabIndex!==-1},ATt=(function(e){rd(n,E.Component);var t=id(n);function n(r){var i;return td(this,n),Ze(nt(i=t.call(this,r)),"getTabChildren",(function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(yLi)})),Ze(nt(i),"handleFocusStart",(function(){var o=i.getTabChildren();o&&o.length>1&&o[o.length-1].focus()})),Ze(nt(i),"handleFocusEnd",(function(){var o=i.getTabChildren();o&&o.length>1&&o[0].focus()})),i.tabLoopRef=E.createRef(),i}return nd(n,[{key:"render",value:function(){return this.props.enableTabLoop?E.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},E.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,E.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n})(),MLi=(function(e){rd(n,E.Component);var t=id(n);function n(){return td(this,n),t.apply(this,arguments)}return nd(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,a=i.wrapperClassName,s=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,u=i.popperPlacement,d=i.popperProps,p=i.targetComponent,h=i.enableTabLoop,g=i.popperOnKeyDown,m=i.portalId,v=i.portalHost;if(!s){var y=xd("react-datepicker-popper",o);r=E.createElement(Vki,lD({modifiers:c,placement:u},d),(function(C){var x=C.ref,w=C.style,S=C.placement,A=C.arrowProps;return E.createElement(ATt,{enableTabLoop:h},E.createElement("div",{ref:x,style:w,className:y,"data-placement":S,onKeyDown:g},E.cloneElement(l,{arrowProps:A})))}))}this.props.popperContainer&&(r=E.createElement(this.props.popperContainer,{},r)),m&&!s&&(r=E.createElement(STt,{portalId:m,portalHost:v},r));var M=xd("react-datepicker-wrapper",a);return E.createElement(Fki,{className:"react-datepicker-manager"},E.createElement(Xki,null,(function(C){var x=C.ref;return E.createElement("div",{ref:x,className:M},p)})),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n})(),VQe="react-datepicker-ignore-onclickoutside",CLi=wte(vLi),wpe="Date input not valid.",xLi=(function(e){rd(n,E.Component);var t=id(n);function n(r){var i;return td(this,n),Ze(nt(i=t.call(this,r)),"getPreSelection",(function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:Ts()})),Ze(nt(i),"modifyHolidays",(function(){var o;return(o=i.props.holidays)===null||o===void 0?void 0:o.reduce((function(a,s){var l=new Date(s.date);return a6(l)?[].concat(c6(a),[DY(DY({},s),{},{date:l})]):a}),[])})),Ze(nt(i),"calcInitialState",(function(){var o,a=i.getPreSelection(),s=bTt(i.props),l=yTt(i.props),c=s&&yx(a,Ab(s))?s:l&&bw(a,y2e(l))?l:a;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:c,highlightDates:qQe(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),Ze(nt(i),"clearPreventFocusTimeout",(function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)})),Ze(nt(i),"setFocus",(function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})})),Ze(nt(i),"setBlur",(function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()})),Ze(nt(i),"setOpen",(function(o){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:Spe},(function(){o||i.setState((function(s){return{focused:!!a&&s.focused}}),(function(){!a&&i.setBlur(),i.setState({inputValue:null})}))}))})),Ze(nt(i),"inputOk",(function(){return xte(i.state.preSelection)})),Ze(nt(i),"isCalendarOpen",(function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open})),Ze(nt(i),"handleFocus",(function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})})),Ze(nt(i),"sendFocusBackToInput",(function(){i.preventFocusTimeout&&i.clearPreventFocusTimeout(),i.setState({preventFocus:!0},(function(){i.preventFocusTimeout=setTimeout((function(){i.setFocus(),i.setState({preventFocus:!1})}))}))})),Ze(nt(i),"cancelFocusInput",(function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null})),Ze(nt(i),"deferFocusInput",(function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout((function(){return i.setFocus()}),1)})),Ze(nt(i),"handleDropdownFocus",(function(){i.cancelFocusInput()})),Ze(nt(i),"handleBlur",(function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})})),Ze(nt(i),"handleCalendarClickOutside",(function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()})),Ze(nt(i),"handleChange",(function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=a[0];if(!i.props.onChangeRaw||(i.props.onChangeRaw.apply(nt(i),a),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:wLi});var c,u,d,p,h,g,m,v,y=(c=l.target.value,u=i.props.dateFormat,d=i.props.locale,p=i.props.strictParsing,h=i.props.minDate,g=null,m=pz(d)||pz(dz()),v=!0,Array.isArray(u)?(u.forEach((function(M){var C=fpe(c,M,new Date,{locale:m});p&&(v=HC(C,h)&&c===yl(C,M,d)),HC(C,h)&&v&&(g=C)})),g):(g=fpe(c,u,new Date,{locale:m}),p?v=HC(g)&&c===yl(g,u,d):HC(g)||(u=u.match(Qki).map((function(M){var C=M[0];return C==="p"||C==="P"?m?(0,Kki[C])(M,m.formatLong):C:M})).join(""),c.length>0&&(g=fpe(c,u.slice(0,c.length),new Date)),HC(g)||(g=new Date(c))),HC(g)&&v?g:null));i.props.showTimeSelectOnly&&i.props.selected&&y&&!Bs(y,i.props.selected)&&(y=Yki(i.props.selected,{hours:Sb(y),minutes:wb(y),seconds:mQe(y)})),!y&&l.target.value||(i.props.showWeekPicker&&(y=Ob(y,i.props.locale,i.props.calendarStartDay)),i.setSelected(y,l,!0))}})),Ze(nt(i),"handleSelect",(function(o,a,s){if(i.props.shouldCloseOnSelect&&!i.props.showTimeSelect&&i.sendFocusBackToInput(),i.props.onChangeRaw&&i.props.onChangeRaw(a),i.props.showWeekPicker&&(o=Ob(o,i.props.locale,i.props.calendarStartDay)),i.setSelected(o,a,!1,s),i.props.showDateSelect&&i.setState({isRenderAriaLiveMessage:!0}),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(o);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var l=i.props,c=l.startDate,u=l.endDate;!c||u||yx(o,c)||i.setOpen(!1)}})),Ze(nt(i),"setSelected",(function(o,a,s,l){var c=o;if(i.props.showYearPicker){if(c!==null&&vTt(Po(c),i.props))return}else if(i.props.showMonthYearPicker){if(c!==null&&mTt(c,i.props))return}else if(c!==null&&Ste(c,i.props))return;var u=i.props,d=u.onChange,p=u.selectsRange,h=u.startDate,g=u.endDate;if(!EO(i.props.selected,c)||i.props.allowSameDay||p)if(c!==null&&(!i.props.selected||s&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(c=RQe(c,{hour:Sb(i.props.selected),minute:wb(i.props.selected),second:mQe(i.props.selected)})),i.props.inline||i.setState({preSelection:c}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var m=h&&!g,v=h&&g;!h&&!g?d([c,null],a):m&&(yx(c,h)?d([c,null],a):d([h,c],a)),v&&d([c,null],a)}else d(c,a);s||(i.props.onSelect(c,a),i.setState({inputValue:null}))})),Ze(nt(i),"setPreSelection",(function(o){var a=i.props.minDate!==void 0,s=i.props.maxDate!==void 0,l=!0;if(o){i.props.showWeekPicker&&(o=Ob(o,i.props.locale,i.props.calendarStartDay));var c=Ab(o);if(a&&s)l=c$(o,i.props.minDate,i.props.maxDate);else if(a){var u=Ab(i.props.minDate);l=bw(o,u)||EO(c,u)}else if(s){var d=y2e(i.props.maxDate);l=yx(o,d)||EO(c,d)}}l&&i.setState({preSelection:o})})),Ze(nt(i),"toggleCalendar",(function(){i.setOpen(!i.state.open)})),Ze(nt(i),"handleTimeChange",(function(o){var a=i.props.selected?i.props.selected:i.getPreSelection(),s=i.props.selected?o:RQe(a,{hour:Sb(o),minute:wb(o)});i.setState({preSelection:s}),i.props.onChange(s),i.props.shouldCloseOnSelect&&(i.sendFocusBackToInput(),i.setOpen(!1)),i.props.showTimeInput&&i.setOpen(!0),(i.props.showTimeSelectOnly||i.props.showTimeSelect)&&i.setState({isRenderAriaLiveMessage:!0}),i.setState({inputValue:null})})),Ze(nt(i),"onInputClick",(function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()})),Ze(nt(i),"onInputKeyDown",(function(o){i.props.onKeyDown(o);var a=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(a==="ArrowDown"||a==="ArrowUp"){o.preventDefault();var s=i.props.showWeekPicker&&i.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',l=i.calendar.componentNode&&i.calendar.componentNode.querySelector(s);return void(l&&l.focus({preventScroll:!0}))}var c=Ts(i.state.preSelection);a==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===Spe?(i.handleSelect(c,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(c)):i.setOpen(!1)):a==="Escape"?(o.preventDefault(),i.sendFocusBackToInput(),i.setOpen(!1)):a==="Tab"&&i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:wpe})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||i.onInputClick()})),Ze(nt(i),"onPortalKeyDown",(function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},(function(){i.setOpen(!1),setTimeout((function(){i.setFocus(),i.setState({preventFocus:!1})}))})))})),Ze(nt(i),"onDayKeyDown",(function(o){i.props.onKeyDown(o);var a=o.key,s=Ts(i.state.preSelection);if(a==="Enter")o.preventDefault(),i.handleSelect(s,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(s);else if(a==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:wpe});else if(!i.props.disabledKeyboardNavigation){var l;switch(a){case"ArrowLeft":l=i.props.showWeekPicker?gQe(s,1):eDi(s,1);break;case"ArrowRight":l=i.props.showWeekPicker?zY(s,1):Pk(s,1);break;case"ArrowUp":l=gQe(s,1);break;case"ArrowDown":l=zY(s,1);break;case"PageUp":l=sD(s,1);break;case"PageDown":l=Em(s,1);break;case"Home":l=s6(s,1);break;case"End":l=aD(s,1);break;default:l=null}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:wpe}));if(o.preventDefault(),i.setState({lastPreSelectChange:Spe}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var c=d0(s),u=d0(l),d=Po(s),p=Po(l);c!==u||d!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}})),Ze(nt(i),"onPopperKeyDown",(function(o){o.key==="Escape"&&(o.preventDefault(),i.sendFocusBackToInput())})),Ze(nt(i),"onClearClick",(function(o){o&&o.preventDefault&&o.preventDefault(),i.sendFocusBackToInput(),i.props.selectsRange?i.props.onChange([null,null],o):i.props.onChange(null,o),i.setState({inputValue:null})})),Ze(nt(i),"clear",(function(){i.onClearClick()})),Ze(nt(i),"onScroll",(function(o){typeof i.props.closeOnScroll=="boolean"&&i.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||i.setOpen(!1):typeof i.props.closeOnScroll=="function"&&i.props.closeOnScroll(o)&&i.setOpen(!1)})),Ze(nt(i),"renderCalendar",(function(){return i.props.inline||i.isCalendarOpen()?E.createElement(CLi,{ref:function(o){i.calendar=o},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,holidays:Jki(i.modifyHolidays()),includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:VQe,fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showDateSelect:i.props.showDateSelect,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,onYearMouseEnter:i.props.onYearMouseEnter,onYearMouseLeave:i.props.onYearMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showWeekPicker:i.props.showWeekPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection},i.props.children):null})),Ze(nt(i),"renderAriaLiveRegion",(function(){var o,a=i.props,s=a.dateFormat,l=a.locale,c=i.props.showTimeInput||i.props.showTimeSelect?"PPPPp":"PPPP";return o=i.props.selectsRange?"Selected start date: ".concat(xv(i.props.startDate,{dateFormat:c,locale:l}),". ").concat(i.props.endDate?"End date: "+xv(i.props.endDate,{dateFormat:c,locale:l}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(xv(i.props.selected,{dateFormat:s,locale:l})):i.props.showYearPicker?"Selected year: ".concat(xv(i.props.selected,{dateFormat:"yyyy",locale:l})):i.props.showMonthYearPicker?"Selected month: ".concat(xv(i.props.selected,{dateFormat:"MMMM yyyy",locale:l})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(xv(i.props.selected,{dateFormat:"yyyy, QQQ",locale:l})):"Selected date: ".concat(xv(i.props.selected,{dateFormat:c,locale:l})),E.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o)})),Ze(nt(i),"renderDateInput",(function(){var o,a=xd(i.props.className,Ze({},VQe,i.state.open)),s=i.props.customInput||E.createElement("input",{type:"text"}),l=i.props.customInputRef||"ref",c=typeof i.props.value=="string"?i.props.value:typeof i.state.inputValue=="string"?i.state.inputValue:i.props.selectsRange?(function(u,d,p){if(!u)return"";var h=xv(u,p),g=d?xv(d,p):"";return"".concat(h," - ").concat(g)})(i.props.startDate,i.props.endDate,i.props):xv(i.props.selected,i.props);return E.cloneElement(s,(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(o={},l,(function(u){i.input=u})),"value",c),"onBlur",i.handleBlur),"onChange",i.handleChange),"onClick",i.onInputClick),"onFocus",i.handleFocus),"onKeyDown",i.onInputKeyDown),"id",i.props.id),"name",i.props.name),"form",i.props.form),Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(o,"autoFocus",i.props.autoFocus),"placeholder",i.props.placeholderText),"disabled",i.props.disabled),"autoComplete",i.props.autoComplete),"className",xd(s.props.className,a)),"title",i.props.title),"readOnly",i.props.readOnly),"required",i.props.required),"tabIndex",i.props.tabIndex),"aria-describedby",i.props.ariaDescribedBy),Ze(Ze(Ze(o,"aria-invalid",i.props.ariaInvalid),"aria-labelledby",i.props.ariaLabelledBy),"aria-required",i.props.ariaRequired)))})),Ze(nt(i),"renderClearButton",(function(){var o=i.props,a=o.isClearable,s=o.disabled,l=o.selected,c=o.startDate,u=o.endDate,d=o.clearButtonTitle,p=o.clearButtonClassName,h=p===void 0?"":p,g=o.ariaLabelClose,m=g===void 0?"Close":g;return!a||l==null&&c==null&&u==null?null:E.createElement("button",{type:"button",className:xd("react-datepicker__close-icon",h,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":m,onClick:i.onClearClick,title:d,tabIndex:-1})})),i.state=i.calcInitialState(),i.preventFocusTimeout=null,i}return nd(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,a;r.inline&&(o=r.selected,a=this.props.selected,o&&a?d0(o)!==d0(a)||Po(o)!==Po(a):o!==a)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:qQe(this.props.highlightDates)}),i.focused||EO(r.selected,this.props.selected)||this.setState({inputValue:null}),i.open!==this.state.open&&(i.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),i.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var r=this.props,i=r.showIcon,o=r.icon,a=r.calendarIconClassname,s=r.toggleCalendarOnIconClick,l=this.state.open;return E.createElement("div",{className:"react-datepicker__input-container".concat(i?" react-datepicker__view-calendar-icon":"")},i&&E.createElement(bLi,lD({icon:o,className:"".concat(a," ").concat(l&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var i=this.state.open?E.createElement(ATt,{enableTabLoop:this.props.enableTabLoop},E.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(i=E.createElement(STt,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),E.createElement("div",null,this.renderInputContainer(),i)}return E.createElement(MLi,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:tW,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n})(),wLi="input",Spe="navigate";const SLi=Rt({container:{backgroundColor:"#fff"},select:{"& ul":{backgroundColor:"#fff"},"& li":{fontSize:"1rem"}},selectDisplay:{fontSize:"1rem",paddingLeft:"20px",width:"100%"}}),GQe=e=>{const t=e.dataSource.map((r,i)=>f.jsx(sr,{value:r[e.idValue].toString(),children:f.jsx("span",{children:r[e.nameValue]})},i)),n=SLi();return f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",style:e.styleLabel||{},children:e.title})}),f.jsxs(ls,{MenuProps:{classes:{paper:n.select}},SelectDisplayProps:{className:n.selectDisplay},className:"custom-select mes-custom-select",onChange:r=>e.onChange(r.target.value==="DEFAULT"?"":r.target.value),value:e.selectedValue||"DEFAULT",style:{backgroundColor:"#fff"},children:[e.hasChoose&&f.jsx(sr,{value:"DEFAULT",children:"Choose "+e.title}),t]})]})},$Qe=e=>f.jsx(E.Fragment,{children:f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",style:e.styleLabel||{},children:e.title})}),f.jsx(xLi,{className:"form-control mes-filter-datepicker",wrapperClassName:"mes-core-filter-datepicker",selected:e.value,onChange:t=>e.onChange(t)})]})}),ALi=e=>{let t={};return e.paddingWrapper!==void 0&&(t={...t,padding:e.paddingWrapper}),f.jsxs("div",{className:"content-wrapper",style:t,children:[f.jsx("div",{className:"row",children:f.jsx("div",{className:"col-lg-12"})}),f.jsxs("div",{className:"row",children:[f.jsx("div",{className:"col-lg-9 ",children:f.jsxs("h3",{style:{userSelect:"none"},children:[e.title,f.jsx("small",{children:e.description})]})}),f.jsx("div",{className:"col-lg-3"})]}),e.children]})};class OLi extends b.Component{onClickGo;onClickReset;onClickExport;constructor(t){super(t),this.state={},this.onClickGo=this.GetFilterValues.bind(this),this.onClickReset=this.ResetFilterValues.bind(this),this.onClickExport=this.ExportData.bind(this)}ExportData(){this.props.onClickExport!==void 0&&this.props.onClickExport()}ResetFilterValues(){this.props.onClickReset!==void 0&&this.props.onClickReset()}GetFilterValues(){this.props.OnClickGo!==void 0&&this.props.OnClickGo()}render(){const n=(this.props.extraButtons===void 0?[]:this.props.extraButtons).map((r,i)=>f.jsx("button",{type:"button",className:"btn btn-primary btn-sm mr-2",onClick:r.onClick,children:r.name},i));return f.jsx("div",{className:"container-fluid",children:f.jsx("div",{className:"row",children:f.jsx("div",{className:"col-md-12",children:f.jsxs("div",{className:"row mb-3 mt-3 ",children:[this.props.children,f.jsx("div",{className:"col-md-2",children:this.props.showButtons&&f.jsx("div",{className:"container-fluid",children:f.jsx("div",{className:"col-md-12",children:f.jsxs("div",{className:"pt-2",children:[f.jsx("button",{type:"button",className:"btn btn-primary  btn mr-2",onClick:this.onClickGo,children:"Go"}),f.jsx("button",{type:"button",className:"btn btn-danger btn-sm mr-2",onClick:this.onClickReset,children:"Reset"}),this.props.showExport&&f.jsxs("button",{type:"button",className:"btn btn-success",onClick:this.onClickExport,children:[f.jsx("i",{className:"fa fa-download"}),"Excel"]}),n]})})})})]})})})})}}var df=(e=>(e.String="string",e.Number="number",e.Boolean="boolean",e.DateTime="datetime",e.Date="date",e))(df||{}),Ey=(e=>(e.Style="Style",e.Title="Title",e.Link="Link",e.Value="Value",e))(Ey||{});const zLi=Rn(),cD=e=>gi(e);function TLi(e,t){const n=Object.keys(e).filter(r=>e[r]==t);return n.length>0?n[0]:null}const UQe=(e,t="")=>{if(e===""||e===null||e===void 0)return"";const n=zLi(e);return n.isValid()?(t=t===""?"MM-DD-YYYY":t,n.format(t)):"NaD"},ELi=(e,t="")=>{if(e===""||e===null||e===void 0)return"";const n=izt(e);return Number.isNaN(n.value)?"NaN":(t=t===""?"0.00":t,n.format(t))},RLi=(e,t="")=>{if(e===""||e===null||e===void 0)return"";if(t==="")return String(e);const n=t.split("/");return e===!0&&n.length>0?n[0]:e===!1&&n.length>1?n[1]:String(e)},ILi=(e,t="")=>t===""?String(e):t.replace("{value}",e),PLi=e=>{const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")},Ape=e=>{const t={};return e.split(";").forEach(n=>{const[r,i]=n.split(":");if(!r)return;const o=PLi(r.trim());t[o]=i===void 0?"":i.trim()}),t},XQe=e=>{let t="";return e.split(".").forEach(n=>{t+=n}),t},DLi=(e,t)=>{const n=[];return e.forEach(r=>{const i={Name:"",Type:df.String,Field:"",Width:"",Format:"",CellStyle:""};r[t]!==void 0&&(i.Name=String(r[t])),n.push(i)}),n},kLi=e=>{const t=[];if(e.length===0)return t;let n="";return e.forEach(r=>{const i={Name:r.HeaderName,Type:r.Type,Field:r.Field,Width:r.Width,Format:r.Format,CellStyle:cD(r.CellStyle)?"":r.CellStyle};if(cD(r.ParentName))t.push(i);else{const o=t.find(a=>a.Name===r.ParentName);o===void 0?t.push({Name:r.ParentName||"",children:[i]}):n!==r.ParentName?t.push({Name:r.ParentName||"",children:[i]}):o.children?.push(i)}n=r.ParentName||""}),t},u6=e=>{let t=0;return!gi(e)&&e.length>0&&e.forEach(n=>{const r=u6(n.children||[])+1;t=r>t?r:t}),t},OTt=e=>{let t=0;return!cD(e)&&e.length>0&&e.forEach(n=>{const r=OTt(n.children||[])+e.length;t=r>t?r:t}),t},zTt=(e,t,n)=>{let r=[];return!cD(e)&&e.length>0&&(n===t?r=r.concat(e):n<t&&e.forEach(i=>{r=r.concat(zTt(i.children||[],t,n+1))})),r},LLi=(e,t,n)=>{let r=[];const i=[];return t===null||(ETt(t,i),!n&&e.length>0?RTt(e,i,r):r=i),r},EG=(e,t)=>e[t]===void 0?null:e[t],TTt=(e,t)=>{const n=e.split(".");let r=t;for(let i=0;i<n.length;i++){const o=r[n[i]];if(o===void 0){r="";break}r=o}return r},ETt=(e,t,n,r)=>{r=r===void 0||r===""?"":r+".";const i={name:`${n}`,field:`${r}${n}`,type:df.String,format:"",cellStyle:""};if(typeof e!="object"||cD(e)){t.push(i);return}const a=Object.keys(e).filter(_Li);a.length===0?(NLi(e,i),t.push(i)):a.forEach(s=>{ETt(e[s],t,s,n||"")})},RTt=(e,t,n)=>{e.forEach(r=>{if(cD(r.children)){const i=t.find(o=>o.field===r.Field);if(i!==void 0)i.format=r.Format,i.cellStyle=r.CellStyle,i.type=r.Type||df.String,n.push(i);else{const o={name:r.Name,type:r.Type||df.String,field:r.Field||"",format:r.Format,cellStyle:r.CellStyle||"",properties:[]};n.push(o)}}else RTt(r.children||[],t,n)})},_Li=e=>e!=="Value"&&e!=="Style"&&e!=="Title"&&e!=="Link",NLi=(e,t)=>{t.properties=[],Object.values(Ey).forEach(n=>{if(e[n]!==void 0){const r=TLi(Ey,n);r!==null&&n!==Ey.Value&&t.properties?.push({property:Ey[r],value:""})}})},FLi=e=>f.jsx(Qr,{checked:e.value,size:"small",color:"primary"}),YQe=({value:e="",colSpan:t=1,rowSpan:n=1,isRowHeader:r=!1,isFirstCell:i=!1})=>{const o=[""];return r&&o.push("cell-header"),i&&o.push("cell-first"),f.jsx("th",{colSpan:t,rowSpan:n,className:o.join(" "),children:f.jsxs("span",{children:[e," "]})})},ITt=({cell:e,data:t,cellClass:n})=>{const i=Rt(()=>({tooltip:{margin:0}}))(),o=fa(),a=()=>{g&&o(m)},s=[n,"cell-table"];let l="",c=t,u="",d="",p=!1,h=f.jsx(f.Fragment,{}),g=!1,m="",v=[];switch(t!==null&&typeof t=="object"&&(c=EG(t,Ey.Value),u=EG(t,Ey.Style)||"",d=EG(t,Ey.Title)||"",m=EG(t,Ey.Link)||"",g=m!==""),c==null&&(c=""),e.type){case df.DateTime:l=UQe(c,e.format);break;case df.Date:l=UQe(c,e.format);break;case df.Number:l=ELi(c,e.format);break;case df.Boolean:e.format==="checkbox"?(h=f.jsx(FLi,{value:!!c}),p=!0):l=RLi(c,e.format);break;case df.String:l=ILi(c,e.format);break;default:l=String(c);break}switch(e.type){case df.Number:s.push("text-right");break}let y=!1;return(e.cellStyle||"").startsWith(".")?s.push(XQe(e.cellStyle||"")):(e.cellStyle||"")!==""&&(v=Ape(e.cellStyle||""),y=!0),u.startsWith(".")?s.push(XQe(u)):u!==""&&(v=Ape(y?e.cellStyle+";"+u:u)),g&&s.push("cell-link"),p?f.jsx("td",{children:f.jsx("div",{className:s.join(" "),children:h})}):f.jsx("td",{children:f.jsx(tl,{title:d,arrow:!0,classes:i,children:f.jsxs("div",{className:s.join(" "),onClick:a,style:v,children:[" ",l," "]})})})},WLi=({cells:e,row:t,cellClass:n,onRowClick:r})=>{const i=(s,l)=>{r!==void 0&&r(l)};let o="";r!==void 0&&(o="selectableRow");const a=e.map((s,l)=>{const c=TTt(s.field,t),u={cell:s,data:c,cellClass:n};return f.jsx(ITt,{...u},l)});return f.jsx("tr",{onClick:s=>{i(s,t)},className:o,children:a})},qLi=({header:e,rows:t,rowSpan:n,colSpan:r,level:i,bodyCells:o})=>{const a=[],s=(l,c,u)=>{const d={value:l.Name,colSpan:r,rowSpan:n-u,isRowHeader:!0,isFirstCell:i===1&&u===0};c.push([b.createElement(YQe,{...d,key:"cell0"})]),(l.children||[]).length===0?t.forEach((p,h)=>{const g=o.find(m=>m.field===l.Field);if(g===void 0)c.push(f.jsx(YQe,{},h));else{const m=TTt(g.field,p),v={cell:g,data:m,cellClass:""};c.push(f.jsx(ITt,{...v},h))}}):(l.children||[])[i-1]!==void 0&&(u++,s((l.children||[])[i-1],c,u))};return s(e,a,0),f.jsx("tr",{children:a})},BLi=({headers:e,cells:t,rows:n,transposed:r,cellClass:i,onRowClick:o})=>{const a=(s,l,c,u)=>{c++,s.forEach(d=>{const p=u6(d.children||[]),h=l-c-p+1;let g=OTt(d.children||[]);g=g===0?1:g,u.push(f.jsx(qLi,{header:d,rows:n,rowSpan:g,colSpan:h,level:c,bodyCells:t},u.length+1));const m=[];for(let v=c;v<(d.children||[]).length;v++)m.push((d.children||[])[v]);m.length>0&&a(m,l,c,u)})};if(r){const s=[],l=u6(e);return a(e,l,0,s),f.jsx("tbody",{children:s})}else{const s=n.map((l,c)=>{const u={cells:t,row:l,cellClass:i,onRowClick:o};return f.jsx(WLi,{...u},c)});return f.jsx("tbody",{children:s})}},KQe=({cell:e,colSpan:t,rowSpan:n,autoAlignNumber:r})=>{const i=[],o={};switch(e.Type){case df.Number:r?i.push("text-right"):i.push("text-center");break;default:i.push("text-center");break}return e.Width!==""&&(o.minWidth=e.Width),f.jsx("th",{colSpan:t,rowSpan:n,className:t>1?"text-center":i.join(" "),style:o,children:f.jsx("span",{onClick:()=>{},children:e.Name})})},jLi=({cells:e,level:t,totalLevel:n,transposed:r,autoAlignHeaderNumber:i})=>{const a=zTt(e,t,1).map((l,c)=>{const u=n-t-u6(l.children||[])+1;return f.jsx(KQe,{colSpan:(l.children||[]).length===0?1:(l.children||[]).length,rowSpan:u,cell:l,autoAlignNumber:i},`index-${c}`)}),s={Name:""};return f.jsxs("tr",{children:[r&&f.jsx(KQe,{colSpan:n+1,rowSpan:1,cell:s,autoAlignNumber:i}),a]})},HLi=({cells:e,transposed:t,autoAlignHeaderNumber:n})=>{const r=b.useMemo(()=>u6(e),[e]);return f.jsx("thead",{children:[...Array(r)].map((i,o)=>f.jsx(jLi,{cells:e,level:o+1,totalLevel:r,transposed:t,autoAlignHeaderNumber:n},`level-${o}`))})},VLi=({name:e,columns:t,rows:n,autoGeneratedColumns:r=!1,showPaging:i=!1,autoPaging:o=!1,transposed:a=!1,transposeBy:s="id",pageSize:l=20,pageIndex:c=0,autoAlignHeaderNumber:u=!1,containerClass:d="",tableClass:p="",cellClass:h="",onRowClick:g})=>{const[m,v]=b.useState([]),[y,M]=b.useState([]),[C,x]=b.useState([]);b.useEffect(()=>{const z=kLi(t);v(z);const O=n.length===0?null:n[0];x(LLi(z,O,r)),a&&M(DLi(n,s))},[t,n,r,a]),b.useEffect(()=>{},[C]);const w={cells:a?y:m,transposed:a,transposeBy:s,autoAlignHeaderNumber:u},S={headers:m,cells:C,rows:n,transposed:a,cellClass:h,onRowClick:g},A=["report-table",p];return a&&A.push("table-transposed"),f.jsx("div",{className:"container-fluid my-3",children:f.jsxs("table",{className:A.join(" "),children:[f.jsx(HLi,{...w}),f.jsx(BLi,{...S})]})})},GLi=e=>{const{state:t,actions:n}=ePi(),[r,i]=b.useState([]),[o,a]=b.useState([]),s=async()=>{n.setShowLoading(!0);const c=await u2e(t.casterProductionFilter);if(n.setShowLoading(!1),c.ok){const u=c.data===null?[]:c.data.rows||[];u.forEach((d,p)=>{d.id=p}),a(u),i(c.data===null?[]:c.data.columns||[]),n.setCasterProductions(o)}else console.log("something happened")},l=async()=>{await OAi(t.casterProductionFilter)};return b.useEffect(()=>{(async()=>{const c=await vzt();c.ok?(n.setBilletSizes(c.data.tables[2].rows),n.setGrades([]),await s()):console.log("something happened")})()},[]),f.jsxs(f.Fragment,{children:[f.jsx(z6,{open:t.showLoading,style:{zIndex:1e3},children:f.jsx(Kt,{color:"inherit"})}),f.jsxs(ALi,{title:"Caster Production",children:[f.jsx(OLi,{showButtons:!0,onClickReset:()=>{},OnClickGo:async()=>{await s()},onClickExport:l,showExport:!0,children:f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"col-md-2 ",children:f.jsx($Qe,{value:t.casterProductionFilter.startDate,onChange:c=>{n.setCasterProductionFilters({...t.casterProductionFilter,startDate:c})},title:"Start",styleGeneral:{style:"flex"}})}),f.jsx("div",{className:"col-md-2",children:f.jsx($Qe,{value:t.casterProductionFilter.endDate,onChange:c=>{n.setCasterProductionFilters({...t.casterProductionFilter,endDate:c})},title:"End",styleGeneral:{style:"flex"}})}),f.jsx("div",{className:"col-md-3",children:f.jsx(GQe,{title:"Billet Size",dataSource:t.billetSizes,selectedValue:t.casterProductionFilter.billetSizeId,onChange:c=>{n.setCasterProductionFilters({...t.casterProductionFilter,billetSizeId:c})},styleList:{maxWidth:"60%"},idValue:"MoldSizeId",nameValue:"MoldSizeName",hasChoose:!0})}),f.jsx("div",{className:"col-md-3",children:f.jsx(GQe,{title:"Grade",dataSource:t.grades,selectedValue:t.casterProductionFilter.gradeId,onChange:c=>{n.setCasterProductionFilters({...t.casterProductionFilter,gradeId:c})},styleList:{maxWidth:"60%"},idValue:"GradeId",nameValue:"GradeName",hasChoose:!0})})]})}),f.jsx("div",{className:"row",style:{overflow:"auto"},children:f.jsx(VLi,{name:"tblProductions",columns:r,rows:o,showPaging:!0,autoPaging:!0})})]})]})},$Li=e=>f.jsx(tPi,{children:f.jsx(GLi,{})}),ULi=[f.jsx(cr,{path:"/caster-data-entry",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(aQe,{})})}),f.jsx(cr,{path:"/caster-data-entry/:processId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(aQe,{})}),children:" "}),f.jsx(cr,{path:"/caster-production",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx($Li,{})})}),f.jsx(cr,{path:"/caster-processes",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(uQe,{})})}),f.jsx(cr,{path:"/caster-processes/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(uQe,{})})}),f.jsx(cr,{path:"/caster-counters",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(UKe,{})})}),f.jsx(cr,{path:"/caster-counters/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(UKe,{})})}),f.jsx(cr,{path:"/failed-startups",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(MEi,{})})}),f.jsxs(cr,{path:"/heat-report",element:f.jsx(xEi,{}),children:[f.jsx(cr,{path:"chemistry",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(GKe,{})})}),f.jsx(cr,{path:"chemistry/:heatName",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(GKe,{})})})]})],XLi={delaysListForPareto:[],shiftId:!1},_Y=Ni({name:"__",initialState:XLi,reducers:{setDelaysListForPareto(e,{payload:t}){e.delaysListForPareto=t},setShiftId(e,{payload:t}){e.shiftId=t}}}),PTt=b.createContext({state:_Y.getInitialState(),actions:_Y.actions}),DTt=()=>b.useContext(PTt),YLi=({children:e})=>{const{shiftId:t}=Ms(),[n,r]=Ui.useComplexState({initialState:_Y.getInitialState(),reducers:_Y.caseReducers});return b.useEffect(()=>{const i=Number(t);gi(t)||isNaN(i)?r.setShiftId(null):r.setShiftId(i)},[t]),f.jsx(PTt.Provider,{value:{state:n,actions:r},children:e})},KLi=Rt(e=>({tableContainer:{width:"100%",height:"calc(100% - 20px)"},gridWrapper:{border:"1px solid #ccc",borderRadius:"4px",padding:10,backgroundColor:"#fff",height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)"}})),QLi=()=>{const e=KLi(),{state:{delaysListForPareto:t}}=DTt(),n=i=>new Intl.NumberFormat("en-US").format(i),r=()=>{const i=t.filter(a=>a.DelayCodeName!==null&&a.DelayCodeName!==void 0).map(a=>({...a,DelayCodeName:a.DelayCodeName||"",DelayCategoryName:a.DelayCategoryName||"",DelayCategoryColor:a.DelayCategoryColor||"#1890ff"}));return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:a=>{const s=a[0],l=i[s.dataIndex],c=l.DelayCategoryName?`<br/>Category: ${l.DelayCategoryName}`:"";return`${l.DelayCodeName}<br/>
                  Total Minutes: ${n(s.value)} min${c}`}},grid:{left:"5%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:i.map(a=>a.DelayCodeName),axisTick:{alignWithLabel:!0},axisLabel:{rotate:45,interval:0}}],yAxis:[{type:"value",name:"Minutes",nameLocation:"middle",nameGap:50,splitLine:{show:!0},axisLine:{show:!0},axisTick:{show:!0},axisLabel:{show:!0,formatter:a=>n(a)}}],series:[{name:"Delay Minutes",type:"bar",barWidth:"60%",data:i.map(a=>a.TotalDelayMinutes)||0,itemStyle:{color:a=>{const s=i[a.dataIndex];return s.DelayCodeName==="Undeclared Delays"?" #CE0000":s.DelayCodeName.toLowerCase().includes("microdelay")?" #D100DA":s.DelayCategoryColor}},label:{show:!0,position:"top",formatter:a=>n(a.value)}}]}};return f.jsx("div",{onContextMenu:i=>i.preventDefault(),children:f.jsx("div",{className:e.gridWrapper,children:f.jsx(SM,{option:r(),style:{height:"100%",width:"100%"},opts:{renderer:"svg"}})})})},ZLi=rt(Rw)({width:"80%","& .MuiInputBase-root":{height:"40px",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.23)","&:hover":{borderColor:"rgba(0, 0, 0, 0.87)"},"&:before, &:after":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}},"& .MuiInputLabel-root":{transform:"translate(14px, 8px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)",backgroundColor:"white",padding:"0 4px"}},"& .MuiSelect-select":{paddingTop:"0",paddingBottom:"0",height:"100%",display:"flex",alignItems:"center"}}),JLi=({delayAreas:e,selectedDelayArea:t,onChange:n})=>f.jsxs(ZLi,{variant:"outlined",children:[f.jsx(Ew,{id:"delay-area-label",children:"Delay Area"}),f.jsx(mM,{labelId:"delay-area-label",value:t===null?"all":t,label:"Delay Area",onChange:r=>{const i=r.target.value;n(i==="all"?null:i)},children:e.map(r=>f.jsx(Qb,{value:r.AssetId,children:r.AssetName},r.AssetId))})]}),e4i=rt(P3)({"& .MuiInputBase-input":{textAlign:"center",padding:"8px 14px"},"& .MuiInputBase-root":{width:"100%",height:"40px"},"& .MuiInputLabel-root":{transform:"translate(14px, 9px) scale(1)"},"& .MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}),t4i=({value:e,onChange:t})=>f.jsx(_f,{label:"End",format:"MM/DD/YYYY",value:e,onChange:n=>{t(n)},slots:{textField:n=>f.jsx(e4i,{...n})}}),n4i=rt(P3)({"& .MuiInputBase-input":{textAlign:"center",padding:"8px 14px"},"& .MuiInputBase-root":{width:"100%",height:"40px"},"& .MuiInputLabel-root":{transform:"translate(14px, 9px) scale(1)"},"& .MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}),r4i=({value:e,onChange:t})=>f.jsx(_f,{label:"Start",format:"MM/DD/YYYY",value:e,onChange:n=>{t(n)},slots:{textField:n=>f.jsx(n4i,{...n})}}),i4i=Rt(e=>({filtersContainer:{gap:e.spacing(2),alignItems:"center",marginLeft:10},filterItem:{maxWidth:"250px",minWidth:"150px"}})),o4i=({onFilterChange:e,initialStartDate:t,initialEndDate:n,includeMicroDelays:r,includeUndeclared:i,onIncludeMicroDelaysChange:o,onIncludeUndeclaredChange:a,delayAreas:s,selectedDelayArea:l,onDelayAreaChange:c})=>{const u=i4i(),d=h=>{h&&e(h,n)},p=h=>{h&&e(t,h)};return f.jsxs(D,{container:!0,className:u.filtersContainer,spacing:2,alignItems:"flex-end",wrap:"nowrap",children:[f.jsx(D,{item:!0,xs:"auto",className:u.filterItem,children:f.jsx(r4i,{value:t,onChange:d})}),f.jsx(D,{item:!0,xs:"auto",className:u.filterItem,children:f.jsx(t4i,{value:n,onChange:p})}),s&&f.jsx(D,{item:!0,xs:12,md:"auto",style:{minWidth:150},children:f.jsx(JLi,{delayAreas:s,selectedDelayArea:l,onChange:c})}),f.jsx(D,{item:!0,xs:"auto",children:f.jsx(Io,{control:f.jsx(Qr,{color:"primary",checked:r,onChange:h=>o(h.target.checked)}),label:"Microdelays"})}),f.jsx(D,{item:!0,xs:"auto",children:f.jsx(Io,{control:f.jsx(Qr,{color:"primary",checked:i,onChange:h=>a(h.target.checked)}),label:"Undeclared delays"})})]})},a4i=async(e,t,n,r,i,o,a,s=!1,l=!1,c=!1)=>{const u=new Ye,d=[];return d.push({name:"Start",value:e||null}),d.push({name:"End",value:t||null}),d.push({name:"DelayCodeId",value:null}),d.push({name:"DelayCategoryId",value:null}),d.push({name:"IncludeMicrodelays",value:s}),d.push({name:"IncludeUndeclared",value:l}),d.push({name:"ShiftId",value:null}),d.push({name:"Crew",value:null}),d.push({name:"DelayAreaAssetId",value:a||null}),d.push({name:"IncludeInactives",value:c}),await u.callV2("[DEL].[GetDelaysForPareto]",d)},s4i=async()=>await new Ye().callV2("[DEL].[GetDelayAssets]",[]),l4i=({setIsLoading:e,setError:t})=>{const{actions:{setDelaysListForPareto:n}}=DTt();return async(r,i,o,a,s)=>{e(!0);const l=await a4i(r,i,void 0,void 0,void 0,void 0,o,a,s);if(l.ok){const c=ar(l,"data.tables[0].rows",[]);n(c),e(!1)}else e(!1),t(l.message)}},c4i=Rt(e=>({root:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem",height:"91vh",display:"flex",flexDirection:"column",backgroundColor:"#f2f4f7"},header:{marginBottom:e.spacing(2)},filterContainer:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:e.spacing(2)},filterGroup:{display:"flex",alignItems:"flex-end"},buttonGroup:{display:"flex",gap:e.spacing(2)},button:{whiteSpace:"nowrap"},divider:{margin:`${e.spacing(2)}px 0`,width:"100%"},tableContainer:{width:"100%",height:"calc(100% - 20px)",padding:"2px","& .ag-root-wrapper":{border:"none"},"& .ag-header":{borderTop:"1px solid #e0e0e0"}}})),u4i=({asset:e})=>{const t=c4i(),[n,r]=b.useState(!1),[i,o]=b.useState(""),a=e==="caster"?13:e==="eaf"?14:null,s=e==="caster"?"Caster":e==="eaf"?"EAF":null,[l,c]=b.useState(a),u=mt().endOf("day"),d=u.clone().subtract(1,"month").startOf("day"),[p,h]=b.useState(d),[g,m]=b.useState(u),[v,y]=b.useState(!1),[M,C]=b.useState(!1),[x,w]=b.useState([]),S=l4i({setIsLoading:r,setError:o}),A=async()=>{const I=await s4i();I.ok&&I.data.tables.length>0?w(I.data.tables[0].rows):o("An error occurred while fetching delay areas.")},z=(I,P)=>{h(I),m(P),S(I.toDate(),P.toDate(),l)},O=I=>{c(I),S(p.toDate(),g.toDate(),I)},T=()=>{if(e==="eaf"){const I=x.filter(P=>P.AssetName&&P.AssetName.includes("EAF "));if(a)return[{AssetId:a,AssetName:"All"},...I]}return x};return b.useEffect(()=>{A()},[]),b.useEffect(()=>{c(a)},[a]),b.useEffect(()=>{S(p.toDate(),g.toDate(),l,v,M)},[e,l,p,g,v,M]),f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:`${s} Pareto Report`}),f.jsxs(kt,{elevation:1,className:t.root,children:[f.jsx(Op,{open:n}),f.jsxs(bt,{variant:"h5",className:t.header,style:{fontWeight:600},children:[s," Pareto Report"]}),f.jsx("div",{className:t.filterContainer,children:f.jsx("div",{className:t.filterGroup,children:f.jsx(kt,{style:{display:"flex",alignItems:"center",height:"80px"},children:f.jsx(o4i,{onFilterChange:z,initialStartDate:p,initialEndDate:g,includeMicroDelays:v,includeUndeclared:M,onIncludeMicroDelaysChange:y,onIncludeUndeclaredChange:C,delayAreas:e==="eaf"?T():null,selectedDelayArea:l,onDelayAreaChange:O})})})}),f.jsx(QLi,{}),f.jsx(ua,{style:{marginBottom:10}}),f.jsx("div",{className:t.tableContainer,children:f.jsx(Mt,{error:i,onHide:()=>{o("")}})})]})]})},RG=({asset:e})=>f.jsx(rte,{children:f.jsx(gte,{children:f.jsx(vj,{children:f.jsx(YLi,{children:f.jsx(u4i,{asset:e})})})})}),d4i=Rt(e=>({contextMenu:{backgroundColor:"#fff",borderRadius:"2px",padding:"5px 0",width:"180px",height:"auto",margin:"0",position:"fixed",listStyle:"none",boxShadow:"0 0 20px 0 #ccc","& .MuiMenuItem-root":{fontSize:"14px"},"& .MuiListItemIcon-root":{minWidth:"25px",padding:"0"},"& .MuiSvgIcon-root":{fontSize:"16px"}}})),p4i=()=>{const{show:e,position:t,options:n}=f4i(),r=d4i(),i=b.useRef(null),[o,a]=b.useState("0"),[s,l]=b.useState("0");return b.useEffect(()=>{(()=>{if(e&&i.current){const u=i.current.getBoundingClientRect(),d=window.innerWidth,p=window.innerHeight;let h=t.x,g=t.y;h+u.width>d&&(h=d-u.width),g+u.height>p&&(g=p-u.height),a(`${h}px`),l(`${g}px`)}else a("0"),l("0")})()},[e,t.x,t.y]),e?f.jsx("ul",{ref:i,className:r.contextMenu,style:{position:"fixed",opacity:e?1:0,left:o,top:s},children:n.map((c,u)=>f.jsxs(sr,{style:c.style,onClick:c.onClick,disabled:c.disabled,children:[f.jsx($0,{style:{padding:0,margin:0},children:c.icon}),c.name]},c.key+u))}):null},h4i=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState({x:0,y:0}),[i,o]=b.useState([]),a=b.useRef(()=>[]);return{show:e,setShow:t,position:n,setPosition:r,onClickOutside:()=>{t(!1)},showContextMenu:(u,d)=>{u.preventDefault(),u.stopPropagation(),t(!0),r({x:u.clientX,y:u.clientY}),o(a.current(d))},options:i,setOptions:o,setOptionsGetter:u=>{a.current=u}}},f4i=e=>b.useContext(kTt),kTt=b.createContext({show:!1,setShow:()=>{},position:{x:0,y:0},setPosition:()=>{},onClickOutside:()=>{},showContextMenu:()=>{},options:[],setOptions:()=>{},setOptionsGetter:()=>{}}),g4i=({children:e})=>{const t=h4i();return f.jsxs(kTt.Provider,{value:t,children:[f.jsx("div",{onKeyDown:()=>t.onClickOutside(),onClick:()=>t.onClickOutside(),children:e}),f.jsx(p4i,{})]})},m4i=rt(Rw)({width:"100%","& .MuiInputBase-root":{height:"40px",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.23)","&:hover":{borderColor:"rgba(0, 0, 0, 0.87)"},"&:before, &:after":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}},"& .MuiInputLabel-root":{transform:"translate(14px, 8px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)",backgroundColor:"white",padding:"0 4px"}},"& .MuiSelect-select":{paddingTop:"0",paddingBottom:"0",height:"100%",display:"flex",alignItems:"center"}}),v4i=({delayAreas:e,selectedDelayArea:t,onChange:n,isLoading:r})=>f.jsxs(m4i,{variant:"outlined",style:{minWidth:120},children:[f.jsx(Ew,{id:"delay-area-label",children:"Delay Area"}),f.jsx(mM,{labelId:"delay-area-label",value:t===null?"all":t,label:"Delay Area",onChange:i=>{const o=i.target.value;n(o==="all"?null:o)},children:e.map(i=>f.jsx(Qb,{value:i.AssetId,children:i.AssetName},i.AssetId))})]});var I5={},QQe;function b4i(){if(QQe)return I5;QQe=1;var e=ri(),t=ii();Object.defineProperty(I5,"__esModule",{value:!0}),I5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");return I5.default=i,I5}var y4i=b4i();const M4i=qn(y4i);var Ope={exports:{}},wA={};/** @license React v17.0.2
 * react-dom-server.browser.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ZQe;function C4i(){if(ZQe)return wA;ZQe=1;var e=aK(),t=Wr();function n(Ne){for(var He="https://reactjs.org/docs/error-decoder.html?invariant="+Ne,Xe=1;Xe<arguments.length;Xe++)He+="&args[]="+encodeURIComponent(arguments[Xe]);return"Minified React error #"+Ne+"; visit "+He+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,g=60121,m=60117,v=60119,y=60129,M=60131;if(typeof Symbol=="function"&&Symbol.for){var C=Symbol.for;r=C("react.portal"),i=C("react.fragment"),o=C("react.strict_mode"),a=C("react.profiler"),s=C("react.provider"),l=C("react.context"),c=C("react.forward_ref"),u=C("react.suspense"),d=C("react.suspense_list"),p=C("react.memo"),h=C("react.lazy"),g=C("react.block"),m=C("react.fundamental"),v=C("react.scope"),y=C("react.debug_trace_mode"),M=C("react.legacy_hidden")}function x(Ne){if(Ne==null)return null;if(typeof Ne=="function")return Ne.displayName||Ne.name||null;if(typeof Ne=="string")return Ne;switch(Ne){case i:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof Ne=="object")switch(Ne.$$typeof){case l:return(Ne.displayName||"Context")+".Consumer";case s:return(Ne._context.displayName||"Context")+".Provider";case c:var He=Ne.render;return He=He.displayName||He.name||"",Ne.displayName||(He!==""?"ForwardRef("+He+")":"ForwardRef");case p:return x(Ne.type);case g:return x(Ne._render);case h:He=Ne._payload,Ne=Ne._init;try{return x(Ne(He))}catch{}}return null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S={};function A(Ne,He){for(var Xe=Ne._threadCount|0;Xe<=He;Xe++)Ne[Xe]=Ne._currentValue2,Ne._threadCount=Xe+1}function z(Ne,He,Xe,ct){if(ct&&(ct=Ne.contextType,typeof ct=="object"&&ct!==null))return A(ct,Xe),ct[Xe];if(Ne=Ne.contextTypes){Xe={};for(var lt in Ne)Xe[lt]=He[lt];He=Xe}else He=S;return He}for(var O=new Uint16Array(16),T=0;15>T;T++)O[T]=T+1;O[15]=0;var I=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,P=Object.prototype.hasOwnProperty,N={},F={};function L(Ne){return P.call(F,Ne)?!0:P.call(N,Ne)?!1:I.test(Ne)?F[Ne]=!0:(N[Ne]=!0,!1)}function W(Ne,He,Xe,ct){if(Xe!==null&&Xe.type===0)return!1;switch(typeof He){case"function":case"symbol":return!0;case"boolean":return Xe!==null?!Xe.acceptsBooleans:(Ne=Ne.toLowerCase().slice(0,5),Ne!=="data-"&&Ne!=="aria-");default:return!1}}function H(Ne,He,Xe,ct){if(He===null||typeof He>"u"||W(Ne,He,Xe))return!0;if(Xe!==null)switch(Xe.type){case 3:return!He;case 4:return He===!1;case 5:return isNaN(He);case 6:return isNaN(He)||1>He}return!1}function j(Ne,He,Xe,ct,lt,Je,ft){this.acceptsBooleans=He===2||He===3||He===4,this.attributeName=ct,this.attributeNamespace=lt,this.mustUseProperty=Xe,this.propertyName=Ne,this.type=He,this.sanitizeURL=Je,this.removeEmptyString=ft}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(Ne){G[Ne]=new j(Ne,0,!1,Ne,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(Ne){var He=Ne[0];G[He]=new j(He,1,!1,Ne[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(Ne){G[Ne]=new j(Ne,2,!1,Ne.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(Ne){G[Ne]=new j(Ne,2,!1,Ne,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(Ne){G[Ne]=new j(Ne,3,!1,Ne.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(Ne){G[Ne]=new j(Ne,3,!0,Ne,null,!1,!1)}),["capture","download"].forEach(function(Ne){G[Ne]=new j(Ne,4,!1,Ne,null,!1,!1)}),["cols","rows","size","span"].forEach(function(Ne){G[Ne]=new j(Ne,6,!1,Ne,null,!1,!1)}),["rowSpan","start"].forEach(function(Ne){G[Ne]=new j(Ne,5,!1,Ne.toLowerCase(),null,!1,!1)});var q=/[\-:]([a-z])/g;function $(Ne){return Ne[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(Ne){var He=Ne.replace(q,$);G[He]=new j(He,1,!1,Ne,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(Ne){var He=Ne.replace(q,$);G[He]=new j(He,1,!1,Ne,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(Ne){var He=Ne.replace(q,$);G[He]=new j(He,1,!1,Ne,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(Ne){G[Ne]=new j(Ne,1,!1,Ne.toLowerCase(),null,!1,!1)}),G.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(Ne){G[Ne]=new j(Ne,1,!1,Ne.toLowerCase(),null,!0,!0)});var U=/["'&<>]/;function X(Ne){if(typeof Ne=="boolean"||typeof Ne=="number")return""+Ne;Ne=""+Ne;var He=U.exec(Ne);if(He){var Xe="",ct,lt=0;for(ct=He.index;ct<Ne.length;ct++){switch(Ne.charCodeAt(ct)){case 34:He="&quot;";break;case 38:He="&amp;";break;case 39:He="&#x27;";break;case 60:He="&lt;";break;case 62:He="&gt;";break;default:continue}lt!==ct&&(Xe+=Ne.substring(lt,ct)),lt=ct+1,Xe+=He}Ne=lt!==ct?Xe+Ne.substring(lt,ct):Xe}return Ne}function Q(Ne,He){var Xe=G.hasOwnProperty(Ne)?G[Ne]:null,ct;return(ct=Ne!=="style")&&(ct=Xe!==null?Xe.type===0:!(!(2<Ne.length)||Ne[0]!=="o"&&Ne[0]!=="O"||Ne[1]!=="n"&&Ne[1]!=="N")),ct||H(Ne,He,Xe)?"":Xe!==null?(Ne=Xe.attributeName,ct=Xe.type,ct===3||ct===4&&He===!0?Ne+'=""':(Xe.sanitizeURL&&(He=""+He),Ne+'="'+(X(He)+'"'))):L(Ne)?Ne+'="'+(X(He)+'"'):""}function re(Ne,He){return Ne===He&&(Ne!==0||1/Ne===1/He)||Ne!==Ne&&He!==He}var ee=typeof Object.is=="function"?Object.is:re,se=null,pe=null,te=null,ce=!1,oe=!1,ae=null,ne=0;function le(){if(se===null)throw Error(n(321));return se}function he(){if(0<ne)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function be(){return te===null?pe===null?(ce=!1,pe=te=he()):(ce=!0,te=pe):te.next===null?(ce=!1,te=te.next=he()):(ce=!0,te=te.next),te}function me(Ne,He,Xe,ct){for(;oe;)oe=!1,ne+=1,te=null,Xe=Ne(He,ct);return Me(),Xe}function Me(){se=null,oe=!1,pe=null,ne=0,te=ae=null}function Oe(Ne,He){return typeof He=="function"?He(Ne):He}function de(Ne,He,Xe){if(se=le(),te=be(),ce){var ct=te.queue;if(He=ct.dispatch,ae!==null&&(Xe=ae.get(ct),Xe!==void 0)){ae.delete(ct),ct=te.memoizedState;do ct=Ne(ct,Xe.action),Xe=Xe.next;while(Xe!==null);return te.memoizedState=ct,[ct,He]}return[te.memoizedState,He]}return Ne=Ne===Oe?typeof He=="function"?He():He:Xe!==void 0?Xe(He):He,te.memoizedState=Ne,Ne=te.queue={last:null,dispatch:null},Ne=Ne.dispatch=ue.bind(null,se,Ne),[te.memoizedState,Ne]}function ie(Ne,He){if(se=le(),te=be(),He=He===void 0?null:He,te!==null){var Xe=te.memoizedState;if(Xe!==null&&He!==null){var ct=Xe[1];e:if(ct===null)ct=!1;else{for(var lt=0;lt<ct.length&&lt<He.length;lt++)if(!ee(He[lt],ct[lt])){ct=!1;break e}ct=!0}if(ct)return Xe[0]}}return Ne=Ne(),te.memoizedState=[Ne,He],Ne}function ue(Ne,He,Xe){if(!(25>ne))throw Error(n(301));if(Ne===se)if(oe=!0,Ne={action:Xe,next:null},ae===null&&(ae=new Map),Xe=ae.get(He),Xe===void 0)ae.set(He,Ne);else{for(He=Xe;He.next!==null;)He=He.next;He.next=Ne}}function Ae(){}var Ce=null,Ee={readContext:function(Ne){var He=Ce.threadID;return A(Ne,He),Ne[He]},useContext:function(Ne){le();var He=Ce.threadID;return A(Ne,He),Ne[He]},useMemo:ie,useReducer:de,useRef:function(Ne){se=le(),te=be();var He=te.memoizedState;return He===null?(Ne={current:Ne},te.memoizedState=Ne):He},useState:function(Ne){return de(Oe,Ne)},useLayoutEffect:function(){},useCallback:function(Ne,He){return ie(function(){return Ne},He)},useImperativeHandle:Ae,useEffect:Ae,useDebugValue:Ae,useDeferredValue:function(Ne){return le(),Ne},useTransition:function(){return le(),[function(Ne){Ne()},!1]},useOpaqueIdentifier:function(){return(Ce.identifierPrefix||"")+"R:"+(Ce.uniqueID++).toString(36)},useMutableSource:function(Ne,He){return le(),He(Ne._source)}},Ge={html:"http://www.w3.org/1999/xhtml"};function _e(Ne){switch(Ne){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var Ie={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Le=e({menuitem:!0},Ie),we={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=["Webkit","ms","Moz","O"];Object.keys(we).forEach(function(Ne){ve.forEach(function(He){He=He+Ne.charAt(0).toUpperCase()+Ne.substring(1),we[He]=we[Ne]})});var De=/([A-Z])/g,ze=/^ms-/,Ve=t.Children.toArray,Ke=w.ReactCurrentDispatcher,et={listing:!0,pre:!0,textarea:!0},it=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ft={},Pt={};function Qn(Ne){if(Ne==null)return Ne;var He="";return t.Children.forEach(Ne,function(Xe){Xe!=null&&(He+=Xe)}),He}var ir=Object.prototype.hasOwnProperty,jn={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Zn(Ne,He){if(Ne===void 0)throw Error(n(152,x(He)||"Component"))}function Br(Ne,He,Xe){function ct(ft,Tt){var St=Tt.prototype&&Tt.prototype.isReactComponent,un=z(Tt,He,Xe,St),$n=[],Yr=!1,yr={isMounted:function(){return!1},enqueueForceUpdate:function(){if($n===null)return null},enqueueReplaceState:function(Dt,It){Yr=!0,$n=[It]},enqueueSetState:function(Dt,It){if($n===null)return null;$n.push(It)}};if(St){if(St=new Tt(ft.props,un,yr),typeof Tt.getDerivedStateFromProps=="function"){var dr=Tt.getDerivedStateFromProps.call(null,ft.props,St.state);dr!=null&&(St.state=e({},St.state,dr))}}else if(se={},St=Tt(ft.props,un,yr),St=me(Tt,ft.props,St,un),St==null||St.render==null){Ne=St,Zn(Ne,Tt);return}if(St.props=ft.props,St.context=un,St.updater=yr,yr=St.state,yr===void 0&&(St.state=yr=null),typeof St.UNSAFE_componentWillMount=="function"||typeof St.componentWillMount=="function")if(typeof St.componentWillMount=="function"&&typeof Tt.getDerivedStateFromProps!="function"&&St.componentWillMount(),typeof St.UNSAFE_componentWillMount=="function"&&typeof Tt.getDerivedStateFromProps!="function"&&St.UNSAFE_componentWillMount(),$n.length){yr=$n;var si=Yr;if($n=null,Yr=!1,si&&yr.length===1)St.state=yr[0];else{dr=si?yr[0]:St.state;var Go=!0;for(si=si?1:0;si<yr.length;si++){var $o=yr[si];$o=typeof $o=="function"?$o.call(St,dr,ft.props,un):$o,$o!=null&&(Go?(Go=!1,dr=e({},dr,$o)):e(dr,$o))}St.state=dr}}else $n=null;if(Ne=St.render(),Zn(Ne,Tt),typeof St.getChildContext=="function"&&(ft=Tt.childContextTypes,typeof ft=="object")){var Ki=St.getChildContext();for(var di in Ki)if(!(di in ft))throw Error(n(108,x(Tt)||"Unknown",di))}Ki&&(He=e({},He,Ki))}for(;t.isValidElement(Ne);){var lt=Ne,Je=lt.type;if(typeof Je!="function")break;ct(lt,Je)}return{child:Ne,context:He}}var vr=(function(){function Ne(Xe,ct,lt){t.isValidElement(Xe)?Xe.type!==i?Xe=[Xe]:(Xe=Xe.props.children,Xe=t.isValidElement(Xe)?[Xe]:Ve(Xe)):Xe=Ve(Xe),Xe={type:null,domNamespace:Ge.html,children:Xe,childIndex:0,context:S,footer:""};var Je=O[0];if(Je===0){var ft=O;Je=ft.length;var Tt=2*Je;if(!(65536>=Tt))throw Error(n(304));var St=new Uint16Array(Tt);for(St.set(ft),O=St,O[0]=Je+1,ft=Je;ft<Tt-1;ft++)O[ft]=ft+1;O[Tt-1]=0}else O[0]=O[Je];this.threadID=Je,this.stack=[Xe],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=ct,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=lt&&lt.identifierPrefix||""}var He=Ne.prototype;return He.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var Xe=this.threadID;O[Xe]=O[0],O[0]=Xe}},He.pushProvider=function(Xe){var ct=++this.contextIndex,lt=Xe.type._context,Je=this.threadID;A(lt,Je);var ft=lt[Je];this.contextStack[ct]=lt,this.contextValueStack[ct]=ft,lt[Je]=Xe.props.value},He.popProvider=function(){var Xe=this.contextIndex,ct=this.contextStack[Xe],lt=this.contextValueStack[Xe];this.contextStack[Xe]=null,this.contextValueStack[Xe]=null,this.contextIndex--,ct[this.threadID]=lt},He.clearProviders=function(){for(var Xe=this.contextIndex;0<=Xe;Xe--)this.contextStack[Xe][this.threadID]=this.contextValueStack[Xe]},He.read=function(Xe){if(this.exhausted)return null;var ct=Ce;Ce=this;var lt=Ke.current;Ke.current=Ee;try{for(var Je=[""],ft=!1;Je[0].length<Xe;){if(this.stack.length===0){this.exhausted=!0;var Tt=this.threadID;O[Tt]=O[0],O[0]=Tt;break}var St=this.stack[this.stack.length-1];if(ft||St.childIndex>=St.children.length){var un=St.footer;if(un!==""&&(this.previousWasTextNode=!1),this.stack.pop(),St.type==="select")this.currentSelectValue=null;else if(St.type!=null&&St.type.type!=null&&St.type.type.$$typeof===s)this.popProvider(St.type);else if(St.type===u){this.suspenseDepth--;var $n=Je.pop();if(ft){ft=!1;var Yr=St.fallbackFrame;if(!Yr)throw Error(n(303));this.stack.push(Yr),Je[this.suspenseDepth]+="<!--$!-->";continue}else Je[this.suspenseDepth]+=$n}Je[this.suspenseDepth]+=un}else{var yr=St.children[St.childIndex++],dr="";try{dr+=this.render(yr,St.context,St.domNamespace)}catch(si){throw si!=null&&typeof si.then=="function"?Error(n(294)):si}finally{}Je.length<=this.suspenseDepth&&Je.push(""),Je[this.suspenseDepth]+=dr}}return Je[0]}finally{Ke.current=lt,Ce=ct,Me()}},He.render=function(Xe,ct,lt){if(typeof Xe=="string"||typeof Xe=="number")return lt=""+Xe,lt===""?"":this.makeStaticMarkup?X(lt):this.previousWasTextNode?"<!-- -->"+X(lt):(this.previousWasTextNode=!0,X(lt));if(ct=Br(Xe,ct,this.threadID),Xe=ct.child,ct=ct.context,Xe===null||Xe===!1)return"";if(!t.isValidElement(Xe)){if(Xe!=null&&Xe.$$typeof!=null)throw lt=Xe.$$typeof,Error(lt===r?n(257):n(258,lt.toString()));return Xe=Ve(Xe),this.stack.push({type:null,domNamespace:lt,children:Xe,childIndex:0,context:ct,footer:""}),""}var Je=Xe.type;if(typeof Je=="string")return this.renderDOM(Xe,ct,lt);switch(Je){case M:case y:case o:case a:case d:case i:return Xe=Ve(Xe.props.children),this.stack.push({type:null,domNamespace:lt,children:Xe,childIndex:0,context:ct,footer:""}),"";case u:throw Error(n(294));case v:throw Error(n(343))}if(typeof Je=="object"&&Je!==null)switch(Je.$$typeof){case c:se={};var ft=Je.render(Xe.props,Xe.ref);return ft=me(Je.render,Xe.props,ft,Xe.ref),ft=Ve(ft),this.stack.push({type:null,domNamespace:lt,children:ft,childIndex:0,context:ct,footer:""}),"";case p:return Xe=[t.createElement(Je.type,e({ref:Xe.ref},Xe.props))],this.stack.push({type:null,domNamespace:lt,children:Xe,childIndex:0,context:ct,footer:""}),"";case s:return Je=Ve(Xe.props.children),lt={type:Xe,domNamespace:lt,children:Je,childIndex:0,context:ct,footer:""},this.pushProvider(Xe),this.stack.push(lt),"";case l:Je=Xe.type,ft=Xe.props;var Tt=this.threadID;return A(Je,Tt),Je=Ve(ft.children(Je[Tt])),this.stack.push({type:Xe,domNamespace:lt,children:Je,childIndex:0,context:ct,footer:""}),"";case m:throw Error(n(338));case h:return Je=Xe.type,ft=Je._init,Je=ft(Je._payload),Xe=[t.createElement(Je,e({ref:Xe.ref},Xe.props))],this.stack.push({type:null,domNamespace:lt,children:Xe,childIndex:0,context:ct,footer:""}),""}throw Error(n(130,Je==null?Je:typeof Je,""))},He.renderDOM=function(Xe,ct,lt){var Je=Xe.type.toLowerCase();if(!Ft.hasOwnProperty(Je)){if(!it.test(Je))throw Error(n(65,Je));Ft[Je]=!0}var ft=Xe.props;if(Je==="input")ft=e({type:void 0},ft,{defaultChecked:void 0,defaultValue:void 0,value:ft.value!=null?ft.value:ft.defaultValue,checked:ft.checked!=null?ft.checked:ft.defaultChecked});else if(Je==="textarea"){var Tt=ft.value;if(Tt==null){Tt=ft.defaultValue;var St=ft.children;if(St!=null){if(Tt!=null)throw Error(n(92));if(Array.isArray(St)){if(!(1>=St.length))throw Error(n(93));St=St[0]}Tt=""+St}Tt==null&&(Tt="")}ft=e({},ft,{value:void 0,children:""+Tt})}else if(Je==="select")this.currentSelectValue=ft.value!=null?ft.value:ft.defaultValue,ft=e({},ft,{value:void 0});else if(Je==="option"){St=this.currentSelectValue;var un=Qn(ft.children);if(St!=null){var $n=ft.value!=null?ft.value+"":un;if(Tt=!1,Array.isArray(St)){for(var Yr=0;Yr<St.length;Yr++)if(""+St[Yr]===$n){Tt=!0;break}}else Tt=""+St===$n;ft=e({selected:void 0,children:void 0},ft,{selected:Tt,children:un})}}if(Tt=ft){if(Le[Je]&&(Tt.children!=null||Tt.dangerouslySetInnerHTML!=null))throw Error(n(137,Je));if(Tt.dangerouslySetInnerHTML!=null){if(Tt.children!=null)throw Error(n(60));if(!(typeof Tt.dangerouslySetInnerHTML=="object"&&"__html"in Tt.dangerouslySetInnerHTML))throw Error(n(61))}if(Tt.style!=null&&typeof Tt.style!="object")throw Error(n(62))}Tt=ft,St=this.makeStaticMarkup,un=this.stack.length===1,$n="<"+Xe.type;e:if(Je.indexOf("-")===-1)Yr=typeof Tt.is=="string";else switch(Je){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":Yr=!1;break e;default:Yr=!0}for(It in Tt)if(ir.call(Tt,It)){var yr=Tt[It];if(yr!=null){if(It==="style"){var dr=void 0,si="",Go="";for(dr in yr)if(yr.hasOwnProperty(dr)){var $o=dr.indexOf("--")===0,Ki=yr[dr];if(Ki!=null){if($o)var di=dr;else if(di=dr,Pt.hasOwnProperty(di))di=Pt[di];else{var Dt=di.replace(De,"-$1").toLowerCase().replace(ze,"-ms-");di=Pt[di]=Dt}si+=Go+di+":",Go=dr,$o=Ki==null||typeof Ki=="boolean"||Ki===""?"":$o||typeof Ki!="number"||Ki===0||we.hasOwnProperty(Go)&&we[Go]?(""+Ki).trim():Ki+"px",si+=$o,Go=";"}}yr=si||null}dr=null,Yr?jn.hasOwnProperty(It)||(dr=It,dr=L(dr)&&yr!=null?dr+'="'+(X(yr)+'"'):""):dr=Q(It,yr),dr&&($n+=" "+dr)}}St||un&&($n+=' data-reactroot=""');var It=$n;Tt="",Ie.hasOwnProperty(Je)?It+="/>":(It+=">",Tt="</"+Xe.type+">");e:{if(St=ft.dangerouslySetInnerHTML,St!=null){if(St.__html!=null){St=St.__html;break e}}else if(St=ft.children,typeof St=="string"||typeof St=="number"){St=X(St);break e}St=null}return St!=null?(ft=[],et.hasOwnProperty(Je)&&St.charAt(0)===`
`&&(It+=`
`),It+=St):ft=Ve(ft.children),Xe=Xe.type,lt=lt==null||lt==="http://www.w3.org/1999/xhtml"?_e(Xe):lt==="http://www.w3.org/2000/svg"&&Xe==="foreignObject"?"http://www.w3.org/1999/xhtml":lt,this.stack.push({domNamespace:lt,type:Je,children:ft,childIndex:0,context:ct,footer:Tt}),this.previousWasTextNode=!1,It},Ne})();return wA.renderToNodeStream=function(){throw Error(n(207))},wA.renderToStaticMarkup=function(Ne,He){Ne=new vr(Ne,!0,He);try{return Ne.read(1/0)}finally{Ne.destroy()}},wA.renderToStaticNodeStream=function(){throw Error(n(208))},wA.renderToString=function(Ne,He){Ne=new vr(Ne,!1,He);try{return Ne.read(1/0)}finally{Ne.destroy()}},wA.version="17.0.2",wA}var JQe;function x4i(){return JQe||(JQe=1,Ope.exports=C4i()),Ope.exports}var w4i=x4i();const S4i=e=>e.toTimeString().split(" ")[0],A4i=(e,t,n)=>{const r=e*t;return new Date(n.getTime()+r*1e3)},eZe=e=>e.split(" ")[0];Rt(e=>({sliderContainer:{position:"relative",height:40,marginBottom:e.spacing(4)},currentLabel:{position:"absolute",top:20,transform:"translateX(-50%)",textAlign:"center",fontSize:"0.875rem"}}));const LTt=({startTime:e,endTime:t,initialValue:n,onTimeChange:r})=>{const[i,o]=b.useState(1),a=b.useMemo(()=>von({overrides:{MuiSlider:{root:{height:8},thumb:{color:"#3f51b5",height:20,width:20,marginTop:-7},track:{color:"#3f51b5",height:8},rail:{color:"green",height:8}}}}),[]),s=b.useMemo(()=>Math.floor((t.getTime()-e.getTime())/1e3)-i*2,[e,t]),l=b.useMemo(()=>Math.floor(s/i),[s,i]),[c,u]=b.useState(()=>Math.floor(l/2)),d=b.useCallback((g,m)=>{const v=Array.isArray(m)?m[0]:m;u(v);const y=A4i(v,i,e);r(y,S4i(y))},[r,i,e]),p=()=>(e.setSeconds(e.getSeconds()+i),[{value:0,label:eZe(Wn(e,"HH:mm:ss"))},{value:l,label:eZe(Wn(t,"HH:mm:ss"))}]),h=b.useMemo(()=>p(),[p]);return f.jsx(C3,{theme:a,children:f.jsx(D,{container:!0,spacing:2,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ldn,{defaultValue:c,onChange:d,step:1,marks:h,min:0,max:l})})})})},O4i=async(e,t,n=!1)=>{const r=new Ye,i=[];return i.push({name:"ShiftId",value:e}),i.push({name:"DelayAreaAssetId",value:t}),i.push({name:"IncludeMicrodelays",value:n}),await r.callV2("[DEL].[GetDelaysByShift]",i)},_Tt=async(e,t,n,r,i,o,a,s,l,c)=>{const u=new Ye,d=[];return d.push({name:"DelayId",value:e}),d.push({name:"AssetId",value:t}),d.push({name:"Start",value:n?n.toISOString():null}),d.push({name:"End",value:r?r.toISOString():null}),d.push({name:"DelayCodeId",value:i}),d.push({name:"DelayCategoryId",value:o}),d.push({name:"Comments",value:a}),d.push({name:"WhatDescription",value:s}),d.push({name:"WhyDescription",value:l}),d.push({name:"SolutionDescription",value:c}),await u.callV2("[DEL].[UpsertManualDelay]",d)},oTe=async(e,t,n,r,i,o,a)=>{const s=new Ye,l=[];return l.push({name:"DelayId",value:e}),l.push({name:"DelayCodeId",value:t}),l.push({name:"DelayCategoryId",value:n}),l.push({name:"Comments",value:r}),l.push({name:"WhatDescription",value:i}),l.push({name:"WhyDescription",value:o}),l.push({name:"SolutionDescription",value:a}),await s.callV2("[DEL].[JustifyDelay]",l)},z4i=async e=>{const t=new Ye,n=[];return n.push({name:"DelayAreaAssetId",value:e}),await t.callV2("[DEL].[GetDelayCodes]",n)},T4i=async e=>{const t=new Ye,n=[];return n.push({name:"DelayId",value:e}),await t.callV2("[DEL].[GetDelay]",n)},E4i=async e=>{const t=new Ye,n=[];return n.push({name:"DelayId",value:e}),await t.callV2("[DEL].[DeleteManualDelay]",n)},NTt=async(e,t)=>{const n=new Ye,r=e.End?.toISOString(),i=[{name:"DelayId",value:e.DelayId},{name:"SplitTime",value:r},{name:"DelayCodeId1",value:e.DelayCodeId},{name:"DelayCodeId2",value:t.DelayCodeId},{name:"DelayCategoryId1",value:e.DelayCategoryId},{name:"DelayCategoryId2",value:t.DelayCategoryId},{name:"Comments1",value:e.Comments},{name:"Comments2",value:t.Comments}];return await n.callV2("[DEL].[SplitDelay]",i)},R4i=Rt(e=>({sliderContainer:{position:"relative",marginBottom:e.spacing(4),paddingTop:e.spacing(3)},durationLabel:{position:"absolute",top:0,transform:"translateX(-50%)",textAlign:"center",fontSize:"0.75rem",backgroundColor:"rgba(255, 255, 255, 0.7)",padding:"2px 4px",borderRadius:"4px",fontWeight:"bold"},infoLabel:{fontSize:12,color:"#757575"},commentsInput:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},"& .MuiOutlinedInput-input":{height:"100px !important"}}})),tZe=e=>{const t=Math.floor(e/36e5),n=Math.floor(e%(1e3*60*60)/(1e3*60)),r=Math.floor(e%(1e3*60)/1e3);return`${t} hs ${n} min ${r} sec`},I4i=({show:e,onHide:t,delay:n,refreshData:r})=>{const o=R4i(),[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState(null),[p,h]=b.useState(!1),[g,m]=b.useState(!1),v=new Date,y=new Date;v.setMinutes(y.getMinutes()-30);const M=n?.Start?mt.utc(n.Start).toDate():new Date,C=n?.End?mt.utc(n.End).toDate():new Date,x=async q=>{const $=q.delay1.End.getTime()-q.delay1.Start.getTime(),U=q.delay2.End.getTime()-q.delay2.Start.getTime();if($<=10*1e3||U<=10*1e3){m(!0);return}const X=await NTt(q.delay1,q.delay2);X.ok?(h(!0),await r()):c(X.message),t()},{searchDelays:w}=R3e({setSearchError:c,setAllDelayLoading:s}),{loadFilterDelays:S}=mte(),{state:{allDelayCodes:A,delayCodes:z}}=jb(),{state:{categories:O}}=EM(),{control:T,handleSubmit:I,setValue:P,getValues:N,reset:F,formState:{errors:L}}=Gn({});b.useEffect(()=>{e&&n&&(F(),(async()=>{s(!0);const q=new Date((M.getTime()+C.getTime())/2);P("delay1.DelayId",n.DelayId),P("delay1.Start",M),P("delay1.End",q),P("delay2.Start",q),P("delay2.End",C),P("delay1.DelayCategoryId",n.DelayCategoryId),P("delay1.Comments",n.Comments),P("delay1.DelayCodeId",n.DelayCodeId),d(q),w(n.AssetId?n.AssetId:0),s(!1)})())},[e,n]);const W=tZe((N("delay1.End")?.getTime()??M.getTime())-(N("delay1.Start")?.getTime()??M.getTime())),H=tZe((N("delay2.End")?.getTime()??M.getTime())-(N("delay2.Start")?.getTime()??M.getTime()));b.useEffect(()=>{if(A.length>0){S();const q=A.find($=>$.DelayCodeId===n?.DelayCodeId);q&&P("delay1.DelayCodeName",q.DelayCodeName)}},[A]);const[j,G]=b.useState(n?.Start);return f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Split Delay"}),f.jsx(We,{title:"SPLIT DELAY",open:e,handleClose:()=>t(),id:"create-grade-modal",maxWidth:"lg",children:f.jsxs("form",{onSubmit:I(x),children:[f.jsx(We.Content,{dividers:!0,children:f.jsxs(D,{container:!0,justifyContent:"center",children:[f.jsxs(D,{md:10,style:{marginBottom:10},className:o.sliderContainer,children:[f.jsx(bt,{className:o.durationLabel,style:{left:"25%",color:"#3f51b5"},children:W}),f.jsx(bt,{className:o.durationLabel,style:{left:"75%",color:"green"},children:H}),f.jsx(LTt,{startTime:M,endTime:C,initialValue:u,onTimeChange:q=>{G(q),P("delay1.End",q),P("delay2.Start",q)}})]}),f.jsxs(D,{container:!0,md:5,children:[f.jsx(bt,{children:"Delay 1"}),f.jsxs(D,{container:!0,md:12,spacing:1,style:{marginTop:10},children:[f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.Start",control:T,rules:{required:"Delay code is required"},render:({field:q})=>f.jsx(je,{label:"Start",variant:"outlined",value:Wn(q?.value,"HH:mm:ss"),error:!!L.delay1?.Start,onChange:()=>{},disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.DelayCodeName",control:T,render:({field:q})=>f.jsxs(f.Fragment,{children:[f.jsx(tD,{inputTitle:"Delay",title:"Delay",dataSource:z,value:n?.DelayCodeId||0,description:q.value?q?.value:"",onSelect:($,U)=>{P("delay1.DelayCodeId",$),P("delay1.DelayCodeName",U),P("delay1.DelayCategoryId",A.find(X=>$===X.DelayCodeId)?.DelayCategoryId||null)},selectBranch:!0,selectActive:!1,selectInternal:!1}),L.delay1?.DelayCodeId&&f.jsx("span",{children:L.delay1?.DelayCodeId.message})]})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.End",control:T,render:({field:q})=>f.jsx(je,{label:"End",variant:"outlined",value:Wn(q?.value,"HH:mm:ss"),disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"delay1.DelayCategoryId",control:T,render:({field:q})=>f.jsx(uM,{value:q.value,onChange:q.onChange,assetId:n?.AssetId||null,error:L.delay1?.DelayCategoryId?.message||""})})}),f.jsx(D,{item:!0,md:12,children:f.jsx(Ue,{name:"delay1.Comments",control:T,render:({field:q})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",error:!!L.delay1?.Comments,value:q?.value,fullWidth:!0,maxRows:5,multiline:!0,margin:"dense",autoComplete:"off",onChange:$=>{$.target.value.length<=200&&P("delay1.Comments",$.target.value)}}),N("delay1.Comments")?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${N("delay1.Comments")?.length??0}/200 max.`}),N("delay1.Comments")?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})})})]})]}),f.jsx(D,{md:1}),f.jsxs(D,{container:!0,md:5,children:[f.jsx(bt,{children:"Delay 2"}),f.jsxs(D,{container:!0,md:12,spacing:1,style:{marginTop:10},children:[f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.Start",control:T,render:({field:q})=>f.jsx(je,{label:"Start",variant:"outlined",value:Wn(q?.value,"HH:mm:ss"),error:!!L.delay2?.Start,disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.DelayCodeName",control:T,render:({field:q})=>f.jsxs(f.Fragment,{children:[f.jsx(tD,{inputTitle:"Delay",title:"Delay",dataSource:z,value:n?.DelayCodeId||0,description:q.value?q?.value:"",onSelect:($,U)=>{P("delay2.DelayCodeId",$),P("delay2.DelayCodeName",U),P("delay2.DelayCategoryId",A.find(X=>$===X.DelayCodeId).DelayCategoryId)},selectBranch:!0,selectActive:!1,selectInternal:!1}),L.delay2?.DelayCodeId&&f.jsx("span",{children:L.delay2?.DelayCodeId.message})]})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.End",control:T,render:({field:q})=>f.jsx(je,{label:"End",variant:"outlined",value:Wn(q?.value,"HH:mm:ss"),disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"delay2.DelayCategoryId",control:T,render:({field:q})=>f.jsx(uM,{value:q.value,onChange:q.onChange,assetId:n?.AssetId||null,error:L.delay2?.DelayCategoryId?.message||""})})}),f.jsx(D,{item:!0,md:12,children:f.jsx(Ue,{name:"delay2.Comments",control:T,render:({field:q})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",error:!!L.delay1?.Comments,value:q?.value,fullWidth:!0,minRows:5,multiline:!0,margin:"dense",autoComplete:"off",onChange:$=>{$.target.value.length<=200&&P("delay2.Comments",$.target.value)}}),N("delay2.Comments")?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${N("delay2.Comments")?.length??0}/200 max.`}),N("delay2.Comments")?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})})})]})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 90px 30px"},children:f.jsxs(D,{container:!0,spacing:1,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:2,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"medium",children:"Cancel"})}),f.jsx(D,{item:!0,md:2,xs:12,children:f.jsx(Fe,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:"primary",type:"submit",size:"medium",children:"Split"})})]})})]})}),f.jsx(pr,{open:g,autoHideDuration:2500,onClose:()=>m(!1),children:f.jsxs(Pr,{elevation:6,variant:"filled",severity:"error",onClose:()=>m(!1),children:["The minimum duration allowed is ",10," seconds"]})}),f.jsx(pr,{open:p,autoHideDuration:2500,onClose:()=>h(!1),children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:()=>h(!1),children:"The operation was completed successfully"})}),f.jsx(Mt,{error:l,onHide:()=>c(""),title:"Error Creating Grade"})]})},P4i={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:0,NextProductionDate:null,NextProductionShift:0,NextShift:"",NextCrew:"",NextStart:null,NextEnd:null,LastShiftId:0,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastCrew:"",LastStart:new Date,LastEnd:new Date},delays:[],assetForDelayArea:null,selectedDelay:null,errorMessage:"",notificationMessage:"",shiftId:!1,anchorPoint:{x:0,y:0}},NY=Ni({name:"__",initialState:P4i,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setShiftInfo(e,{payload:t}){e.shiftInfo=t},setDelays(e,{payload:t}){e.delays=t},setAssetForDelayArea(e,{payload:t}){e.assetForDelayArea=t},setSelectedDelay(e,{payload:t}){e.selectedDelay=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setShiftId(e,{payload:t}){e.shiftId=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t}}}),FTt=b.createContext({state:NY.getInitialState(),actions:NY.actions}),d6=()=>b.useContext(FTt),D4i=({children:e})=>{const{shiftId:t}=Ms(),[n,r]=Ui.useComplexState({initialState:NY.getInitialState(),reducers:NY.caseReducers});return b.useEffect(()=>{const i=Number(t);gi(t)||isNaN(i)?r.setShiftId(null):r.setShiftId(i)},[t]),f.jsx(FTt.Provider,{value:{state:n,actions:r},children:e})},k4i=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(""),{actions:{setSelectedDelay:u}}=d6(),{shiftInfo:d}=la(),p=b.useCallback(()=>{u({DelayId:0,eafOpen:d?.CurrentProductionDate??new Date,eafClose:d?.CurrentProductionDate??new Date,eafOpenString:"",eafCloseString:"",IsActive:!0}),t(!0)},[d?.CurrentProductionDate,u]),h=M=>{u(M),M.IsManual&&t(!0)},g=M=>{u(M),o(!0)},m=M=>{u(M),s(!0)},v=M=>{u(M);const C=Wn(M.Start,"HH:mm:ss");c(`The delay at ${C} will be deleted. Do you want to continue?`),r(!0)};return{createData:p,editData:h,deleteData:v,justifyData:g,getMenuOptions:M=>{let C=[];return M?C=C.concat([{name:"Justify Delay",key:"justify_delay",onClick:()=>g(M),icon:f.jsx(FMe,{})},{name:"Edit Delay",key:"edit_delay",onClick:()=>h(M),icon:f.jsx(No,{}),disabled:!M.IsManual},{name:"Delete Delay",key:"delete_delay",onClick:()=>v(M),icon:f.jsx(Mo,{}),disabled:!M.IsManual},{name:"Split Delay",key:"split_delay",onClick:()=>m(M),icon:f.jsx(Bat,{})},{name:"New Delay",key:"create_new_delay",onClick:()=>p(),icon:f.jsx(Zo,{})}]):C=C.concat([{name:"New Delay",key:"create_new_delay",onClick:()=>p(),icon:f.jsx(Zo,{})}]),C},showDeleteModal:n,showEditModal:e,showJustifyModal:i,showSplitModal:a,messageDeleteModal:l,setShowDeleteModal:r,setShowEditModal:t,setShowJustifyModal:o,setShowSplitModal:s,setMessageDeleteModal:c}},L4i=Rt(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center",fontSize:12},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600}},buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",display:"flex",width:"100%",justifyContent:"space-around",".ag-row-hover &":{opacity:1}},btnModal:{display:"flex",justifyContent:"flex-end"}})),_4i=Lot(ja)({width:"100%","& .MuiInputBase-root":{height:"40px",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.23)","&:before, &:after":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}},"& .MuiInputLabel-root":{transform:"translate(14px, 8px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)",backgroundColor:"white",padding:"0 4px"}},"& .MuiSelect-select":{paddingTop:"0",paddingBottom:"0",height:"100%",display:"flex",alignItems:"center"}}),zpe="__ASSET_FILTER_NULL_VALUE__",N4i=({value:e,onChange:t,title:n="Assets",nullValue:r="All",onlyAssets:i=!1,customStyles:o={},disabled:a=!1})=>{const[s,l]=b.useState(!1),[c,u]=b.useState(""),[d,p]=b.useState([]),h=async()=>{l(!0);const m=await yte();if(m.ok){const v=m.data.tables[0].rows||[];if(i){const y=v.filter(M=>M.AssetName!=="EAF");p(y)}else p(v)}else u(m.message||"Failed to load assets");l(!1)};b.useEffect(()=>{(async()=>await h())()},[]);const g=E.useMemo(()=>{const m=[{value:zpe,label:r}];return d.forEach(v=>{m.push({value:v.AssetId,label:v.AssetName})}),m},[d,r]);return f.jsxs(f.Fragment,{children:[f.jsxs(_4i,{variant:"outlined",children:[f.jsx(il,{id:"delay-area-label",style:{paddingTop:4},children:n}),f.jsx(ls,{disabled:a,labelId:"delay-area-label",value:e===null?zpe:e,endAdornment:s&&f.jsx(Kt,{size:20}),label:n,style:o,onChange:m=>{const v=m.target.value;t(v===zpe?null:Number(v))},children:g.map(m=>f.jsx(sr,{value:m.value,children:m.label},m.value))})]}),f.jsx(Mt,{error:c,onHide:()=>u("")})]})},GI=({options:e,value:t,onChange:n,label:r="",className:i=""})=>{const[o,a]=b.useState(t||""),s=hut();b.useEffect(()=>{a(t||"")},[t]);const l=(c,u)=>{const d=s(c,u),p=u.inputValue;return p&&d.indexOf(p)===-1&&d.unshift(p),d};return f.jsx(Ji,{freeSolo:!0,options:e,value:t,inputValue:o,filterOptions:l,onInputChange:(c,u,d)=>{a(u),d==="clear"&&n(null)},onChange:(c,u)=>{n(!u||u===""?null:u)},autoHighlight:!0,clearOnEscape:!0,renderInput:c=>{const{InputProps:u,inputProps:d,...p}=c,h=d;return f.jsx(je,{...p,InputProps:u,inputProps:{...h,onBlur:g=>{h.onBlur?.(g),o?o!==t&&n(o):n(null)}},label:r,variant:"outlined",fullWidth:!0,size:"small",className:i})}})},F4i=Rt(()=>({treePickerWrapper:{"& .MuiGrid-root.MuiGrid-container":{"& .MuiGrid-item":{"& .MuiFormControl-root":{"& .MuiInputBase-root":{"& .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5",height:"59px"}}}}}}})),W4i=e=>{const t=e.reduce((r,i,o)=>(r[i.id]=o,r),{});let n;return e.forEach(r=>{if(r.parentId===null){n=r;return}const i=e[t[r.parentId]];i&&(i.children=[...i?.children||[],r])}),n},aTe=({value:e,onChange:t,disabled:n,error:r,assetId:i})=>{const[o,a]=b.useState([]),[s,l]=b.useState(null),[c,u]=b.useState(!1),[d,p]=b.useState(null),h=F4i(),g=P3e(),m=async()=>{u(!0);try{const v=await z4i(i);if(v&&v.ok){const y=Ot(v,"data.tables[0].rows",[]);a(y);const M=W4i(y.map(C=>({id:C.DelayCodeId,parentId:C.ParentDelayCodeId,name:C.DelayCodeName,isLeaf:!!C.IsLeaf,isActive:!0,children:[],delayCategoryId:C.DelayCategoryId})));l(M)}else p("Failed to fetch delay codes.")}catch{p("An error occurred while fetching delay codes.")}finally{u(!1)}};return b.useEffect(()=>{i&&m()},[i]),f.jsxs("div",{className:h.treePickerWrapper,children:[s&&!c?f.jsx(a3e,{inputTitle:"Code",title:"Code",dataSource:s,value:e||0,onSelect:(v,y)=>t(v,o.find(M=>M.DelayCodeId===v)),selectBranch:!0,selectActive:!1,selectInternal:!1}):f.jsx(je,{disabled:!0,value:e,InputProps:{endAdornment:c?f.jsx(Kt,{size:20}):null},label:"Code",variant:"outlined",style:{cursor:"progress"},className:g.inputBase}),r&&f.jsx("span",{style:{color:"red"},children:r})]})};var P5={},nZe;function q4i(){if(nZe)return P5;nZe=1;var e=ri(),t=ii();Object.defineProperty(P5,"__esModule",{value:!0}),P5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");return P5.default=i,P5}var B4i=q4i();const WTt=qn(B4i);var D5={},rZe;function j4i(){if(rZe)return D5;rZe=1;var e=ri(),t=ii();Object.defineProperty(D5,"__esModule",{value:!0}),D5.default=void 0;var n=t(Wr()),r=e(oi()),i=(0,r.default)(n.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");return D5.default=i,D5}var H4i=j4i();const qTt=qn(H4i),V4i=Rt(()=>({dateTimePicker:{},"@global":{"*::-webkit-scrollbar":{width:"10px",background:"#fff"},"*::-webkit-scrollbar-thumb":{backgroundColor:"	#C8C8C8"},"*::-webkit-scrollbar-track":{borderRadius:"10px"},"*::-webkit-scrollbar:horizontal":{height:"10px"}},infoLabel:{fontSize:12,color:"#757575"},inputEditable:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}},treePickerWrapper:{"& .MuiGrid-root.MuiGrid-container":{"& .MuiGrid-item":{"& .MuiFormControl-root":{"& .MuiInputBase-root":{"& .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}}}}}},autocompleteWithSuggestions:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}},commentsInput:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},"& .MuiOutlinedInput-input":{height:"60px !important"}}})),G4i=({show:e,onHide:t,refreshData:n,delay:r,ifJustified:i})=>{const o=V4i();P3e();const[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(null),[p,h]=b.useState(!1),[g,m]=b.useState(""),[v,y]=b.useState(""),[M,C]=b.useState(!1),[x,w]=b.useState([]),[S,A]=b.useState([]),[z,O]=b.useState([]),{state:{settings:T}}=ka(),{state:{defaultAreaId:I}}=Bw(),{actions:{setNotificationMessage:P,setErrorMessage:N,setSelectedDelay:F}}=d6(),{loadFilterDelays:L}=mte(),W=Ot(T,"DELAYS_JUSTIFY_DURATION_TOLERANCE_IN_MINUTES",30),H=b.useMemo(()=>r?.Duration&&W?r.Duration>Number(W)*60:!0,[r?.Duration,W]),[j,G]=b.useState(H),q=async()=>{const le=await S3t();if(le.ok){const he=le.data;w(he.tables[0].rows.map(be=>be.Value)),A(he.tables[1].rows.map(be=>be.Value)),O(he.tables[2].rows.map(be=>be.Value))}else N(le.message)},{register:$,setValue:U,control:X,handleSubmit:Q,reset:re,watch:ee,formState:{errors:se}}=Gn({defaultValues:{AssetId:r?.AssetId}}),pe=ee("Comments"),te=ee("Start"),ce=ee("End"),oe=ee("AssetId"),ae=(le,he)=>{U("DelayCodeId",le),U("DelayCategoryId",he.DelayCategoryId)},ne=async le=>{if(s(!0),i){const he=await oTe(le.DelayId,le.DelayCodeId??null,le.DelayCategoryId??null,le.Comments??null,le.WhatDescription,le.WhyDescription,le.SolutionDescription);he.ok?(P("Delay was justified successfully"),F(null),await n()):N(he.message)}else{const he=await _Tt(le.DelayId===0?null:le.DelayId,le.AssetId,le.Start,le.End,le.DelayCodeId,le.DelayCategoryId,le.Comments,le.WhatDescription,le.WhyDescription,le.SolutionDescription);he.ok?(P("Delay was "+(p?"created":"edited")+" successfully"),F(null),await n()):N(he.message)}s(!1),t(!0)};return b.useEffect(()=>{e&&(c(!0),s(!1),(async()=>(L(),r&&(r?.DelayId===0?(re(),h(!0)):h(!1),m(i?"Justify Delay":r.DelayId===0?"New Delay":"Edit Delay"),re({AssetId:r.AssetId??(I&&I!=10?Number(I):null),DelayCodeId:r.DelayCodeId,DelayId:r.DelayId,Start:r.Start===null?null:mt.utc(r.Start).toDate(),End:r.End===null?null:mt.utc(r.End).toDate(),DelayCategoryId:r.DelayCategoryId,Comments:r.Comments,IsManual:r.IsManual,DelayCodeName:r.DelayCodeName,WhatDescription:r.WhatDescription,WhyDescription:r.WhyDescription,SolutionDescription:r.SolutionDescription}))))(),q(),c(!1))},[e,r]),b.useEffect(()=>{G(H)},[H,r]),b.useEffect(()=>{if(te&&ce){const le=mt.duration(mt(ce).diff(mt(te))),he=Math.floor(le.asMinutes()),be=le.seconds();y(`${he}m ${be}s`)}else y("")},[te,ce]),M?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:g}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,className:o.dateTimePicker,children:f.jsx(We,{maxWidth:"md",open:e,handleClose:()=>{t(!0)},id:"upsertDelay",title:g.toUpperCase(),children:f.jsxs("form",{onSubmit:Q(ne),children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!l&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,spacing:1,style:{alignItems:"center"},children:[f.jsxs(D,{item:!0,xs:4,md:4,children:[f.jsx(Ue,{name:"Start",control:X,rules:{required:"Start date is required",validate:{notAfterEnd:le=>{const he=ee("End");return le&&he&&le>he?"Start date cannot be after End date.":!0},notInFuture:le=>le&&le>new Date?"Start date cannot be in the future.":!0}},render:({field:le})=>f.jsx(Cd,{disabled:i,label:"Delay Start",timezone:Rc.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm:ss",ampm:!1,value:mt(le.value),onChange:le.onChange,inputRef:le.ref,slotProps:{textField:{variant:"outlined",size:"small",error:!!se.Start}}})}),se.Start&&f.jsx("p",{style:{color:"red"},children:se.Start.message})]}),f.jsxs(D,{item:!0,xs:4,md:4,children:[f.jsx(Ue,{name:"End",control:X,rules:{validate:{notBeforeStart:le=>{const he=ee("Start");return le&&he&&le<he?"End date cannot be before Start date.":!0},notInFuture:le=>le&&le>new Date?"End date cannot be in the future.":!0,notSameAsStart:le=>{const he=ee("Start");return le&&he&&mt(le).isSame(mt(he))?"End date cannot be the same as Start date.":!0}}},render:({field:le})=>f.jsx(Cd,{disabled:i,label:"Delay End",format:"MM/DD/YYYY HH:mm:ss",ampm:!1,timezone:Rc.getInstance().getServerTimeZone(),value:mt(le.value),onChange:le.onChange,inputRef:le.ref,slotProps:{textField:{variant:"outlined",size:"small",error:!!se.End}}})}),se.End&&f.jsx("p",{style:{color:"red"},children:se.End.message})]}),f.jsx(D,{item:!0,xs:4,md:4,style:{marginBottom:"3px"},children:f.jsx(je,{label:"Duration (min)",disabled:!0,variant:"outlined",fullWidth:!0,value:v,margin:"dense",autoComplete:"off"})})]}),f.jsxs(D,{container:!0,spacing:1,style:{alignItems:"center",marginTop:"12px"},children:[f.jsxs(D,{item:!0,xs:4,md:4,children:[f.jsx(Ue,{name:"AssetId",control:X,rules:{validate:le=>le==14?"Choose an option to continue":le?!0:"Asset is required"},render:({field:le})=>f.jsx(N4i,{value:le.value,onChange:le.onChange,onlyAssets:!0,title:"Asset",nullValue:"",disabled:i,customStyles:{height:"52px",border:i?"":`2px solid ${se.AssetId?"red":"#3F51B5"}`}})}),se.AssetId&&f.jsx("span",{style:{color:"red"},children:se.AssetId.message})]}),f.jsx(D,{item:!0,xs:4,md:4,style:{marginBottom:"3px"},children:f.jsx(Ue,{name:"DelayCodeId",control:X,render:({field:le})=>f.jsx(aTe,{assetId:oe,value:le.value,disabled:!oe,onChange:(he,be)=>{ae(he,be)}},`DelayCodeId-${oe}`)})}),f.jsx(D,{item:!0,xs:4,md:4,children:f.jsx(Ue,{name:"DelayCategoryId",control:X,render:({field:le})=>f.jsx(uM,{value:le.value,onChange:le.onChange,assetId:oe,error:se.DelayCategoryId?.message||""})})})]}),f.jsxs(D,{item:!0,md:12,xs:12,style:{marginTop:"12px"},children:[f.jsx(Ue,{name:"Comments",control:X,render:({field:{value:le,onChange:he}})=>f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",style:{margin:"8px 0"},maxRows:4,fullWidth:!0,margin:"dense",multiline:!0,autoComplete:"off",value:le??"",onChange:be=>{be.target.value.length<=200&&he(be)}})}),f.jsx(D,{container:!0,style:{marginBottom:18},spacing:1,children:f.jsxs(D,{item:!0,children:[pe?.length>=1&&pe?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${pe?.length}/200 max.`}),pe?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Io,{control:f.jsx(Qr,{...$("IsManual"),color:"primary",checked:p||r?.IsManual,disabled:!0}),label:"Manual Delay"})})]}),f.jsxs(D,{item:!0,xs:12,md:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(Fe,{onClick:()=>G(le=>!le),color:"primary",startIcon:j?f.jsx(WTt,{}):f.jsx(qTt,{}),children:"Upset Conditions"})}),j&&f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"WhatDescription",control:X,render:({field:le})=>f.jsx(GI,{options:x,value:le.value,onChange:le.onChange,label:"What",className:o.autocompleteWithSuggestions})})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"WhyDescription",control:X,render:({field:le})=>f.jsx(GI,{options:S,value:le.value,onChange:le.onChange,label:"Why",className:o.autocompleteWithSuggestions})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"SolutionDescription",control:X,render:({field:le})=>f.jsx(GI,{options:z,value:le.value,onChange:le.onChange,label:"Solution",className:o.autocompleteWithSuggestions})})})]})," "]})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})})})}),f.jsx(Mt,{error:u,onHide:()=>d("")})]})},$4i=Rt(e=>({textField:{"& .MuiOutlinedInput-input":{height:"60px !important"}}})),U4i=({delay:e,onHide:t,open:n})=>{const r=$4i();return f.jsx(f.Fragment,{children:f.jsxs(We,{open:n,handleClose:t,id:"upset-condition-modal",title:"Upset Conditions",maxWidth:"md",children:[f.jsx(We.Content,{children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{variant:"outlined",fullWidth:!0,size:"small",label:"What",value:e?.WhatDescription,disabled:!0,multiline:!0,className:r.textField})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{variant:"outlined",fullWidth:!0,size:"small",multiline:!0,label:"Why",value:e?.WhyDescription,disabled:!0,className:r.textField})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{variant:"outlined",fullWidth:!0,size:"small",multiline:!0,label:"Solution",value:e?.SolutionDescription,disabled:!0,className:r.textField})})]})}),f.jsx(We.Actions,{children:f.jsx(D,{container:!0,spacing:2,justifyContent:"flex-end",children:f.jsx(D,{item:!0,md:3,xs:3,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"primary",onClick:t,size:"small",children:"Close"})})})})]})})},X4i=Rt({container:{display:"flex",alignItems:"center",justifyContent:"flex-start",width:"100%"},colorCircle:{width:"26px",height:"26px",borderRadius:4,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:"bold",marginRight:"8px"}}),Ote=({value:e})=>{const t=X4i();return!e||!e.name||!e.color?null:f.jsxs(D,{container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,md:2,children:f.jsx("div",{title:e.name,className:t.colorCircle,style:{backgroundColor:e.color},children:e.name.charAt(0).toUpperCase()})}),f.jsx(D,{item:!0,justifyContent:"center",md:10,children:e.name})]})},Y4i=({})=>({columns:[{field:"AssetName",headerName:"Asset",maxWidth:95,minWidth:95,editable:!1,flex:1},{field:"Start",headerName:"Start",valueGetter:t=>Wn(`${t.data?.Start}`,"HH:mm:ss")||"",minWidth:80,flex:1},{field:"End",headerName:"End",valueGetter:t=>Wn(`${t.data?.End}`,"HH:mm:ss")||"",minWidth:80,flex:1},{field:"Duration",headerName:"Duration",valueFormatter:t=>{if(t.value){const n=mt.duration(t.value,"seconds"),r=Math.floor(n.asMinutes()),i=n.seconds();return`${r}m ${i}s`}return""},minWidth:110,flex:1},{field:"DelayCategory",headerName:"Category",valueGetter:t=>{const n=t.data?.DelayCategoryName,r=t.data?.DelayCategoryColor;return{name:n,color:r}},cellRenderer:Ote,maxWidth:150,minWidth:150,editable:!1,flex:1},{field:"DelayCodeName",headerName:"Code",valueGetter:t=>t.data?.DelayCodeName||"No Classified",minWidth:150,editable:!1,flex:1},{field:"Comments",headerName:"Comments",minWidth:118,flex:5},{field:"JustifiedByUser",headerName:"User",minWidth:100,editable:!1,flex:1},{field:"JustifiedDatetime",headerName:"Justification Date",valueGetter:t=>Wn(t.data?.JustifiedDatetime,"MM/dd - HH:mm"),minWidth:180,flex:1},{field:"IsManual",headerName:"",type:["nonSorteable","nonFilterable","centerAligned"],cellRenderer:pte,cellClass:"ag-button-cell",flex:1,maxWidth:60},{field:"Name",headerName:"",type:["nonSorteable","nonFilterable","optionsButton"],maxWidth:150,minWidth:150,editable:!1,flex:1}]}),K4i=Rt(e=>({unclassifiedRow:{"&.ag-row":{backgroundColor:"#E8C8C8 !important"},"&.ag-row:hover":{backgroundColor:"#E0B0B0 !important"},"&.ag-row-selected":{backgroundColor:"#D8A8A8 !important"}}})),Q4i=({loadingGrid:e,rows:t,refreshData:n})=>{const r=L4i(),i=K4i(),o=b.useRef(null),{columns:a}=Y4i({}),[s,l]=b.useState(!1),[c,u]=b.useState(null),[d,p]=Rd(),{state:h,actions:g}=d6(),{state:{selectedDelay:m,anchorPoint:{x:v,y},errorMessage:M},actions:{setSelectedDelay:C,setIsLoadingBackground:x,setNotificationMessage:w,setErrorMessage:S}}=d6(),[A,z]=b.useState(""),[O,T]=b.useState(!1),[I,P]=b.useState(null),{createData:N,editData:F,deleteData:L,justifyData:W,getMenuOptions:H,showDeleteModal:j,showEditModal:G,showJustifyModal:q,messageDeleteModal:$,setShowDeleteModal:U,setShowEditModal:X,setMessageDeleteModal:Q,setShowJustifyModal:re,showSplitModal:ee,setShowSplitModal:se}=k4i(),{searchDelays:pe}=R3e({setSearchError:z,setAllDelayLoading:T}),{actions:{setCategories:te}}=EM(),ce=async ie=>{l(!0);const ue=await bj(ie);ue.ok?te(ue.data.tables[0].rows):z(ue.message),l(!1)},{showContextMenu:oe,registerConfig:ae}=ks(),ne=ie=>{if(!ie.data.IsActive||ie.data.IsMicroDelay)return{background:"#E8EBEB"};if(!ie.data.DelayCodeName||!ie.data.DelayCategoryName)return{background:"#E8C8C8"}},le=ie=>!ie.data.DelayCodeName||!ie.data.DelayCategoryName?i.unclassifiedRow:"",he=ie=>{P(ie.api)},be=ie=>{ie.node.selected&&p({delayId:ie.data.DelayId},{replace:!0})},me=async ie=>{if(U(!1),Q(""),ie!=="OK"||m===null)return;x(!0);const ue=await E4i(m.DelayId);ue.ok?(x(!1),w("Delay deleted successfully"),C(null),await n()):(x(!1),S(ue.message))},{columnTypes:Me}=ku({OnEdit:F});Me.optionsButton={field:"options",headerName:"",cellRenderer:ie=>f.jsxs("div",{className:r.buttons,children:[f.jsx(yn,{"aria-label":"justify-icon",title:"Justify",style:{cursor:"pointer"},onClick:()=>W(ie.data),children:f.jsx(FMe,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})}),f.jsx(yn,{"aria-label":"Upset Conditions",title:"Upset Conditions",disabled:!ie.data.WhatDescription&&!ie.data.WhyDescription&&!ie.data.SolutionDescription,style:{cursor:"pointer"},children:f.jsx(M4i,{fontSize:"inherit",color:!ie.data.WhatDescription&&!ie.data.WhyDescription&&!ie.data.SolutionDescription?"disabled":"primary",style:{cursor:"pointer"},onClick:()=>{u(ie.data)}})}),ie.data.IsManual&&f.jsx(yn,{"aria-label":"delete-icon",style:{cursor:"pointer"},title:"Delete",onClick:()=>{L(ie.data)},children:f.jsx(Mo,{fontSize:"inherit",color:"secondary",style:{cursor:"pointer"}})}),f.jsx(yn,{"aria-label":"Options",title:"Options",style:{cursor:"pointer"},onClick:ue=>oe(ue,ie.data,"delaysManagerContext"),children:f.jsx(ute,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})})]}),cellClass:r.buttons},b.useEffect(()=>{e&&o.current!==null&&o.current.api!==void 0?o.current.api.showLoadingOverlay():o.current!==null&&o.current.api!==void 0&&o.current.api.hideOverlay(),pe(11),ce(11)},[e]);const Oe=ie=>{const ue=ie.node?.data;ue&&(ie.api.deselectAll(),ie.node?.setSelected(!0),C(ue),oe(event,ue,"delaysManagerContext"));const Ae=[];return ue||Ae.push({name:"New Manual Delay",icon:w4i.renderToStaticMarkup(f.jsx(Zo,{})),action:()=>X(!0)}),Ae};b.useEffect(()=>{ae({id:"delaysManagerContext",getOptions:H})},[]);const de=d.get("delayId");return b.useEffect(()=>{if(I&&!h.isLoadingGrid&&t.length>0&&de){const ie=I?.getRowNode(de);ie?(ie.setSelected(!0,!0),I.ensureNodeVisible(ie,"top")):p({},{replace:!0})}},[I,h.isLoadingGrid,t,de]),f.jsxs("div",{onContextMenu:ie=>ie.preventDefault(),children:[f.jsx("div",{children:f.jsx(D,{container:!0,className:r.root,children:f.jsxs(D,{item:!0,md:12,xs:12,style:{border:"1px solid #ccc",borderRadius:"4px",minHeight:"60vh"},children:[f.jsx(rl,{title:"Confirmation",message:$,open:j,onClose:me}),f.jsx(G4i,{show:G||q,onHide:()=>{X(!1),re(!1)},refreshData:n,delay:m,ifJustified:q}),f.jsx(I4i,{show:ee,onHide:()=>se(!1),refreshData:n,delay:m}),f.jsx(Kn,{ref:o,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,onCellDoubleClicked:ie=>W(ie.data),tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:a,columnTypes:Me,getRowClass:le,getRowStyle:ne,getRowId:ie=>ie.data.DelayId,getContextMenuItems:Oe,onRowSelected:be,onGridReady:he}),f.jsx(D,{container:!0,justifyContent:"flex-end",children:f.jsx(D,{item:!0,md:2,xs:12,className:r.btnModal,children:f.jsx(Fe,{variant:"contained",color:"primary",fullWidth:!0,style:{margin:"1.5rem 0px 0px"},onClick:()=>{N()},children:"NEW DELAY"})})})]})})}),f.jsx(Mt,{error:M,onHide:()=>S("")}),f.jsx(U4i,{delay:c,onHide:()=>u(null),open:!!c})]})},Z4i=({asset:e})=>{const t=e==="caster"?13:e==="eaf"?14:null,n=e==="caster"?"Caster":e==="eaf"?"EAF":null,{state:r,actions:i}=d6(),{shiftInfo:o,getShiftDataFromAPI:a}=la(),[s,l]=b.useState(t),[c,u]=b.useState(!1),[d,p]=b.useState(!1),{shiftId:h}=Ms(),[g]=Rd(),[m,v]=b.useState(!0),y=fa(),M=async x=>{try{if(i.setIsLoadingGrid(!0),p(!0),!r.assetForDelayArea||r.assetForDelayArea.length===0){const A=await yte();if(A.ok)i.setAssetForDelayArea(A.data.tables[0].rows);else{i.setErrorMessage("Error loading delay areas");return}}const w=Ot(x||o,"CurrentShiftId",0),S=await O4i(w||0,s,c);S.ok&&S.data.tables.length>0?i.setDelays(S.data.tables[0].rows):i.setErrorMessage("Error loading delays")}catch{i.setErrorMessage("An unexpected error occurred")}finally{i.setIsLoadingGrid(!1),p(!1)}};b.useEffect(()=>{l(t)},[e,t]),b.useEffect(()=>{if(o&&!m){const x=Ot(o,"CurrentShiftId",null),w=g.get("delayId"),S=[];w&&S.push(`delayId=${w}`);const A=S.length?`?${S.join("&")}`:"",z=`/${e}-delays-manager`;y(`${z}/${x}${A}`),(async()=>await M())()}},[o,s,c]),b.useEffect(()=>{h?(async()=>a(null,Number(h)).then(async x=>{x&&M(x).then(()=>{v(!1)})}))():(async()=>a(null,0).then(async x=>{x&&M(x).then(()=>{v(!1)})}))()},[]);const C=()=>{if(e==="eaf"){const w=(r.assetForDelayArea||[]).filter(S=>S.AssetName&&S.AssetName.includes("EAF "));if(t)return[{AssetId:t,AssetName:"All"},...w]}return r.assetForDelayArea||[]};return!r.isLoadingPage&&t?f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:`${n} Delays Manager`}),f.jsxs(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:r.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(bt,{variant:"h5",style:{fontWeight:600},children:[n," Delays Manager"]})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(s2,{preventInit:!0}),f.jsx(kt,{style:{minWidth:"300px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsxs(D,{item:!0,container:!0,xs:12,spacing:2,alignItems:"center",style:{marginLeft:"10px"},direction:"row",children:[e==="eaf"&&f.jsx(D,{item:!0,children:f.jsx(v4i,{delayAreas:C(),selectedDelayArea:s,isLoading:d,onChange:x=>{l(x)}})}),f.jsx(D,{item:!0,children:f.jsx(xD,{children:f.jsx(Io,{control:f.jsx(Qr,{checked:c,color:"primary",onChange:x=>u(x.target.checked)}),label:"Microdelays"})})})]})})]})}),f.jsx(Mt,{error:r.errorMessage,onHide:()=>i.setErrorMessage("")}),f.jsx(Bm,{message:r.notificationMessage,onHide:()=>i.setNotificationMessage("")}),f.jsx(Q4i,{loadingGrid:r.isLoadingGrid,rows:r.delays||[],refreshData:M})]})})]})]}):f.jsx(Cn,{})},IG=({asset:e})=>f.jsx(g4i,{children:f.jsx(gte,{children:f.jsx(vj,{children:f.jsx(D4i,{children:f.jsx(Z4i,{asset:e})})})})}),J4i={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,isLoadingShifts:!1,isLoadingCrews:!1,shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:0,NextProductionDate:null,NextProductionShift:0,NextShift:"",NextCrew:"",NextStart:null,NextEnd:null,LastShiftId:0,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastCrew:"",LastStart:new Date,LastEnd:new Date},delays:[],filteredDelays:[],assetForDelayArea:null,selectedDelay:null,errorMessage:"",notificationMessage:"",shiftId:!1,anchorPoint:{x:0,y:0},shiftsList:[],crewsList:[]},FY=Ni({name:"__",initialState:J4i,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setIsLoadingShifts(e,{payload:t}){e.isLoadingShifts=t},setIsLoadingCrews(e,{payload:t}){e.isLoadingCrews=t},setShiftInfo(e,{payload:t}){e.shiftInfo=t},setDelays(e,{payload:t}){e.delays=t,e.filteredDelays=t},setFilteredDelays(e,{payload:t}){e.filteredDelays=t},setAssetForDelayArea(e,{payload:t}){e.assetForDelayArea=t},setSelectedDelay(e,{payload:t}){e.selectedDelay=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setShiftId(e,{payload:t}){e.shiftId=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t},setShiftsList(e,{payload:t}){e.shiftsList=t},setCrewsList(e,{payload:t}){e.crewsList=t}}}),BTt=b.createContext({state:FY.getInitialState(),actions:FY.actions}),Mj=()=>b.useContext(BTt),e_i=({children:e})=>{const{shiftId:t}=Ms(),[n,r]=Ui.useComplexState({initialState:FY.getInitialState(),reducers:FY.caseReducers});return b.useEffect(()=>{const i=Number(t);gi(t)||isNaN(i)?r.setShiftId(null):r.setShiftId(i)},[t]),f.jsx(BTt.Provider,{value:{state:n,actions:r},children:e})},t_i=Rt(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center",fontSize:12},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600}},buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",display:"flex",width:"100%",justifyContent:"space-around",".ag-row-hover &":{opacity:1}},btnModal:{display:"flex",justifyContent:"flex-end"}})),Bh=e=>({...e,sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0}),n_i=()=>({columns:[Bh({field:"Start",headerName:"Date",valueGetter:t=>Wn(`${t.data?.Start}`,"MM/dd")||"",minWidth:73,maxWidth:73,flex:1}),Bh({field:"Shift",headerName:"Shift",valueGetter:t=>t.data?.Shift||"",minWidth:75,maxWidth:76,flex:1,cellRenderer:t=>f.jsx(q3e,{shift:t.value,size:"small"}),cellClass:t=>`shift-chip-${t.value}`}),Bh({field:"Crew",headerName:"Crew",valueGetter:t=>t.data?.Crew||"",minWidth:76,maxWidth:76,flex:1,cellRenderer:t=>f.jsx(B3e,{crew:t.value,size:"small"}),cellClass:t=>`crew-chip-${t.value}`}),Bh({field:"Start",headerName:"Start",valueGetter:t=>Wn(`${t.data?.Start}`,"HH:mm:ss")||"",minWidth:75,maxWidth:100,flex:1}),Bh({field:"End",headerName:"End",valueGetter:t=>Wn(`${t.data?.End}`,"HH:mm:ss")||"",minWidth:75,maxWidth:100,flex:1}),Bh({field:"Duration",headerName:"Duration",valueFormatter:t=>{if(t.value){const n=mt.duration(t.value,"seconds"),r=Math.floor(n.asMinutes()),i=n.seconds();return`${r}m ${i}s`}return""},minWidth:95,maxWidth:100,flex:1}),Bh({field:"AssetName",headerName:"Asset",minWidth:80,maxWidth:100,editable:!1,flex:1}),Bh({field:"DelayCategory",headerName:"Category",valueGetter:t=>{const n=t.data?.DelayCategoryName,r=t.data?.DelayCategoryColor;return{name:n,color:r}},cellRenderer:Ote,maxWidth:190,minWidth:190,editable:!1,flex:1}),Bh({field:"DelayCodeName",headerName:"Code",valueGetter:t=>t.data?.DelayCodeName||"No Classified",minWidth:150,editable:!1,flex:1}),Bh({field:"Comments",headerName:"Comments",minWidth:180,flex:1,cellStyle:{justifyContent:"flex-start"}}),Bh({field:"JustifiedByUser",headerName:"User",minWidth:80,editable:!1,flex:1}),Bh({field:"JustifiedDateTime",headerName:"Justification",valueGetter:t=>Wn(t.data?.JustifiedDatetime,"MM-dd HH:mm")||"",minWidth:180,flex:1})]}),r_i=({loadingGrid:e,rows:t,gridRef:n})=>{const r=t_i(),{columns:i}=n_i(),{state:{anchorPoint:{x:o,y:a},errorMessage:s},actions:{setErrorMessage:l}}=Mj(),c=d=>{if(!d.data.IsActive||d.data.IsMicroDelay)return{background:"#E8EBEB"};if(!d.data.DelayCodeName||!d.data.DelayCategoryName)return{background:"#E8C8C8"}};b.useEffect(()=>{e&&n.current!==null&&n.current.api!==void 0?n.current.api.showLoadingOverlay():n.current!==null&&n.current.api!==void 0&&n.current.api.hideOverlay()},[e]);const u=d=>(d.node?.data,[]);return f.jsxs("div",{onContextMenu:d=>d.preventDefault(),children:[f.jsx("div",{children:f.jsx(D,{container:!0,className:r.root,children:f.jsx(D,{item:!0,md:12,xs:12,style:{border:"1px solid #ccc",borderRadius:"4px",minHeight:"75vh"},children:f.jsx(Kn,{ref:n,rowSelection:"single",pagination:!1,animateRows:!0,rowHeight:35,headerHeight:35,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:i,getContextMenuItems:u,getRowStyle:c})})})}),f.jsx(Mt,{error:s,onHide:()=>l("")})]})},i_i=()=>{const{actions:{setShiftsList:e,setCrewsList:t,setIsLoadingShifts:n,setIsLoadingCrews:r}}=Mj();return async()=>{n(!0),r(!0),e([]),t([]);const i=await w3t();if(i.ok){const o=Ot(i,"data",[]),a=o?.tables[0].rows,s=o?.tables[1].rows,l=[{Shift:"All"},...a],c=[{Crew:"All"},...s];e(l),t(c)}n(!1),r(!1)}},o_i=Rt(()=>({formControl:{minWidth:"100%"},select:{height:40,paddingTop:5,backgroundColor:"#FFF","& .MuiOutlinedInput-input":{paddingTop:10,paddingBottom:10}}})),a_i=({filterCrew:e,onFilterCrewChange:t})=>{const n=o_i(),{state:{crewsList:r,isLoadingCrews:i}}=Mj();b.useEffect(()=>{!e&&r.length>0&&t("All")},[r,e,t]);const o=a=>{t(a.target.value)};return f.jsxs(Rw,{variant:"outlined",className:n.formControl,children:[f.jsx(Ew,{id:"crew-select-label",children:"Crew"}),f.jsx(mM,{labelId:"crew-select-label",id:"crew-select",value:e,onChange:o,label:"Crew",className:n.select,disabled:i,endAdornment:i?f.jsx($6,{size:20}):null,children:r.map(a=>f.jsx(Qb,{value:a.Crew,children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(B3e,{crew:a.Crew,size:"small"}),f.jsx("span",{children:a.Crew})]})},`crew-${a.Crew}`))})]})},s_i=rt(Rw)({width:"100%","& .MuiInputBase-root":{height:"40px",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.23)","&:hover":{borderColor:"rgba(0, 0, 0, 0.87)"},"&:before, &:after":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}},"& .MuiInputLabel-root":{transform:"translate(14px, 8px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)",backgroundColor:"white",padding:"0 4px"}},"& .MuiSelect-select":{paddingTop:"0",paddingBottom:"0",height:"100%",display:"flex",alignItems:"center"}}),l_i=({delayAreas:e,selectedDelayArea:t,onChange:n})=>f.jsxs(s_i,{variant:"outlined",children:[f.jsx(Ew,{id:"delay-area-label",children:"Delay Area"}),f.jsx(mM,{labelId:"delay-area-label",value:t===null?"all":t,label:"Delay Area",onChange:r=>{const i=r.target.value;n(i==="all"?null:i)},children:e.map(r=>f.jsx(Qb,{value:r.AssetId,children:r.AssetName},r.AssetId))})]}),c_i=Rn(),u_i=({value:e,onChange:t})=>f.jsx(_f,{label:"End",format:"MM/DD/YYYY",value:c_i(e),onChange:n=>{t(n?n.toDate():null)},slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px",padding:10}}}}}),d_i=Rt(()=>({select:{height:40,paddingTop:5,backgroundColor:"#FFF","& .MuiOutlinedInput-input":{paddingTop:10,paddingBottom:10}}})),p_i=({filterShift:e,onFilterShiftChange:t})=>{const n=d_i(),{state:{shiftsList:r,isLoadingShifts:i}}=Mj();b.useEffect(()=>{!e&&r.length>0&&t("All")},[r,e,t]);const o=a=>{t(a.target.value)};return f.jsxs(Rw,{variant:"outlined",children:[f.jsx(Ew,{id:"shift-select-label",children:"Shift"}),f.jsx(mM,{labelId:"shift-select-label",id:"shift-select",value:e,onChange:o,label:"Shift",className:n.select,disabled:i,endAdornment:i?f.jsx($6,{size:20}):null,children:r.map(a=>f.jsx(Qb,{value:a.Shift,children:f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[f.jsx(q3e,{shift:a.Shift,size:"small"}),f.jsx("span",{children:a.Shift})]})},`shift-${a.Shift}`))})]})},h_i=Rn(),f_i=({value:e,onChange:t})=>f.jsx(_f,{label:"Start",format:"MM/DD/YYYY",value:h_i(e),onChange:n=>{t(n?n.toDate():null)},slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px",padding:10}}}}}),g_i=({onFilterChange:e,delayAreas:t,selectedDelayArea:n,onDelayAreaChange:r,initialStartDate:i,initialEndDate:o,includeMicrodelays:a,onIncludeMicrodelaysChange:s,filterCrew:l,onFilterCrewChange:c,onFilterShiftChange:u,filterShift:d})=>{const[p,h]=b.useState(i),[g,m]=b.useState(o),v=i_i();b.useEffect(()=>{h(i),m(o)},[i,o]);const y=C=>{C&&(h(C),e(C,g))},M=C=>{C&&(m(C),e(p,C))};return b.useEffect(()=>{v()},[]),f.jsxs(D,{container:!0,style:{alignItems:"center",marginLeft:10},spacing:2,children:[f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(f_i,{value:p,onChange:y})}),f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(u_i,{value:g,onChange:M})}),t&&f.jsx(D,{item:!0,xs:12,md:"auto",style:{minWidth:150},children:f.jsx(l_i,{delayAreas:t,selectedDelayArea:n,onChange:r})}),f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(p_i,{filterShift:d,onFilterShiftChange:u})}),f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(a_i,{filterCrew:l,onFilterCrewChange:c})}),f.jsx(D,{item:!0,xs:12,md:"auto",style:{marginLeft:50},children:f.jsx(v1t,{control:f.jsx(m1t,{checked:a,onChange:C=>s(C.target.checked)}),label:"Microdelays",style:{marginBottom:0,marginLeft:1}})})]})},m_i=Rt(e=>({root:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem",height:"92vh",backgroundColor:"#f2f4f7"},header:{marginBottom:e.spacing(2)},filterContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(2)},button:{whiteSpace:"nowrap"}})),PG=Rn(),v_i=({asset:e})=>{const t=m_i(),{state:n,actions:r}=Mj(),[i,o]=b.useState(""),[a,s]=b.useState(()=>{const $=PG().subtract(1,"day").set({hour:0,minute:0,second:0}).toDate();return new Date($)}),[l,c]=b.useState(()=>{const $=PG().set({hour:23,minute:59,second:59}).toDate();return new Date($)}),[u,d]=b.useState("All"),[p,h]=b.useState("All"),g=e==="caster"?13:e==="eaf"?14:null,m=e==="caster"?"Caster":e==="eaf"?"EAF":null,[v,y]=b.useState(g),[M,C]=b.useState([]),[x,w]=b.useState(!1),[S,A]=b.useState(!1),[z,O]=b.useState(!0),T=b.useRef(null),I=async()=>{const $=await yte();if($.ok&&$.data.tables.length>0){const U=$.data.tables[0].rows;C(U)}else o("An error occurred while fetching delay areas.")},P=async()=>{r.setIsLoadingGrid(!0);const $=await gEi(a,l,v,"All","All",x);if($.ok){const U=Ot($,"data.tables[0].rows",[]);r.setDelays(U)}else o($.message);r.setIsLoadingGrid(!1),O(!1)},N=()=>{let $=n.delays||[];p&&p!=="All"&&($=$.filter(U=>U.Shift===p)),u&&u!=="All"&&($=$.filter(U=>U.Crew===u)),r.setFilteredDelays($)},F=($,U)=>{const X=PG($).set({hour:0,minute:0,second:0}).toDate(),Q=PG(U).set({hour:23,minute:59,second:59}).toDate();s(X),c(Q)},L=$=>{y($)},W=$=>{w($)},H=$=>{h($)},j=$=>{d($)},G=()=>{if(T.current&&T.current.api){const $={skipHeader:!1,skipFooters:!0,skipGroups:!0,fileName:"delays_report.xlsx",sheetName:"Delays Report",processCellCallback:U=>{const X=U.column.getColId(),Q=U.value;return X==="DelayCategory"?Q?.name??"":Q??""}};T.current.api.exportDataAsExcel($)}else o("Unable to export data. Please try again.")};b.useEffect(()=>{e==="eaf"&&I()},[]),b.useEffect(()=>{A(!0)},[M]),b.useEffect(()=>{y(g)},[g]),b.useEffect(()=>{S&&P()},[g,S,a,l,v,x]),b.useEffect(()=>{N()},[p,u,n.delays]);const q=()=>{if(e==="eaf"){const $=M.filter(U=>U.AssetName&&U.AssetName.includes("EAF "));if(g)return[{AssetId:g,AssetName:"All"},...$]}return M};return n.isLoadingPage?f.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[f.jsx(Mt,{error:i,onHide:()=>o("")}),f.jsx(Cn,{})]}):f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:`${m} Delays Report`}),f.jsxs(kt,{elevation:1,className:t.root,children:[f.jsx(Op,{open:n.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,xs:12,children:[f.jsx(D,{container:!0,justifyContent:"space-between",alignItems:"center",children:f.jsxs(bt,{variant:"h5",className:t.header,style:{fontWeight:600},children:[m," Delays Report"]})}),f.jsxs(D,{item:!0,container:!0,md:12,className:t.filterContainer,children:[f.jsx(D,{item:!0,container:!0,xs:12,md:8,children:f.jsx(kt,{style:{display:"flex",alignItems:"center",height:"80px"},children:f.jsx(g_i,{onFilterChange:F,delayAreas:e==="eaf"?q():null,selectedDelayArea:v,onDelayAreaChange:L,initialStartDate:a,initialEndDate:l,onFilterCrewChange:j,filterCrew:u,includeMicrodelays:x,onIncludeMicrodelaysChange:W,filterShift:p,onFilterShiftChange:H})})}),f.jsx(D,{item:!0,xs:"auto",style:{marginLeft:"auto"},children:f.jsx(Ik,{onClick:G,disabled:!n.filteredDelays||n.filteredDelays.length===0})})]}),f.jsx(Bm,{message:n.notificationMessage,onHide:()=>r.setNotificationMessage("")}),f.jsx(D,{item:!0,xs:12,children:f.jsx(r_i,{loadingGrid:n.isLoadingGrid||z,rows:n.filteredDelays||[],refreshData:P,gridRef:T})})]})})]}),f.jsx(Mt,{error:i,onHide:()=>o("")})]})},DG=({asset:e})=>f.jsx(rte,{children:f.jsx(gte,{children:f.jsx(vj,{children:f.jsx(e_i,{children:f.jsx(v_i,{asset:e})})})})}),b_i=[f.jsx(cr,{path:"/caster-delays-manager",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(IG,{asset:"caster"})})}),f.jsx(cr,{path:"/caster-delays-manager/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(IG,{asset:"caster"})}),children:" "}),f.jsx(cr,{path:"/eaf-delays-manager",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(IG,{asset:"eaf"})})}),f.jsx(cr,{path:"/eaf-delays-manager/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(IG,{asset:"eaf"})}),children:" "}),f.jsx(cr,{path:"/caster-delays-report",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(DG,{asset:"caster"})})}),f.jsx(cr,{path:"/caster-delays-report/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(DG,{asset:"caster"})})}),f.jsx(cr,{path:"/eaf-delays-report",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(DG,{asset:"eaf"})})}),f.jsx(cr,{path:"/eaf-delays-report/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(DG,{asset:"eaf"})})}),f.jsx(cr,{path:"/caster-delays-pareto",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(RG,{asset:"caster"})})}),f.jsx(cr,{path:"/caster-delays-pareto/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(RG,{asset:"caster"})})}),f.jsx(cr,{path:"/eaf-delays-pareto",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(RG,{asset:"eaf"})})}),f.jsx(cr,{path:"/eaf-delays-pareto/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(RG,{asset:"eaf"})})})],y_i=Rt({root:{display:"flex",justifyContent:"center",alignItems:"center",userSelect:"none",height:"40px"}}),M_i={S:{name:"Scheduled",color:" #0288D1",letter:"S"},M:{name:"Melting",color:" #FF7043",letter:"M"},T:{name:"Tapped",color:" #D2AF00",letter:"T"},O:{name:"Opened",color:" #43A047",letter:"O"},C:{name:"Closed",color:" #607D8B",letter:"C"},R:{name:"Returned",color:" #8D6E63",letter:"R"},F:{name:"Finished",color:" #3F90B5",letter:"F"}},C_i=({assetId:e,assetName:t,heatStatus:n})=>{const r=y_i(),i="#D6D6D6",o={11:"#dae8fc",12:"#d5e8d4"},a=M_i[n];return f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(yD,{className:r.root,style:{backgroundColor:o[e]},variant:"outlined",children:f.jsx(MD,{children:f.jsx(bt,{children:t})})})}),n&&f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx("div",{style:{backgroundColor:a?.color||i,color:"#fff",borderRadius:"4px",padding:"4px",textAlign:"center"},children:f.jsx(bt,{children:a?.name})})})]})})},x_i=({value:e,onChange:t,disabled:n})=>{const{state:{deProcess:r}}=Ls(),{saveHeat:i}=xs(),o=b.useRef(!0),[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState([]),[p,h]=b.useState(),g=dT(),m=y=>{const M=y.target.value;t(M),M&&i("GradeId",M).then(()=>{}),h(M)},v=async()=>{s(!0);const y=await vSi();d(y.data),s(!1)};return b.useEffect(()=>{if(o.current){o.current=!1,v().then(()=>{});return}},[]),f.jsxs(f.Fragment,{children:[f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(il,{id:"ladleSelector",className:g.inputLabel,children:"Grade"}),f.jsx(ls,{fullWidth:!0,disabled:a||n,labelId:"ladleSelector",id:"ladleSelector",value:e||"",onChange:m,label:"Grade",children:u.map(y=>f.jsx(sr,{value:y.GradeId,children:y.GradeName},`grade-${y.GradeId}`))})]}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},w_i=Rt(e=>({container:{display:"flex",flexWrap:"nowrap",width:"100%"},field:{flex:1,minWidth:0},field2:{flex:2,minWidth:0},leftField:{"& .MuiOutlinedInput-root":{borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:"none"}},rightField:{"& .MuiOutlinedInput-root":{borderTopLeftRadius:0,borderBottomLeftRadius:0}},checkbox:{padding:0,margin:0},inputAdornment:{margin:0},input:{paddingRight:e.spacing(1)}})),S_i=({ladleLife:e,onChange:t,value:n,disabled:r})=>{const i=w_i(),{state:{isSubmitLoading:o}}=Ls(),a=s=>{const l=s.target.checked?1:null;t(l)};return f.jsxs("div",{className:i.container,children:[f.jsx(je,{className:`${i.field} ${i.leftField}`,label:"Ladle Life",variant:"outlined",disabled:!0,size:"small",value:e.HeatsOnLadle||""}),f.jsx(je,{className:`${i.field} ${i.rightField}`,variant:"outlined",disabled:!0,size:"small",value:e.ContactTimeOnLadle,InputProps:{classes:{input:i.input},endAdornment:f.jsx(nc,{position:"end",className:i.inputAdornment,children:f.jsx(Qr,{color:"primary",size:"small",className:i.checkbox,checked:!!n,disabled:o||r,onChange:a})})}})]})},A_i=({value:e,onChange:t,disabled:n})=>{const{state:{deProcess:r}}=Ls(),{saveHeat:i}=xs(),o=b.useRef(!0),[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState([]),[p,h]=b.useState(),g=dT(),m=y=>{const M=y.target.value;t(M),M&&i("LadleId",M).then(()=>{}),h(M)},v=async()=>{s(!0);const y=await hSi();d(y.data),s(!1)};return b.useEffect(()=>{if(o.current){o.current=!1,v().then(()=>{});return}},[]),f.jsxs(f.Fragment,{children:[f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(il,{id:"ladleSelector",className:g.inputLabel,children:"Ladle"}),f.jsx(ls,{fullWidth:!0,disabled:a||n,labelId:"ladleSelector",id:"ladleSelector",value:e||"",onChange:m,label:"Ladle",children:u.map(y=>f.jsx(sr,{value:y.LadleId,children:y.LadleName},`ladle-${y.LadleId}`))})]}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},O_i=()=>{const{state:{notificationMessage:e,errorMessage:t},actions:{setNotificationMessage:n,setErrorMessage:r}}=Ls();return f.jsxs(f.Fragment,{children:[f.jsx(pr,{open:!!e,color:"primary",autoHideDuration:4e3,onClose:()=>n(""),children:f.jsx(Pr,{children:e})}),f.jsx(Mt,{error:t,onHide:()=>r("")})]})},z_i=Rn(),T_i=e=>{const{state:t,actions:n}=Ls(),{refreshData:r}=xs(),{resume:i}=I0(),[o,a]=b.useState(!1),[s,l]=b.useState({show:!1,message:""}),c=(h,g)=>{n.setDEProcess({...t.deProcess,process:g}),a(!0)},u=async()=>{const h=z_i(e.Start).format("YYYY/MM/DD HH:mm");l({show:!0,message:"The heat "+e.HeatName+" from "+h+" will be unlinked.  Do you want to continue?"})},d=async h=>{l({show:!1,message:""}),h==="OK"&&(await p(),i())},p=async()=>{if(gi(e)||gi(e.ProcessId)||gi(e.HeatId))n.setErrorMessage("Process not found");else{n.setIsDataLoading(!0);const h=await U3e(e?.ProcessId);n.setIsDataLoading(!1),h.ok?(n.setNotificationMessage("Process unlinked successfully"),await r()):n.setErrorMessage(h.message),n.setIsDataLoading(!1)}};return{unlinkProcess:u,handleLinkHeat:c,handleUnlinkHeat:d,showLinkModal:o,showUnlinkModal:s,setShowLinkModal:a,setShowUnlinkModal:l}},E_i=Rn(),R_i=({show:e,onHide:t})=>{const{refreshData:n}=xs(),{state:r,actions:i}=Ls(),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState([]),[d,p]=b.useState(null),[h,g]=b.useState(""),[m,v]=b.useState(""),[y,M]=b.useState(!1),C=r.deProcess?.process,x=`Link EAF Process / Start: ${Wn(`${E_i.utc(C?.Start)}`,"HH:mm")}`,w=async(T=!1)=>{if(C){if(!d){v("Please select a heat");return}if(gi(C))return;if(!T&&d?.IsLinked){M(!0);return}const I=await $3e(C.ProcessId,d.HeatId);I.ok?(i.setNotificationMessage("Process linked successfully"),await n()):v(I.message)}else v("Process not found");t(!0)},S=async()=>{if(!C)return;const T=await rD(h,C.Start,C.AssetId);T.ok&&T.data?.tables?.[0]?.rows&&u(T.data.tables[0].rows)},A=(T,I)=>{g(I)},z=T=>{T.key==="Enter"&&(T.preventDefault(),S())},O=(T,I)=>{p(I)};return b.useEffect(()=>{e&&C&&(a(!1),(async()=>{p(null),l(!0);const T=await rD("",C.Start,C.AssetId);T.ok&&T.data&&T.data.tables&&T.data.tables[0].rows&&u(T.data.tables[0].rows),l(!1)})())},[e,C]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{maxWidth:"xl",open:e,handleClose:()=>{t(!0)},id:"linkEAFProcess",title:x,children:s?f.jsx(f.Fragment,{children:f.jsx(D,{container:!0,style:{padding:"60px 280px"},justifyContent:"center",alignContent:"center",children:f.jsx(D,{item:!0,children:f.jsx(Kt,{})})})}):f.jsxs("form",{children:[f.jsx(We.Content,{style:{padding:"15px 30px",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,md:2,children:f.jsx(bt,{style:{margin:0,padding:0,display:"flex",alignItems:"center",height:"56px"},variant:"h6",children:"To Heat"})}),f.jsx(D,{item:!0,md:10,children:f.jsx(Ji,{options:c,getOptionLabel:T=>T.HeatName,value:d,onChange:O,inputValue:h,onInputChange:A,renderOption:T=>f.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[f.jsx("span",{children:T.HeatName}),T.IsLinked===1&&f.jsx("span",{style:{color:"red",marginLeft:"10px"},children:"(linked)"})]}),renderInput:T=>f.jsx(je,{...T,placeholder:"Search Heat",variant:"outlined",fullWidth:!0,onKeyDown:z,InputProps:{...T.InputProps,style:{height:"100%",minWidth:"400px"}}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px "},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Da,{fullWidth:!0,isLoading:o,variant:"contained",color:"primary",onClick:()=>w(!1),size:"large",children:"Save"})})]})})]})})})}),f.jsxs(We,{open:y,handleClose:()=>M(!1),title:"Warning",id:"warningModal",children:[f.jsx(We.Content,{children:f.jsx("p",{children:"This heat is already linked in another process. Do you want to proceed?"})}),f.jsxs(We.Actions,{children:[f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>M(!1),children:"Cancel"}),f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"primary",onClick:async()=>{M(!1),w(!0)},children:"Proceed"})]})]}),f.jsx(Mt,{error:m,onHide:()=>v("")})]})},I_i=()=>{const e=fa(),t=Ms(),{state:{deProcess:n},actions:{setErrorMessage:r}}=Ls(),i=n?.process,[o,a]=b.useState([]),[s,l]=b.useState(""),[c,u]=b.useState(!1),[d,p]=b.useState(!1),[h,g]=b.useState({Name:c?"":i?.HeatName??"",Id:i?.ProcessId}),[m,v]=b.useState(!1),y=dT(),{pause:M,resume:C,restart:x}=I0(),{loadData:w,loadUnjustifiedDelays:S}=xs(),{handleLinkHeat:A,handleUnlinkHeat:z,showLinkModal:O,showUnlinkModal:T,unlinkProcess:I,setShowLinkModal:P}=T_i(i||{}),N=`${y.processNavigator} ${i?.HeatName?y.linkedHeat:y.unlinkedHeat}`,F=b.useRef(s);F.current=s;const L=b.useCallback(nB(async H=>{u(!0);try{if(H.length>=2){const j=await HSi(H);if(j.ok){const G=j.data.tables[0].rows;F.current===H&&a(G)}else r(j.message),a([])}if(H.length===0){const j=await jSi();j.ok?F.current===H&&a(j.data.tables[0].rows):(r(j.message),a([]))}}catch(j){console.error("Error in search:",j),r("An error occurred while searching"),a([])}finally{u(!1)}},1500),[]),W=(H,j)=>{j?j.Id!==i?.ProcessId&&(g(j),e(`/eaf-data-entry/${j.Id}`),j.Id&&w(j.Id),setTimeout(()=>{document.getElementById("dummyDiv")?.focus()},500)):g(null)};return b.useEffect(()=>(L(s),()=>{L.cancel()}),[s]),b.useEffect(()=>{!m&&!c&&s!==i?.HeatName&&g({Name:i?.HeatName||"",Id:i?.ProcessId})},[m,s,i,c]),b.useEffect(()=>{t.processId?w(Number(t.processId)).then(()=>{}):w(null).then(()=>{}),L("")},[]),f.jsxs(f.Fragment,{children:[f.jsx(kt,{children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"center",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsx(yn,{size:"small","aria-label":"previous",color:"primary",disabled:!i?.PrevProcessId,onClick:()=>{w(i?.PrevProcessId).then(H=>{S(H.AssetId,H.ShiftId)})},children:f.jsx(rQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,style:{minWidth:"126px"},children:f.jsx(Ji,{className:N,autoHighlight:!0,blurOnSelect:!0,clearOnEscape:!0,selectOnFocus:!0,popupIcon:null,options:o||[],getOptionSelected:(H,j)=>H.Id===j.Id,getOptionLabel:H=>H?.Name||"Unlinked",inputValue:s,onInputChange:(H,j)=>{l(j)},value:h,onChange:(H,j)=>{W(H,j)},onFocus:H=>{v(!0),M()},loading:c,onBlur:H=>{v(!1),d||C()},renderInput:H=>f.jsx(je,{...H,label:"Heat Name",variant:"outlined",size:"small",style:{minWidth:"126px"},InputProps:{...H.InputProps,style:{padding:"0 8px 20px 6px",minWidth:"126px"},endAdornment:f.jsx(nc,{position:"end",children:f.jsx(yn,{size:"small",title:i?.HeatName?"Unlink":"Link",onClick:j=>(M(),p(!0),i&&(i?.HeatName?I():A(j,i))),style:{color:i?.HeatName?"red":"#3f51b5"},children:i?.HeatName?f.jsx(Hat,{style:{cursor:"pointer"}}):f.jsx(jat,{style:{cursor:"pointer"}})})})}})})}),f.jsx(D,{item:!0,children:f.jsx(yn,{"aria-label":"delete",color:"primary",disabled:!i?.NextProcessId,onClick:()=>{w(i?.NextProcessId).then(H=>{S(H.AssetId,H.ShiftId)})},size:"small",children:f.jsx(iQ,{style:{cursor:"pointer"}})})}),f.jsx(D,{item:!0,children:f.jsx(yn,{"aria-label":"delete",color:"primary",disabled:!i?.NextProcessId,onClick:()=>{w(null).then(H=>{S(H.AssetId,H.ShiftId)})},size:"small",title:"Last process",children:f.jsx(sQ,{style:{cursor:"pointer"}})})})]})})}),f.jsx(rl,{title:"Confirmation",message:T.message,open:T.show,onClose:z}),f.jsx(R_i,{show:O,onHide:()=>{P(!1),p(!1),x(),setTimeout(()=>{document.getElementById("dummy")?.focus()},1)}})]})},P_i=()=>{const{state:{isDataLoading:e,deProcess:t}}=Ls(),{refreshData:n}=xs(),{seconds:r,isRunning:i,pause:o,restart:a,resume:s}=I0();return b.useEffect(()=>{a()},[t?.process?.ProcessId]),f.jsx(D,{item:!0,container:!0,direction:"column",spacing:1,style:{width:"100%"},children:f.jsx(D,{item:!0,style:{width:"100%"},children:f.jsxs(T6,{fullWidth:!0,children:[f.jsxs(Da,{onClick:()=>{o(),n().then(()=>{a(),s()})},fullWidth:!0,variant:"contained",color:"primary",isLoading:e,style:{fontSize:"0.9rem"},children:["Refresh in ",r]}),f.jsx(Fe,{style:{maxWidth:"40px"},onClick:()=>{i?o():s()},children:i?f.jsx(Vat,{}):f.jsx(Gat,{})})]})})})},D_i=(e,t)=>{if(e===null)return"";let n;switch(t){case"hours":n=e*3600;break;case"minutes":n=e*60;break;case"seconds":n=e;break;default:return""}const r=Math.floor(n/3600),i=Math.floor(n%3600/60),o=Math.round(n%60);return`${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(o).padStart(2,"0")}`},sTe=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1,unit:o})=>{const a=D_i(e,o);return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:a,type:"text",InputProps:{readOnly:!0},style:{minWidth:"50px"}})},A2e=e=>{const t=Math.floor(e/60),n=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`},k_i=e=>{let t="",n=!1,r="";const i=e.replace(/[^0-9]/g,"");if(i===""||/^0+$/.test(i))t="00:00";else if(N_i(e)){const[o,a]=e.split(":"),s=parseInt(o,10),l=parseInt(a,10);isNaN(s)||isNaN(l)?(n=!0,r="Invalid time format"):t=`${s.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}`}else n=!0,r="Invalid duration";return{formattedTime:t,error:n,helperText:r}},L_i=(e,t)=>{let n=e;return n.length===2&&t.length!==3&&!n.includes(":")&&(n=n+":"),n.length===2&&t.length===3&&t[2]===":"&&(n=n.slice(0,1)),n.length>5&&(n=t),n},__i=e=>e===""?!0:/^(\d{1,2})(:)?(\d{0,2})?$/.test(e),N_i=e=>/^\d{1,2}:\d{2}$/.test(e),F_i=({initMinutes:e=0,disabled:t=!1,mountFocus:n=!1,onTimeChange:r,type:i,label:o,onFocusHandler:a,placeholder:s=" ",className:l,name:c,onBlurHandler:u})=>{const[d,p]=b.useState(""),[h,g]=b.useState(!1),[m,v]=b.useState(""),y=b.useRef(null),[M,C]=b.useState(""),{state:{isSubmitLoading:x}}=Ls();b.useEffect(()=>{const z=A2e(e);p(z)},[e]),b.useEffect(()=>{!t&&n&&setTimeout(()=>{y.current?.focus()},0)},[t,n]);const w=z=>{if(z!==d&&__i(z)){const O=L_i(z,M);C(O),p(O),g(!1),v("")}},S=z=>{const{formattedTime:O,error:T,helperText:I}=k_i(d);p(O||d),g(T),v(I),!T&&O&&r(O),u&&u(z)},A=()=>i||"tel";return f.jsx(je,{name:c,label:o,className:l,type:A(),disabled:t||x,placeholder:s,value:d,onChange:z=>w(z.target.value),onFocus:a,onBlur:S,inputRef:y,variant:"outlined",fullWidth:!0,error:h,helperText:m})},hh=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1})=>{const{pause:o,resume:a}=I0(),s=()=>{o()};return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:e||"",type:"number",onFocus:s,onChange:l=>{if(l.target.value===""||l.target.value==="-")n(0);else{const c=Number(l.target.value);n(c)}},onKeyDown:l=>{(l.key.toLowerCase()==="e"||l.key==="-"||l.key==="+")&&l.preventDefault(),l.key==="Enter"&&(a(),r())},onBlur:()=>{a(),r()},style:{minWidth:"50px"}})},RO=({field:e,label:t,decimals:n=null})=>{const{state:{deProcess:r},actions:i}=Ls(),{saveProcessData:o}=xs(),a=r?.process,s=a&&a[e]!==void 0&&a[e]!==null?Jx(n)?Number(Number(a[e]).toFixed(n)):Number(a[e]):null,l=()=>{o({processId:a?.ProcessId,field:e,value:a[e]})};return f.jsx(hh,{label:t||e,value:s,onChange:c=>{i.setProcess({...a,[e]:c})},onBlur:()=>{l()}})},W_i=({value:e,label:t,onChange:n,onBlur:r,disabled:i=!1})=>{const{pause:o,resume:a}=I0(),s=()=>{o()};return f.jsx(je,{fullWidth:!0,disabled:i,label:t,variant:"outlined",value:e||"",onFocus:s,onChange:l=>{n(l.target.value)},onKeyDown:l=>{l.key==="Enter"&&(a(),r(e))},onBlur:()=>{a(),r(e)},style:{minWidth:"50px"}})},q_i=({field:e,label:t})=>{const{state:{deProcess:n},actions:r}=Ls(),{saveProcessData:i}=xs(),o=n?.process,a=()=>{i({processId:o?.ProcessId,field:e,value:o[e]})};return f.jsx(W_i,{label:t||e,value:o&&o[e]||"",onChange:s=>{r.setProcess({...o,[e]:s})},onBlur:()=>{a()}})},iZe=({field:e,label:t,format:n="HH:mm - DD/MM/YYYY",disabled:r=!1,disableOpenPicker:i=!1})=>{const{state:{deProcess:o},actions:a}=Ls(),{saveProcess:s}=xs(),l=o?.process,c=()=>{s(l)};return f.jsx(jm,{disableOpenPicker:i,disabled:r,format:n,label:t||e,value:l?l[e]:null,onChange:u=>{a.setProcess({...l,[e]:u})},onBlur:()=>{c()}})},B_i=Rt(e=>({consistentFieldWrapper:{marginTop:e.spacing(.5),"& .MuiInputBase-root":{minHeight:"57px",height:"57px",alignItems:"center"},"& .MuiInputLabel-outlined":{transform:"translate(14px, 19px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}},"& .MuiIconButton-root":{padding:e.spacing(1.5)}},commentsInput:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}}})),oZe=Rn(),j_i=e=>{if(e==null||e<0)return"00:00:00";const t=mt.duration(e,"seconds"),n=Math.floor(t.asHours()),r=t.minutes(),i=t.seconds();return`${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}:${String(i).padStart(2,"0")}`},H_i=({open:e,onHide:t,assetId:n,refreshData:r,delay:i})=>{const o=B_i(),{pause:a}=I0(),{dismissDelayJustification:s}=Y3e(),[l,c]=b.useState(!1),[u,d]=b.useState(null),{control:p,handleSubmit:h,reset:g,watch:m,setValue:v,formState:{errors:y}}=Gn({defaultValues:{DelayCodeId:null,DelayCategoryId:null,Comments:null}}),M=m("Comments");b.useEffect(()=>{e&&(a(),g({DelayCodeId:i?.DelayCodeId??null,DelayCategoryId:i?.DelayCategoryId??null,Comments:i?.Comments??null}),d(null))},[e,i,g]);const C=()=>{s(),t()},x=async z=>{if(!i?.DelayId){d("Delay not found.");return}c(!0),d(null);try{const O=await oTe(i?.DelayId,z.DelayCodeId,z.DelayCategoryId,z.Comments,null,null,null);O.ok?(await r(),t(!0)):d(O.message||"Failed to justify delay.")}catch(O){d(O.message||"An unexpected error occurred.")}finally{c(!1)}},w=b.useMemo(()=>i?.Start?oZe(i.Start).format("MM/DD/YYYY HH:mm:ss"):"N/A",[i?.Start]),S=b.useMemo(()=>i?.End?oZe(i.End).format("MM/DD/YYYY HH:mm:ss"):"N/A",[i?.End]),A=b.useMemo(()=>j_i(i?.Duration),[i?.Duration]);return f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Justify Delay"}),f.jsx(We,{open:e,handleClose:()=>{C(),t()},title:"Justify Delay",maxWidth:"md",id:"justify-delay-modal",children:f.jsxs("form",{onSubmit:h(x),children:[f.jsx(We.Content,{dividers:!0,children:!i||!n?f.jsx(D,{item:!0,xs:12,children:f.jsx(bt,{color:"error",children:"Missing Delay Information. Cannot justify."})}):f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(bt,{children:"Please justify the delay to continue."})}),f.jsx(D,{item:!0,xs:12,sm:4,children:f.jsx(je,{label:"Duration (hh:mm:ss)",value:A,variant:"outlined",size:"small",fullWidth:!0,disabled:!0})}),f.jsx(D,{item:!0,xs:12,sm:4,children:f.jsx(je,{label:"Delay Start",value:w,variant:"outlined",size:"small",fullWidth:!0,disabled:!0})}),f.jsx(D,{item:!0,xs:12,sm:4,children:f.jsx(je,{label:"Delay End",value:S,variant:"outlined",size:"small",fullWidth:!0,disabled:!0})}),f.jsx(D,{item:!0,xs:12,sm:4,children:f.jsx(je,{label:"Asset Name",value:i.AssetName??"N/A",variant:"outlined",size:"medium",fullWidth:!0,disabled:!0,style:{marginTop:"13px"},InputProps:{style:{height:"53px"}}})}),f.jsx(D,{item:!0,xs:12,sm:4,className:o.consistentFieldWrapper,children:f.jsx(Ue,{name:"DelayCodeId",control:p,render:({field:z})=>f.jsx(aTe,{assetId:n,value:z.value,onChange:(O,T)=>{z.onChange(O),T&&T.DelayCategoryId&&v("DelayCategoryId",T.DelayCategoryId,{shouldValidate:!0})}},`DelayCodeId-${n}`)})}),f.jsx(D,{item:!0,xs:12,sm:4,style:{marginTop:"8px"},children:f.jsx(Ue,{name:"DelayCategoryId",control:p,render:({field:z})=>f.jsx(uM,{value:z.value??null,onChange:z.onChange,assetId:n})})}),f.jsxs(D,{item:!0,xs:12,children:[f.jsx(Ue,{name:"Comments",control:p,render:({field:z})=>f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",maxRows:4,minRows:4,fullWidth:!0,margin:"dense",multiline:!0,autoComplete:"off",value:z.value??"",onChange:O=>{O.target.value.length<=200&&z.onChange(O)},InputProps:{style:{height:"90px",padding:"0px",fontSize:"12px"}}})}),f.jsx(D,{container:!0,justifyContent:"flex-end",children:f.jsx(D,{item:!0,children:f.jsx("span",{children:`${M?.length??0}/200`})})})]})]})}),f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,justifyContent:"flex-end",spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:3,children:f.jsx(Fe,{variant:"contained",color:"secondary",onClick:C,disabled:l,size:"large",fullWidth:!0,children:"Remind Me Later "})}),f.jsx(D,{item:!0,xs:12,sm:3,children:f.jsx(Fe,{variant:"contained",color:"primary",type:"submit",size:"large",fullWidth:!0,disabled:l||m("DelayCodeId")===null,startIcon:l?f.jsx(Kt,{size:20}):null,children:"Justify"})})]})})]})}),f.jsx(Mt,{error:u,onHide:()=>d(null)})]})},V_i=({textFieldValue:e,checkboxValue:t,label:n,onNumberFieldChange:r,onCheckboxChange:i,onBlur:o,textFieldDisabled:a=!0,checkboxDisabled:s=!1})=>{const l=dT(),{state:{isSubmitLoading:c}}=Ls(),{pause:u,resume:d}=I0(),p=()=>{u()};return f.jsx(f.Fragment,{children:f.jsx(je,{fullWidth:!0,disabled:a,label:n,variant:"outlined",value:e||"",type:"number",onFocus:p,onChange:h=>{(h.target.value===""||/^(0|[1-9]\d*)(\.\d*)?$/.test(h.target.value))&&r(Number(h.target.value))},onKeyDown:h=>{h.key==="Enter"&&(d(),o())},onBlur:()=>{d(),o()},style:{minWidth:"50px"},InputProps:{classes:{input:l.input},endAdornment:f.jsx(nc,{position:"end",className:l.inputAdornment,children:f.jsx(Qr,{color:"primary",size:"small",disabled:s||c,className:l.checkbox,checked:!!t,onChange:h=>{i(h.target.checked)}})})}})})},kG=({numberField:e,checkboxField:t,label:n,textFieldDisabled:r,checkboxDisabled:i})=>{const{state:{deProcess:o},actions:a}=Ls(),{saveProcessData:s}=xs(),l=o?.process,c=()=>{s({processId:l?.ProcessId,field:e,value:l[e]})};return f.jsx(V_i,{label:n||e,textFieldValue:l?l[e]:null,checkboxValue:l&&!!l[t]||null,textFieldDisabled:r,checkboxDisabled:i,onNumberFieldChange:u=>{a.setProcess({...l,[e]:u})},onCheckboxChange:u=>{a.setProcess({...l,[t]:u?1:null}),s({processId:l?.ProcessId,field:t,value:u?1:null})},onBlur:()=>{c()}})},G_i=()=>f.jsx(Tn,{padding:1,children:f.jsxs(D,{container:!0,spacing:1,direction:"column",children:[f.jsx(D,{item:!0,children:f.jsx(kG,{numberField:"HeatsOnRoof",checkboxField:"ForceHeatsOnRoof",label:"Heats On Roof"})}),f.jsx(D,{item:!0,children:f.jsx(kG,{numberField:"HeatsOnRunnerSpout",checkboxField:"ForceHeatsOnRunnerSpout",label:"Heats On Runner Spout"})}),f.jsx(D,{item:!0,children:f.jsx(kG,{numberField:"HeatsOnTapHole",checkboxField:"ForceHeatsOnTapHole",label:"Heats On Tap Hole"})}),f.jsx(D,{item:!0,children:f.jsx(kG,{numberField:"HeatsOnLining",checkboxField:"ForceHeatsOnLining",label:"Heats On Lining"})})]})}),$_i=()=>f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,container:!0,spacing:1,direction:"column",justifyContent:"space-around",children:[f.jsx(D,{item:!0,children:f.jsx(RO,{field:"MWH"})}),f.jsx(D,{item:!0,children:f.jsx(RO,{field:"ElectrodeConsumption",label:"Elec Consumption"})}),f.jsx(D,{item:!0,children:f.jsx(RO,{field:"ArcStability",label:"Arc Stability"})}),f.jsx(D,{item:!0,children:f.jsx(RO,{field:"OxygenVolume",label:"O2 Volume",decimals:1})})]})}),jw=Rt(e=>({agGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",minHeight:"349px",maxHeight:"349px"},upperAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px 10px 50px 10px",minHeight:"578px",maxHeight:"578px"},middleTextfields:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px 6px 10px 6px",minHeight:"230px",maxHeight:"230px"},dynamicHeight:{height:t=>{const n=t?.rowCount??4;return`${Math.min(350+(n-4)*50,550)}px`}},readonlyAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px ",height:"400px",minHeight:"400px"},electrodeEventsAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"230px",minHeight:"230px"},lowerAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"468px",minHeight:"468px"},probesAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"295px",minHeight:"295px"},additionsAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"257px",minHeight:"250px"},wireAdditionsAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"195px",minHeight:"195px"},heatingsAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"524px",minHeight:"524px"},chargesAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"260px",minHeight:"260px"},phasesAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"325px",minHeight:"325px"},electrodesAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"3px 6px 50px 6px",height:"165px",minHeight:"165px"},manualAutoButton:{minWidth:"5px",padding:"6px 8px",cursor:"auto"},smAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px 10px 10px 10px",height:"281px",minHeight:"350px"},headerTableStyles:{fontSize:"1rem"},outlinedTextarea:{width:"100%",padding:"10px 12px",border:`1px solid ${e.palette.grey[400]}`,borderRadius:e.shape.borderRadius,fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize,transition:e.transitions.create(["border-color","box-shadow"]),"&:hover":{borderColor:e.palette.text.primary},"&:focus":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 2px ${e.palette.primary.light}`,outline:"none"},"&::placeholder":{color:e.palette.text.secondary,opacity:1}}})),U_i=Rt(e=>({manualAutoButton:{minWidth:"5px",padding:"6px 8px",cursor:"auto"}})),d2=Rt(e=>Mp({checkbox:{userSelect:"none"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"},infoLabel:{fontSize:12,color:"#757575"},autocompleteField:{display:"flex",alignItems:"center",paddingTop:0,paddingBottom:0}})),zte=(e,t,n)=>(!t||!e||(e.year(t.year()),e.month(t.month()),e.date(t.date()),e.isBefore(t)&&n&&n.isBefore(t)&&e.add(1,"day")),e),jTt=(e,t,n)=>!t||!e?!1:n?(n.getTime()<t.getTime()&&(n=new Date(n.getTime()+1440*60*1e3)),e.getTime()>=t.getTime()&&e.getTime()<=n.getTime()):e.getTime()>=t.getTime(),uR=Rn(),X_i=({show:e,onHide:t,date:n})=>{const{state:r}=ka(),i=Ot(r.settings,"MIN_WEIGHT_ADDITION",0),o=Ot(r.settings,"MAX_WEIGHT_ADDITION",5e3),{state:{deProcess:a}}=Ls(),{saveAddition:s,getMaterials:l}=xs(),[c,u]=b.useState(!1),[d,p]=b.useState(""),[h,g]=b.useState(!1),[m,v]=b.useState([]),y=d2(),{getValues:M,handleSubmit:C,setValue:x,control:w,reset:S,formState:{errors:A}}=Gn({}),z=(I,P)=>{P!=="clickaway"&&g(!1)},O=async I=>{u(!0),await s(I),u(!1),t()},T=I=>{if(!I)return;const P=uR.utc(I),N=uR.utc(a?.process.Start),F=a?.process.End?uR.utc(a.process.End):null,L=zte(P,N,F);x("Timestamp",L.toDate())};return b.useEffect(()=>{e&&(S(),(async()=>{const P=await l();v(P.filter(N=>N.UseInEAF===!0))})(),n.setSeconds(0),x("Timestamp",n))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"New Manual Addition"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"NEW MANUAL ADDITION",open:e,handleClose:()=>t(),id:"create-addition-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:C(O),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Weight",control:w,rules:{required:"Weight is required",validate:I=>Tm(I,i,o,"Weight")},render:({field:I})=>f.jsx(hh,{...I,value:M("Weight"),label:"Weight [kg]",onChange:P=>x("Weight",P),onBlur:()=>{}})}),A.Weight&&f.jsx("span",{className:y.errorLabel,children:A.Weight.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"MaterialId",control:w,rules:{required:"Material is required"},render:({field:I})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:m??[],getOptionLabel:P=>P.MaterialName,renderInput:P=>f.jsx(je,{...P,label:"Material",variant:"outlined",fullWidth:!0,size:"small",InputProps:{...P.InputProps,className:y.autocompleteField}}),value:m.find(P=>P.MaterialId===I.value)||null,onChange:(P,N)=>{I.onChange(N?N.MaterialId:null)}})}),A.MaterialId&&f.jsx("span",{className:y.errorLabel,children:A.MaterialId.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Timestamp",control:w,rules:{required:"Timestamp is required",validate:I=>{const P=uR.utc(a?.process.Start).toDate(),N=a?.process.End?uR.utc(a?.process.End).toDate():null;return jTt(uR.utc(I).toDate(),P,N)?!0:N?"Timestamp must be between Start and End date time":"Timestamp must be greater than the start date"}},render:({field:I})=>f.jsx(jm,{...I,format:"HH:mm - MM/DD/YYYY",value:M("Timestamp"),label:"Time",onChange:T,onBlur:()=>{}})}),A.Timestamp&&f.jsx("span",{className:y.errorLabel,children:A.Timestamp.message})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Da,{fullWidth:!0,isLoading:c,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:h,autoHideDuration:2500,onClose:z,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:z,children:"The addition was created successfully"})})]})}),f.jsx(Mt,{error:d,onHide:()=>p(""),title:"Error Creating Manual Probe"})]})},dR=Rn(),Y_i=({show:e,onHide:t,addition:n})=>{const{state:r}=ka(),i=Ot(r.settings,"MAX_WEIGHT_ADDITION",0),o=Ot(r.settings,"MIN_WEIGHT_ADDITION",5e3),{state:{deProcess:a}}=Ls(),{saveAddition:s,getMaterials:l}=xs(),[c,u]=b.useState(!1),[d,p]=b.useState(""),[h,g]=b.useState(!1),[m,v]=b.useState([]),y=d2(),{getValues:M,handleSubmit:C,setValue:x,control:w,reset:S,formState:{errors:A}}=Gn({}),z=(I,P)=>{P!=="clickaway"&&g(!1)},O=I=>{if(!I)return;const P=dR.utc(I),N=dR.utc(a?.process.Start),F=a?.process.End?dR.utc(a.process.End):null,L=zte(P,N,F);x("Timestamp",L.toDate())},T=async I=>{u(!0),await s({...I,AdditionId:n.AdditionId}),u(!1),t()};return b.useEffect(()=>{e&&(S(),(async()=>{const I=await l();v(I.filter(P=>P.UseInEAF===!0))})(),x("Timestamp",n?.Timestamp),x("MaterialId",n?.MaterialId),x("Weight",n?.Weight))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Edit Manual Addition"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"EDIT MANUAL ADDITION",open:e,handleClose:()=>t(),id:"edit-addition-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:C(T),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Weight",control:w,rules:{required:"Weight is required",validate:I=>Tm(I,i,o,"Weight")},render:({field:I})=>f.jsx(hh,{...I,value:M("Weight"),label:"Weight [kg]",onChange:P=>x("Weight",P),onBlur:()=>{}})}),A.Weight&&f.jsx("span",{className:y.errorLabel,children:A.Weight.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"MaterialId",control:w,rules:{required:"Material is required"},render:({field:I})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:m??[],disabled:!n.IsAdditionManual,getOptionLabel:P=>P.MaterialName,renderInput:P=>f.jsx(je,{...P,label:"Material",variant:"outlined",fullWidth:!0,size:"small",InputProps:{...P.InputProps,className:y.autocompleteField}}),value:m.find(P=>P.MaterialId===I.value)||null,onChange:(P,N)=>{I.onChange(N?N.MaterialId:null)}})}),A.MaterialId&&f.jsx("span",{className:y.errorLabel,children:A.MaterialId.message})]}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Timestamp",control:w,rules:{required:"Timestamp is required",validate:I=>{const P=dR.utc(a?.process.Start).toDate(),N=a?.process.End?dR.utc(a?.process.End).toDate():null;return jTt(dR.utc(I).toDate(),P,N)?!0:N?"Timestamp must be between Start and End date time":"Timestamp must be greater than the start date"}},render:({field:I})=>f.jsx(jm,{...I,format:"HH:mm - MM/DD/YYYY",disabled:!n.IsAdditionManual,value:M("Timestamp"),label:"Time",onChange:O,onBlur:()=>{},error:A.Timestamp?.message})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Da,{fullWidth:!0,isLoading:c,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:h,autoHideDuration:2500,onClose:z,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:z,children:"The addition was edited successfully"})})]})}),f.jsx(Mt,{error:d,onHide:()=>p(""),title:"Error Creating Manual Probe"})]})},Tte=({isManual:e})=>{const t=U_i();return f.jsx(D,{container:!0,justifyContent:"center",children:f.jsx(D,{item:!0,md:12,children:f.jsx(Fe,{title:e?"Manual":"Automatic",variant:"contained",color:"primary",className:t.manualAutoButton,style:{cursor:"auto",backgroundColor:e?"primary":"green"},children:e?"M":"A"})})})},K_i=({deleteAddition:e,editAddition:t})=>({columns:[{headerName:"Material Additions",headerStyle:{fontSize:"0.9rem"},children:[{field:"manual-auto",headerName:" ",flex:1,minWidth:25,maxWidth:40,cellRenderer:Tte,cellRendererParams:i=>({isManual:i.data.IsAdditionManual})},{field:"Timestamp",headerName:"Time",flex:1,minWidth:62,valueGetter:i=>{if(i.data.Timestamp)return Wn(i.data.Timestamp,"HH:mm")}},{field:"MaterialName",headerName:"Material",flex:1,minWidth:100},{field:"Weight",headerName:"Weight [kg]",flex:1,minWidth:102,cellStyle:{textAlign:"right"},valueGetter:i=>{if(i.data.Weight)return Math.floor(i.data.Weight)}},{field:"actions",headerName:" ",flex:1,minWidth:60,maxWidth:80,cellRenderer:zM,cellRendererParams:i=>({deleteItem:e,edit:t,id:i.data.AdditionId})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),Q_i=Rn(),Z_i=()=>{const{state:e}=ka(),t=Ot(e.settings,"MAX_ADDITIONS",10),{state:{deProcess:n},actions:{setErrorMessage:r}}=Ls(),{deleteAddition:i,refreshData:o}=xs(),{pause:a,resume:s}=I0(),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[p,h]=b.useState(),g=n?.additions,m=g?g.length:0,v=jw({rowCount:m}),y=g&&g.length>=t||!1,M=w=>{a();const S=g?.find(A=>A.AdditionId===w);h(S),d(!0)},C=async()=>{const w=n?.process?.ProcessId;if(w){const S=await RSi({ProcessId:w});return S.ok?await o():r(S.message),S}else return r("Process not found"),{ok:!1,message:"Process not found"}},{columns:x}=K_i({deleteAddition:i,editAddition:M});return f.jsxs(f.Fragment,{children:[f.jsx(kt,{children:f.jsxs(Tn,{padding:1,className:`${v.additionsAgGridBox}`,children:[f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:g,columnDefs:x,domLayout:"normal",suppressContextMenu:!0,onRowDoubleClicked:w=>{M(w.data.AdditionId)}}),f.jsx(ua,{}),f.jsx(u2,{hasMaxItems:y,showCreateModal:l,setShowCreateModal:c,readFromPLC:C,table:"additions"})]})}),f.jsx(X_i,{show:l,onHide:()=>{s(),c(!1)},date:n?Q_i(n.process.Start).add(1,"minute").toDate():new Date}),f.jsx(Y_i,{show:u,onHide:()=>{s(),d(!1)},addition:p})]})},HTt=({value:e,onChange:t})=>{const[n,r]=b.useState([]),[i,o]=b.useState(""),[a,s]=b.useState(!1),l=d2(),c=async()=>{s(!0),o("");const u=await vte();u.ok?r(u.data.tables[0].rows):o(u.message),s(!1)};return b.useEffect(()=>{(async()=>await c())()},[]),f.jsxs(f.Fragment,{children:[f.jsx(Ji,{id:"bucket-list",clearOnEscape:!0,options:n,getOptionLabel:u=>u.BucketName,renderInput:u=>f.jsx(je,{...u,label:"Buckets",variant:"outlined",fullWidth:!0,size:"small",InputProps:{...u.InputProps,className:l.autocompleteField}}),value:n.find(u=>u.BucketId===e)||null,onChange:(u,d)=>{d&&d.BucketId?t(d.BucketId):t(null)}}),f.jsx(Mt,{error:i,onHide:()=>o("")})]})},J_i=Rn(),e5i=({show:e,onHide:t,date:n,limitDates:r})=>{const{state:i}=ka(),o=Ot(i.settings,"MAX_WEIGHT_CHARGE",0),a=Ot(i.settings,"MIN_WEIGHT_CHARGE",2e5),{saveCharge:s}=xs(),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(!1),g=d2(),{getValues:m,handleSubmit:v,setValue:y,control:M,reset:C,formState:{errors:x}}=Gn({}),w=(A,z)=>{z!=="clickaway"&&h(!1)},S=async A=>{c(!0),await s(A),c(!1),t()};return b.useEffect(()=>{if(e){C();const A=J_i(n).add(1,"minutes").toDate();A.setSeconds(0),y("Timestamp",A)}},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"New Manual Charge"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"NEW MANUAL CHARGE",open:e,handleClose:()=>t(),id:"create-charge-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:v(S),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"BucketId",control:M,render:({field:A})=>f.jsx(HTt,{value:A.value||null,onChange:A.onChange})}),x.BucketId&&f.jsx("span",{className:g.errorLabel,children:x.BucketId.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Weight",control:M,rules:{required:"Weight is required",validate:A=>Tm(A,o,a,"Weight")},render:({field:A})=>f.jsx(hh,{...A,value:m("Weight"),label:"Scrap Weight [lbs]",onChange:z=>y("Weight",z),onBlur:()=>{}})}),x.Weight&&f.jsx("span",{className:g.errorLabel,children:x.Weight.message})]}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Timestamp",control:M,rules:{required:"Timestamp is required",validate:A=>r?.start&&A<r.start?"Timestamp must be between the start and end of the Process":r?.end&&A>r.end?"Timestamp must be less than the end of the process":!0},render:({field:A})=>f.jsx(jm,{...A,format:"HH:mm - MM/DD/YYYY",value:m("Timestamp"),label:"Time",error:x.Timestamp?.message,onChange:z=>{z&&y("Timestamp",z)},onBlur:()=>{}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Da,{fullWidth:!0,isLoading:l,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:p,autoHideDuration:2500,onClose:w,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:w,children:"The charge was created successfully"})})]})}),f.jsx(Mt,{error:u,onHide:()=>d(""),title:"Error Creating Manual Probe"})]})},t5i=({show:e,onHide:t,charge:n,limitDates:r})=>{const{state:i}=ka(),o=Ot(i.settings,"MAX_WEIGHT",0),a=Ot(i.settings,"MIN_WEIGHT",2e5),{saveCharge:s,getBuckets:l}=xs(),[c,u]=b.useState(!1),[d,p]=b.useState(""),[h,g]=b.useState(!1),[m,v]=b.useState([]),y=d2(),{getValues:M,handleSubmit:C,setValue:x,control:w,reset:S,formState:{errors:A}}=Gn({}),z=(T,I)=>{I!=="clickaway"&&g(!1)},O=async T=>{u(!0),await s({...T,ChargeId:n.ChargeId}),u(!1),t()};return b.useEffect(()=>{e&&(S(),(async()=>{const T=await l();v(T)})(),x("Timestamp",n?.Timestamp),x("Weight",n?.Weight),x("BucketId",n?.BucketId||null))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Edit Manual Charge"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"EDIT MANUAL CHARGE",open:e,handleClose:()=>t(),id:"edit-charge-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:C(O),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"BucketId",control:w,render:({field:T})=>f.jsx(HTt,{value:T.value||null,onChange:I=>{x("BucketId",I,{shouldValidate:!0})},onBlur:T.onBlur})}),A.BucketId&&f.jsx("span",{className:y.errorLabel,children:A.BucketId.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Weight",control:w,defaultValue:n?.Weight,rules:{required:"Weight is required",validate:T=>Tm(T,o,a,"Weight")},render:({field:T})=>f.jsx(hh,{...T,value:M("Weight"),label:"Scrap Weight [lbs]",onChange:I=>x("Weight",I),onBlur:()=>{}})}),A.Weight&&f.jsx("span",{className:y.errorLabel,children:A.Weight.message})]}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Timestamp",control:w,defaultValue:n?.Timestamp,rules:{required:"Timestamp is required",validate:T=>r?.start&&T<r.start?"Timestamp must be between the start and end of the process":r?.end&&T>r.end?"Timestamp must be less than the end of the process":!0},render:({field:T})=>f.jsx(jm,{...T,format:"HH:mm - MM/DD/YYYY",value:M("Timestamp"),label:"Time",onChange:I=>{I&&x("Timestamp",I)},onBlur:()=>{},error:A.Timestamp?.message})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Da,{fullWidth:!0,isLoading:c,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:h,autoHideDuration:2500,onClose:z,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:z,children:"The charge was edited successfully"})})]})}),f.jsx(Mt,{error:d,onHide:()=>p(""),title:"Error Editing Manual Probe"})]})},n5i=({deleteCharge:e,editCharge:t})=>({columns:[{headerName:"Charges",headerStyle:{fontSize:"0.9rem"},children:[{field:"manual-auto",headerName:" ",flex:1,minWidth:25,maxWidth:40,cellRenderer:Tte,cellRendererParams:i=>({isManual:i.data.IsChargeManual})},{field:"Timestamp",headerName:"Time",flex:1,minWidth:61,valueGetter:i=>{if(i.data.Timestamp)return Wn(i.data.Timestamp,"HH:mm")}},{field:"BucketName",headerName:"Bucket",flex:1,minWidth:77},{field:"Weight",headerName:"Scrap Weight [lbs]",flex:1,minWidth:137,cellStyle:{textAlign:"right"}},{field:"actions",headerName:" ",flex:1,minWidth:60,maxWidth:80,cellRenderer:zM,cellRendererParams:i=>({deleteItem:e,edit:t,id:i.data.ChargeId})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),r5i=()=>{const{state:e}=ka(),t=Ot(e.settings,"MAX_CHARGES",10),{state:{deProcess:n},actions:{setErrorMessage:r}}=Ls(),{deleteCharge:i,refreshData:o}=xs(),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(),p=n?.charges,h=p?p.length:0,g=jw({rowCount:h}),{pause:m,resume:v}=I0(),y=p&&p.length>=t||!1,M=S=>{m();const A=p?.find(z=>z.ChargeId===S);d(A),c(!0)},C=async()=>{const S=n?.process?.ProcessId;if(S){const A=await ESi({ProcessId:S});return A.ok?await o():r(A.message),A}else return r("Process not found"),{ok:!1,message:"Process not found"}},{columns:x}=n5i({deleteCharge:i,editCharge:M}),w=b.useMemo(()=>p?.reduce((S,A)=>S+(A.Weight||0),0)||0,[p]);return f.jsxs(f.Fragment,{children:[f.jsx(kt,{elevation:0,children:f.jsxs(Tn,{padding:1,className:`${g.chargesAgGridBox}`,style:{position:"relative"},children:[f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:p,columnDefs:x,domLayout:"normal",suppressContextMenu:!0,onRowDoubleClicked:S=>{M(S.data.ChargeId)}}),f.jsxs("div",{children:[f.jsx(Tn,{display:"flex",justifyContent:"center",width:"100%",mt:2,style:{position:"absolute",right:"4%"},children:f.jsxs(bt,{style:{cursor:"default",userSelect:"none"},children:["Total Scrap: ",f.jsxs("strong",{children:[" ",w]})," lbs"]})}),f.jsx(ua,{}),f.jsx(u2,{hasMaxItems:y,showCreateModal:a,setShowCreateModal:s,readFromPLC:C,table:"charges"})]})]})}),n?.process.Start?f.jsxs(f.Fragment,{children:[f.jsx(e5i,{show:a,onHide:()=>{v(),s(!1)},date:p&&p[0]?p[0].Timestamp:n?.process.Start,limitDates:{start:n?.process.Start,end:n?.process.End}}),f.jsx(t5i,{show:l,onHide:()=>{v(),c(!1)},charge:u,limitDates:{start:n?.process.Start,end:n?.process.End||null}})]}):null]})},i5i=({value:e,onChange:t,disabled:n,error:r,helperText:i})=>{const o=b.useRef(!0),[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState([]),[p,h]=b.useState(),g=dT(),m=async()=>{s(!0);const v=await fSi();if(v.ok){const y=Ot(v,"data.tables[0].rows",[]);d(y)}else c(v.message);s(!1)};return b.useEffect(()=>{if(o.current){o.current=!1,m().then(()=>{});return}},[]),f.jsxs(f.Fragment,{children:[f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(il,{id:"phaseEventSelector",className:g.inputLabel,children:"Phase Event"}),f.jsx(ls,{fullWidth:!0,disabled:a||n,labelId:"phaseEventSelector",id:"phaseEventSelector",value:e||"",error:!!r,onChange:v=>{const y=v.target.value;t(y),h(y)},label:"Phase Event",children:u.map(v=>f.jsx(sr,{value:v.PhaseEventTypeId,children:v.EventDescription},`phase-event-${v.PhaseEventTypeId}`))}),r&&f.jsx(KK,{error:!0,children:r})]}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},o5i=({show:e,onHide:t,date:n,limitDates:r,electrodeEvent:i})=>{const{saveElectrodeEvent:o}=xs(),[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState(!1),p=d2(),{getValues:h,handleSubmit:g,setValue:m,control:v,reset:y,formState:{errors:M}}=Gn({}),C=async x=>{s(!0);try{await o(x),d(!0),t()}catch(w){c(Ot(w,"message","An unexpected error has occurred"))}s(!1)};return b.useEffect(()=>{e&&(i?y(i):(y(),m("Timestamp",n),m("PhaseEventTypeId",0),m("Phase","A")))},[e,i]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:`${i?"Edit":"New"} Manual Electrode Event`}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{title:i?"EDIT ELECTRODE EVENT":"NEW ELECTRODE EVENT",open:e,handleClose:()=>t(),id:"upsert-electrode-event-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:g(C),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Phase",control:v,rules:{required:"Phase is required"},render:({field:x})=>f.jsxs(ja,{variant:"outlined",fullWidth:!0,children:[f.jsx(il,{id:"phaseSelector",children:"Phase"}),f.jsxs(ls,{fullWidth:!0,labelId:"phaseSelector",id:"phaseSelector",value:x.value,onChange:x.onChange,label:"Phase",children:[f.jsx(sr,{value:"A",children:"A"}),f.jsx(sr,{value:"B",children:"B"}),f.jsx(sr,{value:"C",children:"C"})]})]})}),M.Phase&&f.jsx("span",{className:p.errorLabel,children:M.Phase.message})]}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:"4px"},children:f.jsx(Ue,{name:"Timestamp",control:v,defaultValue:new Date,rules:{required:"Timestamp is required",validate:x=>r?.start&&x<r.start?"Timestamp must be between the start and end of the process":r?.end&&x>r.end?"Timestamp must be less than the end of the process":!0},render:({field:x})=>f.jsx(jm,{...x,format:"HH:mm - MM/DD/YYYY",value:h("Timestamp"),label:"Time",error:M.Timestamp?.message,onChange:w=>{w&&m("Timestamp",w)},onBlur:()=>{}})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"PhaseEventTypeId",control:v,rules:{required:"Phase Event Type is required",validate:x=>x===0?"Phase Event Type is required":!0},render:({field:x})=>f.jsx(i5i,{value:x.value,onChange:x.onChange,disabled:!1,error:M.PhaseEventTypeId?.message,helperText:M.PhaseEventTypeId?.message})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Da,{fullWidth:!0,isLoading:a,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})})})}),f.jsx(Mt,{error:l,onHide:()=>c(""),title:`Error ${i?"Updating":"Creating"} Electrode Event`})]})},a5i=({deleteElectrodeEvent:e,editElectrodeEvent:t})=>({columns:[{headerName:"Electrodes",headerStyle:{fontSize:"0.9rem"},children:[{field:"Phase",headerName:"Phase",flex:1,minWidth:61},{field:"Timestamp",headerName:"Time",flex:1,minWidth:59,valueGetter:r=>{if(r.data.Timestamp)return Wn(r.data.Timestamp,"HH:mm")}},{field:"PhaseEventType",headerName:"Event",flex:3,minWidth:50,wrapText:!0,autoHeight:!0},{field:"actions",headerName:" ",flex:1,minWidth:80,maxWidth:80,cellRenderer:zM,cellRendererParams:r=>({deleteItem:e,edit:t,id:r.data.ElectrodeEventId})}]}]}),s5i=()=>{const{state:{deProcess:e}}=Ls(),{deleteElectrodeEvent:t}=xs(),[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(),{pause:l,resume:c}=I0(),u=e?.electrodeEvents,d=u?u.length:0,p=jw({rowCount:d}),h=m=>{l();const v=u?.find(y=>y.ElectrodeEventId===m);s(v),o(!0)},{columns:g}=a5i({deleteElectrodeEvent:t,editElectrodeEvent:h});return f.jsxs(f.Fragment,{children:[f.jsx(kt,{elevation:0,children:f.jsxs(Tn,{className:` ${p.electrodesAgGridBox}`,children:[f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:u,columnDefs:g,domLayout:"normal",suppressContextMenu:!0,onRowDoubleClicked:m=>{h(m.data.ElectrodeEventId)}}),f.jsx(ua,{}),f.jsx(u2,{hasMaxItems:!1,showCreateModal:n,setShowCreateModal:r,table:"electrode-events"})]})}),f.jsx(o5i,{show:n||i,onHide:()=>{c(),r(!1),o(!1),s(null)},date:e?.process?.End?e.process.Start:new Date,electrodeEvent:a})]})},aZe=Rn(),l5i=()=>({columns:[{headerName:"Heatings",headerStyle:{fontSize:"0.9rem"},children:[{field:"Start",headerName:"Start",flex:1,minWidth:81,valueGetter:n=>{if(n.data.Start)return Wn(n.data.Start,"HH:mm:ss")}},{field:"End",headerName:"End",flex:1,minWidth:81,valueGetter:n=>{if(n.data.End)return Wn(n.data.End,"HH:mm:ss")}},{field:"Duration",headerName:"Duration",flex:1,minWidth:85,valueGetter:n=>{const{Start:r,End:i}=n.data;if(i&&r){const o=aZe(i).diff(aZe(r),"seconds"),a=Math.floor(o/60),s=o%60;return`${a.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}}},{field:"MWH",headerName:"Energy [kwh]",flex:1,minWidth:113,cellStyle:{textAlign:"right"}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),c5i=()=>{const{state:e}=ka(),t=Ot(e.settings,"MAX_HEATINGS",10),{state:{deProcess:n},actions:{setNotificationMessage:r,setErrorMessage:i}}=Ls(),{refreshData:o}=xs(),a=n?.heatings,s=a?a.length:0,l=a&&a.length>=t||!1,c=jw({rowCount:s}),u=async()=>{const p=n?.process?.ProcessId;if(p){const h=await PSi({ProcessId:p});return h.ok?await o():i(h.message),h}else return r("Process not found"),{ok:!1,message:"Process not found"}},{columns:d}=l5i();return f.jsx(f.Fragment,{children:f.jsx(kt,{children:f.jsxs(Tn,{padding:1,className:`${c.heatingsAgGridBox}`,children:[f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:a,columnDefs:d,domLayout:"normal",suppressContextMenu:!0}),f.jsx(ua,{}),f.jsx(u2,{hasMaxItems:l,readFromPLC:u,table:"heatings"})]})})})},sZe=Rn(),u5i=()=>({columns:[{headerName:"Phases",headerStyle:{fontSize:"0.9rem"},children:[{field:"PhaseName",headerName:"Phase Name",flex:2,minWidth:120,valueGetter:n=>n.data.PhaseName},{field:"Start",headerName:"Start",flex:1,minWidth:81,valueGetter:n=>{if(n.data.Start)return Wn(n.data.Start,"HH:mm:ss")}},{field:"End",headerName:"End",flex:1,minWidth:81,valueGetter:n=>{if(n.data.End)return Wn(n.data.End,"HH:mm:ss")}},{field:"Duration",headerName:"Duration",flex:1,minWidth:85,valueGetter:n=>{const{Start:r,End:i}=n.data;if(i&&r){const o=sZe(i).diff(sZe(r),"seconds"),a=Math.floor(o/60),s=o%60;return`${a.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),d5i=()=>{const{state:{deProcess:e},actions:{setNotificationMessage:t,setErrorMessage:n}}=Ls(),{refreshData:r}=xs(),i=e?.phases,o=i?i.length:0,a=jw({rowCount:o}),s=async()=>{const c=e?.process?.ProcessId;if(c){const u=await DSi({ProcessId:c});return u.ok?await r():n(u.message),u}else return t("Process not found"),{ok:!1,message:"Process not found"}},{columns:l}=u5i();return f.jsx(f.Fragment,{children:f.jsx(kt,{elevation:0,children:f.jsxs(Tn,{padding:1,className:`${a.phasesAgGridBox}`,children:[f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:i,columnDefs:l,domLayout:"normal",suppressContextMenu:!0}),f.jsx(ua,{}),f.jsx(u2,{hasMaxItems:!1,readFromPLC:s,table:"phases"})]})})})},p5i=({show:e,onHide:t,date:n,limitDates:r})=>{const{state:i}=ka(),o=Ot(i.settings,"MAX_TEMP_PROBE",2500),a=Ot(i.settings,"MIN_TEMP_PROBE",3500),s=Ot(i.settings,"MAX_02_PROBE",0),l=Ot(i.settings,"MIN_02_PROBE",2e3),{saveProbe:c}=xs(),[u,d]=b.useState(!1),[p,h]=b.useState(""),[g,m]=b.useState(!1),v=d2(),{getValues:y,handleSubmit:M,setValue:C,control:x,reset:w,formState:{errors:S}}=Gn({}),A=(O,T)=>{T!=="clickaway"&&m(!1)},z=async O=>{d(!0),await c(O),d(!1),t()};return b.useEffect(()=>{e&&(w(),C("Timestamp",n),C("Temperature",0),C("Oxygen",0))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"New Manual Probe"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"NEW MANUAL PROBE",open:e,handleClose:()=>t(),id:"create-probe-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:M(z),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Temperature",control:x,defaultValue:0,rules:{required:"Temperature is required",validate:O=>Tm(O,o,a,"Temperature")},render:({field:O})=>f.jsx(hh,{...O,value:parseInt(y("Temperature").toFixed(0)),label:"Temperature [F]",onChange:T=>C("Temperature",T),onBlur:()=>{}})}),S.Temperature&&f.jsx("span",{className:v.errorLabel,children:S.Temperature.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Oxygen",control:x,defaultValue:0,rules:{validate:O=>Tm(O,s,l,"Oxygen")},render:({field:O})=>f.jsx(hh,{...O,value:y("Oxygen"),label:"Oxygen",onChange:T=>C("Oxygen",T),onBlur:()=>{}})}),S.Oxygen&&f.jsx("span",{className:v.errorLabel,children:S.Oxygen.message})]}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Timestamp",control:x,defaultValue:new Date,rules:{required:"Timestamp is required",validate:O=>r?.start&&O<r.start?"Timestamp must be between the start and end of the process":r?.end&&O>r.end?"Timestamp must be less than the end of the process":!0},render:({field:O})=>f.jsx(jm,{...O,format:"HH:mm - MM/DD/YYYY",value:y("Timestamp"),label:"Time",error:S.Timestamp?.message,onChange:T=>{T&&C("Timestamp",T)},onBlur:()=>{}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Da,{fullWidth:!0,isLoading:u,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:g,autoHideDuration:2500,onClose:A,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:A,children:"The probe was created successfully"})})]})}),f.jsx(Mt,{error:p,onHide:()=>h(""),title:"Error Creating Manual Probe"})]})},h5i=({show:e,onHide:t,probe:n,limitDates:r})=>{const{state:i}=ka(),o=Ot(i.settings,"MAX_TEMP_PROBE",2500),a=Ot(i.settings,"MIN_TEMP_PROBE",3500),s=Ot(i.settings,"MAX_02_PROBE",0),l=Ot(i.settings,"MIN_02_PROBE",2e3),{saveProbe:c}=xs(),[u,d]=b.useState(!1),[p,h]=b.useState(""),[g,m]=b.useState(!1),v=d2(),{getValues:y,handleSubmit:M,setValue:C,control:x,reset:w,formState:{errors:S}}=Gn({}),A=(O,T)=>{T!=="clickaway"&&m(!1)},z=async O=>{d(!0),await c({...O,ProbeId:n.ProbeId}),d(!1),t()};return b.useEffect(()=>{e&&(w(),C("Timestamp",n?.Timestamp),C("Temperature",n?.Temperature),C("Oxygen",n?.Oxygen))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Edit Probe"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"EDIT MANUAL PROBE",open:e,handleClose:()=>t(),id:"edit-probe-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:M(z),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Temperature",control:x,defaultValue:n?.Temperature?parseInt(n?.Temperature.toFixed(0)):0,rules:{required:"Temperature is required",validate:O=>Tm(O,o,a,"Temperature")},render:({field:O})=>f.jsx(hh,{...O,value:parseInt(y("Temperature").toFixed(0)),label:"Temperature [F]",onChange:T=>C("Temperature",T),onBlur:()=>{}})}),S.Temperature&&f.jsx("span",{className:v.errorLabel,children:S.Temperature.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Oxygen",control:x,rules:{validate:O=>Tm(O,s,l,"Oxygen")},defaultValue:n?.Oxygen,render:({field:O})=>f.jsx(hh,{...O,value:y("Oxygen"),label:"Oxygen",onChange:T=>C("Oxygen",T),onBlur:()=>{}})}),S.Oxygen&&f.jsx("span",{className:v.errorLabel,children:S.Oxygen.message})]}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(Ue,{name:"Timestamp",control:x,defaultValue:n?.Timestamp,rules:{required:"Timestamp is required",validate:O=>r?.start&&O<r.start?"Timestamp must be between the start and end of the process":r?.end&&O>r.end?"Timestamp must be less than the end of the process":!0},render:({field:O})=>f.jsx(jm,{...O,format:"HH:mm - MM/DD/YYYY",value:y("Timestamp"),label:"Time",error:S.Timestamp?.message,onChange:T=>{T&&C("Timestamp",T)},onBlur:()=>{}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",size:"large",onClick:()=>t(),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Da,{fullWidth:!0,isLoading:u,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:g,autoHideDuration:2500,onClose:A,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:A,children:"The probe was edited successfully"})})]})}),f.jsx(Mt,{error:p,onHide:()=>h(""),title:"Error Editing Manual Probe"})]})},f5i=({deleteProbe:e,editProbe:t})=>({columns:[{headerName:"Probes",headerStyle:{fontSize:"0.9rem"},children:[{field:"manual-auto",headerName:" ",flex:1,minWidth:20,maxWidth:40,cellRenderer:Tte,cellRendererParams:i=>({isManual:i.data.IsProbeManual})},{field:"Timestamp",headerName:"Time",flex:1,minWidth:60,valueGetter:i=>{if(i.data.Timestamp)return Wn(i.data.Timestamp,"HH:mm")}},{field:"Temperature",headerName:"Temp",flex:1,minWidth:60},{field:"Oxygen",headerName:"O2",flex:1,minWidth:50},{field:"actions",headerName:" ",flex:1,minWidth:60,maxWidth:80,cellRenderer:zM,cellRendererParams:i=>({deleteItem:e,edit:t,id:i.data.ProbeId})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),g5i=()=>{const{state:e}=ka(),t=Ot(e.settings,"MAX_PROBES",8),{state:{deProcess:n},actions:{setDEProcess:r,setNotificationMessage:i,setErrorMessage:o}}=Ls(),{deleteProbe:a,refreshData:s}=xs(),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[p,h]=b.useState(),{pause:g,resume:m}=I0(),v=n?.probes,y=v?v.length:0,M=jw({rowCount:y}),C=v&&v.length>=t||!1,x=A=>{g();const z=v?.find(O=>O.ProbeId===A);h(z),d(!0)},w=async()=>{const A=n?.process?.ProcessId;if(A){const z=await TSi({ProcessId:A});return z.ok?await s():o(z.message),z}else return i("Process not found"),{ok:!1,message:"Process not found"}},{columns:S}=f5i({deleteProbe:a,editProbe:x});return f.jsxs(f.Fragment,{children:[f.jsx(kt,{elevation:0,children:f.jsxs(Tn,{className:` ${M.probesAgGridBox}`,children:[f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:v,columnDefs:S,suppressContextMenu:!0,domLayout:"normal",onRowDoubleClicked:A=>{x(A.data.ProbeId)}}),f.jsx(ua,{}),f.jsx(u2,{hasMaxItems:C,showCreateModal:l,setShowCreateModal:c,readFromPLC:w,table:"probes"})]})}),f.jsx(p5i,{show:l,onHide:()=>{m(),c(!1)},date:n?n.process.Start:new Date,limitDates:{start:n?n.process.Start:new Date,end:n?n.process.End:null}}),f.jsx(h5i,{show:u,onHide:()=>{m(),d(!1)},probe:p,limitDates:{start:n?n.process.Start:new Date,end:n?n.process.End:null}})]})},Tpe=Rn(),m5i=({show:e,onHide:t,date:n})=>{const{state:r}=ka(),i=Ot(r.settings,"EAF_DE_MIN_FT_WIRE_ADDITION",0),o=Ot(r.settings,"EAF_DE_MAX_FT_WIRE_ADDITION",2e3),{state:{deProcess:a}}=Ls(),{saveWireAddition:s,getMaterials:l}=xs(),[c,u]=b.useState(!1),[d,p]=b.useState(""),[h,g]=b.useState(!1),[m,v]=b.useState([]),y=d2(),{getValues:M,handleSubmit:C,setValue:x,control:w,reset:S,formState:{errors:A}}=Gn({}),z=(I,P)=>{P!=="clickaway"&&g(!1)},O=I=>{if(!I)return;const P=Tpe.utc(I),N=Tpe.utc(a?.process.Start),F=a?.process.End?Tpe.utc(a.process.End):null,L=zte(P,N,F);x("Start",L.toDate()),x("End",L.toDate())},T=async I=>{u(!0),await s(I),u(!1),t()};return b.useEffect(()=>{e&&(u(!1),S(),(async()=>{const I=await l();v(I.filter(P=>P.UseInTrim===!0))})(),x("Line",1),x("MaterialId",null),x("Start",n),x("End",n),x("InjectedValue",1))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"New Manual Wire Addition"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"CREATE WIRE ADDITION",open:e,handleClose:()=>t(),id:"create-wire-addition-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:C(T),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Line",control:w,rules:{required:"Line is required",validate:I=>[1,2,3].includes(I)||"Line must be 1, 2 or 3"},render:({field:I})=>f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",children:[f.jsx(il,{id:"line-select-label",children:"Line"}),f.jsxs(ls,{...I,labelId:"line-select-label",id:"line-select",value:I.value||"",onChange:P=>I.onChange(P.target.value),label:"Line",children:[f.jsx(sr,{value:1,children:"1"}),f.jsx(sr,{value:2,children:"2"}),f.jsx(sr,{value:3,children:"3"})]})]})}),A.Line&&f.jsx("span",{className:y.errorLabel,children:A.Line.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"MaterialId",control:w,rules:{required:"Material is required"},render:({field:I})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:m??[],getOptionLabel:P=>P.MaterialName,renderInput:P=>f.jsx(je,{...P,label:"Material",variant:"outlined",fullWidth:!0,size:"small",InputProps:{...P.InputProps,className:y.autocompleteField}}),value:m.find(P=>P.MaterialId===I.value)||null,onChange:(P,N)=>{I.onChange(N?N.MaterialId:null)}})}),A.MaterialId&&f.jsx("span",{className:y.errorLabel,children:A.MaterialId.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,alignContent:"center",children:[f.jsx(Ue,{name:"End",control:w,rules:{required:"Time is required"},render:({field:I})=>f.jsx(jm,{...I,format:"HH:mm - MM/DD/YYYY",value:M("End"),label:"Time",onChange:O,onBlur:()=>{}})}),A.End&&f.jsx("span",{className:y.errorLabel,children:A.End.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"InjectedValue",control:w,rules:{required:"Injected value is required",validate:I=>Tm(I,i,o,"Injected")},render:({field:I})=>f.jsx(hh,{...I,value:M("InjectedValue"),label:"Injected [ft]",onChange:P=>x("InjectedValue",P),onBlur:()=>{}})}),A.InjectedValue&&f.jsx("span",{className:y.errorLabel,children:A.InjectedValue.message})]})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Da,{fullWidth:!0,isLoading:c,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:h,autoHideDuration:2500,onClose:z,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:z,children:"The wire addition was created successfully"})})]})}),f.jsx(Mt,{error:d,onHide:()=>p(""),title:"Error Creating Wire Addition"})]})},Epe=Rn(),v5i=({show:e,onHide:t,wireAddition:n})=>{const{state:r}=ka(),{state:{deProcess:i}}=Ls(),o=Ot(r.settings,"EAF_DE_MIN_FT_WIRE_ADDITION",0),a=Ot(r.settings,"EAF_DE_MAX_FT_WIRE_ADDITION",2e3),{saveWireAddition:s,getMaterials:l}=xs(),[c,u]=b.useState(!1),[d,p]=b.useState(""),[h,g]=b.useState(!1),[m,v]=b.useState([]),y=d2(),{getValues:M,handleSubmit:C,setValue:x,control:w,reset:S,formState:{errors:A}}=Gn({}),z=(I,P)=>{P!=="clickaway"&&g(!1)},O=async I=>{u(!0),await s({...I,WireAdditionId:n.WireAdditionId}),u(!1),t()},T=I=>{if(!I)return;const P=Epe.utc(I),N=Epe.utc(i?.process.Start),F=i?.process.End?Epe.utc(i.process.End):null,L=zte(P,N,F);x("End",L.toDate())};return b.useEffect(()=>{e&&(u(!1),S(),(async()=>{const I=await l();v(I.filter(P=>P.UseInTrim===!0))})(),x("Line",n?.Line),x("MaterialId",n?.MaterialId),x("Start",n?.Start),x("End",n?.End),x("InjectedValue",n?.InjectedValue),x("RequestedValue",n?.RequestedValue))},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Edit Manual Wire Addition"}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,children:[f.jsx(We,{title:"EDIT WIRE ADDITION",open:e,handleClose:()=>t(),id:"edit-wire-addition-modal",maxWidth:"sm",children:f.jsxs("form",{onSubmit:C(O),children:[f.jsx(We.Content,{dividers:!0,style:{padding:"15px 30px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Line",control:w,rules:{required:"Line is required",validate:I=>[1,2,3].includes(I)||"Line must be 1, 2, or 3"},render:({field:I})=>f.jsxs(ja,{variant:"outlined",fullWidth:!0,size:"small",children:[f.jsx(il,{id:"line-select-label",children:"Line"}),f.jsxs(ls,{...I,labelId:"line-select-label",id:"line-select",value:I.value||"",onChange:P=>I.onChange(P.target.value),label:"Line",disabled:!0,children:[f.jsx(sr,{value:1,children:"1"}),f.jsx(sr,{value:2,children:"2"}),f.jsx(sr,{value:3,children:"3"})]})]})}),A.Line&&f.jsx("span",{className:y.errorLabel,children:A.Line.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"MaterialId",control:w,rules:{required:"Material is required"},render:({field:I})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:m??[],disabled:!n.IsManual,getOptionLabel:P=>P.MaterialName,renderInput:P=>f.jsx(je,{...P,label:"Material",variant:"outlined",fullWidth:!0,size:"small",InputProps:{...P.InputProps,className:y.autocompleteField}}),value:m.find(P=>P.MaterialId===I.value)||null,onChange:(P,N)=>{I.onChange(N?N.MaterialId:null)}})}),A.MaterialId&&f.jsx("span",{className:y.errorLabel,children:A.MaterialId.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,alignContent:"center",children:[f.jsx(Ue,{name:"End",control:w,rules:{required:"Time is required"},render:({field:I})=>f.jsx(jm,{...I,format:"HH:mm - MM/DD/YYYY",value:M("End"),label:"Time",onChange:T,onBlur:()=>{},disabled:!0})}),A.End&&f.jsx("span",{className:y.errorLabel,children:A.End.message})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"InjectedValue",control:w,rules:{required:"Injected value is required",validate:I=>Tm(I,o,a,"Injected")},render:({field:I})=>f.jsx(hh,{...I,value:M("InjectedValue"),label:"Injected [ft]",onChange:P=>x("InjectedValue",P),onBlur:()=>{}})}),A.InjectedValue&&f.jsx("span",{className:y.errorLabel,children:A.InjectedValue.message})]})]})}),f.jsx(We.Actions,{style:{padding:"20px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"large",children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(Da,{fullWidth:!0,isLoading:c,variant:"contained",color:"primary",type:"submit",size:"large",children:"Save"})})]})})]})}),f.jsx(pr,{open:h,autoHideDuration:2500,onClose:z,children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:z,children:"The wire addition was edited successfully"})})]})}),f.jsx(Mt,{error:d,onHide:()=>p(""),title:"Error Editing Wire Addition"})]})},b5i=({deleteWireAddition:e,editWireAddition:t})=>({columns:[{headerName:"Wire Additions",headerStyle:{fontSize:"0.9rem"},children:[{field:"IsManual",headerName:" ",flex:1,minWidth:38,maxWidth:40,cellRenderer:Tte,cellRendererParams:i=>({isManual:i.data.IsManual})},{field:"Line",headerName:"Line",flex:1,minWidth:52,maxWidth:52},{field:"End",headerName:"Time",flex:1,minWidth:61,valueGetter:i=>{if(i.data.End)return Wn(i.data.End,"HH:mm")}},{field:"MaterialName",headerName:"Material",flex:1,minWidth:78},{field:"RequestedValue",headerName:"Requested [ft]",wrapHeaderText:!0,flex:1,minWidth:90,cellStyle:{textAlign:"right"}},{field:"InjectedValue",headerName:"Injected [ft]",wrapHeaderText:!0,flex:1,minWidth:90,cellStyle:{textAlign:"right"},valueGetter:i=>{if(Jx(i.data.InjectedValue)){const o=i.data.InjectedValue;return o%1===0?o:o.toFixed(2)}}},{field:"actions",headerName:" ",flex:1,minWidth:80,maxWidth:80,cellRenderer:zM,cellRendererParams:i=>({deleteItem:e,edit:t,id:i.data.WireAdditionId})}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),y5i=Rn(),M5i=()=>{const{state:e}=ka(),t=Ot(e.settings,"EAF_DE_MAX_WIRE_ADDITIONS",10),{state:{deProcess:n},actions:{setErrorMessage:r}}=Ls(),{deleteWireAddition:i,refreshData:o}=xs(),{pause:a,resume:s}=I0(),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[p,h]=b.useState(),g=n?.wireAdditions,m=g?g.length:0,v=jw({rowCount:m}),y=g&&g.length>=t||!1,M=w=>{a();const S=g?.find(A=>A.WireAdditionId===w);h(S),d(!0)},C=async()=>{const w=n?.process?.ProcessId;if(w){const S=await ISi({ProcessId:w});return S.ok?await o():r(S.message),S}else return r("Process not found"),{ok:!1,message:"Process not found"}},{columns:x}=b5i({deleteWireAddition:i,editWireAddition:M});return f.jsxs(f.Fragment,{children:[f.jsx(kt,{children:f.jsxs(Tn,{padding:1,className:`${v.wireAdditionsAgGridBox}`,children:[f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:g,columnDefs:x,domLayout:"normal",suppressContextMenu:!0,onRowDoubleClicked:w=>{M(w.data.WireAdditionId)}}),f.jsx(ua,{}),f.jsx(u2,{hasMaxItems:y,showCreateModal:l,setShowCreateModal:c,readFromPLC:C,table:"wireAdditions"})]})}),f.jsx(m5i,{show:l,onHide:()=>{s(),c(!1)},date:n?.process.End?y5i(n.process.End).add(10,"minute").toDate():new Date}),f.jsx(v5i,{show:u,onHide:()=>{s(),d(!1)},wireAddition:p})]})};function C5i(e){const t=/^(\d{1,2}):(\d{2})$/,n=e.match(t);if(!n)throw new Error('Invalid time format. Expected "hh:mm".');const r=parseInt(n[1],10),i=parseInt(n[2],10);if(r<0||r>23)throw new Error("Hours must be between 0 and 23.");if(i<0||i>59)throw new Error("Minutes must be between 0 and 59.");return r*60+i}function x5i(e){const t=Math.floor(e??0),n=Math.round(((e??0)-t)*60),r=String(t).padStart(2,"0"),i=String(n).padStart(2,"0");return`${r}:${i}`}const w5i=()=>{const e=jw(),t=oc(),n=fa(),{pause:r,resume:i}=I0(),{state:{deProcess:o,unjustifiedDelays:a},actions:{setProcess:s,setNotificationMessage:l}}=Ls(),{saveHeat:c,saveProcessData:u,refreshData:d}=xs(),{hasAccess:p,delayJustificationDismissed:h}=Y3e(),g=o?.process,[m,v]=b.useState(!1),y=b.useMemo(()=>p?h()||a.length>0:!1,[p,h,a,g?.ProcessId]),M=()=>{a.length===1?v(!0):n(`/eaf-delays-manager/${a[0].ShiftId}`)};return b.useEffect(()=>{const C=a.length>0,x=h();p&&C&&!x&&v(!0)},[p,a,h,g?.ProcessId]),f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:`${g?`${g.HeatName} - `:""}EAF Data Entry`}),y&&a.length>0&&f.jsx(wMe,{position:"static",style:{backgroundColor:" #f9f871"},children:f.jsx(eQ,{children:f.jsxs(D,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2,children:[f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsxs(bt,{variant:"h6",style:{color:"#000000"},children:["You have ",a.length," unjustified delays pending"," ",g?.AssetName?`- ${g.AssetName}`:""]})}),f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(Fe,{onClick:M,variant:"contained",color:"primary",size:"large",children:"Justify Now!"})})]})})},`Asset ${g?.AssetId} - Process ${g?.ProcessId} - Delays ${a.length}`),f.jsx(Tn,{padding:1,style:{backgroundColor:"#eaebec"},children:f.jsxs(D,{container:!0,spacing:1,direction:"column",children:[f.jsx(D,{item:!0,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"EAF Data Entry"})}),f.jsx(D,{item:!0,children:f.jsx(kt,{elevation:0,children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,container:!0,justifyContent:"space-between",alignItems:"flex-start",spacing:3,children:[f.jsxs(D,{container:!0,item:!0,direction:"column",xs:12,md:2,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(I_i,{})}),f.jsx(D,{item:!0,xs:12,md:12,children:g?.AssetName&&g?.AssetId?f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(C_i,{assetName:g.AssetName,assetId:g.AssetId,heatStatus:g.HeatStatusCode})}):null})]}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,children:f.jsxs(D,{container:!0,direction:"column",spacing:2,children:[f.jsx(D,{item:!0,style:{marginBottom:-4},children:f.jsx(je,{InputLabelProps:{style:{fontSize:"14px"}},fullWidth:!0,label:"Shift",variant:"outlined",disabled:!0,value:`${Wn(g?.ProductionDate,"MM/dd/yy")} ${g?.Shift} - ${g?.Crew}`})}),f.jsx(D,{item:!0,children:f.jsx(iZe,{field:"Start"})}),f.jsx(D,{item:!0,children:f.jsx(iZe,{field:"End"})})]})},`first-${g?.ProcessId}`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,children:f.jsxs(D,{container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(A_i,{disabled:!g?.HeatId,value:g?.LadleId||null,onChange:C=>{s({...g,LadleId:C})}})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(hh,{label:"Steel Weight [tons]",value:g?.SteelWeight?parseFloat(g.SteelWeight.toFixed(1)):null,disabled:!g?.HeatId,onChange:C=>{s({...g,SteelWeight:C})},onBlur:()=>{c("SteelWeight",g?.SteelWeight).then(()=>{})}})})]})}),f.jsx(D,{item:!0,children:f.jsx(S_i,{ladleLife:{HeatsOnLadle:g?.HeatsOnLadle||null,ContactTimeOnLadle:g?.ContactTimeOnLadle||null},value:g?.ForceHeatsOnLadle||null,onChange:C=>{c("ForceHeatsOnLadle",C)},disabled:!(g?.HeatId||g?.LadleId)})}),f.jsx(D,{item:!0,children:f.jsx(x_i,{disabled:!g?.HeatId,value:g?.GradeId||null,onChange:C=>{s({...g,GradeId:C})}})})]})},`sec-${g?.ProcessId}`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,children:f.jsxs(D,{item:!0,container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsx(sTe,{label:"Tap To Tap [hh:mm:ss]",value:g?.TapToTap?g?.TapToTap:null,unit:"minutes",disabled:!0,onChange:C=>{s({...g,TapTime:Number(C)})}})}),f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(F_i,{label:"Power On [hh:mm]",disabled:gi(g?.End),initMinutes:g?.PowerOn||0,onFocusHandler:r,onBlurHandler:C=>{const x=C5i(C.target.value||"00:00");u({processId:g?.ProcessId,field:"PowerOn",value:x||0}),i()},onTimeChange:C=>{s({...g,PowerOn:Number(C)})}})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(je,{fullWidth:!0,disabled:!0,label:"Power Off [hh:mm]",variant:"outlined",value:g?.PowerOff?x5i(g?.PowerOff/60):0,onChange:C=>{s({...g,PowerOn:Number(C.target.value)})}})})]})}),f.jsx(D,{item:!0,children:f.jsx(hh,{label:"Kwh / tons",value:g?.KWHPerTon?parseFloat(g.KWHPerTon.toFixed(1)):null,onChange:C=>{s({...g,KWHPerTon:Number(C)})},onBlur:()=>{u({processId:g?.ProcessId,field:"KWHPerTon",value:g?.KWHPerTon?g?.KWHPerTon:0})}})})]})},`third-${g?.ProcessId}`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,children:f.jsxs(D,{item:!0,container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,children:f.jsx(q_i,{field:"Foreman"})}),f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(RO,{field:"Heel",label:"Heel [tons]"})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(RO,{field:"Lime",label:"Lime [lbs]"})})]})}),f.jsx(D,{item:!0,children:f.jsx(RO,{field:"InjectedCarbon",label:"Inj Carbon [lbs]"})})]})},`foreman-etc-${g?.ProcessId}`),f.jsx(D,{item:!0,xs:12,sm:12,md:2,style:{marginTop:5},children:f.jsxs(D,{item:!0,container:!0,direction:"column",spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:12,md:9,children:f.jsx(P_i,{})}),f.jsx(D,{item:!0,xs:12,sm:12,md:9,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",style:{backgroundColor:t.palette.info.main,color:t.palette.info.contrastText},size:"large",onClick:()=>{const C=g?.ShiftId;C&&n(`/eaf-processes/${C}?processId=${g?.ProcessId}`)},children:"EAF Processes"})}),f.jsx(D,{item:!0,xs:12,sm:12,md:9,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",size:"large",disabled:!g?.HeatShiftId||!g?.HeatId,style:{backgroundColor:t.palette.info.main,color:t.palette.info.contrastText},onClick:()=>{const C=g?.HeatId,x=g?.HeatShiftId;C&&n(`/meltshop-heats/${x}?heatId=${C}`)},children:"Heats Page"})})]})},`fourth-${g?.ProcessId}`)]})})})}),f.jsxs(D,{item:!0,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:4,children:f.jsxs(D,{container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(g5i,{})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Z_i,{})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(M5i,{})})]})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsxs(D,{container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(kt,{elevation:0,children:f.jsx(Tn,{padding:1,className:`${e.middleTextfields}`,children:f.jsxs(D,{container:!0,spacing:1,style:{justifyContent:"center"},children:[f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx(G_i,{})}),f.jsx(D,{item:!0,xs:12,md:6,children:f.jsx($_i,{})})]})})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(c5i,{})})]})}),f.jsx(D,{item:!0,xs:12,md:4,children:f.jsxs(D,{container:!0,direction:"column",spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(r5i,{})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(d5i,{})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(s5i,{})})]})})]}),f.jsx(D,{item:!0,children:f.jsx(kt,{children:f.jsx(Tn,{padding:1,children:f.jsx(ja,{children:f.jsx(AMe,{className:e.outlinedTextarea,placeholder:"Notes",minRows:4,style:{width:"100%"},value:g?.Comments??"",onChange:C=>{s({...g,Comments:C.target.value})},onBlur:()=>{u({processId:g?.ProcessId,field:"Comments",value:g?.Comments??""}).then(()=>{})},onFocus:()=>r()})})})})})]})}),f.jsx(O_i,{}),a.length===1&&g?.AssetId&&f.jsx(H_i,{open:m,onHide:C=>{v(!1),i(),C&&l("Delay justified successfully.")},delay:a[0],assetId:g?.AssetId,refreshData:d})]})};Rt(e=>({defaultButton:{padding:"6px 16px",fontSize:"0.875rem",lineHeight:1.75,borderRadius:"4px"}}));const S5i=y3({overrides:{MuiButton:{root:{padding:"6px 12px",fontSize:"0.7rem",lineHeight:1,borderRadius:4}},MuiButtonGroup:{grouped:{minWidth:30,padding:"4px 8px"}},MuiTextField:{root:{fontSize:"0.7rem","& .MuiInputBase-root":{minHeight:"35px"},"& .MuiOutlinedInput-input":{padding:"8px 14px"},"& label":{fontSize:"0.75rem"},"& .MuiOutlinedInput-multiline":{padding:"8px 14px"}}},MuiTable:{root:{minWidth:300}},MuiTableCell:{root:{padding:4,"&.narrow":{whiteSpace:"nowrap",maxWidth:"80px"}},head:{fontWeight:"bold"}},MuiTableRow:{root:{"&:nth-of-type(odd)":{backgroundColor:"#f5f5f5"}}},MuiFormControl:{root:{margin:"4px 0",minWidth:120,width:"100%"}},MuiInputLabel:{outlined:{transform:"translate(14px, 12px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}},MuiOutlinedInput:{root:{height:"35px"},input:{padding:"8px 14px",height:"19px"}},MuiSelect:{select:{height:"35px",lineHeight:"35px",paddingTop:0,paddingBottom:0},outlined:{paddingRight:"32px"}},MuiMenuItem:{root:{fontSize:"0.8rem",minHeight:"30px",lineHeight:"30px"}}}}),lZe=e=>(b.useEffect(()=>{const[t]=performance.getEntriesByType("navigation");(t?.type==="reload"||t?.type==="navigate")&&localStorage.removeItem("dismiss_timestamp")},[]),f.jsx(iIi,{children:f.jsxs(aIi,{children:[f.jsx("div",{id:"dummy",style:{height:"0",width:"0"},tabIndex:-1}),f.jsx(C3,{theme:S5i,children:f.jsx(w5i,{})})]})})),A5i={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:0,NextProductionDate:new Date,NextProductionShift:0,NextShift:"",NextCrew:"",NextStart:new Date,NextEnd:new Date,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastShiftId:0,LastCrew:"",LastStart:new Date,LastEnd:new Date},processes:[],selectedProcess:null,errorMessage:"",notificationMessage:"",shiftId:!1,anchorPoint:{x:0,y:0}},WY=Ni({name:"__",initialState:A5i,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setShiftInfo(e,{payload:t}){e.shiftInfo=t},setProcesses(e,{payload:t}){e.processes=t},setSelectedProcess(e,{payload:t}){e.selectedProcess=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setShiftId(e,{payload:t}){e.shiftId=t},setAnchorPointX(e,{payload:t}){e.anchorPoint.x=t},setAnchorPointY(e,{payload:t}){e.anchorPoint.y=t}}}),VTt=b.createContext({state:WY.getInitialState(),actions:WY.actions}),Cj=()=>b.useContext(VTt),O5i=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:WY.getInitialState(),reducers:WY.caseReducers});return f.jsx(VTt.Provider,{value:{state:t,actions:n},children:e})},cZe=Rn(),z5i=({setHelmet:e})=>{const[t,n]=b.useState(!1),[r,i]=b.useState(!1),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState(""),[h,g]=b.useState(""),[m,v]=b.useState(""),{actions:{setSelectedProcess:y}}=Cj(),{shiftInfo:M}=la(),C=fa(),x=Ot(M,"CurrentStart",null),w=b.useCallback(()=>{y({ProcessId:0,eafOpen:cZe.utc(x).toDate(),eafClose:cZe.utc(x).add(180,"minutes").toDate(),eafOpenString:"",eafCloseString:"",HeatId:0,HeatName:"",IsActive:!0}),n(!0)},[M?.CurrentProductionDate,y]),S=L=>{y(L),n(!0)},A=L=>{y(L),l(!0)},z=L=>{y(L);const W=Wn(`${L.IsOpen}Z`,"YYYY/MM/dd HH:mm");v(`The heat ${L.HeatName} from ${W} will be unlinked.  Do you want to continue?`),e("Unlink EAF Process"),u(!0)},O=L=>{y(L);const W=Wn(`${L.IsOpen}Z`,"YYYY/MM/dd HH:mm");g("The heat "+L.HeatName+" from "+W+" will be activated.  Do you want to continue?"),a(!0)},T=L=>{y(L);const W=Wn(L.Start,"yyyy/MM/dd HH:mm");p("The heat "+L.HeatName+" from "+W+" will be deleted.  Do you want to continue?"),e("Delete EAF Process"),i(!0)},I=L=>{L.IsActive?T(L):O(L)},P=L=>{L&&C(`/meltshop-heats/${M?.CurrentShiftId}?heatId=${L}`)},N=L=>{L!==null&&C(`/eaf-data-entry/${L}`)};return{createData:w,editData:S,linkData:A,unlinkData:z,toggleStatusData:I,getMenuOptions:L=>{let W=[];return L.ProcessId&&L.IsActive&&W.push({name:"See in Data Entry",key:"go_to_eaf",onClick:()=>{N(L.ProcessId)},style:{fontWeight:"bold"},icon:f.jsx(vw,{})}),L.HeatId&&L.IsActive&&(W=W.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>P(L.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})},{name:"Unlink Process",key:"unlink",onClick:()=>z(L),icon:f.jsx(cT,{})}])),!L.HeatId&&L.IsActive&&(W=W.concat([{name:"Link Process",key:"link",onClick:()=>A(L),icon:f.jsx(lT,{})}])),W.push({name:"Edit Process",key:"toggle_status",onClick:()=>S(L),icon:f.jsx(No,{})},{name:L.IsActive?"Delete Process":"Undelete Process",key:"toggle_status",onClick:()=>I(L),icon:L.IsActive?f.jsx(Mo,{}):f.jsx(Cte,{})},{name:"New Process",key:"create_new_process",onClick:()=>w(),icon:f.jsx(Zo,{})}),W},goToHeats:P,goToDataEntry:N,showActiveModal:o,showDeleteModal:r,showEditModal:t,showLinkModal:s,showUnlinkModal:c,messageActiveModal:h,messageDeleteModal:d,messageUnlinkModal:m,setShowActiveModal:a,setShowDeleteModal:i,setShowEditModal:n,setShowLinkModal:l,setShowUnlinkModal:u,setMessageActiveModal:g,setMessageDeleteModal:p,setMessageUnlinkModal:v}},T5i=Rt(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center"},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600}},buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",display:"flex",width:"100%",justifyContent:"space-around",".ag-row-hover &":{opacity:1}},btnModal:{display:"flex",justifyContent:"flex-end"}})),E5i=({show:e,onHide:t,refreshData:n})=>{const{state:r,actions:i}=Cj(),[o,a]=b.useState(!1),[s,l]=b.useState(""),[c,u]=b.useState([]),[d,p]=b.useState(null),[h,g]=b.useState(""),[m,v]=b.useState(""),[y,M]=b.useState(!1),C=r.selectedProcess,x=async T=>{if(C)try{if(d===null){v("Please select a heat");return}if(gi(C))return;d.IsLinked===1?M(!0):await w()}catch(I){v(I.message)}},w=async()=>{try{a(!0);const T=await $3e(C?.ProcessId,d.HeatId);T.ok?(i.setNotificationMessage("Process linked successfully"),await n()):v(T.message)}catch(T){v(T.message)}finally{a(!1),M(!1),t(!0)}},S=async()=>{if(!C)return;const T=await rD(h,C.Start,C.AssetId);T.ok&&T.data?.tables?.[0]?.rows&&u(T.data.tables[0].rows)},A=(T,I)=>{g(I)},z=T=>{T.key==="Enter"&&(T.preventDefault(),S())},O=(T,I)=>{p(I)};return b.useEffect(()=>{e&&C&&(a(!1),(async()=>{p(null),l(`Link EAF Process / Start: ${Wn(`${C.Start}`,"HH:mm")}
					 Heat: ${C.HeatName?C.HeatName:""}`);const T=await rD("",C.Start,C.AssetId);T.ok&&T.data&&T.data.tables&&T.data.tables[0].rows&&u(T.data.tables[0].rows)})())},[e,C]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:`${s}`}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{maxWidth:"xl",open:e,handleClose:()=>{t(!0)},id:"linkCasterProcess",title:s,children:f.jsxs("form",{children:[f.jsx(We.Content,{style:{padding:"15px 30px",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,md:2,children:f.jsx(bt,{style:{margin:0,padding:0,display:"flex",alignItems:"center",height:"56px"},variant:"h6",children:"To Heat"})}),f.jsx(D,{item:!0,md:10,children:f.jsx(Ji,{options:c,getOptionLabel:T=>T.HeatName,value:d,onChange:O,inputValue:h,onInputChange:A,renderOption:T=>f.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[f.jsx("span",{children:T.HeatName}),T.IsLinked===1&&f.jsx("span",{style:{color:"red",marginLeft:"10px"},children:"(linked)"})]}),renderInput:T=>f.jsx(je,{...T,label:h?"Heat":"Search Heat",placeholder:"Search Heat",variant:"outlined",fullWidth:!0,onKeyDown:z,InputLabelProps:{style:{height:"auto",marginTop:5,display:"flex",alignItems:"center"}}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Da,{fullWidth:!0,isLoading:o,disabled:o,variant:"contained",color:"primary",onClick:x,children:"Save"})})]})})]})})})}),f.jsxs(We,{open:y,handleClose:()=>M(!1),title:"Warning",id:"warningModal",children:[f.jsx(We.Content,{children:f.jsx("p",{children:"This heat is already linked in another process. Do you want to proceed?"})}),f.jsxs(We.Actions,{children:[f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>M(!1),children:"Cancel"}),f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"primary",onClick:w,children:"Proceed"})]})]}),f.jsx(Mt,{error:m,onHide:()=>v("")})]})},R5i=({value:e,onChange:t,disabled:n=!1,type:r,error:i=!1})=>{const{state:{allAssets:o}}=ite(),a=o.filter(l=>l.AssetName.includes(r)),s=l=>{t(l.target.value)};return f.jsxs(ja,{error:i,variant:"outlined",fullWidth:!0,disabled:n,children:[f.jsx(il,{children:"Asset"}),f.jsx(ls,{disabled:n,value:e,label:"Asset",onChange:s,children:a.map(l=>f.jsx(sr,{value:l.AssetId,children:l.AssetName},l.AssetId))})]})},Fp=Rn(),I5i=Rt(()=>({dateTimePicker:{},"@global":{"*::-webkit-scrollbar":{width:"10px",background:"#fff"},"*::-webkit-scrollbar-thumb":{backgroundColor:"	#C8C8C8"},"*::-webkit-scrollbar-track":{borderRadius:"10px"},"*::-webkit-scrollbar:horizontal":{height:"10px"}}})),P5i=({show:e,onHide:t,refreshData:n})=>{const r=I5i(),{shiftInfo:i}=la(),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState(!1),[h,g]=b.useState(""),[m,v]=b.useState(""),{state:{selectedProcess:y},actions:{setNotificationMessage:M,setErrorMessage:C,setSelectedProcess:x}}=Cj(),{register:w,setValue:S,control:A,handleSubmit:z,reset:O,getValues:T,formState:{errors:I}}=Gn({defaultValues:{}}),P=Ot(i,"CurrentStart",null),N=Fp.utc(P).add(180,"minutes").isAfter(Fp.utc())?Fp.utc():Fp.utc(P).add(180,"minutes"),F=async L=>{a(!0);const W=L.Start,H=L.End,j=await N3t(L.ProcessId===0?null:L.ProcessId,W,H,!0,L.AssetId);j.ok?(M("Process was "+(c?"created":"edited")+" successfully"),x(null),await n()):C(j.message),a(!1),t(!0)};return b.useEffect(()=>{e?(a(!1),(async()=>{l(!0);const L=y;if(gi(L)){l(!1);return}if(L.ProcessId===0)g("NEW EAF PROCESS"),v("New EAF Process"),u(!0);else{const W=y?.HeatName?` - Heat ${y.HeatName}`:"";g(`EDIT EAF PROCESS${W}`),v("Edit EAF Process"),u(!1)}S("ProcessId",L.ProcessId),S("Start",L.Start?Fp.utc(L.Start).toDate():Fp.utc(P).toDate()),S("End",L.End?Fp.utc(L.End).toDate():N.toDate()),S("AssetId",L.AssetId),L.End===null&&p(!0),l(!1)})()):(O(),p(!1))},[e]),b.useEffect(()=>{d&&S("End",null)},[d]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:`${m}`}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,className:r.dateTimePicker,children:f.jsx(We,{maxWidth:"lg",open:e,handleClose:()=>{t(!0)},id:"upsertEAFProcess",title:h,children:f.jsxs("form",{onSubmit:z(F),children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:[s&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!s&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,children:[f.jsx(Ue,{name:"AssetId",control:A,rules:{required:!0},render:({field:L})=>f.jsx(R5i,{error:!!I.AssetId,type:"EAF ",disabled:Jx(y?.AssetId),value:L.value,onChange:L.onChange})}),I.AssetId&&f.jsx("p",{style:{color:"red"},children:"Select a valid asset"})]}),f.jsxs(D,{item:!0,container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Start",control:A,rules:{required:!0},render:({field:L})=>f.jsx(Cd,{label:"Start",timezone:Rc.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",timeSteps:{minutes:1},value:Fp(L.value),onChange:L.onChange,inputRef:L.ref,slotProps:{textField:{size:"small",fullWidth:!0,variant:"outlined",error:!!I.Start}}})}),I.Start&&f.jsx("p",{style:{color:"red"},children:"Invalid Ladle Open Date"})]}),f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"End",control:A,rules:{required:!d,validate:L=>{if(Fp.utc(L).isAfter(Fp.utc()))return"End date cannot be in the future";if(Fp.utc(L).isBefore(Fp.utc(T("Start"))))return"End date cannot be before the Start"}},render:({field:L})=>f.jsx(Cd,{label:"End",format:"MM/DD/YYYY  HH:mm",timezone:Rc.getInstance().getServerTimeZone(),value:Fp(L.value),onChange:L.onChange,disabled:d,inputRef:L.ref,slotProps:{textField:{size:"small",fullWidth:!0,variant:"outlined",error:!!I.End}}})}),I.End&&f.jsx("p",{style:{color:"red"},children:I.End.message})]})]})]}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Io,{control:f.jsx(Qr,{...w("IsOpen"),color:"primary",checked:d,onChange:L=>p(L.target.checked)}),label:"Process not finished"})})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:o&&f.jsx(Kt,{size:"1rem"}),disabled:o,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})})})})]})},D5i=e=>f.jsx("div",{style:{padding:"5px"},children:f.jsx(Fe,{variant:"contained",color:"primary",onClick:e.onNewProcess,children:"NEW PROCESS"})}),Ete=e=>e.value?f.jsx("span",{className:"custom-chip",children:e.value}):null,uZe=Rn(),k5i=({})=>{const{shiftInfo:e}=la(),t=Ot(e,"CurrentShiftId",null);return{columns:[{field:"AssetName",headerName:"EAF",cellRenderer:Ete,cellClass:r=>r.data.AssetId?`eaf-${r.data.AssetId}`:"",minWidth:88,flex:1},{field:"HeatName",headerName:"Heat",cellRenderer:r=>zd({...r,link:`/meltshop-heats/${t}?heatId=${r.data.HeatId}`}),minWidth:70,flex:1},{field:"GradeName",headerName:"Grade",minWidth:79,flex:1},{field:"LadleName",headerName:"Ladle",minWidth:60,flex:1},{field:"Start",headerName:"Start",cellRenderer:r=>zd({...r,link:`/eaf-data-entry/${r.data.ProcessId}`}),minWidth:62,valueGetter:r=>r.data.Start?uZe(r.data?.Start).format("HH:mm"):"",flex:1},{field:"End",headerName:"End",valueGetter:r=>r.data.End?uZe(r.data?.End).format("HH:mm"):"",minWidth:62,flex:1},{field:"TapToTap",headerName:"Tap To Tap",minWidth:85,wrapHeaderText:!0,cellStyle:{textAlign:"right"},flex:1},{field:"PowerOn",headerName:"Power On",wrapHeaderText:!0,cellStyle:{textAlign:"right"},minWidth:80,flex:1},{field:"MWH",headerName:"MWH",valueGetter:r=>r.data.MWH?r.data.MWH.toFixed(1):"",minWidth:60,cellStyle:{textAlign:"right"},flex:1},{field:"OxygenVolume",headerName:"O2 Vol [scf]",valueGetter:r=>r.data.OxygenVolume?r.data.OxygenVolume.toFixed(1):"",minWidth:100,cellStyle:{textAlign:"right"},flex:1},{field:"Charges",headerName:"Charges",minWidth:76,cellStyle:{textAlign:"right"},flex:1},{field:"ScrapTons",headerName:"Scrap [lbs]",minWidth:95,cellStyle:{textAlign:"right"},flex:1},{field:"LastTemperature",headerName:"Last Temp",minWidth:90,cellStyle:{textAlign:"right"},flex:1},{field:"TrimProbeTemperature",headerName:"Trim Temp",minWidth:88,cellStyle:{textAlign:"right"},flex:1},{field:"DeltaT",headerName:"Delta T",minWidth:68,cellStyle:{textAlign:"right"},flex:1},{field:"SteelWeight",headerName:"Steel Weight",minWidth:102,cellStyle:{textAlign:"right"},flex:1},{field:"IsProcessManual",headerName:"",cellRenderer:pte,minWidth:50,maxWidth:50,flex:1},{field:"Name",headerName:"",type:["nonSorteable","nonFilterable","optionsButton"],maxWidth:150,minWidth:150,editable:!1}]}},L5i=({loadingGrid:e,rows:t,refreshData:n})=>{const r=T5i(),i=b.useRef(null),[o,a]=b.useState(null),[s,l]=b.useState(null),[c,u]=Rd(),[d,p]=b.useState(""),{columns:h}=k5i({}),{state:{selectedProcess:g,errorMessage:m},actions:{setSelectedProcess:v,setIsLoadingBackground:y,setNotificationMessage:M,setErrorMessage:C}}=Cj(),{createData:x,editData:w,linkData:S,unlinkData:A,getMenuOptions:z,toggleStatusData:O,goToDataEntry:T,showActiveModal:I,showDeleteModal:P,showEditModal:N,showLinkModal:F,showUnlinkModal:L,messageActiveModal:W,messageDeleteModal:H,setShowActiveModal:j,setShowDeleteModal:G,setShowEditModal:q,setShowLinkModal:$,setShowUnlinkModal:U,setMessageActiveModal:X,setMessageDeleteModal:Q}=z5i({setHelmet:p}),{showContextMenu:re,registerConfig:ee}=ks(),{shiftInfo:se}=la(),pe=`The Heat ${g?.HeatName} from ${Wn(g?.Start,"YYYY/MM/DD HH:mm")} will be unlinked.  Do you want to continue?`,te=Oe=>{if(!Oe.data.IsActive)return{background:"#E8EBEB"}},ce=Oe=>{Oe.preventDefault()},oe=()=>{if(!s)return;const Oe=s.getSelectedRows();Oe.length>0?(a(Oe[0]),u({processId:Oe[0].ProcessId},{replace:!0})):(a(null),u({},{replace:!0}))},ae=async Oe=>{if(U(!1),Oe!=="OK"){p("");return}await U3e(g.ProcessId),await n(),p("")},ne=async Oe=>{if(G(!1),Q(""),Oe!=="OK"){p("");return}if(g===null)return;y(!0);const de=await BRi(g.ProcessId);de.ok?(y(!1),M("Process deleted successfully"),v(null),await n()):(y(!1),C(de.message)),p("")},le=async Oe=>{if(j(!1),X(""),Oe!=="OK"){p("");return}if(g===null)return;y(!0);const de=await jRi(g.ProcessId);de.ok?(y(!1),M("Process activated successfully"),v(null),await n()):(y(!1),C(de.message)),p("")},{columnTypes:he}=ku({OnEdit:w});he.activeButton={field:"IsActive",headerName:"",cellRenderer:ozt,cellRendererParams:{clicked:O},cellClass:"ag-button-cell"},he.optionsButton={field:"options",headerName:"",cellRenderer:Oe=>f.jsxs("div",{className:r.buttons,children:[f.jsx(yn,{"aria-label":"link/unlink",title:Oe.data.HeatName?"Unlink":"Link",style:{cursor:"pointer"},onClick:()=>{Oe.data.HeatName?A(Oe.data):S(Oe.data)},children:Oe.data.HeatName?f.jsx(cT,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}}):f.jsx(lT,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})}),f.jsx(yn,{"aria-label":"delete-icon",title:Oe.data.IsActive?"Delete":"Activate",style:{cursor:"pointer"},onClick:()=>O(Oe.data),children:Oe.data.IsActive?f.jsx(Mo,{fontSize:"inherit",color:"secondary",style:{cursor:"pointer"}}):f.jsx(Cte,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})}),f.jsx(yn,{"aria-label":"Options",title:"Options",style:{cursor:"pointer"},onClick:de=>re(de,Oe.data,"eafProcesses"),children:f.jsx(ute,{fontSize:"inherit",color:"primary",style:{cursor:"pointer"}})})]}),cellClass:r.buttons};const be={newProcessStatusBar:D5i},me={statusPanels:[{statusPanel:"newProcessStatusBar",align:"right",statusPanelParams:{onNewProcess:x}}]};b.useEffect(()=>{e&&i.current!==null&&i.current.api!==void 0?i.current.api.showLoadingOverlay():i.current!==null&&i.current.api!==void 0&&i.current.api.hideOverlay()},[e]);const Me=Oe=>{l(Oe.api)};return b.useEffect(()=>{if(!e&&s&&t&&t.length>0){const Oe=c.get("processId");if(Oe){const de=s.getRowNode(Oe);de&&(s.deselectAll(),de?.setSelected(!0,!0),a(de.data))}}},[s,e,t]),b.useEffect(()=>{ee({id:"eafProcesses",getOptions:z})},[se?.CurrentShiftId]),f.jsxs(f.Fragment,{children:[o&&!N&&!P&&!F&&!L&&!I&&f.jsx(Mn,{title:`${o.HeatName?`${o.HeatName} - `:""} EAF Processes`}),d&&f.jsx(Mn,{title:`${d}`}),f.jsxs("div",{onContextMenu:ce,children:[f.jsx("div",{children:f.jsx(D,{item:!0,container:!0,md:12,xs:12,children:f.jsx(D,{item:!0,md:12,xs:12,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},children:f.jsx(Kn,{ref:i,onGridReady:Me,rowSelection:"single",pagination:!1,animateRows:!0,rowHeight:35,headerHeight:35,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:h,columnTypes:he,getRowStyle:te,getRowId:Oe=>String(Oe.data.ProcessId),suppressContextMenu:!0,onRowDoubleClicked:Oe=>{Oe.data.IsActive&&T(Oe.data.ProcessId)},onCellContextMenu:Oe=>{Oe.api.deselectAll(),Oe.node.setSelected(!0),v(Oe?.data),Oe.event&&re(Oe.event,Oe.data,"eafProcesses")},onSelectionChanged:oe,statusBar:me,components:be})})})}),f.jsx(Mt,{error:m,onHide:()=>C("")}),f.jsx(rl,{title:"Confirmation",message:H,open:P,onClose:ne}),f.jsx(rl,{title:"Confirmation",message:W,open:I,onClose:le}),f.jsx(rl,{title:"Confirmation",message:pe,open:L,onClose:ae}),f.jsx(P5i,{show:N,onHide:()=>q(!1),refreshData:n}),f.jsx(E5i,{show:F,onHide:()=>$(!1),refreshData:n})]})]})},_5i=()=>{const e=fa(),{state:t,actions:n}=Cj(),[r,i]=b.useState(!1),[o]=Rd(),[a,s]=b.useState(!0),{shiftInfo:l,getShiftDataFromAPI:c}=la(),{shiftId:u}=Ms(),d=async p=>{n.setIsLoadingGrid(!0);const h=Ot(p||l,"CurrentShiftId",null),g=await f2e(Number(h),r);g.ok&&g.data.tables.length>0?n.setProcesses(g.data.tables[0].rows):n.setErrorMessage("Error fetching processes data"),n.setIsLoadingGrid(!1)};return b.useEffect(()=>{if(l&&!a){const p=Ot(l,"CurrentShiftId",null),h=new URLSearchParams(o.toString());e(`/eaf-processes/${p}?${h.toString()}`),(async()=>await d())()}},[l,r]),b.useEffect(()=>{u?(async()=>{const p=Number(u);c(null,p).then(async h=>{h&&(await d(h),s(!1))})})():(async()=>c(null,0).then(async p=>{p&&(await d(p),s(!1))}))()},[]),t.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:"EAF Processes"}),f.jsxs(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:t.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"EAF Processes"})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(s2,{preventInit:!0}),f.jsx(kt,{style:{minWidth:"300px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsx(D,{item:!0,container:!0,xs:12,spacing:2,alignItems:"center",style:{marginLeft:"10px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsx(xD,{children:f.jsx(Io,{control:f.jsx(Qr,{checked:r,color:"primary",onChange:p=>i(p.target.checked)}),label:"Show deleted processes"})})})})})]})}),f.jsx(L5i,{loadingGrid:t.isLoadingGrid,rows:t.processes||[],refreshData:d})]})}),f.jsx(Mt,{error:t.errorMessage,onHide:()=>n.setErrorMessage("")}),f.jsx(Bm,{message:t.notificationMessage,onHide:()=>n.setNotificationMessage("")})]})]})},dZe=e=>f.jsx(O5i,{children:f.jsx(_5i,{})}),N5i={isLoadingBackground:!1,isLoadingGrid:!0,processes:[],errorMessage:"",notificationMessage:"",shiftId:!1},qY=Ni({name:"__",initialState:N5i,reducers:{setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setProcesses(e,{payload:t}){e.processes=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setShiftId(e,{payload:t}){e.shiftId=t}}}),GTt=b.createContext({state:qY.getInitialState(),actions:qY.actions}),$Tt=()=>b.useContext(GTt),F5i=({children:e})=>{const{shiftId:t}=Ms(),[n,r]=Ui.useComplexState({initialState:qY.getInitialState(),reducers:qY.caseReducers});return b.useEffect(()=>{const i=Number(t);gi(t)||isNaN(i)?r.setShiftId(null):r.setShiftId(i)},[t]),f.jsx(GTt.Provider,{value:{state:n,actions:r},children:e})},W5i=Rt(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell":{padding:2},"& .ag-header-cell-label":{justifyContent:"center",fontSize:"1.5vh"},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .info-limit":{color:"#000",backgroundColor:"#b2e5ed",fontWeight:600},"& .eaf-11":{fontWeight:500,"& .MuiChip-outlined":{backgroundColor:" #dae8fc"}},"& .eaf-12":{fontWeight:500,"& .MuiChip-outlined":{backgroundColor:"#d5e8d4"}},"& .warning-limit":{color:"#CC0000",fontWeight:800}},buttons:{opacity:0,transition:"opacity 0.1s ease-in-out",display:"flex",width:"100%",justifyContent:"space-around",".ag-row-hover &":{opacity:1}},btnModal:{display:"flex",justifyContent:"flex-end"}})),Zs=e=>({...e,sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0}),q5i=()=>({columns:[Zs({field:"ProcessId",headerName:"Process Id",minWidth:60,hide:!0}),Zs({field:"ProductionDate",headerName:"Production Date",valueGetter:t=>mt(t?.data?.ProductionDate).format("MM/DD/YYYY"),minWidth:112,flex:1,valueFormatter:t=>mt(t?.data?.ProductionDate).format("MM/DD/YYYY")}),Zs({field:"Shift",headerName:"Shift",minWidth:53,maxWidth:53,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},flex:1}),Zs({field:"Crew",headerName:"Crew",minWidth:56,maxWidth:56,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"},flex:1}),Zs({field:"HeatId",headerName:"Heat Id",minWidth:60,hide:!0}),Zs({field:"Heat",headerName:"Heat",minWidth:70,maxWidth:70,flex:1}),Zs({field:"AssetId",headerName:"Asset Id",minWidth:60,hide:!0}),Zs({field:"Asset",headerName:"Asset",cellClass:t=>t.data.AssetId?`eaf-${t.data.AssetId}`:"",cellRenderer:Ete,minWidth:87,flex:1}),Zs({field:"Grade",headerName:"Grade",minWidth:96,flex:1}),Zs({field:"Ladle",headerName:"Ladle",minWidth:57,maxWidth:57,flex:1}),Zs({field:"EafStart",headerName:"Start",valueGetter:t=>Wn(`${t.data?.EafStart}`,"HH:mm:ss"),minWidth:82,flex:1,valueFormatter:t=>Wn(`${t.data?.EafStart}`,"HH:mm:ss")}),Zs({field:"EafEnd",headerName:"End",valueGetter:t=>Wn(`${t.data?.EafEnd}`,"HH:mm:ss"),minWidth:82,flex:1,valueFormatter:t=>Wn(`${t.data?.EafEnd}`,"HH:mm:ss")}),Zs({field:"TapToTap",headerName:"Tap To Tap",valueFormatter:t=>t.value?`${t.value} min`:"",cellClass:t=>t.value>200?"warning-limit":"",minWidth:75,flex:1}),Zs({field:"PowerOn",headerName:"Power On",valueFormatter:t=>t.value?`${t.value} min`:"",minWidth:75,flex:1}),Zs({field:"PowerOff",headerName:"Power Off",valueFormatter:t=>t.value?`${t.value} min`:"",minWidth:75,flex:1}),Zs({field:"Delays",headerName:"Delays",valueFormatter:t=>t.value?`${t.value} min`:"",minWidth:75,flex:1}),Zs({field:"MicroDelays",headerName:"Micro Delays",valueFormatter:t=>t.value?`${t.value} min`:"",minWidth:75,flex:1}),Zs({field:"MWH",headerName:"MWH",minWidth:57,cellStyle:{display:"flex",justifyContent:"flex-end"},flex:1}),Zs({field:"OxygenVolume",headerName:"O2 Vol [scf]",valueFormatter:t=>t.value?t.value.toFixed(1):"",minWidth:78,cellStyle:{display:"flex",justifyContent:"flex-end"},flex:1}),Zs({field:"Charges",headerName:"Charges",minWidth:60,maxWidth:60,flex:1}),Zs({field:"Scrap",headerName:"Scrap",minWidth:80,flex:1}),Zs({field:"LastTemperature",headerName:"Last Temperature",minWidth:122,flex:1}),Zs({field:"ShiftStart",headerName:"Shift Start",valueGetter:t=>Wn(`${t.data?.ShiftStart}`,"HH:mm:ss"),minWidth:82,flex:1,valueFormatter:t=>Wn(`${t.data?.ShiftStart}`,"HH:mm:ss")}),Zs({field:"ShiftEnd",headerName:"Shift End",valueGetter:t=>Wn(`${t.data?.ShiftEnd}`,"HH:mm:ss"),minWidth:82,flex:1,valueFormatter:t=>Wn(`${t.data?.ShiftEnd}`,"HH:mm:ss")}),Zs({field:"manual",headerName:"Manual",minWidth:68,maxWidth:68,valueGetter:t=>t.data?.manual?"Yes":"No",valueFormatter:t=>t.value?"Yes":"No",cellRenderer:t=>t.data?.manual?f.jsx(D,{container:!0,justifyContent:"center",style:{width:"100%",height:"100%"},children:f.jsx(D,{item:!0,md:12,children:f.jsx(Fe,{title:t.data?.manual?"Manual":"Automatic",variant:"contained",color:"primary",style:{cursor:"auto",backgroundColor:t.data?.manual?"primary":"green",minWidth:"1px",padding:"1px 7px"},children:t.data?.manual?"M":"A"})})}):null,cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}})]}),B5i=({loadingGrid:e,rows:t,gridRef:n})=>{W5i();const{columns:r}=q5i(),{state:{errorMessage:i},actions:{setErrorMessage:o}}=$Tt(),a=b.useMemo(()=>Cn,[]);return b.useEffect(()=>{e?n.current?.api?.showLoadingOverlay():n.current?.api?.hideOverlay()},[e]),f.jsxs("div",{onContextMenu:s=>s.preventDefault(),children:[f.jsx("div",{children:f.jsx(D,{item:!0,container:!0,md:12,xs:12,children:f.jsx(D,{item:!0,md:12,xs:12,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},children:f.jsx(Kn,{ref:n,rowSelection:"single",pagination:!1,animateRows:!0,loadingOverlayComponent:a,singleClickEdit:!0,rowData:t,columnDefs:r,suppressContextMenu:!0,getRowId:s=>s.data.ProcessId})})})}),f.jsx(Mt,{error:i,onHide:()=>o("")})]})},pZe=Rn(),j5i=({label:e,value:t,onChange:n})=>{const r=new Date;return f.jsx(_f,{openTo:"month",views:["year","month"],label:e,format:"MMMM YYYY",value:pZe(t),onChange:i=>n(i?i.toDate():null),maxDate:pZe(r),slotProps:{textField:{variant:"outlined",InputProps:{style:{height:"45px",fontSize:"14px"}},sx:{"& .MuiInputBase-root":{height:"45px"}}}},showDaysOutsideCurrentMonth:!1})},H5i=Rt(e=>({formControl:{width:"100%",minWidth:200,backgroundColor:"#FFFFFF !important","& .MuiOutlinedInput-root":{height:45,paddingTop:"10px","&.Mui-focused":{outline:"none","& .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0.23)",borderWidth:1}}},"& .MuiSelect-select:focus":{backgroundColor:"transparent"},"& .MuiInputLabel-outlined":{transform:"translate(14px, 12px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}},monthPicker:{minWidth:150}})),V5i=[{id:null,name:"ALL"},{id:11,name:"EAF 1"},{id:12,name:"EAF 2"}],G5i=({onMonthChange:e,onAssetChange:t,selectedMonth:n,selectedAsset:r})=>{const i=H5i(),o=s=>{e(s)},a=s=>{const l=s.target.value,c=l==="null"?null:Number(l);t(c)};return f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,children:f.jsx("div",{className:i.monthPicker,children:f.jsx(j5i,{label:"Month",value:n,onChange:o})})}),f.jsx(D,{item:!0,children:f.jsxs(ja,{variant:"outlined",className:i.formControl,children:[f.jsx(il,{children:"Asset"}),f.jsx(ls,{value:r===null?"null":r,label:"Asset",onChange:a,children:V5i.map(s=>f.jsx(sr,{value:s.id===null?"null":s.id,children:s.name},s.id??"all"))})]})})]})},$5i=e=>{const t=new Date(e);return t.setDate(1),t.setHours(0,0,0,0),t},U5i=async(e,t)=>{const n=new Ye,r=[],i=WAt($5i(e),"yyyy-MM-dd");return r.push({name:"Month",value:i}),r.push({name:"AssetId",value:t||null}),await n.callV2("[EAF].[GetProcessDataMonthlyReport]",r)},pR=Rn(),X5i=()=>{const{state:{processes:e,isLoadingGrid:t,notificationMessage:n,isLoadingBackground:r},actions:{setProcesses:i,setIsLoadingGrid:o,setNotificationMessage:a}}=$Tt(),[s,l]=b.useState(""),c=b.useRef(!0),[u,d]=b.useState(!0),p=b.useRef(null),[h,g]=Rd(),[m,v]=b.useState(()=>{const z=h.get("month");if(z){const O=pR(z);return O.isValid()?O.toDate():pR().startOf("month").toDate()}return pR().startOf("month").toDate()}),[y,M]=b.useState(()=>{const z=h.get("asset");return z?Number(z):null}),C=z=>{if(!z)return;const O=pR(z).startOf("month").toDate();v(O),x(O,y),S(O,y)},x=(z,O)=>{const T={};T.month=z.toISOString(),O!==null&&(T.asset=O.toString()),g(T)},w=z=>{M(z),x(m,z),S(m,z)},S=async(z,O)=>{o(!0);try{const T=await U5i(z,O);if(T.ok){const I=Ot(T,"data.tables[0].rows",[]);i(I)}else l(T.message)}catch{l("Error fetching data")}finally{o(!1),c.current&&(d(!1),c.current=!1)}},A=()=>{if(p.current?.api){const z=p.current.api.getColumnDefs();if(z){const O={skipHeader:!1,skipFooters:!0,skipGroups:!0,columnWidth:100,sheetName:"Process Data Report",headerRowHeight:30,rowHeight:25,suppressTextAround:!0,fileName:`swv-ms_heat-report_${pR(m).format("YYYY-MM")}${y===11?"-EAF1":y===12?"-EAF2":""}.xlsx`,allColumns:!0};p.current.api.exportDataAsExcel(O),p.current.api.setGridOption("columnDefs",z)}}};return b.useEffect(()=>{S(m,y)},[]),f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:`Process Data Report - ${pR(m).format("MMMM YYYY")}`}),f.jsxs(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:r}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Process Data Report"})}),f.jsx(D,{item:!0,md:12,children:f.jsxs(D,{container:!0,direction:"row",alignItems:"stretch",justifyContent:"space-between",spacing:1,children:[f.jsx(D,{item:!0,xs:12,md:"auto",children:f.jsx(kt,{elevation:1,style:{height:"100%",display:"flex",alignItems:"center",padding:"18px 24px",backgroundColor:"#fff"},children:f.jsx(G5i,{onMonthChange:C,selectedAsset:y,onAssetChange:w,selectedMonth:m})})}),f.jsx(D,{item:!0,xs:"auto",style:{display:"flex",alignItems:"center",marginLeft:16},children:f.jsx("div",{children:f.jsx(Ik,{onClick:A,disabled:!e||e.length===0})})})]})}),f.jsx(Bm,{message:n,onHide:()=>a("")}),f.jsx(D,{item:!0,xs:12,children:u?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"400px"},children:f.jsx(Kt,{})}):f.jsx(B5i,{loadingGrid:t,rows:e,refreshData:()=>S(m,y),gridRef:p})})]})})]}),f.jsx(Mt,{error:s,onHide:()=>l("")})]})},hZe=e=>f.jsx(rte,{children:f.jsx(F5i,{children:f.jsx(X5i,{})})}),Y5i=[f.jsx(cr,{path:"/eaf-data-entry",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(lZe,{})})}),f.jsx(cr,{path:"/eaf-data-entry/:processId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(lZe,{})}),children:" "}),f.jsx(cr,{path:"/eaf-processes-data-report",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(hZe,{})})}),f.jsx(cr,{path:"/eaf-processes-data-report/:processId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(hZe,{})})}),f.jsx(cr,{path:"/eaf-processes",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(dZe,{})})}),f.jsx(cr,{path:"/eaf-processes/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(dZe,{})})})],fZe=Rn(),K5i=({heat:e,getDataFromAPI:t})=>{const n=ac();return f.jsx(kt,{elevation:0,style:{border:"1px solid #ccc"},children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,md:3,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,alignContent:"center",children:f.jsx(E3t,{value:e,onChange:r=>{t(r)},onBlur:()=>{},showNext:!!e.NextHeatId,showPrevious:!!e.PreviousHeatId,onNext:r=>{t(r)},onPrevious:r=>{t(r)},onLast:()=>{t(null)}})},"heat-number")},"col-heat-number"),f.jsx(D,{item:!0,xs:12,sm:6,md:3,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Tap Time",value:e.TapDate?`${fZe(e.TapDate).format("HH:mm - MM/DD/YYYY ")} - Shift ${e.TapShift} - Crew ${e.TapCrew}`:"",variant:"outlined",fullWidth:!0,onChange:()=>{}})},"tap-time"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Open",value:e.OpenDate?`${fZe(e.OpenDate).format("HH:mm - MM/DD/YYYY")} - Shift ${e.OpenShift} - Crew ${e.OpenCrew}`:"",variant:"outlined",fullWidth:!0,onChange:()=>{}})},"open-time")]})},"col-main-data-1"),f.jsx(D,{item:!0,xs:12,sm:6,md:3,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,alignContent:"flex-start",children:[f.jsx(D,{item:!0,xs:12,children:f.jsxs("div",{className:n.container,children:[f.jsx(je,{className:`${n.field} ${n.leftField}`,label:"Ladle",variant:"outlined",size:"small",value:e.LadleName||""}),f.jsx(je,{className:`${n.field} ${n.rightField}`,label:"Ladle Life",variant:"outlined",size:"small",value:e.HeatsOnLadle||""})]})},"ladle"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Grade",value:e.Grade??"",variant:"outlined",fullWidth:!0,onChange:()=>{}})},"grade")]})},"col-main-data-2"),f.jsx(D,{item:!0,xs:3,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Final Status",value:bY(e.FinalStatus??"").name,variant:"outlined",fullWidth:!0,onChange:()=>{},InputProps:{endAdornment:f.jsx(nc,{position:"start",children:f.jsx("div",{style:{width:"26px",height:"26px",borderRadius:4,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:"bold",backgroundColor:e.FinalStatus?bY(e.FinalStatus).color:"#ccc"},children:e.FinalStatus})})}})},"final-status")},"final-status")]})})})},Q5i={isDataLoading:!1,heat:{HeatName:"",HeatId:0,Grade:"",LadleName:null,HeatsOnLadle:null,TapDate:null,TapShift:null,TapCrew:null,OpenDate:null,OpenShift:null,OpenCrew:null,FinalStatus:null,SteelWeight:null,EAFProcessId:null,CASProcessId:null,NextHeatId:null,PreviousHeatId:null,NextHeatName:null,PreviousHeatName:null},eafProcessData:{ProcessId:0,Start:new Date,End:null,StartTap:null,TapToTap:0,PowerOn:0,PowerOff:0,ScrapCharged:null,Energy:0,KWHPerTon:null,Foreman:null,Lime:0,OxygenVolume:null,HeatsOnRoof:null,HeatsOnLining:null,HeatsOnTapHole:null,HeatsOnRunnerSpout:null,ElectrodeConsumption:null,ArcStability:null,Comments:null,DelayTime:null,PrevHeatId:null,NextHeatId:null,PrevHeatName:null,NextHeatName:null,AssetId:0,AssetName:""},casProcessData:{ProcessId:0,AssetId:0,AssetName:"",IsFreeOpen:!1,LadleOpen:null,LadleClose:null,Duration:0,NozzleSize:null,HeatsOnNozzle:null,TundishName:null,HeatsOnTundish:null,TundishShroudName:null,HeatsOnTundishShroud:null,Foreman:null,PourbackWeight:null,CastTons:null,Comments:null},heatLabData:null,elementData:[],productionData:[],strandData:[],scrapData:[],probes:[],charges:[],additions:[],heatings:[],delays:[],logbook:[],strandSpeeds:[],moldLevels:[],eafValues:[],billetTemp:[],mechanicalTests:null,mechanicalSamples:null,mechanicalGradeLimits:null,mechanicalResultSources:null,isMechanicalDataLoading:!1,eafChartOffsetMinutes:40},BY=Ni({name:"__",initialState:Q5i,reducers:{setIsDataLoading(e,{payload:t}){e.isDataLoading=t},setHeat(e,{payload:t}){e.heat=t},setEAFProcessData(e,{payload:t}){e.eafProcessData=t},setCASProcessData(e,{payload:t}){e.casProcessData=t},setHeatLabData(e,{payload:t}){e.heatLabData=t},setElementData(e,{payload:t}){e.elementData=t},setProductionData(e,{payload:t}){e.productionData=t},setStrandData(e,{payload:t}){e.strandData=t},setScrapData(e,{payload:t}){e.scrapData=t},setProbes(e,{payload:t}){e.probes=t},setCharges(e,{payload:t}){e.charges=t},setAdditions(e,{payload:t}){e.additions=t},setHeatings(e,{payload:t}){e.heatings=t},setDelays(e,{payload:t}){e.delays=t},setLogbook(e,{payload:t}){e.logbook=t},setStrandSpeeds(e,{payload:t}){e.strandSpeeds=t},setMoldLevels(e,{payload:t}){e.moldLevels=t},setEAFValues(e,{payload:t}){e.eafValues=t},setBilletTemp(e,{payload:t}){e.billetTemp=t},setMechanicalTests(e,{payload:t}){e.mechanicalTests=t},setMechanicalSamples(e,{payload:t}){e.mechanicalSamples=t},setMechanicalGradeLimits(e,{payload:t}){e.mechanicalGradeLimits=t},setMechanicalResultSources(e,{payload:t}){e.mechanicalResultSources=t},setIsMechanicalDataLoading(e,{payload:t}){e.isMechanicalDataLoading=t},setEafChartOffsetMinutes(e,{payload:t}){e.eafChartOffsetMinutes=t}}}),UTt=b.createContext({state:BY.getInitialState(),actions:BY.actions}),sc=()=>b.useContext(UTt),Z5i=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:BY.getInitialState(),reducers:BY.caseReducers});return f.jsx(UTt.Provider,{value:{state:t,actions:n},children:e})},lTe=({assetId:e,assetName:t})=>{const n=ac(),r={15:"#479dc4",11:"#dae8fc",12:"#d5e8d4",13:"#f4d2d2"};return f.jsx(f.Fragment,{children:f.jsx(yD,{className:n.assetTitle,style:{backgroundColor:e?r[e]:" #e0e0e0",color:e===15?"white":"black"},variant:"outlined",children:f.jsx(MD,{children:e&&t?f.jsx(bt,{variant:"h3",children:t}):f.jsx(Kt,{})})})})},gZe=Rn(),J5i=()=>{const{state:{casProcessData:e}}=sc(),t=ac();return f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(kt,{className:t.borderAgGridTable,style:{marginLeft:"4px",marginRight:"-4px"},elevation:0,children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(lTe,{assetId:e.AssetId||13,assetName:e.AssetName||"Caster"})},`${e.ProcessId}-asset`)},`${e.ProcessId}-column-1`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Ladle Open",value:e?.LadleOpen?gZe(e.LadleOpen).format("HH:mm - MM/DD/YYYY"):" ",variant:"outlined",fullWidth:!0})},`${e.ProcessId}-ladle-open-time`),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Ladle Close",value:e?.LadleClose?gZe(e.LadleClose).format("HH:mm - MM/DD/YYYY"):"",variant:"outlined",fullWidth:!0})},`${e.ProcessId}-ladle-close-time`)]})},`${e.ProcessId}-column-2`),f.jsxs(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(sTe,{label:"Duration [hh:mm:ss]",value:e?.Duration?Number(e?.Duration):null,unit:"seconds",onChange:()=>{}})},`${e.ProcessId}-duration-time`),f.jsx(D,{item:!0,xs:12,children:f.jsx(VI,{label:"Did Ladle Open",checkboxValue:!!e?.IsFreeOpen,onCheckboxChange:()=>{},disabled:!0})},`${e.ProcessId}-did-ladle-open`)]},`${e.ProcessId}-column-3`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Foreman",value:e?.Foreman??"",variant:"outlined",fullWidth:!0})},`${e.ProcessId}-foreman`),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Cast Tons",value:e?.CastTons?.toFixed(1)??"",variant:"outlined",fullWidth:!0})},`${e.ProcessId}-cast-tons`)]})},`${e.ProcessId}-column-4`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsxs("div",{className:t.container,children:[f.jsx(je,{className:`${t.field} ${t.leftField}`,label:"Nozzle",variant:"outlined",size:"small",value:e?.NozzleSize||""}),f.jsx(je,{className:`${t.field} ${t.rightField}`,label:"Heats On Nozzle",variant:"outlined",size:"small",value:e?.HeatsOnNozzle||""})]})},`${e.ProcessId}-nozzle`),f.jsx(D,{item:!0,xs:12,children:f.jsxs("div",{className:t.container,children:[f.jsx(je,{className:`${t.field} ${t.leftField}`,label:"Tundish",variant:"outlined",size:"small",value:e?.NozzleSize||""}),f.jsx(je,{className:`${t.field} ${t.rightField}`,label:"Heats On Tundish",variant:"outlined",size:"small",value:e?.HeatsOnTundish||""})]})},`${e.ProcessId}-tundish`)]})},`${e.ProcessId}-column-5`),f.jsxs(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsxs("div",{className:t.container,children:[f.jsx(je,{className:`${t.field} ${t.leftField}`,label:"Shroud",variant:"outlined",size:"small",value:e?.TundishShroudName||""}),f.jsx(je,{className:`${t.field} ${t.rightField}`,label:"Heats On Shroud",variant:"outlined",size:"small",value:e?.HeatsOnTundishShroud||""})]})},`${e.ProcessId}-tundish-shroud`),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Pourback",value:e?.PourbackWeight?.toFixed(1)??"",variant:"outlined",fullWidth:!0})},`${e.ProcessId}-pourback-weight`)]},`${e.ProcessId}-column-6`)]},`${e.ProcessId}`)})})})},nW=[" #E41A1C"," #377EB8"," #4DAF4A","rgb(196, 174, 209)"],mZe=Rn(),vZe={S1:nW[0],S2:nW[1],S3:nW[2]},eNi=({billetTemp:e,heatName:t})=>b.useMemo(()=>{const r=(e||[]).map(g=>({Datetime:g.Datetime,Value:g.Value??0,TagId:g.TagId?.toString()||"",TagName:g.TagName||""})).filter(g=>g.Datetime&&g.TagId&&g.TagName);if(r.length===0)return{title:{left:"center",top:"center"},series:[]};const i=r.map(g=>g.Value),o=Math.min(...i).toFixed(0),a=Math.max(...i).toFixed(0),s=Math.ceil((Number(a)-Number(o))*.05),l=Math.max(0,Math.floor(Number(o))-s),c=Math.ceil(Number(a)+s),u=Math.ceil((c-l)/5),d=r.reduce((g,m)=>(g[m.TagId]||(g[m.TagId]=[]),g[m.TagId].push(m),g),{}),p={};let h=0;return Object.entries(d).forEach(([g,m])=>{const y=(m[0]?.TagName||"").substring(0,2);vZe[y]?p[g]=vZe[y]:(p[g]=nW[h%nW.length],h++)}),{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t} - Billet Temp`,pixelRatio:2}}},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:g=>{const m=mZe(g[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),v=g.map(y=>`${y.seriesName}: ${y.value[1].toFixed(1)}`).join("<br>");return`Time: ${m}<br>${v}`}},legend:{data:Object.keys(d).map(g=>d[g][0].TagName).sort(),top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:g=>mZe(g).format("HH:mm")}},yAxis:{type:"value",name:"°F",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",min:l,max:c,interval:u},series:Object.entries(d).map(([g,m])=>({name:m[0].TagName,type:"line",smooth:!0,symbol:"none",sampling:"lttb",itemStyle:{color:p[g]},data:m.map(v=>[v.Datetime.getTime(),v.Value])}))}},[e,t]),tNi=()=>{const{state:{billetTemp:e,heat:{HeatName:t}}}=sc(),n=ac(),r=uT(),i=b.useRef(null),o=eNi({billetTemp:e,heatName:t});return b.useEffect(()=>{i.current&&i.current.getEchartsInstance().setOption(o,{replaceMerge:["series"],lazyUpdate:!0})},[o]),f.jsx(kt,{className:n.borderAgGridTable,elevation:0,children:f.jsxs(Tn,{p:0,children:[f.jsx("div",{className:r.chartHeader,children:"Billet Temperature"}),f.jsx(SM,{ref:i,option:o,notMerge:!1})]})})},LG=["#E41A1C","#377EB8","#4DAF4A","rgb(196, 174, 209)"],bZe=Rn(),Rpe={S1:LG[0],S2:LG[1],S3:LG[2],"Tundish Level":LG[3]},nNi=({moldLevels:e,heatName:t})=>b.useMemo(()=>{const r=(e||[]).map(l=>({Datetime:l.Datetime,Value:l.Value??0,TagId:l.TagId?.toString()||"",TagName:l.TagName||""})).filter(l=>l.Datetime&&l.TagId&&l.TagName);if(r.length===0)return{title:{text:"No data available",left:"center",top:"center"},series:[]};const i=r.filter(l=>l.TagName!=="Tundish Level"),o=r.filter(l=>l.TagName==="Tundish Level"),a=[],s=[];if(i.length>0){const l=i.map(v=>v.Value),c=Math.min(...l).toFixed(0),u=Math.max(...l).toFixed(0),d=Math.ceil((Number(u)-Number(c))*.05),p=Math.max(0,Math.floor(Number(c))-d),h=Math.ceil(Number(u)+d),g=Math.ceil((h-p)/5);a.push({type:"value",name:"Mold Level (%)",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",min:p,max:h,interval:g});const m=i.reduce((v,y)=>(v[y.TagId]||(v[y.TagId]=[]),v[y.TagId].push(y),v),{});Object.entries(m).forEach(([v,y])=>{const M=y[0].TagName;s.push({name:M,type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:0,itemStyle:{color:Rpe[M.substring(0,2)]||Rpe.S1},data:y.map(C=>[C.Datetime.getTime(),C.Value])})})}if(o.length>0){const l=o.map(m=>m.Value),c=Math.min(...l).toFixed(0),u=Math.max(...l).toFixed(0),d=Math.ceil((Number(u)-Number(c))*.05),p=Math.max(0,Math.floor(Number(c))-d),h=Math.ceil(Number(u)+d),g=Math.ceil((h-p)/5);a.push({type:"value",name:"Tundish Level (FT)",position:"right",nameTextStyle:{fontSize:14,align:"right"},nameLocation:"end",min:p,max:h,interval:g}),s.push({name:"Tundish Level",type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:a.length-1,areaStyle:{},itemStyle:{color:Rpe["Tundish Level"]},data:o.map(m=>[m.Datetime.getTime(),m.Value])})}return{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t} - Mold Level`,pixelRatio:2}}},grid:{right:o.length>0?"8%":"5%"},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:l=>{const c=bZe(l[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),u=l.map(d=>`${d.seriesName}: ${d.value[1].toFixed(1)}`).join("<br>");return`Time: ${c}<br>${u}`}},legend:{data:s.map(l=>l.name).sort(),top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:l=>bZe(l).format("HH:mm")}},yAxis:a,series:s}},[e,t]),rNi=()=>{const{state:{moldLevels:e,heat:{HeatName:t}}}=sc(),n=ac(),r=uT(),i=b.useRef(null),o=nNi({moldLevels:e,heatName:t});return b.useEffect(()=>{i.current&&i.current.getEchartsInstance().setOption(o,{replaceMerge:["series"],lazyUpdate:!0})},[o]),f.jsx(kt,{className:n.borderAgGridTable,elevation:0,children:f.jsxs(Tn,{p:0,children:[f.jsx("div",{className:r.chartHeader,children:"Mold Level"}),f.jsx(SM,{ref:i,option:o,notMerge:!1})]})})},V0={LUST_RED:"#E41A1C",STEEL_BLUE:"#377EB8",APPLE_GREEN:"#4DAF4A",MIDDLE_BLUE_PURPLE:"#9467bd",ORANGE:"#ff7f00"},yZe=Rn(),MZe={S1:V0.LUST_RED,S2:V0.STEEL_BLUE,S3:V0.APPLE_GREEN,Probe_Temp:V0.MIDDLE_BLUE_PURPLE},CZe={strand_speed:0,probe_temp:1},iNi=({strandSpeeds:e,probes:t,heatName:n})=>b.useMemo(()=>{const i=(e||[]).map(M=>({Datetime:M.Datetime,Value:M.Value??0,TagId:M.TagId?.toString()||"",TagName:M.TagName||""})).filter(M=>M.Datetime&&M.TagId&&M.TagName);if(i.length===0)return{title:{left:"center",top:"center"},series:[]};const o=i.map(M=>M.Value),a=Math.min(...o).toFixed(0),s=Math.max(...o).toFixed(0),l=Math.ceil((Number(s)-Number(a))*.05);let c=Math.max(0,Math.floor(Number(a))-l),u=Math.ceil(Number(s)+l);const d={start:Math.min(...i.map(M=>M.Datetime.getTime())),end:Math.max(...i.map(M=>M.Datetime.getTime()))},p=(t||[]).filter(M=>{const C=M.Timestamp.getTime();return C>=d.start&&C<=d.end}),h={min:2400,max:3600,interval:240},g=Math.ceil((u-c)/5),m=i.reduce((M,C)=>(M[C.TagId]||(M[C.TagId]=[]),M[C.TagId].push(C),M),{}),v={};let y=0;return Object.entries(m).forEach(([M,C])=>{const w=(C[0]?.TagName||"").substring(0,2);if(MZe[w])v[M]=MZe[w];else{const S=[V0.LUST_RED,V0.STEEL_BLUE,V0.APPLE_GREEN,V0.MIDDLE_BLUE_PURPLE,V0.ORANGE];v[M]=S[y%S.length],y++}}),{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${n} - Strand Speeds`,pixelRatio:2}}},dataZoom:[{type:"inside",show:!0}],tooltip:{trigger:"axis",formatter:M=>{const C=yZe(M[0].value[0]).format("yyyy-MM-DD HH:mm:ss"),x=M.map(w=>`${w.seriesName}: ${w.value[1].toFixed(1)}`).join("<br>");return`Time: ${C}<br>${x}`}},legend:{data:[...Object.keys(m).map(M=>m[M][0].TagName).sort(),...p.length>0?["Probe Temp"]:[]],top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:M=>yZe(M).format("HH:mm")}},yAxis:[{type:"value",name:"IPM",nameTextStyle:{fontSize:14,align:"left"},nameLocation:"end",position:"left",min:c,max:u,interval:g},...p.length>0?[{type:"value",name:"°F",nameTextStyle:{fontSize:14,color:V0.MIDDLE_BLUE_PURPLE,align:"right"},nameLocation:"end",position:"right",axisLabel:{color:V0.MIDDLE_BLUE_PURPLE},axisLine:{lineStyle:{color:V0.MIDDLE_BLUE_PURPLE}},...h}]:[]],series:[...Object.entries(m).map(([M,C])=>({name:C[0].TagName,type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:CZe.strand_speed,itemStyle:{color:v[M]},data:C.map(x=>[x.Datetime.getTime(),x.Value])})),...p.length>0?[{name:"Probe Temp",type:"scatter",yAxisIndex:CZe.probe_temp,symbol:"circle",symbolSize:8,itemStyle:{color:V0.MIDDLE_BLUE_PURPLE,borderColor:"#fff",borderWidth:2},label:{show:!0,position:"top",formatter:M=>{const C=p.find(x=>x.Timestamp.getTime()===M.value[0]);return C?`${C.Temperature.toFixed(0)}°F`:""},fontSize:11,fontWeight:"bold",color:V0.MIDDLE_BLUE_PURPLE},emphasis:{itemStyle:{shadowBlur:15,shadowColor:V0.MIDDLE_BLUE_PURPLE}},data:p.map(M=>[M.Timestamp.getTime(),M.Temperature])}]:[]]}},[e,t,n]),oNi=()=>{const{state:{strandSpeeds:e,probes:t,heat:{HeatName:n}}}=sc(),r=ac(),i=uT(),o=b.useRef(null),a=iNi({strandSpeeds:e,probes:t,heatName:n});return b.useEffect(()=>{o.current&&o.current.getEchartsInstance().setOption(a,{replaceMerge:["series"],lazyUpdate:!0})},[a]),f.jsx(kt,{className:r.borderAgGridTable,elevation:0,children:f.jsxs(Tn,{p:0,children:[f.jsx("div",{className:i.chartHeader,children:"Strand Casting Speed"}),f.jsx(SM,{ref:o,option:a,notMerge:!1})]})})},aNi=Rn(),sNi=()=>({columns:[{headerName:"Lost Strands",children:[{field:"StrandId",headerName:"Strand",flex:1,minWidth:70},{field:"Timestamp",headerName:"Time",flex:1,minWidth:70,valueGetter:t=>t.data?.Timestamp?aNi(t.data.Timestamp).format("HH:mm"):"",cellStyle:{textAlign:"center"}},{field:"LostStrandTypeName",headerName:"Comment",flex:2,minWidth:100,wrapText:!0,autoHeight:!0}]}]}),lNi=Rn(),cNi=()=>{const{state:{casProcessData:e}}=sc(),[t,n]=b.useState(null),[r,i]=b.useState([]);b.useEffect(()=>{(async()=>{try{const a=e?.ProcessId;if(!a){i([]);return}const s=await uzt(a);if(s.ok){const c=(s.data?.tables?.[3]?.rows||[]).map(u=>({...u,Timestamp:u.Timestamp?lNi.utc(u.Timestamp).toDate():null}));i(c)}else n(s.message)}catch(a){n(a.message||String(a))}})()},[e]);const{columns:o}=sNi();return f.jsxs(kt,{elevation:0,style:{height:"100%"},children:[f.jsx(Tn,{style:{height:"11rem",border:"1px solid #e0e0e0"},children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:r,columnDefs:o,domLayout:"normal",suppressContextMenu:!0})}),f.jsx(Mt,{error:t,onHide:()=>n(null)})]})},uNi=Rn(),dNi=()=>({columns:[{headerName:"Probes",children:[{field:"Timestamp",headerName:"Time",flex:1,minWidth:55,cellStyle:{textAlign:"center"},valueGetter:n=>{if(n.data.Timestamp)return uNi(n.data.Timestamp).format("HH:mm")}},{field:"Temperature",headerName:"Temp",flex:1,minWidth:64,cellStyle:{textAlign:"center"}},{field:"SuperHeat",headerName:"SH",flex:1,minWidth:30,cellStyle:{textAlign:"center"}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),pNi=()=>{const e=ac(),{state:{probes:t,casProcessData:n}}=sc(),{columns:r}=dNi();return f.jsx(kt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25.6rem"},children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.ProbeId})},`${t.length}-${n.ProcessId}`)})})},hNi=()=>{const e=r=>{if(r==null)return"";const i=Math.floor(r/12),o=r%12;return`${i} ft ${o} in`};return{columns:[{headerName:"Production",children:[{field:"Length",headerName:"Length",flex:1,minWidth:75,valueFormatter:r=>e(r.value),cellStyle:{textAlign:"center"}},{field:"Pieces",headerName:"Pieces",flex:1,minWidth:70,cellStyle:{textAlign:"center"}},{field:"SectionName",headerName:"Section",flex:1,minWidth:96,cellStyle:{textAlign:"right"}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}},fNi=()=>{const e=ac(),{state:{productionData:t}}=sc(),{columns:n}=hNi();return f.jsx(f.Fragment,{children:f.jsx(kt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"13rem"},children:f.jsx(Kn,{rowData:t,columnDefs:n,domLayout:"normal",suppressRowClickSelection:!0,suppressPaginationPanel:!0,getRowId:r=>r.data.ProductBatchId})})})})})},gNi=e=>{e==null&&(e=0);const t=Math.floor(e/12),n=e%12;return`${t} ft ${n} in`},mNi=()=>({columns:[{headerName:"Scrap",children:[{field:"Length",headerName:"Length",flex:1,minWidth:79,valueFormatter:n=>gNi(n.value),cellStyle:{textAlign:"center"}},{field:"Pieces",headerName:"Pieces",flex:1,minWidth:65,cellStyle:{textAlign:"center"}},{field:"ScrapReasonName",headerName:"Code",flex:1,minWidth:110,cellStyle:{textAlign:"right"}},{field:"Weight",headerName:"Weight",flex:1,minWidth:96,cellStyle:{textAlign:"right"}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),vNi=()=>{const e=ac(),{state:{scrapData:t}}=sc(),{columns:n}=mNi();return f.jsx(f.Fragment,{children:f.jsx(kt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"11.5rem"},children:f.jsx(Kn,{rowData:t,columnDefs:n,domLayout:"normal",suppressRowClickSelection:!0,suppressPaginationPanel:!0,getRowId:r=>r.data.ScrapId,suppressContextMenu:!0})})})})})},xZe=e=>{const{value:t,data:n}=e,r=n?.numberFormat;return t==null||typeof t=="string"?null:f.jsx(f.Fragment,{children:j3t(t,r||"")})},bNi=e=>{const t=[{name:"Mold Water T in",startField:"MWTempInStart",endField:"MWTempInEnd",numberFormat:"XXX.X"},{name:"Mold Water T out",startField:"MWTempOutStart",endField:"MWTempOutEnd",numberFormat:"XXX.X"},{name:"Mold Water DT",startField:"MWDTStart",endField:"MWDTEnd",numberFormat:"XXX.X"},{name:"Mold Water Flow [GPM]",startField:"MWGPMStart",endField:"MWGPMEnd",numberFormat:"XXX.X"},{name:"Spray Pres N",startField:"NSprayStart",endField:"NSprayEnd",numberFormat:"XX"},{name:"Spray Pres E",startField:"ESprayStart",endField:"ESprayEnd",numberFormat:"XX"},{name:"Spray Pres S",startField:"SSprayStart",endField:"SSprayEnd",numberFormat:"XX"},{name:"Spray Pres W",startField:"WSprayStart",endField:"WSprayEnd",numberFormat:"XX"},{name:"Billet Temp",startField:"BilletTempStart",endField:"BilletTempEnd",numberFormat:"XXX.X"},{name:"Strand Speed",startField:"SpeedStart",endField:"SpeedEnd",numberFormat:"XXX.X"}],n=e.reduce((a,s)=>(s.Strand!=null&&(a[s.Strand.toString()]=s),a),{}),r=t.map(a=>({id:a.name,Property:a.name,s1_start:a.startField?n[1]?.[a.startField]:null,s1_end:a.endField?n[1]?.[a.endField]:null,s2_start:a.startField?n[2]?.[a.startField]:null,s2_end:a.endField?n[2]?.[a.endField]:null,s3_start:a.startField?n[3]?.[a.startField]:null,s3_end:a.endField?n[3]?.[a.endField]:null,numberFormat:a.numberFormat}));return{columns:[{field:"Property",headerName:"",minWidth:100,cellClass:"first-column-cell",suppressMovable:!0},...[1,2,3].map((a,s)=>{const l=`s${a}_start`,c=`s${a}_end`,u=s%2!==0?{backgroundColor:"rgba(245, 245, 245, 0.67)"}:{};return{headerName:`Strand ${a}`,headerGroupComponent:()=>f.jsx(D,{container:!0,alignItems:"center",spacing:1,children:f.jsx(D,{item:!0,xs:5,children:f.jsxs("span",{children:["Strand ",a]})})}),children:[{headerName:"Start",field:l,minWidth:98,cellRendererSelector:d=>({component:xZe}),cellStyle:{...u,textAlign:"center"},flex:1},{headerName:"End",field:c,minWidth:90,cellRendererSelector:d=>({component:xZe}),cellStyle:{...u,textAlign:"center"},flex:1}]}})],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,flex:1},rowData:r}},yNi=()=>{const e=ac(),{state:{strandData:t}}=sc(),{columns:n,rowData:r}=bNi(t);return f.jsx(f.Fragment,{children:f.jsx(kt,{elevation:0,className:e.borderAgGridTable,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25.6rem"},children:f.jsx(Kn,{suppressRowClickSelection:!0,pagination:!1,stopEditingWhenCellsLoseFocus:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,suppressPropertyNamesCheck:!0,rowData:r,columnDefs:n,domLayout:"normal",suppressContextMenu:!0,getRowId:i=>i.data.id})})})})})},MNi=()=>{const{state:{casProcessData:e}}=sc();return f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",children:f.jsx(J5i,{},e.ProcessId)}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",children:[f.jsx(D,{item:!0,xs:3,children:f.jsx(pNi,{},e.ProcessId)}),f.jsxs(D,{item:!0,xs:3,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(fNi,{},e.ProcessId)}),f.jsx(D,{item:!0,xs:12,children:f.jsx(vNi,{},e.ProcessId)})]}),f.jsx(D,{item:!0,xs:6,children:f.jsx(yNi,{},e.ProcessId)}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:3,style:{paddingRight:"8px"},children:f.jsx(oNi,{},e.ProcessId)}),f.jsx(D,{item:!0,xs:3,style:{marginLeft:"-4px"},children:f.jsx(rNi,{},e.ProcessId)}),f.jsx(D,{item:!0,xs:3,children:f.jsx(tNi,{},e.ProcessId)}),f.jsx(D,{item:!0,xs:3,children:f.jsx(cNi,{},e.ProcessId)})]})]})]})},wZe=Rn(),Ipe=e=>{if(e==null||e==="")return"";const t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?"":Math.abs(t)>9999?t.toLocaleString("en-US"):t.toString()},CNi=()=>{const{state:{eafProcessData:e,heat:t}}=sc(),n=ac();return f.jsx(kt,{className:n.borderAgGridTable,elevation:0,children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(lTe,{assetId:e.AssetId,assetName:e.AssetName})},`${t.HeatId}-asset`)},`${e.ProcessId}-column-1`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Start Time",value:e?.Start?wZe(e.Start).format("HH:mm - MM/DD/YYYY"):"",variant:"outlined",fullWidth:!0,InputProps:{readOnly:!0}})},"start-time"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Tap Time",value:e?.End?wZe(e.End).format("HH:mm - MM/DD/YYYY"):"",variant:"outlined",fullWidth:!0})},"tap-time")]})},`${e.ProcessId}-column-2`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(sTe,{label:"Tap To Tap [hh:mm:ss]",value:e?.TapToTap??"",unit:"minutes",onChange:()=>{}})},"tap-to-tap"),f.jsx(D,{item:!0,xs:12,children:f.jsxs("div",{className:n.container,children:[f.jsx(je,{label:"Power On [minutes]",value:e?.PowerOn?`${e.PowerOn} min`:"",variant:"outlined",fullWidth:!0,InputProps:{readOnly:!0}}),f.jsx(je,{label:"Power Off [minutes]",value:e?.PowerOff?`${e.PowerOff} min`:"",variant:"outlined",fullWidth:!0,InputProps:{readOnly:!0}})]})},"power-on-off")]})},`${e.ProcessId}-column-3`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Delay Time [min]",value:e?.DelayTime??"",variant:"outlined",fullWidth:!0})},"delay-time"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Foreman",value:e?.Foreman??"",variant:"outlined",fullWidth:!0})},"foreman")]})},`${e.ProcessId}-column-4`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"MWH",value:Ipe(e?.Energy),variant:"outlined",fullWidth:!0})},"mwh"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"KWH/Ton",value:e?.KWHPerTon?parseFloat(e.KWHPerTon.toFixed(1)):"",variant:"outlined",fullWidth:!0})},"kwh-per-ton")]})},`${e.ProcessId}-column-5`),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Scrap Charged [lbs]",value:Ipe(e?.ScrapCharged),variant:"outlined",fullWidth:!0})},"scrap-charged"),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"O2 Volume",value:Ipe(e?.OxygenVolume?.toFixed(1)),variant:"outlined",fullWidth:!0})},"oxygen-volume")]})},`${e.ProcessId}-column-6`)]})})})},H0={GREEN_BLUE:"#1f77b4",ORANGE:"#ff7f0e",WAGENINGEN_GREEN:"#2ca02c",AMARANTH_RED:"#d62728",MIDDLE_BLUE_PURPLE:"#9467bd"},SZe=Rn(),Wp={KWH_Per_Ton:H0.GREEN_BLUE,Power_MW:H0.ORANGE,Steel_Temp:H0.MIDDLE_BLUE_PURPLE},AZe={KWH_Per_Ton:0,Power_MW:1,Steel_Temp:2},OZe={KWH_Per_Ton:"KWH/Ton",Power_MW:"Power",Steel_Temp:"Probe temp"},xNi=({eafValues:e,heatName:t,eafProcessData:n,charges:r,additions:i,offsetMinutes:o=40})=>b.useMemo(()=>{const s=(e||[]).map(M=>({Datetime:M.Datetime,Value:M.Value??0,TagId:M.TagId?.toString()||"",TagName:M.TagName||""})).filter(M=>M.Datetime&&M.TagId&&M.TagName);if(s.length===0)return{title:{left:"center",top:"center"},series:[]};const l=s.reduce((M,C)=>(M[C.TagName]||(M[C.TagName]=[]),M[C.TagName].push(C),M),{}),u=M=>{switch(M){case"KWH_Per_Ton":return{min:0,max:600,interval:120};case"Power_MW":return{min:0,max:23e3,interval:4600};case"Steel_Temp":return{min:0,max:3600,interval:720};default:return{min:0,max:100,interval:20}}},d=(M,C,x,w,S)=>{const A=(M-w)/(S-w);return C+A*(x-C)},p=M=>d(M,2160,3600,2600,3600),h=(M,C)=>M%2===0?0:720,g=(M,C)=>{const S=1440/Math.max(C,1);return 720+M*S},m=M=>{if(M.length===0)return[];const C=5,x=[];x.push(M[0]);let w=M[0].Value;for(let S=1;S<M.length;S++){const A=M[S],z=A.Value;(Math.abs(z-w)>=C||S===M.length-1)&&(x.push(A),w=z)}return x.sort((S,A)=>S.Datetime.getTime()-A.Datetime.getTime()),x},y=(()=>{if(!n?.Start)return;const M=n.Start.getTime(),C=n.End?.getTime()||Date.now(),x=M-o*60*1e3,S=C+o*60*1e3-x,A=(M-x)/S*100,z=(C-x)/S*100;return{start:Math.max(0,A),end:Math.min(100,z)}})();return{animation:!1,toolbox:{feature:{saveAsImage:{name:`Heat ${t} - EAF Process Data`,pixelRatio:2}}},dataZoom:[{type:"inside",show:!0,start:y?.start||0,end:y?.end||100}],tooltip:{trigger:"axis",formatter:M=>{const C=M.find(S=>S.seriesName==="Probe temp"),x=M.find(S=>S.seriesName==="Additions"),w=SZe(M[0].value[0]).format("HH:mm:ss");if(C){const S=M.find(z=>z.seriesName==="Power");let A=`Probe temp: ${C.value[1].toFixed(1)}°F`;return S&&(A+=`<br>Power: ${S.value[1].toFixed(1)} MW`),`Time: ${w}<br>${A}`}else if(x){const S=M.find(O=>O.seriesName==="Power"),A=i?.find(O=>O.Timestamp.getTime()===x.value[0]);let z="";if(A){const O=A.MaterialName||"",T=Math.floor(A.Quantity);z=O?`${O}: ${T} kg`:`Addition: ${T} kg`}else z="Addition";return S&&(z+=`<br>Power: ${S.value[1].toFixed(1)} MW`),`Time: ${w}<br>${z}`}else{const S=M.map(A=>{let z="";const O=A.seriesName;return O==="Power"?z=" MW":O==="KWH/Ton"&&(z=" kWh/ton"),`${O}: ${A.value[1].toFixed(1)}${z}`}).join("<br>");return`Time: ${w}<br>${S}`}}},legend:{data:[...Object.keys(l).map(M=>OZe[M]||M).sort(),"Scrap Charges","Additions"],top:"bottom",selectedMode:!0,textStyle:{fontSize:10},itemGap:20},xAxis:{type:"time",axisLabel:{formatter:M=>SZe(M).format("HH:mm")}},yAxis:[{type:"value",name:"kWh/ton",nameTextStyle:{fontSize:12,color:Wp.KWH_Per_Ton,align:"left"},nameLocation:"end",position:"left",axisLabel:{color:Wp.KWH_Per_Ton},axisLine:{lineStyle:{color:Wp.KWH_Per_Ton}},...u("KWH_Per_Ton")},{type:"value",name:"MW",nameTextStyle:{fontSize:12,color:Wp.Power_MW,align:"right"},nameLocation:"end",position:"right",axisLabel:{color:Wp.Power_MW},axisLine:{lineStyle:{color:Wp.Power_MW}},...u("Power_MW")},{type:"value",name:"°F",nameTextStyle:{fontSize:12,color:Wp.Steel_Temp,align:"left"},nameLocation:"end",position:"left",offset:80,axisLabel:{color:Wp.Steel_Temp},axisLine:{lineStyle:{color:Wp.Steel_Temp}},...u("Steel_Temp")}],series:[...Object.entries(l).map(([M,C])=>{const x=OZe[M]||M;if(M==="Steel_Temp"){const S=m(C);return{name:x,type:"scatter",yAxisIndex:AZe[M]||0,symbol:"circle",symbolSize:10,itemStyle:{color:Wp[M]||H0.GREEN_BLUE,borderColor:"#fff",borderWidth:2},label:{show:!1},emphasis:{itemStyle:{shadowBlur:15,shadowColor:Wp[M]||H0.GREEN_BLUE},label:{show:!0,position:"top",formatter:A=>`${A.value[1].toFixed(0)}°F`,fontSize:11,fontWeight:"bold",color:Wp[M]||H0.GREEN_BLUE}},data:S.map(A=>[A.Datetime.getTime(),p(A.Value)])}}else return{name:x,type:"line",smooth:!0,symbol:"none",sampling:"lttb",yAxisIndex:AZe[M]||0,itemStyle:{color:Wp[M]||H0.GREEN_BLUE},lineStyle:{width:1.5},data:C.map(S=>[S.Datetime.getTime(),S.Value])}}),{name:"Scrap Charges",type:"scatter",yAxisIndex:2,symbol:"triangle",symbolSize:12,itemStyle:{color:H0.AMARANTH_RED,borderColor:"#fff",borderWidth:2},label:{show:!0,position:"top",formatter:M=>{const C=r?.find(x=>x.Timestamp.getTime()===M.value[0]);if(C){const x=C.BucketName||"";return x?`${x}
${C.Weight} lbs`:`${C.Weight} lbs`}return""},fontSize:10,fontWeight:"bold",color:H0.AMARANTH_RED,backgroundColor:"rgba(255, 255, 255, 0.8)",borderColor:H0.AMARANTH_RED,borderWidth:1,borderRadius:3,padding:[2,4]},emphasis:{itemStyle:{shadowBlur:15,shadowColor:H0.AMARANTH_RED}},data:(r||[]).filter(M=>M.ChargeCode==="B").map((M,C,x)=>[M.Timestamp.getTime(),h(C,x.length)])},{name:"Additions",type:"scatter",yAxisIndex:2,symbol:"diamond",symbolSize:10,itemStyle:{color:H0.WAGENINGEN_GREEN,borderColor:"#fff",borderWidth:2},label:{show:!1},emphasis:{itemStyle:{shadowBlur:15,shadowColor:H0.WAGENINGEN_GREEN},label:{show:!0,position:"top",formatter:M=>{const C=i?.find(x=>x.Timestamp.getTime()===M.value[0]);if(C){const x=C.MaterialName||"",w=Math.floor(C.Quantity);return x?`${x}
${w} kg`:`${w} kg`}return""},fontSize:9,fontWeight:"bold",color:H0.WAGENINGEN_GREEN,backgroundColor:"rgba(255, 255, 255, 0.8)",borderColor:H0.WAGENINGEN_GREEN,borderWidth:1,borderRadius:3,padding:[2,4]}},data:(i||[]).map((M,C,x)=>[M.Timestamp.getTime(),g(C,x.length)])}]}},[e,t,n,r,i,o]),wNi=()=>{const{state:{eafValues:e,eafProcessData:t,charges:n,additions:r,eafChartOffsetMinutes:i,heat:{HeatName:o}}}=sc(),a=ac();uT();const s=b.useRef(null),l=xNi({eafValues:e,heatName:o,eafProcessData:t,charges:n,additions:r,offsetMinutes:i});return b.useEffect(()=>{s.current&&s.current.getEchartsInstance().setOption(l,{replaceMerge:["series"],lazyUpdate:!0})},[l]),f.jsx(kt,{className:a.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{children:f.jsx(SM,{ref:s,option:l,notMerge:!1})})})})},SNi=Rn(),ANi=()=>{const e=r=>{switch(r){case"E":return"EAF";case"L":return"Ladle";case"T":return"Trim";case"F":return"Flux";case"W":return"Wire";default:return r}};return{columns:[{headerName:"Additions",children:[{field:"Timestamp",headerName:"Time",flex:1,minWidth:55,cellStyle:{textAlign:"center"},valueGetter:r=>{if(r.data.Timestamp)return SNi(r.data.Timestamp).format("HH:mm")}},{field:"MaterialName",headerName:"Material",flex:1,minWidth:64},{field:"Quantity",headerName:"Weight [kg]",flex:1,minWidth:102,cellStyle:{textAlign:"center"},valueGetter:r=>{if(r.data.Quantity)return Math.floor(r.data.Quantity)}},{field:"AdditionTypeCode",headerName:"Type",flex:1,minWidth:64,cellStyle:{textAlign:"center"},valueGetter:r=>{if(r.data.AdditionTypeCode)return e(r.data.AdditionTypeCode)}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}},ONi=()=>{const e=ac(),{state:{additions:t,eafProcessData:n}}=sc(),{columns:r}=ANi();return f.jsx(kt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.AdditionId})},`${t.length}-${n.ProcessId}`)})})},zNi=Rn(),TNi=()=>({columns:[{headerName:"Charges",children:[{field:"Timestamp",headerName:"Time",flex:1,minWidth:55,cellStyle:{textAlign:"center"},valueGetter:n=>{if(n.data.Timestamp)return zNi(n.data.Timestamp).format("HH:mm")}},{field:"ChargeCode",headerName:"Code",flex:1,minWidth:64,cellStyle:{textAlign:"center"},valueGetter:n=>{if(n.data.ChargeCode)return n.data.ChargeCode==="B"?"Bucket":n.data.ChargeCode==="P"?"Pourback":"Unknown"}},{field:"Weight",headerName:"Scrap [lbs]",flex:1,minWidth:102,cellStyle:{textAlign:"right"}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),ENi=()=>{const e=ac(),{state:{charges:t,eafProcessData:n}}=sc(),{columns:r}=TNi();return f.jsx(kt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.ChargeId})},`${t.length}-${n.ProcessId}`)})})},Ppe=Rn(),RNi=()=>({columns:[{headerName:"Delays",children:[{field:"Start",headerName:"Start",flex:1,minWidth:55,valueGetter:n=>{if(n.data.Start)return Ppe(n.data.Start).format("HH:mm:ss")}},{field:"End",headerName:"End",flex:1,minWidth:76,valueGetter:n=>{if(n.data.End)return Ppe(n.data.End).format("HH:mm:ss")}},{field:"Duration",headerName:"Duration",flex:1,minWidth:64,valueFormatter:n=>{if(n.value){const r=Ppe.duration(n.value,"seconds"),i=Math.floor(r.asMinutes()),o=r.seconds();return`${i}m ${o}s`}return""}},{field:"DelayCategory",headerName:"Category",valueGetter:n=>{const r=n.data?.DelayCategoryName,i=n.data?.DelayCategoryColor;return{name:r,color:i}},cellRenderer:Ote,minWidth:180,maxWidth:200,editable:!1,cellStyle:{justifyContent:"flex-start"},flex:1},{field:"DelayCodeName",headerName:"Code",valueGetter:n=>n.data?.DelayCodeName||"No Classified",minWidth:130,editable:!1,flex:1,cellStyle:{justifyContent:"center"}},{field:"Comments",headerName:"Comments",minWidth:117,flex:3}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),INi=()=>{const e=ac(),{state:{delays:t,eafProcessData:n}}=sc(),{columns:r}=RNi();return f.jsx(kt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,rowHeight:41,headerHeight:35,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.DelayId,suppressContextMenu:!0})},`${t.length}-${n.ProcessId}`)})})},_G=Rn(),PNi=()=>({columns:[{headerName:"Heatings",children:[{field:"Start",headerName:"Start",flex:1,minWidth:50,valueGetter:n=>{if(n.data.Start)return _G(n.data.Start).format("HH:mm:ss")}},{field:"End",headerName:"End",flex:1,minWidth:50,valueGetter:n=>{if(n.data.End)return _G(n.data.End).format("HH:mm:ss")}},{field:"Duration",headerName:"Duration",flex:1,minWidth:63,valueGetter:n=>{const{Start:r,End:i}=n.data;if(i&&r){const o=_G(i).diff(_G(r),"seconds"),a=Math.floor(o/60),s=o%60;return`${a.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}}},{field:"MWH",headerName:"Energy [kwh]",flex:1,minWidth:108}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),DNi=()=>{const e=ac(),{state:{heatings:t,eafProcessData:n}}=sc(),{columns:r}=PNi();return f.jsx(kt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.HeatingId})},`${t.length}-${n.ProcessId}`)})})},kNi=Rn(),LNi=()=>({columns:[{headerName:"Probes",children:[{field:"Timestamp",headerName:"Time",flex:1,minWidth:55,valueGetter:n=>{if(n.data.Timestamp)return kNi(n.data.Timestamp).format("HH:mm")}},{field:"Temperature",headerName:"Temp",flex:1,minWidth:64},{field:"Oxygen",headerName:"Oxygen",flex:1,minWidth:102}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1,suppressHeaderMenuButton:!0}}),_Ni=()=>{const e=ac(),{state:{probes:t,eafProcessData:n}}=sc(),{columns:r}=LNi();return f.jsx(kt,{className:e.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:"25rem"},children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,domLayout:"normal",getRowId:i=>i.data.ProbeId})},`${t.length}-${n.ProcessId}`)})})},NNi=()=>f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",children:f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(CNi,{})})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",children:[f.jsx(D,{item:!0,xs:3,children:f.jsx(ONi,{})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(_Ni,{})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(ENi,{})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(DNi,{})})]}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(wNi,{})})}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(INi,{})})})]}),FNi=Rn(),WNi=({onExport:e})=>{const{state:{heatLabData:t,elementData:n}}=sc(),r=ac();return f.jsx(kt,{className:r.borderAgGridTable,elevation:0,style:{minWidth:"100%"},children:f.jsx(Tn,{padding:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,alignItems:"center",children:[f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(lTe,{assetId:15,assetName:"Lab"})})}),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Production Date",value:t?.ProductionDate?`${FNi(t?.ProductionDate).format("MM/DD/YYYY")} - Shift ${t?.Shift} - Crew ${t?.Crew}`:"",variant:"outlined",fullWidth:!0})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Sections",value:t?.Sections??"",variant:"outlined",fullWidth:!0})})]})},"col-main-data-2"),f.jsx(D,{item:!0,xs:12,sm:6,md:2,container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Programmed Grade",value:t?.ProgrammedGrade??"",variant:"outlined",fullWidth:!0})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(je,{label:"Cast Grade",value:t?.Grade??"",variant:"outlined",fullWidth:!0,InputProps:{style:{color:t?.Grade&&t?.Grade!==t?.ProgrammedGrade?"red":"black"}}})})]})},"col-main-data-3"),f.jsx(D,{item:!0,xs:!0,container:!0,justifyContent:"flex-end",style:{alignSelf:"center"},children:f.jsx(Ik,{onClick:e,disabled:!n||n.length===0})})]})})})},p2=Rt(e=>({root:{},heatsTable:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:14,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-header-cell":{fontSize:14},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center"},"& .max-limit":{color:"#CC0000",fontWeight:800}},agGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px 10px 50px 10px",minHeight:"350px",maxHeight:"350px"},middleTextfields:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px 10px 50px 10px",minHeight:"473px",maxHeight:"475px"},dynamicHeight:{height:t=>{const n=t?.rowCount??4;return`${Math.min(300+(n-4)*50,550)}px`}},readonlyAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"10px ",height:"330px",minWidth:"100%",minHeight:"330px"},manualAutoButton:{minWidth:"5px",padding:"6px 8px",cursor:"auto"},smAgGridBox:{border:"1px solid #ccc",borderRadius:"4px",padding:"5px",height:"281px",minHeight:"350px"},EAFAgGridBox:{borderRadius:"4px",padding:"10px",height:"226px",minHeight:"226px",border:"1px solid #ccc"},assetCard:{display:"flex",justifyContent:"center",alignItems:"center",userSelect:"none",height:"50px",marginTop:"20px"},unclassifiedDelayRow:{"&.ag-row":{backgroundColor:"#FFECEC !important"},"&.ag-row:hover":{backgroundColor:"#E0B0B0 !important"},"&.ag-row-selected":{backgroundColor:"#D8A8A8 !important"}},outlinedTextarea:{width:"100%",padding:"10px 12px",border:`1px solid ${e.palette.grey[400]}`,borderRadius:e.shape.borderRadius,fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize,transition:e.transitions.create(["border-color","box-shadow"]),"&:hover":{borderColor:e.palette.text.primary},"&:focus":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 2px ${e.palette.primary.light}`,outline:"none"},"&::placeholder":{color:e.palette.text.secondary,opacity:1}}})),qNi=({mechanicalSamples:e,mechanicalTests:t,mechanicalGradeLimits:n,mechanicalResultSources:r})=>{const i=(g,m)=>g.value===null||isNaN(g.value)?"":parseFloat(g.value).toFixed(m),o=(g,m)=>{const v=typeof m=="string"?isNaN(parseInt(m))?0:parseInt(m):m;return g.find(M=>M.ResultSourceId===v)?.ResultSourceName||""},a=g=>{if(g.value===null||isNaN(g.value))return"error-limit";const m=g.data;if(!m?.Limits)return"error-limit";const v=m.Limits.find(C=>C.MechanicalTestId===parseInt(g.colDef.field??"0"));if(!v)return"error-limit2";const{MinValue:y,MaxValue:M}=v;return y!==null&&parseFloat(g.value)<y||M!==null&&parseFloat(g.value)>M?"error-limit":"error-limit2"},s=b.useMemo(()=>({headerName:"Sample",children:[{field:"HeatName",headerName:"Heat",minWidth:78,flex:1},{field:"SampleSequence",headerName:"Seq",minWidth:50,flex:1},{field:"GradeId",headerName:"Grade",minWidth:86,flex:1},{field:"SectionId",headerName:"Section",minWidth:96,flex:1},{field:"Width",headerName:"Width",minWidth:85,type:["numericColumn"],valueFormatter:g=>i(g,4),headerClass:"stripe-header",flex:1},{field:"Thickness",headerName:"Thickness",minWidth:113,type:["numericColumn"],valueFormatter:g=>i(g,4),headerClass:"stripe-header",flex:1},{field:"ResultSourceId",headerName:"Source",minWidth:93,flex:1,valueFormatter:g=>o(r,g.value)},{field:"Method",headerName:"Method",minWidth:97,flex:1}]}),[r]),l=b.useMemo(()=>({headerName:"Tests",children:t.filter(m=>m.IsActive&&m.MechanicatTestId!==4).map(m=>({field:m.MechanicatTestId?.toString(),headerName:BNi(m.MechanicalTestName),minWidth:80,flex:1,type:["numericColumn"],headerClass:m.UseInCircular?"stripe-header":"",valueFormatter:v=>i(v,m.Decimals),cellClass:a}))}),[t]),c=b.useMemo(()=>({headerName:"Results",children:[{field:"DateTimeResults",headerName:"Result",valueGetter:g=>Wn(`${g.data.DateTimeResults}`,"MM/dd/yyyy - HH:mm")||"",minWidth:150,flex:1},{field:"Technician",headerName:"Technician",minWidth:117,flex:1}]}),[]),u=b.useMemo(()=>e.map(g=>{const m={...g,elementParams:[],sampleParams:["SampleSequence","DateTimeResults","StatusCode","ResultSourceId","Comments","Technician","Method","HeatId","Width","Thickness","Diameter"],testParams:[]},v=(g.SamplesId??"").split(","),y=(g.SamplesValue??"").split(",");return(g.ResultsId??"").split(","),m.Limits=n.filter(M=>M.GradeId===g.GradeId),t.forEach(M=>{m[String(M.MechanicatTestId).trim()]=null}),v.forEach((M,C)=>{const x=y[C];m[M.trim()]=isNaN(parseFloat(x))?null:parseFloat(x)}),m}),[e,t,n]),d=b.useMemo(()=>({headerName:"Mechanical",children:[s,l,c]}),[s,l,c]),p=b.useMemo(()=>[d],[d]),h=b.useMemo(()=>({flex:1,resizable:!0,sortable:!0,filter:!0,editable:!1,tooltipComponent:"customTooltip",tooltipComponentParams:{color:"#ececec"}}),[]);return{columns:p,rows:u,defaultColDef:h}},BNi=e=>({"Yield Strength":"Yield","Tensile Strength":"Tensile",Elongation:"Elongation","Reduction of Area":"RA"})[e]||e,jNi=({loadingGrid:e,heat:t,mechanicalSamples:n,mechanicalTests:r,mechanicalGradeLimits:i,mechanicalResultSources:o})=>{const a=p2(),s=b.useRef(null),{columns:l,rows:c}=qNi({mechanicalSamples:n||[],mechanicalTests:r||[],mechanicalGradeLimits:i||[],mechanicalResultSources:o||[]}),u=b.useMemo(()=>({height:"auto"}),[]);return b.useMemo(()=>{e&&s.current?.api?s.current.api.showLoadingOverlay():s.current?.api&&s.current.api.hideOverlay()},[e]),f.jsx(D,{item:!0,container:!0,className:a.root,style:{...u},xs:12,md:12,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(kt,{elevation:1,children:f.jsx(Kn,{ref:s,rowSelection:"single",pagination:!1,animateRows:!0,domLayout:"autoHeight",tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:c,columnDefs:l,suppressContextMenu:!0,enableRangeSelection:!0,enableCharts:!1})})})})},HNi=Rn(),VNi=({elementList:e})=>{const{rowData:t,chemistryGroupCol:n}=b.useMemo(()=>{const a={},s={},l={},c={};e&&e.length>0&&e.forEach(m=>{const v=`${m.SampleTypeName||"?"}${m.SampleSequence??""}`,y=m.ElementName;y&&(a[y]||(a[y]={order:m.Order??1/0,decimals:m.Decimals??4},l[y]=null,c[y]=null),m.MinValue!==null&&(l[y]===null||m.MinValue<l[y])&&(l[y]=m.MinValue),m.MaxValue!==null&&(c[y]===null||m.MaxValue>c[y])&&(c[y]=m.MaxValue),s[v]||(s[v]={id:v,SampleTypeName:m.SampleTypeName||"",SampleSequence:m.SampleSequence??null,Reception:m.Reception||null}),s[v][y]={value:m.Value,status:m.Status,minValue:m.MinValue,maxValue:m.MaxValue,decimals:a[y].decimals})});const u=Object.keys(a).sort((m,v)=>{const y=a[m].order,M=a[v].order;return y!==M?y-M:m.localeCompare(v)}),d=[{headerName:"Sample",valueGetter:m=>m.data?m.data.id:"",minWidth:100,flex:1},{headerName:"Time",minWidth:81,resizable:!0,valueGetter:m=>!m.data||m.data.id==="MIN"||m.data.id==="MAX"?"":m.data.Reception?HNi(m.data.Reception).format("HH:mm"):"",flex:1,cellStyle:{textAlign:"center"}}],p=u.map(m=>{const v=a[m].decimals;return{headerName:m,minWidth:80,flex:1,valueGetter:y=>{if(!y.data)return null;const M=y.data[m];return M&&typeof M=="object"?M.value:null},valueFormatter:y=>{if(y.value===null||y.value===void 0)return"-";let M=v;if(y.data){const C=y.data[m];C&&typeof C=="object"&&(M=C.decimals??v)}return typeof y.value=="number"?y.value.toFixed(M):"-"},cellClassRules:{"cell-below-min":y=>{if(y.rowIndex!==0||!y.data||y.data.id==="MIN"||y.data.id==="MAX")return!1;const M=y.data[m];return!!(M&&typeof M=="object"&&M.status==="Below")},"cell-above-max":y=>{if(y.rowIndex!==0||!y.data||y.data.id==="MIN"||y.data.id==="MAX")return!1;const M=y.data[m];return!!(M&&typeof M=="object"&&M.status==="Above")}},type:"numericColumn"}}),h={headerName:"Chemistry",children:[...d,...p]},g=Object.values(s);if(u.length>0){const m={id:"MIN",SampleTypeName:"MIN",SampleSequence:null,Reception:null},v={id:"MAX",SampleTypeName:"MAX",SampleSequence:null,Reception:null};u.forEach(y=>{const M=a[y].decimals;m[y]={value:l[y],decimals:M},v[y]={value:c[y],decimals:M}}),g.push(m,v)}return{rowData:g,chemistryGroupCol:h}},[e]),r=a=>a.data&&(a.data.id==="MIN"||a.data.id==="MAX")?{backgroundColor:"#f0f0f0"}:{},i=b.useMemo(()=>n?[n]:[],[n]),o=b.useMemo(()=>({sortable:!1,editable:!1,suppressMenu:!0,flex:1,suppressHeaderMenuButton:!0}),[]);return{columns:i,defaultColDef:o,rowData:t,getRowStyle:r}},GNi=Rt(e=>({gridWrapper:{"& .ag-cell.cell-below-min":{backgroundColor:" #ffa500",fontWeight:"bold"},"& .ag-cell.cell-above-max":{backgroundColor:" #f26b6b",fontWeight:"bold"},"& .ag-header-cell-label":{display:"flex",justifyContent:"center",alignItems:"center"}}})),$Ni=({gridRef:e})=>{const t=ac();GNi();const{state:{elementData:n}}=sc(),{columns:r,rowData:i,getRowStyle:o}=VNi({elementList:n}),a=20+(i?.length??0)*35+2;return f.jsx(f.Fragment,{children:f.jsx(kt,{className:t.borderAgGridTable,elevation:0,children:f.jsx(Tn,{p:0,children:f.jsx("div",{style:{height:`${Math.max(a,190)}px`,minWidth:"100%"},children:f.jsx(Kn,{ref:e,rowData:i,columnDefs:r,suppressRowClickSelection:!0,suppressPaginationPanel:!0,suppressContextMenu:!0,getRowId:l=>l.data.id,getRowStyle:o,noRowsOverlayComponent:()=>"No chemistry data available"})})})})})},XTt=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"HeatId",value:e}),r.push({name:"StatusCode",value:t}),await n.callV2("[LAB].[GetMechanicalSamples]",r)},Uc=Rn(),UNi=async({HeatId:e})=>{const t=[];t.push({name:"HeatId",value:e});const r=await new Ye().callV2("[SWV].[GetHeatReport]",t);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,TapDate:i.TapDate?Uc.utc(i.TapDate).toDate():null,OpenDate:i.OpenDate?Uc.utc(i.OpenDate).toDate():null}))),r},XNi=async({ProcessId:e})=>{const t=[];t.push({name:"ProcessId",value:e});const r=await new Ye().callV2("[EAF].[GetProcessHeatReport]",t);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,Start:i.Start?Uc.utc(i.Start).toDate():null,End:i.End?Uc.utc(i.End).toDate():null,StartTap:i.StartTap?Uc.utc(i.StartTap).toDate():null})),r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,Timestamp:i.Timestamp?Uc.utc(i.Timestamp).toDate():null})),r.data.tables[2].rows=r.data.tables[2].rows.map(i=>({...i,Timestamp:i.Timestamp?Uc.utc(i.Timestamp).toDate():null})),r.data.tables[3].rows=r.data.tables[3].rows.map(i=>({...i,Timestamp:i.Timestamp?Uc.utc(i.Timestamp).toDate():null})),r.data.tables[4].rows=r.data.tables[4].rows.map(i=>({...i,Start:i.Start?Uc.utc(i.Start).toDate():null,End:i.End?Uc.utc(i.End).toDate():null})),r.data.tables[5].rows=r.data.tables[5].rows.map(i=>({...i,Start:i.Start?Uc.utc(i.Start).toDate():null,End:i.End?Uc.utc(i.End).toDate():null})),r.data.tables[6].rows=r.data.tables[6].rows.map(i=>({...i,CreateTimestamp:i.CreateTimestamp?Uc.utc(i.CreateTimestamp).toDate():null,UpdateTimestamp:i.UpdateTimestamp?Uc.utc(i.UpdateTimestamp).toDate():null}))),r},YNi=async({ProcessId:e})=>{const t=[];t.push({name:"ProcessId",value:e});const r=await new Ye().callV2("[CAS].[GetProcessHeatReport]",t);return r.ok&&(r.data.tables[0].rows=r.data.tables[0].rows.map(i=>({...i,LadleOpen:i.LadleOpen?Uc.utc(i.LadleOpen).toDate():null,LadleClose:i.LadleClose?Uc.utc(i.LadleClose).toDate():null})),r.data.tables[2].rows=r.data.tables[2].rows.map(i=>({...i,Timestamp:i.Timestamp?Uc.utc(i.Timestamp).toDate():null})),r.data.tables[5].rows=r.data.tables[5].rows.map(i=>({...i,CreateTimestamp:i.CreateTimestamp?Uc.utc(i.CreateTimestamp).toDate():null}))),r},KNi=async({heatId:e})=>{const t=new Ye,n=[];n.push({name:"HeatId",value:e});const r=await t.callV2("[LAB].[GetHeatReportChemistrySample]",n);return r.ok&&(r.data.tables[1].rows=r.data.tables[1].rows.map(i=>({...i,Reception:i.Reception?Uc.utc(i.Reception).toDate():null}))),r},QNi=async({ProcessId:e,OffsetMinutes:t=40})=>{const n=new Ye,r=[];r.push({name:"ProcessId",value:e}),r.push({name:"OffsetMinutes",value:t});const i=await n.callV2("[SWV].[GetEAFValuesByProcessId]",r);return i.ok&&(i.data.tables[0].rows=i.data.tables[0].rows.map(o=>({...o,Datetime:o.Datetime?Uc.utc(o.Datetime).toDate():null}))),i},ZNi=async({heatId:e})=>{const t=await XTt(e,"V"),[n,r]=await Promise.all([D3e(),k3e()]);return{samples:t,tests:n,sources:r}},JNi=()=>{const{state:e,actions:t}=sc();return{loadMechanicalTestData:async r=>{if(!r){t.setMechanicalTests(null),t.setMechanicalSamples(null),t.setMechanicalGradeLimits(null),t.setMechanicalResultSources(null);return}t.setIsMechanicalDataLoading(!0);try{const{samples:i,tests:o,sources:a}=await ZNi({heatId:r});o.ok&&t.setMechanicalTests(o.data.tables[0].rows),a.ok&&t.setMechanicalResultSources(a.data.tables[0].rows),i.ok&&(t.setMechanicalSamples(i.data.tables[0].rows),i.data.tables[1]&&t.setMechanicalGradeLimits(i.data.tables[1].rows))}catch(i){console.error("Error loading mechanical test data:",i),t.setMechanicalTests(null),t.setMechanicalSamples(null),t.setMechanicalGradeLimits(null),t.setMechanicalResultSources(null)}finally{t.setIsMechanicalDataLoading(!1)}},mechanicalTests:e.mechanicalTests,mechanicalSamples:e.mechanicalSamples,mechanicalGradeLimits:e.mechanicalGradeLimits,mechanicalResultSources:e.mechanicalResultSources,isMechanicalDataLoading:e.isMechanicalDataLoading}},eFi=()=>{const{state:{heatLabData:e,heat:t,mechanicalTests:n,mechanicalSamples:r,mechanicalGradeLimits:i,mechanicalResultSources:o,isMechanicalDataLoading:a}}=sc(),s=b.useRef(null),{loadMechanicalTestData:l}=JNi();b.useEffect(()=>{t?.HeatId&&l(t.HeatId)},[t?.HeatId]);const c=()=>{s.current?.api.exportDataAsExcel({fileName:`LabReport_${e?.HeatName??"data"}.xlsx`,sheetName:"Lab Report of "+e?.HeatName})};return f.jsx(f.Fragment,{children:f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:1,children:f.jsx(WNi,{onExport:c})}),f.jsx(D,{item:!0,xs:12,container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx($Ni,{gridRef:s},e?.HeatId)})}),f.jsx(D,{item:!0,xs:12,container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(jNi,{loadingGrid:a,heat:t,mechanicalSamples:r,mechanicalTests:n,mechanicalGradeLimits:i,mechanicalResultSources:o},t?.HeatId)})})]})})},tFi=()=>{const e=ac(),{heatId:t,stage:n}=Ms(),r=fa(),[i,o]=b.useState(n||"eaf");b.useEffect(()=>{n&&o(n)},[n]);const a=(s,l)=>{o(l),t&&r(`/heat-report/${t}/${l}`)};return f.jsxs(f.Fragment,{children:[f.jsxs(Aat,{value:i,onChange:a,classes:{root:e.fileTabsRoot,indicator:e.fileTabsIndicator},children:[f.jsx($N,{label:"EAF",value:"eaf",classes:{root:e.fileTabRoot,selected:e.fileTabSelected}}),f.jsx($N,{label:"Caster",value:"caster",classes:{root:e.fileTabRoot,selected:e.fileTabSelected}}),f.jsx($N,{label:"Lab",value:"lab",classes:{root:e.fileTabRoot,selected:e.fileTabSelected}})]}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,children:[n==="eaf"&&f.jsx(NNi,{}),n==="caster"&&f.jsx(MNi,{}),n==="lab"&&f.jsx(eFi,{})]})]})},nFi=()=>{const{heatId:e,stage:t}=Ms(),n=fa(),{state:r}=ka(),{state:i,state:{heat:o},actions:{setHeat:a,setEAFProcessData:s,setCASProcessData:l,setHeatLabData:c,setElementData:u,setAdditions:d,setCharges:p,setDelays:h,setLogbook:g,setProbes:m,setHeatings:v,setProductionData:y,setScrapData:M,setStrandData:C,setIsDataLoading:x,setStrandSpeeds:w,setMoldLevels:S,setEAFValues:A,setBilletTemp:z,setEafChartOffsetMinutes:O}}=sc(),T=Number(Ot(r.settings,"HEAT_REPORT_EAF_CHART_OFFSET_MINUTES",40)),[I,P]=b.useState("");b.useEffect(()=>{O(T)},[T,O]);const N=async(L,W=!0)=>{x(!0);const H=await UNi({HeatId:L});if(H.ok){const j=Ot(H.data,"tables[0].rows[0]",{});a(j),W&&j.HeatId&&t&&n(`/heat-report/${j.HeatId}/${t}`,{replace:!0})}else P(H.message);x(!1)},F=async()=>{x(!0);const L=t==="eaf"?o.EAFProcessId:o.CASProcessId;if(t==="eaf"&&L){const W=await XNi({ProcessId:L});if(W.ok){const j=Ot(W.data,"tables[0].rows[0]",{}),G=Ot(W.data,"tables[1].rows",[]),q=Ot(W.data,"tables[2].rows",[]),$=Ot(W.data,"tables[3].rows",[]),U=Ot(W.data,"tables[4].rows",[]),X=Ot(W.data,"tables[5].rows",[]),Q=Ot(W.data,"tables[6].rows",[]);s(j),d(G),m(q),p($),v(U),h(X),g(Q)}else P(W.message);const H=await QNi({ProcessId:L,OffsetMinutes:T});if(H.ok){const j=H.data.tables[0].rows;A(j)}else P(H.message)}if(t==="caster"&&L){const W=await YNi({ProcessId:L});if(W.ok){const q=Ot(W.data,"tables[0].rows[0]",{}),$=Ot(W.data,"tables[1].rows",[]),U=Ot(W.data,"tables[2].rows",[]),X=Ot(W.data,"tables[3].rows",[]),Q=Ot(W.data,"tables[4].rows",[]),re=Ot(W.data,"tables[5].rows",[]);l(q),C($),M(Q),y(X),m(U),g(re)}else P(W.message);const H=await dzt(L),j=await pzt(L),G=await hzt(L);if(H.ok){const q=H.data.tables[0].rows;w(q)}else P(H.message);if(j.ok){const q=j.data.tables[0].rows;S(q)}else P(j.message);if(G.ok){const q=G.data.tables[0].rows;z(q)}else P(G.message)}if(t==="lab"&&o.HeatId){const W=await KNi({heatId:o.HeatId});W.ok?(c(W.data.tables[0].rows[0]),u(W.data.tables[1].rows)):P(W.message)}x(!1)};return b.useEffect(()=>{(async()=>{if(e==="latest"||!e)await N(null,!0);else{const L=Number.parseInt(e,10);Number.isNaN(L)||await N(L,!1)}})()},[e]),b.useEffect(()=>{!o.HeatId||o.HeatId===0||!t||(async()=>await F())()},[t,o.HeatId]),f.jsxs(f.Fragment,{children:[o&&f.jsx(Mn,{title:`${o.HeatName} - Heat Report`}),f.jsxs(kt,{style:{backgroundColor:" #F2F4F7",border:"1px solid  #ccc"},children:[f.jsxs(D,{item:!0,xs:12,container:!0,spacing:1,justifyContent:"center",alignContent:"center",children:[f.jsx(D,{item:!0,xs:12,style:{margin:"15px 0px 0 20px"},children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Heat Report"})}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:3,children:f.jsx(D,{item:!0,xs:12,children:o&&o.HeatId>0&&f.jsx(K5i,{heat:o,getDataFromAPI:N})})}),o.HeatId>0?f.jsx(D,{item:!0,xs:12,container:!0,justifyContent:"center",alignContent:"center",children:f.jsx(tFi,{})}):f.jsx(D,{item:!0,xs:12,container:!0,justifyContent:"center",style:{padding:"40px"},children:f.jsx(bt,{variant:"body1",color:"textSecondary",children:i.isDataLoading?"Loading heat data...":"No heat loaded. Please select a heat."})})]}),f.jsx(Mt,{error:I,onHide:()=>P("")})]})]})},rFi=()=>f.jsx(Z5i,{children:f.jsx(C3,{theme:T3t,children:f.jsx(nFi,{})})}),iFi=()=>{const{heatId:e}=Ms();return f.jsx(HO,{to:`/heat-report/${e}/eaf`,replace:!0})},oFi=[f.jsx(cr,{path:"/heat-process-report",element:f.jsx(HO,{to:"/heat-report/latest/eaf",replace:!0})},"heat-process-report-redirect"),f.jsx(cr,{path:"/heat-process-report/:asset",element:f.jsx(HO,{to:"/heat-report/latest/eaf",replace:!0})},"heat-process-report-asset"),f.jsx(cr,{path:"/heat-report",element:f.jsx(HO,{to:"/heat-report/latest/eaf",replace:!0})},"heat-report-base"),f.jsx(cr,{path:"/heat-report/:heatId",element:f.jsx(iFi,{})},"heat-report-id"),f.jsx(cr,{path:"/heat-report/:heatId/:stage",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(rFi,{})})},"heat-report-full")],aFi=({items:e,minSearchTextLength:t=2,defaultText:n="Select an option",noOptionsText:r="No options",autoHighlight:i=!0,width:o=300,color:a="black",containerPadding:s="0px",onTextSearch:l,onChangeValue:c})=>{const[u,d]=b.useState(""),[p,h]=b.useState(null),[g,m]=b.useState(!1);return b.useEffect(()=>{},[]),b.useEffect(()=>{u.length<=t||l&&(l(u),m(!0))},[u]),b.useEffect(()=>{c&&c(p),m(!1)},[p]),b.useEffect(()=>{!g&&e.length>0&&h(e[0]),e.length===0&&(h(null),d(""))},[e]),f.jsx("div",{style:{padding:s},children:f.jsx(Ji,{renderOption:v=>f.jsx(bt,{noWrap:!0,style:{color:a},children:v.name}),getOptionLabel:v=>`${v.name}`,renderInput:v=>f.jsx(je,{...v,variant:"outlined",size:"small",value:u,label:n,onChange:y=>d(y.target.value),InputProps:{...v.InputProps,style:{color:a}},InputLabelProps:{...v.InputLabelProps,style:{userSelect:"none"}}}),options:e,noOptionsText:r,value:p,onChange:(v,y)=>h(y),style:{width:o},autoHighlight:i})})},sFi=({heats:e,title:t="Heat",defaultText:n="Enter a Heat Number",onValueChanged:r,onTextChanged:i,onNextClicked:o,onPreviousClicked:a,textColor:s="black",heatStatus:l=null})=>{const c=async u=>{i&&i(u)};return f.jsx(D,{item:!0,container:!0,alignItems:"center",spacing:2,children:f.jsx(D,{item:!0,xs:12,md:6,style:{marginLeft:"15px"},children:f.jsxs("div",{className:"input-group",children:[f.jsxs("div",{className:"input-group-prepend",children:[f.jsx("span",{className:"input-group-text",children:t}),f.jsx("button",{className:"btn btn-secondary",type:"button",onClick:a,children:f.jsx("i",{className:"fas fa-chevron-left"})})]}),f.jsx(aFi,{items:e,defaultText:n,noOptionsText:"No heats to show",width:200,containerPadding:"0 0.5rem",onTextSearch:c,onChangeValue:r,color:s}),f.jsx("div",{className:"input-group-append",children:f.jsx("button",{className:"btn btn-secondary",type:"button",onClick:o,children:f.jsx("i",{className:"fas fa-chevron-right"})})}),l&&f.jsx("div",{style:{backgroundColor:l?.color||"grey",color:"#fff",borderRadius:"4px",padding:"10px",textAlign:"center",marginLeft:"10px",minWidth:"100px"},children:f.jsx(bt,{children:l?.name})})]})})})},cTe=async e=>{const t=new Ye,n=[];return n.push({name:"HeatId",value:e}),await t.callV2("[SWV].[GetHeat]",n)},lFi=async()=>await new Ye().callV2("[MS].[GetLastHeat]",[]),jY=async({searchText:e="",IncludeIsExternal:t=null})=>{const n=[];return n.push({name:"@SearchText",value:e.trim()}),n.push({name:"@ShowExternalHeats",value:t}),await new Ye().callV2("[MS].[SearchHeatNames]",n)},cFi=async e=>{const t=new Ye,n=[];return n.push({name:"GradeId",value:e}),await t.callV2("[LAB].[GetCatGradeChemistryLimits]",n)},uFi=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"HeatId",value:e}),r.push({name:"StatusCode",value:t}),await n.callV2("[LAB].[GetChemistrySamples]",r)},dFi=async e=>{const t=new Ye,n=[];return n.push({name:"Id",value:e.Id}),n.push({name:"SampleTypeId",value:e.SampleTypeId}),n.push({name:"SampleSequence",value:e.SampleSequence}),n.push({name:"DateTimeResults",value:e.DateTimeResults}),n.push({name:"StatusCode",value:e.StatusCode}),n.push({name:"ResultSourceId",value:e.ResultSourceId}),n.push({name:"Comments",value:e.Comments}),n.push({name:"HeatId",value:e.HeatId}),n.push({name:"Technician",value:e.Technician}),n.push({name:"Melter",value:e.Melter}),await t.callV2("[LAB].[UpsertChemistrySample]",n)},pFi=async e=>{const t=new Ye,n=[];return n.push({name:"ChemistrySampleId",value:e.ChemistrySampleId}),n.push({name:"ElementId",value:e.ElementId}),n.push({name:"Value",value:e.Value}),await t.callV2("[LAB].[UpsertChemistryResult]",n)},hFi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,searchHeatNameText:null,resultHeats:null,heatOptions:[],heat:null,grades:null,chemistrySamples:null,sampleTypes:null,showOnlyValid:!0},HY=Ni({name:"__",initialState:hFi,reducers:{setShowOnlyValid(e,{payload:t}){e.showOnlyValid=t},setSearchHeatNameText(e,{payload:t}){e.searchHeatNameText=t},setResultHeats(e,{payload:t}){e.resultHeats=t},setHeatOptions(e,{payload:t}){e.heatOptions=t},setHeat(e,{payload:t}){e.heat=t},setGrades(e,{payload:t}){e.grades=t},setChemistrySamples(e,{payload:t}){e.chemistrySamples=t},setSampleTypes(e,{payload:t}){e.sampleTypes=t},setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t}}}),YTt=b.createContext({state:HY.getInitialState(),actions:HY.actions}),fFi=()=>b.useContext(YTt),gFi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:HY.getInitialState(),reducers:HY.caseReducers,name:"ChemistryByHeat"}),r=async()=>{const s=await lFi();if(s.ok){const l=Ot(s,"data.tables[0].rows[0].Name","");l&&n.setSearchHeatNameText(l)}else console.log("something happened!")},i=Ms(),[o]=b.useState(i.heatName===void 0?"":i.heatName),[a]=b.useState(i.valid===void 0?!0:i.valid==="true");return b.useEffect(()=>{(async()=>(t.heat===null&&o===""?await r():(t.heat===null||t.heat?.Name!==o)&&n.setSearchHeatNameText(o),t.showOnlyValid!==a&&n.setShowOnlyValid(a)))()},[o,a]),f.jsx(YTt.Provider,{value:{state:t,actions:n},children:e})},mFi=e=>e.ChemistrySampleId===void 0||e.ChemistrySampleId===null||e.ElementId===void 0||e.ElementId===null?!1:!(e.Value===void 0||e.Value===null||isNaN(Number(e.Value))),vFi={Id:null,SampleTypeId:null,SampleSequence:null,SampleName:"",StatusCode:"V",ResultSourceId:null,isNew:!0,HeatId:null,Comments:"",DateTimeResults:new Date,DateTimeReceived:new Date,DateResults:null,Technician:"",Melter:"",DateError:!1,DateString:"",ElementsId:null,ElementsValue:null,sampleParams:[],elementParams:[],ResultsId:null},bFi=e=>!(e.SampleTypeId===void 0||e.SampleTypeId===null||e.ResultSourceId===void 0||e.ResultSourceId===null||e.HeatId===void 0||e.HeatId===null),yFi=({title:e,text:t,open:n,onClose:r,...i})=>{const[o,a]=E.useState(t),s=()=>{r("Cancel")},l=()=>{r("OK",o)};return b.useEffect(()=>{n||a(t)},[t,n]),f.jsxs(Qu,{maxWidth:"sm",fullWidth:!0,open:n,...i,children:[f.jsx(T0,{children:e}),f.jsx(ru,{dividers:!0,children:f.jsx(je,{autoFocus:!0,margin:"dense",type:"text",fullWidth:!0,variant:"filled",multiline:!0,maxRows:4,value:o,onChange:c=>a(c.target.value)})}),f.jsxs(Td,{children:[f.jsx(Fe,{autoFocus:!0,onClick:s,children:"Cancel"}),f.jsx(Fe,{onClick:l,children:"Ok"})]})]})},hR=e=>{const t=b.useMemo(()=>e.api.getDisplayedRowAtIndex(e.rowIndex).data,[]);return t.Comments.length===0?f.jsx(f.Fragment,{}):f.jsx("div",{className:"custom-tooltip",style:{backgroundColor:e.color||"white"},children:f.jsxs("p",{children:[f.jsx("span",{children:"Comments: "})," ",t.Comments]})})},MFi=({loadingGrid:e,heat:t,chemistrySamples:n,gradeLimits:r,sampleTypes:i,updateEditing:o})=>{const a=mAi(),s=b.useRef(null),{columnSimpleDefaults:l,columnTypes:c}=ku({OnEdit:me=>{}}),[u,d]=b.useState([]),[p,h]=b.useState(null),g=[{headerName:"Sample",type:["centerAligned"],children:[{field:"StatusCode",headerName:"St",minWidth:40,maxWidth:40,tooltipComponent:hR,tooltipField:"StatusCode",tooltipComponentParams:{color:"#ececec"}},{field:"SampleTypeId",headerName:"Type",minWidth:60,maxWidth:60,editable:!0,cellEditor:"agSelectCellEditor",cellEditorParams:{values:u},filterParams:{valueFormatter:me=>G(i,me.value)},valueFormatter:me=>G(i,me.value),tooltipComponent:hR,tooltipField:"SampleTypeId",tooltipComponentParams:{color:"#ececec"}},{field:"SampleSequence",headerName:"Sq",minWidth:50,maxWidth:50,type:["numericColumn"],editable:!0,tooltipComponent:hR,tooltipField:"SampleSequence",tooltipComponentParams:{color:"#ececec"}},{field:"Melter",headerName:"Melter",minWidth:70,maxWidth:70,editable:!0,tooltipComponent:hR,tooltipField:"Melter",tooltipComponentParams:{color:"#ececec"}}]}],m=[{headerName:"Results",children:[{field:"DateString",headerName:"Date",minWidth:120,tooltipComponent:hR,tooltipField:"DateString",tooltipComponentParams:{color:"#ececec"}},{field:"DateTimeResults",headerName:"Result",minWidth:80,editable:!0},{field:"Technician",headerName:"Technician",minWidth:100,editable:!0,tooltipComponent:hR,tooltipField:"Technician",tooltipComponentParams:{color:"#ececec"}}]}],[v,y]=b.useState(g.concat(m)),[M,C]=b.useState([]),[x,w]=b.useState(!1),[S,A]=b.useState(null),[z,O]=b.useState(!1),[T,I]=b.useState(null),[P,N]=b.useState(""),[F,L]=b.useState(!1),[W,H]=b.useState(null),j=(me=>{const Me=[],Oe=me.node?.data??null;return Oe==null?Me:Oe.isNew===!0?(Me.push({name:"Cancel",action:()=>{ee()}}),Me):(Oe.StatusCode==="V"&&(Me.push({name:"Invalidate Sample",action:()=>{X(me.node?.data)}}),Me.push({name:"Change Heat",action:()=>{window.alert("Alerting about "+me.value)}})),Oe.Comments===null||Oe.Comments===void 0||Oe.Comments===""?Me.push({name:"Add Comment",action:()=>{se(me.node?.data)}}):Me.push({name:"Change Comment",action:()=>{se(me.node?.data)}}),Me.push("separator"),M.find(ie=>ie.isNew===!0)===void 0&&Me.push({name:"Add Sample",action:()=>{re()}}),Me.push({name:"Delete Sample",action:()=>{Q(me.node?.data)}}),Me)}),G=(me,Me)=>{const Oe=isNaN(parseInt(Me))?0:parseInt(Me),de=me.find(ie=>ie.SampleTypeId===Oe);return de===void 0?"":de.SampleTypeName},q=(me,Me)=>me.value===null||isNaN(me.value)?"":parseFloat(me.value).toFixed(Me),$=(me,Me,Oe)=>me.value===null||isNaN(me.value)||parseFloat(me.value)<Me||parseFloat(me.value)>Oe?"error-limit":"error-limit2",U=async(me,Me,Oe)=>{if(me==null)return;const de=me.elementParams.find(ue=>ue===Me),ie=me.sampleParams.find(ue=>ue===Me);if(de!==void 0){const ue={Id:null,ElementId:Number(de),ChemistrySampleId:me.Id,Value:Oe===null?null:Number(Oe)};if(!mFi(ue))return;try{const Ae=await pFi(ue);if(!Ae.ok)throw new Error(Ae.message);o(!1)}catch{o(!1)}}else if(ie!==void 0){if(!bFi(me))return;try{const ue=await dFi(me);if(!ue.ok)throw new Error(ue.message);if(o(!1),me.StatusCode==="I"&&A(null),me.StatusCode==="D"){I(null);const Ae=M.filter(Ce=>Ce.StatusCode!=="D");C(Ae)}ie==="Comments"&&H(null)}catch{o(!1)}}},X=async me=>{me!=null&&me.StatusCode!=="I"&&(A(me.Id),w(!0))},Q=async me=>{me!=null&&me.StatusCode!=="D"&&(I(me.Id),O(!0))},re=async()=>{if(p===null)return;const me=vFi;o(!0),C([...M,me])},ee=async()=>{const me=M.filter(Me=>Me.isNew!==!0);C(me),o(!1)},se=async me=>{me!=null&&(H(me.Id),N(me.Comments),L(!0))},pe=async me=>{if(w(!1),me!=="OK"||S===null)return;const Me=M.find(Oe=>Oe.Id===S);Me!==void 0&&(Me.StatusCode="I",o(!0),await U(Me,"StatusCode","I"))},te=async me=>{if(O(!1),me!=="OK"||T===null)return;const Me=M.find(Oe=>Oe.Id===T);Me!==void 0&&(Me.StatusCode="D",o(!0),await U(Me,"StatusCode","D"))},ce=async(me,Me)=>{if(N(""),L(!1),me!=="OK"||W===null)return;const Oe=M.find(de=>de.Id===W);Oe!==void 0&&Oe.Comments!==(Me??"")&&(Oe.Comments=Me??"",o(!0),await U(Oe,"Comments",Me??""))},oe=me=>o(!0),ae=me=>o(!1),ne=me=>{U(me.data,me.column.getColId(),me.value)},le=b.useMemo(()=>({width:"100%",padding:"0px 15px 0px 0px",height:"auto"}),[n]),he=b.useMemo(()=>r.filter(me=>me.Enabled===!0).map(me=>f.jsx(D,{item:!0,className:a.footerItem,children:f.jsx(bt,{className:a.footerTextItem,children:me.MinValue===null?"":me.MinValue.toFixed(me.Decimals)})},"Min"+me.ElementId)),[r]),be=b.useMemo(()=>r.filter(me=>me.Enabled===!0).map(me=>f.jsx(D,{item:!0,className:a.footerItem,children:f.jsx(bt,{className:a.footerTextItem,children:me.MaxValue===null?"":me.MaxValue.toFixed(me.Decimals)})},"Min"+me.ElementId)),[r]);return b.useMemo(()=>{const me=[];r.filter(Oe=>Oe.Enabled==!0).forEach(Oe=>{const de={field:Oe.ElementId.toString(),headerName:Oe.ElementName,minWidth:70,maxWidth:70,type:["numericColumn"],valueFormatter:ie=>q(ie,Oe.Decimals),cellClass:ie=>$(ie,Oe.MinValue??0,Oe.MaxValue??0),editable:!0};me.push(de)});const Me=[{headerName:"Elements",children:me}];y(g.concat(Me,m))},[r]),b.useMemo(()=>{const me=[];n.forEach(Me=>{const Oe={...Me},de=(Me.ElementsId??"").split(","),ie=(Me.ElementsValue??"").split(","),ue=(Me.ResultsId??"").split(",");Oe.elementParams=[],Oe.sampleParams=["SampleTypeId","SampleSequence","DateTimeResults","StatusCode","ResultSourceId","Comments","Technician","Melter"];let Ae;for(Ae=0;Ae<ue.length;Ae++)Oe.elementParams.push(String(de[Ae]).trim()),isNaN(parseFloat(ie[Ae]))?Oe[String(de[Ae]).trim()]=null:Oe[String(de[Ae]).trim()]=parseFloat(ie[Ae]);me.push(Oe)}),C(me)},[n]),b.useMemo(()=>{const me=[];i.filter(Me=>Me.IsActive).forEach(Me=>{me.push(Me.SampleTypeId??0)}),d(me)},[i]),b.useMemo(()=>{h(t)},[t]),b.useMemo(()=>{e&&s.current!==null?s.current.api.showLoadingOverlay():s.current!==null&&s.current.api.hideOverlay()},[e]),f.jsxs(D,{container:!0,justifyContent:"flex-start",alignItems:"stretch",className:a.root,children:[f.jsxs(D,{item:!0,style:le,xs:12,md:12,children:[f.jsx(rl,{title:"Confirmation",message:"The item will be invalidated.  Do you want to continue?",open:x,onClose:pe}),f.jsx(rl,{title:"Confirmation",message:"The item will be deleted.  Do you want to continue?",open:z,onClose:te}),f.jsx(yFi,{title:"Comment",text:P,open:F,onClose:ce}),f.jsx(Kn,{ref:s,className:"ag-theme-alpine",rowSelection:"single",pagination:!1,animateRows:!0,rowHeight:45,headerHeight:45,domLayout:"autoHeight",singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:M,columnDefs:v,columnTypes:c,getContextMenuItems:j,defaultColDef:l,onCellEditingStarted:oe,onCellEditingStopped:ae,onCellValueChanged:ne})]}),f.jsx(D,{item:!0,xs:12,md:12,className:a.footerContainer,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"stretch",style:{height:"100%"},children:[f.jsx(D,{item:!0,className:a.footerTitle,children:f.jsx(bt,{className:a.footerTextTitle,children:"Grade Min"})}),he]})}),f.jsx(D,{item:!0,xs:12,md:12,className:a.footerContainer,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"stretch",style:{height:"100%"},children:[f.jsx(D,{item:!0,className:a.footerTitle,children:f.jsx(bt,{className:a.footerTextTitle,children:"Grade Max"})}),be]})})]})},CFi=e=>{const{state:t,actions:n}=fFi(),[r,i]=b.useState(!1),[o,a]=b.useState(0),[s,l]=b.useState(null),[c,u]=b.useState(null),d=Pw(),p=(O,T)=>{const I=d.pathname.split("/"),P=(I[0]!==void 0&&I[0]!=="/"?`${I[0]}`:"")+(I[1]!==void 0&&I[1]!=="/"?`${I[1]}`:"")+(I[2]!==void 0&&I[2]!=="/"?`${I[2]}`:"")+`/${O}/${T}`;window.history.replaceState(null,"",P)},h=O=>{i(O)},g=()=>{n.setChemistrySamples([]),n.setGrades([])},m=()=>{c!==null&&c.NextHeatName!==null&&(g(),n.setSearchHeatNameText(c.NextHeatName))},v=()=>{c!==null&&c.PreviousHeatName!==null&&(g(),n.setSearchHeatNameText(c.PreviousHeatName))},y=O=>{n.setShowOnlyValid(O.target.checked)},M=async()=>{if(p(t.heat===null?"":t.heat?.Name??"",t.showOnlyValid),t.heat===null||t.heat.HeatId===null){g();return}await S()},C=async O=>{const T=await jY({searchText:O});T.ok?(T.data,n.setResultHeats(T.data.tables[0].rows)):console.log("something happened 1!")},x=async O=>{if(O===0){n.setHeat(null);return}n.setIsLoadingBackground(!0);const T=await cTe(O);T.ok&&T.data!==null&&T.data!==void 0&&T.data.tables!=null&&T.data.tables[0].rows.length>0?n.setHeat(T.data.tables[0].rows[0]):console.log("something happened 3!"),n.setIsLoadingBackground(!1)},w=async()=>{n.setIsLoadingPage(!0);const O=await Qzt();O.ok?n.setSampleTypes(O.data.tables[0].rows):console.log("something happened 2!"),n.setIsLoadingPage(!1)},S=async()=>{n.setIsLoadingGrid(!0);const O=await cFi(t.heat?.GradeId??0);O.ok?n.setGrades(O.data.tables[0].rows):console.log("something happened 4!"),n.setIsLoadingGrid(!1)},A=async()=>{n.setIsLoadingGrid(!0);const O=await uFi(t.heat?.HeatId??0,t.showOnlyValid?"V":null);O.ok?n.setChemistrySamples(O.data.tables[0].rows):console.log("something happened 5!"),n.setIsLoadingGrid(!1)},z=b.useMemo(()=>t.heat==null?"":Wn(t.heat?.CreationDate,"yyyy-MM-dd HH:mm"),[t.heat]);return b.useEffect(()=>{w();const O=setInterval(()=>{a(T=>T+1)},2e4);return()=>{clearInterval(O)}},[]),b.useEffect(()=>{(async()=>t.searchHeatNameText!==""&&t.searchHeatNameText!==null?await C(t.searchHeatNameText):n.setResultHeats([]))()},[t.searchHeatNameText]),b.useEffect(()=>{const O=[];(t.resultHeats??[]).forEach(T=>{const I={id:T.HeatId.toString(),name:T.HeatName};O.push(I)}),n.setHeatOptions(O)},[t.resultHeats]),b.useEffect(()=>{let O=null;if(s!==null){const T=s.id,I=(t.resultHeats??[]).find(P=>P.HeatId===Number(T));O=I===void 0?null:I}u(O)},[s]),b.useEffect(()=>{(async()=>(c===null&&n.setHeat(null),await x(c?.HeatId??0)))()},[c]),b.useEffect(()=>{(async()=>await M())()},[t.heat]),b.useEffect(()=>{(async()=>await M())()},[t.showOnlyValid]),b.useEffect(()=>{(async()=>await M())()},[t.heat]),b.useEffect(()=>{(async()=>await A())()},[t.grades]),b.useEffect(()=>{(async()=>o>0&&!r&&await M())()},[o]),t.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Op,{open:t.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0,padding:"15px"},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Chemistries"})}),f.jsxs(D,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:3,xs:12,children:f.jsx(sFi,{onTextChanged:n.setSearchHeatNameText,onValueChanged:l,heats:t.heatOptions,onNextClicked:m,onPreviousClicked:v,defaultText:""})}),f.jsx(D,{item:!0,xs:"auto",children:f.jsx(Io,{control:f.jsx(Qr,{color:"primary",checked:t.showOnlyValid,onChange:y}),label:"Show valid samples"})})]}),f.jsxs(D,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",style:{marginTop:"15px",marginBottom:"15px"},children:[f.jsx(D,{item:!0,md:2,xs:12,children:f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",children:"Heat Start"})}),f.jsx("input",{type:"text",className:"form-control",readOnly:!0,value:z})]})}),f.jsx(D,{item:!0,md:2,xs:12,children:f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",children:"Grade"})}),f.jsx("input",{type:"text",className:"form-control",readOnly:!0,value:t.heat?.GradeName??""})]})}),f.jsx(D,{item:!0,md:2,xs:12,children:f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",children:"Melted Grade"})}),f.jsx("input",{type:"text",className:"form-control",readOnly:!0,value:t.heat?.MeltedGradeName??""})]})}),f.jsx(D,{item:!0,md:2,xs:12,children:f.jsxs("div",{className:"input-group",children:[f.jsx("div",{className:"input-group-prepend",children:f.jsx("span",{className:"input-group-text",children:"Status"})}),f.jsx("input",{type:"text",className:"form-control",readOnly:!0,value:t.heat?.StatusCode??""})]})})]}),f.jsx(ua,{}),f.jsx(MFi,{loadingGrid:t.isLoadingGrid,heat:t.heat,chemistrySamples:t.chemistrySamples??[],gradeLimits:t.grades??[],sampleTypes:t.sampleTypes??[],updateEditing:h})]})})]})},zZe=e=>f.jsx(gFi,{children:f.jsx(CFi,{})}),xFi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,chemistries:null,showAck:!1},VY=Ni({name:"__",initialState:xFi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setChemistries(e,{payload:t}){e.chemistries=t},setShowAck(e,{payload:t}){e.showAck=t}}}),KTt=b.createContext({state:VY.getInitialState(),actions:VY.actions}),wFi=()=>b.useContext(KTt),SFi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:VY.getInitialState(),reducers:VY.caseReducers});return f.jsx(KTt.Provider,{value:{state:t,actions:n},children:e})},AFi=async(e,t=!1)=>{const n=new Ye,r=[];return r.push({name:"ShiftId",value:e}),r.push({name:"ShowAck",value:t}),await n.callV2("[SWV].[GetChemistriesForL3]",r)},OFi=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"ChemistrySampleId",value:e}),r.push({name:"Forced",value:t}),await n.callV2("[SWV].[SendChemistryToL3]",r)},zFi=async(e,t=!1)=>{const n=new Ye,r=[];return r.push({name:"ShiftId",value:e}),r.push({name:"ShowAck",value:t}),await n.callV2("[SWV].[GetMechanicalsForL3]",r)},TFi=async(e,t)=>{const n=new Ye,r=[];return r.push({name:"MechanicalSampleId",value:e}),r.push({name:"Forced",value:t}),await n.callV2("[SWV].[SendMechanicalToL3]",r)},QTt=({showAck:e,setShowAck:t})=>f.jsx(f.Fragment,{children:f.jsx(xD,{children:f.jsx(Io,{control:f.jsx(Qr,{checked:e,color:"primary",onChange:n=>t(n.target.checked)}),label:"Show Acknowledged"})})}),Dpe=e=>{if(e.type==="force")return f.jsx(Fe,{variant:"contained",color:"primary",size:"small",style:{minWidth:"60px",cursor:"default"},children:"SEND"});const t=()=>{const n={display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"24px",borderRadius:"4px",fontWeight:"bold"};return e.value?{...n,backgroundColor:"#4caf50",color:"white"}:e.type==="check"?{...n,backgroundColor:"#f44336",color:"white"}:{...n,backgroundColor:"#9e9e9e",color:"white"}};return f.jsx("div",{style:t(),onClick:()=>{const n=!e.value,r=e.column.colId;e.node.setDataValue(r,n)},title:e.value?"Yes":"No",children:e.value?"Y":"N"})},EFi=({onSend:e})=>({columns:[{field:"Heat",headerName:"Heat",flex:1,minWidth:65},{field:"SampleType",headerName:"Sample",flex:1,minWidth:69},{field:"Grade",headerName:"Grade",flex:1,minWidth:80,wrapText:!0},{field:"LabDateTime",headerName:"Date",flex:1,minWidth:136},{field:"Technician",headerName:"Technician",flex:1,minWidth:89},{field:"ChecksPassed",headerName:"Check",flex:1,minWidth:62,maxWidth:62,cellRenderer:Dpe,cellRendererParams:{type:"check"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"ChecksResults",headerName:"Results",flex:4,minWidth:250,wrapText:!0},{field:"Sent",headerName:"Sent",flex:1,minWidth:62,maxWidth:62,cellRenderer:Dpe,cellRendererParams:{type:"sent"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Ack",headerName:"Ack by L3",flex:1,minWidth:90,wrapHeaderText:!0,valueGetter:n=>n.data.Ack===1,cellRenderer:Dpe,cellRendererParams:{type:"ack"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Name",headerName:"Force",type:["nonSorteable","nonFilterable"],flex:1,minWidth:90,cellRenderer:n=>f.jsx(Fe,{variant:"contained",color:"primary",size:"small",style:{minWidth:"60px"},onClick:()=>e(n.data),disabled:n.data?.Sent,children:"SEND"}),cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"SentBy",headerName:"Sent by",flex:1,minWidth:90}]}),RFi=({rows:e,loadingGrid:t,OnSend:n})=>{const[r,i]=b.useState(),o=l=>{n&&n(l)},{columns:a}=EFi({onSend:o}),s=l=>{i(l.api)};return b.useEffect(()=>{t&&r?r.showLoadingOverlay():r?.hideOverlay()},[t,r]),f.jsx("div",{children:f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},xs:12,md:12,children:f.jsx(Kn,{onGridReady:s,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:e,columnDefs:a,loadingOverlayComponent:j3e})})})})},IFi=e=>{const t=fa(),{shiftId:n}=Ms(),[r]=Rd(),{state:i,actions:o}=wFi(),{shiftInfo:a,getShiftDataFromAPI:s}=la(),[l,c]=b.useState(""),[u,d]=b.useState(""),[p,h]=b.useState(!1),[g,m]=b.useState(null),v=async()=>{o.setIsLoadingGrid(!0);const C=Ot(a,"CurrentShiftId",null),x=await AFi(C,i.showAck);x.ok?o.setChemistries(x.data.tables[0].rows):d(x.message),o.setIsLoadingGrid(!1)},y=C=>{C.Sent||(c("Send Chemistry Sample"),m(C),h(!0))},M=async C=>{if(h(!1),C!=="OK"){c("");return}if(c(""),g===null)return;const x=g.ChecksPassed!==!0;if(g.ChemistrySampleId!==null&&g.ChemistrySampleId>0){o.setIsLoadingBackground(!0);const w=await OFi(g.ChemistrySampleId,x);w.ok?await v():d(w.message),o.setIsLoadingBackground(!1)}};return b.useEffect(()=>{if(a){const C=Ot(a,"CurrentShiftId",null);t(`/lab-l3/chemistry/${C}?ack=${i.showAck}`),(async()=>await v())()}},[a,i.showAck]),b.useEffect(()=>{n?(async()=>{const C=Number(n);await s(null,C)})():(async()=>await s(null,0))(),r.get("ack")==="true"&&o.setShowAck(!0)},[]),i.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:l||"L3 Chemistry"}),f.jsxs(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:i.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"L3 Chemistry"})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(s2,{useRouter:!0}),f.jsx(kt,{style:{minWidth:"300px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsx(D,{item:!0,container:!0,xs:12,spacing:2,alignItems:"center",style:{marginLeft:"10px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsx(QTt,{showAck:i.showAck,setShowAck:o.setShowAck})})})})]})}),f.jsx(rl,{title:"Confirmation",message:"The sample will be sent.  Do you want to continue?",open:p,onClose:M}),f.jsx(RFi,{loadingGrid:i.isLoadingGrid,rows:i.chemistries||[],OnSend:y})]})})]}),f.jsx(Mt,{error:u,onHide:()=>d("")})]})},TZe=e=>f.jsx(SFi,{children:f.jsx(IFi,{})}),PFi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,mechanicales:null,showAck:!1},GY=Ni({name:"__",initialState:PFi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setMechanicales(e,{payload:t}){e.mechanicales=t},setShowAck(e,{payload:t}){e.showAck=t}}}),ZTt=b.createContext({state:GY.getInitialState(),actions:GY.actions}),DFi=()=>b.useContext(ZTt),kFi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:GY.getInitialState(),reducers:GY.caseReducers});return f.jsx(ZTt.Provider,{value:{state:t,actions:n},children:e})},kpe=e=>{if(e.type==="force")return f.jsx(Fe,{variant:"contained",color:"primary",size:"small",style:{minWidth:"60px",cursor:"default"},children:"SEND"});const t=()=>{const n={display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"24px",borderRadius:"4px",fontWeight:"bold",cursor:"default"};return e.value?{...n,backgroundColor:"#4caf50",color:"white"}:e.type==="check"?{...n,backgroundColor:"#f44336",color:"white"}:{...n,backgroundColor:"#9e9e9e",color:"white"}};return f.jsx("div",{style:t(),onClick:()=>{const n=!e.value,r=e.column.colId;e.node.setDataValue(r,n)},title:e.value?"Yes":"No",children:e.value?"Y":"N"})},LFi=({onSend:e})=>({columns:[{field:"Heat",headerName:"Heat",flex:1,minWidth:65},{field:"Sample",headerName:"Sample",flex:1,minWidth:69},{field:"Grade",headerName:"Grade",flex:1,minWidth:80,wrapText:!0},{field:"LabDateTime",headerName:"Date",flex:1,minWidth:136},{field:"Technician",headerName:"Technician",flex:1,minWidth:89},{field:"ChecksPassed",headerName:"Check",flex:1,minWidth:62,maxWidth:62,cellRenderer:kpe,cellRendererParams:{type:"check"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"ChecksResults",headerName:"Results",flex:4,minWidth:250,wrapText:!0},{field:"Sent",headerName:"Sent",flex:1,minWidth:62,maxWidth:62,cellRenderer:kpe,cellRendererParams:{type:"sent"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Ack",headerName:"Ack by L3",flex:1,minWidth:90,wrapHeaderText:!0,valueGetter:n=>n.data.Ack===1,cellRenderer:kpe,cellRendererParams:{type:"ack"},cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"Name",headerName:"Force",type:["nonSorteable","nonFilterable"],flex:1,minWidth:90,cellRenderer:n=>f.jsx(Fe,{variant:"contained",color:"primary",size:"small",style:{minWidth:"60px"},onClick:()=>e(n.data),disabled:n.data?.Sent,children:"SEND"}),cellStyle:{display:"flex",justifyContent:"center",alignItems:"center"}},{field:"SentBy",headerName:"Sent by",flex:1,minWidth:80}]}),_Fi=({rows:e,loadingGrid:t,OnSend:n})=>{const[r,i]=b.useState();Pd();const o=l=>{n&&n(l)},{columns:a}=LFi({onSend:o}),s=l=>{i(l.api)};return b.useEffect(()=>{t&&r?r.showLoadingOverlay():r?.hideOverlay()},[t,r]),f.jsx("div",{children:f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,style:{borderRadius:10,height:"calc(100vh - 300px)",minHeight:"calc(100vh - 300px)",border:"1px solid #E0E0E0"},xs:12,md:12,children:f.jsx(Kn,{onGridReady:s,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:e,columnDefs:a,loadingOverlayComponent:j3e})})})})},NFi=e=>{const t=fa(),{shiftId:n}=Ms(),[r]=Rd(),{shiftInfo:i,getShiftDataFromAPI:o}=la(),{state:a,actions:s}=DFi(),[l,c]=b.useState(""),[u,d]=b.useState(""),[p,h]=b.useState(!1),[g,m]=b.useState(null),v=async()=>{s.setIsLoadingGrid(!0);const C=Ot(i,"CurrentShiftId",null),x=await zFi(C,a.showAck);x.ok?s.setMechanicales(x.data.tables[0].rows):c(x.message),s.setIsLoadingGrid(!1)},y=C=>{C.Sent||(d("Send Mechanical Sample"),m(C),h(!0))},M=async C=>{if(h(!1),C!=="OK"){d("");return}if(d(""),g===null)return;const x=g.ChecksPassed!==!0;if(g.MechanicalSampleId!==null&&g.MechanicalSampleId>0){s.setIsLoadingBackground(!0);const w=await TFi(g.MechanicalSampleId,x);w.ok?await v():c(w.message),s.setIsLoadingBackground(!1)}};return b.useEffect(()=>{if(i){const C=Ot(i,"CurrentShiftId",null);t(`/lab-l3/mechanical/${C}?ack=${a.showAck}`),(async()=>await v())()}},[i,a.showAck]),b.useEffect(()=>{n?(async()=>{const C=Number(n);await o(null,C)})():(async()=>await o(null,0))(),r.get("ack")==="true"&&s.setShowAck(!0)},[]),a.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:u||"L3 Mechanical"}),f.jsxs(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:[f.jsx(Op,{open:a.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"L3 Mechanical"})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(s2,{preventInit:!0}),f.jsx(kt,{style:{minWidth:"300px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsx(D,{item:!0,container:!0,xs:12,spacing:2,alignItems:"center",style:{marginLeft:"10px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsx(QTt,{showAck:a.showAck,setShowAck:s.setShowAck})})})})]})}),f.jsx(rl,{title:"Confirmation",message:"The sample will be sent.  Do you want to continue?",open:p,onClose:M}),f.jsx(_Fi,{loadingGrid:a.isLoadingGrid,rows:a.mechanicales||[],OnSend:y})]})})]}),f.jsx(Mt,{error:l,onHide:()=>c("")})]})},EZe=e=>f.jsx(kFi,{children:f.jsx(NFi,{})}),FFi=Rt(e=>({paper:{padding:e.spacing(2),display:"flex",alignItems:"center",maxWidth:"fit-content",minWidth:320},container:{display:"flex",alignItems:"center","& > *:not(:last-child)":{marginRight:e.spacing(1)}},title:{height:40,display:"flex",alignItems:"center",padding:e.spacing(0,2),borderRadius:6,fontWeight:500,minWidth:60,textAlign:"center",textTransform:"uppercase"},iconButton:{height:"100%",width:40,backgroundColor:"#4051b5",color:"#fff",borderRadius:6,boxShadow:"0 2px 4px rgba(0,0,0,0.1)",transition:"background-color 0.2s ease",cursor:"pointer","&:hover":{backgroundColor:e.palette.primary.dark,cursor:"pointer"}},statusContainer:{color:"#fff",borderRadius:4,padding:e.spacing(1,2),textAlign:"center",marginLeft:e.spacing(1),minWidth:100}})),WFi=({value:e,onChange:t,isExternal:n,heatStatus:r=null})=>{const i=FFi(),o=b.useRef(!0),[a,s]=b.useState([]),[l,c]=b.useState(""),[u,d]=b.useState(!1),[p,h]=b.useState(""),[g,m]=b.useState(!1),[v,y]=b.useState(null),M=b.useRef(p);M.current=p;const C=b.useCallback(nB(async S=>{d(!0);try{if(S.length>=2){const A=await jY({searchText:S,IncludeIsExternal:n===void 0?null:n});if(A.ok){const z=A.data.tables[0].rows;M.current===S&&(s(z),g||y(z.find(O=>O.HeatName===e)||null))}else c(A.message)}if(S.length===0){const A=await jY({searchText:"",IncludeIsExternal:n===void 0?null:n});A.ok?M.current===S&&s(A.data.tables[0].rows):c(A.message)}}catch{c("An error occurred while searching"),s([])}finally{d(!1)}},300),[e,n,g]);b.useEffect(()=>(C(p),()=>{C.cancel()}),[p,C]);const x=b.useMemo(()=>v&&!a.some(S=>S.HeatId===v.HeatId)?[v,...a]:a,[a,v]);b.useEffect(()=>{if(!g&&!u){if((!e||e==="")&&o.current&&a.length>0){const S=a[0];y(S),h(S.HeatName),t(S),o.current=!1}if(e&&p!==e){const S=a.find(A=>A.HeatName===e)||null;y(S),h(e)}}},[g,u,e,a,p,t]);const w=(S,A)=>{A?(!v||A.HeatId!==v.HeatId)&&(y(A),t(A)):y(null)};return f.jsx(kt,{className:i.paper,children:f.jsxs(D,{container:!0,item:!0,xs:12,md:12,className:i.container,children:[f.jsx(yn,{onClick:()=>{if(v?.PreviousHeatId){const S={...v,HeatId:v.PreviousHeatId,HeatName:v.PreviousHeatName};t(S)}},disabled:!v?.PreviousHeatName,className:i.iconButton,children:f.jsx(L6,{style:{cursor:"pointer"}})}),f.jsx(Ji,{autoHighlight:!0,blurOnSelect:!0,clearOnEscape:!0,selectOnFocus:!0,options:x,getOptionLabel:S=>S.HeatName,value:v,inputValue:p,onInputChange:(S,A)=>{h(A)},onChange:w,onFocus:()=>{m(!0)},onBlur:()=>{m(!1)},loading:u,renderInput:S=>f.jsx(je,{...S,variant:"outlined",label:"Heat",size:"small",error:!!l,helperText:l,InputProps:{...S.InputProps,endAdornment:f.jsx(f.Fragment,{children:u?f.jsx(Kt,{color:"inherit",size:20}):S.InputProps.endAdornment})}}),renderOption:S=>f.jsx(bt,{style:{color:S.IsExternal?"blue":"black"},noWrap:!0,children:S.HeatName}),style:{width:200}}),f.jsx(yn,{onClick:()=>{if(v?.NextHeatId){const S={...v,HeatId:v.NextHeatId,HeatName:v.NextHeatName};t(S)}},disabled:!v?.NextHeatName,className:i.iconButton,children:f.jsx(aQ,{style:{cursor:"pointer"}})}),r&&f.jsx("div",{className:i.statusContainer,style:{backgroundColor:r.color??"grey"},children:f.jsx(bt,{variant:"body2",children:r.name})})]})})},qFi={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,searchHeatNameText:null,resultHeats:null,heatOptions:[],selectedOption:null,showExternalsHeats:!1,heat:null,showOnlyValid:!0,mechanicalTests:null,mechanicalSamples:null,grades:null,sources:null},$Y=Ni({name:"__",initialState:qFi,reducers:{setShowOnlyValid(e,{payload:t}){e.showOnlyValid=t},setSearchHeatNameText(e,{payload:t}){e.searchHeatNameText=t},setResultHeats(e,{payload:t}){e.resultHeats=t},setHeatOptions(e,{payload:t}){e.heatOptions=t},setHeat(e,{payload:t}){e.heat=t},setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setMechanicalTests(e,{payload:t}){e.mechanicalTests=t},setMechanicalSamples(e,{payload:t}){e.mechanicalSamples=t},setGrades(e,{payload:t}){e.grades=t},setSources(e,{payload:t}){e.sources=t},setSelectedOption(e,{payload:t}){e.selectedOption=t},setShowExternalsHeats(e,{payload:t}){e.showExternalsHeats=t}}}),JTt=b.createContext({state:$Y.getInitialState(),actions:$Y.actions}),uTe=()=>b.useContext(JTt),BFi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:$Y.getInitialState(),reducers:$Y.caseReducers});return f.jsx(JTt.Provider,{value:{state:t,actions:n},children:e})},jFi=({resultSources:e,mechanicalTests:t})=>{const n=(u,d)=>u.value===null||isNaN(u.value)?"":parseFloat(u.value).toFixed(d),r=(u,d)=>{const p=isNaN(parseInt(d))?0:parseInt(d);return u.find(g=>g.ResultSourceId===p)?.ResultSourceName||""},i=u=>{if(u.value===null||isNaN(u.value))return"error-limit";const d=u.data;if(!d?.Limits)return"error-limit";const p=d.Limits.find(m=>m.MechanicalTestId===parseInt(u.colDef.field??"0"));if(!p)return"error-limit2";const{MinValue:h,MaxValue:g}=p;return h!==null&&parseFloat(u.value)<h||g!==null&&parseFloat(u.value)>g?"error-limit":"error-limit2"},o=b.useMemo(()=>[{headerName:"Sample",type:["centerAligned"],children:[{field:"HeatName",headerName:"Heat",minWidth:78,flex:1},{field:"SampleSequence",headerName:"Seq",minWidth:50,flex:1},{field:"GradeName",headerName:"Grade",minWidth:86,flex:1},{field:"SectionName",headerName:"Section",minWidth:96,flex:1},{field:"Width",headerName:"Width",minWidth:85,type:["numericColumn"],valueFormatter:u=>n(u,4),headerClass:"stripe-header",flex:1},{field:"Thickness",headerName:"Thickness",minWidth:113,type:["numericColumn"],valueFormatter:u=>n(u,4),headerClass:"stripe-header",flex:1},{field:"ResultSourceId",headerName:"Source",minWidth:93,flex:1,valueFormatter:u=>r(e,u.value)},{field:"Method",headerName:"Method",minWidth:97,flex:1}]}],[e]),a=b.useMemo(()=>[{headerName:"Results",children:[{field:"DateTimeResults",headerName:"Result",valueGetter:u=>Wn(`${u.data.DateTimeResults}`,"MM/dd/yyyy - HH:mm")||"",minWidth:150,flex:1},{field:"Technician",headerName:"Technician",minWidth:117,flex:1}]}],[]),s=b.useMemo(()=>[{headerName:"Mechanical Tests",children:t.filter(d=>d.IsActive&&d.MechanicatTestId!==4).map(d=>({field:d.MechanicatTestId?.toString(),headerName:d.MechanicalTestName,minWidth:116,flex:1,headerClass:d.UseInCircular?"stripe-header":"",valueFormatter:p=>n(p,d.Decimals),cellClass:i}))}],[t]),l=b.useMemo(()=>[...o,...s,...a],[o,s,a]),c=b.useMemo(()=>({flex:1,resizable:!0,sortable:!0,filter:!0,editable:!1,tooltipComponent:"customTooltip",tooltipComponentParams:{color:"#ececec"}}),[]);return{columns:l,defaultColDef:c}},HFi=({loadingGrid:e,heat:t,mechanicalSamples:n,gradeLimits:r,resultSources:i,mechanicalTests:o})=>{const a=p2(),s=b.useRef(null),{columns:l}=jFi({resultSources:i,mechanicalTests:o}),c=b.useMemo(()=>n.map(d=>{const p={...d,elementParams:[],sampleParams:["SampleSequence","DateTimeResults","StatusCode","ResultSourceId","Comments","Technician","Method","HeatId","Width","Thickness","Diameter"],testParams:[]},h=(d.SamplesId??"").split(","),g=(d.SamplesValue??"").split(",");return(d.ResultsId??"").split(","),p.Limits=r.filter(m=>m.GradeId===d.GradeId),o.forEach(m=>{p[String(m.MechanicatTestId).trim()]=null}),h.forEach((m,v)=>{const y=g[v];p[m.trim()]=isNaN(parseFloat(y))?null:parseFloat(y)}),p}),[n,r,o]),u=b.useMemo(()=>({height:"auto"}),[]);return b.useMemo(()=>{e&&s.current?.api?s.current.api.showLoadingOverlay():s.current?.api&&s.current.api.hideOverlay()},[e]),f.jsx(D,{item:!0,container:!0,className:a.root,style:u,xs:12,md:12,children:f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(kt,{elevation:1,children:f.jsx(Kn,{ref:s,rowSelection:"single",pagination:!1,animateRows:!0,domLayout:"autoHeight",tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:c,columnDefs:l,suppressContextMenu:!0})})})})},VFi=()=>{const{state:e,actions:t}=uTe(),n=fa(),{heatName:r}=Ms(),[i]=Rd(),o=i.get("valid")??"false";return{handleValidSamples:c=>{t.setShowOnlyValid(c),n(`/lab-mechanical-by-heat/${r??""}?valid=${c}`)},nextHeat:()=>{if(!e.heat)return;const c=e.resultHeats?.find(u=>u.HeatId===e.heat.HeatId);c?.NextHeatId&&c?.NextHeatName&&(t.setSearchHeatNameText(c.NextHeatName),t.setHeat({Id:c.NextHeatId,Name:c.NextHeatName}),n(`/lab-mechanical-by-heat/${c.NextHeatName}?valid=${o}`))},previousHeat:()=>{if(!e.heat)return;const c=e.resultHeats?.find(u=>u.HeatId===e.heat.HeatId);c?.PreviousHeatId&&c?.PreviousHeatName&&(t.setSearchHeatNameText(c.PreviousHeatName),t.setHeat({Id:c.PreviousHeatId,Name:c.PreviousHeatName}),n(`/lab-mechanical-by-heat/${c.PreviousHeatName}?valid=${o}`))}}},GFi=()=>{const{state:e,actions:t}=uTe();return{getCatalogData:async()=>{t.setIsLoadingPage(!0);const[i,o]=await Promise.all([D3e(),k3e()]);i.ok&&t.setMechanicalTests(i.data.tables[0].rows),o.ok&&t.setSources(o.data.tables[0].rows),t.setIsLoadingPage(!1)},getSampleData:async()=>{if(!e.heat?.HeatId){t.setMechanicalSamples([]),t.setGrades([]);return}t.setIsLoadingGrid(!0);const i=await XTt(e.heat.HeatId,e.showOnlyValid?"V":null);i?.ok&&(t.setMechanicalSamples(i.data.tables[0].rows),i.data.tables[1]&&t.setGrades(i.data.tables[1].rows)),t.setIsLoadingGrid(!1)},isLoading:e.isLoadingPage||e.isLoadingGrid||e.isLoadingBackground}},$Fi=()=>{const{state:e,actions:t}=uTe(),n=fa(),{heatName:r}=Ms(),[i,o]=b.useState(r||null),[a,s]=b.useState(null),{handleValidSamples:l}=VFi(),{getCatalogData:c,getSampleData:u}=GFi();return b.useEffect(()=>{c()},[i]),b.useEffect(()=>{u()},[i,e.showOnlyValid,e.heat]),b.useEffect(()=>{(async()=>{if(!e.heat&&i)try{const p=await jY({searchText:i,IncludeIsExternal:null});if(p.ok){const h=p.data.tables[0].rows.find(g=>g.HeatName===i);h&&t.setHeat(h)}}catch(p){s("Error buscando el heat: "+p)}})()},[e.heat,i]),f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:"Mechanical Test"}),f.jsxs(kt,{elevation:1,style:{width:"100%",padding:"15px 20px 10px",borderRadius:"0.75rem",height:"93vh",backgroundColor:"#F2F4F7"},children:[f.jsx(Op,{open:e.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,container:!0,md:12,xs:12,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600,userSelect:"none"},children:"Mechanical Test"})}),f.jsxs(D,{container:!0,direction:"row",alignItems:"center",spacing:2,children:[f.jsx(D,{item:!0,xs:"auto",children:f.jsx(WFi,{value:i||null,onChange:d=>{d&&(t.setHeat(d),o(String(d.HeatName)),n(`/lab-mechanical-by-heat/${d.HeatName}`))}})}),f.jsx(D,{item:!0,xs:"auto",children:f.jsx(Io,{control:f.jsx(Qr,{color:"primary",checked:e.showOnlyValid,onChange:d=>l(d.target.checked)}),label:"Show valid samples"})})]}),f.jsx(ua,{style:{paddingTop:"100px"}}),f.jsx(HFi,{loadingGrid:e.isLoadingGrid,heat:e.heat,mechanicalTests:e.mechanicalTests??[],mechanicalSamples:e.mechanicalSamples??[],gradeLimits:e.grades??[],resultSources:e.sources??[]})]})})]}),f.jsx(Mt,{error:a,onHide:()=>s(null)})]})},RZe=e=>f.jsx(BFi,{children:f.jsx($Fi,{})}),UFi=[f.jsx(cr,{path:"/lab-chemistry-by-heat",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(zZe,{})}),children:" "}),f.jsx(cr,{path:"/lab-chemistry-by-heat/:heatName/:valid",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(zZe,{})}),children:" "}),f.jsx(cr,{path:"/lab-mechanical-by-heat",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(RZe,{})})}),f.jsx(cr,{path:"/lab-mechanical-by-heat/:heatName",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(RZe,{})})}),f.jsx(cr,{path:"/lab-l3/chemistry",element:f.jsxs(b.Suspense,{fallback:f.jsx(Cn,{}),children:[" ",f.jsx(TZe,{})]})}),f.jsx(cr,{path:"/lab-l3/chemistry/:shiftId",element:f.jsxs(b.Suspense,{fallback:f.jsx(Cn,{}),children:[" ",f.jsx(TZe,{})]})}),f.jsx(cr,{path:"/lab-l3/mechanical",element:f.jsxs(b.Suspense,{fallback:f.jsx(Cn,{}),children:[" ",f.jsx(EZe,{})]})}),f.jsx(cr,{path:"/lab-l3/mechanical/:shiftId",element:f.jsxs(b.Suspense,{fallback:f.jsx(Cn,{}),children:[" ",f.jsx(EZe,{})]})})],XFi=Qwi.map((e,t)=>f.jsx(cr,{path:e.path,element:e.element},`logbook-${e.path}-${t}`)),YFi={variable:null,isLoadingPage:!1,isLoadingBackground:!1,isLoadingProductionGrid:!1,isLoadingChemistryGrid:!1,errorMessage:"",notificationMessage:"",showLoading:!1,shiftInfo:{CurrentShiftId:0,CurrentProductionDate:new Date,CurrentProductionShift:0,CurrentShift:"",CurrentCrew:"",CurrentStart:new Date,CurrentEnd:new Date,PreviousShiftId:0,PreviousProductionDate:new Date,PreviousProductionShift:0,PreviousShift:"",PreviousCrew:"",PreviousStart:new Date,PreviousEnd:new Date,NextShiftId:0,NextProductionDate:null,NextProductionShift:0,NextShift:"",NextCrew:"",NextStart:null,NextEnd:null,LastShiftId:0,LastProductionDate:new Date,LastProductionShift:0,LastShift:"",LastCrew:"",LastStart:new Date,LastEnd:new Date},casterProductions:[],eafProcesses:[],processGanttChart:[],casterChemistries:[],selectedProcess:null,selectedAsset:null,ganttData:{Processes:[],ProcessesEvents:[]}},UY=Ni({name:"__",initialState:YFi,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingProductionGrid(e,{payload:t}){e.isLoadingProductionGrid=t},setIsLoadingChemistryGrid(e,{payload:t}){e.isLoadingChemistryGrid=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setVariable(e,{payload:t}){e.variable=t},setShiftInfo(e,{payload:t}){e.shiftInfo=t},setProcessGanttChart(e,{payload:t}){e.processGanttChart=t},setShowLoading(e,{payload:t}){e.showLoading=t},setEAFProcesses(e,{payload:t}){e.eafProcesses=t},setCasterProductions(e,{payload:t}){e.casterProductions=t},setCasterChemistries(e,{payload:t}){e.casterChemistries=t},setSelectedProcess(e,{payload:t}){e.selectedProcess=t},setSelectedAsset(e,{payload:t}){e.selectedAsset=t},setGanttProcesses(e,{payload:t}){e.ganttData.Processes=t},setGanttProcessEvents(e,{payload:t}){e.ganttData.ProcessesEvents=t}}}),eEt=b.createContext({state:UY.getInitialState(),actions:UY.actions}),hT=()=>b.useContext(eEt),tEt=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:UY.getInitialState(),reducers:UY.caseReducers});return f.jsx(eEt.Provider,{value:{state:t,actions:n},children:e})},IZe=()=>({width:window.innerWidth,height:window.innerHeight});function nEt(){const[e,t]=b.useState(IZe()),n=b.useCallback(()=>{let r=!1;r||(window.requestAnimationFrame(()=>{t(IZe()),r=!1}),r=!0)},[]);return b.useEffect(()=>(window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)),[]),e}const PZe=Rn(),KFi=({casterProductions:e,setComment:t,setShowCommentModal:n})=>({columnData:[{headerName:"Heat",type:["centerAligned"],children:[{field:"HeatNameValue",headerName:"",minWidth:66,type:["numericColumn","numericWidth"],cellRenderer:o=>zd({...o,link:`/meltshop-heats/${o.data.ShiftId}?heatId=${o.data.HeatId}`})}]},{headerName:"Grade",children:[{field:"GradeValue",headerName:"",minWidth:79}]},{headerName:"Billet Size",children:[{field:"BilletSizeName",headerName:"",minWidth:84}]},{headerName:"Open",type:["centerAligned"],children:[{field:"OpenFreeValue",headerName:"Free",minWidth:55,cellRenderer:QX,type:["nonSorteable","nonFilterable","centerAligned"],cellStyle:{padding:"0px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center"}},{field:"OpenBurnValue",headerName:"Burn",minWidth:55,cellRenderer:QX,type:["nonSorteable","nonFilterable","centerAligned"],cellStyle:{padding:"0px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center"}}]},{headerName:"Nozzle",children:[{field:"NozzleSize",headerName:"Billet Size Children",minWidth:76,cellStyle:{textAlign:"right"}}]},{headerName:"Ladle Trim",children:[{field:"TrimTemperature",headerName:"Temp",minWidth:60,cellStyle:{textAlign:"right"}},{field:"TrimSuperHeatValue",headerName:"SHeat",minWidth:62,cellStyle:{textAlign:"right"}},{field:"TrimProbeOxygen",headerName:"Trim O2",minWidth:57,type:["numericColumn","numericWidth"]}]},{headerName:"Tundish",children:[{field:"TundishNumber",headerName:"Num",minWidth:72,type:["numericColumn","numericWidth"]}]},{headerName:"Temperatures",children:[{field:"TemperaturesLiquidus",headerName:"Liquidus",minWidth:76,type:["numericColumn","numericWidth"]},{field:"TemperaturesFirst",headerName:"First",minWidth:60,type:["numericColumn","numericWidth"]},{field:"TemperaturesLast",headerName:"Last",minWidth:60,type:["numericColumn","numericWidth"]},{field:"TemperaturesMinSHValue",headerName:"MinSH",minWidth:66,type:["numericColumn","numericWidth"]}]},{headerName:"Times",children:[{field:"LadleOpen",headerName:"Open",minWidth:62,valueGetter:o=>o.data.LadleOpen?PZe(o.data.LadleOpen).format("HH:mm"):"",cellRenderer:o=>zd({...o,link:`/caster-data-entry/${o.data.ProcessId}`})},{field:"LadleClose",headerName:"Close",minWidth:62,valueGetter:o=>o.data.LadleClose?PZe(o.data.LadleClose).format("HH:mm"):""},{field:"DurationValue",headerName:"Duration",minWidth:76,valueFormatter:o=>o.data.DurationValue?.toFixed(1)}]},{headerName:"Avg Speed",children:[{field:"AvgSpeedS1Value",headerName:"S1",minWidth:62,cellRenderer:TO,cellRendererParams:{numericFormat:"0.0"},cellStyle:{textAlign:"right"}},{field:"AvgSpeedS2Value",headerName:"S2",minWidth:62,cellRenderer:TO,cellRendererParams:{numericFormat:"0.0"},cellStyle:{textAlign:"right"}},{field:"AvgSpeedS3Value",headerName:"S3",minWidth:62,cellRenderer:TO,cellRendererParams:{numericFormat:"0.0"},cellStyle:{textAlign:"right"}}]},{headerName:"Products",children:[{field:"ProductsPieces",headerName:"Pieces",minWidth:64,type:["numericColumn","numericWidth"]},{field:"ProductsTons",headerName:"Tons",minWidth:55,type:["numericColumn","numericWidth"],valueGetter:o=>Jx(o.data.ProductsTons)&&o.data.ProductsTons>0?Number.parseFloat(o.data.ProductsTons).toFixed(1):0}]},{headerName:"Lost Strands",field:"LostStrands",minWidth:72,headerStyle:{textAlign:"center"},cellStyle:{textAlign:"center"}},{field:"ScrapTons",headerName:"Scrap [lbs]",minWidth:69,valueGetter:o=>Jx(o.data.ScrapTons)&&o.data.ScrapTons>0?Number.parseFloat(o.data.ScrapTons).toFixed(0):0},{headerName:"Comments",children:[{field:"Comments",headerName:"",minWidth:89,cellRenderer:o=>f.jsx(fAi,{comments:o.data.Comments,onClick:()=>{t(o.data.Comments),n(!0)}})}]}],defaultColDef:{flex:1,resizable:!0,suppressHeaderMenuButton:!0,wrapHeaderText:!0,autoHeaderHeight:!0,filter:!1,floatingFilter:!1,sortable:!1,editable:!1}}),QFi=Rt(e=>({commentBox:{border:"1px solid #ced4da",borderRadius:4,padding:e.spacing(2),backgroundColor:"#fff",minHeight:100,overflowY:"auto",pointerEvents:"none"}})),ZFi=({comments:e,onHide:t,open:n})=>{const r=QFi();return f.jsx(f.Fragment,{children:f.jsxs(We,{open:n,handleClose:t,id:"comments-modal",title:"Comment",maxWidth:"sm",children:[f.jsx(We.Content,{children:f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,xs:12,children:f.jsx("div",{className:r.commentBox,children:f.jsx(bt,{children:e})})})})}),f.jsx(We.Actions,{children:f.jsx(D,{container:!0,spacing:2,justifyContent:"flex-end",children:f.jsx(D,{item:!0,md:3,xs:3,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"primary",onClick:t,size:"small",children:"Ok"})})})})]})})},JFi=()=>{const e=fa(),{shiftInfo:t}=la(),n=o=>{o!==null&&e(`/caster-data-entry/${o}`)},r=o=>{o&&e(`/meltshop-heats/${t?.CurrentShiftId}?heatId=${o}`)};return{getMenuOptions:o=>{let a=[];return o.ProcessId&&a.push({name:"See in Data Entry",key:"go_to_caster_data_entry",style:{fontWeight:"bold"},onClick:()=>n(o.ProcessId),icon:f.jsx(vw,{})}),o.HeatId&&(a=a.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>r(o.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}])),a},goToDataEntry:n}},eWi=()=>{const e=b.useRef(null),{shiftInfo:t}=la(),{state:{casterProductions:n,isLoadingProductionGrid:r}}=hT(),[i,o]=b.useState(null),[a,s]=b.useState(null),[l,c]=b.useState(!1),{columnTypes:u}=ku({OnEdit:()=>{}}),{columnData:d,defaultColDef:p}=KFi({casterProductions:n,setComment:s,setShowCommentModal:c}),{getMenuOptions:h,goToDataEntry:g}=JFi(),{showContextMenu:m,registerConfig:v}=ks(),y=M=>{o(M.api)};return b.useMemo(()=>{r&&i?i.showLoadingOverlay():i&&i.hideOverlay()},[r,i]),b.useEffect(()=>{v({id:"casterProductionTable",getOptions:h})},[t?.CurrentShiftId]),f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,md:12,xs:12,style:{border:"1px solid #e0e0e0",height:"50vh",minHeight:"30vh",margin:"20px 0 10px"},children:f.jsx(Kn,{ref:e,rowSelection:"single",defaultColDef:p,onGridReady:y,rowData:n,columnDefs:d,columnTypes:u,suppressContextMenu:!0,onRowDoubleClicked:M=>{g(M.data.ProcessId)},onCellContextMenu:M=>{M.event&&m(M.event,M.data,"casterProductionTable")}})})}),f.jsx(ZFi,{comments:a,onHide:()=>c(!1),open:l})]})},tWi=(e,t,n,r,i,o,a,s,l,c,u,d,p,h,g)=>{const m=t[1].getTime()-t[0].getTime()-t[1].getTimezoneOffset()*60*1e3+t[0].getTimezoneOffset()*60*1e3;return e.map((y,M)=>nWi(y,M,t,m,n,r,i,o,a,s,l,c,u,d,p,h,g))},nWi=(e,t,n,r,i,o,a,s,l,c,u,d,p,h,g,m,v)=>{const y={...e,index:t,barTasks:[]};let M=0;y.barTasks=(e.processes||[]).map(A=>DZe({ganttObject:A,index:M++,indexAsset:y.index,indexLine:0,totalLines:0,dates:n,dateDelta:r,columnWidth:i,rowHeight:o,processHeight:a,lineSectionHeight:s,lineHeight:l,barCornerRadius:c,handleWidth:u,barProgressColor:d,barProgressSelectedColor:p,barBackgroundColor:h,barBackgroundSelectedColor:g,barBorderColor:m,borderWidth:v}));const C=(A,z)=>{if(e.id==="11"||e.id==="12"){const I=F=>F==="H"||F==="C"?1:F==="D"?2:3,P=I(A),N=I(z);return P!==N?P-N:A.localeCompare(z)}const O=parseInt(A,10),T=parseInt(z,10);return!isNaN(O)&&!isNaN(T)?O-T:A.localeCompare(z)},x=new Set;e.processes.forEach(A=>{A.processLines.forEach(z=>{x.add(z.eventCode)})});const w=Array.from(x).sort(C),S=w.length;return e.processes.forEach(A=>{A.processLines.forEach(z=>{const O=w.indexOf(z.eventCode),T={processStart:A.start,source:z,type:z.type,start:z.start,end:z.end,id:z.id,name:z.name,processLines:[],progress:100,styles:z.styles},I=DZe({ganttObject:T,index:M++,indexAsset:y.index,indexLine:O,totalLines:S,dates:n,dateDelta:r,columnWidth:i,rowHeight:o,processHeight:a,lineSectionHeight:s,lineHeight:l,barCornerRadius:c,handleWidth:u,barProgressColor:d,barProgressSelectedColor:p,barBackgroundColor:h,barBackgroundSelectedColor:g,barBorderColor:m,borderWidth:v});y.barTasks.push(I)})}),y.barTasks=(y.barTasks||[]).map(A=>{const z=A.dependencies||[];for(let O=0;O<z.length;O++){const T=(y.barTasks||[]).findIndex(I=>I.id===z[O]);T!==-1&&(y.barTasks||[])[T].barChildren.push(A)}return A}),y},DZe=({ganttObject:e,index:t,indexAsset:n,indexLine:r,totalLines:i,dates:o,dateDelta:a,columnWidth:s,rowHeight:l,processHeight:c,lineSectionHeight:u,lineHeight:d,barCornerRadius:p,handleWidth:h,barProgressColor:g,barProgressSelectedColor:m,barBackgroundColor:v,barBackgroundSelectedColor:y,barBorderColor:M,borderWidth:C})=>{let x;switch(e.type){case"taskLine":x=iWi({asset:e,index:t,indexAsset:n,indexLine:r,totalLines:i,dates:o,dateDelta:a,columnWidth:s,rowHeight:l,processHeight:c,lineSectionHeight:u,lineHeight:d,barCornerRadius:p,handleWidth:h,barProgressColor:g,barProgressSelectedColor:m,barBackgroundColor:v,barBackgroundSelectedColor:y,barBorderColor:M,borderWidth:C});break;default:x=rWi(e,t,n,o,a,s,l,c,u,p,h,g,m,v,y,M,C);break}return x},rWi=(e,t,n,r,i,o,a,s,l,c,u,d,p,h,g,m,v)=>{let y,M;y=XY(e.start,r,i,o),M=XY(e.end,r,i,o);let C=e.type;C==="task"&&M-y<u*2&&(C="smalltask",M=y+u*2);const[x,w]=rEt(y,M,e.progress),S=aWi(n,a,s,l),A={backgroundColor:h,backgroundSelectedColor:g,progressColor:d,progressSelectedColor:p,borderColor:m,borderWidth:v,...e.styles};return{...e,typeInternal:C,x1:y,x2:M,y:S,index:t,progressX:w,progressWidth:x,barCornerRadius:c,handleWidth:u,height:s,barChildren:[],styles:A,key:`bar-${t}`}},iWi=({asset:e,index:t,indexAsset:n,indexLine:r,totalLines:i,dates:o,dateDelta:a,columnWidth:s,rowHeight:l,processHeight:c,lineSectionHeight:u,lineHeight:d,barCornerRadius:p,handleWidth:h,barProgressColor:g,barProgressSelectedColor:m,barBackgroundColor:v,barBackgroundSelectedColor:y,barBorderColor:M,borderWidth:C})=>{let x,w;x=XY(e.start,o,a,s),w=XY(e.end,o,a,s);const S=e.start.getTime()===e.end.getTime();let A=e.type;A==="task"&&w-x<h*2&&(A="smalltask",w=x+h*2);const[z,O]=rEt(x,w,e.progress),T=sWi(n,l,c,u,d,r,i),I={backgroundColor:"blue",backgroundSelectedColor:"blue",progressColor:"blue",progressSelectedColor:"blue",borderColor:"blue",borderWidth:C,...e.styles};return{...e,typeInternal:A,x1:x,x2:w,y:T,index:t,progressX:O,progressWidth:z,barCornerRadius:p,handleWidth:h,height:d,barChildren:[],isPointInTime:S,styles:I,key:`line-${t}`}},oWi=(e,t,n)=>{const r=t[1].getTime()-t[0].getTime()-t[1].getTimezoneOffset()*60*1e3+t[0].getTimezoneOffset()*60*1e3;let i=Math.floor(e/n);i<0&&(i=0),i>=t.length&&(i=t.length-1);const a=(e-i*n)/n*r,s=t[i];return new Date(s.getTime()+a+(s.getTimezoneOffset()-new Date().getTimezoneOffset())*60*1e3)},XY=(e,t,n,r)=>{let i=~~((e.getTime()-t[0].getTime()+e.getTimezoneOffset()-t[0].getTimezoneOffset())/n);return i<0&&(i=0),i>=t.length&&(i=t.length-1),Math.round((i+(e.getTime()-t[i].getTime()-e.getTimezoneOffset()*60*1e3+t[i].getTimezoneOffset()*60*1e3)/n)*r)},aWi=(e,t,n,r)=>e*t+(t-n-r)/2,sWi=(e,t,n,r,i,o,a)=>{const s=e*t+n+(t-n-r)/2;let l=r/a;return a===1?s+i:s+l*o+(l-i)},rEt=(e,t,n)=>{const r=(t-e)*n*.01;let i;return i=e,[r,i]};var xc=(e=>(e.Hour="Hour",e.QuarterDay="Quarter Day",e.HalfDay="Half Day",e.Day="Day",e.Week="Week",e.Month="Month",e))(xc||{});const kZe={},dTe=(e,t={})=>{const n=JSON.stringify([e,t]);let r=kZe[n];return r||(r=new Intl.DateTimeFormat(e,t),kZe[n]=r),r},vu=(e,t,n)=>new Date(e.getFullYear()+(n==="year"?t:0),e.getMonth()+(n==="month"?t:0),e.getDate()+(n==="day"?t:0),e.getHours()+(n==="hour"?t:0),e.getMinutes()+(n==="minute"?t:0),e.getSeconds()+(n==="second"?t:0),e.getMilliseconds()+(n==="millisecond"?t:0)),jh=(e,t)=>{const n=["millisecond","second","minute","hour","day","month","year"],r=o=>{const a=n.indexOf(t);return n.indexOf(o)<=a};return new Date(e.getFullYear(),r("year")?0:e.getMonth(),r("month")?1:e.getDate(),r("day")?0:e.getHours(),r("hour")?0:e.getMinutes(),r("minute")?0:e.getSeconds(),r("second")?0:e.getMilliseconds())},LZe=(e,t)=>{let n=e.length===0?new Date:e[0].start,r=e.length===0?new Date:e[0].start;for(const i of e)i.start<n&&(n=i.start),i.end>r&&(r=i.end);switch(t){case xc.Month:n=vu(n,-1,"month"),n=jh(n,"month"),r=vu(r,1,"year"),r=jh(r,"year");break;case xc.Week:n=jh(n,"day"),r=jh(r,"day"),n=vu(lWi(n),-7,"day"),r=vu(r,1.5,"month");break;case xc.Day:n=jh(n,"day"),r=jh(r,"day"),n=vu(n,-1,"day"),r=vu(r,19,"day");break;case xc.QuarterDay:n=jh(n,"day"),r=jh(r,"day"),n=vu(n,-1,"day"),r=vu(r,66,"hour");break;case xc.HalfDay:n=jh(n,"day"),r=jh(r,"day"),n=vu(n,-1,"day"),r=vu(r,108,"hour");break;case xc.Hour:n=jh(n,"hour"),r=jh(r,"day"),n=vu(n,-1,"hour"),r=vu(r,1,"day");break}return[n,r]},_Ze=(e,t,n)=>{let r=new Date(e);t=new Date(t);const i=[r];for(;r<t;){switch(n){case xc.Month:r=vu(r,1,"month");break;case xc.Week:r=vu(r,7,"day");break;case xc.Day:r=vu(r,1,"day");break;case xc.HalfDay:r=vu(r,12,"hour");break;case xc.QuarterDay:r=vu(r,6,"hour");break;case xc.Hour:r=vu(r,1,"hour");break}i.push(r)}return i},k5=(e,t)=>{let n=dTe(t,{month:"long"}).format(e);return n=n.replace(n[0],n[0].toLocaleUpperCase()),n},Lpe=(e,t,n)=>{let r=dTe(t,{weekday:n}).format(e);return r=r.replace(r[0],r[0].toLocaleUpperCase()),r},lWi=e=>{const t=e.getDay(),n=e.getDate()-t+(t===0?-6:1);return new Date(e.setDate(n))},cWi=e=>{const t=new Date(e.valueOf()),n=(t.getDay()+6)%7;t.setDate(t.getDate()-n+3);const r=t.valueOf();t.setMonth(0,1),t.getDay()!==4&&t.setMonth(0,1+(4-t.getDay()+7)%7);const i=(1+Math.ceil((r-t.valueOf())/6048e5)).toString();return i.length===1?`0${i}`:i},uWi=(e,t)=>new Date(t,e+1,0).getDate(),dWi=(e,t)=>{const n=e.displayOrder||Number.MAX_VALUE,r=t.displayOrder||Number.MAX_VALUE;return n>r?1:n<r?-1:0},NZe=e=>{const t=[];return e.forEach(n=>{n.processes.forEach(r=>{t.push(r)})}),t},pWi=e=>{const t=[];return e.forEach(n=>{n.barTasks.forEach(r=>{t.push(r)})}),t},hWi=({headerHeight:e,fontFamily:t,fontSize:n,rowWidth:r,rowHeight:i,scrollY:o,assets:a,selectedAsset:s,setSelectedAsset:l,locale:c,ganttHeight:u,assetListRef:d,horizontalContainerClass:p,AssetListHeader:h,AssetListTable:g})=>{const m=b.useRef(null);b.useEffect(()=>{m.current&&(m.current.scrollTop=o)},[o]);const v={headerHeight:e,fontFamily:t,fontSize:n,rowWidth:r},y=s?s.id:"",M={rowHeight:i,rowWidth:r,fontFamily:t,fontSize:n,assets:a,locale:c,selectedAssetId:y,setSelectedAsset:l},C="0 0 "+M.rowWidth+" "+v.headerHeight,x="0 0 "+M.rowWidth+" "+M.assets.length*M.rowHeight;return f.jsxs("div",{ref:d,style:{width:M.rowWidth},children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fontFamily:M.fontFamily,viewBox:C,children:f.jsx(h,{...v})}),f.jsx("div",{ref:m,className:p,style:u?{height:u,width:"100%"}:{width:"100%"},children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fontFamily:M.fontFamily,viewBox:x,children:f.jsx(g,{...M})})})]})},fWi="_headerLabel_1rf99_1",gWi="_header_1rf99_1",FZe={headerLabel:fWi,header:gWi},mWi=({headerHeight:e,fontFamily:t,fontSize:n,rowWidth:r})=>{const a=()=>0+r*.5;return f.jsx("g",{children:f.jsxs("g",{children:[f.jsx("rect",{x:0,width:r,y:0,height:e,className:FZe.header}),f.jsx("text",{x:a(),y:0+e*.5,className:FZe.headerLabel,style:{fontFamily:t,fontSize:n}})]})})},vWi="_graphicWrapper_lop7e_1",bWi="_graphicRow_lop7e_6",yWi="_graphicRowAlt_lop7e_9",MWi="_graphicCell_lop7e_12",CWi="_graphicLabel_lop7e_15",L5={graphicWrapper:vWi,graphicRow:bWi,graphicRowAlt:yWi,graphicCell:MWi,graphicLabel:CWi},xWi=({rowHeight:e,rowWidth:t,fontFamily:n,fontSize:r,assets:i})=>f.jsxs("g",{children:[f.jsx("rect",{x:0,y:0,width:t,height:e*i.length,className:L5.graphicWrapper}),i.map((s,l)=>f.jsxs("g",{children:[f.jsx("rect",{x:0,y:l*e,width:t,height:e,className:l%2===0?L5.graphicRow:L5.graphicRowAlt},`${s.id}row`),f.jsx("rect",{x:0+.1*t,y:l*e+.1*e,width:t*(1-.1*2),height:e*(1-.1*2),className:L5.graphicCell,style:{fill:s.color}},`${s.id}cell`),f.jsx("text",{x:0+t*.5,y:l*e+e*.5,className:L5.graphicLabel,style:{fontFamily:n,fontSize:20,fill:"black"},children:s.name},`${s.id}text`)]},`${s.id}g`))]}),wWi=()=>{const[e,t]=b.useState({x:0,y:0});return b.useEffect(()=>{let n;const r=i=>{n&&clearTimeout(n),n=setTimeout(()=>{t({x:i.clientX,y:i.clientY})},300)};return window.addEventListener("mousemove",r),()=>{window.removeEventListener("mousemove",r),n&&clearTimeout(n)}},[]),e},SWi="_tooltipDefaultContainer_fyry5_1",AWi="_tooltipDefaultContainerParagraph_fyry5_7",OWi="_tooltipDetailsContainer_fyry5_13",zWi="_tooltipDetailsContainerHidden_fyry5_25",YY={tooltipDefaultContainer:SWi,tooltipDefaultContainerParagraph:AWi,tooltipDetailsContainer:OWi,tooltipDetailsContainerHidden:zWi},TWi=({task:e,rowHeight:t,svgContainerHeight:n,svgContainerWidth:r,arrowIndent:i,fontSize:o,fontFamily:a,headerHeight:s,taskListWidth:l,TooltipContent:c})=>{const u=b.useRef(null),[d,p]=b.useState(0),[h,g]=b.useState(0),m=wWi();return b.useEffect(()=>{if(u.current){const v=u.current.offsetHeight*1.1,y=u.current.offsetWidth*1.1;let M=m.x,C=m.y;const x=M+y,w=C+v,S=l+r,A=n;x>S&&(M=S-y),w>A&&(C=A-v),g(M),p(C)}},[m,u.current]),f.jsx(f.Fragment,{children:f.jsx("div",{ref:u,className:h?YY.tooltipDetailsContainer:YY.tooltipDetailsContainerHidden,style:{left:m.x,top:m.y,position:"fixed",opacity:m.x&&m.y?1:0},children:f.jsx(c,{task:e,fontSize:o,fontFamily:a})})})},EWi=({task:e,fontSize:t,fontFamily:n})=>{const r={fontSize:t,fontFamily:n};return f.jsx("div",{className:YY.tooltipDefaultContainer,style:r,children:e.type==="taskLine"?f.jsx(f.Fragment,{children:e.source.comments}):f.jsxs(f.Fragment,{children:[f.jsx("p",{children:e.name?f.jsxs("b",{style:{fontSize:parseInt(t)+6},children:[`Heat: ${e.name}`," "]}):null}),f.jsxs("p",{children:[f.jsx("b",{children:"Grade: "}),e.source.GradeName]}),f.jsxs("p",{children:[f.jsx("b",{children:"Ladle: "})," ",e.source.LadleName]}),f.jsx("p",{children:e.source.Comments}),f.jsx("p",{className:YY.tooltipDefaultContainerParagraph,children:`From: ${Wn(e.start,"MM/dd HH:mm")} to: ${Wn(e.end,"MM/dd HH:mm")}`})]})})},RWi="_calendarBottomText_16n01_1",IWi="_calendarTopTick_16n01_12",PWi="_calendarTopText_16n01_16",DWi="_calendarHeader_16n01_27",VC={calendarBottomText:RWi,calendarTopTick:IWi,calendarTopText:PWi,calendarHeader:DWi},_5=({value:e,x1Line:t,y1Line:n,y2Line:r,xText:i,yText:o})=>f.jsxs("g",{className:"calendarTop",children:[f.jsx("line",{x1:t,y1:n,x2:t,y2:r,className:VC.calendarTopTick},e+"line"),f.jsx("text",{filter:"url(#solid)",y:o,x:i,className:VC.calendarTopText,style:{fontWeight:"normal"},children:e},e+"text")]}),kWi=({dateSetup:e,locale:t,viewMode:n,headerHeight:r,columnWidth:i,fontFamily:o,fontSize:a})=>{const s=()=>{const g=[],m=[],v=r*.5;for(let y=0;y<e.dates.length;y++){const M=e.dates[y],C=k5(M,t);if(m.push(f.jsx("text",{y:r*.8,x:i*y+i*.5,className:VC.calendarBottomText,children:C},C+M.getFullYear())),y===0||M.getFullYear()!==e.dates[y-1].getFullYear()){const x=M.getFullYear().toString();let w;w=(6+y-M.getMonth())*i,g.push(f.jsx(_5,{value:x,x1Line:i*y,y1Line:0,y2Line:v,xText:w,yText:v*.9},x))}}return[g,m]},l=()=>{const g=[],m=[];let v=1;const y=r*.5,M=e.dates;for(let C=M.length-1;C>=0;C--){const x=M[C];let w="";(C===0||x.getMonth()!==M[C-1].getMonth())&&(w=`${k5(x,t)}, ${x.getFullYear()}`);const S=`W${cWi(x)}`;m.push(f.jsx("text",{y:r*.8,x:i*C,className:VC.calendarBottomText,children:S},x.getTime())),w&&(C!==M.length-1&&g.push(f.jsx(_5,{value:w,x1Line:i*C+v*i,y1Line:0,y2Line:y,xText:i*C+i*v*.5,yText:y*.9},w)),v=0),v++}return[g,m]},c=()=>{const g=[],m=[],v=r*.5,y=e.dates;for(let M=0;M<y.length;M++){const C=y[M],x=`${Lpe(C,t,"short")}, ${C.getDate().toString()}`;if(m.push(f.jsx("text",{y:r*.8,x:i*M+i*.5,className:VC.calendarBottomText,children:x},C.getTime())),M+1!==y.length&&C.getMonth()!==y[M+1].getMonth()){const w=k5(C,t);g.push(f.jsx(_5,{value:w,x1Line:i*(M+1),y1Line:0,y2Line:v,xText:i*(M+1)-uWi(C.getMonth(),C.getFullYear())*i*.5,yText:v*.9},w+C.getFullYear()))}}return[g,m]},u=()=>{const g=[],m=[],v=n===xc.HalfDay?2:4,y=r*.5,M=e.dates;for(let C=0;C<M.length;C++){const x=M[C],w=dTe(t,{hour:"numeric"}).format(x);if(m.push(f.jsx("text",{y:r*.8,x:i*C,className:VC.calendarBottomText,fontFamily:o,children:w},x.getTime())),C===0||x.getDate()!==M[C-1].getDate()){const S=`${Lpe(x,t,"short")}, ${x.getDate()} ${k5(x,t)}`;g.push(f.jsx(_5,{value:S,x1Line:i*C+v*i,y1Line:0,y2Line:y,xText:i*C+v*i*.5,yText:y*.9},S+x.getFullYear()))}}return[g,m]},d=()=>{const g=[],m=[],v=r*.3,y=e.dates;for(let M=0;M<y.length;M++){const C=y[M],x=Wn(C,"HH:mm");if(m.push(f.jsx("text",{y:r*.8,x:i*M+(M===0?20:0),className:VC.calendarBottomText,fontFamily:o,children:x},C.getTime())),M===0||Wn(C,"dd")!==Wn(y[M-1],"dd")){const w=`${Lpe(C,t,"long")}, ${C.getDate()} ${k5(C,t)}`;g.push(f.jsx(_5,{value:w,x1Line:i*M,y1Line:0,y2Line:v,xText:i*M,yText:v*.9},w+C.getFullYear()))}}return[g,m]};let p=[],h=[];switch(e.viewMode){case xc.Month:[p,h]=s();break;case xc.Week:[p,h]=l();break;case xc.Day:[p,h]=c();break;case xc.QuarterDay:case xc.HalfDay:[p,h]=u();break;case xc.Hour:[p,h]=d()}return f.jsxs("g",{className:"calendar",fontSize:a,fontFamily:o,children:[f.jsx("rect",{x:0,y:0,width:i*e.dates.length,height:r,className:VC.calendarHeader}),h,p]})},LWi="_gridRow_2ody0_1",_Wi="_gridRowLine_2ody0_9",NWi="_gridTick_2ody0_13",NG={gridRow:LWi,gridRowLine:_Wi,gridTick:NWi},FWi=({assets:e,dates:t,rowHeight:n,svgWidth:r,columnWidth:i,todayColor:o})=>{let a=0;const s=[],l=[f.jsx("line",{x:"0",y1:0,x2:r,y2:0,className:NG.gridRowLine},"RowLineFirst")];for(const h of e)s.push(f.jsx("rect",{"data-asset-id":h.id,x:"0",y:a,width:r,height:n,className:NG.gridRow},"Row"+h.id)),l.push(f.jsx("line",{x:"0",y1:a+n,x2:r,y2:a+n,className:NG.gridRowLine},"RowLine"+h.id)),a+=n;const c=new Date;let u=0;const d=[];let p=f.jsx("rect",{});for(let h=0;h<t.length;h++){const g=t[h];d.push(f.jsx("line",{x1:u,y1:0,x2:u,y2:a,className:NG.gridTick},g.getTime())),(h+1!==t.length&&g.getTime()<c.getTime()&&t[h+1].getTime()>=c.getTime()||h!==0&&h+1===t.length&&g.getTime()<c.getTime()&&vu(g,g.getTime()-t[h-1].getTime(),"millisecond").getTime()>=c.getTime())&&(p=f.jsx("rect",{x:u,y:0,width:i,height:a,fill:o})),u+=i}return f.jsxs("g",{className:"gridBody",children:[f.jsx("g",{className:"rows",children:s}),f.jsx("g",{className:"rowLines",children:l}),f.jsx("g",{className:"ticks",children:d}),f.jsx("g",{className:"today",children:p})]})},WWi=e=>f.jsx("g",{className:"grid",children:f.jsx(FWi,{...e})}),qWi="_barLabel_1259p_1",BWi="_barSubLabel_1259p_13",jWi="_barSubLabelRight_1259p_25",HWi="_barLabelOutside_1259p_30",yC={barLabel:qWi,barSubLabel:BWi,barSubLabelRight:jWi,barLabelOutside:HWi},VWi="_barWrapper_1m218_1",GWi="_barBackground_1m218_18",Rte={barWrapper:VWi,barBackground:GWi},iEt=({id:e,x:t,y:n,width:r,height:i,isSelected:o,progressX:a,progressWidth:s,barCornerRadius:l,styles:c,isHighlighted:u})=>{const d=()=>u?"#FFD54F":o?c.progressSelectedColor:c.progressColor,p=()=>o?c.backgroundSelectedColor:c.backgroundColor;return f.jsxs("g",{children:[f.jsx("rect",{"data-id":`id-${e}-background`,x:t,width:r,y:n,height:i,ry:l,rx:l,fill:p(),className:Rte.barBackground,stroke:c.borderColor}),f.jsx("rect",{"data-id":e+"-progress",x:a,width:s,y:n,height:i,ry:l,rx:l,fill:d(),stroke:c.borderColor,strokeWidth:c.borderWidth})]})},$Wi=({id:e,x:t,y:n,height:r,isSelected:i,styles:o})=>{const a=Math.min(r/1,6),s=n+r/2,l=()=>i?o.backgroundSelectedColor:o.backgroundColor;return f.jsx("g",{children:f.jsx("circle",{"data-id":`id-${e}-point`,cx:t,cy:s,r:a,fill:l(),className:Rte.barBackground,stroke:o.borderColor,strokeWidth:Math.max(o.borderWidth,1)})})},UWi=({asset:e,onEventStart:t,isSelected:n,processLinesRef:r,isHighlighted:i})=>{const o=e.type=="taskLine"&&e.source.eventCode!=="D",a=o?0:e.barCornerRadius,s=o?9:e.height,l=o?e.y+e.height-11:e.y,c=e.isPointInTime===!0;return f.jsxs("g",{className:Rte.barWrapper,tabIndex:0,children:[ql.createPortal(f.jsx(f.Fragment,{children:e.drawLine?f.jsx("line",{x1:0,y1:e.y+e.height/2,x2:"100%",y2:e.y+e.height/2,stroke:"black",strokeOpacity:"1",strokeWidth:"0.4",pointerEvents:"none"}):null}),r.current||document.body),c?f.jsx($Wi,{id:`${e.name}-${e.id}`,x:e.x1,y:l,height:s,styles:e.styles,isSelected:n}):f.jsx(iEt,{id:`${e.name}-${e.id}`,x:e.x1,y:l,width:e.x2-e.x1,height:s,progressX:e.progressX,progressWidth:e.progressWidth,barCornerRadius:a,styles:e.styles,isSelected:n,isHighlighted:e.type==="task"&&i}),f.jsx("g",{className:"handleGroup"})]})},XWi=({asset:e,onEventStart:t,isSelected:n})=>f.jsxs("g",{className:Rte.barWrapper,tabIndex:0,children:[f.jsx(iEt,{id:`bar-${e.id}`,x:e.x1,y:e.y,width:e.x2-e.x1,height:e.height,progressX:e.progressX,progressWidth:e.progressWidth,barCornerRadius:e.barCornerRadius,styles:e.styles,isSelected:n}),f.jsx("g",{className:"handleGroup"})]}),YWi=e=>{const{asset:t,arrowIndent:n,assetHeight:r,isSelected:i,onEventStart:o,svgWidth:a,isHighlighted:s}={...e},l=b.useRef(null),[c,u]=b.useState(f.jsx("div",{})),[d,p]=b.useState(!0);let h=t.x1<0?0:t.x1,m=(t.x2>a?a:t.x2)-h>50;b.useEffect(()=>{switch(t.typeInternal){case"smalltask":u(f.jsx(XWi,{...e}));break;default:u(f.jsx(UWi,{...e,isHighlighted:s}));break}},[t,i,s]),b.useEffect(()=>{l.current&&p(l.current.getBBox().width<t.x2-t.x1)},[l,t]);const v=()=>{if(t.x1<0)return t.x2<a?t.x2/2:a/2;if(t.x2>a)return t.x1>0?t.x1+(a-t.x1)/2:a/2;const x=t.x2-t.x1,w=t.barChildren.length>0;return d?t.x1+x*.5:t.x1+x+n*+w+n*.2},y=.2,M=.05,C=x=>{let w=t.x1,S=t.x2;return t.x1<0&&(w=0,t.x2<a?S=t.x2:S=a),t.x2>a&&(S=a,t.x1>0?w=t.x1:w=0),x?w+(S-w)*M:w+(S-w)*(1-M)};return f.jsxs("g",{onMouseEnter:x=>{o("mouseenter",t,x)},onMouseLeave:x=>{o("mouseleave",t,x)},onDoubleClick:x=>{o("dblclick",t,x)},onFocus:()=>{o("select",t)},onContextMenu:x=>{o("contextMenu",t,x)},children:[c,f.jsx("text",{x:v(),y:t.y+r*.5,className:d?yC.barLabel:yC.barLabelOutside,ref:l,children:t.name}),m?f.jsxs(f.Fragment,{children:[f.jsx("text",{x:C(!0),y:t.y+r*y,className:yC.barSubLabel,ref:l,children:t.textLeftTop}),f.jsx("text",{x:C(!1),y:t.y+r*y,className:[yC.barSubLabel,yC.barSubLabelRight].join(" "),ref:l,children:t.textRightTop}),f.jsx("text",{x:C(!0),y:t.y+r*(1-y),className:yC.barSubLabel,ref:l,children:t.textLeftBottom}),f.jsx("text",{x:C(!1),y:t.y+r*(1-y),className:[yC.barSubLabel,yC.barSubLabelRight].join(" "),ref:l,children:t.textRightBottom})]}):""]})},KWi=({assets:e,selectedAsset:t,ganttEvent:n,rowHeight:r,taskHeight:i,arrowColor:o,showArrowTriangle:a,svgWidth:s,arrowIndent:l,fontFamily:c,fontSize:u,setGanttEvent:d,setSelectedAsset:p,onDoubleClick:h,onContextMenu:g})=>{const m=b.useRef(null),v=b.useRef({}),[y,M]=b.useState(null),C=async(x,w,S)=>{S?x==="mouseenter"?(M(w.name),d({action:x,changedAsset:w,originalSelectedTask:w})):x==="mouseleave"?(M(null),d({action:""})):x==="dblclick"?h&&h(w):x==="contextMenu"?g&&g(S,w.source):d({action:x,changedAsset:w,originalSelectedTask:w}):x==="select"&&p(w.id)};return f.jsx("g",{className:"content",children:f.jsxs("g",{className:"bar",fontFamily:c,fontSize:u,children:[f.jsx("g",{ref:m,id:"processLines"}),e.map(x=>(v.current[x.id]={},x.barTasks.map(w=>{const S=y===w.name;return!v.current[x.id][w.source.eventCode]&&w.type==="taskLine"&&(v.current[x.id][w.source.eventCode]=!0,w={...w,drawLine:!0}),f.jsx(YWi,{asset:w,arrowIndent:l,assetHeight:i,onEventStart:C,isSelected:!1,isHighlighted:S,processLinesRef:m,svgWidth:s},w.key)})))]})})},QWi="_ganttVerticalContainer_1g9l0_1",ZWi="_horizontalContainer_1g9l0_8",JWi="_wrapper_1g9l0_14",KY={ganttVerticalContainer:QWi,horizontalContainer:ZWi,wrapper:JWi},eqi=({gridProps:e,calendarProps:t,barProps:n,ganttHeight:r,scrollX:i,scrollY:o})=>{const a=b.useRef(null),s=b.useRef(null),l=b.useRef(null),c={...n,svg:a},u=h=>{let g=h.target;for(;g;){if(g.hasAttribute("data-asset-id"))return g.getAttribute("data-asset-id");g=g.parentElement}return null},d="0 0 "+e.svgWidth+" "+t.headerHeight,p="0 0 "+e.svgWidth+" "+n.rowHeight*n.assets.length;return b.useEffect(()=>{s.current&&(s.current.scrollTop=o)},[o]),b.useEffect(()=>{l.current&&(l.current.scrollLeft=i)},[i]),f.jsxs("div",{className:KY.ganttVerticalContainer,ref:l,style:{width:e.svgWidth},dir:"ltr",onContextMenu:h=>{h.preventDefault();const g=u(h),v=a.current?.getScreenCTM(),M=new DOMPoint(h.clientX,h.clientY).matrixTransform(v?.inverse());if(g){const C=n.assets.find(x=>x.id===g);n.onContextMenu&&n.onContextMenu(h,{type:"asset",asset:C,timestamp:oWi(M.x,t.dateSetup.dates,t.columnWidth)})}},children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fontFamily:n.fontFamily,viewBox:d,children:f.jsx(kWi,{...t})}),f.jsx("div",{ref:s,className:KY.horizontalContainer,style:r?{height:r,width:"100%"}:{width:"100%"},children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fontFamily:n.fontFamily,viewBox:p,ref:a,children:[f.jsx(WWi,{...e}),f.jsx(KWi,{...c})]})})]})},tqi=({rowHeight:e,columnWidth:t,svgWidth:n,setScrollX:r,setScrollY:i,ganttFullHeight:o,ganttHeight:a,setIgnoreScrollEvent:s})=>({handleKeyDown:c=>{c.preventDefault();let u=scrollY,d=scrollX,p=!0;switch(c.key){case"Down":case"ArrowDown":u+=e,p=!1;break;case"Up":case"ArrowUp":u-=e,p=!1;break;case"Left":case"ArrowLeft":d-=t;break;case"Right":case"ArrowRight":d+=t;break}p?(d<0?d=0:d>n&&(d=n),r(d)):(u<0?u=0:u>o-a&&(u=o-a),i(u)),s(!0)}}),nqi=({wrapperRef:e,scrollX:t,setScrollX:n,scrollY:r,setScrollY:i,ganttHeight:o,ganttFullHeight:a,svgWidth:s,setIgnoreScrollEvent:l})=>(b.useEffect(()=>{const c=u=>{if(u.shiftKey||u.deltaX){const d=u.deltaX?u.deltaX:u.deltaY;let p=t+d;p<0?p=0:p>s&&(p=s),n(p),u.preventDefault()}else if(o){let d=r+u.deltaY;d<0?d=0:d>a-o&&(d=a-o),d!==r&&(i(d),u.preventDefault())}l(!0)};return e.current&&e.current.addEventListener("wheel",c,{passive:!1}),()=>{e.current&&e.current.removeEventListener("wheel",c)}},[e.current,r,t,o,s]),{scrollX:t,ganttHeight:o,scrollY:r,ganttFullHeight:a,svgWidth:s}),rqi=({assets:e,headerHeight:t=50,columnWidth:n=100,showAssetList:r=!0,assetCellWidth:i=160,rowHeight:o=50,ganttHeight:a=0,viewMode:s=xc.Hour,startCalendarDate:l,endCalendarDate:c,locale:u="en-US",barFill:d=50,barCornerRadius:p=3,barProgressColor:h="#FF8080",barProgressSelectedColor:g="#FF8080",barBackgroundColor:m="#FF8080",barBackgroundSelectedColor:v="#FF8080",barBorderColor:y="#802020",borderWidth:M=1,lineSectionFill:C=30,lineFill:x=30,handleWidth:w=8,arrowColor:S="grey",showArrowTriangle:A=!0,fontFamily:z="Arial, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue",fontSize:O="14px",arrowIndent:T=20,todayColor:I="rgba(252, 248, 227, 0.5)",TooltipContent:P=EWi,AssetListHeader:N=mWi,AssetListTable:F=xWi,onDoubleClick:L,onSelect:W,onContextMenu:H})=>{const j=b.useRef(null),G=b.useRef(null),[q,$]=b.useState(()=>{const ve=NZe(e),[De,ze]=LZe(ve,s);return{viewMode:s,dates:_Ze(De,ze,s)}}),[U,X]=b.useState(0),[Q,re]=b.useState(a),[ee,se]=b.useState(0),[pe,te]=b.useState([]),[ce,oe]=b.useState({action:""}),ae=b.useMemo(()=>o*d/150,[o,d]),ne=b.useMemo(()=>o*C/80,[o,C]),le=b.useMemo(()=>o*C*x/2e4,[o,C,x]),[he,be]=b.useState(),me=q.dates.length*n,Me=pe.length*o,[Oe,de]=b.useState(0),[ie,ue]=b.useState(-1),[Ae,Ce]=b.useState(!1);b.useEffect(()=>{let ve,De;if(l!==void 0&&c!==void 0&&c>l)[ve,De]=[l,c];else{const Ke=NZe(e);let et;et=Ke,et=et.sort(dWi),[ve,De]=LZe(et,s)}let ze=_Ze(ve,De,s);$({dates:ze,viewMode:s});const Ve=tWi(e,ze,n,o,ae,ne,le,p,w,h,g,m,v,y,M);te(Ve)},[e,s,o,p,n,ae,w,h,g,m,v,y,M,ie]),b.useEffect(()=>{r&&se(0),G.current&&se(G.current.offsetWidth)},[G,i,r]),b.useEffect(()=>{re(a?a+t:e.length*o+t)},[a,e]),nqi({wrapperRef:j,scrollX:ie,setScrollX:ue,scrollY:Oe,setScrollY:de,ganttHeight:a,ganttFullHeight:Me,svgWidth:me,setIgnoreScrollEvent:Ce});const{handleKeyDown:Ee}=tqi({rowHeight:o,columnWidth:n,svgWidth:me,setScrollX:ue,setScrollY:de,ganttFullHeight:Me,ganttHeight:a,setIgnoreScrollEvent:Ce}),Ge=ve=>{const De=pWi(pe),ze=De.find(Ke=>Ke.id===ve),Ve=De.find(Ke=>!!he&&Ke.id===he.id);W&&(Ve&&W(Ve,!1),ze&&W(ze,!0)),be(ze)},_e={columnWidth:n,svgWidth:me,assets:e,rowHeight:o,dates:q.dates,todayColor:I},Ie={dateSetup:q,locale:u,viewMode:s,headerHeight:t,columnWidth:n,fontFamily:z,fontSize:O},Le={assets:pe,ganttEvent:ce,selectedAsset:he,rowHeight:o,taskHeight:ae,arrowColor:S,showArrowTriangle:A,fontFamily:z,fontSize:O,arrowIndent:T,svgWidth:me,setSelectedAsset:Ge,onDoubleClick:L,setGanttEvent:oe,onContextMenu:H},we={rowHeight:o,rowWidth:i,fontFamily:z,fontSize:O,assets:pe,locale:u,headerHeight:t,scrollY:Oe,ganttHeight:a,horizontalContainerClass:KY.horizontalContainer,selectedAsset:he,assetListRef:G,setSelectedAsset:Ge,AssetListHeader:N,AssetListTable:F};return f.jsx("div",{children:f.jsxs("div",{className:KY.wrapper,onKeyDown:Ee,tabIndex:0,ref:j,children:[r&&f.jsx(hWi,{...we}),f.jsx(eqi,{gridProps:_e,calendarProps:Ie,barProps:Le,ganttHeight:a,scrollX:ie,scrollY:Oe}),ce.changedAsset&&f.jsx(TWi,{arrowIndent:T,rowHeight:o,svgContainerHeight:Q,svgContainerWidth:U,fontFamily:z,fontSize:O,task:ce.changedAsset,headerHeight:t,taskListWidth:ee,TooltipContent:P,svgWidth:me})]})})},_pe=Rn(),iqi=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[p,h]=b.useState(!1),[g,m]=b.useState(""),[v,y]=b.useState(""),[M,C]=b.useState(""),{state:{selectedAsset:x},actions:{setSelectedProcess:w}}=hT(),{shiftInfo:S}=la(),A=fa(),z=b.useCallback(q=>{w({ProcessId:0,AssetId:Number(q),ProcessCode:"",AssetName:"",Start:S?.CurrentProductionDate??new Date,End:S?.CurrentProductionDate??new Date,HeatName:null,LadleName:null,GradeName:null,Comments:null}),t(!0)},[S?.CurrentProductionDate,w]),O=q=>{w(q),t(!0)},T=q=>{q.HeatName?y(`The process is already linked to a heat ${q.HeatName}.  If you proceed you will unlink it from this heat in order to link it to another heat.`):r(!0),w(q)},I=q=>{d(!0)},P=q=>{h(!0)},N=q=>{w(q);const $=_pe(q.Start).format("YYYY/MM/DD HH:mm");C(`The heat ${q.HeatName} from ${$} will be unlinked.  Do you want to continue?`),o(!0)},F=q=>{w(q),q.HeatName?m(` The Process starting at ${_pe(q.Start).format("YYYY/MM/DD HH:mm")} associated with heat ${q.HeatName} will be deleted. Do you want to continue?`):m(` The Process starting at ${_pe(q.Start).format("YYYY/MM/DD HH:mm")} and not assigned to any heat will be deleted. Do you want to continue?`),s(!0)},L=q=>{q&&A(`/meltshop-heats/${S?.CurrentShiftId}?heatId=${q}`)},W=q=>{q.ProcessId!==null&&(q.ProcessCode==="C"&&A(`/caster-data-entry/${q.ProcessId}`),q.ProcessCode==="E"&&A(`/eaf-data-entry/${q.ProcessId}`))},H=async q=>{const $=await T4i(q.DelayId);if($.ok){const U=$.data.tables[0].rows[0],X=U.AssetId&&U.AssetId===13?"caster":"eaf";A(`/${X}-delays-manager/${U.ShiftId}?delayId=${U.DelayId}`)}};return{createData:z,editData:O,linkData:T,unlinkData:N,getGanttMenuOptions:q=>{let $=[];return q.ProcessId&&$.push({name:"See in Data Entry",key:"go_to_caster_data_entry",style:{fontWeight:"bold"},onClick:()=>W(q),icon:f.jsx(vw,{})}),q.HeatId&&($=$.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>L(q.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}])),q.HeatName&&($=$.concat([{name:"Unlink Process",key:"unlink",onClick:()=>N(q),icon:f.jsx(cT,{})}])),q.ProcessId&&($=$.concat([{name:"Link Process",key:"link",onClick:()=>T(q),icon:f.jsx(lT,{})}])),q.ProcessId?$.push({name:"Edit Process",key:"toggle_status",onClick:()=>O(q),icon:f.jsx(No,{})},{name:"Delete Process",key:"toggle_status",onClick:()=>F(q),icon:f.jsx(Mo,{})}):$.push({name:"New Process",key:"toggle_status",onClick:()=>z(Number(x?.id)),icon:f.jsx(No,{})}),$},getGanttDelaysMenuOptions:q=>{let $=[];return $.push({name:"Justify Delay",key:"justify_delay",onClick:()=>I(),icon:f.jsx(FMe,{})}),$.push({name:"Split Delay",key:"split_delay",onClick:()=>P(),icon:f.jsx(Bat,{})}),$.push({name:"See in Manager",key:"delays_manager",onClick:()=>H(q),icon:f.jsx(vw,{}),disabled:!q.DelayId}),$},goToHeats:L,goToDataEntry:W,showActiveModal:l,showDeleteModal:a,showEditModal:e,showLinkModal:n,showUnlinkModal:i,showJustifyModal:u,showSplitModal:p,messageLinkConfirmation:v,messageDeleteModal:g,messageUnlinkModal:M,setShowActiveModal:c,setShowDeleteModal:s,setShowEditModal:t,setShowLinkModal:r,setShowUnlinkModal:o,setShowJustifyModal:d,setShowSplitModal:h,setMessageLinkConfirmation:y,setMessageDeleteModal:m,setMessageUnlinkModal:C}},oqi=Rn(),aqi=({show:e,onHide:t,process:n})=>{const[r,i]=b.useState(!1),[o,a]=b.useState([]),[s,l]=b.useState(null),[c,u]=b.useState(""),[d,p]=b.useState(""),[h,g]=b.useState(!1),m=n?.ProcessCode==="C",v=`Link ${m?"Caster":"EAF"} Process`,y=async()=>{try{i(!0);const z=await(m?x3e:$3e)(n?.ProcessId,s.HeatId);z.ok?t(!0):p(z.message)}catch(A){p(A.message)}finally{i(!1),g(!1)}},M=async()=>{if(s===null){p("Please select a heat");return}n&&(s.IsLinked===1?g(!0):await y())},C=async()=>{if(!n)return;const z=await(m?JX:(O,T,I)=>rD(O,T,I))(c,n.Start,n.AssetId);z.ok&&z.data?.tables?.[0]?.rows&&a(z.data.tables[0].rows)},x=(A,z)=>{u(z)},w=async A=>{A.key==="Enter"&&(A.preventDefault(),await C())},S=(A,z)=>{l(z)};return b.useEffect(()=>{e&&(i(!1),(async()=>{if(l(null),n==null)return;const z=await(m?JX:(O,T,I)=>rD(O,T,I))("",n.Start,n.AssetId);z.ok&&z.data&&z.data.tables&&z.data.tables[0].rows&&a(z.data.tables[0].rows)})())},[e,n]),f.jsxs(f.Fragment,{children:[f.jsxs(We,{maxWidth:"xl",open:e,handleClose:()=>{t(!0)},id:"linkCasterProcess",title:v,children:[f.jsx(We.Content,{style:{padding:"15px 30px",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsxs(D,{item:!0,xs:12,children:[f.jsxs(bt,{children:[f.jsx("strong",{children:m?" Ladle Open":"Start"}),":"," ",oqi(n?.Start).format("YYYY/MM/DD HH:mm")]}),f.jsx(bt,{children:n&&n.HeatName?"Heat: "+n?.HeatName:" "})]}),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ji,{options:o,getOptionLabel:A=>A.HeatName,value:s,onChange:S,inputValue:c,onInputChange:x,renderOption:A=>f.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[f.jsx("span",{children:A.HeatName}),A.IsLinked===1&&f.jsx("span",{style:{color:"red",marginLeft:"10px"},children:"(linked)"})]}),renderInput:A=>f.jsx(je,{...A,label:c?"Heat":"Search Heat",placeholder:"Search Heat",variant:"outlined",fullWidth:!0,onKeyDown:w,InputLabelProps:{style:{height:"auto",marginTop:5,display:"flex",alignItems:"center"}}})})})]})}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Da,{fullWidth:!0,isLoading:r,disabled:r,variant:"contained",color:"primary",onClick:M,children:"Save"})})]})})]}),f.jsxs(We,{open:h,handleClose:()=>g(!1),title:"Warning",id:"warningModal",children:[f.jsx(We.Content,{children:f.jsx("p",{children:"This heat is already linked in another process. Do you want to proceed?"})}),f.jsxs(We.Actions,{children:[f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>g(!1),children:"Cancel"}),f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"primary",onClick:y,children:"Proceed"})]})]}),f.jsx(Mt,{error:d,onHide:()=>p("")})]})},sqi=({allDelayCodes:e})=>{const[t,n]=b.useState(null),r=o=>{if(o===void 0)return;const a=o.reduce((l,c,u)=>(l[c.id]=u,l),{});let s;o.forEach(l=>{if(l.parentId===null){s=l;return}const c=o[a[l.parentId]];c&&(c.children||(c.children=[]),c.children.push(l))}),n(s||null)};return{loadFilterDelays:()=>{const o=e.map(a=>({id:a.DelayCodeId,parentId:a.ParentDelayCodeId,name:a.DelayCodeName,isLeaf:!!a.IsLeaf,isActive:!0,children:[]}));r(o)},delayCodes:t}},lqi=Rt(e=>({sliderContainer:{position:"relative",marginBottom:e.spacing(4),paddingTop:e.spacing(3)},durationLabel:{position:"absolute",top:0,transform:"translateX(-50%)",textAlign:"center",fontSize:"0.75rem",backgroundColor:"rgba(255, 255, 255, 0.7)",padding:"2px 4px",borderRadius:"4px",fontWeight:"bold"},commentsInput:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},"& .MuiOutlinedInput-input":{height:"100px !important"}},infoLabel:{fontSize:12,color:"#757575"}})),WZe=e=>{const t=Math.floor(e/36e5),n=Math.floor(e%(1e3*60*60)/(1e3*60)),r=Math.floor(e%(1e3*60)/1e3);return`${t} hs ${n} min ${r} sec`},cqi=({show:e,onHide:t,delayId:n,refreshData:r})=>{const o=lqi(),[a,s]=b.useState(!1),[l,c]=b.useState(""),[u,d]=b.useState(null),[p,h]=b.useState(!1),[g,m]=b.useState(!1),[v,y]=b.useState(null),[M,C]=b.useState([]),{loadFilterDelays:x,delayCodes:w}=sqi({allDelayCodes:M}),S=v?.Start?mt.utc(v.Start).toDate():new Date,A=v?.End?mt.utc(v.End).toDate():new Date,{control:z,handleSubmit:O,setValue:T,getValues:I,reset:P,formState:{errors:N}}=Gn({}),F=async()=>{s(!0),y(null);try{const $=await fzt(Number(n));if($&&$.ok){const U=Ot($,"data.tables[0].rows[0]",null);U?y(U):c("Delay not found.")}else c("Failed to fetch delay details.")}catch{c("An error occurred while fetching the delay.")}finally{s(!1)}},L=async $=>{s(!0);try{const U=await Dzt($);if(U.ok){let X=[];const Q=Ot(U,"data.tables[0].rows",[]);Q.forEach(re=>{const ee=Lzt(re);X=[...X,ee]}),C(Q),s(!1)}else c(U.message||"Failed to fetch delays data.")}catch{c("An unexpected error occurred while fetching delays.")}finally{s(!1)}},W=async $=>{const U=$.delay1.End.getTime()-$.delay1.Start.getTime(),X=$.delay2.End.getTime()-$.delay2.Start.getTime();if(U<=10*1e3||X<=10*1e3){m(!0);return}const Q=await NTt($.delay1,$.delay2);Q.ok?(h(!0),await r()):c(Q.message),t()};b.useEffect(()=>{e&&n&&F()},[e,n]),b.useEffect(()=>{e&&v&&(P(),(async()=>{s(!0);const $=new Date((S.getTime()+A.getTime())/2);T("delay1.DelayId",v.DelayId),T("delay1.Start",S),T("delay1.End",$),T("delay2.Start",$),T("delay2.End",A),T("delay1.DelayCategoryId",v.DelayCategoryId),T("delay1.Comments",v.Comments),T("delay1.DelayCodeId",v.DelayCodeId),L(v?.AssetId?v.AssetId:void 0),d($),s(!1)})())},[e,v,n]),b.useEffect(()=>{if(M.length>0){x();const $=M.find(U=>U.DelayCodeId===v?.DelayCodeId);$&&T("delay1.DelayCodeName",$.DelayCodeName)}},[M]);const[H,j]=b.useState(v?.Start),G=WZe((I("delay1.End")?.getTime()??S.getTime())-(I("delay1.Start")?.getTime()??S.getTime())),q=WZe((I("delay2.End")?.getTime()??S.getTime())-(I("delay2.Start")?.getTime()??S.getTime()));return!v||!w?null:f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Split Delay"}),f.jsx(We,{title:"SPLIT DELAY",open:e,handleClose:()=>t(),id:"create-grade-modal",maxWidth:"lg",children:f.jsxs("form",{onSubmit:O(W),children:[f.jsx(We.Content,{dividers:!0,children:f.jsxs(D,{container:!0,justifyContent:"center",children:[f.jsxs(D,{md:10,style:{marginBottom:10},className:o.sliderContainer,children:[f.jsx(bt,{className:o.durationLabel,style:{left:"25%",color:"#3f51b5"},children:G}),f.jsx(bt,{className:o.durationLabel,style:{left:"75%",color:"green"},children:q}),f.jsx(LTt,{startTime:S,endTime:A,initialValue:u,onTimeChange:$=>{j($),T("delay1.End",$),T("delay2.Start",$)}})]}),f.jsxs(D,{container:!0,md:5,children:[f.jsx(bt,{children:"Delay 1"}),f.jsxs(D,{container:!0,md:12,spacing:1,style:{marginTop:10},children:[f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.Start",control:z,rules:{required:"Delay code is required"},render:({field:$})=>f.jsx(je,{label:"Start",variant:"outlined",value:Wn($?.value,"HH:mm:ss"),error:!!N.delay1?.Start,onChange:()=>{},disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.DelayCodeName",control:z,render:({field:$})=>f.jsxs(f.Fragment,{children:[f.jsx(tD,{inputTitle:"Delay",title:"Delay",dataSource:w,value:v?.DelayCodeId||0,description:$.value?$?.value:"",onSelect:(U,X)=>{T("delay1.DelayCodeId",U),T("delay1.DelayCodeName",X),T("delay1.DelayCategoryId",M.find(Q=>U===Q.DelayCodeId)?.DelayCategoryId||null)},selectBranch:!0,selectActive:!1,selectInternal:!1}),N.delay1?.DelayCodeId&&f.jsx("span",{children:N.delay1?.DelayCodeId.message})]})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay1.End",control:z,render:({field:$})=>f.jsx(je,{label:"End",variant:"outlined",value:Wn($?.value,"HH:mm:ss"),disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"delay1.DelayCategoryId",control:z,render:({field:$})=>f.jsx(uM,{value:$.value,onChange:$.onChange,assetId:v?.AssetId||null,error:N.delay1?.DelayCategoryId?.message||""})})}),f.jsx(D,{item:!0,md:12,children:f.jsx(Ue,{name:"delay1.Comments",control:z,render:({field:$})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",error:!!N.delay1?.Comments,value:$?.value,fullWidth:!0,maxRows:5,multiline:!0,margin:"dense",autoComplete:"off",onChange:U=>{U.target.value.length<=200&&T("delay1.Comments",U.target.value)}}),I("delay1.Comments")?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${I("delay1.Comments")?.length??0}/200 max.`}),I("delay1.Comments")?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})})})]})]}),f.jsx(D,{md:1}),f.jsxs(D,{container:!0,md:5,children:[f.jsx(bt,{children:"Delay 2"}),f.jsxs(D,{container:!0,md:12,spacing:1,style:{marginTop:10},children:[f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.Start",control:z,render:({field:$})=>f.jsx(je,{label:"Start",variant:"outlined",value:Wn($?.value,"HH:mm:ss"),error:!!N.delay2?.Start,disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.DelayCodeName",control:z,render:({field:$})=>f.jsxs(f.Fragment,{children:[f.jsx(tD,{inputTitle:"Delay",title:"Delay",dataSource:w,value:v?.DelayCodeId||0,description:$.value?$?.value:"",onSelect:(U,X)=>{T("delay2.DelayCodeId",U),T("delay2.DelayCodeName",X),T("delay2.DelayCategoryId",M.find(Q=>U===Q.DelayCodeId)?.DelayCategoryId||null)},selectBranch:!0,selectActive:!1,selectInternal:!1}),N.delay2?.DelayCodeId&&f.jsx("span",{children:N.delay2?.DelayCodeId.message})]})})}),f.jsx(D,{item:!0,md:6,children:f.jsx(Ue,{name:"delay2.End",control:z,render:({field:$})=>f.jsx(je,{label:"End",variant:"outlined",value:Wn($?.value,"HH:mm:ss"),disabled:!0,fullWidth:!0,margin:"dense",autoComplete:"off"})})}),f.jsx(D,{item:!0,md:6,style:{marginTop:8},children:f.jsx(Ue,{name:"delay2.DelayCategoryId",control:z,render:({field:$})=>f.jsx(uM,{value:$.value,onChange:$.onChange,assetId:v?.AssetId||null,error:N.delay2?.DelayCategoryId?.message||""})})}),f.jsx(D,{item:!0,md:12,children:f.jsx(Ue,{name:"delay2.Comments",control:z,render:({field:$})=>f.jsxs(f.Fragment,{children:[f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",error:!!N.delay2?.Comments,value:$?.value,fullWidth:!0,maxRows:5,multiline:!0,margin:"dense",autoComplete:"off",onChange:U=>{U.target.value.length<=200&&T("delay2.Comments",U.target.value)}}),I("delay2.Comments")?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${I("delay2.Comments")?.length??0}/200 max.`}),I("delay2.Comments")?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})})})]})]})]})}),f.jsx(We.Actions,{style:{padding:"20px 90px 30px"},children:f.jsxs(D,{container:!0,spacing:1,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:2,xs:12,children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(),size:"medium",children:"Cancel"})}),f.jsx(D,{item:!0,md:2,xs:12,children:f.jsx(Fe,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:"primary",type:"submit",size:"medium",children:"Split"})})]})})]})}),f.jsx(pr,{open:g,autoHideDuration:2500,onClose:()=>m(!1),children:f.jsxs(Pr,{elevation:6,variant:"filled",severity:"error",onClose:()=>m(!1),children:["The minimum duration allowed is ",10," seconds"]})}),f.jsx(pr,{open:p,autoHideDuration:2500,onClose:()=>h(!1),children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:()=>h(!1),children:"The operation was completed successfully"})}),f.jsx(Mt,{error:l,onHide:()=>c(""),title:"Error Creating Grade"})]})},uqi=({value:e,onChange:t,disabled:n=!1,error:r=""})=>{const[i,o]=b.useState([]),[a,s]=b.useState(""),[l,c]=b.useState(!1),[u,d]=b.useState(null),p=async()=>{c(!0);try{const h=await yte();h&&h.ok?o(h.data.tables[0].rows):d("Failed to fetch assets.")}catch{d("An error occurred while fetching assets.")}finally{c(!1)}};return b.useEffect(()=>{p()},[]),f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:i,getOptionSelected:(h,g)=>h.AssetId===g.AssetId,getOptionLabel:h=>h.AssetName,onChange:(h,g)=>{t(g?.AssetId??null)},disabled:n,renderInput:h=>f.jsx(f.Fragment,{children:f.jsx(je,{...h,label:"Asset",variant:"outlined",error:!!r,size:"small",fullWidth:!0,helperText:r,InputProps:{...h.InputProps,endAdornment:f.jsx(f.Fragment,{children:l?f.jsx(Kt,{}):h.InputProps.endAdornment})}})}),value:i?.find(h=>h.AssetId===e)??null})},dqi=Rt(()=>({dateTimePicker:{},"@global":{"*::-webkit-scrollbar":{width:"10px",background:"#fff"},"*::-webkit-scrollbar-thumb":{backgroundColor:"	#C8C8C8"},"*::-webkit-scrollbar-track":{borderRadius:"10px"},"*::-webkit-scrollbar:horizontal":{height:"10px"}},infoLabel:{fontSize:12,color:"#757575"},inputEditable:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}},commentsInput:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"},"& .MuiOutlinedInput-input":{height:"60px !important"}},autocompleteWithSuggestions:{"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{border:"2px solid #3F51B5"}}})),pqi=({show:e,onHide:t,refreshData:n,delayId:r,ifJustified:i})=>{const o=dqi(),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(null),[p,h]=b.useState(""),[g,m]=b.useState(!1),[v,y]=b.useState(!1),[M,C]=b.useState(""),[x,w]=b.useState([]),[S,A]=b.useState([]),[z,O]=b.useState([]),{state:{settings:T}}=ka(),I=Ot(T,"DELAYS_JUSTIFY_DURATION_TOLERANCE_IN_MINUTES",30),{control:P,handleSubmit:N,getValues:F,reset:L,watch:W,setValue:H,formState:{errors:j}}=Gn({defaultValues:{}}),G=W("Comments"),q=W("Start"),$=W("End"),U=W("AssetId"),X=mt($).diff(mt(q),"seconds"),Q=b.useMemo(()=>X&&I?X>Number(I)*60:!0,[X,I]),[re,ee]=b.useState(Q),se=async()=>{c(!0);try{const oe=await fzt(r);if(oe&&oe.ok){let ae=Ot(oe,"data.tables[0].rows[0]",null);ae?(y(!1),C(i?"JUSTIFY DELAY":"EDIT DELAY"),L({DelayId:ae.DelayId,AssetId:ae.AssetId,DelayCodeId:ae.DelayCodeId,Start:ae.Start?mt.utc(ae.Start).toDate():null,End:ae.End?mt.utc(ae.End).toDate():null,DelayCategoryId:ae.DelayCategoryId,IsManual:ae.IsManual,Comments:ae.Comments,Duration:ae.Duration,WhatDescription:ae.WhatDescription,WhyDescription:ae.WhyDescription,SolutionDescription:ae.SolutionDescription})):d("Delay not found.")}else d("Failed to fetch delay details.")}catch{d("An error occurred while fetching the delay.")}finally{c(!1)}},pe=async()=>{const oe=await S3t();if(oe.ok){const ae=oe.data;w(ae.tables[0].rows.map(ne=>ne.Value)),A(ae.tables[1].rows.map(ne=>ne.Value)),O(ae.tables[2].rows.map(ne=>ne.Value))}else d(oe.message)},te=async oe=>{if(s(!0),i){const ae=await oTe(oe.DelayId,oe.DelayCodeId??null,oe.DelayCategoryId??null,oe.Comments??null,oe.WhatDescription??null,oe.WhyDescription??null,oe.SolutionDescription??null);ae.ok?await n():d(ae.message)}else{const ae=await _Tt(oe.DelayId===0?null:oe.DelayId,oe.AssetId,oe.Start,oe.End,oe.DelayCodeId,oe.DelayCategoryId,oe.Comments,oe.WhatDescription,oe.WhyDescription,oe.SolutionDescription);ae.ok?await n():d(ae.message)}s(!1),h("Delay saved successfully."),m(!0),t(!0)};b.useEffect(()=>{ee(Q)},[Q,r]),b.useEffect(()=>{e&&r&&(se().then(()=>{}),pe())},[e,r]);const ce=b.useMemo(()=>{if(q&&$){const oe=mt.duration(mt($).diff(mt(q))),ae=Math.floor(oe.asMinutes()),ne=oe.seconds();return`${ae}m ${ne}s`}else return""},[q,$]);return l?f.jsx(Kt,{style:{position:"absolute",top:"50%",left:"50%"}}):f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Justify Delay"}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,className:o.dateTimePicker,children:f.jsx(We,{maxWidth:"md",open:e,handleClose:()=>{t(!0)},id:"upsertDelay",title:M,children:f.jsxs("form",{onSubmit:N(te),children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},dividers:!0,children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!l&&f.jsxs(f.Fragment,{children:[f.jsxs(D,{container:!0,spacing:1,style:{alignItems:"center"},children:[f.jsxs(D,{item:!0,xs:4,md:4,children:[f.jsx(Ue,{name:"Start",control:P,rules:{required:"Start date is required",validate:{notAfterEnd:oe=>{const ae=W("End");return oe&&ae&&oe>ae?"Start date cannot be after End date.":!0},notInFuture:oe=>oe&&oe>new Date?"Start date cannot be in the future.":!0}},render:({field:oe})=>f.jsx(Cd,{disabled:i,label:"Delay Start",timezone:Rc.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm:ss",ampm:!1,value:mt(oe.value),onChange:oe.onChange,inputRef:oe.ref,slotProps:{textField:{variant:"outlined",size:"small",error:!!j.Start}}})}),j.Start&&f.jsx("p",{style:{color:"red"},children:j.Start.message})]}),f.jsxs(D,{item:!0,xs:4,md:4,children:[f.jsx(Ue,{name:"End",control:P,rules:{validate:{notBeforeStart:oe=>{const ae=W("Start");return oe&&ae&&oe<ae?"End date cannot be before Start date.":!0},notInFuture:oe=>oe&&oe>new Date?"End date cannot be in the future.":!0,notSameAsStart:oe=>{const ae=W("Start");return oe&&ae&&mt(oe).isSame(mt(ae))?"End date cannot be the same as Start date.":!0}}},render:({field:oe})=>f.jsx(Cd,{disabled:i,label:"Delay End",format:"MM/DD/YYYY HH:mm:ss",ampm:!1,timezone:Rc.getInstance().getServerTimeZone(),value:mt(oe.value),onChange:oe.onChange,inputRef:oe.ref,slotProps:{textField:{variant:"outlined",size:"small",error:!!j.End}}})}),j.End&&f.jsx("p",{style:{color:"red"},children:j.End.message})]}),f.jsx(D,{item:!0,xs:4,md:4,style:{marginBottom:"3px"},children:f.jsx(je,{label:"Duration (min)",disabled:!0,variant:"outlined",fullWidth:!0,value:ce,margin:"dense",autoComplete:"off"})})]}),f.jsxs(D,{container:!0,spacing:1,style:{alignItems:"center",marginTop:"12px"},children:[f.jsx(D,{item:!0,xs:4,md:4,children:f.jsx(Ue,{name:"AssetId",control:P,rules:{required:"Asset is required"},render:({field:oe})=>f.jsx(uqi,{value:oe.value??0,onChange:oe.onChange,error:j.AssetId?.message,disabled:i})})}),f.jsx(D,{item:!0,xs:4,md:4,style:{marginBottom:"3px"},children:f.jsx(Ue,{name:"DelayCodeId",control:P,render:({field:oe})=>f.jsx(aTe,{assetId:U,value:oe.value,onChange:(ae,ne)=>{oe.onChange(ae),H("DelayCategoryId",ne.DelayCategoryId)}},`DelayCodeId-${U}`)})}),f.jsx(D,{item:!0,xs:4,md:4,children:f.jsx(Ue,{name:"DelayCategoryId",control:P,render:({field:oe})=>f.jsx(uM,{value:oe.value??null,onChange:oe.onChange,assetId:U,error:j.DelayCategoryId?.message||""})})})]}),f.jsxs(D,{item:!0,md:12,xs:12,style:{marginTop:"12px"},children:[f.jsx(Ue,{name:"Comments",control:P,render:({field:{value:oe,onChange:ae}})=>f.jsx(je,{label:"Comments",className:o.commentsInput,variant:"outlined",style:{margin:"8px 0"},maxRows:4,fullWidth:!0,margin:"dense",multiline:!0,autoComplete:"off",value:oe??"",onChange:ne=>{ne.target.value.length<=200&&ae(ne)}})}),f.jsx(D,{container:!0,style:{marginBottom:18},children:f.jsxs(D,{item:!0,children:[G?.length>=1&&G?.length!==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:`${G?.length}/200 max.`}),G?.length==200&&f.jsx("span",{className:o.infoLabel,style:{marginLeft:5},children:"Max. 200"})]})})]}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"IsManual",control:P,render:({field:oe})=>f.jsx(Io,{control:f.jsx(Qr,{color:"primary",checked:v||oe.value,disabled:!0}),label:"Manual Delay"})})}),f.jsxs(D,{item:!0,xs:12,md:12,container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(Fe,{onClick:()=>ee(oe=>!oe),color:"primary",startIcon:re?f.jsx(WTt,{}):f.jsx(qTt,{}),children:"Upset Conditions"})}),re&&f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"WhatDescription",control:P,render:({field:oe})=>f.jsx(GI,{options:x,value:oe.value,onChange:oe.onChange,label:"What",className:o.autocompleteWithSuggestions})})}),f.jsx(D,{item:!0,xs:6,md:6,children:f.jsx(Ue,{name:"WhyDescription",control:P,render:({field:oe})=>f.jsx(GI,{options:S,value:oe.value,onChange:oe.onChange,label:"Why",className:o.autocompleteWithSuggestions})})}),f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(Ue,{name:"SolutionDescription",control:P,render:({field:oe})=>f.jsx(GI,{options:z,value:oe.value,onChange:oe.onChange,label:"Solution",className:o.autocompleteWithSuggestions})})})]})," "]})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,startIcon:a&&f.jsx(Kt,{size:"1rem"}),disabled:a,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})})})}),f.jsx(pr,{open:g,autoHideDuration:2500,onClose:()=>m(!1),children:f.jsx(Pr,{elevation:6,variant:"filled",severity:"success",onClose:()=>m(!1),children:"Delay was saved successfully"})}),f.jsx(Mt,{error:u,onHide:()=>d("")})]})},Tl=Rn(),hqi=({show:e,onHide:t,refreshData:n,comparisonDate:r})=>{const[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[p,h]=b.useState(""),[g,m]=b.useState(""),{state:v,actions:y}=hT(),[M,C]=b.useState(!1),[x,w]=b.useState(!1),{shiftInfo:S}=la(),[A,z]=b.useState(null),[O,T]=b.useState(null),[I,P]=b.useState(""),N=v.selectedAsset?.id&&Number(v.selectedAsset?.id)==13,F=N?"Ladle Open":"Start",L=N?"Ladle Close":"End",W=(te,ce,oe)=>{let ae=null,ne=null;for(const he of te)oe&&he.ProcessId===oe||he.End&&he.End<=ce&&(!ae||he.End>ae.End)&&(ae=he);const le=ae?ae.End:ce;for(const he of te)oe&&he.ProcessId===oe||he.Start>le&&(!ne||he.Start<ne.Start)&&(ne=he);return{previousProcess:ae,nextProcess:ne}},{setValue:H,control:j,handleSubmit:G,reset:q,watch:$,formState:{errors:U}}=Gn({defaultValues:{},mode:"onChange"}),X=Ot(S,"CurrentStart",null),Q=Ot(S,"CurrentEnd",null),re=te=>ce=>{const oe=Tl.utc(X).local(),ae=Tl.utc(ce).local();te(ce),ae.isSame(oe)?C(!1):C(!0)},ee=async te=>{o(!0);const ce=te.Start,oe=te.End,{selectedProcess:ae,selectedAsset:ne}=v,le=te.ProcessId===0?null:te.ProcessId,he=ae&&ae.ProcessId!==0?ae.AssetId:Number(ne?.id);if(!he){y.setErrorMessage("Asset ID is not defined."),o(!1);return}const me=he===13?await M3e(le,ce,oe):await N3t(le,ce,oe,!0,he);me.ok?(y.setNotificationMessage(`Process was ${l?"created":"edited"} successfully`),await n()):y.setErrorMessage(me?.message),o(!1),t(!0)},se=$("Start"),pe=$("End");return b.useEffect(()=>{Math.abs(Tl(se).diff(Tl(pe),"hours"))>3?w(!0):w(!1)},[se,pe]),b.useEffect(()=>{C(!1),e?(o(!1),(async()=>{s(!0),P("");const te=v.selectedProcess;if(te!=null){if(te.ProcessId===0){if(h(`NEW
						${v.selectedAsset?.name.toUpperCase()}
						 PROCESS`),m(`New
						${v.selectedAsset?.name.toUpperCase()}
						 Process`),c(!0),v.selectedAsset&&r){const ce=v.ganttData.Processes.filter(he=>he.AssetId===Number(v.selectedAsset?.id)),{previousProcess:oe,nextProcess:ae}=W(ce,r);z(oe),T(ae);let ne,le;if(oe&&oe.End?ne=Tl(oe.End).add(2,"minutes").toDate():ne=X||Tl().toDate(),ae&&ae.ProcessStart?le=Tl(ae.ProcessStart).subtract(2,"minutes").toDate():le=Q?Tl(Q).add(1,"hour").toDate():Tl().toDate(),oe&&oe.End&&ae&&ae.ProcessStart&&Tl(ae.ProcessStart).diff(Tl(oe.End),"minutes")<4){P("The space between processes is too small to create a new process in the selected position."),H("Start",oe.End),H("End",ae.ProcessStart),s(!1);return}H("ProcessId",0),H("Start",ne),H("End",le)}}else{if(h(`EDIT 
							${v.selectedProcess?.AssetId==13?"CASTER":"EAF"}
							PROCESS`),m(`Edit
						${v.selectedProcess?.AssetId==13?"CASTER":"EAF"}
						 Process`),c(!1),te.ProcessStart){const ce=v.ganttData.Processes.filter(ne=>ne.AssetId===te.AssetId),{previousProcess:oe,nextProcess:ae}=W(ce,te.ProcessStart,te.ProcessId);z(oe),T(ae)}H("ProcessId",te.ProcessId),H("Start",te.ProcessStart),H("End",te.End)}te.End===null&&d(!0),s(!1)}})()):(q(),d(!1))},[e]),b.useEffect(()=>{u&&H("End",null)},[u]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:`${g}`}),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,children:f.jsx(We,{maxWidth:"md",open:e,handleClose:()=>{t(!0)},id:"upsertProcess",title:p,children:f.jsxs("form",{onSubmit:G(ee),children:[f.jsxs(We.Content,{style:{padding:"15px 30px"},children:[a&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"300px"},children:f.jsx(Cn,{})}),!a&&f.jsxs(f.Fragment,{children:[f.jsx(D,{container:!0,spacing:1,children:f.jsxs(D,{item:!0,xs:12,md:6,children:[f.jsx(Ue,{name:"Start",control:j,rules:{required:"The Start field is required",validate:{notAfterEnd:te=>{const ce=$("End");return ce?Tl(te).isBefore(Tl(ce))||"Start must be before End":!0},notBeforePreviousEnd:te=>{const ce=A?.End;return ce?Tl(te).isSameOrAfter(Tl(ce))||"Start cannot be less than the End of the Previous Process":!0},notAfterNextStart:te=>O?.Start?Tl(te).isSameOrBefore(Tl(O.Start))||"Start cannot be greater than the Start of the Next Process":!0}},render:({field:te})=>f.jsx(Cd,{label:F,timezone:Rc.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",disabled:!!I,timeSteps:{minutes:1},value:Tl(te.value),onChange:re(te.onChange),inputRef:te.ref,slotProps:{textField:{variant:"outlined",error:!!U.Start}}})}),U.Start&&f.jsx("p",{style:{color:"red",fontSize:12},children:U.Start?.message})]})}),f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,md:6,style:{marginTop:10},children:[f.jsx(Ue,{name:"End",control:j,rules:{required:u?!1:"The End field is required",validate:{notBeforeStart:te=>{const ce=$("Start");return ce?Tl(te).isAfter(Tl(ce))||u||"End must be after Start":!0},notAfterNextStart:te=>O?.ProcessStart?Tl(te).isSameOrBefore(Tl(O.ProcessStart))||"End cannot be greater than the Start of the Next Process":!0}},render:({field:te})=>f.jsx(Cd,{label:L,timezone:Rc.getInstance().getServerTimeZone(),format:"MM/DD/YYYY HH:mm",disabled:!!I||u,timeSteps:{minutes:1},value:Tl(te.value),onChange:te.onChange,inputRef:te.ref,slotProps:{textField:{variant:"outlined",error:!!U.End}}})}),U.End&&f.jsx("p",{style:{color:"red",fontSize:12},children:U.End?.message})]}),I&&f.jsx("p",{style:{color:"red",fontSize:18},children:I}),f.jsx(D,{item:!0,xs:12,md:6,style:{marginTop:20},children:f.jsx(Io,{control:f.jsx(Qr,{color:"primary",checked:u,onChange:te=>{d(te.target.checked),te.target.checked?H("End",null):H("End",new Date)}}),label:"Process not finished"})})]})]})]}),f.jsx(We.Actions,{style:{padding:"20px 30px 30px"},children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"default",onClick:()=>t(!0),children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:I?f.jsx(Fe,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",disabled:!!I,children:"Save"}):f.jsx(Da,{fullWidth:!0,variant:"contained",color:"primary",type:"submit",isLoading:i,children:"Save"})})]})})]})})})})]})},oEt=({columnWidth:e,assets:t,showArrowTriangle:n,startCalendarDate:r,endCalendarDate:i,rowHeight:o,barFill:a,lineSectionFill:s,lineFill:l,refreshData:c,withoutContextMenu:u=!1})=>{const{state:d,actions:p}=hT(),[h,g]=b.useState(null),[m,v]=b.useState(null),y=fa(),{shiftInfo:M}=la(),{getGanttMenuOptions:C,getGanttDelaysMenuOptions:x,showEditModal:w,setShowEditModal:S,showLinkModal:A,setShowLinkModal:z,showJustifyModal:O,setShowJustifyModal:T,showSplitModal:I,setShowSplitModal:P,showDeleteModal:N,messageDeleteModal:F,setShowDeleteModal:L,setMessageDeleteModal:W,messageLinkConfirmation:H,setMessageLinkConfirmation:j,showUnlinkModal:G,messageUnlinkModal:q,setShowUnlinkModal:$,setMessageUnlinkModal:U}=iqi(),{showContextMenu:X,registerConfig:Q}=ks(),re=pe=>{pe.source.ProcessCode==="C"&&y(`/caster-data-entry/${pe.source.ProcessId}`),pe.source.ProcessCode==="E"&&y(`/eaf-data-entry/${pe.source.ProcessId}`)},ee=async pe=>{if($(!1),U(""),pe!=="OK"||d.selectedProcess===null)return;p.setIsLoadingBackground(!0);const ce=await(d.selectedProcess.ProcessCode==="C"?C3e:U3e)(d.selectedProcess.ProcessId);ce.ok?(p.setIsLoadingBackground(!1),p.setNotificationMessage("Process unlinked successfully"),await c()):(p.setIsLoadingBackground(!1),p.setErrorMessage(ce.message))},se=async pe=>{if(L(!1),W(""),pe!=="OK"||d.selectedProcess===null)return;p.setIsLoadingBackground(!0);const te=await czt(d.selectedProcess.ProcessId);te.ok?(p.setIsLoadingBackground(!1),p.setNotificationMessage("Process deleted successfully"),await c()):(p.setIsLoadingBackground(!1),p.setErrorMessage(te.message))};return b.useEffect(()=>{Q({id:"ganttSection",getOptions:C})},[M?.CurrentShiftId]),b.useEffect(()=>{Q({id:"ganttSectionDelaysMenu",getOptions:x})},[M?.CurrentShiftId]),f.jsxs(f.Fragment,{children:[G&&f.jsx(Mn,{title:"Unlink Process"}),N&&f.jsx(Mn,{title:"Delete Process"}),f.jsx(rqi,{columnWidth:e,assets:t,showArrowTriangle:n,startCalendarDate:r,endCalendarDate:i,rowHeight:o,barFill:a,lineSectionFill:s,lineFill:l,onDoubleClick:pe=>re(pe),onContextMenu:(pe,te)=>{u||(te.timestamp&&g(te.timestamp),te.type==="asset"&&p.setSelectedAsset(te.asset),te.type!=="taskLine"&&X(pe,te,"ganttSection"),te.type==="taskLine"&&te.eventCode==="D"&&(v(te.DelayId),X(pe,te,"ganttSectionDelaysMenu")))}}),f.jsx(rl,{title:"Warning!",message:H,open:!!H,onClose:pe=>{pe==="OK"&&z(!0),j("")}}),f.jsx(rl,{title:"Confirmation",message:q,open:G,onClose:ee}),f.jsx(rl,{title:"Confirmation",message:F,open:N,onClose:se}),f.jsx(aqi,{show:A,onHide:async()=>{z(!1),p.setNotificationMessage("Process linked successfully"),await c()},process:d.selectedProcess}),f.jsx(hqi,{show:w,onHide:()=>S(!1),refreshData:c,comparisonDate:h}),f.jsx(pqi,{show:O,onHide:()=>T(!1),refreshData:c,ifJustified:!0,delayId:m}),f.jsx(cqi,{show:I,onHide:()=>P(!1),refreshData:c,delayId:m})]})},fqi=Rn(),gqi=()=>({columnData:[{headerName:"Heat",field:"HeatNameValue",minWidth:65,cellRenderer:zd,cellRendererParams:{linkProperty:"HeatNameLink"},flex:1},{headerName:"Grade",field:"Grade",minWidth:80,flex:1},{headerName:"Sample",field:"Sample",minWidth:69,flex:1},{headerName:"Elements",field:"Elements",minWidth:80,wrapText:!0,autoHeight:!0,flex:4},{headerName:"Compatible Grades",field:"CompatibleGrades",minWidth:140,flex:2},{headerName:"Results Time",field:"ResultsTime",minWidth:110,valueGetter:n=>fqi(n.data?.ResultsTime).format("MM/DD HH:mm")||"",flex:1},{headerName:"Technician",field:"LabTechnician",minWidth:90,flex:1},{headerName:"Comments",field:"Comments",minWidth:100,flex:1}],defaultColDef:{flex:1,resizable:!0,suppressHeaderMenuButton:!0,autoHeight:!0,wrapText:!0}}),mqi=()=>{const e=fa(),t=r=>{r!==null&&e(r)};return{getMissedChemistriesMenuOptions:r=>{let i=[];return r.HeatNameLink&&i.push({name:"See in Heat Report",key:"go_to_heat_report",style:{fontWeight:"bold"},onClick:()=>t(r.HeatNameLink)}),i},goToHeatReport:t}},vqi=()=>{const e=b.useRef(null),{state:{casterChemistries:t,isLoadingChemistryGrid:n}}=hT(),[r,i]=b.useState(null);yj();const{columnData:o}=gqi(),{getMissedChemistriesMenuOptions:a,goToHeatReport:s}=mqi(),{showContextMenu:l,registerConfig:c}=ks(),u=d=>{i(d.api)};return b.useMemo(()=>{n&&e.current!==null&&e.current.api!==void 0?e.current.api.showLoadingOverlay():e.current!==null&&e.current.api!==void 0&&e.current.api.hideOverlay()},[n]),b.useEffect(()=>{c({id:"missedChemistries",getOptions:a})},[]),f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,md:12,xs:12,style:{height:"40vh",minHeight:"30vh",border:"1px solid #e0e0e0",margin:"20px 0 10px"},children:f.jsx(Kn,{ref:e,rowSelection:"single",rowHeight:35,onGridReady:u,rowData:t,columnDefs:o,suppressContextMenu:!0,onRowDoubleClicked:d=>{s(d.data.HeatNameLink)},onCellContextMenu:d=>{d.event&&l(d.event,d.data,"missedChemistries")}})})})},bqi=Rt(e=>Mp({card:{width:250,height:91},row:{marginBottom:e.spacing(2)},label:{fontWeight:"bold",userSelect:"none"},value:{}})),yqi=()=>{const e=bqi(),[t,n]=b.useState(""),{shiftInfo:r}=la(),[i,o]=b.useState(null),a=async()=>{if(r){const s=await _Ai(r.CurrentShiftId);s.ok?o(s.data.tables[0].rows[0]):n(s.message)}};return b.useEffect(()=>{if(!r)return;a();let s;return r.CurrentShiftId===r.LastShiftId&&(s=setInterval(()=>{a()},12e4)),()=>{s&&clearInterval(s)}},[r]),f.jsxs(f.Fragment,{children:[f.jsx(yD,{className:e.card,elevation:1,children:f.jsx(MD,{children:f.jsxs(D,{container:!0,direction:"column",children:[f.jsxs(D,{item:!0,container:!0,justify:"space-between",className:e.row,children:[f.jsx(bt,{className:e.label,children:"Cast Tons/hour"}),f.jsx(bt,{className:e.value,children:i?i.CASTonsPerHour?.toFixed(2):"-"})]}),f.jsxs(D,{item:!0,container:!0,justify:"space-between",className:e.row,children:[f.jsx(bt,{className:e.label,children:"Cast Tons"}),f.jsx(bt,{className:e.value,children:i?i.CASTons?.toFixed(2):"-"})]})]})})}),f.jsx(Mt,{error:t,onHide:()=>n("")})]})},qZe=Rn(),Mqi=({})=>{const{shiftInfo:e}=la(),{state:t}=ka(),n=Ot(t?.settings,"maxTTT",180),r=Ot(e,"CurrentShiftId",null);return{columns:[{field:"AssetName",headerName:"EAF",cellRenderer:Ete,cellClass:o=>o.data.AssetId?`eaf-${o.data.AssetId}`:"",minWidth:88,flex:1},{field:"HeatName",headerName:"Heat",cellRenderer:o=>zd({...o,link:`/meltshop-heats/${r}?heatId=${o.data.HeatId}`}),minWidth:65,flex:1},{field:"GradeName",headerName:"Grade",minWidth:80,flex:1},{field:"LadleName",headerName:"Ladle",minWidth:60,flex:1},{field:"Start",headerName:"Start",cellRenderer:o=>zd({...o,link:`/eaf-data-entry/${o.data.ProcessId}`}),minWidth:62,valueGetter:o=>o.data.Start?qZe(o.data.Start).format("HH:mm"):"",flex:1},{field:"End",headerName:"End",valueGetter:o=>o.data.End?qZe(o.data.End).format("HH:mm"):"",minWidth:62,flex:1},{field:"TapToTap",headerName:"Tap To Tap",minWidth:90,cellRenderer:o=>{const a=o.value,s=Number(a)>n,l=f.jsx("span",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",textAlign:"right"},children:a});return s?f.jsx(tl,{title:`Maximum limit: ${n} minutes`,placement:"top",children:l}):l},cellClassRules:{"max-limit":o=>Number(o.value)>n},flex:1},{field:"PowerOn",headerName:"Power On",type:["numericColumn","numericWidth"],minWidth:84,flex:1},{field:"MWH",headerName:"MWH",valueGetter:o=>o.data.MWH?o.data.MWH.toFixed(1):"",minWidth:55,cellStyle:{textAlign:"right"},flex:1},{field:"OxygenVolume",headerName:"O2 Vol [scf]",valueGetter:o=>o.data.OxygenVolume?o.data.OxygenVolume.toFixed(1):"",cellStyle:{textAlign:"right"},minWidth:100,flex:1},{field:"Charges",headerName:"Charges",type:["numericColumn","numericWidth"],minWidth:76,flex:1},{field:"ScrapTons",headerName:"Scrap [lbs]",type:["numericColumn","numericWidth"],minWidth:92,flex:1},{field:"LastTemperature",headerName:"Last Temp",type:["numericColumn","numericWidth"],minWidth:92,cellStyle:{textAlign:"right"},flex:1},{field:"TrimProbeTemperature",headerName:"Trim Temp",minWidth:89,cellStyle:{textAlign:"right"},flex:1},{field:"DeltaT",headerName:"Delta T",minWidth:68,cellStyle:{textAlign:"right"},flex:1},{field:"SteelWeight",headerName:"Steel Weight",minWidth:102,cellStyle:{textAlign:"right"},flex:1},{field:"IsProcessManual",headerName:"",type:["nonSorteable","nonFilterable","centerAligned"],cellRenderer:pte,cellClass:"ag-button-cell",minWidth:80,flex:1}]}},Cqi=()=>{const{shiftInfo:e}=la(),t=fa(),n=o=>{o&&t(`/meltshop-heats/${e?.CurrentShiftId}?heatId=${o}`)},r=o=>{o!==null&&t(`/eaf-data-entry/${o}`)};return{getMenuOptions:o=>{let a=[];return o.ProcessId&&o.IsActive&&a.push({name:"See in Data Entry",key:"go_to_eaf",onClick:()=>{r(o.ProcessId)},style:{fontWeight:"bold"},icon:f.jsx(vw,{})}),o.HeatId&&o.IsActive&&(a=a.concat([{name:"See in Heat Table",key:"go_to_heat",onClick:()=>n(o.HeatId),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}])),a},goToDataEntry:r}},xqi=({loadingGrid:e,rows:t})=>{const n=b.useRef(null),{columns:r}=Mqi({}),{getMenuOptions:i,goToDataEntry:o}=Cqi(),{showContextMenu:a,registerConfig:s}=ks(),{shiftInfo:l}=la(),c=p=>{p.preventDefault()},u=p=>{if(!p.data.IsActive)return{background:"#E8EBEB"}},{columnTypes:d}=ku({});return b.useEffect(()=>{e&&n.current!==null&&n.current.api!==void 0?n.current.api.showLoadingOverlay():n.current!==null&&n.current.api!==void 0&&n.current.api.hideOverlay()},[e]),b.useEffect(()=>{s({id:"eafProcesses",getOptions:i})},[l?.CurrentShiftId]),f.jsx("div",{onContextMenu:c,children:f.jsx("div",{children:f.jsx(D,{container:!0,children:f.jsx(D,{item:!0,md:12,xs:12,style:{height:"50vh",minHeight:"38vh",border:"1px solid #e0e0e0",margin:"20px 0 10px"},children:f.jsx(Kn,{ref:n,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,columnDefs:r,columnTypes:d,getRowStyle:u,suppressContextMenu:!0,onRowDoubleClicked:p=>{p.data.IsActive&&o(p.data.ProcessId)},onCellContextMenu:p=>{p.api.deselectAll(),p.node.setSelected(!0),p.event&&a(p.event,p.data,"eafProcesses")}})})})})})},$I=new Map,BZe=new Map,QY=["#dae8fc","#d5e8d4","#f8cfcc","#d17238","orange","yellow"];let jZe=0;const wqi=e=>{if(e){if(!$I.has(e)){const t=e.charAt(0),n=parseInt(t,10)-1;if(isNaN(n)||n<0||n>=QY.length)return"#f8cfcc";const r=QY[n];$I.set(e,r)}return $I.get(e)}else return"#f8cfcc"},Npe=e=>{if(!$I.has(e)){const t=QY[jZe%QY.length];$I.set(e,t),jZe++}return $I.get(e)},fR=Rn(),N5={EAF1:11,EAF2:12,CASTER:13},Sqi="#e9ecef",aEt=e=>{const[t,n]=b.useState([]),{actions:r}=hT(),i=Ot(e,"CurrentStart",null),o=b.useMemo(()=>[{id:N5.EAF1.toString(),name:"EAF 1",processes:[],color:Npe("EAF 1")},{id:N5.EAF2.toString(),name:"EAF 2",processes:[],color:Npe("EAF 2")},{id:N5.CASTER.toString(),name:"Caster",processes:[],color:Npe("CASTER")}],[]),a=(h,g)=>({id:`${h.AssetId} - ${h.HeatName}`,start:h.Start,end:h.End,processStart:h.ProcessStart,type:"task",progress:100,name:h.HeatName??"unlinked",processLines:[],source:h,styles:{backgroundColor:g,progressColor:g,borderColor:"black"},textLeftBottom:Wn(h.Start,"HH:mm"),textRightBottom:Wn(h.End,"HH:mm"),textLeftTop:h.LadleName??"",textRightTop:h.GradeName??""}),s=h=>{const[g,m]=h.split("m ");return`${g}min ${m}`},l=(h,g)=>({id:g?`${h.AssetId}-${g}`:h.AssetId.toString(),DelayId:h.DelayId,name:"",eventCode:h.EventCode,DelayCodeName:h.DelayCodeName,start:h.Start,end:h.End,type:"taskLine",comments:f.jsxs(f.Fragment,{children:[h.EventCode==="H"&&f.jsx("p",{children:f.jsxs("strong",{children:["Energy Cons.: ",h.Comments]})}),h.EventCode==="D"&&f.jsxs(f.Fragment,{children:[f.jsx("p",{children:f.jsxs("strong",{children:["Delay: ",s(h.Comments)]})}),f.jsxs("p",{children:["Delay Code: ",h.DelayCodeName||"(Not specified)"]})]}),h.EventCode==="C"&&f.jsx("p",{children:f.jsx("strong",{children:h.Comments})}),h.EventCode!=="H"&&h.EventCode!=="D"&&h.EventCode!=="C"&&f.jsx("p",{children:f.jsxs("strong",{children:["Speed: ",h.Comments.replace(/[^\d.]/g,"")," ipm"]})}),f.jsx("p",{children:h.EventCode==="C"?`Time: ${Wn(h.Start,"HH:mm:ss")}`:`From: ${Wn(h.Start,"HH:mm:ss")} to: ${Wn(h.End,"HH:mm:ss")}`})]}),styles:{backgroundColor:h.Color||"blue",progressColor:h.Color||"blue",borderWidth:1,borderColor:"#707175"}}),c=(h,g)=>({id:`${h}-${g}-default`,name:"",eventCode:g,start:i||new Date,end:fR(i).add(1,"second").toDate(),type:"taskLine",comments:"",styles:{backgroundColor:"rgba(0, 0, 0, 0)",progressColor:"rgba(0, 0, 0, 0)",borderWidth:1,borderColor:"#707175"}}),u=(h,g)=>{["1","2","3","D"].forEach(m=>{const v=g.filter(y=>y.EventCode===m);v.length>0?v.forEach(y=>h.processLines.push(l(y,m))):h.processLines.push(c(N5.CASTER,m))})},d=(h,g)=>{["Heatings","Delays","Charges"].forEach(m=>{const v=g.filter(y=>y.EventCode===m[0]);v.length>0?v.forEach(y=>h.processLines.push(l(y))):h.processLines.push(c(Number(h.id.split("-")[0]),m[0]))})},p=b.useCallback(h=>{const g=h.tables[0].rows.map(y=>({...y,ProcessStart:fR.utc(y.ProcessStart).toDate(),Start:fR.utc(y.Start).toDate(),End:fR.utc(y.End).toDate()})),m=h.tables[1].rows.map(y=>({...y,Start:fR.utc(y.Start).toDate(),End:fR.utc(y.End).toDate()}));r.setGanttProcesses(g),r.setGanttProcessEvents(m);const v=o.map(y=>({...y,processes:[]}));g.forEach(y=>{const M=v.findIndex(S=>Number(S.id)===y.AssetId);if(M===-1)return;const C=y.HeatName?BZe.get(y.HeatName)||wqi(y.HeatName):Sqi;y.HeatName&&BZe.set(y.HeatName,C);const x=a(y,C),w=m.filter(S=>S.AssetId===y.AssetId);y.AssetId===N5.CASTER?u(x,w):d(x,w),v[M].processes.push(x)}),n(v)},[e]);return{assets:t,updateGantt:p}},Aqi=e=>{const{shiftId:t}=Ms(),{state:n}=ka(),{state:r,actions:i}=hT(),{width:o}=nEt(),a=Ot(n.settings,"MELTSHOP_GANTT_REFRESH_TIME_IN_SECONDS",null),s=o*.9/12,l=v=>{v.preventDefault()},{shiftInfo:c,getShiftDataFromAPI:u}=la(),{assets:d,updateGantt:p}=aEt(c),h=async()=>{if(c===null||c.CurrentShiftId===0){i.setCasterProductions([]),i.setCasterChemistries([]),i.setProcessGanttChart([]);return}i.setShowLoading(!0),i.setIsLoadingProductionGrid(!0),i.setIsLoadingChemistryGrid(!0),i.setIsLoadingBackground(!0);const v=[f2e(c.CurrentShiftId,!1),u2e({startDate:null,endDate:null,shiftId:c.CurrentShiftId,gradeId:0,billetSizeId:0}),lzt({startDate:null,endDate:null,shiftId:c.CurrentShiftId,gradeId:0,billetSizeId:0,includeExternalHeats:!0}),d2e(c.CurrentStart,c.CurrentEnd)],[y,M,C,x]=await Promise.all(v);y.ok?i.setEAFProcesses(y.data?.tables[0]?.rows||[]):i.setErrorMessage(y.message),M.ok?i.setCasterProductions(M.data?.tables[0]?.rows||[]):i.setErrorMessage(M.message),C.ok?i.setCasterChemistries(C.data?.tables[0]?.rows||[]):i.setErrorMessage(C.message),x.ok?p(x.data):i.setErrorMessage(x.message),i.setIsLoadingProductionGrid(!1),i.setIsLoadingChemistryGrid(!1),i.setIsLoadingBackground(!1),i.setShowLoading(!1)},[g,m]=b.useState(!1);return b.useEffect(()=>{c&&g&&h()},[c]),b.useEffect(()=>{(async()=>g||(t?(m(!0),await u(null,Number(t))):(m(!0),await u(null,0))))()},[]),b.useEffect(()=>{let v=null;const y=async()=>{if(!c||c.CurrentShiftId===0)return;i.setShowLoading(!0);const M=[f2e(c.CurrentShiftId,!1),u2e({startDate:null,endDate:null,shiftId:c.CurrentShiftId,gradeId:0,billetSizeId:0}),d2e(c.CurrentStart,c.CurrentEnd)],[C,x,w]=await Promise.all(M);C.ok?i.setEAFProcesses(C.data?.tables[0]?.rows||[]):i.setErrorMessage(C.message),x.ok?i.setCasterProductions(x.data?.tables[0]?.rows||[]):i.setErrorMessage(x.message),w.ok?p(w.data):i.setErrorMessage(w.message),i.setShowLoading(!1)};if(c&&a!==null&&a>=60){const M=a*1e3;v=setInterval(y,M)}return()=>{v&&clearInterval(v)}},[c,a,i,p]),f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:"Melt Shop Dashboard"}),r.isLoadingPage?f.jsx(Cn,{}):f.jsx("div",{onContextMenu:l,children:f.jsxs(kt,{elevation:1,style:{width:"100%",padding:"15px 20px 10px",backgroundColor:" #F2F4F7",borderRadius:"0.75rem"},children:[f.jsxs(D,{container:!0,justifyContent:"space-between",alignItems:"center",style:{marginBottom:"8px"},children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Melt Shop Dashboard"})}),f.jsx(kt,{elevation:1,children:f.jsx(D,{item:!0,xs:"auto",children:f.jsx(s2,{preventInit:!0,withPaper:!1})})}),f.jsx(D,{item:!0,xs:"auto",children:f.jsx(yqi,{})}),f.jsx(Mt,{error:r.errorMessage,onHide:()=>i.setErrorMessage("")}),f.jsx(Bm,{message:r.notificationMessage,onHide:()=>i.setNotificationMessage("")})]}),f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,children:f.jsx(kt,{children:f.jsxs(Tn,{padding:2,style:{position:"relative"},children:[f.jsx(bt,{variant:"h5",children:"Gantt"}),c&&d.length>0&&f.jsx(oEt,{columnWidth:s,assets:d,showArrowTriangle:!1,startCalendarDate:c?.CurrentStart,endCalendarDate:c?.CurrentEnd,rowHeight:150,barFill:50,lineSectionFill:40,lineFill:40,refreshData:h},`shift-${c.CurrentShiftId}`),r.showLoading&&f.jsx(Kt,{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})]})})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(kt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(bt,{variant:"h5",children:"EAF Production"}),f.jsx(xqi,{loadingGrid:r.isLoadingPage,rows:r.eafProcesses})]})})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(kt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(bt,{variant:"h5",children:"Caster Production"}),f.jsx("div",{className:"row",children:f.jsx(eWi,{})})]})})}),f.jsx(D,{item:!0,xs:12,children:f.jsx(kt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(bt,{variant:"h5",children:"Missed Chemistries"}),f.jsx("div",{className:"row",children:f.jsx(vqi,{})})]})})})]})]})})]})},HZe=e=>f.jsx(tEt,{children:f.jsx(Aqi,{})}),Oqi=({heats:e,className:t,onBlur:n,onChange:r,onFocus:i,loading:o,getHeats:a})=>{const[s,l]=b.useState(""),[c,u]=b.useState(null),[d,p]=b.useState(e||[]),[h,g]=b.useState(!1),m=b.useMemo(()=>nB(async v=>{g(!0);const y=await a(v);p(y),g(!1)},300),[a]);return b.useEffect(()=>{s.length>=3?m(s):p(e||[])},[s,e]),f.jsx(D,{item:!0,xs:12,children:f.jsx(Ji,{className:t,clearOnEscape:!0,popupIcon:null,options:d||[],getOptionLabel:v=>v?.Name||"Unlinked",renderOption:(v,{selected:y})=>f.jsx(bt,{style:{color:v.IsExternal?"blue":"inherit"},title:v.IsExternal?"External heat":"",children:v.Name||"Unlinked"}),renderInput:v=>f.jsx(je,{...v,label:"Search by heat",variant:"outlined",size:"medium",style:{width:"100%",minWidth:"180px",maxWidth:"180px"},value:s,onChange:y=>l(y.target.value),InputProps:{...v.InputProps,style:{padding:"3px 10px"},endAdornment:f.jsx(f.Fragment,{children:o||h?f.jsx(Kt,{color:"inherit",size:25}):v.InputProps.endAdornment})}}),value:c,onChange:(v,y)=>{y&&(u(y),r(y))},onFocus:i,loading:o||h,onBlur:()=>{s===""&&c&&(u(null),a("")),n()}})})},pTe=Rt(e=>({root:{"& .ag-cell":{padding:"0px !important",textAlign:"center !important",fontSize:12,lineBreak:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"0 !important",wordBreak:"break-word"},"& .ag-icon-menu":{display:"none"},"& .ag-header-group-text ":{fontSize:11},"& .ag-root-wrapper":{borderRadius:3},"& .ag-header-cell-label":{justifyContent:"center"},"& .max-limit":{color:"#CC0000",fontWeight:800},marginTop:"10px "},btnModal:{display:"flex",justifyContent:"flex-end"}})),hTe=Rt(e=>Mp({formControlLabel:{border:"1px solid #c4c4c4",margin:"1px 0px 0px 0px",padding:"2px 25.5rem 2px 0px",borderRadius:"4px","& .MuiTypography-body1":{fontSize:"1.2rem"}},checkbox:{userSelect:"none"},modalBody:{},title:{fontSize:15},chip:{margin:2},errorLabel:{fontSize:12,color:"#F44336"}})),zqi={grades:[]},ZY=Ni({name:"__",initialState:zqi,reducers:{setGrades(e,{payload:t}){e.grades=t}}}),sEt=b.createContext({state:ZY.getInitialState(),actions:ZY.actions}),Ite=()=>b.useContext(sEt),Tqi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:ZY.getInitialState(),reducers:ZY.caseReducers});return f.jsx(sEt.Provider,{value:{state:t,actions:n},children:e})},Eqi={ladles:[]},JY=Ni({name:"__",initialState:Eqi,reducers:{setLadles(e,{payload:t}){e.ladles=t}}}),lEt=b.createContext({state:JY.getInitialState(),actions:JY.actions}),xj=()=>b.useContext(lEt),Rqi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:JY.getInitialState(),reducers:JY.caseReducers});return f.jsx(lEt.Provider,{value:{state:t,actions:n},children:e})},fTe={HeatName:"",ShiftId:0,GradeId:null,SteelWeight:null,LadleId:null,IsExternal:!1},Iqi=({show:e,onHide:t})=>{const n=hTe(),{state:r}=ka(),i=Ot(r.settings,"MIN_STEEL_WEIGHT",0),o=Ot(r.settings,"MAX_STEEL_WEIGHT",120),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(!1),[p,h]=b.useState(""),[g,m]=b.useState(void 0),[v,y]=b.useState(!1),[M,C]=b.useState(null),[x,w]=b.useState(null),{shiftInfo:S}=la(),{state:{ladles:A}}=xj(),{state:{grades:z}}=Ite(),{control:O,setValue:T,handleSubmit:I,reset:P,formState:{errors:N}}=Gn({defaultValues:fTe}),F=async L=>{d(!0);const W=Ot(S,"CurrentShiftId",null);if(W){const H=await uz({...L,ShiftId:W});H.ok?(h("The heat was created successfully"),m("success"),t(!0)):(h("Error, please try again"),m("error"),w(H.message))}else h("Error, please try again"),m("error"),w("Go to valid shift");d(!1),y(!0)};return b.useEffect(()=>{e&&P()},[e]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Create Heat"}),f.jsx(f.Fragment,{children:f.jsx(We,{open:e,handleClose:()=>{t(!0)},id:"editHeat",title:"Create a heat",maxWidth:"sm",children:f.jsxs("form",{onSubmit:I(F),noValidate:!0,children:[f.jsxs(We.Content,{className:n.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[l&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"150px"},children:f.jsx(Kt,{size:"5rem"})}),!l&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,xs:12,children:[f.jsx(Ue,{name:"HeatName",rules:{required:!0},control:O,render:({field:L})=>f.jsx(je,{label:"Name",value:L.value,onChange:L.onChange,variant:"outlined",error:!!N.HeatName,fullWidth:!0,margin:"dense"})}),N.HeatName?.type==="required"&&f.jsx("span",{className:n.errorLabel,children:"Name is required"})]})}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"GradeId",control:O,render:({field:L})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:z,getOptionLabel:W=>W.GradeName,onChange:(W,H)=>{L.onChange(H?H.GradeId:null)},renderInput:W=>f.jsx(je,{...W,label:"Grade",variant:"outlined",fullWidth:!0,size:"small"}),value:z.find(W=>W.GradeId===L.value)||null})})}),f.jsx(D,{item:!0,xs:4,style:{paddingTop:"4px"},children:f.jsx(Ue,{name:"SteelWeight",control:O,rules:{min:{value:Number(i),message:`Steel Weight must be at least ${i}`},max:{value:Number(o),message:`Steel Weight must be at most ${o}`}},render:({field:L})=>f.jsx(je,{type:"number",label:"Steel Weight",value:L.value,onChange:L.onChange,variant:"outlined",fullWidth:!0,margin:"dense",size:"small",error:!!N.SteelWeight,helperText:N.SteelWeight?.message})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"LadleId",control:O,render:({field:L})=>f.jsx(Ji,{options:A,getOptionLabel:W=>W.LadleName,onChange:(W,H)=>{L.onChange(H?H.LadleId:null)},renderInput:W=>f.jsx(je,{...W,label:"Ladle",variant:"outlined",fullWidth:!0,size:"small"}),value:A.find(W=>W.LadleId===L.value)||null})})})]}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsExternal",control:O,render:({field:L})=>f.jsx(Io,{className:n.formControlLabel,control:f.jsx(Qr,{defaultChecked:!1,checked:L.value,onChange:W=>L.onChange(W.target.checked),color:"primary"}),label:"External"})})})})]})})]}),!l&&f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,size:"small",variant:"contained",color:"default",onClick:()=>{t(!1)},children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,size:"small",startIcon:u?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:u,variant:"contained",color:"primary",type:"submit",children:"Create"})})]})})]})})}),f.jsx(Mt,{onHide:()=>w(null),error:x})]})},Pqi=({show:e,onHide:t,heatIdForDelete:n})=>{const r=hTe(),[i,o]=b.useState(!1),[a,s]=b.useState(!1),[l,c]=b.useState(!1),[u,d]=b.useState(""),[p,h]=b.useState(void 0),[g,m]=b.useState(null),[v,y]=b.useState(null),{state:{ladles:M}}=xj(),{state:{grades:C}}=Ite(),{control:x,setValue:w}=Gn({defaultValues:fTe}),S=(z,O)=>{O!=="clickaway"&&c(!1)},A=async()=>{if(s(!0),n){const z=await TEi(n);z.ok?(d("The heat was deleted successfully"),h("success"),t(!0),y(null)):(d("Error, please try again"),h("error"),m(z.message)),s(!1),c(!0)}};return b.useEffect(()=>{e&&(async()=>{if(o(!0),n){const z=await cTe(n);if(z.ok){const O=Ot(z,"data.tables[0].rows[0]",null);O?y(O):(t(!0),d("Error, heat not found. Try again"),c(!0),y(null))}else m(z.message)}o(!1)})()},[e]),b.useEffect(()=>{if(e&&v){const{HeatId:z,Name:O,GradeId:T,LadleId:I,IsExternal:P,SteelWeight:N,ProductionYear:F}=v;w("HeatId",z),w("HeatName",O),w("GradeId",T),w("SteelWeight",N),w("LadleId",I),w("IsExternal",P),w("ProductionYear",F)}},[v]),f.jsxs(f.Fragment,{children:[e&&f.jsx(Mn,{title:"Delete Heat"}),f.jsxs(We,{open:e,handleClose:()=>{t(!0)},id:"deleteHeat",title:"Delete a heat",maxWidth:"sm",children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[i&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"150px"},children:f.jsx(Kt,{size:"5rem"})}),!i&&v&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:8,xs:12,children:f.jsx(Ue,{name:"HeatName",control:x,render:({field:z})=>f.jsx(je,{disabled:!0,label:"Name",value:z.value,variant:"outlined",fullWidth:!0,margin:"dense"})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"ProductionYear",control:x,render:({field:z})=>f.jsx(je,{disabled:!0,label:"Year",value:z.value,variant:"outlined",fullWidth:!0,margin:"dense"})})})]}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"GradeId",control:x,render:({field:z})=>f.jsx(Ji,{disabled:!0,id:"clear-on-escape",clearOnEscape:!0,options:C,getOptionLabel:O=>O.GradeName,renderInput:O=>f.jsx(je,{...O,label:"Grade",variant:"outlined",fullWidth:!0,size:"small"}),value:C.find(O=>O.GradeId===z.value)||null})})}),f.jsx(D,{item:!0,xs:4,style:{paddingTop:"4px"},children:f.jsx(Ue,{name:"SteelWeight",control:x,render:({field:z})=>f.jsx(je,{disabled:!0,type:"number",label:"Steel Weight",value:z.value,variant:"outlined",fullWidth:!0,margin:"dense",size:"small"})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"LadleId",control:x,render:({field:z})=>f.jsx(Ji,{disabled:!0,options:M,getOptionLabel:O=>O.LadleName,renderInput:O=>f.jsx(je,{...O,label:"Ladle",variant:"outlined",fullWidth:!0,size:"small"}),value:M.find(O=>O.LadleId===z.value)||null})})})]}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsExternal",control:x,render:({field:z})=>f.jsx(Io,{className:r.formControlLabel,control:f.jsx(Qr,{disabled:!0,checked:z.value===!0,color:"primary",style:{width:"100% !important"}}),label:"External"})})})})]})})]}),!i&&f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,size:"small",variant:"contained",color:"default",onClick:()=>{t(!1),y(null)},children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,size:"small",startIcon:a?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:a,variant:"contained",color:"secondary",onClick:A,children:"Delete"})})]})})]}),f.jsx(pr,{open:l,autoHideDuration:2500,onClose:S,children:f.jsx(Pr,{severity:p,onClose:S,children:u})}),f.jsx(Mt,{onHide:()=>m(null),error:g})]})},Dqi=({heatIdForEdit:e,show:t,onHide:n})=>{const r=hTe(),{state:i}=ka(),o=Ot(i.settings,"MIN_STEEL_WEIGHT",0),a=Ot(i.settings,"MAX_STEEL_WEIGHT",120),[s,l]=b.useState(!1),[c,u]=b.useState(!1),[d,p]=b.useState(!1),[h,g]=b.useState(""),[m,v]=b.useState(void 0),[y,M]=b.useState(null),[C,x]=b.useState(null),{shiftInfo:w}=la(),{state:{ladles:S}}=xj(),{state:{grades:A}}=Ite(),{control:z,setValue:O,handleSubmit:T,reset:I,formState:{errors:P}}=Gn({defaultValues:fTe}),N=(L,W)=>{W!=="clickaway"&&l(!1)},F=async L=>{if(p(!0),e){const W=await uz({...L,HeatId:e});W.ok?(g("The heat was updated successfully"),v("success"),n(!0)):(g("Error, please try again"),v("error"),p(!1),x(W.message))}p(!1),l(!0)};return b.useEffect(()=>{t&&(async()=>{if(u(!0),e){const L=await cTe(e);if(L.ok){const W=Ot(L,"data.tables[0].rows[0]",null);W?M(W):(n(!0),g("Error, heat not found. Try again"),l(!0),M(null))}else x(L.message)}u(!1)})()},[t]),b.useEffect(()=>{if(t&&y){const{HeatId:L,Name:W,GradeId:H,LadleId:j,IsExternal:G,Shift:q,SteelWeight:$,ProductionYear:U}=y;O("HeatId",L),O("HeatName",W),O("ShiftId",Ot(w,"CurrentShiftId",null)),O("GradeId",H),O("SteelWeight",$),O("LadleId",j),O("IsExternal",G),O("ProductionYear",U)}},[y]),f.jsxs(f.Fragment,{children:[t&&f.jsx(Mn,{title:"Edit Heat"}),f.jsx(We,{open:t,handleClose:()=>{n(!0)},id:"editHeat",title:"Update a heat",maxWidth:"sm",children:f.jsxs("form",{onSubmit:T(F),noValidate:!0,children:[f.jsxs(We.Content,{className:r.modalBody,style:{padding:"15px 30px"},dividers:!0,children:[c&&f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{minHeight:"150px"},children:f.jsx(Kt,{size:"5rem"})}),!c&&f.jsx(f.Fragment,{children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[f.jsxs(D,{item:!0,md:8,xs:12,children:[f.jsx(Ue,{name:"HeatName",rules:{required:!0},control:z,render:({field:L})=>f.jsx(je,{label:"Name",value:L.value,onChange:L.onChange,variant:"outlined",error:!!P.HeatName,fullWidth:!0,margin:"dense"})}),P.HeatName?.type==="required"&&f.jsx("span",{className:r.errorLabel,children:"Name is required"})]}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"ProductionYear",control:z,render:({field:L})=>f.jsx(je,{disabled:!0,label:"Year",value:L.value,onChange:L.onChange,variant:"outlined",error:!!P.HeatName,fullWidth:!0,margin:"dense"})})})]}),f.jsxs(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"GradeId",control:z,render:({field:L})=>f.jsx(Ji,{id:"clear-on-escape",clearOnEscape:!0,options:A,getOptionLabel:W=>W.GradeName,onChange:(W,H)=>{L.onChange(H?H.GradeId:null)},renderInput:W=>f.jsx(je,{...W,label:"Grade",variant:"outlined",fullWidth:!0,size:"small"}),value:A.find(W=>W.GradeId===L.value)||null})})}),f.jsx(D,{item:!0,xs:4,style:{paddingTop:"4px"},children:f.jsx(Ue,{name:"SteelWeight",control:z,rules:{min:{value:Number(o),message:`Steel Weight must be at least ${o}`},max:{value:Number(a),message:`Steel Weight must be at most ${a}`}},render:({field:L})=>f.jsx(je,{type:"number",label:"Steel Weight",value:L.value,onChange:L.onChange,variant:"outlined",fullWidth:!0,margin:"dense",size:"small",error:!!P.SteelWeight,helperText:P.SteelWeight?.message})})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(Ue,{name:"LadleId",control:z,render:({field:L})=>f.jsx(Ji,{options:S,getOptionLabel:W=>W.LadleName,onChange:(W,H)=>{L.onChange(H?H.LadleId:null)},renderInput:W=>f.jsx(je,{...W,label:"Ladle",variant:"outlined",fullWidth:!0,size:"small"}),value:S.find(W=>W.LadleId===L.value)||null})})})]}),f.jsx(D,{item:!0,xs:12,container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:f.jsx(D,{item:!0,xs:12,children:f.jsx(Ue,{name:"IsExternal",control:z,render:({field:L})=>f.jsx(Io,{className:r.formControlLabel,control:f.jsx(Qr,{checked:L.value===!0,onChange:W=>L.onChange(W.target.checked),color:"primary",style:{width:"100% !important"}}),label:"External"})})})})]})})]}),!c&&f.jsx(We.Actions,{children:f.jsxs(D,{container:!0,spacing:2,justifyContent:"flex-end",children:[f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,size:"small",variant:"contained",color:"default",onClick:()=>{n(!1)},children:"Cancel"})}),f.jsx(D,{item:!0,md:3,xs:12,style:{margin:0},children:f.jsx(Fe,{fullWidth:!0,size:"small",startIcon:d?f.jsx(Kt,{size:"1rem"}):f.jsx(f.Fragment,{}),disabled:d,variant:"contained",color:"primary",type:"submit",children:"Save"})})]})})]})}),f.jsx(pr,{open:s,autoHideDuration:2500,onClose:N,children:f.jsx(Pr,{severity:m,onClose:N,children:h})}),f.jsx(Mt,{onHide:()=>x(""),error:C})]})},kqi=e=>{const{onNewHeat:t}=e;return f.jsx("div",{style:{padding:"5px"},children:f.jsx(Fe,{variant:"contained",color:"primary",onClick:t,children:"New Heat"})})},cEt=({setHeatIdForEdit:e,setModalEditHeat:t,setHeatIdForDelete:n,setModalDeleteHeat:r,setModalCreateHeat:i})=>{const o=fa(),a=u=>{gi(u)||o(u)},s=u=>{gi(u)||o(u)},l=u=>{gi(u)||o(u)};return{getMenuOptions:u=>{let d=[];return u?(u.HeatEAFDELink&&d.push({name:"See in EAF",key:"go_to_eaf",onClick:()=>s(u.HeatEAFDELink),icon:f.jsx("i",{style:{fontSize:"1.5em",marginLeft:"-3px"},className:"material-icons",children:"thermostat"})}),u.HeatNameLink&&d.push({name:"See in Caster",key:"go_to_caster_data_entry",style:{fontWeight:"bold"},onClick:()=>a(u.HeatNameLink),icon:f.jsx(vw,{})}),u.HeatLABLink&&d.push({name:"See in Lab",key:"go_to_heat_report",onClick:()=>l(u.HeatLABLink),icon:f.jsx("span",{className:"material-icons",style:{fontSize:"1.5em",marginLeft:"-3px"},children:"science"})}),u.HeatId&&(d=d.concat([{name:"Delete Heat",key:"delete_heat",onClick:()=>{n(u.HeatId),r(!0)},icon:f.jsx(Mo,{})},{name:"Edit Heat",key:"edit_heat",onClick:()=>{e(u.HeatId),t(!0)},icon:f.jsx(No,{})},{name:"New Heat",key:"new_heat",onClick:()=>{i(!0)},icon:f.jsx(Zo,{})}])),d):[{name:"New Heat",key:"new_heat",onClick:()=>i(!0),icon:f.jsx(Zo,{})}]},goToDataEntry:a,goToEAFDataEntry:s,goToHeatReport:l}},Lqi=e=>{if(w9.isNil(e))return" ";switch(e){case"S":return"Scheduled";case"M":return"Melting";case"T":return"Tapped";case"O":return"OpenInCaster";case"C":return"InCaster";case"R":return"Returned";case"F":return"Finished";case"E":return"EAF";case"P":return"Closed";case"U":return"ReadyToCaster";case"X":return"External";default:return" "}},_qi={heats:[],lastestHeats:[]},eK=Ni({name:"__",initialState:_qi,reducers:{setHeatsByShift(e,{payload:t}){e.heats=t},setLastestHeats(e,{payload:t}){e.lastestHeats=t}}}),uEt=b.createContext({state:eK.getInitialState(),actions:eK.actions}),dEt=()=>b.useContext(uEt),Nqi=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:eK.getInitialState(),reducers:eK.caseReducers});return f.jsx(uEt.Provider,{value:{state:t,actions:n},children:e})},Fqi=Rt({colorTag:{width:"26px",height:"26px",borderRadius:4,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:"bold"}}),Wqi={Scheduled:{name:"Scheduled",color:"#0288D1",letter:"S"},Tapped:{name:"Tapped",color:"#FFD600",letter:"T"},Melting:{name:"Melting",color:"#FF7043",letter:"M"},OpenInCaster:{name:"Open in Caster",color:"#43A047",letter:"O"},InCaster:{name:"In Caster",color:"#607D8B",letter:"C"},Returned:{name:"Returned",color:"#8D6E63",letter:"R"},Finished:{name:"Finished",color:"#3F51B5",letter:"F"},EAF:{name:"In EAF",color:"#FF7043",letter:"E"},Closed:{name:"Closed but still in Caster",color:"#FF7043",letter:"P"},ReadyToCaster:{name:"Ready to Caster",color:"#FF7043",letter:"U"},External:{name:"External",color:"#484848",letter:"X"}},qqi=({status:e})=>{const t=Fqi(),n=Wqi[e];return n?f.jsxs(D,{container:!0,direction:"row",spacing:1,children:[f.jsx(D,{item:!0,md:2,children:f.jsx(tl,{title:n.name,arrow:!0,children:f.jsx("div",{className:t.colorTag,style:{backgroundColor:n.color},children:n.letter})})}),f.jsx(D,{item:!0,justifyContent:"center",md:10,children:n.name})]}):null},Bqi=({setHeatIdForEdit:e,setModalEditHeat:t,setHeatIdForDelete:n,setModalDeleteHeat:r,setModalCreateHeat:i,goToDataEntry:o,goToEAFDataEntry:a,goToHeatReport:s})=>{const{state:{heats:l}}=dEt(),{state:{ladles:c}}=xj(),u=yj(),{showContextMenu:d,registerConfig:p}=ks(),{getMenuOptions:h}=cEt({setHeatIdForEdit:e,setModalEditHeat:t,setHeatIdForDelete:n,setModalDeleteHeat:r,setModalCreateHeat:i});b.useEffect(()=>{p({id:"meltshop-heats",getOptions:h})},[]);const g=[{headerName:"Heat",field:"HeatName",flex:1,minWidth:74},{headerName:"Status",field:"Status",flex:1,minWidth:150,maxWidth:150,cellRenderer:y=>f.jsx(qqi,{status:y.value})},{headerName:"Start",flex:1,minWidth:70,valueGetter:y=>Wn(`${y.data.Start}`,"HH:mm"),cellRenderer:y=>y.data.HeatEAFDELink?f.jsx(zd,{...y,linkProperty:"HeatEAFDELink"}):f.jsx("span",{style:{color:"black"},children:y.value})},{headerName:"Tap Time",flex:1,minWidth:80,valueGetter:y=>Wn(`${y.data.TapTime}`,"HH:mm")},{headerName:"Ladle",field:"Ladle",flex:1,minWidth:70},{headerName:"Ladle Open",flex:1,minWidth:94,valueGetter:y=>Wn(`${y.data.LadleOpen}`,"HH:mm"),cellRenderer:y=>y.data.HeatNameLink?f.jsx(zd,{...y,linkProperty:"HeatNameLink"}):f.jsx("span",{style:{color:"black"},children:y.value})},{headerName:"Ladle Close",flex:1,minWidth:96,valueGetter:y=>Wn(`${y.data.LadleClose}`,"HH:mm")},{headerName:"Grade",field:"Grade",flex:1,minWidth:79},{headerName:"Last Sample",field:"LastSample",flex:1,minWidth:90,wrapHeaderText:!0},{headerName:"EAF Time",flex:1,minWidth:90,field:"EAFTime"},{headerName:"Cast Time",flex:1,minWidth:90,field:"CastTime"},{headerName:"Mold Size",field:"MoldSizeName",flex:1,minWidth:102},{headerName:"Order",field:"HeatOrder",flex:1,minWidth:79},{headerName:"Tons",field:"CastTons",flex:1,minWidth:74,valueGetter:y=>y.data.CastTons?y.data.CastTons.toFixed(1):""},{headerName:"",flex:1,minWidth:180,field:"links",cellRenderer:y=>f.jsx("div",{className:u.buttons,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"center",children:[f.jsx(D,{item:!0,md:4,xs:4,style:{padding:"0"},children:f.jsx(tl,{title:"See in EAF Data Entry",arrow:!0,children:f.jsx(Fe,{fullWidth:!0,"aria-label":"EAF Page",disabled:!y.data.HeatEAFDELink,onClick:()=>{a(y.data.HeatEAFDELink)},children:f.jsx("span",{className:"material-icons",style:{color:y.data.HeatEAFDELink?"#3f51b5":"#bababa"},children:"thermostat"})})})}),f.jsx(D,{item:!0,md:4,xs:4,style:{padding:"0"},children:f.jsx(tl,{title:"See in Caster Data Entry",arrow:!0,children:f.jsx(Fe,{fullWidth:!0,"aria-label":"Caster Data Entry",disabled:!y.data.HeatNameLink,onClick:()=>{o(y.data.HeatNameLink)},children:f.jsx("span",{className:"material-icons",style:{color:y.data.HeatNameLink?"#3f51b5":"#bababa"},children:"memory"})})})}),f.jsx(D,{item:!0,md:4,xs:4,style:{padding:"0"},children:f.jsx(tl,{title:"See in Lab Report",arrow:!0,children:f.jsx(Fe,{fullWidth:!0,disabled:!y.data.HeatLABLink,"aria-label":"Lab Page",onClick:()=>{s(y.data.HeatLABLink)},children:f.jsx("span",{className:"material-icons",style:{color:y.data.HeatLABLink?"#3f51b5":"#bababa"},children:"science"})})})})]})})},{field:"Actions",flex:2,minWidth:60,maxWidth:60,cellRenderer:y=>f.jsx("div",{className:u.buttons,children:f.jsx(D,{item:!0,container:!0,justifyContent:"center",alignItems:"center",md:6,xs:6,style:{padding:"0"},children:f.jsx(Fe,{fullWidth:!0,"aria-label":"Options",title:"Options",style:{cursor:"pointer"},size:"large",onClick:M=>d(M,y.data,"meltshop-heats"),children:f.jsx(ute,{fontSize:"inherit",color:"primary",style:{cursor:"pointer",height:"20px",width:"20px"}})})})}),headerName:" ",sortable:!1}],m={flex:1,resizable:!0,suppressHeaderMenuButton:!0};return{rowData:b.useMemo(()=>l.map(({ProcessId:y,HeatId:M,HeatName:C,Start:x,StartTap:w,HeatNameLink:S,HeatEAFDELink:A,HeatLABLink:z,LadleId:O,LadleOpen:T,LadleClose:I,GradeName:P,HeatStatusCode:N,LastSample:F,MoldSizeName:L,EAFTime:W,CastTime:H,HeatOrder:j,CastTons:G})=>{const q=c.find($=>$.LadleId===O);return{ProcessId:y,HeatName:C,HeatNameLink:S,HeatEAFDELink:A,HeatLABLink:z,Start:x,TapTime:w,Ladle:q?.LadleName,LadleOpen:T,LadleClose:I,Grade:P,Status:Lqi(N),HeatId:M,LastSample:F,MoldSizeName:L,EAFTime:W?A2e(W):null,CastTime:H?A2e(H):null,HeatOrder:j,CastTons:G,Id:M}}),[l]),columnData:g,defaultColDef:m}},jqi=({isLoading:e,getHeatsByShift:t,gridRef:n})=>{const[r,i]=b.useState(!1),[o,a]=b.useState(!1),[s,l]=b.useState(!1),[c,u]=b.useState(null),[d,p]=b.useState(null),[h,g]=b.useState(null),[m,v]=b.useState(null),[y,M]=Rd();pTe();const{getMenuOptions:C,goToDataEntry:x,goToEAFDataEntry:w,goToHeatReport:S}=cEt({setHeatIdForEdit:u,setModalEditHeat:i,setHeatIdForDelete:p,setModalDeleteHeat:a,setModalCreateHeat:l}),{showContextMenu:A,registerConfig:z}=ks(),{rowData:O,columnData:T}=Bqi({setHeatIdForEdit:u,setModalEditHeat:i,setHeatIdForDelete:p,setModalDeleteHeat:a,setModalCreateHeat:l,goToDataEntry:x,goToEAFDataEntry:w,goToHeatReport:S}),I=W=>{v(W.api)},P=()=>{if(!m)return;const W=m.getSelectedRows();W.length>0?(g(W[0]),M({heatId:W[0].HeatId},{replace:!0})):(g(null),M({},{replace:!0}))},N=y.get("heatId");b.useEffect(()=>{m&&(e?m.showLoadingOverlay():m.hideOverlay())},[m,e]),b.useEffect(()=>{if(!e&&m&&O&&O.length>0){const W=N;if(W){const H=m.getRowNode(W);H&&(m.deselectAll(),H?.setSelected(!0,!0),g(H.data))}}},[m,e,O]);const F={newHeatStatusBar:kqi},L={statusPanels:[{statusPanel:"newHeatStatusBar",align:"right",statusPanelParams:{onNewHeat:()=>l(!0)}}]};return b.useEffect(()=>{z({id:"heatsByShiftTable",getOptions:C})},[]),f.jsxs(f.Fragment,{children:[h&&!r&&!o&&!s&&f.jsx(Mn,{title:`${h.HeatName} - Heats`}),f.jsx(D,{container:!0,children:f.jsxs(D,{item:!0,md:12,xs:12,style:{border:"1px solid #e0e0e0",minHeight:"65vh"},onContextMenu:W=>{W.preventDefault(),A(W,null,"heatsByShiftTable")},children:[f.jsx(Pqi,{heatIdForDelete:d,show:o,onHide:W=>{a(!1),W&&t().then(()=>{})}})," ",f.jsx(Dqi,{heatIdForEdit:c,show:r,onHide:W=>{i(!1),W&&t().then(()=>{})}}),f.jsx(Iqi,{show:s,onHide:W=>{l(!1),W&&t().then(()=>{})}}),f.jsx(Kn,{onGridReady:I,rowData:O,columnDefs:T,rowSelection:"single",overlayLoadingTemplate:"Loading...",suppressContextMenu:!0,getRowId:W=>W.data.HeatId,onRowDoubleClicked:W=>{x(W.data.HeatNameLink)},onCellContextMenu:W=>{W.event&&A(W.event,W.data,"heatsByShiftTable")},onSelectionChanged:P,ref:n,statusBar:L,components:F})]})})]})},Hqi=Rt(e=>({label:{fontSize:"14px"}})),Vqi=Rn(),Gqi=()=>{const e=fa(),t=Hqi(),{state:{heats:n,lastestHeats:r},actions:{setHeatsByShift:i,setLastestHeats:o}}=dEt(),{actions:{setLadles:a}}=xj(),{actions:{setGrades:s}}=Ite(),{shiftInfo:l,moveShift:c,getShiftDataFromAPI:u,initShiftNavigator:d}=la(),p=Vqi(l?.CurrentStart).format("MM-DD-YYYY"),[h,g]=b.useState(""),[m,v]=b.useState(!0),[y,M]=Rd(),x=y.get("externalHeats")==="true",[w,S]=b.useState(x),[A,z]=b.useState(!0),{shiftId:O}=Ms(),T=b.useRef(null),I=j=>{j.preventDefault()},P=async j=>{v(!0);const G=Ot(j||l,"CurrentShiftId",null),q=await SEi(Number(G),null,w);q.ok?i(q.data.tables[0].rows):g(q.message),v(!1)},N=async()=>{v(!0);const j=await AEi(w);if(j.ok){const G=Ot(j,"data.tables[0].rows",null);o(G)}else g(j.message);v(!1)},F=j=>{const G=j.target.checked;S(G);const q=new URLSearchParams(y.toString());G?q.set("externalHeats","true"):q.delete("externalHeats"),M(q)},L=async j=>{if(j.length>=3){const G=await OEi(j,w);return G.ok?Ot(G,"data.tables[0].rows",null):(g(G.message),[])}else return r},W=async()=>{const[j,G]=await Promise.all([zEi(),z3t()]);j.ok?a(j.data?.tables[0].rows):g(j.message),G.ok?s(G.data.tables[0].rows):g(G.message)},H=()=>{if(T.current&&T.current.api){const j={skipHeader:!1,skipFooters:!0,skipGroups:!0,fileName:`Heats-${p}.xlsx`,sheetName:"Heats by shift",processCellCallback:G=>G.value??""};T.current.api.exportDataAsExcel(j)}else g("Unable to export data. Please try again.")};return b.useEffect(()=>{if(l&&!A){const j=Ot(l,"CurrentShiftId",null),G=new URLSearchParams(y.toString());w?G.set("externalHeats","true"):G.delete("externalHeats"),e(`/meltshop-heats/${j}?${G.toString()}`),(async()=>(await P(),await N()))()}},[l,w]),b.useEffect(()=>{O?(async()=>{const j=Number(O);u(null,j).then(async G=>{G&&W().then(()=>{P(G).then(()=>{N(),z(!1)})})})})():(async()=>u(null,0).then(async j=>{j&&W().then(()=>{P(j).then(()=>{N(),z(!1)})})}))()},[]),f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:"Heats"}),f.jsxs("div",{onContextMenu:I,children:[f.jsx(kt,{elevation:0,style:{width:"100%",padding:"15px 20px 10px",height:"93vh",backgroundColor:"#f2f4f7"},children:f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Heats"})})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[f.jsx(s2,{preventInit:!0}),f.jsx(kt,{style:{minWidth:"550px",margin:"10px 10px",height:"90px",display:"flex",justifyContent:"center"},children:f.jsxs(D,{item:!0,container:!0,xs:12,spacing:2,justifyContent:"flex-start",alignItems:"center",style:{marginLeft:"10px"},children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(Oqi,{heats:r,getHeats:L,loading:m,onBlur:()=>{},onChange:j=>{const G=new URLSearchParams;j.Id&&G.set("heatId",j.Id.toString()),w&&G.set("externalHeats","true");const q=G.toString();window.location.href=`/meltshop-heats/${j.ShiftId}?${q}`}})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(xD,{children:f.jsx(Io,{control:f.jsx(Qr,{checked:w,color:"primary",onChange:F}),label:"Show external heats",classes:{label:t.label}})})})]})}),f.jsx(D,{item:!0,xs:"auto",style:{marginLeft:"auto"},children:f.jsx(Ik,{onClick:H})})]})}),f.jsx(jqi,{isLoading:m,getHeatsByShift:P,gridRef:T})]})})}),f.jsx(Mt,{error:h,onHide:()=>g("")})]})]})},VZe=()=>f.jsx(Nqi,{children:f.jsx(Rqi,{children:f.jsx(Tqi,{children:f.jsx(Gqi,{})})})}),$qi=async()=>await new Ye().callV2("[MS].[GetLadleStatus]",[]),Uqi=()=>f.jsxs(D,{container:!0,alignItems:"center",spacing:2,style:{padding:"10px 10px"},children:[f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,children:f.jsx("div",{style:{width:15,height:15,borderRadius:"50%",backgroundColor:"#4caf50",border:"1px solid rgba(0,0,0,0.2)"}})}),f.jsx(D,{item:!0,children:f.jsx("span",{children:"Used in 2 days"})})]})}),f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,children:f.jsx("div",{style:{width:15,height:15,borderRadius:"50%",backgroundColor:"#ffd700",border:"1px solid rgba(0,0,0,0.2)"}})}),f.jsx(D,{item:!0,children:f.jsx("span",{children:"Used in 5 days"})})]})}),f.jsx(D,{item:!0,children:f.jsxs(D,{container:!0,spacing:1,alignItems:"center",children:[f.jsx(D,{item:!0,children:f.jsx("div",{style:{width:15,height:15,borderRadius:"50%",backgroundColor:"#a0a0a0",border:"1px solid rgba(0,0,0,0.2)"}})}),f.jsx(D,{item:!0,children:f.jsx("span",{children:"Not used in 5 days"})})]})})]}),Xqi=e=>{const t=()=>{if(!e.value?.lastTappedDate)return"#a0a0a0";const r=e.value.diffDays;return r<=2?"#4caf50":r<=5?"#ffd700":"#a0a0a0"},n=()=>{if(!e.value?.lastTappedDate)return"Ladle not used in the last 5 days";const r=e.value.diffDays;return r<=2?"Ladle used in the last 2 days":r<=5?"Ladle used in the last 5 days":"Ladle not used in the last 5 days"};return f.jsx("div",{title:n(),style:{width:"15px",height:"15px",borderRadius:"50%",backgroundColor:t(),margin:"auto",border:"1px solid  rgb(144, 144, 144)"}})},Yqi=({ladleStatus:e})=>{const t=b.useRef(null),[n,r]=b.useState([]);pTe();const{state:i}=ka(),o=Ot(i,"LADLE_STATUS_MAX_HEAT_COUNTS",100),a=Ot(i,"LADLE_STATUS_MAX_CONTACT_TIME",1e4),s=p=>{if(!p.data.LastTappedDateTime)return{lastTappedDate:null};const h=Rn()(),g=Rn()(p.data.LastTappedDateTime),m=h.diff(g,"days");return{lastTappedDate:p.data.LastTappedDateTime,diffDays:m}},l=p=>{if(!p.value||p.value===null)return"";const h=Number(p.value);if(isNaN(h))return"";const g=Math.floor(h/60),m=h%60;return`${g}:${m.toString().padStart(2,"0")}`},c=p=>{const{FirstHeatDateTime:h,LastTappedDateTime:g}=p.data;if(!h||!g)return"";const m=Rn()(h),v=Rn()(g);if(!m.isValid()||!v.isValid())return"";const y=v.diff(m,"days");return y>=0?y.toString():""},u={statusBarReference:Uqi},d={statusPanels:[{statusPanel:"statusBarReference",align:"left"}]};return b.useMemo(()=>({sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0,suppressHeaderMenuButton:!0}),[]),b.useEffect(()=>{r([{field:"status",headerName:"Status",minWidth:70,maxWidth:70,cellRenderer:Xqi,valueGetter:s,cellStyle:{padding:"0px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center"}},{field:"LadleName",headerName:"Ladle",minWidth:100,maxWidth:100,flex:1},{field:"HeatCount",headerName:"Total Heats",cellClassRules:{"max-limit":p=>Number(p.value)>o},minWidth:100,flex:1},{field:"TotalContactTime",headerName:"Total Contact [hhh:mm]",minWidth:180,flex:1,wrapHeaderText:!0,valueFormatter:l,cellClassRules:{"max-limit":p=>Number(p.value)>a},headerStyle:{textAlign:"center"}},{field:"FirstHeatName",headerName:"First Heat Number",minWidth:140,flex:1},{field:"LastTappedHeatName",headerName:"Last Tapped Heat Number",minWidth:200,flex:1},{field:"FirstHeatDateTime",headerName:"First Heat Date",minWidth:140,flex:1,valueFormatter:p=>Wn(p.value,"MM/dd/yy HH:mm:ss")},{field:"LastTappedDateTime",headerName:"Last Tap Date",minWidth:140,flex:1,valueFormatter:p=>Wn(p.value,"MM/dd/yy HH:mm:ss")},{field:"days",headerName:"Days",minWidth:80,flex:1,valueGetter:c,cellStyle:{textAlign:"center"}}])},[]),f.jsx(D,{container:!0,style:{width:"100%",display:"flex"},children:f.jsx(D,{item:!0,md:12,xs:12,style:{height:"78vh",minHeight:"37vh",width:"100%",border:"1px solid #e0e0e0",margin:"20px 0 10px"},children:f.jsx(Kn,{ref:t,rowData:e,columnDefs:n,rowHeight:33,headerHeight:32,animateRows:!0,suppressContextMenu:!0,suppressRowHoverHighlight:!0,statusBar:d,components:u})})})},Kqi=()=>{const[e,t]=b.useState(!0),[n,r]=b.useState(""),[i,o]=b.useState(),a=async()=>{t(!0);try{const s=await $qi();if(s.ok){const l=s.data.tables[0];o(l.rows),t(!1)}else t(!1),r(s.message)}catch(s){r(s)}};return b.useEffect(()=>{a()},[]),e?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:f.jsx(Cn,{})}):f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:"Ladle Status"}),f.jsx(Op,{open:e}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{backgroundColor:"#F2F4F7"},children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0,padding:"15px"},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Ladle Status"})})}),f.jsx(D,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",item:!0,md:12,xs:12,children:f.jsx(Yqi,{ladleStatus:i})})]})}),f.jsx(Mt,{error:n,onHide:()=>r("")})]})},Qqi=e=>f.jsx(Kqi,{}),Zqi=async e=>{const t=[];return e&&t.push({name:"GradeId",value:e}),await new Ye().callV2("[SWV].[GetMonthlyReport]",t)},Jqi=({rows:e,columnDefs:t,defaultColDef:n})=>{const[r,i]=b.useState(null),{columnDefaults:o,columnTypes:a}=ku({OnEdit:s=>{}});return o.floatingFilter=!1,pTe(),f.jsx(D,{container:!0,style:{width:"100%",display:"flex"},children:f.jsx(D,{item:!0,md:12,xs:12,style:{height:"37vh",minHeight:"37vh",border:"1px solid #e0e0e0",width:"100%",borderRadius:10},children:f.jsx(Kn,{rowSelection:"single",defaultColDef:n,rowData:e||[],columnDefs:t,columnTypes:a,onGridReady:s=>i(s.api),rowHeight:35})})})},gR=e=>[1,2,3].includes(e.node.rowIndex)?(e.value/2e3).toLocaleString("en-US",{minimumFractionDigits:1,maximumFractionDigits:1}):e.value,e6i=e=>{const t=new Date,n=t.toLocaleString("en-US",{month:"long"}),i=new Date(t.getFullYear(),t.getMonth()-1).toLocaleString("en-US",{month:"long"}),o={CurrentMonth:{Year:t.getFullYear().toString(),Month:(t.getMonth()+1).toString(),Assets:{},Total:{Heats:0,ScrapsUsage:0,CastedTons:0,ScrapGenerated:0}},PreviousMonth:{Year:t.getFullYear().toString(),Month:t.getMonth().toString(),Assets:{},Total:{Heats:0,ScrapsUsage:0,CastedTons:0,ScrapGenerated:0}},YearToDate:{Year:t.getFullYear().toString(),Assets:{},Total:{Heats:0,ScrapsUsage:0,CastedTons:0,ScrapGenerated:0}}};e.forEach(c=>{const{EAF:u,Year:d,Month:p}=c;d===t.getFullYear()&&p===t.getMonth()+1&&u!==null&&(o.CurrentMonth.Assets[u]={Heats:c?.Heats??0,ScrapsUsage:c?.ScrapUsage??0,CastedTons:c?.CastTons??0,ScrapGenerated:c?.CastScrap??0},o.CurrentMonth.Total.Heats+=o.CurrentMonth.Assets[u].Heats,o.CurrentMonth.Total.ScrapsUsage+=o.CurrentMonth.Assets[u].ScrapsUsage,o.CurrentMonth.Total.CastedTons+=o.CurrentMonth.Assets[u].CastedTons,o.CurrentMonth.Total.ScrapGenerated+=o.CurrentMonth.Assets[u].ScrapGenerated),d===t.getFullYear()&&p===t.getMonth()&&u!==null&&(o.PreviousMonth.Assets[u]={Heats:c?.Heats??0,ScrapsUsage:c?.ScrapUsage??0,CastedTons:c?.CastTons??0,ScrapGenerated:c?.CastScrap??0},o.PreviousMonth.Total.Heats+=o.PreviousMonth.Assets[u].Heats,o.PreviousMonth.Total.ScrapsUsage+=o.PreviousMonth.Assets[u].ScrapsUsage,o.PreviousMonth.Total.CastedTons+=o.PreviousMonth.Assets[u].CastedTons,o.PreviousMonth.Total.ScrapGenerated+=o.PreviousMonth.Assets[u].ScrapGenerated),u!==null&&(o.YearToDate.Assets[u]||(o.YearToDate.Assets[u]={Heats:0,ScrapsUsage:0,CastedTons:0,ScrapGenerated:0}),o.YearToDate.Assets[u].Heats+=c?.Heats??0,o.YearToDate.Assets[u].ScrapsUsage+=c?.ScrapUsage??0,o.YearToDate.Assets[u].CastedTons+=c?.CastTons??0,o.YearToDate.Assets[u].ScrapGenerated+=c?.CastScrap??0,o.YearToDate.Total.Heats+=c?.Heats??0,o.YearToDate.Total.ScrapsUsage+=c?.ScrapUsage??0,o.YearToDate.Total.CastedTons+=c?.CastTons??0,o.YearToDate.Total.ScrapGenerated+=c?.CastScrap??0)});const a=[{headerName:"",flex:2,field:"rowDef"},{headerName:`Current Month - ${n} ${t.getFullYear()}`,children:[...Object.keys(o.YearToDate.Assets).map(c=>({field:`${c}-CM`,headerName:c,flex:1,type:["numericColumn","numericWidth"],valueFormatter:gR,cellClass:"month-report"})),{field:"Total-CM",headerName:"Total",flex:1,type:["numericColumn","numericWidth"],cellClass:"month-report",valueFormatter:gR}]},{headerName:`Previous Month - ${i} ${t.getFullYear()}`,children:[...Object.keys(o.YearToDate.Assets).map(c=>({field:`${c}-PM`,headerName:c,flex:1,type:["numericColumn","numericWidth"],valueFormatter:gR})),{field:"Total-PM",headerName:"Total",flex:1,type:["numericColumn","numericWidth"],valueFormatter:gR}]},{headerName:`Year To Date - ${t.getFullYear()}`,children:[...Object.keys(o.YearToDate.Assets).map(c=>({field:`${c}-YD`,headerName:c,flex:1,type:["numericColumn","numericWidth"],valueFormatter:gR})),{field:"Total-YD",headerName:"Total",flex:1,type:["numericColumn","numericWidth"],valueFormatter:gR}]}],s=[{rowDef:"Heat Count","EAF1-CM":o.CurrentMonth.Assets.EAF1?.Heats??0,"EAF2-CM":o.CurrentMonth.Assets.EAF2?.Heats??0,"Total-CM":o.CurrentMonth.Total.Heats,"EAF1-PM":o.PreviousMonth.Assets.EAF1?.Heats??0,"EAF2-PM":o.PreviousMonth.Assets.EAF2?.Heats??0,"Total-PM":o.PreviousMonth.Total.Heats,"EAF1-YD":o.YearToDate.Assets.EAF1?.Heats??0,"EAF2-YD":o.YearToDate.Assets.EAF2?.Heats??0,"Total-YD":o.YearToDate.Total.Heats},{rowDef:"EAF Charged Scrap","EAF1-CM":o.CurrentMonth.Assets.EAF1?.ScrapsUsage??0,"EAF2-CM":o.CurrentMonth.Assets.EAF2?.ScrapsUsage??0,"Total-CM":o.CurrentMonth.Total.ScrapsUsage,"EAF1-PM":o.PreviousMonth.Assets.EAF1?.ScrapsUsage??0,"EAF2-PM":o.PreviousMonth.Assets.EAF2?.ScrapsUsage??0,"Total-PM":o.PreviousMonth.Total.ScrapsUsage,"EAF1-YD":o.YearToDate.Assets.EAF1?.ScrapsUsage??0,"EAF2-YD":o.YearToDate.Assets.EAF2?.ScrapsUsage??0,"Total-YD":o.YearToDate.Total.ScrapsUsage},{rowDef:"Total Cast Tons","EAF1-CM":o.CurrentMonth.Assets.EAF1?.CastedTons??0,"EAF2-CM":o.CurrentMonth.Assets.EAF2?.CastedTons??0,"Total-CM":o.CurrentMonth.Total.CastedTons,"EAF1-PM":o.PreviousMonth.Assets.EAF1?.CastedTons??0,"EAF2-PM":o.PreviousMonth.Assets.EAF2?.CastedTons??0,"Total-PM":o.PreviousMonth.Total.CastedTons,"EAF1-YD":o.YearToDate.Assets.EAF1?.CastedTons??0,"EAF2-YD":o.YearToDate.Assets.EAF2?.CastedTons??0,"Total-YD":o.YearToDate.Total.CastedTons},{rowDef:"Caster Scrap Tons","EAF1-CM":o.CurrentMonth.Assets.EAF1?.ScrapGenerated??0,"EAF2-CM":o.CurrentMonth.Assets.EAF2?.ScrapGenerated??0,"Total-CM":o.CurrentMonth.Total.ScrapGenerated,"EAF1-PM":o.PreviousMonth.Assets.EAF1?.ScrapGenerated??0,"EAF2-PM":o.PreviousMonth.Assets.EAF2?.ScrapGenerated??0,"Total-PM":o.PreviousMonth.Total.ScrapGenerated,"EAF1-YD":o.YearToDate.Assets.EAF1?.ScrapGenerated??0,"EAF2-YD":o.YearToDate.Assets.EAF2?.ScrapGenerated??0,"Total-YD":o.YearToDate.Total.ScrapGenerated}],l={wrapText:!0,resizable:!0,wrapHeaderText:!0,autoHeaderHeight:!0,minWidth:50,filter:!1,floatingFilter:!1,sortable:!1,editable:!1,suppressHeaderMenuButton:!0};return Object.keys(o.YearToDate.Assets).length===0?{columnDefs:[{headerName:"",flex:1,field:"rowDef"}],rowsForTable:[{rowDef:"No data to show"}],defaultColDef:l}:{columnDefs:a,rowsForTable:s,defaultColDef:l}},t6i=Rt(e=>({root:{"& .ag-theme-balham .ag-row .ag-cell:nth-of-type(2)":{backgroundColor:"#5e9bc021"},"& .ag-theme-balham .ag-row .ag-cell:nth-of-type(3)":{backgroundColor:"#5e9bc021"},"& .ag-theme-balham .ag-row .ag-cell:nth-of-type(4)":{backgroundColor:"#5e9bc021"},"& .ag-theme-balham .ag-row .ag-cell":{borderBottom:"0.5px solid #bdc3c7 !important"}}})),n6i=()=>{const[e,t]=b.useState(!0),[n,r]=b.useState(0),[i,o]=b.useState(""),[a,s]=b.useState(),[l,c]=b.useState(),[u,d]=b.useState({}),p=async()=>{t(!0);try{const g=await Zqi(n);if(g.ok){const m=g.data.tables[0].rows,{columnDefs:v,rowsForTable:y,defaultColDef:M}=e6i(m);d(M),c(v),s(y),t(!1)}else t(!1),o(g.message)}catch(g){o(g)}};b.useEffect(()=>{p()},[n]);const h=t6i();return e?f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:f.jsx(Cn,{})}):f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:"Month Report"}),f.jsx(Op,{open:e}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{backgroundColor:" #F2F4F7"},children:f.jsxs(D,{item:!0,container:!0,md:12,xs:12,style:{margin:0,padding:"15px"},spacing:1,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Month Report"})}),f.jsx(D,{item:!0,xs:2,children:f.jsx(kt,{children:f.jsx(Tn,{padding:1,children:f.jsx(D3t,{onChange:g=>{r(g||0)},value:n,label:!0})})})}),f.jsx(D,{container:!0,className:h.root,item:!0,md:12,xs:12,children:f.jsx(Jqi,{rows:a,columnDefs:l,defaultColDef:u})})]})}),f.jsx(Mt,{error:i,onHide:()=>o("")})]})},r6i=e=>f.jsx(n6i,{}),i6i=[f.jsx(cr,{path:"/meltshop-dashboard",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(HZe,{})})}),f.jsx(cr,{path:"/meltshop-dashboard/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(HZe,{})})}),f.jsx(cr,{path:"/meltshop-heats",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(VZe,{})})}),f.jsx(cr,{path:"/meltshop-heats/:shiftId",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(VZe,{})})}),f.jsx(cr,{path:"/month-report",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(r6i,{})})}),f.jsx(cr,{path:"/ladle-status",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(Qqi,{})})})],o6i="modulepreload",a6i=function(e,t){return new URL(e,t).href},GZe={},gTe=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");i=c(n.map(u=>{if(u=a6i(u,r),u in GZe)return;GZe[u]=!0;const d=u.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const v=a[m];if(v.href===u&&(!d||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${p}`))return;const g=document.createElement("link");if(g.rel=d?"stylesheet":o6i,d||(g.as="script"),g.crossOrigin="",g.href=u,l&&g.setAttribute("nonce",l),document.head.appendChild(g),d)return new Promise((m,v)=>{g.addEventListener("load",m),g.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},s6i={isLoadingPage:!1,isLoadingBackground:!1,errorMessage:"",notificationMessage:"",details:[]},tK=Ni({name:"__",initialState:s6i,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setErrorMessage(e,{payload:t}){e.errorMessage=t},setNotificationMessage(e,{payload:t}){e.notificationMessage=t},setDetails(e,{payload:t}){e.details=t}}}),pEt=b.createContext({state:tK.getInitialState(),actions:tK.actions}),hEt=()=>b.useContext(pEt),l6i=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:tK.getInitialState(),reducers:tK.caseReducers});return f.jsx(pEt.Provider,{value:{state:t,actions:n},children:e})},c6i=async()=>{const e=new Ye,t=[];return await e.callV2("[SWV].[GetHealthStatus]",t)},u6i=Rt(e=>({tableContainer:{maxHeight:"300px",overflowY:"auto",display:"block",width:"100%",borderCollapse:"collapse"},simpleCellHeader:{padding:"0.275rem 0.45rem",fontSize:"0.75rem",backgroundColor:"#ced2cc   !important",border:"1px solid #ced4da",color:"#495057",textAlign:"center"},simpleCellText:{padding:"0.275rem 0.45rem",fontSize:"0.75rem",borderRadius:"0px",height:"35px",whiteSpace:"nowrap"},simpleCellCheckBox:{border:"1px solid #ced4da",textAlign:"center",margin:"auto",height:"2.7rem"},simpleCellNumeric:{fontSize:"0.75rem",borderRadius:"0px",padding:"0px 0.6rem",height:"35px",minWidth:"30px",textAlign:"right"}})),Q2=({columns:e,headers:t,widths:n=[],data:r})=>{const i=u6i();return f.jsxs("table",{cellPadding:0,cellSpacing:0,className:i.tableContainer,children:[f.jsx("thead",{children:f.jsx("tr",{children:t.map((o,a)=>f.jsx("th",{className:i.simpleCellHeader,style:{width:n[a]??"100%"},children:o},a))})}),f.jsx("tbody",{children:r.map((o,a)=>f.jsx("tr",{children:e.map((s,l)=>f.jsx("td",{children:f.jsx("input",{type:"text",readOnly:!0,className:"form-control "+i.simpleCellText,value:o[s]||""})},l))},a))})]})},d6i=()=>{const{state:e}=hEt();return f.jsxs(f.Fragment,{children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"flex-start",spacing:3,style:{padding:"5px 10px"},children:[f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[0]??[]).columns||[],data:(e.details[0]??[]).rows||[],headers:["Grade","Count","Examples"],widths:["20%","10%","70%"]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[1]??[]).columns||[],data:(e.details[1]??[]).rows||[],headers:["Section","Count","Examples"],widths:["20%","10%","70%"]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[2]??[]).columns||[],data:(e.details[2]??[]).rows||[],headers:["Heat","Count","Examples"],widths:["20%","10%","70%"]})})]})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"flex-start",spacing:3,style:{padding:"5px 10px"},children:[f.jsx(D,{item:!0,xs:12,sm:12,md:8,lg:8,children:f.jsx(Q2,{columns:(e.details[3]??[]).columns||[],data:(e.details[3]??[]).rows||[],headers:["Source","Count","Examples"],widths:["10%","5%","85%"]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[4]??[]).columns||[],data:(e.details[4]??[]).rows||[],headers:["Grade","Count","Examples"],widths:["20%","10%","70%"]})})]})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"flex-start",spacing:3,style:{padding:"5px 10px"},children:[f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[5]??[]).columns||[],data:(e.details[5]??[]).rows||[],headers:["Section","Count","Examples"],widths:["20%","10%","70%"]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:8,lg:8,children:f.jsx(Q2,{columns:(e.details[6]??[]).columns||[],data:(e.details[6]??[]).rows||[],headers:["Heat","Sample","Count","Examples"],widths:["10%","10%","5%","75%"]})})]})}),f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,justifyContent:"center",alignItems:"flex-start",spacing:3,style:{padding:"5px 10px"},children:[f.jsx(D,{item:!0,xs:12,sm:12,md:8,lg:8,children:f.jsx(Q2,{columns:(e.details[7]??[]).columns||[],data:(e.details[7]??[]).rows||[],headers:["Heat","Sample","Date","Start","End"],widths:["10%","10%","20%","20%","20%"]})}),f.jsx(D,{item:!0,xs:12,sm:6,md:4,lg:4,children:f.jsx(Q2,{columns:(e.details[8]??[]).columns||[],data:(e.details[8]??[]).rows||[],headers:["Heat","Section","Seq.","Date","Count","Examples"],widths:["10%","10%","10%","20%","10%","40%"]})})]})})]})},p6i=e=>{const{state:t,actions:n}=hEt(),r=async()=>{n.setIsLoadingBackground(!0);const i=await c6i();if(i.ok){if(i.data.errorMessage){n.setErrorMessage(i.data.errorMessage);return}n.setDetails(i.data?.tables||{})}else n.setErrorMessage(i.message);n.setIsLoadingBackground(!1)};return b.useEffect(()=>{console.log(t.details)},[t.details]),b.useEffect(()=>{r()},[]),t.isLoadingPage?f.jsx(Cn,{}):f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0,padding:"15px 15px 15px 5px"},container:!0,children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsxs(D,{container:!0,justifyContent:"flex-start",alignItems:"flex-start",spacing:1,style:{padding:"5px 10px"},children:[f.jsx(D,{item:!0,md:10,xs:8,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:"Health Status"})}),f.jsx(d6i,{})]})}),f.jsx(Mt,{error:t.errorMessage,onHide:()=>n.setErrorMessage("")})]})})},h6i=e=>f.jsx(l6i,{children:f.jsx(p6i,{})}),f6i=async e=>{const t=new Ye,n=[];return n.push({name:"Code",value:e}),await t.callV2("[MES].[GetReport]",n)},g6i=async(e,t)=>{const n=new Ye,r=[];return e.showStartDate&&r.push({name:"StartDate",value:e.startDate}),e.showEndDate&&r.push({name:"EndDate",value:e.endDate}),Object.keys(e).forEach(i=>{i!=="startDate"&&i!=="endDate"&&i!=="showStartDate"&&i!=="showEndDate"&&r.push({name:i,value:e[i]===""?null:e[i]})}),await n.callV2(t,r)},m6i={isLoadingPage:!1,isLoadingBackground:!1,isLoadingGrid:!1,reportParameters:[],reportCode:null,reportInfo:null,reportMetadataFilters:null,filterSources:null},nK=Ni({name:"__",initialState:m6i,reducers:{setIsLoadingPage(e,{payload:t}){e.isLoadingPage=t},setIsLoadingBackground(e,{payload:t}){e.isLoadingBackground=t},setIsLoadingGrid(e,{payload:t}){e.isLoadingGrid=t},setReportParameters(e,{payload:t}){e.reportParameters=t},setReportCode(e,{payload:t}){e.reportCode=t},setReportInfo(e,{payload:t}){e.reportInfo=t},setReportMetadataFilters(e,{payload:t}){e.reportMetadataFilters=t},setFilterSources(e,{payload:t}){e.filterSources=t}}}),fEt=b.createContext({state:nK.getInitialState(),actions:nK.actions}),mTe=()=>b.useContext(fEt),v6i=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:nK.getInitialState(),reducers:nK.caseReducers}),r=Ms(),i=()=>{const a=[];for(const[s,l]of Object.entries(r))l!==void 0&&a.push(l);return a},[o]=b.useState(i());return b.useEffect(()=>{(async()=>n.setReportParameters(o))()},[o]),b.useEffect(()=>{(async()=>t.reportParameters[0]!==void 0&&t.reportParameters[0]!==null&&t.reportParameters[0]!==""&&n.setReportCode(t.reportParameters[0]))()},[t.reportParameters]),f.jsx(fEt.Provider,{value:{state:t,actions:n},children:e})},b6i=({settings:e})=>f.jsx(D,{item:!0,container:!0,xs:6,alignItems:"center",justifyContent:"center",children:f.jsx(kt,{style:{display:"flex",justifyContent:"center",padding:"9px"},children:f.jsxs(D,{container:!0,spacing:1,children:[f.jsx(D,{item:!0,xs:3,children:f.jsx(je,{fullWidth:!0,size:"small",disabled:!0,label:"B3ratio",variant:"outlined",value:`${e.SLAG_REPORT_B3RATIO_MIN} – ${e.SLAG_REPORT_B3RATIO_MAX}`,style:{minWidth:"50px"}})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(je,{fullWidth:!0,size:"small",disabled:!0,label:"%MgO",variant:"outlined",value:`${e.SLAG_REPORT_MGO_MIN} – ${e.SLAG_REPORT_MGO_MAX}`,style:{minWidth:"50px"}})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(je,{fullWidth:!0,size:"small",disabled:!0,label:"%FeO",variant:"outlined",value:`≤ ${e.SLAG_REPORT_FEO_MAX}`,style:{minWidth:"50px"}})}),f.jsx(D,{item:!0,xs:3,children:f.jsx(je,{fullWidth:!0,size:"small",disabled:!0,label:"%Total",variant:"outlined",value:`≥ ${e.SLAG_REPORT_TOTAL_MIN}`,style:{minWidth:"50px"}})})]})})}),y6i=Rt(e=>({selectorAlignment:{"& .MuiSelect-root":{display:"flex",alignItems:"center"}}})),F5=Rn(),M6i=({metadataFilters:e,filters:t,filterSources:n,updateFilters:r,onExcelExport:i})=>{const o=y6i(),{state:{settings:a}}=ka(),{state:s}=mTe(),l=s.reportCode==="mes-lab-slag-samples",c=e.filter(m=>m.Parameter!=="IncludeExternal"),u=c.length===1?12:6,d=c.length===1?2:3,p=F5(t.startDate).isAfter(t.endDate),h=m=>{const v=[];return n[m]?.forEach(y=>{v.push({id:y.Id,description:y.Name})}),v},g=(m,v)=>{const y={...t};y[v]=m,r(y)};return f.jsx(D,{container:!0,spacing:2,style:{margin:"10px 0px 3px 0px"},children:f.jsx(D,{item:!0,xs:12,children:f.jsxs(D,{container:!0,spacing:2,alignItems:"center",children:[t.showStartDate&&t.showEndDate&&f.jsx(kt,{style:{display:"flex",justifyContent:"center",padding:"10px"},children:f.jsxs(D,{container:!0,spacing:2,children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(_f,{label:"Start",format:"MM/DD/YYYY",value:F5(t.startDate),onChange:m=>{m&&g(m.toDate(),"startDate")},disableFuture:!0,maxDate:F5(t.endDate),slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px"}},error:p,helperText:p?"Start must be before end":""}}})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(_f,{label:"End",format:"MM/DD/YYYY",value:F5(t.endDate),onChange:m=>{m&&g(m.toDate(),"endDate")},disableFuture:!0,minDate:F5(t.startDate),slotProps:{textField:{variant:"outlined",size:"small",inputProps:{style:{width:"110px"}}}}})})]})}),e.some(m=>m.Parameter==="IncludeExternal")&&f.jsx(D,{item:!0,children:f.jsx(xD,{children:f.jsx(Io,{control:f.jsx(Qr,{checked:!!t.IncludeExternal,color:"primary",onChange:m=>{g(m.target.checked,"IncludeExternal")}}),label:"Include external tests"})})}),l?f.jsx(b6i,{settings:a}):!l&&e.filter(m=>m.Parameter!=="IncludeExternal").length>0&&f.jsx(D,{item:!0,xs:12,md:d,children:f.jsx(kt,{style:{padding:"8px"},className:o.selectorAlignment,children:f.jsx(D,{container:!0,spacing:2,alignItems:"center",children:c.map((m,v)=>f.jsx(D,{item:!0,xs:12,md:u,children:f.jsx(b2i,{title:m.FilterName,dataSource:h(v),onChange:y=>g(y,m.Parameter),selectedValue:t[m.Parameter],styleList:{width:"100%"}})},`grid_${v}`))})})}),f.jsx(D,{item:!0,style:{marginLeft:"auto",marginRight:"20px"},children:f.jsx(Ik,{onClick:i})})]})})})},C6i=Rt(e=>({root:{"& .ag-header":{},"& .ag-header-cell":{},"& .ag-cell-label-container":{padding:"0px !important"},"& .ag-header-cell-text":{margin:"auto !important"},"& .ag-menu":{},"& .cell-number":{textAlign:"right !important"},"& .cell-string":{textAlign:"left !important"},"& .red":{color:"red"},"& .ag-cell":{fontSize:"12px !important",padding:"0.5rem !important"},"& .error-limit":{color:"#fff",backgroundColor:"#f07171",fontWeight:600},"& .stripe-header ":{color:"#fff"},"& .ag-drag-handle":{},"& .ag-right-aligned-cell":{},"& .ag-button-cell":{padding:"0px !important",textAlign:"center !important",cursor:"pointer"},"& .ag-center-aligned-header":{textAlign:"center !important"},"& .ag-center-aligned-cell":{textAlign:"center !important"},"& .custom-tooltip":{width:"170px",minHeight:"50px",border:"1px solid cornflowerblue",overflow:"hidden"},"& .custom-tooltip p":{margin:"5px",whiteSpace:"pre-line",wordWrap:"break-word"},"& .custom-tooltip span:first-of-type":{fontWeight:"bold"},"& .cell-alert":{backgroundColor:"#FF0000 !important",color:"#ffffff !important"},"& .cell-success":{backgroundColor:"#00B050 !important",color:"#ffffff !important"}},btnModal:{display:"flex",justifyContent:"flex-end"},footerTitle:{width:220,padding:"8px 0",textAlign:"center",backgroundColor:"#eee",borderBottom:"solid 1px #babfc7",borderLeft:"solid 1px #babfc7"},footerContainer:{backgroundColor:"#fff",height:"45px"},footerItem:{width:70,padding:"8px 0",textAlign:"center",backgroundColor:"#eee",borderBottom:"solid 1px #babfc7"},footerTextItem:{fontSize:12,verticalAlign:"middle"},footerTextTitle:{fontSize:12,verticalAlign:"middle",fontWeight:700}})),mR=Rn(),x6i=({headers:e,rows:t,gridRef:n,refreshData:r,loading:i})=>{C6i();const{state:o}=mTe(),a=o.reportCode==="mes-lab-slag-samples",s=o.reportCode==="mes-lab-mechanical-activity",[l,c]=b.useState([]),[u,d]=b.useState(null),p=M=>{if(M.value===null||M.value===void 0)return"";if(o.reportCode==="mes-report-predictor"&&M.colDef?.field==="value"){const x=M.data;if(x&&typeof x.decimals=="number"){const w=parseFloat(M.value),S=x.decimals;if(!isNaN(w)&&!isNaN(S))return w.toFixed(S).replace(/\.?0+$/,"")}}const C=M.value.toString().split("%%%");return C.length>0?C[0]:""},h=(M,C)=>{let x=C+" ag-cell-center";if(!M.value)return x;const w=M.value.toString().split("%%%");if(w.length>2){const S=w[2].trim();return`${x} ${S}`}return x},g=({value:M,showTooltip:C,color:x})=>C?f.jsx("div",{style:{backgroundColor:x},children:M}):null,m=M=>{const C=M.indexOf("pixel-");if(C===-1)return 0;let x=M.indexOf(" ",C);x===-1&&(x=M.length);const w=M.substring(C+6,x);return parseInt(w)},v=async M=>{await r(),d(M.api),M.api.sizeColumnsToFit()},y=b.useMemo(()=>({width:"100%",padding:"0px",height:"75vh",border:"1px solid #ccc",borderRadius:"4px"}),[]);return b.useEffect(()=>{u&&u.sizeColumnsToFit()},[u,l]),b.useMemo(()=>{const M=[];e.slice().sort((C,x)=>C.Order-x.Order).forEach(C=>{const x={field:C.ColumnData,headerName:C.ColumnName,headerClass:C.HeaderClass,minWidth:m(C.HeaderClass),resizable:!0,...a&&{cellClassRules:{"cell-alert":w=>w.value?.includes("cell-alert"),"cell-success":w=>w.value?.includes("cell-success")}},valueFormatter:w=>p(w),valueGetter:w=>{const S=Ot(w.data,C.ColumnData,"_");return C.Type===10&&mR.utc(S).isValid()?Wn(mR(S).toDate(),"MM/dd/yyyy"):C.Type===11&&mR.utc(S).isValid()?Wn(mR.utc(S).toDate(),"HH:mm:ss"):C.Type===12&&mR.utc(S).isValid()?Wn(mR.utc(S).toDate(),"HH:mm:ss - MM/dd/yyyy"):w.data[C.ColumnData]},cellClass:w=>h(w,C.CellClass),tooltipComponent:g,tooltipField:C.ColumnData,tooltipComponentParams:{color:"#ececec"}};C.ColumnData==="StatusCode"&&(x.cellRenderer=w=>{{const{value:S}=w,A=()=>{const z={display:"flex",alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"4px",fontWeight:"bold",cursor:"pointer"};return S==="V"?{...z,backgroundColor:"#4caf50",color:"white"}:S==="I"?{...z,backgroundColor:"#f44336",color:"white"}:{...z,backgroundColor:"#9e9e9e",color:"white"}};return f.jsx("div",{style:A(),title:S==="V"?"Valid":"Invalid",children:S})}}),C.ColumnData==="Heat"&&(x.cellRenderer=w=>s?zd({...w,link:`/lab-mechanical-by-heat/${w.data.Heat}`}):w.value),C.ColumnData==="Asset"&&(x.cellRenderer=w=>(w.value,f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(Ete,{value:w.value})})),x.cellClass=w=>w.data.Asset?`eaf-1${w.data.Asset[w.data.Asset.length-1]}`:""),M.push(x)}),c(M)},[e,a]),n.current=u,f.jsx(D,{container:!0,justifyContent:"flex-start",alignItems:"stretch",children:f.jsx(D,{item:!0,style:y,xs:12,md:12,children:f.jsx(Kn,{onGridReady:v,rowSelection:"single",pagination:!1,animateRows:!0,singleClickEdit:!0,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:t,loading:i,columnDefs:l,onGridSizeChanged:M=>{M.api.sizeColumnsToFit()}})})})},TN=Rn(),$Ze=(e,t)=>{const n=TN(e).startOf("day");return t||n.endOf("day"),n.toDate()},w6i=()=>{const{state:e,actions:t}=mTe(),{state:{settings:n}}=ka(),[r,i]=b.useState(null),o=b.useRef(null),[a,s]=b.useState(null),l=e.reportCode==="mes-lab-slag-samples",c=e.reportCode==="mes-lab-last-eaf-samples",u=Ot(n,"LAST_EAF_SAMPLES_NUMBER_OF_HEATS",20),[d,p]=b.useState([]),[h,g]=b.useState(!1),[m,v]=b.useState(""),[y,M]=b.useState({startDate:TN.utc().subtract(1,"days").toDate(),endDate:TN.utc().toDate(),showStartDate:!1,showEndDate:!1,IncludeExternal:!1,onLoad:!1}),C=O=>{M(O)},x=()=>{const O=location.pathname.split("/");let T=(O[0]!==void 0&&O[0]!=="/"?`${O[0]}`:"")+(O[1]!==void 0&&O[1]!=="/"?`/${O[1]}`:"");T+=`/${e.reportCode}`,y.showStartDate&&(T+=`/${Wn(y.startDate,"yyyyMMdd")}`),y.showEndDate&&(T+=`/${Wn(y.endDate,"yyyyMMdd")}`),Object.keys(y).forEach(I=>{I!=="startDate"&&I!=="endDate"&&I!=="showStartDate"&&I!=="showEndDate"&&I!=="IncludeExternal"&&I!=="onLoad"&&(T+=`/${y[I]===""||y[I]===null||y[I]===void 0?"0":y[I]}`)}),window.history.replaceState(null,"",T)},w=async()=>{x(),await z()},S=async()=>{t.setIsLoadingPage(!0);const O=await f6i(e.reportCode===null?"":e.reportCode);if(O.ok&&O.data.tables.length>0&&O.data.tables[0].rows.length>0){const T=Ot(O,"data.tables[0].rows[0]",{});if(t.setReportInfo(T),O.ok&&O.data.tables.length>1){const P=Ot(O,"data.tables[1].rows",[]);t.setReportMetadataFilters(P)}else t.setReportMetadataFilters([]);const I=[];for(let P=2;P<O.data.tables.length;P++)I.push(O.data.tables[P].rows);t.setFilterSources(I)}else console.log("something happened 1");t.setIsLoadingPage(!1)},A=O=>l?O.map(T=>{const I={...T};return Object.keys(I).forEach(P=>{I[P]&&typeof I[P]=="string"&&I[P].includes("%%%")&&(I[P]=I[P].split("%%%")[0])}),I}):O,z=async()=>{t.setIsLoadingGrid(!0),c&&(y.NumberOfHeats=u);const O=await g6i({...y,startDate:$Ze(y.startDate,!0),endDate:$Ze(y.endDate,!1)},e.reportInfo?.DataSource??"");if(O.ok&&O.data.tables.length>0){const I=Ot(O,"data.tables[0].rows",[]).map(P=>Object.keys(P).reduce((N,F)=>(N[F.toLowerCase()]=P[F],N),{}));p(I)}if(O.ok&&O.data.tables.length>1){const I=Ot(O,"data.tables[1].rows",[]).map(P=>({...P,ColumnData:P.ColumnData.toLowerCase()}));s(I)}else s([]);O.ok||v(O.message),t.setIsLoadingGrid(!1)};return b.useEffect(()=>{(async()=>e.reportCode!==""&&e.reportCode!==null&&await S())()},[e.reportCode]),b.useEffect(()=>{const O={...y,showStartDate:e.reportInfo?.HasStartDate??!1,showEndDate:e.reportInfo?.HasEndDate??!1,onLoad:!1};M(O)},[e.reportInfo]),b.useEffect(()=>{if(e.reportMetadataFilters===null)return;const O={...y,onLoad:!0};e.reportMetadataFilters?.forEach(T=>{T.Parameter==="IncludeExternal"?O[T.Parameter]=!1:O[T.Parameter]=""}),M(O)},[e.reportMetadataFilters]),b.useEffect(()=>{if(y.onLoad===!0){const O={...y,onLoad:!1};let T=1;Object.keys(O).forEach(I=>{if(!(I==="showStartDate"||I==="showEndDate"||I==="IncludeExternal"||I==="onLoad"||I==="refreshData"))if(I==="startDate"&&O.showStartDate&&e.reportParameters[T]!==void 0){const P=TN(e.reportParameters[T],"YYYYMMDD");P.isValid()&&(O[I]=P.toDate()),T++}else if(I==="endDate"&&O.showEndDate&&e.reportParameters[T]!==void 0){const P=TN(e.reportParameters[T],"YYYYMMDD");P.isValid()&&(O[I]=P.toDate()),T++}else e.reportParameters[T]!==void 0?(O[I]=e.reportParameters[T],T++):I==="IncludeExternal"?(O[I]=!1,T++):I!=="startDate"&&I!=="endDate"&&(O[I]="0",T++)}),M(O),g(!0)}},[y]),b.useEffect(()=>{(async()=>h&&o.current&&(t.setIsLoadingBackground(!0),o.current.showLoadingOverlay(),await w(),t.setIsLoadingBackground(!1),o.current.hideOverlay()))()},[y,h,r]),e.isLoadingPage?f.jsx(Cn,{}):f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:e.reportInfo?.Title||"LAB Report"}),f.jsx(Op,{open:e.isLoadingBackground}),f.jsx(D,{container:!0,justifyContent:"center",alignItems:"center",style:{backgroundColor:"#f2f4f7"},children:f.jsxs(D,{item:!0,md:12,xs:12,style:{margin:0,padding:"20px"},children:[f.jsx(D,{item:!0,md:12,xs:12,children:f.jsx(D,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:f.jsx(bt,{variant:"h5",style:{fontWeight:600},children:e.reportInfo?.Title})})}),f.jsx(M6i,{metadataFilters:e.reportMetadataFilters??[],filters:y,filterSources:e.filterSources??[],updateFilters:C,refreshData:w,onExcelExport:()=>{if(o.current){const O=A(d);o.current.setGridOption("rowData",O),o.current.exportDataAsExcel({fileName:e.reportInfo?.Title,sheetName:e.reportInfo?.Title}),o.current.setGridOption("rowData",d)}}}),f.jsx(x6i,{headers:a??[],rows:d,refreshData:w,gridRef:o,loading:e.isLoadingGrid})]})}),f.jsx(Mt,{error:m,onHide:()=>v("")})]})},SA=e=>{const{reportCode:t}=Ms();return f.jsx(v6i,{children:f.jsx(w6i,{})},t)},UZe=b.lazy(()=>gTe(()=>import("./index-B9nE_vjK.js"),__vite__mapDeps([0,1]),import.meta.url)),XZe=b.lazy(()=>gTe(()=>import("./index-Caljaa-S.js"),__vite__mapDeps([2,1]),import.meta.url)),YZe=b.lazy(()=>gTe(()=>import("./index-BeyWqGOP.js"),__vite__mapDeps([3,1]),import.meta.url)),S6i=[f.jsx(cr,{path:"/report",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(SA,{})})}),f.jsx(cr,{path:"/report/health-status",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(h6i,{})})}),f.jsx(cr,{path:"/report/:reportCode",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(SA,{})})}),f.jsx(cr,{path:"/report/:reportCode/:param1",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(SA,{})})}),f.jsx(cr,{path:"/report/:reportCode/:param1/:param2",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(SA,{})})}),f.jsx(cr,{path:"/report/:reportCode/:param1/:param2/:param3",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(SA,{})})}),f.jsx(cr,{path:"/report/:reportCode/:param1/:param2/:param3/:param4",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(SA,{})})}),f.jsx(cr,{path:"/report/:reportCode/:param1/:param2/:param3/:param4/:param5",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(SA,{})})}),f.jsx(cr,{path:"/report/kentucky-mechanical-activity/:startDate/:endDate",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(UZe,{})})}),f.jsx(cr,{path:"/report/kentucky-mechanical-activity",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(UZe,{})})}),f.jsx(cr,{path:"/report/kentucky-mechanical-sample-by-date/:startDate/:endDate/:grade",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(XZe,{})})}),f.jsx(cr,{path:"/report/kentucky-mechanical-sample-by-date",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(XZe,{})})}),f.jsx(cr,{path:"/report/kentucky-mechanical-sample-by-heat/:heatId/:status/:validFlag",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(YZe,{})})}),f.jsx(cr,{path:"/report/kentucky-mechanical-sample-by-heat",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(YZe,{})})})],A6i=e=>{const t=e.reduce((l,c)=>(l[c.Strand]=c,l),{}),r=[{property:"Heats",field:"Heats"},{property:"Product Tons",field:"ProductTons"},{property:"Yield",field:"Yield"},{property:"Tons/Hour",field:"TonsPerHour"},{property:"Run Time",field:"RunTime"},{property:"Lost Strand",field:"LostStrand"},{property:"Scrap Billets",field:"ScrapBillets"}].map(l=>({Property:l.property,s1:t[1]?t[1][l.field]:null,s2:t[2]?t[2][l.field]:null,s3:t[3]?t[3][l.field]:null,Total:t.Total?t.Total[l.field]:null})),i=l=>c=>{const u=c.data[l];return u==null?null:c.data.Property==="Run Time"||c.data.Property==="Yield"?`${Number(u).toFixed(2)}%`:Number.isInteger(u)?u:Number(u).toFixed(2)},o={"null-value-cell":l=>l.data.Property=="Heats"||l.data.Property=="Liq Weight"||l.data.Property=="Lost Strand"};return{columns:[{headerName:"CAS Summary",children:[{field:"Property",headerName:"",flex:1,minWidth:106,cellClass:"first-column-cell"},{field:"1",headerName:"S1",flex:1,minWidth:73,valueGetter:i("s1"),cellClassRules:o},{field:"2",headerName:"S2",flex:1,minWidth:73,valueGetter:i("s2"),cellClassRules:o},{field:"3",headerName:"S3",flex:1,minWidth:73,valueGetter:i("s3"),cellClassRules:o},{field:"Total",headerName:"Total",flex:1,minWidth:73,valueGetter:i("Total")}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:r}},O6i=({rows:e,isLoading:t})=>{const n=p2(),{columns:r,rowData:i}=A6i(e),[o,a]=b.useState(null),s=l=>{a(l.api)};return b.useEffect(()=>{o&&(t?o.showLoadingOverlay():o.hideOverlay())},[o,t]),f.jsx(kt,{elevation:0,children:f.jsx(Tn,{className:`${n.readonlyAgGridBox} ${n.dynamicHeight}`,children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:i,columnDefs:r,domLayout:"autoHeight",onGridReady:s})})})},W5=e=>({...e,sortable:!0,wrapText:!0,autoHeight:!0,wrapHeaderText:!0}),z6i=({})=>({columns:[W5({field:"Start",headerName:"Start",valueGetter:n=>Wn(`${n.data?.Start}`,"HH:mm:ss")||"",minWidth:80,flex:1}),W5({field:"End",headerName:"End",valueGetter:n=>Wn(`${n.data?.End}`,"HH:mm:ss")||"",minWidth:80,flex:1}),W5({field:"Duration",headerName:"Duration",valueFormatter:n=>{if(n.value){const r=mt.duration(n.value,"seconds"),i=Math.floor(r.asMinutes()),o=r.seconds();return`${i}m ${o}s`}return""},minWidth:102,flex:1}),{field:"DelayCategory",headerName:"Category",valueGetter:n=>{const r=n.data?.DelayCategoryName,i=n.data?.DelayCategoryColor;return{name:r,color:i}},cellRenderer:Ote,minWidth:180,maxWidth:180,editable:!1,cellStyle:{justifyContent:""},flex:1},W5({field:"DelayCodeName",headerName:"Code",valueGetter:n=>n.data?.DelayCodeName||"No Classified",minWidth:130,editable:!1,flex:2,cellStyle:{justifyContent:"center"}}),W5({field:"Comments",headerName:"Comments",minWidth:117,flex:4,cellStyle:{justifyContent:"flex-start"}})],defaultColDef:{flex:1,resizable:!0}}),T6i=({rows:e,isLoading:t})=>{const n=p2(),{columns:r}=z6i(e),[i,o]=b.useState(null),a={"EAF 1":"#dae8fc","EAF 2":"#d5e8d4",Caster:"#f8cfcc"},s=d=>!d.data.DelayCodeName||!d.data.DelayCategoryName?n.unclassifiedDelayRow:"",l=d=>{o(d.api)};b.useEffect(()=>{i&&(t?i.showLoadingOverlay():i.hideOverlay())},[i,t]);const c=["EAF 1","EAF 2","Caster"],u=e.reduce((d,p)=>{const h=p.AssetName||"Unknown Asset";return d[h]||(d[h]=[]),d[h].push(p),d},{});return f.jsx(kt,{elevation:0,children:c.map(d=>{const p=u[d]||[];return f.jsxs("div",{children:[f.jsx(D,{item:!0,xs:12,md:12,children:f.jsx(yD,{className:n.assetCard,style:{backgroundColor:a[d]},variant:"outlined",children:f.jsx(MD,{children:f.jsx(bt,{variant:"h5",children:d})})})}),f.jsx(Tn,{className:`${n.EAFAgGridBox}`,children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:p,columnDefs:r,onGridReady:l,getRowClass:s})})]},d)})})},E6i=e=>{const t=e.reduce((s,l)=>(s[l.AssetName]=l,s),{}),r=[{property:"Heats",field:"Heats"},{property:"Scrap Tons",field:"ScrapTons"},{property:"Energy",field:"Energy"},{property:"KWH/Ton  [avg]",field:"KWHPerTon"},{property:"Tap To Tap [avg]",field:"TapToTap"},{property:"Power On  [avg]",field:"PowerOn"},{property:"Total Delay [min]",field:"DelayTimeInMinutes"}].map(s=>({Property:s.property,EAF1:t["EAF 1"]?t["EAF 1"][s.field]:null,EAF2:t["EAF 2"]?t["EAF 2"][s.field]:null,Total:t.Total?t.Total[s.field]:null})),i=s=>l=>{const c=l.data[s];return c==null?null:l.data.Property==="Yield"?`${Number(c).toFixed(2)}%`:Number.isInteger(c)?c:Number(c).toFixed(2)};return{columns:[{headerName:"EAF Summary",children:[{field:"Property",headerName:"",flex:1,minWidth:130,cellClass:"first-column-cell"},{field:"EAF1",headerName:"EAF 1",flex:1,minWidth:63,valueGetter:i("EAF1")},{field:"EAF2",headerName:"EAF 2",flex:1,minWidth:63,valueGetter:i("EAF2")},{field:"Total",headerName:"Total",flex:1,minWidth:55,valueGetter:i("Total")}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:r}},R6i=({rows:e,isLoading:t})=>{const n=p2(),{columns:r,rowData:i}=E6i(e),[o,a]=b.useState(null),s=l=>{a(l.api)};return b.useEffect(()=>{o&&(t?o.showLoadingOverlay():o.hideOverlay())},[o,t]),f.jsx(kt,{elevation:0,children:f.jsx(Tn,{className:` ${n.readonlyAgGridBox} ${n.dynamicHeight}`,children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:i,columnDefs:r,domLayout:"autoHeight",onGridReady:s,loading:t})})})},I6i=({heats:e})=>{const{state:{settings:t}}=ka(),n=Number(Ot(t,"SHIFTREPORT_MAX_TTT",180)),r=Number(Ot(t,"SHIFTREPORT_MAX_POWER_ON",140)),i=Number(Ot(t,"SHIFTREPORT_MAX_DURATION",120)),o=Number(Ot(t,"SHIFTREPORT_MAX_TAPTEMP",3900)),a=Number(Ot(t,"SHIFTREPORT_MAX_TRIMTEMP",3300)),s=Number(Ot(t,"SHIFTREPORT_MIN_SUPERHEAT",30));return{columnData:[{headerName:"Heat",field:"Heat",minWidth:65,flex:1},{headerName:"Grade",field:"Grade",minWidth:98,cellClassRules:{"max-limit":u=>u.data.Grade!==u.data.ProgrammedGrade},flex:1},{headerName:"Ladle",field:"Ladle",minWidth:57,flex:1},{headerName:"EAF Tap",field:"EAFTap",minWidth:73,valueGetter:u=>Wn(`${u.data.EAFTap}`,"HH:mm"),cellRenderer:u=>u.data.HeatEAFDELink?f.jsx(zd,{...u,linkProperty:"HeatEAFDELink"}):f.jsx("span",{style:{color:"black"},children:u.value}),flex:1},{headerName:"TTT",field:"TTT",minWidth:50,valueGetter:u=>u.data.TTT?u.data.TTT.toString():"",cellClassRules:{"max-limit":u=>Number(u.value)>n},flex:1},{headerName:"Power On",field:"PowerOn",minWidth:82,cellClassRules:{"max-limit":u=>Number(u.value)>r},flex:1},{headerName:"Tap Temp",field:"TapTemp",minWidth:82,cellClassRules:{"max-limit":u=>Number(u.value)>o},flex:1},{headerName:"Trim Temp",field:"TrimTemp",minWidth:88,cellClassRules:{"max-limit":u=>Number(u.value)>a},flex:1},{headerName:"Ladle Open",field:"LadleOpen",minWidth:61,wrapHeaderText:!0,valueGetter:u=>Wn(`${u.data.LadleOpen}`,"HH:mm"),cellRenderer:u=>u.data.HeatCASDELink?f.jsx(zd,{...u,linkProperty:"HeatCASDELink"}):f.jsx("span",{style:{color:"black"},children:u.value}),flex:1},{headerName:"Ladle Close",field:"LadleClose",minWidth:61,wrapHeaderText:!0,valueGetter:u=>Wn(`${u.data.LadleClose}`,"HH:mm"),flex:1},{headerName:"Duration",field:"Duration",minWidth:76,valueGetter:u=>u.data.Duration?u.data.Duration.toFixed(2):"",cellClassRules:{"max-limit":u=>Number(u.value)>i},flex:1},{headerName:"Section",field:"Sections",minWidth:70,wrapText:!0,flex:1},{headerName:"Length",field:"Length",minWidth:66,flex:1},{headerName:"Seq",field:"Sequence",minWidth:48,flex:1},{headerName:"Last SH",field:"LastSuperheat",minWidth:71,cellClassRules:{"max-limit":u=>u.value!==null&&Number(u.value)<s},flex:1},{headerName:"Tons",field:"Tons",minWidth:53,valueGetter:u=>u.data.Tons?u.data.Tons.toFixed(1):"",flex:1},{headerName:"Scrap [tons]",field:"Scrap",minWidth:60,valueGetter:u=>u.data.Scrap?u.data.Scrap.toFixed(1):"",flex:1}],defaultColDef:{flex:1,resizable:!0}}},P6i=({isLoading:e,heats:t})=>{const n=p2(),{columnData:r}=I6i({heats:t}),[i,o]=b.useState(null),a=s=>{o(s.api)};return b.useEffect(()=>{i&&(e?i.showLoadingOverlay():i.hideOverlay())},[i,e]),f.jsx(kt,{elevation:0,children:f.jsx(Tn,{className:`${n.smAgGridBox}`,children:f.jsx(Kn,{rowData:t,columnDefs:r,rowSelection:"single",overlayLoadingTemplate:"Loading...",suppressContextMenu:!0,getRowId:s=>s.data.Heat,onGridReady:a})})})},KZe=["http","https","mailto","tel"];function D6i(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++i<KZe.length;){const o=KZe[i];if(r===o.length&&t.slice(0,o.length).toLowerCase()===o)return t}return i=t.indexOf("?"),i!==-1&&r>i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var Fpe,QZe;function k6i(){return QZe||(QZe=1,Fpe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}),Fpe}var L6i=k6i();const gEt=qn(L6i);function rW(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ZZe(e.position):"start"in e||"end"in e?ZZe(e):"line"in e||"column"in e?O2e(e):""}function O2e(e){return JZe(e&&e.line)+":"+JZe(e&&e.column)}function ZZe(e){return O2e(e&&e.start)+"-"+O2e(e&&e.end)}function JZe(e){return e&&typeof e=="number"?e:1}class ag extends Error{constructor(t,n,r){const i=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const a=r.indexOf(":");a===-1?i[1]=r:(i[0]=r.slice(0,a),i[1]=r.slice(a+1))}n&&("type"in n||"position"in n?n.position&&(o=n.position):"start"in n||"end"in n?o=n:("line"in n||"column"in n)&&(o.start=n)),this.name=rW(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}ag.prototype.file="";ag.prototype.name="";ag.prototype.reason="";ag.prototype.message="";ag.prototype.stack="";ag.prototype.fatal=null;ag.prototype.column=null;ag.prototype.line=null;ag.prototype.source=null;ag.prototype.ruleId=null;ag.prototype.position=null;const Iv={basename:_6i,dirname:N6i,extname:F6i,join:W6i,sep:"/"};function _6i(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');wj(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function N6i(e){if(wj(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function F6i(e){wj(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function W6i(...e){let t=-1,n;for(;++t<e.length;)wj(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":q6i(n)}function q6i(e){wj(e);const t=e.charCodeAt(0)===47;let n=B6i(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function B6i(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function wj(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const j6i={cwd:H6i};function H6i(){return"/"}function z2e(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function V6i(e){if(typeof e=="string")e=new URL(e);else if(!z2e(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return G6i(e)}function G6i(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Wpe=["history","path","basename","stem","extname","dirname"];class mEt{constructor(t){let n;t?typeof t=="string"||$6i(t)?n={value:t}:z2e(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=j6i.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<Wpe.length;){const o=Wpe[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Wpe.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){z2e(t)&&(t=V6i(t)),Bpe(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?Iv.dirname(this.path):void 0}set dirname(t){eJe(this.basename,"dirname"),this.path=Iv.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?Iv.basename(this.path):void 0}set basename(t){Bpe(t,"basename"),qpe(t,"basename"),this.path=Iv.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?Iv.extname(this.path):void 0}set extname(t){if(qpe(t,"extname"),eJe(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Iv.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?Iv.basename(this.path,this.extname):void 0}set stem(t){Bpe(t,"stem"),qpe(t,"stem"),this.path=Iv.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new ag(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=null,i}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}}function qpe(e,t){if(e&&e.includes(Iv.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Iv.sep+"`")}function Bpe(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function eJe(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function $6i(e){return gEt(e)}function tJe(e){if(e)throw e}var jpe,nJe;function U6i(){if(nJe)return jpe;nJe=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},o=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var u=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!u&&!d)return!1;var p;for(p in c);return typeof p>"u"||e.call(c,p)},a=function(c,u){n&&u.name==="__proto__"?n(c,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):c[u.name]=u.newValue},s=function(c,u){if(u==="__proto__")if(e.call(c,u)){if(r)return r(c,u).value}else return;return c[u]};return jpe=function l(){var c,u,d,p,h,g,m=arguments[0],v=1,y=arguments.length,M=!1;for(typeof m=="boolean"&&(M=m,m=arguments[1]||{},v=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});v<y;++v)if(c=arguments[v],c!=null)for(u in c)d=s(m,u),p=s(c,u),m!==p&&(M&&p&&(o(p)||(h=i(p)))?(h?(h=!1,g=d&&i(d)?d:[]):g=d&&o(d)?d:{},a(m,{name:u,newValue:l(M,g,p)})):typeof p<"u"&&a(m,{name:u,newValue:p}));return m},jpe}var X6i=U6i();const rJe=qn(X6i);function T2e(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Y6i(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...c){const u=e[++o];let d=-1;if(l){a(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?K6i(u,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function K6i(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const Q6i=bEt().freeze(),vEt={}.hasOwnProperty;function bEt(){const e=Y6i(),t=[];let n={},r,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=s,o.attachers=t,o.use=l,o.parse=c,o.stringify=u,o.run=d,o.runSync=p,o.process=h,o.processSync=g,o;function o(){const m=bEt();let v=-1;for(;++v<t.length;)m.use(...t[v]);return m.data(rJe(!0,{},n)),m}function a(m,v){return typeof m=="string"?arguments.length===2?(Gpe("data",r),n[m]=v,o):vEt.call(n,m)&&n[m]||null:m?(Gpe("data",r),n=m,o):n}function s(){if(r)return o;for(;++i<t.length;){const[m,...v]=t[i];if(v[0]===!1)continue;v[0]===!0&&(v[0]=void 0);const y=m.call(o,...v);typeof y=="function"&&e.use(y)}return r=!0,i=Number.POSITIVE_INFINITY,o}function l(m,...v){let y;if(Gpe("use",r),m!=null)if(typeof m=="function")w(m,...v);else if(typeof m=="object")Array.isArray(m)?x(m):C(m);else throw new TypeError("Expected usable value, not `"+m+"`");return y&&(n.settings=Object.assign(n.settings||{},y)),o;function M(S){if(typeof S=="function")w(S);else if(typeof S=="object")if(Array.isArray(S)){const[A,...z]=S;w(A,...z)}else C(S);else throw new TypeError("Expected usable value, not `"+S+"`")}function C(S){x(S.plugins),S.settings&&(y=Object.assign(y||{},S.settings))}function x(S){let A=-1;if(S!=null)if(Array.isArray(S))for(;++A<S.length;){const z=S[A];M(z)}else throw new TypeError("Expected a list of plugins, not `"+S+"`")}function w(S,A){let z=-1,O;for(;++z<t.length;)if(t[z][0]===S){O=t[z];break}O?(T2e(O[1])&&T2e(A)&&(A=rJe(!0,O[1],A)),O[1]=A):t.push([...arguments])}}function c(m){o.freeze();const v=q5(m),y=o.Parser;return Hpe("parse",y),iJe(y,"parse")?new y(String(v),v).parse():y(String(v),v)}function u(m,v){o.freeze();const y=q5(v),M=o.Compiler;return Vpe("stringify",M),oJe(m),iJe(M,"compile")?new M(m,y).compile():M(m,y)}function d(m,v,y){if(oJe(m),o.freeze(),!y&&typeof v=="function"&&(y=v,v=void 0),!y)return new Promise(M);M(null,y);function M(C,x){e.run(m,q5(v),w);function w(S,A,z){A=A||m,S?x(S):C?C(A):y(null,A,z)}}}function p(m,v){let y,M;return o.run(m,v,C),aJe("runSync","run",M),y;function C(x,w){tJe(x),y=w,M=!0}}function h(m,v){if(o.freeze(),Hpe("process",o.Parser),Vpe("process",o.Compiler),!v)return new Promise(y);y(null,v);function y(M,C){const x=q5(m);o.run(o.parse(x),x,(S,A,z)=>{if(S||!A||!z)w(S);else{const O=o.stringify(A,z);O==null||(eBi(O)?z.value=O:z.result=O),w(S,z)}});function w(S,A){S||!A?C(S):M?M(A):v(null,A)}}}function g(m){let v;o.freeze(),Hpe("processSync",o.Parser),Vpe("processSync",o.Compiler);const y=q5(m);return o.process(y,M),aJe("processSync","process",v),y;function M(C){v=!0,tJe(C)}}}function iJe(e,t){return typeof e=="function"&&e.prototype&&(Z6i(e.prototype)||t in e.prototype)}function Z6i(e){let t;for(t in e)if(vEt.call(e,t))return!0;return!1}function Hpe(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Vpe(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Gpe(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function oJe(e){if(!T2e(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function aJe(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function q5(e){return J6i(e)?e:new mEt(e)}function J6i(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function eBi(e){return typeof e=="string"||gEt(e)}const tBi={};function nBi(e,t){const n=tBi,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return yEt(e,r,i)}function yEt(e,t,n){if(rBi(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return sJe(e.children,t,n)}return Array.isArray(e)?sJe(e,t,n):""}function sJe(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=yEt(e[i],t,n);return r.join("")}function rBi(e){return!!(e&&typeof e=="object")}function Hb(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function pf(e,t){return e.length>0?(Hb(e,e.length,0,t),e):t}const lJe={}.hasOwnProperty;function iBi(e){const t={};let n=-1;for(;++n<e.length;)oBi(t,e[n]);return t}function oBi(e,t){let n;for(n in t){const i=(lJe.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){lJe.call(i,a)||(i[a]=[]);const s=o[a];aBi(i[a],Array.isArray(s)?s:s?[s]:[])}}}function aBi(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Hb(e,0,0,r)}const sBi=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Yv=Hw(/[A-Za-z]/),nh=Hw(/[\dA-Za-z]/),lBi=Hw(/[#-'*+\--9=?A-Z^-~]/);function E2e(e){return e!==null&&(e<32||e===127)}const R2e=Hw(/\d/),cBi=Hw(/[\dA-Fa-f]/),uBi=Hw(/[!-/:-@[-`{-~]/);function _i(e){return e!==null&&e<-2}function mp(e){return e!==null&&(e<0||e===32)}function Wa(e){return e===-2||e===-1||e===32}const dBi=Hw(sBi),pBi=Hw(/\s/);function Hw(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function $s(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Wa(l)?(e.enter(n),s(l)):t(l)}function s(l){return Wa(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const hBi={tokenize:fBi};function fBi(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),$s(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return _i(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const gBi={tokenize:mBi},cJe={tokenize:vBi};function mBi(e){const t=this,n=[];let r=0,i,o,a;return s;function s(C){if(r<n.length){const x=n[r];return t.containerState=x[1],e.attempt(x[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&M();const x=t.events.length;let w=x,S;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){S=t.events[w][1].end;break}y(r);let A=x;for(;A<t.events.length;)t.events[A][1].end=Object.assign({},S),A++;return Hb(t.events,w+1,0,t.events.slice(x)),t.events.length=A,c(C)}return s(C)}function c(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return g(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(cJe,u,d)(C)}function u(C){return i&&M(),y(r),p(C)}function d(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,g(C)}function p(C){return t.containerState={},e.attempt(cJe,h,g)(C)}function h(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function g(C){if(C===null){i&&M(),y(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),m(C)}function m(C){if(C===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(C);return}return _i(C)?(e.consume(C),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),m)}function v(C,x){const w=t.sliceStream(C);if(x&&w.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(w),t.parser.lazy[C.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<a&&(!i.events[S][1].end||i.events[S][1].end.offset>a))return;const A=t.events.length;let z=A,O,T;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(O){T=t.events[z][1].end;break}O=!0}for(y(r),S=A;S<t.events.length;)t.events[S][1].end=Object.assign({},T),S++;Hb(t.events,z+1,0,t.events.slice(A)),t.events.length=S}}function y(C){let x=n.length;for(;x-- >C;){const w=n[x];t.containerState=w[1],w[0].exit.call(t,e)}n.length=C}function M(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function vBi(e,t,n){return $s(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function uJe(e){if(e===null||mp(e)||pBi(e))return 1;if(dBi(e))return 2}function vTe(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const I2e={name:"attention",tokenize:yBi,resolveAll:bBi};function bBi(e,t){let n=-1,r,i,o,a,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);dJe(d,-l),dJe(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=pf(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=pf(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=pf(c,vTe(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=pf(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=pf(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Hb(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function yBi(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=uJe(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),u=uJe(l),d=!u||u===2&&i||n.includes(l),p=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!p)),c._close=!!(o===42?p:p&&(u||!d)),t(l)}}function dJe(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const MBi={name:"autolink",tokenize:CBi};function CBi(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Yv(h)?(e.consume(h),a):c(h)}function a(h){return h===43||h===45||h===46||nh(h)?(r=1,s(h)):c(h)}function s(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||nh(h))&&r++<32?(e.consume(h),s):(r=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||E2e(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),u):lBi(h)?(e.consume(h),c):n(h)}function u(h){return nh(h)?d(h):n(h)}function d(h){return h===46?(e.consume(h),r=0,u):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||nh(h))&&r++<63){const g=h===45?p:d;return e.consume(h),g}return n(h)}}const Pte={tokenize:xBi,partial:!0};function xBi(e,t,n){return r;function r(o){return Wa(o)?$s(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||_i(o)?t(o):n(o)}}const MEt={name:"blockQuote",tokenize:wBi,continuation:{tokenize:SBi},exit:ABi};function wBi(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return Wa(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function SBi(e,t,n){const r=this;return i;function i(a){return Wa(a)?$s(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(MEt,t,n)(a)}}function ABi(e){e.exit("blockQuote")}const CEt={name:"characterEscape",tokenize:OBi};function OBi(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return uBi(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const pJe=document.createElement("i");function bTe(e){const t="&"+e+";";pJe.innerHTML=t;const n=pJe.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const xEt={name:"characterReference",tokenize:zBi};function zBi(e,t,n){const r=this;let i=0,o,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=nh,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=cBi,u):(e.enter("characterReferenceValue"),o=7,a=R2e,u(d))}function u(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return a===nh&&!bTe(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),u):n(d)}}const hJe={tokenize:EBi,partial:!0},fJe={name:"codeFenced",tokenize:TBi,concrete:!0};function TBi(e,t,n){const r=this,i={tokenize:w,partial:!0};let o=0,a=0,s;return l;function l(S){return c(S)}function c(S){const A=r.events[r.events.length-1];return o=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,s=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(S)}function u(S){return S===s?(a++,e.consume(S),u):a<3?n(S):(e.exit("codeFencedFenceSequence"),Wa(S)?$s(e,d,"whitespace")(S):d(S))}function d(S){return S===null||_i(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(hJe,m,x)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||_i(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):Wa(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$s(e,h,"whitespace")(S)):S===96&&S===s?n(S):(e.consume(S),p)}function h(S){return S===null||_i(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||_i(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===s?n(S):(e.consume(S),g)}function m(S){return e.attempt(i,x,v)(S)}function v(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return o>0&&Wa(S)?$s(e,M,"linePrefix",o+1)(S):M(S)}function M(S){return S===null||_i(S)?e.check(hJe,m,x)(S):(e.enter("codeFlowValue"),C(S))}function C(S){return S===null||_i(S)?(e.exit("codeFlowValue"),M(S)):(e.consume(S),C)}function x(S){return e.exit("codeFenced"),t(S)}function w(S,A,z){let O=0;return T;function T(L){return S.enter("lineEnding"),S.consume(L),S.exit("lineEnding"),I}function I(L){return S.enter("codeFencedFence"),Wa(L)?$s(S,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):P(L)}function P(L){return L===s?(S.enter("codeFencedFenceSequence"),N(L)):z(L)}function N(L){return L===s?(O++,S.consume(L),N):O>=a?(S.exit("codeFencedFenceSequence"),Wa(L)?$s(S,F,"whitespace")(L):F(L)):z(L)}function F(L){return L===null||_i(L)?(S.exit("codeFencedFence"),A(L)):z(L)}}}function EBi(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const $pe={name:"codeIndented",tokenize:IBi},RBi={tokenize:PBi,partial:!0};function IBi(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),$s(e,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):_i(c)?e.attempt(RBi,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||_i(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function PBi(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):_i(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):$s(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):_i(a)?i(a):n(a)}}const DBi={name:"codeText",tokenize:_Bi,resolve:kBi,previous:LBi};function kBi(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function LBi(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _Bi(e,t,n){let r=0,i,o;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,u(d)):_i(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||_i(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",c(d))}}function wEt(e){const t={};let n=-1,r,i,o,a,s,l,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,NBi(e,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=e[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),s=e.slice(i,n),s.unshift(r),Hb(e,i,n-i+1,s))}}return!c}function NBi(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,p=-1,h=n,g=0,m=0;const v=[m];for(;h;){for(;e[++i][1]!==h;);o.push(i),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,v.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),p=v.length;p--;){const y=s.slice(v[p],v[p+1]),M=o.pop();l.unshift([M,M+y.length-1]),Hb(e,M,2,y)}for(p=-1;++p<l.length;)c[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return c}const FBi={tokenize:BBi,resolve:qBi},WBi={tokenize:jBi,partial:!0};function qBi(e){return wEt(e),e}function BBi(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):_i(s)?e.check(WBi,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function jBi(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$s(e,o,"linePrefix")}function o(a){if(a===null||_i(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function SEt(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||E2e(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||_i(y)?n(y):(e.consume(y),y===92?g:h)}function g(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function m(y){return!u&&(y===null||y===41||mp(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):u<c&&y===40?(e.consume(y),u++,m):y===41?(e.consume(y),u--,m):y===null||y===32||y===40||E2e(y)?n(y):(e.consume(y),y===92?v:m)}function v(y){return y===40||y===41||y===92?(e.consume(y),m):m(y)}}function AEt(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),u}function u(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):_i(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||_i(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!Wa(h)),h===92?p:d)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function OEt(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),c(p))}function c(p){return p===a?(e.exit(o),l(a)):p===null?n(p):_i(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),$s(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===a||p===null||_i(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:u)}function d(p){return p===a||p===92?(e.consume(p),u):u(p)}}function iW(e,t){let n;return r;function r(i){return _i(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Wa(i)?$s(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function UI(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const HBi={name:"definition",tokenize:GBi},VBi={tokenize:$Bi,partial:!0};function GBi(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return AEt.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=UI(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return mp(h)?iW(e,c)(h):c(h)}function c(h){return SEt(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(VBi,d,d)(h)}function d(h){return Wa(h)?$s(e,p,"whitespace")(h):p(h)}function p(h){return h===null||_i(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function $Bi(e,t,n){return r;function r(s){return mp(s)?iW(e,i)(s):n(s)}function i(s){return OEt(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Wa(s)?$s(e,a,"whitespace")(s):a(s)}function a(s){return s===null||_i(s)?t(s):n(s)}}const UBi={name:"hardBreakEscape",tokenize:XBi};function XBi(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return _i(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const YBi={name:"headingAtx",tokenize:QBi,resolve:KBi};function KBi(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Hb(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function QBi(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(e.consume(u),a):u===null||mp(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||_i(u)?(e.exit("atxHeading"),t(u)):Wa(u)?$s(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||mp(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const ZBi=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gJe=["pre","script","style","textarea"],JBi={name:"htmlFlow",tokenize:rji,resolveTo:nji,concrete:!0},eji={tokenize:oji,partial:!0},tji={tokenize:iji,partial:!0};function nji(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rji(e,t,n){const r=this;let i,o,a,s,l;return c;function c(X){return u(X)}function u(X){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(X),d}function d(X){return X===33?(e.consume(X),p):X===47?(e.consume(X),o=!0,m):X===63?(e.consume(X),i=3,r.interrupt?t:q):Yv(X)?(e.consume(X),a=String.fromCharCode(X),v):n(X)}function p(X){return X===45?(e.consume(X),i=2,h):X===91?(e.consume(X),i=5,s=0,g):Yv(X)?(e.consume(X),i=4,r.interrupt?t:q):n(X)}function h(X){return X===45?(e.consume(X),r.interrupt?t:q):n(X)}function g(X){const Q="CDATA[";return X===Q.charCodeAt(s++)?(e.consume(X),s===Q.length?r.interrupt?t:P:g):n(X)}function m(X){return Yv(X)?(e.consume(X),a=String.fromCharCode(X),v):n(X)}function v(X){if(X===null||X===47||X===62||mp(X)){const Q=X===47,re=a.toLowerCase();return!Q&&!o&&gJe.includes(re)?(i=1,r.interrupt?t(X):P(X)):ZBi.includes(a.toLowerCase())?(i=6,Q?(e.consume(X),y):r.interrupt?t(X):P(X)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(X):o?M(X):C(X))}return X===45||nh(X)?(e.consume(X),a+=String.fromCharCode(X),v):n(X)}function y(X){return X===62?(e.consume(X),r.interrupt?t:P):n(X)}function M(X){return Wa(X)?(e.consume(X),M):T(X)}function C(X){return X===47?(e.consume(X),T):X===58||X===95||Yv(X)?(e.consume(X),x):Wa(X)?(e.consume(X),C):T(X)}function x(X){return X===45||X===46||X===58||X===95||nh(X)?(e.consume(X),x):w(X)}function w(X){return X===61?(e.consume(X),S):Wa(X)?(e.consume(X),w):C(X)}function S(X){return X===null||X===60||X===61||X===62||X===96?n(X):X===34||X===39?(e.consume(X),l=X,A):Wa(X)?(e.consume(X),S):z(X)}function A(X){return X===l?(e.consume(X),l=null,O):X===null||_i(X)?n(X):(e.consume(X),A)}function z(X){return X===null||X===34||X===39||X===47||X===60||X===61||X===62||X===96||mp(X)?w(X):(e.consume(X),z)}function O(X){return X===47||X===62||Wa(X)?C(X):n(X)}function T(X){return X===62?(e.consume(X),I):n(X)}function I(X){return X===null||_i(X)?P(X):Wa(X)?(e.consume(X),I):n(X)}function P(X){return X===45&&i===2?(e.consume(X),W):X===60&&i===1?(e.consume(X),H):X===62&&i===4?(e.consume(X),$):X===63&&i===3?(e.consume(X),q):X===93&&i===5?(e.consume(X),G):_i(X)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(eji,U,N)(X)):X===null||_i(X)?(e.exit("htmlFlowData"),N(X)):(e.consume(X),P)}function N(X){return e.check(tji,F,U)(X)}function F(X){return e.enter("lineEnding"),e.consume(X),e.exit("lineEnding"),L}function L(X){return X===null||_i(X)?N(X):(e.enter("htmlFlowData"),P(X))}function W(X){return X===45?(e.consume(X),q):P(X)}function H(X){return X===47?(e.consume(X),a="",j):P(X)}function j(X){if(X===62){const Q=a.toLowerCase();return gJe.includes(Q)?(e.consume(X),$):P(X)}return Yv(X)&&a.length<8?(e.consume(X),a+=String.fromCharCode(X),j):P(X)}function G(X){return X===93?(e.consume(X),q):P(X)}function q(X){return X===62?(e.consume(X),$):X===45&&i===2?(e.consume(X),q):P(X)}function $(X){return X===null||_i(X)?(e.exit("htmlFlowData"),U(X)):(e.consume(X),$)}function U(X){return e.exit("htmlFlow"),t(X)}}function iji(e,t,n){const r=this;return i;function i(a){return _i(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function oji(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Pte,t,n)}}const aji={name:"htmlText",tokenize:sji};function sji(e,t,n){const r=this;let i,o,a;return s;function s(q){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(q),l}function l(q){return q===33?(e.consume(q),c):q===47?(e.consume(q),w):q===63?(e.consume(q),C):Yv(q)?(e.consume(q),z):n(q)}function c(q){return q===45?(e.consume(q),u):q===91?(e.consume(q),o=0,g):Yv(q)?(e.consume(q),M):n(q)}function u(q){return q===45?(e.consume(q),h):n(q)}function d(q){return q===null?n(q):q===45?(e.consume(q),p):_i(q)?(a=d,H(q)):(e.consume(q),d)}function p(q){return q===45?(e.consume(q),h):d(q)}function h(q){return q===62?W(q):q===45?p(q):d(q)}function g(q){const $="CDATA[";return q===$.charCodeAt(o++)?(e.consume(q),o===$.length?m:g):n(q)}function m(q){return q===null?n(q):q===93?(e.consume(q),v):_i(q)?(a=m,H(q)):(e.consume(q),m)}function v(q){return q===93?(e.consume(q),y):m(q)}function y(q){return q===62?W(q):q===93?(e.consume(q),y):m(q)}function M(q){return q===null||q===62?W(q):_i(q)?(a=M,H(q)):(e.consume(q),M)}function C(q){return q===null?n(q):q===63?(e.consume(q),x):_i(q)?(a=C,H(q)):(e.consume(q),C)}function x(q){return q===62?W(q):C(q)}function w(q){return Yv(q)?(e.consume(q),S):n(q)}function S(q){return q===45||nh(q)?(e.consume(q),S):A(q)}function A(q){return _i(q)?(a=A,H(q)):Wa(q)?(e.consume(q),A):W(q)}function z(q){return q===45||nh(q)?(e.consume(q),z):q===47||q===62||mp(q)?O(q):n(q)}function O(q){return q===47?(e.consume(q),W):q===58||q===95||Yv(q)?(e.consume(q),T):_i(q)?(a=O,H(q)):Wa(q)?(e.consume(q),O):W(q)}function T(q){return q===45||q===46||q===58||q===95||nh(q)?(e.consume(q),T):I(q)}function I(q){return q===61?(e.consume(q),P):_i(q)?(a=I,H(q)):Wa(q)?(e.consume(q),I):O(q)}function P(q){return q===null||q===60||q===61||q===62||q===96?n(q):q===34||q===39?(e.consume(q),i=q,N):_i(q)?(a=P,H(q)):Wa(q)?(e.consume(q),P):(e.consume(q),F)}function N(q){return q===i?(e.consume(q),i=void 0,L):q===null?n(q):_i(q)?(a=N,H(q)):(e.consume(q),N)}function F(q){return q===null||q===34||q===39||q===60||q===61||q===96?n(q):q===47||q===62||mp(q)?O(q):(e.consume(q),F)}function L(q){return q===47||q===62||mp(q)?O(q):n(q)}function W(q){return q===62?(e.consume(q),e.exit("htmlTextData"),e.exit("htmlText"),t):n(q)}function H(q){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(q),e.exit("lineEnding"),j}function j(q){return Wa(q)?$s(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):G(q)}function G(q){return e.enter("htmlTextData"),a(q)}}const yTe={name:"labelEnd",tokenize:hji,resolveTo:pji,resolveAll:dji},lji={tokenize:fji},cji={tokenize:gji},uji={tokenize:mji};function dji(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function pji(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},u={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=pf(s,e.slice(o+1,o+r+3)),s=pf(s,[["enter",u,t]]),s=pf(s,vTe(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=pf(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=pf(s,e.slice(a+1)),s=pf(s,[["exit",l,t]]),Hb(e,o,e.length,s),e}function hji(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(p){return o?o._inactive?d(p):(a=r.parser.defined.includes(UI(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(lji,u,a?u:d)(p):p===91?e.attempt(cji,u,a?c:d)(p):a?u(p):d(p)}function c(p){return e.attempt(uji,u,d)(p)}function u(p){return t(p)}function d(p){return o._balanced=!0,n(p)}}function fji(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return mp(d)?iW(e,o)(d):o(d)}function o(d){return d===41?u(d):SEt(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return mp(d)?iW(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?OEt(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return mp(d)?iW(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function gji(e,t,n){const r=this;return i;function i(s){return AEt.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(UI(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function mji(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const vji={name:"labelStartImage",tokenize:bji,resolveAll:yTe.resolveAll};function bji(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const yji={name:"labelStartLink",tokenize:Mji,resolveAll:yTe.resolveAll};function Mji(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Upe={name:"lineEnding",tokenize:Cji};function Cji(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$s(e,t,"linePrefix")}}const u$={name:"thematicBreak",tokenize:xji};function xji(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||_i(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Wa(c)?$s(e,s,"whitespace")(c):s(c))}}const W1={name:"list",tokenize:Aji,continuation:{tokenize:Oji},exit:Tji},wji={tokenize:Eji,partial:!0},Sji={tokenize:zji,partial:!0};function Aji(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:R2e(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(u$,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return R2e(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Pte,r.interrupt?n:u,e.attempt(wji,p,d))}function u(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function d(h){return Wa(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Oji(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Pte,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$s(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Wa(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Sji,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,$s(e,e.attempt(W1,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function zji(e,t,n){const r=this;return $s(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function Tji(e){e.exit(this.containerState.type)}function Eji(e,t,n){const r=this;return $s(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Wa(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const mJe={name:"setextUnderline",tokenize:Iji,resolveTo:Rji};function Rji(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function Iji(e,t,n){const r=this;let i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Wa(c)?$s(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||_i(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Pji={tokenize:Dji};function Dji(e){const t=this,n=e.attempt(Pte,r,e.attempt(this.parser.constructs.flowInitial,i,$s(e,e.attempt(this.parser.constructs.flow,i,e.attempt(FBi,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const kji={resolveAll:TEt()},Lji=zEt("string"),_ji=zEt("text");function zEt(e){return{tokenize:t,resolveAll:TEt(e==="text"?Nji:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let p=-1;if(d)for(;++p<d.length;){const h=d[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function TEt(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Nji(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function Fji(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const l={consume:M,enter:C,exit:x,attempt:A(w),check:A(S),interrupt:A(S,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:p,now:g,defineSkip:m,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(I){return a=pf(a,I),v(),a[a.length-1]!==null?[]:(z(t,0),c.events=vTe(o,c.events,c),c.events)}function p(I,P){return qji(h(I),P)}function h(I){return Wji(a,I)}function g(){const{line:I,column:P,offset:N,_index:F,_bufferIndex:L}=r;return{line:I,column:P,offset:N,_index:F,_bufferIndex:L}}function m(I){i[I.line]=I.column,T()}function v(){let I;for(;r._index<a.length;){const P=a[r._index];if(typeof P=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<P.length;)y(P.charCodeAt(r._bufferIndex));else y(P)}}function y(I){u=u(I)}function M(I){_i(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,T()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I}function C(I,P){const N=P||{};return N.type=I,N.start=g(),c.events.push(["enter",N,c]),s.push(N),N}function x(I){const P=s.pop();return P.end=g(),c.events.push(["exit",P,c]),P}function w(I,P){z(I,P.from)}function S(I,P){P.restore()}function A(I,P){return N;function N(F,L,W){let H,j,G,q;return Array.isArray(F)?U(F):"tokenize"in F?U([F]):$(F);function $(ee){return se;function se(pe){const te=pe!==null&&ee[pe],ce=pe!==null&&ee.null,oe=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ce)?ce:ce?[ce]:[]];return U(oe)(pe)}}function U(ee){return H=ee,j=0,ee.length===0?W:X(ee[j])}function X(ee){return se;function se(pe){return q=O(),G=ee,ee.partial||(c.currentConstruct=ee),ee.name&&c.parser.constructs.disable.null.includes(ee.name)?re():ee.tokenize.call(P?Object.assign(Object.create(c),P):c,l,Q,re)(pe)}}function Q(ee){return I(G,q),L}function re(ee){return q.restore(),++j<H.length?X(H[j]):W}}}function z(I,P){I.resolveAll&&!o.includes(I)&&o.push(I),I.resolve&&Hb(c.events,P,c.events.length-P,I.resolve(c.events.slice(P),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function O(){const I=g(),P=c.previous,N=c.currentConstruct,F=c.events.length,L=Array.from(s);return{restore:W,from:F};function W(){r=I,c.previous=P,c.currentConstruct=N,c.events.length=F,s=L,T()}}function T(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Wji(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function qji(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
`;break}case-3:{a=`\r
`;break}case-2:{a=t?" ":"	";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}const Bji={42:W1,43:W1,45:W1,48:W1,49:W1,50:W1,51:W1,52:W1,53:W1,54:W1,55:W1,56:W1,57:W1,62:MEt},jji={91:HBi},Hji={[-2]:$pe,[-1]:$pe,32:$pe},Vji={35:YBi,42:u$,45:[mJe,u$],60:JBi,61:mJe,95:u$,96:fJe,126:fJe},Gji={38:xEt,92:CEt},$ji={[-5]:Upe,[-4]:Upe,[-3]:Upe,33:vji,38:xEt,42:I2e,60:[MBi,aji],91:yji,92:[UBi,CEt],93:yTe,95:I2e,96:DBi},Uji={null:[I2e,kji]},Xji={null:[42,95]},Yji={null:[]},Kji=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Xji,contentInitial:jji,disable:Yji,document:Bji,flow:Vji,flowInitial:Hji,insideSpan:Uji,string:Gji,text:$ji},Symbol.toStringTag,{value:"Module"}));function Qji(e){const n=iBi([Kji,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(hBi),document:i(gBi),flow:i(Pji),string:i(Lji),text:i(_ji)};return r;function i(o){return a;function a(s){return Fji(r,o,s)}}}const vJe=/[\0\t\n\r]/g;function Zji(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,u,d,p,h;for(o=t+o.toString(a),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(vJe.lastIndex=d,c=vJe.exec(o),p=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(p),!c){t=o.slice(d);break}if(h===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(o.slice(d,p)),e+=p-d),h){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function Jji(e){for(;!wEt(e););return e}function EEt(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const eHi=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tHi(e){return e.replace(eHi,nHi)}function nHi(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return EEt(n.slice(o?2:1),o?16:10)}return bTe(n)||e}const REt={}.hasOwnProperty,rHi=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),iHi(n)(Jji(Qji(n).document().write(Zji()(e,t,!0))))};function iHi(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(de),autolinkProtocol:I,autolinkEmail:I,atxHeading:s(be),blockQuote:s(oe),characterEscape:I,characterReference:I,codeFenced:s(ae),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(ae,l),codeText:s(ne,l),codeTextData:I,data:I,codeFlowValue:I,definition:s(le),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(he),hardBreakEscape:s(me),hardBreakTrailing:s(me),htmlFlow:s(Me,l),htmlFlowData:I,htmlText:s(Me,l),htmlTextData:I,image:s(Oe),label:l,link:s(de),listItem:s(ue),listItemValue:g,listOrdered:s(ie,h),listUnordered:s(ie),paragraph:s(Ae),reference:re,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(be),strong:s(Ce),thematicBreak:s(Ge)},exit:{atxHeading:u(),atxHeadingSequence:A,autolink:u(),autolinkEmail:ce,autolinkProtocol:te,blockQuote:u(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:pe,codeFenced:u(M),codeFencedFence:y,codeFencedFenceInfo:m,codeFencedFenceMeta:v,codeFlowValue:P,codeIndented:u(C),codeText:u(H),codeTextData:P,data:P,definition:u(),definitionDestinationString:S,definitionLabelString:x,definitionTitleString:w,emphasis:u(),hardBreakEscape:u(F),hardBreakTrailing:u(F),htmlFlow:u(L),htmlFlowData:P,htmlText:u(W),htmlTextData:P,image:u(G),label:$,labelText:q,lineEnding:N,link:u(j),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ee,resourceDestinationString:U,resourceTitleString:X,resource:Q,setextHeading:u(T),setextHeadingLineSequence:O,setextHeadingText:z,strong:u(),thematicBreak:u()}};IEt(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(_e){let Ie={type:"root",children:[]};const Le={stack:[Ie],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:p,setData:o,getData:a},we=[];let ve=-1;for(;++ve<_e.length;)if(_e[ve][1].type==="listOrdered"||_e[ve][1].type==="listUnordered")if(_e[ve][0]==="enter")we.push(ve);else{const De=we.pop();ve=i(_e,De,ve)}for(ve=-1;++ve<_e.length;){const De=t[_e[ve][0]];REt.call(De,_e[ve][1].type)&&De[_e[ve][1].type].call(Object.assign({sliceSerialize:_e[ve][2].sliceSerialize},Le),_e[ve][1])}if(Le.tokenStack.length>0){const De=Le.tokenStack[Le.tokenStack.length-1];(De[1]||bJe).call(Le,void 0,De[0])}for(Ie.position={start:MC(_e.length>0?_e[0][1].start:{line:1,column:1,offset:0}),end:MC(_e.length>0?_e[_e.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)Ie=t.transforms[ve](Ie)||Ie;return Ie}function i(_e,Ie,Le){let we=Ie-1,ve=-1,De=!1,ze,Ve,Ke,et;for(;++we<=Le;){const it=_e[we];if(it[1].type==="listUnordered"||it[1].type==="listOrdered"||it[1].type==="blockQuote"?(it[0]==="enter"?ve++:ve--,et=void 0):it[1].type==="lineEndingBlank"?it[0]==="enter"&&(ze&&!et&&!ve&&!Ke&&(Ke=we),et=void 0):it[1].type==="linePrefix"||it[1].type==="listItemValue"||it[1].type==="listItemMarker"||it[1].type==="listItemPrefix"||it[1].type==="listItemPrefixWhitespace"||(et=void 0),!ve&&it[0]==="enter"&&it[1].type==="listItemPrefix"||ve===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(ze){let Ft=we;for(Ve=void 0;Ft--;){const Pt=_e[Ft];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;Ve&&(_e[Ve][1].type="lineEndingBlank",De=!0),Pt[1].type="lineEnding",Ve=Ft}else if(!(Pt[1].type==="linePrefix"||Pt[1].type==="blockQuotePrefix"||Pt[1].type==="blockQuotePrefixWhitespace"||Pt[1].type==="blockQuoteMarker"||Pt[1].type==="listItemIndent"))break}Ke&&(!Ve||Ke<Ve)&&(ze._spread=!0),ze.end=Object.assign({},Ve?_e[Ve][1].start:it[1].end),_e.splice(Ve||we,0,["exit",ze,it[2]]),we++,Le++}it[1].type==="listItemPrefix"&&(ze={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0},_e.splice(we,0,["enter",ze,it[2]]),we++,Le++,Ke=void 0,et=!0)}}return _e[Ie][1]._spread=De,Le}function o(_e,Ie){n[_e]=Ie}function a(_e){return n[_e]}function s(_e,Ie){return Le;function Le(we){c.call(this,_e(we),we),Ie&&Ie.call(this,we)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(_e,Ie,Le){return this.stack[this.stack.length-1].children.push(_e),this.stack.push(_e),this.tokenStack.push([Ie,Le]),_e.position={start:MC(Ie.start)},_e}function u(_e){return Ie;function Ie(Le){_e&&_e.call(this,Le),d.call(this,Le)}}function d(_e,Ie){const Le=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==_e.type&&(Ie?Ie.call(this,_e,we[0]):(we[1]||bJe).call(this,_e,we[0]));else throw new Error("Cannot close `"+_e.type+"` ("+rW({start:_e.start,end:_e.end})+"): it’s not open");return Le.position.end=MC(_e.end),Le}function p(){return nBi(this.stack.pop())}function h(){o("expectingFirstListItemValue",!0)}function g(_e){if(a("expectingFirstListItemValue")){const Ie=this.stack[this.stack.length-2];Ie.start=Number.parseInt(this.sliceSerialize(_e),10),o("expectingFirstListItemValue")}}function m(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.lang=_e}function v(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.meta=_e}function y(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function M(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=_e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function C(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=_e.replace(/(\r?\n|\r)$/g,"")}function x(_e){const Ie=this.resume(),Le=this.stack[this.stack.length-1];Le.label=Ie,Le.identifier=UI(this.sliceSerialize(_e)).toLowerCase()}function w(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.title=_e}function S(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.url=_e}function A(_e){const Ie=this.stack[this.stack.length-1];if(!Ie.depth){const Le=this.sliceSerialize(_e).length;Ie.depth=Le}}function z(){o("setextHeadingSlurpLineEnding",!0)}function O(_e){const Ie=this.stack[this.stack.length-1];Ie.depth=this.sliceSerialize(_e).charCodeAt(0)===61?1:2}function T(){o("setextHeadingSlurpLineEnding")}function I(_e){const Ie=this.stack[this.stack.length-1];let Le=Ie.children[Ie.children.length-1];(!Le||Le.type!=="text")&&(Le=Ee(),Le.position={start:MC(_e.start)},Ie.children.push(Le)),this.stack.push(Le)}function P(_e){const Ie=this.stack.pop();Ie.value+=this.sliceSerialize(_e),Ie.position.end=MC(_e.end)}function N(_e){const Ie=this.stack[this.stack.length-1];if(a("atHardBreak")){const Le=Ie.children[Ie.children.length-1];Le.position.end=MC(_e.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(Ie.type)&&(I.call(this,_e),P.call(this,_e))}function F(){o("atHardBreak",!0)}function L(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=_e}function W(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=_e}function H(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=_e}function j(){const _e=this.stack[this.stack.length-1];if(a("inReference")){const Ie=a("referenceType")||"shortcut";_e.type+="Reference",_e.referenceType=Ie,delete _e.url,delete _e.title}else delete _e.identifier,delete _e.label;o("referenceType")}function G(){const _e=this.stack[this.stack.length-1];if(a("inReference")){const Ie=a("referenceType")||"shortcut";_e.type+="Reference",_e.referenceType=Ie,delete _e.url,delete _e.title}else delete _e.identifier,delete _e.label;o("referenceType")}function q(_e){const Ie=this.sliceSerialize(_e),Le=this.stack[this.stack.length-2];Le.label=tHi(Ie),Le.identifier=UI(Ie).toLowerCase()}function $(){const _e=this.stack[this.stack.length-1],Ie=this.resume(),Le=this.stack[this.stack.length-1];if(o("inReference",!0),Le.type==="link"){const we=_e.children;Le.children=we}else Le.alt=Ie}function U(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.url=_e}function X(){const _e=this.resume(),Ie=this.stack[this.stack.length-1];Ie.title=_e}function Q(){o("inReference")}function re(){o("referenceType","collapsed")}function ee(_e){const Ie=this.resume(),Le=this.stack[this.stack.length-1];Le.label=Ie,Le.identifier=UI(this.sliceSerialize(_e)).toLowerCase(),o("referenceType","full")}function se(_e){o("characterReferenceType",_e.type)}function pe(_e){const Ie=this.sliceSerialize(_e),Le=a("characterReferenceType");let we;Le?(we=EEt(Ie,Le==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):we=bTe(Ie);const ve=this.stack.pop();ve.value+=we,ve.position.end=MC(_e.end)}function te(_e){P.call(this,_e);const Ie=this.stack[this.stack.length-1];Ie.url=this.sliceSerialize(_e)}function ce(_e){P.call(this,_e);const Ie=this.stack[this.stack.length-1];Ie.url="mailto:"+this.sliceSerialize(_e)}function oe(){return{type:"blockquote",children:[]}}function ae(){return{type:"code",lang:null,meta:null,value:""}}function ne(){return{type:"inlineCode",value:""}}function le(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function he(){return{type:"emphasis",children:[]}}function be(){return{type:"heading",depth:void 0,children:[]}}function me(){return{type:"break"}}function Me(){return{type:"html",value:""}}function Oe(){return{type:"image",title:null,url:"",alt:null}}function de(){return{type:"link",title:null,url:"",children:[]}}function ie(_e){return{type:"list",ordered:_e.type==="listOrdered",start:null,spread:_e._spread,children:[]}}function ue(_e){return{type:"listItem",spread:_e._spread,checked:null,children:[]}}function Ae(){return{type:"paragraph",children:[]}}function Ce(){return{type:"strong",children:[]}}function Ee(){return{type:"text",value:""}}function Ge(){return{type:"thematicBreak"}}}function MC(e){return{line:e.line,column:e.column,offset:e.offset}}function IEt(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?IEt(e,r):oHi(e,r)}}function oHi(e,t){let n;for(n in t)if(REt.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function bJe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+rW({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+rW({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+rW({start:t.start,end:t.end})+") is still open")}function aHi(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return rHi(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function sHi(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function lHi(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function cHi(e,t){const n=t.value?t.value+`
`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function uHi(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dHi(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Dk(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&nh(e.charCodeAt(n+1))&&nh(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function PEt(e,t){const n=String(t.identifier).toUpperCase(),r=Dk(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function pHi(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},PEt(e,{type:"footnoteReference",identifier:i,position:t.position})}function hHi(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fHi(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function DEt(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function gHi(e,t){const n=e.definition(t.identifier);if(!n)return DEt(e,t);const r={src:Dk(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function mHi(e,t){const n={src:Dk(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function vHi(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function bHi(e,t){const n=e.definition(t.identifier);if(!n)return DEt(e,t);const r={href:Dk(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function yHi(e,t){const n={href:Dk(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function MHi(e,t,n){const r=e.all(t),i=n?CHi(n):kEt(t),o={},a=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const u=r[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
`}),u.type==="element"&&u.tagName==="p"&&!i?a.push(...u.children):a.push(u)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function CHi(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=kEt(n[r])}return t}function kEt(e){const t=e.spread;return t??e.children.length>1}function xHi(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function wHi(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SHi(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function AHi(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const MTe=LEt("start"),CTe=LEt("end");function OHi(e){return{start:MTe(e),end:CTe(e)}}function LEt(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function zHi(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=MTe(t.children[1]),l=CTe(t.children[t.children.length-1]);s.line&&l.line&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function THi(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const d=t.children[l],p={},h=a?a[l]:void 0;h&&(p.align=h);let g={type:"element",tagName:o,properties:p,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(t,g)),c.push(g)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function EHi(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const yJe=9,MJe=32;function RHi(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(CJe(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(CJe(t.slice(i),i>0,!1)),o.join("")}function CJe(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===yJe||o===MJe;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===yJe||o===MJe;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function IHi(e,t){const n={type:"text",value:RHi(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function PHi(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const DHi={blockquote:sHi,break:lHi,code:cHi,delete:uHi,emphasis:dHi,footnoteReference:PEt,footnote:pHi,heading:hHi,html:fHi,imageReference:gHi,image:mHi,inlineCode:vHi,linkReference:bHi,link:yHi,listItem:MHi,list:xHi,paragraph:wHi,root:SHi,strong:AHi,table:zHi,tableCell:EHi,tableRow:THi,text:IHi,thematicBreak:PHi,toml:FG,yaml:FG,definition:FG,footnoteDefinition:FG};function FG(){return null}const _Et=(function(e){if(e==null)return NHi;if(typeof e=="string")return _Hi(e);if(typeof e=="object")return Array.isArray(e)?kHi(e):LHi(e);if(typeof e=="function")return Dte(e);throw new Error("Expected function, string, or object as test")});function kHi(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=_Et(e[n]);return Dte(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function LHi(e){return Dte(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function _Hi(e){return Dte(t);function t(n){return n&&n.type===e}}function Dte(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function NHi(){return!0}const FHi=!0,xJe=!1,WHi="skip",qHi=(function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=_Et(t),o=r?-1:1;a(e,void 0,[])();function a(s,l,c){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const p=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=[],h,g,m;if((!t||i(s,l,c[c.length-1]||null))&&(p=BHi(n(s,c)),p[0]===xJe))return p;if(s.children&&p[0]!==WHi)for(g=(r?s.children.length:-1)+o,m=c.concat(s);g>-1&&g<s.children.length;){if(h=a(s.children[g],g,m)(),h[0]===xJe)return h;g=typeof h[1]=="number"?h[1]:g+o}return p}}});function BHi(e){return Array.isArray(e)?e:typeof e=="number"?[FHi,e]:[e]}const xTe=(function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),qHi(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}});function jHi(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const wJe={}.hasOwnProperty;function HHi(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return xTe(e,"definition",r=>{const i=SJe(r.identifier);i&&!wJe.call(t,i)&&(t[i]=r)}),n;function n(r){const i=SJe(r);return i&&wJe.call(t,i)?t[i]:null}}function SJe(e){return String(e||"").toUpperCase()}const rK={}.hasOwnProperty;function VHi(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...DHi,...n.handlers},a.definition=HHi(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=GHi,a.applyData=$Hi,a.one=s,a.all=l,a.wrap=XHi,a.augment=o,xTe(e,"footnoteDefinition",c=>{const u=String(c.identifier).toUpperCase();rK.call(i,u)||(i[u]=c)}),a;function o(c,u){if(c&&"data"in c&&c.data){const d=c.data;d.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=d.hName),u.type==="element"&&d.hProperties&&(u.properties={...u.properties,...d.hProperties}),"children"in u&&u.children&&d.hChildren&&(u.children=d.hChildren)}if(c){const d="type"in c?c:{position:c};jHi(d)||(u.position={start:MTe(d),end:CTe(d)})}return u}function a(c,u,d,p){return Array.isArray(d)&&(p=d,d={}),o(c,{type:"element",tagName:u,properties:d||{},children:p||[]})}function s(c,u){return NEt(a,c,u)}function l(c){return wTe(a,c)}}function GHi(e,t){e.position&&(t.position=OHi(e))}function $Hi(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function NEt(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return rK.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:wTe(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):UHi(e,t)}function wTe(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=NEt(e,r[i],t);if(o){if(i&&r[i-1].type==="break"&&(!Array.isArray(o)&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&o.type==="element")){const a=o.children[0];a&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}function UHi(e,t){const n=t.data||{},r="value"in t&&!(rK.call(n,"hProperties")||rK.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:wTe(e,t)};return e.patch(t,r),e.applyData(t,r)}function XHi(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function YHi(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),o=String(r.identifier).toUpperCase(),a=Dk(o.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[o];){const d={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const d=c.children[c.children.length-1];d&&d.type==="text"?d.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
`}]}}function FEt(e,t){const n=VHi(e,t),r=n.one(e,null),i=YHi(n);return i&&r.children.push({type:"text",value:`
`},i),Array.isArray(r)?{type:"root",children:r}:r}const KHi=(function(e,t){return e&&"run"in e?QHi(e,t):ZHi(e||t)});function QHi(e,t){return(n,r,i)=>{e.run(FEt(n,t),r,o=>{i(o)})}}function ZHi(e){return t=>FEt(t,e)}class Sj{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Sj.prototype.property={};Sj.prototype.normal={};Sj.prototype.space=null;function WEt(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Sj(n,r,t)}function P2e(e){return e.toLowerCase()}class sg{constructor(t,n){this.property=t,this.attribute=n}}sg.prototype.space=null;sg.prototype.boolean=!1;sg.prototype.booleanish=!1;sg.prototype.overloadedBoolean=!1;sg.prototype.number=!1;sg.prototype.commaSeparated=!1;sg.prototype.spaceSeparated=!1;sg.prototype.commaOrSpaceSeparated=!1;sg.prototype.mustUseProperty=!1;sg.prototype.defined=!1;let JHi=0;const uo=fT(),Gc=fT(),qEt=fT(),Pn=fT(),qs=fT(),XI=fT(),Bp=fT();function fT(){return 2**++JHi}const D2e=Object.freeze(Object.defineProperty({__proto__:null,boolean:uo,booleanish:Gc,commaOrSpaceSeparated:Bp,commaSeparated:XI,number:Pn,overloadedBoolean:qEt,spaceSeparated:qs},Symbol.toStringTag,{value:"Module"})),Xpe=Object.keys(D2e);class STe extends sg{constructor(t,n,r,i){let o=-1;if(super(t,n),AJe(this,"space",i),typeof r=="number")for(;++o<Xpe.length;){const a=Xpe[o];AJe(this,Xpe[o],(r&D2e[a])===D2e[a])}}}STe.prototype.defined=!0;function AJe(e,t,n){n&&(e[t]=n)}const e8i={}.hasOwnProperty;function kk(e){const t={},n={};let r;for(r in e.properties)if(e8i.call(e.properties,r)){const i=e.properties[r],o=new STe(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[P2e(r)]=r,n[P2e(o.attribute)]=r}return new Sj(t,n,e.space)}const BEt=kk({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),jEt=kk({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function HEt(e,t){return t in e?e[t]:t}function VEt(e,t){return HEt(e,t.toLowerCase())}const GEt=kk({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:VEt,properties:{xmlns:null,xmlnsXLink:null}}),$Et=kk({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Gc,ariaAutoComplete:null,ariaBusy:Gc,ariaChecked:Gc,ariaColCount:Pn,ariaColIndex:Pn,ariaColSpan:Pn,ariaControls:qs,ariaCurrent:null,ariaDescribedBy:qs,ariaDetails:null,ariaDisabled:Gc,ariaDropEffect:qs,ariaErrorMessage:null,ariaExpanded:Gc,ariaFlowTo:qs,ariaGrabbed:Gc,ariaHasPopup:null,ariaHidden:Gc,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qs,ariaLevel:Pn,ariaLive:null,ariaModal:Gc,ariaMultiLine:Gc,ariaMultiSelectable:Gc,ariaOrientation:null,ariaOwns:qs,ariaPlaceholder:null,ariaPosInSet:Pn,ariaPressed:Gc,ariaReadOnly:Gc,ariaRelevant:null,ariaRequired:Gc,ariaRoleDescription:qs,ariaRowCount:Pn,ariaRowIndex:Pn,ariaRowSpan:Pn,ariaSelected:Gc,ariaSetSize:Pn,ariaSort:null,ariaValueMax:Pn,ariaValueMin:Pn,ariaValueNow:Pn,ariaValueText:null,role:null}}),t8i=kk({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:VEt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:XI,acceptCharset:qs,accessKey:qs,action:null,allow:null,allowFullScreen:uo,allowPaymentRequest:uo,allowUserMedia:uo,alt:null,as:null,async:uo,autoCapitalize:null,autoComplete:qs,autoFocus:uo,autoPlay:uo,blocking:qs,capture:null,charSet:null,checked:uo,cite:null,className:qs,cols:Pn,colSpan:null,content:null,contentEditable:Gc,controls:uo,controlsList:qs,coords:Pn|XI,crossOrigin:null,data:null,dateTime:null,decoding:null,default:uo,defer:uo,dir:null,dirName:null,disabled:uo,download:qEt,draggable:Gc,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:uo,formTarget:null,headers:qs,height:Pn,hidden:uo,high:Pn,href:null,hrefLang:null,htmlFor:qs,httpEquiv:qs,id:null,imageSizes:null,imageSrcSet:null,inert:uo,inputMode:null,integrity:null,is:null,isMap:uo,itemId:null,itemProp:qs,itemRef:qs,itemScope:uo,itemType:qs,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:uo,low:Pn,manifest:null,max:null,maxLength:Pn,media:null,method:null,min:null,minLength:Pn,multiple:uo,muted:uo,name:null,nonce:null,noModule:uo,noValidate:uo,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:uo,optimum:Pn,pattern:null,ping:qs,placeholder:null,playsInline:uo,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:uo,referrerPolicy:null,rel:qs,required:uo,reversed:uo,rows:Pn,rowSpan:Pn,sandbox:qs,scope:null,scoped:uo,seamless:uo,selected:uo,shadowRootClonable:uo,shadowRootDelegatesFocus:uo,shadowRootMode:null,shape:null,size:Pn,sizes:null,slot:null,span:Pn,spellCheck:Gc,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Pn,step:null,style:null,tabIndex:Pn,target:null,title:null,translate:null,type:null,typeMustMatch:uo,useMap:null,value:Gc,width:Pn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qs,axis:null,background:null,bgColor:null,border:Pn,borderColor:null,bottomMargin:Pn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:uo,declare:uo,event:null,face:null,frame:null,frameBorder:null,hSpace:Pn,leftMargin:Pn,link:null,longDesc:null,lowSrc:null,marginHeight:Pn,marginWidth:Pn,noResize:uo,noHref:uo,noShade:uo,noWrap:uo,object:null,profile:null,prompt:null,rev:null,rightMargin:Pn,rules:null,scheme:null,scrolling:Gc,standby:null,summary:null,text:null,topMargin:Pn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Pn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:uo,disableRemotePlayback:uo,prefix:null,property:null,results:Pn,security:null,unselectable:null}}),n8i=kk({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:HEt,properties:{about:Bp,accentHeight:Pn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Pn,amplitude:Pn,arabicForm:null,ascent:Pn,attributeName:null,attributeType:null,azimuth:Pn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Pn,by:null,calcMode:null,capHeight:Pn,className:qs,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Pn,diffuseConstant:Pn,direction:null,display:null,dur:null,divisor:Pn,dominantBaseline:null,download:uo,dx:null,dy:null,edgeMode:null,editable:null,elevation:Pn,enableBackground:null,end:null,event:null,exponent:Pn,externalResourcesRequired:null,fill:null,fillOpacity:Pn,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:XI,g2:XI,glyphName:XI,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Pn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Pn,horizOriginX:Pn,horizOriginY:Pn,id:null,ideographic:Pn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Pn,k:Pn,k1:Pn,k2:Pn,k3:Pn,k4:Pn,kernelMatrix:Bp,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Pn,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Pn,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Pn,overlineThickness:Pn,paintOrder:null,panose1:null,path:null,pathLength:Pn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qs,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Pn,pointsAtY:Pn,pointsAtZ:Pn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bp,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bp,rev:Bp,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bp,requiredFeatures:Bp,requiredFonts:Bp,requiredFormats:Bp,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Pn,specularExponent:Pn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Pn,strikethroughThickness:Pn,string:null,stroke:null,strokeDashArray:Bp,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Pn,strokeOpacity:Pn,strokeWidth:null,style:null,surfaceScale:Pn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bp,tabIndex:Pn,tableValues:null,target:null,targetX:Pn,targetY:Pn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bp,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Pn,underlineThickness:Pn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Pn,values:null,vAlphabetic:Pn,vMathematical:Pn,vectorEffect:null,vHanging:Pn,vIdeographic:Pn,version:null,vertAdvY:Pn,vertOriginX:Pn,vertOriginY:Pn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Pn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),r8i=/^data[-\w.:]+$/i,OJe=/-[a-z]/g,i8i=/[A-Z]/g;function o8i(e,t){const n=P2e(t);let r=t,i=sg;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&r8i.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(OJe,s8i);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!OJe.test(o)){let a=o.replace(i8i,a8i);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=STe}return new i(r,t)}function a8i(e){return"-"+e.toLowerCase()}function s8i(e){return e.charAt(1).toUpperCase()}const zJe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},l8i=WEt([jEt,BEt,GEt,$Et,t8i],"html"),c8i=WEt([jEt,BEt,GEt,$Et,n8i],"svg");function u8i(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{xTe(t,"element",(n,r,i)=>{const o=i;let a;if(e.allowedElements?a=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(n.tagName)),!a&&e.allowElement&&typeof r=="number"&&(a=!e.allowElement(n,r,o)),a&&typeof r=="number")return e.unwrapDisallowed&&n.children?o.children.splice(r,1,...n.children):o.children.splice(r,1),r})}}var Ype={exports:{}},Ya={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var TJe;function d8i(){if(TJe)return Ya;TJe=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function m(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case n:case i:case r:case c:case u:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case l:case p:case d:case o:return v;default:return y}}case t:return y}}}return Ya.ContextConsumer=a,Ya.ContextProvider=o,Ya.Element=e,Ya.ForwardRef=l,Ya.Fragment=n,Ya.Lazy=p,Ya.Memo=d,Ya.Portal=t,Ya.Profiler=i,Ya.StrictMode=r,Ya.Suspense=c,Ya.SuspenseList=u,Ya.isAsyncMode=function(){return!1},Ya.isConcurrentMode=function(){return!1},Ya.isContextConsumer=function(v){return m(v)===a},Ya.isContextProvider=function(v){return m(v)===o},Ya.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Ya.isForwardRef=function(v){return m(v)===l},Ya.isFragment=function(v){return m(v)===n},Ya.isLazy=function(v){return m(v)===p},Ya.isMemo=function(v){return m(v)===d},Ya.isPortal=function(v){return m(v)===t},Ya.isProfiler=function(v){return m(v)===i},Ya.isStrictMode=function(v){return m(v)===r},Ya.isSuspense=function(v){return m(v)===c},Ya.isSuspenseList=function(v){return m(v)===u},Ya.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===i||v===r||v===c||v===u||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===d||v.$$typeof===o||v.$$typeof===a||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},Ya.typeOf=m,Ya}var EJe;function p8i(){return EJe||(EJe=1,Ype.exports=d8i()),Ype.exports}var h8i=p8i();const f8i=qn(h8i);function g8i(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function m8i(e){return e.join(" ").trim()}function v8i(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var WG={exports:{}},Kpe,RJe;function b8i(){if(RJe)return Kpe;RJe=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
`,c="/",u="*",d="",p="comment",h="declaration";Kpe=function(m,v){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];v=v||{};var y=1,M=1;function C(N){var F=N.match(t);F&&(y+=F.length);var L=N.lastIndexOf(l);M=~L?N.length-L:M+N.length}function x(){var N={line:y,column:M};return function(F){return F.position=new w(N),z(),F}}function w(N){this.start=N,this.end={line:y,column:M},this.source=v.source}w.prototype.content=m;function S(N){var F=new Error(v.source+":"+y+":"+M+": "+N);if(F.reason=N,F.filename=v.source,F.line=y,F.column=M,F.source=m,!v.silent)throw F}function A(N){var F=N.exec(m);if(F){var L=F[0];return C(L),m=m.slice(L.length),F}}function z(){A(n)}function O(N){var F;for(N=N||[];F=T();)F!==!1&&N.push(F);return N}function T(){var N=x();if(!(c!=m.charAt(0)||u!=m.charAt(1))){for(var F=2;d!=m.charAt(F)&&(u!=m.charAt(F)||c!=m.charAt(F+1));)++F;if(F+=2,d===m.charAt(F-1))return S("End of comment missing");var L=m.slice(2,F-2);return M+=2,C(L),m=m.slice(F),M+=2,N({type:p,comment:L})}}function I(){var N=x(),F=A(r);if(F){if(T(),!A(i))return S("property missing ':'");var L=A(o),W=N({type:h,property:g(F[0].replace(e,d)),value:L?g(L[0].replace(e,d)):d});return A(a),W}}function P(){var N=[];O(N);for(var F;F=I();)F!==!1&&(N.push(F),O(N));return N}return z(),P()};function g(m){return m?m.replace(s,d):d}return Kpe}var IJe;function y8i(){if(IJe)return WG.exports;IJe=1;var e=b8i();function t(n,r){var i=null;if(!n||typeof n!="string")return i;for(var o,a=e(n),s=typeof r=="function",l,c,u=0,d=a.length;u<d;u++)o=a[u],l=o.property,c=o.value,s?r(l,c,o):c&&(i||(i={}),i[l]=c);return i}return WG.exports=t,WG.exports.default=t,WG.exports}var M8i=y8i();const C8i=qn(M8i),k2e={}.hasOwnProperty,x8i=new Set(["table","thead","tbody","tfoot","tr"]);function UEt(e,t){const n=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?n.push(w8i(e,i,r,t)):i.type==="text"?(t.type!=="element"||!x8i.has(t.tagName)||!g8i(i))&&n.push(i.value):i.type==="raw"&&!e.options.skipHtml&&n.push(i.value);return n}function w8i(e,t,n,r){const i=e.options,o=i.transformLinkUri===void 0?D6i:i.transformLinkUri,a=e.schema,s=t.tagName,l={};let c=a,u;if(a.space==="html"&&s==="svg"&&(c=c8i,e.schema=c),t.properties)for(u in t.properties)k2e.call(t.properties,u)&&A8i(l,u,t.properties[u],e);(s==="ol"||s==="ul")&&e.listDepth++;const d=UEt(e,t);(s==="ol"||s==="ul")&&e.listDepth--,e.schema=a;const p=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=i.components&&k2e.call(i.components,s)?i.components[s]:s,g=typeof h=="string"||h===E.Fragment;if(!f8i.isValidElementType(h))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(l.key=n,s==="a"&&i.linkTarget&&(l.target=typeof i.linkTarget=="function"?i.linkTarget(String(l.href||""),t.children,typeof l.title=="string"?l.title:null):i.linkTarget),s==="a"&&o&&(l.href=o(String(l.href||""),t.children,typeof l.title=="string"?l.title:null)),!g&&s==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!g&&(s==="h1"||s==="h2"||s==="h3"||s==="h4"||s==="h5"||s==="h6")&&(l.level=Number.parseInt(s.charAt(1),10)),s==="img"&&i.transformImageUri&&(l.src=i.transformImageUri(String(l.src||""),String(l.alt||""),typeof l.title=="string"?l.title:null)),!g&&s==="li"&&r.type==="element"){const m=S8i(t);l.checked=m&&m.properties?!!m.properties.checked:null,l.index=Qpe(r,t),l.ordered=r.tagName==="ol"}return!g&&(s==="ol"||s==="ul")&&(l.ordered=s==="ol",l.depth=e.listDepth),(s==="td"||s==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),g||(l.isHeader=s==="th")),!g&&s==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),i.sourcePos&&(l["data-sourcepos"]=T8i(p)),!g&&i.rawSourcePos&&(l.sourcePosition=t.position),!g&&i.includeElementIndex&&(l.index=Qpe(r,t),l.siblingCount=Qpe(r)),g||(l.node=t),d.length>0?E.createElement(h,l,d):E.createElement(h,l)}function S8i(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function Qpe(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function A8i(e,t,n,r){const i=o8i(r.schema,t);let o=n;o==null||o!==o||(Array.isArray(o)&&(o=i.commaSeparated?v8i(o):m8i(o)),i.property==="style"&&typeof o=="string"&&(o=O8i(o)),i.space&&i.property?e[k2e.call(zJe,i.property)?zJe[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function O8i(e){const t={};try{C8i(e,n)}catch{}return t;function n(r,i){const o=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[o.replace(/-([a-z])/g,z8i)]=i}}function z8i(e,t){return t.toUpperCase()}function T8i(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const PJe={}.hasOwnProperty,E8i="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qG={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function XEt(e){for(const o in qG)if(PJe.call(qG,o)&&PJe.call(e,o)){const a=qG[o];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${o}\` (see <${E8i}#${a.id}> for more info)`),delete qG[o]}const t=Q6i().use(aHi).use(e.remarkPlugins||[]).use(KHi,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(u8i,e),n=new mEt;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=E.createElement(E.Fragment,{},UEt({options:e,schema:l8i,listDepth:0},r));return e.className&&(i=E.createElement("div",{className:e.className},i)),i}XEt.propTypes={children:Z.string,className:Z.string,allowElement:Z.func,allowedElements:Z.arrayOf(Z.string),disallowedElements:Z.arrayOf(Z.string),unwrapDisallowed:Z.bool,remarkPlugins:Z.arrayOf(Z.oneOfType([Z.object,Z.func,Z.arrayOf(Z.oneOfType([Z.bool,Z.string,Z.object,Z.func,Z.arrayOf(Z.any)]))])),rehypePlugins:Z.arrayOf(Z.oneOfType([Z.object,Z.func,Z.arrayOf(Z.oneOfType([Z.bool,Z.string,Z.object,Z.func,Z.arrayOf(Z.any)]))])),sourcePos:Z.bool,rawSourcePos:Z.bool,skipHtml:Z.bool,includeElementIndex:Z.bool,transformLinkUri:Z.oneOfType([Z.func,Z.bool]),linkTarget:Z.oneOfType([Z.func,Z.string]),transformImageUri:Z.func,components:Z.object};const R8i=e=>{const t=e.value||"";return f.jsx("div",{style:{padding:"2px 0"},children:f.jsx(XEt,{children:t})})},I8i=()=>({columns:[{field:"AssetName",headerName:"Asset",sortable:!0,flex:1,minWidth:60},{field:"Title",headerName:"Title",sortable:!1,flex:1,minWidth:160},{field:"Content",headerName:"Content",sortable:!1,flex:5,minWidth:95,wrapText:!0,autoHeight:!0,cellStyle:{textAlign:"left"},cellRenderer:R8i},{field:"Author",headerName:"Author",sortable:!1,flex:1,minWidth:95}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1}}),P8i=({rows:e,isLoading:t})=>{const n=p2(),{columns:r}=I8i(),[i,o]=b.useState(null),a=s=>{o(s.api)};return b.useEffect(()=>{i&&(t?i.showLoadingOverlay():i.hideOverlay())},[i,t]),f.jsx(kt,{elevation:0,children:f.jsx(Tn,{className:`${n.smAgGridBox} ${n.dynamicHeight}`,children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:e,columnDefs:r,onGridReady:a})})})},D8i=()=>({columns:[{headerName:"Heat",field:"HeatNameValue",minWidth:70,maxWidth:70,cellRenderer:zd,cellRendererParams:{linkProperty:"HeatNameLink"}},{headerName:"Grade",field:"Grade",minWidth:98,maxWidth:98},{headerName:"Sample",field:"Sample",minWidth:69,maxWidth:69},{headerName:"Elements",field:"Elements",wrapText:!0,autoHeight:!0,minWidth:100,flex:4}],defaultColDef:{flex:1,resizable:!0,suppressHeaderMenuButton:!0,autoHeight:!0,wrapText:!0}}),k8i=({rows:e,isLoading:t})=>{const n=p2(),{columns:r}=D8i(),[i,o]=b.useState(null),a=s=>{o(s.api)};return b.useEffect(()=>{i&&(t?i.showLoadingOverlay():i.hideOverlay())},[i,t]),f.jsx(kt,{elevation:0,children:f.jsx(Tn,{className:`${n.smAgGridBox} `,children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:e,columnDefs:r,domLayout:"normal",onGridReady:a})})})},L8i=e=>({columns:[{field:"Grade",headerName:"Grade",flex:1,minWidth:98,cellClass:"first-column-cell"},{field:"Section",headerName:"Section",flex:1,minWidth:80,cellClass:"first-column-cell"},{field:"Heats",headerName:"Heats",flex:1,minWidth:60,valueGetter:i=>{const o=i.data.Heats;return Number.isInteger(o)?o:o?.toFixed(2)}},{field:"Billets",headerName:"Billets",flex:1,minWidth:62,valueGetter:i=>{const o=i.data.Billets;return Number.isInteger(o)?o:o?.toFixed(2)}},{field:"Tons",headerName:"Tons",flex:1,minWidth:68,valueGetter:i=>{const o=i.data.Tons;return Number.isInteger(o)?o:o?.toFixed(2)}}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:e}),_8i=({rows:e,isLoading:t})=>{const n=p2(),{columns:r,rowData:i}=L8i(e),[o,a]=b.useState(null),s=l=>{a(l.api)};return b.useEffect(()=>{o&&(t?o.showLoadingOverlay():o.hideOverlay())},[o,t]),f.jsx(kt,{elevation:0,children:f.jsx(Tn,{className:`${n.smAgGridBox}`,children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:i,columnDefs:r,domLayout:"normal",onGridReady:s})})})},N8i=e=>{const t=Array.isArray(e)?e.map(i=>({Property:i.Property,Value:i.Value!==void 0?i.Value:0})):[];return{columns:[{headerName:"Quality Summary",children:[{field:"Property",headerName:"",flex:1,minWidth:150,cellClass:"first-column-cell"},{field:"Value",headerName:"Value",flex:1,minWidth:100,valueGetter:i=>{const o=i.data.Value;return o==null?null:typeof o=="number"&&Number.isInteger(o)?o:typeof o=="number"?o.toFixed(2):o}}]}],defaultColDef:{filter:!1,floatingFilter:!1,sortable:!1,resizable:!1,editable:!1},rowData:t}},F8i=({rows:e,isLoading:t})=>{const n=p2(),{columns:r,rowData:i}=N8i(e),[o,a]=b.useState(null),s=l=>{a(l.api)};return b.useEffect(()=>{o&&(t?o.showLoadingOverlay():o.hideOverlay())},[o,t]),f.jsx(kt,{elevation:0,children:f.jsx(Tn,{className:`${n.readonlyAgGridBox} ${n.dynamicHeight}`,children:f.jsx(Kn,{rowSelection:"single",suppressRowClickSelection:!0,pagination:!1,singleClickEdit:!1,tooltipShowDelay:0,tooltipHideDelay:2e3,rowData:i,columnDefs:r,domLayout:"autoHeight",onGridReady:s})})})},W8i={isDataLoading:!1,eafSummary:[],casSummary:[],qualitySummary:[],heats:[],prdSummary:[],logbook:[],delays:[],missedChemistries:[]},iK=Ni({name:"__",initialState:W8i,reducers:{setIsDataLoading(e,{payload:t}){e.isDataLoading=t},setEafSummary(e,{payload:t}){e.eafSummary=t},setCasSummary(e,{payload:t}){e.casSummary=t},setHeats(e,{payload:t}){e.heats=t},setPrdSummary(e,{payload:t}){e.prdSummary=t},setDelays(e,{payload:t}){e.delays=t},setLogbook(e,{payload:t}){e.logbook=t},setMissedChemistries(e,{payload:t}){e.missedChemistries=t},setQualitySummary(e,{payload:t}){e.qualitySummary=t}}}),YEt=b.createContext({state:iK.getInitialState(),actions:iK.actions}),q8i=()=>b.useContext(YEt),B8i=({children:e})=>{const[t,n]=Ui.useComplexState({initialState:iK.getInitialState(),reducers:iK.caseReducers,name:"shiftReport"});return f.jsx(YEt.Provider,{value:{state:t,actions:n},children:e})},j8i=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[EAF].[GetShiftReport]",t)},H8i=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[CAS].[GetShiftReport]",t)},V8i=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[LAB].[GetShiftReport]",t)},G8i=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[SWV].[GetHeatsShiftReport]",t)},$8i=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[SWV].[GetPRDShiftReport]",t)},U8i=async(e,t,n=!1)=>{const r=new Ye,i=[];return i.push({name:"ShiftId",value:e}),i.push({name:"DelayAreaAssetId",value:t}),i.push({name:"IncludeMicrodelays",value:n}),await r.callV2("[DEL].[GetShiftReportDelays]",i)},X8i=async e=>{const t=[];return t.push({name:"ShiftId",value:e}),await new Ye().callV2("[LB].[GetEntries]",t)},Y8i=Rn(),K8i=()=>{const{state:e,actions:t}=q8i(),{shiftInfo:n,initShiftNavigator:r,getShiftDataFromAPI:i}=la(),{width:o}=nEt(),a=o*.9/12,[s,l]=b.useState(!0),[c,u]=b.useState(""),{assets:d,updateGantt:p}=aEt(n),[h,g]=b.useState(null),[m,v]=b.useState(!0),[y,M]=b.useState(!0),[C,x]=b.useState(!0),[w,S]=b.useState(!0),[A,z]=b.useState(!0),[O,T]=b.useState(!0),[I,P]=b.useState(!0),[N,F]=b.useState(!0),[L,W]=b.useState(!0);b.useEffect(()=>{i(null,0).catch(G=>{u(G?.message||"Error loading shift data")})},[]);const H=async G=>{v(!0),M(!0),x(!0),S(!0),z(!0),T(!0),P(!0),F(!0),W(!0);const q=[],$={eafSummary:j8i(G),casSummary:H8i(G),qualitySummary:V8i(G),heats:G8i(G),delays:U8i(G,null),prdSummary:$8i(G),logbook:X8i(G),missedChemistries:lzt({startDate:null,endDate:null,shiftId:G,gradeId:0,billetSizeId:0,includeExternalHeats:!1}),ganttData:n?d2e(n.CurrentStart,n.CurrentEnd):Promise.resolve({ok:!1,message:"No shiftInfo available"})},U=Object.keys($);(await Promise.allSettled(Object.values($))).forEach((Q,re)=>{const ee=U[re];if(Q.status==="fulfilled"){const se=Q.value;if(se.ok)switch(ee){case"eafSummary":t.setEafSummary(Ot(se,"data.tables[0].rows",null)),v(!1);break;case"casSummary":t.setCasSummary(Ot(se,"data.tables[0].rows",null)),M(!1);break;case"qualitySummary":t.setQualitySummary(Ot(se,"data.tables[1].rows",null)),x(!1);break;case"ganttData":const pe=Ot(se,"data",null);pe&&p(pe),W(!1);break;case"heats":t.setHeats(Ot(se,"data.tables[0].rows",null)),S(!1);break;case"prdSummary":t.setPrdSummary(Ot(se,"data.tables[0].rows",null)),T(!1);break;case"delays":t.setDelays(Ot(se,"data.tables[0].rows",null)),z(!1);break;case"missedChemistries":t.setMissedChemistries(Ot(se,"data.tables[0].rows",null)),F(!1);break;case"logbook":t.setLogbook(Ot(se,"data.tables[0].rows",null)),P(!1);break}else q.push(se.message)}else q.push(Q.reason&&Q.reason.message||"Unknown error")}),q.length>0?u(q.join(" | ")):u(""),l(!1)},j=async()=>{try{if(l(!0),!n?.CurrentShiftId){u("No valid shift selected");return}const q=Y8i(n.CurrentStart).format("YYYYMMDD"),$=n.CurrentShift,U=`/api/shift-reports/pdf/${q}/${$}`;window.open(U,"_blank","noopener,noreferrer")}catch(G){u(G?.message||"Error generating the PDF")}finally{l(!1)}};return b.useEffect(()=>{const G=Ot(n,"CurrentShiftId",null);G&&G!==h&&(H(G),g(G))},[n,h,t,p]),f.jsxs(f.Fragment,{children:[f.jsx(Mn,{title:"Shift Report"}),f.jsxs(D,{container:!0,spacing:1,style:{padding:"10px 20px",backgroundColor:" #F2F4F7"},children:[f.jsxs(D,{container:!0,item:!0,xs:12,alignItems:"center",children:[f.jsx(D,{item:!0,children:f.jsx(bt,{variant:"h5",style:{fontWeight:600,userSelect:"none"},children:"Shift Report"})}),f.jsx(D,{item:!0,xs:!0,container:!0,justifyContent:"center",children:f.jsx(s2,{preventInit:!0})}),f.jsx(D,{item:!0,children:f.jsx(Da,{variant:"contained",color:"primary",onClick:j,isLoading:s,style:{marginRight:"10px"},children:"Generate PDF"})})]}),f.jsxs(D,{item:!0,container:!0,spacing:1,xs:12,justifyContent:"space-between",children:[f.jsx(D,{item:!0,xs:4,children:f.jsx(R6i,{rows:e.eafSummary,isLoading:m})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(O6i,{rows:e.casSummary,isLoading:y})}),f.jsx(D,{item:!0,xs:4,children:f.jsx(F8i,{rows:e.qualitySummary,isLoading:C})})]}),f.jsx(D,{item:!0,xs:12,children:f.jsx(kt,{children:f.jsxs(Tn,{padding:2,style:{position:"relative"},children:[f.jsx(bt,{variant:"h5",style:{fontWeight:"600"},children:"Gantt"}),n&&d.length>0&&f.jsx(oEt,{columnWidth:a,assets:d,showArrowTriangle:!1,startCalendarDate:n?.CurrentStart,endCalendarDate:n?.CurrentEnd,rowHeight:150,barFill:50,lineSectionFill:40,lineFill:40,refreshData:()=>H(n?.CurrentShiftId),withoutContextMenu:!0},`shift-${n?.CurrentShiftId}`),L&&f.jsx(Kt,{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})]})})}),f.jsx(D,{item:!0,container:!0,xs:12,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(kt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(bt,{variant:"h5",style:{fontWeight:"600"},children:"Heats"}),f.jsx(P6i,{heats:e.heats,isLoading:w})]})})})}),f.jsxs(D,{item:!0,container:!0,xs:12,children:[f.jsx(D,{item:!0,xs:6,children:f.jsx(kt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(bt,{variant:"h5",style:{fontWeight:"600"},children:"Production Summary"}),f.jsx(_8i,{rows:e.prdSummary,isLoading:O})]})})}),f.jsx(D,{item:!0,xs:6,children:f.jsx(kt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(bt,{variant:"h5",style:{fontWeight:"600"},children:"Missed Chemistries"}),f.jsx(k8i,{rows:e.missedChemistries,isLoading:N})]})})})]}),f.jsx(D,{item:!0,container:!0,xs:12,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(kt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(bt,{variant:"h5",style:{fontWeight:"600"},children:"Top 5 Delays by Asset"}),f.jsx(T6i,{rows:e.delays,isLoading:A})]})})})}),f.jsx(D,{item:!0,container:!0,xs:12,children:f.jsx(D,{item:!0,xs:12,children:f.jsx(kt,{children:f.jsxs(Tn,{padding:3,children:[f.jsx(bt,{variant:"h5",style:{fontWeight:"600"},children:"Logbook"}),f.jsx(P8i,{rows:e.logbook,isLoading:I})]})})})})]}),f.jsx(Mt,{error:c,onHide:()=>u("")})]})},Q8i=()=>f.jsx(B8i,{children:f.jsx(tEt,{children:f.jsx(K8i,{})})}),Z8i=[f.jsx(cr,{path:"/shift-report/*",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(Q8i,{})})})],J8i=()=>f.jsxs(ZQ,{children:[i6i,Y5i,ULi,UFi,S6i,b_i,Z8i,oFi,XFi,f.jsx(cr,{path:"/acquisition-stats",element:f.jsx(b.Suspense,{fallback:f.jsx(Cn,{}),children:f.jsx(uEi,{})})}),f.jsx(cr,{path:"",element:f.jsx(HO,{to:"/meltshop-dashboard"})})]}),eVi={entry:{withAssetFilter:"selector",filterAssets:"area",allowAttachments:!0,canEditShift:!0,showShiftCrew:!0,exportToExcel:!0,shiftsRange:7},report:{withAssetFilter:"selector",filterAssets:"area",showAttachments:!0,showAsset:!0,showShiftCrew:!0,exportToExcel:!0}};ql.render(f.jsx(iwi,{showAreaSelector:!0,routes:J8i,navbar:eEi,navbarTitle:"SWV MES",configurations:YTi,authentication:dSi,logbookSettings:eVi}),document.getElementById("root"));export{Kn as A,Tn as B,Kt as C,_f as D,Ik as E,Mn as H,nc as I,Nst as L,Ye as M,kt as P,D as S,bt as T,K5n as a,Mt as b,Ji as c,je as d,nB as e,C3 as f,Rn as g,y3 as h,f as j,b as r,Ms as u};
//# sourceMappingURL=index-BGwWM0pa.js.map
